From 7ede2f745909e5342e6c8c915893b80967aa4509 Mon Sep 17 00:00:00 2001 From: Nathan Miller Date: Sat, 20 Apr 2024 16:16:23 -0700 Subject: [PATCH 001/168] initial implementation of SaveFileModel() and IStreamSaveable --- OdbDesignLib/CMakeLists.txt | 2 +- .../FileModel/Design/AttrListFile.cpp | 7 +- OdbDesignLib/FileModel/Design/AttrListFile.h | 6 +- OdbDesignLib/FileModel/Design/FileArchive.cpp | 52 +++++++++++++++ OdbDesignLib/FileModel/Design/FileArchive.h | 3 + OdbDesignLib/FileModel/Design/MatrixFile.cpp | 6 ++ OdbDesignLib/FileModel/Design/MatrixFile.h | 31 +++++---- .../FileModel/Design/MiscInfoFile.cpp | 6 ++ OdbDesignLib/FileModel/Design/MiscInfoFile.h | 4 +- .../FileModel/Design/StandardFontsFile.cpp | 6 ++ .../FileModel/Design/StandardFontsFile.h | 7 +- OdbDesignLib/FileModel/IStreamSaveable.h | 17 +++++ OdbDesignLib/doxygen.conf | 2 +- Utils/libarchive_extract.cpp | 64 ++++++++++++++++++- Utils/libarchive_extract.h | 1 + 15 files changed, 190 insertions(+), 24 deletions(-) create mode 100644 OdbDesignLib/FileModel/IStreamSaveable.h diff --git a/OdbDesignLib/CMakeLists.txt b/OdbDesignLib/CMakeLists.txt index 4e5968dc..fdc539eb 100644 --- a/OdbDesignLib/CMakeLists.txt +++ b/OdbDesignLib/CMakeLists.txt @@ -37,7 +37,7 @@ add_library(OdbDesign SHARED "ProtoBuf/via.pb.h" "ProtoBuf/via.pb.cc" "ProtoBuf/package.pb.h" "ProtoBuf/package.pb.cc" "FileModel/parse_error.h" "FileModel/parse_info.h" "FileModel/parse_info.cpp" "FileModel/parse_error.cpp" "FileModel/invalid_odb_error.h" "FileModel/invalid_odb_error.cpp" "ProtoBuf/common.pb.h" "ProtoBuf/common.pb.cc" "ProtoBuf/componentsfile.pb.h" "ProtoBuf/componentsfile.pb.cc" "FileModel/Design/PropertyRecord.h" "FileModel/Design/PropertyRecord.cpp" "FileModel/Design/FeaturesFile.h" "FileModel/Design/FeaturesFile.cpp" "FileModel/Design/ContourPolygon.h" "FileModel/Design/ContourPolygon.cpp" "FileModel/Design/SymbolName.h" "FileModel/Design/SymbolName.cpp" "FileModel/Design/SymbolsDirectory.h" "FileModel/Design/SymbolsDirectory.cpp" "FileModel/Design/StepHdrFile.h" "FileModel/Design/StepHdrFile.cpp" "FileModel/Design/AttributeLookupTable.h" "FileModel/Design/AttributeLookupTable.cpp" - "App/RequestAuthenticationBase.h" "App/RequestAuthenticationBase.cpp" "App/BasicRequestAuthentication.h" "App/BasicRequestAuthentication.cpp") + "App/RequestAuthenticationBase.h" "App/RequestAuthenticationBase.cpp" "App/BasicRequestAuthentication.h" "App/BasicRequestAuthentication.cpp" "FileModel/IStreamSaveable.h") # disable warning C4250: inheritance by dominance target_compile_options(OdbDesign PUBLIC diff --git a/OdbDesignLib/FileModel/Design/AttrListFile.cpp b/OdbDesignLib/FileModel/Design/AttrListFile.cpp index 4b29ffbf..1fbaf696 100644 --- a/OdbDesignLib/FileModel/Design/AttrListFile.cpp +++ b/OdbDesignLib/FileModel/Design/AttrListFile.cpp @@ -1,3 +1,4 @@ +#include "AttrListFile.h" // // Created by nmill on 10/13/2023. // @@ -203,6 +204,8 @@ namespace Odb::Lib::FileModel::Design return true; } - - + bool AttrListFile::Save(std::ostream& os) + { + return true; + } } // namespace Odb::Lib::FileModel::Design \ No newline at end of file diff --git a/OdbDesignLib/FileModel/Design/AttrListFile.h b/OdbDesignLib/FileModel/Design/AttrListFile.h index cbf01825..74831169 100644 --- a/OdbDesignLib/FileModel/Design/AttrListFile.h +++ b/OdbDesignLib/FileModel/Design/AttrListFile.h @@ -10,10 +10,11 @@ #include "../../IProtoBuffable.h" #include "../../ProtoBuf/attrlistfile.pb.h" #include "../../odbdesign_export.h" +#include "../IStreamSaveable.h" namespace Odb::Lib::FileModel::Design { - class ODBDESIGN_EXPORT AttrListFile : public IProtoBuffable + class ODBDESIGN_EXPORT AttrListFile : public IProtoBuffable, public IStreamSaveable { public: AttrListFile(); @@ -24,6 +25,8 @@ namespace Odb::Lib::FileModel::Design const AttributeMap& GetAttributes() const; bool Parse(std::filesystem::path directory); + // Inherited via IStreamSaveable + bool Save(std::ostream& os) override; // Inherited via IProtoBuffable std::unique_ptr to_protobuf() const override; @@ -40,7 +43,6 @@ namespace Odb::Lib::FileModel::Design inline static const auto ATTRLIST_FILENAMES = { "attrlist" }; inline static const char* OPTIONAL_ATTRIBUTES[] = { "" }; }; - } #endif //ODBDESIGN_ATTRLISTFILE_H diff --git a/OdbDesignLib/FileModel/Design/FileArchive.cpp b/OdbDesignLib/FileModel/Design/FileArchive.cpp index 4bafa633..b2f8b74c 100644 --- a/OdbDesignLib/FileModel/Design/FileArchive.cpp +++ b/OdbDesignLib/FileModel/Design/FileArchive.cpp @@ -1,4 +1,6 @@ #include "FileArchive.h" +#include "FileArchive.h" +#include "FileArchive.h" #include #include "ArchiveExtractor.h" #include "MiscInfoFile.h" @@ -106,6 +108,56 @@ namespace Odb::Lib::FileModel::Design return false; } + bool FileArchive::SaveFileModel(const std::filesystem::path& directory, const std::string& archiveName) + { + // create directory in /tmp + // write dir structure and files to it + // gzip with archiveName + // move archive to directory + + char szTmpNameBuff[L_tmpnam] = { 0 }; + std::tmpnam(szTmpNameBuff); + std::string strTempName(szTmpNameBuff); + + const auto tempPath = temp_directory_path() / strTempName; + + if (!std::filesystem::create_directory(tempPath)) return false; + + // MiscInfoFile + auto miscPath = tempPath / "misc"; + if (!std::filesystem::create_directory(miscPath)) return false; + + std::ofstream ofs1(miscPath / "info"); + if (!m_miscInfoFile.Save(ofs1)) return false; + ofs1.close(); + + // MiscAttrFile + std::ofstream ofs2(miscPath / "sysattr"); + if (!m_miscAttrListFile.Save(ofs2)) return false; + ofs2.close(); + + // StandardFontsFile + auto fontsPath = tempPath / "fonts"; + if (!std::filesystem::create_directory(fontsPath)) return false; + std::ofstream ofs3(fontsPath / "standard"); + if (!m_standardFontsFile.Save(ofs3)) return false; + ofs3.close(); + + // MatrixFile + auto matrixPath = tempPath / "matrix"; + if (!std::filesystem::create_directory(matrixPath)) return false; + std::ofstream ofs4(matrixPath / "matrix"); + if (!m_matrixFile.Save(ofs4)) return false; + ofs4.close(); + + return true; + } + + bool FileArchive::SaveFileModel(const std::string& directory, const std::string& archiveName) + { + return SaveFileModel(std::filesystem::path(directory), archiveName); + } + bool FileArchive::ExtractDesignArchive(const std::filesystem::path& path, std::filesystem::path& extractedPath) { loginfo("Extracting... "); diff --git a/OdbDesignLib/FileModel/Design/FileArchive.h b/OdbDesignLib/FileModel/Design/FileArchive.h index f221f2f2..6ffdf545 100644 --- a/OdbDesignLib/FileModel/Design/FileArchive.h +++ b/OdbDesignLib/FileModel/Design/FileArchive.h @@ -42,7 +42,10 @@ namespace Odb::Lib::FileModel::Design //const EdaDataFile& GetStepEdaDataFile(std::string stepName) const; //const EdaDataFile& GetFirstStepEdaDataFile() const; + bool ParseFileModel(); + bool SaveFileModel(const std::filesystem::path& directory, const std::string& archiveName); + bool SaveFileModel(const std::string& directory, const std::string& archiveName); // Inherited via IProtoBuffable std::unique_ptr to_protobuf() const override; diff --git a/OdbDesignLib/FileModel/Design/MatrixFile.cpp b/OdbDesignLib/FileModel/Design/MatrixFile.cpp index 33c5586e..5da9081a 100644 --- a/OdbDesignLib/FileModel/Design/MatrixFile.cpp +++ b/OdbDesignLib/FileModel/Design/MatrixFile.cpp @@ -1,4 +1,5 @@ #include "MatrixFile.h" +#include "MatrixFile.h" // // Created by nmill on 10/13/2023. // @@ -471,6 +472,11 @@ namespace Odb::Lib::FileModel::Design m_layerRecords.push_back(pLayerRecord); } } + + bool MatrixFile::Save(std::ostream& os) + { + return true; + } std::unique_ptr Odb::Lib::FileModel::Design::MatrixFile::StepRecord::to_protobuf() const { diff --git a/OdbDesignLib/FileModel/Design/MatrixFile.h b/OdbDesignLib/FileModel/Design/MatrixFile.h index 3343d181..97552e8f 100644 --- a/OdbDesignLib/FileModel/Design/MatrixFile.h +++ b/OdbDesignLib/FileModel/Design/MatrixFile.h @@ -12,22 +12,23 @@ #include "../../enums.h" #include "../../IProtoBuffable.h" #include "../../ProtoBuf/matrixfile.pb.h" +#include "../IStreamSaveable.h" namespace Odb::Lib::FileModel::Design { - class MatrixFile : public OdbFile, public IProtoBuffable + class MatrixFile : public OdbFile, public IProtoBuffable, public IStreamSaveable { - public: + public: ~MatrixFile(); struct StepRecord : public IProtoBuffable { unsigned int column; - unsigned int id = (unsigned int) -1; + unsigned int id = (unsigned int)-1; std::string name; - typedef std::vector> Vector; + typedef std::vector> Vector; inline static const char* RECORD_TOKEN = "STEP"; @@ -37,7 +38,7 @@ namespace Odb::Lib::FileModel::Design }; struct LayerRecord : public IProtoBuffable - { + { enum class Type { Signal, @@ -53,13 +54,13 @@ namespace Odb::Lib::FileModel::Design Component, Mask, ConductivePaste, - }; + }; enum class Context { Board, Misc - }; + }; enum class DielectricType { @@ -72,7 +73,7 @@ namespace Odb::Lib::FileModel::Design { Rigid, Flex - }; + }; typedef std::vector> Vector; @@ -84,15 +85,15 @@ namespace Odb::Lib::FileModel::Design DielectricType dielectricType = DielectricType::None; std::string dielectricName; Form form = Form::Rigid; - unsigned int cuTop = (unsigned int) -1; - unsigned int cuBottom = (unsigned int) -1; - unsigned int ref = (unsigned int) -1; + unsigned int cuTop = (unsigned int)-1; + unsigned int cuBottom = (unsigned int)-1; + unsigned int ref = (unsigned int)-1; std::string startName; std::string endName; std::string oldName; std::string addType; - RgbColor color{"0"}; - unsigned int id = (unsigned int) -1; + RgbColor color{ "0" }; + unsigned int id = (unsigned int)-1; inline static const char* RECORD_TOKEN = "LAYER"; @@ -106,6 +107,8 @@ namespace Odb::Lib::FileModel::Design // Inherited via OdbFile bool Parse(std::filesystem::path path) override; + // Inherited via IStreamSaveable + bool Save(std::ostream& os) override; static inline bool attributeValueIsOptional(const std::string& attribute); @@ -134,6 +137,6 @@ namespace Odb::Lib::FileModel::Design "CU_BOTTOM", "REF", "COLOR", - }; + }; }; } diff --git a/OdbDesignLib/FileModel/Design/MiscInfoFile.cpp b/OdbDesignLib/FileModel/Design/MiscInfoFile.cpp index b0158861..a132a508 100644 --- a/OdbDesignLib/FileModel/Design/MiscInfoFile.cpp +++ b/OdbDesignLib/FileModel/Design/MiscInfoFile.cpp @@ -1,4 +1,5 @@ #include "MiscInfoFile.h" +#include "MiscInfoFile.h" // // Created by nmill on 10/13/2023. // @@ -192,6 +193,11 @@ namespace Odb::Lib::FileModel::Design return true; } + bool MiscInfoFile::Save(std::ostream& os) + { + return true; + } + /*static*/ inline bool MiscInfoFile::attributeValueIsOptional(const std::string& attribute) { for (const auto& optionalAttribute : OPTIONAL_ATTRIBUTES) diff --git a/OdbDesignLib/FileModel/Design/MiscInfoFile.h b/OdbDesignLib/FileModel/Design/MiscInfoFile.h index fac73b6a..3863c4ca 100644 --- a/OdbDesignLib/FileModel/Design/MiscInfoFile.h +++ b/OdbDesignLib/FileModel/Design/MiscInfoFile.h @@ -6,13 +6,14 @@ #include #include "../../IProtoBuffable.h" #include "../../ProtoBuf/miscinfofile.pb.h" +#include "../IStreamSaveable.h" #pragma once namespace Odb::Lib::FileModel::Design { - class MiscInfoFile : public OdbFile, public IProtoBuffable + class MiscInfoFile : public OdbFile, public IProtoBuffable, public IStreamSaveable { public: MiscInfoFile(); @@ -31,6 +32,7 @@ namespace Odb::Lib::FileModel::Design unsigned int GetMaxUniqueId() const; bool Parse(std::filesystem::path path) override; + bool Save(std::ostream& os) override; // Inherited via IProtoBuffable std::unique_ptr to_protobuf() const override; diff --git a/OdbDesignLib/FileModel/Design/StandardFontsFile.cpp b/OdbDesignLib/FileModel/Design/StandardFontsFile.cpp index 4caf77ad..c3d846a0 100644 --- a/OdbDesignLib/FileModel/Design/StandardFontsFile.cpp +++ b/OdbDesignLib/FileModel/Design/StandardFontsFile.cpp @@ -1,4 +1,5 @@ #include "StandardFontsFile.h" +#include "StandardFontsFile.h" #include "Logger.h" #include @@ -307,6 +308,11 @@ namespace Odb::Lib::FileModel::Design } } + bool StandardFontsFile::Save(std::ostream& os) + { + return true; + } + StandardFontsFile::CharacterBlock::~CharacterBlock() { m_lineRecords.clear(); diff --git a/OdbDesignLib/FileModel/Design/StandardFontsFile.h b/OdbDesignLib/FileModel/Design/StandardFontsFile.h index 4ba65921..9c0c840c 100644 --- a/OdbDesignLib/FileModel/Design/StandardFontsFile.h +++ b/OdbDesignLib/FileModel/Design/StandardFontsFile.h @@ -6,16 +6,19 @@ #include #include "../../IProtoBuffable.h" #include "../../ProtoBuf/standardfontsfile.pb.h" +#include "../IStreamSaveable.h" namespace Odb::Lib::FileModel::Design { - class StandardFontsFile : public OdbFile, public IProtoBuffable + class StandardFontsFile : public OdbFile, public IProtoBuffable, public IStreamSaveable { public: StandardFontsFile() = default; ~StandardFontsFile(); bool Parse(std::filesystem::path path) override; + // Inherited via IStreamSaveable + bool Save(std::ostream& os) override; // Inherited via IProtoBuffable std::unique_ptr to_protobuf() const override; @@ -61,6 +64,6 @@ namespace Odb::Lib::FileModel::Design float m_ySize; float m_offset; - CharacterBlock::Vector m_characterBlocks; + CharacterBlock::Vector m_characterBlocks; }; } diff --git a/OdbDesignLib/FileModel/IStreamSaveable.h b/OdbDesignLib/FileModel/IStreamSaveable.h new file mode 100644 index 00000000..6ffd2696 --- /dev/null +++ b/OdbDesignLib/FileModel/IStreamSaveable.h @@ -0,0 +1,17 @@ +#pragma once + +//#include +#include +#include "../odbdesign_export.h" + +namespace Odb::Lib::FileModel +{ + class IStreamSaveable + { + public: + virtual bool Save(std::ostream& os) = 0; + + protected: + IStreamSaveable() = default; + }; +} \ No newline at end of file diff --git a/OdbDesignLib/doxygen.conf b/OdbDesignLib/doxygen.conf index 8969e407..3ec392e3 100644 --- a/OdbDesignLib/doxygen.conf +++ b/OdbDesignLib/doxygen.conf @@ -1038,7 +1038,7 @@ FILE_PATTERNS = *.c \ # be searched for input files as well. # The default value is: NO. -RECURSIVE = NO +RECURSIVE = YES # The EXCLUDE tag can be used to specify files and/or directories that should be # excluded from the INPUT source files. This way you can easily exclude a diff --git a/Utils/libarchive_extract.cpp b/Utils/libarchive_extract.cpp index 2985709c..abc4efc5 100644 --- a/Utils/libarchive_extract.cpp +++ b/Utils/libarchive_extract.cpp @@ -105,7 +105,7 @@ namespace Utils archive_write_free(ext); return true; - } + } int copy_data(struct archive* ar, struct archive* aw) { @@ -128,4 +128,66 @@ namespace Utils } } } + + bool compress(const char* srcDir, const char* destDir, const char* archiveName) + { + + return false; + } + + ////https://stackoverflow.com/a/23332055/4848067 + //QString directory = "/home/lpapp/tmp/stackoverflow/test"; + //struct archive* a; + //struct archive_entry* entry; + //struct stat st; + //char buff[8192]; + //size_t bytes_read; + //int fd; + + //QByteArray outArray = directory.toLocal8Bit() + ".tar"; + //char* outDirectory = outArray.data(); + //qDebug() << outDirectory; + + //QByteArray inputArray = directory.toLocal8Bit(); + //char* inputDirectory = inputArray.data(); + //qDebug() << inputDirectory; + + //QFileInfo inputInfo; + //inputInfo.setFile(directory); + + //// the name of the directory + //QByteArray pathArray = inputInfo.fileName().toLocal8Bit(); + //char* pathDirectory = pathArray.data(); + //qDebug() << pathDirectory; + + //a = archive_write_new(); + //archive_write_add_filter_gzip(a); + //archive_write_set_format_pax_restricted(a); + //archive_write_open_filename(a, outDirectory); + + //QDirIterator it(directory, QDirIterator::Subdirectories); + //while (it.hasNext()) { + // entry = archive_entry_new(); + // stat(inputDirectory, &st); + + // archive_entry_set_pathname(entry, it.next().toLocal8Bit().constData()); + // archive_entry_set_filetype(entry, AE_IFDIR); + // archive_entry_copy_stat(entry, &st); + // archive_write_header(a, entry); + + // fd = open(inputDirectory, O_RDONLY); + // bytes_read = read(fd, buff, sizeof(buff)); + // while (bytes_read > 0) { + // archive_write_data(a, buff, bytes_read); + // bytes_read = read(fd, buff, sizeof(buff)); + // } + // close(fd); + // archive_entry_free(entry); + + // archive_write_finish_entry(a); + // archive_write_close(a); + // archive_write_free(a); + //} + + //return 0; } \ No newline at end of file diff --git a/Utils/libarchive_extract.h b/Utils/libarchive_extract.h index f5f8b2f8..1f5b1460 100644 --- a/Utils/libarchive_extract.h +++ b/Utils/libarchive_extract.h @@ -3,4 +3,5 @@ namespace Utils { bool extract(const char* filename, const char* destDir); + bool compress(const char* srcDir, const char* destDir, const char* archiveName); } From 56964f5952e1ab3ef9cbdf66f9689e4ba15065ca Mon Sep 17 00:00:00 2001 From: Nathan Miller Date: Tue, 23 Apr 2024 09:45:13 -0700 Subject: [PATCH 002/168] remove duplicated #include's --- OdbDesignLib/FileModel/Design/AttrListFile.cpp | 1 - OdbDesignLib/FileModel/Design/ComponentsFile.cpp | 6 ------ OdbDesignLib/FileModel/Design/FeaturesFile.cpp | 1 - OdbDesignLib/FileModel/Design/FileArchive.cpp | 2 -- OdbDesignLib/FileModel/Design/LayerDirectory.cpp | 6 ------ OdbDesignLib/FileModel/Design/NetlistFile.cpp | 7 ------- OdbDesignLib/FileModel/Design/StandardFontsFile.cpp | 2 -- OdbDesignLib/FileModel/Design/StepDirectory.cpp | 2 -- 8 files changed, 27 deletions(-) diff --git a/OdbDesignLib/FileModel/Design/AttrListFile.cpp b/OdbDesignLib/FileModel/Design/AttrListFile.cpp index 1fbaf696..f2e9ed98 100644 --- a/OdbDesignLib/FileModel/Design/AttrListFile.cpp +++ b/OdbDesignLib/FileModel/Design/AttrListFile.cpp @@ -1,4 +1,3 @@ -#include "AttrListFile.h" // // Created by nmill on 10/13/2023. // diff --git a/OdbDesignLib/FileModel/Design/ComponentsFile.cpp b/OdbDesignLib/FileModel/Design/ComponentsFile.cpp index e22a4114..b51385c1 100644 --- a/OdbDesignLib/FileModel/Design/ComponentsFile.cpp +++ b/OdbDesignLib/FileModel/Design/ComponentsFile.cpp @@ -1,10 +1,4 @@ #include "ComponentsFile.h" -#include "ComponentsFile.h" -#include "ComponentsFile.h" -#include "ComponentsFile.h" -#include "ComponentsFile.h" -#include "ComponentsFile.h" -#include "ComponentsFile.h" #include #include #include diff --git a/OdbDesignLib/FileModel/Design/FeaturesFile.cpp b/OdbDesignLib/FileModel/Design/FeaturesFile.cpp index 67f81ca9..e998e8b5 100644 --- a/OdbDesignLib/FileModel/Design/FeaturesFile.cpp +++ b/OdbDesignLib/FileModel/Design/FeaturesFile.cpp @@ -1,5 +1,4 @@ #include "FeaturesFile.h" -#include "FeaturesFile.h" #include "ArchiveExtractor.h" #include #include "Logger.h" diff --git a/OdbDesignLib/FileModel/Design/FileArchive.cpp b/OdbDesignLib/FileModel/Design/FileArchive.cpp index b2f8b74c..862061e5 100644 --- a/OdbDesignLib/FileModel/Design/FileArchive.cpp +++ b/OdbDesignLib/FileModel/Design/FileArchive.cpp @@ -1,6 +1,4 @@ #include "FileArchive.h" -#include "FileArchive.h" -#include "FileArchive.h" #include #include "ArchiveExtractor.h" #include "MiscInfoFile.h" diff --git a/OdbDesignLib/FileModel/Design/LayerDirectory.cpp b/OdbDesignLib/FileModel/Design/LayerDirectory.cpp index c8f999a2..df945281 100644 --- a/OdbDesignLib/FileModel/Design/LayerDirectory.cpp +++ b/OdbDesignLib/FileModel/Design/LayerDirectory.cpp @@ -1,10 +1,4 @@ #include "LayerDirectory.h" -#include "LayerDirectory.h" -#include "LayerDirectory.h" -#include "LayerDirectory.h" -#include "LayerDirectory.h" -#include "LayerDirectory.h" -#include "LayerDirectory.h" #include "Logger.h" namespace Odb::Lib::FileModel::Design diff --git a/OdbDesignLib/FileModel/Design/NetlistFile.cpp b/OdbDesignLib/FileModel/Design/NetlistFile.cpp index e30d2ee3..bad36498 100644 --- a/OdbDesignLib/FileModel/Design/NetlistFile.cpp +++ b/OdbDesignLib/FileModel/Design/NetlistFile.cpp @@ -1,11 +1,4 @@ #include "NetlistFile.h" -#include "NetlistFile.h" -#include "NetlistFile.h" -#include "NetlistFile.h" -#include "NetlistFile.h" -#include "NetlistFile.h" -#include "NetlistFile.h" -#include "NetlistFile.h" #include #include #include diff --git a/OdbDesignLib/FileModel/Design/StandardFontsFile.cpp b/OdbDesignLib/FileModel/Design/StandardFontsFile.cpp index c3d846a0..040a0758 100644 --- a/OdbDesignLib/FileModel/Design/StandardFontsFile.cpp +++ b/OdbDesignLib/FileModel/Design/StandardFontsFile.cpp @@ -1,6 +1,4 @@ #include "StandardFontsFile.h" -#include "StandardFontsFile.h" - #include "Logger.h" #include #include "str_utils.h" diff --git a/OdbDesignLib/FileModel/Design/StepDirectory.cpp b/OdbDesignLib/FileModel/Design/StepDirectory.cpp index 3b9ec457..02cad732 100644 --- a/OdbDesignLib/FileModel/Design/StepDirectory.cpp +++ b/OdbDesignLib/FileModel/Design/StepDirectory.cpp @@ -1,6 +1,4 @@ #include "StepDirectory.h" -#include "StepDirectory.h" -#include "StepDirectory.h" #include #include "LayerDirectory.h" #include From 494d75023e777936795e2ed6974227cba5d62a04 Mon Sep 17 00:00:00 2001 From: Nathan Miller Date: Tue, 23 Apr 2024 09:45:31 -0700 Subject: [PATCH 003/168] add ISaveable interface --- OdbDesignLib/FileModel/ISaveable.h | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100644 OdbDesignLib/FileModel/ISaveable.h diff --git a/OdbDesignLib/FileModel/ISaveable.h b/OdbDesignLib/FileModel/ISaveable.h new file mode 100644 index 00000000..e1436579 --- /dev/null +++ b/OdbDesignLib/FileModel/ISaveable.h @@ -0,0 +1,16 @@ +#pragma once + +#include +#include "../odbdesign_export.h" + +namespace Odb::Lib::FileModel +{ + class ISaveable + { + public: + virtual bool Save(const std::filesystem::path& directory) = 0; + + protected: + ISaveable() = default; + }; +} \ No newline at end of file From d22717fdfbb15cb1f2cdb2e63de7547eb9ee39cf Mon Sep 17 00:00:00 2001 From: Nathan Miller Date: Tue, 23 Apr 2024 09:45:48 -0700 Subject: [PATCH 004/168] use static_cast instead of c-style cast --- OdbDesignLib/ProductModel/Design.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/OdbDesignLib/ProductModel/Design.cpp b/OdbDesignLib/ProductModel/Design.cpp index ff32ca8c..b896626a 100644 --- a/OdbDesignLib/ProductModel/Design.cpp +++ b/OdbDesignLib/ProductModel/Design.cpp @@ -417,7 +417,7 @@ namespace Odb::Lib::ProductModel //auto subnetNumber = pToeprintRecord->subnetNumber; // -1 means no connection for the component pin - if (netNumber != (unsigned int)-1) + if (netNumber != static_cast(-1)) { if (!CreatePinConnection(refDes, netNumber, pinNumber, toeprintName)) return false; } From 4f05e6f947290d2163841de649d18cd68a157294 Mon Sep 17 00:00:00 2001 From: Nathan Miller Date: Tue, 23 Apr 2024 09:45:56 -0700 Subject: [PATCH 005/168] create ISaveable hierarchy for saving the FileArchive and its constituents --- .../FileModel/Design/ComponentsFile.cpp | 5 ++ .../FileModel/Design/ComponentsFile.h | 18 ++-- OdbDesignLib/FileModel/Design/EdaDataFile.cpp | 7 +- OdbDesignLib/FileModel/Design/EdaDataFile.h | 7 +- .../FileModel/Design/FeaturesFile.cpp | 5 ++ OdbDesignLib/FileModel/Design/FeaturesFile.h | 5 +- OdbDesignLib/FileModel/Design/FileArchive.cpp | 85 ++++++++++++------- OdbDesignLib/FileModel/Design/FileArchive.h | 14 +-- .../FileModel/Design/LayerDirectory.cpp | 26 ++++++ .../FileModel/Design/LayerDirectory.h | 5 +- OdbDesignLib/FileModel/Design/NetlistFile.cpp | 21 +++++ OdbDesignLib/FileModel/Design/NetlistFile.h | 14 ++- .../FileModel/Design/StepDirectory.cpp | 43 ++++++++++ OdbDesignLib/FileModel/Design/StepDirectory.h | 5 +- OdbDesignLib/FileModel/Design/StepHdrFile.cpp | 5 ++ OdbDesignLib/FileModel/Design/StepHdrFile.h | 5 +- .../FileModel/Design/SymbolsDirectory.cpp | 20 +++++ .../FileModel/Design/SymbolsDirectory.h | 5 +- 18 files changed, 238 insertions(+), 57 deletions(-) diff --git a/OdbDesignLib/FileModel/Design/ComponentsFile.cpp b/OdbDesignLib/FileModel/Design/ComponentsFile.cpp index b51385c1..f5e91040 100644 --- a/OdbDesignLib/FileModel/Design/ComponentsFile.cpp +++ b/OdbDesignLib/FileModel/Design/ComponentsFile.cpp @@ -149,6 +149,11 @@ namespace Odb::Lib::FileModel::Design } } + bool ComponentsFile::Save(std::ostream& os) + { + return true; + } + std::unique_ptr ComponentsFile::BomDescriptionRecord::to_protobuf() const { std::unique_ptr pBomDescriptionRecordMessage(new Odb::Lib::Protobuf::ComponentsFile::BomDescriptionRecord); diff --git a/OdbDesignLib/FileModel/Design/ComponentsFile.h b/OdbDesignLib/FileModel/Design/ComponentsFile.h index 100dd8a3..4b60de3c 100644 --- a/OdbDesignLib/FileModel/Design/ComponentsFile.h +++ b/OdbDesignLib/FileModel/Design/ComponentsFile.h @@ -11,17 +11,20 @@ #include "PropertyRecord.h" #include "../../ProtoBuf/componentsfile.pb.h" #include "AttributeLookupTable.h" +#include "../IStreamSaveable.h" namespace Odb::Lib::FileModel::Design { - class ODBDESIGN_EXPORT ComponentsFile : public IProtoBuffable + class ODBDESIGN_EXPORT ComponentsFile : public IProtoBuffable, public IStreamSaveable { public: ComponentsFile(); ~ComponentsFile(); bool Parse(std::filesystem::path directory); + // Inherited via IStreamSaveable + bool Save(std::ostream& os) override; std::string GetUnits() const; BoardSide GetSide() const; @@ -123,7 +126,7 @@ namespace Odb::Lib::FileModel::Design constexpr inline static const char* TOP_COMPONENTS_LAYER_NAME = "comp_+_top"; constexpr inline static const char* BOTTOM_COMPONENTS_LAYER_NAME = "comp_+_bot"; - + // Inherited via IProtoBuffable std::unique_ptr to_protobuf() const override; void from_protobuf(const Odb::Lib::Protobuf::ComponentsFile& message) override; @@ -148,9 +151,9 @@ namespace Odb::Lib::FileModel::Design const bool m_allowToepintNetNumbersOfNegative1 = true; constexpr inline static const char* COMPONENTS_FILENAMES[] = - { - "components", - "components2", + { + "components", + "components2", "components3" }; @@ -168,6 +171,7 @@ namespace Odb::Lib::FileModel::Design constexpr inline static const char* BOM_DESCR_RECORD_TOKEN_VPL_VND = "VPL_VND"; constexpr inline static const char* BOM_DESCR_RECORD_TOKEN_VPL_MPN = "VPL_MPN"; constexpr inline static const char* BOM_DESCR_RECORD_TOKEN_VND = "VND"; - constexpr inline static const char* BOM_DESCR_RECORD_TOKEN_MPN = "MPN"; -}; + constexpr inline static const char* BOM_DESCR_RECORD_TOKEN_MPN = "MPN"; + + }; } \ No newline at end of file diff --git a/OdbDesignLib/FileModel/Design/EdaDataFile.cpp b/OdbDesignLib/FileModel/Design/EdaDataFile.cpp index 4830ad6a..4be2e5c2 100644 --- a/OdbDesignLib/FileModel/Design/EdaDataFile.cpp +++ b/OdbDesignLib/FileModel/Design/EdaDataFile.cpp @@ -366,7 +366,12 @@ namespace Odb::Lib::FileModel::Design pFeatureGroupRecord->from_protobuf(featureGroupRecordMessage); m_featureGroupRecords.push_back(pFeatureGroupRecord); } - } + } + + bool EdaDataFile::Save(std::ostream& os) + { + return true; + } bool EdaDataFile::Parse(std::filesystem::path path) { diff --git a/OdbDesignLib/FileModel/Design/EdaDataFile.h b/OdbDesignLib/FileModel/Design/EdaDataFile.h index 5b8338b5..265443ad 100644 --- a/OdbDesignLib/FileModel/Design/EdaDataFile.h +++ b/OdbDesignLib/FileModel/Design/EdaDataFile.h @@ -12,11 +12,12 @@ #include "PropertyRecord.h" #include "ContourPolygon.h" #include "AttributeLookupTable.h" +#include "../IStreamSaveable.h" namespace Odb::Lib::FileModel::Design { - class ODBDESIGN_EXPORT EdaDataFile : public IProtoBuffable + class ODBDESIGN_EXPORT EdaDataFile : public IProtoBuffable, public IStreamSaveable { public: EdaDataFile(bool logAllLineParsing = false); @@ -27,7 +28,9 @@ namespace Odb::Lib::FileModel::Design const std::string& GetUnits() const; const std::string& GetSource() const; - bool Parse(std::filesystem::path path); + bool Parse(std::filesystem::path path); + // Inherited via IStreamSaveable + bool Save(std::ostream& os) override; struct ODBDESIGN_EXPORT FeatureIdRecord : public IProtoBuffable { diff --git a/OdbDesignLib/FileModel/Design/FeaturesFile.cpp b/OdbDesignLib/FileModel/Design/FeaturesFile.cpp index e998e8b5..66b53071 100644 --- a/OdbDesignLib/FileModel/Design/FeaturesFile.cpp +++ b/OdbDesignLib/FileModel/Design/FeaturesFile.cpp @@ -857,6 +857,11 @@ namespace Odb::Lib::FileModel::Design } } + bool FeaturesFile::Save(std::ostream& os) + { + return true; + } + FeaturesFile::FeatureRecord::~FeatureRecord() { m_contourPolygons.clear(); diff --git a/OdbDesignLib/FileModel/Design/FeaturesFile.h b/OdbDesignLib/FileModel/Design/FeaturesFile.h index 5f24cb9f..526491fb 100644 --- a/OdbDesignLib/FileModel/Design/FeaturesFile.h +++ b/OdbDesignLib/FileModel/Design/FeaturesFile.h @@ -9,11 +9,12 @@ #include "../../ProtoBuf/featuresfile.pb.h" #include "SymbolName.h" #include "AttributeLookupTable.h" +#include "../IStreamSaveable.h" namespace Odb::Lib::FileModel::Design { - class FeaturesFile : public IProtoBuffable + class FeaturesFile : public IProtoBuffable, public IStreamSaveable { public: FeaturesFile(); @@ -86,6 +87,8 @@ namespace Odb::Lib::FileModel::Design }; bool Parse(std::filesystem::path directory, const std::string& alternateFilename = ""); + // Inherited via IStreamSaveable + bool Save(std::ostream& os) override; std::string GetUnits() const; std::filesystem::path GetPath(); diff --git a/OdbDesignLib/FileModel/Design/FileArchive.cpp b/OdbDesignLib/FileModel/Design/FileArchive.cpp index 862061e5..aff10335 100644 --- a/OdbDesignLib/FileModel/Design/FileArchive.cpp +++ b/OdbDesignLib/FileModel/Design/FileArchive.cpp @@ -64,7 +64,7 @@ namespace Odb::Lib::FileModel::Design if (is_regular_file(m_filePath)) { - std::filesystem::path extractedPath; + path extractedPath; if (!ExtractDesignArchive(m_filePath, extractedPath)) { logerror("failed to extract archive: (" + m_filePath + ")"); @@ -106,7 +106,12 @@ namespace Odb::Lib::FileModel::Design return false; } - bool FileArchive::SaveFileModel(const std::filesystem::path& directory, const std::string& archiveName) + bool FileArchive::SaveFileModel(const std::string& directory, const std::string& archiveName) + { + return SaveFileModel(path(directory), archiveName); + } + + bool FileArchive::SaveFileModel(const path& directory, const std::string& archiveName) { // create directory in /tmp // write dir structure and files to it @@ -114,16 +119,21 @@ namespace Odb::Lib::FileModel::Design // move archive to directory char szTmpNameBuff[L_tmpnam] = { 0 }; - std::tmpnam(szTmpNameBuff); - std::string strTempName(szTmpNameBuff); + std::tmpnam(szTmpNameBuff); - const auto tempPath = temp_directory_path() / strTempName; + const auto tempPath = temp_directory_path() / szTmpNameBuff; - if (!std::filesystem::create_directory(tempPath)) return false; + if (!create_directory(tempPath)) return false; + if (!Save(tempPath)) return false; + + return true; + } + bool FileArchive::Save(const path& directory) + { // MiscInfoFile - auto miscPath = tempPath / "misc"; - if (!std::filesystem::create_directory(miscPath)) return false; + auto miscPath = directory / "misc"; + if (!create_directory(miscPath)) return false; std::ofstream ofs1(miscPath / "info"); if (!m_miscInfoFile.Save(ofs1)) return false; @@ -135,41 +145,50 @@ namespace Odb::Lib::FileModel::Design ofs2.close(); // StandardFontsFile - auto fontsPath = tempPath / "fonts"; - if (!std::filesystem::create_directory(fontsPath)) return false; + auto fontsPath = directory / "fonts"; + if (!create_directory(fontsPath)) return false; std::ofstream ofs3(fontsPath / "standard"); if (!m_standardFontsFile.Save(ofs3)) return false; ofs3.close(); // MatrixFile - auto matrixPath = tempPath / "matrix"; - if (!std::filesystem::create_directory(matrixPath)) return false; + auto matrixPath = directory / "matrix"; + if (!create_directory(matrixPath)) return false; std::ofstream ofs4(matrixPath / "matrix"); if (!m_matrixFile.Save(ofs4)) return false; ofs4.close(); - return true; - } + // Steps + const auto stepsDirectory = directory / "steps"; + for (auto& kvStepDirectory : m_stepsByName) + { + if (!kvStepDirectory.second->Save(stepsDirectory)) return false; + } - bool FileArchive::SaveFileModel(const std::string& directory, const std::string& archiveName) - { - return SaveFileModel(std::filesystem::path(directory), archiveName); + // Symbols + const auto symbolsDirectory = directory / "symbols"; + for (auto& kvSymbolsDirectory : m_symbolsDirectoriesByName) + { + if (!kvSymbolsDirectory.second->Save(symbolsDirectory)) return false; + } + + return true; } - bool FileArchive::ExtractDesignArchive(const std::filesystem::path& path, std::filesystem::path& extractedPath) + bool FileArchive::ExtractDesignArchive(const path& archivePath, path& extractedPath) { loginfo("Extracting... "); - if (!Utils::ArchiveExtractor::IsArchiveTypeSupported(path)) + if (!Utils::ArchiveExtractor::IsArchiveTypeSupported(archivePath)) { - logerror("Unsupported archive type: (" + path.string() + ")"); + logerror("Unsupported archive type: (" + archivePath.string() + ")"); return false; } - Utils::ArchiveExtractor extractor(path.string()); + Utils::ArchiveExtractor extractor(archivePath.string()); if (!extractor.Extract()) return false; - auto extracted = std::filesystem::path(extractor.GetExtractionDirectory()); + auto extracted = path(extractor.GetExtractionDirectory()); if (!exists(extracted)) return false; extractedPath = extracted; @@ -203,7 +222,7 @@ namespace Odb::Lib::FileModel::Design } } - /*static*/ bool FileArchive::pathContainsTopLevelDesignDirs(const std::filesystem::path& path) + /*static*/ bool FileArchive::pathContainsTopLevelDesignDirs(const path& path) { for (const auto& topLevelRootDirName : TOPLEVEL_DESIGN_DIR_NAMES) { @@ -260,7 +279,7 @@ namespace Odb::Lib::FileModel::Design } } - bool FileArchive::ParseDesignDirectory(const std::filesystem::path& path) + bool FileArchive::ParseDesignDirectory(const path& path) { if (!exists(path)) return false; else if (!is_directory(path)) return false; @@ -277,7 +296,7 @@ namespace Odb::Lib::FileModel::Design return true; } - bool FileArchive::ParseStepDirectories(const std::filesystem::path& path) + bool FileArchive::ParseStepDirectories(const path& path) { loginfo("Parsing steps..."); @@ -319,7 +338,7 @@ namespace Odb::Lib::FileModel::Design return true; } - bool FileArchive::ParseMiscAttrListFile(const std::filesystem::path& path) + bool FileArchive::ParseMiscAttrListFile(const path& path) { loginfo("Parsing misc/attrlist file..."); @@ -334,7 +353,7 @@ namespace Odb::Lib::FileModel::Design return true; } - bool FileArchive::ParseMatrixFile(const std::filesystem::path& path) + bool FileArchive::ParseMatrixFile(const path& path) { loginfo("Parsing matrix/matrix file..."); @@ -348,7 +367,7 @@ namespace Odb::Lib::FileModel::Design return true; } - bool FileArchive::ParseStandardFontsFile(const std::filesystem::path& path) + bool FileArchive::ParseStandardFontsFile(const path& path) { loginfo("Parsing fonts/standard file..."); @@ -363,26 +382,26 @@ namespace Odb::Lib::FileModel::Design return true; } - bool FileArchive::ParseSymbolsDirectories(const std::filesystem::path& path) + bool FileArchive::ParseSymbolsDirectories(const path& path) { loginfo("Parsing symbols root directory..."); auto symbolsDirectory = path / "symbols"; - if (!std::filesystem::exists(symbolsDirectory)) + if (!exists(symbolsDirectory)) { logwarn("symbols root directory does not exist (" + symbolsDirectory.string() + ")"); return true; } - else if (!std::filesystem::is_directory(symbolsDirectory)) + else if (!is_directory(symbolsDirectory)) { logerror("symbols root directory exists but is a regular file/not a directory (" + symbolsDirectory.string() + ")"); return false; } - for (auto& d : std::filesystem::directory_iterator(symbolsDirectory)) + for (auto& d : directory_iterator(symbolsDirectory)) { - if (std::filesystem::is_directory(d)) + if (is_directory(d)) { auto pSymbolsDirectory = std::make_shared(d.path()); if (pSymbolsDirectory->Parse()) diff --git a/OdbDesignLib/FileModel/Design/FileArchive.h b/OdbDesignLib/FileModel/Design/FileArchive.h index 6ffdf545..d12df338 100644 --- a/OdbDesignLib/FileModel/Design/FileArchive.h +++ b/OdbDesignLib/FileModel/Design/FileArchive.h @@ -14,11 +14,12 @@ #include "../../ProtoBuf/filearchive.pb.h" #include "SymbolsDirectory.h" #include "AttrListFile.h" +#include "../ISaveable.h" namespace Odb::Lib::FileModel::Design { - class ODBDESIGN_EXPORT FileArchive : public IProtoBuffable + class ODBDESIGN_EXPORT FileArchive : public IProtoBuffable, public ISaveable { public: FileArchive(std::string path); @@ -41,11 +42,11 @@ namespace Odb::Lib::FileModel::Design // TODO: fix these to use pointer return types //const EdaDataFile& GetStepEdaDataFile(std::string stepName) const; //const EdaDataFile& GetFirstStepEdaDataFile() const; - - + bool ParseFileModel(); bool SaveFileModel(const std::filesystem::path& directory, const std::string& archiveName); bool SaveFileModel(const std::string& directory, const std::string& archiveName); + bool Save(const std::filesystem::path& directory); // Inherited via IProtoBuffable std::unique_ptr to_protobuf() const override; @@ -60,13 +61,14 @@ namespace Odb::Lib::FileModel::Design std::string m_filename; std::string m_filePath; - StepDirectory::StringMap m_stepsByName; - MiscInfoFile m_miscInfoFile; + MiscInfoFile m_miscInfoFile; MatrixFile m_matrixFile; StandardFontsFile m_standardFontsFile; - SymbolsDirectory::StringMap m_symbolsDirectoriesByName; AttrListFile m_miscAttrListFile; + StepDirectory::StringMap m_stepsByName; + SymbolsDirectory::StringMap m_symbolsDirectoriesByName; + bool ParseDesignDirectory(const std::filesystem::path& path); bool ParseStepDirectories(const std::filesystem::path& path); bool ParseMiscInfoFile(const std::filesystem::path& path); diff --git a/OdbDesignLib/FileModel/Design/LayerDirectory.cpp b/OdbDesignLib/FileModel/Design/LayerDirectory.cpp index df945281..4717c285 100644 --- a/OdbDesignLib/FileModel/Design/LayerDirectory.cpp +++ b/OdbDesignLib/FileModel/Design/LayerDirectory.cpp @@ -89,4 +89,30 @@ namespace Odb::Lib::FileModel::Design m_featuresFile.from_protobuf(message.featurefile()); m_attrListFile.from_protobuf(message.attrlistfile()); } + + bool LayerDirectory::Save(const std::filesystem::path& directory) + { + auto layerDir = directory / m_name; + if (!create_directory(layerDir)) return false; + + //ComponentsFile m_componentsFile; + std::ofstream componentsFile(layerDir / "components"); + if (!componentsFile.is_open()) return false; + if (!m_componentsFile.Save(componentsFile)) return false; + componentsFile.close(); + + //FeaturesFile m_featuresFile; + std::ofstream featuresFile(layerDir / "features"); + if (!featuresFile.is_open()) return false; + if (!m_featuresFile.Save(featuresFile)) return false; + featuresFile.close(); + + //AttrListFile m_attrListFile; + std::ofstream attrlistFile(layerDir / "attrlist"); + if (!attrlistFile.is_open()) return false; + if (!m_attrListFile.Save(attrlistFile)) return false; + attrlistFile.close(); + + return true; + } } \ No newline at end of file diff --git a/OdbDesignLib/FileModel/Design/LayerDirectory.h b/OdbDesignLib/FileModel/Design/LayerDirectory.h index 2f930cbd..34a51665 100644 --- a/OdbDesignLib/FileModel/Design/LayerDirectory.h +++ b/OdbDesignLib/FileModel/Design/LayerDirectory.h @@ -10,11 +10,12 @@ #include "../../ProtoBuf/layerdirectory.pb.h" #include "FeaturesFile.h" #include "AttrListFile.h" +#include "../ISaveable.h" namespace Odb::Lib::FileModel::Design { - class ODBDESIGN_EXPORT LayerDirectory : public IProtoBuffable + class ODBDESIGN_EXPORT LayerDirectory : public IProtoBuffable, public ISaveable { public: LayerDirectory(std::filesystem::path path); @@ -24,6 +25,8 @@ namespace Odb::Lib::FileModel::Design std::filesystem::path GetPath() const; bool Parse(); + // Inherited via ISaveable + bool Save(const std::filesystem::path& directory) override; bool ParseComponentsFile(std::filesystem::path directory); bool ParseFeaturesFile(std::filesystem::path directory); diff --git a/OdbDesignLib/FileModel/Design/NetlistFile.cpp b/OdbDesignLib/FileModel/Design/NetlistFile.cpp index bad36498..cf2d8f74 100644 --- a/OdbDesignLib/FileModel/Design/NetlistFile.cpp +++ b/OdbDesignLib/FileModel/Design/NetlistFile.cpp @@ -5,6 +5,9 @@ #include "../parse_error.h" #include "../invalid_odb_error.h" #include +#include + +using namespace std::filesystem; namespace Odb::Lib::FileModel::Design { @@ -341,6 +344,24 @@ namespace Odb::Lib::FileModel::Design } } + bool NetlistFile::Save(std::ostream& os) + { + return true; + } + + bool NetlistFile::Save(const std::filesystem::path& directory) + { + auto netlistDir = directory / m_name; + if (!create_directory(netlistDir)) return false; + + std::ofstream netlistFile(netlistDir / "netlist"); + if (!netlistFile.is_open()) return false; + if (! Save(netlistFile)) return false; + netlistFile.close(); + + return true; + } + std::unique_ptr NetlistFile::NetRecord::to_protobuf() const { std::unique_ptr pNetRecordMessage(new Odb::Lib::Protobuf::NetlistFile::NetRecord); diff --git a/OdbDesignLib/FileModel/Design/NetlistFile.h b/OdbDesignLib/FileModel/Design/NetlistFile.h index 91bf8d95..1d794bbd 100644 --- a/OdbDesignLib/FileModel/Design/NetlistFile.h +++ b/OdbDesignLib/FileModel/Design/NetlistFile.h @@ -8,11 +8,13 @@ #include "../../odbdesign_export.h" #include "../../IProtoBuffable.h" #include "../../ProtoBuf/netlistfile.pb.h" +#include "../ISaveable.h" +#include "../IStreamSaveable.h" namespace Odb::Lib::FileModel::Design { - class ODBDESIGN_EXPORT NetlistFile : public IProtoBuffable + class ODBDESIGN_EXPORT NetlistFile : public IProtoBuffable, public ISaveable, public IStreamSaveable { public: struct ODBDESIGN_EXPORT NetRecord : public IProtoBuffable @@ -88,6 +90,8 @@ namespace Odb::Lib::FileModel::Design const NetPointRecord::Vector& GetNetPointRecords() const; bool Parse(); + // Inherited via ISaveable + bool Save(const std::filesystem::path& directory) override; // Inherited via IProtoBuffable std::unique_ptr to_protobuf() const override; @@ -109,7 +113,11 @@ namespace Odb::Lib::FileModel::Design inline constexpr static const char* UNITS_TOKEN = "UNITS"; inline constexpr static const char* COMMENT_TOKEN = "#"; - inline constexpr static const char* HEADER_TOKEN = "H"; + inline constexpr static const char* HEADER_TOKEN = "H"; - }; // NetlistFile + + // Inherited via IStreamSaveable + bool Save(std::ostream& os) override; + +}; // NetlistFile } \ No newline at end of file diff --git a/OdbDesignLib/FileModel/Design/StepDirectory.cpp b/OdbDesignLib/FileModel/Design/StepDirectory.cpp index 02cad732..d726d793 100644 --- a/OdbDesignLib/FileModel/Design/StepDirectory.cpp +++ b/OdbDesignLib/FileModel/Design/StepDirectory.cpp @@ -170,6 +170,49 @@ namespace Odb::Lib::FileModel::Design return success; } + bool StepDirectory::Save(const std::filesystem::path& directory) + { + // eda/data + auto edaPath = directory / "eda"; + if (!create_directory(edaPath)) return false; + std::ofstream edaDataFile(edaPath / "data"); + if (!m_edaData.Save(edaDataFile)) return false; + edaDataFile.close(); + + // attrlist + std::ofstream attrlistFile(directory / "attrlist"); + if (!m_attrListFile.Save(attrlistFile)) return false; + attrlistFile.close(); + + // profile + std::ofstream profileFile(directory / "profile"); + if (!m_profileFile.Save(profileFile)) return false; + profileFile.close(); + + // StepHdrFile + std::ofstream stephdrFile(directory / "stephdr"); + if (!m_stepHdrFile.Save(stephdrFile)) return false; + stephdrFile.close(); + + // layers + auto layersPath = directory / "layers"; + if (!create_directory(layersPath)) return false; + for (auto& kvLayer : m_layersByName) + { + if (!kvLayer.second->Save(layersPath)) return false; + } + + // m_netlistsByName; + auto netlistsPath = directory / "netlists"; + if (!create_directory(netlistsPath)) return false; + for (auto& kvNetlist : m_netlistsByName) + { + if (!kvNetlist.second->Save(netlistsPath)) return false; + } + + return true; + } + std::unique_ptr StepDirectory::to_protobuf() const { std::unique_ptr pStepDirectoryMessage(new Odb::Lib::Protobuf::StepDirectory); diff --git a/OdbDesignLib/FileModel/Design/StepDirectory.h b/OdbDesignLib/FileModel/Design/StepDirectory.h index 38533da2..35a55815 100644 --- a/OdbDesignLib/FileModel/Design/StepDirectory.h +++ b/OdbDesignLib/FileModel/Design/StepDirectory.h @@ -14,11 +14,12 @@ #include "ComponentsFile.h" #include "AttrListFile.h" #include "StepHdrFile.h" +#include "../ISaveable.h" namespace Odb::Lib::FileModel::Design { - class ODBDESIGN_EXPORT StepDirectory : public IProtoBuffable + class ODBDESIGN_EXPORT StepDirectory : public IProtoBuffable, public ISaveable { public: StepDirectory(std::filesystem::path path); @@ -38,6 +39,8 @@ namespace Odb::Lib::FileModel::Design const ComponentsFile* GetBottomComponentsFile() const; bool Parse(); + // Inherited via ISaveable + bool Save(const std::filesystem::path& directory) override; typedef std::map> StringMap; diff --git a/OdbDesignLib/FileModel/Design/StepHdrFile.cpp b/OdbDesignLib/FileModel/Design/StepHdrFile.cpp index c0fe49fb..9f7e49ab 100644 --- a/OdbDesignLib/FileModel/Design/StepHdrFile.cpp +++ b/OdbDesignLib/FileModel/Design/StepHdrFile.cpp @@ -351,6 +351,11 @@ namespace Odb::Lib::FileModel::Design } } + bool StepHdrFile::Save(std::ostream& os) + { + return true; + } + std::unique_ptr StepHdrFile::StepRepeatRecord::to_protobuf() const { auto message = std::make_unique(); diff --git a/OdbDesignLib/FileModel/Design/StepHdrFile.h b/OdbDesignLib/FileModel/Design/StepHdrFile.h index 8a5a0875..9a3acfae 100644 --- a/OdbDesignLib/FileModel/Design/StepHdrFile.h +++ b/OdbDesignLib/FileModel/Design/StepHdrFile.h @@ -8,10 +8,11 @@ #include "../../IProtoBuffable.h" #include "../../ProtoBuf/stephdrfile.pb.h" #include "../OdbFile.h" +#include "../IStreamSaveable.h" namespace Odb::Lib::FileModel::Design { - class ODBDESIGN_EXPORT StepHdrFile : public OdbFile, public IProtoBuffable + class ODBDESIGN_EXPORT StepHdrFile : public OdbFile, public IProtoBuffable, public IStreamSaveable { public: virtual ~StepHdrFile(); @@ -39,6 +40,8 @@ namespace Odb::Lib::FileModel::Design }; bool Parse(std::filesystem::path path) override; + // Inherited via IStreamSaveable + bool Save(std::ostream& os) override; // Inherited via IProtoBuffable std::unique_ptr to_protobuf() const override; diff --git a/OdbDesignLib/FileModel/Design/SymbolsDirectory.cpp b/OdbDesignLib/FileModel/Design/SymbolsDirectory.cpp index 44c2eeba..27258fb8 100644 --- a/OdbDesignLib/FileModel/Design/SymbolsDirectory.cpp +++ b/OdbDesignLib/FileModel/Design/SymbolsDirectory.cpp @@ -61,4 +61,24 @@ namespace Odb::Lib::FileModel::Design { return m_attrListFile.Parse(directory); } + + bool SymbolsDirectory::Save(const std::filesystem::path& directory) + { + auto symbolDir = directory / m_name; + if (!create_directory(symbolDir)) return false; + + //FeaturesFile m_featuresFile; + std::ofstream featuresFile(symbolDir / "features"); + if (!featuresFile.is_open()) return false; + if (!m_featuresFile.Save(featuresFile)) return false; + featuresFile.close(); + + //AttrListFile m_attrListFile; + std::ofstream attrlistFile(symbolDir / "attrlist"); + if (!attrlistFile.is_open()) return false; + if (!m_attrListFile.Save(attrlistFile)) return false; + attrlistFile.close(); + + return false; + } } \ No newline at end of file diff --git a/OdbDesignLib/FileModel/Design/SymbolsDirectory.h b/OdbDesignLib/FileModel/Design/SymbolsDirectory.h index 1632733b..f2c5e2b8 100644 --- a/OdbDesignLib/FileModel/Design/SymbolsDirectory.h +++ b/OdbDesignLib/FileModel/Design/SymbolsDirectory.h @@ -10,10 +10,11 @@ #include #include "../../IProtoBuffable.h" #include "../../ProtoBuf/symbolsdirectory.pb.h" +#include "../ISaveable.h" namespace Odb::Lib::FileModel::Design { - class ODBDESIGN_EXPORT SymbolsDirectory : public IProtoBuffable + class ODBDESIGN_EXPORT SymbolsDirectory : public IProtoBuffable, public ISaveable { public: SymbolsDirectory(const std::filesystem::path& path); @@ -22,6 +23,8 @@ namespace Odb::Lib::FileModel::Design typedef std::map> StringMap; bool Parse(); + // Inherited via ISaveable + bool Save(const std::filesystem::path& directory) override; std::string GetName() const; std::filesystem::path GetPath() const; From de5af902217ba2a8ddf1ad2d6ea1a8f37c71604d Mon Sep 17 00:00:00 2001 From: Nathan Miller Date: Tue, 23 Apr 2024 15:27:17 -0700 Subject: [PATCH 006/168] compression and moving of saved file archive working --- OdbDesignLib/App/OdbAppBase.cpp | 20 +- OdbDesignLib/FileModel/Design/FileArchive.cpp | 32 +++- OdbDesignLib/FileModel/Design/FileArchive.h | 5 +- .../FileModel/Design/SymbolsDirectory.cpp | 2 +- Utils/libarchive_extract.cpp | 172 +++++++++++------- Utils/libarchive_extract.h | 13 +- 6 files changed, 165 insertions(+), 79 deletions(-) diff --git a/OdbDesignLib/App/OdbAppBase.cpp b/OdbDesignLib/App/OdbAppBase.cpp index 98fd9ec5..bae7f6f8 100644 --- a/OdbDesignLib/App/OdbAppBase.cpp +++ b/OdbDesignLib/App/OdbAppBase.cpp @@ -1,7 +1,9 @@ #include "OdbServerAppBase.h" #include "Logger.h" +#include using namespace Utils; +using namespace std::filesystem; namespace Odb::Lib::App { @@ -46,17 +48,27 @@ namespace Odb::Lib::App try { auto pFileArchive = - designs().GetDesign(args().loadDesign()); - //designs().GetFileArchive(args().loadDesign()); + //designs().GetDesign(args().loadDesign()); + designs().GetFileArchive(args().loadDesign()); if (pFileArchive == nullptr) { logerror("Failed to load design specified in arguments \"" + args().loadDesign() + "\""); return Utils::ExitCode::FailedInitLoadDesign; } + else + { + //std::string filename = + pFileArchive->SaveFileModel(".", "notused"); + } + } + catch (filesystem_error& fe) + { + logexception(fe); + logerror("filesystem_error: \"" + args().loadDesign() + "\" " + fe.what()); } - catch (std::exception&) + catch (std::exception& e) { - //logexception(e); + logexception(e); logerror("Failed to load design specified in arguments \"" + args().loadDesign() + "\""); return Utils::ExitCode::FailedInitLoadDesign; } diff --git a/OdbDesignLib/FileModel/Design/FileArchive.cpp b/OdbDesignLib/FileModel/Design/FileArchive.cpp index aff10335..23dcf323 100644 --- a/OdbDesignLib/FileModel/Design/FileArchive.cpp +++ b/OdbDesignLib/FileModel/Design/FileArchive.cpp @@ -5,6 +5,8 @@ #include #include "Logger.h" #include "StopWatch.h" +#include "libarchive_extract.h" +#include "fastcopy.h" using namespace Utils; using namespace std::filesystem; @@ -106,10 +108,10 @@ namespace Odb::Lib::FileModel::Design return false; } - bool FileArchive::SaveFileModel(const std::string& directory, const std::string& archiveName) - { - return SaveFileModel(path(directory), archiveName); - } + //bool FileArchive::SaveFileModel(const std::string& directory, const std::string& archiveName) + //{ + // return SaveFileModel(path(directory), archiveName); + //} bool FileArchive::SaveFileModel(const path& directory, const std::string& archiveName) { @@ -121,10 +123,22 @@ namespace Odb::Lib::FileModel::Design char szTmpNameBuff[L_tmpnam] = { 0 }; std::tmpnam(szTmpNameBuff); - const auto tempPath = temp_directory_path() / szTmpNameBuff; - + auto tempPath = temp_directory_path() / szTmpNameBuff; if (!create_directory(tempPath)) return false; - if (!Save(tempPath)) return false; + + auto rootPath = tempPath / m_productName; + if (!create_directory(rootPath)) return false; + if (!Save(rootPath)) return false; + + // compress the written file structure + std::string createdArchivePath; + if (! Utils::compress(rootPath.string().c_str(), tempPath.string().c_str(), m_productName.c_str(), createdArchivePath)) return false; + + // move the compressed file to the requested save directory + path archiveFilename = path(createdArchivePath).filename(); + path destPath = directory / archiveFilename; + auto ec = Utils::fastcopy(createdArchivePath, destPath, true); + if (ec.value() != 0) return false; return true; } @@ -159,7 +173,8 @@ namespace Odb::Lib::FileModel::Design ofs4.close(); // Steps - const auto stepsDirectory = directory / "steps"; + const auto stepsDirectory = directory / "steps"; + if (!create_directory(stepsDirectory)) return false; for (auto& kvStepDirectory : m_stepsByName) { if (!kvStepDirectory.second->Save(stepsDirectory)) return false; @@ -167,6 +182,7 @@ namespace Odb::Lib::FileModel::Design // Symbols const auto symbolsDirectory = directory / "symbols"; + if (!create_directory(symbolsDirectory)) return false; for (auto& kvSymbolsDirectory : m_symbolsDirectoriesByName) { if (!kvSymbolsDirectory.second->Save(symbolsDirectory)) return false; diff --git a/OdbDesignLib/FileModel/Design/FileArchive.h b/OdbDesignLib/FileModel/Design/FileArchive.h index d12df338..288e59cf 100644 --- a/OdbDesignLib/FileModel/Design/FileArchive.h +++ b/OdbDesignLib/FileModel/Design/FileArchive.h @@ -45,8 +45,7 @@ namespace Odb::Lib::FileModel::Design bool ParseFileModel(); bool SaveFileModel(const std::filesystem::path& directory, const std::string& archiveName); - bool SaveFileModel(const std::string& directory, const std::string& archiveName); - bool Save(const std::filesystem::path& directory); + //bool SaveFileModel(const std::string& directory, const std::string& archiveName); // Inherited via IProtoBuffable std::unique_ptr to_protobuf() const override; @@ -77,6 +76,8 @@ namespace Odb::Lib::FileModel::Design bool ParseSymbolsDirectories(const std::filesystem::path& path); bool ParseMiscAttrListFile(const std::filesystem::path& path); + bool Save(const std::filesystem::path& directory); + bool ExtractDesignArchive(const std::filesystem::path& path, std::filesystem::path& extractedPath); static std::string findRootDir(const std::filesystem::path& extractedPath); diff --git a/OdbDesignLib/FileModel/Design/SymbolsDirectory.cpp b/OdbDesignLib/FileModel/Design/SymbolsDirectory.cpp index 27258fb8..7e3e4825 100644 --- a/OdbDesignLib/FileModel/Design/SymbolsDirectory.cpp +++ b/OdbDesignLib/FileModel/Design/SymbolsDirectory.cpp @@ -79,6 +79,6 @@ namespace Odb::Lib::FileModel::Design if (!m_attrListFile.Save(attrlistFile)) return false; attrlistFile.close(); - return false; + return true; } } \ No newline at end of file diff --git a/Utils/libarchive_extract.cpp b/Utils/libarchive_extract.cpp index abc4efc5..40c10754 100644 --- a/Utils/libarchive_extract.cpp +++ b/Utils/libarchive_extract.cpp @@ -105,7 +105,7 @@ namespace Utils archive_write_free(ext); return true; - } + } int copy_data(struct archive* ar, struct archive* aw) { @@ -115,79 +115,125 @@ namespace Utils la_int64_t offset; la_ssize_t written; - for (;;) { + for (;;) + { r = archive_read_data_block(ar, &buff, &size, &offset); if (r == ARCHIVE_EOF) + { return (ARCHIVE_OK); - if (r < ARCHIVE_OK) + } + else if (r < ARCHIVE_OK) + { return (r); + } + written = archive_write_data_block(aw, buff, size, offset); - if (written < ARCHIVE_OK) { + if (written < ARCHIVE_OK) + { fprintf(stderr, "%s\n", archive_error_string(aw)); return (r); } } } - bool compress(const char* srcDir, const char* destDir, const char* archiveName) + constexpr inline static const char* TAR_GZIP_EXTENSION = ".tgz"; + const int COMPRESS_READ_BUFF_SIZE = 1024; + + bool compress(const char* srcDir, const char* destDir, const char* archiveName, std::string& fileOut, CompressionType type /* = CompressionType::TarGzip*/) { - - return false; - } + path destArchivePath = path(destDir) / archiveName; + switch (type) + { + case CompressionType::TarGzip: + destArchivePath.replace_extension(TAR_GZIP_EXTENSION); + break; + } - ////https://stackoverflow.com/a/23332055/4848067 - //QString directory = "/home/lpapp/tmp/stackoverflow/test"; - //struct archive* a; - //struct archive_entry* entry; - //struct stat st; - //char buff[8192]; - //size_t bytes_read; - //int fd; - - //QByteArray outArray = directory.toLocal8Bit() + ".tar"; - //char* outDirectory = outArray.data(); - //qDebug() << outDirectory; - - //QByteArray inputArray = directory.toLocal8Bit(); - //char* inputDirectory = inputArray.data(); - //qDebug() << inputDirectory; - - //QFileInfo inputInfo; - //inputInfo.setFile(directory); - - //// the name of the directory - //QByteArray pathArray = inputInfo.fileName().toLocal8Bit(); - //char* pathDirectory = pathArray.data(); - //qDebug() << pathDirectory; - - //a = archive_write_new(); - //archive_write_add_filter_gzip(a); - //archive_write_set_format_pax_restricted(a); - //archive_write_open_filename(a, outDirectory); - - //QDirIterator it(directory, QDirIterator::Subdirectories); - //while (it.hasNext()) { - // entry = archive_entry_new(); - // stat(inputDirectory, &st); - - // archive_entry_set_pathname(entry, it.next().toLocal8Bit().constData()); - // archive_entry_set_filetype(entry, AE_IFDIR); - // archive_entry_copy_stat(entry, &st); - // archive_write_header(a, entry); - - // fd = open(inputDirectory, O_RDONLY); - // bytes_read = read(fd, buff, sizeof(buff)); - // while (bytes_read > 0) { - // archive_write_data(a, buff, bytes_read); - // bytes_read = read(fd, buff, sizeof(buff)); - // } - // close(fd); - // archive_entry_free(entry); - - // archive_write_finish_entry(a); - // archive_write_close(a); - // archive_write_free(a); - //} - - //return 0; + struct archive* a = archive_write_new(); + if (archive_write_set_format_ustar(a) != ARCHIVE_OK) return false; + if (archive_write_add_filter_gzip(a) != ARCHIVE_OK) return false; + + if (archive_write_open_filename(a, destArchivePath.string().c_str()) != ARCHIVE_OK) return false; + + //// add top-level directory to the archive + auto root_entry = archive_entry_new(); + //auto rootDir = path(srcDir).parent_path().filename(); + auto rootDir = path(archiveName); + archive_entry_set_pathname(root_entry, rootDir.string().c_str()); + archive_entry_set_filetype(root_entry, AE_IFDIR); + if (archive_write_header(a, root_entry) != ARCHIVE_OK) return false; + archive_entry_free(root_entry); + + struct stat st { 0 }; + + // add files to the archive + for (const auto& it : recursive_directory_iterator(srcDir)) + { + if (it.is_directory()) + { + auto relativePath = relative(it.path(), srcDir); + auto dir_entry = archive_entry_new(); + archive_entry_set_pathname(dir_entry, (rootDir / relativePath).string().c_str()); + archive_entry_set_filetype(dir_entry, AE_IFDIR); + stat(it.path().string().c_str(), &st); + archive_entry_copy_stat(dir_entry, &st); + if (archive_write_header(a, dir_entry) != ARCHIVE_OK) return false; + archive_entry_free(dir_entry); + } + else if (it.is_regular_file()) + { + // write header + auto relativePath = relative(it.path(), srcDir); + auto file_entry = archive_entry_new(); + archive_entry_set_pathname(file_entry, (rootDir / relativePath).string().c_str()); + archive_entry_set_filetype(file_entry, AE_IFREG); + stat(it.path().string().c_str(), &st); + archive_entry_copy_stat(file_entry, &st); + if (archive_write_header(a, file_entry) != ARCHIVE_OK) return false; + + // read file and write to archive + char buffer[COMPRESS_READ_BUFF_SIZE]{ 0 }; + std::ifstream ifs(it.path()); + while (ifs.read(buffer, sizeof(buffer))) + { + if (COMPRESS_READ_BUFF_SIZE != archive_write_data(a, buffer, sizeof(buffer))) return false; + } + auto remaining = ifs.gcount(); + if (archive_write_data(a, buffer, remaining) != remaining) return false; + archive_entry_free(file_entry); + } + } + + // clean up + archive_write_finish_entry(a); + archive_write_close(a); + archive_write_free(a); + + fileOut = destArchivePath.string(); + + return true; + } + + static std::string getRelativePath(std::string path, std::string base) + { + try + { + path = absolute(u8path(path)).generic_u8string(); + base = absolute(u8path(base)).generic_u8string(); + } + catch (filesystem_error& e) { + //throw Exception("%s", e.what()); + } + if (path.size() < base.size()) + { + //throw Exception("getRelativePath() error: path is shorter than base"); + } + if (!std::equal(base.begin(), base.end(), path.begin())) + { + //throw Exception("getRelativePath() error: path does not begin with base"); + } + + // If path == base, this correctly returns "." + return "." + std::string(path.begin() + base.size(), path.end()); + } } \ No newline at end of file diff --git a/Utils/libarchive_extract.h b/Utils/libarchive_extract.h index 1f5b1460..8f081a6a 100644 --- a/Utils/libarchive_extract.h +++ b/Utils/libarchive_extract.h @@ -1,7 +1,18 @@ #pragma once +#include "utils_export.h" + namespace Utils { + enum class CompressionType + { + TarGzip + }; + bool extract(const char* filename, const char* destDir); - bool compress(const char* srcDir, const char* destDir, const char* archiveName); + UTILS_EXPORT bool compress(const char* srcDir, + const char* destDir, + const char* archiveName, + std::string& fileOut, + CompressionType type = CompressionType::TarGzip); } From 32698f68df9c9dd162c1b83edf2eb10558ce2503 Mon Sep 17 00:00:00 2001 From: Nathan Miller Date: Wed, 24 Apr 2024 08:05:43 -0700 Subject: [PATCH 007/168] rename to compress_dir() and use top-level directory name as the root dir inside the archive --- OdbDesignLib/FileModel/Design/FileArchive.cpp | 3 +- Utils/libarchive_extract.cpp | 37 ++++--------------- Utils/libarchive_extract.h | 2 +- 3 files changed, 10 insertions(+), 32 deletions(-) diff --git a/OdbDesignLib/FileModel/Design/FileArchive.cpp b/OdbDesignLib/FileModel/Design/FileArchive.cpp index 23dcf323..82c09559 100644 --- a/OdbDesignLib/FileModel/Design/FileArchive.cpp +++ b/OdbDesignLib/FileModel/Design/FileArchive.cpp @@ -132,7 +132,8 @@ namespace Odb::Lib::FileModel::Design // compress the written file structure std::string createdArchivePath; - if (! Utils::compress(rootPath.string().c_str(), tempPath.string().c_str(), m_productName.c_str(), createdArchivePath)) return false; + if (! Utils::compress_dir(rootPath.string().c_str(), tempPath.string().c_str(), m_productName.c_str(), createdArchivePath)) return false; + if (createdArchivePath.empty()) return false; // move the compressed file to the requested save directory path archiveFilename = path(createdArchivePath).filename(); diff --git a/Utils/libarchive_extract.cpp b/Utils/libarchive_extract.cpp index 40c10754..2a872ab8 100644 --- a/Utils/libarchive_extract.cpp +++ b/Utils/libarchive_extract.cpp @@ -136,16 +136,16 @@ namespace Utils } } - constexpr inline static const char* TAR_GZIP_EXTENSION = ".tgz"; - const int COMPRESS_READ_BUFF_SIZE = 1024; + constexpr inline static const char* TGZ_EXTENSION = ".tgz"; + constexpr static const int COMPRESS_READ_BUFF_SIZE = 1024; - bool compress(const char* srcDir, const char* destDir, const char* archiveName, std::string& fileOut, CompressionType type /* = CompressionType::TarGzip*/) + bool compress_dir(const char* srcDir, const char* destDir, const char* archiveName, std::string& fileOut, CompressionType type /* = CompressionType::TarGzip*/) { path destArchivePath = path(destDir) / archiveName; switch (type) { case CompressionType::TarGzip: - destArchivePath.replace_extension(TAR_GZIP_EXTENSION); + destArchivePath.replace_extension(TGZ_EXTENSION); break; } @@ -157,8 +157,8 @@ namespace Utils //// add top-level directory to the archive auto root_entry = archive_entry_new(); - //auto rootDir = path(srcDir).parent_path().filename(); - auto rootDir = path(archiveName); + //auto rootDir = path(archiveName); + auto rootDir = path(srcDir).filename(); archive_entry_set_pathname(root_entry, rootDir.string().c_str()); archive_entry_set_filetype(root_entry, AE_IFDIR); if (archive_write_header(a, root_entry) != ARCHIVE_OK) return false; @@ -212,28 +212,5 @@ namespace Utils fileOut = destArchivePath.string(); return true; - } - - static std::string getRelativePath(std::string path, std::string base) - { - try - { - path = absolute(u8path(path)).generic_u8string(); - base = absolute(u8path(base)).generic_u8string(); - } - catch (filesystem_error& e) { - //throw Exception("%s", e.what()); - } - if (path.size() < base.size()) - { - //throw Exception("getRelativePath() error: path is shorter than base"); - } - if (!std::equal(base.begin(), base.end(), path.begin())) - { - //throw Exception("getRelativePath() error: path does not begin with base"); - } - - // If path == base, this correctly returns "." - return "." + std::string(path.begin() + base.size(), path.end()); - } + } } \ No newline at end of file diff --git a/Utils/libarchive_extract.h b/Utils/libarchive_extract.h index 8f081a6a..a1badeea 100644 --- a/Utils/libarchive_extract.h +++ b/Utils/libarchive_extract.h @@ -10,7 +10,7 @@ namespace Utils }; bool extract(const char* filename, const char* destDir); - UTILS_EXPORT bool compress(const char* srcDir, + UTILS_EXPORT bool compress_dir(const char* srcDir, const char* destDir, const char* archiveName, std::string& fileOut, From 6758dac4d9615d81ca4dbe92b0cfeb6500593e96 Mon Sep 17 00:00:00 2001 From: Nathan Miller Date: Wed, 24 Apr 2024 08:16:25 -0700 Subject: [PATCH 008/168] hide compress_dir() in ArchiveExtractor class member --- OdbDesignLib/FileModel/Design/FileArchive.cpp | 3 +-- Utils/ArchiveExtractor.cpp | 8 ++++++++ Utils/ArchiveExtractor.h | 5 +++++ 3 files changed, 14 insertions(+), 2 deletions(-) diff --git a/OdbDesignLib/FileModel/Design/FileArchive.cpp b/OdbDesignLib/FileModel/Design/FileArchive.cpp index 82c09559..5f46dd07 100644 --- a/OdbDesignLib/FileModel/Design/FileArchive.cpp +++ b/OdbDesignLib/FileModel/Design/FileArchive.cpp @@ -5,7 +5,6 @@ #include #include "Logger.h" #include "StopWatch.h" -#include "libarchive_extract.h" #include "fastcopy.h" using namespace Utils; @@ -132,7 +131,7 @@ namespace Odb::Lib::FileModel::Design // compress the written file structure std::string createdArchivePath; - if (! Utils::compress_dir(rootPath.string().c_str(), tempPath.string().c_str(), m_productName.c_str(), createdArchivePath)) return false; + if (! Utils::ArchiveExtractor::CompressDir(rootPath.string(), tempPath.string(), m_productName, createdArchivePath)) return false; if (createdArchivePath.empty()) return false; // move the compressed file to the requested save directory diff --git a/Utils/ArchiveExtractor.cpp b/Utils/ArchiveExtractor.cpp index 9112c457..a1f995b1 100644 --- a/Utils/ArchiveExtractor.cpp +++ b/Utils/ArchiveExtractor.cpp @@ -1,4 +1,5 @@ #include "ArchiveExtractor.h" +#include "ArchiveExtractor.h" #include #include "libarchive_extract.h" #include "Logger.h" @@ -155,4 +156,11 @@ namespace Utils return uncompressedPath; } + + /*static*/ bool ArchiveExtractor::CompressDir(const std::string& srcDir, const std::string& destDir, + const std::string& archiveName, std::string& fileOut, + CompressionType type) + { + return compress_dir(srcDir.c_str(), destDir.c_str(), archiveName.c_str(), fileOut, type); + } } \ No newline at end of file diff --git a/Utils/ArchiveExtractor.h b/Utils/ArchiveExtractor.h index 16a53ee1..183c0341 100644 --- a/Utils/ArchiveExtractor.h +++ b/Utils/ArchiveExtractor.h @@ -3,6 +3,7 @@ #include #include #include "utils_export.h" +#include "libarchive_extract.h" namespace Utils @@ -35,6 +36,10 @@ namespace Utils static std::filesystem::path getUncompressedFilePath(const std::filesystem::path& directory, const std::string& filename); + static bool CompressDir(const std::string& srcDir, const std::string& destDir, + const std::string& archiveName, std::string& fileOut, + CompressionType type = CompressionType::TarGzip); + inline static bool ALLOW_ALL_ARCHIVE_EXTENSION_TYPES = false; constexpr static inline const char* SupportedExtensions[] = { "tgz", "tar.gz", "gz", "zip", "Z", "gzip", "tar" }; From a5ff4d4f7f0b8a3340a0fdab6694f108b9bafb00 Mon Sep 17 00:00:00 2001 From: Nathan Miller Date: Wed, 24 Apr 2024 08:59:15 -0700 Subject: [PATCH 009/168] call archive_write_finish_entry after writing each entry --- Utils/libarchive_extract.cpp | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/Utils/libarchive_extract.cpp b/Utils/libarchive_extract.cpp index 2a872ab8..76b20987 100644 --- a/Utils/libarchive_extract.cpp +++ b/Utils/libarchive_extract.cpp @@ -178,6 +178,7 @@ namespace Utils stat(it.path().string().c_str(), &st); archive_entry_copy_stat(dir_entry, &st); if (archive_write_header(a, dir_entry) != ARCHIVE_OK) return false; + archive_write_finish_entry(a); archive_entry_free(dir_entry); } else if (it.is_regular_file()) @@ -187,6 +188,9 @@ namespace Utils auto file_entry = archive_entry_new(); archive_entry_set_pathname(file_entry, (rootDir / relativePath).string().c_str()); archive_entry_set_filetype(file_entry, AE_IFREG); + //archive_entry_set_size(file_entry, st.st_size); // Note 2 + //archive_entry_set_mtime(file_entry, st.st_mtime, 0); + //archive_entry_set_perm(file_entry, st.st_mode?); stat(it.path().string().c_str(), &st); archive_entry_copy_stat(file_entry, &st); if (archive_write_header(a, file_entry) != ARCHIVE_OK) return false; @@ -200,12 +204,12 @@ namespace Utils } auto remaining = ifs.gcount(); if (archive_write_data(a, buffer, remaining) != remaining) return false; + archive_write_finish_entry(a); archive_entry_free(file_entry); } } - // clean up - archive_write_finish_entry(a); + // clean up archive_write_close(a); archive_write_free(a); From 244c647754a7e2c81ecb0082f8af6777595a47b1 Mon Sep 17 00:00:00 2001 From: Nathan Miller Date: Thu, 25 Apr 2024 06:40:00 -0700 Subject: [PATCH 010/168] rename file variable --- .../FileModel/Design/AttrListFile.cpp | 20 ++++++++++++------- 1 file changed, 13 insertions(+), 7 deletions(-) diff --git a/OdbDesignLib/FileModel/Design/AttrListFile.cpp b/OdbDesignLib/FileModel/Design/AttrListFile.cpp index f2e9ed98..eb5ab4ee 100644 --- a/OdbDesignLib/FileModel/Design/AttrListFile.cpp +++ b/OdbDesignLib/FileModel/Design/AttrListFile.cpp @@ -43,20 +43,20 @@ namespace Odb::Lib::FileModel::Design loginfo("checking for extraction..."); - std::filesystem::path featuresFilePath; - for (const std::string featuresFilename : ATTRLIST_FILENAMES) + std::filesystem::path attrListFilePath; + for (const std::string attrListFilename : ATTRLIST_FILENAMES) { - loginfo("trying attrlist file: [" + featuresFilename + "]..."); + loginfo("trying attrlist file: [" + attrListFilename + "]..."); - featuresFilePath = Utils::ArchiveExtractor::getUncompressedFilePath(m_directory, featuresFilename); - if (exists(featuresFilePath) && is_regular_file(featuresFilePath)) + attrListFilePath = Utils::ArchiveExtractor::getUncompressedFilePath(m_directory, attrListFilename); + if (exists(attrListFilePath) && is_regular_file(attrListFilePath)) { - loginfo("found attrlist file: [" + featuresFilePath.string() + "]"); + loginfo("found attrlist file: [" + attrListFilePath.string() + "]"); break; } } - m_path = featuresFilePath; + m_path = attrListFilePath; loginfo("any extraction complete, parsing data..."); @@ -205,6 +205,12 @@ namespace Odb::Lib::FileModel::Design bool AttrListFile::Save(std::ostream& os) { + os << Constants::UNITS_TOKEN << " = " << m_units << std::endl; + for (const auto& kvAttribute : m_attributesByName) + { + os << kvAttribute.first << " = " << kvAttribute.second << std::endl; + } + return true; } } // namespace Odb::Lib::FileModel::Design \ No newline at end of file From 7bc426791bd7719d77f791572c48921e98e9203b Mon Sep 17 00:00:00 2001 From: Nathan Miller Date: Thu, 25 Apr 2024 06:40:56 -0700 Subject: [PATCH 011/168] implement Save(ostream) for two classes --- OdbDesignLib/FileModel/Design/MatrixFile.cpp | 32 +++++++++++++++++ OdbDesignLib/FileModel/Design/MatrixFile.h | 35 ++++++++++++++++++- .../FileModel/Design/MiscInfoFile.cpp | 12 +++++++ OdbDesignLib/FileModel/Design/MiscInfoFile.h | 14 +++++++- 4 files changed, 91 insertions(+), 2 deletions(-) diff --git a/OdbDesignLib/FileModel/Design/MatrixFile.cpp b/OdbDesignLib/FileModel/Design/MatrixFile.cpp index 5da9081a..dfd75b07 100644 --- a/OdbDesignLib/FileModel/Design/MatrixFile.cpp +++ b/OdbDesignLib/FileModel/Design/MatrixFile.cpp @@ -475,6 +475,38 @@ namespace Odb::Lib::FileModel::Design bool MatrixFile::Save(std::ostream& os) { + for (const auto& stepRecord : m_stepRecords) + { + os << StepRecord::RECORD_TOKEN << " " << Constants::ARRAY_RECORD_OPEN_TOKEN << std::endl; + os << StepRecord::COLUMN_KEY << "=" << stepRecord->column << std::endl; + os << StepRecord::NAME_KEY << "=" << stepRecord->name << std::endl; + os << StepRecord::ID_KEY << "=" << stepRecord->id << std::endl; + os << Constants::ARRAY_RECORD_CLOSE_TOKEN << std::endl; + } + + for (const auto& layerRecord : m_layerRecords) + { + os << LayerRecord::RECORD_TOKEN << " " << Constants::ARRAY_RECORD_OPEN_TOKEN << std::endl; + os << LayerRecord::ROW_KEY << "=" << layerRecord->row << std::endl; + os << LayerRecord::NAME_KEY << "=" << layerRecord->name << std::endl; + os << LayerRecord::ID_KEY << "=" << layerRecord->id << std::endl; + //os << LayerRecord::TYPE_KEY << "=" << layerRecord->type << std::endl; + //os << LayerRecord::CONTEXT_KEY << "=" << layerRecord->context << std::endl; + //os << LayerRecord::OLD_NAME_KEY << "=" << layerRecord->oldName << std::endl; + //os << LayerRecord::POLARITY_KEY << "=" << layerRecord->polarity << std::endl; + //os << LayerRecord::DIELECTRIC_TYPE_KEY << "=" << layerRecord->dielectricType << std::endl; + os << LayerRecord::DIELECTRIC_NAME_KEY << "=" << layerRecord->dielectricName << std::endl; + //os << LayerRecord::FORM_KEY << "=" << layerRecord->form << std::endl; + os << LayerRecord::CU_TOP_KEY << "=" << layerRecord->cuTop << std::endl; + os << LayerRecord::CU_BOTTOM_KEY << "=" << layerRecord->cuBottom << std::endl; + os << LayerRecord::REF_KEY << "=" << layerRecord->ref << std::endl; + os << LayerRecord::START_NAME_KEY << "=" << layerRecord->startName << std::endl; + os << LayerRecord::END_NAME_KEY << "=" << layerRecord->endName << std::endl; + os << LayerRecord::ADD_TYPE_KEY << "=" << layerRecord->addType << std::endl; + //os << LayerRecord::COLOR_KEY << "=" << layerRecord->color << std::endl; + os << Constants::ARRAY_RECORD_CLOSE_TOKEN << std::endl; + } + return true; } diff --git a/OdbDesignLib/FileModel/Design/MatrixFile.h b/OdbDesignLib/FileModel/Design/MatrixFile.h index 97552e8f..d3835cea 100644 --- a/OdbDesignLib/FileModel/Design/MatrixFile.h +++ b/OdbDesignLib/FileModel/Design/MatrixFile.h @@ -31,6 +31,9 @@ namespace Odb::Lib::FileModel::Design typedef std::vector> Vector; inline static const char* RECORD_TOKEN = "STEP"; + inline static const char* COLUMN_KEY = "COL"; + inline static const char* NAME_KEY = "NAME"; + inline static const char* ID_KEY = "ID"; // Inherited via IProtoBuffable std::unique_ptr to_protobuf() const override; @@ -97,9 +100,39 @@ namespace Odb::Lib::FileModel::Design inline static const char* RECORD_TOKEN = "LAYER"; + inline static const char* ROW_KEY = "ROW"; + inline static const char* CONTEXT_KEY = "CONTEXT"; + inline static const char* TYPE_KEY = "TYPE"; + inline static const char* NAME_KEY = "NAME"; + inline static const char* POLARITY_KEY = "POLARITY"; + inline static const char* DIELECTRIC_TYPE_KEY = "DIELECTRIC_TYPE"; + inline static const char* DIELECTRIC_NAME_KEY = "DIELECTRIC_NAME"; + inline static const char* FORM_KEY = "FORM"; + inline static const char* CU_TOP_KEY = "CU_TOP"; + inline static const char* CU_BOTTOM_KEY = "CU_BOTTOM"; + inline static const char* REF_KEY = "REF"; + inline static const char* START_NAME_KEY = "START_NAME"; + inline static const char* END_NAME_KEY = "END_NAME"; + inline static const char* OLD_NAME_KEY = "OLD_NAME"; + inline static const char* ADD_TYPE_KEY = "ADD_TYPE"; + inline static const char* COLOR_KEY = "COLOR"; + inline static const char* ID_KEY = "ID"; + // Inherited via IProtoBuffable std::unique_ptr to_protobuf() const override; void from_protobuf(const Odb::Lib::Protobuf::MatrixFile::LayerRecord& message) override; + + //static Type stringToType(const std::string& type); + //static Context stringToContext(const std::string& context); + //static DielectricType stringToDielectricType(const std::string& dielectricType); + //static Form stringToForm(const std::string& form); + + //static std::string typeToString(Type type); + //static std::string contextToString(Context context); + //static std::string dielectricTypeToString(DielectricType dielectricType); + //static std::string formToString(Form form); + + }; const LayerRecord::Vector& GetLayerRecords() const; @@ -137,6 +170,6 @@ namespace Odb::Lib::FileModel::Design "CU_BOTTOM", "REF", "COLOR", - }; + }; }; } diff --git a/OdbDesignLib/FileModel/Design/MiscInfoFile.cpp b/OdbDesignLib/FileModel/Design/MiscInfoFile.cpp index a132a508..2265ae60 100644 --- a/OdbDesignLib/FileModel/Design/MiscInfoFile.cpp +++ b/OdbDesignLib/FileModel/Design/MiscInfoFile.cpp @@ -195,6 +195,18 @@ namespace Odb::Lib::FileModel::Design bool MiscInfoFile::Save(std::ostream& os) { + os << PRODUCT_MODEL_NAME_KEY << "=" << m_productModelName << std::endl; + os << JOB_NAME_KEY << "=" << m_jobName << std::endl; + os << ODB_VERSION_MAJOR_KEY << "=" << m_odbVersionMajor << std::endl; + os << ODB_VERSION_MINOR_KEY << "=" << m_odbVersionMinor << std::endl; + os << ODB_SOURCE_KEY << "=" << m_odbSource << std::endl; + os << CREATION_DATE_KEY << "=" << Utils::make_timestamp(m_creationDateDate) << std::endl; + os << SAVE_DATE_KEY << "=" << Utils::make_timestamp(m_saveDate) << std::endl; + os << SAVE_APP_KEY << "=" << m_saveApp << std::endl; + os << SAVE_USER_KEY << "=" << m_saveUser << std::endl; + os << UNITS_KEY << "=" << m_units << std::endl; + os << MAX_UID_KEY << "=" << m_maxUniqueId << std::endl; + return true; } diff --git a/OdbDesignLib/FileModel/Design/MiscInfoFile.h b/OdbDesignLib/FileModel/Design/MiscInfoFile.h index 3863c4ca..8ac74ae6 100644 --- a/OdbDesignLib/FileModel/Design/MiscInfoFile.h +++ b/OdbDesignLib/FileModel/Design/MiscInfoFile.h @@ -57,6 +57,18 @@ namespace Odb::Lib::FileModel::Design { //"ODB_SOURCE", // not optional per spec pg. 80 "MAX_UID", - }; + }; + + constexpr inline static const char* PRODUCT_MODEL_NAME_KEY = "PRODUCT_MODEL_NAME"; + constexpr inline static const char* JOB_NAME_KEY = "JOB_NAME"; + constexpr inline static const char* ODB_VERSION_MAJOR_KEY = "ODB_VERSION_MAJOR"; + constexpr inline static const char* ODB_VERSION_MINOR_KEY = "ODB_VERSION_MINOR"; + constexpr inline static const char* ODB_SOURCE_KEY = "ODB_SOURCE"; + constexpr inline static const char* CREATION_DATE_KEY = "CREATION_DATE"; + constexpr inline static const char* SAVE_DATE_KEY = "SAVE_DATE"; + constexpr inline static const char* SAVE_APP_KEY = "SAVE_APP"; + constexpr inline static const char* SAVE_USER_KEY = "SAVE_USER"; + constexpr inline static const char* UNITS_KEY = "UNITS"; + constexpr inline static const char* MAX_UID_KEY = "MAX_UID"; }; } From 6e4a0da4688330d8f51713d78ac4297d33b7e908 Mon Sep 17 00:00:00 2001 From: Nathan Miller Date: Thu, 25 Apr 2024 06:41:42 -0700 Subject: [PATCH 012/168] implement list of directories to skip deleting during tests --- OdbDesignLib/FileModel/Design/FileArchive.cpp | 2 +- OdbDesignTests/Fixtures/FileArchiveLoadFixture.cpp | 7 ++++++- OdbDesignTests/Fixtures/FileArchiveLoadFixture.h | 5 ++++- 3 files changed, 11 insertions(+), 3 deletions(-) diff --git a/OdbDesignLib/FileModel/Design/FileArchive.cpp b/OdbDesignLib/FileModel/Design/FileArchive.cpp index 5f46dd07..ccca1745 100644 --- a/OdbDesignLib/FileModel/Design/FileArchive.cpp +++ b/OdbDesignLib/FileModel/Design/FileArchive.cpp @@ -149,7 +149,7 @@ namespace Odb::Lib::FileModel::Design auto miscPath = directory / "misc"; if (!create_directory(miscPath)) return false; - std::ofstream ofs1(miscPath / "info"); + std::ofstream ofs1(miscPath / "info", std::ios::out); if (!m_miscInfoFile.Save(ofs1)) return false; ofs1.close(); diff --git a/OdbDesignTests/Fixtures/FileArchiveLoadFixture.cpp b/OdbDesignTests/Fixtures/FileArchiveLoadFixture.cpp index 4562438e..b999e282 100644 --- a/OdbDesignTests/Fixtures/FileArchiveLoadFixture.cpp +++ b/OdbDesignTests/Fixtures/FileArchiveLoadFixture.cpp @@ -1,6 +1,8 @@ #include "FileArchiveLoadFixture.h" #include #include "Logger.h" +#include +#include using namespace std::filesystem; //using namespace Odb::Lib; @@ -49,7 +51,10 @@ namespace Odb::Test::Fixtures { if (is_directory(entry)) { - remove_all(entry.path()); + if (std::find(KEEP_DIRECTORIES.begin(), KEEP_DIRECTORIES.end(), entry.path().filename()) == KEEP_DIRECTORIES.end()) + { + remove_all(entry.path()); + } } } } diff --git a/OdbDesignTests/Fixtures/FileArchiveLoadFixture.h b/OdbDesignTests/Fixtures/FileArchiveLoadFixture.h index 44780329..02b335e9 100644 --- a/OdbDesignTests/Fixtures/FileArchiveLoadFixture.h +++ b/OdbDesignTests/Fixtures/FileArchiveLoadFixture.h @@ -5,6 +5,7 @@ #include "OdbDesign.h" #include #include +#include namespace Odb::Test::Fixtures { @@ -25,7 +26,9 @@ namespace Odb::Test::Fixtures static std::string getTestDataDir(); std::filesystem::path getDesignPath(const std::string& filename) const; - constexpr const static inline char ODB_TEST_DATA_DIR_ENV_NAME[] = "ODB_TEST_DATA_DIR"; + static inline const std::vector KEEP_DIRECTORIES = { "filereader" }; + + static inline constexpr const char ODB_TEST_DATA_DIR_ENV_NAME[] = "ODB_TEST_DATA_DIR"; }; } From 1cdb12c307fefcf9c837ef09ab06c6e7751830fe Mon Sep 17 00:00:00 2001 From: Nathan Miller Date: Thu, 25 Apr 2024 06:42:11 -0700 Subject: [PATCH 013/168] add FileReader class test cases --- OdbDesignTests/CMakeLists.txt | 2 +- OdbDesignTests/FileReaderTests.cpp | 53 ++++++++++++++++++++++++++++++ 2 files changed, 54 insertions(+), 1 deletion(-) create mode 100644 OdbDesignTests/FileReaderTests.cpp diff --git a/OdbDesignTests/CMakeLists.txt b/OdbDesignTests/CMakeLists.txt index b68dc9e7..587a71b3 100644 --- a/OdbDesignTests/CMakeLists.txt +++ b/OdbDesignTests/CMakeLists.txt @@ -10,7 +10,7 @@ add_executable(OdbDesignTests "DesignCacheLoadTests.cpp" "Fixtures/DesignNameValueParamTest.h" "FileArchiveTests.cpp" - "DesignTests.cpp" "ProtobufSerializationTests.cpp") + "DesignTests.cpp" "ProtobufSerializationTests.cpp" "FileReaderTests.cpp") target_link_libraries(OdbDesignTests PRIVATE GTest::gtest_main GTest::gmock_main) diff --git a/OdbDesignTests/FileReaderTests.cpp b/OdbDesignTests/FileReaderTests.cpp new file mode 100644 index 00000000..eec56475 --- /dev/null +++ b/OdbDesignTests/FileReaderTests.cpp @@ -0,0 +1,53 @@ +#include +#include +#include +#include "FileReader.h" +#include "Fixtures//FileArchiveLoadFixture.h" + +using namespace std::filesystem; +using namespace Odb::Test::Fixtures; +using namespace testing; +using namespace Utils; + +namespace Odb::Test +{ + static inline constexpr char FILE_CONTENTS[] = "Hello, World!"; + + TEST_F(FileArchiveLoadFixture, Test_FileReaderRead_Buffered) + { + auto fileReaderTestPath = path(getTestDataDir()); + fileReaderTestPath /= "filereader"; + auto filePath = fileReaderTestPath / "filereader_test1.txt"; + + ASSERT_TRUE(exists(filePath)); + + FileReader fr(filePath); + + auto fileSize = file_size(filePath); + auto read = fr.Read(); + ASSERT_EQ(read, fileSize); + + auto& buffer = fr.GetBuffer(); + ASSERT_EQ(buffer.size(), fileSize); + ASSERT_STREQ(buffer.data(), FILE_CONTENTS); + } + + TEST_F(FileArchiveLoadFixture, Test_FileReaderRead_Unbuffered) + { + auto fileReaderTestPath = path(getTestDataDir()); + fileReaderTestPath /= "filereader"; + auto filePath = fileReaderTestPath / "filereader_test1.txt"; + + ASSERT_TRUE(exists(filePath)); + + FileReader fr(filePath, true); + + auto fileSize = file_size(filePath); + auto read = fr.Read(); + ASSERT_EQ(read, fileSize); + + auto& buffer = fr.GetBuffer(); + ASSERT_EQ(buffer.size(), fileSize); + ASSERT_STREQ(buffer.data(), FILE_CONTENTS); + } +} \ No newline at end of file From e974448115576b9a1651cfdf60c5f5209134b52f Mon Sep 17 00:00:00 2001 From: Nathan Miller Date: Thu, 25 Apr 2024 06:43:24 -0700 Subject: [PATCH 014/168] add and use FileReader class to hide implementation details for reading all bytes from a file --- Utils/CMakeLists.txt | 2 +- Utils/FileReader.cpp | 98 ++++++++++++++++++++++++++++++++++++ Utils/FileReader.h | 37 ++++++++++++++ Utils/libarchive_extract.cpp | 29 ++++++----- 4 files changed, 152 insertions(+), 14 deletions(-) create mode 100644 Utils/FileReader.cpp create mode 100644 Utils/FileReader.h diff --git a/Utils/CMakeLists.txt b/Utils/CMakeLists.txt index 04432a2d..a994b1c3 100644 --- a/Utils/CMakeLists.txt +++ b/Utils/CMakeLists.txt @@ -1,7 +1,7 @@ # CMakeList.txt : CMake project for OdbDesignServer # -add_library(Utils SHARED "utils_export.h" "ExitCode.h" "ThreadSafeQueue.h" "WorkQueueLoopThread.h" "Logger.h" "Logger.cpp" "CommandLineArgs.h" "CommandLineArgs.cpp" "bin2ascii.h" "ArchiveExtractor.cpp" "ArchiveExtractor.h" "libarchive_extract.cpp" "libarchive_extract.h" "str_utils.cpp" "str_utils.h" "IJsonable.h" "IJsonable.cpp" "CrowReturnable.h" "JsonCrowReturnable.h" "timestamp.h" "timestamp.cpp" "StopWatch.h" "StopWatch.cpp" "UrlEncoding.h" "UrlEncoding.cpp" "StringVector.h" "equals_within.h" "equals_within.cpp" "crow_win.h" "fastcopy.h" "fastcopy.cpp") +add_library(Utils SHARED "utils_export.h" "ExitCode.h" "ThreadSafeQueue.h" "WorkQueueLoopThread.h" "Logger.h" "Logger.cpp" "CommandLineArgs.h" "CommandLineArgs.cpp" "bin2ascii.h" "ArchiveExtractor.cpp" "ArchiveExtractor.h" "libarchive_extract.cpp" "libarchive_extract.h" "str_utils.cpp" "str_utils.h" "IJsonable.h" "IJsonable.cpp" "CrowReturnable.h" "JsonCrowReturnable.h" "timestamp.h" "timestamp.cpp" "StopWatch.h" "StopWatch.cpp" "UrlEncoding.h" "UrlEncoding.cpp" "StringVector.h" "equals_within.h" "equals_within.cpp" "crow_win.h" "fastcopy.h" "fastcopy.cpp" "FileReader.h" "FileReader.cpp") # state that anybody linking to us needs to include the current source dir, # while we don't. diff --git a/Utils/FileReader.cpp b/Utils/FileReader.cpp new file mode 100644 index 00000000..846e75ac --- /dev/null +++ b/Utils/FileReader.cpp @@ -0,0 +1,98 @@ +#include "FileReader.h" +#include "FileReader.h" +#include +#include +#include + +using namespace std::filesystem; + +namespace Utils +{ + FileReader::FileReader(const std::filesystem::path& filePath) + : FileReader(filePath, false) + { + } + + FileReader::FileReader(const std::filesystem::path& filePath, bool unbuffered) + : FileReader(filePath, DEFAULT_OPENMODE, unbuffered) + { + } + + FileReader::FileReader(const std::filesystem::path& filePath, std::ios::openmode mode, bool unbuffered) + : m_filePath(filePath) + , m_mode(mode) + , m_unbuffered(unbuffered) + { + } + + size_t FileReader::Read() + { + size_t read = 0; + + if (m_unbuffered) + { + std::ifstream file(m_filePath, m_mode); + if (file.is_open()) + { + auto size = file_size(m_filePath); + m_buffer.resize(size); + file.read(m_buffer.data(), size); + if (file.gcount() == size) + { + read = size; + } + m_buffer.push_back(0); + m_buffer.resize(read); + file.close(); + } + } + else + { + std::ifstream file(m_filePath, m_mode); + if (file.is_open()) + { + char szBuffer[BUFFER_SIZE]{ 0 }; + while (true) + { + file.read(szBuffer, sizeof(szBuffer)); + auto readin = file.gcount(); + if (readin > 0) + { + m_buffer.insert(m_buffer.end(), szBuffer, szBuffer + readin); + read += readin; + } + else + { + break; + } + } + // put a '/0' AFTER the end of the buffer + m_buffer.push_back(0); + // then resize it back so the '/0' isn't included, but visualizing as a C string still works + m_buffer.resize(read); + file.close(); + } + } + + return read; + } + + //const char* FileReader::GetBytes() + //{ + // if (m_buffer.size() > 0) + // { + // return m_buffer.data(); + // } + // return nullptr; + //} + + void FileReader::Clear() + { + m_buffer.clear(); + } + + const std::vector& Utils::FileReader::GetBuffer() const + { + return m_buffer; + } +} \ No newline at end of file diff --git a/Utils/FileReader.h b/Utils/FileReader.h new file mode 100644 index 00000000..1f2c1704 --- /dev/null +++ b/Utils/FileReader.h @@ -0,0 +1,37 @@ +#pragma once + +#include "utils_export.h" +#include +#include + +namespace Utils +{ + class UTILS_EXPORT FileReader + { + public: + FileReader(const std::filesystem::path& filePath); + + FileReader(const std::filesystem::path& filePath, + bool unbuffered); + + FileReader(const std::filesystem::path& filePath, + std::ios::openmode mode, + bool unbuffered); + + size_t Read(); + //const char* GetBytes(); + void Clear(); + const std::vector& GetBuffer() const; + + private: + const std::filesystem::path m_filePath; + const bool m_unbuffered; + const std::ifstream::openmode m_mode; + + std::vector m_buffer; + + static inline constexpr std::ios::openmode DEFAULT_OPENMODE = std::ios::in; + static inline constexpr size_t BUFFER_SIZE = 1024; + + }; +} diff --git a/Utils/libarchive_extract.cpp b/Utils/libarchive_extract.cpp index 76b20987..04cabc1d 100644 --- a/Utils/libarchive_extract.cpp +++ b/Utils/libarchive_extract.cpp @@ -4,6 +4,9 @@ #include #include #include "Logger.h" +#include +#include "FileReader.h" +#include // from: https://github.com/libarchive/libarchive/wiki/Examples#user-content-A_Complete_Extractor @@ -82,7 +85,8 @@ namespace Utils r = archive_write_header(ext, entry); if (r < ARCHIVE_OK) fprintf(stderr, "archive_write_header failed: %s\n", archive_error_string(ext)); - else if (archive_entry_size(entry) > 0) { + else if (archive_entry_size(entry) > 0) + { r = copy_data(a, ext); if (r < ARCHIVE_OK) fprintf(stderr, "%s\n", archive_error_string(ext)); @@ -150,7 +154,9 @@ namespace Utils } struct archive* a = archive_write_new(); + //if (archive_write_set_format_v7tar(a) != ARCHIVE_OK) return false; if (archive_write_set_format_ustar(a) != ARCHIVE_OK) return false; + //if (archive_write_set_format_gnutar(a) != ARCHIVE_OK) return false; if (archive_write_add_filter_gzip(a) != ARCHIVE_OK) return false; if (archive_write_open_filename(a, destArchivePath.string().c_str()) != ARCHIVE_OK) return false; @@ -178,7 +184,7 @@ namespace Utils stat(it.path().string().c_str(), &st); archive_entry_copy_stat(dir_entry, &st); if (archive_write_header(a, dir_entry) != ARCHIVE_OK) return false; - archive_write_finish_entry(a); + //archive_write_finish_entry(a); archive_entry_free(dir_entry); } else if (it.is_regular_file()) @@ -188,7 +194,7 @@ namespace Utils auto file_entry = archive_entry_new(); archive_entry_set_pathname(file_entry, (rootDir / relativePath).string().c_str()); archive_entry_set_filetype(file_entry, AE_IFREG); - //archive_entry_set_size(file_entry, st.st_size); // Note 2 + archive_entry_set_size(file_entry, st.st_size); // Note 2 //archive_entry_set_mtime(file_entry, st.st_mtime, 0); //archive_entry_set_perm(file_entry, st.st_mode?); stat(it.path().string().c_str(), &st); @@ -196,15 +202,13 @@ namespace Utils if (archive_write_header(a, file_entry) != ARCHIVE_OK) return false; // read file and write to archive - char buffer[COMPRESS_READ_BUFF_SIZE]{ 0 }; - std::ifstream ifs(it.path()); - while (ifs.read(buffer, sizeof(buffer))) - { - if (COMPRESS_READ_BUFF_SIZE != archive_write_data(a, buffer, sizeof(buffer))) return false; - } - auto remaining = ifs.gcount(); - if (archive_write_data(a, buffer, remaining) != remaining) return false; - archive_write_finish_entry(a); + FileReader fr(it.path()); + if (fr.Read() > 0) + { + auto& buffer = fr.GetBuffer(); + if (archive_write_data(a, buffer.data(), buffer.size()) != buffer.size()) return false; + } + //archive_write_finish_entry(a); archive_entry_free(file_entry); } } @@ -214,7 +218,6 @@ namespace Utils archive_write_free(a); fileOut = destArchivePath.string(); - return true; } } \ No newline at end of file From 386752499a7eaa722872b510b6bedc29c814f4a9 Mon Sep 17 00:00:00 2001 From: Nathan Miller Date: Thu, 25 Apr 2024 08:59:53 -0700 Subject: [PATCH 015/168] use binary mode and unbuffered for reading files during compression --- Utils/libarchive_extract.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Utils/libarchive_extract.cpp b/Utils/libarchive_extract.cpp index 04cabc1d..660f44fd 100644 --- a/Utils/libarchive_extract.cpp +++ b/Utils/libarchive_extract.cpp @@ -202,7 +202,7 @@ namespace Utils if (archive_write_header(a, file_entry) != ARCHIVE_OK) return false; // read file and write to archive - FileReader fr(it.path()); + FileReader fr(it.path(), std::ios_base::binary, true); if (fr.Read() > 0) { auto& buffer = fr.GetBuffer(); From 09fad7d3126af0b972f69e14e6a43b5890095206 Mon Sep 17 00:00:00 2001 From: Nathan Miller Date: Thu, 25 Apr 2024 09:00:25 -0700 Subject: [PATCH 016/168] add archive test cases --- OdbDesignTests/ArchiveTests.cpp | 24 ++++++++++++++++++++++++ OdbDesignTests/CMakeLists.txt | 2 +- 2 files changed, 25 insertions(+), 1 deletion(-) create mode 100644 OdbDesignTests/ArchiveTests.cpp diff --git a/OdbDesignTests/ArchiveTests.cpp b/OdbDesignTests/ArchiveTests.cpp new file mode 100644 index 00000000..5182f0f2 --- /dev/null +++ b/OdbDesignTests/ArchiveTests.cpp @@ -0,0 +1,24 @@ +#include +#include +#include +#include "FileReader.h" +#include "Fixtures/FileArchiveLoadFixture.h" +#include "libarchive_extract.h" + +using namespace std::filesystem; +using namespace Odb::Test::Fixtures; +using namespace testing; +using namespace Utils; + +namespace Odb::Test +{ + static inline constexpr char FILE_CONTENTS[] = "Hello, World!\n\n"; + + TEST_F(FileArchiveLoadFixture, Test_LibArchive_CompressDir) + { + std::string fileArchiveOut; + compress_dir(getTestDataFilesDir().string().c_str(), getTestDataFilesDir().string().c_str(), "files", fileArchiveOut); + + ASSERT_TRUE(exists(fileArchiveOut)); + } +} \ No newline at end of file diff --git a/OdbDesignTests/CMakeLists.txt b/OdbDesignTests/CMakeLists.txt index 587a71b3..2371f6e2 100644 --- a/OdbDesignTests/CMakeLists.txt +++ b/OdbDesignTests/CMakeLists.txt @@ -10,7 +10,7 @@ add_executable(OdbDesignTests "DesignCacheLoadTests.cpp" "Fixtures/DesignNameValueParamTest.h" "FileArchiveTests.cpp" - "DesignTests.cpp" "ProtobufSerializationTests.cpp" "FileReaderTests.cpp") + "DesignTests.cpp" "ProtobufSerializationTests.cpp" "FileReaderTests.cpp" "ArchiveTests.cpp") target_link_libraries(OdbDesignTests PRIVATE GTest::gtest_main GTest::gmock_main) From ace4b6829e713c61a3782999ef8eda336af57159 Mon Sep 17 00:00:00 2001 From: Nathan Miller Date: Thu, 25 Apr 2024 09:03:24 -0700 Subject: [PATCH 017/168] fix FileReader test cases and actually use buffered strategy for buffered case --- OdbDesignTests/FileReaderTests.cpp | 16 ++++++---------- 1 file changed, 6 insertions(+), 10 deletions(-) diff --git a/OdbDesignTests/FileReaderTests.cpp b/OdbDesignTests/FileReaderTests.cpp index eec56475..994c233a 100644 --- a/OdbDesignTests/FileReaderTests.cpp +++ b/OdbDesignTests/FileReaderTests.cpp @@ -11,17 +11,15 @@ using namespace Utils; namespace Odb::Test { - static inline constexpr char FILE_CONTENTS[] = "Hello, World!"; + static inline constexpr char FILE_CONTENTS[] = "Hello, World!\r\n"; TEST_F(FileArchiveLoadFixture, Test_FileReaderRead_Buffered) - { - auto fileReaderTestPath = path(getTestDataDir()); - fileReaderTestPath /= "filereader"; - auto filePath = fileReaderTestPath / "filereader_test1.txt"; + { + auto filePath = getTestDataFilePath("filereader_test1.txt"); ASSERT_TRUE(exists(filePath)); - FileReader fr(filePath); + FileReader fr(filePath, std::ios_base::binary, false); auto fileSize = file_size(filePath); auto read = fr.Read(); @@ -34,13 +32,11 @@ namespace Odb::Test TEST_F(FileArchiveLoadFixture, Test_FileReaderRead_Unbuffered) { - auto fileReaderTestPath = path(getTestDataDir()); - fileReaderTestPath /= "filereader"; - auto filePath = fileReaderTestPath / "filereader_test1.txt"; + auto filePath = getTestDataFilePath("filereader_test1.txt"); ASSERT_TRUE(exists(filePath)); - FileReader fr(filePath, true); + FileReader fr(filePath, std::ios_base::binary, true); auto fileSize = file_size(filePath); auto read = fr.Read(); From 0d20724ab638e765c4dc3f1f32c6b417c15ed0ff Mon Sep 17 00:00:00 2001 From: Nathan Miller Date: Thu, 25 Apr 2024 09:04:13 -0700 Subject: [PATCH 018/168] add methods for getting test data files dir --- .../Fixtures/FileArchiveLoadFixture.cpp | 43 +++++++++++++------ .../Fixtures/FileArchiveLoadFixture.h | 10 ++++- 2 files changed, 38 insertions(+), 15 deletions(-) diff --git a/OdbDesignTests/Fixtures/FileArchiveLoadFixture.cpp b/OdbDesignTests/Fixtures/FileArchiveLoadFixture.cpp index b999e282..7bc2ed5d 100644 --- a/OdbDesignTests/Fixtures/FileArchiveLoadFixture.cpp +++ b/OdbDesignTests/Fixtures/FileArchiveLoadFixture.cpp @@ -3,6 +3,7 @@ #include "Logger.h" #include #include +#include "App/DesignCache.h" using namespace std::filesystem; //using namespace Odb::Lib; @@ -19,7 +20,10 @@ namespace Odb::Test::Fixtures void FileArchiveLoadFixture::SetUp() { - //Logger::instance()->start(); + if (ENABLE_TEST_LOGGING) + { + Logger::instance()->start(); + } ASSERT_FALSE(getTestDataDir().empty()); m_testDataDir = getTestDataDir(); @@ -31,19 +35,10 @@ namespace Odb::Test::Fixtures ASSERT_NE(m_pDesignCache, nullptr); } - /*static*/ std::string FileArchiveLoadFixture::getTestDataDir() - { - auto szTestDataDir = std::getenv(ODB_TEST_DATA_DIR_ENV_NAME); - if (szTestDataDir == nullptr) return ""; - //if (szTestDataDir == nullptr) throw std::runtime_error("ODB_TEST_DATA_DIR environment variable is not set"); - //if (!exists(szTestDataDir)) throw std::runtime_error("ODB_TEST_DATA_DIR environment variable is set to a non-existent directory"); - return szTestDataDir; - } - void FileArchiveLoadFixture::TearDown() - { + { if (m_removeDecompressedDirectories) - { + { if (exists(m_testDataDir)) { // delete uncompressed directories @@ -60,11 +55,33 @@ namespace Odb::Test::Fixtures } } - //Logger::instance()->stop(); + if (ENABLE_TEST_LOGGING) + { + Logger::instance()->stop(); + } + } + + /*static*/ path FileArchiveLoadFixture::getTestDataDir() + { + auto szTestDataDir = std::getenv(ODB_TEST_DATA_DIR_ENV_NAME); + if (szTestDataDir == nullptr) return ""; + //if (szTestDataDir == nullptr) throw std::runtime_error("ODB_TEST_DATA_DIR environment variable is not set"); + //if (!exists(szTestDataDir)) throw std::runtime_error("ODB_TEST_DATA_DIR environment variable is set to a non-existent directory"); + return szTestDataDir; + } + + path FileArchiveLoadFixture::getTestDataFilesDir() + { + return m_testDataDir / TESTFILE_DIR; } path FileArchiveLoadFixture::getDesignPath(const std::string& filename) const { return m_testDataDir / filename; } + + path FileArchiveLoadFixture::getTestDataFilePath(const std::string& filename) const + { + return m_testDataDir / TESTFILE_DIR / filename; + } } \ No newline at end of file diff --git a/OdbDesignTests/Fixtures/FileArchiveLoadFixture.h b/OdbDesignTests/Fixtures/FileArchiveLoadFixture.h index 02b335e9..f4f6cb44 100644 --- a/OdbDesignTests/Fixtures/FileArchiveLoadFixture.h +++ b/OdbDesignTests/Fixtures/FileArchiveLoadFixture.h @@ -23,12 +23,18 @@ namespace Odb::Test::Fixtures void SetUp() override; void TearDown() override; - static std::string getTestDataDir(); + static std::filesystem::path getTestDataDir(); + std::filesystem::path getTestDataFilesDir(); std::filesystem::path getDesignPath(const std::string& filename) const; + std::filesystem::path getTestDataFilePath(const std::string& filename) const; - static inline const std::vector KEEP_DIRECTORIES = { "filereader" }; + static inline const std::vector KEEP_DIRECTORIES = { "files" }; static inline constexpr const char ODB_TEST_DATA_DIR_ENV_NAME[] = "ODB_TEST_DATA_DIR"; + static inline constexpr const char TESTFILE_DIR[] = "files"; + + static inline constexpr bool ENABLE_TEST_LOGGING = false; + }; } From b7d88ca67b91583c1b5f50c6760cceba6ce7670f Mon Sep 17 00:00:00 2001 From: Nathan Miller Date: Thu, 25 Apr 2024 09:27:21 -0700 Subject: [PATCH 019/168] use enum instead of bool for BufferStrategy --- Utils/FileReader.cpp | 35 ++++++++++++++++++----------------- Utils/FileReader.h | 26 ++++++++++++++++---------- Utils/libarchive_extract.cpp | 11 ++++++----- 3 files changed, 40 insertions(+), 32 deletions(-) diff --git a/Utils/FileReader.cpp b/Utils/FileReader.cpp index 846e75ac..08738d04 100644 --- a/Utils/FileReader.cpp +++ b/Utils/FileReader.cpp @@ -3,38 +3,39 @@ #include #include #include +#include using namespace std::filesystem; namespace Utils { FileReader::FileReader(const std::filesystem::path& filePath) - : FileReader(filePath, false) + : m_filePath(filePath) { } - FileReader::FileReader(const std::filesystem::path& filePath, bool unbuffered) - : FileReader(filePath, DEFAULT_OPENMODE, unbuffered) - { - } + //FileReader::FileReader(const std::filesystem::path& filePath, std::ios::openmode mode) + // : FileReader(filePath, mode, false) + //{ + //} - FileReader::FileReader(const std::filesystem::path& filePath, std::ios::openmode mode, bool unbuffered) - : m_filePath(filePath) - , m_mode(mode) - , m_unbuffered(unbuffered) - { - } + //FileReader::FileReader(const std::filesystem::path& filePath, std::ios::openmode mode, bool unbuffered) + // : m_filePath(filePath) + // , m_mode(mode) + // , m_unbuffered(unbuffered) + //{ + //} - size_t FileReader::Read() + long long FileReader::Read(BufferStrategy bufferStrategy /*= BufferStrategy::Buffered*/, std::ios::openmode mode /*= DEFAULT_OPENMODE*/) { - size_t read = 0; + auto read = 0LL; - if (m_unbuffered) + if (bufferStrategy == BufferStrategy::Unbuffered) { - std::ifstream file(m_filePath, m_mode); + std::ifstream file(m_filePath, mode); if (file.is_open()) { - auto size = file_size(m_filePath); + long long size = file_size(m_filePath); m_buffer.resize(size); file.read(m_buffer.data(), size); if (file.gcount() == size) @@ -48,7 +49,7 @@ namespace Utils } else { - std::ifstream file(m_filePath, m_mode); + std::ifstream file(m_filePath, mode); if (file.is_open()) { char szBuffer[BUFFER_SIZE]{ 0 }; diff --git a/Utils/FileReader.h b/Utils/FileReader.h index 1f2c1704..120f1d9f 100644 --- a/Utils/FileReader.h +++ b/Utils/FileReader.h @@ -9,28 +9,34 @@ namespace Utils class UTILS_EXPORT FileReader { public: - FileReader(const std::filesystem::path& filePath); + enum class BufferStrategy + { + Unbuffered, + Buffered + }; - FileReader(const std::filesystem::path& filePath, - bool unbuffered); + FileReader(const std::filesystem::path& filePath); - FileReader(const std::filesystem::path& filePath, - std::ios::openmode mode, - bool unbuffered); + //FileReader(const std::filesystem::path& filePath, + // std::ios::openmode mode); + + //FileReader(const std::filesystem::path& filePath, + // std::ios::openmode mode, + // bool unbuffered); - size_t Read(); + long long Read(BufferStrategy bufferStrategy = BufferStrategy::Buffered, std::ios::openmode mode = DEFAULT_OPENMODE); //const char* GetBytes(); void Clear(); const std::vector& GetBuffer() const; private: const std::filesystem::path m_filePath; - const bool m_unbuffered; - const std::ifstream::openmode m_mode; + //const bool m_unbuffered; + //const std::ifstream::openmode m_mode; std::vector m_buffer; - static inline constexpr std::ios::openmode DEFAULT_OPENMODE = std::ios::in; + static inline constexpr std::ios::openmode DEFAULT_OPENMODE = std::ios::in|std::ios::binary; static inline constexpr size_t BUFFER_SIZE = 1024; }; diff --git a/Utils/libarchive_extract.cpp b/Utils/libarchive_extract.cpp index 660f44fd..640bf83d 100644 --- a/Utils/libarchive_extract.cpp +++ b/Utils/libarchive_extract.cpp @@ -184,7 +184,7 @@ namespace Utils stat(it.path().string().c_str(), &st); archive_entry_copy_stat(dir_entry, &st); if (archive_write_header(a, dir_entry) != ARCHIVE_OK) return false; - //archive_write_finish_entry(a); + archive_write_finish_entry(a); archive_entry_free(dir_entry); } else if (it.is_regular_file()) @@ -202,13 +202,14 @@ namespace Utils if (archive_write_header(a, file_entry) != ARCHIVE_OK) return false; // read file and write to archive - FileReader fr(it.path(), std::ios_base::binary, true); - if (fr.Read() > 0) + FileReader fr(it.path()); + auto read = fr.Read(); + if (read > 0) { auto& buffer = fr.GetBuffer(); - if (archive_write_data(a, buffer.data(), buffer.size()) != buffer.size()) return false; + if (archive_write_data(a, buffer.data(), read) != read) return false; } - //archive_write_finish_entry(a); + archive_write_finish_entry(a); archive_entry_free(file_entry); } } From 64a761896bde76ac30f11c96233b4e35388c2a79 Mon Sep 17 00:00:00 2001 From: Nathan Miller Date: Thu, 25 Apr 2024 13:40:00 -0700 Subject: [PATCH 020/168] rename constant --- OdbDesignTests/Fixtures/FileArchiveLoadFixture.cpp | 4 ++-- OdbDesignTests/Fixtures/FileArchiveLoadFixture.h | 9 ++++----- 2 files changed, 6 insertions(+), 7 deletions(-) diff --git a/OdbDesignTests/Fixtures/FileArchiveLoadFixture.cpp b/OdbDesignTests/Fixtures/FileArchiveLoadFixture.cpp index 7bc2ed5d..c4d374c5 100644 --- a/OdbDesignTests/Fixtures/FileArchiveLoadFixture.cpp +++ b/OdbDesignTests/Fixtures/FileArchiveLoadFixture.cpp @@ -72,7 +72,7 @@ namespace Odb::Test::Fixtures path FileArchiveLoadFixture::getTestDataFilesDir() { - return m_testDataDir / TESTFILE_DIR; + return m_testDataDir / TESTDATA_FILES_DIR; } path FileArchiveLoadFixture::getDesignPath(const std::string& filename) const @@ -82,6 +82,6 @@ namespace Odb::Test::Fixtures path FileArchiveLoadFixture::getTestDataFilePath(const std::string& filename) const { - return m_testDataDir / TESTFILE_DIR / filename; + return m_testDataDir / TESTDATA_FILES_DIR / filename; } } \ No newline at end of file diff --git a/OdbDesignTests/Fixtures/FileArchiveLoadFixture.h b/OdbDesignTests/Fixtures/FileArchiveLoadFixture.h index f4f6cb44..05fcc0e7 100644 --- a/OdbDesignTests/Fixtures/FileArchiveLoadFixture.h +++ b/OdbDesignTests/Fixtures/FileArchiveLoadFixture.h @@ -2,10 +2,10 @@ #include "gtest/gtest.h" #include -#include "OdbDesign.h" #include #include #include +#include namespace Odb::Test::Fixtures { @@ -27,12 +27,11 @@ namespace Odb::Test::Fixtures std::filesystem::path getTestDataFilesDir(); std::filesystem::path getDesignPath(const std::string& filename) const; std::filesystem::path getTestDataFilePath(const std::string& filename) const; - - static inline const std::vector KEEP_DIRECTORIES = { "files" }; - + static inline constexpr const char ODB_TEST_DATA_DIR_ENV_NAME[] = "ODB_TEST_DATA_DIR"; - static inline constexpr const char TESTFILE_DIR[] = "files"; + static inline constexpr const char TESTDATA_FILES_DIR[] = "FILES"; + static inline const std::vector KEEP_DIRECTORIES = { TESTDATA_FILES_DIR }; static inline constexpr bool ENABLE_TEST_LOGGING = false; From 69bccbb5223422bde9f1534a5d10b71ea030d66f Mon Sep 17 00:00:00 2001 From: Nathan Miller Date: Thu, 25 Apr 2024 13:56:33 -0700 Subject: [PATCH 021/168] use enum for buffer strategy --- OdbDesignTests/FileReaderTests.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/OdbDesignTests/FileReaderTests.cpp b/OdbDesignTests/FileReaderTests.cpp index 994c233a..9691cbc5 100644 --- a/OdbDesignTests/FileReaderTests.cpp +++ b/OdbDesignTests/FileReaderTests.cpp @@ -19,10 +19,10 @@ namespace Odb::Test ASSERT_TRUE(exists(filePath)); - FileReader fr(filePath, std::ios_base::binary, false); + FileReader fr(filePath); auto fileSize = file_size(filePath); - auto read = fr.Read(); + auto read = fr.Read(FileReader::BufferStrategy::Buffered); ASSERT_EQ(read, fileSize); auto& buffer = fr.GetBuffer(); @@ -36,10 +36,10 @@ namespace Odb::Test ASSERT_TRUE(exists(filePath)); - FileReader fr(filePath, std::ios_base::binary, true); + FileReader fr(filePath); auto fileSize = file_size(filePath); - auto read = fr.Read(); + auto read = fr.Read(FileReader::BufferStrategy::Unbuffered); ASSERT_EQ(read, fileSize); auto& buffer = fr.GetBuffer(); From e9ea96548ab83be336ffa4dbfdae51c4db137a1a Mon Sep 17 00:00:00 2001 From: Nathan Miller Date: Thu, 25 Apr 2024 14:17:55 -0700 Subject: [PATCH 022/168] cleanup --- Utils/FileReader.cpp | 29 ++++++++++------------------- Utils/FileReader.h | 10 ---------- 2 files changed, 10 insertions(+), 29 deletions(-) diff --git a/Utils/FileReader.cpp b/Utils/FileReader.cpp index 08738d04..e4cefca8 100644 --- a/Utils/FileReader.cpp +++ b/Utils/FileReader.cpp @@ -30,29 +30,22 @@ namespace Utils { auto read = 0LL; - if (bufferStrategy == BufferStrategy::Unbuffered) + std::ifstream file(m_filePath, mode); + if (file.is_open()) { - std::ifstream file(m_filePath, mode); - if (file.is_open()) + if (bufferStrategy == BufferStrategy::Unbuffered) { long long size = file_size(m_filePath); m_buffer.resize(size); file.read(m_buffer.data(), size); if (file.gcount() == size) { - read = size; + read = size; } - m_buffer.push_back(0); - m_buffer.resize(read); - file.close(); } - } - else - { - std::ifstream file(m_filePath, mode); - if (file.is_open()) + else { - char szBuffer[BUFFER_SIZE]{ 0 }; + char szBuffer[BUFFER_SIZE]{ 0 }; while (true) { file.read(szBuffer, sizeof(szBuffer)); @@ -61,18 +54,16 @@ namespace Utils { m_buffer.insert(m_buffer.end(), szBuffer, szBuffer + readin); read += readin; - } + } else { break; } } - // put a '/0' AFTER the end of the buffer - m_buffer.push_back(0); - // then resize it back so the '/0' isn't included, but visualizing as a C string still works - m_buffer.resize(read); - file.close(); } + m_buffer.push_back(0); + m_buffer.resize(read); + file.close(); } return read; diff --git a/Utils/FileReader.h b/Utils/FileReader.h index 120f1d9f..bff78c91 100644 --- a/Utils/FileReader.h +++ b/Utils/FileReader.h @@ -17,13 +17,6 @@ namespace Utils FileReader(const std::filesystem::path& filePath); - //FileReader(const std::filesystem::path& filePath, - // std::ios::openmode mode); - - //FileReader(const std::filesystem::path& filePath, - // std::ios::openmode mode, - // bool unbuffered); - long long Read(BufferStrategy bufferStrategy = BufferStrategy::Buffered, std::ios::openmode mode = DEFAULT_OPENMODE); //const char* GetBytes(); void Clear(); @@ -31,9 +24,6 @@ namespace Utils private: const std::filesystem::path m_filePath; - //const bool m_unbuffered; - //const std::ifstream::openmode m_mode; - std::vector m_buffer; static inline constexpr std::ios::openmode DEFAULT_OPENMODE = std::ios::in|std::ios::binary; From 6a4604e2859b0f1eee87a6ac3bb7a30087684fbd Mon Sep 17 00:00:00 2001 From: Nathan Miller Date: Thu, 25 Apr 2024 14:18:03 -0700 Subject: [PATCH 023/168] fix error --- OdbDesignTests/TestTests.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/OdbDesignTests/TestTests.cpp b/OdbDesignTests/TestTests.cpp index 2a85f707..7bd51ee9 100644 --- a/OdbDesignTests/TestTests.cpp +++ b/OdbDesignTests/TestTests.cpp @@ -29,7 +29,7 @@ namespace Odb::Test TEST_F(FileArchiveLoadFixture, TestDataDirEnvironmentVariablesExists) { //ASSERT_FALSE(getTestDataDir().empty()); - EXPECT_THAT(getTestDataDir(), Not(IsEmpty())); + EXPECT_THAT(getTestDataDir().string(), Not(IsEmpty())); } TEST_F(FileArchiveLoadFixture, TestDataDirDirectoryExists) From 2548a476b4c83e004fc43f6d4c33d64f7e9b6e56 Mon Sep 17 00:00:00 2001 From: Nathan Miller Date: Thu, 25 Apr 2024 15:20:38 -0700 Subject: [PATCH 024/168] add EnumMap class --- Utils/CMakeLists.txt | 2 +- Utils/EnumMap.cpp | 1 + Utils/EnumMap.h | 40 ++++++++++++++++++++++++++++++++++++++++ 3 files changed, 42 insertions(+), 1 deletion(-) create mode 100644 Utils/EnumMap.cpp create mode 100644 Utils/EnumMap.h diff --git a/Utils/CMakeLists.txt b/Utils/CMakeLists.txt index a994b1c3..dc5f0b0d 100644 --- a/Utils/CMakeLists.txt +++ b/Utils/CMakeLists.txt @@ -1,7 +1,7 @@ # CMakeList.txt : CMake project for OdbDesignServer # -add_library(Utils SHARED "utils_export.h" "ExitCode.h" "ThreadSafeQueue.h" "WorkQueueLoopThread.h" "Logger.h" "Logger.cpp" "CommandLineArgs.h" "CommandLineArgs.cpp" "bin2ascii.h" "ArchiveExtractor.cpp" "ArchiveExtractor.h" "libarchive_extract.cpp" "libarchive_extract.h" "str_utils.cpp" "str_utils.h" "IJsonable.h" "IJsonable.cpp" "CrowReturnable.h" "JsonCrowReturnable.h" "timestamp.h" "timestamp.cpp" "StopWatch.h" "StopWatch.cpp" "UrlEncoding.h" "UrlEncoding.cpp" "StringVector.h" "equals_within.h" "equals_within.cpp" "crow_win.h" "fastcopy.h" "fastcopy.cpp" "FileReader.h" "FileReader.cpp") +add_library(Utils SHARED "utils_export.h" "ExitCode.h" "ThreadSafeQueue.h" "WorkQueueLoopThread.h" "Logger.h" "Logger.cpp" "CommandLineArgs.h" "CommandLineArgs.cpp" "bin2ascii.h" "ArchiveExtractor.cpp" "ArchiveExtractor.h" "libarchive_extract.cpp" "libarchive_extract.h" "str_utils.cpp" "str_utils.h" "IJsonable.h" "IJsonable.cpp" "CrowReturnable.h" "JsonCrowReturnable.h" "timestamp.h" "timestamp.cpp" "StopWatch.h" "StopWatch.cpp" "UrlEncoding.h" "UrlEncoding.cpp" "StringVector.h" "equals_within.h" "equals_within.cpp" "crow_win.h" "fastcopy.h" "fastcopy.cpp" "FileReader.h" "FileReader.cpp" "EnumMap.h" "EnumMap.cpp") # state that anybody linking to us needs to include the current source dir, # while we don't. diff --git a/Utils/EnumMap.cpp b/Utils/EnumMap.cpp new file mode 100644 index 00000000..805dabd4 --- /dev/null +++ b/Utils/EnumMap.cpp @@ -0,0 +1 @@ +#include "EnumMap.h" \ No newline at end of file diff --git a/Utils/EnumMap.h b/Utils/EnumMap.h new file mode 100644 index 00000000..5d0cf071 --- /dev/null +++ b/Utils/EnumMap.h @@ -0,0 +1,40 @@ +#pragma once + +#include +#include +#include + +template +class EnumMap +{ +public: + EnumMap(const std::vector& names) + : m_names(names) + {} + + std::string getValue(const E e) const + { + auto index = static_cast(e); + if (index < 0 || index >= m_names.size()) + { + throw Exception("no name found for value"); + } + return m_names[index]; + } + + E getValue(const std::string& name) const + { + auto find = std::find(m_names.begin(), m_names.end(), name); + if (find == m_names.end()) + { + throw Exception("no value found for name"); + } + return static_cast(std::distance(m_names.begin(), find)); + } + + typedef std::exception Exception; + +private: + const std::vector m_names; + +}; From 7ba31b9dca639ba9e037a814a2fa0a296421f6b8 Mon Sep 17 00:00:00 2001 From: Nathan Miller Date: Fri, 26 Apr 2024 09:52:34 -0700 Subject: [PATCH 025/168] add contains() methods to EnumMap --- Utils/EnumMap.h | 31 ++++++++++++++++++++++++++++--- 1 file changed, 28 insertions(+), 3 deletions(-) diff --git a/Utils/EnumMap.h b/Utils/EnumMap.h index 5d0cf071..13630955 100644 --- a/Utils/EnumMap.h +++ b/Utils/EnumMap.h @@ -3,6 +3,18 @@ #include #include #include +#include + +//bool case_insensitive_compare(const std::string& s1, const std::string& s2) +//{ +// return std::equal( +// s1.begin(), s1.end(), +// s2.begin(), s2.end(), +// [](char c1, char c2) +// { +// return std::tolower(c1) == std::tolower(c2); +// }); +//} template class EnumMap @@ -24,12 +36,25 @@ class EnumMap E getValue(const std::string& name) const { - auto find = std::find(m_names.begin(), m_names.end(), name); - if (find == m_names.end()) + //auto find = std::find_if(m_names.begin(), m_names.end(), name, case_insensitive_compare); + auto findIt = std::find(m_names.begin(), m_names.end(), name); + if (findIt == m_names.end()) { throw Exception("no value found for name"); } - return static_cast(std::distance(m_names.begin(), find)); + return static_cast(std::distance(m_names.begin(), findIt)); + } + + bool contains(const std::string& name) const + { + //return std::find_if(m_names.begin(), m_names.end(), name, case_insensitive_compare) != m_names.end(); + return std::find(m_names.begin(), m_names.end(), name) != m_names.end(); + } + + bool contains(const E e) const + { + auto index = static_cast(e); + return index >= 0 && index < m_names.size(); } typedef std::exception Exception; From 296e0095fbf4a12c4ae9af46bbce838242d7c421 Mon Sep 17 00:00:00 2001 From: Nathan Miller Date: Fri, 26 Apr 2024 09:53:01 -0700 Subject: [PATCH 026/168] minor refactor --- Utils/FileReader.cpp | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/Utils/FileReader.cpp b/Utils/FileReader.cpp index e4cefca8..90ba5871 100644 --- a/Utils/FileReader.cpp +++ b/Utils/FileReader.cpp @@ -50,15 +50,12 @@ namespace Utils { file.read(szBuffer, sizeof(szBuffer)); auto readin = file.gcount(); - if (readin > 0) - { - m_buffer.insert(m_buffer.end(), szBuffer, szBuffer + readin); - read += readin; - } - else + if (readin < 1) { break; } + m_buffer.insert(m_buffer.end(), szBuffer, szBuffer + readin); + read += readin; } } m_buffer.push_back(0); From 7b09ea7dd23b7e768dccd4978bd4938882c57469 Mon Sep 17 00:00:00 2001 From: Nathan Miller Date: Fri, 26 Apr 2024 09:53:13 -0700 Subject: [PATCH 027/168] add str_icmp() --- Utils/str_utils.cpp | 43 ++++++++++++++++++++++++++++++++++++++++++- Utils/str_utils.h | 4 ++++ 2 files changed, 46 insertions(+), 1 deletion(-) diff --git a/Utils/str_utils.cpp b/Utils/str_utils.cpp index 08fc797f..8905e190 100644 --- a/Utils/str_utils.cpp +++ b/Utils/str_utils.cpp @@ -1,4 +1,6 @@ #include "str_utils.h" +#include "str_utils.h" +#include "str_utils.h" #include #include #include @@ -6,9 +8,11 @@ namespace Utils { + + static bool case_insensitive_compare(const std::string& s1, const std::string& s2); + //! std::isspace(char) can only handle chars in the range [0,255] //! so we need to cast the it's argument to unsigned char - // trim from start (in place) std::string& str_ltrim(std::string& s) { @@ -127,5 +131,42 @@ namespace Utils std::string copy; std::transform(copy.begin(), copy.end(), copy.begin(), [](unsigned char c) { return std::toupper(c); }); return copy; + } + + UTILS_EXPORT bool str_icmp(const std::string& s1, const std::string& s2) + { + return case_insensitive_compare(s1, s2); + } + + static bool case_insensitive_compare(const std::string& s1, const std::string& s2) + { + return std::equal( + s1.begin(), s1.end(), + s2.begin(), s2.end(), + [](char c1, char c2) + { + return std::tolower(c1) == std::tolower(c2); + }); } + + // UTILS_EXPORT std::string Utils::str_replace(const std::string& s, const std::string& from, const std::string& to) + // { + // std::string result; + //result.reserve(s.length()); // avoids a few memory allocations + + //std::string::size_type lastPos = 0; + //std::string::size_type findPos; + + // while (std::string::npos != (findPos = s.find(from, lastPos))) + // { + // result.append(s, lastPos, findPos - lastPos); + // result += to; + // lastPos = findPos + from.length(); + //} + + //// Care for the rest after last occurrence + //result += s.substr(lastPos); + + //return result; + // } } diff --git a/Utils/str_utils.h b/Utils/str_utils.h index cb948619..6d2086bf 100644 --- a/Utils/str_utils.h +++ b/Utils/str_utils.h @@ -37,4 +37,8 @@ namespace Utils UTILS_EXPORT std::string str_to_lower_copy(const std::string& s); UTILS_EXPORT std::string str_to_upper_copy(const std::string& s); + + //UTILS_EXPORT std::string str_replace(const std::string& s, const std::string& from, const std::string& to); + + UTILS_EXPORT bool str_icmp(const std::string& s1, const std::string& s2); } \ No newline at end of file From bc8df1c6649c30699cf2206e0d69a6657641b051 Mon Sep 17 00:00:00 2001 From: Nathan Miller Date: Fri, 26 Apr 2024 09:53:33 -0700 Subject: [PATCH 028/168] export RgbColor type --- OdbDesignLib/FileModel/Design/RgbColor.cpp | 3 ++- OdbDesignLib/FileModel/Design/RgbColor.h | 6 ++++-- 2 files changed, 6 insertions(+), 3 deletions(-) diff --git a/OdbDesignLib/FileModel/Design/RgbColor.cpp b/OdbDesignLib/FileModel/Design/RgbColor.cpp index d87f9c97..322272f7 100644 --- a/OdbDesignLib/FileModel/Design/RgbColor.cpp +++ b/OdbDesignLib/FileModel/Design/RgbColor.cpp @@ -1,4 +1,5 @@ #include "RgbColor.h" +#include namespace Odb::Lib::FileModel::Design { @@ -44,7 +45,7 @@ namespace Odb::Lib::FileModel::Design return false; } - inline std::string RgbColor::to_string() + std::string RgbColor::to_string() const { if (noPreference) { diff --git a/OdbDesignLib/FileModel/Design/RgbColor.h b/OdbDesignLib/FileModel/Design/RgbColor.h index 98539c20..f18aad51 100644 --- a/OdbDesignLib/FileModel/Design/RgbColor.h +++ b/OdbDesignLib/FileModel/Design/RgbColor.h @@ -1,13 +1,15 @@ #pragma once #include +#include "../../odbdesign_export.h" +#include namespace Odb::Lib::FileModel::Design { /// @class struct for representing preferred layer color /// @brief each color value ranges from 0% - 100% /// noPreference is true if the Odb++ file does not specify a color - struct RgbColor + struct ODBDESIGN_EXPORT RgbColor { uint8_t red; uint8_t green; @@ -19,6 +21,6 @@ namespace Odb::Lib::FileModel::Design explicit RgbColor(const std::string& str); bool from_string(const std::string& str); - std::string to_string(); + std::string to_string() const; }; } From dd25a8aea8e4290467b30f19955dbf9b89d53a8e Mon Sep 17 00:00:00 2001 From: Nathan Miller Date: Fri, 26 Apr 2024 09:54:39 -0700 Subject: [PATCH 029/168] matrix file Save() complete- handles enums --- OdbDesignLib/FileModel/Design/MatrixFile.cpp | 204 ++++++++----------- OdbDesignLib/FileModel/Design/MatrixFile.h | 60 +++++- 2 files changed, 130 insertions(+), 134 deletions(-) diff --git a/OdbDesignLib/FileModel/Design/MatrixFile.cpp b/OdbDesignLib/FileModel/Design/MatrixFile.cpp index dfd75b07..5da2200a 100644 --- a/OdbDesignLib/FileModel/Design/MatrixFile.cpp +++ b/OdbDesignLib/FileModel/Design/MatrixFile.cpp @@ -1,5 +1,3 @@ -#include "MatrixFile.h" -#include "MatrixFile.h" // // Created by nmill on 10/13/2023. // @@ -14,6 +12,10 @@ #include #include "../invalid_odb_error.h" #include "../../ProtoBuf/enums.pb.h" +#include "../../enums.h" +#include "../OdbFile.h" +#include +#include namespace Odb::Lib::FileModel::Design { @@ -133,6 +135,7 @@ namespace Odb::Lib::FileModel::Design { // TODO: how to determine if you are opening a step or layer array record? // (maybe a boolean flag? stepArrayOpen = true/false) + // no current opening of a layer or step array record found yet if (pCurrentStepRecord == nullptr && pCurrentLayerRecord == nullptr) { @@ -191,17 +194,17 @@ namespace Odb::Lib::FileModel::Design if (pCurrentStepRecord != nullptr && openBraceFound) { - if (attribute == "COL" || attribute == "col") + if (attribute == StepRecord::COLUMN_KEY || attribute == "col") { pCurrentStepRecord->column = std::stoi(value); } - else if (attribute == "NAME" || attribute == "name") + else if (attribute == StepRecord::NAME_KEY || attribute == "name") { pCurrentStepRecord->name = value; } - else if (attribute == "ID" || attribute == "id") + else if (attribute == StepRecord::ID_KEY || attribute == "id") { - pCurrentStepRecord->id = (unsigned int)std::stoul(value); + pCurrentStepRecord->id = static_cast(std::stoul(value)); } else { @@ -223,135 +226,67 @@ namespace Odb::Lib::FileModel::Design pCurrentLayerRecord->id = (unsigned int)std::stoul(value); } else if (attribute == "TYPE" || attribute == "type") - { - if (value == "SIGNAL") - { - pCurrentLayerRecord->type = LayerRecord::Type::Signal; - } - else if (value == "POWER_GROUND") - { - pCurrentLayerRecord->type = LayerRecord::Type::PowerGround; - } - else if (value == "DIELECTRIC") - { - pCurrentLayerRecord->type = LayerRecord::Type::Dielectric; - } - else if (value == "MIXED") - { - pCurrentLayerRecord->type = LayerRecord::Type::Mixed; - } - else if (value == "SOLDER_MASK") - { - pCurrentLayerRecord->type = LayerRecord::Type::SolderMask; - } - else if (value == "SOLDER_PASTE") + { + if (LayerRecord::typeMap.contains(value)) { - pCurrentLayerRecord->type = LayerRecord::Type::SolderPaste; - } - else if (value == "SILK_SCREEN") - { - pCurrentLayerRecord->type = LayerRecord::Type::SilkScreen; - } - else if (value == "DRILL") - { - pCurrentLayerRecord->type = LayerRecord::Type::Drill; - } - else if (value == "ROUT") - { - pCurrentLayerRecord->type = LayerRecord::Type::Rout; - } - else if (value == "DOCUMENT") - { - pCurrentLayerRecord->type = LayerRecord::Type::Document; - } - else if (value == "COMPONENT") - { - pCurrentLayerRecord->type = LayerRecord::Type::Component; - } - else if (value == "MASK") - { - pCurrentLayerRecord->type = LayerRecord::Type::Mask; - } - else if (value == "CONDUCTIVE_PASTE") - { - pCurrentLayerRecord->type = LayerRecord::Type::ConductivePaste; - } + pCurrentLayerRecord->type = LayerRecord::typeMap.getValue(value); + } else { throw_parse_error(m_path, line, attribute, lineNumber); } } - else if (attribute == "CONTEXT" || attribute == "context") + else if (attribute == LayerRecord::CONTEXT_KEY || attribute == "context") { - if (value == "BOARD") + if (LayerRecord::contextMap.contains(value)) { - pCurrentLayerRecord->context = LayerRecord::Context::Board; - } - else if (value == "MISC") - { - pCurrentLayerRecord->context = LayerRecord::Context::Misc; - } + pCurrentLayerRecord->context = LayerRecord::contextMap.getValue(value); + } else { - throw_parse_error(m_path, line, attribute, lineNumber); - } + throw_parse_error(m_path, line, attribute, lineNumber); + } } else if (attribute == "OLD_NAME" || attribute == "old_name") { pCurrentLayerRecord->oldName = value; } - else if (attribute == "POLARITY" || attribute == "polarity") + else if (attribute == LayerRecord::POLARITY_KEY || attribute == "polarity") { - if (value == "POSITIVE") - { - pCurrentLayerRecord->polarity = Polarity::Positive; - } - else if (value == "NEGATIVE") + if (LayerRecord::polarityMap.contains(value)) { - pCurrentLayerRecord->polarity = Polarity::Negative; - } + pCurrentLayerRecord->polarity = LayerRecord::polarityMap.getValue(value); + } else { throw_parse_error(m_path, line, attribute, lineNumber); - } + } } - else if (attribute == "DIELECTRIC_TYPE" || attribute == "dielectric_type") + else if (attribute == LayerRecord::DIELECTRIC_TYPE_KEY || attribute == "dielectric_type") { - if (value == "NONE") - { - pCurrentLayerRecord->dielectricType = LayerRecord::DielectricType::None; - } - else if (value == "PREPREG") + if (LayerRecord::dielectricTypeMap.contains(value)) { - pCurrentLayerRecord->dielectricType = LayerRecord::DielectricType::Prepreg; - } - else if (value == "CORE") - { - pCurrentLayerRecord->dielectricType = LayerRecord::DielectricType::Core; - } + pCurrentLayerRecord->dielectricType = LayerRecord::dielectricTypeMap.getValue(value); + } else { - throw_parse_error(m_path, line, attribute, lineNumber); - } + throw_parse_error(m_path, line, attribute, lineNumber); + } } else if (attribute == "DIELECTRIC_NAME" || attribute == "dielectric_name") { pCurrentLayerRecord->dielectricName = value; } - else if (attribute == "FORM" || attribute == "form") + else if (attribute == LayerRecord::FORM_KEY || attribute == "form") { - if (value == "RIGID") - { - pCurrentLayerRecord->form = LayerRecord::Form::Rigid; - } - else if (value == "FLEX") + if (LayerRecord::formMap.contains(value)) { - pCurrentLayerRecord->form = LayerRecord::Form::Flex; - } + pCurrentLayerRecord->form = LayerRecord::formMap.getValue(value); + } else { - throw_parse_error(m_path, line, attribute, lineNumber); - } + throw_parse_error(m_path, line, attribute, lineNumber); + } } else if (attribute == "CU_TOP" || attribute == "cu_top") { @@ -478,33 +413,54 @@ namespace Odb::Lib::FileModel::Design for (const auto& stepRecord : m_stepRecords) { os << StepRecord::RECORD_TOKEN << " " << Constants::ARRAY_RECORD_OPEN_TOKEN << std::endl; - os << StepRecord::COLUMN_KEY << "=" << stepRecord->column << std::endl; - os << StepRecord::NAME_KEY << "=" << stepRecord->name << std::endl; - os << StepRecord::ID_KEY << "=" << stepRecord->id << std::endl; + + os << '\t' << StepRecord::COLUMN_KEY << "=" << stepRecord->column << std::endl; + os << '\t' << StepRecord::NAME_KEY << "=" << stepRecord->name << std::endl; + os << '\t' << StepRecord::ID_KEY << "=" << stepRecord->id << std::endl; + os << Constants::ARRAY_RECORD_CLOSE_TOKEN << std::endl; - } + os << std::endl; + } for (const auto& layerRecord : m_layerRecords) { os << LayerRecord::RECORD_TOKEN << " " << Constants::ARRAY_RECORD_OPEN_TOKEN << std::endl; - os << LayerRecord::ROW_KEY << "=" << layerRecord->row << std::endl; - os << LayerRecord::NAME_KEY << "=" << layerRecord->name << std::endl; - os << LayerRecord::ID_KEY << "=" << layerRecord->id << std::endl; - //os << LayerRecord::TYPE_KEY << "=" << layerRecord->type << std::endl; - //os << LayerRecord::CONTEXT_KEY << "=" << layerRecord->context << std::endl; - //os << LayerRecord::OLD_NAME_KEY << "=" << layerRecord->oldName << std::endl; - //os << LayerRecord::POLARITY_KEY << "=" << layerRecord->polarity << std::endl; - //os << LayerRecord::DIELECTRIC_TYPE_KEY << "=" << layerRecord->dielectricType << std::endl; - os << LayerRecord::DIELECTRIC_NAME_KEY << "=" << layerRecord->dielectricName << std::endl; - //os << LayerRecord::FORM_KEY << "=" << layerRecord->form << std::endl; - os << LayerRecord::CU_TOP_KEY << "=" << layerRecord->cuTop << std::endl; - os << LayerRecord::CU_BOTTOM_KEY << "=" << layerRecord->cuBottom << std::endl; - os << LayerRecord::REF_KEY << "=" << layerRecord->ref << std::endl; - os << LayerRecord::START_NAME_KEY << "=" << layerRecord->startName << std::endl; - os << LayerRecord::END_NAME_KEY << "=" << layerRecord->endName << std::endl; - os << LayerRecord::ADD_TYPE_KEY << "=" << layerRecord->addType << std::endl; - //os << LayerRecord::COLOR_KEY << "=" << layerRecord->color << std::endl; - os << Constants::ARRAY_RECORD_CLOSE_TOKEN << std::endl; + + os << '\t' << LayerRecord::ROW_KEY << "=" << layerRecord->row << std::endl; + os << '\t' << LayerRecord::CONTEXT_KEY << "=" << LayerRecord::contextMap.getValue(layerRecord->context) << std::endl; + os << '\t' << LayerRecord::TYPE_KEY << "=" << LayerRecord::typeMap.getValue(layerRecord->type) << std::endl; + os << '\t' << LayerRecord::NAME_KEY << "=" << layerRecord->name << std::endl; + os << '\t' << LayerRecord::FORM_KEY << "=" << LayerRecord::formMap.getValue(layerRecord->form) << std::endl; + os << '\t' << LayerRecord::POLARITY_KEY << "=" << LayerRecord::polarityMap.getValue(layerRecord->polarity) << std::endl; + os << '\t' << LayerRecord::DIELECTRIC_TYPE_KEY << "=" << LayerRecord::dielectricTypeMap.getValue(layerRecord->dielectricType) << std::endl; + os << '\t' << LayerRecord::DIELECTRIC_NAME_KEY << "=" << layerRecord->dielectricName << std::endl; + os << '\t' << LayerRecord::CU_TOP_KEY << "="; + if (layerRecord->cuTop != (unsigned int)-1) + { + os << layerRecord->cuTop; + } + os << std::endl; + os << '\t' << LayerRecord::CU_BOTTOM_KEY << "="; + if (layerRecord->cuBottom != (unsigned int)-1) + { + os << layerRecord->cuBottom; + } + os << std::endl; + os << '\t' << LayerRecord::REF_KEY << "="; + if (layerRecord->ref != (unsigned int)-1) + { + os << layerRecord->ref; + } + os << std::endl; + os << '\t' << LayerRecord::START_NAME_KEY << "=" << layerRecord->startName << std::endl; + os << '\t' << LayerRecord::END_NAME_KEY << "=" << layerRecord->endName << std::endl; + os << '\t' << LayerRecord::OLD_NAME_KEY << "=" << layerRecord->oldName << std::endl; + os << '\t' << LayerRecord::ADD_TYPE_KEY << "=" << layerRecord->addType << std::endl; + os << '\t' << LayerRecord::COLOR_KEY << "=" << layerRecord->color.to_string() << std::endl; + os << '\t' << LayerRecord::ID_KEY << "=" << layerRecord->id << std::endl; + + os << Constants::ARRAY_RECORD_CLOSE_TOKEN << std::endl; + os << std::endl; } return true; @@ -574,5 +530,5 @@ namespace Odb::Lib::FileModel::Design //color.r = message.color().r(); //color.g = message.color().g(); //color.b = message.color().b(); - } + } } \ No newline at end of file diff --git a/OdbDesignLib/FileModel/Design/MatrixFile.h b/OdbDesignLib/FileModel/Design/MatrixFile.h index d3835cea..3189f33f 100644 --- a/OdbDesignLib/FileModel/Design/MatrixFile.h +++ b/OdbDesignLib/FileModel/Design/MatrixFile.h @@ -13,6 +13,7 @@ #include "../../IProtoBuffable.h" #include "../../ProtoBuf/matrixfile.pb.h" #include "../IStreamSaveable.h" +#include "EnumMap.h" namespace Odb::Lib::FileModel::Design @@ -67,6 +68,7 @@ namespace Odb::Lib::FileModel::Design enum class DielectricType { + NotSet, None, Prepreg, Core @@ -74,6 +76,7 @@ namespace Odb::Lib::FileModel::Design enum class Form { + NotSet, Rigid, Flex }; @@ -85,9 +88,9 @@ namespace Odb::Lib::FileModel::Design Type type; std::string name; Polarity polarity; - DielectricType dielectricType = DielectricType::None; + DielectricType dielectricType = DielectricType::NotSet; std::string dielectricName; - Form form = Form::Rigid; + Form form = Form::NotSet; unsigned int cuTop = (unsigned int)-1; unsigned int cuBottom = (unsigned int)-1; unsigned int ref = (unsigned int)-1; @@ -122,17 +125,54 @@ namespace Odb::Lib::FileModel::Design std::unique_ptr to_protobuf() const override; void from_protobuf(const Odb::Lib::Protobuf::MatrixFile::LayerRecord& message) override; - //static Type stringToType(const std::string& type); - //static Context stringToContext(const std::string& context); - //static DielectricType stringToDielectricType(const std::string& dielectricType); - //static Form stringToForm(const std::string& form); + inline static const EnumMap typeMap { + { + "SIGNAL", + "POWER_GROUND", + "DIELECTRIC", + "MIXED", + "SOLDER_MASK", + "SOLDER_PASTE", + "SILK_SCREEN", + "DRILL", + "ROUT", + "DOCUMENT", + "COMPONENT", + "MASK", + "CONDUCTIVE_PASTE" + } + }; - //static std::string typeToString(Type type); - //static std::string contextToString(Context context); - //static std::string dielectricTypeToString(DielectricType dielectricType); - //static std::string formToString(Form form); + inline static const EnumMap contextMap{ + { + "BOARD", + "MISC" + } + }; + inline static const EnumMap dielectricTypeMap{ + { + "", + "NONE", + "PREPREG", + "CORE" + } + }; + + inline static const EnumMap
formMap{ + { + "", + "RIGID", + "FLEX" + } + }; + inline static const EnumMap polarityMap{ + { + "POSITIVE", + "NEGATIVE" + } + }; }; const LayerRecord::Vector& GetLayerRecords() const; From dbf268ccd019a140c5933ba51c07fa09b3d746b9 Mon Sep 17 00:00:00 2001 From: Nathan Miller Date: Fri, 26 Apr 2024 10:06:16 -0700 Subject: [PATCH 030/168] remove case-insensitive compare kruft from EnumMap --- Utils/EnumMap.h | 13 ------------- 1 file changed, 13 deletions(-) diff --git a/Utils/EnumMap.h b/Utils/EnumMap.h index 13630955..f222c027 100644 --- a/Utils/EnumMap.h +++ b/Utils/EnumMap.h @@ -3,18 +3,7 @@ #include #include #include -#include -//bool case_insensitive_compare(const std::string& s1, const std::string& s2) -//{ -// return std::equal( -// s1.begin(), s1.end(), -// s2.begin(), s2.end(), -// [](char c1, char c2) -// { -// return std::tolower(c1) == std::tolower(c2); -// }); -//} template class EnumMap @@ -36,7 +25,6 @@ class EnumMap E getValue(const std::string& name) const { - //auto find = std::find_if(m_names.begin(), m_names.end(), name, case_insensitive_compare); auto findIt = std::find(m_names.begin(), m_names.end(), name); if (findIt == m_names.end()) { @@ -47,7 +35,6 @@ class EnumMap bool contains(const std::string& name) const { - //return std::find_if(m_names.begin(), m_names.end(), name, case_insensitive_compare) != m_names.end(); return std::find(m_names.begin(), m_names.end(), name) != m_names.end(); } From 24247b4948000253af47e4256eb7a4192b8c486e Mon Sep 17 00:00:00 2001 From: Nathan Miller Date: Fri, 26 Apr 2024 15:50:48 -0700 Subject: [PATCH 031/168] add IsLinux() andf IsApple() functions --- Utils/macros.h | 31 +++++++++++++++++++++++++++++-- 1 file changed, 29 insertions(+), 2 deletions(-) diff --git a/Utils/macros.h b/Utils/macros.h index fd1b580d..6400d3a6 100644 --- a/Utils/macros.h +++ b/Utils/macros.h @@ -6,9 +6,36 @@ namespace Utils { - constexpr static inline bool IsMsvc() + constexpr static inline bool IsWindows() { - #if defined(_MSC_VER) + #if defined(_WIN32) // or _MSC_VER + return true; + #else + return false; + #endif + } + + constexpr static inline bool IsApple() + { + #if defined(__APPLE__) + return true; + #else + return false; + #endif + } + + constexpr static inline bool IsLinux() + { + #if defined(__linux__) + return true; + #else + return false; + #endif + } + + constexpr static inline bool IsUnix() + { + #if defined(__unix__) return true; #else return false; From a347c84689212f8ae6194023cec54b97d4437eae Mon Sep 17 00:00:00 2001 From: Nathan Miller Date: Fri, 26 Apr 2024 15:51:04 -0700 Subject: [PATCH 032/168] add empty CrossPlatform class --- Utils/CMakeLists.txt | 2 +- Utils/CrossPlatform.cpp | 39 +++++++++++++++++++++++++++++++++++++++ Utils/CrossPlatform.h | 16 ++++++++++++++++ 3 files changed, 56 insertions(+), 1 deletion(-) create mode 100644 Utils/CrossPlatform.cpp create mode 100644 Utils/CrossPlatform.h diff --git a/Utils/CMakeLists.txt b/Utils/CMakeLists.txt index dc5f0b0d..19e475be 100644 --- a/Utils/CMakeLists.txt +++ b/Utils/CMakeLists.txt @@ -1,7 +1,7 @@ # CMakeList.txt : CMake project for OdbDesignServer # -add_library(Utils SHARED "utils_export.h" "ExitCode.h" "ThreadSafeQueue.h" "WorkQueueLoopThread.h" "Logger.h" "Logger.cpp" "CommandLineArgs.h" "CommandLineArgs.cpp" "bin2ascii.h" "ArchiveExtractor.cpp" "ArchiveExtractor.h" "libarchive_extract.cpp" "libarchive_extract.h" "str_utils.cpp" "str_utils.h" "IJsonable.h" "IJsonable.cpp" "CrowReturnable.h" "JsonCrowReturnable.h" "timestamp.h" "timestamp.cpp" "StopWatch.h" "StopWatch.cpp" "UrlEncoding.h" "UrlEncoding.cpp" "StringVector.h" "equals_within.h" "equals_within.cpp" "crow_win.h" "fastcopy.h" "fastcopy.cpp" "FileReader.h" "FileReader.cpp" "EnumMap.h" "EnumMap.cpp") +add_library(Utils SHARED "utils_export.h" "ExitCode.h" "ThreadSafeQueue.h" "WorkQueueLoopThread.h" "Logger.h" "Logger.cpp" "CommandLineArgs.h" "CommandLineArgs.cpp" "bin2ascii.h" "ArchiveExtractor.cpp" "ArchiveExtractor.h" "libarchive_extract.cpp" "libarchive_extract.h" "str_utils.cpp" "str_utils.h" "IJsonable.h" "IJsonable.cpp" "CrowReturnable.h" "JsonCrowReturnable.h" "timestamp.h" "timestamp.cpp" "StopWatch.h" "StopWatch.cpp" "UrlEncoding.h" "UrlEncoding.cpp" "StringVector.h" "equals_within.h" "equals_within.cpp" "crow_win.h" "fastcopy.h" "fastcopy.cpp" "FileReader.h" "FileReader.cpp" "EnumMap.h" "EnumMap.cpp" "CrossPlatform.h" "CrossPlatform.cpp") # state that anybody linking to us needs to include the current source dir, # while we don't. diff --git a/Utils/CrossPlatform.cpp b/Utils/CrossPlatform.cpp new file mode 100644 index 00000000..5be2f85e --- /dev/null +++ b/Utils/CrossPlatform.cpp @@ -0,0 +1,39 @@ +#include "CrossPlatform.h" +#include "macros.h" + + +#include +#include + +namespace Utils +{ + //bool CrossPlatform::localtime(const std::time_t* time, struct std::tm& tmOut) + //{ + // #if (Utils::IsWindows()) + // { + // if (0 == localtime_s(&tmOut, time)) + // { + // return true; + // } + // return false; + // } + // #elseif (Utils::IsLinux() || Utils::IsApple()) + // { + // localtime_r(time, &tmOut); + // return true; + // } + // #endif + + // return false; + //} + + //char* CrossPlatform::getenv(const char* env_var) + //{ + // return nullptr; + //} + + //char* CrossPlatform::tmpnam(char* filename) + //{ + // return nullptr; + //} +} \ No newline at end of file diff --git a/Utils/CrossPlatform.h b/Utils/CrossPlatform.h new file mode 100644 index 00000000..4cc3a91a --- /dev/null +++ b/Utils/CrossPlatform.h @@ -0,0 +1,16 @@ +#pragma once + +#include +#include "utils_export.h" + +namespace Utils +{ + class CrossPlatform + { + public: + //static bool localtime(const std::time_t* time, struct std::tm& tmOut); + //static char* getenv(const char* env_var); + //static char* tmpnam(char* filename); + + }; +} From deb1f746e2700d3b4648ca66345ea7d70745adc3 Mon Sep 17 00:00:00 2001 From: Nathan Miller Date: Fri, 26 Apr 2024 16:28:20 -0700 Subject: [PATCH 033/168] put EnumMap class into Utils namespace --- OdbDesignLib/FileModel/Design/MatrixFile.h | 10 +-- Utils/EnumMap.h | 74 ++++++++++++---------- 2 files changed, 44 insertions(+), 40 deletions(-) diff --git a/OdbDesignLib/FileModel/Design/MatrixFile.h b/OdbDesignLib/FileModel/Design/MatrixFile.h index 3189f33f..bbe0f793 100644 --- a/OdbDesignLib/FileModel/Design/MatrixFile.h +++ b/OdbDesignLib/FileModel/Design/MatrixFile.h @@ -125,7 +125,7 @@ namespace Odb::Lib::FileModel::Design std::unique_ptr to_protobuf() const override; void from_protobuf(const Odb::Lib::Protobuf::MatrixFile::LayerRecord& message) override; - inline static const EnumMap typeMap { + inline static const Utils::EnumMap typeMap { { "SIGNAL", "POWER_GROUND", @@ -143,14 +143,14 @@ namespace Odb::Lib::FileModel::Design } }; - inline static const EnumMap contextMap{ + inline static const Utils::EnumMap contextMap{ { "BOARD", "MISC" } }; - inline static const EnumMap dielectricTypeMap{ + inline static const Utils::EnumMap dielectricTypeMap{ { "", "NONE", @@ -159,7 +159,7 @@ namespace Odb::Lib::FileModel::Design } }; - inline static const EnumMap formMap{ + inline static const Utils::EnumMap formMap{ { "", "RIGID", @@ -167,7 +167,7 @@ namespace Odb::Lib::FileModel::Design } }; - inline static const EnumMap polarityMap{ + inline static const Utils::EnumMap polarityMap{ { "POSITIVE", "NEGATIVE" diff --git a/Utils/EnumMap.h b/Utils/EnumMap.h index f222c027..03a2855b 100644 --- a/Utils/EnumMap.h +++ b/Utils/EnumMap.h @@ -3,50 +3,54 @@ #include #include #include +#include "str_utils.h" - -template -class EnumMap +namespace Utils { -public: - EnumMap(const std::vector& names) - : m_names(names) - {} - - std::string getValue(const E e) const - { - auto index = static_cast(e); - if (index < 0 || index >= m_names.size()) + template + class EnumMap + { + public: + EnumMap(const std::vector& names) + : m_names(names) + {} + + std::string getValue(const E e) const { - throw Exception("no name found for value"); + auto index = static_cast(e); + if (index < 0 || index >= m_names.size()) + { + throw Exception("no name found for value"); + } + return m_names[index]; } - return m_names[index]; - } - E getValue(const std::string& name) const - { - auto findIt = std::find(m_names.begin(), m_names.end(), name); - if (findIt == m_names.end()) + E getValue(const std::string& name) const { - throw Exception("no value found for name"); + //auto findIt = find_str_icmp(m_names.begin(), m_names.end(), name); + auto findIt = std::find(m_names.begin(), m_names.end(), name); + if (findIt == m_names.end()) + { + throw Exception("no value found for name"); + } + return static_cast(std::distance(m_names.begin(), findIt)); } - return static_cast(std::distance(m_names.begin(), findIt)); - } - bool contains(const std::string& name) const - { - return std::find(m_names.begin(), m_names.end(), name) != m_names.end(); - } + bool contains(const std::string& name) const + { + return std::find(m_names.begin(), m_names.end(), name) != m_names.end(); + } - bool contains(const E e) const - { - auto index = static_cast(e); - return index >= 0 && index < m_names.size(); - } + bool contains(const E e) const + { + auto index = static_cast(e); + return index >= 0 && index < m_names.size(); + } - typedef std::exception Exception; + typedef std::exception Exception; -private: - const std::vector m_names; + private: + std::vector m_names; -}; + }; +} From 3ab7c530b4f36da0f33c0127d20b7fa05b67a2e5 Mon Sep 17 00:00:00 2001 From: Nathan Miller Date: Fri, 26 Apr 2024 16:28:40 -0700 Subject: [PATCH 034/168] add failed attempt at find_str_icmp() --- Utils/str_utils.cpp | 9 ++++++++- Utils/str_utils.h | 8 +++++++- 2 files changed, 15 insertions(+), 2 deletions(-) diff --git a/Utils/str_utils.cpp b/Utils/str_utils.cpp index 8905e190..b3daac5f 100644 --- a/Utils/str_utils.cpp +++ b/Utils/str_utils.cpp @@ -1,9 +1,11 @@ #include "str_utils.h" #include "str_utils.h" #include "str_utils.h" +#include "str_utils.h" #include #include #include +#include namespace Utils @@ -133,11 +135,16 @@ namespace Utils return copy; } - UTILS_EXPORT bool str_icmp(const std::string& s1, const std::string& s2) + bool str_icmp(const std::string& s1, const std::string& s2) { return case_insensitive_compare(s1, s2); } + std::vector::iterator find_str_icmp(const std::vector::iterator first, const std::vector::iterator last, const std::string& val) + { + return std::find_if(first, last, [&val](const std::string& s) { return case_insensitive_compare(s, val); }); + } + static bool case_insensitive_compare(const std::string& s1, const std::string& s2) { return std::equal( diff --git a/Utils/str_utils.h b/Utils/str_utils.h index 6d2086bf..cb5f50c3 100644 --- a/Utils/str_utils.h +++ b/Utils/str_utils.h @@ -2,6 +2,7 @@ #include #include "utils_export.h" +#include namespace Utils @@ -40,5 +41,10 @@ namespace Utils //UTILS_EXPORT std::string str_replace(const std::string& s, const std::string& from, const std::string& to); - UTILS_EXPORT bool str_icmp(const std::string& s1, const std::string& s2); + UTILS_EXPORT bool str_icmp(const std::string& s1, const std::string& s2); + + UTILS_EXPORT std::vector::iterator find_str_icmp(const std::vector::iterator first, + const std::vector::iterator last, + const std::string& val); + } \ No newline at end of file From 893f4122140fde784cd791fdf59913fceaef5d2d Mon Sep 17 00:00:00 2001 From: Nathan Miller Date: Fri, 26 Apr 2024 16:28:54 -0700 Subject: [PATCH 035/168] add macro defines for IS_WINDOWS, etc. --- Utils/macros.h | 33 +++++++++++++++++++++++++++++---- 1 file changed, 29 insertions(+), 4 deletions(-) diff --git a/Utils/macros.h b/Utils/macros.h index 6400d3a6..4cd57e1e 100644 --- a/Utils/macros.h +++ b/Utils/macros.h @@ -6,9 +6,34 @@ namespace Utils { + +#if defined(_WIN32) // or _MSC_VER +# define IS_WINDOWS (1) +#else +# define IS_WINDOWS (0) +#endif + +#if defined(__linux__) +# define IS_LINUX (1) +#else +# define IS_LINUX (0) +#endif + +#if defined(__APPLE__) +# define IS_APPLE (1) +#else +# define IS_APPLE (0) +#endif + +#if defined(__unix__) +# define IS_UNIX (1) +#else +# define IS_UNIX (0) +#endif + constexpr static inline bool IsWindows() { - #if defined(_WIN32) // or _MSC_VER + #if IS_WINDOWS return true; #else return false; @@ -17,7 +42,7 @@ namespace Utils constexpr static inline bool IsApple() { - #if defined(__APPLE__) + #if IS_APPLE return true; #else return false; @@ -26,7 +51,7 @@ namespace Utils constexpr static inline bool IsLinux() { - #if defined(__linux__) + #if IS_LINUX return true; #else return false; @@ -35,7 +60,7 @@ namespace Utils constexpr static inline bool IsUnix() { - #if defined(__unix__) + #if IS_UNIX return true; #else return false; From 092e62a9c18b88bd0501465a64d458225d26d9d4 Mon Sep 17 00:00:00 2001 From: Nathan Miller Date: Fri, 26 Apr 2024 16:29:08 -0700 Subject: [PATCH 036/168] implement localtime_safe --- Utils/CrossPlatform.cpp | 37 ++++++++++++++++++++----------------- Utils/CrossPlatform.h | 2 +- 2 files changed, 21 insertions(+), 18 deletions(-) diff --git a/Utils/CrossPlatform.cpp b/Utils/CrossPlatform.cpp index 5be2f85e..64fcd834 100644 --- a/Utils/CrossPlatform.cpp +++ b/Utils/CrossPlatform.cpp @@ -7,29 +7,32 @@ namespace Utils { - //bool CrossPlatform::localtime(const std::time_t* time, struct std::tm& tmOut) + bool CrossPlatform::localtime_safe(const std::time_t* time, struct std::tm& tmOut) + { + #if (IS_WINDOWS) + { + return (0 == localtime_s(&tmOut, time)); + } + #elif (IS_LINUX || IS_APPLE) + { + localtime_r(time, &tmOut); + return true; + } + #endif + } + + //char* CrossPlatform::getenv_safe(const char* env_var) //{ - // #if (Utils::IsWindows()) + // #if (IS_WINDOWS) // { - // if (0 == localtime_s(&tmOut, time)) - // { - // return true; - // } - // return false; + // //_dupenv_s() // } - // #elseif (Utils::IsLinux() || Utils::IsApple()) - // { + // #elif (IS_LINUX || IS_APPLE) + // { // localtime_r(time, &tmOut); // return true; // } - // #endif - - // return false; - //} - - //char* CrossPlatform::getenv(const char* env_var) - //{ - // return nullptr; + // #endif //} //char* CrossPlatform::tmpnam(char* filename) diff --git a/Utils/CrossPlatform.h b/Utils/CrossPlatform.h index 4cc3a91a..19bd3f95 100644 --- a/Utils/CrossPlatform.h +++ b/Utils/CrossPlatform.h @@ -8,7 +8,7 @@ namespace Utils class CrossPlatform { public: - //static bool localtime(const std::time_t* time, struct std::tm& tmOut); + static bool localtime_safe(const std::time_t* time, struct std::tm& tmOut); //static char* getenv(const char* env_var); //static char* tmpnam(char* filename); From 58350cd48f4e9b571cbdad9f58160d08445d1b11 Mon Sep 17 00:00:00 2001 From: Nathan Miller Date: Fri, 26 Apr 2024 16:29:28 -0700 Subject: [PATCH 037/168] add transitive header include excplicitly --- OdbDesignLib/App/BasicRequestAuthentication.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/OdbDesignLib/App/BasicRequestAuthentication.cpp b/OdbDesignLib/App/BasicRequestAuthentication.cpp index aa1ff4cc..19a7c4e9 100644 --- a/OdbDesignLib/App/BasicRequestAuthentication.cpp +++ b/OdbDesignLib/App/BasicRequestAuthentication.cpp @@ -1,6 +1,7 @@ #include "BasicRequestAuthentication.h" #include #include "macros.h" +#include using namespace Utils; From 0747542811d78dc9822d7e9cc6b83dc619927ddb Mon Sep 17 00:00:00 2001 From: Nathan Miller Date: Sat, 27 Apr 2024 08:03:44 -0700 Subject: [PATCH 038/168] return const& bc we don't need to make a copy of the string values we already hold in memory and make the m_names string array memeber const --- Utils/EnumMap.h | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/Utils/EnumMap.h b/Utils/EnumMap.h index 03a2855b..a10733de 100644 --- a/Utils/EnumMap.h +++ b/Utils/EnumMap.h @@ -3,7 +3,6 @@ #include #include #include -#include "str_utils.h" namespace Utils { @@ -15,23 +14,24 @@ namespace Utils : m_names(names) {} - std::string getValue(const E e) const + const std::string& getValue(const E e) const { auto index = static_cast(e); if (index < 0 || index >= m_names.size()) { - throw Exception("no name found for value"); + std::string msg = "no name found for value: " + std::to_string(index); + throw Exception(msg.c_str()); } return m_names[index]; } E getValue(const std::string& name) const { - //auto findIt = find_str_icmp(m_names.begin(), m_names.end(), name); auto findIt = std::find(m_names.begin(), m_names.end(), name); if (findIt == m_names.end()) { - throw Exception("no value found for name"); + std::string msg = "no value found for name: (" + name + ")"; + throw Exception(msg.c_str()); } return static_cast(std::distance(m_names.begin(), findIt)); } @@ -50,7 +50,7 @@ namespace Utils typedef std::exception Exception; private: - std::vector m_names; + const std::vector m_names; }; } From a3cdf0b2abc38aed9f823af0d3e02fbaf77c0d0e Mon Sep 17 00:00:00 2001 From: Nathan Miller Date: Sat, 27 Apr 2024 08:39:59 -0700 Subject: [PATCH 039/168] minor refactor --- Utils/EnumMap.h | 85 ++++++++++++++++++++++++++++++++----------------- 1 file changed, 55 insertions(+), 30 deletions(-) diff --git a/Utils/EnumMap.h b/Utils/EnumMap.h index a10733de..1172bd79 100644 --- a/Utils/EnumMap.h +++ b/Utils/EnumMap.h @@ -3,6 +3,7 @@ #include #include #include +#include "str_utils.h" namespace Utils { @@ -10,47 +11,71 @@ namespace Utils class EnumMap { public: - EnumMap(const std::vector& names) - : m_names(names) - {} + EnumMap(const std::vector& names, bool caseInsensitive = false); - const std::string& getValue(const E e) const + const std::string& getValue(const E e) const; + E getValue(const std::string& name) const; + + bool contains(const std::string& name) const; + bool contains(const E e) const; + + typedef std::exception Exception; + + private: + const std::vector m_names; + const bool m_bCaseInsensitive; + + }; + + template + inline EnumMap::EnumMap(const std::vector& names, bool caseInsensitive) + : m_names(names) + , m_bCaseInsensitive(caseInsensitive) + {} + + template + inline const std::string& EnumMap::getValue(const E e) const + { + auto index = static_cast(e); + if (index < 0 || index >= m_names.size()) { - auto index = static_cast(e); - if (index < 0 || index >= m_names.size()) - { - std::string msg = "no name found for value: " + std::to_string(index); - throw Exception(msg.c_str()); - } - return m_names[index]; + std::string msg = "no name found for value: " + std::to_string(index); + throw Exception(msg.c_str()); } + return m_names[index]; + } - E getValue(const std::string& name) const + template + inline E EnumMap::getValue(const std::string& name) const + { + std::vector::const_iterator findIt; + if (m_bCaseInsensitive) { - auto findIt = std::find(m_names.begin(), m_names.end(), name); - if (findIt == m_names.end()) - { - std::string msg = "no value found for name: (" + name + ")"; - throw Exception(msg.c_str()); - } - return static_cast(std::distance(m_names.begin(), findIt)); + findIt = Utils::find_str_icmp(m_names.begin(), m_names.end(), name); } - - bool contains(const std::string& name) const + else { - return std::find(m_names.begin(), m_names.end(), name) != m_names.end(); + findIt = std::find(m_names.begin(), m_names.end(), name); } - bool contains(const E e) const + if (findIt == m_names.end()) { - auto index = static_cast(e); - return index >= 0 && index < m_names.size(); + std::string msg = "no value found for name: (" + name + ")"; + throw Exception(msg.c_str()); } + return static_cast(std::distance(m_names.begin(), findIt)); + } - typedef std::exception Exception; - - private: - const std::vector m_names; + template + inline bool EnumMap::contains(const std::string& name) const + { + return std::find(m_names.begin(), m_names.end(), name) != m_names.end(); + } - }; + template + inline bool EnumMap::contains(const E e) const + { + auto index = static_cast(e); + return index >= 0 && index < m_names.size(); + } } From 96cd0d24e7de3c853bb92f6d40783680610dcd75 Mon Sep 17 00:00:00 2001 From: Nathan Miller Date: Sat, 27 Apr 2024 08:40:15 -0700 Subject: [PATCH 040/168] add find_str_icmp() methods --- Utils/str_utils.cpp | 10 ++++++++-- Utils/str_utils.h | 10 +++++++--- 2 files changed, 15 insertions(+), 5 deletions(-) diff --git a/Utils/str_utils.cpp b/Utils/str_utils.cpp index b3daac5f..9a329be6 100644 --- a/Utils/str_utils.cpp +++ b/Utils/str_utils.cpp @@ -2,6 +2,7 @@ #include "str_utils.h" #include "str_utils.h" #include "str_utils.h" +#include "str_utils.h" #include #include #include @@ -135,12 +136,17 @@ namespace Utils return copy; } - bool str_icmp(const std::string& s1, const std::string& s2) + bool str_iequals(const std::string& s1, const std::string& s2) { return case_insensitive_compare(s1, s2); } - std::vector::iterator find_str_icmp(const std::vector::iterator first, const std::vector::iterator last, const std::string& val) + std::vector::iterator find_str_icmp(std::vector::iterator first, std::vector::iterator last, const std::string& val) + { + return std::find_if(first, last, [&val](const std::string& s) { return case_insensitive_compare(s, val); }); + } + + std::vector::const_iterator find_str_icmp(const std::vector::const_iterator first, const std::vector::const_iterator last, const std::string& val) { return std::find_if(first, last, [&val](const std::string& s) { return case_insensitive_compare(s, val); }); } diff --git a/Utils/str_utils.h b/Utils/str_utils.h index cb5f50c3..8dad67ca 100644 --- a/Utils/str_utils.h +++ b/Utils/str_utils.h @@ -41,10 +41,14 @@ namespace Utils //UTILS_EXPORT std::string str_replace(const std::string& s, const std::string& from, const std::string& to); - UTILS_EXPORT bool str_icmp(const std::string& s1, const std::string& s2); + UTILS_EXPORT bool str_iequals(const std::string& s1, const std::string& s2); - UTILS_EXPORT std::vector::iterator find_str_icmp(const std::vector::iterator first, - const std::vector::iterator last, + UTILS_EXPORT std::vector::iterator find_str_icmp(std::vector::iterator first, + std::vector::iterator last, const std::string& val); + UTILS_EXPORT std::vector::const_iterator find_str_icmp(const std::vector::const_iterator first, + const std::vector::const_iterator last, + const std::string& val); + } \ No newline at end of file From f924776a9cb3888b30e158b1d64778fb99bf004e Mon Sep 17 00:00:00 2001 From: Nathan Miller Date: Sat, 27 Apr 2024 08:41:08 -0700 Subject: [PATCH 041/168] add #include header --- OdbDesignLib/App/DesignCache.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/OdbDesignLib/App/DesignCache.cpp b/OdbDesignLib/App/DesignCache.cpp index cdcfc992..343825a4 100644 --- a/OdbDesignLib/App/DesignCache.cpp +++ b/OdbDesignLib/App/DesignCache.cpp @@ -4,6 +4,7 @@ #include #include #include +#include using namespace Utils; using namespace std::filesystem; From f4ca2c23a32a9f9b4e76207e2513547fc1d6439d Mon Sep 17 00:00:00 2001 From: Nathan Miller Date: Sat, 27 Apr 2024 11:53:21 -0700 Subject: [PATCH 042/168] remove unused header include --- OdbDesignServer/main.cpp | 1 - 1 file changed, 1 deletion(-) diff --git a/OdbDesignServer/main.cpp b/OdbDesignServer/main.cpp index a6458526..99f80327 100644 --- a/OdbDesignServer/main.cpp +++ b/OdbDesignServer/main.cpp @@ -1,7 +1,6 @@ // main.cpp : Source file for your target. // -#include "OdbDesignServer.h" #include "OdbDesignServerApp.h" using namespace Odb::App::Server; From f967dc5da88d8397d9c3eafb4e2f0e48a360a099 Mon Sep 17 00:00:00 2001 From: Nathan Miller Date: Sat, 27 Apr 2024 12:15:57 -0700 Subject: [PATCH 043/168] fix build command --- docs/BUILD.md | 6 +++--- docs/README.md | 4 ++-- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/docs/BUILD.md b/docs/BUILD.md index 2aa42192..d920d1aa 100644 --- a/docs/BUILD.md +++ b/docs/BUILD.md @@ -72,14 +72,14 @@ Then run the commands from one or more of the sections below, based on what you ###### Windows ```Bash -$ cmake --preset x64-debug +$ cmake --preset x64-release $ cmake --build --preset x64-release ``` ###### Linux ```Bash -$ cmake --preset linux-debug +$ cmake --preset linux-release $ cmake --build --preset linux-release ``` @@ -99,4 +99,4 @@ From the root of the source directory... ```Bash $ docker compose up -``` \ No newline at end of file +``` diff --git a/docs/README.md b/docs/README.md index 0f7626d7..f9a3e1f2 100644 --- a/docs/README.md +++ b/docs/README.md @@ -225,14 +225,14 @@ Then run the commands from one or more of the sections below, based on what you ###### Windows ```Bash -$ cmake --preset x64-debug +$ cmake --preset x64-release $ cmake --build --preset x64-release ``` ###### Linux ```Bash -$ cmake --preset linux-debug +$ cmake --preset linux-release $ cmake --build --preset linux-release ``` From 0f6f791a2a998f08493afc811882272afe2ab81d Mon Sep 17 00:00:00 2001 From: Nathan Miller Date: Sat, 27 Apr 2024 14:13:00 -0700 Subject: [PATCH 044/168] fix some warnings/errors on linux --- Utils/EnumMap.h | 6 +++--- Utils/fastcopy.cpp | 18 +++++++++--------- Utils/fastcopy.h | 4 ++-- Utils/libarchive_extract.cpp | 2 +- 4 files changed, 15 insertions(+), 15 deletions(-) diff --git a/Utils/EnumMap.h b/Utils/EnumMap.h index 1172bd79..3f0a8ffb 100644 --- a/Utils/EnumMap.h +++ b/Utils/EnumMap.h @@ -19,7 +19,7 @@ namespace Utils bool contains(const std::string& name) const; bool contains(const E e) const; - typedef std::exception Exception; + //typedef std::exception Exception; private: const std::vector m_names; @@ -40,7 +40,7 @@ namespace Utils if (index < 0 || index >= m_names.size()) { std::string msg = "no name found for value: " + std::to_string(index); - throw Exception(msg.c_str()); + throw std::invalid_argument(msg.c_str()); } return m_names[index]; } @@ -61,7 +61,7 @@ namespace Utils if (findIt == m_names.end()) { std::string msg = "no value found for name: (" + name + ")"; - throw Exception(msg.c_str()); + throw std::invalid_argument(msg.c_str()); } return static_cast(std::distance(m_names.begin(), findIt)); } diff --git a/Utils/fastcopy.cpp b/Utils/fastcopy.cpp index f6fab078..985497c3 100644 --- a/Utils/fastcopy.cpp +++ b/Utils/fastcopy.cpp @@ -23,15 +23,15 @@ namespace Utils return ec; } - error_code copy(const string& source, const string& dest, bool overwriteExisting) - { - return copy(path(source), path(dest), overwriteExisting); - } - - error_code fastcopy(const string& source, const string& dest, bool overwriteExisting) - { - return fastcopy(path(source), path(dest), overwriteExisting); - } + //error_code copy(const string& source, const string& dest, bool overwriteExisting) + //{ + // return copy(path(source), path(dest), overwriteExisting); + //} + + //error_code fastcopy(const string& source, const string& dest, bool overwriteExisting) + //{ + // return fastcopy(path(source), path(dest), overwriteExisting); + //} error_code fastcopy(const path& source, const path& dest, bool overwriteExisting) { diff --git a/Utils/fastcopy.h b/Utils/fastcopy.h index 05d2a373..3d86f485 100644 --- a/Utils/fastcopy.h +++ b/Utils/fastcopy.h @@ -7,8 +7,8 @@ namespace Utils { UTILS_EXPORT std::error_code copy(const std::filesystem::path& source, const std::filesystem::path& dest, bool overwriteExisting); - UTILS_EXPORT std::error_code copy(const std::string& source, const std::string& dest, bool overwriteExisting); + //UTILS_EXPORT std::error_code copy(const std::string& source, const std::string& dest, bool overwriteExisting); - UTILS_EXPORT std::error_code fastcopy(const std::string& source, const std::string& dest, bool overwriteExisting); + //UTILS_EXPORT std::error_code fastcopy(const std::string& source, const std::string& dest, bool overwriteExisting); UTILS_EXPORT std::error_code fastcopy(const std::filesystem::path& source, const std::filesystem::path& dest, bool overwriteExisting); } diff --git a/Utils/libarchive_extract.cpp b/Utils/libarchive_extract.cpp index 640bf83d..768610a6 100644 --- a/Utils/libarchive_extract.cpp +++ b/Utils/libarchive_extract.cpp @@ -170,7 +170,7 @@ namespace Utils if (archive_write_header(a, root_entry) != ARCHIVE_OK) return false; archive_entry_free(root_entry); - struct stat st { 0 }; + struct stat st; // add files to the archive for (const auto& it : recursive_directory_iterator(srcDir)) From ea1719e7f4eedde08c6580de15051ed04bdf1cd7 Mon Sep 17 00:00:00 2001 From: Nathan Miller Date: Sat, 27 Apr 2024 14:13:52 -0700 Subject: [PATCH 045/168] add windows implementations of getenv_safe() and tmpname_safe() --- Utils/CrossPlatform.cpp | 72 ++++++++++++++++++++++++++++------------- Utils/CrossPlatform.h | 9 +++--- 2 files changed, 55 insertions(+), 26 deletions(-) diff --git a/Utils/CrossPlatform.cpp b/Utils/CrossPlatform.cpp index 64fcd834..6625a7d6 100644 --- a/Utils/CrossPlatform.cpp +++ b/Utils/CrossPlatform.cpp @@ -1,9 +1,10 @@ #include "CrossPlatform.h" #include "macros.h" - - #include #include +#include +#include +#include namespace Utils { @@ -15,28 +16,55 @@ namespace Utils } #elif (IS_LINUX || IS_APPLE) { - localtime_r(time, &tmOut); - return true; + if (nullptr != localtime_r(time, &tmOut)) + { + return true; + } } - #endif + #endif + return false; } - //char* CrossPlatform::getenv_safe(const char* env_var) - //{ - // #if (IS_WINDOWS) - // { - // //_dupenv_s() - // } - // #elif (IS_LINUX || IS_APPLE) - // { - // localtime_r(time, &tmOut); - // return true; - // } - // #endif - //} + bool CrossPlatform::getenv(const char* env_var, std::string& envValueOut) + { + #if (IS_WINDOWS) + { + char* envValue = nullptr; + size_t len = 0; + if (0 == _dupenv_s(&envValue, &len, env_var)) + { + if (envValue != nullptr && len > 0) + { + envValueOut = envValue; + free(envValue); + return true; + } + } + } + #elif (IS_LINUX || IS_APPLE) + { + + } + #endif - //char* CrossPlatform::tmpnam(char* filename) - //{ - // return nullptr; - //} + return false; + } + + bool CrossPlatform::tmpnam_safe(std::string& tempNameOut) + { + #if (IS_WINDOWS) + { + char szTempName[L_tmpnam_s]; + if (0 == tmpnam_s(szTempName, L_tmpnam_s)) + { + tempNameOut = szTempName; + return true; + } + } + #elif (IS_LINUX || IS_APPLE) + //mkstemp + #endif + + return false; + } } \ No newline at end of file diff --git a/Utils/CrossPlatform.h b/Utils/CrossPlatform.h index 19bd3f95..12edac4b 100644 --- a/Utils/CrossPlatform.h +++ b/Utils/CrossPlatform.h @@ -1,16 +1,17 @@ #pragma once -#include +//#include #include "utils_export.h" +#include namespace Utils { - class CrossPlatform + class UTILS_EXPORT CrossPlatform { public: static bool localtime_safe(const std::time_t* time, struct std::tm& tmOut); - //static char* getenv(const char* env_var); - //static char* tmpnam(char* filename); + static bool getenv(const char* env_var, std::string& envValueOut); + static bool tmpnam_safe(std::string& tempNameOut); }; } From 2e51ce38a333c1716f9a1f83f7d1e1432f20eaa8 Mon Sep 17 00:00:00 2001 From: Nathan Miller Date: Sat, 27 Apr 2024 14:14:48 -0700 Subject: [PATCH 046/168] remove commented code --- Utils/fastcopy.cpp | 10 ---------- Utils/fastcopy.h | 3 --- 2 files changed, 13 deletions(-) diff --git a/Utils/fastcopy.cpp b/Utils/fastcopy.cpp index 985497c3..eba0a5bb 100644 --- a/Utils/fastcopy.cpp +++ b/Utils/fastcopy.cpp @@ -23,16 +23,6 @@ namespace Utils return ec; } - //error_code copy(const string& source, const string& dest, bool overwriteExisting) - //{ - // return copy(path(source), path(dest), overwriteExisting); - //} - - //error_code fastcopy(const string& source, const string& dest, bool overwriteExisting) - //{ - // return fastcopy(path(source), path(dest), overwriteExisting); - //} - error_code fastcopy(const path& source, const path& dest, bool overwriteExisting) { error_code ec; diff --git a/Utils/fastcopy.h b/Utils/fastcopy.h index 3d86f485..b321fa09 100644 --- a/Utils/fastcopy.h +++ b/Utils/fastcopy.h @@ -7,8 +7,5 @@ namespace Utils { UTILS_EXPORT std::error_code copy(const std::filesystem::path& source, const std::filesystem::path& dest, bool overwriteExisting); - //UTILS_EXPORT std::error_code copy(const std::string& source, const std::string& dest, bool overwriteExisting); - - //UTILS_EXPORT std::error_code fastcopy(const std::string& source, const std::string& dest, bool overwriteExisting); UTILS_EXPORT std::error_code fastcopy(const std::filesystem::path& source, const std::filesystem::path& dest, bool overwriteExisting); } From 0e0b0b94bb0828460d2dab39b1ef9e3b4c396d3a Mon Sep 17 00:00:00 2001 From: Nathan Miller Date: Sat, 27 Apr 2024 14:14:48 -0700 Subject: [PATCH 047/168] remove commented code --- Utils/fastcopy.cpp | 10 ---------- Utils/fastcopy.h | 5 +---- 2 files changed, 1 insertion(+), 14 deletions(-) diff --git a/Utils/fastcopy.cpp b/Utils/fastcopy.cpp index 985497c3..eba0a5bb 100644 --- a/Utils/fastcopy.cpp +++ b/Utils/fastcopy.cpp @@ -23,16 +23,6 @@ namespace Utils return ec; } - //error_code copy(const string& source, const string& dest, bool overwriteExisting) - //{ - // return copy(path(source), path(dest), overwriteExisting); - //} - - //error_code fastcopy(const string& source, const string& dest, bool overwriteExisting) - //{ - // return fastcopy(path(source), path(dest), overwriteExisting); - //} - error_code fastcopy(const path& source, const path& dest, bool overwriteExisting) { error_code ec; diff --git a/Utils/fastcopy.h b/Utils/fastcopy.h index 3d86f485..6be41844 100644 --- a/Utils/fastcopy.h +++ b/Utils/fastcopy.h @@ -1,14 +1,11 @@ #pragma once #include -#include #include "utils_export.h" +#include namespace Utils { UTILS_EXPORT std::error_code copy(const std::filesystem::path& source, const std::filesystem::path& dest, bool overwriteExisting); - //UTILS_EXPORT std::error_code copy(const std::string& source, const std::string& dest, bool overwriteExisting); - - //UTILS_EXPORT std::error_code fastcopy(const std::string& source, const std::string& dest, bool overwriteExisting); UTILS_EXPORT std::error_code fastcopy(const std::filesystem::path& source, const std::filesystem::path& dest, bool overwriteExisting); } From 47a6736af86819c6e4026c2f4876cd1ed8c4eb2d Mon Sep 17 00:00:00 2001 From: Nathan Miller Date: Sat, 27 Apr 2024 14:26:14 -0700 Subject: [PATCH 048/168] rename fastcopy and copy to fastmove and move since they remove the file after copying --- OdbDesignLib/FileModel/Design/FileArchive.cpp | 4 ++-- OdbDesignServer/Controllers/FileUploadController.cpp | 6 +++--- Utils/CMakeLists.txt | 2 +- Utils/{fastcopy.cpp => fastmove.cpp} | 12 +++++++----- Utils/{fastcopy.h => fastmove.h} | 4 ++-- 5 files changed, 15 insertions(+), 13 deletions(-) rename Utils/{fastcopy.cpp => fastmove.cpp} (62%) rename Utils/{fastcopy.h => fastmove.h} (65%) diff --git a/OdbDesignLib/FileModel/Design/FileArchive.cpp b/OdbDesignLib/FileModel/Design/FileArchive.cpp index ccca1745..23ed1645 100644 --- a/OdbDesignLib/FileModel/Design/FileArchive.cpp +++ b/OdbDesignLib/FileModel/Design/FileArchive.cpp @@ -5,7 +5,7 @@ #include #include "Logger.h" #include "StopWatch.h" -#include "fastcopy.h" +#include "fastmove.h" using namespace Utils; using namespace std::filesystem; @@ -137,7 +137,7 @@ namespace Odb::Lib::FileModel::Design // move the compressed file to the requested save directory path archiveFilename = path(createdArchivePath).filename(); path destPath = directory / archiveFilename; - auto ec = Utils::fastcopy(createdArchivePath, destPath, true); + auto ec = Utils::fastmove(createdArchivePath, destPath, true); if (ec.value() != 0) return false; return true; diff --git a/OdbDesignServer/Controllers/FileUploadController.cpp b/OdbDesignServer/Controllers/FileUploadController.cpp index ad9b2d81..d80f6195 100644 --- a/OdbDesignServer/Controllers/FileUploadController.cpp +++ b/OdbDesignServer/Controllers/FileUploadController.cpp @@ -1,5 +1,5 @@ #include "FileUploadController.h" -#include "fastcopy.h" +#include "fastmove.h" using namespace std::filesystem; using namespace Odb::Lib::App; @@ -107,7 +107,7 @@ namespace Odb::App::Server path finalPath(m_serverApp.args().designsDir()); finalPath /= safeName; //rename(tempPath, finalPath); - auto ec = fastcopy(tempPath, finalPath, false); + auto ec = fastmove(tempPath, finalPath, false); std::string responseBody = "{ \"filename\": \"" + safeName + "\" }"; @@ -177,7 +177,7 @@ namespace Odb::App::Server path finalPath(m_serverApp.args().designsDir()); finalPath /= safeName; //rename(tempPath, finalPath); - auto ec = fastcopy(tempPath, finalPath, false); + auto ec = fastmove(tempPath, finalPath, false); CROW_LOG_INFO << " Contents written to " << outfile_name << '\n'; } diff --git a/Utils/CMakeLists.txt b/Utils/CMakeLists.txt index 19e475be..452121ea 100644 --- a/Utils/CMakeLists.txt +++ b/Utils/CMakeLists.txt @@ -1,7 +1,7 @@ # CMakeList.txt : CMake project for OdbDesignServer # -add_library(Utils SHARED "utils_export.h" "ExitCode.h" "ThreadSafeQueue.h" "WorkQueueLoopThread.h" "Logger.h" "Logger.cpp" "CommandLineArgs.h" "CommandLineArgs.cpp" "bin2ascii.h" "ArchiveExtractor.cpp" "ArchiveExtractor.h" "libarchive_extract.cpp" "libarchive_extract.h" "str_utils.cpp" "str_utils.h" "IJsonable.h" "IJsonable.cpp" "CrowReturnable.h" "JsonCrowReturnable.h" "timestamp.h" "timestamp.cpp" "StopWatch.h" "StopWatch.cpp" "UrlEncoding.h" "UrlEncoding.cpp" "StringVector.h" "equals_within.h" "equals_within.cpp" "crow_win.h" "fastcopy.h" "fastcopy.cpp" "FileReader.h" "FileReader.cpp" "EnumMap.h" "EnumMap.cpp" "CrossPlatform.h" "CrossPlatform.cpp") +add_library(Utils SHARED "utils_export.h" "ExitCode.h" "ThreadSafeQueue.h" "WorkQueueLoopThread.h" "Logger.h" "Logger.cpp" "CommandLineArgs.h" "CommandLineArgs.cpp" "bin2ascii.h" "ArchiveExtractor.cpp" "ArchiveExtractor.h" "libarchive_extract.cpp" "libarchive_extract.h" "str_utils.cpp" "str_utils.h" "IJsonable.h" "IJsonable.cpp" "CrowReturnable.h" "JsonCrowReturnable.h" "timestamp.h" "timestamp.cpp" "StopWatch.h" "StopWatch.cpp" "UrlEncoding.h" "UrlEncoding.cpp" "StringVector.h" "equals_within.h" "equals_within.cpp" "crow_win.h" "fastmove.h" "fastmove.cpp" "FileReader.h" "FileReader.cpp" "EnumMap.h" "EnumMap.cpp" "CrossPlatform.h" "CrossPlatform.cpp") # state that anybody linking to us needs to include the current source dir, # while we don't. diff --git a/Utils/fastcopy.cpp b/Utils/fastmove.cpp similarity index 62% rename from Utils/fastcopy.cpp rename to Utils/fastmove.cpp index eba0a5bb..a6bffb1c 100644 --- a/Utils/fastcopy.cpp +++ b/Utils/fastmove.cpp @@ -1,19 +1,21 @@ -#include "fastcopy.h" +#include "fastmove.h" using namespace std; using namespace std::filesystem; namespace Utils { - error_code copy(const path& source, const path& dest, bool overwriteExisting) + error_code move(const path& source, const path& dest, bool overwriteExisting) { error_code ec; auto options = copy_options::none; if (overwriteExisting) { - options = copy_options::overwrite_existing; + options |= copy_options::overwrite_existing; } + // TODO: handle recursive copy for use on directories + //options |= copy_options::recursive; if (copy_file(source, dest, options, ec)) { @@ -23,7 +25,7 @@ namespace Utils return ec; } - error_code fastcopy(const path& source, const path& dest, bool overwriteExisting) + error_code fastmove(const path& source, const path& dest, bool overwriteExisting) { error_code ec; @@ -36,7 +38,7 @@ namespace Utils // can't rename across devices- try standard copy and remove if (fe.code() == std::errc::cross_device_link) { - ec = copy(source, dest, overwriteExisting); + ec = move(source, dest, overwriteExisting); } else { diff --git a/Utils/fastcopy.h b/Utils/fastmove.h similarity index 65% rename from Utils/fastcopy.h rename to Utils/fastmove.h index 6be41844..9445751d 100644 --- a/Utils/fastcopy.h +++ b/Utils/fastmove.h @@ -6,6 +6,6 @@ namespace Utils { - UTILS_EXPORT std::error_code copy(const std::filesystem::path& source, const std::filesystem::path& dest, bool overwriteExisting); - UTILS_EXPORT std::error_code fastcopy(const std::filesystem::path& source, const std::filesystem::path& dest, bool overwriteExisting); + UTILS_EXPORT std::error_code move(const std::filesystem::path& source, const std::filesystem::path& dest, bool overwriteExisting); + UTILS_EXPORT std::error_code fastmove(const std::filesystem::path& source, const std::filesystem::path& dest, bool overwriteExisting); } From 7d75ff389aadef2d9c37370b162ae5d6d33f4a19 Mon Sep 17 00:00:00 2001 From: Nathan Miller Date: Sun, 28 Apr 2024 10:03:07 -0700 Subject: [PATCH 049/168] use crow::status enum values instead of "magic" number literals --- OdbDesignLib/App/BasicRequestAuthentication.cpp | 13 ++++++------- OdbDesignLib/App/RequestAuthenticationBase.cpp | 6 +++--- .../Controllers/FileUploadController.cpp | 4 ++-- 3 files changed, 11 insertions(+), 12 deletions(-) diff --git a/OdbDesignLib/App/BasicRequestAuthentication.cpp b/OdbDesignLib/App/BasicRequestAuthentication.cpp index 19a7c4e9..c5668687 100644 --- a/OdbDesignLib/App/BasicRequestAuthentication.cpp +++ b/OdbDesignLib/App/BasicRequestAuthentication.cpp @@ -18,21 +18,20 @@ namespace Odb::Lib::App if (resp.code != crow::status::OK) { const auto& authHeader = req.get_header_value(AUTHORIZATION_HEADER_NAME); - if (authHeader.empty()) return crow::response(401, "Unauthorized"); + if (authHeader.empty()) return crow::response(crow::status::UNAUTHORIZED, "Unauthorized"); auto authValue = authHeader.substr(6); - if (authValue.empty()) return crow::response(401, "Unauthorized"); + if (authValue.empty()) return crow::response(crow::status::UNAUTHORIZED, "Unauthorized"); auto authValueDecoded = crow::utility::base64decode(authValue, authValue.size()); - if (authValueDecoded.empty()) return crow::response(401, "Unauthorized"); + if (authValueDecoded.empty()) return crow::response(crow::status::UNAUTHORIZED, "Unauthorized"); auto seperatorPos = authValueDecoded.find(':'); - if (seperatorPos == std::string::npos) return crow::response(401, "Unauthorized"); + if (seperatorPos == std::string::npos) return crow::response(crow::status::UNAUTHORIZED, "Unauthorized"); auto username = authValueDecoded.substr(0, seperatorPos); auto password = authValueDecoded.substr(seperatorPos + 1); - //if (! VerifyCredentials(username, password)) return crow::response(403, "Invalid username or password"); resp = VerifyCredentials(username, password); } return resp; @@ -59,10 +58,10 @@ namespace Odb::Lib::App if (username != validUsername || password != validPassword) { - return crow::response(403, "Invalid username or password"); + return crow::response(crow::status::FORBIDDEN, "Invalid username or password"); } // 200 Authorized! - return crow::response(200, "Authorized"); + return crow::response(crow::status::OK, "Authorized"); } } \ No newline at end of file diff --git a/OdbDesignLib/App/RequestAuthenticationBase.cpp b/OdbDesignLib/App/RequestAuthenticationBase.cpp index 6fbcd5c3..bf7eb242 100644 --- a/OdbDesignLib/App/RequestAuthenticationBase.cpp +++ b/OdbDesignLib/App/RequestAuthenticationBase.cpp @@ -16,16 +16,16 @@ namespace Odb::Lib::App if (IsDebug() && IsLocal()) { // 200 Authorized! - return crow::response(200, "Authorized"); + return crow::response(crow::status::OK, "Authorized"); } else if (m_disableAuthentication) { // 200 Authorized! - return crow::response(200, "Authorized"); + return crow::response(crow::status::OK, "Authorized"); } else { - return crow::response(401, "Unauthorized"); + return crow::response(crow::status::UNAUTHORIZED, "Unauthorized"); } } } \ No newline at end of file diff --git a/OdbDesignServer/Controllers/FileUploadController.cpp b/OdbDesignServer/Controllers/FileUploadController.cpp index d80f6195..65452978 100644 --- a/OdbDesignServer/Controllers/FileUploadController.cpp +++ b/OdbDesignServer/Controllers/FileUploadController.cpp @@ -139,13 +139,13 @@ namespace Odb::App::Server if (headers_it == part_value.headers.end()) { CROW_LOG_ERROR << "No Content-Disposition found"; - return crow::response(400); + return crow::response(crow::status::BAD_REQUEST); } auto params_it = headers_it->second.params.find("filename"); if (params_it == headers_it->second.params.end()) { CROW_LOG_ERROR << "Part with name \"InputFile\" should have a file"; - return crow::response(400); + return crow::response(crow::status::BAD_REQUEST); } const std::string outfile_name = params_it->second; From 352ae4f348466b62fc68f003726033bd40daba52 Mon Sep 17 00:00:00 2001 From: Nathan Miller Date: Sun, 28 Apr 2024 10:04:24 -0700 Subject: [PATCH 050/168] refactor fast_move() to use error_code's instead of relying on exceptions and return HTTP 500 when ec is not success --- OdbDesignLib/FileModel/Design/FileArchive.cpp | 4 +- OdbDesignLib/FileModel/Design/MatrixFile.cpp | 4 +- .../Controllers/FileUploadController.cpp | 25 +++++++--- Utils/fastmove.cpp | 50 +++++++++---------- Utils/fastmove.h | 4 +- 5 files changed, 50 insertions(+), 37 deletions(-) diff --git a/OdbDesignLib/FileModel/Design/FileArchive.cpp b/OdbDesignLib/FileModel/Design/FileArchive.cpp index 23ed1645..125795a6 100644 --- a/OdbDesignLib/FileModel/Design/FileArchive.cpp +++ b/OdbDesignLib/FileModel/Design/FileArchive.cpp @@ -6,6 +6,7 @@ #include "Logger.h" #include "StopWatch.h" #include "fastmove.h" +#include using namespace Utils; using namespace std::filesystem; @@ -137,7 +138,8 @@ namespace Odb::Lib::FileModel::Design // move the compressed file to the requested save directory path archiveFilename = path(createdArchivePath).filename(); path destPath = directory / archiveFilename; - auto ec = Utils::fastmove(createdArchivePath, destPath, true); + std::error_code ec; + Utils::fastmove_file(createdArchivePath, destPath, true, ec); if (ec.value() != 0) return false; return true; diff --git a/OdbDesignLib/FileModel/Design/MatrixFile.cpp b/OdbDesignLib/FileModel/Design/MatrixFile.cpp index 5da2200a..05f33b10 100644 --- a/OdbDesignLib/FileModel/Design/MatrixFile.cpp +++ b/OdbDesignLib/FileModel/Design/MatrixFile.cpp @@ -429,9 +429,9 @@ namespace Odb::Lib::FileModel::Design os << '\t' << LayerRecord::ROW_KEY << "=" << layerRecord->row << std::endl; os << '\t' << LayerRecord::CONTEXT_KEY << "=" << LayerRecord::contextMap.getValue(layerRecord->context) << std::endl; os << '\t' << LayerRecord::TYPE_KEY << "=" << LayerRecord::typeMap.getValue(layerRecord->type) << std::endl; - os << '\t' << LayerRecord::NAME_KEY << "=" << layerRecord->name << std::endl; - os << '\t' << LayerRecord::FORM_KEY << "=" << LayerRecord::formMap.getValue(layerRecord->form) << std::endl; + os << '\t' << LayerRecord::NAME_KEY << "=" << layerRecord->name << std::endl; os << '\t' << LayerRecord::POLARITY_KEY << "=" << LayerRecord::polarityMap.getValue(layerRecord->polarity) << std::endl; + os << '\t' << LayerRecord::FORM_KEY << "=" << LayerRecord::formMap.getValue(layerRecord->form) << std::endl; os << '\t' << LayerRecord::DIELECTRIC_TYPE_KEY << "=" << LayerRecord::dielectricTypeMap.getValue(layerRecord->dielectricType) << std::endl; os << '\t' << LayerRecord::DIELECTRIC_NAME_KEY << "=" << layerRecord->dielectricName << std::endl; os << '\t' << LayerRecord::CU_TOP_KEY << "="; diff --git a/OdbDesignServer/Controllers/FileUploadController.cpp b/OdbDesignServer/Controllers/FileUploadController.cpp index 65452978..863dcd6c 100644 --- a/OdbDesignServer/Controllers/FileUploadController.cpp +++ b/OdbDesignServer/Controllers/FileUploadController.cpp @@ -1,5 +1,9 @@ #include "FileUploadController.h" #include "fastmove.h" +#include +#include +#include +#include using namespace std::filesystem; using namespace Odb::Lib::App; @@ -101,13 +105,16 @@ namespace Odb::App::Server outfile << req.body; outfile.close(); - // TODO: sanitize provided filename auto safeName = sanitizeFilename(filename); - path finalPath(m_serverApp.args().designsDir()); finalPath /= safeName; - //rename(tempPath, finalPath); - auto ec = fastmove(tempPath, finalPath, false); + + std::error_code ec; + fastmove_file(tempPath, finalPath, false, ec); + if (ec.value() != 0) + { + return crow::response(crow::status::INTERNAL_SERVER_ERROR, "failed handling new file"); + } std::string responseBody = "{ \"filename\": \"" + safeName + "\" }"; @@ -176,8 +183,13 @@ namespace Odb::App::Server auto safeName = sanitizeFilename(outfile_name); path finalPath(m_serverApp.args().designsDir()); finalPath /= safeName; - //rename(tempPath, finalPath); - auto ec = fastmove(tempPath, finalPath, false); + + std::error_code ec; + fastmove_file(tempPath, finalPath, false, ec); + if (ec.value() != 0) + { + return crow::response(crow::status::INTERNAL_SERVER_ERROR, "failed handling new file"); + } CROW_LOG_INFO << " Contents written to " << outfile_name << '\n'; } @@ -217,6 +229,7 @@ namespace Odb::App::Server std::string FileUploadController::sanitizeFilename(const std::string& filename) const { + // TODO: implement sanitize filename return filename; } } \ No newline at end of file diff --git a/Utils/fastmove.cpp b/Utils/fastmove.cpp index a6bffb1c..d1dabb3b 100644 --- a/Utils/fastmove.cpp +++ b/Utils/fastmove.cpp @@ -1,51 +1,49 @@ #include "fastmove.h" +#include using namespace std; using namespace std::filesystem; namespace Utils { - error_code move(const path& source, const path& dest, bool overwriteExisting) + void move_file(const path& source, const path& dest, bool overwriteExisting, std::error_code& ec) { - error_code ec; - auto options = copy_options::none; if (overwriteExisting) { options |= copy_options::overwrite_existing; - } - // TODO: handle recursive copy for use on directories - //options |= copy_options::recursive; + } - if (copy_file(source, dest, options, ec)) + if (copy_file(source, dest, options, ec) && + ec.value() == 0) { remove(source, ec); } - - return ec; } - error_code fastmove(const path& source, const path& dest, bool overwriteExisting) + void fastmove_file(const path& source, const path& dest, bool overwriteExisting, std::error_code& ec) { - error_code ec; - - try + //try { - rename(source, dest); - } - catch (filesystem_error& fe) - { - // can't rename across devices- try standard copy and remove - if (fe.code() == std::errc::cross_device_link) - { - ec = move(source, dest, overwriteExisting); - } - else + rename(source, dest, ec); + if (ec.value() == static_cast(std::errc::cross_device_link)) { - throw fe; + move_file(source, dest, overwriteExisting, ec); } } - - return ec; + //catch (filesystem_error& fe) + //{ + // // can't rename across devices- try standard copy and remove + // if (fe.code() == std::errc::cross_device_link) + // { + // ec = move_file(source, dest, overwriteExisting); + // } + // else + // { + // throw fe; + // } + //} + + //return ec; } } \ No newline at end of file diff --git a/Utils/fastmove.h b/Utils/fastmove.h index 9445751d..75c1812f 100644 --- a/Utils/fastmove.h +++ b/Utils/fastmove.h @@ -6,6 +6,6 @@ namespace Utils { - UTILS_EXPORT std::error_code move(const std::filesystem::path& source, const std::filesystem::path& dest, bool overwriteExisting); - UTILS_EXPORT std::error_code fastmove(const std::filesystem::path& source, const std::filesystem::path& dest, bool overwriteExisting); + UTILS_EXPORT void move_file(const std::filesystem::path& source, const std::filesystem::path& dest, bool overwriteExisting, std::error_code& ec); + UTILS_EXPORT void fastmove_file(const std::filesystem::path& source, const std::filesystem::path& dest, bool overwriteExisting, std::error_code& ec); } From 9219244259b110e5ff2f1d168c49b47b66eac230 Mon Sep 17 00:00:00 2001 From: Nathan Miller Date: Sun, 28 Apr 2024 10:56:54 -0700 Subject: [PATCH 051/168] fix bug where struct stat instance was being used prior to being initialized --- Utils/libarchive_extract.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Utils/libarchive_extract.cpp b/Utils/libarchive_extract.cpp index 768610a6..48ddb970 100644 --- a/Utils/libarchive_extract.cpp +++ b/Utils/libarchive_extract.cpp @@ -193,11 +193,11 @@ namespace Utils auto relativePath = relative(it.path(), srcDir); auto file_entry = archive_entry_new(); archive_entry_set_pathname(file_entry, (rootDir / relativePath).string().c_str()); - archive_entry_set_filetype(file_entry, AE_IFREG); + stat(it.path().string().c_str(), &st); + archive_entry_set_filetype(file_entry, AE_IFREG); archive_entry_set_size(file_entry, st.st_size); // Note 2 //archive_entry_set_mtime(file_entry, st.st_mtime, 0); - //archive_entry_set_perm(file_entry, st.st_mode?); - stat(it.path().string().c_str(), &st); + //archive_entry_set_perm(file_entry, st.st_mode?); archive_entry_copy_stat(file_entry, &st); if (archive_write_header(a, file_entry) != ARCHIVE_OK) return false; From 387b049301c6276467dfb3a108bced6aac5c8f9b Mon Sep 17 00:00:00 2001 From: Nathan Miller Date: Sun, 28 Apr 2024 10:57:19 -0700 Subject: [PATCH 052/168] add #includes --- OdbDesignLib/FileModel/Design/MatrixFile.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/OdbDesignLib/FileModel/Design/MatrixFile.h b/OdbDesignLib/FileModel/Design/MatrixFile.h index bbe0f793..6afc825f 100644 --- a/OdbDesignLib/FileModel/Design/MatrixFile.h +++ b/OdbDesignLib/FileModel/Design/MatrixFile.h @@ -14,6 +14,8 @@ #include "../../ProtoBuf/matrixfile.pb.h" #include "../IStreamSaveable.h" #include "EnumMap.h" +#include +#include namespace Odb::Lib::FileModel::Design From 418f864c6f6cfa8dfb4b7b47e0e3d54ee5fa41e2 Mon Sep 17 00:00:00 2001 From: Nathan Miller Date: Sun, 28 Apr 2024 10:59:51 -0700 Subject: [PATCH 053/168] add 'pass-through' implementations for Linux and Apple platforms that call the unsafe functions --- Utils/CrossPlatform.cpp | 20 +++++++++++++++++--- Utils/CrossPlatform.h | 2 +- 2 files changed, 18 insertions(+), 4 deletions(-) diff --git a/Utils/CrossPlatform.cpp b/Utils/CrossPlatform.cpp index 6625a7d6..d9164c87 100644 --- a/Utils/CrossPlatform.cpp +++ b/Utils/CrossPlatform.cpp @@ -25,7 +25,7 @@ namespace Utils return false; } - bool CrossPlatform::getenv(const char* env_var, std::string& envValueOut) + bool CrossPlatform::getenv_safe(const char* env_var, std::string& envValueOut) { #if (IS_WINDOWS) { @@ -43,7 +43,13 @@ namespace Utils } #elif (IS_LINUX || IS_APPLE) { - + auto val = std::getenv(env_var); + if (val != nullptr) + { + envValueOut = val; + return true; + } + } #endif @@ -62,7 +68,15 @@ namespace Utils } } #elif (IS_LINUX || IS_APPLE) - //mkstemp + { + // mkstemp + char szTempName[L_tmpnam_s]{ 0 }; + if (nullptr != std::tmpnam(szTempName)) + { + tempNameOut = szTempName; + return true; + } + } #endif return false; diff --git a/Utils/CrossPlatform.h b/Utils/CrossPlatform.h index 12edac4b..2bc94147 100644 --- a/Utils/CrossPlatform.h +++ b/Utils/CrossPlatform.h @@ -10,7 +10,7 @@ namespace Utils { public: static bool localtime_safe(const std::time_t* time, struct std::tm& tmOut); - static bool getenv(const char* env_var, std::string& envValueOut); + static bool getenv_safe(const char* env_var, std::string& envValueOut); static bool tmpnam_safe(std::string& tempNameOut); }; From de9c46676c6a09f8d3a8d9d1e08f978815b0d2e6 Mon Sep 17 00:00:00 2001 From: Nathan Miller Date: Sun, 28 Apr 2024 11:00:14 -0700 Subject: [PATCH 054/168] add test cases for CrossPlatform methods --- OdbDesignTests/CMakeLists.txt | 2 +- OdbDesignTests/CrossPlatformTests.cpp | 71 +++++++++++++++++++++++++++ 2 files changed, 72 insertions(+), 1 deletion(-) create mode 100644 OdbDesignTests/CrossPlatformTests.cpp diff --git a/OdbDesignTests/CMakeLists.txt b/OdbDesignTests/CMakeLists.txt index 2371f6e2..710c0695 100644 --- a/OdbDesignTests/CMakeLists.txt +++ b/OdbDesignTests/CMakeLists.txt @@ -10,7 +10,7 @@ add_executable(OdbDesignTests "DesignCacheLoadTests.cpp" "Fixtures/DesignNameValueParamTest.h" "FileArchiveTests.cpp" - "DesignTests.cpp" "ProtobufSerializationTests.cpp" "FileReaderTests.cpp" "ArchiveTests.cpp") + "DesignTests.cpp" "ProtobufSerializationTests.cpp" "FileReaderTests.cpp" "ArchiveTests.cpp" "CrossPlatformTests.cpp") target_link_libraries(OdbDesignTests PRIVATE GTest::gtest_main GTest::gmock_main) diff --git a/OdbDesignTests/CrossPlatformTests.cpp b/OdbDesignTests/CrossPlatformTests.cpp new file mode 100644 index 00000000..da64d875 --- /dev/null +++ b/OdbDesignTests/CrossPlatformTests.cpp @@ -0,0 +1,71 @@ +#include +#include +#include "Fixtures/FileArchiveLoadFixture.h" +#include "CrossPlatform.h" +#include + +using namespace std::filesystem; +using namespace Odb::Test::Fixtures; +using namespace testing; +using namespace Utils; + +namespace Odb::Test +{ + TEST_F(FileArchiveLoadFixture, Test_CrossPlatform_GetEnvSafe_VariableExists) + { + std::string value; + ASSERT_EQ(value.size(), 0U); + ASSERT_TRUE(CrossPlatform::getenv_safe(ODB_TEST_DATA_DIR_ENV_NAME, value)); + ASSERT_STRNE(value.c_str(), ""); + ASSERT_STREQ(value.c_str(), m_testDataDir.string().c_str()); + } + + TEST_F(FileArchiveLoadFixture, Test_CrossPlatform_GetEnvSafe_VariableDoesntExist) + { + std::string value; + ASSERT_EQ(value.size(), 0U); + ASSERT_FALSE(CrossPlatform::getenv_safe("FEARISTHEMINDKILLER", value)); + ASSERT_STREQ(value.c_str(), ""); + } + + TEST_F(FileArchiveLoadFixture, Test_CrossPlatform_TmpNameSafe_ReturnsRandomFilename) + { + std::string value1; + ASSERT_EQ(value1.size(), 0U); + ASSERT_TRUE(CrossPlatform::tmpnam_safe(value1)); + ASSERT_STRNE(value1.c_str(), ""); + + std::string value2; + ASSERT_EQ(value2.size(), 0U); + ASSERT_TRUE(CrossPlatform::tmpnam_safe(value2)); + ASSERT_STRNE(value2.c_str(), ""); + + ASSERT_STRNE(value1.c_str(), value2.c_str()); + } + + TEST_F(FileArchiveLoadFixture, Test_CrossPlatform_LocalTimeSafe_ReturnsSomeTime) + { + time_t tt{ 0 }; + ASSERT_EQ(tt, 0LL); + std::time(&tt); + ASSERT_NE(tt, 0LL); + + struct tm tm{ 0 }; + + ASSERT_EQ(tm.tm_year, 0); + ASSERT_EQ(tm.tm_mon, 0); + ASSERT_EQ(tm.tm_mday, 0); + ASSERT_EQ(tm.tm_hour, 0); + ASSERT_EQ(tm.tm_min, 0); + ASSERT_EQ(tm.tm_sec, 0); + + ASSERT_TRUE(CrossPlatform::localtime_safe(&tt, tm)); + + ASSERT_NE(tm.tm_year, 0); + ASSERT_NE(tm.tm_mon, 0); + ASSERT_NE(tm.tm_mday, 0); + ASSERT_NE(tm.tm_hour, 0); + ASSERT_NE(tm.tm_min, 0); + ASSERT_NE(tm.tm_sec, 0); + } +} \ No newline at end of file From 60f79da3232399efff9f145ebe789d03946292b4 Mon Sep 17 00:00:00 2001 From: Nathan Miller Date: Sun, 28 Apr 2024 11:00:39 -0700 Subject: [PATCH 055/168] add test case for ArchiveExtractor::CompressDir method --- OdbDesignTests/ArchiveTests.cpp | 13 ++++++++++--- 1 file changed, 10 insertions(+), 3 deletions(-) diff --git a/OdbDesignTests/ArchiveTests.cpp b/OdbDesignTests/ArchiveTests.cpp index 5182f0f2..172e8d59 100644 --- a/OdbDesignTests/ArchiveTests.cpp +++ b/OdbDesignTests/ArchiveTests.cpp @@ -1,9 +1,8 @@ #include -#include #include -#include "FileReader.h" #include "Fixtures/FileArchiveLoadFixture.h" #include "libarchive_extract.h" +#include "ArchiveExtractor.h" using namespace std::filesystem; using namespace Odb::Test::Fixtures; @@ -17,7 +16,15 @@ namespace Odb::Test TEST_F(FileArchiveLoadFixture, Test_LibArchive_CompressDir) { std::string fileArchiveOut; - compress_dir(getTestDataFilesDir().string().c_str(), getTestDataFilesDir().string().c_str(), "files", fileArchiveOut); + compress_dir(getTestDataFilesDir().string().c_str(), getTestDataFilesDir().string().c_str(), "files_libarchive", fileArchiveOut); + + ASSERT_TRUE(exists(fileArchiveOut)); + } + + TEST_F(FileArchiveLoadFixture, Test_ArchiveExtractor_CompressDir) + { + std::string fileArchiveOut; + ArchiveExtractor::CompressDir(getTestDataFilesDir().string(), getTestDataFilesDir().string(), "files_archiveextractor", fileArchiveOut); ASSERT_TRUE(exists(fileArchiveOut)); } From 2bfa68a03fda030f688d78a70ac5223e518117c0 Mon Sep 17 00:00:00 2001 From: Nathan Miller Date: Sun, 28 Apr 2024 11:29:03 -0700 Subject: [PATCH 056/168] refactor test data-specific functionality out of FileArchiveLoadFixture into base class TestDataFixture --- OdbDesignTests/ArchiveTests.cpp | 6 +- OdbDesignTests/CMakeLists.txt | 2 +- OdbDesignTests/CrossPlatformTests.cpp | 10 ++-- OdbDesignTests/FileReaderTests.cpp | 7 +-- .../Fixtures/FileArchiveLoadFixture.cpp | 44 +++------------ .../Fixtures/FileArchiveLoadFixture.h | 18 ++---- OdbDesignTests/Fixtures/TestDataFixture.cpp | 56 +++++++++++++++++++ OdbDesignTests/Fixtures/TestDataFixture.h | 32 +++++++++++ OdbDesignTests/TestTests.cpp | 6 +- 9 files changed, 113 insertions(+), 68 deletions(-) create mode 100644 OdbDesignTests/Fixtures/TestDataFixture.cpp create mode 100644 OdbDesignTests/Fixtures/TestDataFixture.h diff --git a/OdbDesignTests/ArchiveTests.cpp b/OdbDesignTests/ArchiveTests.cpp index 172e8d59..2018c988 100644 --- a/OdbDesignTests/ArchiveTests.cpp +++ b/OdbDesignTests/ArchiveTests.cpp @@ -1,6 +1,6 @@ #include #include -#include "Fixtures/FileArchiveLoadFixture.h" +#include "Fixtures/TestDataFixture.h" #include "libarchive_extract.h" #include "ArchiveExtractor.h" @@ -13,7 +13,7 @@ namespace Odb::Test { static inline constexpr char FILE_CONTENTS[] = "Hello, World!\n\n"; - TEST_F(FileArchiveLoadFixture, Test_LibArchive_CompressDir) + TEST_F(TestDataFixture, Test_LibArchive_CompressDir) { std::string fileArchiveOut; compress_dir(getTestDataFilesDir().string().c_str(), getTestDataFilesDir().string().c_str(), "files_libarchive", fileArchiveOut); @@ -21,7 +21,7 @@ namespace Odb::Test ASSERT_TRUE(exists(fileArchiveOut)); } - TEST_F(FileArchiveLoadFixture, Test_ArchiveExtractor_CompressDir) + TEST_F(TestDataFixture, Test_ArchiveExtractor_CompressDir) { std::string fileArchiveOut; ArchiveExtractor::CompressDir(getTestDataFilesDir().string(), getTestDataFilesDir().string(), "files_archiveextractor", fileArchiveOut); diff --git a/OdbDesignTests/CMakeLists.txt b/OdbDesignTests/CMakeLists.txt index 710c0695..f7c9f901 100644 --- a/OdbDesignTests/CMakeLists.txt +++ b/OdbDesignTests/CMakeLists.txt @@ -10,7 +10,7 @@ add_executable(OdbDesignTests "DesignCacheLoadTests.cpp" "Fixtures/DesignNameValueParamTest.h" "FileArchiveTests.cpp" - "DesignTests.cpp" "ProtobufSerializationTests.cpp" "FileReaderTests.cpp" "ArchiveTests.cpp" "CrossPlatformTests.cpp") + "DesignTests.cpp" "ProtobufSerializationTests.cpp" "FileReaderTests.cpp" "ArchiveTests.cpp" "CrossPlatformTests.cpp" "Fixtures/TestDataFixture.h" "Fixtures/TestDataFixture.cpp") target_link_libraries(OdbDesignTests PRIVATE GTest::gtest_main GTest::gmock_main) diff --git a/OdbDesignTests/CrossPlatformTests.cpp b/OdbDesignTests/CrossPlatformTests.cpp index da64d875..71efc72c 100644 --- a/OdbDesignTests/CrossPlatformTests.cpp +++ b/OdbDesignTests/CrossPlatformTests.cpp @@ -1,6 +1,4 @@ #include -#include -#include "Fixtures/FileArchiveLoadFixture.h" #include "CrossPlatform.h" #include @@ -11,7 +9,7 @@ using namespace Utils; namespace Odb::Test { - TEST_F(FileArchiveLoadFixture, Test_CrossPlatform_GetEnvSafe_VariableExists) + TEST_F(TestDataFixture, Test_CrossPlatform_GetEnvSafe_VariableExists) { std::string value; ASSERT_EQ(value.size(), 0U); @@ -20,7 +18,7 @@ namespace Odb::Test ASSERT_STREQ(value.c_str(), m_testDataDir.string().c_str()); } - TEST_F(FileArchiveLoadFixture, Test_CrossPlatform_GetEnvSafe_VariableDoesntExist) + TEST_F(TestDataFixture, Test_CrossPlatform_GetEnvSafe_VariableDoesntExist) { std::string value; ASSERT_EQ(value.size(), 0U); @@ -28,7 +26,7 @@ namespace Odb::Test ASSERT_STREQ(value.c_str(), ""); } - TEST_F(FileArchiveLoadFixture, Test_CrossPlatform_TmpNameSafe_ReturnsRandomFilename) + TEST_F(TestDataFixture, Test_CrossPlatform_TmpNameSafe_ReturnsRandomFilename) { std::string value1; ASSERT_EQ(value1.size(), 0U); @@ -43,7 +41,7 @@ namespace Odb::Test ASSERT_STRNE(value1.c_str(), value2.c_str()); } - TEST_F(FileArchiveLoadFixture, Test_CrossPlatform_LocalTimeSafe_ReturnsSomeTime) + TEST_F(TestDataFixture, Test_CrossPlatform_LocalTimeSafe_ReturnsSomeTime) { time_t tt{ 0 }; ASSERT_EQ(tt, 0LL); diff --git a/OdbDesignTests/FileReaderTests.cpp b/OdbDesignTests/FileReaderTests.cpp index 9691cbc5..a1ae6d23 100644 --- a/OdbDesignTests/FileReaderTests.cpp +++ b/OdbDesignTests/FileReaderTests.cpp @@ -1,8 +1,7 @@ #include -#include #include #include "FileReader.h" -#include "Fixtures//FileArchiveLoadFixture.h" +#include "Fixtures/TestDataFixture.h" using namespace std::filesystem; using namespace Odb::Test::Fixtures; @@ -13,7 +12,7 @@ namespace Odb::Test { static inline constexpr char FILE_CONTENTS[] = "Hello, World!\r\n"; - TEST_F(FileArchiveLoadFixture, Test_FileReaderRead_Buffered) + TEST_F(TestDataFixture, Test_FileReaderRead_Buffered) { auto filePath = getTestDataFilePath("filereader_test1.txt"); @@ -30,7 +29,7 @@ namespace Odb::Test ASSERT_STREQ(buffer.data(), FILE_CONTENTS); } - TEST_F(FileArchiveLoadFixture, Test_FileReaderRead_Unbuffered) + TEST_F(TestDataFixture, Test_FileReaderRead_Unbuffered) { auto filePath = getTestDataFilePath("filereader_test1.txt"); diff --git a/OdbDesignTests/Fixtures/FileArchiveLoadFixture.cpp b/OdbDesignTests/Fixtures/FileArchiveLoadFixture.cpp index c4d374c5..bfc9df0b 100644 --- a/OdbDesignTests/Fixtures/FileArchiveLoadFixture.cpp +++ b/OdbDesignTests/Fixtures/FileArchiveLoadFixture.cpp @@ -4,6 +4,8 @@ #include #include #include "App/DesignCache.h" +#include "TestDataFixture.h" +#include using namespace std::filesystem; //using namespace Odb::Lib; @@ -13,23 +15,13 @@ using namespace Utils; namespace Odb::Test::Fixtures { FileArchiveLoadFixture::FileArchiveLoadFixture() - : m_testDataDir() - , m_pDesignCache(nullptr) + : m_pDesignCache(nullptr) { } void FileArchiveLoadFixture::SetUp() { - if (ENABLE_TEST_LOGGING) - { - Logger::instance()->start(); - } - - ASSERT_FALSE(getTestDataDir().empty()); - m_testDataDir = getTestDataDir(); - m_testDataDir = m_testDataDir.make_preferred(); - - ASSERT_TRUE(exists(m_testDataDir)); + TestDataFixture::SetUp(); m_pDesignCache = std::unique_ptr(new DesignCache(m_testDataDir.string())); ASSERT_NE(m_pDesignCache, nullptr); @@ -55,33 +47,11 @@ namespace Odb::Test::Fixtures } } - if (ENABLE_TEST_LOGGING) - { - Logger::instance()->stop(); - } - } - - /*static*/ path FileArchiveLoadFixture::getTestDataDir() - { - auto szTestDataDir = std::getenv(ODB_TEST_DATA_DIR_ENV_NAME); - if (szTestDataDir == nullptr) return ""; - //if (szTestDataDir == nullptr) throw std::runtime_error("ODB_TEST_DATA_DIR environment variable is not set"); - //if (!exists(szTestDataDir)) throw std::runtime_error("ODB_TEST_DATA_DIR environment variable is set to a non-existent directory"); - return szTestDataDir; - } - - path FileArchiveLoadFixture::getTestDataFilesDir() - { - return m_testDataDir / TESTDATA_FILES_DIR; - } + TestDataFixture::TearDown(); + } path FileArchiveLoadFixture::getDesignPath(const std::string& filename) const { - return m_testDataDir / filename; - } - - path FileArchiveLoadFixture::getTestDataFilePath(const std::string& filename) const - { - return m_testDataDir / TESTDATA_FILES_DIR / filename; + return getTestDataDir() / filename; } } \ No newline at end of file diff --git a/OdbDesignTests/Fixtures/FileArchiveLoadFixture.h b/OdbDesignTests/Fixtures/FileArchiveLoadFixture.h index 05fcc0e7..15cbb492 100644 --- a/OdbDesignTests/Fixtures/FileArchiveLoadFixture.h +++ b/OdbDesignTests/Fixtures/FileArchiveLoadFixture.h @@ -2,20 +2,18 @@ #include "gtest/gtest.h" #include -#include #include -#include #include +#include "TestDataFixture.h" namespace Odb::Test::Fixtures { - class FileArchiveLoadFixture : public testing::Test + class FileArchiveLoadFixture : public TestDataFixture { public: FileArchiveLoadFixture(); protected: - std::filesystem::path m_testDataDir; std::unique_ptr m_pDesignCache; const bool m_removeDecompressedDirectories = true; @@ -23,17 +21,9 @@ namespace Odb::Test::Fixtures void SetUp() override; void TearDown() override; - static std::filesystem::path getTestDataDir(); - std::filesystem::path getTestDataFilesDir(); std::filesystem::path getDesignPath(const std::string& filename) const; - std::filesystem::path getTestDataFilePath(const std::string& filename) const; - - static inline constexpr const char ODB_TEST_DATA_DIR_ENV_NAME[] = "ODB_TEST_DATA_DIR"; - - static inline constexpr const char TESTDATA_FILES_DIR[] = "FILES"; - static inline const std::vector KEEP_DIRECTORIES = { TESTDATA_FILES_DIR }; - - static inline constexpr bool ENABLE_TEST_LOGGING = false; + + static inline const std::vector KEEP_DIRECTORIES = { TESTDATA_FILES_DIR }; }; } diff --git a/OdbDesignTests/Fixtures/TestDataFixture.cpp b/OdbDesignTests/Fixtures/TestDataFixture.cpp new file mode 100644 index 00000000..1c6206b2 --- /dev/null +++ b/OdbDesignTests/Fixtures/TestDataFixture.cpp @@ -0,0 +1,56 @@ +#include "TestDataFixture.h" +#include +#include +#include +#include + +using namespace std::filesystem; +using namespace Utils; + +namespace Odb::Test::Fixtures +{ + TestDataFixture::TestDataFixture() + : m_testDataDir() + { + } + + void TestDataFixture::SetUp() + { + if (ENABLE_TEST_LOGGING) + { + Logger::instance()->start(); + } + + ASSERT_FALSE(getTestDataDir().empty()); + m_testDataDir = getTestDataDir(); + m_testDataDir = m_testDataDir.make_preferred(); + ASSERT_TRUE(exists(m_testDataDir)); + } + + void TestDataFixture::TearDown() + { + if (ENABLE_TEST_LOGGING) + { + Logger::instance()->stop(); + } + } + + path TestDataFixture::getTestDataDir() + { + auto szTestDataDir = std::getenv(ODB_TEST_DATA_DIR_ENV_NAME); + if (szTestDataDir == nullptr) return ""; + //if (szTestDataDir == nullptr) throw std::runtime_error("ODB_TEST_DATA_DIR environment variable is not set"); + //if (!exists(szTestDataDir)) throw std::runtime_error("ODB_TEST_DATA_DIR environment variable is set to a non-existent directory"); + return szTestDataDir; + } + + path TestDataFixture::getTestDataFilesDir() const + { + return m_testDataDir / TESTDATA_FILES_DIR; + } + + path TestDataFixture::getTestDataFilePath(const std::string& filename) const + { + return getTestDataFilesDir() / filename; + } +} \ No newline at end of file diff --git a/OdbDesignTests/Fixtures/TestDataFixture.h b/OdbDesignTests/Fixtures/TestDataFixture.h new file mode 100644 index 00000000..74457b52 --- /dev/null +++ b/OdbDesignTests/Fixtures/TestDataFixture.h @@ -0,0 +1,32 @@ +#pragma once + +#include "gtest/gtest.h" +#include +#include + +namespace Odb::Test::Fixtures +{ + class TestDataFixture : public testing::Test + { + public: + TestDataFixture(); + + protected: + std::filesystem::path m_testDataDir; + + const bool m_removeDecompressedDirectories = true; + + virtual void SetUp() override; + virtual void TearDown() override; + + static std::filesystem::path getTestDataDir(); + std::filesystem::path getTestDataFilesDir() const; + std::filesystem::path getTestDataFilePath(const std::string& filename) const; + + static inline constexpr const char ODB_TEST_DATA_DIR_ENV_NAME[] = "ODB_TEST_DATA_DIR"; + static inline constexpr const char TESTDATA_FILES_DIR[] = "FILES"; + + static inline constexpr bool ENABLE_TEST_LOGGING = false; + + }; +} diff --git a/OdbDesignTests/TestTests.cpp b/OdbDesignTests/TestTests.cpp index 7bd51ee9..df63ac06 100644 --- a/OdbDesignTests/TestTests.cpp +++ b/OdbDesignTests/TestTests.cpp @@ -1,6 +1,6 @@ #include #include -#include "Fixtures/FileArchiveLoadFixture.h" +#include "Fixtures/TestDataFixture.h" #include using namespace std::filesystem; @@ -26,13 +26,13 @@ namespace Odb::Test SUCCEED(); } - TEST_F(FileArchiveLoadFixture, TestDataDirEnvironmentVariablesExists) + TEST_F(TestDataFixture, TestDataDirEnvironmentVariablesExists) { //ASSERT_FALSE(getTestDataDir().empty()); EXPECT_THAT(getTestDataDir().string(), Not(IsEmpty())); } - TEST_F(FileArchiveLoadFixture, TestDataDirDirectoryExists) + TEST_F(TestDataFixture, TestDataDirDirectoryExists) { ASSERT_FALSE(getTestDataDir().empty()); EXPECT_TRUE(exists(getTestDataDir())); From f99fb6993eebfb8928092460bd6bb29905a546bf Mon Sep 17 00:00:00 2001 From: Nathan Miller Date: Sun, 28 Apr 2024 11:42:03 -0700 Subject: [PATCH 057/168] use actual buffered reads when reading files to compress --- Utils/libarchive_extract.cpp | 32 ++++++++++++++++++++++++-------- 1 file changed, 24 insertions(+), 8 deletions(-) diff --git a/Utils/libarchive_extract.cpp b/Utils/libarchive_extract.cpp index 48ddb970..c0c7ee0e 100644 --- a/Utils/libarchive_extract.cpp +++ b/Utils/libarchive_extract.cpp @@ -7,6 +7,7 @@ #include #include "FileReader.h" #include +#include // from: https://github.com/libarchive/libarchive/wiki/Examples#user-content-A_Complete_Extractor @@ -141,7 +142,7 @@ namespace Utils } constexpr inline static const char* TGZ_EXTENSION = ".tgz"; - constexpr static const int COMPRESS_READ_BUFF_SIZE = 1024; + constexpr static const int READ_BUFF_SIZE = 1024; bool compress_dir(const char* srcDir, const char* destDir, const char* archiveName, std::string& fileOut, CompressionType type /* = CompressionType::TarGzip*/) { @@ -201,14 +202,29 @@ namespace Utils archive_entry_copy_stat(file_entry, &st); if (archive_write_header(a, file_entry) != ARCHIVE_OK) return false; - // read file and write to archive - FileReader fr(it.path()); - auto read = fr.Read(); - if (read > 0) + std::ifstream ifs(it.path(), std::ios::in | std::ios::binary); + if (!ifs.is_open()) return false; + char szBuffer[READ_BUFF_SIZE]{ 0 }; + while (true) { - auto& buffer = fr.GetBuffer(); - if (archive_write_data(a, buffer.data(), read) != read) return false; - } + ifs.read(szBuffer, sizeof(szBuffer)); + auto readin = ifs.gcount(); + if (readin < 1) + { + break; + } + if (archive_write_data(a, szBuffer, readin) != readin) return false; + } + ifs.close(); + + // read file and write to archive + //FileReader fr(it.path()); + //auto read = fr.Read(); + //if (read > 0) + //{ + // auto& buffer = fr.GetBuffer(); + // if (archive_write_data(a, buffer.data(), read) != read) return false; + //} archive_write_finish_entry(a); archive_entry_free(file_entry); } From 19893937b2e95c4cc3a6bddc80a7b65c0909ae06 Mon Sep 17 00:00:00 2001 From: Nathan Miller Date: Mon, 29 Apr 2024 13:05:30 -0700 Subject: [PATCH 058/168] remove comments --- Utils/FileReader.cpp | 9 --------- Utils/FileReader.h | 3 +-- 2 files changed, 1 insertion(+), 11 deletions(-) diff --git a/Utils/FileReader.cpp b/Utils/FileReader.cpp index 90ba5871..47833149 100644 --- a/Utils/FileReader.cpp +++ b/Utils/FileReader.cpp @@ -66,15 +66,6 @@ namespace Utils return read; } - //const char* FileReader::GetBytes() - //{ - // if (m_buffer.size() > 0) - // { - // return m_buffer.data(); - // } - // return nullptr; - //} - void FileReader::Clear() { m_buffer.clear(); diff --git a/Utils/FileReader.h b/Utils/FileReader.h index bff78c91..d7b1029b 100644 --- a/Utils/FileReader.h +++ b/Utils/FileReader.h @@ -17,8 +17,7 @@ namespace Utils FileReader(const std::filesystem::path& filePath); - long long Read(BufferStrategy bufferStrategy = BufferStrategy::Buffered, std::ios::openmode mode = DEFAULT_OPENMODE); - //const char* GetBytes(); + long long Read(BufferStrategy bufferStrategy = BufferStrategy::Buffered, std::ios::openmode mode = DEFAULT_OPENMODE); void Clear(); const std::vector& GetBuffer() const; From 9fa360cd1a50703277f8d19bf04919853f3f484b Mon Sep 17 00:00:00 2001 From: Nathan Miller Date: Mon, 29 Apr 2024 13:07:11 -0700 Subject: [PATCH 059/168] add #include headers --- OdbDesignLib/FileModel/Design/FileArchive.cpp | 7 +------ OdbDesignLib/FileModel/Design/MiscInfoFile.h | 1 + OdbDesignLib/FileModel/Design/StepDirectory.h | 1 + OdbDesignLib/FileModel/Design/SymbolsDirectory.cpp | 4 ++++ 4 files changed, 7 insertions(+), 6 deletions(-) diff --git a/OdbDesignLib/FileModel/Design/FileArchive.cpp b/OdbDesignLib/FileModel/Design/FileArchive.cpp index 125795a6..19297900 100644 --- a/OdbDesignLib/FileModel/Design/FileArchive.cpp +++ b/OdbDesignLib/FileModel/Design/FileArchive.cpp @@ -2,11 +2,11 @@ #include #include "ArchiveExtractor.h" #include "MiscInfoFile.h" -#include #include "Logger.h" #include "StopWatch.h" #include "fastmove.h" #include +#include using namespace Utils; using namespace std::filesystem; @@ -108,11 +108,6 @@ namespace Odb::Lib::FileModel::Design return false; } - //bool FileArchive::SaveFileModel(const std::string& directory, const std::string& archiveName) - //{ - // return SaveFileModel(path(directory), archiveName); - //} - bool FileArchive::SaveFileModel(const path& directory, const std::string& archiveName) { // create directory in /tmp diff --git a/OdbDesignLib/FileModel/Design/MiscInfoFile.h b/OdbDesignLib/FileModel/Design/MiscInfoFile.h index 8ac74ae6..3afc478e 100644 --- a/OdbDesignLib/FileModel/Design/MiscInfoFile.h +++ b/OdbDesignLib/FileModel/Design/MiscInfoFile.h @@ -7,6 +7,7 @@ #include "../../IProtoBuffable.h" #include "../../ProtoBuf/miscinfofile.pb.h" #include "../IStreamSaveable.h" +#include #pragma once diff --git a/OdbDesignLib/FileModel/Design/StepDirectory.h b/OdbDesignLib/FileModel/Design/StepDirectory.h index 35a55815..7bb3a4ac 100644 --- a/OdbDesignLib/FileModel/Design/StepDirectory.h +++ b/OdbDesignLib/FileModel/Design/StepDirectory.h @@ -15,6 +15,7 @@ #include "AttrListFile.h" #include "StepHdrFile.h" #include "../ISaveable.h" +#include "FeaturesFile.h" namespace Odb::Lib::FileModel::Design diff --git a/OdbDesignLib/FileModel/Design/SymbolsDirectory.cpp b/OdbDesignLib/FileModel/Design/SymbolsDirectory.cpp index 7e3e4825..e8436fc4 100644 --- a/OdbDesignLib/FileModel/Design/SymbolsDirectory.cpp +++ b/OdbDesignLib/FileModel/Design/SymbolsDirectory.cpp @@ -1,6 +1,10 @@ #include "SymbolsDirectory.h" #include "Logger.h" #include +#include +#include "FeaturesFile.h" +#include "AttrListFile.h" +#include namespace Odb::Lib::FileModel::Design { From ff08354ad9c6da26b0af36cce5c3538a75861b3a Mon Sep 17 00:00:00 2001 From: Nathan Miller Date: Tue, 30 Apr 2024 07:56:03 -0700 Subject: [PATCH 060/168] add stepname dircetory under steps dir --- OdbDesignLib/FileModel/Design/StepDirectory.cpp | 15 +++++++++------ 1 file changed, 9 insertions(+), 6 deletions(-) diff --git a/OdbDesignLib/FileModel/Design/StepDirectory.cpp b/OdbDesignLib/FileModel/Design/StepDirectory.cpp index d726d793..33f0f286 100644 --- a/OdbDesignLib/FileModel/Design/StepDirectory.cpp +++ b/OdbDesignLib/FileModel/Design/StepDirectory.cpp @@ -172,30 +172,33 @@ namespace Odb::Lib::FileModel::Design bool StepDirectory::Save(const std::filesystem::path& directory) { + auto stepDir = directory / m_name; + if (!create_directory(stepDir)) return false; + // eda/data - auto edaPath = directory / "eda"; + auto edaPath = stepDir / "eda"; if (!create_directory(edaPath)) return false; std::ofstream edaDataFile(edaPath / "data"); if (!m_edaData.Save(edaDataFile)) return false; edaDataFile.close(); // attrlist - std::ofstream attrlistFile(directory / "attrlist"); + std::ofstream attrlistFile(stepDir / "attrlist"); if (!m_attrListFile.Save(attrlistFile)) return false; attrlistFile.close(); // profile - std::ofstream profileFile(directory / "profile"); + std::ofstream profileFile(stepDir / "profile"); if (!m_profileFile.Save(profileFile)) return false; profileFile.close(); // StepHdrFile - std::ofstream stephdrFile(directory / "stephdr"); + std::ofstream stephdrFile(stepDir / "stephdr"); if (!m_stepHdrFile.Save(stephdrFile)) return false; stephdrFile.close(); // layers - auto layersPath = directory / "layers"; + auto layersPath = stepDir / "layers"; if (!create_directory(layersPath)) return false; for (auto& kvLayer : m_layersByName) { @@ -203,7 +206,7 @@ namespace Odb::Lib::FileModel::Design } // m_netlistsByName; - auto netlistsPath = directory / "netlists"; + auto netlistsPath = stepDir / "netlists"; if (!create_directory(netlistsPath)) return false; for (auto& kvNetlist : m_netlistsByName) { From 96498af55becf1618cbce278c7f2b8ee3335ecf1 Mon Sep 17 00:00:00 2001 From: Nathan Miller Date: Tue, 30 Apr 2024 08:05:57 -0700 Subject: [PATCH 061/168] implement Save() in NetlistFile --- OdbDesignLib/FileModel/Design/NetlistFile.cpp | 58 ++++++++++++++----- OdbDesignLib/FileModel/Design/NetlistFile.h | 34 ++++++++--- 2 files changed, 69 insertions(+), 23 deletions(-) diff --git a/OdbDesignLib/FileModel/Design/NetlistFile.cpp b/OdbDesignLib/FileModel/Design/NetlistFile.cpp index cf2d8f74..0a5f480f 100644 --- a/OdbDesignLib/FileModel/Design/NetlistFile.cpp +++ b/OdbDesignLib/FileModel/Design/NetlistFile.cpp @@ -1,11 +1,19 @@ #include "NetlistFile.h" -#include -#include +#include "NetlistFile.h" #include #include "../parse_error.h" #include "../invalid_odb_error.h" #include #include +#include +#include "../../Constants.h" +#include +#include +#include +#include +#include +#include "../parse_info.h" +#include "../../ProtoBuf/netlistfile.pb.h" using namespace std::filesystem; @@ -105,11 +113,11 @@ namespace Odb::Lib::FileModel::Design { std::stringstream lineStream(line); - if (line.find(COMMENT_TOKEN) == 0) + if (line.find(Constants::COMMENT_TOKEN) == 0) { // comment line } - else if (line.find(UNITS_TOKEN) == 0) + else if (line.find(Constants::UNITS_TOKEN) == 0) { // units line std::string token; @@ -158,7 +166,7 @@ namespace Odb::Lib::FileModel::Design } // staggered (optional) - if (lineStream >> token && token == "staggered") + if (lineStream >> token && token == STAGGERED_KEY) { char staggered; if (!(lineStream >> staggered)) @@ -285,14 +293,14 @@ namespace Odb::Lib::FileModel::Design return true; } - std::unique_ptr NetlistFile::to_protobuf() const + std::unique_ptr NetlistFile::to_protobuf() const { - std::unique_ptr pNetlistFileMessage(new Odb::Lib::Protobuf::NetlistFile); + std::unique_ptr pNetlistFileMessage(new Protobuf::NetlistFile); pNetlistFileMessage->set_units(m_units); pNetlistFileMessage->set_path(m_path.string()); pNetlistFileMessage->set_name(m_name); pNetlistFileMessage->set_optimized(m_optimized); - pNetlistFileMessage->set_staggered(static_cast(m_staggered)); + pNetlistFileMessage->set_staggered(static_cast(m_staggered)); for (const auto& pNetRecord : m_netRecords) { @@ -314,7 +322,7 @@ namespace Odb::Lib::FileModel::Design return pNetlistFileMessage; } - void NetlistFile::from_protobuf(const Odb::Lib::Protobuf::NetlistFile& message) + void NetlistFile::from_protobuf(const Protobuf::NetlistFile& message) { m_name = message.name(); m_path = message.path(); @@ -346,6 +354,20 @@ namespace Odb::Lib::FileModel::Design bool NetlistFile::Save(std::ostream& os) { + os << 'H' << " optimize " << (m_optimized ? 'Y' : 'N') << "staggered " << (m_staggered == Staggered::Yes ? 'Y' : 'N') << std::endl; + os << Constants::UNITS_TOKEN << " = " << m_units << std::endl; + + for (const auto& netRecord : m_netRecords) + { + os << NetRecord::FIELD_TOKEN << netRecord->serialNumber << " " << netRecord->netName << std::endl; + } + + for (const auto& netPointRecord : m_netPointRecords) + { + netPointRecord->Save(os); + os << std::endl; + } + return true; } @@ -362,23 +384,23 @@ namespace Odb::Lib::FileModel::Design return true; } - std::unique_ptr NetlistFile::NetRecord::to_protobuf() const + std::unique_ptr NetlistFile::NetRecord::to_protobuf() const { - std::unique_ptr pNetRecordMessage(new Odb::Lib::Protobuf::NetlistFile::NetRecord); + std::unique_ptr pNetRecordMessage(new Protobuf::NetlistFile::NetRecord); pNetRecordMessage->set_serialnumber(serialNumber); pNetRecordMessage->set_netname(netName); return pNetRecordMessage; } - void NetlistFile::NetRecord::from_protobuf(const Odb::Lib::Protobuf::NetlistFile::NetRecord& message) + void NetlistFile::NetRecord::from_protobuf(const Protobuf::NetlistFile::NetRecord& message) { serialNumber = message.serialnumber(); netName = message.netname(); } - std::unique_ptr NetlistFile::NetPointRecord::to_protobuf() const + std::unique_ptr NetlistFile::NetPointRecord::to_protobuf() const { - std::unique_ptr pNetPointRecordMessage(new Odb::Lib::Protobuf::NetlistFile::NetPointRecord); + std::unique_ptr pNetPointRecordMessage(new Protobuf::NetlistFile::NetPointRecord); pNetPointRecordMessage->set_netnumber(netNumber); pNetPointRecordMessage->set_radius(radius); pNetPointRecordMessage->set_x(x); @@ -390,7 +412,7 @@ namespace Odb::Lib::FileModel::Design pNetPointRecordMessage->set_height(height); pNetPointRecordMessage->set_commentpoint(commentPoint); pNetPointRecordMessage->set_netnumber(netNumber); - pNetPointRecordMessage->set_side(static_cast(side)); + pNetPointRecordMessage->set_side(static_cast(side)); pNetPointRecordMessage->set_staggeredradius(staggeredRadius); pNetPointRecordMessage->set_staggeredx(staggeredX); pNetPointRecordMessage->set_staggeredy(staggeredY); @@ -401,7 +423,7 @@ namespace Odb::Lib::FileModel::Design return pNetPointRecordMessage; } - void NetlistFile::NetPointRecord::from_protobuf(const Odb::Lib::Protobuf::NetlistFile::NetPointRecord& message) + void NetlistFile::NetPointRecord::from_protobuf(const Protobuf::NetlistFile::NetPointRecord& message) { netNumber = message.netnumber(); radius = message.radius(); @@ -433,5 +455,9 @@ namespace Odb::Lib::FileModel::Design fiducialPoint = message.fiducialpoint(); } + bool NetlistFile::NetPointRecord::Save(std::ostream& os) + { + return false; + } } // namespace Odb::Lib::FileModel::Design \ No newline at end of file diff --git a/OdbDesignLib/FileModel/Design/NetlistFile.h b/OdbDesignLib/FileModel/Design/NetlistFile.h index 1d794bbd..03b79aef 100644 --- a/OdbDesignLib/FileModel/Design/NetlistFile.h +++ b/OdbDesignLib/FileModel/Design/NetlistFile.h @@ -10,6 +10,7 @@ #include "../../ProtoBuf/netlistfile.pb.h" #include "../ISaveable.h" #include "../IStreamSaveable.h" +#include "EnumMap.h" namespace Odb::Lib::FileModel::Design @@ -32,7 +33,7 @@ namespace Odb::Lib::FileModel::Design inline constexpr static const char* FIELD_TOKEN = "$"; }; - struct ODBDESIGN_EXPORT NetPointRecord : public IProtoBuffable + struct ODBDESIGN_EXPORT NetPointRecord : public IProtoBuffable, public IStreamSaveable { enum AccessSide { @@ -66,6 +67,19 @@ namespace Odb::Lib::FileModel::Design void from_protobuf(const Odb::Lib::Protobuf::NetlistFile::NetPointRecord& message) override; typedef std::vector> Vector; + + inline static const Utils::EnumMap accessSideMap{ + { + "Top", + "Down", + "Both", + "Inner" + } + }; + + // Inherited via IStreamSaveable + bool Save(std::ostream& os) override; + }; // NetPointRecord enum class Staggered @@ -75,6 +89,14 @@ namespace Odb::Lib::FileModel::Design Unknown }; + inline static const Utils::EnumMap staggeredMap{ + { + "Y", + "N", + "Unknown" + } + }; + NetlistFile(std::filesystem::path path); ~NetlistFile(); @@ -109,15 +131,13 @@ namespace Odb::Lib::FileModel::Design NetRecord::Vector m_netRecords; NetRecord::StringMap m_netRecordsByName; - NetPointRecord::Vector m_netPointRecords; - - inline constexpr static const char* UNITS_TOKEN = "UNITS"; - inline constexpr static const char* COMMENT_TOKEN = "#"; - inline constexpr static const char* HEADER_TOKEN = "H"; + NetPointRecord::Vector m_netPointRecords; + inline constexpr static const char HEADER_TOKEN[] = "H"; + inline constexpr static const char STAGGERED_KEY[] = "staggered"; // Inherited via IStreamSaveable bool Save(std::ostream& os) override; -}; // NetlistFile + }; // NetlistFile } \ No newline at end of file From 53fc70ffb5f78db53d9456ef119052196f4519a7 Mon Sep 17 00:00:00 2001 From: Nathan Miller Date: Wed, 1 May 2024 09:09:22 -0700 Subject: [PATCH 062/168] add add newline at end of file --- docs/BUILD.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/BUILD.md b/docs/BUILD.md index 2aa42192..147eeafd 100644 --- a/docs/BUILD.md +++ b/docs/BUILD.md @@ -99,4 +99,4 @@ From the root of the source directory... ```Bash $ docker compose up -``` \ No newline at end of file +``` From a13a690b5ff2d826aab7cf58d341851591f26c53 Mon Sep 17 00:00:00 2001 From: Nathan Miller Date: Thu, 2 May 2024 07:45:56 -0700 Subject: [PATCH 063/168] fix writing file out in multipartformupload endpoint to use binary mode so files are written correctly --- OdbDesignServer/Controllers/FileUploadController.cpp | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/OdbDesignServer/Controllers/FileUploadController.cpp b/OdbDesignServer/Controllers/FileUploadController.cpp index ad9b2d81..dd107972 100644 --- a/OdbDesignServer/Controllers/FileUploadController.cpp +++ b/OdbDesignServer/Controllers/FileUploadController.cpp @@ -28,7 +28,7 @@ namespace Odb::App::Server const auto& contentType = req.get_header_value("Content-Type"); if (contentType != "application/octet-stream") { - return crow::response(crow::status::BAD_REQUEST, "unsupported content type: this endpoint only accepts 'applicaiton/octet-stream'"); + return crow::response(crow::status::BAD_REQUEST, "unsupported content type: this endpoint only accepts 'applicaiton/octet-stream'"); } return handleOctetStreamUpload(filename, req); @@ -164,7 +164,7 @@ namespace Odb::App::Server // Create a new file with the extracted file name and write file contents to it const auto tempPath = temp_directory_path() / std::tmpnam(nullptr); - std::ofstream out_file(tempPath); + std::ofstream out_file(tempPath, std::ofstream::binary); if (!out_file) { CROW_LOG_ERROR << " Write to file failed\n"; @@ -176,7 +176,6 @@ namespace Odb::App::Server auto safeName = sanitizeFilename(outfile_name); path finalPath(m_serverApp.args().designsDir()); finalPath /= safeName; - //rename(tempPath, finalPath); auto ec = fastcopy(tempPath, finalPath, false); CROW_LOG_INFO << " Contents written to " << outfile_name << '\n'; From 5c2837ece8ea48879585d3f0d01430205c9297bd Mon Sep 17 00:00:00 2001 From: Nathan Miller Date: Thu, 2 May 2024 13:31:34 -0700 Subject: [PATCH 064/168] pull makeFileModelsLoadedResponse() up into RouteController base class and use it for all design/filemodel list and upload endpoints --- OdbDesignLib/App/RouteController.cpp | 32 +++++++++++++++++++ OdbDesignLib/App/RouteController.h | 10 +++++- .../Controllers/DesignsController.cpp | 12 +------ .../Controllers/FileModelController.cpp | 12 +------ .../Controllers/FileUploadController.h | 2 -- 5 files changed, 43 insertions(+), 25 deletions(-) diff --git a/OdbDesignLib/App/RouteController.cpp b/OdbDesignLib/App/RouteController.cpp index c98f5aad..c658f933 100644 --- a/OdbDesignLib/App/RouteController.cpp +++ b/OdbDesignLib/App/RouteController.cpp @@ -1,4 +1,6 @@ #include "RouteController.h" +#include "RouteController.h" +#include "RouteController.h" namespace Odb::Lib::App @@ -39,4 +41,34 @@ namespace Odb::Lib::App // return handler(req); // }); } + + crow::response Odb::Lib::App::RouteController::makeLoadedFileModelsResponse() const + { + auto unloadedDesignNames = m_serverApp.designs().getUnloadedDesignNames(); + auto loadedFileArchiveNames = m_serverApp.designs().getLoadedFileArchiveNames(); + auto loadedDesignNames = m_serverApp.designs().getLoadedDesignNames(); + + crow::json::wvalue::list designs; + for (const auto& designName : unloadedDesignNames) + { + auto loaded = false; + if (std::find(loadedFileArchiveNames.begin(), loadedFileArchiveNames.end(), designName) != loadedFileArchiveNames.end() || + std::find(loadedDesignNames.begin(), loadedDesignNames.end(), designName) != loadedDesignNames.end()) + { + loaded = true; + } + crow::json::wvalue design; + design["name"] = designName; + design["loaded"] = loaded; + designs.push_back(design); + } + crow::json::wvalue jsonResponse; + jsonResponse["filearchives"] = std::move(designs); + +#if defined(_DEBUG) + auto j = jsonResponse.dump(); +#endif + + return crow::response(jsonResponse); + } } diff --git a/OdbDesignLib/App/RouteController.h b/OdbDesignLib/App/RouteController.h index ceb784a7..21eb1e12 100644 --- a/OdbDesignLib/App/RouteController.h +++ b/OdbDesignLib/App/RouteController.h @@ -2,13 +2,16 @@ #include "IOdbServerApp.h" #include "../odbdesign_export.h" +#include +#include +#include +#include namespace Odb::Lib::App { class ODBDESIGN_EXPORT RouteController { public: - RouteController(IOdbServerApp& serverApp); virtual ~RouteController() = default; virtual void register_routes() = 0; @@ -18,9 +21,14 @@ namespace Odb::Lib::App protected: IOdbServerApp& m_serverApp; + RouteController(IOdbServerApp& serverApp); + typedef std::function TRouteHandlerFunction; void register_route_handler(std::string route, TRouteHandlerFunction handler); + + crow::response makeLoadedFileModelsResponse() const; + }; } diff --git a/OdbDesignServer/Controllers/DesignsController.cpp b/OdbDesignServer/Controllers/DesignsController.cpp index 8390f70f..44533b64 100644 --- a/OdbDesignServer/Controllers/DesignsController.cpp +++ b/OdbDesignServer/Controllers/DesignsController.cpp @@ -147,17 +147,7 @@ namespace Odb::App::Server crow::response DesignsController::designs_list_route_handler(const crow::request& req) { - const auto& fileArchives = m_serverApp.designs().getUnloadedDesignNames(); - - crow::json::wvalue::list designNames; - for (const auto& designName : fileArchives) - { - designNames.push_back(designName); - } - - crow::json::wvalue jsonResponse; - jsonResponse["designs"] = std::move(designNames); - return crow::response(jsonResponse); + return makeLoadedFileModelsResponse(); } crow::response DesignsController::design_route_handler(std::string designName, const crow::request& req) diff --git a/OdbDesignServer/Controllers/FileModelController.cpp b/OdbDesignServer/Controllers/FileModelController.cpp index 53e50729..a1e7a1ca 100644 --- a/OdbDesignServer/Controllers/FileModelController.cpp +++ b/OdbDesignServer/Controllers/FileModelController.cpp @@ -1055,17 +1055,7 @@ namespace Odb::App::Server crow::response FileModelController::filemodels_list_route_handler(const crow::request& req) { - const auto& fileArchives = m_serverApp.designs().getUnloadedDesignNames(); - - crow::json::wvalue::list designNames; - for (const auto& designName : fileArchives) - { - designNames.push_back(designName); - } - - crow::json::wvalue jsonResponse; - jsonResponse["filearchives"] = std::move(designNames); - return crow::response(jsonResponse); + return makeLoadedFileModelsResponse(); } crow::response FileModelController::misc_attrlist_route_handler(const std::string& designName, const crow::request& req) diff --git a/OdbDesignServer/Controllers/FileUploadController.h b/OdbDesignServer/Controllers/FileUploadController.h index 76419b22..58be115b 100644 --- a/OdbDesignServer/Controllers/FileUploadController.h +++ b/OdbDesignServer/Controllers/FileUploadController.h @@ -16,8 +16,6 @@ namespace Odb::App::Server crow::response handleOctetStreamUpload(const std::string& filename, const crow::request& req); crow::response handleMultipartFormUpload(const crow::request& req); - crow::response makeLoadedDesignsResponse() const; - // TODO: actually implement sanitizeFilename() std::string sanitizeFilename(const std::string& filename) const; From be060511df9920f3400f4f067ac236b397e46f69 Mon Sep 17 00:00:00 2001 From: Nathan Miller Date: Thu, 2 May 2024 13:32:46 -0700 Subject: [PATCH 065/168] replace all HTTP Content-Type headers and multipart protocol "magic" strings into constants --- .../Controllers/FileUploadController.cpp | 57 +++++-------------- .../Controllers/FileUploadController.h | 10 +++- 2 files changed, 23 insertions(+), 44 deletions(-) diff --git a/OdbDesignServer/Controllers/FileUploadController.cpp b/OdbDesignServer/Controllers/FileUploadController.cpp index dd107972..e78da5c0 100644 --- a/OdbDesignServer/Controllers/FileUploadController.cpp +++ b/OdbDesignServer/Controllers/FileUploadController.cpp @@ -1,5 +1,6 @@ #include "FileUploadController.h" #include "fastcopy.h" +#include using namespace std::filesystem; using namespace Odb::Lib::App; @@ -25,8 +26,8 @@ namespace Odb::App::Server return authResp; } - const auto& contentType = req.get_header_value("Content-Type"); - if (contentType != "application/octet-stream") + const auto& contentType = req.get_header_value(CONTENT_TYPE_HEADER_NAME); + if (contentType != CONTENT_TYPE_APPLICATION_OCTET_STREAM) { return crow::response(crow::status::BAD_REQUEST, "unsupported content type: this endpoint only accepts 'applicaiton/octet-stream'"); } @@ -45,8 +46,8 @@ namespace Odb::App::Server return authResp; } - const auto& contentType = req.get_header_value("Content-Type"); - if (contentType.find("multipart/form-data") != 0) + const auto& contentType = req.get_header_value(CONTENT_TYPE_HEADER_NAME); + if (contentType.find(CONTENT_TYPE_MULTIPART_FORM_DATA) != 0) { // "Content-Type" header doesn't start with "multipart/form-data" return crow::response(crow::status::BAD_REQUEST, "unsupported content type: this endpoint only accepts 'multipart/form-data'"); @@ -66,7 +67,7 @@ namespace Odb::App::Server return authResp; } - return makeLoadedDesignsResponse(); + return makeLoadedFileModelsResponse(); }); // CROW_ROUTE(m_serverApp.crow_app(), "/designs/list/").methods(crow::HTTPMethod::GET) @@ -111,7 +112,7 @@ namespace Odb::App::Server std::string responseBody = "{ \"filename\": \"" + safeName + "\" }"; - return makeLoadedDesignsResponse(); + return makeLoadedFileModelsResponse(); } crow::response FileUploadController::handleMultipartFormUpload(const crow::request& req) @@ -123,28 +124,28 @@ namespace Odb::App::Server const auto& part_value = part.second; CROW_LOG_DEBUG << "Part: " << part_name; - if (MULTIPART_FORMDATA_PART_NAME != part_name) + if (MULTIPART_FORM_DATA_PART_NAME != part_name) { // log to debug and skip rest of the loop CROW_LOG_DEBUG << " Value: " << part_value.body << '\n'; CROW_LOG_ERROR << "multipart/form-data POST failed! Part name was: [" << part_name - << "], which is not supported. Part name should be [" << MULTIPART_FORMDATA_PART_NAME + << "], which is not supported. Part name should be [" << MULTIPART_FORM_DATA_PART_NAME << "]."; continue; } // Extract the file name - auto headers_it = part_value.headers.find("Content-Disposition"); + auto headers_it = part_value.headers.find(CONTENT_DISPOSITION_HEADER_NAME); if (headers_it == part_value.headers.end()) { - CROW_LOG_ERROR << "No Content-Disposition found"; + CROW_LOG_ERROR << "No " << CONTENT_DISPOSITION_HEADER_NAME << " found"; return crow::response(400); } - auto params_it = headers_it->second.params.find("filename"); + auto params_it = headers_it->second.params.find(MULTIPART_FORM_DATA_PART_FILENAME); if (params_it == headers_it->second.params.end()) { - CROW_LOG_ERROR << "Part with name \"InputFile\" should have a file"; + CROW_LOG_ERROR << "Part with name \"" << "MULTIPART_FORMDATA_PART_NAME" << "\" should have a \"" << "MULTIPART_FORMDATA_PART_FILENAME" << "\" parameter"; return crow::response(400); } const std::string outfile_name = params_it->second; @@ -181,37 +182,7 @@ namespace Odb::App::Server CROW_LOG_INFO << " Contents written to " << outfile_name << '\n'; } - return makeLoadedDesignsResponse(); - } - - crow::response FileUploadController::makeLoadedDesignsResponse() const - { - auto unloadedDesignNames = m_serverApp.designs().getUnloadedDesignNames(); - auto loadedFileArchiveNames = m_serverApp.designs().getLoadedFileArchiveNames(); - auto loadedDesignNames = m_serverApp.designs().getLoadedDesignNames(); - - crow::json::wvalue::list designs; - for (const auto& designName : unloadedDesignNames) - { - auto loaded = false; - if (std::find(loadedFileArchiveNames.begin(), loadedFileArchiveNames.end(), designName) != loadedFileArchiveNames.end() || - std::find(loadedDesignNames.begin(), loadedDesignNames.end(), designName) != loadedDesignNames.end()) - { - loaded = true; - } - crow::json::wvalue design; - design["name"] = designName; - design["loaded"] = loaded; - designs.push_back(design); - } - crow::json::wvalue jsonResponse; - jsonResponse["designs"] = std::move(designs); - -#if defined(_DEBUG) - auto j = jsonResponse.dump(); -#endif - - return crow::response(jsonResponse); + return makeLoadedFileModelsResponse(); } std::string FileUploadController::sanitizeFilename(const std::string& filename) const diff --git a/OdbDesignServer/Controllers/FileUploadController.h b/OdbDesignServer/Controllers/FileUploadController.h index 58be115b..2d1352d1 100644 --- a/OdbDesignServer/Controllers/FileUploadController.h +++ b/OdbDesignServer/Controllers/FileUploadController.h @@ -19,8 +19,16 @@ namespace Odb::App::Server // TODO: actually implement sanitizeFilename() std::string sanitizeFilename(const std::string& filename) const; - constexpr static const inline char MULTIPART_FORMDATA_PART_NAME[] = "file"; + constexpr static const inline char MULTIPART_FORM_DATA_PART_NAME[] = "file"; + constexpr static const inline char MULTIPART_FORM_DATA_PART_FILENAME[] = "filename"; + constexpr static const inline char CONTENT_DISPOSITION_HEADER_NAME[] = "Content-Disposition"; + constexpr static const inline char CONTENT_TYPE_HEADER_NAME[] = "Content-Type"; + constexpr static const inline char CONTENT_TYPE_MULTIPART_FORM_DATA[] = "multipart/form-data"; + constexpr static const inline char CONTENT_TYPE_APPLICATION_OCTET_STREAM[] = "multipart/form-data"; + + //constexpr static const inline char MULTIPART_FORMDATA_PART_NAME[] = "InputFile" }; } + From 51dd0cc4ad737617a8a32aa63b17bcc46f3b06e2 Mon Sep 17 00:00:00 2001 From: Nathan Miller Date: Thu, 2 May 2024 13:36:40 -0700 Subject: [PATCH 066/168] fix constant --- OdbDesignServer/Controllers/FileUploadController.cpp | 4 ++-- OdbDesignServer/Controllers/FileUploadController.h | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/OdbDesignServer/Controllers/FileUploadController.cpp b/OdbDesignServer/Controllers/FileUploadController.cpp index e78da5c0..927bc496 100644 --- a/OdbDesignServer/Controllers/FileUploadController.cpp +++ b/OdbDesignServer/Controllers/FileUploadController.cpp @@ -29,7 +29,7 @@ namespace Odb::App::Server const auto& contentType = req.get_header_value(CONTENT_TYPE_HEADER_NAME); if (contentType != CONTENT_TYPE_APPLICATION_OCTET_STREAM) { - return crow::response(crow::status::BAD_REQUEST, "unsupported content type: this endpoint only accepts 'applicaiton/octet-stream'"); + return crow::response(crow::status::BAD_REQUEST, std::string("unsupported content type: this endpoint only accepts '") + CONTENT_TYPE_APPLICATION_OCTET_STREAM + "'"); } return handleOctetStreamUpload(filename, req); @@ -50,7 +50,7 @@ namespace Odb::App::Server if (contentType.find(CONTENT_TYPE_MULTIPART_FORM_DATA) != 0) { // "Content-Type" header doesn't start with "multipart/form-data" - return crow::response(crow::status::BAD_REQUEST, "unsupported content type: this endpoint only accepts 'multipart/form-data'"); + return crow::response(crow::status::BAD_REQUEST, std::string("unsupported content type: this endpoint only accepts '") + CONTENT_TYPE_MULTIPART_FORM_DATA + "'"); } return handleMultipartFormUpload(req); diff --git a/OdbDesignServer/Controllers/FileUploadController.h b/OdbDesignServer/Controllers/FileUploadController.h index 2d1352d1..86afea0a 100644 --- a/OdbDesignServer/Controllers/FileUploadController.h +++ b/OdbDesignServer/Controllers/FileUploadController.h @@ -24,7 +24,7 @@ namespace Odb::App::Server constexpr static const inline char CONTENT_DISPOSITION_HEADER_NAME[] = "Content-Disposition"; constexpr static const inline char CONTENT_TYPE_HEADER_NAME[] = "Content-Type"; constexpr static const inline char CONTENT_TYPE_MULTIPART_FORM_DATA[] = "multipart/form-data"; - constexpr static const inline char CONTENT_TYPE_APPLICATION_OCTET_STREAM[] = "multipart/form-data"; + constexpr static const inline char CONTENT_TYPE_APPLICATION_OCTET_STREAM[] = "application/octet-stream"; //constexpr static const inline char MULTIPART_FORMDATA_PART_NAME[] = "InputFile" From 0539d5b0739605f76e0b84ab75e59ee8a76fd61b Mon Sep 17 00:00:00 2001 From: Nathan Miller Date: Fri, 3 May 2024 14:18:57 -0700 Subject: [PATCH 067/168] call WEXITSTATUS macro on return value of std::system() (must be used on POSIX systems since the actual return value is stored in upper 8 bits) --- Utils/ArchiveExtractor.cpp | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/Utils/ArchiveExtractor.cpp b/Utils/ArchiveExtractor.cpp index 9112c457..320ec085 100644 --- a/Utils/ArchiveExtractor.cpp +++ b/Utils/ArchiveExtractor.cpp @@ -5,6 +5,8 @@ #include #include "macros.h" #include "str_utils.h" +#include +#include using namespace std::filesystem; @@ -87,6 +89,11 @@ namespace Utils loginfo("running 7z command: [" + command + "]..."); auto exitCode = std::system(command.c_str()); + +#ifdef __linux__ || __apple__ + exitCode = WEXITSTATUS(exitCode); +#endif + if (exitCode != (int) e7zExitCode::Success && exitCode != (int) e7zExitCode::Warning) { From 6fd33da8cab73c87942158995d698793d0594c47 Mon Sep 17 00:00:00 2001 From: Nathan Miller Date: Fri, 3 May 2024 14:19:39 -0700 Subject: [PATCH 068/168] install 7z in Dockerfile and call apt-get clean --- Dockerfile | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/Dockerfile b/Dockerfile index df844f5d..5c4cffd6 100644 --- a/Dockerfile +++ b/Dockerfile @@ -20,10 +20,15 @@ RUN apt-get update && \ tar \ pkg-config \ mono-complete \ - linux-libc-dev \ + linux-libc-dev \ + p7zip-full \ && \ + apt-get clean && \ rm -rf /var/lib/apt/lists/* +# test 7z install +RUN 7z -h + # install vcpkg ENV VCPKG_ROOT=/root/src/github/microsoft/vcpkg RUN git clone https://github.com/Microsoft/vcpkg.git ${VCPKG_ROOT} From 374cf20bf69ea1dd6ada7b257de40b8ba0e07744 Mon Sep 17 00:00:00 2001 From: Nathan Miller Date: Fri, 3 May 2024 14:22:16 -0700 Subject: [PATCH 069/168] formatting --- Utils/macros.h | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/Utils/macros.h b/Utils/macros.h index fd1b580d..b8fd4eec 100644 --- a/Utils/macros.h +++ b/Utils/macros.h @@ -9,18 +9,18 @@ namespace Utils constexpr static inline bool IsMsvc() { #if defined(_MSC_VER) - return true; + return true; #else - return false; + return false; #endif } constexpr static inline bool IsDebug() { #if defined(_DEBUG) - return true; + return true; #else - return false; + return false; #endif } From 4137a897d3dcd95edcada3b80072fd5a9823d25f Mon Sep 17 00:00:00 2001 From: Nathan Miller Date: Fri, 3 May 2024 14:22:30 -0700 Subject: [PATCH 070/168] fix #if defined OR expression --- Utils/ArchiveExtractor.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Utils/ArchiveExtractor.cpp b/Utils/ArchiveExtractor.cpp index 320ec085..067decaf 100644 --- a/Utils/ArchiveExtractor.cpp +++ b/Utils/ArchiveExtractor.cpp @@ -90,7 +90,7 @@ namespace Utils auto exitCode = std::system(command.c_str()); -#ifdef __linux__ || __apple__ +#if defined(__linux__) || defined(__apple__) exitCode = WEXITSTATUS(exitCode); #endif From 5cc2b4c429440741ec5a394ffa987806547b3239 Mon Sep 17 00:00:00 2001 From: Nathan Miller Date: Sat, 4 May 2024 11:19:01 -0700 Subject: [PATCH 071/168] rename default ingress to denote use for AWS EKS --- deploy/kube/{default-ingress.yaml => default-ingress (eks).yaml} | 0 1 file changed, 0 insertions(+), 0 deletions(-) rename deploy/kube/{default-ingress.yaml => default-ingress (eks).yaml} (100%) diff --git a/deploy/kube/default-ingress.yaml b/deploy/kube/default-ingress (eks).yaml similarity index 100% rename from deploy/kube/default-ingress.yaml rename to deploy/kube/default-ingress (eks).yaml From 8dd5fa2b360292635ced2cdd4f3c5ccdea77429e Mon Sep 17 00:00:00 2001 From: Nathan Miller Date: Sat, 4 May 2024 11:20:06 -0700 Subject: [PATCH 072/168] add letsencrypt issuer for certmanager support to ingress --- deploy/kube/issuer.yaml | 18 ++++++++++++++++++ deploy/kube/local-ingress.yaml | 7 +++++++ 2 files changed, 25 insertions(+) create mode 100644 deploy/kube/issuer.yaml diff --git a/deploy/kube/issuer.yaml b/deploy/kube/issuer.yaml new file mode 100644 index 00000000..13691ec7 --- /dev/null +++ b/deploy/kube/issuer.yaml @@ -0,0 +1,18 @@ +apiVersion: cert-manager.io/v1 +kind: Issuer +metadata: + name: letsencrypt-staging +spec: + acme: + # The ACME server URL + server: https://acme-staging-v02.api.letsencrypt.org/directory + # Email address used for ACME registration + email: nmiller217@gmail.com + # Name of a secret used to store the ACME account private key + privateKeySecretRef: + name: letsencrypt-staging-tls + # Enable the HTTP-01 challenge provider + solvers: + - http01: + ingress: + ingressClassName: traefik \ No newline at end of file diff --git a/deploy/kube/local-ingress.yaml b/deploy/kube/local-ingress.yaml index c0e59d4e..c96c800f 100644 --- a/deploy/kube/local-ingress.yaml +++ b/deploy/kube/local-ingress.yaml @@ -2,7 +2,10 @@ apiVersion: networking.k8s.io/v1 kind: Ingress metadata: name: odbdesign-server-ingress + annotations: + cert-manager.io/issuer: "letsencrypt-staging" spec: + ingressClassName: traefik rules: - host: precision5820 http: @@ -21,3 +24,7 @@ spec: name: odbdesign-server-swaggerui-service port: name: oss-svc-port + tls: + - hosts: + - precision5820 # your domain + secretName: letsencrypt-staging-tls From 9ca30a8ea92fa0f7b406ebe69b5c066d4d98ac1a Mon Sep 17 00:00:00 2001 From: Nathan Miller Date: Sat, 4 May 2024 17:38:39 -0700 Subject: [PATCH 073/168] add missing header #include's --- OdbDesignLib/App/OdbServerAppBase.cpp | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/OdbDesignLib/App/OdbServerAppBase.cpp b/OdbDesignLib/App/OdbServerAppBase.cpp index 6dd7c0d8..af9f6007 100644 --- a/OdbDesignLib/App/OdbServerAppBase.cpp +++ b/OdbDesignLib/App/OdbServerAppBase.cpp @@ -1,6 +1,14 @@ #include "OdbServerAppBase.h" #include "OdbServerAppBase.h" #include "Logger.h" +#include "RequestAuthenticationBase.h" +#include "crow_win.h" +#include +#include +#include "OdbAppBase.h" +#include +#include +#include using namespace Utils; using namespace std::filesystem; From 63ce37313e9462e71f259cb7dfc5f6bdab9d99fa Mon Sep 17 00:00:00 2001 From: Nathan Miller Date: Sat, 4 May 2024 17:40:15 -0700 Subject: [PATCH 074/168] formatting --- OdbDesignServer/OdbDesignServerApp.cpp | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/OdbDesignServer/OdbDesignServerApp.cpp b/OdbDesignServer/OdbDesignServerApp.cpp index f39240fd..b2cb008b 100644 --- a/OdbDesignServer/OdbDesignServerApp.cpp +++ b/OdbDesignServer/OdbDesignServerApp.cpp @@ -6,6 +6,7 @@ #include "Controllers/HealthCheckController.h" #include "Controllers/DesignsController.h" #include "macros.h" +#include using namespace Odb::Lib::App; @@ -50,16 +51,18 @@ namespace Odb::App::Server auto& cors = crow_app().get_middleware(); if (Utils::IsProduction()) { - cors.global().headers("*"); + cors.global() + .headers("*") + .origin("*"); //cors.global().methods(crow::HTTPMethod::Get, crow::HTTPMethod::Post); - cors.global().origin("*"); //cors.global().origin("73.157.184.219"); } else { - cors.global().headers("*"); + cors.global() + .headers("*") + .origin("*"); //cors.global().methods(crow::HTTPMethod::Get); - cors.global().origin("*"); //cors.global().origin("73.157.184.219"); } From 08f31dd8344f0b3f417d95c846fda9a40eb58b75 Mon Sep 17 00:00:00 2001 From: Nathan Miller Date: Sat, 4 May 2024 18:04:17 -0700 Subject: [PATCH 075/168] add header #include's --- OdbDesignLib/App/DesignCache.cpp | 4 ++++ OdbDesignLib/App/DesignCache.h | 2 ++ 2 files changed, 6 insertions(+) diff --git a/OdbDesignLib/App/DesignCache.cpp b/OdbDesignLib/App/DesignCache.cpp index cdcfc992..b722cd4a 100644 --- a/OdbDesignLib/App/DesignCache.cpp +++ b/OdbDesignLib/App/DesignCache.cpp @@ -4,6 +4,10 @@ #include #include #include +#include +#include "../FileModel/Design/FileArchive.h" +#include +#include "../ProductModel/Design.h" using namespace Utils; using namespace std::filesystem; diff --git a/OdbDesignLib/App/DesignCache.h b/OdbDesignLib/App/DesignCache.h index 52905fa9..4fda1d58 100644 --- a/OdbDesignLib/App/DesignCache.h +++ b/OdbDesignLib/App/DesignCache.h @@ -4,6 +4,8 @@ #include "../ProductModel/Design.h" #include "../odbdesign_export.h" #include "StringVector.h" +#include +#include namespace Odb::Lib::App From fdde7288b3dbb53ffc1bc9ec8839f725672958c2 Mon Sep 17 00:00:00 2001 From: Nathan Miller Date: Sat, 4 May 2024 18:05:01 -0700 Subject: [PATCH 076/168] remove commented code --- OdbDesignLib/App/DesignCache.cpp | 5 ----- OdbDesignLib/App/DesignCache.h | 4 +--- 2 files changed, 1 insertion(+), 8 deletions(-) diff --git a/OdbDesignLib/App/DesignCache.cpp b/OdbDesignLib/App/DesignCache.cpp index b722cd4a..a22ae73a 100644 --- a/OdbDesignLib/App/DesignCache.cpp +++ b/OdbDesignLib/App/DesignCache.cpp @@ -233,11 +233,6 @@ namespace Odb::Lib::App return m_directory; } - //bool DesignCache::isQueryValid(const std::string& query) const - //{ - // return false; - //} - void DesignCache::Clear() { m_fileArchivesByName.clear(); diff --git a/OdbDesignLib/App/DesignCache.h b/OdbDesignLib/App/DesignCache.h index 4fda1d58..3d564903 100644 --- a/OdbDesignLib/App/DesignCache.h +++ b/OdbDesignLib/App/DesignCache.h @@ -29,9 +29,7 @@ namespace Odb::Lib::App int loadDesigns(const Utils::StringVector& names); void setDirectory(const std::string& directory); - const std::string& getDirectory() const; - - //bool isQueryValid(const std::string& query) const; + const std::string& getDirectory() const; void Clear(); From 4bc3110b36e2bc17ed899709f6357de70acb6146 Mon Sep 17 00:00:00 2001 From: Nathan Miller Date: Sun, 5 May 2024 07:03:25 -0700 Subject: [PATCH 077/168] disable certmanager and letsencrypt TLS in ingress --- deploy/kube/local-ingress.yaml | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/deploy/kube/local-ingress.yaml b/deploy/kube/local-ingress.yaml index c96c800f..fe81fdd8 100644 --- a/deploy/kube/local-ingress.yaml +++ b/deploy/kube/local-ingress.yaml @@ -2,8 +2,8 @@ apiVersion: networking.k8s.io/v1 kind: Ingress metadata: name: odbdesign-server-ingress - annotations: - cert-manager.io/issuer: "letsencrypt-staging" + # annotations: + # cert-manager.io/issuer: "letsencrypt-staging" spec: ingressClassName: traefik rules: @@ -24,7 +24,7 @@ spec: name: odbdesign-server-swaggerui-service port: name: oss-svc-port - tls: - - hosts: - - precision5820 # your domain - secretName: letsencrypt-staging-tls + # tls: + # - hosts: + # - precision5820 # your domain + # secretName: letsencrypt-staging-tls From 44fc9211ff33c75e909487d8e576738c77d8b217 Mon Sep 17 00:00:00 2001 From: Nathan Miller Date: Sun, 5 May 2024 08:57:43 -0700 Subject: [PATCH 078/168] increase resource requests and limits --- deploy/kube/OdbDesignServer-SwaggerUI/deployment.yaml | 8 ++++---- deploy/kube/OdbDesignServer/deployment.yaml | 6 +++--- 2 files changed, 7 insertions(+), 7 deletions(-) diff --git a/deploy/kube/OdbDesignServer-SwaggerUI/deployment.yaml b/deploy/kube/OdbDesignServer-SwaggerUI/deployment.yaml index e2b70a41..b3076c44 100644 --- a/deploy/kube/OdbDesignServer-SwaggerUI/deployment.yaml +++ b/deploy/kube/OdbDesignServer-SwaggerUI/deployment.yaml @@ -29,9 +29,9 @@ spec: name: oss-dep-port resources: limits: - cpu: "1" - memory: 1Gi + cpu: "8" + memory: 10Gi requests: - cpu: 500m - memory: 500Mi + cpu: "2" + memory: 2Gi diff --git a/deploy/kube/OdbDesignServer/deployment.yaml b/deploy/kube/OdbDesignServer/deployment.yaml index 08a2c691..c9cce6a1 100644 --- a/deploy/kube/OdbDesignServer/deployment.yaml +++ b/deploy/kube/OdbDesignServer/deployment.yaml @@ -56,11 +56,11 @@ spec: key: ODBDESIGN_SERVER_REQUEST_PASSWORD resources: limits: + cpu: "8" + memory: 10Gi + requests: cpu: "2" memory: 2Gi - requests: - cpu: "1" - memory: 1Gi livenessProbe: httpGet: path: /healthz/live From e4d92b7779ac15bb9e6b75acaf2b5c29eeeeae3b Mon Sep 17 00:00:00 2001 From: Nathan Miller Date: Sun, 5 May 2024 08:58:09 -0700 Subject: [PATCH 079/168] add ArchiveExtractorTests file (no test cases yet) --- OdbDesignTests/ArchiveExtractorTests.cpp | 12 ++++++++++++ OdbDesignTests/CMakeLists.txt | 2 +- 2 files changed, 13 insertions(+), 1 deletion(-) create mode 100644 OdbDesignTests/ArchiveExtractorTests.cpp diff --git a/OdbDesignTests/ArchiveExtractorTests.cpp b/OdbDesignTests/ArchiveExtractorTests.cpp new file mode 100644 index 00000000..99aa1906 --- /dev/null +++ b/OdbDesignTests/ArchiveExtractorTests.cpp @@ -0,0 +1,12 @@ +#include +#include "Fixtures/FileArchiveLoadFixture.h" +#include "OdbDesign.h" + +//using namespace Odb::Lib::App; +using namespace Odb::Lib::FileModel; +using namespace Odb::Test::Fixtures; +using namespace std::filesystem; + +namespace Odb::Test +{ +} \ No newline at end of file diff --git a/OdbDesignTests/CMakeLists.txt b/OdbDesignTests/CMakeLists.txt index b68dc9e7..4ee8ae58 100644 --- a/OdbDesignTests/CMakeLists.txt +++ b/OdbDesignTests/CMakeLists.txt @@ -10,7 +10,7 @@ add_executable(OdbDesignTests "DesignCacheLoadTests.cpp" "Fixtures/DesignNameValueParamTest.h" "FileArchiveTests.cpp" - "DesignTests.cpp" "ProtobufSerializationTests.cpp") + "DesignTests.cpp" "ProtobufSerializationTests.cpp" "ArchiveExtractorTests.cpp") target_link_libraries(OdbDesignTests PRIVATE GTest::gtest_main GTest::gmock_main) From c04b9521fb3402fb1e52f3c1d2d308c88eaa4f78 Mon Sep 17 00:00:00 2001 From: Nathan Miller Date: Sun, 5 May 2024 08:59:09 -0700 Subject: [PATCH 080/168] refactor ArchiveExtractor to allow more flexibility for ExtractLzmaInProc and bExtractLzmaUsing7Zip options --- Utils/ArchiveExtractor.cpp | 115 ++++++++++++++++++++++--------------- Utils/ArchiveExtractor.h | 16 ++++-- 2 files changed, 80 insertions(+), 51 deletions(-) diff --git a/Utils/ArchiveExtractor.cpp b/Utils/ArchiveExtractor.cpp index 067decaf..24bed309 100644 --- a/Utils/ArchiveExtractor.cpp +++ b/Utils/ArchiveExtractor.cpp @@ -1,4 +1,5 @@ #include "ArchiveExtractor.h" +#include "ArchiveExtractor.h" #include #include "libarchive_extract.h" #include "Logger.h" @@ -7,17 +8,21 @@ #include "str_utils.h" #include #include +#include +#include "lzma.h" using namespace std::filesystem; namespace Utils { - ArchiveExtractor::ArchiveExtractor(const std::string& path) + ArchiveExtractor::ArchiveExtractor(const std::string& path, bool bExtractLzmaInProc /* = false*/, bool bExtractLzmaUsing7Zip /* = true*/) : m_path(path) + , m_bExtractLzmaInProc(bExtractLzmaInProc) + , m_bExtractLzmaUsing7Zip(bExtractLzmaUsing7Zip) { } - std::string ArchiveExtractor::GetPath() const + path ArchiveExtractor::GetPath() const { return m_path; } @@ -27,7 +32,7 @@ namespace Utils return m_extractionDirectory; } - bool ArchiveExtractor::IsArchiveTypeSupported(const std::filesystem::path& file) + bool ArchiveExtractor::IsArchiveTypeSupported(const path& file) { if (ALLOW_ALL_ARCHIVE_EXTENSION_TYPES) return true; @@ -45,73 +50,89 @@ namespace Utils bool ArchiveExtractor::IsArchiveTypeSupported(const std::string& file) { - return IsArchiveTypeSupported(std::filesystem::path(file)); + return IsArchiveTypeSupported(path(file)); } bool ArchiveExtractor::Extract() { - auto path = std::filesystem::path(m_path); //auto extractionPath = path.replace_extension().string(); - auto extractionPath = path.parent_path() / path.stem(); + auto extractionPath = m_path.parent_path() / m_path.stem(); return Extract(extractionPath.string()); } - bool ArchiveExtractor::Extract(const std::string& destinationPath) + bool Utils::ArchiveExtractor::ExtractLzmaInProc(const std::filesystem::path& destinationPath) { - path p(m_path); - if (p.extension() == ".Z" || p.extension() == ".z") - { - // https://documentation.help/7-Zip/extract_full.htm + return false; + } + + bool ArchiveExtractor::ExtractLzmaOutOfProc(const path& destinationPath) + { + // https://documentation.help/7-Zip/extract_full.htm - std::stringstream ss; - ss << "7z" - << " x " << '"' << m_path << '"' // extract w/ full paths and archive path - << " -o" << '"' << destinationPath << '"' // output path - << " -y" // yes to all prompts - << " -aoa"; // overwrite all + std::stringstream ss; + ss << "7z" + << " x " /*<< '"'*/ << m_path /*<< '"'*/ // extract w/ full paths and archive path + << " -o" /*<< '"'*/ << destinationPath /*<< '"'*/ // output path + << " -y" // yes to all prompts + << " -aoa"; // overwrite all - const auto silent = true; - if (silent) + const auto silent = true; + if (silent) + { + bool isWindows = true; + if (isWindows) { - bool isWindows = true; - if (isWindows) - { - ss << " >$null 2>&1"; - } - else - { - ss << " >nul 2>nul"; - } + ss << " >$null 2>&1"; } + else + { + ss << " >nul 2>nul"; + } + } - auto command = ss.str(); + auto command = ss.str(); - loginfo("running 7z command: [" + command + "]..."); + loginfo("running 7z command: [" + command + "]..."); - auto exitCode = std::system(command.c_str()); + auto exitCode = std::system(command.c_str()); #if defined(__linux__) || defined(__apple__) - exitCode = WEXITSTATUS(exitCode); + exitCode = WEXITSTATUS(exitCode); #endif - if (exitCode != (int) e7zExitCode::Success && - exitCode != (int) e7zExitCode::Warning) - { - auto message = "7z command failed (exit code = " + std::to_string(exitCode) + ")"; - logerror(message); - throw std::runtime_error(message.c_str()); - //return false; - } + if (exitCode != static_cast(e7zExitCode::Success) && + exitCode != static_cast(e7zExitCode::Warning)) + { + auto message = "7z command failed (exit code = " + std::to_string(exitCode) + ")"; + logerror(message); + throw std::runtime_error(message.c_str()); + //return false; + } - loginfo("7z command succeeded"); + loginfo("7z command succeeded"); - m_extractionDirectory = destinationPath; - return true; + m_extractionDirectory = destinationPath.string(); + return true; + } + + bool ArchiveExtractor::Extract(const std::string& destinationPath) + { + if (m_bExtractLzmaUsing7Zip && + std::find(LZMA_FILE_EXTENSIONS.begin(), LZMA_FILE_EXTENSIONS.end(), m_path.extension()) != LZMA_FILE_EXTENSIONS.end()) + { + if (m_bExtractLzmaInProc) + { + return ExtractLzmaInProc(destinationPath); + } + else + { + return ExtractLzmaOutOfProc(destinationPath); + } } - else if (extract(m_path.c_str(), destinationPath.c_str())) + else if (extract(m_path.string().c_str(), destinationPath.c_str())) { - //std::filesystem::path p(destinationPath); - //p /= std::filesystem::path(m_path).stem(); + //path p(destinationPath); + //p /= path(m_path).stem(); m_extractionDirectory = destinationPath; return true; } @@ -161,5 +182,5 @@ namespace Utils } return uncompressedPath; - } + } } \ No newline at end of file diff --git a/Utils/ArchiveExtractor.h b/Utils/ArchiveExtractor.h index 16a53ee1..f1c86a8a 100644 --- a/Utils/ArchiveExtractor.h +++ b/Utils/ArchiveExtractor.h @@ -3,6 +3,7 @@ #include #include #include "utils_export.h" +#include namespace Utils @@ -21,10 +22,10 @@ namespace Utils UserStopped = 255 }; - ArchiveExtractor(const std::string& path); + ArchiveExtractor(const std::string& path, bool bExtractLzmaInProc = false, bool bExtractLzmaUsing7Zip = true); //~ArchiveExtractor(); - std::string GetPath() const; + std::filesystem::path GetPath() const; std::string GetExtractionDirectory() const; static bool IsArchiveTypeSupported(const std::filesystem::path& file); @@ -35,12 +36,19 @@ namespace Utils static std::filesystem::path getUncompressedFilePath(const std::filesystem::path& directory, const std::string& filename); - inline static bool ALLOW_ALL_ARCHIVE_EXTENSION_TYPES = false; + constexpr static inline bool ALLOW_ALL_ARCHIVE_EXTENSION_TYPES = false; constexpr static inline const char* SupportedExtensions[] = { "tgz", "tar.gz", "gz", "zip", "Z", "gzip", "tar" }; private: - std::string m_path; + std::filesystem::path m_path; std::string m_extractionDirectory; + bool m_bExtractLzmaInProc = false; + bool m_bExtractLzmaUsing7Zip = true; + + bool ExtractLzmaOutOfProc(const std::filesystem::path& destinationPath); + bool ExtractLzmaInProc(const std::filesystem::path& destinationPath); + + static inline const std::vector LZMA_FILE_EXTENSIONS = { ".Z", ".z", ".lzma", ".lz" }; }; } From 7de8a8c7a43392e597d27ba8570c6666cffae9ca Mon Sep 17 00:00:00 2001 From: Nathan Miller Date: Sun, 5 May 2024 09:20:48 -0700 Subject: [PATCH 081/168] add macros.h to cmake --- Utils/CMakeLists.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Utils/CMakeLists.txt b/Utils/CMakeLists.txt index 452121ea..2f892b85 100644 --- a/Utils/CMakeLists.txt +++ b/Utils/CMakeLists.txt @@ -1,7 +1,7 @@ # CMakeList.txt : CMake project for OdbDesignServer # -add_library(Utils SHARED "utils_export.h" "ExitCode.h" "ThreadSafeQueue.h" "WorkQueueLoopThread.h" "Logger.h" "Logger.cpp" "CommandLineArgs.h" "CommandLineArgs.cpp" "bin2ascii.h" "ArchiveExtractor.cpp" "ArchiveExtractor.h" "libarchive_extract.cpp" "libarchive_extract.h" "str_utils.cpp" "str_utils.h" "IJsonable.h" "IJsonable.cpp" "CrowReturnable.h" "JsonCrowReturnable.h" "timestamp.h" "timestamp.cpp" "StopWatch.h" "StopWatch.cpp" "UrlEncoding.h" "UrlEncoding.cpp" "StringVector.h" "equals_within.h" "equals_within.cpp" "crow_win.h" "fastmove.h" "fastmove.cpp" "FileReader.h" "FileReader.cpp" "EnumMap.h" "EnumMap.cpp" "CrossPlatform.h" "CrossPlatform.cpp") +add_library(Utils SHARED "utils_export.h" "ExitCode.h" "ThreadSafeQueue.h" "WorkQueueLoopThread.h" "Logger.h" "Logger.cpp" "CommandLineArgs.h" "CommandLineArgs.cpp" "bin2ascii.h" "ArchiveExtractor.cpp" "ArchiveExtractor.h" "libarchive_extract.cpp" "libarchive_extract.h" "str_utils.cpp" "str_utils.h" "IJsonable.h" "IJsonable.cpp" "CrowReturnable.h" "JsonCrowReturnable.h" "timestamp.h" "timestamp.cpp" "StopWatch.h" "StopWatch.cpp" "UrlEncoding.h" "UrlEncoding.cpp" "StringVector.h" "equals_within.h" "equals_within.cpp" "crow_win.h" "fastmove.h" "fastmove.cpp" "FileReader.h" "FileReader.cpp" "EnumMap.h" "EnumMap.cpp" "CrossPlatform.h" "CrossPlatform.cpp" "macros.h") # state that anybody linking to us needs to include the current source dir, # while we don't. From 1df024c93919840bfdb9d770988f44540f094c49 Mon Sep 17 00:00:00 2001 From: Nathan Miller Date: Sun, 5 May 2024 09:23:09 -0700 Subject: [PATCH 082/168] add header #include --- OdbDesignLib/App/BasicRequestAuthentication.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/OdbDesignLib/App/BasicRequestAuthentication.cpp b/OdbDesignLib/App/BasicRequestAuthentication.cpp index c5668687..144dbf2d 100644 --- a/OdbDesignLib/App/BasicRequestAuthentication.cpp +++ b/OdbDesignLib/App/BasicRequestAuthentication.cpp @@ -2,6 +2,7 @@ #include #include "macros.h" #include +#include "RequestAuthenticationBase.h" using namespace Utils; From a828e3a5cfaf1217dde06826e5dbe5e67b67fb27 Mon Sep 17 00:00:00 2001 From: Nathan Miller Date: Sun, 5 May 2024 11:17:37 -0700 Subject: [PATCH 083/168] make localtime_safe thread safe on non-windows platforms by introducing a lock before calling localtime_r --- Utils/CrossPlatform.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/Utils/CrossPlatform.cpp b/Utils/CrossPlatform.cpp index d9164c87..547a2fd3 100644 --- a/Utils/CrossPlatform.cpp +++ b/Utils/CrossPlatform.cpp @@ -5,9 +5,12 @@ #include #include #include +#include namespace Utils { + std::mutex localtimeMutex; + bool CrossPlatform::localtime_safe(const std::time_t* time, struct std::tm& tmOut) { #if (IS_WINDOWS) @@ -16,6 +19,7 @@ namespace Utils } #elif (IS_LINUX || IS_APPLE) { + std::lock_guard lock(localtimeMutex); if (nullptr != localtime_r(time, &tmOut)) { return true; From e60b054db9834661a41fa1199e54be9e5cdb533e Mon Sep 17 00:00:00 2001 From: Nathan Miller Date: Sun, 5 May 2024 11:18:10 -0700 Subject: [PATCH 084/168] remove unsused header #include's --- OdbDesignLib/App/BasicRequestAuthentication.cpp | 1 - OdbDesignLib/App/DesignCache.cpp | 1 - OdbDesignServer/OdbDesignServerApp.cpp | 1 - OdbDesignTests/ArchiveExtractorTests.cpp | 3 +-- Utils/ArchiveExtractor.cpp | 3 --- 5 files changed, 1 insertion(+), 8 deletions(-) diff --git a/OdbDesignLib/App/BasicRequestAuthentication.cpp b/OdbDesignLib/App/BasicRequestAuthentication.cpp index 144dbf2d..148bcd5d 100644 --- a/OdbDesignLib/App/BasicRequestAuthentication.cpp +++ b/OdbDesignLib/App/BasicRequestAuthentication.cpp @@ -1,6 +1,5 @@ #include "BasicRequestAuthentication.h" #include -#include "macros.h" #include #include "RequestAuthenticationBase.h" diff --git a/OdbDesignLib/App/DesignCache.cpp b/OdbDesignLib/App/DesignCache.cpp index a22ae73a..fa0431f8 100644 --- a/OdbDesignLib/App/DesignCache.cpp +++ b/OdbDesignLib/App/DesignCache.cpp @@ -3,7 +3,6 @@ #include "Logger.h" #include #include -#include #include #include "../FileModel/Design/FileArchive.h" #include diff --git a/OdbDesignServer/OdbDesignServerApp.cpp b/OdbDesignServer/OdbDesignServerApp.cpp index b2cb008b..dc472683 100644 --- a/OdbDesignServer/OdbDesignServerApp.cpp +++ b/OdbDesignServer/OdbDesignServerApp.cpp @@ -1,5 +1,4 @@ #include "OdbDesignServerApp.h" -#include "OdbDesign.h" #include "Controllers/HelloWorldController.h" #include "Controllers/FileUploadController.h" #include "Controllers/FileModelController.h" diff --git a/OdbDesignTests/ArchiveExtractorTests.cpp b/OdbDesignTests/ArchiveExtractorTests.cpp index 99aa1906..763b85c2 100644 --- a/OdbDesignTests/ArchiveExtractorTests.cpp +++ b/OdbDesignTests/ArchiveExtractorTests.cpp @@ -1,6 +1,5 @@ #include -#include "Fixtures/FileArchiveLoadFixture.h" -#include "OdbDesign.h" +#include "Fixtures/TestDataFixture.h" //using namespace Odb::Lib::App; using namespace Odb::Lib::FileModel; diff --git a/Utils/ArchiveExtractor.cpp b/Utils/ArchiveExtractor.cpp index 64370b34..71e31bb1 100644 --- a/Utils/ArchiveExtractor.cpp +++ b/Utils/ArchiveExtractor.cpp @@ -3,13 +3,10 @@ #include #include "libarchive_extract.h" #include "Logger.h" -#include -#include "macros.h" #include "str_utils.h" #include #include #include -#include "lzma.h" using namespace std::filesystem; From d4ddeed9d64870d558728eee1dc0fdcf2485011f Mon Sep 17 00:00:00 2001 From: Nathan Miller Date: Sun, 5 May 2024 11:48:12 -0700 Subject: [PATCH 085/168] fix warnings --- OdbDesignLib/App/BasicRequestAuthentication.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/OdbDesignLib/App/BasicRequestAuthentication.cpp b/OdbDesignLib/App/BasicRequestAuthentication.cpp index 148bcd5d..7191b6c1 100644 --- a/OdbDesignLib/App/BasicRequestAuthentication.cpp +++ b/OdbDesignLib/App/BasicRequestAuthentication.cpp @@ -40,15 +40,15 @@ namespace Odb::Lib::App crow::response BasicRequestAuthentication::VerifyCredentials(const std::string& username, const std::string& password) { // 500 - Internal Server Error - auto validUsername = std::getenv(USERNAME_ENV_NAME); - if (validUsername == nullptr) //return crow::response(500, "Failed retrieving credentials"); + std::string validUsername = std::getenv(USERNAME_ENV_NAME); + if (validUsername.empty()) //return crow::response(500, "Failed retrieving credentials"); { // default username if none supplied in environment validUsername = "odb"; } - auto validPassword = std::getenv(PASSWORD_ENV_NAME); - if (validPassword == nullptr) //return crow::response(500, "Failed retrieving credentials"); + std::string validPassword = std::getenv(PASSWORD_ENV_NAME); + if (validPassword.empty()) //return crow::response(500, "Failed retrieving credentials"); { // default password if none supplied in environment validPassword = "plusplus"; From 80a7ea25ec39f26c31fbca47c3d5db03c2c10caf Mon Sep 17 00:00:00 2001 From: Nathan Miller Date: Sun, 5 May 2024 11:48:26 -0700 Subject: [PATCH 086/168] add missing header #includes --- OdbDesignServer/Controllers/DesignsController.cpp | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/OdbDesignServer/Controllers/DesignsController.cpp b/OdbDesignServer/Controllers/DesignsController.cpp index 44533b64..cc9157f0 100644 --- a/OdbDesignServer/Controllers/DesignsController.cpp +++ b/OdbDesignServer/Controllers/DesignsController.cpp @@ -1,6 +1,11 @@ #include "DesignsController.h" #include #include "UrlEncoding.h" +#include "App/IOdbServerApp.h" +#include "App/RouteController.h" +#include +#include + using namespace Odb::Lib::App; using namespace Utils; @@ -158,6 +163,7 @@ namespace Odb::App::Server return crow::response(crow::status::BAD_REQUEST, "design name not specified"); } + // TODO: use excludeFileArchive bool excludeFileArchive = false; auto szExcludeFileArchive = req.url_params.get(kszExcludeFileArchiveQueryParamName); if (szExcludeFileArchive != nullptr) From 9d6ba777733e3c99083f57ee270993d1ad864fbc Mon Sep 17 00:00:00 2001 From: Nathan Miller Date: Sun, 5 May 2024 11:48:50 -0700 Subject: [PATCH 087/168] use correct L_tmpnam on non-windows --- Utils/CrossPlatform.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/Utils/CrossPlatform.cpp b/Utils/CrossPlatform.cpp index 547a2fd3..866b478d 100644 --- a/Utils/CrossPlatform.cpp +++ b/Utils/CrossPlatform.cpp @@ -6,6 +6,8 @@ #include #include #include +#include +#include namespace Utils { @@ -74,7 +76,7 @@ namespace Utils #elif (IS_LINUX || IS_APPLE) { // mkstemp - char szTempName[L_tmpnam_s]{ 0 }; + char szTempName[L_tmpnam]{ 0 }; if (nullptr != std::tmpnam(szTempName)) { tempNameOut = szTempName; From 845e80364eb216289667ced2689c62946a0d5a38 Mon Sep 17 00:00:00 2001 From: Nathan Miller Date: Sun, 5 May 2024 12:05:53 -0700 Subject: [PATCH 088/168] include stdlib.h instead of malloc.h for free() --- Utils/CrossPlatform.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Utils/CrossPlatform.cpp b/Utils/CrossPlatform.cpp index 866b478d..6b469fed 100644 --- a/Utils/CrossPlatform.cpp +++ b/Utils/CrossPlatform.cpp @@ -2,7 +2,7 @@ #include "macros.h" #include #include -#include +#include #include #include #include From 0a5aaadcaf2622588295bce30aed37b7ec5c6d37 Mon Sep 17 00:00:00 2001 From: Nathan Miller Date: Sun, 5 May 2024 12:06:02 -0700 Subject: [PATCH 089/168] fix test case --- OdbDesignTests/CrossPlatformTests.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/OdbDesignTests/CrossPlatformTests.cpp b/OdbDesignTests/CrossPlatformTests.cpp index 71efc72c..35246145 100644 --- a/OdbDesignTests/CrossPlatformTests.cpp +++ b/OdbDesignTests/CrossPlatformTests.cpp @@ -1,6 +1,9 @@ #include #include "CrossPlatform.h" #include +#include "Fixtures/TestDataFixture.h" +#include +#include using namespace std::filesystem; using namespace Odb::Test::Fixtures; @@ -15,7 +18,7 @@ namespace Odb::Test ASSERT_EQ(value.size(), 0U); ASSERT_TRUE(CrossPlatform::getenv_safe(ODB_TEST_DATA_DIR_ENV_NAME, value)); ASSERT_STRNE(value.c_str(), ""); - ASSERT_STREQ(value.c_str(), m_testDataDir.string().c_str()); + ASSERT_STREQ(path(value).c_str(), m_testDataDir.c_str()); } TEST_F(TestDataFixture, Test_CrossPlatform_GetEnvSafe_VariableDoesntExist) From b211e3219656d60e343bfd731a93584a0f225657 Mon Sep 17 00:00:00 2001 From: Nathan Miller Date: Mon, 6 May 2024 07:36:01 -0700 Subject: [PATCH 090/168] make member field private and use getTestDataDir() instead of member field directly --- OdbDesignTests/Fixtures/FileArchiveLoadFixture.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/OdbDesignTests/Fixtures/FileArchiveLoadFixture.cpp b/OdbDesignTests/Fixtures/FileArchiveLoadFixture.cpp index bfc9df0b..c79a5969 100644 --- a/OdbDesignTests/Fixtures/FileArchiveLoadFixture.cpp +++ b/OdbDesignTests/Fixtures/FileArchiveLoadFixture.cpp @@ -23,7 +23,7 @@ namespace Odb::Test::Fixtures { TestDataFixture::SetUp(); - m_pDesignCache = std::unique_ptr(new DesignCache(m_testDataDir.string())); + m_pDesignCache = std::unique_ptr(new DesignCache(getTestDataDir().string())); ASSERT_NE(m_pDesignCache, nullptr); } @@ -31,10 +31,10 @@ namespace Odb::Test::Fixtures { if (m_removeDecompressedDirectories) { - if (exists(m_testDataDir)) + if (exists(getTestDataDir())) { // delete uncompressed directories - for (const auto& entry : directory_iterator(m_testDataDir)) + for (const auto& entry : directory_iterator(getTestDataDir())) { if (is_directory(entry)) { From 38a49982527e6f80b9d79caeae9da0d3a0de696d Mon Sep 17 00:00:00 2001 From: Nathan Miller Date: Mon, 6 May 2024 07:48:46 -0700 Subject: [PATCH 091/168] add test case --- OdbDesignTests/TestTests.cpp | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/OdbDesignTests/TestTests.cpp b/OdbDesignTests/TestTests.cpp index df63ac06..90a12469 100644 --- a/OdbDesignTests/TestTests.cpp +++ b/OdbDesignTests/TestTests.cpp @@ -43,4 +43,10 @@ namespace Odb::Test ASSERT_TRUE(exists(getDesignPath("sample_design.tgz"))); ASSERT_TRUE(exists(getDesignPath("designodb_rigidflex.tgz"))); } + + TEST_F(TestDataFixture, TestDataFilesDirDirectoryExists) + { + ASSERT_FALSE(getTestDataFilesDir().empty()); + EXPECT_TRUE(exists(getTestDataFilesDir())); + } } From 0620edb666c2173f574b3c8985941ea8711f0b81 Mon Sep 17 00:00:00 2001 From: Nathan Miller Date: Mon, 6 May 2024 07:49:18 -0700 Subject: [PATCH 092/168] fix env var exists test case to not have to rely on path semantics --- OdbDesignTests/CrossPlatformTests.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/OdbDesignTests/CrossPlatformTests.cpp b/OdbDesignTests/CrossPlatformTests.cpp index 35246145..23caf560 100644 --- a/OdbDesignTests/CrossPlatformTests.cpp +++ b/OdbDesignTests/CrossPlatformTests.cpp @@ -16,16 +16,16 @@ namespace Odb::Test { std::string value; ASSERT_EQ(value.size(), 0U); - ASSERT_TRUE(CrossPlatform::getenv_safe(ODB_TEST_DATA_DIR_ENV_NAME, value)); + ASSERT_TRUE(CrossPlatform::getenv_safe(ODB_TEST_ENV_NAME, value)); ASSERT_STRNE(value.c_str(), ""); - ASSERT_STREQ(path(value).c_str(), m_testDataDir.c_str()); + ASSERT_STREQ(value.c_str(), ODB_TEST_ENV_VALUE); } TEST_F(TestDataFixture, Test_CrossPlatform_GetEnvSafe_VariableDoesntExist) { std::string value; ASSERT_EQ(value.size(), 0U); - ASSERT_FALSE(CrossPlatform::getenv_safe("FEARISTHEMINDKILLER", value)); + ASSERT_FALSE(CrossPlatform::getenv_safe(ODB_TEST_NONEXISTENT_ENV_NAME, value)); ASSERT_STREQ(value.c_str(), ""); } From 1eee8a2208acaccdb235bf76e1e29219bb1d1881 Mon Sep 17 00:00:00 2001 From: Nathan Miller Date: Mon, 6 May 2024 07:49:38 -0700 Subject: [PATCH 093/168] make m_testDataDir private --- OdbDesignTests/Fixtures/TestDataFixture.h | 15 ++++++++++----- 1 file changed, 10 insertions(+), 5 deletions(-) diff --git a/OdbDesignTests/Fixtures/TestDataFixture.h b/OdbDesignTests/Fixtures/TestDataFixture.h index 74457b52..5457f56e 100644 --- a/OdbDesignTests/Fixtures/TestDataFixture.h +++ b/OdbDesignTests/Fixtures/TestDataFixture.h @@ -12,10 +12,6 @@ namespace Odb::Test::Fixtures TestDataFixture(); protected: - std::filesystem::path m_testDataDir; - - const bool m_removeDecompressedDirectories = true; - virtual void SetUp() override; virtual void TearDown() override; @@ -24,9 +20,18 @@ namespace Odb::Test::Fixtures std::filesystem::path getTestDataFilePath(const std::string& filename) const; static inline constexpr const char ODB_TEST_DATA_DIR_ENV_NAME[] = "ODB_TEST_DATA_DIR"; - static inline constexpr const char TESTDATA_FILES_DIR[] = "FILES"; + static inline constexpr const char TESTDATA_FILES_DIR[] = "FILES"; + static inline constexpr const char ODB_TEST_ENV_NAME[] = "ODB_TEST_ENVIRONMENT_VARIABLE"; + static inline constexpr const char ODB_TEST_ENV_VALUE[] = "ODB_TEST_ENVIRONMENT_VARIABLE EXISTS"; + static inline constexpr const char ODB_TEST_NONEXISTENT_ENV_NAME[] = "THIS_ENVIRONEMNT_VARIABLE_DOES_NOT_EXIST"; + static inline constexpr bool ENABLE_TEST_LOGGING = false; + private: + std::filesystem::path m_testDataDir; + + const bool m_removeDecompressedDirectories = true; + }; } From f829b78dcad973c425d6fd14adce2c35b36621c3 Mon Sep 17 00:00:00 2001 From: Nathan Miller Date: Mon, 6 May 2024 07:49:58 -0700 Subject: [PATCH 094/168] remove newline and carriage returns from expected file contents --- OdbDesignTests/FileReaderTests.cpp | 18 +++++++++++++----- 1 file changed, 13 insertions(+), 5 deletions(-) diff --git a/OdbDesignTests/FileReaderTests.cpp b/OdbDesignTests/FileReaderTests.cpp index a1ae6d23..ddc60e0c 100644 --- a/OdbDesignTests/FileReaderTests.cpp +++ b/OdbDesignTests/FileReaderTests.cpp @@ -10,12 +10,20 @@ using namespace Utils; namespace Odb::Test { - static inline constexpr char FILE_CONTENTS[] = "Hello, World!\r\n"; + static inline constexpr char FILE_CONTENTS[] = "Hello, World!"; + static inline constexpr char FILE_NAME[] = "filereader_test1.txt"; - TEST_F(TestDataFixture, Test_FileReaderRead_Buffered) + TEST_F(TestDataFixture, Test_FileReaderRead_FileExists) { - auto filePath = getTestDataFilePath("filereader_test1.txt"); + auto filePath = getTestDataFilePath(FILE_NAME); + ASSERT_FALSE(filePath.empty()); + ASSERT_TRUE(exists(filePath)); + } + TEST_F(TestDataFixture, Test_FileReaderRead_Buffered) + { + auto filePath = getTestDataFilePath(FILE_NAME); + ASSERT_FALSE(filePath.empty()); ASSERT_TRUE(exists(filePath)); FileReader fr(filePath); @@ -31,8 +39,8 @@ namespace Odb::Test TEST_F(TestDataFixture, Test_FileReaderRead_Unbuffered) { - auto filePath = getTestDataFilePath("filereader_test1.txt"); - + auto filePath = getTestDataFilePath(FILE_NAME); + ASSERT_FALSE(filePath.empty()); ASSERT_TRUE(exists(filePath)); FileReader fr(filePath); From 5bdff401073d35b1cbeb5f2bbef3e9e5b0cdef54 Mon Sep 17 00:00:00 2001 From: Nathan Miller Date: Mon, 6 May 2024 08:46:20 -0700 Subject: [PATCH 095/168] fix warning --- OdbDesignLib/FileModel/Design/FileArchive.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/OdbDesignLib/FileModel/Design/FileArchive.cpp b/OdbDesignLib/FileModel/Design/FileArchive.cpp index 19297900..0e6dfe2c 100644 --- a/OdbDesignLib/FileModel/Design/FileArchive.cpp +++ b/OdbDesignLib/FileModel/Design/FileArchive.cpp @@ -116,7 +116,7 @@ namespace Odb::Lib::FileModel::Design // move archive to directory char szTmpNameBuff[L_tmpnam] = { 0 }; - std::tmpnam(szTmpNameBuff); + if (nullptr == std::tmpnam(szTmpNameBuff)) return false; auto tempPath = temp_directory_path() / szTmpNameBuff; if (!create_directory(tempPath)) return false; From 4b17924d7d90ad56582a03af976bcf1777917324 Mon Sep 17 00:00:00 2001 From: Nathan Miller Date: Mon, 6 May 2024 13:41:05 -0700 Subject: [PATCH 096/168] remove weird newlines --- OdbDesignTests/ArchiveTests.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/OdbDesignTests/ArchiveTests.cpp b/OdbDesignTests/ArchiveTests.cpp index 2018c988..a3b045c4 100644 --- a/OdbDesignTests/ArchiveTests.cpp +++ b/OdbDesignTests/ArchiveTests.cpp @@ -3,6 +3,7 @@ #include "Fixtures/TestDataFixture.h" #include "libarchive_extract.h" #include "ArchiveExtractor.h" +#include using namespace std::filesystem; using namespace Odb::Test::Fixtures; @@ -11,7 +12,7 @@ using namespace Utils; namespace Odb::Test { - static inline constexpr char FILE_CONTENTS[] = "Hello, World!\n\n"; + static inline constexpr char FILE_CONTENTS[] = "Hello, World!"; TEST_F(TestDataFixture, Test_LibArchive_CompressDir) { From 2bfb57cae0c3824a8b2a2599c94dc792c56d0a27 Mon Sep 17 00:00:00 2001 From: Nathan Miller Date: Mon, 6 May 2024 13:41:33 -0700 Subject: [PATCH 097/168] remove namespaces from identifier usages --- OdbDesignTests/FileArchiveTests.cpp | 17 +++++++++-------- 1 file changed, 9 insertions(+), 8 deletions(-) diff --git a/OdbDesignTests/FileArchiveTests.cpp b/OdbDesignTests/FileArchiveTests.cpp index b0cb7fc5..12a63b54 100644 --- a/OdbDesignTests/FileArchiveTests.cpp +++ b/OdbDesignTests/FileArchiveTests.cpp @@ -1,6 +1,7 @@ #include #include "Fixtures/FileArchiveLoadFixture.h" -#include "OdbDesign.h" +#include +#include //using namespace Odb::Lib::App; using namespace Odb::Lib::FileModel; @@ -12,7 +13,7 @@ namespace Odb::Test { auto rigidFlexDesignPath = getDesignPath("designodb_rigidflex.tgz"); - Odb::Lib::FileModel::Design::FileArchive rigidFlexOdbDesign(rigidFlexDesignPath.string()); + Design::FileArchive rigidFlexOdbDesign(rigidFlexDesignPath.string()); auto success = rigidFlexOdbDesign.ParseFileModel(); ASSERT_TRUE(success); @@ -34,10 +35,10 @@ namespace Odb::Test auto& pSubnetRecord = pNetRecord->m_subnetRecords[44]; auto subnetType = pSubnetRecord->type; - ASSERT_EQ(subnetType, Odb::Lib::FileModel::Design::EdaDataFile::NetRecord::SubnetRecord::Type::Toeprint); + ASSERT_EQ(subnetType, Design::EdaDataFile::NetRecord::SubnetRecord::Type::Toeprint); //auto pToeprintSubnetRecord = pSubnetRecord; //auto viaType = pToeprintSubnetRecord->type; - //if (viaType == Odb::Lib::FileModel::Design::EdaDataFile::NetRecord::ToeprintSubnetRecord::Type::Via) + //if (viaType == Design::EdaDataFile::NetRecord::ToeprintSubnetRecord::Type::Via) //{ //} @@ -51,7 +52,7 @@ namespace Odb::Test auto& layersByName = pStep->GetLayersByName(); ASSERT_GT(layersByName.size(), 0); - auto layerFind = layersByName.find(Odb::Lib::FileModel::Design::ComponentsFile::TOP_COMPONENTS_LAYER_NAME); + auto layerFind = layersByName.find(Design::ComponentsFile::TOP_COMPONENTS_LAYER_NAME); ASSERT_NE(layerFind, layersByName.end()); auto& pLayer = layerFind->second; ASSERT_NE(pLayer, nullptr); @@ -85,7 +86,7 @@ namespace Odb::Test { auto rigidFlexDesignPath = getDesignPath("sample_design.tgz"); - Odb::Lib::FileModel::Design::FileArchive rigidFlexOdbDesign(rigidFlexDesignPath.string()); + Design::FileArchive rigidFlexOdbDesign(rigidFlexDesignPath.string()); auto success = rigidFlexOdbDesign.ParseFileModel(); ASSERT_TRUE(success); @@ -107,7 +108,7 @@ namespace Odb::Test auto& pSubnetRecord = pNetRecord->m_subnetRecords[44]; auto subnetType = pSubnetRecord->type; - ASSERT_EQ(subnetType, Odb::Lib::FileModel::Design::EdaDataFile::NetRecord::SubnetRecord::Type::Trace); + ASSERT_EQ(subnetType, Design::EdaDataFile::NetRecord::SubnetRecord::Type::Trace); //auto pToeprintSubnetRecord = pSubnetRecord; //auto viaType = pToeprintSubnetRecord->type; //if (viaType == Odb::Lib::FileModel::Design::EdaDataFile::NetRecord::ToeprintSubnetRecord::Type::Via) @@ -124,7 +125,7 @@ namespace Odb::Test auto& layersByName = pStep->GetLayersByName(); ASSERT_GT(layersByName.size(), 0); - auto layerFind = layersByName.find(Odb::Lib::FileModel::Design::ComponentsFile::TOP_COMPONENTS_LAYER_NAME); + auto layerFind = layersByName.find(Design::ComponentsFile::TOP_COMPONENTS_LAYER_NAME); ASSERT_NE(layerFind, layersByName.end()); auto& pLayer = layerFind->second; ASSERT_NE(pLayer, nullptr); From d7334237a9c981552f1487e3ea5da98b944e0d91 Mon Sep 17 00:00:00 2001 From: Nathan Miller Date: Tue, 7 May 2024 06:31:55 -0700 Subject: [PATCH 098/168] remove use of full namespace when referring to identifiers --- OdbDesignLib/FileModel/Design/FileArchive.cpp | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/OdbDesignLib/FileModel/Design/FileArchive.cpp b/OdbDesignLib/FileModel/Design/FileArchive.cpp index 0e6dfe2c..fc758a1c 100644 --- a/OdbDesignLib/FileModel/Design/FileArchive.cpp +++ b/OdbDesignLib/FileModel/Design/FileArchive.cpp @@ -7,6 +7,7 @@ #include "fastmove.h" #include #include +#include using namespace Utils; using namespace std::filesystem; @@ -245,11 +246,12 @@ namespace Odb::Lib::FileModel::Design return true; } - std::unique_ptr FileArchive::to_protobuf() const + std::unique_ptr FileArchive::to_protobuf() const { - std::unique_ptr pFileArchiveMessage(new Odb::Lib::Protobuf::FileArchive); + std::unique_ptr pFileArchiveMessage(new Protobuf::FileArchive); pFileArchiveMessage->set_productname(m_productName); pFileArchiveMessage->set_filename(m_filename); + //pFileArchiveMessage->set_filepath(m_filePath); pFileArchiveMessage->mutable_matrixfile()->CopyFrom(*m_matrixFile.to_protobuf()); pFileArchiveMessage->mutable_miscinfofile()->CopyFrom(*m_miscInfoFile.to_protobuf()); pFileArchiveMessage->mutable_standardfontsfile()->CopyFrom(*m_standardFontsFile.to_protobuf()); @@ -268,10 +270,11 @@ namespace Odb::Lib::FileModel::Design return pFileArchiveMessage; } - void FileArchive::from_protobuf(const Odb::Lib::Protobuf::FileArchive& message) + void FileArchive::from_protobuf(const Protobuf::FileArchive& message) { m_productName = message.productname(); m_filename = message.filename(); + //m_filePath = message.filepath(); m_matrixFile.from_protobuf(message.matrixfile()); m_miscInfoFile.from_protobuf(message.miscinfofile()); m_standardFontsFile.from_protobuf(message.standardfontsfile()); From 64ae3865c78d453efb4f98dabc94b8973dfcd104 Mon Sep 17 00:00:00 2001 From: Nathan Miller Date: Tue, 7 May 2024 06:34:11 -0700 Subject: [PATCH 099/168] remove unused file --- OdbDesignLib/CMakeLists.txt | 4 ++-- OdbDesignLib/FileModel/OdbFileRecord.cpp | 6 ------ OdbDesignLib/FileModel/OdbFileRecord.h | 8 -------- 3 files changed, 2 insertions(+), 16 deletions(-) delete mode 100644 OdbDesignLib/FileModel/OdbFileRecord.cpp delete mode 100644 OdbDesignLib/FileModel/OdbFileRecord.h diff --git a/OdbDesignLib/CMakeLists.txt b/OdbDesignLib/CMakeLists.txt index fdc539eb..497ed8d4 100644 --- a/OdbDesignLib/CMakeLists.txt +++ b/OdbDesignLib/CMakeLists.txt @@ -2,7 +2,7 @@ # add_library(OdbDesign SHARED - "odbdesign_export.h" "FileModel/Design/ComponentsFile.cpp" "FileModel/Design/ComponentsFile.h" "FileModel/Design/EdaDataFile.cpp" "FileModel/Design/EdaDataFile.h" "FileModel/Design/LayerDirectory.cpp" "FileModel/Design/LayerDirectory.h" "FileModel/Design/NetlistFile.cpp" "FileModel/Design/NetlistFile.h" "FileModel/Design/FileArchive.cpp" "FileModel/Design/FileArchive.h" "FileModel/Design/StepDirectory.cpp" "FileModel/Design/StepDirectory.h" "ProductModel/Net.h" "ProductModel/Net.cpp" "ProductModel/Component.h" "ProductModel/Component.cpp" "ProductModel/Pin.h" "ProductModel/Pin.cpp" "ProductModel/PinConnection.h" "ProductModel/PinConnection.cpp" "ProductModel/Package.h" "ProductModel/Package.cpp" "ProductModel/Part.h" "ProductModel/Part.cpp" "ProductModel/Via.h" "ProductModel/Via.cpp" "ProductModel/Design.h" "ProductModel/Design.cpp" "OdbDesign.h" "App/DesignCache.h" "App/DesignCache.cpp" "../Utils/win.h" "IProtoBuffable.h" "../Utils/crow_win.h" "FileModel/OdbFile.h" "FileModel/OdbFile.cpp" "FileModel/OdbFileRecord.h" "FileModel/OdbFileRecord.cpp" "App/IOdbApp.h" "App/IOdbApp.cpp" "App/OdbAppBase.h" "App/OdbAppBase.cpp" "App/RouteController.h" "App/RouteController.cpp" "App/IOdbServerApp.h" "App/OdbServerAppBase.h" "App/OdbServerAppBase.cpp" "App/IOdbServerApp.cpp" + "odbdesign_export.h" "FileModel/Design/ComponentsFile.cpp" "FileModel/Design/ComponentsFile.h" "FileModel/Design/EdaDataFile.cpp" "FileModel/Design/EdaDataFile.h" "FileModel/Design/LayerDirectory.cpp" "FileModel/Design/LayerDirectory.h" "FileModel/Design/NetlistFile.cpp" "FileModel/Design/NetlistFile.h" "FileModel/Design/FileArchive.cpp" "FileModel/Design/FileArchive.h" "FileModel/Design/StepDirectory.cpp" "FileModel/Design/StepDirectory.h" "ProductModel/Net.h" "ProductModel/Net.cpp" "ProductModel/Component.h" "ProductModel/Component.cpp" "ProductModel/Pin.h" "ProductModel/Pin.cpp" "ProductModel/PinConnection.h" "ProductModel/PinConnection.cpp" "ProductModel/Package.h" "ProductModel/Package.cpp" "ProductModel/Part.h" "ProductModel/Part.cpp" "ProductModel/Via.h" "ProductModel/Via.cpp" "ProductModel/Design.h" "ProductModel/Design.cpp" "OdbDesign.h" "App/DesignCache.h" "App/DesignCache.cpp" "../Utils/win.h" "IProtoBuffable.h" "../Utils/crow_win.h" "FileModel/OdbFile.h" "FileModel/OdbFile.cpp" "App/IOdbApp.h" "App/IOdbApp.cpp" "App/OdbAppBase.h" "App/OdbAppBase.cpp" "App/RouteController.h" "App/RouteController.cpp" "App/IOdbServerApp.h" "App/OdbServerAppBase.h" "App/OdbServerAppBase.cpp" "App/IOdbServerApp.cpp" FileModel/Design/MatrixFile.cpp FileModel/Design/MatrixFile.h FileModel/Design/MiscInfoFile.cpp @@ -37,7 +37,7 @@ add_library(OdbDesign SHARED "ProtoBuf/via.pb.h" "ProtoBuf/via.pb.cc" "ProtoBuf/package.pb.h" "ProtoBuf/package.pb.cc" "FileModel/parse_error.h" "FileModel/parse_info.h" "FileModel/parse_info.cpp" "FileModel/parse_error.cpp" "FileModel/invalid_odb_error.h" "FileModel/invalid_odb_error.cpp" "ProtoBuf/common.pb.h" "ProtoBuf/common.pb.cc" "ProtoBuf/componentsfile.pb.h" "ProtoBuf/componentsfile.pb.cc" "FileModel/Design/PropertyRecord.h" "FileModel/Design/PropertyRecord.cpp" "FileModel/Design/FeaturesFile.h" "FileModel/Design/FeaturesFile.cpp" "FileModel/Design/ContourPolygon.h" "FileModel/Design/ContourPolygon.cpp" "FileModel/Design/SymbolName.h" "FileModel/Design/SymbolName.cpp" "FileModel/Design/SymbolsDirectory.h" "FileModel/Design/SymbolsDirectory.cpp" "FileModel/Design/StepHdrFile.h" "FileModel/Design/StepHdrFile.cpp" "FileModel/Design/AttributeLookupTable.h" "FileModel/Design/AttributeLookupTable.cpp" - "App/RequestAuthenticationBase.h" "App/RequestAuthenticationBase.cpp" "App/BasicRequestAuthentication.h" "App/BasicRequestAuthentication.cpp" "FileModel/IStreamSaveable.h") + "App/RequestAuthenticationBase.h" "App/RequestAuthenticationBase.cpp" "App/BasicRequestAuthentication.h" "App/BasicRequestAuthentication.cpp" "FileModel/IStreamSaveable.h" ) # disable warning C4250: inheritance by dominance target_compile_options(OdbDesign PUBLIC diff --git a/OdbDesignLib/FileModel/OdbFileRecord.cpp b/OdbDesignLib/FileModel/OdbFileRecord.cpp deleted file mode 100644 index f4d6ae8f..00000000 --- a/OdbDesignLib/FileModel/OdbFileRecord.cpp +++ /dev/null @@ -1,6 +0,0 @@ -#include "OdbFileRecord.h" - -namespace Odb::Lib::FileModel -{ - -} \ No newline at end of file diff --git a/OdbDesignLib/FileModel/OdbFileRecord.h b/OdbDesignLib/FileModel/OdbFileRecord.h deleted file mode 100644 index 183b2290..00000000 --- a/OdbDesignLib/FileModel/OdbFileRecord.h +++ /dev/null @@ -1,8 +0,0 @@ -#pragma once - -namespace Odb::Lib::FileModel -{ - class OdbFileRecord - { - }; -} From 40e28e996780c340d02205e0a2ed30e9a062af0b Mon Sep 17 00:00:00 2001 From: Nathan Miller Date: Tue, 7 May 2024 06:34:23 -0700 Subject: [PATCH 100/168] add header #include --- OdbDesignLib/App/DesignCache.h | 1 + OdbDesignLib/FileModel/Design/FileArchive.h | 1 + 2 files changed, 2 insertions(+) diff --git a/OdbDesignLib/App/DesignCache.h b/OdbDesignLib/App/DesignCache.h index 3d564903..b22ef1d9 100644 --- a/OdbDesignLib/App/DesignCache.h +++ b/OdbDesignLib/App/DesignCache.h @@ -6,6 +6,7 @@ #include "StringVector.h" #include #include +#include namespace Odb::Lib::App diff --git a/OdbDesignLib/FileModel/Design/FileArchive.h b/OdbDesignLib/FileModel/Design/FileArchive.h index 288e59cf..e0e22424 100644 --- a/OdbDesignLib/FileModel/Design/FileArchive.h +++ b/OdbDesignLib/FileModel/Design/FileArchive.h @@ -15,6 +15,7 @@ #include "SymbolsDirectory.h" #include "AttrListFile.h" #include "../ISaveable.h" +#include namespace Odb::Lib::FileModel::Design From ba2de98b130a5ca445335cc14c7cb4936386eb9e Mon Sep 17 00:00:00 2001 From: Nathan Miller Date: Tue, 7 May 2024 06:39:06 -0700 Subject: [PATCH 101/168] use m_productName as default for archiveName in SaveFileModel() --- OdbDesignLib/FileModel/Design/FileArchive.cpp | 10 ++++++++-- OdbDesignLib/FileModel/Design/FileArchive.h | 1 + 2 files changed, 9 insertions(+), 2 deletions(-) diff --git a/OdbDesignLib/FileModel/Design/FileArchive.cpp b/OdbDesignLib/FileModel/Design/FileArchive.cpp index fc758a1c..19191c6a 100644 --- a/OdbDesignLib/FileModel/Design/FileArchive.cpp +++ b/OdbDesignLib/FileModel/Design/FileArchive.cpp @@ -1,4 +1,5 @@ #include "FileArchive.h" +#include "FileArchive.h" #include #include "ArchiveExtractor.h" #include "MiscInfoFile.h" @@ -109,6 +110,11 @@ namespace Odb::Lib::FileModel::Design return false; } + bool FileArchive::SaveFileModel(const path& directory) + { + return SaveFileModel(directory, m_productName); + } + bool FileArchive::SaveFileModel(const path& directory, const std::string& archiveName) { // create directory in /tmp @@ -122,13 +128,13 @@ namespace Odb::Lib::FileModel::Design auto tempPath = temp_directory_path() / szTmpNameBuff; if (!create_directory(tempPath)) return false; - auto rootPath = tempPath / m_productName; + auto rootPath = tempPath / archiveName; if (!create_directory(rootPath)) return false; if (!Save(rootPath)) return false; // compress the written file structure std::string createdArchivePath; - if (! Utils::ArchiveExtractor::CompressDir(rootPath.string(), tempPath.string(), m_productName, createdArchivePath)) return false; + if (! Utils::ArchiveExtractor::CompressDir(rootPath.string(), tempPath.string(), archiveName, createdArchivePath)) return false; if (createdArchivePath.empty()) return false; // move the compressed file to the requested save directory diff --git a/OdbDesignLib/FileModel/Design/FileArchive.h b/OdbDesignLib/FileModel/Design/FileArchive.h index e0e22424..2c43de4b 100644 --- a/OdbDesignLib/FileModel/Design/FileArchive.h +++ b/OdbDesignLib/FileModel/Design/FileArchive.h @@ -45,6 +45,7 @@ namespace Odb::Lib::FileModel::Design //const EdaDataFile& GetFirstStepEdaDataFile() const; bool ParseFileModel(); + bool SaveFileModel(const std::filesystem::path& directory); bool SaveFileModel(const std::filesystem::path& directory, const std::string& archiveName); //bool SaveFileModel(const std::string& directory, const std::string& archiveName); From 58a39c4537a40c1d26465ac6a09f1c7ad9417827 Mon Sep 17 00:00:00 2001 From: Nathan Miller Date: Wed, 8 May 2024 10:08:02 -0700 Subject: [PATCH 102/168] add /filemodes/> POST endpoint definition --- swagger/odbdesign-server-0.9-swagger.yaml | 26 +++++++++++++++++++++++ 1 file changed, 26 insertions(+) diff --git a/swagger/odbdesign-server-0.9-swagger.yaml b/swagger/odbdesign-server-0.9-swagger.yaml index e403b8d9..5aa475cc 100644 --- a/swagger/odbdesign-server-0.9-swagger.yaml +++ b/swagger/odbdesign-server-0.9-swagger.yaml @@ -41,6 +41,7 @@ paths: schema: type: string requestBody: + required: true content: application/octet-stream: schema: @@ -56,6 +57,7 @@ paths: tags: ["file upload"] parameters: [] requestBody: + required: true content: multipart/form-data: schema: @@ -93,6 +95,30 @@ paths: description: "" security: - BasicAuth: [] + post: + tags: ["filemodel"] + parameters: + - name: name + in: path + required: true + schema: + type: string + requestBody: + content: + application/json: + schema: + type: object + format: json + required: true + responses: + "200": + description: "" + "404": + description: "" + "500": + description: "" + security: + - BasicAuth: [] /filemodels/{name}/misc/attrlist: get: tags: ["filemodel"] From 7c1c305a897b63cff0a7d2ec72a0607005cd4158 Mon Sep 17 00:00:00 2001 From: Nathan Miller Date: Wed, 8 May 2024 10:09:08 -0700 Subject: [PATCH 103/168] add SaveFileArchive AND AddFileArchive to DesignCache --- OdbDesignLib/App/DesignCache.cpp | 21 +++++++++++++++++++++ OdbDesignLib/App/DesignCache.h | 4 ++++ 2 files changed, 25 insertions(+) diff --git a/OdbDesignLib/App/DesignCache.cpp b/OdbDesignLib/App/DesignCache.cpp index fa0431f8..0da21e12 100644 --- a/OdbDesignLib/App/DesignCache.cpp +++ b/OdbDesignLib/App/DesignCache.cpp @@ -1,3 +1,5 @@ +#include "DesignCache.h" +#include "DesignCache.h" #include "ArchiveExtractor.h" #include "DesignCache.h" #include "Logger.h" @@ -65,6 +67,25 @@ namespace Odb::Lib::App return m_fileArchivesByName[designName]; } + void DesignCache::AddFileArchive(const std::string& designName, const std::shared_ptr& fileArchive, bool save) + { + m_fileArchivesByName[designName] = fileArchive; + if (save) + { + SaveFileArchive(designName); + } + } + + bool DesignCache::SaveFileArchive(const std::string& designName) + { + auto fileArchive = GetFileArchive(designName); + if (fileArchive != nullptr) + { + return fileArchive->SaveFileModel(m_directory); + } + return false; + } + std::vector DesignCache::getLoadedDesignNames(const std::string& filter) const { std::vector loadedDesigns; diff --git a/OdbDesignLib/App/DesignCache.h b/OdbDesignLib/App/DesignCache.h index b22ef1d9..e998f2f0 100644 --- a/OdbDesignLib/App/DesignCache.h +++ b/OdbDesignLib/App/DesignCache.h @@ -20,6 +20,10 @@ namespace Odb::Lib::App std::shared_ptr GetDesign(const std::string& designName); std::shared_ptr GetFileArchive(const std::string& designName); + void AddFileArchive(const std::string& designName, const std::shared_ptr& fileArchive, bool save); + + bool SaveFileArchive(const std::string& designName); + std::vector getLoadedDesignNames(const std::string& filter = "") const; std::vector getLoadedFileArchiveNames(const std::string& filter = "") const; std::vector getUnloadedDesignNames(const std::string& filter = "") const; From 35b0cb503b35a10f4efa3cf1da04f5ff1254e472 Mon Sep 17 00:00:00 2001 From: Nathan Miller Date: Wed, 8 May 2024 10:25:48 -0700 Subject: [PATCH 104/168] add endpoint for POSTing JSON FileArchive --- .../Controllers/FileModelController.cpp | 43 +++++++++++++++++-- .../Controllers/FileModelController.h | 3 +- 2 files changed, 42 insertions(+), 4 deletions(-) diff --git a/OdbDesignServer/Controllers/FileModelController.cpp b/OdbDesignServer/Controllers/FileModelController.cpp index a1e7a1ca..6877e909 100644 --- a/OdbDesignServer/Controllers/FileModelController.cpp +++ b/OdbDesignServer/Controllers/FileModelController.cpp @@ -1,6 +1,8 @@ #include "FileModelController.h" #include #include "UrlEncoding.h" +#include +#include using namespace Odb::Lib::App; @@ -53,7 +55,7 @@ namespace Odb::App::Server return this->filemodels_list_route_handler(req); }); - CROW_ROUTE(m_serverApp.crow_app(), "/filemodels/") + CROW_ROUTE(m_serverApp.crow_app(), "/filemodels/").methods(crow::HTTPMethod::GET) ([&](const crow::request& req, std::string designName) { // authenticate request before sending to handler @@ -63,9 +65,22 @@ namespace Odb::App::Server return authResp; } - return this->filemodels_route_handler(designName, req); + return this->filemodels_get_route_handler(designName, req); }); + CROW_ROUTE(m_serverApp.crow_app(), "/filemodels/").methods(crow::HTTPMethod::POST) + ([&](const crow::request& req, std::string designName) + { + // authenticate request before sending to handler + auto authResp = m_serverApp.request_auth().AuthenticateRequest(req); + if (authResp.code != crow::status::OK) + { + return authResp; + } + + return this->filemodels_post_route_handler(designName, req); + }); + CROW_ROUTE(m_serverApp.crow_app(), "/filemodels//steps/") ([&](const crow::request& req, std::string designName, std::string stepName) { @@ -344,7 +359,7 @@ namespace Odb::App::Server }); } - crow::response FileModelController::filemodels_route_handler(const std::string& designName, const crow::request& req) + crow::response FileModelController::filemodels_get_route_handler(const std::string& designName, const crow::request& req) { auto designNameDecoded = UrlEncoding::decode(designName); if (designNameDecoded.empty()) @@ -363,6 +378,28 @@ namespace Odb::App::Server return crow::response(JsonCrowReturnable(*pFileArchive)); } + crow::response FileModelController::filemodels_post_route_handler(const std::string& designName, const crow::request& req) + { + auto designNameDecoded = UrlEncoding::decode(designName); + if (designNameDecoded.empty()) + { + return crow::response(crow::status::BAD_REQUEST, "design name not specified"); + } + + const auto& json = req.body; + if (json.empty()) + { + return crow::response(crow::status::BAD_REQUEST, "no data provided in POST body"); + } + + auto fileArchive = std::make_shared(); + fileArchive->from_json(json); + + m_serverApp.designs().AddFileArchive(designName, fileArchive, false); + + return crow::response(); + } + crow::response FileModelController::steps_edadata_route_handler(const std::string& designName, const std::string& stepName, const crow::request& req) diff --git a/OdbDesignServer/Controllers/FileModelController.h b/OdbDesignServer/Controllers/FileModelController.h index 1f7fd490..7cbed75c 100644 --- a/OdbDesignServer/Controllers/FileModelController.h +++ b/OdbDesignServer/Controllers/FileModelController.h @@ -14,7 +14,8 @@ namespace Odb::App::Server void register_routes() override; private: - crow::response filemodels_route_handler(const std::string& designName, const crow::request& req); + crow::response filemodels_get_route_handler(const std::string& designName, const crow::request& req); + crow::response filemodels_post_route_handler(const std::string& designName, const crow::request& req); crow::response filemodels_list_route_handler(const crow::request& req); crow::response steps_route_handler(const std::string& designName, const std::string& stepName, const crow::request& req); From b43281858b82c8654cb85f70c755e7a104a1015e Mon Sep 17 00:00:00 2001 From: Nathan Miller Date: Wed, 8 May 2024 10:26:30 -0700 Subject: [PATCH 105/168] add default ctor() for FileArchive --- OdbDesignLib/FileModel/Design/FileArchive.cpp | 7 ++++++- OdbDesignLib/FileModel/Design/FileArchive.h | 3 ++- OdbDesignLib/ProductModel/Design.cpp | 2 +- 3 files changed, 9 insertions(+), 3 deletions(-) diff --git a/OdbDesignLib/FileModel/Design/FileArchive.cpp b/OdbDesignLib/FileModel/Design/FileArchive.cpp index 19191c6a..c66ef0e0 100644 --- a/OdbDesignLib/FileModel/Design/FileArchive.cpp +++ b/OdbDesignLib/FileModel/Design/FileArchive.cpp @@ -1,5 +1,6 @@ #include "FileArchive.h" #include "FileArchive.h" +#include "FileArchive.h" #include #include "ArchiveExtractor.h" #include "MiscInfoFile.h" @@ -15,8 +16,12 @@ using namespace std::filesystem; namespace Odb::Lib::FileModel::Design { + FileArchive::FileArchive() + : m_filePath() + { + } - FileArchive::FileArchive(std::string path) + FileArchive::FileArchive(const std::string& path) : m_filePath(path) { } diff --git a/OdbDesignLib/FileModel/Design/FileArchive.h b/OdbDesignLib/FileModel/Design/FileArchive.h index 2c43de4b..d117553e 100644 --- a/OdbDesignLib/FileModel/Design/FileArchive.h +++ b/OdbDesignLib/FileModel/Design/FileArchive.h @@ -23,7 +23,8 @@ namespace Odb::Lib::FileModel::Design class ODBDESIGN_EXPORT FileArchive : public IProtoBuffable, public ISaveable { public: - FileArchive(std::string path); + FileArchive(); + FileArchive(const std::string& path); ~FileArchive(); std::string GetRootDir() const; diff --git a/OdbDesignLib/ProductModel/Design.cpp b/OdbDesignLib/ProductModel/Design.cpp index b896626a..cb4b9aa6 100644 --- a/OdbDesignLib/ProductModel/Design.cpp +++ b/OdbDesignLib/ProductModel/Design.cpp @@ -191,7 +191,7 @@ namespace Odb::Lib::ProductModel m_name = message.name(); m_productModel = message.productmodel(); - m_pFileModel = std::make_shared(""); + m_pFileModel = std::make_shared(); m_pFileModel->from_protobuf(message.filemodel()); for (const auto& pNetMsg : message.nets()) From 43c11e48ea762d0c74161e140c96d28c024f2d23 Mon Sep 17 00:00:00 2001 From: Nathan Miller Date: Wed, 8 May 2024 10:50:37 -0700 Subject: [PATCH 106/168] remove old commented functionality and provide full definition for local Docker image build --- compose.yml | 35 +++++++++++++++++------------------ 1 file changed, 17 insertions(+), 18 deletions(-) diff --git a/compose.yml b/compose.yml index 8fc03db3..a63c083d 100644 --- a/compose.yml +++ b/compose.yml @@ -2,17 +2,9 @@ name: odbdesign services: - server: - ## enable for passing in branch name as an environment variable - #environment: - # - BRANCH=nam20485 - #image: ghcr.io/nam20485/odbdesign:${BRANCH}-latest - image: ghcr.io/nam20485/odbdesign:nam20485-latest - ## enable for local build via the Dockerfile (and disable "image:" key above) - # build: - # context: . - # dockerfile: Dockerfile - #container_name: odbdesign-server + ### use remote image build from github container registry + server: + image: ghcr.io/nam20485/odbdesign:nam20485-latest volumes: - ./compose-designs:/OdbDesign/designs ports: @@ -20,17 +12,24 @@ services: environment: - ODBDESIGN_SERVER_REQUEST_USERNAME - ODBDESIGN_SERVER_REQUEST_PASSWORD - + + ### use local image built from Dockerfile + # server: + # build: + # context: . + # dockerfile: Dockerfile + # volumes: + # - ./compose-designs:/OdbDesign/designs + # ports: + # - 8888:8888 + # environment: + # - ODBDESIGN_SERVER_REQUEST_USERNAME + # - ODBDESIGN_SERVER_REQUEST_PASSWORD swagger-ui: - ## enable for passing in branch name as an environment variable - # environment: - # - BRANCH=nam20485 - # image: ghcr.io/nam20485/odbdesignserver-swaggerui:${BRANCH}-latest image: ghcr.io/nam20485/odbdesignserver-swaggerui:nam20485-latest #container_name: swagger-ui depends_on: - server ports: - - 8080:8080 - \ No newline at end of file + - 8080:8080 From 6c91abd69b744d2ad3e80ea8c78b48eec116dfb2 Mon Sep 17 00:00:00 2001 From: Nathan Miller Date: Wed, 8 May 2024 10:50:37 -0700 Subject: [PATCH 107/168] remove old commented functionality and provide full definition for local Docker image build --- compose.yml | 38 ++++++++++++++++++-------------------- 1 file changed, 18 insertions(+), 20 deletions(-) diff --git a/compose.yml b/compose.yml index 8fc03db3..fb0ea771 100644 --- a/compose.yml +++ b/compose.yml @@ -2,17 +2,9 @@ name: odbdesign services: - server: - ## enable for passing in branch name as an environment variable - #environment: - # - BRANCH=nam20485 - #image: ghcr.io/nam20485/odbdesign:${BRANCH}-latest - image: ghcr.io/nam20485/odbdesign:nam20485-latest - ## enable for local build via the Dockerfile (and disable "image:" key above) - # build: - # context: . - # dockerfile: Dockerfile - #container_name: odbdesign-server + ### use remote image build from github container registry + server: + image: ghcr.io/nam20485/odbdesign:nam20485-latest volumes: - ./compose-designs:/OdbDesign/designs ports: @@ -20,17 +12,23 @@ services: environment: - ODBDESIGN_SERVER_REQUEST_USERNAME - ODBDESIGN_SERVER_REQUEST_PASSWORD - + + ### use local image built from Dockerfile + # server: + # build: + # context: . + # dockerfile: Dockerfile + # volumes: + # - ./compose-designs:/OdbDesign/designs + # ports: + # - 8888:8888 + # environment: + # - ODBDESIGN_SERVER_REQUEST_USERNAME + # - ODBDESIGN_SERVER_REQUEST_PASSWORD swagger-ui: - ## enable for passing in branch name as an environment variable - # environment: - # - BRANCH=nam20485 - # image: ghcr.io/nam20485/odbdesignserver-swaggerui:${BRANCH}-latest - image: ghcr.io/nam20485/odbdesignserver-swaggerui:nam20485-latest - #container_name: swagger-ui + image: ghcr.io/nam20485/odbdesignserver-swaggerui:nam20485-latest depends_on: - server ports: - - 8080:8080 - \ No newline at end of file + - 8080:8080 From 18aa6df413cf4cc05f912fd8a9cdac2deec728d1 Mon Sep 17 00:00:00 2001 From: Nathan Miller Date: Wed, 8 May 2024 11:22:27 -0700 Subject: [PATCH 108/168] use static Make() methods for creating empty FileArchives --- OdbDesignLib/FileModel/Design/FileArchive.cpp | 15 +++++++++++++-- OdbDesignLib/FileModel/Design/FileArchive.h | 9 ++++++--- OdbDesignLib/ProductModel/Design.cpp | 2 +- .../Controllers/FileModelController.cpp | 4 +--- 4 files changed, 21 insertions(+), 9 deletions(-) diff --git a/OdbDesignLib/FileModel/Design/FileArchive.cpp b/OdbDesignLib/FileModel/Design/FileArchive.cpp index c66ef0e0..8bb8c5da 100644 --- a/OdbDesignLib/FileModel/Design/FileArchive.cpp +++ b/OdbDesignLib/FileModel/Design/FileArchive.cpp @@ -1,6 +1,4 @@ #include "FileArchive.h" -#include "FileArchive.h" -#include "FileArchive.h" #include #include "ArchiveExtractor.h" #include "MiscInfoFile.h" @@ -10,6 +8,7 @@ #include #include #include +#include using namespace Utils; using namespace std::filesystem; @@ -32,6 +31,18 @@ namespace Odb::Lib::FileModel::Design m_symbolsDirectoriesByName.clear(); } + std::shared_ptr FileArchive::Make() + { + return std::shared_ptr(); + } + + std::shared_ptr FileArchive::Make(const std::string& json) + { + auto fileArchive = Make(); + fileArchive->from_json(json); + return fileArchive; + } + std::string FileArchive::GetRootDir() const { return m_rootDir; diff --git a/OdbDesignLib/FileModel/Design/FileArchive.h b/OdbDesignLib/FileModel/Design/FileArchive.h index d117553e..1dca7214 100644 --- a/OdbDesignLib/FileModel/Design/FileArchive.h +++ b/OdbDesignLib/FileModel/Design/FileArchive.h @@ -3,7 +3,6 @@ #include "../../odbdesign_export.h" #include #include "StepDirectory.h" -#include "EdaDataFile.h" #include #include #include "MiscInfoFile.h" @@ -22,11 +21,13 @@ namespace Odb::Lib::FileModel::Design { class ODBDESIGN_EXPORT FileArchive : public IProtoBuffable, public ISaveable { - public: - FileArchive(); + public: FileArchive(const std::string& path); ~FileArchive(); + static std::shared_ptr Make(); + static std::shared_ptr Make(const std::string& json); + std::string GetRootDir() const; std::string GetProductName() const; std::string GetFilename() const; @@ -71,6 +72,8 @@ namespace Odb::Lib::FileModel::Design StepDirectory::StringMap m_stepsByName; SymbolsDirectory::StringMap m_symbolsDirectoriesByName; + FileArchive(); + bool ParseDesignDirectory(const std::filesystem::path& path); bool ParseStepDirectories(const std::filesystem::path& path); bool ParseMiscInfoFile(const std::filesystem::path& path); diff --git a/OdbDesignLib/ProductModel/Design.cpp b/OdbDesignLib/ProductModel/Design.cpp index cb4b9aa6..8b137e1f 100644 --- a/OdbDesignLib/ProductModel/Design.cpp +++ b/OdbDesignLib/ProductModel/Design.cpp @@ -191,7 +191,7 @@ namespace Odb::Lib::ProductModel m_name = message.name(); m_productModel = message.productmodel(); - m_pFileModel = std::make_shared(); + m_pFileModel = FileModel::Design::FileArchive::Make(); m_pFileModel->from_protobuf(message.filemodel()); for (const auto& pNetMsg : message.nets()) diff --git a/OdbDesignServer/Controllers/FileModelController.cpp b/OdbDesignServer/Controllers/FileModelController.cpp index 6877e909..c099b52a 100644 --- a/OdbDesignServer/Controllers/FileModelController.cpp +++ b/OdbDesignServer/Controllers/FileModelController.cpp @@ -392,9 +392,7 @@ namespace Odb::App::Server return crow::response(crow::status::BAD_REQUEST, "no data provided in POST body"); } - auto fileArchive = std::make_shared(); - fileArchive->from_json(json); - + auto fileArchive = FileArchive::Make(json); m_serverApp.designs().AddFileArchive(designName, fileArchive, false); return crow::response(); From c89c45409f2ade85de17df08ad601bb1a7e5774a Mon Sep 17 00:00:00 2001 From: Nathan Miller Date: Wed, 8 May 2024 12:20:20 -0700 Subject: [PATCH 109/168] remove Make() methods and make default ctor() public --- OdbDesignLib/FileModel/Design/FileArchive.cpp | 14 +------------- OdbDesignLib/FileModel/Design/FileArchive.h | 10 +++------- OdbDesignLib/ProductModel/Design.cpp | 3 ++- 3 files changed, 6 insertions(+), 21 deletions(-) diff --git a/OdbDesignLib/FileModel/Design/FileArchive.cpp b/OdbDesignLib/FileModel/Design/FileArchive.cpp index 8bb8c5da..e6c342a0 100644 --- a/OdbDesignLib/FileModel/Design/FileArchive.cpp +++ b/OdbDesignLib/FileModel/Design/FileArchive.cpp @@ -29,19 +29,7 @@ namespace Odb::Lib::FileModel::Design { m_stepsByName.clear(); m_symbolsDirectoriesByName.clear(); - } - - std::shared_ptr FileArchive::Make() - { - return std::shared_ptr(); - } - - std::shared_ptr FileArchive::Make(const std::string& json) - { - auto fileArchive = Make(); - fileArchive->from_json(json); - return fileArchive; - } + } std::string FileArchive::GetRootDir() const { diff --git a/OdbDesignLib/FileModel/Design/FileArchive.h b/OdbDesignLib/FileModel/Design/FileArchive.h index 1dca7214..4e12f97f 100644 --- a/OdbDesignLib/FileModel/Design/FileArchive.h +++ b/OdbDesignLib/FileModel/Design/FileArchive.h @@ -21,13 +21,11 @@ namespace Odb::Lib::FileModel::Design { class ODBDESIGN_EXPORT FileArchive : public IProtoBuffable, public ISaveable { - public: + public: + FileArchive(); FileArchive(const std::string& path); ~FileArchive(); - static std::shared_ptr Make(); - static std::shared_ptr Make(const std::string& json); - std::string GetRootDir() const; std::string GetProductName() const; std::string GetFilename() const; @@ -71,9 +69,7 @@ namespace Odb::Lib::FileModel::Design StepDirectory::StringMap m_stepsByName; SymbolsDirectory::StringMap m_symbolsDirectoriesByName; - - FileArchive(); - + bool ParseDesignDirectory(const std::filesystem::path& path); bool ParseStepDirectories(const std::filesystem::path& path); bool ParseMiscInfoFile(const std::filesystem::path& path); diff --git a/OdbDesignLib/ProductModel/Design.cpp b/OdbDesignLib/ProductModel/Design.cpp index 8b137e1f..0477f560 100644 --- a/OdbDesignLib/ProductModel/Design.cpp +++ b/OdbDesignLib/ProductModel/Design.cpp @@ -2,6 +2,7 @@ #include "Design.h" #include "Package.h" #include "Logger.h" +#include "../enums.h" namespace Odb::Lib::ProductModel @@ -191,7 +192,7 @@ namespace Odb::Lib::ProductModel m_name = message.name(); m_productModel = message.productmodel(); - m_pFileModel = FileModel::Design::FileArchive::Make(); + m_pFileModel = std::make_shared(); m_pFileModel->from_protobuf(message.filemodel()); for (const auto& pNetMsg : message.nets()) From 6a92ce7de39a7009d7a487d24f2ac33bb598092e Mon Sep 17 00:00:00 2001 From: Nathan Miller Date: Wed, 8 May 2024 12:21:02 -0700 Subject: [PATCH 110/168] move constant --- OdbDesignTests/Fixtures/TestDataFixture.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/OdbDesignTests/Fixtures/TestDataFixture.h b/OdbDesignTests/Fixtures/TestDataFixture.h index 5457f56e..503b34c6 100644 --- a/OdbDesignTests/Fixtures/TestDataFixture.h +++ b/OdbDesignTests/Fixtures/TestDataFixture.h @@ -19,11 +19,11 @@ namespace Odb::Test::Fixtures std::filesystem::path getTestDataFilesDir() const; std::filesystem::path getTestDataFilePath(const std::string& filename) const; - static inline constexpr const char ODB_TEST_DATA_DIR_ENV_NAME[] = "ODB_TEST_DATA_DIR"; - static inline constexpr const char TESTDATA_FILES_DIR[] = "FILES"; + static inline constexpr const char ODB_TEST_DATA_DIR_ENV_NAME[] = "ODB_TEST_DATA_DIR"; static inline constexpr const char ODB_TEST_ENV_NAME[] = "ODB_TEST_ENVIRONMENT_VARIABLE"; static inline constexpr const char ODB_TEST_ENV_VALUE[] = "ODB_TEST_ENVIRONMENT_VARIABLE EXISTS"; static inline constexpr const char ODB_TEST_NONEXISTENT_ENV_NAME[] = "THIS_ENVIRONEMNT_VARIABLE_DOES_NOT_EXIST"; + static inline constexpr const char TESTDATA_FILES_DIR[] = "FILES"; static inline constexpr bool ENABLE_TEST_LOGGING = false; From 7bb14eb8e6971932ab37d084e3b069a08f8259fe Mon Sep 17 00:00:00 2001 From: Nathan Miller Date: Wed, 8 May 2024 12:21:16 -0700 Subject: [PATCH 111/168] add header #include --- OdbDesignServer/Controllers/FileModelController.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/OdbDesignServer/Controllers/FileModelController.cpp b/OdbDesignServer/Controllers/FileModelController.cpp index c099b52a..cf0f977b 100644 --- a/OdbDesignServer/Controllers/FileModelController.cpp +++ b/OdbDesignServer/Controllers/FileModelController.cpp @@ -392,7 +392,8 @@ namespace Odb::App::Server return crow::response(crow::status::BAD_REQUEST, "no data provided in POST body"); } - auto fileArchive = FileArchive::Make(json); + auto fileArchive = std::make_shared(); + fileArchive->from_json(json); m_serverApp.designs().AddFileArchive(designName, fileArchive, false); return crow::response(); From 90affd2805c005163430f68508a6446d84a9bbbd Mon Sep 17 00:00:00 2001 From: Nathan Miller Date: Wed, 8 May 2024 12:21:35 -0700 Subject: [PATCH 112/168] remove files --- OdbDesignTests/DesignLoadTests.cpp | 22 ---------------------- OdbDesignTests/DesignTests.cpp | 25 ------------------------- 2 files changed, 47 deletions(-) delete mode 100644 OdbDesignTests/DesignLoadTests.cpp delete mode 100644 OdbDesignTests/DesignTests.cpp diff --git a/OdbDesignTests/DesignLoadTests.cpp b/OdbDesignTests/DesignLoadTests.cpp deleted file mode 100644 index 47041c74..00000000 --- a/OdbDesignTests/DesignLoadTests.cpp +++ /dev/null @@ -1,22 +0,0 @@ -#include -#include "Fixtures/FileArchiveLoadFixture.h" -#include "OdbDesign.h" - -//using namespace Odb::Lib::App; -using namespace Odb::Lib::FileModel; -using namespace Odb::Test::Fixtures; - -namespace Odb::Test -{ - TEST_F(FileArchiveLoadFixture, Load_Design_Succeeds_sample_design_tgz) - { - auto pDesign = m_pDesignCache->GetDesign("sample_design"); - ASSERT_NE(pDesign, nullptr); - } - - TEST_F(FileArchiveLoadFixture, Load_Design_Succeeds_designodb_rigidflex_tgz) - { - auto pDesign = m_pDesignCache->GetDesign("designodb_rigidflex"); - ASSERT_NE(pDesign, nullptr); - } -} \ No newline at end of file diff --git a/OdbDesignTests/DesignTests.cpp b/OdbDesignTests/DesignTests.cpp deleted file mode 100644 index e39e56ef..00000000 --- a/OdbDesignTests/DesignTests.cpp +++ /dev/null @@ -1,25 +0,0 @@ -#include -#include "Fixtures/FileArchiveLoadFixture.h" -#include "OdbDesign.h" - -//using namespace Odb::Lib::App; -using namespace Odb::Lib::FileModel; -using namespace Odb::Test::Fixtures; -using namespace std::filesystem; - -namespace Odb::Test -{ - //TEST_F(FileArchiveLoadFixture, Load_Design_Succeeds_sample_design_tgz) - //{ - // //ASSERT_TRUE(exists(getDesignPath("sample_design.tgz"))); - // auto pDesign = m_pDesignCache->GetDesign("sample_design"); - // ASSERT_NE(pDesign, nullptr); - //} - - //TEST_F(FileArchiveLoadFixture, Load_Design_Succeeds_designodb_rigidflex_tgz) - //{ - // //ASSERT_TRUE(exists(getDesignPath("designodb_rigidflex.tgz"))); - // auto pDesign = m_pDesignCache->GetDesign("designodb_rigidflex"); - // ASSERT_NE(pDesign, nullptr); - //} -} \ No newline at end of file From 8ea919a073d21d0b2a2347d654e359f4cc04a167 Mon Sep 17 00:00:00 2001 From: Nathan Miller Date: Wed, 8 May 2024 12:21:53 -0700 Subject: [PATCH 113/168] add header #include --- OdbDesignLib/FileModel/Design/StepDirectory.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/OdbDesignLib/FileModel/Design/StepDirectory.cpp b/OdbDesignLib/FileModel/Design/StepDirectory.cpp index 33f0f286..2cb239e4 100644 --- a/OdbDesignLib/FileModel/Design/StepDirectory.cpp +++ b/OdbDesignLib/FileModel/Design/StepDirectory.cpp @@ -4,6 +4,7 @@ #include #include #include "Logger.h" +#include namespace Odb::Lib::FileModel::Design From 18bca52d106e17a16f2fc788bd682277047d0332 Mon Sep 17 00:00:00 2001 From: Nathan Miller Date: Wed, 8 May 2024 12:22:01 -0700 Subject: [PATCH 114/168] move test case --- OdbDesignTests/ArchiveExtractorTests.cpp | 14 ++++++++++++++ OdbDesignTests/ArchiveTests.cpp | 12 ++---------- 2 files changed, 16 insertions(+), 10 deletions(-) diff --git a/OdbDesignTests/ArchiveExtractorTests.cpp b/OdbDesignTests/ArchiveExtractorTests.cpp index 763b85c2..d7ad11ca 100644 --- a/OdbDesignTests/ArchiveExtractorTests.cpp +++ b/OdbDesignTests/ArchiveExtractorTests.cpp @@ -1,11 +1,25 @@ #include #include "Fixtures/TestDataFixture.h" +#include "ArchiveExtractor.h" +#include +#include //using namespace Odb::Lib::App; using namespace Odb::Lib::FileModel; using namespace Odb::Test::Fixtures; using namespace std::filesystem; +using namespace Utils; namespace Odb::Test { + static inline constexpr char FILE_CONTENTS[] = "Hello, World!"; + + TEST_F(TestDataFixture, Test_ArchiveExtractor_CompressDir) + { + std::string fileArchiveOut; + ArchiveExtractor::CompressDir(getTestDataFilesDir().string(), getTestDataDir().string(), "files_archiveextractor", fileArchiveOut); + + ASSERT_STRNE(fileArchiveOut.c_str(), ""); + ASSERT_TRUE(exists(fileArchiveOut)); + } } \ No newline at end of file diff --git a/OdbDesignTests/ArchiveTests.cpp b/OdbDesignTests/ArchiveTests.cpp index a3b045c4..6085778d 100644 --- a/OdbDesignTests/ArchiveTests.cpp +++ b/OdbDesignTests/ArchiveTests.cpp @@ -17,16 +17,8 @@ namespace Odb::Test TEST_F(TestDataFixture, Test_LibArchive_CompressDir) { std::string fileArchiveOut; - compress_dir(getTestDataFilesDir().string().c_str(), getTestDataFilesDir().string().c_str(), "files_libarchive", fileArchiveOut); + compress_dir(getTestDataFilesDir().string().c_str(), getTestDataDir().string().c_str(), "files_libarchive", fileArchiveOut); ASSERT_TRUE(exists(fileArchiveOut)); - } - - TEST_F(TestDataFixture, Test_ArchiveExtractor_CompressDir) - { - std::string fileArchiveOut; - ArchiveExtractor::CompressDir(getTestDataFilesDir().string(), getTestDataFilesDir().string(), "files_archiveextractor", fileArchiveOut); - - ASSERT_TRUE(exists(fileArchiveOut)); - } + } } \ No newline at end of file From 56e69d8b7451130d115de336f5de6c1729babfe6 Mon Sep 17 00:00:00 2001 From: Nathan Miller Date: Wed, 8 May 2024 12:22:14 -0700 Subject: [PATCH 115/168] remove files --- OdbDesignTests/CMakeLists.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/OdbDesignTests/CMakeLists.txt b/OdbDesignTests/CMakeLists.txt index 819e6507..37f444c3 100644 --- a/OdbDesignTests/CMakeLists.txt +++ b/OdbDesignTests/CMakeLists.txt @@ -10,7 +10,7 @@ add_executable(OdbDesignTests "DesignCacheLoadTests.cpp" "Fixtures/DesignNameValueParamTest.h" "FileArchiveTests.cpp" - "DesignTests.cpp" "ProtobufSerializationTests.cpp" "FileReaderTests.cpp" "ArchiveTests.cpp" "CrossPlatformTests.cpp" "Fixtures/TestDataFixture.h" "Fixtures/TestDataFixture.cpp" "ArchiveExtractorTests.cpp") + "ProtobufSerializationTests.cpp" "FileReaderTests.cpp" "ArchiveTests.cpp" "CrossPlatformTests.cpp" "Fixtures/TestDataFixture.h" "Fixtures/TestDataFixture.cpp" "ArchiveExtractorTests.cpp") target_link_libraries(OdbDesignTests PRIVATE GTest::gtest_main GTest::gmock_main) From 35cf9c56989bdc2bd87dcdc8b5d3b9e64c0cb2e6 Mon Sep 17 00:00:00 2001 From: Nathan Miller Date: Wed, 8 May 2024 12:22:34 -0700 Subject: [PATCH 116/168] use EXPECT_THAT mock matchers --- OdbDesignTests/TestTests.cpp | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/OdbDesignTests/TestTests.cpp b/OdbDesignTests/TestTests.cpp index 90a12469..29456983 100644 --- a/OdbDesignTests/TestTests.cpp +++ b/OdbDesignTests/TestTests.cpp @@ -1,7 +1,10 @@ #include -#include +//#include #include "Fixtures/TestDataFixture.h" #include +#include +#include +#include "Fixtures/FileArchiveLoadFixture.h" using namespace std::filesystem; using namespace Odb::Test::Fixtures; @@ -27,8 +30,7 @@ namespace Odb::Test } TEST_F(TestDataFixture, TestDataDirEnvironmentVariablesExists) - { - //ASSERT_FALSE(getTestDataDir().empty()); + { EXPECT_THAT(getTestDataDir().string(), Not(IsEmpty())); } @@ -46,7 +48,7 @@ namespace Odb::Test TEST_F(TestDataFixture, TestDataFilesDirDirectoryExists) { - ASSERT_FALSE(getTestDataFilesDir().empty()); + EXPECT_THAT(getTestDataFilesDir().string(), Not(IsEmpty())); EXPECT_TRUE(exists(getTestDataFilesDir())); } } From f7c6d0133cccf736420f9eca787718f2d4743b27 Mon Sep 17 00:00:00 2001 From: Nathan Miller Date: Wed, 8 May 2024 12:23:19 -0700 Subject: [PATCH 117/168] add test case to test whether CrossPlatform::getenv_safe can find a known existing env var --- OdbDesignTests/CrossPlatformTests.cpp | 23 ++++++++++++++++++++++- 1 file changed, 22 insertions(+), 1 deletion(-) diff --git a/OdbDesignTests/CrossPlatformTests.cpp b/OdbDesignTests/CrossPlatformTests.cpp index 23caf560..eb76ffef 100644 --- a/OdbDesignTests/CrossPlatformTests.cpp +++ b/OdbDesignTests/CrossPlatformTests.cpp @@ -4,6 +4,8 @@ #include "Fixtures/TestDataFixture.h" #include #include +#include +#include using namespace std::filesystem; using namespace Odb::Test::Fixtures; @@ -14,15 +16,34 @@ namespace Odb::Test { TEST_F(TestDataFixture, Test_CrossPlatform_GetEnvSafe_VariableExists) { + auto szTestEnvValue = std::getenv(ODB_TEST_ENV_NAME); + EXPECT_THAT(szTestEnvValue, NotNull()); + std::string value; ASSERT_EQ(value.size(), 0U); - ASSERT_TRUE(CrossPlatform::getenv_safe(ODB_TEST_ENV_NAME, value)); + auto bResult = CrossPlatform::getenv_safe(ODB_TEST_ENV_NAME, value); ASSERT_STRNE(value.c_str(), ""); ASSERT_STREQ(value.c_str(), ODB_TEST_ENV_VALUE); + ASSERT_TRUE(bResult); + } + + TEST_F(TestDataFixture, Test_CrossPlatform_GetEnvSafe_KnownVariableExists) + { + auto szTestEnvValue = std::getenv(ODB_TEST_DATA_DIR_ENV_NAME); + EXPECT_THAT(szTestEnvValue, NotNull()); + + std::string value; + ASSERT_EQ(value.size(), 0U); + auto bResult = CrossPlatform::getenv_safe(ODB_TEST_DATA_DIR_ENV_NAME, value); + ASSERT_STRNE(value.c_str(), ""); + ASSERT_TRUE(bResult); } TEST_F(TestDataFixture, Test_CrossPlatform_GetEnvSafe_VariableDoesntExist) { + auto szDoesntExistVal = std::getenv(ODB_TEST_NONEXISTENT_ENV_NAME); + EXPECT_THAT(szDoesntExistVal, IsNull()); + std::string value; ASSERT_EQ(value.size(), 0U); ASSERT_FALSE(CrossPlatform::getenv_safe(ODB_TEST_NONEXISTENT_ENV_NAME, value)); From b9cf5b6fb3d4f363d25c5bd1d4c19ee726df5926 Mon Sep 17 00:00:00 2001 From: Nathan Miller Date: Thu, 9 May 2024 15:04:37 -0700 Subject: [PATCH 118/168] add header #include --- OdbDesignTests/ProtobufSerializationTests.cpp | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/OdbDesignTests/ProtobufSerializationTests.cpp b/OdbDesignTests/ProtobufSerializationTests.cpp index ff6739b3..8a8d4bd9 100644 --- a/OdbDesignTests/ProtobufSerializationTests.cpp +++ b/OdbDesignTests/ProtobufSerializationTests.cpp @@ -1,8 +1,6 @@ #include -#include #include "Fixtures/FileArchiveLoadFixture.h" -#include "OdbDesign.h" -//#include "gtest/gtest-matchers.h" +#include //using namespace Odb::Lib::App; From c554bd4c7a3aed8be6a733edfa47fe7bdfa8cadc Mon Sep 17 00:00:00 2001 From: Nathan Miller Date: Thu, 9 May 2024 15:05:05 -0700 Subject: [PATCH 119/168] add reference to variable used by test case --- .github/workflows/cmake-multi-platform.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.github/workflows/cmake-multi-platform.yml b/.github/workflows/cmake-multi-platform.yml index 61df098f..9b36a2db 100644 --- a/.github/workflows/cmake-multi-platform.yml +++ b/.github/workflows/cmake-multi-platform.yml @@ -164,6 +164,7 @@ jobs: id: cmake-test env: ODB_TEST_DATA_DIR: ${{github.workspace}}/OdbDesignTestData/TEST_DATA + ODB_TEST_ENVIRONMENT_VARIABLE: ${{vars.ODB_TEST_ENVIRONMENT_VARIABLE}} run: ctest --test-dir ./out/build/${{matrix.preset}}/OdbDesignTests --output-log ${{github.workspace}}/testlog.txt --output-junit ${{github.workspace}}/testlog.xml --output-on-failure # let the report step fail the job if it finds failed tests... continue-on-error: true From f739663186f2a76baeec629b2773a8b806ed14b4 Mon Sep 17 00:00:00 2001 From: Nathan Miller Date: Thu, 9 May 2024 15:05:49 -0700 Subject: [PATCH 120/168] fix environment variable --- OdbDesignTests/Fixtures/TestDataFixture.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/OdbDesignTests/Fixtures/TestDataFixture.h b/OdbDesignTests/Fixtures/TestDataFixture.h index 503b34c6..f66f5ceb 100644 --- a/OdbDesignTests/Fixtures/TestDataFixture.h +++ b/OdbDesignTests/Fixtures/TestDataFixture.h @@ -21,7 +21,7 @@ namespace Odb::Test::Fixtures static inline constexpr const char ODB_TEST_DATA_DIR_ENV_NAME[] = "ODB_TEST_DATA_DIR"; static inline constexpr const char ODB_TEST_ENV_NAME[] = "ODB_TEST_ENVIRONMENT_VARIABLE"; - static inline constexpr const char ODB_TEST_ENV_VALUE[] = "ODB_TEST_ENVIRONMENT_VARIABLE EXISTS"; + static inline constexpr const char ODB_TEST_ENV_VALUE[] = "ODB_TEST_ENVIRONMENT_VARIABLE_EXISTS"; static inline constexpr const char ODB_TEST_NONEXISTENT_ENV_NAME[] = "THIS_ENVIRONEMNT_VARIABLE_DOES_NOT_EXIST"; static inline constexpr const char TESTDATA_FILES_DIR[] = "FILES"; From 023f764a23787a451708316a3c1a4d935a46dd54 Mon Sep 17 00:00:00 2001 From: Nathan Miller Date: Thu, 9 May 2024 15:12:55 -0700 Subject: [PATCH 121/168] fix test case --- OdbDesignTests/CrossPlatformTests.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/OdbDesignTests/CrossPlatformTests.cpp b/OdbDesignTests/CrossPlatformTests.cpp index eb76ffef..2ca07cb3 100644 --- a/OdbDesignTests/CrossPlatformTests.cpp +++ b/OdbDesignTests/CrossPlatformTests.cpp @@ -86,8 +86,8 @@ namespace Odb::Test ASSERT_NE(tm.tm_year, 0); ASSERT_NE(tm.tm_mon, 0); ASSERT_NE(tm.tm_mday, 0); - ASSERT_NE(tm.tm_hour, 0); - ASSERT_NE(tm.tm_min, 0); - ASSERT_NE(tm.tm_sec, 0); + //ASSERT_NE(tm.tm_hour, 0); + //ASSERT_NE(tm.tm_min, 0); + //ASSERT_NE(tm.tm_sec, 0); } } \ No newline at end of file From 7a0f0dc7cda9044022b429ba8f716b7d8f237442 Mon Sep 17 00:00:00 2001 From: Nathan Miller Date: Fri, 10 May 2024 07:20:10 -0700 Subject: [PATCH 122/168] move 7z utilities install into main layer so its available in the container runtime --- Dockerfile | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/Dockerfile b/Dockerfile index 5c4cffd6..326a55c1 100644 --- a/Dockerfile +++ b/Dockerfile @@ -21,7 +21,6 @@ RUN apt-get update && \ pkg-config \ mono-complete \ linux-libc-dev \ - p7zip-full \ && \ apt-get clean && \ rm -rf /var/lib/apt/lists/* @@ -84,6 +83,17 @@ LABEL org.opencontainers.image.source=https://github.com/nam20485/OdbDesign \ EXPOSE 8888 +# install dependencies (7z command) +RUN apt-get update && \ + apt-get install -y -q --no-install-recommends \ + curl \ + apt-transport-https \ + ca-certificates \ + p7zip-full \ + && \ + apt-get clean && \ + rm -rf /var/lib/apt/lists/* + RUN mkdir --parents /OdbDesign/bin WORKDIR /OdbDesign From 3b2596e97897c4f968088a02bf5fe91264a2d305 Mon Sep 17 00:00:00 2001 From: Nathan Miller Date: Fri, 10 May 2024 07:25:09 -0700 Subject: [PATCH 123/168] move 7z command test to main layer --- Dockerfile | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Dockerfile b/Dockerfile index 326a55c1..af7e6f78 100644 --- a/Dockerfile +++ b/Dockerfile @@ -25,9 +25,6 @@ RUN apt-get update && \ apt-get clean && \ rm -rf /var/lib/apt/lists/* -# test 7z install -RUN 7z -h - # install vcpkg ENV VCPKG_ROOT=/root/src/github/microsoft/vcpkg RUN git clone https://github.com/Microsoft/vcpkg.git ${VCPKG_ROOT} @@ -94,6 +91,9 @@ RUN apt-get update && \ apt-get clean && \ rm -rf /var/lib/apt/lists/* +# test 7z install +RUN 7z -h + RUN mkdir --parents /OdbDesign/bin WORKDIR /OdbDesign From 7fdf29380a10d115aaa09895af461db979e1b552 Mon Sep 17 00:00:00 2001 From: Nathan Miller Date: Fri, 10 May 2024 09:16:55 -0700 Subject: [PATCH 124/168] change description in Docker attributes --- Dockerfile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Dockerfile b/Dockerfile index af7e6f78..f00271cf 100644 --- a/Dockerfile +++ b/Dockerfile @@ -72,7 +72,7 @@ FROM --platform=$BUILDPLATFORM debian:bookworm-20240408-slim@sha256:3d5df9258846 # ARG ODBDESIGN_SERVER_REQUEST_PASSWORD="" LABEL org.opencontainers.image.source=https://github.com/nam20485/OdbDesign \ org.opencontainers.image.authors=https://github.com/nam20485 \ - org.opencontainers.image.description="A free open source cross-platform C++ library for parsing ODB++ Design archives and accessing their data. Exposed via a REST API and packaged inside of a Docker image. The OdbDesign Docker image runs the OdbDesignServer REST API server executable, listening on port 8888." \ + org.opencontainers.image.description="A free open source cross-platform C++ library for parsing ODB++ Design archives and accessing their data. Exposed via a REST API packaged inside of a Docker image. The OdbDesign Docker image runs the OdbDesignServer REST API server executable, listening on port 8888." \ org.opencontainers.image.licenses=MIT \ org.opencontainers.image.url=https://nam20485.github.io/OdbDesign \ org.opencontainers.image.documentation=https://github.com/nam20485/OdbDesign?tab=readme-ov-file \ From 791bd021b377798551376928fca52b31a600cef7 Mon Sep 17 00:00:00 2001 From: Nathan Miller Date: Fri, 10 May 2024 09:17:40 -0700 Subject: [PATCH 125/168] make hiding 7z command output a class member constant --- Utils/ArchiveExtractor.cpp | 3 +-- Utils/ArchiveExtractor.h | 2 ++ 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/Utils/ArchiveExtractor.cpp b/Utils/ArchiveExtractor.cpp index 71e31bb1..93075fb1 100644 --- a/Utils/ArchiveExtractor.cpp +++ b/Utils/ArchiveExtractor.cpp @@ -73,8 +73,7 @@ namespace Utils << " -y" // yes to all prompts << " -aoa"; // overwrite all - const auto silent = true; - if (silent) + if (HIDE_7Z_COMMAND_OUTPUT) { bool isWindows = true; if (isWindows) diff --git a/Utils/ArchiveExtractor.h b/Utils/ArchiveExtractor.h index 8b288a09..2c325cd7 100644 --- a/Utils/ArchiveExtractor.h +++ b/Utils/ArchiveExtractor.h @@ -55,5 +55,7 @@ namespace Utils static inline const std::vector LZMA_FILE_EXTENSIONS = { ".Z", ".z", ".lzma", ".lz" }; + constexpr static inline bool HIDE_7Z_COMMAND_OUTPUT = true; + }; } From 9c6dbe3ef0a02377f13efadc02432af10f115620 Mon Sep 17 00:00:00 2001 From: Nathan Miller Date: Fri, 10 May 2024 09:18:06 -0700 Subject: [PATCH 126/168] use macros for IS_WINDOWS --- Utils/ArchiveExtractor.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Utils/ArchiveExtractor.cpp b/Utils/ArchiveExtractor.cpp index 93075fb1..b45fc2a1 100644 --- a/Utils/ArchiveExtractor.cpp +++ b/Utils/ArchiveExtractor.cpp @@ -7,6 +7,7 @@ #include #include #include +#include "macros.h" using namespace std::filesystem; @@ -75,8 +76,7 @@ namespace Utils if (HIDE_7Z_COMMAND_OUTPUT) { - bool isWindows = true; - if (isWindows) + if (Utils::IsWindows()) { ss << " >$null 2>&1"; } @@ -92,7 +92,7 @@ namespace Utils auto exitCode = std::system(command.c_str()); -#if defined(__linux__) || defined(__apple__) +#if !IS_WINDOWS exitCode = WEXITSTATUS(exitCode); #endif From 483930d351c58002cb39a8869f35de493acb1260 Mon Sep 17 00:00:00 2001 From: Nathan Miller Date: Fri, 10 May 2024 09:18:41 -0700 Subject: [PATCH 127/168] print current directory on 7z command failure --- Utils/ArchiveExtractor.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/Utils/ArchiveExtractor.cpp b/Utils/ArchiveExtractor.cpp index b45fc2a1..3ede3116 100644 --- a/Utils/ArchiveExtractor.cpp +++ b/Utils/ArchiveExtractor.cpp @@ -100,6 +100,7 @@ namespace Utils exitCode != static_cast(e7zExitCode::Warning)) { auto message = "7z command failed (exit code = " + std::to_string(exitCode) + ")"; + message += ", cwd: [" + current_path().string() + "]"; logerror(message); throw std::runtime_error(message.c_str()); //return false; From 2bc951bd438960e70906007b933fb22cb2892e48 Mon Sep 17 00:00:00 2001 From: Nathan Miller Date: Fri, 10 May 2024 09:18:47 -0700 Subject: [PATCH 128/168] white space --- Utils/ArchiveExtractor.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Utils/ArchiveExtractor.cpp b/Utils/ArchiveExtractor.cpp index 3ede3116..7ee00ff5 100644 --- a/Utils/ArchiveExtractor.cpp +++ b/Utils/ArchiveExtractor.cpp @@ -71,8 +71,8 @@ namespace Utils ss << "7z" << " x " /*<< '"'*/ << m_path /*<< '"'*/ // extract w/ full paths and archive path << " -o" /*<< '"'*/ << destinationPath /*<< '"'*/ // output path - << " -y" // yes to all prompts - << " -aoa"; // overwrite all + << " -y" // yes to all prompts + << " -aoa"; // overwrite all if (HIDE_7Z_COMMAND_OUTPUT) { From 2ddf6c32ac86ba891bf053d1620c5373e7119f61 Mon Sep 17 00:00:00 2001 From: Nathan Miller Date: Fri, 10 May 2024 11:38:34 -0700 Subject: [PATCH 129/168] add header #include --- Utils/ArchiveExtractor.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/Utils/ArchiveExtractor.cpp b/Utils/ArchiveExtractor.cpp index 7ee00ff5..05cfba54 100644 --- a/Utils/ArchiveExtractor.cpp +++ b/Utils/ArchiveExtractor.cpp @@ -8,6 +8,7 @@ #include #include #include "macros.h" +#include using namespace std::filesystem; From 38894ff215cbd161ab34ea13451b08913725734e Mon Sep 17 00:00:00 2001 From: Nathan Miller Date: Fri, 10 May 2024 12:30:40 -0700 Subject: [PATCH 130/168] add header #includes --- OdbDesignServer/Controllers/FileModelController.cpp | 4 ++++ Utils/JsonCrowReturnable.h | 1 + Utils/crow_win.h | 3 +++ 3 files changed, 8 insertions(+) diff --git a/OdbDesignServer/Controllers/FileModelController.cpp b/OdbDesignServer/Controllers/FileModelController.cpp index cf0f977b..10256761 100644 --- a/OdbDesignServer/Controllers/FileModelController.cpp +++ b/OdbDesignServer/Controllers/FileModelController.cpp @@ -3,6 +3,10 @@ #include "UrlEncoding.h" #include #include +#include +#include +#include "crow_win.h" +#include "App/RouteController.h" using namespace Odb::Lib::App; diff --git a/Utils/JsonCrowReturnable.h b/Utils/JsonCrowReturnable.h index aeb227d5..c9608cfc 100644 --- a/Utils/JsonCrowReturnable.h +++ b/Utils/JsonCrowReturnable.h @@ -2,6 +2,7 @@ #include "IJsonable.h" #include "CrowReturnable.h" +#include namespace Utils { diff --git a/Utils/crow_win.h b/Utils/crow_win.h index c4670974..62b131fc 100644 --- a/Utils/crow_win.h +++ b/Utils/crow_win.h @@ -7,6 +7,9 @@ #include "win.h" #include "crow.h" #include "crow/middlewares/cors.h" +#include "crow/app.h" +#include "crow/http_request.h" +#include "crow/http_response.h" using CrowApp = crow::Crow; \ No newline at end of file From 8bb3c35908e44d65f64fac7d5b27aeeca07f9c96 Mon Sep 17 00:00:00 2001 From: Nathan Miller Date: Sat, 11 May 2024 15:29:32 -0700 Subject: [PATCH 131/168] default to not include FileArchive member in Design and add support for 'include_filarchive' query param --- OdbDesignLib/ProductModel/Design.cpp | 20 ++++++++++++-- OdbDesignLib/ProductModel/Design.h | 24 ++++++++++------- .../Controllers/DesignsController.cpp | 27 +++++++++++-------- .../Controllers/DesignsController.h | 2 +- 4 files changed, 50 insertions(+), 23 deletions(-) diff --git a/OdbDesignLib/ProductModel/Design.cpp b/OdbDesignLib/ProductModel/Design.cpp index 0477f560..bc82e73f 100644 --- a/OdbDesignLib/ProductModel/Design.cpp +++ b/OdbDesignLib/ProductModel/Design.cpp @@ -1,8 +1,11 @@ -#include +#include "Design.h" #include "Design.h" #include "Package.h" #include "Logger.h" #include "../enums.h" +#include "Part.h" +#include +#include "Net.h" namespace Odb::Lib::ProductModel @@ -128,6 +131,11 @@ namespace Odb::Lib::ProductModel //if (! BuildNoneNet()) return false; //if (! BreakSinglePinNets()) return false; + if (CLIP_FILEMODEL_AFTER_BUILD) + { + ClipFileModel(); + } + return true; } @@ -136,13 +144,21 @@ namespace Odb::Lib::ProductModel return m_pFileModel; } + void Design::ClipFileModel() + { + m_pFileModel = nullptr; + } + std::unique_ptr Design::to_protobuf() const { auto pDesignMsg = std::make_unique(); pDesignMsg->set_name(m_name); pDesignMsg->set_productmodel(m_productModel); - pDesignMsg->mutable_filemodel()->CopyFrom(*m_pFileModel->to_protobuf()); + if (m_pFileModel != nullptr) + { + pDesignMsg->mutable_filemodel()->CopyFrom(*m_pFileModel->to_protobuf()); + } for (const auto& pNet : m_nets) { diff --git a/OdbDesignLib/ProductModel/Design.h b/OdbDesignLib/ProductModel/Design.h index ab552113..4fa24277 100644 --- a/OdbDesignLib/ProductModel/Design.h +++ b/OdbDesignLib/ProductModel/Design.h @@ -5,18 +5,21 @@ #include #include "Net.h" #include "Component.h" -#include "../FileModel/Design/FileArchive.h" -#include "Via.h" #include "Package.h" #include "Part.h" -//#include "../FileModel/Design/StepDirectory.h" #include "../ProtoBuf/design.pb.h" #include "../IProtoBuffable.h" +#include +#include +#include "../FileModel/Design/StepDirectory.h" +#include "../FileModel/Design/EdaDataFile.h" +#include "../FileModel/Design/ComponentsFile.h" +#include "../FileModel/Design/FileArchive.h" namespace Odb::Lib::ProductModel { - class ODBDESIGN_EXPORT Design : public IProtoBuffable + class ODBDESIGN_EXPORT Design : public IProtoBuffable { public: Design(); @@ -45,10 +48,11 @@ namespace Odb::Lib::ProductModel bool Build(std::shared_ptr pFileModel); std::shared_ptr GetFileModel() const; + void ClipFileModel(); // Inherited via IProtoBuffable - std::unique_ptr to_protobuf() const override; - void from_protobuf(const Odb::Lib::Protobuf::ProductModel::Design& message) override; + std::unique_ptr to_protobuf() const override; + void from_protobuf(const Protobuf::ProductModel::Design& message) override; typedef std::vector> Vector; typedef std::map> StringMap; @@ -74,13 +78,13 @@ namespace Odb::Lib::ProductModel bool BuildNets(); bool BuildPackages(); bool BuildAllParts(); - bool BuildParts(const Odb::Lib::FileModel::Design::ComponentsFile* pComponentsFile); + bool BuildParts(const FileModel::Design::ComponentsFile* pComponentsFile); bool BuildAllComponents(); - bool BuildComponents(const Odb::Lib::FileModel::Design::ComponentsFile* pComponentsFile); + bool BuildComponents(const FileModel::Design::ComponentsFile* pComponentsFile); bool BuildVias(); bool BuildPlacementsFromComponentsFiles(); - bool BuildPlacementsFromComponentsFile(const Odb::Lib::FileModel::Design::ComponentsFile* pComponentsFile); + bool BuildPlacementsFromComponentsFile(const FileModel::Design::ComponentsFile* pComponentsFile); bool BuildPlacementsFromEdaDataFile(); @@ -93,5 +97,7 @@ namespace Odb::Lib::ProductModel constexpr inline static const char* NONE_NET_NAME = "$NONE$"; + constexpr inline static bool CLIP_FILEMODEL_AFTER_BUILD = false; + }; } diff --git a/OdbDesignServer/Controllers/DesignsController.cpp b/OdbDesignServer/Controllers/DesignsController.cpp index cc9157f0..3f918ff5 100644 --- a/OdbDesignServer/Controllers/DesignsController.cpp +++ b/OdbDesignServer/Controllers/DesignsController.cpp @@ -161,26 +161,31 @@ namespace Odb::App::Server if (designNameDecoded.empty()) { return crow::response(crow::status::BAD_REQUEST, "design name not specified"); + } + + auto pDesign = m_serverApp.designs().GetDesign(designNameDecoded); + if (pDesign == nullptr) + { + std::stringstream ss; + ss << "design: \"" << designNameDecoded << "\" not found"; + return crow::response(crow::status::NOT_FOUND, ss.str()); } // TODO: use excludeFileArchive - bool excludeFileArchive = false; - auto szExcludeFileArchive = req.url_params.get(kszExcludeFileArchiveQueryParamName); - if (szExcludeFileArchive != nullptr) + bool includeFileArchive = false; + auto szIncludeFileArchive = req.url_params.get(kszIncludeFileArchiveQueryParamName); + if (szIncludeFileArchive != nullptr) { - if (std::strcmp(szExcludeFileArchive, "true") == 0 || - std::strcmp(szExcludeFileArchive, "yes") == 0) + if (std::strcmp(szIncludeFileArchive, "true") == 0 || + std::strcmp(szIncludeFileArchive, "yes") == 0) { - excludeFileArchive = true; + includeFileArchive = true; } } - auto pDesign = m_serverApp.designs().GetDesign(designNameDecoded); - if (pDesign == nullptr) + if (!includeFileArchive) { - std::stringstream ss; - ss << "design: \"" << designNameDecoded << "\" not found"; - return crow::response(crow::status::NOT_FOUND, ss.str()); + pDesign->ClipFileModel(); } return crow::response(JsonCrowReturnable(*pDesign)); diff --git a/OdbDesignServer/Controllers/DesignsController.h b/OdbDesignServer/Controllers/DesignsController.h index 42b30262..6561379d 100644 --- a/OdbDesignServer/Controllers/DesignsController.h +++ b/OdbDesignServer/Controllers/DesignsController.h @@ -13,7 +13,7 @@ namespace Odb::App::Server // Inherited via RouteController void register_routes() override; - constexpr inline static const char* kszExcludeFileArchiveQueryParamName = "exclude_filearchive"; + constexpr inline static const char* kszIncludeFileArchiveQueryParamName = "include_filearchive"; private: From 4955c9e8762d92be77f66e457701b98b7931002e Mon Sep 17 00:00:00 2001 From: Nathan Miller Date: Sun, 12 May 2024 14:51:39 -0700 Subject: [PATCH 132/168] use designName (filename) for names in DesignCache --- OdbDesignLib/App/DesignCache.cpp | 12 ++++++++---- OdbDesignLib/ProductModel/Design.cpp | 4 ++++ 2 files changed, 12 insertions(+), 4 deletions(-) diff --git a/OdbDesignLib/App/DesignCache.cpp b/OdbDesignLib/App/DesignCache.cpp index 0da21e12..db3ce4c1 100644 --- a/OdbDesignLib/App/DesignCache.cpp +++ b/OdbDesignLib/App/DesignCache.cpp @@ -9,6 +9,10 @@ #include "../FileModel/Design/FileArchive.h" #include #include "../ProductModel/Design.h" +#include +#include +#include +#include using namespace Utils; using namespace std::filesystem; @@ -91,7 +95,7 @@ namespace Odb::Lib::App std::vector loadedDesigns; for (const auto& kv : m_designsByName) { - loadedDesigns.push_back(kv.second->GetFileModel()->GetProductName()); + loadedDesigns.push_back(kv.first); } return loadedDesigns; } @@ -101,7 +105,7 @@ namespace Odb::Lib::App std::vector loadedFileArchives; for (const auto& kv : m_fileArchivesByName) { - loadedFileArchives.push_back(kv.second->GetProductName()); + loadedFileArchives.push_back(kv.first); } return loadedFileArchives; } @@ -274,7 +278,7 @@ namespace Odb::Lib::App if (pDesign->Build(pFileModel)) { // overwrite any existing design with the same name - m_designsByName[pFileModel->GetProductName()] = pDesign; + m_designsByName[designName] = pDesign; return pDesign; } else @@ -313,7 +317,7 @@ namespace Odb::Lib::App if (pFileArchive->ParseFileModel()) { // overwrite any existing file archive with the same name - m_fileArchivesByName[pFileArchive->GetProductName()] = pFileArchive; + m_fileArchivesByName[designName] = pFileArchive; return pFileArchive; } else diff --git a/OdbDesignLib/ProductModel/Design.cpp b/OdbDesignLib/ProductModel/Design.cpp index bc82e73f..823225b0 100644 --- a/OdbDesignLib/ProductModel/Design.cpp +++ b/OdbDesignLib/ProductModel/Design.cpp @@ -6,6 +6,7 @@ #include "Part.h" #include #include "Net.h" +#include "../FileModel/Design/FileArchive.h" namespace Odb::Lib::ProductModel @@ -118,6 +119,9 @@ namespace Odb::Lib::ProductModel m_pFileModel = pFileModel; + //m_productModel = m_pFileModel->GetProductName(); + //m_name = m_pFileModel->GetProductName(); + // atomic elements if (! BuildNets()) return false; if (! BuildPackages()) return false; From be6081992df356dd677e3f2525066d1356910e92 Mon Sep 17 00:00:00 2001 From: Nathan Miller Date: Sun, 12 May 2024 14:52:10 -0700 Subject: [PATCH 133/168] split designs and filarchives apart in makeLoadedDisgnsResponse() --- OdbDesignLib/App/RouteController.cpp | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/OdbDesignLib/App/RouteController.cpp b/OdbDesignLib/App/RouteController.cpp index c658f933..3341be60 100644 --- a/OdbDesignLib/App/RouteController.cpp +++ b/OdbDesignLib/App/RouteController.cpp @@ -52,8 +52,11 @@ namespace Odb::Lib::App for (const auto& designName : unloadedDesignNames) { auto loaded = false; - if (std::find(loadedFileArchiveNames.begin(), loadedFileArchiveNames.end(), designName) != loadedFileArchiveNames.end() || - std::find(loadedDesignNames.begin(), loadedDesignNames.end(), designName) != loadedDesignNames.end()) + if (std::find(loadedFileArchiveNames.begin(), loadedFileArchiveNames.end(), designName) != loadedFileArchiveNames.end()) + { + loaded = true; + } + else if (std::find(loadedDesignNames.begin(), loadedDesignNames.end(), designName) != loadedDesignNames.end()) { loaded = true; } From 3fb5eb474605863d195b8f05e6f7fc0ff6cbec19 Mon Sep 17 00:00:00 2001 From: Nathan Miller Date: Sun, 12 May 2024 15:03:56 -0700 Subject: [PATCH 134/168] add DesignType enum and EnumMap and add to /filemodels response --- OdbDesignLib/App/RouteController.cpp | 5 +++++ OdbDesignLib/enums.h | 15 +++++++++++++++ 2 files changed, 20 insertions(+) diff --git a/OdbDesignLib/App/RouteController.cpp b/OdbDesignLib/App/RouteController.cpp index 3341be60..f5485964 100644 --- a/OdbDesignLib/App/RouteController.cpp +++ b/OdbDesignLib/App/RouteController.cpp @@ -1,6 +1,7 @@ #include "RouteController.h" #include "RouteController.h" #include "RouteController.h" +#include "../enums.h" namespace Odb::Lib::App @@ -52,17 +53,21 @@ namespace Odb::Lib::App for (const auto& designName : unloadedDesignNames) { auto loaded = false; + auto designType = DesignType::FileArchive; if (std::find(loadedFileArchiveNames.begin(), loadedFileArchiveNames.end(), designName) != loadedFileArchiveNames.end()) { loaded = true; + designType = DesignType::FileArchive; } else if (std::find(loadedDesignNames.begin(), loadedDesignNames.end(), designName) != loadedDesignNames.end()) { loaded = true; + designType = DesignType::Design; } crow::json::wvalue design; design["name"] = designName; design["loaded"] = loaded; + design["type"] = designTypeMap.getValue(designType); designs.push_back(design); } crow::json::wvalue jsonResponse; diff --git a/OdbDesignLib/enums.h b/OdbDesignLib/enums.h index 53560c94..5f89b4c3 100644 --- a/OdbDesignLib/enums.h +++ b/OdbDesignLib/enums.h @@ -1,5 +1,7 @@ #pragma once +#include "EnumMap.h" + namespace Odb::Lib { enum class BoardSide @@ -27,4 +29,17 @@ namespace Odb::Lib Metric, Imperial }; + + enum class DesignType + { + FileArchive, + Design + }; + + static const Utils::EnumMap designTypeMap{ + { + "FileArchive", + "Design" + } + }; } From 87b2b519e0161aa360aa9afbf5886231299a73d8 Mon Sep 17 00:00:00 2001 From: Nathan Miller Date: Sun, 12 May 2024 15:38:30 -0700 Subject: [PATCH 135/168] include headers to fix compile error --- Utils/EnumMap.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Utils/EnumMap.h b/Utils/EnumMap.h index 3f0a8ffb..2b20d669 100644 --- a/Utils/EnumMap.h +++ b/Utils/EnumMap.h @@ -4,6 +4,8 @@ #include #include #include "str_utils.h" +#include +#include namespace Utils { From 0276281ee8b39e3c1e7e1fdc74fdb4272e346ab2 Mon Sep 17 00:00:00 2001 From: Nathan Miller Date: Sun, 12 May 2024 15:40:04 -0700 Subject: [PATCH 136/168] disable PCH on CI build --- OdbDesignLib/CMakeLists.txt | 6 ++++-- OdbDesignServer/CMakeLists.txt | 6 ++++-- OdbDesignTests/CMakeLists.txt | 6 ++++-- Utils/CMakeLists.txt | 6 ++++-- 4 files changed, 16 insertions(+), 8 deletions(-) diff --git a/OdbDesignLib/CMakeLists.txt b/OdbDesignLib/CMakeLists.txt index 497ed8d4..46171254 100644 --- a/OdbDesignLib/CMakeLists.txt +++ b/OdbDesignLib/CMakeLists.txt @@ -56,8 +56,10 @@ target_include_directories(OdbDesign $) # PCH -file (GLOB_RECURSE ODBDESIGN_HEADER_FILES "*.h") -target_precompile_headers(OdbDesign PRIVATE ${ODBDESIGN_HEADER_FILES}) +if (NOT DEFINED ENV{CI}) + file (GLOB_RECURSE ODBDESIGN_HEADER_FILES "*.h") + target_precompile_headers(OdbDesign PRIVATE ${ODBDESIGN_HEADER_FILES}) +endif() # link to zlib (required for Crow HTTP compression) find_package(ZLIB REQUIRED) diff --git a/OdbDesignServer/CMakeLists.txt b/OdbDesignServer/CMakeLists.txt index 0f9e4b69..74295c97 100644 --- a/OdbDesignServer/CMakeLists.txt +++ b/OdbDesignServer/CMakeLists.txt @@ -4,8 +4,10 @@ add_executable(OdbDesignServer "main.cpp" "Controllers/HelloWorldController.h" "Controllers/HelloWorldController.cpp" "OdbDesignServerApp.h" "OdbDesignServerApp.cpp" "OdbDesignServer.h" "Controllers/FileUploadController.h" "Controllers/FileUploadController.cpp" "Controllers/FileModelController.h" "Controllers/FileModelController.cpp" "Controllers/HealthCheckController.h" "Controllers/HealthCheckController.cpp" "Controllers/DesignsController.h" "Controllers/DesignsController.cpp") ## PCH -file (GLOB_RECURSE ODBDESIGN_SERVER_HEADER_FILES "*.h") -target_precompile_headers(OdbDesignServer PRIVATE ${ODBDESIGN_SERVER_HEADER_FILES}) +if (NOT DEFINED ENV{CI}) + file (GLOB_RECURSE ODBDESIGN_SERVER_HEADER_FILES "*.h") + target_precompile_headers(OdbDesignServer PRIVATE ${ODBDESIGN_SERVER_HEADER_FILES}) +endif() # link to OdbDesign library target_link_libraries(OdbDesignServer PRIVATE OdbDesign) diff --git a/OdbDesignTests/CMakeLists.txt b/OdbDesignTests/CMakeLists.txt index 37f444c3..14db579b 100644 --- a/OdbDesignTests/CMakeLists.txt +++ b/OdbDesignTests/CMakeLists.txt @@ -21,5 +21,7 @@ include(GoogleTest) gtest_discover_tests(OdbDesignTests) ## PCH -file (GLOB_RECURSE OdbDesignTests_HEADER_FILES "*.h") -target_precompile_headers(OdbDesignTests PRIVATE ${OdbDesignTests_HEADER_FILES}) \ No newline at end of file +if (NOT DEFINED ENV{CI}) + file (GLOB_RECURSE OdbDesignTests_HEADER_FILES "*.h") + target_precompile_headers(OdbDesignTests PRIVATE ${OdbDesignTests_HEADER_FILES}) +endif() \ No newline at end of file diff --git a/Utils/CMakeLists.txt b/Utils/CMakeLists.txt index 2f892b85..6d38928c 100644 --- a/Utils/CMakeLists.txt +++ b/Utils/CMakeLists.txt @@ -11,8 +11,10 @@ target_include_directories(Utils $) ## PCH -file (GLOB_RECURSE UTILS_HEADER_FILES "*.h") -target_precompile_headers(Utils PRIVATE ${UTILS_HEADER_FILES}) +if (NOT DEFINED ENV{CI}) + file (GLOB_RECURSE UTILS_HEADER_FILES "*.h") + target_precompile_headers(Utils PRIVATE ${UTILS_HEADER_FILES}) +endif() # Link to LibArchive find_package(LibArchive REQUIRED) From 1572c4602b4902960398f248a46e917cb05586af Mon Sep 17 00:00:00 2001 From: Nathan Miller Date: Sun, 12 May 2024 15:48:01 -0700 Subject: [PATCH 137/168] remove DesignType enum and EnumMap --- OdbDesignLib/App/RouteController.cpp | 8 ++++---- OdbDesignLib/enums.h | 11 +---------- 2 files changed, 5 insertions(+), 14 deletions(-) diff --git a/OdbDesignLib/App/RouteController.cpp b/OdbDesignLib/App/RouteController.cpp index f5485964..1590c14c 100644 --- a/OdbDesignLib/App/RouteController.cpp +++ b/OdbDesignLib/App/RouteController.cpp @@ -53,21 +53,21 @@ namespace Odb::Lib::App for (const auto& designName : unloadedDesignNames) { auto loaded = false; - auto designType = DesignType::FileArchive; + auto isDesign = false; if (std::find(loadedFileArchiveNames.begin(), loadedFileArchiveNames.end(), designName) != loadedFileArchiveNames.end()) { loaded = true; - designType = DesignType::FileArchive; + isDesign = false; } else if (std::find(loadedDesignNames.begin(), loadedDesignNames.end(), designName) != loadedDesignNames.end()) { loaded = true; - designType = DesignType::Design; + isDesign = true; } crow::json::wvalue design; design["name"] = designName; design["loaded"] = loaded; - design["type"] = designTypeMap.getValue(designType); + design["type"] = isDesign? "Design" : "FileArchive"; designs.push_back(design); } crow::json::wvalue jsonResponse; diff --git a/OdbDesignLib/enums.h b/OdbDesignLib/enums.h index 5f89b4c3..d91fce32 100644 --- a/OdbDesignLib/enums.h +++ b/OdbDesignLib/enums.h @@ -1,7 +1,5 @@ #pragma once -#include "EnumMap.h" - namespace Odb::Lib { enum class BoardSide @@ -34,12 +32,5 @@ namespace Odb::Lib { FileArchive, Design - }; - - static const Utils::EnumMap designTypeMap{ - { - "FileArchive", - "Design" - } - }; + }; } From e6ef07dd57efd7cbffbf89a0b19def6fbe136f24 Mon Sep 17 00:00:00 2001 From: Nathan Miller Date: Sun, 12 May 2024 15:57:56 -0700 Subject: [PATCH 138/168] remove include --- OdbDesignLib/App/RouteController.cpp | 3 --- 1 file changed, 3 deletions(-) diff --git a/OdbDesignLib/App/RouteController.cpp b/OdbDesignLib/App/RouteController.cpp index 1590c14c..2a05d6ce 100644 --- a/OdbDesignLib/App/RouteController.cpp +++ b/OdbDesignLib/App/RouteController.cpp @@ -1,7 +1,4 @@ #include "RouteController.h" -#include "RouteController.h" -#include "RouteController.h" -#include "../enums.h" namespace Odb::Lib::App From 92c16ef757829dcab55a5fc683e0f8cff823d999 Mon Sep 17 00:00:00 2001 From: Nathan Miller Date: Mon, 13 May 2024 11:47:35 -0700 Subject: [PATCH 139/168] add DLL export specification to interfaces --- OdbDesignLib/FileModel/ISaveable.h | 2 +- OdbDesignLib/FileModel/IStreamSaveable.h | 3 +-- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/OdbDesignLib/FileModel/ISaveable.h b/OdbDesignLib/FileModel/ISaveable.h index e1436579..4076208a 100644 --- a/OdbDesignLib/FileModel/ISaveable.h +++ b/OdbDesignLib/FileModel/ISaveable.h @@ -5,7 +5,7 @@ namespace Odb::Lib::FileModel { - class ISaveable + class ODBDESIGN_EXPORT ISaveable { public: virtual bool Save(const std::filesystem::path& directory) = 0; diff --git a/OdbDesignLib/FileModel/IStreamSaveable.h b/OdbDesignLib/FileModel/IStreamSaveable.h index 6ffd2696..410cafce 100644 --- a/OdbDesignLib/FileModel/IStreamSaveable.h +++ b/OdbDesignLib/FileModel/IStreamSaveable.h @@ -1,12 +1,11 @@ #pragma once -//#include #include #include "../odbdesign_export.h" namespace Odb::Lib::FileModel { - class IStreamSaveable + class ODBDESIGN_EXPORT IStreamSaveable { public: virtual bool Save(std::ostream& os) = 0; From 1fdff3dbced2c9118aec43834c2ba18ea6416053 Mon Sep 17 00:00:00 2001 From: Nathan Miller Date: Mon, 13 May 2024 11:48:39 -0700 Subject: [PATCH 140/168] remove unused using --- OdbDesignLib/App/BasicRequestAuthentication.cpp | 2 -- OdbDesignTests/ArchiveExtractorTests.cpp | 2 +- 2 files changed, 1 insertion(+), 3 deletions(-) diff --git a/OdbDesignLib/App/BasicRequestAuthentication.cpp b/OdbDesignLib/App/BasicRequestAuthentication.cpp index 7191b6c1..80317684 100644 --- a/OdbDesignLib/App/BasicRequestAuthentication.cpp +++ b/OdbDesignLib/App/BasicRequestAuthentication.cpp @@ -3,8 +3,6 @@ #include #include "RequestAuthenticationBase.h" -using namespace Utils; - namespace Odb::Lib::App { BasicRequestAuthentication::BasicRequestAuthentication(bool disableAuthentication) diff --git a/OdbDesignTests/ArchiveExtractorTests.cpp b/OdbDesignTests/ArchiveExtractorTests.cpp index d7ad11ca..52659030 100644 --- a/OdbDesignTests/ArchiveExtractorTests.cpp +++ b/OdbDesignTests/ArchiveExtractorTests.cpp @@ -5,7 +5,7 @@ #include //using namespace Odb::Lib::App; -using namespace Odb::Lib::FileModel; +//using namespace Odb::Lib::FileModel; using namespace Odb::Test::Fixtures; using namespace std::filesystem; using namespace Utils; From f372f4907aa56b90e40b36230625ca098a2247a9 Mon Sep 17 00:00:00 2001 From: Nathan Miller Date: Mon, 13 May 2024 11:49:15 -0700 Subject: [PATCH 141/168] add missing header #includes that were obfuscated from use of PCH --- Utils/CrossPlatform.h | 2 ++ Utils/FileReader.cpp | 2 +- Utils/libarchive_extract.h | 1 + 3 files changed, 4 insertions(+), 1 deletion(-) diff --git a/Utils/CrossPlatform.h b/Utils/CrossPlatform.h index 2bc94147..e0ab5731 100644 --- a/Utils/CrossPlatform.h +++ b/Utils/CrossPlatform.h @@ -3,6 +3,8 @@ //#include #include "utils_export.h" #include +#include +#include namespace Utils { diff --git a/Utils/FileReader.cpp b/Utils/FileReader.cpp index 47833149..906930ca 100644 --- a/Utils/FileReader.cpp +++ b/Utils/FileReader.cpp @@ -3,7 +3,7 @@ #include #include #include -#include +#include using namespace std::filesystem; diff --git a/Utils/libarchive_extract.h b/Utils/libarchive_extract.h index a1badeea..e1d8f5e2 100644 --- a/Utils/libarchive_extract.h +++ b/Utils/libarchive_extract.h @@ -1,6 +1,7 @@ #pragma once #include "utils_export.h" +#include namespace Utils { From a31948e57394fb95198ddacb83b97e3482e70124 Mon Sep 17 00:00:00 2001 From: Nathan Miller Date: Mon, 13 May 2024 11:55:09 -0700 Subject: [PATCH 142/168] add transitive header #includes --- OdbDesignTests/ProtobufSerializationTests.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/OdbDesignTests/ProtobufSerializationTests.cpp b/OdbDesignTests/ProtobufSerializationTests.cpp index 8a8d4bd9..943d5076 100644 --- a/OdbDesignTests/ProtobufSerializationTests.cpp +++ b/OdbDesignTests/ProtobufSerializationTests.cpp @@ -1,6 +1,10 @@ #include #include "Fixtures/FileArchiveLoadFixture.h" #include +#include "FileModel/Design/FileArchive.h" +#include +#include "ProductModel/Component.h" +#include "ProductModel/Design.h" //using namespace Odb::Lib::App; From 9bd1287d99f240f1c72f320c6ac241f64a84c22b Mon Sep 17 00:00:00 2001 From: Nathan Miller Date: Mon, 13 May 2024 12:20:49 -0700 Subject: [PATCH 143/168] add transitive header #includes and use const& for std::string parameters --- OdbDesignLib/ProductModel/Component.cpp | 16 +++++++++++----- OdbDesignLib/ProductModel/Component.h | 7 +++---- OdbDesignLib/ProductModel/Net.cpp | 7 ++++++- OdbDesignLib/ProductModel/Net.h | 2 +- OdbDesignLib/ProductModel/Package.cpp | 8 +++++--- OdbDesignLib/ProductModel/Package.h | 6 +++--- OdbDesignLib/ProductModel/Part.cpp | 4 +++- OdbDesignLib/ProductModel/Part.h | 6 +++--- OdbDesignLib/ProductModel/Pin.cpp | 5 ++++- OdbDesignLib/ProductModel/Pin.h | 2 +- OdbDesignLib/ProductModel/PinConnection.cpp | 9 +++++++-- OdbDesignLib/ProductModel/PinConnection.h | 2 +- OdbDesignLib/ProductModel/Via.cpp | 4 ++++ 13 files changed, 52 insertions(+), 26 deletions(-) diff --git a/OdbDesignLib/ProductModel/Component.cpp b/OdbDesignLib/ProductModel/Component.cpp index ef861045..3e943f53 100644 --- a/OdbDesignLib/ProductModel/Component.cpp +++ b/OdbDesignLib/ProductModel/Component.cpp @@ -1,9 +1,15 @@ #include "Component.h" +#include "../ProtoBuf/component.pb.h" +#include "../ProtoBuf/enums.pb.h" +#include +#include +#include "../enums.h" +#include "Part.h" namespace Odb::Lib::ProductModel { - Component::Component(std::string refDes, std::string partName, std::shared_ptr pPackage, unsigned int index, BoardSide side, std::shared_ptr pPart) + Component::Component(const std::string& refDes, const std::string& partName, std::shared_ptr pPackage, unsigned int index, BoardSide side, std::shared_ptr pPart) : m_refDes(refDes) , m_partName(partName) , m_pPackage(pPackage) @@ -71,9 +77,9 @@ namespace Odb::Lib::ProductModel m_pPart->from_protobuf(message.part()); } - Component* Component::MakeEmpty() - { - return new Component(); - } + //Component* Component::MakeEmpty() + //{ + // return new Component(); + //} } // namespace Odb::Lib::ProductModel \ No newline at end of file diff --git a/OdbDesignLib/ProductModel/Component.h b/OdbDesignLib/ProductModel/Component.h index 2152bf60..c4f6ddab 100644 --- a/OdbDesignLib/ProductModel/Component.h +++ b/OdbDesignLib/ProductModel/Component.h @@ -18,7 +18,8 @@ namespace Odb::Lib::ProductModel class ODBDESIGN_EXPORT Component : public IProtoBuffable { public: - Component(std::string refDes, std::string partName, std::shared_ptr pPackage, unsigned int index, BoardSide side, std::shared_ptr pPart); + Component() = default; + Component(const std::string& refDes, const std::string& partName, std::shared_ptr pPackage, unsigned int index, BoardSide side, std::shared_ptr pPart); ~Component(); std::string GetRefDes() const; @@ -32,14 +33,12 @@ namespace Odb::Lib::ProductModel std::unique_ptr to_protobuf() const override; void from_protobuf(const Odb::Lib::Protobuf::ProductModel::Component& message) override; - static Component* MakeEmpty(); + //static Component* MakeEmpty(); typedef std::vector> Vector; typedef std::map> StringMap; private: - Component() = default; - std::string m_refDes; std::string m_partName; std::shared_ptr m_pPackage; diff --git a/OdbDesignLib/ProductModel/Net.cpp b/OdbDesignLib/ProductModel/Net.cpp index d93a75c3..56220c5f 100644 --- a/OdbDesignLib/ProductModel/Net.cpp +++ b/OdbDesignLib/ProductModel/Net.cpp @@ -1,9 +1,14 @@ #include "Net.h" +#include +#include "Component.h" +#include "Pin.h" +#include "../ProtoBuf/net.pb.h" +#include namespace Odb::Lib::ProductModel { - Net::Net(std::string name, unsigned int index) + Net::Net(const std::string& name, unsigned int index) : m_name(name) , m_index(index) { diff --git a/OdbDesignLib/ProductModel/Net.h b/OdbDesignLib/ProductModel/Net.h index 26d32798..cc3ce533 100644 --- a/OdbDesignLib/ProductModel/Net.h +++ b/OdbDesignLib/ProductModel/Net.h @@ -17,7 +17,7 @@ namespace Odb::Lib::ProductModel class ODBDESIGN_EXPORT Net : public IProtoBuffable { public: - Net(std::string name, unsigned int index); + Net(const std::string& name, unsigned int index); ~Net(); std::string GetName() const; diff --git a/OdbDesignLib/ProductModel/Package.cpp b/OdbDesignLib/ProductModel/Package.cpp index 4ca02c57..b9df375c 100644 --- a/OdbDesignLib/ProductModel/Package.cpp +++ b/OdbDesignLib/ProductModel/Package.cpp @@ -1,8 +1,10 @@ #include "Package.h" +#include +#include "../ProtoBuf/package.pb.h" namespace Odb::Lib::ProductModel { - Package::Package(std::string name, unsigned int index) + Package::Package(const std::string& name, unsigned int index) : m_name(name) , m_index(index) { @@ -63,7 +65,7 @@ namespace Odb::Lib::ProductModel return m_index; } - void Package::AddPin(std::string name) + void Package::AddPin(const std::string& name) { auto index = static_cast(m_pins.size()); auto pPin = std::make_shared(name, index); @@ -71,7 +73,7 @@ namespace Odb::Lib::ProductModel m_pinsByName[pPin->GetName()] = pPin; } - std::shared_ptr Package::GetPin(std::string name) const + std::shared_ptr Package::GetPin(const std::string& name) const { auto findIt = m_pinsByName.find(name); if (findIt != m_pinsByName.end()) diff --git a/OdbDesignLib/ProductModel/Package.h b/OdbDesignLib/ProductModel/Package.h index f3219c64..0c00905e 100644 --- a/OdbDesignLib/ProductModel/Package.h +++ b/OdbDesignLib/ProductModel/Package.h @@ -15,14 +15,14 @@ namespace Odb::Lib::ProductModel class ODBDESIGN_EXPORT Package : public IProtoBuffable { public: - Package(std::string name, unsigned int index); + Package(const std::string& name, unsigned int index); ~Package(); std::string GetName() const; unsigned int GetIndex() const; - void AddPin(std::string name); - std::shared_ptr GetPin(std::string name) const; + void AddPin(const std::string& name); + std::shared_ptr GetPin(const std::string& name) const; std::shared_ptr GetPin(unsigned int index) const; const Pin::StringMap& GetPinsByName() const; const Pin::Vector& GetPins() const; diff --git a/OdbDesignLib/ProductModel/Part.cpp b/OdbDesignLib/ProductModel/Part.cpp index 3391abf3..d4148684 100644 --- a/OdbDesignLib/ProductModel/Part.cpp +++ b/OdbDesignLib/ProductModel/Part.cpp @@ -1,8 +1,10 @@ #include "Part.h" +#include +#include "../ProtoBuf/part.pb.h" namespace Odb::Lib::ProductModel { - Part::Part(std::string name) + Part::Part(const std::string& name) : m_name(name) { } diff --git a/OdbDesignLib/ProductModel/Part.h b/OdbDesignLib/ProductModel/Part.h index 6455a677..f1811149 100644 --- a/OdbDesignLib/ProductModel/Part.h +++ b/OdbDesignLib/ProductModel/Part.h @@ -13,9 +13,9 @@ namespace Odb::Lib::ProductModel class ODBDESIGN_EXPORT Part : public IProtoBuffable { public: - Part(std::string name); + Part(const std::string& name); - std::string GetName() const; + std::string GetName() const; typedef std::vector> Vector; typedef std::map> StringMap; @@ -25,7 +25,7 @@ namespace Odb::Lib::ProductModel void from_protobuf(const Odb::Lib::Protobuf::ProductModel::Part& message) override; private: - std::string m_name; + std::string m_name; }; } diff --git a/OdbDesignLib/ProductModel/Pin.cpp b/OdbDesignLib/ProductModel/Pin.cpp index cce23069..74efbe69 100644 --- a/OdbDesignLib/ProductModel/Pin.cpp +++ b/OdbDesignLib/ProductModel/Pin.cpp @@ -1,8 +1,11 @@ #include "Pin.h" +#include +#include +#include "../ProtoBuf/pin.pb.h" namespace Odb::Lib::ProductModel { - Pin::Pin(std::string name, unsigned int index) + Pin::Pin(const std::string& name, unsigned int index) : m_name(name) , m_index(index) { diff --git a/OdbDesignLib/ProductModel/Pin.h b/OdbDesignLib/ProductModel/Pin.h index 97272df5..bf6b7fd8 100644 --- a/OdbDesignLib/ProductModel/Pin.h +++ b/OdbDesignLib/ProductModel/Pin.h @@ -14,7 +14,7 @@ namespace Odb::Lib::ProductModel class ODBDESIGN_EXPORT Pin : public IProtoBuffable { public: - Pin(std::string name, unsigned int index); + Pin(const std::string& name, unsigned int index); //~Pin(); std::string GetName() const; diff --git a/OdbDesignLib/ProductModel/PinConnection.cpp b/OdbDesignLib/ProductModel/PinConnection.cpp index 7afa9ef3..fe47a7f6 100644 --- a/OdbDesignLib/ProductModel/PinConnection.cpp +++ b/OdbDesignLib/ProductModel/PinConnection.cpp @@ -1,4 +1,9 @@ #include "PinConnection.h" +#include +#include "Pin.h" +#include "Component.h" +#include +#include "../ProtoBuf/pinconnection.pb.h" namespace Odb::Lib::ProductModel @@ -12,7 +17,7 @@ namespace Odb::Lib::ProductModel { } - PinConnection::PinConnection(std::shared_ptr pComponent, std::shared_ptr pPin, std::string name) + PinConnection::PinConnection(std::shared_ptr pComponent, std::shared_ptr pPin, const std::string& name) : m_name(name) , m_pComponent(pComponent) , m_pPin(pPin) @@ -47,7 +52,7 @@ namespace Odb::Lib::ProductModel void PinConnection::from_protobuf(const Odb::Lib::Protobuf::ProductModel::PinConnection& message) { m_name = message.name(); - m_pComponent = std::shared_ptr(Component::MakeEmpty()); + m_pComponent = std::shared_ptr(); m_pComponent->from_protobuf(message.component()); m_pPin = std::make_shared("", -1); m_pPin->from_protobuf(message.pin()); diff --git a/OdbDesignLib/ProductModel/PinConnection.h b/OdbDesignLib/ProductModel/PinConnection.h index 7d23dba4..77a256a2 100644 --- a/OdbDesignLib/ProductModel/PinConnection.h +++ b/OdbDesignLib/ProductModel/PinConnection.h @@ -17,7 +17,7 @@ namespace Odb::Lib::ProductModel { public: PinConnection(std::shared_ptr pComponent, std::shared_ptr pPin); - PinConnection(std::shared_ptr pComponent, std::shared_ptr pPin, std::string name); + PinConnection(std::shared_ptr pComponent, std::shared_ptr pPin, const std::string& name); //~PinConnection(); std::shared_ptr GetPin() const; diff --git a/OdbDesignLib/ProductModel/Via.cpp b/OdbDesignLib/ProductModel/Via.cpp index 67e2da8e..1da0d1ea 100644 --- a/OdbDesignLib/ProductModel/Via.cpp +++ b/OdbDesignLib/ProductModel/Via.cpp @@ -1,4 +1,8 @@ #include "Via.h" +#include +#include "../ProtoBuf/via.pb.h" +#include "../ProtoBuf/enums.pb.h" +#include "../enums.h" namespace Odb::Lib::ProductModel From 016e130659139492b72c4eb8258b8ac6edab138d Mon Sep 17 00:00:00 2001 From: Nathan Miller Date: Mon, 13 May 2024 12:28:57 -0700 Subject: [PATCH 144/168] add default ctor() --- OdbDesignLib/ProductModel/Component.cpp | 11 +++++++++++ OdbDesignLib/ProductModel/Component.h | 3 +-- 2 files changed, 12 insertions(+), 2 deletions(-) diff --git a/OdbDesignLib/ProductModel/Component.cpp b/OdbDesignLib/ProductModel/Component.cpp index 3e943f53..3efd35a9 100644 --- a/OdbDesignLib/ProductModel/Component.cpp +++ b/OdbDesignLib/ProductModel/Component.cpp @@ -5,10 +5,21 @@ #include #include "../enums.h" #include "Part.h" +#include "Package.h" namespace Odb::Lib::ProductModel { + Component::Component() + : m_refDes("") + , m_partName("") + , m_pPackage(nullptr) + , m_index(static_cast(-1)) + , m_side(BoardSide::BsNone) + , m_pPart(nullptr) + { + } + Component::Component(const std::string& refDes, const std::string& partName, std::shared_ptr pPackage, unsigned int index, BoardSide side, std::shared_ptr pPart) : m_refDes(refDes) , m_partName(partName) diff --git a/OdbDesignLib/ProductModel/Component.h b/OdbDesignLib/ProductModel/Component.h index c4f6ddab..1c3f12d9 100644 --- a/OdbDesignLib/ProductModel/Component.h +++ b/OdbDesignLib/ProductModel/Component.h @@ -5,7 +5,6 @@ #include #include #include -#include "Pin.h" #include "Package.h" #include "../enums.h" #include "Part.h" @@ -18,7 +17,7 @@ namespace Odb::Lib::ProductModel class ODBDESIGN_EXPORT Component : public IProtoBuffable { public: - Component() = default; + Component(); Component(const std::string& refDes, const std::string& partName, std::shared_ptr pPackage, unsigned int index, BoardSide side, std::shared_ptr pPart); ~Component(); From 497117edf2457a680798d8d16819f9196c2b0cf5 Mon Sep 17 00:00:00 2001 From: Nathan Miller Date: Mon, 13 May 2024 12:29:44 -0700 Subject: [PATCH 145/168] add transitive header #include --- OdbDesignLib/ProductModel/Net.cpp | 1 + OdbDesignLib/ProductModel/Package.cpp | 2 ++ OdbDesignLib/ProductModel/Part.cpp | 1 + OdbDesignLib/ProductModel/Via.cpp | 1 + 4 files changed, 5 insertions(+) diff --git a/OdbDesignLib/ProductModel/Net.cpp b/OdbDesignLib/ProductModel/Net.cpp index 56220c5f..a3ed5cf4 100644 --- a/OdbDesignLib/ProductModel/Net.cpp +++ b/OdbDesignLib/ProductModel/Net.cpp @@ -4,6 +4,7 @@ #include "Pin.h" #include "../ProtoBuf/net.pb.h" #include +#include "PinConnection.h" namespace Odb::Lib::ProductModel diff --git a/OdbDesignLib/ProductModel/Package.cpp b/OdbDesignLib/ProductModel/Package.cpp index b9df375c..78bb5cb3 100644 --- a/OdbDesignLib/ProductModel/Package.cpp +++ b/OdbDesignLib/ProductModel/Package.cpp @@ -1,6 +1,8 @@ #include "Package.h" #include #include "../ProtoBuf/package.pb.h" +#include "Pin.h" +#include namespace Odb::Lib::ProductModel { diff --git a/OdbDesignLib/ProductModel/Part.cpp b/OdbDesignLib/ProductModel/Part.cpp index d4148684..8427c6ed 100644 --- a/OdbDesignLib/ProductModel/Part.cpp +++ b/OdbDesignLib/ProductModel/Part.cpp @@ -1,6 +1,7 @@ #include "Part.h" #include #include "../ProtoBuf/part.pb.h" +#include namespace Odb::Lib::ProductModel { diff --git a/OdbDesignLib/ProductModel/Via.cpp b/OdbDesignLib/ProductModel/Via.cpp index 1da0d1ea..98473745 100644 --- a/OdbDesignLib/ProductModel/Via.cpp +++ b/OdbDesignLib/ProductModel/Via.cpp @@ -3,6 +3,7 @@ #include "../ProtoBuf/via.pb.h" #include "../ProtoBuf/enums.pb.h" #include "../enums.h" +#include namespace Odb::Lib::ProductModel From de55456d5d42ebbbe3358b6d770161e41569d60d Mon Sep 17 00:00:00 2001 From: Nathan Miller Date: Mon, 13 May 2024 12:38:55 -0700 Subject: [PATCH 146/168] re-enable PCH and CCACHE in CI builds until I can fix protobuf export/header include issue when they are disabled --- CMakeLists.txt | 4 ++-- OdbDesignLib/CMakeLists.txt | 4 ++-- OdbDesignServer/CMakeLists.txt | 4 ++-- OdbDesignTests/CMakeLists.txt | 4 ++-- OdbDesignTests/ProtobufSerializationTests.cpp | 4 ++-- Utils/CMakeLists.txt | 4 ++-- 6 files changed, 12 insertions(+), 12 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index c02bf69c..ca12b8dc 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -12,9 +12,9 @@ set(CMAKE_CXX_STANDARD ${MY_CXX_STANDARD}) set(CMAKE_CXX_STANDARD_REQUIRED True) # only use ccache locally, i.e. not in CI -if (NOT DEFINED ENV{CI}) +#if (NOT DEFINED ENV{CI}) set(CMAKE_CXX_COMPILER_LAUNCHER "${CCACHE_EXE}") -endif() +#endif() # # GoogleTest support diff --git a/OdbDesignLib/CMakeLists.txt b/OdbDesignLib/CMakeLists.txt index 46171254..df0f1127 100644 --- a/OdbDesignLib/CMakeLists.txt +++ b/OdbDesignLib/CMakeLists.txt @@ -56,10 +56,10 @@ target_include_directories(OdbDesign $) # PCH -if (NOT DEFINED ENV{CI}) +#if (NOT DEFINED ENV{CI}) file (GLOB_RECURSE ODBDESIGN_HEADER_FILES "*.h") target_precompile_headers(OdbDesign PRIVATE ${ODBDESIGN_HEADER_FILES}) -endif() +#endif() # link to zlib (required for Crow HTTP compression) find_package(ZLIB REQUIRED) diff --git a/OdbDesignServer/CMakeLists.txt b/OdbDesignServer/CMakeLists.txt index 74295c97..596ee93f 100644 --- a/OdbDesignServer/CMakeLists.txt +++ b/OdbDesignServer/CMakeLists.txt @@ -4,10 +4,10 @@ add_executable(OdbDesignServer "main.cpp" "Controllers/HelloWorldController.h" "Controllers/HelloWorldController.cpp" "OdbDesignServerApp.h" "OdbDesignServerApp.cpp" "OdbDesignServer.h" "Controllers/FileUploadController.h" "Controllers/FileUploadController.cpp" "Controllers/FileModelController.h" "Controllers/FileModelController.cpp" "Controllers/HealthCheckController.h" "Controllers/HealthCheckController.cpp" "Controllers/DesignsController.h" "Controllers/DesignsController.cpp") ## PCH -if (NOT DEFINED ENV{CI}) +#if (NOT DEFINED ENV{CI}) file (GLOB_RECURSE ODBDESIGN_SERVER_HEADER_FILES "*.h") target_precompile_headers(OdbDesignServer PRIVATE ${ODBDESIGN_SERVER_HEADER_FILES}) -endif() +#endif() # link to OdbDesign library target_link_libraries(OdbDesignServer PRIVATE OdbDesign) diff --git a/OdbDesignTests/CMakeLists.txt b/OdbDesignTests/CMakeLists.txt index 14db579b..2e296fc5 100644 --- a/OdbDesignTests/CMakeLists.txt +++ b/OdbDesignTests/CMakeLists.txt @@ -21,7 +21,7 @@ include(GoogleTest) gtest_discover_tests(OdbDesignTests) ## PCH -if (NOT DEFINED ENV{CI}) +#if (NOT DEFINED ENV{CI}) file (GLOB_RECURSE OdbDesignTests_HEADER_FILES "*.h") target_precompile_headers(OdbDesignTests PRIVATE ${OdbDesignTests_HEADER_FILES}) -endif() \ No newline at end of file +#endif() \ No newline at end of file diff --git a/OdbDesignTests/ProtobufSerializationTests.cpp b/OdbDesignTests/ProtobufSerializationTests.cpp index 943d5076..02515b71 100644 --- a/OdbDesignTests/ProtobufSerializationTests.cpp +++ b/OdbDesignTests/ProtobufSerializationTests.cpp @@ -27,7 +27,7 @@ namespace Odb::Test auto pComponentMsg = pComponent->to_protobuf(); ASSERT_THAT(pComponentMsg, NotNull()); - auto pComponentFromMsg = std::unique_ptr(Component::MakeEmpty()); + auto pComponentFromMsg = std::unique_ptr(); pComponentFromMsg->from_protobuf(*pComponentMsg); ASSERT_EQ(pComponent->GetRefDes(), pComponentFromMsg->GetRefDes()); @@ -82,7 +82,7 @@ namespace Odb::Test auto pComponentMsg = pComponent->to_protobuf(); ASSERT_THAT(pComponentMsg, NotNull()); - auto pComponentFromMsg = std::unique_ptr(Component::MakeEmpty()); + auto pComponentFromMsg = std::unique_ptr(); pComponentFromMsg->from_protobuf(*pComponentMsg); ASSERT_EQ(pComponent->GetRefDes(), pComponentFromMsg->GetRefDes()); diff --git a/Utils/CMakeLists.txt b/Utils/CMakeLists.txt index 6d38928c..148dff8d 100644 --- a/Utils/CMakeLists.txt +++ b/Utils/CMakeLists.txt @@ -11,10 +11,10 @@ target_include_directories(Utils $) ## PCH -if (NOT DEFINED ENV{CI}) +#if (NOT DEFINED ENV{CI}) file (GLOB_RECURSE UTILS_HEADER_FILES "*.h") target_precompile_headers(Utils PRIVATE ${UTILS_HEADER_FILES}) -endif() +#endif() # Link to LibArchive find_package(LibArchive REQUIRED) From 8abd2e5e4440104c7972c34f33903cd4573e5fa2 Mon Sep 17 00:00:00 2001 From: Nathan Miller Date: Mon, 13 May 2024 15:15:03 -0700 Subject: [PATCH 147/168] create objects correctly to fix exceptions in test cases --- OdbDesignTests/ProtobufSerializationTests.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/OdbDesignTests/ProtobufSerializationTests.cpp b/OdbDesignTests/ProtobufSerializationTests.cpp index 02515b71..ddd068dd 100644 --- a/OdbDesignTests/ProtobufSerializationTests.cpp +++ b/OdbDesignTests/ProtobufSerializationTests.cpp @@ -27,7 +27,7 @@ namespace Odb::Test auto pComponentMsg = pComponent->to_protobuf(); ASSERT_THAT(pComponentMsg, NotNull()); - auto pComponentFromMsg = std::unique_ptr(); + auto pComponentFromMsg = std::make_unique(); pComponentFromMsg->from_protobuf(*pComponentMsg); ASSERT_EQ(pComponent->GetRefDes(), pComponentFromMsg->GetRefDes()); @@ -82,7 +82,7 @@ namespace Odb::Test auto pComponentMsg = pComponent->to_protobuf(); ASSERT_THAT(pComponentMsg, NotNull()); - auto pComponentFromMsg = std::unique_ptr(); + auto pComponentFromMsg = std::make_unique(); pComponentFromMsg->from_protobuf(*pComponentMsg); ASSERT_EQ(pComponent->GetRefDes(), pComponentFromMsg->GetRefDes()); From 6e58a7421482d91d4b5700694b5a8a360f36c334 Mon Sep 17 00:00:00 2001 From: Nathan Miller Date: Mon, 13 May 2024 15:36:50 -0700 Subject: [PATCH 148/168] create pointer correctly to fix exception in test case --- OdbDesignLib/ProductModel/PinConnection.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/OdbDesignLib/ProductModel/PinConnection.cpp b/OdbDesignLib/ProductModel/PinConnection.cpp index fe47a7f6..392463b6 100644 --- a/OdbDesignLib/ProductModel/PinConnection.cpp +++ b/OdbDesignLib/ProductModel/PinConnection.cpp @@ -52,7 +52,7 @@ namespace Odb::Lib::ProductModel void PinConnection::from_protobuf(const Odb::Lib::Protobuf::ProductModel::PinConnection& message) { m_name = message.name(); - m_pComponent = std::shared_ptr(); + m_pComponent = std::make_shared(); m_pComponent->from_protobuf(message.component()); m_pPin = std::make_shared("", -1); m_pPin->from_protobuf(message.pin()); From 72cc644dd377838238b796b2a570f82a51268891 Mon Sep 17 00:00:00 2001 From: Nathan Miller Date: Mon, 13 May 2024 16:24:52 -0700 Subject: [PATCH 149/168] pass shared_ptr by value --- OdbDesignLib/App/DesignCache.cpp | 2 +- OdbDesignLib/App/DesignCache.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/OdbDesignLib/App/DesignCache.cpp b/OdbDesignLib/App/DesignCache.cpp index db3ce4c1..a1eeaea0 100644 --- a/OdbDesignLib/App/DesignCache.cpp +++ b/OdbDesignLib/App/DesignCache.cpp @@ -71,7 +71,7 @@ namespace Odb::Lib::App return m_fileArchivesByName[designName]; } - void DesignCache::AddFileArchive(const std::string& designName, const std::shared_ptr& fileArchive, bool save) + void DesignCache::AddFileArchive(const std::string& designName, std::shared_ptr fileArchive, bool save) { m_fileArchivesByName[designName] = fileArchive; if (save) diff --git a/OdbDesignLib/App/DesignCache.h b/OdbDesignLib/App/DesignCache.h index e998f2f0..2f9a8989 100644 --- a/OdbDesignLib/App/DesignCache.h +++ b/OdbDesignLib/App/DesignCache.h @@ -20,7 +20,7 @@ namespace Odb::Lib::App std::shared_ptr GetDesign(const std::string& designName); std::shared_ptr GetFileArchive(const std::string& designName); - void AddFileArchive(const std::string& designName, const std::shared_ptr& fileArchive, bool save); + void AddFileArchive(const std::string& designName, std::shared_ptr fileArchive, bool save); bool SaveFileArchive(const std::string& designName); From c28f2d1ba32fb8fe7befac6391f1981570ee8432 Mon Sep 17 00:00:00 2001 From: Nathan Miller Date: Mon, 13 May 2024 16:25:18 -0700 Subject: [PATCH 150/168] add header #includes --- OdbDesignLib/App/OdbServerAppBase.h | 4 +++- OdbDesignLib/ProductModel/Design.cpp | 1 + 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/OdbDesignLib/App/OdbServerAppBase.h b/OdbDesignLib/App/OdbServerAppBase.h index 41be69e8..a9b11348 100644 --- a/OdbDesignLib/App/OdbServerAppBase.h +++ b/OdbDesignLib/App/OdbServerAppBase.h @@ -5,7 +5,9 @@ #include "RouteController.h" #include "../odbdesign_export.h" #include "RequestAuthenticationBase.h" -#include "BasicRequestAuthentication.h" +#include +#include +#include namespace Odb::Lib::App { diff --git a/OdbDesignLib/ProductModel/Design.cpp b/OdbDesignLib/ProductModel/Design.cpp index 823225b0..4585a2c7 100644 --- a/OdbDesignLib/ProductModel/Design.cpp +++ b/OdbDesignLib/ProductModel/Design.cpp @@ -7,6 +7,7 @@ #include #include "Net.h" #include "../FileModel/Design/FileArchive.h" +#include "../FileModel/Design/EdaDataFile.h" namespace Odb::Lib::ProductModel From 4e4100ea45343034ae856da85615730db52aaafb Mon Sep 17 00:00:00 2001 From: Nathan Miller Date: Mon, 13 May 2024 16:32:36 -0700 Subject: [PATCH 151/168] pass shared_ptr value by ref since its only used --- OdbDesignLib/ProductModel/PinConnection.cpp | 15 ++++++++------- OdbDesignLib/ProductModel/PinConnection.h | 2 +- 2 files changed, 9 insertions(+), 8 deletions(-) diff --git a/OdbDesignLib/ProductModel/PinConnection.cpp b/OdbDesignLib/ProductModel/PinConnection.cpp index 392463b6..c5e36907 100644 --- a/OdbDesignLib/ProductModel/PinConnection.cpp +++ b/OdbDesignLib/ProductModel/PinConnection.cpp @@ -13,7 +13,7 @@ namespace Odb::Lib::ProductModel //} PinConnection::PinConnection(std::shared_ptr pComponent, std::shared_ptr pPin) - : PinConnection(pComponent, pPin, MakeName(pComponent, pPin)) + : PinConnection(pComponent, pPin, MakeName(*pComponent, *pPin)) { } @@ -24,10 +24,11 @@ namespace Odb::Lib::ProductModel { } - std::string PinConnection::MakeName(std::shared_ptr& pComponent, std::shared_ptr& pPin) + std::string PinConnection::MakeName(const Component& component, const Pin& pin) { - if (pComponent == nullptr || pPin == nullptr) return "Pin::MakeName() FAILED"; - return pComponent->GetRefDes() + "-" + pPin->GetName(); + //if (pComponent == nullptr || pPin == nullptr) return "Pin::MakeName() FAILED"; + //return pComponent->GetRefDes() + "-" + pPin->GetName(); + return component.GetRefDes() + "-" + pin.GetName(); } std::shared_ptr PinConnection::GetPin() const @@ -40,16 +41,16 @@ namespace Odb::Lib::ProductModel return m_pComponent; } - std::unique_ptr PinConnection::to_protobuf() const + std::unique_ptr PinConnection::to_protobuf() const { - auto pPinConnectionMsg = std::make_unique(); + auto pPinConnectionMsg = std::make_unique(); pPinConnectionMsg->set_name(m_name); pPinConnectionMsg->mutable_component()->CopyFrom(*m_pComponent->to_protobuf()); pPinConnectionMsg->mutable_pin()->CopyFrom(*m_pPin->to_protobuf()); return pPinConnectionMsg; } - void PinConnection::from_protobuf(const Odb::Lib::Protobuf::ProductModel::PinConnection& message) + void PinConnection::from_protobuf(const Protobuf::ProductModel::PinConnection& message) { m_name = message.name(); m_pComponent = std::make_shared(); diff --git a/OdbDesignLib/ProductModel/PinConnection.h b/OdbDesignLib/ProductModel/PinConnection.h index 77a256a2..798f0dc5 100644 --- a/OdbDesignLib/ProductModel/PinConnection.h +++ b/OdbDesignLib/ProductModel/PinConnection.h @@ -23,7 +23,7 @@ namespace Odb::Lib::ProductModel std::shared_ptr GetPin() const; std::shared_ptr GetComponent() const; - std::string MakeName(std::shared_ptr& pComponent, std::shared_ptr& pPin); + static std::string MakeName(const Component& component, const Pin& pin); // Inherited via IProtoBuffable std::unique_ptr to_protobuf() const override; From 46fc55cb3d74193406005b13799b10e984b14989 Mon Sep 17 00:00:00 2001 From: Nathan Miller Date: Tue, 14 May 2024 07:36:12 -0700 Subject: [PATCH 152/168] use EnumMap for Logger::LogLevels --- Utils/Logger.cpp | 9 ++------- Utils/Logger.h | 13 +++++++++---- 2 files changed, 11 insertions(+), 11 deletions(-) diff --git a/Utils/Logger.cpp b/Utils/Logger.cpp index 80cad0c6..750680e6 100644 --- a/Utils/Logger.cpp +++ b/Utils/Logger.cpp @@ -158,7 +158,7 @@ namespace Utils ss << " " << std::setw(6) << std::right - << logLevelToString(logMessage.level) + << logLevelMap.getValue(logMessage.level) << "]"; ss << " " @@ -210,10 +210,5 @@ namespace Utils //std::cout << "[Logger::logMessage] exit" << std::endl; return true; - } - - /*static*/ std::string Logger::logLevelToString(Level level) - { - return LogLevelStrings[static_cast(level)]; - } + } } \ No newline at end of file diff --git a/Utils/Logger.h b/Utils/Logger.h index c561a4dc..af900b80 100644 --- a/Utils/Logger.h +++ b/Utils/Logger.h @@ -5,6 +5,7 @@ #include "utils_export.h" #include #include +#include "EnumMap.h" namespace Utils { @@ -48,12 +49,12 @@ namespace Utils std::string file; int line; - Message(std::string message, Level level) + Message(const std::string& message, Level level) : message(message), level(level), timeStamp(std::chrono::system_clock::now()), file(""), line(-1) { } - Message(std::string message, Level level, std::string file, int line) + Message(const std::string& message, Level level, const std::string& file, int line) : message(message), level(level), timeStamp(std::chrono::system_clock::now()), file(file), line(line) { } @@ -111,12 +112,16 @@ namespace Utils bool logMessage(const struct Message& logMessage); static std::string formatLogMessage(const struct Message& logMessage); - static std::string logLevelToString(Level level); + //static std::string logLevelToString(Level level); static Logger* _instance; inline static constexpr const char DEFAULT_LOG_FILENAME[] = "log.txt"; - inline static constexpr const char* LogLevelStrings[] = { "NONE", "DEBUG", "INFO", "WARN", "ERROR" }; + //inline static constexpr const char* LogLevelStrings[] = ; + + static const inline EnumMap logLevelMap{ + { "NONE", "DEBUG", "INFO", "WARN", "ERROR" } + }; }; template From 038f87583fc318e335cda781ee093abd77912440 Mon Sep 17 00:00:00 2001 From: Nathan Miller Date: Tue, 14 May 2024 07:47:59 -0700 Subject: [PATCH 153/168] move enable_testing() directive to top-level CMakeLists.txt to fix tests showing up in Visual Studio --- CMakeLists.txt | 2 ++ OdbDesignTests/CMakeLists.txt | 2 -- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index ca12b8dc..e0f83750 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -28,6 +28,8 @@ FetchContent_Declare( set(gtest_force_shared_crt ON CACHE BOOL "" FORCE) FetchContent_MakeAvailable(googletest) +enable_testing() + # Enable Hot Reload for MSVC compilers if supported. if (POLICY CMP0141) cmake_policy(SET CMP0141 NEW) diff --git a/OdbDesignTests/CMakeLists.txt b/OdbDesignTests/CMakeLists.txt index 2e296fc5..8a23e00d 100644 --- a/OdbDesignTests/CMakeLists.txt +++ b/OdbDesignTests/CMakeLists.txt @@ -1,8 +1,6 @@ # CMakeList.txt : CMake project for OdbDesignTests # -enable_testing() - add_executable(OdbDesignTests "Fixtures/FileArchiveLoadFixture.h" "Fixtures/FileArchiveLoadFixture.cpp" From 2da5fe375b50f86a2bac6966f85428c9faf6723e Mon Sep 17 00:00:00 2001 From: Nathan Miller Date: Sun, 1 Sep 2024 12:46:47 -0700 Subject: [PATCH 154/168] add prometheus deployment files --- deploy/helm/values-prom.yaml | 5 +++++ deploy/helm/values-trivy.yaml | 5 +++++ scripts/deploy-monitoring.ps1 | 11 +++++++++++ 3 files changed, 21 insertions(+) create mode 100644 deploy/helm/values-prom.yaml create mode 100644 deploy/helm/values-trivy.yaml create mode 100644 scripts/deploy-monitoring.ps1 diff --git a/deploy/helm/values-prom.yaml b/deploy/helm/values-prom.yaml new file mode 100644 index 00000000..d0bb3079 --- /dev/null +++ b/deploy/helm/values-prom.yaml @@ -0,0 +1,5 @@ +prometheus: + prometheusSpec: + serviceMonitorSelectorNilUsesHelmValues: true + serviceMonitorSelector: {} + serviceMonitorNamespaceSelector: {} \ No newline at end of file diff --git a/deploy/helm/values-trivy.yaml b/deploy/helm/values-trivy.yaml new file mode 100644 index 00000000..7106903e --- /dev/null +++ b/deploy/helm/values-trivy.yaml @@ -0,0 +1,5 @@ +serviceMonitor: + # enabled determines whether a serviceMonitor should be deployed + enabled: true +trivy: + ignoreUnfixed: true \ No newline at end of file diff --git a/scripts/deploy-monitoring.ps1 b/scripts/deploy-monitoring.ps1 new file mode 100644 index 00000000..b81a70d7 --- /dev/null +++ b/scripts/deploy-monitoring.ps1 @@ -0,0 +1,11 @@ +kubectl create namespace monitoring + +helm repo add prometheus-community https://prometheus-community.github.io/helm-charts +helm repo add aqua https://aquasecurity.github.io/helm-charts/ +helm repo update + +helm upgrade --install prom prometheus-community/kube-prometheus-stack -n monitoring --values ./deploy/helm/values-prom.yaml +kubectl --namespace monitoring get pods -l "release=prom" + +#kubectl delete -f https://raw.githubusercontent.com/aquasecurity/trivy-operator/v0.1.5/deploy/static/trivy-operator.yaml +helm install trivy-operator aqua/trivy-operator --namespace trivy-system --create-namespace --version 0.11.0 --values trivy-values.yaml From f56bbb4a488408c2c98fedf78b914d4e5c096c21 Mon Sep 17 00:00:00 2001 From: Nathan Miller Date: Sun, 1 Sep 2024 13:01:13 -0700 Subject: [PATCH 155/168] add gRPC build dependency --- OdbDesignLib/CMakeLists.txt | 4 ++++ vcpkg.json | 8 +++++++- 2 files changed, 11 insertions(+), 1 deletion(-) diff --git a/OdbDesignLib/CMakeLists.txt b/OdbDesignLib/CMakeLists.txt index df0f1127..d3b53176 100644 --- a/OdbDesignLib/CMakeLists.txt +++ b/OdbDesignLib/CMakeLists.txt @@ -85,6 +85,10 @@ target_link_libraries(OdbDesign PUBLIC protobuf::libprotobuf) # add the generated Protobuf C++ files to the target #target_sources(OdbDesign PRIVATE ${PROTO_SRCS} ${PROTO_HDRS}) +# gRPC +find_package(gRPC CONFIG REQUIRED) +target_link_libraries(OdbDesign PUBLIC gRPC::grpc++) + # workaround to remove error: "C++ command-line error: invalid macro definition: _CROW_ICD-NOTFOUND" # (see https://github.com/CrowCpp/Crow/issues/661#issuecomment-1702544225) list(REMOVE_ITEM _CROW_ICD "_CROW_ICD-NOTFOUND") diff --git a/vcpkg.json b/vcpkg.json index 7e6ae209..6df281ea 100644 --- a/vcpkg.json +++ b/vcpkg.json @@ -9,6 +9,12 @@ "zlib" ] }, - "openssl" + "openssl", + { + "name": "grpc", + "features": [ + "codegen" + ] + } ] } From 7473438e9d90f8126e96f18d5c29ba04c9009a3e Mon Sep 17 00:00:00 2001 From: Nathan Miller Date: Sun, 1 Sep 2024 13:01:44 -0700 Subject: [PATCH 156/168] add grpc generation to protoc compiler script --- scripts/compile-protobuf.ps1 | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/scripts/compile-protobuf.ps1 b/scripts/compile-protobuf.ps1 index c8732144..bce83960 100644 --- a/scripts/compile-protobuf.ps1 +++ b/scripts/compile-protobuf.ps1 @@ -1,4 +1,13 @@ $PROTOC = 'C:\Source\github\nam20485\OdbDesign\out\build\x64-debug\vcpkg_installed\x64-windows\tools\protobuf\protoc' $DLL_EXPORT = 'ODBDESIGN_EXPORT' +$_GRPC_CPP_PLUGIN_EXECUTABLE = 'C:\Program Files (x86)\grpc\bin\grpc_cpp_plugin.exe' -. $PROTOC --cpp_out=dllexport_decl=${DLL_EXPORT}:../Protobuf --error_format=msvs *.proto +. $PROTOC --cpp_out=dllexport_decl=${DLL_EXPORT}:../Protobuf --error_format=msvs *.proto ` + --grpc_out=../Protobuf --plugin=protoc-gen-grpc="${_GRPC_CPP_PLUGIN_EXECUTABLE}" + +# COMMAND ${_PROTOBUF_PROTOC} +# ARGS --grpc_out "${CMAKE_CURRENT_BINARY_DIR}" +# --cpp_out "${CMAKE_CURRENT_BINARY_DIR}" +# -I "${hw_proto_path}" +# --plugin=protoc-gen-grpc="${_GRPC_CPP_PLUGIN_EXECUTABLE}" +# "${hw_proto}" From 91ab37563d0ebf166be44aa1af703d37ea8967a8 Mon Sep 17 00:00:00 2001 From: Nathan Miller Date: Sun, 1 Sep 2024 14:28:23 -0700 Subject: [PATCH 157/168] install python3 package in Dockerfile to fix vcpkg error in upb build fixes #332 --- Dockerfile | 1 + 1 file changed, 1 insertion(+) diff --git a/Dockerfile b/Dockerfile index f00271cf..ee086d70 100644 --- a/Dockerfile +++ b/Dockerfile @@ -21,6 +21,7 @@ RUN apt-get update && \ pkg-config \ mono-complete \ linux-libc-dev \ + python3 \ && \ apt-get clean && \ rm -rf /var/lib/apt/lists/* From b3724b9e485af494ffd52e54d8bca9d6182a7cd8 Mon Sep 17 00:00:00 2001 From: Nathan Miller Date: Wed, 15 Jan 2025 14:29:46 -0800 Subject: [PATCH 158/168] add OdbDesignApp executbale target back in --- CMakeLists.txt | 2 +- OdbDesignApp/CMakeLists.txt | 9 +++++++++ OdbDesignApp/OdbDesignApp.cpp | 17 ++++++++--------- 3 files changed, 18 insertions(+), 10 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index e0f83750..4fad72d2 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -69,7 +69,7 @@ endif() # Include sub-projects. add_subdirectory("OdbDesignLib") -#add_subdirectory("OdbDesignApp") +add_subdirectory("OdbDesignApp") add_subdirectory("OdbDesignServer") add_subdirectory("Utils") add_subdirectory("OdbDesignTests") diff --git a/OdbDesignApp/CMakeLists.txt b/OdbDesignApp/CMakeLists.txt index c45555ec..bd6889cd 100644 --- a/OdbDesignApp/CMakeLists.txt +++ b/OdbDesignApp/CMakeLists.txt @@ -5,4 +5,13 @@ # Add source to this project's executable. add_executable (OdbDesignApp "OdbDesignApp.cpp" "OdbDesignApp.h" ) +## PCH +#if (NOT DEFINED ENV{CI}) + file (GLOB_RECURSE ODBDESIGN_APP_HEADER_FILES "*.h") + target_precompile_headers(OdbDesignApp PRIVATE ${ODBDESIGN_APP_HEADER_FILES}) +#endif() + +# link to OdbDesign library +target_link_libraries(OdbDesignApp PRIVATE OdbDesign) + # TODO: Add tests and install targets if needed. diff --git a/OdbDesignApp/OdbDesignApp.cpp b/OdbDesignApp/OdbDesignApp.cpp index 73ff6588..9ffd936b 100644 --- a/OdbDesignApp/OdbDesignApp.cpp +++ b/OdbDesignApp/OdbDesignApp.cpp @@ -5,6 +5,8 @@ #include "macros.h" #include "ExitCode.h" #include +#include +#include bool TestRigidFlexDesign(); @@ -39,7 +41,7 @@ int main() bool TestSampleDesign() { std::string sampleDesignPath; - if (Odb::Lib::IsMsvc()) + if (Utils::IsWindows()) { sampleDesignPath = R"(C:\Users\nmill\OneDrive\Documents\ODB++\Samples\sample_design.tgz)"; } @@ -63,7 +65,7 @@ bool TestSampleDesign() bool TestRigidFlexDesign() { std::string rigidFlexDesignPath; - if (Odb::Lib::IsMsvc()) + if (Utils::IsWindows()) { rigidFlexDesignPath = R"(C:\Users\nmill\OneDrive\Documents\ODB++\Samples\designodb_rigidflex.tgz)"; } @@ -119,7 +121,7 @@ bool TestRigidFlexDesign() // layers auto& layersByName = pStep->GetLayersByName(); - auto layerFind = layersByName.find(Odb::Lib::FileModel::Design::LayerDirectory::TOP_COMPONENTS_LAYER_NAME); + auto layerFind = layersByName.find(Odb::Lib::FileModel::Design::ComponentsFile::TOP_COMPONENTS_LAYER_NAME); if (layerFind != layersByName.end()) { auto& pLayer = layerFind->second; @@ -133,13 +135,10 @@ bool TestRigidFlexDesign() { auto& pNetlist = netlistFind->second; auto netlistName = pNetlist->GetName(); - auto& netNames = pNetlist->GetNetNames(); - for (auto& netName : netNames) + auto& netRecords = pNetlist->GetNetRecords(); + for (auto& pNetRecord : netRecords) { - if (netName == "") - { - - } + } } } From e5de757d96c06f82ec7e493a7ab99f645e00ea95 Mon Sep 17 00:00:00 2001 From: Nathan Miller Date: Wed, 15 Jan 2025 14:41:34 -0800 Subject: [PATCH 159/168] update macos image from macos-12 to macos-14 (latest) for cmake multi platform build workflow --- .github/workflows/cmake-multi-platform.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/cmake-multi-platform.yml b/.github/workflows/cmake-multi-platform.yml index 9b36a2db..43c56aa0 100644 --- a/.github/workflows/cmake-multi-platform.yml +++ b/.github/workflows/cmake-multi-platform.yml @@ -40,7 +40,7 @@ jobs: - os: ubuntu-22.04 preset: linux-release # MacOS x64 Release - - os: macos-12 + - os: macos-14 preset: macos-release # Linux mingw x64 Release # - os: ubuntu-22.04 @@ -195,7 +195,7 @@ jobs: zip -r ./artifacts-${{matrix.os}}.zip ./*.so ./OdbDesignServer - name: Compress Artifacts (MacOS) - if: matrix.os == 'macos-12' + if: matrix.os == 'macos-14' run: | mkdir ${{env.ARTIFACTS_DIR}} cp ./out/build/${{matrix.preset}}/OdbDesignLib/*.dylib ${{env.ARTIFACTS_DIR}} From bc1cea76bd2719a1952419cd1c0fd68c42813108 Mon Sep 17 00:00:00 2001 From: Nathan Miller Date: Wed, 15 Jan 2025 15:19:59 -0800 Subject: [PATCH 160/168] disable unit test --- OdbDesignTests/CrossPlatformTests.cpp | 42 +++++++++++++-------------- 1 file changed, 21 insertions(+), 21 deletions(-) diff --git a/OdbDesignTests/CrossPlatformTests.cpp b/OdbDesignTests/CrossPlatformTests.cpp index 2ca07cb3..bc3e837c 100644 --- a/OdbDesignTests/CrossPlatformTests.cpp +++ b/OdbDesignTests/CrossPlatformTests.cpp @@ -65,29 +65,29 @@ namespace Odb::Test ASSERT_STRNE(value1.c_str(), value2.c_str()); } - TEST_F(TestDataFixture, Test_CrossPlatform_LocalTimeSafe_ReturnsSomeTime) - { - time_t tt{ 0 }; - ASSERT_EQ(tt, 0LL); - std::time(&tt); - ASSERT_NE(tt, 0LL); + // TEST_F(TestDataFixture, Test_CrossPlatform_LocalTimeSafe_ReturnsSomeTime) + // { + // time_t tt{ 0 }; + // ASSERT_EQ(tt, 0LL); + // std::time(&tt); + // ASSERT_NE(tt, 0LL); - struct tm tm{ 0 }; + // struct tm tm{ 0 }; - ASSERT_EQ(tm.tm_year, 0); - ASSERT_EQ(tm.tm_mon, 0); - ASSERT_EQ(tm.tm_mday, 0); - ASSERT_EQ(tm.tm_hour, 0); - ASSERT_EQ(tm.tm_min, 0); - ASSERT_EQ(tm.tm_sec, 0); + // ASSERT_EQ(tm.tm_year, 0); + // ASSERT_EQ(tm.tm_mon, 0); + // ASSERT_EQ(tm.tm_mday, 0); + // ASSERT_EQ(tm.tm_hour, 0); + // ASSERT_EQ(tm.tm_min, 0); + // ASSERT_EQ(tm.tm_sec, 0); - ASSERT_TRUE(CrossPlatform::localtime_safe(&tt, tm)); + // ASSERT_TRUE(CrossPlatform::localtime_safe(&tt, tm)); - ASSERT_NE(tm.tm_year, 0); - ASSERT_NE(tm.tm_mon, 0); - ASSERT_NE(tm.tm_mday, 0); - //ASSERT_NE(tm.tm_hour, 0); - //ASSERT_NE(tm.tm_min, 0); - //ASSERT_NE(tm.tm_sec, 0); - } + // ASSERT_NE(tm.tm_year, 0); + // ASSERT_NE(tm.tm_mon, 0); + // ASSERT_NE(tm.tm_mday, 0); + // //ASSERT_NE(tm.tm_hour, 0); + // //ASSERT_NE(tm.tm_min, 0); + // //ASSERT_NE(tm.tm_sec, 0); + // } } \ No newline at end of file From d9722e1c67526ba9f84e8f356245d89125fab410 Mon Sep 17 00:00:00 2001 From: Nathan Miller Date: Sat, 18 Jan 2025 14:07:52 -0800 Subject: [PATCH 161/168] update vcpkg baseline to cf035d99 --- vcpkg-configuration.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/vcpkg-configuration.json b/vcpkg-configuration.json index 0bffec5b..c79aa099 100644 --- a/vcpkg-configuration.json +++ b/vcpkg-configuration.json @@ -1,7 +1,7 @@ { "default-registry": { "kind": "git", - "baseline": "638b1588be3a265a9c7ad5b212cef72a1cad336a", + "baseline": "cf035d9916a0a23042b41fcae7ee0386d245af08", "repository": "https://github.com/microsoft/vcpkg" }, "registries": [ From a5fb6a37745bbf6b595f120b42591660b86540d4 Mon Sep 17 00:00:00 2001 From: Nathan Miller Date: Sat, 18 Jan 2025 14:09:25 -0800 Subject: [PATCH 162/168] remove grpc (and codegen feature) vcpkg dependency --- vcpkg.json | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/vcpkg.json b/vcpkg.json index 6df281ea..7e6ae209 100644 --- a/vcpkg.json +++ b/vcpkg.json @@ -9,12 +9,6 @@ "zlib" ] }, - "openssl", - { - "name": "grpc", - "features": [ - "codegen" - ] - } + "openssl" ] } From eeaca71e146c49cc0b4d27313059501adff3acf9 Mon Sep 17 00:00:00 2001 From: Nathan Miller Date: Sat, 18 Jan 2025 14:10:52 -0800 Subject: [PATCH 163/168] add schema reference to vcpkg.json --- vcpkg.json | 1 + 1 file changed, 1 insertion(+) diff --git a/vcpkg.json b/vcpkg.json index 7e6ae209..c4d08770 100644 --- a/vcpkg.json +++ b/vcpkg.json @@ -1,4 +1,5 @@ { + "$schema": "https://raw.githubusercontent.com/microsoft/vcpkg-tool/main/docs/vcpkg.schema.json", "dependencies": [ "libarchive", "zlib", From cdd030faf3935d61a0fbdcee4e83c762f7b49f72 Mon Sep 17 00:00:00 2001 From: Nathan Miller Date: Sat, 18 Jan 2025 14:45:37 -0800 Subject: [PATCH 164/168] regenerate *.protoc's with newer protoc compiler --- OdbDesignLib/ProtoBuf/attrlistfile.pb.cc | 970 +- OdbDesignLib/ProtoBuf/attrlistfile.pb.h | 613 +- OdbDesignLib/ProtoBuf/common.pb.cc | 1926 ++-- OdbDesignLib/ProtoBuf/common.pb.h | 1369 +-- OdbDesignLib/ProtoBuf/component.pb.cc | 896 +- OdbDesignLib/ProtoBuf/component.pb.h | 692 +- OdbDesignLib/ProtoBuf/componentsfile.pb.cc | 5306 ++++++----- OdbDesignLib/ProtoBuf/componentsfile.pb.h | 3852 ++++---- OdbDesignLib/ProtoBuf/design.pb.cc | 2109 +++-- OdbDesignLib/ProtoBuf/design.pb.h | 1178 +-- OdbDesignLib/ProtoBuf/edadatafile.pb.cc | 8401 +++++++++-------- OdbDesignLib/ProtoBuf/edadatafile.pb.h | 6280 ++++++------ OdbDesignLib/ProtoBuf/enums.pb.cc | 155 +- OdbDesignLib/ProtoBuf/enums.pb.h | 300 +- OdbDesignLib/ProtoBuf/featuresfile.pb.cc | 3423 ++++--- OdbDesignLib/ProtoBuf/featuresfile.pb.h | 2276 ++--- OdbDesignLib/ProtoBuf/filearchive.pb.cc | 1530 +-- OdbDesignLib/ProtoBuf/filearchive.pb.h | 1013 +- OdbDesignLib/ProtoBuf/layerdirectory.pb.cc | 859 +- OdbDesignLib/ProtoBuf/layerdirectory.pb.h | 713 +- OdbDesignLib/ProtoBuf/matrixfile.pb.cc | 2473 ++--- OdbDesignLib/ProtoBuf/matrixfile.pb.h | 1909 ++-- OdbDesignLib/ProtoBuf/miscinfofile.pb.cc | 1334 ++- OdbDesignLib/ProtoBuf/miscinfofile.pb.h | 1150 +-- OdbDesignLib/ProtoBuf/net.pb.cc | 658 +- OdbDesignLib/ProtoBuf/net.pb.h | 459 +- OdbDesignLib/ProtoBuf/netlistfile.pb.cc | 3086 +++--- OdbDesignLib/ProtoBuf/netlistfile.pb.h | 2138 +++-- OdbDesignLib/ProtoBuf/package.pb.cc | 933 +- OdbDesignLib/ProtoBuf/package.pb.h | 567 +- OdbDesignLib/ProtoBuf/part.pb.cc | 510 +- OdbDesignLib/ProtoBuf/part.pb.h | 354 +- OdbDesignLib/ProtoBuf/pin.pb.cc | 565 +- OdbDesignLib/ProtoBuf/pin.pb.h | 398 +- OdbDesignLib/ProtoBuf/pinconnection.pb.cc | 689 +- OdbDesignLib/ProtoBuf/pinconnection.pb.h | 544 +- OdbDesignLib/ProtoBuf/standardfontsfile.pb.cc | 1867 ++-- OdbDesignLib/ProtoBuf/standardfontsfile.pb.h | 1152 ++- OdbDesignLib/ProtoBuf/stepdirectory.pb.cc | 1526 +-- OdbDesignLib/ProtoBuf/stepdirectory.pb.h | 1013 +- OdbDesignLib/ProtoBuf/stephdrfile.pb.cc | 2468 ++--- OdbDesignLib/ProtoBuf/stephdrfile.pb.h | 1547 +-- OdbDesignLib/ProtoBuf/symbolname.pb.cc | 574 +- OdbDesignLib/ProtoBuf/symbolname.pb.h | 384 +- OdbDesignLib/ProtoBuf/symbolsdirectory.pb.cc | 771 +- OdbDesignLib/ProtoBuf/symbolsdirectory.pb.h | 618 +- OdbDesignLib/ProtoBuf/via.pb.cc | 574 +- OdbDesignLib/ProtoBuf/via.pb.h | 384 +- 48 files changed, 39340 insertions(+), 35166 deletions(-) diff --git a/OdbDesignLib/ProtoBuf/attrlistfile.pb.cc b/OdbDesignLib/ProtoBuf/attrlistfile.pb.cc index 298cbdce..9fb085a1 100644 --- a/OdbDesignLib/ProtoBuf/attrlistfile.pb.cc +++ b/OdbDesignLib/ProtoBuf/attrlistfile.pb.cc @@ -1,263 +1,440 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE // source: attrlistfile.proto +// Protobuf C++ Version: 5.29.2 #include "attrlistfile.pb.h" #include - -#include -#include -#include -#include -#include -#include -#include +#include +#include "google/protobuf/io/coded_stream.h" +#include "google/protobuf/generated_message_tctable_impl.h" +#include "google/protobuf/extension_set.h" +#include "google/protobuf/generated_message_util.h" +#include "google/protobuf/wire_format_lite.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) -#include +// Must be included last. +#include "google/protobuf/port_def.inc" PROTOBUF_PRAGMA_INIT_SEG - -namespace _pb = ::PROTOBUF_NAMESPACE_ID; -namespace _pbi = _pb::internal; - +namespace _pb = ::google::protobuf; +namespace _pbi = ::google::protobuf::internal; +namespace _fl = ::google::protobuf::internal::field_layout; namespace Odb { namespace Lib { namespace Protobuf { -PROTOBUF_CONSTEXPR AttrListFile_AttributesByNameEntry_DoNotUse::AttrListFile_AttributesByNameEntry_DoNotUse( - ::_pbi::ConstantInitialized) {} + template +PROTOBUF_CONSTEXPR AttrListFile_AttributesByNameEntry_DoNotUse::AttrListFile_AttributesByNameEntry_DoNotUse(::_pbi::ConstantInitialized) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : AttrListFile_AttributesByNameEntry_DoNotUse::MapEntry(_class_data_.base()){} +#else // PROTOBUF_CUSTOM_VTABLE + : AttrListFile_AttributesByNameEntry_DoNotUse::MapEntry() { +} +#endif // PROTOBUF_CUSTOM_VTABLE struct AttrListFile_AttributesByNameEntry_DoNotUseDefaultTypeInternal { - PROTOBUF_CONSTEXPR AttrListFile_AttributesByNameEntry_DoNotUseDefaultTypeInternal() - : _instance(::_pbi::ConstantInitialized{}) {} + PROTOBUF_CONSTEXPR AttrListFile_AttributesByNameEntry_DoNotUseDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} ~AttrListFile_AttributesByNameEntry_DoNotUseDefaultTypeInternal() {} union { AttrListFile_AttributesByNameEntry_DoNotUse _instance; }; }; -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 AttrListFile_AttributesByNameEntry_DoNotUseDefaultTypeInternal _AttrListFile_AttributesByNameEntry_DoNotUse_default_instance_; -PROTOBUF_CONSTEXPR AttrListFile::AttrListFile( - ::_pbi::ConstantInitialized): _impl_{ - /*decltype(_impl_._has_bits_)*/{} - , /*decltype(_impl_._cached_size_)*/{} - , /*decltype(_impl_.attributesbyname_)*/{::_pbi::ConstantInitialized()} - , /*decltype(_impl_.directory_)*/{&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}} - , /*decltype(_impl_.path_)*/{&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}} - , /*decltype(_impl_.units_)*/{&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}}} {} + +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT ODBDESIGN_EXPORT + PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 AttrListFile_AttributesByNameEntry_DoNotUseDefaultTypeInternal _AttrListFile_AttributesByNameEntry_DoNotUse_default_instance_; + +inline constexpr AttrListFile::Impl_::Impl_( + ::_pbi::ConstantInitialized) noexcept + : _cached_size_{0}, + attributesbyname_{}, + directory_( + &::google::protobuf::internal::fixed_address_empty_string, + ::_pbi::ConstantInitialized()), + path_( + &::google::protobuf::internal::fixed_address_empty_string, + ::_pbi::ConstantInitialized()), + units_( + &::google::protobuf::internal::fixed_address_empty_string, + ::_pbi::ConstantInitialized()) {} + +template +PROTOBUF_CONSTEXPR AttrListFile::AttrListFile(::_pbi::ConstantInitialized) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : ::google::protobuf::Message(_class_data_.base()), +#else // PROTOBUF_CUSTOM_VTABLE + : ::google::protobuf::Message(), +#endif // PROTOBUF_CUSTOM_VTABLE + _impl_(::_pbi::ConstantInitialized()) { +} struct AttrListFileDefaultTypeInternal { - PROTOBUF_CONSTEXPR AttrListFileDefaultTypeInternal() - : _instance(::_pbi::ConstantInitialized{}) {} + PROTOBUF_CONSTEXPR AttrListFileDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} ~AttrListFileDefaultTypeInternal() {} union { AttrListFile _instance; }; }; -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 AttrListFileDefaultTypeInternal _AttrListFile_default_instance_; + +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT ODBDESIGN_EXPORT + PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 AttrListFileDefaultTypeInternal _AttrListFile_default_instance_; } // namespace Protobuf } // namespace Lib } // namespace Odb -static ::_pb::Metadata file_level_metadata_attrlistfile_2eproto[2]; -static constexpr ::_pb::EnumDescriptor const** file_level_enum_descriptors_attrlistfile_2eproto = nullptr; -static constexpr ::_pb::ServiceDescriptor const** file_level_service_descriptors_attrlistfile_2eproto = nullptr; - -const uint32_t TableStruct_attrlistfile_2eproto::offsets[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = { - PROTOBUF_FIELD_OFFSET(::Odb::Lib::Protobuf::AttrListFile_AttributesByNameEntry_DoNotUse, _has_bits_), - PROTOBUF_FIELD_OFFSET(::Odb::Lib::Protobuf::AttrListFile_AttributesByNameEntry_DoNotUse, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - ~0u, // no _inlined_string_donated_ - PROTOBUF_FIELD_OFFSET(::Odb::Lib::Protobuf::AttrListFile_AttributesByNameEntry_DoNotUse, key_), - PROTOBUF_FIELD_OFFSET(::Odb::Lib::Protobuf::AttrListFile_AttributesByNameEntry_DoNotUse, value_), - 0, - 1, - PROTOBUF_FIELD_OFFSET(::Odb::Lib::Protobuf::AttrListFile, _impl_._has_bits_), - PROTOBUF_FIELD_OFFSET(::Odb::Lib::Protobuf::AttrListFile, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - ~0u, // no _inlined_string_donated_ - PROTOBUF_FIELD_OFFSET(::Odb::Lib::Protobuf::AttrListFile, _impl_.directory_), - PROTOBUF_FIELD_OFFSET(::Odb::Lib::Protobuf::AttrListFile, _impl_.path_), - PROTOBUF_FIELD_OFFSET(::Odb::Lib::Protobuf::AttrListFile, _impl_.units_), - PROTOBUF_FIELD_OFFSET(::Odb::Lib::Protobuf::AttrListFile, _impl_.attributesbyname_), - 0, - 1, - 2, - ~0u, -}; -static const ::_pbi::MigrationSchema schemas[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = { - { 0, 8, -1, sizeof(::Odb::Lib::Protobuf::AttrListFile_AttributesByNameEntry_DoNotUse)}, - { 10, 20, -1, sizeof(::Odb::Lib::Protobuf::AttrListFile)}, +static constexpr const ::_pb::EnumDescriptor** + file_level_enum_descriptors_attrlistfile_2eproto = nullptr; +static constexpr const ::_pb::ServiceDescriptor** + file_level_service_descriptors_attrlistfile_2eproto = nullptr; +const ::uint32_t + TableStruct_attrlistfile_2eproto::offsets[] ABSL_ATTRIBUTE_SECTION_VARIABLE( + protodesc_cold) = { + PROTOBUF_FIELD_OFFSET(::Odb::Lib::Protobuf::AttrListFile_AttributesByNameEntry_DoNotUse, _impl_._has_bits_), + PROTOBUF_FIELD_OFFSET(::Odb::Lib::Protobuf::AttrListFile_AttributesByNameEntry_DoNotUse, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + ~0u, // no _split_ + ~0u, // no sizeof(Split) + PROTOBUF_FIELD_OFFSET(::Odb::Lib::Protobuf::AttrListFile_AttributesByNameEntry_DoNotUse, _impl_.key_), + PROTOBUF_FIELD_OFFSET(::Odb::Lib::Protobuf::AttrListFile_AttributesByNameEntry_DoNotUse, _impl_.value_), + 0, + 1, + PROTOBUF_FIELD_OFFSET(::Odb::Lib::Protobuf::AttrListFile, _impl_._has_bits_), + PROTOBUF_FIELD_OFFSET(::Odb::Lib::Protobuf::AttrListFile, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + ~0u, // no _split_ + ~0u, // no sizeof(Split) + PROTOBUF_FIELD_OFFSET(::Odb::Lib::Protobuf::AttrListFile, _impl_.directory_), + PROTOBUF_FIELD_OFFSET(::Odb::Lib::Protobuf::AttrListFile, _impl_.path_), + PROTOBUF_FIELD_OFFSET(::Odb::Lib::Protobuf::AttrListFile, _impl_.units_), + PROTOBUF_FIELD_OFFSET(::Odb::Lib::Protobuf::AttrListFile, _impl_.attributesbyname_), + 0, + 1, + 2, + ~0u, }; +static const ::_pbi::MigrationSchema + schemas[] ABSL_ATTRIBUTE_SECTION_VARIABLE(protodesc_cold) = { + {0, 10, -1, sizeof(::Odb::Lib::Protobuf::AttrListFile_AttributesByNameEntry_DoNotUse)}, + {12, 24, -1, sizeof(::Odb::Lib::Protobuf::AttrListFile)}, +}; static const ::_pb::Message* const file_default_instances[] = { - &::Odb::Lib::Protobuf::_AttrListFile_AttributesByNameEntry_DoNotUse_default_instance_._instance, - &::Odb::Lib::Protobuf::_AttrListFile_default_instance_._instance, + &::Odb::Lib::Protobuf::_AttrListFile_AttributesByNameEntry_DoNotUse_default_instance_._instance, + &::Odb::Lib::Protobuf::_AttrListFile_default_instance_._instance, }; - -const char descriptor_table_protodef_attrlistfile_2eproto[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = - "\n\022attrlistfile.proto\022\020Odb.Lib.Protobuf\"\367" - "\001\n\014AttrListFile\022\026\n\tdirectory\030\001 \001(\tH\000\210\001\001\022" - "\021\n\004path\030\002 \001(\tH\001\210\001\001\022\022\n\005units\030\003 \001(\tH\002\210\001\001\022N" - "\n\020attributesByName\030\004 \003(\01324.Odb.Lib.Proto" - "buf.AttrListFile.AttributesByNameEntry\0327" - "\n\025AttributesByNameEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005" - "value\030\002 \001(\t:\0028\001B\014\n\n_directoryB\007\n\005_pathB\010" - "\n\006_unitsb\006proto3" - ; -static ::_pbi::once_flag descriptor_table_attrlistfile_2eproto_once; -const ::_pbi::DescriptorTable descriptor_table_attrlistfile_2eproto = { - false, false, 296, descriptor_table_protodef_attrlistfile_2eproto, +const char descriptor_table_protodef_attrlistfile_2eproto[] ABSL_ATTRIBUTE_SECTION_VARIABLE( + protodesc_cold) = { + "\n\022attrlistfile.proto\022\020Odb.Lib.Protobuf\"\367" + "\001\n\014AttrListFile\022\026\n\tdirectory\030\001 \001(\tH\000\210\001\001\022" + "\021\n\004path\030\002 \001(\tH\001\210\001\001\022\022\n\005units\030\003 \001(\tH\002\210\001\001\022N" + "\n\020attributesByName\030\004 \003(\01324.Odb.Lib.Proto" + "buf.AttrListFile.AttributesByNameEntry\0327" + "\n\025AttributesByNameEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005" + "value\030\002 \001(\t:\0028\001B\014\n\n_directoryB\007\n\005_pathB\010" + "\n\006_unitsb\006proto3" +}; +static ::absl::once_flag descriptor_table_attrlistfile_2eproto_once; +PROTOBUF_CONSTINIT const ::_pbi::DescriptorTable descriptor_table_attrlistfile_2eproto = { + false, + false, + 296, + descriptor_table_protodef_attrlistfile_2eproto, "attrlistfile.proto", - &descriptor_table_attrlistfile_2eproto_once, nullptr, 0, 2, - schemas, file_default_instances, TableStruct_attrlistfile_2eproto::offsets, - file_level_metadata_attrlistfile_2eproto, file_level_enum_descriptors_attrlistfile_2eproto, + &descriptor_table_attrlistfile_2eproto_once, + nullptr, + 0, + 2, + schemas, + file_default_instances, + TableStruct_attrlistfile_2eproto::offsets, + file_level_enum_descriptors_attrlistfile_2eproto, file_level_service_descriptors_attrlistfile_2eproto, }; -PROTOBUF_ATTRIBUTE_WEAK const ::_pbi::DescriptorTable* descriptor_table_attrlistfile_2eproto_getter() { - return &descriptor_table_attrlistfile_2eproto; -} - -// Force running AddDescriptors() at dynamic initialization time. -PROTOBUF_ATTRIBUTE_INIT_PRIORITY2 static ::_pbi::AddDescriptorsRunner dynamic_init_dummy_attrlistfile_2eproto(&descriptor_table_attrlistfile_2eproto); namespace Odb { namespace Lib { namespace Protobuf { - // =================================================================== -AttrListFile_AttributesByNameEntry_DoNotUse::AttrListFile_AttributesByNameEntry_DoNotUse() {} -AttrListFile_AttributesByNameEntry_DoNotUse::AttrListFile_AttributesByNameEntry_DoNotUse(::PROTOBUF_NAMESPACE_ID::Arena* arena) - : SuperType(arena) {} -void AttrListFile_AttributesByNameEntry_DoNotUse::MergeFrom(const AttrListFile_AttributesByNameEntry_DoNotUse& other) { - MergeFromInternal(other); -} -::PROTOBUF_NAMESPACE_ID::Metadata AttrListFile_AttributesByNameEntry_DoNotUse::GetMetadata() const { - return ::_pbi::AssignDescriptors( - &descriptor_table_attrlistfile_2eproto_getter, &descriptor_table_attrlistfile_2eproto_once, - file_level_metadata_attrlistfile_2eproto[0]); -} +#if defined(PROTOBUF_CUSTOM_VTABLE) + AttrListFile_AttributesByNameEntry_DoNotUse::AttrListFile_AttributesByNameEntry_DoNotUse() : SuperType(_class_data_.base()) {} + AttrListFile_AttributesByNameEntry_DoNotUse::AttrListFile_AttributesByNameEntry_DoNotUse(::google::protobuf::Arena* arena) + : SuperType(arena, _class_data_.base()) {} +#else // PROTOBUF_CUSTOM_VTABLE + AttrListFile_AttributesByNameEntry_DoNotUse::AttrListFile_AttributesByNameEntry_DoNotUse() : SuperType() {} + AttrListFile_AttributesByNameEntry_DoNotUse::AttrListFile_AttributesByNameEntry_DoNotUse(::google::protobuf::Arena* arena) : SuperType(arena) {} +#endif // PROTOBUF_CUSTOM_VTABLE + inline void* AttrListFile_AttributesByNameEntry_DoNotUse::PlacementNew_(const void*, void* mem, + ::google::protobuf::Arena* arena) { + return ::new (mem) AttrListFile_AttributesByNameEntry_DoNotUse(arena); + } + constexpr auto AttrListFile_AttributesByNameEntry_DoNotUse::InternalNewImpl_() { + return ::google::protobuf::internal::MessageCreator::CopyInit(sizeof(AttrListFile_AttributesByNameEntry_DoNotUse), + alignof(AttrListFile_AttributesByNameEntry_DoNotUse)); + } + PROTOBUF_CONSTINIT + PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 + const ::google::protobuf::internal::ClassDataFull AttrListFile_AttributesByNameEntry_DoNotUse::_class_data_ = { + ::google::protobuf::internal::ClassData{ + &_AttrListFile_AttributesByNameEntry_DoNotUse_default_instance_._instance, + &_table_.header, + nullptr, // OnDemandRegisterArenaDtor + nullptr, // IsInitialized + &AttrListFile_AttributesByNameEntry_DoNotUse::MergeImpl, + ::google::protobuf::Message::GetNewImpl(), + #if defined(PROTOBUF_CUSTOM_VTABLE) + &AttrListFile_AttributesByNameEntry_DoNotUse::SharedDtor, + static_cast( + &AttrListFile_AttributesByNameEntry_DoNotUse::ClearImpl), + ::google::protobuf::Message::ByteSizeLongImpl, ::google::protobuf::Message::_InternalSerializeImpl + , + #endif // PROTOBUF_CUSTOM_VTABLE + PROTOBUF_FIELD_OFFSET(AttrListFile_AttributesByNameEntry_DoNotUse, _impl_._cached_size_), + false, + }, + &AttrListFile_AttributesByNameEntry_DoNotUse::kDescriptorMethods, + &descriptor_table_attrlistfile_2eproto, + nullptr, // tracker + }; + const ::google::protobuf::internal::ClassData* AttrListFile_AttributesByNameEntry_DoNotUse::GetClassData() const { + ::google::protobuf::internal::PrefetchToLocalCache(&_class_data_); + ::google::protobuf::internal::PrefetchToLocalCache(_class_data_.tc_table); + return _class_data_.base(); + } +PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 +const ::_pbi::TcParseTable<1, 2, 0, 68, 2> AttrListFile_AttributesByNameEntry_DoNotUse::_table_ = { + { + PROTOBUF_FIELD_OFFSET(AttrListFile_AttributesByNameEntry_DoNotUse, _impl_._has_bits_), + 0, // no _extensions_ + 2, 8, // max_field_number, fast_idx_mask + offsetof(decltype(_table_), field_lookup_table), + 4294967292, // skipmap + offsetof(decltype(_table_), field_entries), + 2, // num_field_entries + 0, // num_aux_entries + offsetof(decltype(_table_), field_names), // no aux_entries + _class_data_.base(), + nullptr, // post_loop_handler + ::_pbi::TcParser::DiscardEverythingFallback, // fallback + #ifdef PROTOBUF_PREFETCH_PARSE_TABLE + ::_pbi::TcParser::GetTable<::Odb::Lib::Protobuf::AttrListFile_AttributesByNameEntry_DoNotUse>(), // to_prefetch + #endif // PROTOBUF_PREFETCH_PARSE_TABLE + }, {{ + // string value = 2; + {::_pbi::TcParser::FastUS1, + {18, 63, 0, PROTOBUF_FIELD_OFFSET(AttrListFile_AttributesByNameEntry_DoNotUse, _impl_.value_)}}, + // string key = 1; + {::_pbi::TcParser::FastUS1, + {10, 63, 0, PROTOBUF_FIELD_OFFSET(AttrListFile_AttributesByNameEntry_DoNotUse, _impl_.key_)}}, + }}, {{ + 65535, 65535 + }}, {{ + // string key = 1; + {PROTOBUF_FIELD_OFFSET(AttrListFile_AttributesByNameEntry_DoNotUse, _impl_.key_), -1, 0, + (0 | ::_fl::kFcSingular | ::_fl::kUtf8String | ::_fl::kRepAString)}, + // string value = 2; + {PROTOBUF_FIELD_OFFSET(AttrListFile_AttributesByNameEntry_DoNotUse, _impl_.value_), -1, 0, + (0 | ::_fl::kFcSingular | ::_fl::kUtf8String | ::_fl::kRepAString)}, + }}, + // no aux_entries + {{ + "\63\3\5\0\0\0\0\0" + "Odb.Lib.Protobuf.AttrListFile.AttributesByNameEntry" + "key" + "value" + }}, +}; // =================================================================== class AttrListFile::_Internal { public: - using HasBits = decltype(std::declval()._impl_._has_bits_); - static void set_has_directory(HasBits* has_bits) { - (*has_bits)[0] |= 1u; - } - static void set_has_path(HasBits* has_bits) { - (*has_bits)[0] |= 2u; - } - static void set_has_units(HasBits* has_bits) { - (*has_bits)[0] |= 4u; - } + using HasBits = + decltype(std::declval()._impl_._has_bits_); + static constexpr ::int32_t kHasBitsOffset = + 8 * PROTOBUF_FIELD_OFFSET(AttrListFile, _impl_._has_bits_); }; -AttrListFile::AttrListFile(::PROTOBUF_NAMESPACE_ID::Arena* arena, - bool is_message_owned) - : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned) { - SharedCtor(arena, is_message_owned); - if (arena != nullptr && !is_message_owned) { - arena->OwnCustomDestructor(this, &AttrListFile::ArenaDtor); - } +AttrListFile::AttrListFile(::google::protobuf::Arena* arena) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : ::google::protobuf::Message(arena, _class_data_.base()) { +#else // PROTOBUF_CUSTOM_VTABLE + : ::google::protobuf::Message(arena) { +#endif // PROTOBUF_CUSTOM_VTABLE + SharedCtor(arena); // @@protoc_insertion_point(arena_constructor:Odb.Lib.Protobuf.AttrListFile) } -AttrListFile::AttrListFile(const AttrListFile& from) - : ::PROTOBUF_NAMESPACE_ID::Message() { - AttrListFile* const _this = this; (void)_this; - new (&_impl_) Impl_{ - decltype(_impl_._has_bits_){from._impl_._has_bits_} - , /*decltype(_impl_._cached_size_)*/{} - , /*decltype(_impl_.attributesbyname_)*/{} - , decltype(_impl_.directory_){} - , decltype(_impl_.path_){} - , decltype(_impl_.units_){}}; - - _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); - _this->_impl_.attributesbyname_.MergeFrom(from._impl_.attributesbyname_); - _impl_.directory_.InitDefault(); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - _impl_.directory_.Set("", GetArenaForAllocation()); - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (from._internal_has_directory()) { - _this->_impl_.directory_.Set(from._internal_directory(), - _this->GetArenaForAllocation()); - } - _impl_.path_.InitDefault(); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - _impl_.path_.Set("", GetArenaForAllocation()); - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (from._internal_has_path()) { - _this->_impl_.path_.Set(from._internal_path(), - _this->GetArenaForAllocation()); - } - _impl_.units_.InitDefault(); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - _impl_.units_.Set("", GetArenaForAllocation()); - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (from._internal_has_units()) { - _this->_impl_.units_.Set(from._internal_units(), - _this->GetArenaForAllocation()); - } +inline PROTOBUF_NDEBUG_INLINE AttrListFile::Impl_::Impl_( + ::google::protobuf::internal::InternalVisibility visibility, ::google::protobuf::Arena* arena, + const Impl_& from, const ::Odb::Lib::Protobuf::AttrListFile& from_msg) + : _has_bits_{from._has_bits_}, + _cached_size_{0}, + attributesbyname_{visibility, arena, from.attributesbyname_}, + directory_(arena, from.directory_), + path_(arena, from.path_), + units_(arena, from.units_) {} + +AttrListFile::AttrListFile( + ::google::protobuf::Arena* arena, + const AttrListFile& from) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : ::google::protobuf::Message(arena, _class_data_.base()) { +#else // PROTOBUF_CUSTOM_VTABLE + : ::google::protobuf::Message(arena) { +#endif // PROTOBUF_CUSTOM_VTABLE + AttrListFile* const _this = this; + (void)_this; + _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( + from._internal_metadata_); + new (&_impl_) Impl_(internal_visibility(), arena, from._impl_, from); + // @@protoc_insertion_point(copy_constructor:Odb.Lib.Protobuf.AttrListFile) } - -inline void AttrListFile::SharedCtor( - ::_pb::Arena* arena, bool is_message_owned) { - (void)arena; - (void)is_message_owned; - new (&_impl_) Impl_{ - decltype(_impl_._has_bits_){} - , /*decltype(_impl_._cached_size_)*/{} - , /*decltype(_impl_.attributesbyname_)*/{::_pbi::ArenaInitialized(), arena} - , decltype(_impl_.directory_){} - , decltype(_impl_.path_){} - , decltype(_impl_.units_){} - }; - _impl_.directory_.InitDefault(); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - _impl_.directory_.Set("", GetArenaForAllocation()); - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING - _impl_.path_.InitDefault(); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - _impl_.path_.Set("", GetArenaForAllocation()); - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING - _impl_.units_.InitDefault(); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - _impl_.units_.Set("", GetArenaForAllocation()); - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING +inline PROTOBUF_NDEBUG_INLINE AttrListFile::Impl_::Impl_( + ::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* arena) + : _cached_size_{0}, + attributesbyname_{visibility, arena}, + directory_(arena), + path_(arena), + units_(arena) {} + +inline void AttrListFile::SharedCtor(::_pb::Arena* arena) { + new (&_impl_) Impl_(internal_visibility(), arena); } - AttrListFile::~AttrListFile() { // @@protoc_insertion_point(destructor:Odb.Lib.Protobuf.AttrListFile) - if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) { - (void)arena; - ArenaDtor(this); - return; - } - SharedDtor(); + SharedDtor(*this); } - -inline void AttrListFile::SharedDtor() { - GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); - _impl_.attributesbyname_.Destruct(); - _impl_.attributesbyname_.~MapField(); - _impl_.directory_.Destroy(); - _impl_.path_.Destroy(); - _impl_.units_.Destroy(); +inline void AttrListFile::SharedDtor(MessageLite& self) { + AttrListFile& this_ = static_cast(self); + this_._internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); + ABSL_DCHECK(this_.GetArena() == nullptr); + this_._impl_.directory_.Destroy(); + this_._impl_.path_.Destroy(); + this_._impl_.units_.Destroy(); + this_._impl_.~Impl_(); } -void AttrListFile::ArenaDtor(void* object) { - AttrListFile* _this = reinterpret_cast< AttrListFile* >(object); - _this->_impl_.attributesbyname_.Destruct(); +inline void* AttrListFile::PlacementNew_(const void*, void* mem, + ::google::protobuf::Arena* arena) { + return ::new (mem) AttrListFile(arena); } -void AttrListFile::SetCachedSize(int size) const { - _impl_._cached_size_.Set(size); +constexpr auto AttrListFile::InternalNewImpl_() { + constexpr auto arena_bits = ::google::protobuf::internal::EncodePlacementArenaOffsets({ + PROTOBUF_FIELD_OFFSET(AttrListFile, _impl_.attributesbyname_) + + decltype(AttrListFile::_impl_.attributesbyname_):: + InternalGetArenaOffset( + ::google::protobuf::Message::internal_visibility()), + PROTOBUF_FIELD_OFFSET(AttrListFile, _impl_.attributesbyname_) + + decltype(AttrListFile::_impl_.attributesbyname_):: + InternalGetArenaOffsetAlt( + ::google::protobuf::Message::internal_visibility()), + }); + if (arena_bits.has_value()) { + return ::google::protobuf::internal::MessageCreator::CopyInit( + sizeof(AttrListFile), alignof(AttrListFile), *arena_bits); + } else { + return ::google::protobuf::internal::MessageCreator(&AttrListFile::PlacementNew_, + sizeof(AttrListFile), + alignof(AttrListFile)); + } +} +PROTOBUF_CONSTINIT +PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 +const ::google::protobuf::internal::ClassDataFull AttrListFile::_class_data_ = { + ::google::protobuf::internal::ClassData{ + &_AttrListFile_default_instance_._instance, + &_table_.header, + nullptr, // OnDemandRegisterArenaDtor + nullptr, // IsInitialized + &AttrListFile::MergeImpl, + ::google::protobuf::Message::GetNewImpl(), +#if defined(PROTOBUF_CUSTOM_VTABLE) + &AttrListFile::SharedDtor, + ::google::protobuf::Message::GetClearImpl(), &AttrListFile::ByteSizeLong, + &AttrListFile::_InternalSerialize, +#endif // PROTOBUF_CUSTOM_VTABLE + PROTOBUF_FIELD_OFFSET(AttrListFile, _impl_._cached_size_), + false, + }, + &AttrListFile::kDescriptorMethods, + &descriptor_table_attrlistfile_2eproto, + nullptr, // tracker +}; +const ::google::protobuf::internal::ClassData* AttrListFile::GetClassData() const { + ::google::protobuf::internal::PrefetchToLocalCache(&_class_data_); + ::google::protobuf::internal::PrefetchToLocalCache(_class_data_.tc_table); + return _class_data_.base(); } +PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 +const ::_pbi::TcParseTable<2, 4, 1, 72, 2> AttrListFile::_table_ = { + { + PROTOBUF_FIELD_OFFSET(AttrListFile, _impl_._has_bits_), + 0, // no _extensions_ + 4, 24, // max_field_number, fast_idx_mask + offsetof(decltype(_table_), field_lookup_table), + 4294967280, // skipmap + offsetof(decltype(_table_), field_entries), + 4, // num_field_entries + 1, // num_aux_entries + offsetof(decltype(_table_), aux_entries), + _class_data_.base(), + nullptr, // post_loop_handler + ::_pbi::TcParser::GenericFallback, // fallback + #ifdef PROTOBUF_PREFETCH_PARSE_TABLE + ::_pbi::TcParser::GetTable<::Odb::Lib::Protobuf::AttrListFile>(), // to_prefetch + #endif // PROTOBUF_PREFETCH_PARSE_TABLE + }, {{ + {::_pbi::TcParser::MiniParse, {}}, + // optional string directory = 1; + {::_pbi::TcParser::FastUS1, + {10, 0, 0, PROTOBUF_FIELD_OFFSET(AttrListFile, _impl_.directory_)}}, + // optional string path = 2; + {::_pbi::TcParser::FastUS1, + {18, 1, 0, PROTOBUF_FIELD_OFFSET(AttrListFile, _impl_.path_)}}, + // optional string units = 3; + {::_pbi::TcParser::FastUS1, + {26, 2, 0, PROTOBUF_FIELD_OFFSET(AttrListFile, _impl_.units_)}}, + }}, {{ + 65535, 65535 + }}, {{ + // optional string directory = 1; + {PROTOBUF_FIELD_OFFSET(AttrListFile, _impl_.directory_), _Internal::kHasBitsOffset + 0, 0, + (0 | ::_fl::kFcOptional | ::_fl::kUtf8String | ::_fl::kRepAString)}, + // optional string path = 2; + {PROTOBUF_FIELD_OFFSET(AttrListFile, _impl_.path_), _Internal::kHasBitsOffset + 1, 0, + (0 | ::_fl::kFcOptional | ::_fl::kUtf8String | ::_fl::kRepAString)}, + // optional string units = 3; + {PROTOBUF_FIELD_OFFSET(AttrListFile, _impl_.units_), _Internal::kHasBitsOffset + 2, 0, + (0 | ::_fl::kFcOptional | ::_fl::kUtf8String | ::_fl::kRepAString)}, + // map attributesByName = 4; + {PROTOBUF_FIELD_OFFSET(AttrListFile, _impl_.attributesbyname_), -1, 0, + (0 | ::_fl::kFcRepeated | ::_fl::kMap)}, + }}, {{ + {::_pbi::TcParser::GetMapAuxInfo< + decltype(AttrListFile()._impl_.attributesbyname_)>( + 1, 0, 0, 9, + 9)}, + }}, {{ + "\35\11\4\5\20\0\0\0" + "Odb.Lib.Protobuf.AttrListFile" + "directory" + "path" + "units" + "attributesByName" + }}, +}; -void AttrListFile::Clear() { +PROTOBUF_NOINLINE void AttrListFile::Clear() { // @@protoc_insertion_point(message_clear_start:Odb.Lib.Protobuf.AttrListFile) - uint32_t cached_has_bits = 0; + ::google::protobuf::internal::TSanWrite(&_impl_); + ::uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; @@ -275,214 +452,146 @@ void AttrListFile::Clear() { } } _impl_._has_bits_.Clear(); - _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); + _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); } -const char* AttrListFile::_InternalParse(const char* ptr, ::_pbi::ParseContext* ctx) { -#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure - _Internal::HasBits has_bits{}; - while (!ctx->Done(&ptr)) { - uint32_t tag; - ptr = ::_pbi::ReadTag(ptr, &tag); - switch (tag >> 3) { - // optional string directory = 1; - case 1: - if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 10)) { - auto str = _internal_mutable_directory(); - ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); - CHK_(ptr); - CHK_(::_pbi::VerifyUTF8(str, "Odb.Lib.Protobuf.AttrListFile.directory")); - } else - goto handle_unusual; - continue; - // optional string path = 2; - case 2: - if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 18)) { - auto str = _internal_mutable_path(); - ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); - CHK_(ptr); - CHK_(::_pbi::VerifyUTF8(str, "Odb.Lib.Protobuf.AttrListFile.path")); - } else - goto handle_unusual; - continue; - // optional string units = 3; - case 3: - if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 26)) { - auto str = _internal_mutable_units(); - ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); - CHK_(ptr); - CHK_(::_pbi::VerifyUTF8(str, "Odb.Lib.Protobuf.AttrListFile.units")); - } else - goto handle_unusual; - continue; - // map attributesByName = 4; - case 4: - if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 34)) { - ptr -= 1; - do { - ptr += 1; - ptr = ctx->ParseMessage(&_impl_.attributesbyname_, ptr); - CHK_(ptr); - if (!ctx->DataAvailable(ptr)) break; - } while (::PROTOBUF_NAMESPACE_ID::internal::ExpectTag<34>(ptr)); - } else - goto handle_unusual; - continue; - default: - goto handle_unusual; - } // switch - handle_unusual: - if ((tag == 0) || ((tag & 7) == 4)) { - CHK_(ptr); - ctx->SetLastTag(tag); - goto message_done; - } - ptr = UnknownFieldParse( - tag, - _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(), - ptr, ctx); - CHK_(ptr != nullptr); - } // while -message_done: - _impl_._has_bits_.Or(has_bits); - return ptr; -failure: - ptr = nullptr; - goto message_done; -#undef CHK_ -} - -uint8_t* AttrListFile::_InternalSerialize( - uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { - // @@protoc_insertion_point(serialize_to_array_start:Odb.Lib.Protobuf.AttrListFile) - uint32_t cached_has_bits = 0; - (void) cached_has_bits; - - // optional string directory = 1; - if (_internal_has_directory()) { - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( - this->_internal_directory().data(), static_cast(this->_internal_directory().length()), - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, - "Odb.Lib.Protobuf.AttrListFile.directory"); - target = stream->WriteStringMaybeAliased( - 1, this->_internal_directory(), target); - } - - // optional string path = 2; - if (_internal_has_path()) { - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( - this->_internal_path().data(), static_cast(this->_internal_path().length()), - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, - "Odb.Lib.Protobuf.AttrListFile.path"); - target = stream->WriteStringMaybeAliased( - 2, this->_internal_path(), target); - } - - // optional string units = 3; - if (_internal_has_units()) { - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( - this->_internal_units().data(), static_cast(this->_internal_units().length()), - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, - "Odb.Lib.Protobuf.AttrListFile.units"); - target = stream->WriteStringMaybeAliased( - 3, this->_internal_units(), target); - } - - // map attributesByName = 4; - if (!this->_internal_attributesbyname().empty()) { - using MapType = ::_pb::Map; - using WireHelper = AttrListFile_AttributesByNameEntry_DoNotUse::Funcs; - const auto& map_field = this->_internal_attributesbyname(); - auto check_utf8 = [](const MapType::value_type& entry) { - (void)entry; - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( - entry.first.data(), static_cast(entry.first.length()), - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, - "Odb.Lib.Protobuf.AttrListFile.AttributesByNameEntry.key"); - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( - entry.second.data(), static_cast(entry.second.length()), - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, - "Odb.Lib.Protobuf.AttrListFile.AttributesByNameEntry.value"); - }; - - if (stream->IsSerializationDeterministic() && map_field.size() > 1) { - for (const auto& entry : ::_pbi::MapSorterPtr(map_field)) { - target = WireHelper::InternalSerialize(4, entry.first, entry.second, target, stream); - check_utf8(entry); - } - } else { - for (const auto& entry : map_field) { - target = WireHelper::InternalSerialize(4, entry.first, entry.second, target, stream); - check_utf8(entry); - } - } - } - - if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = ::_pbi::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:Odb.Lib.Protobuf.AttrListFile) - return target; -} - -size_t AttrListFile::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:Odb.Lib.Protobuf.AttrListFile) - size_t total_size = 0; - - uint32_t cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - // map attributesByName = 4; - total_size += 1 * - ::PROTOBUF_NAMESPACE_ID::internal::FromIntSize(this->_internal_attributesbyname_size()); - for (::PROTOBUF_NAMESPACE_ID::Map< std::string, std::string >::const_iterator - it = this->_internal_attributesbyname().begin(); - it != this->_internal_attributesbyname().end(); ++it) { - total_size += AttrListFile_AttributesByNameEntry_DoNotUse::Funcs::ByteSizeLong(it->first, it->second); - } - - cached_has_bits = _impl_._has_bits_[0]; - if (cached_has_bits & 0x00000007u) { - // optional string directory = 1; - if (cached_has_bits & 0x00000001u) { - total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( - this->_internal_directory()); - } - - // optional string path = 2; - if (cached_has_bits & 0x00000002u) { - total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( - this->_internal_path()); - } - - // optional string units = 3; - if (cached_has_bits & 0x00000004u) { - total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( - this->_internal_units()); - } - - } - return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); -} - -const ::PROTOBUF_NAMESPACE_ID::Message::ClassData AttrListFile::_class_data_ = { - ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSourceCheck, - AttrListFile::MergeImpl -}; -const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*AttrListFile::GetClassData() const { return &_class_data_; } - - -void AttrListFile::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg) { +#if defined(PROTOBUF_CUSTOM_VTABLE) + ::uint8_t* AttrListFile::_InternalSerialize( + const MessageLite& base, ::uint8_t* target, + ::google::protobuf::io::EpsCopyOutputStream* stream) { + const AttrListFile& this_ = static_cast(base); +#else // PROTOBUF_CUSTOM_VTABLE + ::uint8_t* AttrListFile::_InternalSerialize( + ::uint8_t* target, + ::google::protobuf::io::EpsCopyOutputStream* stream) const { + const AttrListFile& this_ = *this; +#endif // PROTOBUF_CUSTOM_VTABLE + // @@protoc_insertion_point(serialize_to_array_start:Odb.Lib.Protobuf.AttrListFile) + ::uint32_t cached_has_bits = 0; + (void)cached_has_bits; + + cached_has_bits = this_._impl_._has_bits_[0]; + // optional string directory = 1; + if (cached_has_bits & 0x00000001u) { + const std::string& _s = this_._internal_directory(); + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + _s.data(), static_cast(_s.length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "Odb.Lib.Protobuf.AttrListFile.directory"); + target = stream->WriteStringMaybeAliased(1, _s, target); + } + + // optional string path = 2; + if (cached_has_bits & 0x00000002u) { + const std::string& _s = this_._internal_path(); + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + _s.data(), static_cast(_s.length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "Odb.Lib.Protobuf.AttrListFile.path"); + target = stream->WriteStringMaybeAliased(2, _s, target); + } + + // optional string units = 3; + if (cached_has_bits & 0x00000004u) { + const std::string& _s = this_._internal_units(); + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + _s.data(), static_cast(_s.length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "Odb.Lib.Protobuf.AttrListFile.units"); + target = stream->WriteStringMaybeAliased(3, _s, target); + } + + // map attributesByName = 4; + if (!this_._internal_attributesbyname().empty()) { + using MapType = ::google::protobuf::Map; + using WireHelper = _pbi::MapEntryFuncs; + const auto& field = this_._internal_attributesbyname(); + + if (stream->IsSerializationDeterministic() && field.size() > 1) { + for (const auto& entry : ::google::protobuf::internal::MapSorterPtr(field)) { + target = WireHelper::InternalSerialize( + 4, entry.first, entry.second, target, stream); + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + entry.first.data(), static_cast(entry.first.length()), + ::google::protobuf::internal::WireFormatLite::SERIALIZE, "Odb.Lib.Protobuf.AttrListFile.attributesByName"); + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + entry.second.data(), static_cast(entry.second.length()), + ::google::protobuf::internal::WireFormatLite::SERIALIZE, "Odb.Lib.Protobuf.AttrListFile.attributesByName"); + } + } else { + for (const auto& entry : field) { + target = WireHelper::InternalSerialize( + 4, entry.first, entry.second, target, stream); + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + entry.first.data(), static_cast(entry.first.length()), + ::google::protobuf::internal::WireFormatLite::SERIALIZE, "Odb.Lib.Protobuf.AttrListFile.attributesByName"); + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + entry.second.data(), static_cast(entry.second.length()), + ::google::protobuf::internal::WireFormatLite::SERIALIZE, "Odb.Lib.Protobuf.AttrListFile.attributesByName"); + } + } + } + + if (PROTOBUF_PREDICT_FALSE(this_._internal_metadata_.have_unknown_fields())) { + target = + ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( + this_._internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); + } + // @@protoc_insertion_point(serialize_to_array_end:Odb.Lib.Protobuf.AttrListFile) + return target; + } + +#if defined(PROTOBUF_CUSTOM_VTABLE) + ::size_t AttrListFile::ByteSizeLong(const MessageLite& base) { + const AttrListFile& this_ = static_cast(base); +#else // PROTOBUF_CUSTOM_VTABLE + ::size_t AttrListFile::ByteSizeLong() const { + const AttrListFile& this_ = *this; +#endif // PROTOBUF_CUSTOM_VTABLE + // @@protoc_insertion_point(message_byte_size_start:Odb.Lib.Protobuf.AttrListFile) + ::size_t total_size = 0; + + ::uint32_t cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void)cached_has_bits; + + ::_pbi::Prefetch5LinesFrom7Lines(&this_); + { + // map attributesByName = 4; + { + total_size += + 1 * ::google::protobuf::internal::FromIntSize(this_._internal_attributesbyname_size()); + for (const auto& entry : this_._internal_attributesbyname()) { + total_size += _pbi::MapEntryFuncs::ByteSizeLong(entry.first, entry.second); + } + } + } + cached_has_bits = this_._impl_._has_bits_[0]; + if (cached_has_bits & 0x00000007u) { + // optional string directory = 1; + if (cached_has_bits & 0x00000001u) { + total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize( + this_._internal_directory()); + } + // optional string path = 2; + if (cached_has_bits & 0x00000002u) { + total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize( + this_._internal_path()); + } + // optional string units = 3; + if (cached_has_bits & 0x00000004u) { + total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize( + this_._internal_units()); + } + } + return this_.MaybeComputeUnknownFieldsSize(total_size, + &this_._impl_._cached_size_); + } + +void AttrListFile::MergeImpl(::google::protobuf::MessageLite& to_msg, const ::google::protobuf::MessageLite& from_msg) { auto* const _this = static_cast(&to_msg); auto& from = static_cast(from_msg); // @@protoc_insertion_point(class_specific_merge_from_start:Odb.Lib.Protobuf.AttrListFile) - GOOGLE_DCHECK_NE(&from, _this); - uint32_t cached_has_bits = 0; + ABSL_DCHECK_NE(&from, _this); + ::uint32_t cached_has_bits = 0; (void) cached_has_bits; _this->_impl_.attributesbyname_.MergeFrom(from._impl_.attributesbyname_); @@ -498,7 +607,8 @@ void AttrListFile::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::P _this->_internal_set_units(from._internal_units()); } } - _this->_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); + _this->_impl_._has_bits_[0] |= cached_has_bits; + _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); } void AttrListFile::CopyFrom(const AttrListFile& from) { @@ -508,51 +618,33 @@ void AttrListFile::CopyFrom(const AttrListFile& from) { MergeFrom(from); } -bool AttrListFile::IsInitialized() const { - return true; -} -void AttrListFile::InternalSwap(AttrListFile* other) { +void AttrListFile::InternalSwap(AttrListFile* PROTOBUF_RESTRICT other) { using std::swap; - auto* lhs_arena = GetArenaForAllocation(); - auto* rhs_arena = other->GetArenaForAllocation(); + auto* arena = GetArena(); + ABSL_DCHECK_EQ(arena, other->GetArena()); _internal_metadata_.InternalSwap(&other->_internal_metadata_); swap(_impl_._has_bits_[0], other->_impl_._has_bits_[0]); _impl_.attributesbyname_.InternalSwap(&other->_impl_.attributesbyname_); - ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( - &_impl_.directory_, lhs_arena, - &other->_impl_.directory_, rhs_arena - ); - ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( - &_impl_.path_, lhs_arena, - &other->_impl_.path_, rhs_arena - ); - ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( - &_impl_.units_, lhs_arena, - &other->_impl_.units_, rhs_arena - ); + ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.directory_, &other->_impl_.directory_, arena); + ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.path_, &other->_impl_.path_, arena); + ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.units_, &other->_impl_.units_, arena); } -::PROTOBUF_NAMESPACE_ID::Metadata AttrListFile::GetMetadata() const { - return ::_pbi::AssignDescriptors( - &descriptor_table_attrlistfile_2eproto_getter, &descriptor_table_attrlistfile_2eproto_once, - file_level_metadata_attrlistfile_2eproto[1]); +::google::protobuf::Metadata AttrListFile::GetMetadata() const { + return ::google::protobuf::Message::GetMetadataImpl(GetClassData()->full()); } - // @@protoc_insertion_point(namespace_scope) } // namespace Protobuf } // namespace Lib } // namespace Odb -PROTOBUF_NAMESPACE_OPEN -template<> PROTOBUF_NOINLINE ::Odb::Lib::Protobuf::AttrListFile_AttributesByNameEntry_DoNotUse* -Arena::CreateMaybeMessage< ::Odb::Lib::Protobuf::AttrListFile_AttributesByNameEntry_DoNotUse >(Arena* arena) { - return Arena::CreateMessageInternal< ::Odb::Lib::Protobuf::AttrListFile_AttributesByNameEntry_DoNotUse >(arena); -} -template<> PROTOBUF_NOINLINE ::Odb::Lib::Protobuf::AttrListFile* -Arena::CreateMaybeMessage< ::Odb::Lib::Protobuf::AttrListFile >(Arena* arena) { - return Arena::CreateMessageInternal< ::Odb::Lib::Protobuf::AttrListFile >(arena); -} -PROTOBUF_NAMESPACE_CLOSE - +namespace google { +namespace protobuf { +} // namespace protobuf +} // namespace google // @@protoc_insertion_point(global_scope) -#include +PROTOBUF_ATTRIBUTE_INIT_PRIORITY2 static ::std::false_type + _static_init2_ PROTOBUF_UNUSED = + (::_pbi::AddDescriptors(&descriptor_table_attrlistfile_2eproto), + ::std::false_type{}); +#include "google/protobuf/port_undef.inc" diff --git a/OdbDesignLib/ProtoBuf/attrlistfile.pb.h b/OdbDesignLib/ProtoBuf/attrlistfile.pb.h index 942c9c23..0e819bda 100644 --- a/OdbDesignLib/ProtoBuf/attrlistfile.pb.h +++ b/OdbDesignLib/ProtoBuf/attrlistfile.pb.h @@ -1,52 +1,59 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE // source: attrlistfile.proto +// Protobuf C++ Version: 5.29.2 -#ifndef GOOGLE_PROTOBUF_INCLUDED_attrlistfile_2eproto -#define GOOGLE_PROTOBUF_INCLUDED_attrlistfile_2eproto +#ifndef attrlistfile_2eproto_2epb_2eh +#define attrlistfile_2eproto_2epb_2eh #include #include - -#include -#if PROTOBUF_VERSION < 3021000 -#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 3021012 < 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. +#include +#include + +#include "google/protobuf/runtime_version.h" +#if PROTOBUF_VERSION != 5029002 +#error "Protobuf C++ gencode is built with an incompatible version of" +#error "Protobuf C++ headers/runtime. See" +#error "https://protobuf.dev/support/cross-version-runtime-guarantee/#cpp" #endif - -#include -#include -#include -#include -#include -#include -#include -#include -#include // IWYU pragma: export -#include // IWYU pragma: export -#include // IWYU pragma: export -#include -#include -#include +#include "google/protobuf/io/coded_stream.h" +#include "google/protobuf/arena.h" +#include "google/protobuf/arenastring.h" +#include "google/protobuf/generated_message_tctable_decl.h" +#include "google/protobuf/generated_message_util.h" +#include "google/protobuf/metadata_lite.h" +#include "google/protobuf/generated_message_reflection.h" +#include "google/protobuf/message.h" +#include "google/protobuf/message_lite.h" +#include "google/protobuf/repeated_field.h" // IWYU pragma: export +#include "google/protobuf/extension_set.h" // IWYU pragma: export +#include "google/protobuf/map.h" // IWYU pragma: export +#include "google/protobuf/map_entry.h" +#include "google/protobuf/map_field_inl.h" +#include "google/protobuf/unknown_field_set.h" // @@protoc_insertion_point(includes) -#include + +// Must be included last. +#include "google/protobuf/port_def.inc" + #define PROTOBUF_INTERNAL_EXPORT_attrlistfile_2eproto ODBDESIGN_EXPORT -PROTOBUF_NAMESPACE_OPEN + +namespace google { +namespace protobuf { namespace internal { -class AnyMetadata; +template +::absl::string_view GetAnyMessageName(); } // namespace internal -PROTOBUF_NAMESPACE_CLOSE +} // namespace protobuf +} // namespace google // Internal implementation detail -- do not use these members. struct ODBDESIGN_EXPORT TableStruct_attrlistfile_2eproto { - static const uint32_t offsets[]; + static const ::uint32_t offsets[]; }; -ODBDESIGN_EXPORT extern const ::PROTOBUF_NAMESPACE_ID::internal::DescriptorTable descriptor_table_attrlistfile_2eproto; +ODBDESIGN_EXPORT extern const ::google::protobuf::internal::DescriptorTable + descriptor_table_attrlistfile_2eproto; namespace Odb { namespace Lib { namespace Protobuf { @@ -59,68 +66,86 @@ ODBDESIGN_EXPORT extern AttrListFile_AttributesByNameEntry_DoNotUseDefaultTypeIn } // namespace Protobuf } // namespace Lib } // namespace Odb -PROTOBUF_NAMESPACE_OPEN -template<> ODBDESIGN_EXPORT ::Odb::Lib::Protobuf::AttrListFile* Arena::CreateMaybeMessage<::Odb::Lib::Protobuf::AttrListFile>(Arena*); -template<> ODBDESIGN_EXPORT ::Odb::Lib::Protobuf::AttrListFile_AttributesByNameEntry_DoNotUse* Arena::CreateMaybeMessage<::Odb::Lib::Protobuf::AttrListFile_AttributesByNameEntry_DoNotUse>(Arena*); -PROTOBUF_NAMESPACE_CLOSE +namespace google { +namespace protobuf { +} // namespace protobuf +} // namespace google + namespace Odb { namespace Lib { namespace Protobuf { // =================================================================== -class AttrListFile_AttributesByNameEntry_DoNotUse : public ::PROTOBUF_NAMESPACE_ID::internal::MapEntry { -public: - typedef ::PROTOBUF_NAMESPACE_ID::internal::MapEntry SuperType; + +// ------------------------------------------------------------------- + +class AttrListFile_AttributesByNameEntry_DoNotUse final + : public ::google::protobuf::internal::MapEntry< + std::string, std::string, + ::google::protobuf::internal::WireFormatLite::TYPE_STRING, + ::google::protobuf::internal::WireFormatLite::TYPE_STRING> { + public: + using SuperType = ::google::protobuf::internal::MapEntry< + std::string, std::string, + ::google::protobuf::internal::WireFormatLite::TYPE_STRING, + ::google::protobuf::internal::WireFormatLite::TYPE_STRING>; AttrListFile_AttributesByNameEntry_DoNotUse(); + template explicit PROTOBUF_CONSTEXPR AttrListFile_AttributesByNameEntry_DoNotUse( - ::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); - explicit AttrListFile_AttributesByNameEntry_DoNotUse(::PROTOBUF_NAMESPACE_ID::Arena* arena); - void MergeFrom(const AttrListFile_AttributesByNameEntry_DoNotUse& other); - static const AttrListFile_AttributesByNameEntry_DoNotUse* internal_default_instance() { return reinterpret_cast(&_AttrListFile_AttributesByNameEntry_DoNotUse_default_instance_); } - static bool ValidateKey(std::string* s) { - return ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String(s->data(), static_cast(s->size()), ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::PARSE, "Odb.Lib.Protobuf.AttrListFile.AttributesByNameEntry.key"); - } - static bool ValidateValue(std::string* s) { - return ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String(s->data(), static_cast(s->size()), ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::PARSE, "Odb.Lib.Protobuf.AttrListFile.AttributesByNameEntry.value"); - } - using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; - ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; + ::google::protobuf::internal::ConstantInitialized); + explicit AttrListFile_AttributesByNameEntry_DoNotUse(::google::protobuf::Arena* arena); + static const AttrListFile_AttributesByNameEntry_DoNotUse* internal_default_instance() { + return reinterpret_cast( + &_AttrListFile_AttributesByNameEntry_DoNotUse_default_instance_); + } + + + private: + friend class ::google::protobuf::MessageLite; friend struct ::TableStruct_attrlistfile_2eproto; -}; + friend class ::google::protobuf::internal::TcParser; + static const ::google::protobuf::internal::TcParseTable< + 1, 2, 0, + 68, 2> + _table_; + + const ::google::protobuf::internal::ClassData* GetClassData() const PROTOBUF_FINAL; + static void* PlacementNew_(const void*, void* mem, + ::google::protobuf::Arena* arena); + static constexpr auto InternalNewImpl_(); + static const ::google::protobuf::internal::ClassDataFull _class_data_; +}; // ------------------------------------------------------------------- -class ODBDESIGN_EXPORT AttrListFile final : - public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:Odb.Lib.Protobuf.AttrListFile) */ { +class ODBDESIGN_EXPORT AttrListFile final : public ::google::protobuf::Message +/* @@protoc_insertion_point(class_definition:Odb.Lib.Protobuf.AttrListFile) */ { public: inline AttrListFile() : AttrListFile(nullptr) {} - ~AttrListFile() override; - explicit PROTOBUF_CONSTEXPR AttrListFile(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); + ~AttrListFile() PROTOBUF_FINAL; - AttrListFile(const AttrListFile& from); - AttrListFile(AttrListFile&& from) noexcept - : AttrListFile() { - *this = ::std::move(from); +#if defined(PROTOBUF_CUSTOM_VTABLE) + void operator delete(AttrListFile* msg, std::destroying_delete_t) { + SharedDtor(*msg); + ::google::protobuf::internal::SizedDelete(msg, sizeof(AttrListFile)); } +#endif + + template + explicit PROTOBUF_CONSTEXPR AttrListFile( + ::google::protobuf::internal::ConstantInitialized); + inline AttrListFile(const AttrListFile& from) : AttrListFile(nullptr, from) {} + inline AttrListFile(AttrListFile&& from) noexcept + : AttrListFile(nullptr, std::move(from)) {} inline AttrListFile& operator=(const AttrListFile& from) { CopyFrom(from); return *this; } inline AttrListFile& operator=(AttrListFile&& from) noexcept { if (this == &from) return *this; - if (GetOwningArena() == from.GetOwningArena() - #ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetOwningArena() != nullptr - #endif // !PROTOBUF_FORCE_COPY_IN_MOVE - ) { + if (::google::protobuf::internal::CanMoveWithInternalSwap(GetArena(), from.GetArena())) { InternalSwap(&from); } else { CopyFrom(from); @@ -128,13 +153,22 @@ class ODBDESIGN_EXPORT AttrListFile final : return *this; } - static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { + inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const + ABSL_ATTRIBUTE_LIFETIME_BOUND { + return _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance); + } + inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() + ABSL_ATTRIBUTE_LIFETIME_BOUND { + return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); + } + + static const ::google::protobuf::Descriptor* descriptor() { return GetDescriptor(); } - static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { + static const ::google::protobuf::Descriptor* GetDescriptor() { return default_instance().GetMetadata().descriptor; } - static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { + static const ::google::protobuf::Reflection* GetReflection() { return default_instance().GetMetadata().reflection; } static const AttrListFile& default_instance() { @@ -142,84 +176,94 @@ class ODBDESIGN_EXPORT AttrListFile final : } static inline const AttrListFile* internal_default_instance() { return reinterpret_cast( - &_AttrListFile_default_instance_); - } - static constexpr int kIndexInFileMessages = - 1; - - friend void swap(AttrListFile& a, AttrListFile& b) { - a.Swap(&b); + &_AttrListFile_default_instance_); } + static constexpr int kIndexInFileMessages = 1; + friend void swap(AttrListFile& a, AttrListFile& b) { a.Swap(&b); } inline void Swap(AttrListFile* other) { if (other == this) return; - #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetOwningArena() != nullptr && - GetOwningArena() == other->GetOwningArena()) { - #else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetOwningArena() == other->GetOwningArena()) { - #endif // !PROTOBUF_FORCE_COPY_IN_SWAP + if (::google::protobuf::internal::CanUseInternalSwap(GetArena(), other->GetArena())) { InternalSwap(other); } else { - ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); + ::google::protobuf::internal::GenericSwap(this, other); } } void UnsafeArenaSwap(AttrListFile* other) { if (other == this) return; - GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); + ABSL_DCHECK(GetArena() == other->GetArena()); InternalSwap(other); } // implements Message ---------------------------------------------- - AttrListFile* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); + AttrListFile* New(::google::protobuf::Arena* arena = nullptr) const { + return ::google::protobuf::Message::DefaultConstruct(arena); } - using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; + using ::google::protobuf::Message::CopyFrom; void CopyFrom(const AttrListFile& from); - using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; - void MergeFrom( const AttrListFile& from) { - AttrListFile::MergeImpl(*this, from); - } - private: - static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg); - public: - PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; - bool IsInitialized() const final; - - size_t ByteSizeLong() const final; - const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final; - uint8_t* _InternalSerialize( - uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const final { return _impl_._cached_size_.Get(); } + using ::google::protobuf::Message::MergeFrom; + void MergeFrom(const AttrListFile& from) { AttrListFile::MergeImpl(*this, from); } private: - void SharedCtor(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned); - void SharedDtor(); - void SetCachedSize(int size) const final; - void InternalSwap(AttrListFile* other); + static void MergeImpl( + ::google::protobuf::MessageLite& to_msg, + const ::google::protobuf::MessageLite& from_msg); - private: - friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; - static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { - return "Odb.Lib.Protobuf.AttrListFile"; + public: + bool IsInitialized() const { + return true; } - protected: - explicit AttrListFile(::PROTOBUF_NAMESPACE_ID::Arena* arena, - bool is_message_owned = false); + ABSL_ATTRIBUTE_REINITIALIZES void Clear() PROTOBUF_FINAL; + #if defined(PROTOBUF_CUSTOM_VTABLE) private: - static void ArenaDtor(void* object); - public: + static ::size_t ByteSizeLong(const ::google::protobuf::MessageLite& msg); + static ::uint8_t* _InternalSerialize( + const MessageLite& msg, ::uint8_t* target, + ::google::protobuf::io::EpsCopyOutputStream* stream); - static const ClassData _class_data_; - const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final; + public: + ::size_t ByteSizeLong() const { return ByteSizeLong(*this); } + ::uint8_t* _InternalSerialize( + ::uint8_t* target, + ::google::protobuf::io::EpsCopyOutputStream* stream) const { + return _InternalSerialize(*this, target, stream); + } + #else // PROTOBUF_CUSTOM_VTABLE + ::size_t ByteSizeLong() const final; + ::uint8_t* _InternalSerialize( + ::uint8_t* target, + ::google::protobuf::io::EpsCopyOutputStream* stream) const final; + #endif // PROTOBUF_CUSTOM_VTABLE + int GetCachedSize() const { return _impl_._cached_size_.Get(); } - ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; + private: + void SharedCtor(::google::protobuf::Arena* arena); + static void SharedDtor(MessageLite& self); + void InternalSwap(AttrListFile* other); + private: + template + friend ::absl::string_view( + ::google::protobuf::internal::GetAnyMessageName)(); + static ::absl::string_view FullMessageName() { return "Odb.Lib.Protobuf.AttrListFile"; } + + protected: + explicit AttrListFile(::google::protobuf::Arena* arena); + AttrListFile(::google::protobuf::Arena* arena, const AttrListFile& from); + AttrListFile(::google::protobuf::Arena* arena, AttrListFile&& from) noexcept + : AttrListFile(arena) { + *this = ::std::move(from); + } + const ::google::protobuf::internal::ClassData* GetClassData() const PROTOBUF_FINAL; + static void* PlacementNew_(const void*, void* mem, + ::google::protobuf::Arena* arena); + static constexpr auto InternalNewImpl_(); + static const ::google::protobuf::internal::ClassDataFull _class_data_; + public: + ::google::protobuf::Metadata GetMetadata() const; // nested types ---------------------------------------------------- - // accessors ------------------------------------------------------- - enum : int { kAttributesByNameFieldNumber = 4, kDirectoryFieldNumber = 1, @@ -230,354 +274,371 @@ class ODBDESIGN_EXPORT AttrListFile final : int attributesbyname_size() const; private: int _internal_attributesbyname_size() const; + public: - void clear_attributesbyname(); + void clear_attributesbyname() ; + const ::google::protobuf::Map& attributesbyname() const; + ::google::protobuf::Map* mutable_attributesbyname(); + private: - const ::PROTOBUF_NAMESPACE_ID::Map< std::string, std::string >& - _internal_attributesbyname() const; - ::PROTOBUF_NAMESPACE_ID::Map< std::string, std::string >* - _internal_mutable_attributesbyname(); - public: - const ::PROTOBUF_NAMESPACE_ID::Map< std::string, std::string >& - attributesbyname() const; - ::PROTOBUF_NAMESPACE_ID::Map< std::string, std::string >* - mutable_attributesbyname(); + const ::google::protobuf::Map& _internal_attributesbyname() const; + ::google::protobuf::Map* _internal_mutable_attributesbyname(); + public: // optional string directory = 1; bool has_directory() const; - private: - bool _internal_has_directory() const; - public: - void clear_directory(); + void clear_directory() ; const std::string& directory() const; - template - void set_directory(ArgT0&& arg0, ArgT... args); + template + void set_directory(Arg_&& arg, Args_... args); std::string* mutable_directory(); PROTOBUF_NODISCARD std::string* release_directory(); - void set_allocated_directory(std::string* directory); + void set_allocated_directory(std::string* value); + private: const std::string& _internal_directory() const; - inline PROTOBUF_ALWAYS_INLINE void _internal_set_directory(const std::string& value); + inline PROTOBUF_ALWAYS_INLINE void _internal_set_directory( + const std::string& value); std::string* _internal_mutable_directory(); - public: + public: // optional string path = 2; bool has_path() const; - private: - bool _internal_has_path() const; - public: - void clear_path(); + void clear_path() ; const std::string& path() const; - template - void set_path(ArgT0&& arg0, ArgT... args); + template + void set_path(Arg_&& arg, Args_... args); std::string* mutable_path(); PROTOBUF_NODISCARD std::string* release_path(); - void set_allocated_path(std::string* path); + void set_allocated_path(std::string* value); + private: const std::string& _internal_path() const; - inline PROTOBUF_ALWAYS_INLINE void _internal_set_path(const std::string& value); + inline PROTOBUF_ALWAYS_INLINE void _internal_set_path( + const std::string& value); std::string* _internal_mutable_path(); - public: + public: // optional string units = 3; bool has_units() const; - private: - bool _internal_has_units() const; - public: - void clear_units(); + void clear_units() ; const std::string& units() const; - template - void set_units(ArgT0&& arg0, ArgT... args); + template + void set_units(Arg_&& arg, Args_... args); std::string* mutable_units(); PROTOBUF_NODISCARD std::string* release_units(); - void set_allocated_units(std::string* units); + void set_allocated_units(std::string* value); + private: const std::string& _internal_units() const; - inline PROTOBUF_ALWAYS_INLINE void _internal_set_units(const std::string& value); + inline PROTOBUF_ALWAYS_INLINE void _internal_set_units( + const std::string& value); std::string* _internal_mutable_units(); - public: + public: // @@protoc_insertion_point(class_scope:Odb.Lib.Protobuf.AttrListFile) private: class _Internal; - - template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; - typedef void InternalArenaConstructable_; - typedef void DestructorSkippable_; + friend class ::google::protobuf::internal::TcParser; + static const ::google::protobuf::internal::TcParseTable< + 2, 4, 1, + 72, 2> + _table_; + + friend class ::google::protobuf::MessageLite; + friend class ::google::protobuf::Arena; + template + friend class ::google::protobuf::Arena::InternalHelper; + using InternalArenaConstructable_ = void; + using DestructorSkippable_ = void; struct Impl_ { - ::PROTOBUF_NAMESPACE_ID::internal::HasBits<1> _has_bits_; - mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; - ::PROTOBUF_NAMESPACE_ID::internal::MapField< - AttrListFile_AttributesByNameEntry_DoNotUse, - std::string, std::string, - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::TYPE_STRING, - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::TYPE_STRING> attributesbyname_; - ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr directory_; - ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr path_; - ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr units_; + inline explicit constexpr Impl_( + ::google::protobuf::internal::ConstantInitialized) noexcept; + inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* arena); + inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* arena, const Impl_& from, + const AttrListFile& from_msg); + ::google::protobuf::internal::HasBits<1> _has_bits_; + ::google::protobuf::internal::CachedSize _cached_size_; + ::google::protobuf::internal::MapField + attributesbyname_; + ::google::protobuf::internal::ArenaStringPtr directory_; + ::google::protobuf::internal::ArenaStringPtr path_; + ::google::protobuf::internal::ArenaStringPtr units_; + PROTOBUF_TSAN_DECLARE_MEMBER }; union { Impl_ _impl_; }; friend struct ::TableStruct_attrlistfile_2eproto; }; + // =================================================================== + + // =================================================================== + #ifdef __GNUC__ - #pragma GCC diagnostic push - #pragma GCC diagnostic ignored "-Wstrict-aliasing" +#pragma GCC diagnostic push +#pragma GCC diagnostic ignored "-Wstrict-aliasing" #endif // __GNUC__ // ------------------------------------------------------------------- +// ------------------------------------------------------------------- + // AttrListFile // optional string directory = 1; -inline bool AttrListFile::_internal_has_directory() const { +inline bool AttrListFile::has_directory() const { bool value = (_impl_._has_bits_[0] & 0x00000001u) != 0; return value; } -inline bool AttrListFile::has_directory() const { - return _internal_has_directory(); -} inline void AttrListFile::clear_directory() { + ::google::protobuf::internal::TSanWrite(&_impl_); _impl_.directory_.ClearToEmpty(); _impl_._has_bits_[0] &= ~0x00000001u; } -inline const std::string& AttrListFile::directory() const { +inline const std::string& AttrListFile::directory() const + ABSL_ATTRIBUTE_LIFETIME_BOUND { // @@protoc_insertion_point(field_get:Odb.Lib.Protobuf.AttrListFile.directory) return _internal_directory(); } -template -inline PROTOBUF_ALWAYS_INLINE -void AttrListFile::set_directory(ArgT0&& arg0, ArgT... args) { - _impl_._has_bits_[0] |= 0x00000001u; - _impl_.directory_.Set(static_cast(arg0), args..., GetArenaForAllocation()); +template +inline PROTOBUF_ALWAYS_INLINE void AttrListFile::set_directory(Arg_&& arg, + Args_... args) { + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_._has_bits_[0] |= 0x00000001u; + _impl_.directory_.Set(static_cast(arg), args..., GetArena()); // @@protoc_insertion_point(field_set:Odb.Lib.Protobuf.AttrListFile.directory) } -inline std::string* AttrListFile::mutable_directory() { +inline std::string* AttrListFile::mutable_directory() ABSL_ATTRIBUTE_LIFETIME_BOUND { std::string* _s = _internal_mutable_directory(); // @@protoc_insertion_point(field_mutable:Odb.Lib.Protobuf.AttrListFile.directory) return _s; } inline const std::string& AttrListFile::_internal_directory() const { + ::google::protobuf::internal::TSanRead(&_impl_); return _impl_.directory_.Get(); } inline void AttrListFile::_internal_set_directory(const std::string& value) { + ::google::protobuf::internal::TSanWrite(&_impl_); _impl_._has_bits_[0] |= 0x00000001u; - _impl_.directory_.Set(value, GetArenaForAllocation()); + _impl_.directory_.Set(value, GetArena()); } inline std::string* AttrListFile::_internal_mutable_directory() { + ::google::protobuf::internal::TSanWrite(&_impl_); _impl_._has_bits_[0] |= 0x00000001u; - return _impl_.directory_.Mutable(GetArenaForAllocation()); + return _impl_.directory_.Mutable( GetArena()); } inline std::string* AttrListFile::release_directory() { + ::google::protobuf::internal::TSanWrite(&_impl_); // @@protoc_insertion_point(field_release:Odb.Lib.Protobuf.AttrListFile.directory) - if (!_internal_has_directory()) { + if ((_impl_._has_bits_[0] & 0x00000001u) == 0) { return nullptr; } _impl_._has_bits_[0] &= ~0x00000001u; - auto* p = _impl_.directory_.Release(); -#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (_impl_.directory_.IsDefault()) { - _impl_.directory_.Set("", GetArenaForAllocation()); + auto* released = _impl_.directory_.Release(); + if (::google::protobuf::internal::DebugHardenForceCopyDefaultString()) { + _impl_.directory_.Set("", GetArena()); } -#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING - return p; + return released; } -inline void AttrListFile::set_allocated_directory(std::string* directory) { - if (directory != nullptr) { +inline void AttrListFile::set_allocated_directory(std::string* value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + if (value != nullptr) { _impl_._has_bits_[0] |= 0x00000001u; } else { _impl_._has_bits_[0] &= ~0x00000001u; } - _impl_.directory_.SetAllocated(directory, GetArenaForAllocation()); -#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (_impl_.directory_.IsDefault()) { - _impl_.directory_.Set("", GetArenaForAllocation()); + _impl_.directory_.SetAllocated(value, GetArena()); + if (::google::protobuf::internal::DebugHardenForceCopyDefaultString() && _impl_.directory_.IsDefault()) { + _impl_.directory_.Set("", GetArena()); } -#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING // @@protoc_insertion_point(field_set_allocated:Odb.Lib.Protobuf.AttrListFile.directory) } // optional string path = 2; -inline bool AttrListFile::_internal_has_path() const { +inline bool AttrListFile::has_path() const { bool value = (_impl_._has_bits_[0] & 0x00000002u) != 0; return value; } -inline bool AttrListFile::has_path() const { - return _internal_has_path(); -} inline void AttrListFile::clear_path() { + ::google::protobuf::internal::TSanWrite(&_impl_); _impl_.path_.ClearToEmpty(); _impl_._has_bits_[0] &= ~0x00000002u; } -inline const std::string& AttrListFile::path() const { +inline const std::string& AttrListFile::path() const + ABSL_ATTRIBUTE_LIFETIME_BOUND { // @@protoc_insertion_point(field_get:Odb.Lib.Protobuf.AttrListFile.path) return _internal_path(); } -template -inline PROTOBUF_ALWAYS_INLINE -void AttrListFile::set_path(ArgT0&& arg0, ArgT... args) { - _impl_._has_bits_[0] |= 0x00000002u; - _impl_.path_.Set(static_cast(arg0), args..., GetArenaForAllocation()); +template +inline PROTOBUF_ALWAYS_INLINE void AttrListFile::set_path(Arg_&& arg, + Args_... args) { + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_._has_bits_[0] |= 0x00000002u; + _impl_.path_.Set(static_cast(arg), args..., GetArena()); // @@protoc_insertion_point(field_set:Odb.Lib.Protobuf.AttrListFile.path) } -inline std::string* AttrListFile::mutable_path() { +inline std::string* AttrListFile::mutable_path() ABSL_ATTRIBUTE_LIFETIME_BOUND { std::string* _s = _internal_mutable_path(); // @@protoc_insertion_point(field_mutable:Odb.Lib.Protobuf.AttrListFile.path) return _s; } inline const std::string& AttrListFile::_internal_path() const { + ::google::protobuf::internal::TSanRead(&_impl_); return _impl_.path_.Get(); } inline void AttrListFile::_internal_set_path(const std::string& value) { + ::google::protobuf::internal::TSanWrite(&_impl_); _impl_._has_bits_[0] |= 0x00000002u; - _impl_.path_.Set(value, GetArenaForAllocation()); + _impl_.path_.Set(value, GetArena()); } inline std::string* AttrListFile::_internal_mutable_path() { + ::google::protobuf::internal::TSanWrite(&_impl_); _impl_._has_bits_[0] |= 0x00000002u; - return _impl_.path_.Mutable(GetArenaForAllocation()); + return _impl_.path_.Mutable( GetArena()); } inline std::string* AttrListFile::release_path() { + ::google::protobuf::internal::TSanWrite(&_impl_); // @@protoc_insertion_point(field_release:Odb.Lib.Protobuf.AttrListFile.path) - if (!_internal_has_path()) { + if ((_impl_._has_bits_[0] & 0x00000002u) == 0) { return nullptr; } _impl_._has_bits_[0] &= ~0x00000002u; - auto* p = _impl_.path_.Release(); -#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (_impl_.path_.IsDefault()) { - _impl_.path_.Set("", GetArenaForAllocation()); + auto* released = _impl_.path_.Release(); + if (::google::protobuf::internal::DebugHardenForceCopyDefaultString()) { + _impl_.path_.Set("", GetArena()); } -#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING - return p; + return released; } -inline void AttrListFile::set_allocated_path(std::string* path) { - if (path != nullptr) { +inline void AttrListFile::set_allocated_path(std::string* value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + if (value != nullptr) { _impl_._has_bits_[0] |= 0x00000002u; } else { _impl_._has_bits_[0] &= ~0x00000002u; } - _impl_.path_.SetAllocated(path, GetArenaForAllocation()); -#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (_impl_.path_.IsDefault()) { - _impl_.path_.Set("", GetArenaForAllocation()); + _impl_.path_.SetAllocated(value, GetArena()); + if (::google::protobuf::internal::DebugHardenForceCopyDefaultString() && _impl_.path_.IsDefault()) { + _impl_.path_.Set("", GetArena()); } -#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING // @@protoc_insertion_point(field_set_allocated:Odb.Lib.Protobuf.AttrListFile.path) } // optional string units = 3; -inline bool AttrListFile::_internal_has_units() const { +inline bool AttrListFile::has_units() const { bool value = (_impl_._has_bits_[0] & 0x00000004u) != 0; return value; } -inline bool AttrListFile::has_units() const { - return _internal_has_units(); -} inline void AttrListFile::clear_units() { + ::google::protobuf::internal::TSanWrite(&_impl_); _impl_.units_.ClearToEmpty(); _impl_._has_bits_[0] &= ~0x00000004u; } -inline const std::string& AttrListFile::units() const { +inline const std::string& AttrListFile::units() const + ABSL_ATTRIBUTE_LIFETIME_BOUND { // @@protoc_insertion_point(field_get:Odb.Lib.Protobuf.AttrListFile.units) return _internal_units(); } -template -inline PROTOBUF_ALWAYS_INLINE -void AttrListFile::set_units(ArgT0&& arg0, ArgT... args) { - _impl_._has_bits_[0] |= 0x00000004u; - _impl_.units_.Set(static_cast(arg0), args..., GetArenaForAllocation()); +template +inline PROTOBUF_ALWAYS_INLINE void AttrListFile::set_units(Arg_&& arg, + Args_... args) { + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_._has_bits_[0] |= 0x00000004u; + _impl_.units_.Set(static_cast(arg), args..., GetArena()); // @@protoc_insertion_point(field_set:Odb.Lib.Protobuf.AttrListFile.units) } -inline std::string* AttrListFile::mutable_units() { +inline std::string* AttrListFile::mutable_units() ABSL_ATTRIBUTE_LIFETIME_BOUND { std::string* _s = _internal_mutable_units(); // @@protoc_insertion_point(field_mutable:Odb.Lib.Protobuf.AttrListFile.units) return _s; } inline const std::string& AttrListFile::_internal_units() const { + ::google::protobuf::internal::TSanRead(&_impl_); return _impl_.units_.Get(); } inline void AttrListFile::_internal_set_units(const std::string& value) { + ::google::protobuf::internal::TSanWrite(&_impl_); _impl_._has_bits_[0] |= 0x00000004u; - _impl_.units_.Set(value, GetArenaForAllocation()); + _impl_.units_.Set(value, GetArena()); } inline std::string* AttrListFile::_internal_mutable_units() { + ::google::protobuf::internal::TSanWrite(&_impl_); _impl_._has_bits_[0] |= 0x00000004u; - return _impl_.units_.Mutable(GetArenaForAllocation()); + return _impl_.units_.Mutable( GetArena()); } inline std::string* AttrListFile::release_units() { + ::google::protobuf::internal::TSanWrite(&_impl_); // @@protoc_insertion_point(field_release:Odb.Lib.Protobuf.AttrListFile.units) - if (!_internal_has_units()) { + if ((_impl_._has_bits_[0] & 0x00000004u) == 0) { return nullptr; } _impl_._has_bits_[0] &= ~0x00000004u; - auto* p = _impl_.units_.Release(); -#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (_impl_.units_.IsDefault()) { - _impl_.units_.Set("", GetArenaForAllocation()); + auto* released = _impl_.units_.Release(); + if (::google::protobuf::internal::DebugHardenForceCopyDefaultString()) { + _impl_.units_.Set("", GetArena()); } -#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING - return p; + return released; } -inline void AttrListFile::set_allocated_units(std::string* units) { - if (units != nullptr) { +inline void AttrListFile::set_allocated_units(std::string* value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + if (value != nullptr) { _impl_._has_bits_[0] |= 0x00000004u; } else { _impl_._has_bits_[0] &= ~0x00000004u; } - _impl_.units_.SetAllocated(units, GetArenaForAllocation()); -#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (_impl_.units_.IsDefault()) { - _impl_.units_.Set("", GetArenaForAllocation()); + _impl_.units_.SetAllocated(value, GetArena()); + if (::google::protobuf::internal::DebugHardenForceCopyDefaultString() && _impl_.units_.IsDefault()) { + _impl_.units_.Set("", GetArena()); } -#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING // @@protoc_insertion_point(field_set_allocated:Odb.Lib.Protobuf.AttrListFile.units) } // map attributesByName = 4; inline int AttrListFile::_internal_attributesbyname_size() const { - return _impl_.attributesbyname_.size(); + return _internal_attributesbyname().size(); } inline int AttrListFile::attributesbyname_size() const { return _internal_attributesbyname_size(); } inline void AttrListFile::clear_attributesbyname() { + ::google::protobuf::internal::TSanWrite(&_impl_); _impl_.attributesbyname_.Clear(); } -inline const ::PROTOBUF_NAMESPACE_ID::Map< std::string, std::string >& -AttrListFile::_internal_attributesbyname() const { +inline const ::google::protobuf::Map& AttrListFile::_internal_attributesbyname() const { + ::google::protobuf::internal::TSanRead(&_impl_); return _impl_.attributesbyname_.GetMap(); } -inline const ::PROTOBUF_NAMESPACE_ID::Map< std::string, std::string >& -AttrListFile::attributesbyname() const { +inline const ::google::protobuf::Map& AttrListFile::attributesbyname() const ABSL_ATTRIBUTE_LIFETIME_BOUND { // @@protoc_insertion_point(field_map:Odb.Lib.Protobuf.AttrListFile.attributesByName) return _internal_attributesbyname(); } -inline ::PROTOBUF_NAMESPACE_ID::Map< std::string, std::string >* -AttrListFile::_internal_mutable_attributesbyname() { +inline ::google::protobuf::Map* AttrListFile::_internal_mutable_attributesbyname() { + ::google::protobuf::internal::TSanWrite(&_impl_); return _impl_.attributesbyname_.MutableMap(); } -inline ::PROTOBUF_NAMESPACE_ID::Map< std::string, std::string >* -AttrListFile::mutable_attributesbyname() { +inline ::google::protobuf::Map* AttrListFile::mutable_attributesbyname() ABSL_ATTRIBUTE_LIFETIME_BOUND { // @@protoc_insertion_point(field_mutable_map:Odb.Lib.Protobuf.AttrListFile.attributesByName) return _internal_mutable_attributesbyname(); } #ifdef __GNUC__ - #pragma GCC diagnostic pop +#pragma GCC diagnostic pop #endif // __GNUC__ -// ------------------------------------------------------------------- - // @@protoc_insertion_point(namespace_scope) - } // namespace Protobuf } // namespace Lib } // namespace Odb + // @@protoc_insertion_point(global_scope) -#include -#endif // GOOGLE_PROTOBUF_INCLUDED_GOOGLE_PROTOBUF_INCLUDED_attrlistfile_2eproto +#include "google/protobuf/port_undef.inc" + +#endif // attrlistfile_2eproto_2epb_2eh diff --git a/OdbDesignLib/ProtoBuf/common.pb.cc b/OdbDesignLib/ProtoBuf/common.pb.cc index 8f0deb6e..e7b90682 100644 --- a/OdbDesignLib/ProtoBuf/common.pb.cc +++ b/OdbDesignLib/ProtoBuf/common.pb.cc @@ -1,318 +1,443 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE // source: common.proto +// Protobuf C++ Version: 5.29.2 #include "common.pb.h" #include - -#include -#include -#include -#include -#include -#include -#include +#include +#include "google/protobuf/io/coded_stream.h" +#include "google/protobuf/generated_message_tctable_impl.h" +#include "google/protobuf/extension_set.h" +#include "google/protobuf/generated_message_util.h" +#include "google/protobuf/wire_format_lite.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) -#include +// Must be included last. +#include "google/protobuf/port_def.inc" PROTOBUF_PRAGMA_INIT_SEG - -namespace _pb = ::PROTOBUF_NAMESPACE_ID; -namespace _pbi = _pb::internal; - +namespace _pb = ::google::protobuf; +namespace _pbi = ::google::protobuf::internal; +namespace _fl = ::google::protobuf::internal::field_layout; namespace Odb { namespace Lib { namespace Protobuf { -PROTOBUF_CONSTEXPR PropertyRecord::PropertyRecord( - ::_pbi::ConstantInitialized): _impl_{ - /*decltype(_impl_._has_bits_)*/{} - , /*decltype(_impl_._cached_size_)*/{} - , /*decltype(_impl_.floatvalues_)*/{} - , /*decltype(_impl_.name_)*/{&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}} - , /*decltype(_impl_.value_)*/{&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}}} {} + +inline constexpr PropertyRecord::Impl_::Impl_( + ::_pbi::ConstantInitialized) noexcept + : _cached_size_{0}, + floatvalues_{}, + name_( + &::google::protobuf::internal::fixed_address_empty_string, + ::_pbi::ConstantInitialized()), + value_( + &::google::protobuf::internal::fixed_address_empty_string, + ::_pbi::ConstantInitialized()) {} + +template +PROTOBUF_CONSTEXPR PropertyRecord::PropertyRecord(::_pbi::ConstantInitialized) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : ::google::protobuf::Message(_class_data_.base()), +#else // PROTOBUF_CUSTOM_VTABLE + : ::google::protobuf::Message(), +#endif // PROTOBUF_CUSTOM_VTABLE + _impl_(::_pbi::ConstantInitialized()) { +} struct PropertyRecordDefaultTypeInternal { - PROTOBUF_CONSTEXPR PropertyRecordDefaultTypeInternal() - : _instance(::_pbi::ConstantInitialized{}) {} + PROTOBUF_CONSTEXPR PropertyRecordDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} ~PropertyRecordDefaultTypeInternal() {} union { PropertyRecord _instance; }; }; -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 PropertyRecordDefaultTypeInternal _PropertyRecord_default_instance_; -PROTOBUF_CONSTEXPR ContourPolygon_PolygonPart::ContourPolygon_PolygonPart( - ::_pbi::ConstantInitialized): _impl_{ - /*decltype(_impl_._has_bits_)*/{} - , /*decltype(_impl_._cached_size_)*/{} - , /*decltype(_impl_.type_)*/0 - , /*decltype(_impl_.endx_)*/0 - , /*decltype(_impl_.endy_)*/0 - , /*decltype(_impl_.xcenter_)*/0 - , /*decltype(_impl_.ycenter_)*/0 - , /*decltype(_impl_.isclockwise_)*/false} {} + +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT ODBDESIGN_EXPORT + PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 PropertyRecordDefaultTypeInternal _PropertyRecord_default_instance_; + +inline constexpr ContourPolygon_PolygonPart::Impl_::Impl_( + ::_pbi::ConstantInitialized) noexcept + : _cached_size_{0}, + type_{static_cast< ::Odb::Lib::Protobuf::ContourPolygon_PolygonPart_Type >(0)}, + endx_{0}, + endy_{0}, + xcenter_{0}, + ycenter_{0}, + isclockwise_{false} {} + +template +PROTOBUF_CONSTEXPR ContourPolygon_PolygonPart::ContourPolygon_PolygonPart(::_pbi::ConstantInitialized) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : ::google::protobuf::Message(_class_data_.base()), +#else // PROTOBUF_CUSTOM_VTABLE + : ::google::protobuf::Message(), +#endif // PROTOBUF_CUSTOM_VTABLE + _impl_(::_pbi::ConstantInitialized()) { +} struct ContourPolygon_PolygonPartDefaultTypeInternal { - PROTOBUF_CONSTEXPR ContourPolygon_PolygonPartDefaultTypeInternal() - : _instance(::_pbi::ConstantInitialized{}) {} + PROTOBUF_CONSTEXPR ContourPolygon_PolygonPartDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} ~ContourPolygon_PolygonPartDefaultTypeInternal() {} union { ContourPolygon_PolygonPart _instance; }; }; -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 ContourPolygon_PolygonPartDefaultTypeInternal _ContourPolygon_PolygonPart_default_instance_; -PROTOBUF_CONSTEXPR ContourPolygon::ContourPolygon( - ::_pbi::ConstantInitialized): _impl_{ - /*decltype(_impl_._has_bits_)*/{} - , /*decltype(_impl_._cached_size_)*/{} - , /*decltype(_impl_.polygonparts_)*/{} - , /*decltype(_impl_.type_)*/0 - , /*decltype(_impl_.xstart_)*/0 - , /*decltype(_impl_.ystart_)*/0} {} + +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT ODBDESIGN_EXPORT + PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 ContourPolygon_PolygonPartDefaultTypeInternal _ContourPolygon_PolygonPart_default_instance_; + +inline constexpr ContourPolygon::Impl_::Impl_( + ::_pbi::ConstantInitialized) noexcept + : _cached_size_{0}, + polygonparts_{}, + type_{static_cast< ::Odb::Lib::Protobuf::ContourPolygon_Type >(0)}, + xstart_{0}, + ystart_{0} {} + +template +PROTOBUF_CONSTEXPR ContourPolygon::ContourPolygon(::_pbi::ConstantInitialized) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : ::google::protobuf::Message(_class_data_.base()), +#else // PROTOBUF_CUSTOM_VTABLE + : ::google::protobuf::Message(), +#endif // PROTOBUF_CUSTOM_VTABLE + _impl_(::_pbi::ConstantInitialized()) { +} struct ContourPolygonDefaultTypeInternal { - PROTOBUF_CONSTEXPR ContourPolygonDefaultTypeInternal() - : _instance(::_pbi::ConstantInitialized{}) {} + PROTOBUF_CONSTEXPR ContourPolygonDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} ~ContourPolygonDefaultTypeInternal() {} union { ContourPolygon _instance; }; }; -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 ContourPolygonDefaultTypeInternal _ContourPolygon_default_instance_; + +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT ODBDESIGN_EXPORT + PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 ContourPolygonDefaultTypeInternal _ContourPolygon_default_instance_; } // namespace Protobuf } // namespace Lib } // namespace Odb -static ::_pb::Metadata file_level_metadata_common_2eproto[3]; static const ::_pb::EnumDescriptor* file_level_enum_descriptors_common_2eproto[2]; -static constexpr ::_pb::ServiceDescriptor const** file_level_service_descriptors_common_2eproto = nullptr; - -const uint32_t TableStruct_common_2eproto::offsets[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = { - PROTOBUF_FIELD_OFFSET(::Odb::Lib::Protobuf::PropertyRecord, _impl_._has_bits_), - PROTOBUF_FIELD_OFFSET(::Odb::Lib::Protobuf::PropertyRecord, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - ~0u, // no _inlined_string_donated_ - PROTOBUF_FIELD_OFFSET(::Odb::Lib::Protobuf::PropertyRecord, _impl_.name_), - PROTOBUF_FIELD_OFFSET(::Odb::Lib::Protobuf::PropertyRecord, _impl_.value_), - PROTOBUF_FIELD_OFFSET(::Odb::Lib::Protobuf::PropertyRecord, _impl_.floatvalues_), - 0, - 1, - ~0u, - PROTOBUF_FIELD_OFFSET(::Odb::Lib::Protobuf::ContourPolygon_PolygonPart, _impl_._has_bits_), - PROTOBUF_FIELD_OFFSET(::Odb::Lib::Protobuf::ContourPolygon_PolygonPart, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - ~0u, // no _inlined_string_donated_ - PROTOBUF_FIELD_OFFSET(::Odb::Lib::Protobuf::ContourPolygon_PolygonPart, _impl_.type_), - PROTOBUF_FIELD_OFFSET(::Odb::Lib::Protobuf::ContourPolygon_PolygonPart, _impl_.endx_), - PROTOBUF_FIELD_OFFSET(::Odb::Lib::Protobuf::ContourPolygon_PolygonPart, _impl_.endy_), - PROTOBUF_FIELD_OFFSET(::Odb::Lib::Protobuf::ContourPolygon_PolygonPart, _impl_.xcenter_), - PROTOBUF_FIELD_OFFSET(::Odb::Lib::Protobuf::ContourPolygon_PolygonPart, _impl_.ycenter_), - PROTOBUF_FIELD_OFFSET(::Odb::Lib::Protobuf::ContourPolygon_PolygonPart, _impl_.isclockwise_), - 0, - 1, - 2, - 3, - 4, - 5, - PROTOBUF_FIELD_OFFSET(::Odb::Lib::Protobuf::ContourPolygon, _impl_._has_bits_), - PROTOBUF_FIELD_OFFSET(::Odb::Lib::Protobuf::ContourPolygon, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - ~0u, // no _inlined_string_donated_ - PROTOBUF_FIELD_OFFSET(::Odb::Lib::Protobuf::ContourPolygon, _impl_.type_), - PROTOBUF_FIELD_OFFSET(::Odb::Lib::Protobuf::ContourPolygon, _impl_.xstart_), - PROTOBUF_FIELD_OFFSET(::Odb::Lib::Protobuf::ContourPolygon, _impl_.ystart_), - PROTOBUF_FIELD_OFFSET(::Odb::Lib::Protobuf::ContourPolygon, _impl_.polygonparts_), - 0, - 1, - 2, - ~0u, -}; -static const ::_pbi::MigrationSchema schemas[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = { - { 0, 9, -1, sizeof(::Odb::Lib::Protobuf::PropertyRecord)}, - { 12, 24, -1, sizeof(::Odb::Lib::Protobuf::ContourPolygon_PolygonPart)}, - { 30, 40, -1, sizeof(::Odb::Lib::Protobuf::ContourPolygon)}, +static constexpr const ::_pb::ServiceDescriptor** + file_level_service_descriptors_common_2eproto = nullptr; +const ::uint32_t + TableStruct_common_2eproto::offsets[] ABSL_ATTRIBUTE_SECTION_VARIABLE( + protodesc_cold) = { + PROTOBUF_FIELD_OFFSET(::Odb::Lib::Protobuf::PropertyRecord, _impl_._has_bits_), + PROTOBUF_FIELD_OFFSET(::Odb::Lib::Protobuf::PropertyRecord, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + ~0u, // no _split_ + ~0u, // no sizeof(Split) + PROTOBUF_FIELD_OFFSET(::Odb::Lib::Protobuf::PropertyRecord, _impl_.name_), + PROTOBUF_FIELD_OFFSET(::Odb::Lib::Protobuf::PropertyRecord, _impl_.value_), + PROTOBUF_FIELD_OFFSET(::Odb::Lib::Protobuf::PropertyRecord, _impl_.floatvalues_), + 0, + 1, + ~0u, + PROTOBUF_FIELD_OFFSET(::Odb::Lib::Protobuf::ContourPolygon_PolygonPart, _impl_._has_bits_), + PROTOBUF_FIELD_OFFSET(::Odb::Lib::Protobuf::ContourPolygon_PolygonPart, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + ~0u, // no _split_ + ~0u, // no sizeof(Split) + PROTOBUF_FIELD_OFFSET(::Odb::Lib::Protobuf::ContourPolygon_PolygonPart, _impl_.type_), + PROTOBUF_FIELD_OFFSET(::Odb::Lib::Protobuf::ContourPolygon_PolygonPart, _impl_.endx_), + PROTOBUF_FIELD_OFFSET(::Odb::Lib::Protobuf::ContourPolygon_PolygonPart, _impl_.endy_), + PROTOBUF_FIELD_OFFSET(::Odb::Lib::Protobuf::ContourPolygon_PolygonPart, _impl_.xcenter_), + PROTOBUF_FIELD_OFFSET(::Odb::Lib::Protobuf::ContourPolygon_PolygonPart, _impl_.ycenter_), + PROTOBUF_FIELD_OFFSET(::Odb::Lib::Protobuf::ContourPolygon_PolygonPart, _impl_.isclockwise_), + 0, + 1, + 2, + 3, + 4, + 5, + PROTOBUF_FIELD_OFFSET(::Odb::Lib::Protobuf::ContourPolygon, _impl_._has_bits_), + PROTOBUF_FIELD_OFFSET(::Odb::Lib::Protobuf::ContourPolygon, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + ~0u, // no _split_ + ~0u, // no sizeof(Split) + PROTOBUF_FIELD_OFFSET(::Odb::Lib::Protobuf::ContourPolygon, _impl_.type_), + PROTOBUF_FIELD_OFFSET(::Odb::Lib::Protobuf::ContourPolygon, _impl_.xstart_), + PROTOBUF_FIELD_OFFSET(::Odb::Lib::Protobuf::ContourPolygon, _impl_.ystart_), + PROTOBUF_FIELD_OFFSET(::Odb::Lib::Protobuf::ContourPolygon, _impl_.polygonparts_), + 0, + 1, + 2, + ~0u, }; +static const ::_pbi::MigrationSchema + schemas[] ABSL_ATTRIBUTE_SECTION_VARIABLE(protodesc_cold) = { + {0, 11, -1, sizeof(::Odb::Lib::Protobuf::PropertyRecord)}, + {14, 28, -1, sizeof(::Odb::Lib::Protobuf::ContourPolygon_PolygonPart)}, + {34, 46, -1, sizeof(::Odb::Lib::Protobuf::ContourPolygon)}, +}; static const ::_pb::Message* const file_default_instances[] = { - &::Odb::Lib::Protobuf::_PropertyRecord_default_instance_._instance, - &::Odb::Lib::Protobuf::_ContourPolygon_PolygonPart_default_instance_._instance, - &::Odb::Lib::Protobuf::_ContourPolygon_default_instance_._instance, + &::Odb::Lib::Protobuf::_PropertyRecord_default_instance_._instance, + &::Odb::Lib::Protobuf::_ContourPolygon_PolygonPart_default_instance_._instance, + &::Odb::Lib::Protobuf::_ContourPolygon_default_instance_._instance, }; - -const char descriptor_table_protodef_common_2eproto[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = - "\n\014common.proto\022\020Odb.Lib.Protobuf\"_\n\016Prop" - "ertyRecord\022\021\n\004name\030\001 \001(\tH\000\210\001\001\022\022\n\005value\030\002" - " \001(\tH\001\210\001\001\022\023\n\013floatValues\030\003 \003(\002B\007\n\005_nameB" - "\010\n\006_value\"\230\004\n\016ContourPolygon\0228\n\004type\030\001 \001" - "(\0162%.Odb.Lib.Protobuf.ContourPolygon.Typ" - "eH\000\210\001\001\022\023\n\006xStart\030\002 \001(\002H\001\210\001\001\022\023\n\006yStart\030\003 " - "\001(\002H\002\210\001\001\022B\n\014polygonParts\030\004 \003(\0132,.Odb.Lib" - ".Protobuf.ContourPolygon.PolygonPart\032\240\002\n" - "\013PolygonPart\022D\n\004type\030\001 \001(\01621.Odb.Lib.Pro" - "tobuf.ContourPolygon.PolygonPart.TypeH\000\210" - "\001\001\022\021\n\004endX\030\002 \001(\002H\001\210\001\001\022\021\n\004endY\030\003 \001(\002H\002\210\001\001" - "\022\024\n\007xCenter\030\004 \001(\002H\003\210\001\001\022\024\n\007yCenter\030\005 \001(\002H" - "\004\210\001\001\022\030\n\013isClockwise\030\006 \001(\010H\005\210\001\001\"\034\n\004Type\022\013" - "\n\007Segment\020\000\022\007\n\003Arc\020\001B\007\n\005_typeB\007\n\005_endXB\007" - "\n\005_endYB\n\n\010_xCenterB\n\n\010_yCenterB\016\n\014_isCl" - "ockwise\"\034\n\004Type\022\n\n\006Island\020\000\022\010\n\004Hole\020\001B\007\n" - "\005_typeB\t\n\007_xStartB\t\n\007_yStartb\006proto3" - ; -static ::_pbi::once_flag descriptor_table_common_2eproto_once; -const ::_pbi::DescriptorTable descriptor_table_common_2eproto = { - false, false, 676, descriptor_table_protodef_common_2eproto, +const char descriptor_table_protodef_common_2eproto[] ABSL_ATTRIBUTE_SECTION_VARIABLE( + protodesc_cold) = { + "\n\014common.proto\022\020Odb.Lib.Protobuf\"_\n\016Prop" + "ertyRecord\022\021\n\004name\030\001 \001(\tH\000\210\001\001\022\022\n\005value\030\002" + " \001(\tH\001\210\001\001\022\023\n\013floatValues\030\003 \003(\002B\007\n\005_nameB" + "\010\n\006_value\"\230\004\n\016ContourPolygon\0228\n\004type\030\001 \001" + "(\0162%.Odb.Lib.Protobuf.ContourPolygon.Typ" + "eH\000\210\001\001\022\023\n\006xStart\030\002 \001(\002H\001\210\001\001\022\023\n\006yStart\030\003 " + "\001(\002H\002\210\001\001\022B\n\014polygonParts\030\004 \003(\0132,.Odb.Lib" + ".Protobuf.ContourPolygon.PolygonPart\032\240\002\n" + "\013PolygonPart\022D\n\004type\030\001 \001(\01621.Odb.Lib.Pro" + "tobuf.ContourPolygon.PolygonPart.TypeH\000\210" + "\001\001\022\021\n\004endX\030\002 \001(\002H\001\210\001\001\022\021\n\004endY\030\003 \001(\002H\002\210\001\001" + "\022\024\n\007xCenter\030\004 \001(\002H\003\210\001\001\022\024\n\007yCenter\030\005 \001(\002H" + "\004\210\001\001\022\030\n\013isClockwise\030\006 \001(\010H\005\210\001\001\"\034\n\004Type\022\013" + "\n\007Segment\020\000\022\007\n\003Arc\020\001B\007\n\005_typeB\007\n\005_endXB\007" + "\n\005_endYB\n\n\010_xCenterB\n\n\010_yCenterB\016\n\014_isCl" + "ockwise\"\034\n\004Type\022\n\n\006Island\020\000\022\010\n\004Hole\020\001B\007\n" + "\005_typeB\t\n\007_xStartB\t\n\007_yStartb\006proto3" +}; +static ::absl::once_flag descriptor_table_common_2eproto_once; +PROTOBUF_CONSTINIT const ::_pbi::DescriptorTable descriptor_table_common_2eproto = { + false, + false, + 676, + descriptor_table_protodef_common_2eproto, "common.proto", - &descriptor_table_common_2eproto_once, nullptr, 0, 3, - schemas, file_default_instances, TableStruct_common_2eproto::offsets, - file_level_metadata_common_2eproto, file_level_enum_descriptors_common_2eproto, + &descriptor_table_common_2eproto_once, + nullptr, + 0, + 3, + schemas, + file_default_instances, + TableStruct_common_2eproto::offsets, + file_level_enum_descriptors_common_2eproto, file_level_service_descriptors_common_2eproto, }; -PROTOBUF_ATTRIBUTE_WEAK const ::_pbi::DescriptorTable* descriptor_table_common_2eproto_getter() { - return &descriptor_table_common_2eproto; -} - -// Force running AddDescriptors() at dynamic initialization time. -PROTOBUF_ATTRIBUTE_INIT_PRIORITY2 static ::_pbi::AddDescriptorsRunner dynamic_init_dummy_common_2eproto(&descriptor_table_common_2eproto); namespace Odb { namespace Lib { namespace Protobuf { -const ::PROTOBUF_NAMESPACE_ID::EnumDescriptor* ContourPolygon_PolygonPart_Type_descriptor() { - ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(&descriptor_table_common_2eproto); +const ::google::protobuf::EnumDescriptor* ContourPolygon_PolygonPart_Type_descriptor() { + ::google::protobuf::internal::AssignDescriptors(&descriptor_table_common_2eproto); return file_level_enum_descriptors_common_2eproto[0]; } +PROTOBUF_CONSTINIT const uint32_t ContourPolygon_PolygonPart_Type_internal_data_[] = { + 131072u, 0u, }; bool ContourPolygon_PolygonPart_Type_IsValid(int value) { - switch (value) { - case 0: - case 1: - return true; - default: - return false; - } + return 0 <= value && value <= 1; } +#if (__cplusplus < 201703) && \ + (!defined(_MSC_VER) || (_MSC_VER >= 1900 && _MSC_VER < 1912)) -#if (__cplusplus < 201703) && (!defined(_MSC_VER) || (_MSC_VER >= 1900 && _MSC_VER < 1912)) constexpr ContourPolygon_PolygonPart_Type ContourPolygon_PolygonPart::Segment; constexpr ContourPolygon_PolygonPart_Type ContourPolygon_PolygonPart::Arc; constexpr ContourPolygon_PolygonPart_Type ContourPolygon_PolygonPart::Type_MIN; constexpr ContourPolygon_PolygonPart_Type ContourPolygon_PolygonPart::Type_MAX; constexpr int ContourPolygon_PolygonPart::Type_ARRAYSIZE; -#endif // (__cplusplus < 201703) && (!defined(_MSC_VER) || (_MSC_VER >= 1900 && _MSC_VER < 1912)) -const ::PROTOBUF_NAMESPACE_ID::EnumDescriptor* ContourPolygon_Type_descriptor() { - ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(&descriptor_table_common_2eproto); + +#endif // (__cplusplus < 201703) && + // (!defined(_MSC_VER) || (_MSC_VER >= 1900 && _MSC_VER < 1912)) +const ::google::protobuf::EnumDescriptor* ContourPolygon_Type_descriptor() { + ::google::protobuf::internal::AssignDescriptors(&descriptor_table_common_2eproto); return file_level_enum_descriptors_common_2eproto[1]; } +PROTOBUF_CONSTINIT const uint32_t ContourPolygon_Type_internal_data_[] = { + 131072u, 0u, }; bool ContourPolygon_Type_IsValid(int value) { - switch (value) { - case 0: - case 1: - return true; - default: - return false; - } + return 0 <= value && value <= 1; } +#if (__cplusplus < 201703) && \ + (!defined(_MSC_VER) || (_MSC_VER >= 1900 && _MSC_VER < 1912)) -#if (__cplusplus < 201703) && (!defined(_MSC_VER) || (_MSC_VER >= 1900 && _MSC_VER < 1912)) constexpr ContourPolygon_Type ContourPolygon::Island; constexpr ContourPolygon_Type ContourPolygon::Hole; constexpr ContourPolygon_Type ContourPolygon::Type_MIN; constexpr ContourPolygon_Type ContourPolygon::Type_MAX; constexpr int ContourPolygon::Type_ARRAYSIZE; -#endif // (__cplusplus < 201703) && (!defined(_MSC_VER) || (_MSC_VER >= 1900 && _MSC_VER < 1912)) +#endif // (__cplusplus < 201703) && + // (!defined(_MSC_VER) || (_MSC_VER >= 1900 && _MSC_VER < 1912)) // =================================================================== class PropertyRecord::_Internal { public: - using HasBits = decltype(std::declval()._impl_._has_bits_); - static void set_has_name(HasBits* has_bits) { - (*has_bits)[0] |= 1u; - } - static void set_has_value(HasBits* has_bits) { - (*has_bits)[0] |= 2u; - } + using HasBits = + decltype(std::declval()._impl_._has_bits_); + static constexpr ::int32_t kHasBitsOffset = + 8 * PROTOBUF_FIELD_OFFSET(PropertyRecord, _impl_._has_bits_); }; -PropertyRecord::PropertyRecord(::PROTOBUF_NAMESPACE_ID::Arena* arena, - bool is_message_owned) - : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned) { - SharedCtor(arena, is_message_owned); +PropertyRecord::PropertyRecord(::google::protobuf::Arena* arena) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : ::google::protobuf::Message(arena, _class_data_.base()) { +#else // PROTOBUF_CUSTOM_VTABLE + : ::google::protobuf::Message(arena) { +#endif // PROTOBUF_CUSTOM_VTABLE + SharedCtor(arena); // @@protoc_insertion_point(arena_constructor:Odb.Lib.Protobuf.PropertyRecord) } -PropertyRecord::PropertyRecord(const PropertyRecord& from) - : ::PROTOBUF_NAMESPACE_ID::Message() { - PropertyRecord* const _this = this; (void)_this; - new (&_impl_) Impl_{ - decltype(_impl_._has_bits_){from._impl_._has_bits_} - , /*decltype(_impl_._cached_size_)*/{} - , decltype(_impl_.floatvalues_){from._impl_.floatvalues_} - , decltype(_impl_.name_){} - , decltype(_impl_.value_){}}; - - _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); - _impl_.name_.InitDefault(); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - _impl_.name_.Set("", GetArenaForAllocation()); - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (from._internal_has_name()) { - _this->_impl_.name_.Set(from._internal_name(), - _this->GetArenaForAllocation()); - } - _impl_.value_.InitDefault(); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - _impl_.value_.Set("", GetArenaForAllocation()); - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (from._internal_has_value()) { - _this->_impl_.value_.Set(from._internal_value(), - _this->GetArenaForAllocation()); - } +inline PROTOBUF_NDEBUG_INLINE PropertyRecord::Impl_::Impl_( + ::google::protobuf::internal::InternalVisibility visibility, ::google::protobuf::Arena* arena, + const Impl_& from, const ::Odb::Lib::Protobuf::PropertyRecord& from_msg) + : _has_bits_{from._has_bits_}, + _cached_size_{0}, + floatvalues_{visibility, arena, from.floatvalues_}, + name_(arena, from.name_), + value_(arena, from.value_) {} + +PropertyRecord::PropertyRecord( + ::google::protobuf::Arena* arena, + const PropertyRecord& from) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : ::google::protobuf::Message(arena, _class_data_.base()) { +#else // PROTOBUF_CUSTOM_VTABLE + : ::google::protobuf::Message(arena) { +#endif // PROTOBUF_CUSTOM_VTABLE + PropertyRecord* const _this = this; + (void)_this; + _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( + from._internal_metadata_); + new (&_impl_) Impl_(internal_visibility(), arena, from._impl_, from); + // @@protoc_insertion_point(copy_constructor:Odb.Lib.Protobuf.PropertyRecord) } - -inline void PropertyRecord::SharedCtor( - ::_pb::Arena* arena, bool is_message_owned) { - (void)arena; - (void)is_message_owned; - new (&_impl_) Impl_{ - decltype(_impl_._has_bits_){} - , /*decltype(_impl_._cached_size_)*/{} - , decltype(_impl_.floatvalues_){arena} - , decltype(_impl_.name_){} - , decltype(_impl_.value_){} - }; - _impl_.name_.InitDefault(); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - _impl_.name_.Set("", GetArenaForAllocation()); - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING - _impl_.value_.InitDefault(); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - _impl_.value_.Set("", GetArenaForAllocation()); - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING +inline PROTOBUF_NDEBUG_INLINE PropertyRecord::Impl_::Impl_( + ::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* arena) + : _cached_size_{0}, + floatvalues_{visibility, arena}, + name_(arena), + value_(arena) {} + +inline void PropertyRecord::SharedCtor(::_pb::Arena* arena) { + new (&_impl_) Impl_(internal_visibility(), arena); } - PropertyRecord::~PropertyRecord() { // @@protoc_insertion_point(destructor:Odb.Lib.Protobuf.PropertyRecord) - if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) { - (void)arena; - return; - } - SharedDtor(); + SharedDtor(*this); } - -inline void PropertyRecord::SharedDtor() { - GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); - _impl_.floatvalues_.~RepeatedField(); - _impl_.name_.Destroy(); - _impl_.value_.Destroy(); +inline void PropertyRecord::SharedDtor(MessageLite& self) { + PropertyRecord& this_ = static_cast(self); + this_._internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); + ABSL_DCHECK(this_.GetArena() == nullptr); + this_._impl_.name_.Destroy(); + this_._impl_.value_.Destroy(); + this_._impl_.~Impl_(); } -void PropertyRecord::SetCachedSize(int size) const { - _impl_._cached_size_.Set(size); +inline void* PropertyRecord::PlacementNew_(const void*, void* mem, + ::google::protobuf::Arena* arena) { + return ::new (mem) PropertyRecord(arena); } +constexpr auto PropertyRecord::InternalNewImpl_() { + constexpr auto arena_bits = ::google::protobuf::internal::EncodePlacementArenaOffsets({ + PROTOBUF_FIELD_OFFSET(PropertyRecord, _impl_.floatvalues_) + + decltype(PropertyRecord::_impl_.floatvalues_):: + InternalGetArenaOffset( + ::google::protobuf::Message::internal_visibility()), + }); + if (arena_bits.has_value()) { + return ::google::protobuf::internal::MessageCreator::CopyInit( + sizeof(PropertyRecord), alignof(PropertyRecord), *arena_bits); + } else { + return ::google::protobuf::internal::MessageCreator(&PropertyRecord::PlacementNew_, + sizeof(PropertyRecord), + alignof(PropertyRecord)); + } +} +PROTOBUF_CONSTINIT +PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 +const ::google::protobuf::internal::ClassDataFull PropertyRecord::_class_data_ = { + ::google::protobuf::internal::ClassData{ + &_PropertyRecord_default_instance_._instance, + &_table_.header, + nullptr, // OnDemandRegisterArenaDtor + nullptr, // IsInitialized + &PropertyRecord::MergeImpl, + ::google::protobuf::Message::GetNewImpl(), +#if defined(PROTOBUF_CUSTOM_VTABLE) + &PropertyRecord::SharedDtor, + ::google::protobuf::Message::GetClearImpl(), &PropertyRecord::ByteSizeLong, + &PropertyRecord::_InternalSerialize, +#endif // PROTOBUF_CUSTOM_VTABLE + PROTOBUF_FIELD_OFFSET(PropertyRecord, _impl_._cached_size_), + false, + }, + &PropertyRecord::kDescriptorMethods, + &descriptor_table_common_2eproto, + nullptr, // tracker +}; +const ::google::protobuf::internal::ClassData* PropertyRecord::GetClassData() const { + ::google::protobuf::internal::PrefetchToLocalCache(&_class_data_); + ::google::protobuf::internal::PrefetchToLocalCache(_class_data_.tc_table); + return _class_data_.base(); +} +PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 +const ::_pbi::TcParseTable<2, 3, 0, 49, 2> PropertyRecord::_table_ = { + { + PROTOBUF_FIELD_OFFSET(PropertyRecord, _impl_._has_bits_), + 0, // no _extensions_ + 3, 24, // max_field_number, fast_idx_mask + offsetof(decltype(_table_), field_lookup_table), + 4294967288, // skipmap + offsetof(decltype(_table_), field_entries), + 3, // num_field_entries + 0, // num_aux_entries + offsetof(decltype(_table_), field_names), // no aux_entries + _class_data_.base(), + nullptr, // post_loop_handler + ::_pbi::TcParser::GenericFallback, // fallback + #ifdef PROTOBUF_PREFETCH_PARSE_TABLE + ::_pbi::TcParser::GetTable<::Odb::Lib::Protobuf::PropertyRecord>(), // to_prefetch + #endif // PROTOBUF_PREFETCH_PARSE_TABLE + }, {{ + {::_pbi::TcParser::MiniParse, {}}, + // optional string name = 1; + {::_pbi::TcParser::FastUS1, + {10, 0, 0, PROTOBUF_FIELD_OFFSET(PropertyRecord, _impl_.name_)}}, + // optional string value = 2; + {::_pbi::TcParser::FastUS1, + {18, 1, 0, PROTOBUF_FIELD_OFFSET(PropertyRecord, _impl_.value_)}}, + // repeated float floatValues = 3; + {::_pbi::TcParser::FastF32P1, + {26, 63, 0, PROTOBUF_FIELD_OFFSET(PropertyRecord, _impl_.floatvalues_)}}, + }}, {{ + 65535, 65535 + }}, {{ + // optional string name = 1; + {PROTOBUF_FIELD_OFFSET(PropertyRecord, _impl_.name_), _Internal::kHasBitsOffset + 0, 0, + (0 | ::_fl::kFcOptional | ::_fl::kUtf8String | ::_fl::kRepAString)}, + // optional string value = 2; + {PROTOBUF_FIELD_OFFSET(PropertyRecord, _impl_.value_), _Internal::kHasBitsOffset + 1, 0, + (0 | ::_fl::kFcOptional | ::_fl::kUtf8String | ::_fl::kRepAString)}, + // repeated float floatValues = 3; + {PROTOBUF_FIELD_OFFSET(PropertyRecord, _impl_.floatvalues_), -1, 0, + (0 | ::_fl::kFcRepeated | ::_fl::kPackedFloat)}, + }}, + // no aux_entries + {{ + "\37\4\5\0\0\0\0\0" + "Odb.Lib.Protobuf.PropertyRecord" + "name" + "value" + }}, +}; -void PropertyRecord::Clear() { +PROTOBUF_NOINLINE void PropertyRecord::Clear() { // @@protoc_insertion_point(message_clear_start:Odb.Lib.Protobuf.PropertyRecord) - uint32_t cached_has_bits = 0; + ::google::protobuf::internal::TSanWrite(&_impl_); + ::uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; @@ -327,165 +452,108 @@ void PropertyRecord::Clear() { } } _impl_._has_bits_.Clear(); - _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); -} - -const char* PropertyRecord::_InternalParse(const char* ptr, ::_pbi::ParseContext* ctx) { -#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure - _Internal::HasBits has_bits{}; - while (!ctx->Done(&ptr)) { - uint32_t tag; - ptr = ::_pbi::ReadTag(ptr, &tag); - switch (tag >> 3) { - // optional string name = 1; - case 1: - if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 10)) { - auto str = _internal_mutable_name(); - ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); - CHK_(ptr); - CHK_(::_pbi::VerifyUTF8(str, "Odb.Lib.Protobuf.PropertyRecord.name")); - } else - goto handle_unusual; - continue; - // optional string value = 2; - case 2: - if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 18)) { - auto str = _internal_mutable_value(); - ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); - CHK_(ptr); - CHK_(::_pbi::VerifyUTF8(str, "Odb.Lib.Protobuf.PropertyRecord.value")); - } else - goto handle_unusual; - continue; - // repeated float floatValues = 3; - case 3: - if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 26)) { - ptr = ::PROTOBUF_NAMESPACE_ID::internal::PackedFloatParser(_internal_mutable_floatvalues(), ptr, ctx); - CHK_(ptr); - } else if (static_cast(tag) == 29) { - _internal_add_floatvalues(::PROTOBUF_NAMESPACE_ID::internal::UnalignedLoad(ptr)); - ptr += sizeof(float); - } else - goto handle_unusual; - continue; - default: - goto handle_unusual; - } // switch - handle_unusual: - if ((tag == 0) || ((tag & 7) == 4)) { - CHK_(ptr); - ctx->SetLastTag(tag); - goto message_done; - } - ptr = UnknownFieldParse( - tag, - _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(), - ptr, ctx); - CHK_(ptr != nullptr); - } // while -message_done: - _impl_._has_bits_.Or(has_bits); - return ptr; -failure: - ptr = nullptr; - goto message_done; -#undef CHK_ -} - -uint8_t* PropertyRecord::_InternalSerialize( - uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { - // @@protoc_insertion_point(serialize_to_array_start:Odb.Lib.Protobuf.PropertyRecord) - uint32_t cached_has_bits = 0; - (void) cached_has_bits; - - // optional string name = 1; - if (_internal_has_name()) { - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( - this->_internal_name().data(), static_cast(this->_internal_name().length()), - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, - "Odb.Lib.Protobuf.PropertyRecord.name"); - target = stream->WriteStringMaybeAliased( - 1, this->_internal_name(), target); - } - - // optional string value = 2; - if (_internal_has_value()) { - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( - this->_internal_value().data(), static_cast(this->_internal_value().length()), - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, - "Odb.Lib.Protobuf.PropertyRecord.value"); - target = stream->WriteStringMaybeAliased( - 2, this->_internal_value(), target); - } - - // repeated float floatValues = 3; - if (this->_internal_floatvalues_size() > 0) { - target = stream->WriteFixedPacked(3, _internal_floatvalues(), target); - } - - if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = ::_pbi::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:Odb.Lib.Protobuf.PropertyRecord) - return target; -} - -size_t PropertyRecord::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:Odb.Lib.Protobuf.PropertyRecord) - size_t total_size = 0; - - uint32_t cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - // repeated float floatValues = 3; - { - unsigned int count = static_cast(this->_internal_floatvalues_size()); - size_t data_size = 4UL * count; - if (data_size > 0) { - total_size += 1 + - ::_pbi::WireFormatLite::Int32Size(static_cast(data_size)); - } - total_size += data_size; - } - - cached_has_bits = _impl_._has_bits_[0]; - if (cached_has_bits & 0x00000003u) { - // optional string name = 1; - if (cached_has_bits & 0x00000001u) { - total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( - this->_internal_name()); - } - - // optional string value = 2; - if (cached_has_bits & 0x00000002u) { - total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( - this->_internal_value()); - } - - } - return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); + _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); } -const ::PROTOBUF_NAMESPACE_ID::Message::ClassData PropertyRecord::_class_data_ = { - ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSourceCheck, - PropertyRecord::MergeImpl -}; -const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*PropertyRecord::GetClassData() const { return &_class_data_; } - - -void PropertyRecord::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg) { +#if defined(PROTOBUF_CUSTOM_VTABLE) + ::uint8_t* PropertyRecord::_InternalSerialize( + const MessageLite& base, ::uint8_t* target, + ::google::protobuf::io::EpsCopyOutputStream* stream) { + const PropertyRecord& this_ = static_cast(base); +#else // PROTOBUF_CUSTOM_VTABLE + ::uint8_t* PropertyRecord::_InternalSerialize( + ::uint8_t* target, + ::google::protobuf::io::EpsCopyOutputStream* stream) const { + const PropertyRecord& this_ = *this; +#endif // PROTOBUF_CUSTOM_VTABLE + // @@protoc_insertion_point(serialize_to_array_start:Odb.Lib.Protobuf.PropertyRecord) + ::uint32_t cached_has_bits = 0; + (void)cached_has_bits; + + cached_has_bits = this_._impl_._has_bits_[0]; + // optional string name = 1; + if (cached_has_bits & 0x00000001u) { + const std::string& _s = this_._internal_name(); + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + _s.data(), static_cast(_s.length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "Odb.Lib.Protobuf.PropertyRecord.name"); + target = stream->WriteStringMaybeAliased(1, _s, target); + } + + // optional string value = 2; + if (cached_has_bits & 0x00000002u) { + const std::string& _s = this_._internal_value(); + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + _s.data(), static_cast(_s.length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "Odb.Lib.Protobuf.PropertyRecord.value"); + target = stream->WriteStringMaybeAliased(2, _s, target); + } + + // repeated float floatValues = 3; + if (this_._internal_floatvalues_size() > 0) { + target = stream->WriteFixedPacked(3, this_._internal_floatvalues(), target); + } + + if (PROTOBUF_PREDICT_FALSE(this_._internal_metadata_.have_unknown_fields())) { + target = + ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( + this_._internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); + } + // @@protoc_insertion_point(serialize_to_array_end:Odb.Lib.Protobuf.PropertyRecord) + return target; + } + +#if defined(PROTOBUF_CUSTOM_VTABLE) + ::size_t PropertyRecord::ByteSizeLong(const MessageLite& base) { + const PropertyRecord& this_ = static_cast(base); +#else // PROTOBUF_CUSTOM_VTABLE + ::size_t PropertyRecord::ByteSizeLong() const { + const PropertyRecord& this_ = *this; +#endif // PROTOBUF_CUSTOM_VTABLE + // @@protoc_insertion_point(message_byte_size_start:Odb.Lib.Protobuf.PropertyRecord) + ::size_t total_size = 0; + + ::uint32_t cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void)cached_has_bits; + + ::_pbi::Prefetch5LinesFrom7Lines(&this_); + { + // repeated float floatValues = 3; + { + std::size_t data_size = std::size_t{4} * + ::_pbi::FromIntSize(this_._internal_floatvalues_size()); + std::size_t tag_size = data_size == 0 + ? 0 + : 1 + ::_pbi::WireFormatLite::Int32Size( + static_cast(data_size)); + total_size += tag_size + data_size; + } + } + cached_has_bits = this_._impl_._has_bits_[0]; + if (cached_has_bits & 0x00000003u) { + // optional string name = 1; + if (cached_has_bits & 0x00000001u) { + total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize( + this_._internal_name()); + } + // optional string value = 2; + if (cached_has_bits & 0x00000002u) { + total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize( + this_._internal_value()); + } + } + return this_.MaybeComputeUnknownFieldsSize(total_size, + &this_._impl_._cached_size_); + } + +void PropertyRecord::MergeImpl(::google::protobuf::MessageLite& to_msg, const ::google::protobuf::MessageLite& from_msg) { auto* const _this = static_cast(&to_msg); auto& from = static_cast(from_msg); // @@protoc_insertion_point(class_specific_merge_from_start:Odb.Lib.Protobuf.PropertyRecord) - GOOGLE_DCHECK_NE(&from, _this); - uint32_t cached_has_bits = 0; + ABSL_DCHECK_NE(&from, _this); + ::uint32_t cached_has_bits = 0; (void) cached_has_bits; - _this->_impl_.floatvalues_.MergeFrom(from._impl_.floatvalues_); + _this->_internal_mutable_floatvalues()->MergeFrom(from._internal_floatvalues()); cached_has_bits = from._impl_._has_bits_[0]; if (cached_has_bits & 0x00000003u) { if (cached_has_bits & 0x00000001u) { @@ -495,7 +563,8 @@ void PropertyRecord::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const : _this->_internal_set_value(from._internal_value()); } } - _this->_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); + _this->_impl_._has_bits_[0] |= cached_has_bits; + _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); } void PropertyRecord::CopyFrom(const PropertyRecord& from) { @@ -505,327 +574,308 @@ void PropertyRecord::CopyFrom(const PropertyRecord& from) { MergeFrom(from); } -bool PropertyRecord::IsInitialized() const { - return true; -} -void PropertyRecord::InternalSwap(PropertyRecord* other) { +void PropertyRecord::InternalSwap(PropertyRecord* PROTOBUF_RESTRICT other) { using std::swap; - auto* lhs_arena = GetArenaForAllocation(); - auto* rhs_arena = other->GetArenaForAllocation(); + auto* arena = GetArena(); + ABSL_DCHECK_EQ(arena, other->GetArena()); _internal_metadata_.InternalSwap(&other->_internal_metadata_); swap(_impl_._has_bits_[0], other->_impl_._has_bits_[0]); _impl_.floatvalues_.InternalSwap(&other->_impl_.floatvalues_); - ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( - &_impl_.name_, lhs_arena, - &other->_impl_.name_, rhs_arena - ); - ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( - &_impl_.value_, lhs_arena, - &other->_impl_.value_, rhs_arena - ); + ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.name_, &other->_impl_.name_, arena); + ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.value_, &other->_impl_.value_, arena); } -::PROTOBUF_NAMESPACE_ID::Metadata PropertyRecord::GetMetadata() const { - return ::_pbi::AssignDescriptors( - &descriptor_table_common_2eproto_getter, &descriptor_table_common_2eproto_once, - file_level_metadata_common_2eproto[0]); +::google::protobuf::Metadata PropertyRecord::GetMetadata() const { + return ::google::protobuf::Message::GetMetadataImpl(GetClassData()->full()); } - // =================================================================== class ContourPolygon_PolygonPart::_Internal { public: - using HasBits = decltype(std::declval()._impl_._has_bits_); - static void set_has_type(HasBits* has_bits) { - (*has_bits)[0] |= 1u; - } - static void set_has_endx(HasBits* has_bits) { - (*has_bits)[0] |= 2u; - } - static void set_has_endy(HasBits* has_bits) { - (*has_bits)[0] |= 4u; - } - static void set_has_xcenter(HasBits* has_bits) { - (*has_bits)[0] |= 8u; - } - static void set_has_ycenter(HasBits* has_bits) { - (*has_bits)[0] |= 16u; - } - static void set_has_isclockwise(HasBits* has_bits) { - (*has_bits)[0] |= 32u; - } + using HasBits = + decltype(std::declval()._impl_._has_bits_); + static constexpr ::int32_t kHasBitsOffset = + 8 * PROTOBUF_FIELD_OFFSET(ContourPolygon_PolygonPart, _impl_._has_bits_); }; -ContourPolygon_PolygonPart::ContourPolygon_PolygonPart(::PROTOBUF_NAMESPACE_ID::Arena* arena, - bool is_message_owned) - : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned) { - SharedCtor(arena, is_message_owned); +ContourPolygon_PolygonPart::ContourPolygon_PolygonPart(::google::protobuf::Arena* arena) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : ::google::protobuf::Message(arena, _class_data_.base()) { +#else // PROTOBUF_CUSTOM_VTABLE + : ::google::protobuf::Message(arena) { +#endif // PROTOBUF_CUSTOM_VTABLE + SharedCtor(arena); // @@protoc_insertion_point(arena_constructor:Odb.Lib.Protobuf.ContourPolygon.PolygonPart) } -ContourPolygon_PolygonPart::ContourPolygon_PolygonPart(const ContourPolygon_PolygonPart& from) - : ::PROTOBUF_NAMESPACE_ID::Message() { - ContourPolygon_PolygonPart* const _this = this; (void)_this; - new (&_impl_) Impl_{ - decltype(_impl_._has_bits_){from._impl_._has_bits_} - , /*decltype(_impl_._cached_size_)*/{} - , decltype(_impl_.type_){} - , decltype(_impl_.endx_){} - , decltype(_impl_.endy_){} - , decltype(_impl_.xcenter_){} - , decltype(_impl_.ycenter_){} - , decltype(_impl_.isclockwise_){}}; - - _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); - ::memcpy(&_impl_.type_, &from._impl_.type_, - static_cast(reinterpret_cast(&_impl_.isclockwise_) - - reinterpret_cast(&_impl_.type_)) + sizeof(_impl_.isclockwise_)); - // @@protoc_insertion_point(copy_constructor:Odb.Lib.Protobuf.ContourPolygon.PolygonPart) +ContourPolygon_PolygonPart::ContourPolygon_PolygonPart( + ::google::protobuf::Arena* arena, const ContourPolygon_PolygonPart& from) + : ContourPolygon_PolygonPart(arena) { + MergeFrom(from); } - -inline void ContourPolygon_PolygonPart::SharedCtor( - ::_pb::Arena* arena, bool is_message_owned) { - (void)arena; - (void)is_message_owned; - new (&_impl_) Impl_{ - decltype(_impl_._has_bits_){} - , /*decltype(_impl_._cached_size_)*/{} - , decltype(_impl_.type_){0} - , decltype(_impl_.endx_){0} - , decltype(_impl_.endy_){0} - , decltype(_impl_.xcenter_){0} - , decltype(_impl_.ycenter_){0} - , decltype(_impl_.isclockwise_){false} - }; +inline PROTOBUF_NDEBUG_INLINE ContourPolygon_PolygonPart::Impl_::Impl_( + ::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* arena) + : _cached_size_{0} {} + +inline void ContourPolygon_PolygonPart::SharedCtor(::_pb::Arena* arena) { + new (&_impl_) Impl_(internal_visibility(), arena); + ::memset(reinterpret_cast(&_impl_) + + offsetof(Impl_, type_), + 0, + offsetof(Impl_, isclockwise_) - + offsetof(Impl_, type_) + + sizeof(Impl_::isclockwise_)); } - ContourPolygon_PolygonPart::~ContourPolygon_PolygonPart() { // @@protoc_insertion_point(destructor:Odb.Lib.Protobuf.ContourPolygon.PolygonPart) - if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) { - (void)arena; - return; - } - SharedDtor(); + SharedDtor(*this); } - -inline void ContourPolygon_PolygonPart::SharedDtor() { - GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); +inline void ContourPolygon_PolygonPart::SharedDtor(MessageLite& self) { + ContourPolygon_PolygonPart& this_ = static_cast(self); + this_._internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); + ABSL_DCHECK(this_.GetArena() == nullptr); + this_._impl_.~Impl_(); } -void ContourPolygon_PolygonPart::SetCachedSize(int size) const { - _impl_._cached_size_.Set(size); +inline void* ContourPolygon_PolygonPart::PlacementNew_(const void*, void* mem, + ::google::protobuf::Arena* arena) { + return ::new (mem) ContourPolygon_PolygonPart(arena); +} +constexpr auto ContourPolygon_PolygonPart::InternalNewImpl_() { + return ::google::protobuf::internal::MessageCreator::ZeroInit(sizeof(ContourPolygon_PolygonPart), + alignof(ContourPolygon_PolygonPart)); +} +PROTOBUF_CONSTINIT +PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 +const ::google::protobuf::internal::ClassDataFull ContourPolygon_PolygonPart::_class_data_ = { + ::google::protobuf::internal::ClassData{ + &_ContourPolygon_PolygonPart_default_instance_._instance, + &_table_.header, + nullptr, // OnDemandRegisterArenaDtor + nullptr, // IsInitialized + &ContourPolygon_PolygonPart::MergeImpl, + ::google::protobuf::Message::GetNewImpl(), +#if defined(PROTOBUF_CUSTOM_VTABLE) + &ContourPolygon_PolygonPart::SharedDtor, + ::google::protobuf::Message::GetClearImpl(), &ContourPolygon_PolygonPart::ByteSizeLong, + &ContourPolygon_PolygonPart::_InternalSerialize, +#endif // PROTOBUF_CUSTOM_VTABLE + PROTOBUF_FIELD_OFFSET(ContourPolygon_PolygonPart, _impl_._cached_size_), + false, + }, + &ContourPolygon_PolygonPart::kDescriptorMethods, + &descriptor_table_common_2eproto, + nullptr, // tracker +}; +const ::google::protobuf::internal::ClassData* ContourPolygon_PolygonPart::GetClassData() const { + ::google::protobuf::internal::PrefetchToLocalCache(&_class_data_); + ::google::protobuf::internal::PrefetchToLocalCache(_class_data_.tc_table); + return _class_data_.base(); } +PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 +const ::_pbi::TcParseTable<3, 6, 0, 0, 2> ContourPolygon_PolygonPart::_table_ = { + { + PROTOBUF_FIELD_OFFSET(ContourPolygon_PolygonPart, _impl_._has_bits_), + 0, // no _extensions_ + 6, 56, // max_field_number, fast_idx_mask + offsetof(decltype(_table_), field_lookup_table), + 4294967232, // skipmap + offsetof(decltype(_table_), field_entries), + 6, // num_field_entries + 0, // num_aux_entries + offsetof(decltype(_table_), field_names), // no aux_entries + _class_data_.base(), + nullptr, // post_loop_handler + ::_pbi::TcParser::GenericFallback, // fallback + #ifdef PROTOBUF_PREFETCH_PARSE_TABLE + ::_pbi::TcParser::GetTable<::Odb::Lib::Protobuf::ContourPolygon_PolygonPart>(), // to_prefetch + #endif // PROTOBUF_PREFETCH_PARSE_TABLE + }, {{ + {::_pbi::TcParser::MiniParse, {}}, + // optional .Odb.Lib.Protobuf.ContourPolygon.PolygonPart.Type type = 1; + {::_pbi::TcParser::SingularVarintNoZag1<::uint32_t, offsetof(ContourPolygon_PolygonPart, _impl_.type_), 0>(), + {8, 0, 0, PROTOBUF_FIELD_OFFSET(ContourPolygon_PolygonPart, _impl_.type_)}}, + // optional float endX = 2; + {::_pbi::TcParser::FastF32S1, + {21, 1, 0, PROTOBUF_FIELD_OFFSET(ContourPolygon_PolygonPart, _impl_.endx_)}}, + // optional float endY = 3; + {::_pbi::TcParser::FastF32S1, + {29, 2, 0, PROTOBUF_FIELD_OFFSET(ContourPolygon_PolygonPart, _impl_.endy_)}}, + // optional float xCenter = 4; + {::_pbi::TcParser::FastF32S1, + {37, 3, 0, PROTOBUF_FIELD_OFFSET(ContourPolygon_PolygonPart, _impl_.xcenter_)}}, + // optional float yCenter = 5; + {::_pbi::TcParser::FastF32S1, + {45, 4, 0, PROTOBUF_FIELD_OFFSET(ContourPolygon_PolygonPart, _impl_.ycenter_)}}, + // optional bool isClockwise = 6; + {::_pbi::TcParser::SingularVarintNoZag1(), + {48, 5, 0, PROTOBUF_FIELD_OFFSET(ContourPolygon_PolygonPart, _impl_.isclockwise_)}}, + {::_pbi::TcParser::MiniParse, {}}, + }}, {{ + 65535, 65535 + }}, {{ + // optional .Odb.Lib.Protobuf.ContourPolygon.PolygonPart.Type type = 1; + {PROTOBUF_FIELD_OFFSET(ContourPolygon_PolygonPart, _impl_.type_), _Internal::kHasBitsOffset + 0, 0, + (0 | ::_fl::kFcOptional | ::_fl::kOpenEnum)}, + // optional float endX = 2; + {PROTOBUF_FIELD_OFFSET(ContourPolygon_PolygonPart, _impl_.endx_), _Internal::kHasBitsOffset + 1, 0, + (0 | ::_fl::kFcOptional | ::_fl::kFloat)}, + // optional float endY = 3; + {PROTOBUF_FIELD_OFFSET(ContourPolygon_PolygonPart, _impl_.endy_), _Internal::kHasBitsOffset + 2, 0, + (0 | ::_fl::kFcOptional | ::_fl::kFloat)}, + // optional float xCenter = 4; + {PROTOBUF_FIELD_OFFSET(ContourPolygon_PolygonPart, _impl_.xcenter_), _Internal::kHasBitsOffset + 3, 0, + (0 | ::_fl::kFcOptional | ::_fl::kFloat)}, + // optional float yCenter = 5; + {PROTOBUF_FIELD_OFFSET(ContourPolygon_PolygonPart, _impl_.ycenter_), _Internal::kHasBitsOffset + 4, 0, + (0 | ::_fl::kFcOptional | ::_fl::kFloat)}, + // optional bool isClockwise = 6; + {PROTOBUF_FIELD_OFFSET(ContourPolygon_PolygonPart, _impl_.isclockwise_), _Internal::kHasBitsOffset + 5, 0, + (0 | ::_fl::kFcOptional | ::_fl::kBool)}, + }}, + // no aux_entries + {{ + }}, +}; -void ContourPolygon_PolygonPart::Clear() { +PROTOBUF_NOINLINE void ContourPolygon_PolygonPart::Clear() { // @@protoc_insertion_point(message_clear_start:Odb.Lib.Protobuf.ContourPolygon.PolygonPart) - uint32_t cached_has_bits = 0; + ::google::protobuf::internal::TSanWrite(&_impl_); + ::uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; cached_has_bits = _impl_._has_bits_[0]; if (cached_has_bits & 0x0000003fu) { - ::memset(&_impl_.type_, 0, static_cast( + ::memset(&_impl_.type_, 0, static_cast<::size_t>( reinterpret_cast(&_impl_.isclockwise_) - reinterpret_cast(&_impl_.type_)) + sizeof(_impl_.isclockwise_)); } _impl_._has_bits_.Clear(); - _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); -} - -const char* ContourPolygon_PolygonPart::_InternalParse(const char* ptr, ::_pbi::ParseContext* ctx) { -#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure - _Internal::HasBits has_bits{}; - while (!ctx->Done(&ptr)) { - uint32_t tag; - ptr = ::_pbi::ReadTag(ptr, &tag); - switch (tag >> 3) { - // optional .Odb.Lib.Protobuf.ContourPolygon.PolygonPart.Type type = 1; - case 1: - if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 8)) { - uint64_t val = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); - CHK_(ptr); - _internal_set_type(static_cast<::Odb::Lib::Protobuf::ContourPolygon_PolygonPart_Type>(val)); - } else - goto handle_unusual; - continue; - // optional float endX = 2; - case 2: - if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 21)) { - _Internal::set_has_endx(&has_bits); - _impl_.endx_ = ::PROTOBUF_NAMESPACE_ID::internal::UnalignedLoad(ptr); - ptr += sizeof(float); - } else - goto handle_unusual; - continue; - // optional float endY = 3; - case 3: - if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 29)) { - _Internal::set_has_endy(&has_bits); - _impl_.endy_ = ::PROTOBUF_NAMESPACE_ID::internal::UnalignedLoad(ptr); - ptr += sizeof(float); - } else - goto handle_unusual; - continue; - // optional float xCenter = 4; - case 4: - if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 37)) { - _Internal::set_has_xcenter(&has_bits); - _impl_.xcenter_ = ::PROTOBUF_NAMESPACE_ID::internal::UnalignedLoad(ptr); - ptr += sizeof(float); - } else - goto handle_unusual; - continue; - // optional float yCenter = 5; - case 5: - if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 45)) { - _Internal::set_has_ycenter(&has_bits); - _impl_.ycenter_ = ::PROTOBUF_NAMESPACE_ID::internal::UnalignedLoad(ptr); - ptr += sizeof(float); - } else - goto handle_unusual; - continue; - // optional bool isClockwise = 6; - case 6: - if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 48)) { - _Internal::set_has_isclockwise(&has_bits); - _impl_.isclockwise_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); - CHK_(ptr); - } else - goto handle_unusual; - continue; - default: - goto handle_unusual; - } // switch - handle_unusual: - if ((tag == 0) || ((tag & 7) == 4)) { - CHK_(ptr); - ctx->SetLastTag(tag); - goto message_done; - } - ptr = UnknownFieldParse( - tag, - _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(), - ptr, ctx); - CHK_(ptr != nullptr); - } // while -message_done: - _impl_._has_bits_.Or(has_bits); - return ptr; -failure: - ptr = nullptr; - goto message_done; -#undef CHK_ + _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); } -uint8_t* ContourPolygon_PolygonPart::_InternalSerialize( - uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { - // @@protoc_insertion_point(serialize_to_array_start:Odb.Lib.Protobuf.ContourPolygon.PolygonPart) - uint32_t cached_has_bits = 0; - (void) cached_has_bits; - - // optional .Odb.Lib.Protobuf.ContourPolygon.PolygonPart.Type type = 1; - if (_internal_has_type()) { - target = stream->EnsureSpace(target); - target = ::_pbi::WireFormatLite::WriteEnumToArray( - 1, this->_internal_type(), target); - } - - // optional float endX = 2; - if (_internal_has_endx()) { - target = stream->EnsureSpace(target); - target = ::_pbi::WireFormatLite::WriteFloatToArray(2, this->_internal_endx(), target); - } - - // optional float endY = 3; - if (_internal_has_endy()) { - target = stream->EnsureSpace(target); - target = ::_pbi::WireFormatLite::WriteFloatToArray(3, this->_internal_endy(), target); - } - - // optional float xCenter = 4; - if (_internal_has_xcenter()) { - target = stream->EnsureSpace(target); - target = ::_pbi::WireFormatLite::WriteFloatToArray(4, this->_internal_xcenter(), target); - } - - // optional float yCenter = 5; - if (_internal_has_ycenter()) { - target = stream->EnsureSpace(target); - target = ::_pbi::WireFormatLite::WriteFloatToArray(5, this->_internal_ycenter(), target); - } - - // optional bool isClockwise = 6; - if (_internal_has_isclockwise()) { - target = stream->EnsureSpace(target); - target = ::_pbi::WireFormatLite::WriteBoolToArray(6, this->_internal_isclockwise(), target); - } - - if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = ::_pbi::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:Odb.Lib.Protobuf.ContourPolygon.PolygonPart) - return target; -} - -size_t ContourPolygon_PolygonPart::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:Odb.Lib.Protobuf.ContourPolygon.PolygonPart) - size_t total_size = 0; - - uint32_t cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - cached_has_bits = _impl_._has_bits_[0]; - if (cached_has_bits & 0x0000003fu) { - // optional .Odb.Lib.Protobuf.ContourPolygon.PolygonPart.Type type = 1; - if (cached_has_bits & 0x00000001u) { - total_size += 1 + - ::_pbi::WireFormatLite::EnumSize(this->_internal_type()); - } - - // optional float endX = 2; - if (cached_has_bits & 0x00000002u) { - total_size += 1 + 4; - } - - // optional float endY = 3; - if (cached_has_bits & 0x00000004u) { - total_size += 1 + 4; - } - - // optional float xCenter = 4; - if (cached_has_bits & 0x00000008u) { - total_size += 1 + 4; - } - - // optional float yCenter = 5; - if (cached_has_bits & 0x00000010u) { - total_size += 1 + 4; - } - - // optional bool isClockwise = 6; - if (cached_has_bits & 0x00000020u) { - total_size += 1 + 1; - } - - } - return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); -} - -const ::PROTOBUF_NAMESPACE_ID::Message::ClassData ContourPolygon_PolygonPart::_class_data_ = { - ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSourceCheck, - ContourPolygon_PolygonPart::MergeImpl -}; -const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*ContourPolygon_PolygonPart::GetClassData() const { return &_class_data_; } - - -void ContourPolygon_PolygonPart::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg) { +#if defined(PROTOBUF_CUSTOM_VTABLE) + ::uint8_t* ContourPolygon_PolygonPart::_InternalSerialize( + const MessageLite& base, ::uint8_t* target, + ::google::protobuf::io::EpsCopyOutputStream* stream) { + const ContourPolygon_PolygonPart& this_ = static_cast(base); +#else // PROTOBUF_CUSTOM_VTABLE + ::uint8_t* ContourPolygon_PolygonPart::_InternalSerialize( + ::uint8_t* target, + ::google::protobuf::io::EpsCopyOutputStream* stream) const { + const ContourPolygon_PolygonPart& this_ = *this; +#endif // PROTOBUF_CUSTOM_VTABLE + // @@protoc_insertion_point(serialize_to_array_start:Odb.Lib.Protobuf.ContourPolygon.PolygonPart) + ::uint32_t cached_has_bits = 0; + (void)cached_has_bits; + + cached_has_bits = this_._impl_._has_bits_[0]; + // optional .Odb.Lib.Protobuf.ContourPolygon.PolygonPart.Type type = 1; + if (cached_has_bits & 0x00000001u) { + target = stream->EnsureSpace(target); + target = ::_pbi::WireFormatLite::WriteEnumToArray( + 1, this_._internal_type(), target); + } + + // optional float endX = 2; + if (cached_has_bits & 0x00000002u) { + target = stream->EnsureSpace(target); + target = ::_pbi::WireFormatLite::WriteFloatToArray( + 2, this_._internal_endx(), target); + } + + // optional float endY = 3; + if (cached_has_bits & 0x00000004u) { + target = stream->EnsureSpace(target); + target = ::_pbi::WireFormatLite::WriteFloatToArray( + 3, this_._internal_endy(), target); + } + + // optional float xCenter = 4; + if (cached_has_bits & 0x00000008u) { + target = stream->EnsureSpace(target); + target = ::_pbi::WireFormatLite::WriteFloatToArray( + 4, this_._internal_xcenter(), target); + } + + // optional float yCenter = 5; + if (cached_has_bits & 0x00000010u) { + target = stream->EnsureSpace(target); + target = ::_pbi::WireFormatLite::WriteFloatToArray( + 5, this_._internal_ycenter(), target); + } + + // optional bool isClockwise = 6; + if (cached_has_bits & 0x00000020u) { + target = stream->EnsureSpace(target); + target = ::_pbi::WireFormatLite::WriteBoolToArray( + 6, this_._internal_isclockwise(), target); + } + + if (PROTOBUF_PREDICT_FALSE(this_._internal_metadata_.have_unknown_fields())) { + target = + ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( + this_._internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); + } + // @@protoc_insertion_point(serialize_to_array_end:Odb.Lib.Protobuf.ContourPolygon.PolygonPart) + return target; + } + +#if defined(PROTOBUF_CUSTOM_VTABLE) + ::size_t ContourPolygon_PolygonPart::ByteSizeLong(const MessageLite& base) { + const ContourPolygon_PolygonPart& this_ = static_cast(base); +#else // PROTOBUF_CUSTOM_VTABLE + ::size_t ContourPolygon_PolygonPart::ByteSizeLong() const { + const ContourPolygon_PolygonPart& this_ = *this; +#endif // PROTOBUF_CUSTOM_VTABLE + // @@protoc_insertion_point(message_byte_size_start:Odb.Lib.Protobuf.ContourPolygon.PolygonPart) + ::size_t total_size = 0; + + ::uint32_t cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void)cached_has_bits; + + ::_pbi::Prefetch5LinesFrom7Lines(&this_); + cached_has_bits = this_._impl_._has_bits_[0]; + if (cached_has_bits & 0x0000003fu) { + // optional .Odb.Lib.Protobuf.ContourPolygon.PolygonPart.Type type = 1; + if (cached_has_bits & 0x00000001u) { + total_size += 1 + + ::_pbi::WireFormatLite::EnumSize(this_._internal_type()); + } + // optional float endX = 2; + if (cached_has_bits & 0x00000002u) { + total_size += 5; + } + // optional float endY = 3; + if (cached_has_bits & 0x00000004u) { + total_size += 5; + } + // optional float xCenter = 4; + if (cached_has_bits & 0x00000008u) { + total_size += 5; + } + // optional float yCenter = 5; + if (cached_has_bits & 0x00000010u) { + total_size += 5; + } + // optional bool isClockwise = 6; + if (cached_has_bits & 0x00000020u) { + total_size += 2; + } + } + return this_.MaybeComputeUnknownFieldsSize(total_size, + &this_._impl_._cached_size_); + } + +void ContourPolygon_PolygonPart::MergeImpl(::google::protobuf::MessageLite& to_msg, const ::google::protobuf::MessageLite& from_msg) { auto* const _this = static_cast(&to_msg); auto& from = static_cast(from_msg); // @@protoc_insertion_point(class_specific_merge_from_start:Odb.Lib.Protobuf.ContourPolygon.PolygonPart) - GOOGLE_DCHECK_NE(&from, _this); - uint32_t cached_has_bits = 0; + ABSL_DCHECK_NE(&from, _this); + ::uint32_t cached_has_bits = 0; (void) cached_has_bits; cached_has_bits = from._impl_._has_bits_[0]; @@ -848,9 +898,9 @@ void ContourPolygon_PolygonPart::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_ if (cached_has_bits & 0x00000020u) { _this->_impl_.isclockwise_ = from._impl_.isclockwise_; } - _this->_impl_._has_bits_[0] |= cached_has_bits; } - _this->_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); + _this->_impl_._has_bits_[0] |= cached_has_bits; + _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); } void ContourPolygon_PolygonPart::CopyFrom(const ContourPolygon_PolygonPart& from) { @@ -860,15 +910,12 @@ void ContourPolygon_PolygonPart::CopyFrom(const ContourPolygon_PolygonPart& from MergeFrom(from); } -bool ContourPolygon_PolygonPart::IsInitialized() const { - return true; -} -void ContourPolygon_PolygonPart::InternalSwap(ContourPolygon_PolygonPart* other) { +void ContourPolygon_PolygonPart::InternalSwap(ContourPolygon_PolygonPart* PROTOBUF_RESTRICT other) { using std::swap; _internal_metadata_.InternalSwap(&other->_internal_metadata_); swap(_impl_._has_bits_[0], other->_impl_._has_bits_[0]); - ::PROTOBUF_NAMESPACE_ID::internal::memswap< + ::google::protobuf::internal::memswap< PROTOBUF_FIELD_OFFSET(ContourPolygon_PolygonPart, _impl_.isclockwise_) + sizeof(ContourPolygon_PolygonPart::_impl_.isclockwise_) - PROTOBUF_FIELD_OFFSET(ContourPolygon_PolygonPart, _impl_.type_)>( @@ -876,266 +923,312 @@ void ContourPolygon_PolygonPart::InternalSwap(ContourPolygon_PolygonPart* other) reinterpret_cast(&other->_impl_.type_)); } -::PROTOBUF_NAMESPACE_ID::Metadata ContourPolygon_PolygonPart::GetMetadata() const { - return ::_pbi::AssignDescriptors( - &descriptor_table_common_2eproto_getter, &descriptor_table_common_2eproto_once, - file_level_metadata_common_2eproto[1]); +::google::protobuf::Metadata ContourPolygon_PolygonPart::GetMetadata() const { + return ::google::protobuf::Message::GetMetadataImpl(GetClassData()->full()); } - // =================================================================== class ContourPolygon::_Internal { public: - using HasBits = decltype(std::declval()._impl_._has_bits_); - static void set_has_type(HasBits* has_bits) { - (*has_bits)[0] |= 1u; - } - static void set_has_xstart(HasBits* has_bits) { - (*has_bits)[0] |= 2u; - } - static void set_has_ystart(HasBits* has_bits) { - (*has_bits)[0] |= 4u; - } + using HasBits = + decltype(std::declval()._impl_._has_bits_); + static constexpr ::int32_t kHasBitsOffset = + 8 * PROTOBUF_FIELD_OFFSET(ContourPolygon, _impl_._has_bits_); }; -ContourPolygon::ContourPolygon(::PROTOBUF_NAMESPACE_ID::Arena* arena, - bool is_message_owned) - : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned) { - SharedCtor(arena, is_message_owned); +ContourPolygon::ContourPolygon(::google::protobuf::Arena* arena) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : ::google::protobuf::Message(arena, _class_data_.base()) { +#else // PROTOBUF_CUSTOM_VTABLE + : ::google::protobuf::Message(arena) { +#endif // PROTOBUF_CUSTOM_VTABLE + SharedCtor(arena); // @@protoc_insertion_point(arena_constructor:Odb.Lib.Protobuf.ContourPolygon) } -ContourPolygon::ContourPolygon(const ContourPolygon& from) - : ::PROTOBUF_NAMESPACE_ID::Message() { - ContourPolygon* const _this = this; (void)_this; - new (&_impl_) Impl_{ - decltype(_impl_._has_bits_){from._impl_._has_bits_} - , /*decltype(_impl_._cached_size_)*/{} - , decltype(_impl_.polygonparts_){from._impl_.polygonparts_} - , decltype(_impl_.type_){} - , decltype(_impl_.xstart_){} - , decltype(_impl_.ystart_){}}; - - _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); - ::memcpy(&_impl_.type_, &from._impl_.type_, - static_cast(reinterpret_cast(&_impl_.ystart_) - - reinterpret_cast(&_impl_.type_)) + sizeof(_impl_.ystart_)); +inline PROTOBUF_NDEBUG_INLINE ContourPolygon::Impl_::Impl_( + ::google::protobuf::internal::InternalVisibility visibility, ::google::protobuf::Arena* arena, + const Impl_& from, const ::Odb::Lib::Protobuf::ContourPolygon& from_msg) + : _has_bits_{from._has_bits_}, + _cached_size_{0}, + polygonparts_{visibility, arena, from.polygonparts_} {} + +ContourPolygon::ContourPolygon( + ::google::protobuf::Arena* arena, + const ContourPolygon& from) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : ::google::protobuf::Message(arena, _class_data_.base()) { +#else // PROTOBUF_CUSTOM_VTABLE + : ::google::protobuf::Message(arena) { +#endif // PROTOBUF_CUSTOM_VTABLE + ContourPolygon* const _this = this; + (void)_this; + _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( + from._internal_metadata_); + new (&_impl_) Impl_(internal_visibility(), arena, from._impl_, from); + ::memcpy(reinterpret_cast(&_impl_) + + offsetof(Impl_, type_), + reinterpret_cast(&from._impl_) + + offsetof(Impl_, type_), + offsetof(Impl_, ystart_) - + offsetof(Impl_, type_) + + sizeof(Impl_::ystart_)); + // @@protoc_insertion_point(copy_constructor:Odb.Lib.Protobuf.ContourPolygon) } - -inline void ContourPolygon::SharedCtor( - ::_pb::Arena* arena, bool is_message_owned) { - (void)arena; - (void)is_message_owned; - new (&_impl_) Impl_{ - decltype(_impl_._has_bits_){} - , /*decltype(_impl_._cached_size_)*/{} - , decltype(_impl_.polygonparts_){arena} - , decltype(_impl_.type_){0} - , decltype(_impl_.xstart_){0} - , decltype(_impl_.ystart_){0} - }; +inline PROTOBUF_NDEBUG_INLINE ContourPolygon::Impl_::Impl_( + ::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* arena) + : _cached_size_{0}, + polygonparts_{visibility, arena} {} + +inline void ContourPolygon::SharedCtor(::_pb::Arena* arena) { + new (&_impl_) Impl_(internal_visibility(), arena); + ::memset(reinterpret_cast(&_impl_) + + offsetof(Impl_, type_), + 0, + offsetof(Impl_, ystart_) - + offsetof(Impl_, type_) + + sizeof(Impl_::ystart_)); } - ContourPolygon::~ContourPolygon() { // @@protoc_insertion_point(destructor:Odb.Lib.Protobuf.ContourPolygon) - if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) { - (void)arena; - return; - } - SharedDtor(); + SharedDtor(*this); } - -inline void ContourPolygon::SharedDtor() { - GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); - _impl_.polygonparts_.~RepeatedPtrField(); +inline void ContourPolygon::SharedDtor(MessageLite& self) { + ContourPolygon& this_ = static_cast(self); + this_._internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); + ABSL_DCHECK(this_.GetArena() == nullptr); + this_._impl_.~Impl_(); } -void ContourPolygon::SetCachedSize(int size) const { - _impl_._cached_size_.Set(size); +inline void* ContourPolygon::PlacementNew_(const void*, void* mem, + ::google::protobuf::Arena* arena) { + return ::new (mem) ContourPolygon(arena); +} +constexpr auto ContourPolygon::InternalNewImpl_() { + constexpr auto arena_bits = ::google::protobuf::internal::EncodePlacementArenaOffsets({ + PROTOBUF_FIELD_OFFSET(ContourPolygon, _impl_.polygonparts_) + + decltype(ContourPolygon::_impl_.polygonparts_):: + InternalGetArenaOffset( + ::google::protobuf::Message::internal_visibility()), + }); + if (arena_bits.has_value()) { + return ::google::protobuf::internal::MessageCreator::ZeroInit( + sizeof(ContourPolygon), alignof(ContourPolygon), *arena_bits); + } else { + return ::google::protobuf::internal::MessageCreator(&ContourPolygon::PlacementNew_, + sizeof(ContourPolygon), + alignof(ContourPolygon)); + } } +PROTOBUF_CONSTINIT +PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 +const ::google::protobuf::internal::ClassDataFull ContourPolygon::_class_data_ = { + ::google::protobuf::internal::ClassData{ + &_ContourPolygon_default_instance_._instance, + &_table_.header, + nullptr, // OnDemandRegisterArenaDtor + nullptr, // IsInitialized + &ContourPolygon::MergeImpl, + ::google::protobuf::Message::GetNewImpl(), +#if defined(PROTOBUF_CUSTOM_VTABLE) + &ContourPolygon::SharedDtor, + ::google::protobuf::Message::GetClearImpl(), &ContourPolygon::ByteSizeLong, + &ContourPolygon::_InternalSerialize, +#endif // PROTOBUF_CUSTOM_VTABLE + PROTOBUF_FIELD_OFFSET(ContourPolygon, _impl_._cached_size_), + false, + }, + &ContourPolygon::kDescriptorMethods, + &descriptor_table_common_2eproto, + nullptr, // tracker +}; +const ::google::protobuf::internal::ClassData* ContourPolygon::GetClassData() const { + ::google::protobuf::internal::PrefetchToLocalCache(&_class_data_); + ::google::protobuf::internal::PrefetchToLocalCache(_class_data_.tc_table); + return _class_data_.base(); +} +PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 +const ::_pbi::TcParseTable<2, 4, 1, 0, 2> ContourPolygon::_table_ = { + { + PROTOBUF_FIELD_OFFSET(ContourPolygon, _impl_._has_bits_), + 0, // no _extensions_ + 4, 24, // max_field_number, fast_idx_mask + offsetof(decltype(_table_), field_lookup_table), + 4294967280, // skipmap + offsetof(decltype(_table_), field_entries), + 4, // num_field_entries + 1, // num_aux_entries + offsetof(decltype(_table_), aux_entries), + _class_data_.base(), + nullptr, // post_loop_handler + ::_pbi::TcParser::GenericFallback, // fallback + #ifdef PROTOBUF_PREFETCH_PARSE_TABLE + ::_pbi::TcParser::GetTable<::Odb::Lib::Protobuf::ContourPolygon>(), // to_prefetch + #endif // PROTOBUF_PREFETCH_PARSE_TABLE + }, {{ + // repeated .Odb.Lib.Protobuf.ContourPolygon.PolygonPart polygonParts = 4; + {::_pbi::TcParser::FastMtR1, + {34, 63, 0, PROTOBUF_FIELD_OFFSET(ContourPolygon, _impl_.polygonparts_)}}, + // optional .Odb.Lib.Protobuf.ContourPolygon.Type type = 1; + {::_pbi::TcParser::SingularVarintNoZag1<::uint32_t, offsetof(ContourPolygon, _impl_.type_), 0>(), + {8, 0, 0, PROTOBUF_FIELD_OFFSET(ContourPolygon, _impl_.type_)}}, + // optional float xStart = 2; + {::_pbi::TcParser::FastF32S1, + {21, 1, 0, PROTOBUF_FIELD_OFFSET(ContourPolygon, _impl_.xstart_)}}, + // optional float yStart = 3; + {::_pbi::TcParser::FastF32S1, + {29, 2, 0, PROTOBUF_FIELD_OFFSET(ContourPolygon, _impl_.ystart_)}}, + }}, {{ + 65535, 65535 + }}, {{ + // optional .Odb.Lib.Protobuf.ContourPolygon.Type type = 1; + {PROTOBUF_FIELD_OFFSET(ContourPolygon, _impl_.type_), _Internal::kHasBitsOffset + 0, 0, + (0 | ::_fl::kFcOptional | ::_fl::kOpenEnum)}, + // optional float xStart = 2; + {PROTOBUF_FIELD_OFFSET(ContourPolygon, _impl_.xstart_), _Internal::kHasBitsOffset + 1, 0, + (0 | ::_fl::kFcOptional | ::_fl::kFloat)}, + // optional float yStart = 3; + {PROTOBUF_FIELD_OFFSET(ContourPolygon, _impl_.ystart_), _Internal::kHasBitsOffset + 2, 0, + (0 | ::_fl::kFcOptional | ::_fl::kFloat)}, + // repeated .Odb.Lib.Protobuf.ContourPolygon.PolygonPart polygonParts = 4; + {PROTOBUF_FIELD_OFFSET(ContourPolygon, _impl_.polygonparts_), -1, 0, + (0 | ::_fl::kFcRepeated | ::_fl::kMessage | ::_fl::kTvTable)}, + }}, {{ + {::_pbi::TcParser::GetTable<::Odb::Lib::Protobuf::ContourPolygon_PolygonPart>()}, + }}, {{ + }}, +}; -void ContourPolygon::Clear() { +PROTOBUF_NOINLINE void ContourPolygon::Clear() { // @@protoc_insertion_point(message_clear_start:Odb.Lib.Protobuf.ContourPolygon) - uint32_t cached_has_bits = 0; + ::google::protobuf::internal::TSanWrite(&_impl_); + ::uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; _impl_.polygonparts_.Clear(); cached_has_bits = _impl_._has_bits_[0]; if (cached_has_bits & 0x00000007u) { - ::memset(&_impl_.type_, 0, static_cast( + ::memset(&_impl_.type_, 0, static_cast<::size_t>( reinterpret_cast(&_impl_.ystart_) - reinterpret_cast(&_impl_.type_)) + sizeof(_impl_.ystart_)); } _impl_._has_bits_.Clear(); - _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); -} - -const char* ContourPolygon::_InternalParse(const char* ptr, ::_pbi::ParseContext* ctx) { -#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure - _Internal::HasBits has_bits{}; - while (!ctx->Done(&ptr)) { - uint32_t tag; - ptr = ::_pbi::ReadTag(ptr, &tag); - switch (tag >> 3) { - // optional .Odb.Lib.Protobuf.ContourPolygon.Type type = 1; - case 1: - if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 8)) { - uint64_t val = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); - CHK_(ptr); - _internal_set_type(static_cast<::Odb::Lib::Protobuf::ContourPolygon_Type>(val)); - } else - goto handle_unusual; - continue; - // optional float xStart = 2; - case 2: - if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 21)) { - _Internal::set_has_xstart(&has_bits); - _impl_.xstart_ = ::PROTOBUF_NAMESPACE_ID::internal::UnalignedLoad(ptr); - ptr += sizeof(float); - } else - goto handle_unusual; - continue; - // optional float yStart = 3; - case 3: - if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 29)) { - _Internal::set_has_ystart(&has_bits); - _impl_.ystart_ = ::PROTOBUF_NAMESPACE_ID::internal::UnalignedLoad(ptr); - ptr += sizeof(float); - } else - goto handle_unusual; - continue; - // repeated .Odb.Lib.Protobuf.ContourPolygon.PolygonPart polygonParts = 4; - case 4: - if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 34)) { - ptr -= 1; - do { - ptr += 1; - ptr = ctx->ParseMessage(_internal_add_polygonparts(), ptr); - CHK_(ptr); - if (!ctx->DataAvailable(ptr)) break; - } while (::PROTOBUF_NAMESPACE_ID::internal::ExpectTag<34>(ptr)); - } else - goto handle_unusual; - continue; - default: - goto handle_unusual; - } // switch - handle_unusual: - if ((tag == 0) || ((tag & 7) == 4)) { - CHK_(ptr); - ctx->SetLastTag(tag); - goto message_done; - } - ptr = UnknownFieldParse( - tag, - _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(), - ptr, ctx); - CHK_(ptr != nullptr); - } // while -message_done: - _impl_._has_bits_.Or(has_bits); - return ptr; -failure: - ptr = nullptr; - goto message_done; -#undef CHK_ -} - -uint8_t* ContourPolygon::_InternalSerialize( - uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { - // @@protoc_insertion_point(serialize_to_array_start:Odb.Lib.Protobuf.ContourPolygon) - uint32_t cached_has_bits = 0; - (void) cached_has_bits; - - // optional .Odb.Lib.Protobuf.ContourPolygon.Type type = 1; - if (_internal_has_type()) { - target = stream->EnsureSpace(target); - target = ::_pbi::WireFormatLite::WriteEnumToArray( - 1, this->_internal_type(), target); - } - - // optional float xStart = 2; - if (_internal_has_xstart()) { - target = stream->EnsureSpace(target); - target = ::_pbi::WireFormatLite::WriteFloatToArray(2, this->_internal_xstart(), target); - } - - // optional float yStart = 3; - if (_internal_has_ystart()) { - target = stream->EnsureSpace(target); - target = ::_pbi::WireFormatLite::WriteFloatToArray(3, this->_internal_ystart(), target); - } - - // repeated .Odb.Lib.Protobuf.ContourPolygon.PolygonPart polygonParts = 4; - for (unsigned i = 0, - n = static_cast(this->_internal_polygonparts_size()); i < n; i++) { - const auto& repfield = this->_internal_polygonparts(i); - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: - InternalWriteMessage(4, repfield, repfield.GetCachedSize(), target, stream); - } - - if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = ::_pbi::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:Odb.Lib.Protobuf.ContourPolygon) - return target; -} - -size_t ContourPolygon::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:Odb.Lib.Protobuf.ContourPolygon) - size_t total_size = 0; - - uint32_t cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - // repeated .Odb.Lib.Protobuf.ContourPolygon.PolygonPart polygonParts = 4; - total_size += 1UL * this->_internal_polygonparts_size(); - for (const auto& msg : this->_impl_.polygonparts_) { - total_size += - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(msg); - } - - cached_has_bits = _impl_._has_bits_[0]; - if (cached_has_bits & 0x00000007u) { - // optional .Odb.Lib.Protobuf.ContourPolygon.Type type = 1; - if (cached_has_bits & 0x00000001u) { - total_size += 1 + - ::_pbi::WireFormatLite::EnumSize(this->_internal_type()); - } - - // optional float xStart = 2; - if (cached_has_bits & 0x00000002u) { - total_size += 1 + 4; - } - - // optional float yStart = 3; - if (cached_has_bits & 0x00000004u) { - total_size += 1 + 4; - } - - } - return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); + _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); } -const ::PROTOBUF_NAMESPACE_ID::Message::ClassData ContourPolygon::_class_data_ = { - ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSourceCheck, - ContourPolygon::MergeImpl -}; -const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*ContourPolygon::GetClassData() const { return &_class_data_; } - - -void ContourPolygon::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg) { +#if defined(PROTOBUF_CUSTOM_VTABLE) + ::uint8_t* ContourPolygon::_InternalSerialize( + const MessageLite& base, ::uint8_t* target, + ::google::protobuf::io::EpsCopyOutputStream* stream) { + const ContourPolygon& this_ = static_cast(base); +#else // PROTOBUF_CUSTOM_VTABLE + ::uint8_t* ContourPolygon::_InternalSerialize( + ::uint8_t* target, + ::google::protobuf::io::EpsCopyOutputStream* stream) const { + const ContourPolygon& this_ = *this; +#endif // PROTOBUF_CUSTOM_VTABLE + // @@protoc_insertion_point(serialize_to_array_start:Odb.Lib.Protobuf.ContourPolygon) + ::uint32_t cached_has_bits = 0; + (void)cached_has_bits; + + cached_has_bits = this_._impl_._has_bits_[0]; + // optional .Odb.Lib.Protobuf.ContourPolygon.Type type = 1; + if (cached_has_bits & 0x00000001u) { + target = stream->EnsureSpace(target); + target = ::_pbi::WireFormatLite::WriteEnumToArray( + 1, this_._internal_type(), target); + } + + // optional float xStart = 2; + if (cached_has_bits & 0x00000002u) { + target = stream->EnsureSpace(target); + target = ::_pbi::WireFormatLite::WriteFloatToArray( + 2, this_._internal_xstart(), target); + } + + // optional float yStart = 3; + if (cached_has_bits & 0x00000004u) { + target = stream->EnsureSpace(target); + target = ::_pbi::WireFormatLite::WriteFloatToArray( + 3, this_._internal_ystart(), target); + } + + // repeated .Odb.Lib.Protobuf.ContourPolygon.PolygonPart polygonParts = 4; + for (unsigned i = 0, n = static_cast( + this_._internal_polygonparts_size()); + i < n; i++) { + const auto& repfield = this_._internal_polygonparts().Get(i); + target = + ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( + 4, repfield, repfield.GetCachedSize(), + target, stream); + } + + if (PROTOBUF_PREDICT_FALSE(this_._internal_metadata_.have_unknown_fields())) { + target = + ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( + this_._internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); + } + // @@protoc_insertion_point(serialize_to_array_end:Odb.Lib.Protobuf.ContourPolygon) + return target; + } + +#if defined(PROTOBUF_CUSTOM_VTABLE) + ::size_t ContourPolygon::ByteSizeLong(const MessageLite& base) { + const ContourPolygon& this_ = static_cast(base); +#else // PROTOBUF_CUSTOM_VTABLE + ::size_t ContourPolygon::ByteSizeLong() const { + const ContourPolygon& this_ = *this; +#endif // PROTOBUF_CUSTOM_VTABLE + // @@protoc_insertion_point(message_byte_size_start:Odb.Lib.Protobuf.ContourPolygon) + ::size_t total_size = 0; + + ::uint32_t cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void)cached_has_bits; + + ::_pbi::Prefetch5LinesFrom7Lines(&this_); + { + // repeated .Odb.Lib.Protobuf.ContourPolygon.PolygonPart polygonParts = 4; + { + total_size += 1UL * this_._internal_polygonparts_size(); + for (const auto& msg : this_._internal_polygonparts()) { + total_size += ::google::protobuf::internal::WireFormatLite::MessageSize(msg); + } + } + } + cached_has_bits = this_._impl_._has_bits_[0]; + if (cached_has_bits & 0x00000007u) { + // optional .Odb.Lib.Protobuf.ContourPolygon.Type type = 1; + if (cached_has_bits & 0x00000001u) { + total_size += 1 + + ::_pbi::WireFormatLite::EnumSize(this_._internal_type()); + } + // optional float xStart = 2; + if (cached_has_bits & 0x00000002u) { + total_size += 5; + } + // optional float yStart = 3; + if (cached_has_bits & 0x00000004u) { + total_size += 5; + } + } + return this_.MaybeComputeUnknownFieldsSize(total_size, + &this_._impl_._cached_size_); + } + +void ContourPolygon::MergeImpl(::google::protobuf::MessageLite& to_msg, const ::google::protobuf::MessageLite& from_msg) { auto* const _this = static_cast(&to_msg); auto& from = static_cast(from_msg); // @@protoc_insertion_point(class_specific_merge_from_start:Odb.Lib.Protobuf.ContourPolygon) - GOOGLE_DCHECK_NE(&from, _this); - uint32_t cached_has_bits = 0; + ABSL_DCHECK_NE(&from, _this); + ::uint32_t cached_has_bits = 0; (void) cached_has_bits; - _this->_impl_.polygonparts_.MergeFrom(from._impl_.polygonparts_); + _this->_internal_mutable_polygonparts()->MergeFrom( + from._internal_polygonparts()); cached_has_bits = from._impl_._has_bits_[0]; if (cached_has_bits & 0x00000007u) { if (cached_has_bits & 0x00000001u) { @@ -1147,9 +1240,9 @@ void ContourPolygon::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const : if (cached_has_bits & 0x00000004u) { _this->_impl_.ystart_ = from._impl_.ystart_; } - _this->_impl_._has_bits_[0] |= cached_has_bits; } - _this->_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); + _this->_impl_._has_bits_[0] |= cached_has_bits; + _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); } void ContourPolygon::CopyFrom(const ContourPolygon& from) { @@ -1159,16 +1252,13 @@ void ContourPolygon::CopyFrom(const ContourPolygon& from) { MergeFrom(from); } -bool ContourPolygon::IsInitialized() const { - return true; -} -void ContourPolygon::InternalSwap(ContourPolygon* other) { +void ContourPolygon::InternalSwap(ContourPolygon* PROTOBUF_RESTRICT other) { using std::swap; _internal_metadata_.InternalSwap(&other->_internal_metadata_); swap(_impl_._has_bits_[0], other->_impl_._has_bits_[0]); _impl_.polygonparts_.InternalSwap(&other->_impl_.polygonparts_); - ::PROTOBUF_NAMESPACE_ID::internal::memswap< + ::google::protobuf::internal::memswap< PROTOBUF_FIELD_OFFSET(ContourPolygon, _impl_.ystart_) + sizeof(ContourPolygon::_impl_.ystart_) - PROTOBUF_FIELD_OFFSET(ContourPolygon, _impl_.type_)>( @@ -1176,30 +1266,20 @@ void ContourPolygon::InternalSwap(ContourPolygon* other) { reinterpret_cast(&other->_impl_.type_)); } -::PROTOBUF_NAMESPACE_ID::Metadata ContourPolygon::GetMetadata() const { - return ::_pbi::AssignDescriptors( - &descriptor_table_common_2eproto_getter, &descriptor_table_common_2eproto_once, - file_level_metadata_common_2eproto[2]); +::google::protobuf::Metadata ContourPolygon::GetMetadata() const { + return ::google::protobuf::Message::GetMetadataImpl(GetClassData()->full()); } - // @@protoc_insertion_point(namespace_scope) } // namespace Protobuf } // namespace Lib } // namespace Odb -PROTOBUF_NAMESPACE_OPEN -template<> PROTOBUF_NOINLINE ::Odb::Lib::Protobuf::PropertyRecord* -Arena::CreateMaybeMessage< ::Odb::Lib::Protobuf::PropertyRecord >(Arena* arena) { - return Arena::CreateMessageInternal< ::Odb::Lib::Protobuf::PropertyRecord >(arena); -} -template<> PROTOBUF_NOINLINE ::Odb::Lib::Protobuf::ContourPolygon_PolygonPart* -Arena::CreateMaybeMessage< ::Odb::Lib::Protobuf::ContourPolygon_PolygonPart >(Arena* arena) { - return Arena::CreateMessageInternal< ::Odb::Lib::Protobuf::ContourPolygon_PolygonPart >(arena); -} -template<> PROTOBUF_NOINLINE ::Odb::Lib::Protobuf::ContourPolygon* -Arena::CreateMaybeMessage< ::Odb::Lib::Protobuf::ContourPolygon >(Arena* arena) { - return Arena::CreateMessageInternal< ::Odb::Lib::Protobuf::ContourPolygon >(arena); -} -PROTOBUF_NAMESPACE_CLOSE - +namespace google { +namespace protobuf { +} // namespace protobuf +} // namespace google // @@protoc_insertion_point(global_scope) -#include +PROTOBUF_ATTRIBUTE_INIT_PRIORITY2 static ::std::false_type + _static_init2_ PROTOBUF_UNUSED = + (::_pbi::AddDescriptors(&descriptor_table_common_2eproto), + ::std::false_type{}); +#include "google/protobuf/port_undef.inc" diff --git a/OdbDesignLib/ProtoBuf/common.pb.h b/OdbDesignLib/ProtoBuf/common.pb.h index 3c21bac3..db52865a 100644 --- a/OdbDesignLib/ProtoBuf/common.pb.h +++ b/OdbDesignLib/ProtoBuf/common.pb.h @@ -1,50 +1,57 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE // source: common.proto +// Protobuf C++ Version: 5.29.2 -#ifndef GOOGLE_PROTOBUF_INCLUDED_common_2eproto -#define GOOGLE_PROTOBUF_INCLUDED_common_2eproto +#ifndef common_2eproto_2epb_2eh +#define common_2eproto_2epb_2eh #include #include - -#include -#if PROTOBUF_VERSION < 3021000 -#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 3021012 < 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. +#include +#include + +#include "google/protobuf/runtime_version.h" +#if PROTOBUF_VERSION != 5029002 +#error "Protobuf C++ gencode is built with an incompatible version of" +#error "Protobuf C++ headers/runtime. See" +#error "https://protobuf.dev/support/cross-version-runtime-guarantee/#cpp" #endif - -#include -#include -#include -#include -#include -#include -#include -#include -#include // IWYU pragma: export -#include // IWYU pragma: export -#include -#include +#include "google/protobuf/io/coded_stream.h" +#include "google/protobuf/arena.h" +#include "google/protobuf/arenastring.h" +#include "google/protobuf/generated_message_tctable_decl.h" +#include "google/protobuf/generated_message_util.h" +#include "google/protobuf/metadata_lite.h" +#include "google/protobuf/generated_message_reflection.h" +#include "google/protobuf/message.h" +#include "google/protobuf/message_lite.h" +#include "google/protobuf/repeated_field.h" // IWYU pragma: export +#include "google/protobuf/extension_set.h" // IWYU pragma: export +#include "google/protobuf/generated_enum_reflection.h" +#include "google/protobuf/unknown_field_set.h" // @@protoc_insertion_point(includes) -#include + +// Must be included last. +#include "google/protobuf/port_def.inc" + #define PROTOBUF_INTERNAL_EXPORT_common_2eproto ODBDESIGN_EXPORT -PROTOBUF_NAMESPACE_OPEN + +namespace google { +namespace protobuf { namespace internal { -class AnyMetadata; +template +::absl::string_view GetAnyMessageName(); } // namespace internal -PROTOBUF_NAMESPACE_CLOSE +} // namespace protobuf +} // namespace google // Internal implementation detail -- do not use these members. struct ODBDESIGN_EXPORT TableStruct_common_2eproto { - static const uint32_t offsets[]; + static const ::uint32_t offsets[]; }; -ODBDESIGN_EXPORT extern const ::PROTOBUF_NAMESPACE_ID::internal::DescriptorTable descriptor_table_common_2eproto; +ODBDESIGN_EXPORT extern const ::google::protobuf::internal::DescriptorTable + descriptor_table_common_2eproto; namespace Odb { namespace Lib { namespace Protobuf { @@ -60,91 +67,113 @@ ODBDESIGN_EXPORT extern PropertyRecordDefaultTypeInternal _PropertyRecord_defaul } // namespace Protobuf } // namespace Lib } // namespace Odb -PROTOBUF_NAMESPACE_OPEN -template<> ODBDESIGN_EXPORT ::Odb::Lib::Protobuf::ContourPolygon* Arena::CreateMaybeMessage<::Odb::Lib::Protobuf::ContourPolygon>(Arena*); -template<> ODBDESIGN_EXPORT ::Odb::Lib::Protobuf::ContourPolygon_PolygonPart* Arena::CreateMaybeMessage<::Odb::Lib::Protobuf::ContourPolygon_PolygonPart>(Arena*); -template<> ODBDESIGN_EXPORT ::Odb::Lib::Protobuf::PropertyRecord* Arena::CreateMaybeMessage<::Odb::Lib::Protobuf::PropertyRecord>(Arena*); -PROTOBUF_NAMESPACE_CLOSE +namespace google { +namespace protobuf { +} // namespace protobuf +} // namespace google + namespace Odb { namespace Lib { namespace Protobuf { - enum ContourPolygon_PolygonPart_Type : int { ContourPolygon_PolygonPart_Type_Segment = 0, ContourPolygon_PolygonPart_Type_Arc = 1, - ContourPolygon_PolygonPart_Type_ContourPolygon_PolygonPart_Type_INT_MIN_SENTINEL_DO_NOT_USE_ = std::numeric_limits::min(), - ContourPolygon_PolygonPart_Type_ContourPolygon_PolygonPart_Type_INT_MAX_SENTINEL_DO_NOT_USE_ = std::numeric_limits::max() + ContourPolygon_PolygonPart_Type_ContourPolygon_PolygonPart_Type_INT_MIN_SENTINEL_DO_NOT_USE_ = + std::numeric_limits<::int32_t>::min(), + ContourPolygon_PolygonPart_Type_ContourPolygon_PolygonPart_Type_INT_MAX_SENTINEL_DO_NOT_USE_ = + std::numeric_limits<::int32_t>::max(), }; + ODBDESIGN_EXPORT bool ContourPolygon_PolygonPart_Type_IsValid(int value); -constexpr ContourPolygon_PolygonPart_Type ContourPolygon_PolygonPart_Type_Type_MIN = ContourPolygon_PolygonPart_Type_Segment; -constexpr ContourPolygon_PolygonPart_Type ContourPolygon_PolygonPart_Type_Type_MAX = ContourPolygon_PolygonPart_Type_Arc; -constexpr int ContourPolygon_PolygonPart_Type_Type_ARRAYSIZE = ContourPolygon_PolygonPart_Type_Type_MAX + 1; - -ODBDESIGN_EXPORT const ::PROTOBUF_NAMESPACE_ID::EnumDescriptor* ContourPolygon_PolygonPart_Type_descriptor(); -template -inline const std::string& ContourPolygon_PolygonPart_Type_Name(T enum_t_value) { - static_assert(::std::is_same::value || - ::std::is_integral::value, - "Incorrect type passed to function ContourPolygon_PolygonPart_Type_Name."); - return ::PROTOBUF_NAMESPACE_ID::internal::NameOfEnum( - ContourPolygon_PolygonPart_Type_descriptor(), enum_t_value); -} -inline bool ContourPolygon_PolygonPart_Type_Parse( - ::PROTOBUF_NAMESPACE_ID::ConstStringParam name, ContourPolygon_PolygonPart_Type* value) { - return ::PROTOBUF_NAMESPACE_ID::internal::ParseNamedEnum( - ContourPolygon_PolygonPart_Type_descriptor(), name, value); +ODBDESIGN_EXPORT extern const uint32_t ContourPolygon_PolygonPart_Type_internal_data_[]; +constexpr ContourPolygon_PolygonPart_Type ContourPolygon_PolygonPart_Type_Type_MIN = static_cast(0); +constexpr ContourPolygon_PolygonPart_Type ContourPolygon_PolygonPart_Type_Type_MAX = static_cast(1); +constexpr int ContourPolygon_PolygonPart_Type_Type_ARRAYSIZE = 1 + 1; +ODBDESIGN_EXPORT const ::google::protobuf::EnumDescriptor* +ContourPolygon_PolygonPart_Type_descriptor(); +template +const std::string& ContourPolygon_PolygonPart_Type_Name(T value) { + static_assert(std::is_same::value || + std::is_integral::value, + "Incorrect type passed to Type_Name()."); + return ContourPolygon_PolygonPart_Type_Name(static_cast(value)); +} +template <> +inline const std::string& ContourPolygon_PolygonPart_Type_Name(ContourPolygon_PolygonPart_Type value) { + return ::google::protobuf::internal::NameOfDenseEnum( + static_cast(value)); +} +inline bool ContourPolygon_PolygonPart_Type_Parse(absl::string_view name, ContourPolygon_PolygonPart_Type* value) { + return ::google::protobuf::internal::ParseNamedEnum( + ContourPolygon_PolygonPart_Type_descriptor(), name, value); } enum ContourPolygon_Type : int { ContourPolygon_Type_Island = 0, ContourPolygon_Type_Hole = 1, - ContourPolygon_Type_ContourPolygon_Type_INT_MIN_SENTINEL_DO_NOT_USE_ = std::numeric_limits::min(), - ContourPolygon_Type_ContourPolygon_Type_INT_MAX_SENTINEL_DO_NOT_USE_ = std::numeric_limits::max() + ContourPolygon_Type_ContourPolygon_Type_INT_MIN_SENTINEL_DO_NOT_USE_ = + std::numeric_limits<::int32_t>::min(), + ContourPolygon_Type_ContourPolygon_Type_INT_MAX_SENTINEL_DO_NOT_USE_ = + std::numeric_limits<::int32_t>::max(), }; + ODBDESIGN_EXPORT bool ContourPolygon_Type_IsValid(int value); -constexpr ContourPolygon_Type ContourPolygon_Type_Type_MIN = ContourPolygon_Type_Island; -constexpr ContourPolygon_Type ContourPolygon_Type_Type_MAX = ContourPolygon_Type_Hole; -constexpr int ContourPolygon_Type_Type_ARRAYSIZE = ContourPolygon_Type_Type_MAX + 1; - -ODBDESIGN_EXPORT const ::PROTOBUF_NAMESPACE_ID::EnumDescriptor* ContourPolygon_Type_descriptor(); -template -inline const std::string& ContourPolygon_Type_Name(T enum_t_value) { - static_assert(::std::is_same::value || - ::std::is_integral::value, - "Incorrect type passed to function ContourPolygon_Type_Name."); - return ::PROTOBUF_NAMESPACE_ID::internal::NameOfEnum( - ContourPolygon_Type_descriptor(), enum_t_value); -} -inline bool ContourPolygon_Type_Parse( - ::PROTOBUF_NAMESPACE_ID::ConstStringParam name, ContourPolygon_Type* value) { - return ::PROTOBUF_NAMESPACE_ID::internal::ParseNamedEnum( - ContourPolygon_Type_descriptor(), name, value); +ODBDESIGN_EXPORT extern const uint32_t ContourPolygon_Type_internal_data_[]; +constexpr ContourPolygon_Type ContourPolygon_Type_Type_MIN = static_cast(0); +constexpr ContourPolygon_Type ContourPolygon_Type_Type_MAX = static_cast(1); +constexpr int ContourPolygon_Type_Type_ARRAYSIZE = 1 + 1; +ODBDESIGN_EXPORT const ::google::protobuf::EnumDescriptor* +ContourPolygon_Type_descriptor(); +template +const std::string& ContourPolygon_Type_Name(T value) { + static_assert(std::is_same::value || + std::is_integral::value, + "Incorrect type passed to Type_Name()."); + return ContourPolygon_Type_Name(static_cast(value)); +} +template <> +inline const std::string& ContourPolygon_Type_Name(ContourPolygon_Type value) { + return ::google::protobuf::internal::NameOfDenseEnum( + static_cast(value)); } +inline bool ContourPolygon_Type_Parse(absl::string_view name, ContourPolygon_Type* value) { + return ::google::protobuf::internal::ParseNamedEnum( + ContourPolygon_Type_descriptor(), name, value); +} + // =================================================================== -class ODBDESIGN_EXPORT PropertyRecord final : - public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:Odb.Lib.Protobuf.PropertyRecord) */ { + +// ------------------------------------------------------------------- + +class ODBDESIGN_EXPORT PropertyRecord final : public ::google::protobuf::Message +/* @@protoc_insertion_point(class_definition:Odb.Lib.Protobuf.PropertyRecord) */ { public: inline PropertyRecord() : PropertyRecord(nullptr) {} - ~PropertyRecord() override; - explicit PROTOBUF_CONSTEXPR PropertyRecord(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); + ~PropertyRecord() PROTOBUF_FINAL; - PropertyRecord(const PropertyRecord& from); - PropertyRecord(PropertyRecord&& from) noexcept - : PropertyRecord() { - *this = ::std::move(from); +#if defined(PROTOBUF_CUSTOM_VTABLE) + void operator delete(PropertyRecord* msg, std::destroying_delete_t) { + SharedDtor(*msg); + ::google::protobuf::internal::SizedDelete(msg, sizeof(PropertyRecord)); } +#endif + + template + explicit PROTOBUF_CONSTEXPR PropertyRecord( + ::google::protobuf::internal::ConstantInitialized); + inline PropertyRecord(const PropertyRecord& from) : PropertyRecord(nullptr, from) {} + inline PropertyRecord(PropertyRecord&& from) noexcept + : PropertyRecord(nullptr, std::move(from)) {} inline PropertyRecord& operator=(const PropertyRecord& from) { CopyFrom(from); return *this; } inline PropertyRecord& operator=(PropertyRecord&& from) noexcept { if (this == &from) return *this; - if (GetOwningArena() == from.GetOwningArena() - #ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetOwningArena() != nullptr - #endif // !PROTOBUF_FORCE_COPY_IN_MOVE - ) { + if (::google::protobuf::internal::CanMoveWithInternalSwap(GetArena(), from.GetArena())) { InternalSwap(&from); } else { CopyFrom(from); @@ -152,13 +181,22 @@ class ODBDESIGN_EXPORT PropertyRecord final : return *this; } - static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { + inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const + ABSL_ATTRIBUTE_LIFETIME_BOUND { + return _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance); + } + inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() + ABSL_ATTRIBUTE_LIFETIME_BOUND { + return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); + } + + static const ::google::protobuf::Descriptor* descriptor() { return GetDescriptor(); } - static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { + static const ::google::protobuf::Descriptor* GetDescriptor() { return default_instance().GetMetadata().descriptor; } - static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { + static const ::google::protobuf::Reflection* GetReflection() { return default_instance().GetMetadata().reflection; } static const PropertyRecord& default_instance() { @@ -166,81 +204,94 @@ class ODBDESIGN_EXPORT PropertyRecord final : } static inline const PropertyRecord* internal_default_instance() { return reinterpret_cast( - &_PropertyRecord_default_instance_); - } - static constexpr int kIndexInFileMessages = - 0; - - friend void swap(PropertyRecord& a, PropertyRecord& b) { - a.Swap(&b); + &_PropertyRecord_default_instance_); } + static constexpr int kIndexInFileMessages = 0; + friend void swap(PropertyRecord& a, PropertyRecord& b) { a.Swap(&b); } inline void Swap(PropertyRecord* other) { if (other == this) return; - #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetOwningArena() != nullptr && - GetOwningArena() == other->GetOwningArena()) { - #else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetOwningArena() == other->GetOwningArena()) { - #endif // !PROTOBUF_FORCE_COPY_IN_SWAP + if (::google::protobuf::internal::CanUseInternalSwap(GetArena(), other->GetArena())) { InternalSwap(other); } else { - ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); + ::google::protobuf::internal::GenericSwap(this, other); } } void UnsafeArenaSwap(PropertyRecord* other) { if (other == this) return; - GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); + ABSL_DCHECK(GetArena() == other->GetArena()); InternalSwap(other); } // implements Message ---------------------------------------------- - PropertyRecord* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); + PropertyRecord* New(::google::protobuf::Arena* arena = nullptr) const { + return ::google::protobuf::Message::DefaultConstruct(arena); } - using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; + using ::google::protobuf::Message::CopyFrom; void CopyFrom(const PropertyRecord& from); - using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; - void MergeFrom( const PropertyRecord& from) { - PropertyRecord::MergeImpl(*this, from); - } + using ::google::protobuf::Message::MergeFrom; + void MergeFrom(const PropertyRecord& from) { PropertyRecord::MergeImpl(*this, from); } + private: - static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg); + static void MergeImpl( + ::google::protobuf::MessageLite& to_msg, + const ::google::protobuf::MessageLite& from_msg); + public: - PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; - bool IsInitialized() const final; + bool IsInitialized() const { + return true; + } + ABSL_ATTRIBUTE_REINITIALIZES void Clear() PROTOBUF_FINAL; + #if defined(PROTOBUF_CUSTOM_VTABLE) + private: + static ::size_t ByteSizeLong(const ::google::protobuf::MessageLite& msg); + static ::uint8_t* _InternalSerialize( + const MessageLite& msg, ::uint8_t* target, + ::google::protobuf::io::EpsCopyOutputStream* stream); - size_t ByteSizeLong() const final; - const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final; - uint8_t* _InternalSerialize( - uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const final { return _impl_._cached_size_.Get(); } + public: + ::size_t ByteSizeLong() const { return ByteSizeLong(*this); } + ::uint8_t* _InternalSerialize( + ::uint8_t* target, + ::google::protobuf::io::EpsCopyOutputStream* stream) const { + return _InternalSerialize(*this, target, stream); + } + #else // PROTOBUF_CUSTOM_VTABLE + ::size_t ByteSizeLong() const final; + ::uint8_t* _InternalSerialize( + ::uint8_t* target, + ::google::protobuf::io::EpsCopyOutputStream* stream) const final; + #endif // PROTOBUF_CUSTOM_VTABLE + int GetCachedSize() const { return _impl_._cached_size_.Get(); } private: - void SharedCtor(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned); - void SharedDtor(); - void SetCachedSize(int size) const final; + void SharedCtor(::google::protobuf::Arena* arena); + static void SharedDtor(MessageLite& self); void InternalSwap(PropertyRecord* other); - - private: - friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; - static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { - return "Odb.Lib.Protobuf.PropertyRecord"; + private: + template + friend ::absl::string_view( + ::google::protobuf::internal::GetAnyMessageName)(); + static ::absl::string_view FullMessageName() { return "Odb.Lib.Protobuf.PropertyRecord"; } + + protected: + explicit PropertyRecord(::google::protobuf::Arena* arena); + PropertyRecord(::google::protobuf::Arena* arena, const PropertyRecord& from); + PropertyRecord(::google::protobuf::Arena* arena, PropertyRecord&& from) noexcept + : PropertyRecord(arena) { + *this = ::std::move(from); } - protected: - explicit PropertyRecord(::PROTOBUF_NAMESPACE_ID::Arena* arena, - bool is_message_owned = false); - public: - - static const ClassData _class_data_; - const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final; - - ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; + const ::google::protobuf::internal::ClassData* GetClassData() const PROTOBUF_FINAL; + static void* PlacementNew_(const void*, void* mem, + ::google::protobuf::Arena* arena); + static constexpr auto InternalNewImpl_(); + static const ::google::protobuf::internal::ClassDataFull _class_data_; + public: + ::google::protobuf::Metadata GetMetadata() const; // nested types ---------------------------------------------------- // accessors ------------------------------------------------------- - enum : int { kFloatValuesFieldNumber = 3, kNameFieldNumber = 1, @@ -250,103 +301,116 @@ class ODBDESIGN_EXPORT PropertyRecord final : int floatvalues_size() const; private: int _internal_floatvalues_size() const; + public: - void clear_floatvalues(); - private: - float _internal_floatvalues(int index) const; - const ::PROTOBUF_NAMESPACE_ID::RepeatedField< float >& - _internal_floatvalues() const; - void _internal_add_floatvalues(float value); - ::PROTOBUF_NAMESPACE_ID::RepeatedField< float >* - _internal_mutable_floatvalues(); - public: + void clear_floatvalues() ; float floatvalues(int index) const; void set_floatvalues(int index, float value); void add_floatvalues(float value); - const ::PROTOBUF_NAMESPACE_ID::RepeatedField< float >& - floatvalues() const; - ::PROTOBUF_NAMESPACE_ID::RepeatedField< float >* - mutable_floatvalues(); + const ::google::protobuf::RepeatedField& floatvalues() const; + ::google::protobuf::RepeatedField* mutable_floatvalues(); - // optional string name = 1; - bool has_name() const; private: - bool _internal_has_name() const; + const ::google::protobuf::RepeatedField& _internal_floatvalues() const; + ::google::protobuf::RepeatedField* _internal_mutable_floatvalues(); + public: - void clear_name(); + // optional string name = 1; + bool has_name() const; + void clear_name() ; const std::string& name() const; - template - void set_name(ArgT0&& arg0, ArgT... args); + template + void set_name(Arg_&& arg, Args_... args); std::string* mutable_name(); PROTOBUF_NODISCARD std::string* release_name(); - void set_allocated_name(std::string* name); + void set_allocated_name(std::string* value); + private: const std::string& _internal_name() const; - inline PROTOBUF_ALWAYS_INLINE void _internal_set_name(const std::string& value); + inline PROTOBUF_ALWAYS_INLINE void _internal_set_name( + const std::string& value); std::string* _internal_mutable_name(); - public: + public: // optional string value = 2; bool has_value() const; - private: - bool _internal_has_value() const; - public: - void clear_value(); + void clear_value() ; const std::string& value() const; - template - void set_value(ArgT0&& arg0, ArgT... args); + template + void set_value(Arg_&& arg, Args_... args); std::string* mutable_value(); PROTOBUF_NODISCARD std::string* release_value(); void set_allocated_value(std::string* value); + private: const std::string& _internal_value() const; - inline PROTOBUF_ALWAYS_INLINE void _internal_set_value(const std::string& value); + inline PROTOBUF_ALWAYS_INLINE void _internal_set_value( + const std::string& value); std::string* _internal_mutable_value(); - public: + public: // @@protoc_insertion_point(class_scope:Odb.Lib.Protobuf.PropertyRecord) private: class _Internal; - - template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; - typedef void InternalArenaConstructable_; - typedef void DestructorSkippable_; + friend class ::google::protobuf::internal::TcParser; + static const ::google::protobuf::internal::TcParseTable< + 2, 3, 0, + 49, 2> + _table_; + + friend class ::google::protobuf::MessageLite; + friend class ::google::protobuf::Arena; + template + friend class ::google::protobuf::Arena::InternalHelper; + using InternalArenaConstructable_ = void; + using DestructorSkippable_ = void; struct Impl_ { - ::PROTOBUF_NAMESPACE_ID::internal::HasBits<1> _has_bits_; - mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; - ::PROTOBUF_NAMESPACE_ID::RepeatedField< float > floatvalues_; - ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr name_; - ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr value_; + inline explicit constexpr Impl_( + ::google::protobuf::internal::ConstantInitialized) noexcept; + inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* arena); + inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* arena, const Impl_& from, + const PropertyRecord& from_msg); + ::google::protobuf::internal::HasBits<1> _has_bits_; + ::google::protobuf::internal::CachedSize _cached_size_; + ::google::protobuf::RepeatedField floatvalues_; + ::google::protobuf::internal::ArenaStringPtr name_; + ::google::protobuf::internal::ArenaStringPtr value_; + PROTOBUF_TSAN_DECLARE_MEMBER }; union { Impl_ _impl_; }; friend struct ::TableStruct_common_2eproto; }; // ------------------------------------------------------------------- -class ODBDESIGN_EXPORT ContourPolygon_PolygonPart final : - public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:Odb.Lib.Protobuf.ContourPolygon.PolygonPart) */ { +class ODBDESIGN_EXPORT ContourPolygon_PolygonPart final : public ::google::protobuf::Message +/* @@protoc_insertion_point(class_definition:Odb.Lib.Protobuf.ContourPolygon.PolygonPart) */ { public: inline ContourPolygon_PolygonPart() : ContourPolygon_PolygonPart(nullptr) {} - ~ContourPolygon_PolygonPart() override; - explicit PROTOBUF_CONSTEXPR ContourPolygon_PolygonPart(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); + ~ContourPolygon_PolygonPart() PROTOBUF_FINAL; - ContourPolygon_PolygonPart(const ContourPolygon_PolygonPart& from); - ContourPolygon_PolygonPart(ContourPolygon_PolygonPart&& from) noexcept - : ContourPolygon_PolygonPart() { - *this = ::std::move(from); +#if defined(PROTOBUF_CUSTOM_VTABLE) + void operator delete(ContourPolygon_PolygonPart* msg, std::destroying_delete_t) { + SharedDtor(*msg); + ::google::protobuf::internal::SizedDelete(msg, sizeof(ContourPolygon_PolygonPart)); } +#endif + + template + explicit PROTOBUF_CONSTEXPR ContourPolygon_PolygonPart( + ::google::protobuf::internal::ConstantInitialized); + inline ContourPolygon_PolygonPart(const ContourPolygon_PolygonPart& from) : ContourPolygon_PolygonPart(nullptr, from) {} + inline ContourPolygon_PolygonPart(ContourPolygon_PolygonPart&& from) noexcept + : ContourPolygon_PolygonPart(nullptr, std::move(from)) {} inline ContourPolygon_PolygonPart& operator=(const ContourPolygon_PolygonPart& from) { CopyFrom(from); return *this; } inline ContourPolygon_PolygonPart& operator=(ContourPolygon_PolygonPart&& from) noexcept { if (this == &from) return *this; - if (GetOwningArena() == from.GetOwningArena() - #ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetOwningArena() != nullptr - #endif // !PROTOBUF_FORCE_COPY_IN_MOVE - ) { + if (::google::protobuf::internal::CanMoveWithInternalSwap(GetArena(), from.GetArena())) { InternalSwap(&from); } else { CopyFrom(from); @@ -354,13 +418,22 @@ class ODBDESIGN_EXPORT ContourPolygon_PolygonPart final : return *this; } - static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { + inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const + ABSL_ATTRIBUTE_LIFETIME_BOUND { + return _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance); + } + inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() + ABSL_ATTRIBUTE_LIFETIME_BOUND { + return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); + } + + static const ::google::protobuf::Descriptor* descriptor() { return GetDescriptor(); } - static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { + static const ::google::protobuf::Descriptor* GetDescriptor() { return default_instance().GetMetadata().descriptor; } - static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { + static const ::google::protobuf::Reflection* GetReflection() { return default_instance().GetMetadata().reflection; } static const ContourPolygon_PolygonPart& default_instance() { @@ -368,111 +441,113 @@ class ODBDESIGN_EXPORT ContourPolygon_PolygonPart final : } static inline const ContourPolygon_PolygonPart* internal_default_instance() { return reinterpret_cast( - &_ContourPolygon_PolygonPart_default_instance_); - } - static constexpr int kIndexInFileMessages = - 1; - - friend void swap(ContourPolygon_PolygonPart& a, ContourPolygon_PolygonPart& b) { - a.Swap(&b); + &_ContourPolygon_PolygonPart_default_instance_); } + static constexpr int kIndexInFileMessages = 1; + friend void swap(ContourPolygon_PolygonPart& a, ContourPolygon_PolygonPart& b) { a.Swap(&b); } inline void Swap(ContourPolygon_PolygonPart* other) { if (other == this) return; - #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetOwningArena() != nullptr && - GetOwningArena() == other->GetOwningArena()) { - #else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetOwningArena() == other->GetOwningArena()) { - #endif // !PROTOBUF_FORCE_COPY_IN_SWAP + if (::google::protobuf::internal::CanUseInternalSwap(GetArena(), other->GetArena())) { InternalSwap(other); } else { - ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); + ::google::protobuf::internal::GenericSwap(this, other); } } void UnsafeArenaSwap(ContourPolygon_PolygonPart* other) { if (other == this) return; - GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); + ABSL_DCHECK(GetArena() == other->GetArena()); InternalSwap(other); } // implements Message ---------------------------------------------- - ContourPolygon_PolygonPart* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); + ContourPolygon_PolygonPart* New(::google::protobuf::Arena* arena = nullptr) const { + return ::google::protobuf::Message::DefaultConstruct(arena); } - using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; + using ::google::protobuf::Message::CopyFrom; void CopyFrom(const ContourPolygon_PolygonPart& from); - using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; - void MergeFrom( const ContourPolygon_PolygonPart& from) { - ContourPolygon_PolygonPart::MergeImpl(*this, from); - } + using ::google::protobuf::Message::MergeFrom; + void MergeFrom(const ContourPolygon_PolygonPart& from) { ContourPolygon_PolygonPart::MergeImpl(*this, from); } + private: - static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg); + static void MergeImpl( + ::google::protobuf::MessageLite& to_msg, + const ::google::protobuf::MessageLite& from_msg); + public: - PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; - bool IsInitialized() const final; + bool IsInitialized() const { + return true; + } + ABSL_ATTRIBUTE_REINITIALIZES void Clear() PROTOBUF_FINAL; + #if defined(PROTOBUF_CUSTOM_VTABLE) + private: + static ::size_t ByteSizeLong(const ::google::protobuf::MessageLite& msg); + static ::uint8_t* _InternalSerialize( + const MessageLite& msg, ::uint8_t* target, + ::google::protobuf::io::EpsCopyOutputStream* stream); - size_t ByteSizeLong() const final; - const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final; - uint8_t* _InternalSerialize( - uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const final { return _impl_._cached_size_.Get(); } + public: + ::size_t ByteSizeLong() const { return ByteSizeLong(*this); } + ::uint8_t* _InternalSerialize( + ::uint8_t* target, + ::google::protobuf::io::EpsCopyOutputStream* stream) const { + return _InternalSerialize(*this, target, stream); + } + #else // PROTOBUF_CUSTOM_VTABLE + ::size_t ByteSizeLong() const final; + ::uint8_t* _InternalSerialize( + ::uint8_t* target, + ::google::protobuf::io::EpsCopyOutputStream* stream) const final; + #endif // PROTOBUF_CUSTOM_VTABLE + int GetCachedSize() const { return _impl_._cached_size_.Get(); } private: - void SharedCtor(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned); - void SharedDtor(); - void SetCachedSize(int size) const final; + void SharedCtor(::google::protobuf::Arena* arena); + static void SharedDtor(MessageLite& self); void InternalSwap(ContourPolygon_PolygonPart* other); - - private: - friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; - static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { - return "Odb.Lib.Protobuf.ContourPolygon.PolygonPart"; + private: + template + friend ::absl::string_view( + ::google::protobuf::internal::GetAnyMessageName)(); + static ::absl::string_view FullMessageName() { return "Odb.Lib.Protobuf.ContourPolygon.PolygonPart"; } + + protected: + explicit ContourPolygon_PolygonPart(::google::protobuf::Arena* arena); + ContourPolygon_PolygonPart(::google::protobuf::Arena* arena, const ContourPolygon_PolygonPart& from); + ContourPolygon_PolygonPart(::google::protobuf::Arena* arena, ContourPolygon_PolygonPart&& from) noexcept + : ContourPolygon_PolygonPart(arena) { + *this = ::std::move(from); } - protected: - explicit ContourPolygon_PolygonPart(::PROTOBUF_NAMESPACE_ID::Arena* arena, - bool is_message_owned = false); - public: - - static const ClassData _class_data_; - const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final; - - ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; + const ::google::protobuf::internal::ClassData* GetClassData() const PROTOBUF_FINAL; + static void* PlacementNew_(const void*, void* mem, + ::google::protobuf::Arena* arena); + static constexpr auto InternalNewImpl_(); + static const ::google::protobuf::internal::ClassDataFull _class_data_; + public: + ::google::protobuf::Metadata GetMetadata() const; // nested types ---------------------------------------------------- - - typedef ContourPolygon_PolygonPart_Type Type; - static constexpr Type Segment = - ContourPolygon_PolygonPart_Type_Segment; - static constexpr Type Arc = - ContourPolygon_PolygonPart_Type_Arc; + using Type = ContourPolygon_PolygonPart_Type; + static constexpr Type Segment = ContourPolygon_PolygonPart_Type_Segment; + static constexpr Type Arc = ContourPolygon_PolygonPart_Type_Arc; static inline bool Type_IsValid(int value) { return ContourPolygon_PolygonPart_Type_IsValid(value); } - static constexpr Type Type_MIN = - ContourPolygon_PolygonPart_Type_Type_MIN; - static constexpr Type Type_MAX = - ContourPolygon_PolygonPart_Type_Type_MAX; - static constexpr int Type_ARRAYSIZE = - ContourPolygon_PolygonPart_Type_Type_ARRAYSIZE; - static inline const ::PROTOBUF_NAMESPACE_ID::EnumDescriptor* - Type_descriptor() { + static constexpr Type Type_MIN = ContourPolygon_PolygonPart_Type_Type_MIN; + static constexpr Type Type_MAX = ContourPolygon_PolygonPart_Type_Type_MAX; + static constexpr int Type_ARRAYSIZE = ContourPolygon_PolygonPart_Type_Type_ARRAYSIZE; + static inline const ::google::protobuf::EnumDescriptor* Type_descriptor() { return ContourPolygon_PolygonPart_Type_descriptor(); } - template - static inline const std::string& Type_Name(T enum_t_value) { - static_assert(::std::is_same::value || - ::std::is_integral::value, - "Incorrect type passed to function Type_Name."); - return ContourPolygon_PolygonPart_Type_Name(enum_t_value); + template + static inline const std::string& Type_Name(T value) { + return ContourPolygon_PolygonPart_Type_Name(value); } - static inline bool Type_Parse(::PROTOBUF_NAMESPACE_ID::ConstStringParam name, - Type* value) { + static inline bool Type_Parse(absl::string_view name, Type* value) { return ContourPolygon_PolygonPart_Type_Parse(name, value); } // accessors ------------------------------------------------------- - enum : int { kTypeFieldNumber = 1, kEndXFieldNumber = 2, @@ -483,128 +558,135 @@ class ODBDESIGN_EXPORT ContourPolygon_PolygonPart final : }; // optional .Odb.Lib.Protobuf.ContourPolygon.PolygonPart.Type type = 1; bool has_type() const; - private: - bool _internal_has_type() const; - public: - void clear_type(); + void clear_type() ; ::Odb::Lib::Protobuf::ContourPolygon_PolygonPart_Type type() const; void set_type(::Odb::Lib::Protobuf::ContourPolygon_PolygonPart_Type value); + private: ::Odb::Lib::Protobuf::ContourPolygon_PolygonPart_Type _internal_type() const; void _internal_set_type(::Odb::Lib::Protobuf::ContourPolygon_PolygonPart_Type value); - public: + public: // optional float endX = 2; bool has_endx() const; - private: - bool _internal_has_endx() const; - public: - void clear_endx(); + void clear_endx() ; float endx() const; void set_endx(float value); + private: float _internal_endx() const; void _internal_set_endx(float value); - public: + public: // optional float endY = 3; bool has_endy() const; - private: - bool _internal_has_endy() const; - public: - void clear_endy(); + void clear_endy() ; float endy() const; void set_endy(float value); + private: float _internal_endy() const; void _internal_set_endy(float value); - public: + public: // optional float xCenter = 4; bool has_xcenter() const; - private: - bool _internal_has_xcenter() const; - public: - void clear_xcenter(); + void clear_xcenter() ; float xcenter() const; void set_xcenter(float value); + private: float _internal_xcenter() const; void _internal_set_xcenter(float value); - public: + public: // optional float yCenter = 5; bool has_ycenter() const; - private: - bool _internal_has_ycenter() const; - public: - void clear_ycenter(); + void clear_ycenter() ; float ycenter() const; void set_ycenter(float value); + private: float _internal_ycenter() const; void _internal_set_ycenter(float value); - public: + public: // optional bool isClockwise = 6; bool has_isclockwise() const; - private: - bool _internal_has_isclockwise() const; - public: - void clear_isclockwise(); + void clear_isclockwise() ; bool isclockwise() const; void set_isclockwise(bool value); + private: bool _internal_isclockwise() const; void _internal_set_isclockwise(bool value); - public: + public: // @@protoc_insertion_point(class_scope:Odb.Lib.Protobuf.ContourPolygon.PolygonPart) private: class _Internal; - - template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; - typedef void InternalArenaConstructable_; - typedef void DestructorSkippable_; + friend class ::google::protobuf::internal::TcParser; + static const ::google::protobuf::internal::TcParseTable< + 3, 6, 0, + 0, 2> + _table_; + + friend class ::google::protobuf::MessageLite; + friend class ::google::protobuf::Arena; + template + friend class ::google::protobuf::Arena::InternalHelper; + using InternalArenaConstructable_ = void; + using DestructorSkippable_ = void; struct Impl_ { - ::PROTOBUF_NAMESPACE_ID::internal::HasBits<1> _has_bits_; - mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; + inline explicit constexpr Impl_( + ::google::protobuf::internal::ConstantInitialized) noexcept; + inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* arena); + inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* arena, const Impl_& from, + const ContourPolygon_PolygonPart& from_msg); + ::google::protobuf::internal::HasBits<1> _has_bits_; + ::google::protobuf::internal::CachedSize _cached_size_; int type_; float endx_; float endy_; float xcenter_; float ycenter_; bool isclockwise_; + PROTOBUF_TSAN_DECLARE_MEMBER }; union { Impl_ _impl_; }; friend struct ::TableStruct_common_2eproto; }; // ------------------------------------------------------------------- -class ODBDESIGN_EXPORT ContourPolygon final : - public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:Odb.Lib.Protobuf.ContourPolygon) */ { +class ODBDESIGN_EXPORT ContourPolygon final : public ::google::protobuf::Message +/* @@protoc_insertion_point(class_definition:Odb.Lib.Protobuf.ContourPolygon) */ { public: inline ContourPolygon() : ContourPolygon(nullptr) {} - ~ContourPolygon() override; - explicit PROTOBUF_CONSTEXPR ContourPolygon(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); + ~ContourPolygon() PROTOBUF_FINAL; - ContourPolygon(const ContourPolygon& from); - ContourPolygon(ContourPolygon&& from) noexcept - : ContourPolygon() { - *this = ::std::move(from); +#if defined(PROTOBUF_CUSTOM_VTABLE) + void operator delete(ContourPolygon* msg, std::destroying_delete_t) { + SharedDtor(*msg); + ::google::protobuf::internal::SizedDelete(msg, sizeof(ContourPolygon)); } +#endif + + template + explicit PROTOBUF_CONSTEXPR ContourPolygon( + ::google::protobuf::internal::ConstantInitialized); + inline ContourPolygon(const ContourPolygon& from) : ContourPolygon(nullptr, from) {} + inline ContourPolygon(ContourPolygon&& from) noexcept + : ContourPolygon(nullptr, std::move(from)) {} inline ContourPolygon& operator=(const ContourPolygon& from) { CopyFrom(from); return *this; } inline ContourPolygon& operator=(ContourPolygon&& from) noexcept { if (this == &from) return *this; - if (GetOwningArena() == from.GetOwningArena() - #ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetOwningArena() != nullptr - #endif // !PROTOBUF_FORCE_COPY_IN_MOVE - ) { + if (::google::protobuf::internal::CanMoveWithInternalSwap(GetArena(), from.GetArena())) { InternalSwap(&from); } else { CopyFrom(from); @@ -612,13 +694,22 @@ class ODBDESIGN_EXPORT ContourPolygon final : return *this; } - static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { + inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const + ABSL_ATTRIBUTE_LIFETIME_BOUND { + return _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance); + } + inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() + ABSL_ATTRIBUTE_LIFETIME_BOUND { + return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); + } + + static const ::google::protobuf::Descriptor* descriptor() { return GetDescriptor(); } - static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { + static const ::google::protobuf::Descriptor* GetDescriptor() { return default_instance().GetMetadata().descriptor; } - static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { + static const ::google::protobuf::Reflection* GetReflection() { return default_instance().GetMetadata().reflection; } static const ContourPolygon& default_instance() { @@ -626,113 +717,114 @@ class ODBDESIGN_EXPORT ContourPolygon final : } static inline const ContourPolygon* internal_default_instance() { return reinterpret_cast( - &_ContourPolygon_default_instance_); - } - static constexpr int kIndexInFileMessages = - 2; - - friend void swap(ContourPolygon& a, ContourPolygon& b) { - a.Swap(&b); + &_ContourPolygon_default_instance_); } + static constexpr int kIndexInFileMessages = 2; + friend void swap(ContourPolygon& a, ContourPolygon& b) { a.Swap(&b); } inline void Swap(ContourPolygon* other) { if (other == this) return; - #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetOwningArena() != nullptr && - GetOwningArena() == other->GetOwningArena()) { - #else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetOwningArena() == other->GetOwningArena()) { - #endif // !PROTOBUF_FORCE_COPY_IN_SWAP + if (::google::protobuf::internal::CanUseInternalSwap(GetArena(), other->GetArena())) { InternalSwap(other); } else { - ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); + ::google::protobuf::internal::GenericSwap(this, other); } } void UnsafeArenaSwap(ContourPolygon* other) { if (other == this) return; - GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); + ABSL_DCHECK(GetArena() == other->GetArena()); InternalSwap(other); } // implements Message ---------------------------------------------- - ContourPolygon* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); + ContourPolygon* New(::google::protobuf::Arena* arena = nullptr) const { + return ::google::protobuf::Message::DefaultConstruct(arena); } - using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; + using ::google::protobuf::Message::CopyFrom; void CopyFrom(const ContourPolygon& from); - using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; - void MergeFrom( const ContourPolygon& from) { - ContourPolygon::MergeImpl(*this, from); - } + using ::google::protobuf::Message::MergeFrom; + void MergeFrom(const ContourPolygon& from) { ContourPolygon::MergeImpl(*this, from); } + private: - static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg); + static void MergeImpl( + ::google::protobuf::MessageLite& to_msg, + const ::google::protobuf::MessageLite& from_msg); + public: - PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; - bool IsInitialized() const final; + bool IsInitialized() const { + return true; + } + ABSL_ATTRIBUTE_REINITIALIZES void Clear() PROTOBUF_FINAL; + #if defined(PROTOBUF_CUSTOM_VTABLE) + private: + static ::size_t ByteSizeLong(const ::google::protobuf::MessageLite& msg); + static ::uint8_t* _InternalSerialize( + const MessageLite& msg, ::uint8_t* target, + ::google::protobuf::io::EpsCopyOutputStream* stream); - size_t ByteSizeLong() const final; - const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final; - uint8_t* _InternalSerialize( - uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const final { return _impl_._cached_size_.Get(); } + public: + ::size_t ByteSizeLong() const { return ByteSizeLong(*this); } + ::uint8_t* _InternalSerialize( + ::uint8_t* target, + ::google::protobuf::io::EpsCopyOutputStream* stream) const { + return _InternalSerialize(*this, target, stream); + } + #else // PROTOBUF_CUSTOM_VTABLE + ::size_t ByteSizeLong() const final; + ::uint8_t* _InternalSerialize( + ::uint8_t* target, + ::google::protobuf::io::EpsCopyOutputStream* stream) const final; + #endif // PROTOBUF_CUSTOM_VTABLE + int GetCachedSize() const { return _impl_._cached_size_.Get(); } private: - void SharedCtor(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned); - void SharedDtor(); - void SetCachedSize(int size) const final; + void SharedCtor(::google::protobuf::Arena* arena); + static void SharedDtor(MessageLite& self); void InternalSwap(ContourPolygon* other); - - private: - friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; - static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { - return "Odb.Lib.Protobuf.ContourPolygon"; + private: + template + friend ::absl::string_view( + ::google::protobuf::internal::GetAnyMessageName)(); + static ::absl::string_view FullMessageName() { return "Odb.Lib.Protobuf.ContourPolygon"; } + + protected: + explicit ContourPolygon(::google::protobuf::Arena* arena); + ContourPolygon(::google::protobuf::Arena* arena, const ContourPolygon& from); + ContourPolygon(::google::protobuf::Arena* arena, ContourPolygon&& from) noexcept + : ContourPolygon(arena) { + *this = ::std::move(from); } - protected: - explicit ContourPolygon(::PROTOBUF_NAMESPACE_ID::Arena* arena, - bool is_message_owned = false); - public: - - static const ClassData _class_data_; - const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final; - - ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; + const ::google::protobuf::internal::ClassData* GetClassData() const PROTOBUF_FINAL; + static void* PlacementNew_(const void*, void* mem, + ::google::protobuf::Arena* arena); + static constexpr auto InternalNewImpl_(); + static const ::google::protobuf::internal::ClassDataFull _class_data_; + public: + ::google::protobuf::Metadata GetMetadata() const; // nested types ---------------------------------------------------- - - typedef ContourPolygon_PolygonPart PolygonPart; - - typedef ContourPolygon_Type Type; - static constexpr Type Island = - ContourPolygon_Type_Island; - static constexpr Type Hole = - ContourPolygon_Type_Hole; + using PolygonPart = ContourPolygon_PolygonPart; + using Type = ContourPolygon_Type; + static constexpr Type Island = ContourPolygon_Type_Island; + static constexpr Type Hole = ContourPolygon_Type_Hole; static inline bool Type_IsValid(int value) { return ContourPolygon_Type_IsValid(value); } - static constexpr Type Type_MIN = - ContourPolygon_Type_Type_MIN; - static constexpr Type Type_MAX = - ContourPolygon_Type_Type_MAX; - static constexpr int Type_ARRAYSIZE = - ContourPolygon_Type_Type_ARRAYSIZE; - static inline const ::PROTOBUF_NAMESPACE_ID::EnumDescriptor* - Type_descriptor() { + static constexpr Type Type_MIN = ContourPolygon_Type_Type_MIN; + static constexpr Type Type_MAX = ContourPolygon_Type_Type_MAX; + static constexpr int Type_ARRAYSIZE = ContourPolygon_Type_Type_ARRAYSIZE; + static inline const ::google::protobuf::EnumDescriptor* Type_descriptor() { return ContourPolygon_Type_descriptor(); } - template - static inline const std::string& Type_Name(T enum_t_value) { - static_assert(::std::is_same::value || - ::std::is_integral::value, - "Incorrect type passed to function Type_Name."); - return ContourPolygon_Type_Name(enum_t_value); + template + static inline const std::string& Type_Name(T value) { + return ContourPolygon_Type_Name(value); } - static inline bool Type_Parse(::PROTOBUF_NAMESPACE_ID::ConstStringParam name, - Type* value) { + static inline bool Type_Parse(absl::string_view name, Type* value) { return ContourPolygon_Type_Parse(name, value); } // accessors ------------------------------------------------------- - enum : int { kPolygonPartsFieldNumber = 4, kTypeFieldNumber = 1, @@ -743,601 +835,626 @@ class ODBDESIGN_EXPORT ContourPolygon final : int polygonparts_size() const; private: int _internal_polygonparts_size() const; + public: - void clear_polygonparts(); + void clear_polygonparts() ; ::Odb::Lib::Protobuf::ContourPolygon_PolygonPart* mutable_polygonparts(int index); - ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::Odb::Lib::Protobuf::ContourPolygon_PolygonPart >* - mutable_polygonparts(); + ::google::protobuf::RepeatedPtrField<::Odb::Lib::Protobuf::ContourPolygon_PolygonPart>* mutable_polygonparts(); + private: - const ::Odb::Lib::Protobuf::ContourPolygon_PolygonPart& _internal_polygonparts(int index) const; - ::Odb::Lib::Protobuf::ContourPolygon_PolygonPart* _internal_add_polygonparts(); + const ::google::protobuf::RepeatedPtrField<::Odb::Lib::Protobuf::ContourPolygon_PolygonPart>& _internal_polygonparts() const; + ::google::protobuf::RepeatedPtrField<::Odb::Lib::Protobuf::ContourPolygon_PolygonPart>* _internal_mutable_polygonparts(); public: const ::Odb::Lib::Protobuf::ContourPolygon_PolygonPart& polygonparts(int index) const; ::Odb::Lib::Protobuf::ContourPolygon_PolygonPart* add_polygonparts(); - const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::Odb::Lib::Protobuf::ContourPolygon_PolygonPart >& - polygonparts() const; - + const ::google::protobuf::RepeatedPtrField<::Odb::Lib::Protobuf::ContourPolygon_PolygonPart>& polygonparts() const; // optional .Odb.Lib.Protobuf.ContourPolygon.Type type = 1; bool has_type() const; - private: - bool _internal_has_type() const; - public: - void clear_type(); + void clear_type() ; ::Odb::Lib::Protobuf::ContourPolygon_Type type() const; void set_type(::Odb::Lib::Protobuf::ContourPolygon_Type value); + private: ::Odb::Lib::Protobuf::ContourPolygon_Type _internal_type() const; void _internal_set_type(::Odb::Lib::Protobuf::ContourPolygon_Type value); - public: + public: // optional float xStart = 2; bool has_xstart() const; - private: - bool _internal_has_xstart() const; - public: - void clear_xstart(); + void clear_xstart() ; float xstart() const; void set_xstart(float value); + private: float _internal_xstart() const; void _internal_set_xstart(float value); - public: + public: // optional float yStart = 3; bool has_ystart() const; - private: - bool _internal_has_ystart() const; - public: - void clear_ystart(); + void clear_ystart() ; float ystart() const; void set_ystart(float value); + private: float _internal_ystart() const; void _internal_set_ystart(float value); - public: + public: // @@protoc_insertion_point(class_scope:Odb.Lib.Protobuf.ContourPolygon) private: class _Internal; - - template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; - typedef void InternalArenaConstructable_; - typedef void DestructorSkippable_; + friend class ::google::protobuf::internal::TcParser; + static const ::google::protobuf::internal::TcParseTable< + 2, 4, 1, + 0, 2> + _table_; + + friend class ::google::protobuf::MessageLite; + friend class ::google::protobuf::Arena; + template + friend class ::google::protobuf::Arena::InternalHelper; + using InternalArenaConstructable_ = void; + using DestructorSkippable_ = void; struct Impl_ { - ::PROTOBUF_NAMESPACE_ID::internal::HasBits<1> _has_bits_; - mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; - ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::Odb::Lib::Protobuf::ContourPolygon_PolygonPart > polygonparts_; + inline explicit constexpr Impl_( + ::google::protobuf::internal::ConstantInitialized) noexcept; + inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* arena); + inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* arena, const Impl_& from, + const ContourPolygon& from_msg); + ::google::protobuf::internal::HasBits<1> _has_bits_; + ::google::protobuf::internal::CachedSize _cached_size_; + ::google::protobuf::RepeatedPtrField< ::Odb::Lib::Protobuf::ContourPolygon_PolygonPart > polygonparts_; int type_; float xstart_; float ystart_; + PROTOBUF_TSAN_DECLARE_MEMBER }; union { Impl_ _impl_; }; friend struct ::TableStruct_common_2eproto; }; + // =================================================================== + + // =================================================================== + #ifdef __GNUC__ - #pragma GCC diagnostic push - #pragma GCC diagnostic ignored "-Wstrict-aliasing" +#pragma GCC diagnostic push +#pragma GCC diagnostic ignored "-Wstrict-aliasing" #endif // __GNUC__ +// ------------------------------------------------------------------- + // PropertyRecord // optional string name = 1; -inline bool PropertyRecord::_internal_has_name() const { +inline bool PropertyRecord::has_name() const { bool value = (_impl_._has_bits_[0] & 0x00000001u) != 0; return value; } -inline bool PropertyRecord::has_name() const { - return _internal_has_name(); -} inline void PropertyRecord::clear_name() { + ::google::protobuf::internal::TSanWrite(&_impl_); _impl_.name_.ClearToEmpty(); _impl_._has_bits_[0] &= ~0x00000001u; } -inline const std::string& PropertyRecord::name() const { +inline const std::string& PropertyRecord::name() const + ABSL_ATTRIBUTE_LIFETIME_BOUND { // @@protoc_insertion_point(field_get:Odb.Lib.Protobuf.PropertyRecord.name) return _internal_name(); } -template -inline PROTOBUF_ALWAYS_INLINE -void PropertyRecord::set_name(ArgT0&& arg0, ArgT... args) { - _impl_._has_bits_[0] |= 0x00000001u; - _impl_.name_.Set(static_cast(arg0), args..., GetArenaForAllocation()); +template +inline PROTOBUF_ALWAYS_INLINE void PropertyRecord::set_name(Arg_&& arg, + Args_... args) { + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_._has_bits_[0] |= 0x00000001u; + _impl_.name_.Set(static_cast(arg), args..., GetArena()); // @@protoc_insertion_point(field_set:Odb.Lib.Protobuf.PropertyRecord.name) } -inline std::string* PropertyRecord::mutable_name() { +inline std::string* PropertyRecord::mutable_name() ABSL_ATTRIBUTE_LIFETIME_BOUND { std::string* _s = _internal_mutable_name(); // @@protoc_insertion_point(field_mutable:Odb.Lib.Protobuf.PropertyRecord.name) return _s; } inline const std::string& PropertyRecord::_internal_name() const { + ::google::protobuf::internal::TSanRead(&_impl_); return _impl_.name_.Get(); } inline void PropertyRecord::_internal_set_name(const std::string& value) { + ::google::protobuf::internal::TSanWrite(&_impl_); _impl_._has_bits_[0] |= 0x00000001u; - _impl_.name_.Set(value, GetArenaForAllocation()); + _impl_.name_.Set(value, GetArena()); } inline std::string* PropertyRecord::_internal_mutable_name() { + ::google::protobuf::internal::TSanWrite(&_impl_); _impl_._has_bits_[0] |= 0x00000001u; - return _impl_.name_.Mutable(GetArenaForAllocation()); + return _impl_.name_.Mutable( GetArena()); } inline std::string* PropertyRecord::release_name() { + ::google::protobuf::internal::TSanWrite(&_impl_); // @@protoc_insertion_point(field_release:Odb.Lib.Protobuf.PropertyRecord.name) - if (!_internal_has_name()) { + if ((_impl_._has_bits_[0] & 0x00000001u) == 0) { return nullptr; } _impl_._has_bits_[0] &= ~0x00000001u; - auto* p = _impl_.name_.Release(); -#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (_impl_.name_.IsDefault()) { - _impl_.name_.Set("", GetArenaForAllocation()); + auto* released = _impl_.name_.Release(); + if (::google::protobuf::internal::DebugHardenForceCopyDefaultString()) { + _impl_.name_.Set("", GetArena()); } -#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING - return p; + return released; } -inline void PropertyRecord::set_allocated_name(std::string* name) { - if (name != nullptr) { +inline void PropertyRecord::set_allocated_name(std::string* value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + if (value != nullptr) { _impl_._has_bits_[0] |= 0x00000001u; } else { _impl_._has_bits_[0] &= ~0x00000001u; } - _impl_.name_.SetAllocated(name, GetArenaForAllocation()); -#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (_impl_.name_.IsDefault()) { - _impl_.name_.Set("", GetArenaForAllocation()); + _impl_.name_.SetAllocated(value, GetArena()); + if (::google::protobuf::internal::DebugHardenForceCopyDefaultString() && _impl_.name_.IsDefault()) { + _impl_.name_.Set("", GetArena()); } -#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING // @@protoc_insertion_point(field_set_allocated:Odb.Lib.Protobuf.PropertyRecord.name) } // optional string value = 2; -inline bool PropertyRecord::_internal_has_value() const { +inline bool PropertyRecord::has_value() const { bool value = (_impl_._has_bits_[0] & 0x00000002u) != 0; return value; } -inline bool PropertyRecord::has_value() const { - return _internal_has_value(); -} inline void PropertyRecord::clear_value() { + ::google::protobuf::internal::TSanWrite(&_impl_); _impl_.value_.ClearToEmpty(); _impl_._has_bits_[0] &= ~0x00000002u; } -inline const std::string& PropertyRecord::value() const { +inline const std::string& PropertyRecord::value() const + ABSL_ATTRIBUTE_LIFETIME_BOUND { // @@protoc_insertion_point(field_get:Odb.Lib.Protobuf.PropertyRecord.value) return _internal_value(); } -template -inline PROTOBUF_ALWAYS_INLINE -void PropertyRecord::set_value(ArgT0&& arg0, ArgT... args) { - _impl_._has_bits_[0] |= 0x00000002u; - _impl_.value_.Set(static_cast(arg0), args..., GetArenaForAllocation()); +template +inline PROTOBUF_ALWAYS_INLINE void PropertyRecord::set_value(Arg_&& arg, + Args_... args) { + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_._has_bits_[0] |= 0x00000002u; + _impl_.value_.Set(static_cast(arg), args..., GetArena()); // @@protoc_insertion_point(field_set:Odb.Lib.Protobuf.PropertyRecord.value) } -inline std::string* PropertyRecord::mutable_value() { +inline std::string* PropertyRecord::mutable_value() ABSL_ATTRIBUTE_LIFETIME_BOUND { std::string* _s = _internal_mutable_value(); // @@protoc_insertion_point(field_mutable:Odb.Lib.Protobuf.PropertyRecord.value) return _s; } inline const std::string& PropertyRecord::_internal_value() const { + ::google::protobuf::internal::TSanRead(&_impl_); return _impl_.value_.Get(); } inline void PropertyRecord::_internal_set_value(const std::string& value) { + ::google::protobuf::internal::TSanWrite(&_impl_); _impl_._has_bits_[0] |= 0x00000002u; - _impl_.value_.Set(value, GetArenaForAllocation()); + _impl_.value_.Set(value, GetArena()); } inline std::string* PropertyRecord::_internal_mutable_value() { + ::google::protobuf::internal::TSanWrite(&_impl_); _impl_._has_bits_[0] |= 0x00000002u; - return _impl_.value_.Mutable(GetArenaForAllocation()); + return _impl_.value_.Mutable( GetArena()); } inline std::string* PropertyRecord::release_value() { + ::google::protobuf::internal::TSanWrite(&_impl_); // @@protoc_insertion_point(field_release:Odb.Lib.Protobuf.PropertyRecord.value) - if (!_internal_has_value()) { + if ((_impl_._has_bits_[0] & 0x00000002u) == 0) { return nullptr; } _impl_._has_bits_[0] &= ~0x00000002u; - auto* p = _impl_.value_.Release(); -#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (_impl_.value_.IsDefault()) { - _impl_.value_.Set("", GetArenaForAllocation()); + auto* released = _impl_.value_.Release(); + if (::google::protobuf::internal::DebugHardenForceCopyDefaultString()) { + _impl_.value_.Set("", GetArena()); } -#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING - return p; + return released; } inline void PropertyRecord::set_allocated_value(std::string* value) { + ::google::protobuf::internal::TSanWrite(&_impl_); if (value != nullptr) { _impl_._has_bits_[0] |= 0x00000002u; } else { _impl_._has_bits_[0] &= ~0x00000002u; } - _impl_.value_.SetAllocated(value, GetArenaForAllocation()); -#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (_impl_.value_.IsDefault()) { - _impl_.value_.Set("", GetArenaForAllocation()); + _impl_.value_.SetAllocated(value, GetArena()); + if (::google::protobuf::internal::DebugHardenForceCopyDefaultString() && _impl_.value_.IsDefault()) { + _impl_.value_.Set("", GetArena()); } -#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING // @@protoc_insertion_point(field_set_allocated:Odb.Lib.Protobuf.PropertyRecord.value) } // repeated float floatValues = 3; inline int PropertyRecord::_internal_floatvalues_size() const { - return _impl_.floatvalues_.size(); + return _internal_floatvalues().size(); } inline int PropertyRecord::floatvalues_size() const { return _internal_floatvalues_size(); } inline void PropertyRecord::clear_floatvalues() { + ::google::protobuf::internal::TSanWrite(&_impl_); _impl_.floatvalues_.Clear(); } -inline float PropertyRecord::_internal_floatvalues(int index) const { - return _impl_.floatvalues_.Get(index); -} inline float PropertyRecord::floatvalues(int index) const { // @@protoc_insertion_point(field_get:Odb.Lib.Protobuf.PropertyRecord.floatValues) - return _internal_floatvalues(index); + return _internal_floatvalues().Get(index); } inline void PropertyRecord::set_floatvalues(int index, float value) { - _impl_.floatvalues_.Set(index, value); + _internal_mutable_floatvalues()->Set(index, value); // @@protoc_insertion_point(field_set:Odb.Lib.Protobuf.PropertyRecord.floatValues) } -inline void PropertyRecord::_internal_add_floatvalues(float value) { - _impl_.floatvalues_.Add(value); -} inline void PropertyRecord::add_floatvalues(float value) { - _internal_add_floatvalues(value); + ::google::protobuf::internal::TSanWrite(&_impl_); + _internal_mutable_floatvalues()->Add(value); // @@protoc_insertion_point(field_add:Odb.Lib.Protobuf.PropertyRecord.floatValues) } -inline const ::PROTOBUF_NAMESPACE_ID::RepeatedField< float >& -PropertyRecord::_internal_floatvalues() const { - return _impl_.floatvalues_; -} -inline const ::PROTOBUF_NAMESPACE_ID::RepeatedField< float >& -PropertyRecord::floatvalues() const { +inline const ::google::protobuf::RepeatedField& PropertyRecord::floatvalues() const + ABSL_ATTRIBUTE_LIFETIME_BOUND { // @@protoc_insertion_point(field_list:Odb.Lib.Protobuf.PropertyRecord.floatValues) return _internal_floatvalues(); } -inline ::PROTOBUF_NAMESPACE_ID::RepeatedField< float >* -PropertyRecord::_internal_mutable_floatvalues() { - return &_impl_.floatvalues_; -} -inline ::PROTOBUF_NAMESPACE_ID::RepeatedField< float >* -PropertyRecord::mutable_floatvalues() { +inline ::google::protobuf::RepeatedField* PropertyRecord::mutable_floatvalues() + ABSL_ATTRIBUTE_LIFETIME_BOUND { // @@protoc_insertion_point(field_mutable_list:Odb.Lib.Protobuf.PropertyRecord.floatValues) + ::google::protobuf::internal::TSanWrite(&_impl_); return _internal_mutable_floatvalues(); } +inline const ::google::protobuf::RepeatedField& +PropertyRecord::_internal_floatvalues() const { + ::google::protobuf::internal::TSanRead(&_impl_); + return _impl_.floatvalues_; +} +inline ::google::protobuf::RepeatedField* PropertyRecord::_internal_mutable_floatvalues() { + ::google::protobuf::internal::TSanRead(&_impl_); + return &_impl_.floatvalues_; +} // ------------------------------------------------------------------- // ContourPolygon_PolygonPart // optional .Odb.Lib.Protobuf.ContourPolygon.PolygonPart.Type type = 1; -inline bool ContourPolygon_PolygonPart::_internal_has_type() const { +inline bool ContourPolygon_PolygonPart::has_type() const { bool value = (_impl_._has_bits_[0] & 0x00000001u) != 0; return value; } -inline bool ContourPolygon_PolygonPart::has_type() const { - return _internal_has_type(); -} inline void ContourPolygon_PolygonPart::clear_type() { + ::google::protobuf::internal::TSanWrite(&_impl_); _impl_.type_ = 0; _impl_._has_bits_[0] &= ~0x00000001u; } -inline ::Odb::Lib::Protobuf::ContourPolygon_PolygonPart_Type ContourPolygon_PolygonPart::_internal_type() const { - return static_cast< ::Odb::Lib::Protobuf::ContourPolygon_PolygonPart_Type >(_impl_.type_); -} inline ::Odb::Lib::Protobuf::ContourPolygon_PolygonPart_Type ContourPolygon_PolygonPart::type() const { // @@protoc_insertion_point(field_get:Odb.Lib.Protobuf.ContourPolygon.PolygonPart.type) return _internal_type(); } -inline void ContourPolygon_PolygonPart::_internal_set_type(::Odb::Lib::Protobuf::ContourPolygon_PolygonPart_Type value) { - _impl_._has_bits_[0] |= 0x00000001u; - _impl_.type_ = value; -} inline void ContourPolygon_PolygonPart::set_type(::Odb::Lib::Protobuf::ContourPolygon_PolygonPart_Type value) { _internal_set_type(value); + _impl_._has_bits_[0] |= 0x00000001u; // @@protoc_insertion_point(field_set:Odb.Lib.Protobuf.ContourPolygon.PolygonPart.type) } +inline ::Odb::Lib::Protobuf::ContourPolygon_PolygonPart_Type ContourPolygon_PolygonPart::_internal_type() const { + ::google::protobuf::internal::TSanRead(&_impl_); + return static_cast<::Odb::Lib::Protobuf::ContourPolygon_PolygonPart_Type>(_impl_.type_); +} +inline void ContourPolygon_PolygonPart::_internal_set_type(::Odb::Lib::Protobuf::ContourPolygon_PolygonPart_Type value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.type_ = value; +} // optional float endX = 2; -inline bool ContourPolygon_PolygonPart::_internal_has_endx() const { +inline bool ContourPolygon_PolygonPart::has_endx() const { bool value = (_impl_._has_bits_[0] & 0x00000002u) != 0; return value; } -inline bool ContourPolygon_PolygonPart::has_endx() const { - return _internal_has_endx(); -} inline void ContourPolygon_PolygonPart::clear_endx() { + ::google::protobuf::internal::TSanWrite(&_impl_); _impl_.endx_ = 0; _impl_._has_bits_[0] &= ~0x00000002u; } -inline float ContourPolygon_PolygonPart::_internal_endx() const { - return _impl_.endx_; -} inline float ContourPolygon_PolygonPart::endx() const { // @@protoc_insertion_point(field_get:Odb.Lib.Protobuf.ContourPolygon.PolygonPart.endX) return _internal_endx(); } -inline void ContourPolygon_PolygonPart::_internal_set_endx(float value) { - _impl_._has_bits_[0] |= 0x00000002u; - _impl_.endx_ = value; -} inline void ContourPolygon_PolygonPart::set_endx(float value) { _internal_set_endx(value); + _impl_._has_bits_[0] |= 0x00000002u; // @@protoc_insertion_point(field_set:Odb.Lib.Protobuf.ContourPolygon.PolygonPart.endX) } +inline float ContourPolygon_PolygonPart::_internal_endx() const { + ::google::protobuf::internal::TSanRead(&_impl_); + return _impl_.endx_; +} +inline void ContourPolygon_PolygonPart::_internal_set_endx(float value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.endx_ = value; +} // optional float endY = 3; -inline bool ContourPolygon_PolygonPart::_internal_has_endy() const { +inline bool ContourPolygon_PolygonPart::has_endy() const { bool value = (_impl_._has_bits_[0] & 0x00000004u) != 0; return value; } -inline bool ContourPolygon_PolygonPart::has_endy() const { - return _internal_has_endy(); -} inline void ContourPolygon_PolygonPart::clear_endy() { + ::google::protobuf::internal::TSanWrite(&_impl_); _impl_.endy_ = 0; _impl_._has_bits_[0] &= ~0x00000004u; } -inline float ContourPolygon_PolygonPart::_internal_endy() const { - return _impl_.endy_; -} inline float ContourPolygon_PolygonPart::endy() const { // @@protoc_insertion_point(field_get:Odb.Lib.Protobuf.ContourPolygon.PolygonPart.endY) return _internal_endy(); } -inline void ContourPolygon_PolygonPart::_internal_set_endy(float value) { - _impl_._has_bits_[0] |= 0x00000004u; - _impl_.endy_ = value; -} inline void ContourPolygon_PolygonPart::set_endy(float value) { _internal_set_endy(value); + _impl_._has_bits_[0] |= 0x00000004u; // @@protoc_insertion_point(field_set:Odb.Lib.Protobuf.ContourPolygon.PolygonPart.endY) } +inline float ContourPolygon_PolygonPart::_internal_endy() const { + ::google::protobuf::internal::TSanRead(&_impl_); + return _impl_.endy_; +} +inline void ContourPolygon_PolygonPart::_internal_set_endy(float value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.endy_ = value; +} // optional float xCenter = 4; -inline bool ContourPolygon_PolygonPart::_internal_has_xcenter() const { +inline bool ContourPolygon_PolygonPart::has_xcenter() const { bool value = (_impl_._has_bits_[0] & 0x00000008u) != 0; return value; } -inline bool ContourPolygon_PolygonPart::has_xcenter() const { - return _internal_has_xcenter(); -} inline void ContourPolygon_PolygonPart::clear_xcenter() { + ::google::protobuf::internal::TSanWrite(&_impl_); _impl_.xcenter_ = 0; _impl_._has_bits_[0] &= ~0x00000008u; } -inline float ContourPolygon_PolygonPart::_internal_xcenter() const { - return _impl_.xcenter_; -} inline float ContourPolygon_PolygonPart::xcenter() const { // @@protoc_insertion_point(field_get:Odb.Lib.Protobuf.ContourPolygon.PolygonPart.xCenter) return _internal_xcenter(); } -inline void ContourPolygon_PolygonPart::_internal_set_xcenter(float value) { - _impl_._has_bits_[0] |= 0x00000008u; - _impl_.xcenter_ = value; -} inline void ContourPolygon_PolygonPart::set_xcenter(float value) { _internal_set_xcenter(value); + _impl_._has_bits_[0] |= 0x00000008u; // @@protoc_insertion_point(field_set:Odb.Lib.Protobuf.ContourPolygon.PolygonPart.xCenter) } +inline float ContourPolygon_PolygonPart::_internal_xcenter() const { + ::google::protobuf::internal::TSanRead(&_impl_); + return _impl_.xcenter_; +} +inline void ContourPolygon_PolygonPart::_internal_set_xcenter(float value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.xcenter_ = value; +} // optional float yCenter = 5; -inline bool ContourPolygon_PolygonPart::_internal_has_ycenter() const { +inline bool ContourPolygon_PolygonPart::has_ycenter() const { bool value = (_impl_._has_bits_[0] & 0x00000010u) != 0; return value; } -inline bool ContourPolygon_PolygonPart::has_ycenter() const { - return _internal_has_ycenter(); -} inline void ContourPolygon_PolygonPart::clear_ycenter() { + ::google::protobuf::internal::TSanWrite(&_impl_); _impl_.ycenter_ = 0; _impl_._has_bits_[0] &= ~0x00000010u; } -inline float ContourPolygon_PolygonPart::_internal_ycenter() const { - return _impl_.ycenter_; -} inline float ContourPolygon_PolygonPart::ycenter() const { // @@protoc_insertion_point(field_get:Odb.Lib.Protobuf.ContourPolygon.PolygonPart.yCenter) return _internal_ycenter(); } -inline void ContourPolygon_PolygonPart::_internal_set_ycenter(float value) { - _impl_._has_bits_[0] |= 0x00000010u; - _impl_.ycenter_ = value; -} inline void ContourPolygon_PolygonPart::set_ycenter(float value) { _internal_set_ycenter(value); + _impl_._has_bits_[0] |= 0x00000010u; // @@protoc_insertion_point(field_set:Odb.Lib.Protobuf.ContourPolygon.PolygonPart.yCenter) } +inline float ContourPolygon_PolygonPart::_internal_ycenter() const { + ::google::protobuf::internal::TSanRead(&_impl_); + return _impl_.ycenter_; +} +inline void ContourPolygon_PolygonPart::_internal_set_ycenter(float value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.ycenter_ = value; +} // optional bool isClockwise = 6; -inline bool ContourPolygon_PolygonPart::_internal_has_isclockwise() const { +inline bool ContourPolygon_PolygonPart::has_isclockwise() const { bool value = (_impl_._has_bits_[0] & 0x00000020u) != 0; return value; } -inline bool ContourPolygon_PolygonPart::has_isclockwise() const { - return _internal_has_isclockwise(); -} inline void ContourPolygon_PolygonPart::clear_isclockwise() { + ::google::protobuf::internal::TSanWrite(&_impl_); _impl_.isclockwise_ = false; _impl_._has_bits_[0] &= ~0x00000020u; } -inline bool ContourPolygon_PolygonPart::_internal_isclockwise() const { - return _impl_.isclockwise_; -} inline bool ContourPolygon_PolygonPart::isclockwise() const { // @@protoc_insertion_point(field_get:Odb.Lib.Protobuf.ContourPolygon.PolygonPart.isClockwise) return _internal_isclockwise(); } -inline void ContourPolygon_PolygonPart::_internal_set_isclockwise(bool value) { - _impl_._has_bits_[0] |= 0x00000020u; - _impl_.isclockwise_ = value; -} inline void ContourPolygon_PolygonPart::set_isclockwise(bool value) { _internal_set_isclockwise(value); + _impl_._has_bits_[0] |= 0x00000020u; // @@protoc_insertion_point(field_set:Odb.Lib.Protobuf.ContourPolygon.PolygonPart.isClockwise) } +inline bool ContourPolygon_PolygonPart::_internal_isclockwise() const { + ::google::protobuf::internal::TSanRead(&_impl_); + return _impl_.isclockwise_; +} +inline void ContourPolygon_PolygonPart::_internal_set_isclockwise(bool value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.isclockwise_ = value; +} // ------------------------------------------------------------------- // ContourPolygon // optional .Odb.Lib.Protobuf.ContourPolygon.Type type = 1; -inline bool ContourPolygon::_internal_has_type() const { +inline bool ContourPolygon::has_type() const { bool value = (_impl_._has_bits_[0] & 0x00000001u) != 0; return value; } -inline bool ContourPolygon::has_type() const { - return _internal_has_type(); -} inline void ContourPolygon::clear_type() { + ::google::protobuf::internal::TSanWrite(&_impl_); _impl_.type_ = 0; _impl_._has_bits_[0] &= ~0x00000001u; } -inline ::Odb::Lib::Protobuf::ContourPolygon_Type ContourPolygon::_internal_type() const { - return static_cast< ::Odb::Lib::Protobuf::ContourPolygon_Type >(_impl_.type_); -} inline ::Odb::Lib::Protobuf::ContourPolygon_Type ContourPolygon::type() const { // @@protoc_insertion_point(field_get:Odb.Lib.Protobuf.ContourPolygon.type) return _internal_type(); } -inline void ContourPolygon::_internal_set_type(::Odb::Lib::Protobuf::ContourPolygon_Type value) { - _impl_._has_bits_[0] |= 0x00000001u; - _impl_.type_ = value; -} inline void ContourPolygon::set_type(::Odb::Lib::Protobuf::ContourPolygon_Type value) { _internal_set_type(value); + _impl_._has_bits_[0] |= 0x00000001u; // @@protoc_insertion_point(field_set:Odb.Lib.Protobuf.ContourPolygon.type) } +inline ::Odb::Lib::Protobuf::ContourPolygon_Type ContourPolygon::_internal_type() const { + ::google::protobuf::internal::TSanRead(&_impl_); + return static_cast<::Odb::Lib::Protobuf::ContourPolygon_Type>(_impl_.type_); +} +inline void ContourPolygon::_internal_set_type(::Odb::Lib::Protobuf::ContourPolygon_Type value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.type_ = value; +} // optional float xStart = 2; -inline bool ContourPolygon::_internal_has_xstart() const { +inline bool ContourPolygon::has_xstart() const { bool value = (_impl_._has_bits_[0] & 0x00000002u) != 0; return value; } -inline bool ContourPolygon::has_xstart() const { - return _internal_has_xstart(); -} inline void ContourPolygon::clear_xstart() { + ::google::protobuf::internal::TSanWrite(&_impl_); _impl_.xstart_ = 0; _impl_._has_bits_[0] &= ~0x00000002u; } -inline float ContourPolygon::_internal_xstart() const { - return _impl_.xstart_; -} inline float ContourPolygon::xstart() const { // @@protoc_insertion_point(field_get:Odb.Lib.Protobuf.ContourPolygon.xStart) return _internal_xstart(); } -inline void ContourPolygon::_internal_set_xstart(float value) { - _impl_._has_bits_[0] |= 0x00000002u; - _impl_.xstart_ = value; -} inline void ContourPolygon::set_xstart(float value) { _internal_set_xstart(value); + _impl_._has_bits_[0] |= 0x00000002u; // @@protoc_insertion_point(field_set:Odb.Lib.Protobuf.ContourPolygon.xStart) } +inline float ContourPolygon::_internal_xstart() const { + ::google::protobuf::internal::TSanRead(&_impl_); + return _impl_.xstart_; +} +inline void ContourPolygon::_internal_set_xstart(float value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.xstart_ = value; +} // optional float yStart = 3; -inline bool ContourPolygon::_internal_has_ystart() const { +inline bool ContourPolygon::has_ystart() const { bool value = (_impl_._has_bits_[0] & 0x00000004u) != 0; return value; } -inline bool ContourPolygon::has_ystart() const { - return _internal_has_ystart(); -} inline void ContourPolygon::clear_ystart() { + ::google::protobuf::internal::TSanWrite(&_impl_); _impl_.ystart_ = 0; _impl_._has_bits_[0] &= ~0x00000004u; } -inline float ContourPolygon::_internal_ystart() const { - return _impl_.ystart_; -} inline float ContourPolygon::ystart() const { // @@protoc_insertion_point(field_get:Odb.Lib.Protobuf.ContourPolygon.yStart) return _internal_ystart(); } -inline void ContourPolygon::_internal_set_ystart(float value) { - _impl_._has_bits_[0] |= 0x00000004u; - _impl_.ystart_ = value; -} inline void ContourPolygon::set_ystart(float value) { _internal_set_ystart(value); + _impl_._has_bits_[0] |= 0x00000004u; // @@protoc_insertion_point(field_set:Odb.Lib.Protobuf.ContourPolygon.yStart) } +inline float ContourPolygon::_internal_ystart() const { + ::google::protobuf::internal::TSanRead(&_impl_); + return _impl_.ystart_; +} +inline void ContourPolygon::_internal_set_ystart(float value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.ystart_ = value; +} // repeated .Odb.Lib.Protobuf.ContourPolygon.PolygonPart polygonParts = 4; inline int ContourPolygon::_internal_polygonparts_size() const { - return _impl_.polygonparts_.size(); + return _internal_polygonparts().size(); } inline int ContourPolygon::polygonparts_size() const { return _internal_polygonparts_size(); } inline void ContourPolygon::clear_polygonparts() { + ::google::protobuf::internal::TSanWrite(&_impl_); _impl_.polygonparts_.Clear(); } -inline ::Odb::Lib::Protobuf::ContourPolygon_PolygonPart* ContourPolygon::mutable_polygonparts(int index) { +inline ::Odb::Lib::Protobuf::ContourPolygon_PolygonPart* ContourPolygon::mutable_polygonparts(int index) + ABSL_ATTRIBUTE_LIFETIME_BOUND { // @@protoc_insertion_point(field_mutable:Odb.Lib.Protobuf.ContourPolygon.polygonParts) - return _impl_.polygonparts_.Mutable(index); + return _internal_mutable_polygonparts()->Mutable(index); } -inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::Odb::Lib::Protobuf::ContourPolygon_PolygonPart >* -ContourPolygon::mutable_polygonparts() { +inline ::google::protobuf::RepeatedPtrField<::Odb::Lib::Protobuf::ContourPolygon_PolygonPart>* ContourPolygon::mutable_polygonparts() + ABSL_ATTRIBUTE_LIFETIME_BOUND { // @@protoc_insertion_point(field_mutable_list:Odb.Lib.Protobuf.ContourPolygon.polygonParts) - return &_impl_.polygonparts_; -} -inline const ::Odb::Lib::Protobuf::ContourPolygon_PolygonPart& ContourPolygon::_internal_polygonparts(int index) const { - return _impl_.polygonparts_.Get(index); + ::google::protobuf::internal::TSanWrite(&_impl_); + return _internal_mutable_polygonparts(); } -inline const ::Odb::Lib::Protobuf::ContourPolygon_PolygonPart& ContourPolygon::polygonparts(int index) const { +inline const ::Odb::Lib::Protobuf::ContourPolygon_PolygonPart& ContourPolygon::polygonparts(int index) const + ABSL_ATTRIBUTE_LIFETIME_BOUND { // @@protoc_insertion_point(field_get:Odb.Lib.Protobuf.ContourPolygon.polygonParts) - return _internal_polygonparts(index); + return _internal_polygonparts().Get(index); } -inline ::Odb::Lib::Protobuf::ContourPolygon_PolygonPart* ContourPolygon::_internal_add_polygonparts() { - return _impl_.polygonparts_.Add(); -} -inline ::Odb::Lib::Protobuf::ContourPolygon_PolygonPart* ContourPolygon::add_polygonparts() { - ::Odb::Lib::Protobuf::ContourPolygon_PolygonPart* _add = _internal_add_polygonparts(); +inline ::Odb::Lib::Protobuf::ContourPolygon_PolygonPart* ContourPolygon::add_polygonparts() ABSL_ATTRIBUTE_LIFETIME_BOUND { + ::google::protobuf::internal::TSanWrite(&_impl_); + ::Odb::Lib::Protobuf::ContourPolygon_PolygonPart* _add = _internal_mutable_polygonparts()->Add(); // @@protoc_insertion_point(field_add:Odb.Lib.Protobuf.ContourPolygon.polygonParts) return _add; } -inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::Odb::Lib::Protobuf::ContourPolygon_PolygonPart >& -ContourPolygon::polygonparts() const { +inline const ::google::protobuf::RepeatedPtrField<::Odb::Lib::Protobuf::ContourPolygon_PolygonPart>& ContourPolygon::polygonparts() const + ABSL_ATTRIBUTE_LIFETIME_BOUND { // @@protoc_insertion_point(field_list:Odb.Lib.Protobuf.ContourPolygon.polygonParts) + return _internal_polygonparts(); +} +inline const ::google::protobuf::RepeatedPtrField<::Odb::Lib::Protobuf::ContourPolygon_PolygonPart>& +ContourPolygon::_internal_polygonparts() const { + ::google::protobuf::internal::TSanRead(&_impl_); return _impl_.polygonparts_; } +inline ::google::protobuf::RepeatedPtrField<::Odb::Lib::Protobuf::ContourPolygon_PolygonPart>* +ContourPolygon::_internal_mutable_polygonparts() { + ::google::protobuf::internal::TSanRead(&_impl_); + return &_impl_.polygonparts_; +} #ifdef __GNUC__ - #pragma GCC diagnostic pop +#pragma GCC diagnostic pop #endif // __GNUC__ -// ------------------------------------------------------------------- - -// ------------------------------------------------------------------- - // @@protoc_insertion_point(namespace_scope) - } // namespace Protobuf } // namespace Lib } // namespace Odb -PROTOBUF_NAMESPACE_OPEN -template <> struct is_proto_enum< ::Odb::Lib::Protobuf::ContourPolygon_PolygonPart_Type> : ::std::true_type {}; +namespace google { +namespace protobuf { + +template <> +struct is_proto_enum<::Odb::Lib::Protobuf::ContourPolygon_PolygonPart_Type> : std::true_type {}; template <> -inline const EnumDescriptor* GetEnumDescriptor< ::Odb::Lib::Protobuf::ContourPolygon_PolygonPart_Type>() { +inline const EnumDescriptor* GetEnumDescriptor<::Odb::Lib::Protobuf::ContourPolygon_PolygonPart_Type>() { return ::Odb::Lib::Protobuf::ContourPolygon_PolygonPart_Type_descriptor(); } -template <> struct is_proto_enum< ::Odb::Lib::Protobuf::ContourPolygon_Type> : ::std::true_type {}; template <> -inline const EnumDescriptor* GetEnumDescriptor< ::Odb::Lib::Protobuf::ContourPolygon_Type>() { +struct is_proto_enum<::Odb::Lib::Protobuf::ContourPolygon_Type> : std::true_type {}; +template <> +inline const EnumDescriptor* GetEnumDescriptor<::Odb::Lib::Protobuf::ContourPolygon_Type>() { return ::Odb::Lib::Protobuf::ContourPolygon_Type_descriptor(); } -PROTOBUF_NAMESPACE_CLOSE +} // namespace protobuf +} // namespace google // @@protoc_insertion_point(global_scope) -#include -#endif // GOOGLE_PROTOBUF_INCLUDED_GOOGLE_PROTOBUF_INCLUDED_common_2eproto +#include "google/protobuf/port_undef.inc" + +#endif // common_2eproto_2epb_2eh diff --git a/OdbDesignLib/ProtoBuf/component.pb.cc b/OdbDesignLib/ProtoBuf/component.pb.cc index 2c748216..3438047d 100644 --- a/OdbDesignLib/ProtoBuf/component.pb.cc +++ b/OdbDesignLib/ProtoBuf/component.pb.cc @@ -1,261 +1,356 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE // source: component.proto +// Protobuf C++ Version: 5.29.2 #include "component.pb.h" #include - -#include -#include -#include -#include -#include -#include -#include +#include +#include "google/protobuf/io/coded_stream.h" +#include "google/protobuf/generated_message_tctable_impl.h" +#include "google/protobuf/extension_set.h" +#include "google/protobuf/generated_message_util.h" +#include "google/protobuf/wire_format_lite.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) -#include +// Must be included last. +#include "google/protobuf/port_def.inc" PROTOBUF_PRAGMA_INIT_SEG - -namespace _pb = ::PROTOBUF_NAMESPACE_ID; -namespace _pbi = _pb::internal; - +namespace _pb = ::google::protobuf; +namespace _pbi = ::google::protobuf::internal; +namespace _fl = ::google::protobuf::internal::field_layout; namespace Odb { namespace Lib { namespace Protobuf { namespace ProductModel { -PROTOBUF_CONSTEXPR Component::Component( - ::_pbi::ConstantInitialized): _impl_{ - /*decltype(_impl_._has_bits_)*/{} - , /*decltype(_impl_._cached_size_)*/{} - , /*decltype(_impl_.refdes_)*/{&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}} - , /*decltype(_impl_.partname_)*/{&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}} - , /*decltype(_impl_.package_)*/nullptr - , /*decltype(_impl_.part_)*/nullptr - , /*decltype(_impl_.index_)*/0u - , /*decltype(_impl_.side_)*/0} {} + +inline constexpr Component::Impl_::Impl_( + ::_pbi::ConstantInitialized) noexcept + : _cached_size_{0}, + refdes_( + &::google::protobuf::internal::fixed_address_empty_string, + ::_pbi::ConstantInitialized()), + partname_( + &::google::protobuf::internal::fixed_address_empty_string, + ::_pbi::ConstantInitialized()), + package_{nullptr}, + part_{nullptr}, + index_{0u}, + side_{static_cast< ::Odb::Lib::Protobuf::BoardSide >(0)} {} + +template +PROTOBUF_CONSTEXPR Component::Component(::_pbi::ConstantInitialized) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : ::google::protobuf::Message(_class_data_.base()), +#else // PROTOBUF_CUSTOM_VTABLE + : ::google::protobuf::Message(), +#endif // PROTOBUF_CUSTOM_VTABLE + _impl_(::_pbi::ConstantInitialized()) { +} struct ComponentDefaultTypeInternal { - PROTOBUF_CONSTEXPR ComponentDefaultTypeInternal() - : _instance(::_pbi::ConstantInitialized{}) {} + PROTOBUF_CONSTEXPR ComponentDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} ~ComponentDefaultTypeInternal() {} union { Component _instance; }; }; -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 ComponentDefaultTypeInternal _Component_default_instance_; + +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT ODBDESIGN_EXPORT + PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 ComponentDefaultTypeInternal _Component_default_instance_; } // namespace ProductModel } // namespace Protobuf } // namespace Lib } // namespace Odb -static ::_pb::Metadata file_level_metadata_component_2eproto[1]; -static constexpr ::_pb::EnumDescriptor const** file_level_enum_descriptors_component_2eproto = nullptr; -static constexpr ::_pb::ServiceDescriptor const** file_level_service_descriptors_component_2eproto = nullptr; - -const uint32_t TableStruct_component_2eproto::offsets[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = { - PROTOBUF_FIELD_OFFSET(::Odb::Lib::Protobuf::ProductModel::Component, _impl_._has_bits_), - PROTOBUF_FIELD_OFFSET(::Odb::Lib::Protobuf::ProductModel::Component, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - ~0u, // no _inlined_string_donated_ - PROTOBUF_FIELD_OFFSET(::Odb::Lib::Protobuf::ProductModel::Component, _impl_.refdes_), - PROTOBUF_FIELD_OFFSET(::Odb::Lib::Protobuf::ProductModel::Component, _impl_.partname_), - PROTOBUF_FIELD_OFFSET(::Odb::Lib::Protobuf::ProductModel::Component, _impl_.package_), - PROTOBUF_FIELD_OFFSET(::Odb::Lib::Protobuf::ProductModel::Component, _impl_.index_), - PROTOBUF_FIELD_OFFSET(::Odb::Lib::Protobuf::ProductModel::Component, _impl_.side_), - PROTOBUF_FIELD_OFFSET(::Odb::Lib::Protobuf::ProductModel::Component, _impl_.part_), - 0, - 1, - 2, - 4, - 5, - 3, -}; -static const ::_pbi::MigrationSchema schemas[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = { - { 0, 12, -1, sizeof(::Odb::Lib::Protobuf::ProductModel::Component)}, +static constexpr const ::_pb::EnumDescriptor** + file_level_enum_descriptors_component_2eproto = nullptr; +static constexpr const ::_pb::ServiceDescriptor** + file_level_service_descriptors_component_2eproto = nullptr; +const ::uint32_t + TableStruct_component_2eproto::offsets[] ABSL_ATTRIBUTE_SECTION_VARIABLE( + protodesc_cold) = { + PROTOBUF_FIELD_OFFSET(::Odb::Lib::Protobuf::ProductModel::Component, _impl_._has_bits_), + PROTOBUF_FIELD_OFFSET(::Odb::Lib::Protobuf::ProductModel::Component, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + ~0u, // no _split_ + ~0u, // no sizeof(Split) + PROTOBUF_FIELD_OFFSET(::Odb::Lib::Protobuf::ProductModel::Component, _impl_.refdes_), + PROTOBUF_FIELD_OFFSET(::Odb::Lib::Protobuf::ProductModel::Component, _impl_.partname_), + PROTOBUF_FIELD_OFFSET(::Odb::Lib::Protobuf::ProductModel::Component, _impl_.package_), + PROTOBUF_FIELD_OFFSET(::Odb::Lib::Protobuf::ProductModel::Component, _impl_.index_), + PROTOBUF_FIELD_OFFSET(::Odb::Lib::Protobuf::ProductModel::Component, _impl_.side_), + PROTOBUF_FIELD_OFFSET(::Odb::Lib::Protobuf::ProductModel::Component, _impl_.part_), + 0, + 1, + 2, + 4, + 5, + 3, }; +static const ::_pbi::MigrationSchema + schemas[] ABSL_ATTRIBUTE_SECTION_VARIABLE(protodesc_cold) = { + {0, 14, -1, sizeof(::Odb::Lib::Protobuf::ProductModel::Component)}, +}; static const ::_pb::Message* const file_default_instances[] = { - &::Odb::Lib::Protobuf::ProductModel::_Component_default_instance_._instance, + &::Odb::Lib::Protobuf::ProductModel::_Component_default_instance_._instance, }; - -const char descriptor_table_protodef_component_2eproto[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = - "\n\017component.proto\022\035Odb.Lib.Protobuf.Prod" - "uctModel\032\013enums.proto\032\npart.proto\032\rpacka" - "ge.proto\"\261\002\n\tComponent\022\023\n\006refDes\030\001 \001(\tH\000" - "\210\001\001\022\025\n\010partName\030\002 \001(\tH\001\210\001\001\022<\n\007package\030\003 " - "\001(\0132&.Odb.Lib.Protobuf.ProductModel.Pack" - "ageH\002\210\001\001\022\022\n\005index\030\004 \001(\rH\003\210\001\001\022.\n\004side\030\005 \001" - "(\0162\033.Odb.Lib.Protobuf.BoardSideH\004\210\001\001\0226\n\004" - "part\030\006 \001(\0132#.Odb.Lib.Protobuf.ProductMod" - "el.PartH\005\210\001\001B\t\n\007_refDesB\013\n\t_partNameB\n\n\010" - "_packageB\010\n\006_indexB\007\n\005_sideB\007\n\005_partb\006pr" - "oto3" - ; -static const ::_pbi::DescriptorTable* const descriptor_table_component_2eproto_deps[3] = { - &::descriptor_table_enums_2eproto, - &::descriptor_table_package_2eproto, - &::descriptor_table_part_2eproto, +const char descriptor_table_protodef_component_2eproto[] ABSL_ATTRIBUTE_SECTION_VARIABLE( + protodesc_cold) = { + "\n\017component.proto\022\035Odb.Lib.Protobuf.Prod" + "uctModel\032\013enums.proto\032\npart.proto\032\rpacka" + "ge.proto\"\261\002\n\tComponent\022\023\n\006refDes\030\001 \001(\tH\000" + "\210\001\001\022\025\n\010partName\030\002 \001(\tH\001\210\001\001\022<\n\007package\030\003 " + "\001(\0132&.Odb.Lib.Protobuf.ProductModel.Pack" + "ageH\002\210\001\001\022\022\n\005index\030\004 \001(\rH\003\210\001\001\022.\n\004side\030\005 \001" + "(\0162\033.Odb.Lib.Protobuf.BoardSideH\004\210\001\001\0226\n\004" + "part\030\006 \001(\0132#.Odb.Lib.Protobuf.ProductMod" + "el.PartH\005\210\001\001B\t\n\007_refDesB\013\n\t_partNameB\n\n\010" + "_packageB\010\n\006_indexB\007\n\005_sideB\007\n\005_partb\006pr" + "oto3" }; -static ::_pbi::once_flag descriptor_table_component_2eproto_once; -const ::_pbi::DescriptorTable descriptor_table_component_2eproto = { - false, false, 404, descriptor_table_protodef_component_2eproto, +static const ::_pbi::DescriptorTable* const descriptor_table_component_2eproto_deps[3] = + { + &::descriptor_table_enums_2eproto, + &::descriptor_table_package_2eproto, + &::descriptor_table_part_2eproto, +}; +static ::absl::once_flag descriptor_table_component_2eproto_once; +PROTOBUF_CONSTINIT const ::_pbi::DescriptorTable descriptor_table_component_2eproto = { + false, + false, + 404, + descriptor_table_protodef_component_2eproto, "component.proto", - &descriptor_table_component_2eproto_once, descriptor_table_component_2eproto_deps, 3, 1, - schemas, file_default_instances, TableStruct_component_2eproto::offsets, - file_level_metadata_component_2eproto, file_level_enum_descriptors_component_2eproto, + &descriptor_table_component_2eproto_once, + descriptor_table_component_2eproto_deps, + 3, + 1, + schemas, + file_default_instances, + TableStruct_component_2eproto::offsets, + file_level_enum_descriptors_component_2eproto, file_level_service_descriptors_component_2eproto, }; -PROTOBUF_ATTRIBUTE_WEAK const ::_pbi::DescriptorTable* descriptor_table_component_2eproto_getter() { - return &descriptor_table_component_2eproto; -} - -// Force running AddDescriptors() at dynamic initialization time. -PROTOBUF_ATTRIBUTE_INIT_PRIORITY2 static ::_pbi::AddDescriptorsRunner dynamic_init_dummy_component_2eproto(&descriptor_table_component_2eproto); namespace Odb { namespace Lib { namespace Protobuf { namespace ProductModel { - // =================================================================== class Component::_Internal { public: - using HasBits = decltype(std::declval()._impl_._has_bits_); - static void set_has_refdes(HasBits* has_bits) { - (*has_bits)[0] |= 1u; - } - static void set_has_partname(HasBits* has_bits) { - (*has_bits)[0] |= 2u; - } - static const ::Odb::Lib::Protobuf::ProductModel::Package& package(const Component* msg); - static void set_has_package(HasBits* has_bits) { - (*has_bits)[0] |= 4u; - } - static void set_has_index(HasBits* has_bits) { - (*has_bits)[0] |= 16u; - } - static void set_has_side(HasBits* has_bits) { - (*has_bits)[0] |= 32u; - } - static const ::Odb::Lib::Protobuf::ProductModel::Part& part(const Component* msg); - static void set_has_part(HasBits* has_bits) { - (*has_bits)[0] |= 8u; - } + using HasBits = + decltype(std::declval()._impl_._has_bits_); + static constexpr ::int32_t kHasBitsOffset = + 8 * PROTOBUF_FIELD_OFFSET(Component, _impl_._has_bits_); }; -const ::Odb::Lib::Protobuf::ProductModel::Package& -Component::_Internal::package(const Component* msg) { - return *msg->_impl_.package_; -} -const ::Odb::Lib::Protobuf::ProductModel::Part& -Component::_Internal::part(const Component* msg) { - return *msg->_impl_.part_; -} void Component::clear_package() { + ::google::protobuf::internal::TSanWrite(&_impl_); if (_impl_.package_ != nullptr) _impl_.package_->Clear(); _impl_._has_bits_[0] &= ~0x00000004u; } void Component::clear_part() { + ::google::protobuf::internal::TSanWrite(&_impl_); if (_impl_.part_ != nullptr) _impl_.part_->Clear(); _impl_._has_bits_[0] &= ~0x00000008u; } -Component::Component(::PROTOBUF_NAMESPACE_ID::Arena* arena, - bool is_message_owned) - : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned) { - SharedCtor(arena, is_message_owned); +Component::Component(::google::protobuf::Arena* arena) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : ::google::protobuf::Message(arena, _class_data_.base()) { +#else // PROTOBUF_CUSTOM_VTABLE + : ::google::protobuf::Message(arena) { +#endif // PROTOBUF_CUSTOM_VTABLE + SharedCtor(arena); // @@protoc_insertion_point(arena_constructor:Odb.Lib.Protobuf.ProductModel.Component) } -Component::Component(const Component& from) - : ::PROTOBUF_NAMESPACE_ID::Message() { - Component* const _this = this; (void)_this; - new (&_impl_) Impl_{ - decltype(_impl_._has_bits_){from._impl_._has_bits_} - , /*decltype(_impl_._cached_size_)*/{} - , decltype(_impl_.refdes_){} - , decltype(_impl_.partname_){} - , decltype(_impl_.package_){nullptr} - , decltype(_impl_.part_){nullptr} - , decltype(_impl_.index_){} - , decltype(_impl_.side_){}}; - - _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); - _impl_.refdes_.InitDefault(); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - _impl_.refdes_.Set("", GetArenaForAllocation()); - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (from._internal_has_refdes()) { - _this->_impl_.refdes_.Set(from._internal_refdes(), - _this->GetArenaForAllocation()); - } - _impl_.partname_.InitDefault(); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - _impl_.partname_.Set("", GetArenaForAllocation()); - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (from._internal_has_partname()) { - _this->_impl_.partname_.Set(from._internal_partname(), - _this->GetArenaForAllocation()); - } - if (from._internal_has_package()) { - _this->_impl_.package_ = new ::Odb::Lib::Protobuf::ProductModel::Package(*from._impl_.package_); - } - if (from._internal_has_part()) { - _this->_impl_.part_ = new ::Odb::Lib::Protobuf::ProductModel::Part(*from._impl_.part_); - } - ::memcpy(&_impl_.index_, &from._impl_.index_, - static_cast(reinterpret_cast(&_impl_.side_) - - reinterpret_cast(&_impl_.index_)) + sizeof(_impl_.side_)); +inline PROTOBUF_NDEBUG_INLINE Component::Impl_::Impl_( + ::google::protobuf::internal::InternalVisibility visibility, ::google::protobuf::Arena* arena, + const Impl_& from, const ::Odb::Lib::Protobuf::ProductModel::Component& from_msg) + : _has_bits_{from._has_bits_}, + _cached_size_{0}, + refdes_(arena, from.refdes_), + partname_(arena, from.partname_) {} + +Component::Component( + ::google::protobuf::Arena* arena, + const Component& from) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : ::google::protobuf::Message(arena, _class_data_.base()) { +#else // PROTOBUF_CUSTOM_VTABLE + : ::google::protobuf::Message(arena) { +#endif // PROTOBUF_CUSTOM_VTABLE + Component* const _this = this; + (void)_this; + _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( + from._internal_metadata_); + new (&_impl_) Impl_(internal_visibility(), arena, from._impl_, from); + ::uint32_t cached_has_bits = _impl_._has_bits_[0]; + _impl_.package_ = (cached_has_bits & 0x00000004u) ? ::google::protobuf::Message::CopyConstruct<::Odb::Lib::Protobuf::ProductModel::Package>( + arena, *from._impl_.package_) + : nullptr; + _impl_.part_ = (cached_has_bits & 0x00000008u) ? ::google::protobuf::Message::CopyConstruct<::Odb::Lib::Protobuf::ProductModel::Part>( + arena, *from._impl_.part_) + : nullptr; + ::memcpy(reinterpret_cast(&_impl_) + + offsetof(Impl_, index_), + reinterpret_cast(&from._impl_) + + offsetof(Impl_, index_), + offsetof(Impl_, side_) - + offsetof(Impl_, index_) + + sizeof(Impl_::side_)); + // @@protoc_insertion_point(copy_constructor:Odb.Lib.Protobuf.ProductModel.Component) } - -inline void Component::SharedCtor( - ::_pb::Arena* arena, bool is_message_owned) { - (void)arena; - (void)is_message_owned; - new (&_impl_) Impl_{ - decltype(_impl_._has_bits_){} - , /*decltype(_impl_._cached_size_)*/{} - , decltype(_impl_.refdes_){} - , decltype(_impl_.partname_){} - , decltype(_impl_.package_){nullptr} - , decltype(_impl_.part_){nullptr} - , decltype(_impl_.index_){0u} - , decltype(_impl_.side_){0} - }; - _impl_.refdes_.InitDefault(); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - _impl_.refdes_.Set("", GetArenaForAllocation()); - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING - _impl_.partname_.InitDefault(); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - _impl_.partname_.Set("", GetArenaForAllocation()); - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING +inline PROTOBUF_NDEBUG_INLINE Component::Impl_::Impl_( + ::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* arena) + : _cached_size_{0}, + refdes_(arena), + partname_(arena) {} + +inline void Component::SharedCtor(::_pb::Arena* arena) { + new (&_impl_) Impl_(internal_visibility(), arena); + ::memset(reinterpret_cast(&_impl_) + + offsetof(Impl_, package_), + 0, + offsetof(Impl_, side_) - + offsetof(Impl_, package_) + + sizeof(Impl_::side_)); } - Component::~Component() { // @@protoc_insertion_point(destructor:Odb.Lib.Protobuf.ProductModel.Component) - if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) { - (void)arena; - return; - } - SharedDtor(); + SharedDtor(*this); } - -inline void Component::SharedDtor() { - GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); - _impl_.refdes_.Destroy(); - _impl_.partname_.Destroy(); - if (this != internal_default_instance()) delete _impl_.package_; - if (this != internal_default_instance()) delete _impl_.part_; +inline void Component::SharedDtor(MessageLite& self) { + Component& this_ = static_cast(self); + this_._internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); + ABSL_DCHECK(this_.GetArena() == nullptr); + this_._impl_.refdes_.Destroy(); + this_._impl_.partname_.Destroy(); + delete this_._impl_.package_; + delete this_._impl_.part_; + this_._impl_.~Impl_(); } -void Component::SetCachedSize(int size) const { - _impl_._cached_size_.Set(size); +inline void* Component::PlacementNew_(const void*, void* mem, + ::google::protobuf::Arena* arena) { + return ::new (mem) Component(arena); +} +constexpr auto Component::InternalNewImpl_() { + return ::google::protobuf::internal::MessageCreator::CopyInit(sizeof(Component), + alignof(Component)); +} +PROTOBUF_CONSTINIT +PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 +const ::google::protobuf::internal::ClassDataFull Component::_class_data_ = { + ::google::protobuf::internal::ClassData{ + &_Component_default_instance_._instance, + &_table_.header, + nullptr, // OnDemandRegisterArenaDtor + nullptr, // IsInitialized + &Component::MergeImpl, + ::google::protobuf::Message::GetNewImpl(), +#if defined(PROTOBUF_CUSTOM_VTABLE) + &Component::SharedDtor, + ::google::protobuf::Message::GetClearImpl(), &Component::ByteSizeLong, + &Component::_InternalSerialize, +#endif // PROTOBUF_CUSTOM_VTABLE + PROTOBUF_FIELD_OFFSET(Component, _impl_._cached_size_), + false, + }, + &Component::kDescriptorMethods, + &descriptor_table_component_2eproto, + nullptr, // tracker +}; +const ::google::protobuf::internal::ClassData* Component::GetClassData() const { + ::google::protobuf::internal::PrefetchToLocalCache(&_class_data_); + ::google::protobuf::internal::PrefetchToLocalCache(_class_data_.tc_table); + return _class_data_.base(); } +PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 +const ::_pbi::TcParseTable<3, 6, 2, 62, 2> Component::_table_ = { + { + PROTOBUF_FIELD_OFFSET(Component, _impl_._has_bits_), + 0, // no _extensions_ + 6, 56, // max_field_number, fast_idx_mask + offsetof(decltype(_table_), field_lookup_table), + 4294967232, // skipmap + offsetof(decltype(_table_), field_entries), + 6, // num_field_entries + 2, // num_aux_entries + offsetof(decltype(_table_), aux_entries), + _class_data_.base(), + nullptr, // post_loop_handler + ::_pbi::TcParser::GenericFallback, // fallback + #ifdef PROTOBUF_PREFETCH_PARSE_TABLE + ::_pbi::TcParser::GetTable<::Odb::Lib::Protobuf::ProductModel::Component>(), // to_prefetch + #endif // PROTOBUF_PREFETCH_PARSE_TABLE + }, {{ + {::_pbi::TcParser::MiniParse, {}}, + // optional string refDes = 1; + {::_pbi::TcParser::FastUS1, + {10, 0, 0, PROTOBUF_FIELD_OFFSET(Component, _impl_.refdes_)}}, + // optional string partName = 2; + {::_pbi::TcParser::FastUS1, + {18, 1, 0, PROTOBUF_FIELD_OFFSET(Component, _impl_.partname_)}}, + // optional .Odb.Lib.Protobuf.ProductModel.Package package = 3; + {::_pbi::TcParser::FastMtS1, + {26, 2, 0, PROTOBUF_FIELD_OFFSET(Component, _impl_.package_)}}, + // optional uint32 index = 4; + {::_pbi::TcParser::SingularVarintNoZag1<::uint32_t, offsetof(Component, _impl_.index_), 4>(), + {32, 4, 0, PROTOBUF_FIELD_OFFSET(Component, _impl_.index_)}}, + // optional .Odb.Lib.Protobuf.BoardSide side = 5; + {::_pbi::TcParser::SingularVarintNoZag1<::uint32_t, offsetof(Component, _impl_.side_), 5>(), + {40, 5, 0, PROTOBUF_FIELD_OFFSET(Component, _impl_.side_)}}, + // optional .Odb.Lib.Protobuf.ProductModel.Part part = 6; + {::_pbi::TcParser::FastMtS1, + {50, 3, 1, PROTOBUF_FIELD_OFFSET(Component, _impl_.part_)}}, + {::_pbi::TcParser::MiniParse, {}}, + }}, {{ + 65535, 65535 + }}, {{ + // optional string refDes = 1; + {PROTOBUF_FIELD_OFFSET(Component, _impl_.refdes_), _Internal::kHasBitsOffset + 0, 0, + (0 | ::_fl::kFcOptional | ::_fl::kUtf8String | ::_fl::kRepAString)}, + // optional string partName = 2; + {PROTOBUF_FIELD_OFFSET(Component, _impl_.partname_), _Internal::kHasBitsOffset + 1, 0, + (0 | ::_fl::kFcOptional | ::_fl::kUtf8String | ::_fl::kRepAString)}, + // optional .Odb.Lib.Protobuf.ProductModel.Package package = 3; + {PROTOBUF_FIELD_OFFSET(Component, _impl_.package_), _Internal::kHasBitsOffset + 2, 0, + (0 | ::_fl::kFcOptional | ::_fl::kMessage | ::_fl::kTvTable)}, + // optional uint32 index = 4; + {PROTOBUF_FIELD_OFFSET(Component, _impl_.index_), _Internal::kHasBitsOffset + 4, 0, + (0 | ::_fl::kFcOptional | ::_fl::kUInt32)}, + // optional .Odb.Lib.Protobuf.BoardSide side = 5; + {PROTOBUF_FIELD_OFFSET(Component, _impl_.side_), _Internal::kHasBitsOffset + 5, 0, + (0 | ::_fl::kFcOptional | ::_fl::kOpenEnum)}, + // optional .Odb.Lib.Protobuf.ProductModel.Part part = 6; + {PROTOBUF_FIELD_OFFSET(Component, _impl_.part_), _Internal::kHasBitsOffset + 3, 1, + (0 | ::_fl::kFcOptional | ::_fl::kMessage | ::_fl::kTvTable)}, + }}, {{ + {::_pbi::TcParser::GetTable<::Odb::Lib::Protobuf::ProductModel::Package>()}, + {::_pbi::TcParser::GetTable<::Odb::Lib::Protobuf::ProductModel::Part>()}, + }}, {{ + "\47\6\10\0\0\0\0\0" + "Odb.Lib.Protobuf.ProductModel.Component" + "refDes" + "partName" + }}, +}; -void Component::Clear() { +PROTOBUF_NOINLINE void Component::Clear() { // @@protoc_insertion_point(message_clear_start:Odb.Lib.Protobuf.ProductModel.Component) - uint32_t cached_has_bits = 0; + ::google::protobuf::internal::TSanWrite(&_impl_); + ::uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; @@ -268,235 +363,151 @@ void Component::Clear() { _impl_.partname_.ClearNonDefaultToEmpty(); } if (cached_has_bits & 0x00000004u) { - GOOGLE_DCHECK(_impl_.package_ != nullptr); + ABSL_DCHECK(_impl_.package_ != nullptr); _impl_.package_->Clear(); } if (cached_has_bits & 0x00000008u) { - GOOGLE_DCHECK(_impl_.part_ != nullptr); + ABSL_DCHECK(_impl_.part_ != nullptr); _impl_.part_->Clear(); } } if (cached_has_bits & 0x00000030u) { - ::memset(&_impl_.index_, 0, static_cast( + ::memset(&_impl_.index_, 0, static_cast<::size_t>( reinterpret_cast(&_impl_.side_) - reinterpret_cast(&_impl_.index_)) + sizeof(_impl_.side_)); } _impl_._has_bits_.Clear(); - _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); + _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); } -const char* Component::_InternalParse(const char* ptr, ::_pbi::ParseContext* ctx) { -#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure - _Internal::HasBits has_bits{}; - while (!ctx->Done(&ptr)) { - uint32_t tag; - ptr = ::_pbi::ReadTag(ptr, &tag); - switch (tag >> 3) { - // optional string refDes = 1; - case 1: - if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 10)) { - auto str = _internal_mutable_refdes(); - ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); - CHK_(ptr); - CHK_(::_pbi::VerifyUTF8(str, "Odb.Lib.Protobuf.ProductModel.Component.refDes")); - } else - goto handle_unusual; - continue; - // optional string partName = 2; - case 2: - if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 18)) { - auto str = _internal_mutable_partname(); - ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); - CHK_(ptr); - CHK_(::_pbi::VerifyUTF8(str, "Odb.Lib.Protobuf.ProductModel.Component.partName")); - } else - goto handle_unusual; - continue; - // optional .Odb.Lib.Protobuf.ProductModel.Package package = 3; - case 3: - if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 26)) { - ptr = ctx->ParseMessage(_internal_mutable_package(), ptr); - CHK_(ptr); - } else - goto handle_unusual; - continue; - // optional uint32 index = 4; - case 4: - if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 32)) { - _Internal::set_has_index(&has_bits); - _impl_.index_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr); - CHK_(ptr); - } else - goto handle_unusual; - continue; - // optional .Odb.Lib.Protobuf.BoardSide side = 5; - case 5: - if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 40)) { - uint64_t val = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); - CHK_(ptr); - _internal_set_side(static_cast<::Odb::Lib::Protobuf::BoardSide>(val)); - } else - goto handle_unusual; - continue; - // optional .Odb.Lib.Protobuf.ProductModel.Part part = 6; - case 6: - if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 50)) { - ptr = ctx->ParseMessage(_internal_mutable_part(), ptr); - CHK_(ptr); - } else - goto handle_unusual; - continue; - default: - goto handle_unusual; - } // switch - handle_unusual: - if ((tag == 0) || ((tag & 7) == 4)) { - CHK_(ptr); - ctx->SetLastTag(tag); - goto message_done; - } - ptr = UnknownFieldParse( - tag, - _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(), - ptr, ctx); - CHK_(ptr != nullptr); - } // while -message_done: - _impl_._has_bits_.Or(has_bits); - return ptr; -failure: - ptr = nullptr; - goto message_done; -#undef CHK_ -} - -uint8_t* Component::_InternalSerialize( - uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { - // @@protoc_insertion_point(serialize_to_array_start:Odb.Lib.Protobuf.ProductModel.Component) - uint32_t cached_has_bits = 0; - (void) cached_has_bits; - - // optional string refDes = 1; - if (_internal_has_refdes()) { - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( - this->_internal_refdes().data(), static_cast(this->_internal_refdes().length()), - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, - "Odb.Lib.Protobuf.ProductModel.Component.refDes"); - target = stream->WriteStringMaybeAliased( - 1, this->_internal_refdes(), target); - } - - // optional string partName = 2; - if (_internal_has_partname()) { - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( - this->_internal_partname().data(), static_cast(this->_internal_partname().length()), - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, - "Odb.Lib.Protobuf.ProductModel.Component.partName"); - target = stream->WriteStringMaybeAliased( - 2, this->_internal_partname(), target); - } - - // optional .Odb.Lib.Protobuf.ProductModel.Package package = 3; - if (_internal_has_package()) { - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: - InternalWriteMessage(3, _Internal::package(this), - _Internal::package(this).GetCachedSize(), target, stream); - } - - // optional uint32 index = 4; - if (_internal_has_index()) { - target = stream->EnsureSpace(target); - target = ::_pbi::WireFormatLite::WriteUInt32ToArray(4, this->_internal_index(), target); - } - - // optional .Odb.Lib.Protobuf.BoardSide side = 5; - if (_internal_has_side()) { - target = stream->EnsureSpace(target); - target = ::_pbi::WireFormatLite::WriteEnumToArray( - 5, this->_internal_side(), target); - } - - // optional .Odb.Lib.Protobuf.ProductModel.Part part = 6; - if (_internal_has_part()) { - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: - InternalWriteMessage(6, _Internal::part(this), - _Internal::part(this).GetCachedSize(), target, stream); - } - - if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = ::_pbi::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:Odb.Lib.Protobuf.ProductModel.Component) - return target; -} - -size_t Component::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:Odb.Lib.Protobuf.ProductModel.Component) - size_t total_size = 0; - - uint32_t cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - cached_has_bits = _impl_._has_bits_[0]; - if (cached_has_bits & 0x0000003fu) { - // optional string refDes = 1; - if (cached_has_bits & 0x00000001u) { - total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( - this->_internal_refdes()); - } - - // optional string partName = 2; - if (cached_has_bits & 0x00000002u) { - total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( - this->_internal_partname()); - } - - // optional .Odb.Lib.Protobuf.ProductModel.Package package = 3; - if (cached_has_bits & 0x00000004u) { - total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( - *_impl_.package_); - } - - // optional .Odb.Lib.Protobuf.ProductModel.Part part = 6; - if (cached_has_bits & 0x00000008u) { - total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( - *_impl_.part_); - } - - // optional uint32 index = 4; - if (cached_has_bits & 0x00000010u) { - total_size += ::_pbi::WireFormatLite::UInt32SizePlusOne(this->_internal_index()); - } - - // optional .Odb.Lib.Protobuf.BoardSide side = 5; - if (cached_has_bits & 0x00000020u) { - total_size += 1 + - ::_pbi::WireFormatLite::EnumSize(this->_internal_side()); - } - - } - return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); -} - -const ::PROTOBUF_NAMESPACE_ID::Message::ClassData Component::_class_data_ = { - ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSourceCheck, - Component::MergeImpl -}; -const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*Component::GetClassData() const { return &_class_data_; } - - -void Component::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg) { +#if defined(PROTOBUF_CUSTOM_VTABLE) + ::uint8_t* Component::_InternalSerialize( + const MessageLite& base, ::uint8_t* target, + ::google::protobuf::io::EpsCopyOutputStream* stream) { + const Component& this_ = static_cast(base); +#else // PROTOBUF_CUSTOM_VTABLE + ::uint8_t* Component::_InternalSerialize( + ::uint8_t* target, + ::google::protobuf::io::EpsCopyOutputStream* stream) const { + const Component& this_ = *this; +#endif // PROTOBUF_CUSTOM_VTABLE + // @@protoc_insertion_point(serialize_to_array_start:Odb.Lib.Protobuf.ProductModel.Component) + ::uint32_t cached_has_bits = 0; + (void)cached_has_bits; + + cached_has_bits = this_._impl_._has_bits_[0]; + // optional string refDes = 1; + if (cached_has_bits & 0x00000001u) { + const std::string& _s = this_._internal_refdes(); + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + _s.data(), static_cast(_s.length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "Odb.Lib.Protobuf.ProductModel.Component.refDes"); + target = stream->WriteStringMaybeAliased(1, _s, target); + } + + // optional string partName = 2; + if (cached_has_bits & 0x00000002u) { + const std::string& _s = this_._internal_partname(); + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + _s.data(), static_cast(_s.length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "Odb.Lib.Protobuf.ProductModel.Component.partName"); + target = stream->WriteStringMaybeAliased(2, _s, target); + } + + // optional .Odb.Lib.Protobuf.ProductModel.Package package = 3; + if (cached_has_bits & 0x00000004u) { + target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( + 3, *this_._impl_.package_, this_._impl_.package_->GetCachedSize(), target, + stream); + } + + // optional uint32 index = 4; + if (cached_has_bits & 0x00000010u) { + target = stream->EnsureSpace(target); + target = ::_pbi::WireFormatLite::WriteUInt32ToArray( + 4, this_._internal_index(), target); + } + + // optional .Odb.Lib.Protobuf.BoardSide side = 5; + if (cached_has_bits & 0x00000020u) { + target = stream->EnsureSpace(target); + target = ::_pbi::WireFormatLite::WriteEnumToArray( + 5, this_._internal_side(), target); + } + + // optional .Odb.Lib.Protobuf.ProductModel.Part part = 6; + if (cached_has_bits & 0x00000008u) { + target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( + 6, *this_._impl_.part_, this_._impl_.part_->GetCachedSize(), target, + stream); + } + + if (PROTOBUF_PREDICT_FALSE(this_._internal_metadata_.have_unknown_fields())) { + target = + ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( + this_._internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); + } + // @@protoc_insertion_point(serialize_to_array_end:Odb.Lib.Protobuf.ProductModel.Component) + return target; + } + +#if defined(PROTOBUF_CUSTOM_VTABLE) + ::size_t Component::ByteSizeLong(const MessageLite& base) { + const Component& this_ = static_cast(base); +#else // PROTOBUF_CUSTOM_VTABLE + ::size_t Component::ByteSizeLong() const { + const Component& this_ = *this; +#endif // PROTOBUF_CUSTOM_VTABLE + // @@protoc_insertion_point(message_byte_size_start:Odb.Lib.Protobuf.ProductModel.Component) + ::size_t total_size = 0; + + ::uint32_t cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void)cached_has_bits; + + ::_pbi::Prefetch5LinesFrom7Lines(&this_); + cached_has_bits = this_._impl_._has_bits_[0]; + if (cached_has_bits & 0x0000003fu) { + // optional string refDes = 1; + if (cached_has_bits & 0x00000001u) { + total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize( + this_._internal_refdes()); + } + // optional string partName = 2; + if (cached_has_bits & 0x00000002u) { + total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize( + this_._internal_partname()); + } + // optional .Odb.Lib.Protobuf.ProductModel.Package package = 3; + if (cached_has_bits & 0x00000004u) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::MessageSize(*this_._impl_.package_); + } + // optional .Odb.Lib.Protobuf.ProductModel.Part part = 6; + if (cached_has_bits & 0x00000008u) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::MessageSize(*this_._impl_.part_); + } + // optional uint32 index = 4; + if (cached_has_bits & 0x00000010u) { + total_size += ::_pbi::WireFormatLite::UInt32SizePlusOne( + this_._internal_index()); + } + // optional .Odb.Lib.Protobuf.BoardSide side = 5; + if (cached_has_bits & 0x00000020u) { + total_size += 1 + + ::_pbi::WireFormatLite::EnumSize(this_._internal_side()); + } + } + return this_.MaybeComputeUnknownFieldsSize(total_size, + &this_._impl_._cached_size_); + } + +void Component::MergeImpl(::google::protobuf::MessageLite& to_msg, const ::google::protobuf::MessageLite& from_msg) { auto* const _this = static_cast(&to_msg); auto& from = static_cast(from_msg); + ::google::protobuf::Arena* arena = _this->GetArena(); // @@protoc_insertion_point(class_specific_merge_from_start:Odb.Lib.Protobuf.ProductModel.Component) - GOOGLE_DCHECK_NE(&from, _this); - uint32_t cached_has_bits = 0; + ABSL_DCHECK_NE(&from, _this); + ::uint32_t cached_has_bits = 0; (void) cached_has_bits; cached_has_bits = from._impl_._has_bits_[0]; @@ -508,12 +519,22 @@ void Component::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROT _this->_internal_set_partname(from._internal_partname()); } if (cached_has_bits & 0x00000004u) { - _this->_internal_mutable_package()->::Odb::Lib::Protobuf::ProductModel::Package::MergeFrom( - from._internal_package()); + ABSL_DCHECK(from._impl_.package_ != nullptr); + if (_this->_impl_.package_ == nullptr) { + _this->_impl_.package_ = + ::google::protobuf::Message::CopyConstruct<::Odb::Lib::Protobuf::ProductModel::Package>(arena, *from._impl_.package_); + } else { + _this->_impl_.package_->MergeFrom(*from._impl_.package_); + } } if (cached_has_bits & 0x00000008u) { - _this->_internal_mutable_part()->::Odb::Lib::Protobuf::ProductModel::Part::MergeFrom( - from._internal_part()); + ABSL_DCHECK(from._impl_.part_ != nullptr); + if (_this->_impl_.part_ == nullptr) { + _this->_impl_.part_ = + ::google::protobuf::Message::CopyConstruct<::Odb::Lib::Protobuf::ProductModel::Part>(arena, *from._impl_.part_); + } else { + _this->_impl_.part_->MergeFrom(*from._impl_.part_); + } } if (cached_has_bits & 0x00000010u) { _this->_impl_.index_ = from._impl_.index_; @@ -521,9 +542,9 @@ void Component::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROT if (cached_has_bits & 0x00000020u) { _this->_impl_.side_ = from._impl_.side_; } - _this->_impl_._has_bits_[0] |= cached_has_bits; } - _this->_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); + _this->_impl_._has_bits_[0] |= cached_has_bits; + _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); } void Component::CopyFrom(const Component& from) { @@ -533,25 +554,16 @@ void Component::CopyFrom(const Component& from) { MergeFrom(from); } -bool Component::IsInitialized() const { - return true; -} -void Component::InternalSwap(Component* other) { +void Component::InternalSwap(Component* PROTOBUF_RESTRICT other) { using std::swap; - auto* lhs_arena = GetArenaForAllocation(); - auto* rhs_arena = other->GetArenaForAllocation(); + auto* arena = GetArena(); + ABSL_DCHECK_EQ(arena, other->GetArena()); _internal_metadata_.InternalSwap(&other->_internal_metadata_); swap(_impl_._has_bits_[0], other->_impl_._has_bits_[0]); - ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( - &_impl_.refdes_, lhs_arena, - &other->_impl_.refdes_, rhs_arena - ); - ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( - &_impl_.partname_, lhs_arena, - &other->_impl_.partname_, rhs_arena - ); - ::PROTOBUF_NAMESPACE_ID::internal::memswap< + ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.refdes_, &other->_impl_.refdes_, arena); + ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.partname_, &other->_impl_.partname_, arena); + ::google::protobuf::internal::memswap< PROTOBUF_FIELD_OFFSET(Component, _impl_.side_) + sizeof(Component::_impl_.side_) - PROTOBUF_FIELD_OFFSET(Component, _impl_.package_)>( @@ -559,23 +571,21 @@ void Component::InternalSwap(Component* other) { reinterpret_cast(&other->_impl_.package_)); } -::PROTOBUF_NAMESPACE_ID::Metadata Component::GetMetadata() const { - return ::_pbi::AssignDescriptors( - &descriptor_table_component_2eproto_getter, &descriptor_table_component_2eproto_once, - file_level_metadata_component_2eproto[0]); +::google::protobuf::Metadata Component::GetMetadata() const { + return ::google::protobuf::Message::GetMetadataImpl(GetClassData()->full()); } - // @@protoc_insertion_point(namespace_scope) } // namespace ProductModel } // namespace Protobuf } // namespace Lib } // namespace Odb -PROTOBUF_NAMESPACE_OPEN -template<> PROTOBUF_NOINLINE ::Odb::Lib::Protobuf::ProductModel::Component* -Arena::CreateMaybeMessage< ::Odb::Lib::Protobuf::ProductModel::Component >(Arena* arena) { - return Arena::CreateMessageInternal< ::Odb::Lib::Protobuf::ProductModel::Component >(arena); -} -PROTOBUF_NAMESPACE_CLOSE - +namespace google { +namespace protobuf { +} // namespace protobuf +} // namespace google // @@protoc_insertion_point(global_scope) -#include +PROTOBUF_ATTRIBUTE_INIT_PRIORITY2 static ::std::false_type + _static_init2_ PROTOBUF_UNUSED = + (::_pbi::AddDescriptors(&descriptor_table_component_2eproto), + ::std::false_type{}); +#include "google/protobuf/port_undef.inc" diff --git a/OdbDesignLib/ProtoBuf/component.pb.h b/OdbDesignLib/ProtoBuf/component.pb.h index 6f2265fb..c708eca5 100644 --- a/OdbDesignLib/ProtoBuf/component.pb.h +++ b/OdbDesignLib/ProtoBuf/component.pb.h @@ -1,52 +1,59 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE // source: component.proto +// Protobuf C++ Version: 5.29.2 -#ifndef GOOGLE_PROTOBUF_INCLUDED_component_2eproto -#define GOOGLE_PROTOBUF_INCLUDED_component_2eproto +#ifndef component_2eproto_2epb_2eh +#define component_2eproto_2epb_2eh #include #include - -#include -#if PROTOBUF_VERSION < 3021000 -#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 3021012 < 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. +#include +#include + +#include "google/protobuf/runtime_version.h" +#if PROTOBUF_VERSION != 5029002 +#error "Protobuf C++ gencode is built with an incompatible version of" +#error "Protobuf C++ headers/runtime. See" +#error "https://protobuf.dev/support/cross-version-runtime-guarantee/#cpp" #endif - -#include -#include -#include -#include -#include -#include -#include -#include -#include // IWYU pragma: export -#include // IWYU pragma: export -#include +#include "google/protobuf/io/coded_stream.h" +#include "google/protobuf/arena.h" +#include "google/protobuf/arenastring.h" +#include "google/protobuf/generated_message_tctable_decl.h" +#include "google/protobuf/generated_message_util.h" +#include "google/protobuf/metadata_lite.h" +#include "google/protobuf/generated_message_reflection.h" +#include "google/protobuf/message.h" +#include "google/protobuf/message_lite.h" +#include "google/protobuf/repeated_field.h" // IWYU pragma: export +#include "google/protobuf/extension_set.h" // IWYU pragma: export +#include "google/protobuf/unknown_field_set.h" #include "enums.pb.h" #include "part.pb.h" #include "package.pb.h" // @@protoc_insertion_point(includes) -#include + +// Must be included last. +#include "google/protobuf/port_def.inc" + #define PROTOBUF_INTERNAL_EXPORT_component_2eproto ODBDESIGN_EXPORT -PROTOBUF_NAMESPACE_OPEN + +namespace google { +namespace protobuf { namespace internal { -class AnyMetadata; +template +::absl::string_view GetAnyMessageName(); } // namespace internal -PROTOBUF_NAMESPACE_CLOSE +} // namespace protobuf +} // namespace google // Internal implementation detail -- do not use these members. struct ODBDESIGN_EXPORT TableStruct_component_2eproto { - static const uint32_t offsets[]; + static const ::uint32_t offsets[]; }; -ODBDESIGN_EXPORT extern const ::PROTOBUF_NAMESPACE_ID::internal::DescriptorTable descriptor_table_component_2eproto; +ODBDESIGN_EXPORT extern const ::google::protobuf::internal::DescriptorTable + descriptor_table_component_2eproto; namespace Odb { namespace Lib { namespace Protobuf { @@ -58,9 +65,11 @@ ODBDESIGN_EXPORT extern ComponentDefaultTypeInternal _Component_default_instance } // namespace Protobuf } // namespace Lib } // namespace Odb -PROTOBUF_NAMESPACE_OPEN -template<> ODBDESIGN_EXPORT ::Odb::Lib::Protobuf::ProductModel::Component* Arena::CreateMaybeMessage<::Odb::Lib::Protobuf::ProductModel::Component>(Arena*); -PROTOBUF_NAMESPACE_CLOSE +namespace google { +namespace protobuf { +} // namespace protobuf +} // namespace google + namespace Odb { namespace Lib { namespace Protobuf { @@ -68,30 +77,36 @@ namespace ProductModel { // =================================================================== -class ODBDESIGN_EXPORT Component final : - public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:Odb.Lib.Protobuf.ProductModel.Component) */ { + +// ------------------------------------------------------------------- + +class ODBDESIGN_EXPORT Component final : public ::google::protobuf::Message +/* @@protoc_insertion_point(class_definition:Odb.Lib.Protobuf.ProductModel.Component) */ { public: inline Component() : Component(nullptr) {} - ~Component() override; - explicit PROTOBUF_CONSTEXPR Component(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); + ~Component() PROTOBUF_FINAL; - Component(const Component& from); - Component(Component&& from) noexcept - : Component() { - *this = ::std::move(from); +#if defined(PROTOBUF_CUSTOM_VTABLE) + void operator delete(Component* msg, std::destroying_delete_t) { + SharedDtor(*msg); + ::google::protobuf::internal::SizedDelete(msg, sizeof(Component)); } +#endif + + template + explicit PROTOBUF_CONSTEXPR Component( + ::google::protobuf::internal::ConstantInitialized); + inline Component(const Component& from) : Component(nullptr, from) {} + inline Component(Component&& from) noexcept + : Component(nullptr, std::move(from)) {} inline Component& operator=(const Component& from) { CopyFrom(from); return *this; } inline Component& operator=(Component&& from) noexcept { if (this == &from) return *this; - if (GetOwningArena() == from.GetOwningArena() - #ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetOwningArena() != nullptr - #endif // !PROTOBUF_FORCE_COPY_IN_MOVE - ) { + if (::google::protobuf::internal::CanMoveWithInternalSwap(GetArena(), from.GetArena())) { InternalSwap(&from); } else { CopyFrom(from); @@ -99,13 +114,22 @@ class ODBDESIGN_EXPORT Component final : return *this; } - static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { + inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const + ABSL_ATTRIBUTE_LIFETIME_BOUND { + return _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance); + } + inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() + ABSL_ATTRIBUTE_LIFETIME_BOUND { + return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); + } + + static const ::google::protobuf::Descriptor* descriptor() { return GetDescriptor(); } - static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { + static const ::google::protobuf::Descriptor* GetDescriptor() { return default_instance().GetMetadata().descriptor; } - static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { + static const ::google::protobuf::Reflection* GetReflection() { return default_instance().GetMetadata().reflection; } static const Component& default_instance() { @@ -113,81 +137,94 @@ class ODBDESIGN_EXPORT Component final : } static inline const Component* internal_default_instance() { return reinterpret_cast( - &_Component_default_instance_); - } - static constexpr int kIndexInFileMessages = - 0; - - friend void swap(Component& a, Component& b) { - a.Swap(&b); + &_Component_default_instance_); } + static constexpr int kIndexInFileMessages = 0; + friend void swap(Component& a, Component& b) { a.Swap(&b); } inline void Swap(Component* other) { if (other == this) return; - #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetOwningArena() != nullptr && - GetOwningArena() == other->GetOwningArena()) { - #else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetOwningArena() == other->GetOwningArena()) { - #endif // !PROTOBUF_FORCE_COPY_IN_SWAP + if (::google::protobuf::internal::CanUseInternalSwap(GetArena(), other->GetArena())) { InternalSwap(other); } else { - ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); + ::google::protobuf::internal::GenericSwap(this, other); } } void UnsafeArenaSwap(Component* other) { if (other == this) return; - GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); + ABSL_DCHECK(GetArena() == other->GetArena()); InternalSwap(other); } // implements Message ---------------------------------------------- - Component* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); + Component* New(::google::protobuf::Arena* arena = nullptr) const { + return ::google::protobuf::Message::DefaultConstruct(arena); } - using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; + using ::google::protobuf::Message::CopyFrom; void CopyFrom(const Component& from); - using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; - void MergeFrom( const Component& from) { - Component::MergeImpl(*this, from); - } + using ::google::protobuf::Message::MergeFrom; + void MergeFrom(const Component& from) { Component::MergeImpl(*this, from); } + private: - static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg); + static void MergeImpl( + ::google::protobuf::MessageLite& to_msg, + const ::google::protobuf::MessageLite& from_msg); + public: - PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; - bool IsInitialized() const final; + bool IsInitialized() const { + return true; + } + ABSL_ATTRIBUTE_REINITIALIZES void Clear() PROTOBUF_FINAL; + #if defined(PROTOBUF_CUSTOM_VTABLE) + private: + static ::size_t ByteSizeLong(const ::google::protobuf::MessageLite& msg); + static ::uint8_t* _InternalSerialize( + const MessageLite& msg, ::uint8_t* target, + ::google::protobuf::io::EpsCopyOutputStream* stream); - size_t ByteSizeLong() const final; - const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final; - uint8_t* _InternalSerialize( - uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const final { return _impl_._cached_size_.Get(); } + public: + ::size_t ByteSizeLong() const { return ByteSizeLong(*this); } + ::uint8_t* _InternalSerialize( + ::uint8_t* target, + ::google::protobuf::io::EpsCopyOutputStream* stream) const { + return _InternalSerialize(*this, target, stream); + } + #else // PROTOBUF_CUSTOM_VTABLE + ::size_t ByteSizeLong() const final; + ::uint8_t* _InternalSerialize( + ::uint8_t* target, + ::google::protobuf::io::EpsCopyOutputStream* stream) const final; + #endif // PROTOBUF_CUSTOM_VTABLE + int GetCachedSize() const { return _impl_._cached_size_.Get(); } private: - void SharedCtor(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned); - void SharedDtor(); - void SetCachedSize(int size) const final; + void SharedCtor(::google::protobuf::Arena* arena); + static void SharedDtor(MessageLite& self); void InternalSwap(Component* other); - - private: - friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; - static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { - return "Odb.Lib.Protobuf.ProductModel.Component"; + private: + template + friend ::absl::string_view( + ::google::protobuf::internal::GetAnyMessageName)(); + static ::absl::string_view FullMessageName() { return "Odb.Lib.Protobuf.ProductModel.Component"; } + + protected: + explicit Component(::google::protobuf::Arena* arena); + Component(::google::protobuf::Arena* arena, const Component& from); + Component(::google::protobuf::Arena* arena, Component&& from) noexcept + : Component(arena) { + *this = ::std::move(from); } - protected: - explicit Component(::PROTOBUF_NAMESPACE_ID::Arena* arena, - bool is_message_owned = false); - public: - - static const ClassData _class_data_; - const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final; - - ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; + const ::google::protobuf::internal::ClassData* GetClassData() const PROTOBUF_FINAL; + static void* PlacementNew_(const void*, void* mem, + ::google::protobuf::Arena* arena); + static constexpr auto InternalNewImpl_(); + static const ::google::protobuf::internal::ClassDataFull _class_data_; + public: + ::google::protobuf::Metadata GetMetadata() const; // nested types ---------------------------------------------------- // accessors ------------------------------------------------------- - enum : int { kRefDesFieldNumber = 1, kPartNameFieldNumber = 2, @@ -198,294 +235,303 @@ class ODBDESIGN_EXPORT Component final : }; // optional string refDes = 1; bool has_refdes() const; - private: - bool _internal_has_refdes() const; - public: - void clear_refdes(); + void clear_refdes() ; const std::string& refdes() const; - template - void set_refdes(ArgT0&& arg0, ArgT... args); + template + void set_refdes(Arg_&& arg, Args_... args); std::string* mutable_refdes(); PROTOBUF_NODISCARD std::string* release_refdes(); - void set_allocated_refdes(std::string* refdes); + void set_allocated_refdes(std::string* value); + private: const std::string& _internal_refdes() const; - inline PROTOBUF_ALWAYS_INLINE void _internal_set_refdes(const std::string& value); + inline PROTOBUF_ALWAYS_INLINE void _internal_set_refdes( + const std::string& value); std::string* _internal_mutable_refdes(); - public: + public: // optional string partName = 2; bool has_partname() const; - private: - bool _internal_has_partname() const; - public: - void clear_partname(); + void clear_partname() ; const std::string& partname() const; - template - void set_partname(ArgT0&& arg0, ArgT... args); + template + void set_partname(Arg_&& arg, Args_... args); std::string* mutable_partname(); PROTOBUF_NODISCARD std::string* release_partname(); - void set_allocated_partname(std::string* partname); + void set_allocated_partname(std::string* value); + private: const std::string& _internal_partname() const; - inline PROTOBUF_ALWAYS_INLINE void _internal_set_partname(const std::string& value); + inline PROTOBUF_ALWAYS_INLINE void _internal_set_partname( + const std::string& value); std::string* _internal_mutable_partname(); - public: + public: // optional .Odb.Lib.Protobuf.ProductModel.Package package = 3; bool has_package() const; - private: - bool _internal_has_package() const; - public: - void clear_package(); + void clear_package() ; const ::Odb::Lib::Protobuf::ProductModel::Package& package() const; PROTOBUF_NODISCARD ::Odb::Lib::Protobuf::ProductModel::Package* release_package(); ::Odb::Lib::Protobuf::ProductModel::Package* mutable_package(); - void set_allocated_package(::Odb::Lib::Protobuf::ProductModel::Package* package); + void set_allocated_package(::Odb::Lib::Protobuf::ProductModel::Package* value); + void unsafe_arena_set_allocated_package(::Odb::Lib::Protobuf::ProductModel::Package* value); + ::Odb::Lib::Protobuf::ProductModel::Package* unsafe_arena_release_package(); + private: const ::Odb::Lib::Protobuf::ProductModel::Package& _internal_package() const; ::Odb::Lib::Protobuf::ProductModel::Package* _internal_mutable_package(); - public: - void unsafe_arena_set_allocated_package( - ::Odb::Lib::Protobuf::ProductModel::Package* package); - ::Odb::Lib::Protobuf::ProductModel::Package* unsafe_arena_release_package(); + public: // optional .Odb.Lib.Protobuf.ProductModel.Part part = 6; bool has_part() const; - private: - bool _internal_has_part() const; - public: - void clear_part(); + void clear_part() ; const ::Odb::Lib::Protobuf::ProductModel::Part& part() const; PROTOBUF_NODISCARD ::Odb::Lib::Protobuf::ProductModel::Part* release_part(); ::Odb::Lib::Protobuf::ProductModel::Part* mutable_part(); - void set_allocated_part(::Odb::Lib::Protobuf::ProductModel::Part* part); + void set_allocated_part(::Odb::Lib::Protobuf::ProductModel::Part* value); + void unsafe_arena_set_allocated_part(::Odb::Lib::Protobuf::ProductModel::Part* value); + ::Odb::Lib::Protobuf::ProductModel::Part* unsafe_arena_release_part(); + private: const ::Odb::Lib::Protobuf::ProductModel::Part& _internal_part() const; ::Odb::Lib::Protobuf::ProductModel::Part* _internal_mutable_part(); - public: - void unsafe_arena_set_allocated_part( - ::Odb::Lib::Protobuf::ProductModel::Part* part); - ::Odb::Lib::Protobuf::ProductModel::Part* unsafe_arena_release_part(); + public: // optional uint32 index = 4; bool has_index() const; + void clear_index() ; + ::uint32_t index() const; + void set_index(::uint32_t value); + private: - bool _internal_has_index() const; - public: - void clear_index(); - uint32_t index() const; - void set_index(uint32_t value); - private: - uint32_t _internal_index() const; - void _internal_set_index(uint32_t value); - public: + ::uint32_t _internal_index() const; + void _internal_set_index(::uint32_t value); + public: // optional .Odb.Lib.Protobuf.BoardSide side = 5; bool has_side() const; - private: - bool _internal_has_side() const; - public: - void clear_side(); + void clear_side() ; ::Odb::Lib::Protobuf::BoardSide side() const; void set_side(::Odb::Lib::Protobuf::BoardSide value); + private: ::Odb::Lib::Protobuf::BoardSide _internal_side() const; void _internal_set_side(::Odb::Lib::Protobuf::BoardSide value); - public: + public: // @@protoc_insertion_point(class_scope:Odb.Lib.Protobuf.ProductModel.Component) private: class _Internal; - - template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; - typedef void InternalArenaConstructable_; - typedef void DestructorSkippable_; + friend class ::google::protobuf::internal::TcParser; + static const ::google::protobuf::internal::TcParseTable< + 3, 6, 2, + 62, 2> + _table_; + + friend class ::google::protobuf::MessageLite; + friend class ::google::protobuf::Arena; + template + friend class ::google::protobuf::Arena::InternalHelper; + using InternalArenaConstructable_ = void; + using DestructorSkippable_ = void; struct Impl_ { - ::PROTOBUF_NAMESPACE_ID::internal::HasBits<1> _has_bits_; - mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; - ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr refdes_; - ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr partname_; + inline explicit constexpr Impl_( + ::google::protobuf::internal::ConstantInitialized) noexcept; + inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* arena); + inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* arena, const Impl_& from, + const Component& from_msg); + ::google::protobuf::internal::HasBits<1> _has_bits_; + ::google::protobuf::internal::CachedSize _cached_size_; + ::google::protobuf::internal::ArenaStringPtr refdes_; + ::google::protobuf::internal::ArenaStringPtr partname_; ::Odb::Lib::Protobuf::ProductModel::Package* package_; ::Odb::Lib::Protobuf::ProductModel::Part* part_; - uint32_t index_; + ::uint32_t index_; int side_; + PROTOBUF_TSAN_DECLARE_MEMBER }; union { Impl_ _impl_; }; friend struct ::TableStruct_component_2eproto; }; + // =================================================================== + + // =================================================================== + #ifdef __GNUC__ - #pragma GCC diagnostic push - #pragma GCC diagnostic ignored "-Wstrict-aliasing" +#pragma GCC diagnostic push +#pragma GCC diagnostic ignored "-Wstrict-aliasing" #endif // __GNUC__ +// ------------------------------------------------------------------- + // Component // optional string refDes = 1; -inline bool Component::_internal_has_refdes() const { +inline bool Component::has_refdes() const { bool value = (_impl_._has_bits_[0] & 0x00000001u) != 0; return value; } -inline bool Component::has_refdes() const { - return _internal_has_refdes(); -} inline void Component::clear_refdes() { + ::google::protobuf::internal::TSanWrite(&_impl_); _impl_.refdes_.ClearToEmpty(); _impl_._has_bits_[0] &= ~0x00000001u; } -inline const std::string& Component::refdes() const { +inline const std::string& Component::refdes() const + ABSL_ATTRIBUTE_LIFETIME_BOUND { // @@protoc_insertion_point(field_get:Odb.Lib.Protobuf.ProductModel.Component.refDes) return _internal_refdes(); } -template -inline PROTOBUF_ALWAYS_INLINE -void Component::set_refdes(ArgT0&& arg0, ArgT... args) { - _impl_._has_bits_[0] |= 0x00000001u; - _impl_.refdes_.Set(static_cast(arg0), args..., GetArenaForAllocation()); +template +inline PROTOBUF_ALWAYS_INLINE void Component::set_refdes(Arg_&& arg, + Args_... args) { + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_._has_bits_[0] |= 0x00000001u; + _impl_.refdes_.Set(static_cast(arg), args..., GetArena()); // @@protoc_insertion_point(field_set:Odb.Lib.Protobuf.ProductModel.Component.refDes) } -inline std::string* Component::mutable_refdes() { +inline std::string* Component::mutable_refdes() ABSL_ATTRIBUTE_LIFETIME_BOUND { std::string* _s = _internal_mutable_refdes(); // @@protoc_insertion_point(field_mutable:Odb.Lib.Protobuf.ProductModel.Component.refDes) return _s; } inline const std::string& Component::_internal_refdes() const { + ::google::protobuf::internal::TSanRead(&_impl_); return _impl_.refdes_.Get(); } inline void Component::_internal_set_refdes(const std::string& value) { + ::google::protobuf::internal::TSanWrite(&_impl_); _impl_._has_bits_[0] |= 0x00000001u; - _impl_.refdes_.Set(value, GetArenaForAllocation()); + _impl_.refdes_.Set(value, GetArena()); } inline std::string* Component::_internal_mutable_refdes() { + ::google::protobuf::internal::TSanWrite(&_impl_); _impl_._has_bits_[0] |= 0x00000001u; - return _impl_.refdes_.Mutable(GetArenaForAllocation()); + return _impl_.refdes_.Mutable( GetArena()); } inline std::string* Component::release_refdes() { + ::google::protobuf::internal::TSanWrite(&_impl_); // @@protoc_insertion_point(field_release:Odb.Lib.Protobuf.ProductModel.Component.refDes) - if (!_internal_has_refdes()) { + if ((_impl_._has_bits_[0] & 0x00000001u) == 0) { return nullptr; } _impl_._has_bits_[0] &= ~0x00000001u; - auto* p = _impl_.refdes_.Release(); -#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (_impl_.refdes_.IsDefault()) { - _impl_.refdes_.Set("", GetArenaForAllocation()); + auto* released = _impl_.refdes_.Release(); + if (::google::protobuf::internal::DebugHardenForceCopyDefaultString()) { + _impl_.refdes_.Set("", GetArena()); } -#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING - return p; + return released; } -inline void Component::set_allocated_refdes(std::string* refdes) { - if (refdes != nullptr) { +inline void Component::set_allocated_refdes(std::string* value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + if (value != nullptr) { _impl_._has_bits_[0] |= 0x00000001u; } else { _impl_._has_bits_[0] &= ~0x00000001u; } - _impl_.refdes_.SetAllocated(refdes, GetArenaForAllocation()); -#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (_impl_.refdes_.IsDefault()) { - _impl_.refdes_.Set("", GetArenaForAllocation()); + _impl_.refdes_.SetAllocated(value, GetArena()); + if (::google::protobuf::internal::DebugHardenForceCopyDefaultString() && _impl_.refdes_.IsDefault()) { + _impl_.refdes_.Set("", GetArena()); } -#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING // @@protoc_insertion_point(field_set_allocated:Odb.Lib.Protobuf.ProductModel.Component.refDes) } // optional string partName = 2; -inline bool Component::_internal_has_partname() const { +inline bool Component::has_partname() const { bool value = (_impl_._has_bits_[0] & 0x00000002u) != 0; return value; } -inline bool Component::has_partname() const { - return _internal_has_partname(); -} inline void Component::clear_partname() { + ::google::protobuf::internal::TSanWrite(&_impl_); _impl_.partname_.ClearToEmpty(); _impl_._has_bits_[0] &= ~0x00000002u; } -inline const std::string& Component::partname() const { +inline const std::string& Component::partname() const + ABSL_ATTRIBUTE_LIFETIME_BOUND { // @@protoc_insertion_point(field_get:Odb.Lib.Protobuf.ProductModel.Component.partName) return _internal_partname(); } -template -inline PROTOBUF_ALWAYS_INLINE -void Component::set_partname(ArgT0&& arg0, ArgT... args) { - _impl_._has_bits_[0] |= 0x00000002u; - _impl_.partname_.Set(static_cast(arg0), args..., GetArenaForAllocation()); +template +inline PROTOBUF_ALWAYS_INLINE void Component::set_partname(Arg_&& arg, + Args_... args) { + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_._has_bits_[0] |= 0x00000002u; + _impl_.partname_.Set(static_cast(arg), args..., GetArena()); // @@protoc_insertion_point(field_set:Odb.Lib.Protobuf.ProductModel.Component.partName) } -inline std::string* Component::mutable_partname() { +inline std::string* Component::mutable_partname() ABSL_ATTRIBUTE_LIFETIME_BOUND { std::string* _s = _internal_mutable_partname(); // @@protoc_insertion_point(field_mutable:Odb.Lib.Protobuf.ProductModel.Component.partName) return _s; } inline const std::string& Component::_internal_partname() const { + ::google::protobuf::internal::TSanRead(&_impl_); return _impl_.partname_.Get(); } inline void Component::_internal_set_partname(const std::string& value) { + ::google::protobuf::internal::TSanWrite(&_impl_); _impl_._has_bits_[0] |= 0x00000002u; - _impl_.partname_.Set(value, GetArenaForAllocation()); + _impl_.partname_.Set(value, GetArena()); } inline std::string* Component::_internal_mutable_partname() { + ::google::protobuf::internal::TSanWrite(&_impl_); _impl_._has_bits_[0] |= 0x00000002u; - return _impl_.partname_.Mutable(GetArenaForAllocation()); + return _impl_.partname_.Mutable( GetArena()); } inline std::string* Component::release_partname() { + ::google::protobuf::internal::TSanWrite(&_impl_); // @@protoc_insertion_point(field_release:Odb.Lib.Protobuf.ProductModel.Component.partName) - if (!_internal_has_partname()) { + if ((_impl_._has_bits_[0] & 0x00000002u) == 0) { return nullptr; } _impl_._has_bits_[0] &= ~0x00000002u; - auto* p = _impl_.partname_.Release(); -#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (_impl_.partname_.IsDefault()) { - _impl_.partname_.Set("", GetArenaForAllocation()); + auto* released = _impl_.partname_.Release(); + if (::google::protobuf::internal::DebugHardenForceCopyDefaultString()) { + _impl_.partname_.Set("", GetArena()); } -#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING - return p; + return released; } -inline void Component::set_allocated_partname(std::string* partname) { - if (partname != nullptr) { +inline void Component::set_allocated_partname(std::string* value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + if (value != nullptr) { _impl_._has_bits_[0] |= 0x00000002u; } else { _impl_._has_bits_[0] &= ~0x00000002u; } - _impl_.partname_.SetAllocated(partname, GetArenaForAllocation()); -#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (_impl_.partname_.IsDefault()) { - _impl_.partname_.Set("", GetArenaForAllocation()); + _impl_.partname_.SetAllocated(value, GetArena()); + if (::google::protobuf::internal::DebugHardenForceCopyDefaultString() && _impl_.partname_.IsDefault()) { + _impl_.partname_.Set("", GetArena()); } -#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING // @@protoc_insertion_point(field_set_allocated:Odb.Lib.Protobuf.ProductModel.Component.partName) } // optional .Odb.Lib.Protobuf.ProductModel.Package package = 3; -inline bool Component::_internal_has_package() const { +inline bool Component::has_package() const { bool value = (_impl_._has_bits_[0] & 0x00000004u) != 0; PROTOBUF_ASSUME(!value || _impl_.package_ != nullptr); return value; } -inline bool Component::has_package() const { - return _internal_has_package(); -} inline const ::Odb::Lib::Protobuf::ProductModel::Package& Component::_internal_package() const { + ::google::protobuf::internal::TSanRead(&_impl_); const ::Odb::Lib::Protobuf::ProductModel::Package* p = _impl_.package_; - return p != nullptr ? *p : reinterpret_cast( - ::Odb::Lib::Protobuf::ProductModel::_Package_default_instance_); + return p != nullptr ? *p : reinterpret_cast(::Odb::Lib::Protobuf::ProductModel::_Package_default_instance_); } -inline const ::Odb::Lib::Protobuf::ProductModel::Package& Component::package() const { +inline const ::Odb::Lib::Protobuf::ProductModel::Package& Component::package() const ABSL_ATTRIBUTE_LIFETIME_BOUND { // @@protoc_insertion_point(field_get:Odb.Lib.Protobuf.ProductModel.Component.package) return _internal_package(); } -inline void Component::unsafe_arena_set_allocated_package( - ::Odb::Lib::Protobuf::ProductModel::Package* package) { - if (GetArenaForAllocation() == nullptr) { - delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(_impl_.package_); +inline void Component::unsafe_arena_set_allocated_package(::Odb::Lib::Protobuf::ProductModel::Package* value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + if (GetArena() == nullptr) { + delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.package_); } - _impl_.package_ = package; - if (package) { + _impl_.package_ = reinterpret_cast<::Odb::Lib::Protobuf::ProductModel::Package*>(value); + if (value != nullptr) { _impl_._has_bits_[0] |= 0x00000004u; } else { _impl_._has_bits_[0] &= ~0x00000004u; @@ -493,142 +539,146 @@ inline void Component::unsafe_arena_set_allocated_package( // @@protoc_insertion_point(field_unsafe_arena_set_allocated:Odb.Lib.Protobuf.ProductModel.Component.package) } inline ::Odb::Lib::Protobuf::ProductModel::Package* Component::release_package() { + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_._has_bits_[0] &= ~0x00000004u; - ::Odb::Lib::Protobuf::ProductModel::Package* temp = _impl_.package_; + ::Odb::Lib::Protobuf::ProductModel::Package* released = _impl_.package_; _impl_.package_ = nullptr; -#ifdef PROTOBUF_FORCE_COPY_IN_RELEASE - auto* old = reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(temp); - temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); - if (GetArenaForAllocation() == nullptr) { delete old; } -#else // PROTOBUF_FORCE_COPY_IN_RELEASE - if (GetArenaForAllocation() != nullptr) { - temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); - } -#endif // !PROTOBUF_FORCE_COPY_IN_RELEASE - return temp; + if (::google::protobuf::internal::DebugHardenForceCopyInRelease()) { + auto* old = reinterpret_cast<::google::protobuf::MessageLite*>(released); + released = ::google::protobuf::internal::DuplicateIfNonNull(released); + if (GetArena() == nullptr) { + delete old; + } + } else { + if (GetArena() != nullptr) { + released = ::google::protobuf::internal::DuplicateIfNonNull(released); + } + } + return released; } inline ::Odb::Lib::Protobuf::ProductModel::Package* Component::unsafe_arena_release_package() { + ::google::protobuf::internal::TSanWrite(&_impl_); // @@protoc_insertion_point(field_release:Odb.Lib.Protobuf.ProductModel.Component.package) + _impl_._has_bits_[0] &= ~0x00000004u; ::Odb::Lib::Protobuf::ProductModel::Package* temp = _impl_.package_; _impl_.package_ = nullptr; return temp; } inline ::Odb::Lib::Protobuf::ProductModel::Package* Component::_internal_mutable_package() { - _impl_._has_bits_[0] |= 0x00000004u; + ::google::protobuf::internal::TSanWrite(&_impl_); if (_impl_.package_ == nullptr) { - auto* p = CreateMaybeMessage<::Odb::Lib::Protobuf::ProductModel::Package>(GetArenaForAllocation()); - _impl_.package_ = p; + auto* p = ::google::protobuf::Message::DefaultConstruct<::Odb::Lib::Protobuf::ProductModel::Package>(GetArena()); + _impl_.package_ = reinterpret_cast<::Odb::Lib::Protobuf::ProductModel::Package*>(p); } return _impl_.package_; } -inline ::Odb::Lib::Protobuf::ProductModel::Package* Component::mutable_package() { +inline ::Odb::Lib::Protobuf::ProductModel::Package* Component::mutable_package() ABSL_ATTRIBUTE_LIFETIME_BOUND { + _impl_._has_bits_[0] |= 0x00000004u; ::Odb::Lib::Protobuf::ProductModel::Package* _msg = _internal_mutable_package(); // @@protoc_insertion_point(field_mutable:Odb.Lib.Protobuf.ProductModel.Component.package) return _msg; } -inline void Component::set_allocated_package(::Odb::Lib::Protobuf::ProductModel::Package* package) { - ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); +inline void Component::set_allocated_package(::Odb::Lib::Protobuf::ProductModel::Package* value) { + ::google::protobuf::Arena* message_arena = GetArena(); + ::google::protobuf::internal::TSanWrite(&_impl_); if (message_arena == nullptr) { - delete reinterpret_cast< ::PROTOBUF_NAMESPACE_ID::MessageLite*>(_impl_.package_); + delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.package_); } - if (package) { - ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = - ::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena( - reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(package)); + + if (value != nullptr) { + ::google::protobuf::Arena* submessage_arena = reinterpret_cast<::google::protobuf::MessageLite*>(value)->GetArena(); if (message_arena != submessage_arena) { - package = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( - message_arena, package, submessage_arena); + value = ::google::protobuf::internal::GetOwnedMessage(message_arena, value, submessage_arena); } _impl_._has_bits_[0] |= 0x00000004u; } else { _impl_._has_bits_[0] &= ~0x00000004u; } - _impl_.package_ = package; + + _impl_.package_ = reinterpret_cast<::Odb::Lib::Protobuf::ProductModel::Package*>(value); // @@protoc_insertion_point(field_set_allocated:Odb.Lib.Protobuf.ProductModel.Component.package) } // optional uint32 index = 4; -inline bool Component::_internal_has_index() const { +inline bool Component::has_index() const { bool value = (_impl_._has_bits_[0] & 0x00000010u) != 0; return value; } -inline bool Component::has_index() const { - return _internal_has_index(); -} inline void Component::clear_index() { + ::google::protobuf::internal::TSanWrite(&_impl_); _impl_.index_ = 0u; _impl_._has_bits_[0] &= ~0x00000010u; } -inline uint32_t Component::_internal_index() const { - return _impl_.index_; -} -inline uint32_t Component::index() const { +inline ::uint32_t Component::index() const { // @@protoc_insertion_point(field_get:Odb.Lib.Protobuf.ProductModel.Component.index) return _internal_index(); } -inline void Component::_internal_set_index(uint32_t value) { - _impl_._has_bits_[0] |= 0x00000010u; - _impl_.index_ = value; -} -inline void Component::set_index(uint32_t value) { +inline void Component::set_index(::uint32_t value) { _internal_set_index(value); + _impl_._has_bits_[0] |= 0x00000010u; // @@protoc_insertion_point(field_set:Odb.Lib.Protobuf.ProductModel.Component.index) } +inline ::uint32_t Component::_internal_index() const { + ::google::protobuf::internal::TSanRead(&_impl_); + return _impl_.index_; +} +inline void Component::_internal_set_index(::uint32_t value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.index_ = value; +} // optional .Odb.Lib.Protobuf.BoardSide side = 5; -inline bool Component::_internal_has_side() const { +inline bool Component::has_side() const { bool value = (_impl_._has_bits_[0] & 0x00000020u) != 0; return value; } -inline bool Component::has_side() const { - return _internal_has_side(); -} inline void Component::clear_side() { + ::google::protobuf::internal::TSanWrite(&_impl_); _impl_.side_ = 0; _impl_._has_bits_[0] &= ~0x00000020u; } -inline ::Odb::Lib::Protobuf::BoardSide Component::_internal_side() const { - return static_cast< ::Odb::Lib::Protobuf::BoardSide >(_impl_.side_); -} inline ::Odb::Lib::Protobuf::BoardSide Component::side() const { // @@protoc_insertion_point(field_get:Odb.Lib.Protobuf.ProductModel.Component.side) return _internal_side(); } -inline void Component::_internal_set_side(::Odb::Lib::Protobuf::BoardSide value) { - _impl_._has_bits_[0] |= 0x00000020u; - _impl_.side_ = value; -} inline void Component::set_side(::Odb::Lib::Protobuf::BoardSide value) { _internal_set_side(value); + _impl_._has_bits_[0] |= 0x00000020u; // @@protoc_insertion_point(field_set:Odb.Lib.Protobuf.ProductModel.Component.side) } +inline ::Odb::Lib::Protobuf::BoardSide Component::_internal_side() const { + ::google::protobuf::internal::TSanRead(&_impl_); + return static_cast<::Odb::Lib::Protobuf::BoardSide>(_impl_.side_); +} +inline void Component::_internal_set_side(::Odb::Lib::Protobuf::BoardSide value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.side_ = value; +} // optional .Odb.Lib.Protobuf.ProductModel.Part part = 6; -inline bool Component::_internal_has_part() const { +inline bool Component::has_part() const { bool value = (_impl_._has_bits_[0] & 0x00000008u) != 0; PROTOBUF_ASSUME(!value || _impl_.part_ != nullptr); return value; } -inline bool Component::has_part() const { - return _internal_has_part(); -} inline const ::Odb::Lib::Protobuf::ProductModel::Part& Component::_internal_part() const { + ::google::protobuf::internal::TSanRead(&_impl_); const ::Odb::Lib::Protobuf::ProductModel::Part* p = _impl_.part_; - return p != nullptr ? *p : reinterpret_cast( - ::Odb::Lib::Protobuf::ProductModel::_Part_default_instance_); + return p != nullptr ? *p : reinterpret_cast(::Odb::Lib::Protobuf::ProductModel::_Part_default_instance_); } -inline const ::Odb::Lib::Protobuf::ProductModel::Part& Component::part() const { +inline const ::Odb::Lib::Protobuf::ProductModel::Part& Component::part() const ABSL_ATTRIBUTE_LIFETIME_BOUND { // @@protoc_insertion_point(field_get:Odb.Lib.Protobuf.ProductModel.Component.part) return _internal_part(); } -inline void Component::unsafe_arena_set_allocated_part( - ::Odb::Lib::Protobuf::ProductModel::Part* part) { - if (GetArenaForAllocation() == nullptr) { - delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(_impl_.part_); +inline void Component::unsafe_arena_set_allocated_part(::Odb::Lib::Protobuf::ProductModel::Part* value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + if (GetArena() == nullptr) { + delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.part_); } - _impl_.part_ = part; - if (part) { + _impl_.part_ = reinterpret_cast<::Odb::Lib::Protobuf::ProductModel::Part*>(value); + if (value != nullptr) { _impl_._has_bits_[0] |= 0x00000008u; } else { _impl_._has_bits_[0] &= ~0x00000008u; @@ -636,73 +686,81 @@ inline void Component::unsafe_arena_set_allocated_part( // @@protoc_insertion_point(field_unsafe_arena_set_allocated:Odb.Lib.Protobuf.ProductModel.Component.part) } inline ::Odb::Lib::Protobuf::ProductModel::Part* Component::release_part() { + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_._has_bits_[0] &= ~0x00000008u; - ::Odb::Lib::Protobuf::ProductModel::Part* temp = _impl_.part_; + ::Odb::Lib::Protobuf::ProductModel::Part* released = _impl_.part_; _impl_.part_ = nullptr; -#ifdef PROTOBUF_FORCE_COPY_IN_RELEASE - auto* old = reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(temp); - temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); - if (GetArenaForAllocation() == nullptr) { delete old; } -#else // PROTOBUF_FORCE_COPY_IN_RELEASE - if (GetArenaForAllocation() != nullptr) { - temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); - } -#endif // !PROTOBUF_FORCE_COPY_IN_RELEASE - return temp; + if (::google::protobuf::internal::DebugHardenForceCopyInRelease()) { + auto* old = reinterpret_cast<::google::protobuf::MessageLite*>(released); + released = ::google::protobuf::internal::DuplicateIfNonNull(released); + if (GetArena() == nullptr) { + delete old; + } + } else { + if (GetArena() != nullptr) { + released = ::google::protobuf::internal::DuplicateIfNonNull(released); + } + } + return released; } inline ::Odb::Lib::Protobuf::ProductModel::Part* Component::unsafe_arena_release_part() { + ::google::protobuf::internal::TSanWrite(&_impl_); // @@protoc_insertion_point(field_release:Odb.Lib.Protobuf.ProductModel.Component.part) + _impl_._has_bits_[0] &= ~0x00000008u; ::Odb::Lib::Protobuf::ProductModel::Part* temp = _impl_.part_; _impl_.part_ = nullptr; return temp; } inline ::Odb::Lib::Protobuf::ProductModel::Part* Component::_internal_mutable_part() { - _impl_._has_bits_[0] |= 0x00000008u; + ::google::protobuf::internal::TSanWrite(&_impl_); if (_impl_.part_ == nullptr) { - auto* p = CreateMaybeMessage<::Odb::Lib::Protobuf::ProductModel::Part>(GetArenaForAllocation()); - _impl_.part_ = p; + auto* p = ::google::protobuf::Message::DefaultConstruct<::Odb::Lib::Protobuf::ProductModel::Part>(GetArena()); + _impl_.part_ = reinterpret_cast<::Odb::Lib::Protobuf::ProductModel::Part*>(p); } return _impl_.part_; } -inline ::Odb::Lib::Protobuf::ProductModel::Part* Component::mutable_part() { +inline ::Odb::Lib::Protobuf::ProductModel::Part* Component::mutable_part() ABSL_ATTRIBUTE_LIFETIME_BOUND { + _impl_._has_bits_[0] |= 0x00000008u; ::Odb::Lib::Protobuf::ProductModel::Part* _msg = _internal_mutable_part(); // @@protoc_insertion_point(field_mutable:Odb.Lib.Protobuf.ProductModel.Component.part) return _msg; } -inline void Component::set_allocated_part(::Odb::Lib::Protobuf::ProductModel::Part* part) { - ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); +inline void Component::set_allocated_part(::Odb::Lib::Protobuf::ProductModel::Part* value) { + ::google::protobuf::Arena* message_arena = GetArena(); + ::google::protobuf::internal::TSanWrite(&_impl_); if (message_arena == nullptr) { - delete reinterpret_cast< ::PROTOBUF_NAMESPACE_ID::MessageLite*>(_impl_.part_); + delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.part_); } - if (part) { - ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = - ::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena( - reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(part)); + + if (value != nullptr) { + ::google::protobuf::Arena* submessage_arena = reinterpret_cast<::google::protobuf::MessageLite*>(value)->GetArena(); if (message_arena != submessage_arena) { - part = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( - message_arena, part, submessage_arena); + value = ::google::protobuf::internal::GetOwnedMessage(message_arena, value, submessage_arena); } _impl_._has_bits_[0] |= 0x00000008u; } else { _impl_._has_bits_[0] &= ~0x00000008u; } - _impl_.part_ = part; + + _impl_.part_ = reinterpret_cast<::Odb::Lib::Protobuf::ProductModel::Part*>(value); // @@protoc_insertion_point(field_set_allocated:Odb.Lib.Protobuf.ProductModel.Component.part) } #ifdef __GNUC__ - #pragma GCC diagnostic pop +#pragma GCC diagnostic pop #endif // __GNUC__ // @@protoc_insertion_point(namespace_scope) - } // namespace ProductModel } // namespace Protobuf } // namespace Lib } // namespace Odb + // @@protoc_insertion_point(global_scope) -#include -#endif // GOOGLE_PROTOBUF_INCLUDED_GOOGLE_PROTOBUF_INCLUDED_component_2eproto +#include "google/protobuf/port_undef.inc" + +#endif // component_2eproto_2epb_2eh diff --git a/OdbDesignLib/ProtoBuf/componentsfile.pb.cc b/OdbDesignLib/ProtoBuf/componentsfile.pb.cc index a36eeddd..f43f23a3 100644 --- a/OdbDesignLib/ProtoBuf/componentsfile.pb.cc +++ b/OdbDesignLib/ProtoBuf/componentsfile.pb.cc @@ -1,539 +1,750 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE // source: componentsfile.proto +// Protobuf C++ Version: 5.29.2 #include "componentsfile.pb.h" #include - -#include -#include -#include -#include -#include -#include -#include +#include +#include "google/protobuf/io/coded_stream.h" +#include "google/protobuf/generated_message_tctable_impl.h" +#include "google/protobuf/extension_set.h" +#include "google/protobuf/generated_message_util.h" +#include "google/protobuf/wire_format_lite.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) -#include +// Must be included last. +#include "google/protobuf/port_def.inc" PROTOBUF_PRAGMA_INIT_SEG - -namespace _pb = ::PROTOBUF_NAMESPACE_ID; -namespace _pbi = _pb::internal; - +namespace _pb = ::google::protobuf; +namespace _pbi = ::google::protobuf::internal; +namespace _fl = ::google::protobuf::internal::field_layout; namespace Odb { namespace Lib { namespace Protobuf { -PROTOBUF_CONSTEXPR ComponentsFile_ComponentRecord_ToeprintRecord::ComponentsFile_ComponentRecord_ToeprintRecord( - ::_pbi::ConstantInitialized): _impl_{ - /*decltype(_impl_._has_bits_)*/{} - , /*decltype(_impl_._cached_size_)*/{} - , /*decltype(_impl_.name_)*/{&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}} - , /*decltype(_impl_.pinnumber_)*/0u - , /*decltype(_impl_.locationx_)*/0 - , /*decltype(_impl_.locationy_)*/0 - , /*decltype(_impl_.rotation_)*/0 - , /*decltype(_impl_.mirror_)*/false - , /*decltype(_impl_.netnumber_)*/0u - , /*decltype(_impl_.subnetnumber_)*/0u} {} + +inline constexpr ComponentsFile_ComponentRecord_ToeprintRecord::Impl_::Impl_( + ::_pbi::ConstantInitialized) noexcept + : _cached_size_{0}, + name_( + &::google::protobuf::internal::fixed_address_empty_string, + ::_pbi::ConstantInitialized()), + pinnumber_{0u}, + locationx_{0}, + locationy_{0}, + rotation_{0}, + mirror_{false}, + netnumber_{0u}, + subnetnumber_{0u} {} + +template +PROTOBUF_CONSTEXPR ComponentsFile_ComponentRecord_ToeprintRecord::ComponentsFile_ComponentRecord_ToeprintRecord(::_pbi::ConstantInitialized) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : ::google::protobuf::Message(_class_data_.base()), +#else // PROTOBUF_CUSTOM_VTABLE + : ::google::protobuf::Message(), +#endif // PROTOBUF_CUSTOM_VTABLE + _impl_(::_pbi::ConstantInitialized()) { +} struct ComponentsFile_ComponentRecord_ToeprintRecordDefaultTypeInternal { - PROTOBUF_CONSTEXPR ComponentsFile_ComponentRecord_ToeprintRecordDefaultTypeInternal() - : _instance(::_pbi::ConstantInitialized{}) {} + PROTOBUF_CONSTEXPR ComponentsFile_ComponentRecord_ToeprintRecordDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} ~ComponentsFile_ComponentRecord_ToeprintRecordDefaultTypeInternal() {} union { ComponentsFile_ComponentRecord_ToeprintRecord _instance; }; }; -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 ComponentsFile_ComponentRecord_ToeprintRecordDefaultTypeInternal _ComponentsFile_ComponentRecord_ToeprintRecord_default_instance_; -PROTOBUF_CONSTEXPR ComponentsFile_ComponentRecord_AttributeLookupTableEntry_DoNotUse::ComponentsFile_ComponentRecord_AttributeLookupTableEntry_DoNotUse( - ::_pbi::ConstantInitialized) {} + +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT ODBDESIGN_EXPORT + PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 ComponentsFile_ComponentRecord_ToeprintRecordDefaultTypeInternal _ComponentsFile_ComponentRecord_ToeprintRecord_default_instance_; + template +PROTOBUF_CONSTEXPR ComponentsFile_ComponentRecord_AttributeLookupTableEntry_DoNotUse::ComponentsFile_ComponentRecord_AttributeLookupTableEntry_DoNotUse(::_pbi::ConstantInitialized) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : ComponentsFile_ComponentRecord_AttributeLookupTableEntry_DoNotUse::MapEntry(_class_data_.base()){} +#else // PROTOBUF_CUSTOM_VTABLE + : ComponentsFile_ComponentRecord_AttributeLookupTableEntry_DoNotUse::MapEntry() { +} +#endif // PROTOBUF_CUSTOM_VTABLE struct ComponentsFile_ComponentRecord_AttributeLookupTableEntry_DoNotUseDefaultTypeInternal { - PROTOBUF_CONSTEXPR ComponentsFile_ComponentRecord_AttributeLookupTableEntry_DoNotUseDefaultTypeInternal() - : _instance(::_pbi::ConstantInitialized{}) {} + PROTOBUF_CONSTEXPR ComponentsFile_ComponentRecord_AttributeLookupTableEntry_DoNotUseDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} ~ComponentsFile_ComponentRecord_AttributeLookupTableEntry_DoNotUseDefaultTypeInternal() {} union { ComponentsFile_ComponentRecord_AttributeLookupTableEntry_DoNotUse _instance; }; }; -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 ComponentsFile_ComponentRecord_AttributeLookupTableEntry_DoNotUseDefaultTypeInternal _ComponentsFile_ComponentRecord_AttributeLookupTableEntry_DoNotUse_default_instance_; -PROTOBUF_CONSTEXPR ComponentsFile_ComponentRecord::ComponentsFile_ComponentRecord( - ::_pbi::ConstantInitialized): _impl_{ - /*decltype(_impl_._has_bits_)*/{} - , /*decltype(_impl_._cached_size_)*/{} - , /*decltype(_impl_.propertyrecords_)*/{} - , /*decltype(_impl_.toeprintrecords_)*/{} - , /*decltype(_impl_.attributelookuptable_)*/{::_pbi::ConstantInitialized()} - , /*decltype(_impl_.compname_)*/{&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}} - , /*decltype(_impl_.partname_)*/{&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}} - , /*decltype(_impl_.attributes_)*/{&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}} - , /*decltype(_impl_.pkgref_)*/0u - , /*decltype(_impl_.locationx_)*/0 - , /*decltype(_impl_.locationy_)*/0 - , /*decltype(_impl_.rotation_)*/0 - , /*decltype(_impl_.mirror_)*/false - , /*decltype(_impl_.id_)*/0u - , /*decltype(_impl_.index_)*/0u} {} -struct ComponentsFile_ComponentRecordDefaultTypeInternal { - PROTOBUF_CONSTEXPR ComponentsFile_ComponentRecordDefaultTypeInternal() - : _instance(::_pbi::ConstantInitialized{}) {} - ~ComponentsFile_ComponentRecordDefaultTypeInternal() {} - union { - ComponentsFile_ComponentRecord _instance; - }; -}; -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 ComponentsFile_ComponentRecordDefaultTypeInternal _ComponentsFile_ComponentRecord_default_instance_; -PROTOBUF_CONSTEXPR ComponentsFile_BomDescriptionRecord::ComponentsFile_BomDescriptionRecord( - ::_pbi::ConstantInitialized): _impl_{ - /*decltype(_impl_._has_bits_)*/{} - , /*decltype(_impl_._cached_size_)*/{} - , /*decltype(_impl_.descriptions_)*/{} - , /*decltype(_impl_.cpn_)*/{&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}} - , /*decltype(_impl_.pkg_)*/{&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}} - , /*decltype(_impl_.ipn_)*/{&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}} - , /*decltype(_impl_.vpl_vnd_)*/{&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}} - , /*decltype(_impl_.vpl_mpn_)*/{&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}} - , /*decltype(_impl_.vnd_)*/{&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}} - , /*decltype(_impl_.mpn_)*/{&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}}} {} + +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT ODBDESIGN_EXPORT + PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 ComponentsFile_ComponentRecord_AttributeLookupTableEntry_DoNotUseDefaultTypeInternal _ComponentsFile_ComponentRecord_AttributeLookupTableEntry_DoNotUse_default_instance_; + +inline constexpr ComponentsFile_BomDescriptionRecord::Impl_::Impl_( + ::_pbi::ConstantInitialized) noexcept + : _cached_size_{0}, + descriptions_{}, + cpn_( + &::google::protobuf::internal::fixed_address_empty_string, + ::_pbi::ConstantInitialized()), + pkg_( + &::google::protobuf::internal::fixed_address_empty_string, + ::_pbi::ConstantInitialized()), + ipn_( + &::google::protobuf::internal::fixed_address_empty_string, + ::_pbi::ConstantInitialized()), + vpl_vnd_( + &::google::protobuf::internal::fixed_address_empty_string, + ::_pbi::ConstantInitialized()), + vpl_mpn_( + &::google::protobuf::internal::fixed_address_empty_string, + ::_pbi::ConstantInitialized()), + vnd_( + &::google::protobuf::internal::fixed_address_empty_string, + ::_pbi::ConstantInitialized()), + mpn_( + &::google::protobuf::internal::fixed_address_empty_string, + ::_pbi::ConstantInitialized()) {} + +template +PROTOBUF_CONSTEXPR ComponentsFile_BomDescriptionRecord::ComponentsFile_BomDescriptionRecord(::_pbi::ConstantInitialized) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : ::google::protobuf::Message(_class_data_.base()), +#else // PROTOBUF_CUSTOM_VTABLE + : ::google::protobuf::Message(), +#endif // PROTOBUF_CUSTOM_VTABLE + _impl_(::_pbi::ConstantInitialized()) { +} struct ComponentsFile_BomDescriptionRecordDefaultTypeInternal { - PROTOBUF_CONSTEXPR ComponentsFile_BomDescriptionRecordDefaultTypeInternal() - : _instance(::_pbi::ConstantInitialized{}) {} + PROTOBUF_CONSTEXPR ComponentsFile_BomDescriptionRecordDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} ~ComponentsFile_BomDescriptionRecordDefaultTypeInternal() {} union { ComponentsFile_BomDescriptionRecord _instance; }; }; -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 ComponentsFile_BomDescriptionRecordDefaultTypeInternal _ComponentsFile_BomDescriptionRecord_default_instance_; -PROTOBUF_CONSTEXPR ComponentsFile_ComponentRecordsByNameEntry_DoNotUse::ComponentsFile_ComponentRecordsByNameEntry_DoNotUse( - ::_pbi::ConstantInitialized) {} -struct ComponentsFile_ComponentRecordsByNameEntry_DoNotUseDefaultTypeInternal { - PROTOBUF_CONSTEXPR ComponentsFile_ComponentRecordsByNameEntry_DoNotUseDefaultTypeInternal() - : _instance(::_pbi::ConstantInitialized{}) {} - ~ComponentsFile_ComponentRecordsByNameEntry_DoNotUseDefaultTypeInternal() {} - union { - ComponentsFile_ComponentRecordsByNameEntry_DoNotUse _instance; - }; -}; -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 ComponentsFile_ComponentRecordsByNameEntry_DoNotUseDefaultTypeInternal _ComponentsFile_ComponentRecordsByNameEntry_DoNotUse_default_instance_; -PROTOBUF_CONSTEXPR ComponentsFile_PropertyRecordsByNameEntry_DoNotUse::ComponentsFile_PropertyRecordsByNameEntry_DoNotUse( - ::_pbi::ConstantInitialized) {} + +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT ODBDESIGN_EXPORT + PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 ComponentsFile_BomDescriptionRecordDefaultTypeInternal _ComponentsFile_BomDescriptionRecord_default_instance_; + template +PROTOBUF_CONSTEXPR ComponentsFile_PropertyRecordsByNameEntry_DoNotUse::ComponentsFile_PropertyRecordsByNameEntry_DoNotUse(::_pbi::ConstantInitialized) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : ComponentsFile_PropertyRecordsByNameEntry_DoNotUse::MapEntry(_class_data_.base()){} +#else // PROTOBUF_CUSTOM_VTABLE + : ComponentsFile_PropertyRecordsByNameEntry_DoNotUse::MapEntry() { +} +#endif // PROTOBUF_CUSTOM_VTABLE struct ComponentsFile_PropertyRecordsByNameEntry_DoNotUseDefaultTypeInternal { - PROTOBUF_CONSTEXPR ComponentsFile_PropertyRecordsByNameEntry_DoNotUseDefaultTypeInternal() - : _instance(::_pbi::ConstantInitialized{}) {} + PROTOBUF_CONSTEXPR ComponentsFile_PropertyRecordsByNameEntry_DoNotUseDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} ~ComponentsFile_PropertyRecordsByNameEntry_DoNotUseDefaultTypeInternal() {} union { ComponentsFile_PropertyRecordsByNameEntry_DoNotUse _instance; }; }; -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 ComponentsFile_PropertyRecordsByNameEntry_DoNotUseDefaultTypeInternal _ComponentsFile_PropertyRecordsByNameEntry_DoNotUse_default_instance_; -PROTOBUF_CONSTEXPR ComponentsFile_BomDescriptionRecordsByCpnEntry_DoNotUse::ComponentsFile_BomDescriptionRecordsByCpnEntry_DoNotUse( - ::_pbi::ConstantInitialized) {} + +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT ODBDESIGN_EXPORT + PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 ComponentsFile_PropertyRecordsByNameEntry_DoNotUseDefaultTypeInternal _ComponentsFile_PropertyRecordsByNameEntry_DoNotUse_default_instance_; + +inline constexpr ComponentsFile_ComponentRecord::Impl_::Impl_( + ::_pbi::ConstantInitialized) noexcept + : _cached_size_{0}, + propertyrecords_{}, + toeprintrecords_{}, + attributelookuptable_{}, + compname_( + &::google::protobuf::internal::fixed_address_empty_string, + ::_pbi::ConstantInitialized()), + partname_( + &::google::protobuf::internal::fixed_address_empty_string, + ::_pbi::ConstantInitialized()), + attributes_( + &::google::protobuf::internal::fixed_address_empty_string, + ::_pbi::ConstantInitialized()), + pkgref_{0u}, + locationx_{0}, + locationy_{0}, + rotation_{0}, + mirror_{false}, + id_{0u}, + index_{0u} {} + +template +PROTOBUF_CONSTEXPR ComponentsFile_ComponentRecord::ComponentsFile_ComponentRecord(::_pbi::ConstantInitialized) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : ::google::protobuf::Message(_class_data_.base()), +#else // PROTOBUF_CUSTOM_VTABLE + : ::google::protobuf::Message(), +#endif // PROTOBUF_CUSTOM_VTABLE + _impl_(::_pbi::ConstantInitialized()) { +} +struct ComponentsFile_ComponentRecordDefaultTypeInternal { + PROTOBUF_CONSTEXPR ComponentsFile_ComponentRecordDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} + ~ComponentsFile_ComponentRecordDefaultTypeInternal() {} + union { + ComponentsFile_ComponentRecord _instance; + }; +}; + +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT ODBDESIGN_EXPORT + PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 ComponentsFile_ComponentRecordDefaultTypeInternal _ComponentsFile_ComponentRecord_default_instance_; + template +PROTOBUF_CONSTEXPR ComponentsFile_BomDescriptionRecordsByCpnEntry_DoNotUse::ComponentsFile_BomDescriptionRecordsByCpnEntry_DoNotUse(::_pbi::ConstantInitialized) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : ComponentsFile_BomDescriptionRecordsByCpnEntry_DoNotUse::MapEntry(_class_data_.base()){} +#else // PROTOBUF_CUSTOM_VTABLE + : ComponentsFile_BomDescriptionRecordsByCpnEntry_DoNotUse::MapEntry() { +} +#endif // PROTOBUF_CUSTOM_VTABLE struct ComponentsFile_BomDescriptionRecordsByCpnEntry_DoNotUseDefaultTypeInternal { - PROTOBUF_CONSTEXPR ComponentsFile_BomDescriptionRecordsByCpnEntry_DoNotUseDefaultTypeInternal() - : _instance(::_pbi::ConstantInitialized{}) {} + PROTOBUF_CONSTEXPR ComponentsFile_BomDescriptionRecordsByCpnEntry_DoNotUseDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} ~ComponentsFile_BomDescriptionRecordsByCpnEntry_DoNotUseDefaultTypeInternal() {} union { ComponentsFile_BomDescriptionRecordsByCpnEntry_DoNotUse _instance; }; }; -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 ComponentsFile_BomDescriptionRecordsByCpnEntry_DoNotUseDefaultTypeInternal _ComponentsFile_BomDescriptionRecordsByCpnEntry_DoNotUse_default_instance_; -PROTOBUF_CONSTEXPR ComponentsFile::ComponentsFile( - ::_pbi::ConstantInitialized): _impl_{ - /*decltype(_impl_._has_bits_)*/{} - , /*decltype(_impl_._cached_size_)*/{} - , /*decltype(_impl_.attributenames_)*/{} - , /*decltype(_impl_.attributetextvalues_)*/{} - , /*decltype(_impl_.componentrecords_)*/{} - , /*decltype(_impl_.componentrecordsbyname_)*/{::_pbi::ConstantInitialized()} - , /*decltype(_impl_.propertyrecords_)*/{} - , /*decltype(_impl_.propertyrecordsbyname_)*/{::_pbi::ConstantInitialized()} - , /*decltype(_impl_.bomdescriptionrecordsbycpn_)*/{::_pbi::ConstantInitialized()} - , /*decltype(_impl_.units_)*/{&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}} - , /*decltype(_impl_.layername_)*/{&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}} - , /*decltype(_impl_.path_)*/{&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}} - , /*decltype(_impl_.directory_)*/{&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}} - , /*decltype(_impl_.id_)*/0u - , /*decltype(_impl_.side_)*/0} {} + +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT ODBDESIGN_EXPORT + PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 ComponentsFile_BomDescriptionRecordsByCpnEntry_DoNotUseDefaultTypeInternal _ComponentsFile_BomDescriptionRecordsByCpnEntry_DoNotUse_default_instance_; + template +PROTOBUF_CONSTEXPR ComponentsFile_ComponentRecordsByNameEntry_DoNotUse::ComponentsFile_ComponentRecordsByNameEntry_DoNotUse(::_pbi::ConstantInitialized) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : ComponentsFile_ComponentRecordsByNameEntry_DoNotUse::MapEntry(_class_data_.base()){} +#else // PROTOBUF_CUSTOM_VTABLE + : ComponentsFile_ComponentRecordsByNameEntry_DoNotUse::MapEntry() { +} +#endif // PROTOBUF_CUSTOM_VTABLE +struct ComponentsFile_ComponentRecordsByNameEntry_DoNotUseDefaultTypeInternal { + PROTOBUF_CONSTEXPR ComponentsFile_ComponentRecordsByNameEntry_DoNotUseDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} + ~ComponentsFile_ComponentRecordsByNameEntry_DoNotUseDefaultTypeInternal() {} + union { + ComponentsFile_ComponentRecordsByNameEntry_DoNotUse _instance; + }; +}; + +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT ODBDESIGN_EXPORT + PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 ComponentsFile_ComponentRecordsByNameEntry_DoNotUseDefaultTypeInternal _ComponentsFile_ComponentRecordsByNameEntry_DoNotUse_default_instance_; + +inline constexpr ComponentsFile::Impl_::Impl_( + ::_pbi::ConstantInitialized) noexcept + : _cached_size_{0}, + attributenames_{}, + attributetextvalues_{}, + componentrecords_{}, + componentrecordsbyname_{}, + propertyrecords_{}, + propertyrecordsbyname_{}, + bomdescriptionrecordsbycpn_{}, + units_( + &::google::protobuf::internal::fixed_address_empty_string, + ::_pbi::ConstantInitialized()), + layername_( + &::google::protobuf::internal::fixed_address_empty_string, + ::_pbi::ConstantInitialized()), + path_( + &::google::protobuf::internal::fixed_address_empty_string, + ::_pbi::ConstantInitialized()), + directory_( + &::google::protobuf::internal::fixed_address_empty_string, + ::_pbi::ConstantInitialized()), + id_{0u}, + side_{static_cast< ::Odb::Lib::Protobuf::BoardSide >(0)} {} + +template +PROTOBUF_CONSTEXPR ComponentsFile::ComponentsFile(::_pbi::ConstantInitialized) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : ::google::protobuf::Message(_class_data_.base()), +#else // PROTOBUF_CUSTOM_VTABLE + : ::google::protobuf::Message(), +#endif // PROTOBUF_CUSTOM_VTABLE + _impl_(::_pbi::ConstantInitialized()) { +} struct ComponentsFileDefaultTypeInternal { - PROTOBUF_CONSTEXPR ComponentsFileDefaultTypeInternal() - : _instance(::_pbi::ConstantInitialized{}) {} + PROTOBUF_CONSTEXPR ComponentsFileDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} ~ComponentsFileDefaultTypeInternal() {} union { ComponentsFile _instance; }; }; -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 ComponentsFileDefaultTypeInternal _ComponentsFile_default_instance_; + +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT ODBDESIGN_EXPORT + PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 ComponentsFileDefaultTypeInternal _ComponentsFile_default_instance_; } // namespace Protobuf } // namespace Lib } // namespace Odb -static ::_pb::Metadata file_level_metadata_componentsfile_2eproto[8]; -static constexpr ::_pb::EnumDescriptor const** file_level_enum_descriptors_componentsfile_2eproto = nullptr; -static constexpr ::_pb::ServiceDescriptor const** file_level_service_descriptors_componentsfile_2eproto = nullptr; - -const uint32_t TableStruct_componentsfile_2eproto::offsets[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = { - PROTOBUF_FIELD_OFFSET(::Odb::Lib::Protobuf::ComponentsFile_ComponentRecord_ToeprintRecord, _impl_._has_bits_), - PROTOBUF_FIELD_OFFSET(::Odb::Lib::Protobuf::ComponentsFile_ComponentRecord_ToeprintRecord, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - ~0u, // no _inlined_string_donated_ - PROTOBUF_FIELD_OFFSET(::Odb::Lib::Protobuf::ComponentsFile_ComponentRecord_ToeprintRecord, _impl_.pinnumber_), - PROTOBUF_FIELD_OFFSET(::Odb::Lib::Protobuf::ComponentsFile_ComponentRecord_ToeprintRecord, _impl_.locationx_), - PROTOBUF_FIELD_OFFSET(::Odb::Lib::Protobuf::ComponentsFile_ComponentRecord_ToeprintRecord, _impl_.locationy_), - PROTOBUF_FIELD_OFFSET(::Odb::Lib::Protobuf::ComponentsFile_ComponentRecord_ToeprintRecord, _impl_.rotation_), - PROTOBUF_FIELD_OFFSET(::Odb::Lib::Protobuf::ComponentsFile_ComponentRecord_ToeprintRecord, _impl_.mirror_), - PROTOBUF_FIELD_OFFSET(::Odb::Lib::Protobuf::ComponentsFile_ComponentRecord_ToeprintRecord, _impl_.netnumber_), - PROTOBUF_FIELD_OFFSET(::Odb::Lib::Protobuf::ComponentsFile_ComponentRecord_ToeprintRecord, _impl_.subnetnumber_), - PROTOBUF_FIELD_OFFSET(::Odb::Lib::Protobuf::ComponentsFile_ComponentRecord_ToeprintRecord, _impl_.name_), - 1, - 2, - 3, - 4, - 5, - 6, - 7, - 0, - PROTOBUF_FIELD_OFFSET(::Odb::Lib::Protobuf::ComponentsFile_ComponentRecord_AttributeLookupTableEntry_DoNotUse, _has_bits_), - PROTOBUF_FIELD_OFFSET(::Odb::Lib::Protobuf::ComponentsFile_ComponentRecord_AttributeLookupTableEntry_DoNotUse, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - ~0u, // no _inlined_string_donated_ - PROTOBUF_FIELD_OFFSET(::Odb::Lib::Protobuf::ComponentsFile_ComponentRecord_AttributeLookupTableEntry_DoNotUse, key_), - PROTOBUF_FIELD_OFFSET(::Odb::Lib::Protobuf::ComponentsFile_ComponentRecord_AttributeLookupTableEntry_DoNotUse, value_), - 0, - 1, - PROTOBUF_FIELD_OFFSET(::Odb::Lib::Protobuf::ComponentsFile_ComponentRecord, _impl_._has_bits_), - PROTOBUF_FIELD_OFFSET(::Odb::Lib::Protobuf::ComponentsFile_ComponentRecord, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - ~0u, // no _inlined_string_donated_ - PROTOBUF_FIELD_OFFSET(::Odb::Lib::Protobuf::ComponentsFile_ComponentRecord, _impl_.pkgref_), - PROTOBUF_FIELD_OFFSET(::Odb::Lib::Protobuf::ComponentsFile_ComponentRecord, _impl_.locationx_), - PROTOBUF_FIELD_OFFSET(::Odb::Lib::Protobuf::ComponentsFile_ComponentRecord, _impl_.locationy_), - PROTOBUF_FIELD_OFFSET(::Odb::Lib::Protobuf::ComponentsFile_ComponentRecord, _impl_.rotation_), - PROTOBUF_FIELD_OFFSET(::Odb::Lib::Protobuf::ComponentsFile_ComponentRecord, _impl_.mirror_), - PROTOBUF_FIELD_OFFSET(::Odb::Lib::Protobuf::ComponentsFile_ComponentRecord, _impl_.compname_), - PROTOBUF_FIELD_OFFSET(::Odb::Lib::Protobuf::ComponentsFile_ComponentRecord, _impl_.partname_), - PROTOBUF_FIELD_OFFSET(::Odb::Lib::Protobuf::ComponentsFile_ComponentRecord, _impl_.attributes_), - PROTOBUF_FIELD_OFFSET(::Odb::Lib::Protobuf::ComponentsFile_ComponentRecord, _impl_.id_), - PROTOBUF_FIELD_OFFSET(::Odb::Lib::Protobuf::ComponentsFile_ComponentRecord, _impl_.index_), - PROTOBUF_FIELD_OFFSET(::Odb::Lib::Protobuf::ComponentsFile_ComponentRecord, _impl_.propertyrecords_), - PROTOBUF_FIELD_OFFSET(::Odb::Lib::Protobuf::ComponentsFile_ComponentRecord, _impl_.toeprintrecords_), - PROTOBUF_FIELD_OFFSET(::Odb::Lib::Protobuf::ComponentsFile_ComponentRecord, _impl_.attributelookuptable_), - 3, - 4, - 5, - 6, - 7, - 0, - 1, - 2, - 8, - 9, - ~0u, - ~0u, - ~0u, - PROTOBUF_FIELD_OFFSET(::Odb::Lib::Protobuf::ComponentsFile_BomDescriptionRecord, _impl_._has_bits_), - PROTOBUF_FIELD_OFFSET(::Odb::Lib::Protobuf::ComponentsFile_BomDescriptionRecord, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - ~0u, // no _inlined_string_donated_ - PROTOBUF_FIELD_OFFSET(::Odb::Lib::Protobuf::ComponentsFile_BomDescriptionRecord, _impl_.cpn_), - PROTOBUF_FIELD_OFFSET(::Odb::Lib::Protobuf::ComponentsFile_BomDescriptionRecord, _impl_.pkg_), - PROTOBUF_FIELD_OFFSET(::Odb::Lib::Protobuf::ComponentsFile_BomDescriptionRecord, _impl_.ipn_), - PROTOBUF_FIELD_OFFSET(::Odb::Lib::Protobuf::ComponentsFile_BomDescriptionRecord, _impl_.descriptions_), - PROTOBUF_FIELD_OFFSET(::Odb::Lib::Protobuf::ComponentsFile_BomDescriptionRecord, _impl_.vpl_vnd_), - PROTOBUF_FIELD_OFFSET(::Odb::Lib::Protobuf::ComponentsFile_BomDescriptionRecord, _impl_.vpl_mpn_), - PROTOBUF_FIELD_OFFSET(::Odb::Lib::Protobuf::ComponentsFile_BomDescriptionRecord, _impl_.vnd_), - PROTOBUF_FIELD_OFFSET(::Odb::Lib::Protobuf::ComponentsFile_BomDescriptionRecord, _impl_.mpn_), - 0, - 1, - 2, - ~0u, - 3, - 4, - 5, - 6, - PROTOBUF_FIELD_OFFSET(::Odb::Lib::Protobuf::ComponentsFile_ComponentRecordsByNameEntry_DoNotUse, _has_bits_), - PROTOBUF_FIELD_OFFSET(::Odb::Lib::Protobuf::ComponentsFile_ComponentRecordsByNameEntry_DoNotUse, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - ~0u, // no _inlined_string_donated_ - PROTOBUF_FIELD_OFFSET(::Odb::Lib::Protobuf::ComponentsFile_ComponentRecordsByNameEntry_DoNotUse, key_), - PROTOBUF_FIELD_OFFSET(::Odb::Lib::Protobuf::ComponentsFile_ComponentRecordsByNameEntry_DoNotUse, value_), - 0, - 1, - PROTOBUF_FIELD_OFFSET(::Odb::Lib::Protobuf::ComponentsFile_PropertyRecordsByNameEntry_DoNotUse, _has_bits_), - PROTOBUF_FIELD_OFFSET(::Odb::Lib::Protobuf::ComponentsFile_PropertyRecordsByNameEntry_DoNotUse, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - ~0u, // no _inlined_string_donated_ - PROTOBUF_FIELD_OFFSET(::Odb::Lib::Protobuf::ComponentsFile_PropertyRecordsByNameEntry_DoNotUse, key_), - PROTOBUF_FIELD_OFFSET(::Odb::Lib::Protobuf::ComponentsFile_PropertyRecordsByNameEntry_DoNotUse, value_), - 0, - 1, - PROTOBUF_FIELD_OFFSET(::Odb::Lib::Protobuf::ComponentsFile_BomDescriptionRecordsByCpnEntry_DoNotUse, _has_bits_), - PROTOBUF_FIELD_OFFSET(::Odb::Lib::Protobuf::ComponentsFile_BomDescriptionRecordsByCpnEntry_DoNotUse, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - ~0u, // no _inlined_string_donated_ - PROTOBUF_FIELD_OFFSET(::Odb::Lib::Protobuf::ComponentsFile_BomDescriptionRecordsByCpnEntry_DoNotUse, key_), - PROTOBUF_FIELD_OFFSET(::Odb::Lib::Protobuf::ComponentsFile_BomDescriptionRecordsByCpnEntry_DoNotUse, value_), - 0, - 1, - PROTOBUF_FIELD_OFFSET(::Odb::Lib::Protobuf::ComponentsFile, _impl_._has_bits_), - PROTOBUF_FIELD_OFFSET(::Odb::Lib::Protobuf::ComponentsFile, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - ~0u, // no _inlined_string_donated_ - PROTOBUF_FIELD_OFFSET(::Odb::Lib::Protobuf::ComponentsFile, _impl_.units_), - PROTOBUF_FIELD_OFFSET(::Odb::Lib::Protobuf::ComponentsFile, _impl_.id_), - PROTOBUF_FIELD_OFFSET(::Odb::Lib::Protobuf::ComponentsFile, _impl_.side_), - PROTOBUF_FIELD_OFFSET(::Odb::Lib::Protobuf::ComponentsFile, _impl_.layername_), - PROTOBUF_FIELD_OFFSET(::Odb::Lib::Protobuf::ComponentsFile, _impl_.path_), - PROTOBUF_FIELD_OFFSET(::Odb::Lib::Protobuf::ComponentsFile, _impl_.directory_), - PROTOBUF_FIELD_OFFSET(::Odb::Lib::Protobuf::ComponentsFile, _impl_.attributenames_), - PROTOBUF_FIELD_OFFSET(::Odb::Lib::Protobuf::ComponentsFile, _impl_.attributetextvalues_), - PROTOBUF_FIELD_OFFSET(::Odb::Lib::Protobuf::ComponentsFile, _impl_.componentrecords_), - PROTOBUF_FIELD_OFFSET(::Odb::Lib::Protobuf::ComponentsFile, _impl_.componentrecordsbyname_), - PROTOBUF_FIELD_OFFSET(::Odb::Lib::Protobuf::ComponentsFile, _impl_.propertyrecords_), - PROTOBUF_FIELD_OFFSET(::Odb::Lib::Protobuf::ComponentsFile, _impl_.propertyrecordsbyname_), - PROTOBUF_FIELD_OFFSET(::Odb::Lib::Protobuf::ComponentsFile, _impl_.bomdescriptionrecordsbycpn_), - 0, - 4, - 5, - 1, - 2, - 3, - ~0u, - ~0u, - ~0u, - ~0u, - ~0u, - ~0u, - ~0u, -}; -static const ::_pbi::MigrationSchema schemas[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = { - { 0, 14, -1, sizeof(::Odb::Lib::Protobuf::ComponentsFile_ComponentRecord_ToeprintRecord)}, - { 22, 30, -1, sizeof(::Odb::Lib::Protobuf::ComponentsFile_ComponentRecord_AttributeLookupTableEntry_DoNotUse)}, - { 32, 51, -1, sizeof(::Odb::Lib::Protobuf::ComponentsFile_ComponentRecord)}, - { 64, 78, -1, sizeof(::Odb::Lib::Protobuf::ComponentsFile_BomDescriptionRecord)}, - { 86, 94, -1, sizeof(::Odb::Lib::Protobuf::ComponentsFile_ComponentRecordsByNameEntry_DoNotUse)}, - { 96, 104, -1, sizeof(::Odb::Lib::Protobuf::ComponentsFile_PropertyRecordsByNameEntry_DoNotUse)}, - { 106, 114, -1, sizeof(::Odb::Lib::Protobuf::ComponentsFile_BomDescriptionRecordsByCpnEntry_DoNotUse)}, - { 116, 135, -1, sizeof(::Odb::Lib::Protobuf::ComponentsFile)}, +static constexpr const ::_pb::EnumDescriptor** + file_level_enum_descriptors_componentsfile_2eproto = nullptr; +static constexpr const ::_pb::ServiceDescriptor** + file_level_service_descriptors_componentsfile_2eproto = nullptr; +const ::uint32_t + TableStruct_componentsfile_2eproto::offsets[] ABSL_ATTRIBUTE_SECTION_VARIABLE( + protodesc_cold) = { + PROTOBUF_FIELD_OFFSET(::Odb::Lib::Protobuf::ComponentsFile_ComponentRecord_ToeprintRecord, _impl_._has_bits_), + PROTOBUF_FIELD_OFFSET(::Odb::Lib::Protobuf::ComponentsFile_ComponentRecord_ToeprintRecord, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + ~0u, // no _split_ + ~0u, // no sizeof(Split) + PROTOBUF_FIELD_OFFSET(::Odb::Lib::Protobuf::ComponentsFile_ComponentRecord_ToeprintRecord, _impl_.pinnumber_), + PROTOBUF_FIELD_OFFSET(::Odb::Lib::Protobuf::ComponentsFile_ComponentRecord_ToeprintRecord, _impl_.locationx_), + PROTOBUF_FIELD_OFFSET(::Odb::Lib::Protobuf::ComponentsFile_ComponentRecord_ToeprintRecord, _impl_.locationy_), + PROTOBUF_FIELD_OFFSET(::Odb::Lib::Protobuf::ComponentsFile_ComponentRecord_ToeprintRecord, _impl_.rotation_), + PROTOBUF_FIELD_OFFSET(::Odb::Lib::Protobuf::ComponentsFile_ComponentRecord_ToeprintRecord, _impl_.mirror_), + PROTOBUF_FIELD_OFFSET(::Odb::Lib::Protobuf::ComponentsFile_ComponentRecord_ToeprintRecord, _impl_.netnumber_), + PROTOBUF_FIELD_OFFSET(::Odb::Lib::Protobuf::ComponentsFile_ComponentRecord_ToeprintRecord, _impl_.subnetnumber_), + PROTOBUF_FIELD_OFFSET(::Odb::Lib::Protobuf::ComponentsFile_ComponentRecord_ToeprintRecord, _impl_.name_), + 1, + 2, + 3, + 4, + 5, + 6, + 7, + 0, + PROTOBUF_FIELD_OFFSET(::Odb::Lib::Protobuf::ComponentsFile_ComponentRecord_AttributeLookupTableEntry_DoNotUse, _impl_._has_bits_), + PROTOBUF_FIELD_OFFSET(::Odb::Lib::Protobuf::ComponentsFile_ComponentRecord_AttributeLookupTableEntry_DoNotUse, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + ~0u, // no _split_ + ~0u, // no sizeof(Split) + PROTOBUF_FIELD_OFFSET(::Odb::Lib::Protobuf::ComponentsFile_ComponentRecord_AttributeLookupTableEntry_DoNotUse, _impl_.key_), + PROTOBUF_FIELD_OFFSET(::Odb::Lib::Protobuf::ComponentsFile_ComponentRecord_AttributeLookupTableEntry_DoNotUse, _impl_.value_), + 0, + 1, + PROTOBUF_FIELD_OFFSET(::Odb::Lib::Protobuf::ComponentsFile_ComponentRecord, _impl_._has_bits_), + PROTOBUF_FIELD_OFFSET(::Odb::Lib::Protobuf::ComponentsFile_ComponentRecord, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + ~0u, // no _split_ + ~0u, // no sizeof(Split) + PROTOBUF_FIELD_OFFSET(::Odb::Lib::Protobuf::ComponentsFile_ComponentRecord, _impl_.pkgref_), + PROTOBUF_FIELD_OFFSET(::Odb::Lib::Protobuf::ComponentsFile_ComponentRecord, _impl_.locationx_), + PROTOBUF_FIELD_OFFSET(::Odb::Lib::Protobuf::ComponentsFile_ComponentRecord, _impl_.locationy_), + PROTOBUF_FIELD_OFFSET(::Odb::Lib::Protobuf::ComponentsFile_ComponentRecord, _impl_.rotation_), + PROTOBUF_FIELD_OFFSET(::Odb::Lib::Protobuf::ComponentsFile_ComponentRecord, _impl_.mirror_), + PROTOBUF_FIELD_OFFSET(::Odb::Lib::Protobuf::ComponentsFile_ComponentRecord, _impl_.compname_), + PROTOBUF_FIELD_OFFSET(::Odb::Lib::Protobuf::ComponentsFile_ComponentRecord, _impl_.partname_), + PROTOBUF_FIELD_OFFSET(::Odb::Lib::Protobuf::ComponentsFile_ComponentRecord, _impl_.attributes_), + PROTOBUF_FIELD_OFFSET(::Odb::Lib::Protobuf::ComponentsFile_ComponentRecord, _impl_.id_), + PROTOBUF_FIELD_OFFSET(::Odb::Lib::Protobuf::ComponentsFile_ComponentRecord, _impl_.index_), + PROTOBUF_FIELD_OFFSET(::Odb::Lib::Protobuf::ComponentsFile_ComponentRecord, _impl_.propertyrecords_), + PROTOBUF_FIELD_OFFSET(::Odb::Lib::Protobuf::ComponentsFile_ComponentRecord, _impl_.toeprintrecords_), + PROTOBUF_FIELD_OFFSET(::Odb::Lib::Protobuf::ComponentsFile_ComponentRecord, _impl_.attributelookuptable_), + 3, + 4, + 5, + 6, + 7, + 0, + 1, + 2, + 8, + 9, + ~0u, + ~0u, + ~0u, + PROTOBUF_FIELD_OFFSET(::Odb::Lib::Protobuf::ComponentsFile_BomDescriptionRecord, _impl_._has_bits_), + PROTOBUF_FIELD_OFFSET(::Odb::Lib::Protobuf::ComponentsFile_BomDescriptionRecord, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + ~0u, // no _split_ + ~0u, // no sizeof(Split) + PROTOBUF_FIELD_OFFSET(::Odb::Lib::Protobuf::ComponentsFile_BomDescriptionRecord, _impl_.cpn_), + PROTOBUF_FIELD_OFFSET(::Odb::Lib::Protobuf::ComponentsFile_BomDescriptionRecord, _impl_.pkg_), + PROTOBUF_FIELD_OFFSET(::Odb::Lib::Protobuf::ComponentsFile_BomDescriptionRecord, _impl_.ipn_), + PROTOBUF_FIELD_OFFSET(::Odb::Lib::Protobuf::ComponentsFile_BomDescriptionRecord, _impl_.descriptions_), + PROTOBUF_FIELD_OFFSET(::Odb::Lib::Protobuf::ComponentsFile_BomDescriptionRecord, _impl_.vpl_vnd_), + PROTOBUF_FIELD_OFFSET(::Odb::Lib::Protobuf::ComponentsFile_BomDescriptionRecord, _impl_.vpl_mpn_), + PROTOBUF_FIELD_OFFSET(::Odb::Lib::Protobuf::ComponentsFile_BomDescriptionRecord, _impl_.vnd_), + PROTOBUF_FIELD_OFFSET(::Odb::Lib::Protobuf::ComponentsFile_BomDescriptionRecord, _impl_.mpn_), + 0, + 1, + 2, + ~0u, + 3, + 4, + 5, + 6, + PROTOBUF_FIELD_OFFSET(::Odb::Lib::Protobuf::ComponentsFile_ComponentRecordsByNameEntry_DoNotUse, _impl_._has_bits_), + PROTOBUF_FIELD_OFFSET(::Odb::Lib::Protobuf::ComponentsFile_ComponentRecordsByNameEntry_DoNotUse, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + ~0u, // no _split_ + ~0u, // no sizeof(Split) + PROTOBUF_FIELD_OFFSET(::Odb::Lib::Protobuf::ComponentsFile_ComponentRecordsByNameEntry_DoNotUse, _impl_.key_), + PROTOBUF_FIELD_OFFSET(::Odb::Lib::Protobuf::ComponentsFile_ComponentRecordsByNameEntry_DoNotUse, _impl_.value_), + 0, + 1, + PROTOBUF_FIELD_OFFSET(::Odb::Lib::Protobuf::ComponentsFile_PropertyRecordsByNameEntry_DoNotUse, _impl_._has_bits_), + PROTOBUF_FIELD_OFFSET(::Odb::Lib::Protobuf::ComponentsFile_PropertyRecordsByNameEntry_DoNotUse, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + ~0u, // no _split_ + ~0u, // no sizeof(Split) + PROTOBUF_FIELD_OFFSET(::Odb::Lib::Protobuf::ComponentsFile_PropertyRecordsByNameEntry_DoNotUse, _impl_.key_), + PROTOBUF_FIELD_OFFSET(::Odb::Lib::Protobuf::ComponentsFile_PropertyRecordsByNameEntry_DoNotUse, _impl_.value_), + 0, + 1, + PROTOBUF_FIELD_OFFSET(::Odb::Lib::Protobuf::ComponentsFile_BomDescriptionRecordsByCpnEntry_DoNotUse, _impl_._has_bits_), + PROTOBUF_FIELD_OFFSET(::Odb::Lib::Protobuf::ComponentsFile_BomDescriptionRecordsByCpnEntry_DoNotUse, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + ~0u, // no _split_ + ~0u, // no sizeof(Split) + PROTOBUF_FIELD_OFFSET(::Odb::Lib::Protobuf::ComponentsFile_BomDescriptionRecordsByCpnEntry_DoNotUse, _impl_.key_), + PROTOBUF_FIELD_OFFSET(::Odb::Lib::Protobuf::ComponentsFile_BomDescriptionRecordsByCpnEntry_DoNotUse, _impl_.value_), + 0, + 1, + PROTOBUF_FIELD_OFFSET(::Odb::Lib::Protobuf::ComponentsFile, _impl_._has_bits_), + PROTOBUF_FIELD_OFFSET(::Odb::Lib::Protobuf::ComponentsFile, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + ~0u, // no _split_ + ~0u, // no sizeof(Split) + PROTOBUF_FIELD_OFFSET(::Odb::Lib::Protobuf::ComponentsFile, _impl_.units_), + PROTOBUF_FIELD_OFFSET(::Odb::Lib::Protobuf::ComponentsFile, _impl_.id_), + PROTOBUF_FIELD_OFFSET(::Odb::Lib::Protobuf::ComponentsFile, _impl_.side_), + PROTOBUF_FIELD_OFFSET(::Odb::Lib::Protobuf::ComponentsFile, _impl_.layername_), + PROTOBUF_FIELD_OFFSET(::Odb::Lib::Protobuf::ComponentsFile, _impl_.path_), + PROTOBUF_FIELD_OFFSET(::Odb::Lib::Protobuf::ComponentsFile, _impl_.directory_), + PROTOBUF_FIELD_OFFSET(::Odb::Lib::Protobuf::ComponentsFile, _impl_.attributenames_), + PROTOBUF_FIELD_OFFSET(::Odb::Lib::Protobuf::ComponentsFile, _impl_.attributetextvalues_), + PROTOBUF_FIELD_OFFSET(::Odb::Lib::Protobuf::ComponentsFile, _impl_.componentrecords_), + PROTOBUF_FIELD_OFFSET(::Odb::Lib::Protobuf::ComponentsFile, _impl_.componentrecordsbyname_), + PROTOBUF_FIELD_OFFSET(::Odb::Lib::Protobuf::ComponentsFile, _impl_.propertyrecords_), + PROTOBUF_FIELD_OFFSET(::Odb::Lib::Protobuf::ComponentsFile, _impl_.propertyrecordsbyname_), + PROTOBUF_FIELD_OFFSET(::Odb::Lib::Protobuf::ComponentsFile, _impl_.bomdescriptionrecordsbycpn_), + 0, + 4, + 5, + 1, + 2, + 3, + ~0u, + ~0u, + ~0u, + ~0u, + ~0u, + ~0u, + ~0u, }; +static const ::_pbi::MigrationSchema + schemas[] ABSL_ATTRIBUTE_SECTION_VARIABLE(protodesc_cold) = { + {0, 16, -1, sizeof(::Odb::Lib::Protobuf::ComponentsFile_ComponentRecord_ToeprintRecord)}, + {24, 34, -1, sizeof(::Odb::Lib::Protobuf::ComponentsFile_ComponentRecord_AttributeLookupTableEntry_DoNotUse)}, + {36, 57, -1, sizeof(::Odb::Lib::Protobuf::ComponentsFile_ComponentRecord)}, + {70, 86, -1, sizeof(::Odb::Lib::Protobuf::ComponentsFile_BomDescriptionRecord)}, + {94, 104, -1, sizeof(::Odb::Lib::Protobuf::ComponentsFile_ComponentRecordsByNameEntry_DoNotUse)}, + {106, 116, -1, sizeof(::Odb::Lib::Protobuf::ComponentsFile_PropertyRecordsByNameEntry_DoNotUse)}, + {118, 128, -1, sizeof(::Odb::Lib::Protobuf::ComponentsFile_BomDescriptionRecordsByCpnEntry_DoNotUse)}, + {130, 151, -1, sizeof(::Odb::Lib::Protobuf::ComponentsFile)}, +}; static const ::_pb::Message* const file_default_instances[] = { - &::Odb::Lib::Protobuf::_ComponentsFile_ComponentRecord_ToeprintRecord_default_instance_._instance, - &::Odb::Lib::Protobuf::_ComponentsFile_ComponentRecord_AttributeLookupTableEntry_DoNotUse_default_instance_._instance, - &::Odb::Lib::Protobuf::_ComponentsFile_ComponentRecord_default_instance_._instance, - &::Odb::Lib::Protobuf::_ComponentsFile_BomDescriptionRecord_default_instance_._instance, - &::Odb::Lib::Protobuf::_ComponentsFile_ComponentRecordsByNameEntry_DoNotUse_default_instance_._instance, - &::Odb::Lib::Protobuf::_ComponentsFile_PropertyRecordsByNameEntry_DoNotUse_default_instance_._instance, - &::Odb::Lib::Protobuf::_ComponentsFile_BomDescriptionRecordsByCpnEntry_DoNotUse_default_instance_._instance, - &::Odb::Lib::Protobuf::_ComponentsFile_default_instance_._instance, + &::Odb::Lib::Protobuf::_ComponentsFile_ComponentRecord_ToeprintRecord_default_instance_._instance, + &::Odb::Lib::Protobuf::_ComponentsFile_ComponentRecord_AttributeLookupTableEntry_DoNotUse_default_instance_._instance, + &::Odb::Lib::Protobuf::_ComponentsFile_ComponentRecord_default_instance_._instance, + &::Odb::Lib::Protobuf::_ComponentsFile_BomDescriptionRecord_default_instance_._instance, + &::Odb::Lib::Protobuf::_ComponentsFile_ComponentRecordsByNameEntry_DoNotUse_default_instance_._instance, + &::Odb::Lib::Protobuf::_ComponentsFile_PropertyRecordsByNameEntry_DoNotUse_default_instance_._instance, + &::Odb::Lib::Protobuf::_ComponentsFile_BomDescriptionRecordsByCpnEntry_DoNotUse_default_instance_._instance, + &::Odb::Lib::Protobuf::_ComponentsFile_default_instance_._instance, }; - -const char descriptor_table_protodef_componentsfile_2eproto[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = - "\n\024componentsfile.proto\022\020Odb.Lib.Protobuf" - "\032\014common.proto\032\013enums.proto\"\340\021\n\016Componen" - "tsFile\022\022\n\005units\030\001 \001(\tH\000\210\001\001\022\017\n\002id\030\002 \001(\rH\001" - "\210\001\001\022.\n\004side\030\003 \001(\0162\033.Odb.Lib.Protobuf.Boa" - "rdSideH\002\210\001\001\022\026\n\tlayerName\030\004 \001(\tH\003\210\001\001\022\021\n\004p" - "ath\030\005 \001(\tH\004\210\001\001\022\026\n\tdirectory\030\006 \001(\tH\005\210\001\001\022\026" - "\n\016attributeNames\030\007 \003(\t\022\033\n\023attributeTextV" - "alues\030\010 \003(\t\022J\n\020componentRecords\030\t \003(\01320." - "Odb.Lib.Protobuf.ComponentsFile.Componen" - "tRecord\022\\\n\026componentRecordsByName\030\n \003(\0132" - "<.Odb.Lib.Protobuf.ComponentsFile.Compon" - "entRecordsByNameEntry\0229\n\017propertyRecords" - "\030\013 \003(\0132 .Odb.Lib.Protobuf.PropertyRecord" - "\022Z\n\025propertyRecordsByName\030\014 \003(\0132;.Odb.Li" - "b.Protobuf.ComponentsFile.PropertyRecord" - "sByNameEntry\022d\n\032bomDescriptionRecordsByC" - "pn\030\r \003(\0132@.Odb.Lib.Protobuf.ComponentsFi" - "le.BomDescriptionRecordsByCpnEntry\032\332\007\n\017C" - "omponentRecord\022\023\n\006pkgRef\030\001 \001(\rH\000\210\001\001\022\026\n\tl" - "ocationX\030\002 \001(\002H\001\210\001\001\022\026\n\tlocationY\030\003 \001(\002H\002" - "\210\001\001\022\025\n\010rotation\030\004 \001(\002H\003\210\001\001\022\023\n\006mirror\030\005 \001" - "(\010H\004\210\001\001\022\025\n\010compName\030\006 \001(\tH\005\210\001\001\022\025\n\010partNa" - "me\030\007 \001(\tH\006\210\001\001\022\027\n\nattributes\030\010 \001(\tH\007\210\001\001\022\017" - "\n\002id\030\t \001(\rH\010\210\001\001\022\022\n\005index\030\n \001(\rH\t\210\001\001\0229\n\017p" - "ropertyRecords\030\013 \003(\0132 .Odb.Lib.Protobuf." - "PropertyRecord\022X\n\017toeprintRecords\030\014 \003(\0132" - "\?.Odb.Lib.Protobuf.ComponentsFile.Compon" - "entRecord.ToeprintRecord\022h\n\024attributeLoo" - "kupTable\030\r \003(\0132J.Odb.Lib.Protobuf.Compon" - "entsFile.ComponentRecord.AttributeLookup" - "TableEntry\032\264\002\n\016ToeprintRecord\022\026\n\tpinNumb" - "er\030\001 \001(\rH\000\210\001\001\022\026\n\tlocationX\030\002 \001(\002H\001\210\001\001\022\026\n" - "\tlocationY\030\003 \001(\002H\002\210\001\001\022\025\n\010rotation\030\004 \001(\002H" - "\003\210\001\001\022\023\n\006mirror\030\005 \001(\010H\004\210\001\001\022\026\n\tnetNumber\030\006" - " \001(\rH\005\210\001\001\022\031\n\014subnetNumber\030\007 \001(\rH\006\210\001\001\022\021\n\004" - "name\030\010 \001(\tH\007\210\001\001B\014\n\n_pinNumberB\014\n\n_locati" - "onXB\014\n\n_locationYB\013\n\t_rotationB\t\n\007_mirro" - "rB\014\n\n_netNumberB\017\n\r_subnetNumberB\007\n\005_nam" - "e\032;\n\031AttributeLookupTableEntry\022\013\n\003key\030\001 " - "\001(\t\022\r\n\005value\030\002 \001(\t:\0028\001B\t\n\007_pkgRefB\014\n\n_lo" - "cationXB\014\n\n_locationYB\013\n\t_rotationB\t\n\007_m" - "irrorB\013\n\t_compNameB\013\n\t_partNameB\r\n\013_attr" - "ibutesB\005\n\003_idB\010\n\006_index\032\362\001\n\024BomDescripti" - "onRecord\022\020\n\003cpn\030\001 \001(\tH\000\210\001\001\022\020\n\003pkg\030\002 \001(\tH" - "\001\210\001\001\022\020\n\003ipn\030\003 \001(\tH\002\210\001\001\022\024\n\014descriptions\030\004" - " \003(\t\022\024\n\007vpl_vnd\030\005 \001(\tH\003\210\001\001\022\024\n\007vpl_mpn\030\006 " - "\001(\tH\004\210\001\001\022\020\n\003vnd\030\007 \001(\tH\005\210\001\001\022\020\n\003mpn\030\010 \001(\tH" - "\006\210\001\001B\006\n\004_cpnB\006\n\004_pkgB\006\n\004_ipnB\n\n\010_vpl_vnd" - "B\n\n\010_vpl_mpnB\006\n\004_vndB\006\n\004_mpn\032o\n\033Componen" - "tRecordsByNameEntry\022\013\n\003key\030\001 \001(\t\022\?\n\005valu" - "e\030\002 \001(\01320.Odb.Lib.Protobuf.ComponentsFil" - "e.ComponentRecord:\0028\001\032^\n\032PropertyRecords" - "ByNameEntry\022\013\n\003key\030\001 \001(\t\022/\n\005value\030\002 \001(\0132" - " .Odb.Lib.Protobuf.PropertyRecord:\0028\001\032x\n" - "\037BomDescriptionRecordsByCpnEntry\022\013\n\003key\030" - "\001 \001(\t\022D\n\005value\030\002 \001(\01325.Odb.Lib.Protobuf." - "ComponentsFile.BomDescriptionRecord:\0028\001B" - "\010\n\006_unitsB\005\n\003_idB\007\n\005_sideB\014\n\n_layerNameB" - "\007\n\005_pathB\014\n\n_directoryb\006proto3" - ; -static const ::_pbi::DescriptorTable* const descriptor_table_componentsfile_2eproto_deps[2] = { - &::descriptor_table_common_2eproto, - &::descriptor_table_enums_2eproto, +const char descriptor_table_protodef_componentsfile_2eproto[] ABSL_ATTRIBUTE_SECTION_VARIABLE( + protodesc_cold) = { + "\n\024componentsfile.proto\022\020Odb.Lib.Protobuf" + "\032\014common.proto\032\013enums.proto\"\340\021\n\016Componen" + "tsFile\022\022\n\005units\030\001 \001(\tH\000\210\001\001\022\017\n\002id\030\002 \001(\rH\001" + "\210\001\001\022.\n\004side\030\003 \001(\0162\033.Odb.Lib.Protobuf.Boa" + "rdSideH\002\210\001\001\022\026\n\tlayerName\030\004 \001(\tH\003\210\001\001\022\021\n\004p" + "ath\030\005 \001(\tH\004\210\001\001\022\026\n\tdirectory\030\006 \001(\tH\005\210\001\001\022\026" + "\n\016attributeNames\030\007 \003(\t\022\033\n\023attributeTextV" + "alues\030\010 \003(\t\022J\n\020componentRecords\030\t \003(\01320." + "Odb.Lib.Protobuf.ComponentsFile.Componen" + "tRecord\022\\\n\026componentRecordsByName\030\n \003(\0132" + "<.Odb.Lib.Protobuf.ComponentsFile.Compon" + "entRecordsByNameEntry\0229\n\017propertyRecords" + "\030\013 \003(\0132 .Odb.Lib.Protobuf.PropertyRecord" + "\022Z\n\025propertyRecordsByName\030\014 \003(\0132;.Odb.Li" + "b.Protobuf.ComponentsFile.PropertyRecord" + "sByNameEntry\022d\n\032bomDescriptionRecordsByC" + "pn\030\r \003(\0132@.Odb.Lib.Protobuf.ComponentsFi" + "le.BomDescriptionRecordsByCpnEntry\032\332\007\n\017C" + "omponentRecord\022\023\n\006pkgRef\030\001 \001(\rH\000\210\001\001\022\026\n\tl" + "ocationX\030\002 \001(\002H\001\210\001\001\022\026\n\tlocationY\030\003 \001(\002H\002" + "\210\001\001\022\025\n\010rotation\030\004 \001(\002H\003\210\001\001\022\023\n\006mirror\030\005 \001" + "(\010H\004\210\001\001\022\025\n\010compName\030\006 \001(\tH\005\210\001\001\022\025\n\010partNa" + "me\030\007 \001(\tH\006\210\001\001\022\027\n\nattributes\030\010 \001(\tH\007\210\001\001\022\017" + "\n\002id\030\t \001(\rH\010\210\001\001\022\022\n\005index\030\n \001(\rH\t\210\001\001\0229\n\017p" + "ropertyRecords\030\013 \003(\0132 .Odb.Lib.Protobuf." + "PropertyRecord\022X\n\017toeprintRecords\030\014 \003(\0132" + "\?.Odb.Lib.Protobuf.ComponentsFile.Compon" + "entRecord.ToeprintRecord\022h\n\024attributeLoo" + "kupTable\030\r \003(\0132J.Odb.Lib.Protobuf.Compon" + "entsFile.ComponentRecord.AttributeLookup" + "TableEntry\032\264\002\n\016ToeprintRecord\022\026\n\tpinNumb" + "er\030\001 \001(\rH\000\210\001\001\022\026\n\tlocationX\030\002 \001(\002H\001\210\001\001\022\026\n" + "\tlocationY\030\003 \001(\002H\002\210\001\001\022\025\n\010rotation\030\004 \001(\002H" + "\003\210\001\001\022\023\n\006mirror\030\005 \001(\010H\004\210\001\001\022\026\n\tnetNumber\030\006" + " \001(\rH\005\210\001\001\022\031\n\014subnetNumber\030\007 \001(\rH\006\210\001\001\022\021\n\004" + "name\030\010 \001(\tH\007\210\001\001B\014\n\n_pinNumberB\014\n\n_locati" + "onXB\014\n\n_locationYB\013\n\t_rotationB\t\n\007_mirro" + "rB\014\n\n_netNumberB\017\n\r_subnetNumberB\007\n\005_nam" + "e\032;\n\031AttributeLookupTableEntry\022\013\n\003key\030\001 " + "\001(\t\022\r\n\005value\030\002 \001(\t:\0028\001B\t\n\007_pkgRefB\014\n\n_lo" + "cationXB\014\n\n_locationYB\013\n\t_rotationB\t\n\007_m" + "irrorB\013\n\t_compNameB\013\n\t_partNameB\r\n\013_attr" + "ibutesB\005\n\003_idB\010\n\006_index\032\362\001\n\024BomDescripti" + "onRecord\022\020\n\003cpn\030\001 \001(\tH\000\210\001\001\022\020\n\003pkg\030\002 \001(\tH" + "\001\210\001\001\022\020\n\003ipn\030\003 \001(\tH\002\210\001\001\022\024\n\014descriptions\030\004" + " \003(\t\022\024\n\007vpl_vnd\030\005 \001(\tH\003\210\001\001\022\024\n\007vpl_mpn\030\006 " + "\001(\tH\004\210\001\001\022\020\n\003vnd\030\007 \001(\tH\005\210\001\001\022\020\n\003mpn\030\010 \001(\tH" + "\006\210\001\001B\006\n\004_cpnB\006\n\004_pkgB\006\n\004_ipnB\n\n\010_vpl_vnd" + "B\n\n\010_vpl_mpnB\006\n\004_vndB\006\n\004_mpn\032o\n\033Componen" + "tRecordsByNameEntry\022\013\n\003key\030\001 \001(\t\022\?\n\005valu" + "e\030\002 \001(\01320.Odb.Lib.Protobuf.ComponentsFil" + "e.ComponentRecord:\0028\001\032^\n\032PropertyRecords" + "ByNameEntry\022\013\n\003key\030\001 \001(\t\022/\n\005value\030\002 \001(\0132" + " .Odb.Lib.Protobuf.PropertyRecord:\0028\001\032x\n" + "\037BomDescriptionRecordsByCpnEntry\022\013\n\003key\030" + "\001 \001(\t\022D\n\005value\030\002 \001(\01325.Odb.Lib.Protobuf." + "ComponentsFile.BomDescriptionRecord:\0028\001B" + "\010\n\006_unitsB\005\n\003_idB\007\n\005_sideB\014\n\n_layerNameB" + "\007\n\005_pathB\014\n\n_directoryb\006proto3" +}; +static const ::_pbi::DescriptorTable* const descriptor_table_componentsfile_2eproto_deps[2] = + { + &::descriptor_table_common_2eproto, + &::descriptor_table_enums_2eproto, }; -static ::_pbi::once_flag descriptor_table_componentsfile_2eproto_once; -const ::_pbi::DescriptorTable descriptor_table_componentsfile_2eproto = { - false, false, 2350, descriptor_table_protodef_componentsfile_2eproto, +static ::absl::once_flag descriptor_table_componentsfile_2eproto_once; +PROTOBUF_CONSTINIT const ::_pbi::DescriptorTable descriptor_table_componentsfile_2eproto = { + false, + false, + 2350, + descriptor_table_protodef_componentsfile_2eproto, "componentsfile.proto", - &descriptor_table_componentsfile_2eproto_once, descriptor_table_componentsfile_2eproto_deps, 2, 8, - schemas, file_default_instances, TableStruct_componentsfile_2eproto::offsets, - file_level_metadata_componentsfile_2eproto, file_level_enum_descriptors_componentsfile_2eproto, + &descriptor_table_componentsfile_2eproto_once, + descriptor_table_componentsfile_2eproto_deps, + 2, + 8, + schemas, + file_default_instances, + TableStruct_componentsfile_2eproto::offsets, + file_level_enum_descriptors_componentsfile_2eproto, file_level_service_descriptors_componentsfile_2eproto, }; -PROTOBUF_ATTRIBUTE_WEAK const ::_pbi::DescriptorTable* descriptor_table_componentsfile_2eproto_getter() { - return &descriptor_table_componentsfile_2eproto; -} - -// Force running AddDescriptors() at dynamic initialization time. -PROTOBUF_ATTRIBUTE_INIT_PRIORITY2 static ::_pbi::AddDescriptorsRunner dynamic_init_dummy_componentsfile_2eproto(&descriptor_table_componentsfile_2eproto); namespace Odb { namespace Lib { namespace Protobuf { - // =================================================================== class ComponentsFile_ComponentRecord_ToeprintRecord::_Internal { public: - using HasBits = decltype(std::declval()._impl_._has_bits_); - static void set_has_pinnumber(HasBits* has_bits) { - (*has_bits)[0] |= 2u; - } - static void set_has_locationx(HasBits* has_bits) { - (*has_bits)[0] |= 4u; - } - static void set_has_locationy(HasBits* has_bits) { - (*has_bits)[0] |= 8u; - } - static void set_has_rotation(HasBits* has_bits) { - (*has_bits)[0] |= 16u; - } - static void set_has_mirror(HasBits* has_bits) { - (*has_bits)[0] |= 32u; - } - static void set_has_netnumber(HasBits* has_bits) { - (*has_bits)[0] |= 64u; - } - static void set_has_subnetnumber(HasBits* has_bits) { - (*has_bits)[0] |= 128u; - } - static void set_has_name(HasBits* has_bits) { - (*has_bits)[0] |= 1u; - } + using HasBits = + decltype(std::declval()._impl_._has_bits_); + static constexpr ::int32_t kHasBitsOffset = + 8 * PROTOBUF_FIELD_OFFSET(ComponentsFile_ComponentRecord_ToeprintRecord, _impl_._has_bits_); }; -ComponentsFile_ComponentRecord_ToeprintRecord::ComponentsFile_ComponentRecord_ToeprintRecord(::PROTOBUF_NAMESPACE_ID::Arena* arena, - bool is_message_owned) - : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned) { - SharedCtor(arena, is_message_owned); +ComponentsFile_ComponentRecord_ToeprintRecord::ComponentsFile_ComponentRecord_ToeprintRecord(::google::protobuf::Arena* arena) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : ::google::protobuf::Message(arena, _class_data_.base()) { +#else // PROTOBUF_CUSTOM_VTABLE + : ::google::protobuf::Message(arena) { +#endif // PROTOBUF_CUSTOM_VTABLE + SharedCtor(arena); // @@protoc_insertion_point(arena_constructor:Odb.Lib.Protobuf.ComponentsFile.ComponentRecord.ToeprintRecord) } -ComponentsFile_ComponentRecord_ToeprintRecord::ComponentsFile_ComponentRecord_ToeprintRecord(const ComponentsFile_ComponentRecord_ToeprintRecord& from) - : ::PROTOBUF_NAMESPACE_ID::Message() { - ComponentsFile_ComponentRecord_ToeprintRecord* const _this = this; (void)_this; - new (&_impl_) Impl_{ - decltype(_impl_._has_bits_){from._impl_._has_bits_} - , /*decltype(_impl_._cached_size_)*/{} - , decltype(_impl_.name_){} - , decltype(_impl_.pinnumber_){} - , decltype(_impl_.locationx_){} - , decltype(_impl_.locationy_){} - , decltype(_impl_.rotation_){} - , decltype(_impl_.mirror_){} - , decltype(_impl_.netnumber_){} - , decltype(_impl_.subnetnumber_){}}; - - _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); - _impl_.name_.InitDefault(); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - _impl_.name_.Set("", GetArenaForAllocation()); - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (from._internal_has_name()) { - _this->_impl_.name_.Set(from._internal_name(), - _this->GetArenaForAllocation()); - } - ::memcpy(&_impl_.pinnumber_, &from._impl_.pinnumber_, - static_cast(reinterpret_cast(&_impl_.subnetnumber_) - - reinterpret_cast(&_impl_.pinnumber_)) + sizeof(_impl_.subnetnumber_)); +inline PROTOBUF_NDEBUG_INLINE ComponentsFile_ComponentRecord_ToeprintRecord::Impl_::Impl_( + ::google::protobuf::internal::InternalVisibility visibility, ::google::protobuf::Arena* arena, + const Impl_& from, const ::Odb::Lib::Protobuf::ComponentsFile_ComponentRecord_ToeprintRecord& from_msg) + : _has_bits_{from._has_bits_}, + _cached_size_{0}, + name_(arena, from.name_) {} + +ComponentsFile_ComponentRecord_ToeprintRecord::ComponentsFile_ComponentRecord_ToeprintRecord( + ::google::protobuf::Arena* arena, + const ComponentsFile_ComponentRecord_ToeprintRecord& from) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : ::google::protobuf::Message(arena, _class_data_.base()) { +#else // PROTOBUF_CUSTOM_VTABLE + : ::google::protobuf::Message(arena) { +#endif // PROTOBUF_CUSTOM_VTABLE + ComponentsFile_ComponentRecord_ToeprintRecord* const _this = this; + (void)_this; + _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( + from._internal_metadata_); + new (&_impl_) Impl_(internal_visibility(), arena, from._impl_, from); + ::memcpy(reinterpret_cast(&_impl_) + + offsetof(Impl_, pinnumber_), + reinterpret_cast(&from._impl_) + + offsetof(Impl_, pinnumber_), + offsetof(Impl_, subnetnumber_) - + offsetof(Impl_, pinnumber_) + + sizeof(Impl_::subnetnumber_)); + // @@protoc_insertion_point(copy_constructor:Odb.Lib.Protobuf.ComponentsFile.ComponentRecord.ToeprintRecord) } - -inline void ComponentsFile_ComponentRecord_ToeprintRecord::SharedCtor( - ::_pb::Arena* arena, bool is_message_owned) { - (void)arena; - (void)is_message_owned; - new (&_impl_) Impl_{ - decltype(_impl_._has_bits_){} - , /*decltype(_impl_._cached_size_)*/{} - , decltype(_impl_.name_){} - , decltype(_impl_.pinnumber_){0u} - , decltype(_impl_.locationx_){0} - , decltype(_impl_.locationy_){0} - , decltype(_impl_.rotation_){0} - , decltype(_impl_.mirror_){false} - , decltype(_impl_.netnumber_){0u} - , decltype(_impl_.subnetnumber_){0u} - }; - _impl_.name_.InitDefault(); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - _impl_.name_.Set("", GetArenaForAllocation()); - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING +inline PROTOBUF_NDEBUG_INLINE ComponentsFile_ComponentRecord_ToeprintRecord::Impl_::Impl_( + ::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* arena) + : _cached_size_{0}, + name_(arena) {} + +inline void ComponentsFile_ComponentRecord_ToeprintRecord::SharedCtor(::_pb::Arena* arena) { + new (&_impl_) Impl_(internal_visibility(), arena); + ::memset(reinterpret_cast(&_impl_) + + offsetof(Impl_, pinnumber_), + 0, + offsetof(Impl_, subnetnumber_) - + offsetof(Impl_, pinnumber_) + + sizeof(Impl_::subnetnumber_)); } - ComponentsFile_ComponentRecord_ToeprintRecord::~ComponentsFile_ComponentRecord_ToeprintRecord() { // @@protoc_insertion_point(destructor:Odb.Lib.Protobuf.ComponentsFile.ComponentRecord.ToeprintRecord) - if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) { - (void)arena; - return; - } - SharedDtor(); -} - -inline void ComponentsFile_ComponentRecord_ToeprintRecord::SharedDtor() { - GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); - _impl_.name_.Destroy(); -} - -void ComponentsFile_ComponentRecord_ToeprintRecord::SetCachedSize(int size) const { - _impl_._cached_size_.Set(size); -} + SharedDtor(*this); +} +inline void ComponentsFile_ComponentRecord_ToeprintRecord::SharedDtor(MessageLite& self) { + ComponentsFile_ComponentRecord_ToeprintRecord& this_ = static_cast(self); + this_._internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); + ABSL_DCHECK(this_.GetArena() == nullptr); + this_._impl_.name_.Destroy(); + this_._impl_.~Impl_(); +} + +inline void* ComponentsFile_ComponentRecord_ToeprintRecord::PlacementNew_(const void*, void* mem, + ::google::protobuf::Arena* arena) { + return ::new (mem) ComponentsFile_ComponentRecord_ToeprintRecord(arena); +} +constexpr auto ComponentsFile_ComponentRecord_ToeprintRecord::InternalNewImpl_() { + return ::google::protobuf::internal::MessageCreator::CopyInit(sizeof(ComponentsFile_ComponentRecord_ToeprintRecord), + alignof(ComponentsFile_ComponentRecord_ToeprintRecord)); +} +PROTOBUF_CONSTINIT +PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 +const ::google::protobuf::internal::ClassDataFull ComponentsFile_ComponentRecord_ToeprintRecord::_class_data_ = { + ::google::protobuf::internal::ClassData{ + &_ComponentsFile_ComponentRecord_ToeprintRecord_default_instance_._instance, + &_table_.header, + nullptr, // OnDemandRegisterArenaDtor + nullptr, // IsInitialized + &ComponentsFile_ComponentRecord_ToeprintRecord::MergeImpl, + ::google::protobuf::Message::GetNewImpl(), +#if defined(PROTOBUF_CUSTOM_VTABLE) + &ComponentsFile_ComponentRecord_ToeprintRecord::SharedDtor, + ::google::protobuf::Message::GetClearImpl(), &ComponentsFile_ComponentRecord_ToeprintRecord::ByteSizeLong, + &ComponentsFile_ComponentRecord_ToeprintRecord::_InternalSerialize, +#endif // PROTOBUF_CUSTOM_VTABLE + PROTOBUF_FIELD_OFFSET(ComponentsFile_ComponentRecord_ToeprintRecord, _impl_._cached_size_), + false, + }, + &ComponentsFile_ComponentRecord_ToeprintRecord::kDescriptorMethods, + &descriptor_table_componentsfile_2eproto, + nullptr, // tracker +}; +const ::google::protobuf::internal::ClassData* ComponentsFile_ComponentRecord_ToeprintRecord::GetClassData() const { + ::google::protobuf::internal::PrefetchToLocalCache(&_class_data_); + ::google::protobuf::internal::PrefetchToLocalCache(_class_data_.tc_table); + return _class_data_.base(); +} +PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 +const ::_pbi::TcParseTable<3, 8, 0, 83, 2> ComponentsFile_ComponentRecord_ToeprintRecord::_table_ = { + { + PROTOBUF_FIELD_OFFSET(ComponentsFile_ComponentRecord_ToeprintRecord, _impl_._has_bits_), + 0, // no _extensions_ + 8, 56, // max_field_number, fast_idx_mask + offsetof(decltype(_table_), field_lookup_table), + 4294967040, // skipmap + offsetof(decltype(_table_), field_entries), + 8, // num_field_entries + 0, // num_aux_entries + offsetof(decltype(_table_), field_names), // no aux_entries + _class_data_.base(), + nullptr, // post_loop_handler + ::_pbi::TcParser::GenericFallback, // fallback + #ifdef PROTOBUF_PREFETCH_PARSE_TABLE + ::_pbi::TcParser::GetTable<::Odb::Lib::Protobuf::ComponentsFile_ComponentRecord_ToeprintRecord>(), // to_prefetch + #endif // PROTOBUF_PREFETCH_PARSE_TABLE + }, {{ + // optional string name = 8; + {::_pbi::TcParser::FastUS1, + {66, 0, 0, PROTOBUF_FIELD_OFFSET(ComponentsFile_ComponentRecord_ToeprintRecord, _impl_.name_)}}, + // optional uint32 pinNumber = 1; + {::_pbi::TcParser::SingularVarintNoZag1<::uint32_t, offsetof(ComponentsFile_ComponentRecord_ToeprintRecord, _impl_.pinnumber_), 1>(), + {8, 1, 0, PROTOBUF_FIELD_OFFSET(ComponentsFile_ComponentRecord_ToeprintRecord, _impl_.pinnumber_)}}, + // optional float locationX = 2; + {::_pbi::TcParser::FastF32S1, + {21, 2, 0, PROTOBUF_FIELD_OFFSET(ComponentsFile_ComponentRecord_ToeprintRecord, _impl_.locationx_)}}, + // optional float locationY = 3; + {::_pbi::TcParser::FastF32S1, + {29, 3, 0, PROTOBUF_FIELD_OFFSET(ComponentsFile_ComponentRecord_ToeprintRecord, _impl_.locationy_)}}, + // optional float rotation = 4; + {::_pbi::TcParser::FastF32S1, + {37, 4, 0, PROTOBUF_FIELD_OFFSET(ComponentsFile_ComponentRecord_ToeprintRecord, _impl_.rotation_)}}, + // optional bool mirror = 5; + {::_pbi::TcParser::SingularVarintNoZag1(), + {40, 5, 0, PROTOBUF_FIELD_OFFSET(ComponentsFile_ComponentRecord_ToeprintRecord, _impl_.mirror_)}}, + // optional uint32 netNumber = 6; + {::_pbi::TcParser::SingularVarintNoZag1<::uint32_t, offsetof(ComponentsFile_ComponentRecord_ToeprintRecord, _impl_.netnumber_), 6>(), + {48, 6, 0, PROTOBUF_FIELD_OFFSET(ComponentsFile_ComponentRecord_ToeprintRecord, _impl_.netnumber_)}}, + // optional uint32 subnetNumber = 7; + {::_pbi::TcParser::SingularVarintNoZag1<::uint32_t, offsetof(ComponentsFile_ComponentRecord_ToeprintRecord, _impl_.subnetnumber_), 7>(), + {56, 7, 0, PROTOBUF_FIELD_OFFSET(ComponentsFile_ComponentRecord_ToeprintRecord, _impl_.subnetnumber_)}}, + }}, {{ + 65535, 65535 + }}, {{ + // optional uint32 pinNumber = 1; + {PROTOBUF_FIELD_OFFSET(ComponentsFile_ComponentRecord_ToeprintRecord, _impl_.pinnumber_), _Internal::kHasBitsOffset + 1, 0, + (0 | ::_fl::kFcOptional | ::_fl::kUInt32)}, + // optional float locationX = 2; + {PROTOBUF_FIELD_OFFSET(ComponentsFile_ComponentRecord_ToeprintRecord, _impl_.locationx_), _Internal::kHasBitsOffset + 2, 0, + (0 | ::_fl::kFcOptional | ::_fl::kFloat)}, + // optional float locationY = 3; + {PROTOBUF_FIELD_OFFSET(ComponentsFile_ComponentRecord_ToeprintRecord, _impl_.locationy_), _Internal::kHasBitsOffset + 3, 0, + (0 | ::_fl::kFcOptional | ::_fl::kFloat)}, + // optional float rotation = 4; + {PROTOBUF_FIELD_OFFSET(ComponentsFile_ComponentRecord_ToeprintRecord, _impl_.rotation_), _Internal::kHasBitsOffset + 4, 0, + (0 | ::_fl::kFcOptional | ::_fl::kFloat)}, + // optional bool mirror = 5; + {PROTOBUF_FIELD_OFFSET(ComponentsFile_ComponentRecord_ToeprintRecord, _impl_.mirror_), _Internal::kHasBitsOffset + 5, 0, + (0 | ::_fl::kFcOptional | ::_fl::kBool)}, + // optional uint32 netNumber = 6; + {PROTOBUF_FIELD_OFFSET(ComponentsFile_ComponentRecord_ToeprintRecord, _impl_.netnumber_), _Internal::kHasBitsOffset + 6, 0, + (0 | ::_fl::kFcOptional | ::_fl::kUInt32)}, + // optional uint32 subnetNumber = 7; + {PROTOBUF_FIELD_OFFSET(ComponentsFile_ComponentRecord_ToeprintRecord, _impl_.subnetnumber_), _Internal::kHasBitsOffset + 7, 0, + (0 | ::_fl::kFcOptional | ::_fl::kUInt32)}, + // optional string name = 8; + {PROTOBUF_FIELD_OFFSET(ComponentsFile_ComponentRecord_ToeprintRecord, _impl_.name_), _Internal::kHasBitsOffset + 0, 0, + (0 | ::_fl::kFcOptional | ::_fl::kUtf8String | ::_fl::kRepAString)}, + }}, + // no aux_entries + {{ + "\76\0\0\0\0\0\0\0\4\0\0\0\0\0\0\0" + "Odb.Lib.Protobuf.ComponentsFile.ComponentRecord.ToeprintRecord" + "name" + }}, +}; -void ComponentsFile_ComponentRecord_ToeprintRecord::Clear() { +PROTOBUF_NOINLINE void ComponentsFile_ComponentRecord_ToeprintRecord::Clear() { // @@protoc_insertion_point(message_clear_start:Odb.Lib.Protobuf.ComponentsFile.ComponentRecord.ToeprintRecord) - uint32_t cached_has_bits = 0; + ::google::protobuf::internal::TSanWrite(&_impl_); + ::uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; @@ -542,253 +753,160 @@ void ComponentsFile_ComponentRecord_ToeprintRecord::Clear() { _impl_.name_.ClearNonDefaultToEmpty(); } if (cached_has_bits & 0x000000feu) { - ::memset(&_impl_.pinnumber_, 0, static_cast( + ::memset(&_impl_.pinnumber_, 0, static_cast<::size_t>( reinterpret_cast(&_impl_.subnetnumber_) - reinterpret_cast(&_impl_.pinnumber_)) + sizeof(_impl_.subnetnumber_)); } _impl_._has_bits_.Clear(); - _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); -} - -const char* ComponentsFile_ComponentRecord_ToeprintRecord::_InternalParse(const char* ptr, ::_pbi::ParseContext* ctx) { -#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure - _Internal::HasBits has_bits{}; - while (!ctx->Done(&ptr)) { - uint32_t tag; - ptr = ::_pbi::ReadTag(ptr, &tag); - switch (tag >> 3) { - // optional uint32 pinNumber = 1; - case 1: - if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 8)) { - _Internal::set_has_pinnumber(&has_bits); - _impl_.pinnumber_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr); - CHK_(ptr); - } else - goto handle_unusual; - continue; - // optional float locationX = 2; - case 2: - if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 21)) { - _Internal::set_has_locationx(&has_bits); - _impl_.locationx_ = ::PROTOBUF_NAMESPACE_ID::internal::UnalignedLoad(ptr); - ptr += sizeof(float); - } else - goto handle_unusual; - continue; - // optional float locationY = 3; - case 3: - if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 29)) { - _Internal::set_has_locationy(&has_bits); - _impl_.locationy_ = ::PROTOBUF_NAMESPACE_ID::internal::UnalignedLoad(ptr); - ptr += sizeof(float); - } else - goto handle_unusual; - continue; - // optional float rotation = 4; - case 4: - if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 37)) { - _Internal::set_has_rotation(&has_bits); - _impl_.rotation_ = ::PROTOBUF_NAMESPACE_ID::internal::UnalignedLoad(ptr); - ptr += sizeof(float); - } else - goto handle_unusual; - continue; - // optional bool mirror = 5; - case 5: - if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 40)) { - _Internal::set_has_mirror(&has_bits); - _impl_.mirror_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); - CHK_(ptr); - } else - goto handle_unusual; - continue; - // optional uint32 netNumber = 6; - case 6: - if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 48)) { - _Internal::set_has_netnumber(&has_bits); - _impl_.netnumber_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr); - CHK_(ptr); - } else - goto handle_unusual; - continue; - // optional uint32 subnetNumber = 7; - case 7: - if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 56)) { - _Internal::set_has_subnetnumber(&has_bits); - _impl_.subnetnumber_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr); - CHK_(ptr); - } else - goto handle_unusual; - continue; - // optional string name = 8; - case 8: - if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 66)) { - auto str = _internal_mutable_name(); - ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); - CHK_(ptr); - CHK_(::_pbi::VerifyUTF8(str, "Odb.Lib.Protobuf.ComponentsFile.ComponentRecord.ToeprintRecord.name")); - } else - goto handle_unusual; - continue; - default: - goto handle_unusual; - } // switch - handle_unusual: - if ((tag == 0) || ((tag & 7) == 4)) { - CHK_(ptr); - ctx->SetLastTag(tag); - goto message_done; - } - ptr = UnknownFieldParse( - tag, - _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(), - ptr, ctx); - CHK_(ptr != nullptr); - } // while -message_done: - _impl_._has_bits_.Or(has_bits); - return ptr; -failure: - ptr = nullptr; - goto message_done; -#undef CHK_ -} - -uint8_t* ComponentsFile_ComponentRecord_ToeprintRecord::_InternalSerialize( - uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { - // @@protoc_insertion_point(serialize_to_array_start:Odb.Lib.Protobuf.ComponentsFile.ComponentRecord.ToeprintRecord) - uint32_t cached_has_bits = 0; - (void) cached_has_bits; - - // optional uint32 pinNumber = 1; - if (_internal_has_pinnumber()) { - target = stream->EnsureSpace(target); - target = ::_pbi::WireFormatLite::WriteUInt32ToArray(1, this->_internal_pinnumber(), target); - } - - // optional float locationX = 2; - if (_internal_has_locationx()) { - target = stream->EnsureSpace(target); - target = ::_pbi::WireFormatLite::WriteFloatToArray(2, this->_internal_locationx(), target); - } - - // optional float locationY = 3; - if (_internal_has_locationy()) { - target = stream->EnsureSpace(target); - target = ::_pbi::WireFormatLite::WriteFloatToArray(3, this->_internal_locationy(), target); - } - - // optional float rotation = 4; - if (_internal_has_rotation()) { - target = stream->EnsureSpace(target); - target = ::_pbi::WireFormatLite::WriteFloatToArray(4, this->_internal_rotation(), target); - } - - // optional bool mirror = 5; - if (_internal_has_mirror()) { - target = stream->EnsureSpace(target); - target = ::_pbi::WireFormatLite::WriteBoolToArray(5, this->_internal_mirror(), target); - } - - // optional uint32 netNumber = 6; - if (_internal_has_netnumber()) { - target = stream->EnsureSpace(target); - target = ::_pbi::WireFormatLite::WriteUInt32ToArray(6, this->_internal_netnumber(), target); - } - - // optional uint32 subnetNumber = 7; - if (_internal_has_subnetnumber()) { - target = stream->EnsureSpace(target); - target = ::_pbi::WireFormatLite::WriteUInt32ToArray(7, this->_internal_subnetnumber(), target); - } - - // optional string name = 8; - if (_internal_has_name()) { - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( - this->_internal_name().data(), static_cast(this->_internal_name().length()), - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, - "Odb.Lib.Protobuf.ComponentsFile.ComponentRecord.ToeprintRecord.name"); - target = stream->WriteStringMaybeAliased( - 8, this->_internal_name(), target); - } - - if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = ::_pbi::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:Odb.Lib.Protobuf.ComponentsFile.ComponentRecord.ToeprintRecord) - return target; -} - -size_t ComponentsFile_ComponentRecord_ToeprintRecord::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:Odb.Lib.Protobuf.ComponentsFile.ComponentRecord.ToeprintRecord) - size_t total_size = 0; - - uint32_t cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - cached_has_bits = _impl_._has_bits_[0]; - if (cached_has_bits & 0x000000ffu) { - // optional string name = 8; - if (cached_has_bits & 0x00000001u) { - total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( - this->_internal_name()); - } - - // optional uint32 pinNumber = 1; - if (cached_has_bits & 0x00000002u) { - total_size += ::_pbi::WireFormatLite::UInt32SizePlusOne(this->_internal_pinnumber()); - } - - // optional float locationX = 2; - if (cached_has_bits & 0x00000004u) { - total_size += 1 + 4; - } - - // optional float locationY = 3; - if (cached_has_bits & 0x00000008u) { - total_size += 1 + 4; - } - - // optional float rotation = 4; - if (cached_has_bits & 0x00000010u) { - total_size += 1 + 4; - } - - // optional bool mirror = 5; - if (cached_has_bits & 0x00000020u) { - total_size += 1 + 1; - } - - // optional uint32 netNumber = 6; - if (cached_has_bits & 0x00000040u) { - total_size += ::_pbi::WireFormatLite::UInt32SizePlusOne(this->_internal_netnumber()); - } - - // optional uint32 subnetNumber = 7; - if (cached_has_bits & 0x00000080u) { - total_size += ::_pbi::WireFormatLite::UInt32SizePlusOne(this->_internal_subnetnumber()); - } - - } - return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); -} - -const ::PROTOBUF_NAMESPACE_ID::Message::ClassData ComponentsFile_ComponentRecord_ToeprintRecord::_class_data_ = { - ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSourceCheck, - ComponentsFile_ComponentRecord_ToeprintRecord::MergeImpl -}; -const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*ComponentsFile_ComponentRecord_ToeprintRecord::GetClassData() const { return &_class_data_; } - - -void ComponentsFile_ComponentRecord_ToeprintRecord::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg) { + _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); +} + +#if defined(PROTOBUF_CUSTOM_VTABLE) + ::uint8_t* ComponentsFile_ComponentRecord_ToeprintRecord::_InternalSerialize( + const MessageLite& base, ::uint8_t* target, + ::google::protobuf::io::EpsCopyOutputStream* stream) { + const ComponentsFile_ComponentRecord_ToeprintRecord& this_ = static_cast(base); +#else // PROTOBUF_CUSTOM_VTABLE + ::uint8_t* ComponentsFile_ComponentRecord_ToeprintRecord::_InternalSerialize( + ::uint8_t* target, + ::google::protobuf::io::EpsCopyOutputStream* stream) const { + const ComponentsFile_ComponentRecord_ToeprintRecord& this_ = *this; +#endif // PROTOBUF_CUSTOM_VTABLE + // @@protoc_insertion_point(serialize_to_array_start:Odb.Lib.Protobuf.ComponentsFile.ComponentRecord.ToeprintRecord) + ::uint32_t cached_has_bits = 0; + (void)cached_has_bits; + + cached_has_bits = this_._impl_._has_bits_[0]; + // optional uint32 pinNumber = 1; + if (cached_has_bits & 0x00000002u) { + target = stream->EnsureSpace(target); + target = ::_pbi::WireFormatLite::WriteUInt32ToArray( + 1, this_._internal_pinnumber(), target); + } + + // optional float locationX = 2; + if (cached_has_bits & 0x00000004u) { + target = stream->EnsureSpace(target); + target = ::_pbi::WireFormatLite::WriteFloatToArray( + 2, this_._internal_locationx(), target); + } + + // optional float locationY = 3; + if (cached_has_bits & 0x00000008u) { + target = stream->EnsureSpace(target); + target = ::_pbi::WireFormatLite::WriteFloatToArray( + 3, this_._internal_locationy(), target); + } + + // optional float rotation = 4; + if (cached_has_bits & 0x00000010u) { + target = stream->EnsureSpace(target); + target = ::_pbi::WireFormatLite::WriteFloatToArray( + 4, this_._internal_rotation(), target); + } + + // optional bool mirror = 5; + if (cached_has_bits & 0x00000020u) { + target = stream->EnsureSpace(target); + target = ::_pbi::WireFormatLite::WriteBoolToArray( + 5, this_._internal_mirror(), target); + } + + // optional uint32 netNumber = 6; + if (cached_has_bits & 0x00000040u) { + target = stream->EnsureSpace(target); + target = ::_pbi::WireFormatLite::WriteUInt32ToArray( + 6, this_._internal_netnumber(), target); + } + + // optional uint32 subnetNumber = 7; + if (cached_has_bits & 0x00000080u) { + target = stream->EnsureSpace(target); + target = ::_pbi::WireFormatLite::WriteUInt32ToArray( + 7, this_._internal_subnetnumber(), target); + } + + // optional string name = 8; + if (cached_has_bits & 0x00000001u) { + const std::string& _s = this_._internal_name(); + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + _s.data(), static_cast(_s.length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "Odb.Lib.Protobuf.ComponentsFile.ComponentRecord.ToeprintRecord.name"); + target = stream->WriteStringMaybeAliased(8, _s, target); + } + + if (PROTOBUF_PREDICT_FALSE(this_._internal_metadata_.have_unknown_fields())) { + target = + ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( + this_._internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); + } + // @@protoc_insertion_point(serialize_to_array_end:Odb.Lib.Protobuf.ComponentsFile.ComponentRecord.ToeprintRecord) + return target; + } + +#if defined(PROTOBUF_CUSTOM_VTABLE) + ::size_t ComponentsFile_ComponentRecord_ToeprintRecord::ByteSizeLong(const MessageLite& base) { + const ComponentsFile_ComponentRecord_ToeprintRecord& this_ = static_cast(base); +#else // PROTOBUF_CUSTOM_VTABLE + ::size_t ComponentsFile_ComponentRecord_ToeprintRecord::ByteSizeLong() const { + const ComponentsFile_ComponentRecord_ToeprintRecord& this_ = *this; +#endif // PROTOBUF_CUSTOM_VTABLE + // @@protoc_insertion_point(message_byte_size_start:Odb.Lib.Protobuf.ComponentsFile.ComponentRecord.ToeprintRecord) + ::size_t total_size = 0; + + ::uint32_t cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void)cached_has_bits; + + ::_pbi::Prefetch5LinesFrom7Lines(&this_); + cached_has_bits = this_._impl_._has_bits_[0]; + if (cached_has_bits & 0x000000ffu) { + // optional string name = 8; + if (cached_has_bits & 0x00000001u) { + total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize( + this_._internal_name()); + } + // optional uint32 pinNumber = 1; + if (cached_has_bits & 0x00000002u) { + total_size += ::_pbi::WireFormatLite::UInt32SizePlusOne( + this_._internal_pinnumber()); + } + // optional float locationX = 2; + if (cached_has_bits & 0x00000004u) { + total_size += 5; + } + // optional float locationY = 3; + if (cached_has_bits & 0x00000008u) { + total_size += 5; + } + // optional float rotation = 4; + if (cached_has_bits & 0x00000010u) { + total_size += 5; + } + // optional bool mirror = 5; + if (cached_has_bits & 0x00000020u) { + total_size += 2; + } + // optional uint32 netNumber = 6; + if (cached_has_bits & 0x00000040u) { + total_size += ::_pbi::WireFormatLite::UInt32SizePlusOne( + this_._internal_netnumber()); + } + // optional uint32 subnetNumber = 7; + if (cached_has_bits & 0x00000080u) { + total_size += ::_pbi::WireFormatLite::UInt32SizePlusOne( + this_._internal_subnetnumber()); + } + } + return this_.MaybeComputeUnknownFieldsSize(total_size, + &this_._impl_._cached_size_); + } + +void ComponentsFile_ComponentRecord_ToeprintRecord::MergeImpl(::google::protobuf::MessageLite& to_msg, const ::google::protobuf::MessageLite& from_msg) { auto* const _this = static_cast(&to_msg); auto& from = static_cast(from_msg); // @@protoc_insertion_point(class_specific_merge_from_start:Odb.Lib.Protobuf.ComponentsFile.ComponentRecord.ToeprintRecord) - GOOGLE_DCHECK_NE(&from, _this); - uint32_t cached_has_bits = 0; + ABSL_DCHECK_NE(&from, _this); + ::uint32_t cached_has_bits = 0; (void) cached_has_bits; cached_has_bits = from._impl_._has_bits_[0]; @@ -817,9 +935,9 @@ void ComponentsFile_ComponentRecord_ToeprintRecord::MergeImpl(::PROTOBUF_NAMESPA if (cached_has_bits & 0x00000080u) { _this->_impl_.subnetnumber_ = from._impl_.subnetnumber_; } - _this->_impl_._has_bits_[0] |= cached_has_bits; } - _this->_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); + _this->_impl_._has_bits_[0] |= cached_has_bits; + _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); } void ComponentsFile_ComponentRecord_ToeprintRecord::CopyFrom(const ComponentsFile_ComponentRecord_ToeprintRecord& from) { @@ -829,21 +947,15 @@ void ComponentsFile_ComponentRecord_ToeprintRecord::CopyFrom(const ComponentsFil MergeFrom(from); } -bool ComponentsFile_ComponentRecord_ToeprintRecord::IsInitialized() const { - return true; -} -void ComponentsFile_ComponentRecord_ToeprintRecord::InternalSwap(ComponentsFile_ComponentRecord_ToeprintRecord* other) { +void ComponentsFile_ComponentRecord_ToeprintRecord::InternalSwap(ComponentsFile_ComponentRecord_ToeprintRecord* PROTOBUF_RESTRICT other) { using std::swap; - auto* lhs_arena = GetArenaForAllocation(); - auto* rhs_arena = other->GetArenaForAllocation(); + auto* arena = GetArena(); + ABSL_DCHECK_EQ(arena, other->GetArena()); _internal_metadata_.InternalSwap(&other->_internal_metadata_); swap(_impl_._has_bits_[0], other->_impl_._has_bits_[0]); - ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( - &_impl_.name_, lhs_arena, - &other->_impl_.name_, rhs_arena - ); - ::PROTOBUF_NAMESPACE_ID::internal::memswap< + ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.name_, &other->_impl_.name_, arena); + ::google::protobuf::internal::memswap< PROTOBUF_FIELD_OFFSET(ComponentsFile_ComponentRecord_ToeprintRecord, _impl_.subnetnumber_) + sizeof(ComponentsFile_ComponentRecord_ToeprintRecord::_impl_.subnetnumber_) - PROTOBUF_FIELD_OFFSET(ComponentsFile_ComponentRecord_ToeprintRecord, _impl_.pinnumber_)>( @@ -851,194 +963,373 @@ void ComponentsFile_ComponentRecord_ToeprintRecord::InternalSwap(ComponentsFile_ reinterpret_cast(&other->_impl_.pinnumber_)); } -::PROTOBUF_NAMESPACE_ID::Metadata ComponentsFile_ComponentRecord_ToeprintRecord::GetMetadata() const { - return ::_pbi::AssignDescriptors( - &descriptor_table_componentsfile_2eproto_getter, &descriptor_table_componentsfile_2eproto_once, - file_level_metadata_componentsfile_2eproto[0]); +::google::protobuf::Metadata ComponentsFile_ComponentRecord_ToeprintRecord::GetMetadata() const { + return ::google::protobuf::Message::GetMetadataImpl(GetClassData()->full()); } - // =================================================================== -ComponentsFile_ComponentRecord_AttributeLookupTableEntry_DoNotUse::ComponentsFile_ComponentRecord_AttributeLookupTableEntry_DoNotUse() {} -ComponentsFile_ComponentRecord_AttributeLookupTableEntry_DoNotUse::ComponentsFile_ComponentRecord_AttributeLookupTableEntry_DoNotUse(::PROTOBUF_NAMESPACE_ID::Arena* arena) - : SuperType(arena) {} -void ComponentsFile_ComponentRecord_AttributeLookupTableEntry_DoNotUse::MergeFrom(const ComponentsFile_ComponentRecord_AttributeLookupTableEntry_DoNotUse& other) { - MergeFromInternal(other); -} -::PROTOBUF_NAMESPACE_ID::Metadata ComponentsFile_ComponentRecord_AttributeLookupTableEntry_DoNotUse::GetMetadata() const { - return ::_pbi::AssignDescriptors( - &descriptor_table_componentsfile_2eproto_getter, &descriptor_table_componentsfile_2eproto_once, - file_level_metadata_componentsfile_2eproto[1]); -} +#if defined(PROTOBUF_CUSTOM_VTABLE) + ComponentsFile_ComponentRecord_AttributeLookupTableEntry_DoNotUse::ComponentsFile_ComponentRecord_AttributeLookupTableEntry_DoNotUse() : SuperType(_class_data_.base()) {} + ComponentsFile_ComponentRecord_AttributeLookupTableEntry_DoNotUse::ComponentsFile_ComponentRecord_AttributeLookupTableEntry_DoNotUse(::google::protobuf::Arena* arena) + : SuperType(arena, _class_data_.base()) {} +#else // PROTOBUF_CUSTOM_VTABLE + ComponentsFile_ComponentRecord_AttributeLookupTableEntry_DoNotUse::ComponentsFile_ComponentRecord_AttributeLookupTableEntry_DoNotUse() : SuperType() {} + ComponentsFile_ComponentRecord_AttributeLookupTableEntry_DoNotUse::ComponentsFile_ComponentRecord_AttributeLookupTableEntry_DoNotUse(::google::protobuf::Arena* arena) : SuperType(arena) {} +#endif // PROTOBUF_CUSTOM_VTABLE + inline void* ComponentsFile_ComponentRecord_AttributeLookupTableEntry_DoNotUse::PlacementNew_(const void*, void* mem, + ::google::protobuf::Arena* arena) { + return ::new (mem) ComponentsFile_ComponentRecord_AttributeLookupTableEntry_DoNotUse(arena); + } + constexpr auto ComponentsFile_ComponentRecord_AttributeLookupTableEntry_DoNotUse::InternalNewImpl_() { + return ::google::protobuf::internal::MessageCreator::CopyInit(sizeof(ComponentsFile_ComponentRecord_AttributeLookupTableEntry_DoNotUse), + alignof(ComponentsFile_ComponentRecord_AttributeLookupTableEntry_DoNotUse)); + } + PROTOBUF_CONSTINIT + PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 + const ::google::protobuf::internal::ClassDataFull ComponentsFile_ComponentRecord_AttributeLookupTableEntry_DoNotUse::_class_data_ = { + ::google::protobuf::internal::ClassData{ + &_ComponentsFile_ComponentRecord_AttributeLookupTableEntry_DoNotUse_default_instance_._instance, + &_table_.header, + nullptr, // OnDemandRegisterArenaDtor + nullptr, // IsInitialized + &ComponentsFile_ComponentRecord_AttributeLookupTableEntry_DoNotUse::MergeImpl, + ::google::protobuf::Message::GetNewImpl(), + #if defined(PROTOBUF_CUSTOM_VTABLE) + &ComponentsFile_ComponentRecord_AttributeLookupTableEntry_DoNotUse::SharedDtor, + static_cast( + &ComponentsFile_ComponentRecord_AttributeLookupTableEntry_DoNotUse::ClearImpl), + ::google::protobuf::Message::ByteSizeLongImpl, ::google::protobuf::Message::_InternalSerializeImpl + , + #endif // PROTOBUF_CUSTOM_VTABLE + PROTOBUF_FIELD_OFFSET(ComponentsFile_ComponentRecord_AttributeLookupTableEntry_DoNotUse, _impl_._cached_size_), + false, + }, + &ComponentsFile_ComponentRecord_AttributeLookupTableEntry_DoNotUse::kDescriptorMethods, + &descriptor_table_componentsfile_2eproto, + nullptr, // tracker + }; + const ::google::protobuf::internal::ClassData* ComponentsFile_ComponentRecord_AttributeLookupTableEntry_DoNotUse::GetClassData() const { + ::google::protobuf::internal::PrefetchToLocalCache(&_class_data_); + ::google::protobuf::internal::PrefetchToLocalCache(_class_data_.tc_table); + return _class_data_.base(); + } +PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 +const ::_pbi::TcParseTable<1, 2, 0, 90, 2> ComponentsFile_ComponentRecord_AttributeLookupTableEntry_DoNotUse::_table_ = { + { + PROTOBUF_FIELD_OFFSET(ComponentsFile_ComponentRecord_AttributeLookupTableEntry_DoNotUse, _impl_._has_bits_), + 0, // no _extensions_ + 2, 8, // max_field_number, fast_idx_mask + offsetof(decltype(_table_), field_lookup_table), + 4294967292, // skipmap + offsetof(decltype(_table_), field_entries), + 2, // num_field_entries + 0, // num_aux_entries + offsetof(decltype(_table_), field_names), // no aux_entries + _class_data_.base(), + nullptr, // post_loop_handler + ::_pbi::TcParser::DiscardEverythingFallback, // fallback + #ifdef PROTOBUF_PREFETCH_PARSE_TABLE + ::_pbi::TcParser::GetTable<::Odb::Lib::Protobuf::ComponentsFile_ComponentRecord_AttributeLookupTableEntry_DoNotUse>(), // to_prefetch + #endif // PROTOBUF_PREFETCH_PARSE_TABLE + }, {{ + // string value = 2; + {::_pbi::TcParser::FastUS1, + {18, 63, 0, PROTOBUF_FIELD_OFFSET(ComponentsFile_ComponentRecord_AttributeLookupTableEntry_DoNotUse, _impl_.value_)}}, + // string key = 1; + {::_pbi::TcParser::FastUS1, + {10, 63, 0, PROTOBUF_FIELD_OFFSET(ComponentsFile_ComponentRecord_AttributeLookupTableEntry_DoNotUse, _impl_.key_)}}, + }}, {{ + 65535, 65535 + }}, {{ + // string key = 1; + {PROTOBUF_FIELD_OFFSET(ComponentsFile_ComponentRecord_AttributeLookupTableEntry_DoNotUse, _impl_.key_), -1, 0, + (0 | ::_fl::kFcSingular | ::_fl::kUtf8String | ::_fl::kRepAString)}, + // string value = 2; + {PROTOBUF_FIELD_OFFSET(ComponentsFile_ComponentRecord_AttributeLookupTableEntry_DoNotUse, _impl_.value_), -1, 0, + (0 | ::_fl::kFcSingular | ::_fl::kUtf8String | ::_fl::kRepAString)}, + }}, + // no aux_entries + {{ + "\111\3\5\0\0\0\0\0" + "Odb.Lib.Protobuf.ComponentsFile.ComponentRecord.AttributeLookupTableEntry" + "key" + "value" + }}, +}; // =================================================================== class ComponentsFile_ComponentRecord::_Internal { public: - using HasBits = decltype(std::declval()._impl_._has_bits_); - static void set_has_pkgref(HasBits* has_bits) { - (*has_bits)[0] |= 8u; - } - static void set_has_locationx(HasBits* has_bits) { - (*has_bits)[0] |= 16u; - } - static void set_has_locationy(HasBits* has_bits) { - (*has_bits)[0] |= 32u; - } - static void set_has_rotation(HasBits* has_bits) { - (*has_bits)[0] |= 64u; - } - static void set_has_mirror(HasBits* has_bits) { - (*has_bits)[0] |= 128u; - } - static void set_has_compname(HasBits* has_bits) { - (*has_bits)[0] |= 1u; - } - static void set_has_partname(HasBits* has_bits) { - (*has_bits)[0] |= 2u; - } - static void set_has_attributes(HasBits* has_bits) { - (*has_bits)[0] |= 4u; - } - static void set_has_id(HasBits* has_bits) { - (*has_bits)[0] |= 256u; - } - static void set_has_index(HasBits* has_bits) { - (*has_bits)[0] |= 512u; - } + using HasBits = + decltype(std::declval()._impl_._has_bits_); + static constexpr ::int32_t kHasBitsOffset = + 8 * PROTOBUF_FIELD_OFFSET(ComponentsFile_ComponentRecord, _impl_._has_bits_); }; void ComponentsFile_ComponentRecord::clear_propertyrecords() { + ::google::protobuf::internal::TSanWrite(&_impl_); _impl_.propertyrecords_.Clear(); } -ComponentsFile_ComponentRecord::ComponentsFile_ComponentRecord(::PROTOBUF_NAMESPACE_ID::Arena* arena, - bool is_message_owned) - : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned) { - SharedCtor(arena, is_message_owned); - if (arena != nullptr && !is_message_owned) { - arena->OwnCustomDestructor(this, &ComponentsFile_ComponentRecord::ArenaDtor); - } +ComponentsFile_ComponentRecord::ComponentsFile_ComponentRecord(::google::protobuf::Arena* arena) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : ::google::protobuf::Message(arena, _class_data_.base()) { +#else // PROTOBUF_CUSTOM_VTABLE + : ::google::protobuf::Message(arena) { +#endif // PROTOBUF_CUSTOM_VTABLE + SharedCtor(arena); // @@protoc_insertion_point(arena_constructor:Odb.Lib.Protobuf.ComponentsFile.ComponentRecord) } -ComponentsFile_ComponentRecord::ComponentsFile_ComponentRecord(const ComponentsFile_ComponentRecord& from) - : ::PROTOBUF_NAMESPACE_ID::Message() { - ComponentsFile_ComponentRecord* const _this = this; (void)_this; - new (&_impl_) Impl_{ - decltype(_impl_._has_bits_){from._impl_._has_bits_} - , /*decltype(_impl_._cached_size_)*/{} - , decltype(_impl_.propertyrecords_){from._impl_.propertyrecords_} - , decltype(_impl_.toeprintrecords_){from._impl_.toeprintrecords_} - , /*decltype(_impl_.attributelookuptable_)*/{} - , decltype(_impl_.compname_){} - , decltype(_impl_.partname_){} - , decltype(_impl_.attributes_){} - , decltype(_impl_.pkgref_){} - , decltype(_impl_.locationx_){} - , decltype(_impl_.locationy_){} - , decltype(_impl_.rotation_){} - , decltype(_impl_.mirror_){} - , decltype(_impl_.id_){} - , decltype(_impl_.index_){}}; - - _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); - _this->_impl_.attributelookuptable_.MergeFrom(from._impl_.attributelookuptable_); - _impl_.compname_.InitDefault(); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - _impl_.compname_.Set("", GetArenaForAllocation()); - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (from._internal_has_compname()) { - _this->_impl_.compname_.Set(from._internal_compname(), - _this->GetArenaForAllocation()); - } - _impl_.partname_.InitDefault(); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - _impl_.partname_.Set("", GetArenaForAllocation()); - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (from._internal_has_partname()) { - _this->_impl_.partname_.Set(from._internal_partname(), - _this->GetArenaForAllocation()); - } - _impl_.attributes_.InitDefault(); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - _impl_.attributes_.Set("", GetArenaForAllocation()); - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (from._internal_has_attributes()) { - _this->_impl_.attributes_.Set(from._internal_attributes(), - _this->GetArenaForAllocation()); - } - ::memcpy(&_impl_.pkgref_, &from._impl_.pkgref_, - static_cast(reinterpret_cast(&_impl_.index_) - - reinterpret_cast(&_impl_.pkgref_)) + sizeof(_impl_.index_)); +inline PROTOBUF_NDEBUG_INLINE ComponentsFile_ComponentRecord::Impl_::Impl_( + ::google::protobuf::internal::InternalVisibility visibility, ::google::protobuf::Arena* arena, + const Impl_& from, const ::Odb::Lib::Protobuf::ComponentsFile_ComponentRecord& from_msg) + : _has_bits_{from._has_bits_}, + _cached_size_{0}, + propertyrecords_{visibility, arena, from.propertyrecords_}, + toeprintrecords_{visibility, arena, from.toeprintrecords_}, + attributelookuptable_{visibility, arena, from.attributelookuptable_}, + compname_(arena, from.compname_), + partname_(arena, from.partname_), + attributes_(arena, from.attributes_) {} + +ComponentsFile_ComponentRecord::ComponentsFile_ComponentRecord( + ::google::protobuf::Arena* arena, + const ComponentsFile_ComponentRecord& from) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : ::google::protobuf::Message(arena, _class_data_.base()) { +#else // PROTOBUF_CUSTOM_VTABLE + : ::google::protobuf::Message(arena) { +#endif // PROTOBUF_CUSTOM_VTABLE + ComponentsFile_ComponentRecord* const _this = this; + (void)_this; + _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( + from._internal_metadata_); + new (&_impl_) Impl_(internal_visibility(), arena, from._impl_, from); + ::memcpy(reinterpret_cast(&_impl_) + + offsetof(Impl_, pkgref_), + reinterpret_cast(&from._impl_) + + offsetof(Impl_, pkgref_), + offsetof(Impl_, index_) - + offsetof(Impl_, pkgref_) + + sizeof(Impl_::index_)); + // @@protoc_insertion_point(copy_constructor:Odb.Lib.Protobuf.ComponentsFile.ComponentRecord) } - -inline void ComponentsFile_ComponentRecord::SharedCtor( - ::_pb::Arena* arena, bool is_message_owned) { - (void)arena; - (void)is_message_owned; - new (&_impl_) Impl_{ - decltype(_impl_._has_bits_){} - , /*decltype(_impl_._cached_size_)*/{} - , decltype(_impl_.propertyrecords_){arena} - , decltype(_impl_.toeprintrecords_){arena} - , /*decltype(_impl_.attributelookuptable_)*/{::_pbi::ArenaInitialized(), arena} - , decltype(_impl_.compname_){} - , decltype(_impl_.partname_){} - , decltype(_impl_.attributes_){} - , decltype(_impl_.pkgref_){0u} - , decltype(_impl_.locationx_){0} - , decltype(_impl_.locationy_){0} - , decltype(_impl_.rotation_){0} - , decltype(_impl_.mirror_){false} - , decltype(_impl_.id_){0u} - , decltype(_impl_.index_){0u} - }; - _impl_.compname_.InitDefault(); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - _impl_.compname_.Set("", GetArenaForAllocation()); - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING - _impl_.partname_.InitDefault(); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - _impl_.partname_.Set("", GetArenaForAllocation()); - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING - _impl_.attributes_.InitDefault(); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - _impl_.attributes_.Set("", GetArenaForAllocation()); - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING +inline PROTOBUF_NDEBUG_INLINE ComponentsFile_ComponentRecord::Impl_::Impl_( + ::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* arena) + : _cached_size_{0}, + propertyrecords_{visibility, arena}, + toeprintrecords_{visibility, arena}, + attributelookuptable_{visibility, arena}, + compname_(arena), + partname_(arena), + attributes_(arena) {} + +inline void ComponentsFile_ComponentRecord::SharedCtor(::_pb::Arena* arena) { + new (&_impl_) Impl_(internal_visibility(), arena); + ::memset(reinterpret_cast(&_impl_) + + offsetof(Impl_, pkgref_), + 0, + offsetof(Impl_, index_) - + offsetof(Impl_, pkgref_) + + sizeof(Impl_::index_)); } - ComponentsFile_ComponentRecord::~ComponentsFile_ComponentRecord() { // @@protoc_insertion_point(destructor:Odb.Lib.Protobuf.ComponentsFile.ComponentRecord) - if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) { - (void)arena; - ArenaDtor(this); - return; - } - SharedDtor(); -} - -inline void ComponentsFile_ComponentRecord::SharedDtor() { - GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); - _impl_.propertyrecords_.~RepeatedPtrField(); - _impl_.toeprintrecords_.~RepeatedPtrField(); - _impl_.attributelookuptable_.Destruct(); - _impl_.attributelookuptable_.~MapField(); - _impl_.compname_.Destroy(); - _impl_.partname_.Destroy(); - _impl_.attributes_.Destroy(); -} - -void ComponentsFile_ComponentRecord::ArenaDtor(void* object) { - ComponentsFile_ComponentRecord* _this = reinterpret_cast< ComponentsFile_ComponentRecord* >(object); - _this->_impl_.attributelookuptable_.Destruct(); -} -void ComponentsFile_ComponentRecord::SetCachedSize(int size) const { - _impl_._cached_size_.Set(size); -} + SharedDtor(*this); +} +inline void ComponentsFile_ComponentRecord::SharedDtor(MessageLite& self) { + ComponentsFile_ComponentRecord& this_ = static_cast(self); + this_._internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); + ABSL_DCHECK(this_.GetArena() == nullptr); + this_._impl_.compname_.Destroy(); + this_._impl_.partname_.Destroy(); + this_._impl_.attributes_.Destroy(); + this_._impl_.~Impl_(); +} + +inline void* ComponentsFile_ComponentRecord::PlacementNew_(const void*, void* mem, + ::google::protobuf::Arena* arena) { + return ::new (mem) ComponentsFile_ComponentRecord(arena); +} +constexpr auto ComponentsFile_ComponentRecord::InternalNewImpl_() { + constexpr auto arena_bits = ::google::protobuf::internal::EncodePlacementArenaOffsets({ + PROTOBUF_FIELD_OFFSET(ComponentsFile_ComponentRecord, _impl_.propertyrecords_) + + decltype(ComponentsFile_ComponentRecord::_impl_.propertyrecords_):: + InternalGetArenaOffset( + ::google::protobuf::Message::internal_visibility()), + PROTOBUF_FIELD_OFFSET(ComponentsFile_ComponentRecord, _impl_.toeprintrecords_) + + decltype(ComponentsFile_ComponentRecord::_impl_.toeprintrecords_):: + InternalGetArenaOffset( + ::google::protobuf::Message::internal_visibility()), + PROTOBUF_FIELD_OFFSET(ComponentsFile_ComponentRecord, _impl_.attributelookuptable_) + + decltype(ComponentsFile_ComponentRecord::_impl_.attributelookuptable_):: + InternalGetArenaOffset( + ::google::protobuf::Message::internal_visibility()), + PROTOBUF_FIELD_OFFSET(ComponentsFile_ComponentRecord, _impl_.attributelookuptable_) + + decltype(ComponentsFile_ComponentRecord::_impl_.attributelookuptable_):: + InternalGetArenaOffsetAlt( + ::google::protobuf::Message::internal_visibility()), + }); + if (arena_bits.has_value()) { + return ::google::protobuf::internal::MessageCreator::CopyInit( + sizeof(ComponentsFile_ComponentRecord), alignof(ComponentsFile_ComponentRecord), *arena_bits); + } else { + return ::google::protobuf::internal::MessageCreator(&ComponentsFile_ComponentRecord::PlacementNew_, + sizeof(ComponentsFile_ComponentRecord), + alignof(ComponentsFile_ComponentRecord)); + } +} +PROTOBUF_CONSTINIT +PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 +const ::google::protobuf::internal::ClassDataFull ComponentsFile_ComponentRecord::_class_data_ = { + ::google::protobuf::internal::ClassData{ + &_ComponentsFile_ComponentRecord_default_instance_._instance, + &_table_.header, + nullptr, // OnDemandRegisterArenaDtor + nullptr, // IsInitialized + &ComponentsFile_ComponentRecord::MergeImpl, + ::google::protobuf::Message::GetNewImpl(), +#if defined(PROTOBUF_CUSTOM_VTABLE) + &ComponentsFile_ComponentRecord::SharedDtor, + ::google::protobuf::Message::GetClearImpl(), &ComponentsFile_ComponentRecord::ByteSizeLong, + &ComponentsFile_ComponentRecord::_InternalSerialize, +#endif // PROTOBUF_CUSTOM_VTABLE + PROTOBUF_FIELD_OFFSET(ComponentsFile_ComponentRecord, _impl_._cached_size_), + false, + }, + &ComponentsFile_ComponentRecord::kDescriptorMethods, + &descriptor_table_componentsfile_2eproto, + nullptr, // tracker +}; +const ::google::protobuf::internal::ClassData* ComponentsFile_ComponentRecord::GetClassData() const { + ::google::protobuf::internal::PrefetchToLocalCache(&_class_data_); + ::google::protobuf::internal::PrefetchToLocalCache(_class_data_.tc_table); + return _class_data_.base(); +} +PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 +const ::_pbi::TcParseTable<4, 13, 3, 110, 2> ComponentsFile_ComponentRecord::_table_ = { + { + PROTOBUF_FIELD_OFFSET(ComponentsFile_ComponentRecord, _impl_._has_bits_), + 0, // no _extensions_ + 13, 120, // max_field_number, fast_idx_mask + offsetof(decltype(_table_), field_lookup_table), + 4294959104, // skipmap + offsetof(decltype(_table_), field_entries), + 13, // num_field_entries + 3, // num_aux_entries + offsetof(decltype(_table_), aux_entries), + _class_data_.base(), + nullptr, // post_loop_handler + ::_pbi::TcParser::GenericFallback, // fallback + #ifdef PROTOBUF_PREFETCH_PARSE_TABLE + ::_pbi::TcParser::GetTable<::Odb::Lib::Protobuf::ComponentsFile_ComponentRecord>(), // to_prefetch + #endif // PROTOBUF_PREFETCH_PARSE_TABLE + }, {{ + {::_pbi::TcParser::MiniParse, {}}, + // optional uint32 pkgRef = 1; + {::_pbi::TcParser::SingularVarintNoZag1<::uint32_t, offsetof(ComponentsFile_ComponentRecord, _impl_.pkgref_), 3>(), + {8, 3, 0, PROTOBUF_FIELD_OFFSET(ComponentsFile_ComponentRecord, _impl_.pkgref_)}}, + // optional float locationX = 2; + {::_pbi::TcParser::FastF32S1, + {21, 4, 0, PROTOBUF_FIELD_OFFSET(ComponentsFile_ComponentRecord, _impl_.locationx_)}}, + // optional float locationY = 3; + {::_pbi::TcParser::FastF32S1, + {29, 5, 0, PROTOBUF_FIELD_OFFSET(ComponentsFile_ComponentRecord, _impl_.locationy_)}}, + // optional float rotation = 4; + {::_pbi::TcParser::FastF32S1, + {37, 6, 0, PROTOBUF_FIELD_OFFSET(ComponentsFile_ComponentRecord, _impl_.rotation_)}}, + // optional bool mirror = 5; + {::_pbi::TcParser::SingularVarintNoZag1(), + {40, 7, 0, PROTOBUF_FIELD_OFFSET(ComponentsFile_ComponentRecord, _impl_.mirror_)}}, + // optional string compName = 6; + {::_pbi::TcParser::FastUS1, + {50, 0, 0, PROTOBUF_FIELD_OFFSET(ComponentsFile_ComponentRecord, _impl_.compname_)}}, + // optional string partName = 7; + {::_pbi::TcParser::FastUS1, + {58, 1, 0, PROTOBUF_FIELD_OFFSET(ComponentsFile_ComponentRecord, _impl_.partname_)}}, + // optional string attributes = 8; + {::_pbi::TcParser::FastUS1, + {66, 2, 0, PROTOBUF_FIELD_OFFSET(ComponentsFile_ComponentRecord, _impl_.attributes_)}}, + // optional uint32 id = 9; + {::_pbi::TcParser::SingularVarintNoZag1<::uint32_t, offsetof(ComponentsFile_ComponentRecord, _impl_.id_), 8>(), + {72, 8, 0, PROTOBUF_FIELD_OFFSET(ComponentsFile_ComponentRecord, _impl_.id_)}}, + // optional uint32 index = 10; + {::_pbi::TcParser::SingularVarintNoZag1<::uint32_t, offsetof(ComponentsFile_ComponentRecord, _impl_.index_), 9>(), + {80, 9, 0, PROTOBUF_FIELD_OFFSET(ComponentsFile_ComponentRecord, _impl_.index_)}}, + // repeated .Odb.Lib.Protobuf.PropertyRecord propertyRecords = 11; + {::_pbi::TcParser::FastMtR1, + {90, 63, 0, PROTOBUF_FIELD_OFFSET(ComponentsFile_ComponentRecord, _impl_.propertyrecords_)}}, + // repeated .Odb.Lib.Protobuf.ComponentsFile.ComponentRecord.ToeprintRecord toeprintRecords = 12; + {::_pbi::TcParser::FastMtR1, + {98, 63, 1, PROTOBUF_FIELD_OFFSET(ComponentsFile_ComponentRecord, _impl_.toeprintrecords_)}}, + {::_pbi::TcParser::MiniParse, {}}, + {::_pbi::TcParser::MiniParse, {}}, + {::_pbi::TcParser::MiniParse, {}}, + }}, {{ + 65535, 65535 + }}, {{ + // optional uint32 pkgRef = 1; + {PROTOBUF_FIELD_OFFSET(ComponentsFile_ComponentRecord, _impl_.pkgref_), _Internal::kHasBitsOffset + 3, 0, + (0 | ::_fl::kFcOptional | ::_fl::kUInt32)}, + // optional float locationX = 2; + {PROTOBUF_FIELD_OFFSET(ComponentsFile_ComponentRecord, _impl_.locationx_), _Internal::kHasBitsOffset + 4, 0, + (0 | ::_fl::kFcOptional | ::_fl::kFloat)}, + // optional float locationY = 3; + {PROTOBUF_FIELD_OFFSET(ComponentsFile_ComponentRecord, _impl_.locationy_), _Internal::kHasBitsOffset + 5, 0, + (0 | ::_fl::kFcOptional | ::_fl::kFloat)}, + // optional float rotation = 4; + {PROTOBUF_FIELD_OFFSET(ComponentsFile_ComponentRecord, _impl_.rotation_), _Internal::kHasBitsOffset + 6, 0, + (0 | ::_fl::kFcOptional | ::_fl::kFloat)}, + // optional bool mirror = 5; + {PROTOBUF_FIELD_OFFSET(ComponentsFile_ComponentRecord, _impl_.mirror_), _Internal::kHasBitsOffset + 7, 0, + (0 | ::_fl::kFcOptional | ::_fl::kBool)}, + // optional string compName = 6; + {PROTOBUF_FIELD_OFFSET(ComponentsFile_ComponentRecord, _impl_.compname_), _Internal::kHasBitsOffset + 0, 0, + (0 | ::_fl::kFcOptional | ::_fl::kUtf8String | ::_fl::kRepAString)}, + // optional string partName = 7; + {PROTOBUF_FIELD_OFFSET(ComponentsFile_ComponentRecord, _impl_.partname_), _Internal::kHasBitsOffset + 1, 0, + (0 | ::_fl::kFcOptional | ::_fl::kUtf8String | ::_fl::kRepAString)}, + // optional string attributes = 8; + {PROTOBUF_FIELD_OFFSET(ComponentsFile_ComponentRecord, _impl_.attributes_), _Internal::kHasBitsOffset + 2, 0, + (0 | ::_fl::kFcOptional | ::_fl::kUtf8String | ::_fl::kRepAString)}, + // optional uint32 id = 9; + {PROTOBUF_FIELD_OFFSET(ComponentsFile_ComponentRecord, _impl_.id_), _Internal::kHasBitsOffset + 8, 0, + (0 | ::_fl::kFcOptional | ::_fl::kUInt32)}, + // optional uint32 index = 10; + {PROTOBUF_FIELD_OFFSET(ComponentsFile_ComponentRecord, _impl_.index_), _Internal::kHasBitsOffset + 9, 0, + (0 | ::_fl::kFcOptional | ::_fl::kUInt32)}, + // repeated .Odb.Lib.Protobuf.PropertyRecord propertyRecords = 11; + {PROTOBUF_FIELD_OFFSET(ComponentsFile_ComponentRecord, _impl_.propertyrecords_), -1, 0, + (0 | ::_fl::kFcRepeated | ::_fl::kMessage | ::_fl::kTvTable)}, + // repeated .Odb.Lib.Protobuf.ComponentsFile.ComponentRecord.ToeprintRecord toeprintRecords = 12; + {PROTOBUF_FIELD_OFFSET(ComponentsFile_ComponentRecord, _impl_.toeprintrecords_), -1, 1, + (0 | ::_fl::kFcRepeated | ::_fl::kMessage | ::_fl::kTvTable)}, + // map attributeLookupTable = 13; + {PROTOBUF_FIELD_OFFSET(ComponentsFile_ComponentRecord, _impl_.attributelookuptable_), -1, 2, + (0 | ::_fl::kFcRepeated | ::_fl::kMap)}, + }}, {{ + {::_pbi::TcParser::GetTable<::Odb::Lib::Protobuf::PropertyRecord>()}, + {::_pbi::TcParser::GetTable<::Odb::Lib::Protobuf::ComponentsFile_ComponentRecord_ToeprintRecord>()}, + {::_pbi::TcParser::GetMapAuxInfo< + decltype(ComponentsFile_ComponentRecord()._impl_.attributelookuptable_)>( + 1, 0, 0, 9, + 9)}, + }}, {{ + "\57\0\0\0\0\0\10\10\12\0\0\0\0\24\0\0" + "Odb.Lib.Protobuf.ComponentsFile.ComponentRecord" + "compName" + "partName" + "attributes" + "attributeLookupTable" + }}, +}; -void ComponentsFile_ComponentRecord::Clear() { +PROTOBUF_NOINLINE void ComponentsFile_ComponentRecord::Clear() { // @@protoc_insertion_point(message_clear_start:Odb.Lib.Protobuf.ComponentsFile.ComponentRecord) - uint32_t cached_has_bits = 0; + ::google::protobuf::internal::TSanWrite(&_impl_); + ::uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; @@ -1058,426 +1349,280 @@ void ComponentsFile_ComponentRecord::Clear() { } } if (cached_has_bits & 0x000000f8u) { - ::memset(&_impl_.pkgref_, 0, static_cast( + ::memset(&_impl_.pkgref_, 0, static_cast<::size_t>( reinterpret_cast(&_impl_.mirror_) - reinterpret_cast(&_impl_.pkgref_)) + sizeof(_impl_.mirror_)); } if (cached_has_bits & 0x00000300u) { - ::memset(&_impl_.id_, 0, static_cast( + ::memset(&_impl_.id_, 0, static_cast<::size_t>( reinterpret_cast(&_impl_.index_) - reinterpret_cast(&_impl_.id_)) + sizeof(_impl_.index_)); } _impl_._has_bits_.Clear(); - _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); -} - -const char* ComponentsFile_ComponentRecord::_InternalParse(const char* ptr, ::_pbi::ParseContext* ctx) { -#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure - _Internal::HasBits has_bits{}; - while (!ctx->Done(&ptr)) { - uint32_t tag; - ptr = ::_pbi::ReadTag(ptr, &tag); - switch (tag >> 3) { - // optional uint32 pkgRef = 1; - case 1: - if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 8)) { - _Internal::set_has_pkgref(&has_bits); - _impl_.pkgref_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr); - CHK_(ptr); - } else - goto handle_unusual; - continue; - // optional float locationX = 2; - case 2: - if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 21)) { - _Internal::set_has_locationx(&has_bits); - _impl_.locationx_ = ::PROTOBUF_NAMESPACE_ID::internal::UnalignedLoad(ptr); - ptr += sizeof(float); - } else - goto handle_unusual; - continue; - // optional float locationY = 3; - case 3: - if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 29)) { - _Internal::set_has_locationy(&has_bits); - _impl_.locationy_ = ::PROTOBUF_NAMESPACE_ID::internal::UnalignedLoad(ptr); - ptr += sizeof(float); - } else - goto handle_unusual; - continue; - // optional float rotation = 4; - case 4: - if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 37)) { - _Internal::set_has_rotation(&has_bits); - _impl_.rotation_ = ::PROTOBUF_NAMESPACE_ID::internal::UnalignedLoad(ptr); - ptr += sizeof(float); - } else - goto handle_unusual; - continue; - // optional bool mirror = 5; - case 5: - if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 40)) { - _Internal::set_has_mirror(&has_bits); - _impl_.mirror_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); - CHK_(ptr); - } else - goto handle_unusual; - continue; - // optional string compName = 6; - case 6: - if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 50)) { - auto str = _internal_mutable_compname(); - ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); - CHK_(ptr); - CHK_(::_pbi::VerifyUTF8(str, "Odb.Lib.Protobuf.ComponentsFile.ComponentRecord.compName")); - } else - goto handle_unusual; - continue; - // optional string partName = 7; - case 7: - if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 58)) { - auto str = _internal_mutable_partname(); - ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); - CHK_(ptr); - CHK_(::_pbi::VerifyUTF8(str, "Odb.Lib.Protobuf.ComponentsFile.ComponentRecord.partName")); - } else - goto handle_unusual; - continue; - // optional string attributes = 8; - case 8: - if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 66)) { - auto str = _internal_mutable_attributes(); - ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); - CHK_(ptr); - CHK_(::_pbi::VerifyUTF8(str, "Odb.Lib.Protobuf.ComponentsFile.ComponentRecord.attributes")); - } else - goto handle_unusual; - continue; - // optional uint32 id = 9; - case 9: - if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 72)) { - _Internal::set_has_id(&has_bits); - _impl_.id_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr); - CHK_(ptr); - } else - goto handle_unusual; - continue; - // optional uint32 index = 10; - case 10: - if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 80)) { - _Internal::set_has_index(&has_bits); - _impl_.index_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr); - CHK_(ptr); - } else - goto handle_unusual; - continue; - // repeated .Odb.Lib.Protobuf.PropertyRecord propertyRecords = 11; - case 11: - if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 90)) { - ptr -= 1; - do { - ptr += 1; - ptr = ctx->ParseMessage(_internal_add_propertyrecords(), ptr); - CHK_(ptr); - if (!ctx->DataAvailable(ptr)) break; - } while (::PROTOBUF_NAMESPACE_ID::internal::ExpectTag<90>(ptr)); - } else - goto handle_unusual; - continue; - // repeated .Odb.Lib.Protobuf.ComponentsFile.ComponentRecord.ToeprintRecord toeprintRecords = 12; - case 12: - if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 98)) { - ptr -= 1; - do { - ptr += 1; - ptr = ctx->ParseMessage(_internal_add_toeprintrecords(), ptr); - CHK_(ptr); - if (!ctx->DataAvailable(ptr)) break; - } while (::PROTOBUF_NAMESPACE_ID::internal::ExpectTag<98>(ptr)); - } else - goto handle_unusual; - continue; - // map attributeLookupTable = 13; - case 13: - if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 106)) { - ptr -= 1; - do { - ptr += 1; - ptr = ctx->ParseMessage(&_impl_.attributelookuptable_, ptr); - CHK_(ptr); - if (!ctx->DataAvailable(ptr)) break; - } while (::PROTOBUF_NAMESPACE_ID::internal::ExpectTag<106>(ptr)); - } else - goto handle_unusual; - continue; - default: - goto handle_unusual; - } // switch - handle_unusual: - if ((tag == 0) || ((tag & 7) == 4)) { - CHK_(ptr); - ctx->SetLastTag(tag); - goto message_done; - } - ptr = UnknownFieldParse( - tag, - _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(), - ptr, ctx); - CHK_(ptr != nullptr); - } // while -message_done: - _impl_._has_bits_.Or(has_bits); - return ptr; -failure: - ptr = nullptr; - goto message_done; -#undef CHK_ -} - -uint8_t* ComponentsFile_ComponentRecord::_InternalSerialize( - uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { - // @@protoc_insertion_point(serialize_to_array_start:Odb.Lib.Protobuf.ComponentsFile.ComponentRecord) - uint32_t cached_has_bits = 0; - (void) cached_has_bits; - - // optional uint32 pkgRef = 1; - if (_internal_has_pkgref()) { - target = stream->EnsureSpace(target); - target = ::_pbi::WireFormatLite::WriteUInt32ToArray(1, this->_internal_pkgref(), target); - } - - // optional float locationX = 2; - if (_internal_has_locationx()) { - target = stream->EnsureSpace(target); - target = ::_pbi::WireFormatLite::WriteFloatToArray(2, this->_internal_locationx(), target); - } - - // optional float locationY = 3; - if (_internal_has_locationy()) { - target = stream->EnsureSpace(target); - target = ::_pbi::WireFormatLite::WriteFloatToArray(3, this->_internal_locationy(), target); - } - - // optional float rotation = 4; - if (_internal_has_rotation()) { - target = stream->EnsureSpace(target); - target = ::_pbi::WireFormatLite::WriteFloatToArray(4, this->_internal_rotation(), target); - } - - // optional bool mirror = 5; - if (_internal_has_mirror()) { - target = stream->EnsureSpace(target); - target = ::_pbi::WireFormatLite::WriteBoolToArray(5, this->_internal_mirror(), target); - } - - // optional string compName = 6; - if (_internal_has_compname()) { - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( - this->_internal_compname().data(), static_cast(this->_internal_compname().length()), - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, - "Odb.Lib.Protobuf.ComponentsFile.ComponentRecord.compName"); - target = stream->WriteStringMaybeAliased( - 6, this->_internal_compname(), target); - } - - // optional string partName = 7; - if (_internal_has_partname()) { - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( - this->_internal_partname().data(), static_cast(this->_internal_partname().length()), - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, - "Odb.Lib.Protobuf.ComponentsFile.ComponentRecord.partName"); - target = stream->WriteStringMaybeAliased( - 7, this->_internal_partname(), target); - } - - // optional string attributes = 8; - if (_internal_has_attributes()) { - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( - this->_internal_attributes().data(), static_cast(this->_internal_attributes().length()), - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, - "Odb.Lib.Protobuf.ComponentsFile.ComponentRecord.attributes"); - target = stream->WriteStringMaybeAliased( - 8, this->_internal_attributes(), target); - } - - // optional uint32 id = 9; - if (_internal_has_id()) { - target = stream->EnsureSpace(target); - target = ::_pbi::WireFormatLite::WriteUInt32ToArray(9, this->_internal_id(), target); - } - - // optional uint32 index = 10; - if (_internal_has_index()) { - target = stream->EnsureSpace(target); - target = ::_pbi::WireFormatLite::WriteUInt32ToArray(10, this->_internal_index(), target); - } - - // repeated .Odb.Lib.Protobuf.PropertyRecord propertyRecords = 11; - for (unsigned i = 0, - n = static_cast(this->_internal_propertyrecords_size()); i < n; i++) { - const auto& repfield = this->_internal_propertyrecords(i); - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: - InternalWriteMessage(11, repfield, repfield.GetCachedSize(), target, stream); - } - - // repeated .Odb.Lib.Protobuf.ComponentsFile.ComponentRecord.ToeprintRecord toeprintRecords = 12; - for (unsigned i = 0, - n = static_cast(this->_internal_toeprintrecords_size()); i < n; i++) { - const auto& repfield = this->_internal_toeprintrecords(i); - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: - InternalWriteMessage(12, repfield, repfield.GetCachedSize(), target, stream); - } - - // map attributeLookupTable = 13; - if (!this->_internal_attributelookuptable().empty()) { - using MapType = ::_pb::Map; - using WireHelper = ComponentsFile_ComponentRecord_AttributeLookupTableEntry_DoNotUse::Funcs; - const auto& map_field = this->_internal_attributelookuptable(); - auto check_utf8 = [](const MapType::value_type& entry) { - (void)entry; - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( - entry.first.data(), static_cast(entry.first.length()), - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, - "Odb.Lib.Protobuf.ComponentsFile.ComponentRecord.AttributeLookupTableEntry.key"); - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( - entry.second.data(), static_cast(entry.second.length()), - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, - "Odb.Lib.Protobuf.ComponentsFile.ComponentRecord.AttributeLookupTableEntry.value"); - }; - - if (stream->IsSerializationDeterministic() && map_field.size() > 1) { - for (const auto& entry : ::_pbi::MapSorterPtr(map_field)) { - target = WireHelper::InternalSerialize(13, entry.first, entry.second, target, stream); - check_utf8(entry); - } - } else { - for (const auto& entry : map_field) { - target = WireHelper::InternalSerialize(13, entry.first, entry.second, target, stream); - check_utf8(entry); - } - } - } - - if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = ::_pbi::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:Odb.Lib.Protobuf.ComponentsFile.ComponentRecord) - return target; -} - -size_t ComponentsFile_ComponentRecord::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:Odb.Lib.Protobuf.ComponentsFile.ComponentRecord) - size_t total_size = 0; - - uint32_t cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - // repeated .Odb.Lib.Protobuf.PropertyRecord propertyRecords = 11; - total_size += 1UL * this->_internal_propertyrecords_size(); - for (const auto& msg : this->_impl_.propertyrecords_) { - total_size += - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(msg); - } - - // repeated .Odb.Lib.Protobuf.ComponentsFile.ComponentRecord.ToeprintRecord toeprintRecords = 12; - total_size += 1UL * this->_internal_toeprintrecords_size(); - for (const auto& msg : this->_impl_.toeprintrecords_) { - total_size += - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(msg); - } - - // map attributeLookupTable = 13; - total_size += 1 * - ::PROTOBUF_NAMESPACE_ID::internal::FromIntSize(this->_internal_attributelookuptable_size()); - for (::PROTOBUF_NAMESPACE_ID::Map< std::string, std::string >::const_iterator - it = this->_internal_attributelookuptable().begin(); - it != this->_internal_attributelookuptable().end(); ++it) { - total_size += ComponentsFile_ComponentRecord_AttributeLookupTableEntry_DoNotUse::Funcs::ByteSizeLong(it->first, it->second); - } - - cached_has_bits = _impl_._has_bits_[0]; - if (cached_has_bits & 0x000000ffu) { - // optional string compName = 6; - if (cached_has_bits & 0x00000001u) { - total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( - this->_internal_compname()); - } - - // optional string partName = 7; - if (cached_has_bits & 0x00000002u) { - total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( - this->_internal_partname()); - } - - // optional string attributes = 8; - if (cached_has_bits & 0x00000004u) { - total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( - this->_internal_attributes()); - } - - // optional uint32 pkgRef = 1; - if (cached_has_bits & 0x00000008u) { - total_size += ::_pbi::WireFormatLite::UInt32SizePlusOne(this->_internal_pkgref()); - } - - // optional float locationX = 2; - if (cached_has_bits & 0x00000010u) { - total_size += 1 + 4; - } - - // optional float locationY = 3; - if (cached_has_bits & 0x00000020u) { - total_size += 1 + 4; - } - - // optional float rotation = 4; - if (cached_has_bits & 0x00000040u) { - total_size += 1 + 4; - } - - // optional bool mirror = 5; - if (cached_has_bits & 0x00000080u) { - total_size += 1 + 1; - } - - } - if (cached_has_bits & 0x00000300u) { - // optional uint32 id = 9; - if (cached_has_bits & 0x00000100u) { - total_size += ::_pbi::WireFormatLite::UInt32SizePlusOne(this->_internal_id()); - } - - // optional uint32 index = 10; - if (cached_has_bits & 0x00000200u) { - total_size += ::_pbi::WireFormatLite::UInt32SizePlusOne(this->_internal_index()); - } - - } - return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); -} - -const ::PROTOBUF_NAMESPACE_ID::Message::ClassData ComponentsFile_ComponentRecord::_class_data_ = { - ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSourceCheck, - ComponentsFile_ComponentRecord::MergeImpl -}; -const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*ComponentsFile_ComponentRecord::GetClassData() const { return &_class_data_; } - - -void ComponentsFile_ComponentRecord::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg) { + _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); +} + +#if defined(PROTOBUF_CUSTOM_VTABLE) + ::uint8_t* ComponentsFile_ComponentRecord::_InternalSerialize( + const MessageLite& base, ::uint8_t* target, + ::google::protobuf::io::EpsCopyOutputStream* stream) { + const ComponentsFile_ComponentRecord& this_ = static_cast(base); +#else // PROTOBUF_CUSTOM_VTABLE + ::uint8_t* ComponentsFile_ComponentRecord::_InternalSerialize( + ::uint8_t* target, + ::google::protobuf::io::EpsCopyOutputStream* stream) const { + const ComponentsFile_ComponentRecord& this_ = *this; +#endif // PROTOBUF_CUSTOM_VTABLE + // @@protoc_insertion_point(serialize_to_array_start:Odb.Lib.Protobuf.ComponentsFile.ComponentRecord) + ::uint32_t cached_has_bits = 0; + (void)cached_has_bits; + + cached_has_bits = this_._impl_._has_bits_[0]; + // optional uint32 pkgRef = 1; + if (cached_has_bits & 0x00000008u) { + target = stream->EnsureSpace(target); + target = ::_pbi::WireFormatLite::WriteUInt32ToArray( + 1, this_._internal_pkgref(), target); + } + + // optional float locationX = 2; + if (cached_has_bits & 0x00000010u) { + target = stream->EnsureSpace(target); + target = ::_pbi::WireFormatLite::WriteFloatToArray( + 2, this_._internal_locationx(), target); + } + + // optional float locationY = 3; + if (cached_has_bits & 0x00000020u) { + target = stream->EnsureSpace(target); + target = ::_pbi::WireFormatLite::WriteFloatToArray( + 3, this_._internal_locationy(), target); + } + + // optional float rotation = 4; + if (cached_has_bits & 0x00000040u) { + target = stream->EnsureSpace(target); + target = ::_pbi::WireFormatLite::WriteFloatToArray( + 4, this_._internal_rotation(), target); + } + + // optional bool mirror = 5; + if (cached_has_bits & 0x00000080u) { + target = stream->EnsureSpace(target); + target = ::_pbi::WireFormatLite::WriteBoolToArray( + 5, this_._internal_mirror(), target); + } + + // optional string compName = 6; + if (cached_has_bits & 0x00000001u) { + const std::string& _s = this_._internal_compname(); + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + _s.data(), static_cast(_s.length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "Odb.Lib.Protobuf.ComponentsFile.ComponentRecord.compName"); + target = stream->WriteStringMaybeAliased(6, _s, target); + } + + // optional string partName = 7; + if (cached_has_bits & 0x00000002u) { + const std::string& _s = this_._internal_partname(); + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + _s.data(), static_cast(_s.length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "Odb.Lib.Protobuf.ComponentsFile.ComponentRecord.partName"); + target = stream->WriteStringMaybeAliased(7, _s, target); + } + + // optional string attributes = 8; + if (cached_has_bits & 0x00000004u) { + const std::string& _s = this_._internal_attributes(); + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + _s.data(), static_cast(_s.length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "Odb.Lib.Protobuf.ComponentsFile.ComponentRecord.attributes"); + target = stream->WriteStringMaybeAliased(8, _s, target); + } + + // optional uint32 id = 9; + if (cached_has_bits & 0x00000100u) { + target = stream->EnsureSpace(target); + target = ::_pbi::WireFormatLite::WriteUInt32ToArray( + 9, this_._internal_id(), target); + } + + // optional uint32 index = 10; + if (cached_has_bits & 0x00000200u) { + target = stream->EnsureSpace(target); + target = ::_pbi::WireFormatLite::WriteUInt32ToArray( + 10, this_._internal_index(), target); + } + + // repeated .Odb.Lib.Protobuf.PropertyRecord propertyRecords = 11; + for (unsigned i = 0, n = static_cast( + this_._internal_propertyrecords_size()); + i < n; i++) { + const auto& repfield = this_._internal_propertyrecords().Get(i); + target = + ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( + 11, repfield, repfield.GetCachedSize(), + target, stream); + } + + // repeated .Odb.Lib.Protobuf.ComponentsFile.ComponentRecord.ToeprintRecord toeprintRecords = 12; + for (unsigned i = 0, n = static_cast( + this_._internal_toeprintrecords_size()); + i < n; i++) { + const auto& repfield = this_._internal_toeprintrecords().Get(i); + target = + ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( + 12, repfield, repfield.GetCachedSize(), + target, stream); + } + + // map attributeLookupTable = 13; + if (!this_._internal_attributelookuptable().empty()) { + using MapType = ::google::protobuf::Map; + using WireHelper = _pbi::MapEntryFuncs; + const auto& field = this_._internal_attributelookuptable(); + + if (stream->IsSerializationDeterministic() && field.size() > 1) { + for (const auto& entry : ::google::protobuf::internal::MapSorterPtr(field)) { + target = WireHelper::InternalSerialize( + 13, entry.first, entry.second, target, stream); + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + entry.first.data(), static_cast(entry.first.length()), + ::google::protobuf::internal::WireFormatLite::SERIALIZE, "Odb.Lib.Protobuf.ComponentsFile.ComponentRecord.attributeLookupTable"); + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + entry.second.data(), static_cast(entry.second.length()), + ::google::protobuf::internal::WireFormatLite::SERIALIZE, "Odb.Lib.Protobuf.ComponentsFile.ComponentRecord.attributeLookupTable"); + } + } else { + for (const auto& entry : field) { + target = WireHelper::InternalSerialize( + 13, entry.first, entry.second, target, stream); + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + entry.first.data(), static_cast(entry.first.length()), + ::google::protobuf::internal::WireFormatLite::SERIALIZE, "Odb.Lib.Protobuf.ComponentsFile.ComponentRecord.attributeLookupTable"); + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + entry.second.data(), static_cast(entry.second.length()), + ::google::protobuf::internal::WireFormatLite::SERIALIZE, "Odb.Lib.Protobuf.ComponentsFile.ComponentRecord.attributeLookupTable"); + } + } + } + + if (PROTOBUF_PREDICT_FALSE(this_._internal_metadata_.have_unknown_fields())) { + target = + ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( + this_._internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); + } + // @@protoc_insertion_point(serialize_to_array_end:Odb.Lib.Protobuf.ComponentsFile.ComponentRecord) + return target; + } + +#if defined(PROTOBUF_CUSTOM_VTABLE) + ::size_t ComponentsFile_ComponentRecord::ByteSizeLong(const MessageLite& base) { + const ComponentsFile_ComponentRecord& this_ = static_cast(base); +#else // PROTOBUF_CUSTOM_VTABLE + ::size_t ComponentsFile_ComponentRecord::ByteSizeLong() const { + const ComponentsFile_ComponentRecord& this_ = *this; +#endif // PROTOBUF_CUSTOM_VTABLE + // @@protoc_insertion_point(message_byte_size_start:Odb.Lib.Protobuf.ComponentsFile.ComponentRecord) + ::size_t total_size = 0; + + ::uint32_t cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void)cached_has_bits; + + ::_pbi::Prefetch5LinesFrom7Lines(&this_); + { + // repeated .Odb.Lib.Protobuf.PropertyRecord propertyRecords = 11; + { + total_size += 1UL * this_._internal_propertyrecords_size(); + for (const auto& msg : this_._internal_propertyrecords()) { + total_size += ::google::protobuf::internal::WireFormatLite::MessageSize(msg); + } + } + // repeated .Odb.Lib.Protobuf.ComponentsFile.ComponentRecord.ToeprintRecord toeprintRecords = 12; + { + total_size += 1UL * this_._internal_toeprintrecords_size(); + for (const auto& msg : this_._internal_toeprintrecords()) { + total_size += ::google::protobuf::internal::WireFormatLite::MessageSize(msg); + } + } + // map attributeLookupTable = 13; + { + total_size += + 1 * ::google::protobuf::internal::FromIntSize(this_._internal_attributelookuptable_size()); + for (const auto& entry : this_._internal_attributelookuptable()) { + total_size += _pbi::MapEntryFuncs::ByteSizeLong(entry.first, entry.second); + } + } + } + cached_has_bits = this_._impl_._has_bits_[0]; + if (cached_has_bits & 0x000000ffu) { + // optional string compName = 6; + if (cached_has_bits & 0x00000001u) { + total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize( + this_._internal_compname()); + } + // optional string partName = 7; + if (cached_has_bits & 0x00000002u) { + total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize( + this_._internal_partname()); + } + // optional string attributes = 8; + if (cached_has_bits & 0x00000004u) { + total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize( + this_._internal_attributes()); + } + // optional uint32 pkgRef = 1; + if (cached_has_bits & 0x00000008u) { + total_size += ::_pbi::WireFormatLite::UInt32SizePlusOne( + this_._internal_pkgref()); + } + // optional float locationX = 2; + if (cached_has_bits & 0x00000010u) { + total_size += 5; + } + // optional float locationY = 3; + if (cached_has_bits & 0x00000020u) { + total_size += 5; + } + // optional float rotation = 4; + if (cached_has_bits & 0x00000040u) { + total_size += 5; + } + // optional bool mirror = 5; + if (cached_has_bits & 0x00000080u) { + total_size += 2; + } + } + if (cached_has_bits & 0x00000300u) { + // optional uint32 id = 9; + if (cached_has_bits & 0x00000100u) { + total_size += ::_pbi::WireFormatLite::UInt32SizePlusOne( + this_._internal_id()); + } + // optional uint32 index = 10; + if (cached_has_bits & 0x00000200u) { + total_size += ::_pbi::WireFormatLite::UInt32SizePlusOne( + this_._internal_index()); + } + } + return this_.MaybeComputeUnknownFieldsSize(total_size, + &this_._impl_._cached_size_); + } + +void ComponentsFile_ComponentRecord::MergeImpl(::google::protobuf::MessageLite& to_msg, const ::google::protobuf::MessageLite& from_msg) { auto* const _this = static_cast(&to_msg); auto& from = static_cast(from_msg); // @@protoc_insertion_point(class_specific_merge_from_start:Odb.Lib.Protobuf.ComponentsFile.ComponentRecord) - GOOGLE_DCHECK_NE(&from, _this); - uint32_t cached_has_bits = 0; + ABSL_DCHECK_NE(&from, _this); + ::uint32_t cached_has_bits = 0; (void) cached_has_bits; - _this->_impl_.propertyrecords_.MergeFrom(from._impl_.propertyrecords_); - _this->_impl_.toeprintrecords_.MergeFrom(from._impl_.toeprintrecords_); + _this->_internal_mutable_propertyrecords()->MergeFrom( + from._internal_propertyrecords()); + _this->_internal_mutable_toeprintrecords()->MergeFrom( + from._internal_toeprintrecords()); _this->_impl_.attributelookuptable_.MergeFrom(from._impl_.attributelookuptable_); cached_has_bits = from._impl_._has_bits_[0]; if (cached_has_bits & 0x000000ffu) { @@ -1505,7 +1650,6 @@ void ComponentsFile_ComponentRecord::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& if (cached_has_bits & 0x00000080u) { _this->_impl_.mirror_ = from._impl_.mirror_; } - _this->_impl_._has_bits_[0] |= cached_has_bits; } if (cached_has_bits & 0x00000300u) { if (cached_has_bits & 0x00000100u) { @@ -1514,9 +1658,9 @@ void ComponentsFile_ComponentRecord::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& if (cached_has_bits & 0x00000200u) { _this->_impl_.index_ = from._impl_.index_; } - _this->_impl_._has_bits_[0] |= cached_has_bits; } - _this->_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); + _this->_impl_._has_bits_[0] |= cached_has_bits; + _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); } void ComponentsFile_ComponentRecord::CopyFrom(const ComponentsFile_ComponentRecord& from) { @@ -1526,32 +1670,20 @@ void ComponentsFile_ComponentRecord::CopyFrom(const ComponentsFile_ComponentReco MergeFrom(from); } -bool ComponentsFile_ComponentRecord::IsInitialized() const { - return true; -} -void ComponentsFile_ComponentRecord::InternalSwap(ComponentsFile_ComponentRecord* other) { +void ComponentsFile_ComponentRecord::InternalSwap(ComponentsFile_ComponentRecord* PROTOBUF_RESTRICT other) { using std::swap; - auto* lhs_arena = GetArenaForAllocation(); - auto* rhs_arena = other->GetArenaForAllocation(); + auto* arena = GetArena(); + ABSL_DCHECK_EQ(arena, other->GetArena()); _internal_metadata_.InternalSwap(&other->_internal_metadata_); swap(_impl_._has_bits_[0], other->_impl_._has_bits_[0]); _impl_.propertyrecords_.InternalSwap(&other->_impl_.propertyrecords_); _impl_.toeprintrecords_.InternalSwap(&other->_impl_.toeprintrecords_); _impl_.attributelookuptable_.InternalSwap(&other->_impl_.attributelookuptable_); - ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( - &_impl_.compname_, lhs_arena, - &other->_impl_.compname_, rhs_arena - ); - ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( - &_impl_.partname_, lhs_arena, - &other->_impl_.partname_, rhs_arena - ); - ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( - &_impl_.attributes_, lhs_arena, - &other->_impl_.attributes_, rhs_arena - ); - ::PROTOBUF_NAMESPACE_ID::internal::memswap< + ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.compname_, &other->_impl_.compname_, arena); + ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.partname_, &other->_impl_.partname_, arena); + ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.attributes_, &other->_impl_.attributes_, arena); + ::google::protobuf::internal::memswap< PROTOBUF_FIELD_OFFSET(ComponentsFile_ComponentRecord, _impl_.index_) + sizeof(ComponentsFile_ComponentRecord::_impl_.index_) - PROTOBUF_FIELD_OFFSET(ComponentsFile_ComponentRecord, _impl_.pkgref_)>( @@ -1559,195 +1691,229 @@ void ComponentsFile_ComponentRecord::InternalSwap(ComponentsFile_ComponentRecord reinterpret_cast(&other->_impl_.pkgref_)); } -::PROTOBUF_NAMESPACE_ID::Metadata ComponentsFile_ComponentRecord::GetMetadata() const { - return ::_pbi::AssignDescriptors( - &descriptor_table_componentsfile_2eproto_getter, &descriptor_table_componentsfile_2eproto_once, - file_level_metadata_componentsfile_2eproto[2]); -} - -// =================================================================== - -class ComponentsFile_BomDescriptionRecord::_Internal { - public: - using HasBits = decltype(std::declval()._impl_._has_bits_); - static void set_has_cpn(HasBits* has_bits) { - (*has_bits)[0] |= 1u; - } - static void set_has_pkg(HasBits* has_bits) { - (*has_bits)[0] |= 2u; - } - static void set_has_ipn(HasBits* has_bits) { - (*has_bits)[0] |= 4u; - } - static void set_has_vpl_vnd(HasBits* has_bits) { - (*has_bits)[0] |= 8u; - } - static void set_has_vpl_mpn(HasBits* has_bits) { - (*has_bits)[0] |= 16u; - } - static void set_has_vnd(HasBits* has_bits) { - (*has_bits)[0] |= 32u; - } - static void set_has_mpn(HasBits* has_bits) { - (*has_bits)[0] |= 64u; - } +::google::protobuf::Metadata ComponentsFile_ComponentRecord::GetMetadata() const { + return ::google::protobuf::Message::GetMetadataImpl(GetClassData()->full()); +} +// =================================================================== + +class ComponentsFile_BomDescriptionRecord::_Internal { + public: + using HasBits = + decltype(std::declval()._impl_._has_bits_); + static constexpr ::int32_t kHasBitsOffset = + 8 * PROTOBUF_FIELD_OFFSET(ComponentsFile_BomDescriptionRecord, _impl_._has_bits_); }; -ComponentsFile_BomDescriptionRecord::ComponentsFile_BomDescriptionRecord(::PROTOBUF_NAMESPACE_ID::Arena* arena, - bool is_message_owned) - : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned) { - SharedCtor(arena, is_message_owned); +ComponentsFile_BomDescriptionRecord::ComponentsFile_BomDescriptionRecord(::google::protobuf::Arena* arena) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : ::google::protobuf::Message(arena, _class_data_.base()) { +#else // PROTOBUF_CUSTOM_VTABLE + : ::google::protobuf::Message(arena) { +#endif // PROTOBUF_CUSTOM_VTABLE + SharedCtor(arena); // @@protoc_insertion_point(arena_constructor:Odb.Lib.Protobuf.ComponentsFile.BomDescriptionRecord) } -ComponentsFile_BomDescriptionRecord::ComponentsFile_BomDescriptionRecord(const ComponentsFile_BomDescriptionRecord& from) - : ::PROTOBUF_NAMESPACE_ID::Message() { - ComponentsFile_BomDescriptionRecord* const _this = this; (void)_this; - new (&_impl_) Impl_{ - decltype(_impl_._has_bits_){from._impl_._has_bits_} - , /*decltype(_impl_._cached_size_)*/{} - , decltype(_impl_.descriptions_){from._impl_.descriptions_} - , decltype(_impl_.cpn_){} - , decltype(_impl_.pkg_){} - , decltype(_impl_.ipn_){} - , decltype(_impl_.vpl_vnd_){} - , decltype(_impl_.vpl_mpn_){} - , decltype(_impl_.vnd_){} - , decltype(_impl_.mpn_){}}; - - _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); - _impl_.cpn_.InitDefault(); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - _impl_.cpn_.Set("", GetArenaForAllocation()); - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (from._internal_has_cpn()) { - _this->_impl_.cpn_.Set(from._internal_cpn(), - _this->GetArenaForAllocation()); - } - _impl_.pkg_.InitDefault(); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - _impl_.pkg_.Set("", GetArenaForAllocation()); - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (from._internal_has_pkg()) { - _this->_impl_.pkg_.Set(from._internal_pkg(), - _this->GetArenaForAllocation()); - } - _impl_.ipn_.InitDefault(); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - _impl_.ipn_.Set("", GetArenaForAllocation()); - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (from._internal_has_ipn()) { - _this->_impl_.ipn_.Set(from._internal_ipn(), - _this->GetArenaForAllocation()); - } - _impl_.vpl_vnd_.InitDefault(); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - _impl_.vpl_vnd_.Set("", GetArenaForAllocation()); - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (from._internal_has_vpl_vnd()) { - _this->_impl_.vpl_vnd_.Set(from._internal_vpl_vnd(), - _this->GetArenaForAllocation()); - } - _impl_.vpl_mpn_.InitDefault(); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - _impl_.vpl_mpn_.Set("", GetArenaForAllocation()); - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (from._internal_has_vpl_mpn()) { - _this->_impl_.vpl_mpn_.Set(from._internal_vpl_mpn(), - _this->GetArenaForAllocation()); - } - _impl_.vnd_.InitDefault(); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - _impl_.vnd_.Set("", GetArenaForAllocation()); - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (from._internal_has_vnd()) { - _this->_impl_.vnd_.Set(from._internal_vnd(), - _this->GetArenaForAllocation()); - } - _impl_.mpn_.InitDefault(); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - _impl_.mpn_.Set("", GetArenaForAllocation()); - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (from._internal_has_mpn()) { - _this->_impl_.mpn_.Set(from._internal_mpn(), - _this->GetArenaForAllocation()); - } +inline PROTOBUF_NDEBUG_INLINE ComponentsFile_BomDescriptionRecord::Impl_::Impl_( + ::google::protobuf::internal::InternalVisibility visibility, ::google::protobuf::Arena* arena, + const Impl_& from, const ::Odb::Lib::Protobuf::ComponentsFile_BomDescriptionRecord& from_msg) + : _has_bits_{from._has_bits_}, + _cached_size_{0}, + descriptions_{visibility, arena, from.descriptions_}, + cpn_(arena, from.cpn_), + pkg_(arena, from.pkg_), + ipn_(arena, from.ipn_), + vpl_vnd_(arena, from.vpl_vnd_), + vpl_mpn_(arena, from.vpl_mpn_), + vnd_(arena, from.vnd_), + mpn_(arena, from.mpn_) {} + +ComponentsFile_BomDescriptionRecord::ComponentsFile_BomDescriptionRecord( + ::google::protobuf::Arena* arena, + const ComponentsFile_BomDescriptionRecord& from) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : ::google::protobuf::Message(arena, _class_data_.base()) { +#else // PROTOBUF_CUSTOM_VTABLE + : ::google::protobuf::Message(arena) { +#endif // PROTOBUF_CUSTOM_VTABLE + ComponentsFile_BomDescriptionRecord* const _this = this; + (void)_this; + _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( + from._internal_metadata_); + new (&_impl_) Impl_(internal_visibility(), arena, from._impl_, from); + // @@protoc_insertion_point(copy_constructor:Odb.Lib.Protobuf.ComponentsFile.BomDescriptionRecord) } - -inline void ComponentsFile_BomDescriptionRecord::SharedCtor( - ::_pb::Arena* arena, bool is_message_owned) { - (void)arena; - (void)is_message_owned; - new (&_impl_) Impl_{ - decltype(_impl_._has_bits_){} - , /*decltype(_impl_._cached_size_)*/{} - , decltype(_impl_.descriptions_){arena} - , decltype(_impl_.cpn_){} - , decltype(_impl_.pkg_){} - , decltype(_impl_.ipn_){} - , decltype(_impl_.vpl_vnd_){} - , decltype(_impl_.vpl_mpn_){} - , decltype(_impl_.vnd_){} - , decltype(_impl_.mpn_){} - }; - _impl_.cpn_.InitDefault(); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - _impl_.cpn_.Set("", GetArenaForAllocation()); - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING - _impl_.pkg_.InitDefault(); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - _impl_.pkg_.Set("", GetArenaForAllocation()); - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING - _impl_.ipn_.InitDefault(); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - _impl_.ipn_.Set("", GetArenaForAllocation()); - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING - _impl_.vpl_vnd_.InitDefault(); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - _impl_.vpl_vnd_.Set("", GetArenaForAllocation()); - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING - _impl_.vpl_mpn_.InitDefault(); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - _impl_.vpl_mpn_.Set("", GetArenaForAllocation()); - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING - _impl_.vnd_.InitDefault(); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - _impl_.vnd_.Set("", GetArenaForAllocation()); - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING - _impl_.mpn_.InitDefault(); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - _impl_.mpn_.Set("", GetArenaForAllocation()); - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING +inline PROTOBUF_NDEBUG_INLINE ComponentsFile_BomDescriptionRecord::Impl_::Impl_( + ::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* arena) + : _cached_size_{0}, + descriptions_{visibility, arena}, + cpn_(arena), + pkg_(arena), + ipn_(arena), + vpl_vnd_(arena), + vpl_mpn_(arena), + vnd_(arena), + mpn_(arena) {} + +inline void ComponentsFile_BomDescriptionRecord::SharedCtor(::_pb::Arena* arena) { + new (&_impl_) Impl_(internal_visibility(), arena); } - ComponentsFile_BomDescriptionRecord::~ComponentsFile_BomDescriptionRecord() { // @@protoc_insertion_point(destructor:Odb.Lib.Protobuf.ComponentsFile.BomDescriptionRecord) - if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) { - (void)arena; - return; - } - SharedDtor(); -} - -inline void ComponentsFile_BomDescriptionRecord::SharedDtor() { - GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); - _impl_.descriptions_.~RepeatedPtrField(); - _impl_.cpn_.Destroy(); - _impl_.pkg_.Destroy(); - _impl_.ipn_.Destroy(); - _impl_.vpl_vnd_.Destroy(); - _impl_.vpl_mpn_.Destroy(); - _impl_.vnd_.Destroy(); - _impl_.mpn_.Destroy(); -} - -void ComponentsFile_BomDescriptionRecord::SetCachedSize(int size) const { - _impl_._cached_size_.Set(size); -} + SharedDtor(*this); +} +inline void ComponentsFile_BomDescriptionRecord::SharedDtor(MessageLite& self) { + ComponentsFile_BomDescriptionRecord& this_ = static_cast(self); + this_._internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); + ABSL_DCHECK(this_.GetArena() == nullptr); + this_._impl_.cpn_.Destroy(); + this_._impl_.pkg_.Destroy(); + this_._impl_.ipn_.Destroy(); + this_._impl_.vpl_vnd_.Destroy(); + this_._impl_.vpl_mpn_.Destroy(); + this_._impl_.vnd_.Destroy(); + this_._impl_.mpn_.Destroy(); + this_._impl_.~Impl_(); +} + +inline void* ComponentsFile_BomDescriptionRecord::PlacementNew_(const void*, void* mem, + ::google::protobuf::Arena* arena) { + return ::new (mem) ComponentsFile_BomDescriptionRecord(arena); +} +constexpr auto ComponentsFile_BomDescriptionRecord::InternalNewImpl_() { + constexpr auto arena_bits = ::google::protobuf::internal::EncodePlacementArenaOffsets({ + PROTOBUF_FIELD_OFFSET(ComponentsFile_BomDescriptionRecord, _impl_.descriptions_) + + decltype(ComponentsFile_BomDescriptionRecord::_impl_.descriptions_):: + InternalGetArenaOffset( + ::google::protobuf::Message::internal_visibility()), + }); + if (arena_bits.has_value()) { + return ::google::protobuf::internal::MessageCreator::CopyInit( + sizeof(ComponentsFile_BomDescriptionRecord), alignof(ComponentsFile_BomDescriptionRecord), *arena_bits); + } else { + return ::google::protobuf::internal::MessageCreator(&ComponentsFile_BomDescriptionRecord::PlacementNew_, + sizeof(ComponentsFile_BomDescriptionRecord), + alignof(ComponentsFile_BomDescriptionRecord)); + } +} +PROTOBUF_CONSTINIT +PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 +const ::google::protobuf::internal::ClassDataFull ComponentsFile_BomDescriptionRecord::_class_data_ = { + ::google::protobuf::internal::ClassData{ + &_ComponentsFile_BomDescriptionRecord_default_instance_._instance, + &_table_.header, + nullptr, // OnDemandRegisterArenaDtor + nullptr, // IsInitialized + &ComponentsFile_BomDescriptionRecord::MergeImpl, + ::google::protobuf::Message::GetNewImpl(), +#if defined(PROTOBUF_CUSTOM_VTABLE) + &ComponentsFile_BomDescriptionRecord::SharedDtor, + ::google::protobuf::Message::GetClearImpl(), &ComponentsFile_BomDescriptionRecord::ByteSizeLong, + &ComponentsFile_BomDescriptionRecord::_InternalSerialize, +#endif // PROTOBUF_CUSTOM_VTABLE + PROTOBUF_FIELD_OFFSET(ComponentsFile_BomDescriptionRecord, _impl_._cached_size_), + false, + }, + &ComponentsFile_BomDescriptionRecord::kDescriptorMethods, + &descriptor_table_componentsfile_2eproto, + nullptr, // tracker +}; +const ::google::protobuf::internal::ClassData* ComponentsFile_BomDescriptionRecord::GetClassData() const { + ::google::protobuf::internal::PrefetchToLocalCache(&_class_data_); + ::google::protobuf::internal::PrefetchToLocalCache(_class_data_.tc_table); + return _class_data_.base(); +} +PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 +const ::_pbi::TcParseTable<3, 8, 0, 110, 2> ComponentsFile_BomDescriptionRecord::_table_ = { + { + PROTOBUF_FIELD_OFFSET(ComponentsFile_BomDescriptionRecord, _impl_._has_bits_), + 0, // no _extensions_ + 8, 56, // max_field_number, fast_idx_mask + offsetof(decltype(_table_), field_lookup_table), + 4294967040, // skipmap + offsetof(decltype(_table_), field_entries), + 8, // num_field_entries + 0, // num_aux_entries + offsetof(decltype(_table_), field_names), // no aux_entries + _class_data_.base(), + nullptr, // post_loop_handler + ::_pbi::TcParser::GenericFallback, // fallback + #ifdef PROTOBUF_PREFETCH_PARSE_TABLE + ::_pbi::TcParser::GetTable<::Odb::Lib::Protobuf::ComponentsFile_BomDescriptionRecord>(), // to_prefetch + #endif // PROTOBUF_PREFETCH_PARSE_TABLE + }, {{ + // optional string mpn = 8; + {::_pbi::TcParser::FastUS1, + {66, 6, 0, PROTOBUF_FIELD_OFFSET(ComponentsFile_BomDescriptionRecord, _impl_.mpn_)}}, + // optional string cpn = 1; + {::_pbi::TcParser::FastUS1, + {10, 0, 0, PROTOBUF_FIELD_OFFSET(ComponentsFile_BomDescriptionRecord, _impl_.cpn_)}}, + // optional string pkg = 2; + {::_pbi::TcParser::FastUS1, + {18, 1, 0, PROTOBUF_FIELD_OFFSET(ComponentsFile_BomDescriptionRecord, _impl_.pkg_)}}, + // optional string ipn = 3; + {::_pbi::TcParser::FastUS1, + {26, 2, 0, PROTOBUF_FIELD_OFFSET(ComponentsFile_BomDescriptionRecord, _impl_.ipn_)}}, + // repeated string descriptions = 4; + {::_pbi::TcParser::FastUR1, + {34, 63, 0, PROTOBUF_FIELD_OFFSET(ComponentsFile_BomDescriptionRecord, _impl_.descriptions_)}}, + // optional string vpl_vnd = 5; + {::_pbi::TcParser::FastUS1, + {42, 3, 0, PROTOBUF_FIELD_OFFSET(ComponentsFile_BomDescriptionRecord, _impl_.vpl_vnd_)}}, + // optional string vpl_mpn = 6; + {::_pbi::TcParser::FastUS1, + {50, 4, 0, PROTOBUF_FIELD_OFFSET(ComponentsFile_BomDescriptionRecord, _impl_.vpl_mpn_)}}, + // optional string vnd = 7; + {::_pbi::TcParser::FastUS1, + {58, 5, 0, PROTOBUF_FIELD_OFFSET(ComponentsFile_BomDescriptionRecord, _impl_.vnd_)}}, + }}, {{ + 65535, 65535 + }}, {{ + // optional string cpn = 1; + {PROTOBUF_FIELD_OFFSET(ComponentsFile_BomDescriptionRecord, _impl_.cpn_), _Internal::kHasBitsOffset + 0, 0, + (0 | ::_fl::kFcOptional | ::_fl::kUtf8String | ::_fl::kRepAString)}, + // optional string pkg = 2; + {PROTOBUF_FIELD_OFFSET(ComponentsFile_BomDescriptionRecord, _impl_.pkg_), _Internal::kHasBitsOffset + 1, 0, + (0 | ::_fl::kFcOptional | ::_fl::kUtf8String | ::_fl::kRepAString)}, + // optional string ipn = 3; + {PROTOBUF_FIELD_OFFSET(ComponentsFile_BomDescriptionRecord, _impl_.ipn_), _Internal::kHasBitsOffset + 2, 0, + (0 | ::_fl::kFcOptional | ::_fl::kUtf8String | ::_fl::kRepAString)}, + // repeated string descriptions = 4; + {PROTOBUF_FIELD_OFFSET(ComponentsFile_BomDescriptionRecord, _impl_.descriptions_), -1, 0, + (0 | ::_fl::kFcRepeated | ::_fl::kUtf8String | ::_fl::kRepSString)}, + // optional string vpl_vnd = 5; + {PROTOBUF_FIELD_OFFSET(ComponentsFile_BomDescriptionRecord, _impl_.vpl_vnd_), _Internal::kHasBitsOffset + 3, 0, + (0 | ::_fl::kFcOptional | ::_fl::kUtf8String | ::_fl::kRepAString)}, + // optional string vpl_mpn = 6; + {PROTOBUF_FIELD_OFFSET(ComponentsFile_BomDescriptionRecord, _impl_.vpl_mpn_), _Internal::kHasBitsOffset + 4, 0, + (0 | ::_fl::kFcOptional | ::_fl::kUtf8String | ::_fl::kRepAString)}, + // optional string vnd = 7; + {PROTOBUF_FIELD_OFFSET(ComponentsFile_BomDescriptionRecord, _impl_.vnd_), _Internal::kHasBitsOffset + 5, 0, + (0 | ::_fl::kFcOptional | ::_fl::kUtf8String | ::_fl::kRepAString)}, + // optional string mpn = 8; + {PROTOBUF_FIELD_OFFSET(ComponentsFile_BomDescriptionRecord, _impl_.mpn_), _Internal::kHasBitsOffset + 6, 0, + (0 | ::_fl::kFcOptional | ::_fl::kUtf8String | ::_fl::kRepAString)}, + }}, + // no aux_entries + {{ + "\64\3\3\3\14\7\7\3\3\0\0\0\0\0\0\0" + "Odb.Lib.Protobuf.ComponentsFile.BomDescriptionRecord" + "cpn" + "pkg" + "ipn" + "descriptions" + "vpl_vnd" + "vpl_mpn" + "vnd" + "mpn" + }}, +}; -void ComponentsFile_BomDescriptionRecord::Clear() { +PROTOBUF_NOINLINE void ComponentsFile_BomDescriptionRecord::Clear() { // @@protoc_insertion_point(message_clear_start:Odb.Lib.Protobuf.ComponentsFile.BomDescriptionRecord) - uint32_t cached_has_bits = 0; + ::google::protobuf::internal::TSanWrite(&_impl_); + ::uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; @@ -1777,306 +1943,175 @@ void ComponentsFile_BomDescriptionRecord::Clear() { } } _impl_._has_bits_.Clear(); - _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); -} - -const char* ComponentsFile_BomDescriptionRecord::_InternalParse(const char* ptr, ::_pbi::ParseContext* ctx) { -#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure - _Internal::HasBits has_bits{}; - while (!ctx->Done(&ptr)) { - uint32_t tag; - ptr = ::_pbi::ReadTag(ptr, &tag); - switch (tag >> 3) { - // optional string cpn = 1; - case 1: - if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 10)) { - auto str = _internal_mutable_cpn(); - ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); - CHK_(ptr); - CHK_(::_pbi::VerifyUTF8(str, "Odb.Lib.Protobuf.ComponentsFile.BomDescriptionRecord.cpn")); - } else - goto handle_unusual; - continue; - // optional string pkg = 2; - case 2: - if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 18)) { - auto str = _internal_mutable_pkg(); - ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); - CHK_(ptr); - CHK_(::_pbi::VerifyUTF8(str, "Odb.Lib.Protobuf.ComponentsFile.BomDescriptionRecord.pkg")); - } else - goto handle_unusual; - continue; - // optional string ipn = 3; - case 3: - if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 26)) { - auto str = _internal_mutable_ipn(); - ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); - CHK_(ptr); - CHK_(::_pbi::VerifyUTF8(str, "Odb.Lib.Protobuf.ComponentsFile.BomDescriptionRecord.ipn")); - } else - goto handle_unusual; - continue; - // repeated string descriptions = 4; - case 4: - if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 34)) { - ptr -= 1; - do { - ptr += 1; - auto str = _internal_add_descriptions(); - ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); - CHK_(ptr); - CHK_(::_pbi::VerifyUTF8(str, "Odb.Lib.Protobuf.ComponentsFile.BomDescriptionRecord.descriptions")); - if (!ctx->DataAvailable(ptr)) break; - } while (::PROTOBUF_NAMESPACE_ID::internal::ExpectTag<34>(ptr)); - } else - goto handle_unusual; - continue; - // optional string vpl_vnd = 5; - case 5: - if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 42)) { - auto str = _internal_mutable_vpl_vnd(); - ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); - CHK_(ptr); - CHK_(::_pbi::VerifyUTF8(str, "Odb.Lib.Protobuf.ComponentsFile.BomDescriptionRecord.vpl_vnd")); - } else - goto handle_unusual; - continue; - // optional string vpl_mpn = 6; - case 6: - if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 50)) { - auto str = _internal_mutable_vpl_mpn(); - ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); - CHK_(ptr); - CHK_(::_pbi::VerifyUTF8(str, "Odb.Lib.Protobuf.ComponentsFile.BomDescriptionRecord.vpl_mpn")); - } else - goto handle_unusual; - continue; - // optional string vnd = 7; - case 7: - if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 58)) { - auto str = _internal_mutable_vnd(); - ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); - CHK_(ptr); - CHK_(::_pbi::VerifyUTF8(str, "Odb.Lib.Protobuf.ComponentsFile.BomDescriptionRecord.vnd")); - } else - goto handle_unusual; - continue; - // optional string mpn = 8; - case 8: - if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 66)) { - auto str = _internal_mutable_mpn(); - ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); - CHK_(ptr); - CHK_(::_pbi::VerifyUTF8(str, "Odb.Lib.Protobuf.ComponentsFile.BomDescriptionRecord.mpn")); - } else - goto handle_unusual; - continue; - default: - goto handle_unusual; - } // switch - handle_unusual: - if ((tag == 0) || ((tag & 7) == 4)) { - CHK_(ptr); - ctx->SetLastTag(tag); - goto message_done; - } - ptr = UnknownFieldParse( - tag, - _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(), - ptr, ctx); - CHK_(ptr != nullptr); - } // while -message_done: - _impl_._has_bits_.Or(has_bits); - return ptr; -failure: - ptr = nullptr; - goto message_done; -#undef CHK_ -} - -uint8_t* ComponentsFile_BomDescriptionRecord::_InternalSerialize( - uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { - // @@protoc_insertion_point(serialize_to_array_start:Odb.Lib.Protobuf.ComponentsFile.BomDescriptionRecord) - uint32_t cached_has_bits = 0; - (void) cached_has_bits; - - // optional string cpn = 1; - if (_internal_has_cpn()) { - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( - this->_internal_cpn().data(), static_cast(this->_internal_cpn().length()), - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, - "Odb.Lib.Protobuf.ComponentsFile.BomDescriptionRecord.cpn"); - target = stream->WriteStringMaybeAliased( - 1, this->_internal_cpn(), target); - } - - // optional string pkg = 2; - if (_internal_has_pkg()) { - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( - this->_internal_pkg().data(), static_cast(this->_internal_pkg().length()), - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, - "Odb.Lib.Protobuf.ComponentsFile.BomDescriptionRecord.pkg"); - target = stream->WriteStringMaybeAliased( - 2, this->_internal_pkg(), target); - } - - // optional string ipn = 3; - if (_internal_has_ipn()) { - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( - this->_internal_ipn().data(), static_cast(this->_internal_ipn().length()), - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, - "Odb.Lib.Protobuf.ComponentsFile.BomDescriptionRecord.ipn"); - target = stream->WriteStringMaybeAliased( - 3, this->_internal_ipn(), target); - } - - // repeated string descriptions = 4; - for (int i = 0, n = this->_internal_descriptions_size(); i < n; i++) { - const auto& s = this->_internal_descriptions(i); - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( - s.data(), static_cast(s.length()), - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, - "Odb.Lib.Protobuf.ComponentsFile.BomDescriptionRecord.descriptions"); - target = stream->WriteString(4, s, target); - } - - // optional string vpl_vnd = 5; - if (_internal_has_vpl_vnd()) { - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( - this->_internal_vpl_vnd().data(), static_cast(this->_internal_vpl_vnd().length()), - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, - "Odb.Lib.Protobuf.ComponentsFile.BomDescriptionRecord.vpl_vnd"); - target = stream->WriteStringMaybeAliased( - 5, this->_internal_vpl_vnd(), target); - } - - // optional string vpl_mpn = 6; - if (_internal_has_vpl_mpn()) { - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( - this->_internal_vpl_mpn().data(), static_cast(this->_internal_vpl_mpn().length()), - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, - "Odb.Lib.Protobuf.ComponentsFile.BomDescriptionRecord.vpl_mpn"); - target = stream->WriteStringMaybeAliased( - 6, this->_internal_vpl_mpn(), target); - } - - // optional string vnd = 7; - if (_internal_has_vnd()) { - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( - this->_internal_vnd().data(), static_cast(this->_internal_vnd().length()), - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, - "Odb.Lib.Protobuf.ComponentsFile.BomDescriptionRecord.vnd"); - target = stream->WriteStringMaybeAliased( - 7, this->_internal_vnd(), target); - } - - // optional string mpn = 8; - if (_internal_has_mpn()) { - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( - this->_internal_mpn().data(), static_cast(this->_internal_mpn().length()), - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, - "Odb.Lib.Protobuf.ComponentsFile.BomDescriptionRecord.mpn"); - target = stream->WriteStringMaybeAliased( - 8, this->_internal_mpn(), target); - } - - if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = ::_pbi::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:Odb.Lib.Protobuf.ComponentsFile.BomDescriptionRecord) - return target; -} - -size_t ComponentsFile_BomDescriptionRecord::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:Odb.Lib.Protobuf.ComponentsFile.BomDescriptionRecord) - size_t total_size = 0; - - uint32_t cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - // repeated string descriptions = 4; - total_size += 1 * - ::PROTOBUF_NAMESPACE_ID::internal::FromIntSize(_impl_.descriptions_.size()); - for (int i = 0, n = _impl_.descriptions_.size(); i < n; i++) { - total_size += ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( - _impl_.descriptions_.Get(i)); - } - - cached_has_bits = _impl_._has_bits_[0]; - if (cached_has_bits & 0x0000007fu) { - // optional string cpn = 1; - if (cached_has_bits & 0x00000001u) { - total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( - this->_internal_cpn()); - } - - // optional string pkg = 2; - if (cached_has_bits & 0x00000002u) { - total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( - this->_internal_pkg()); - } - - // optional string ipn = 3; - if (cached_has_bits & 0x00000004u) { - total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( - this->_internal_ipn()); - } - - // optional string vpl_vnd = 5; - if (cached_has_bits & 0x00000008u) { - total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( - this->_internal_vpl_vnd()); - } - - // optional string vpl_mpn = 6; - if (cached_has_bits & 0x00000010u) { - total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( - this->_internal_vpl_mpn()); - } - - // optional string vnd = 7; - if (cached_has_bits & 0x00000020u) { - total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( - this->_internal_vnd()); - } - - // optional string mpn = 8; - if (cached_has_bits & 0x00000040u) { - total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( - this->_internal_mpn()); - } - - } - return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); -} - -const ::PROTOBUF_NAMESPACE_ID::Message::ClassData ComponentsFile_BomDescriptionRecord::_class_data_ = { - ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSourceCheck, - ComponentsFile_BomDescriptionRecord::MergeImpl -}; -const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*ComponentsFile_BomDescriptionRecord::GetClassData() const { return &_class_data_; } - - -void ComponentsFile_BomDescriptionRecord::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg) { + _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); +} + +#if defined(PROTOBUF_CUSTOM_VTABLE) + ::uint8_t* ComponentsFile_BomDescriptionRecord::_InternalSerialize( + const MessageLite& base, ::uint8_t* target, + ::google::protobuf::io::EpsCopyOutputStream* stream) { + const ComponentsFile_BomDescriptionRecord& this_ = static_cast(base); +#else // PROTOBUF_CUSTOM_VTABLE + ::uint8_t* ComponentsFile_BomDescriptionRecord::_InternalSerialize( + ::uint8_t* target, + ::google::protobuf::io::EpsCopyOutputStream* stream) const { + const ComponentsFile_BomDescriptionRecord& this_ = *this; +#endif // PROTOBUF_CUSTOM_VTABLE + // @@protoc_insertion_point(serialize_to_array_start:Odb.Lib.Protobuf.ComponentsFile.BomDescriptionRecord) + ::uint32_t cached_has_bits = 0; + (void)cached_has_bits; + + cached_has_bits = this_._impl_._has_bits_[0]; + // optional string cpn = 1; + if (cached_has_bits & 0x00000001u) { + const std::string& _s = this_._internal_cpn(); + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + _s.data(), static_cast(_s.length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "Odb.Lib.Protobuf.ComponentsFile.BomDescriptionRecord.cpn"); + target = stream->WriteStringMaybeAliased(1, _s, target); + } + + // optional string pkg = 2; + if (cached_has_bits & 0x00000002u) { + const std::string& _s = this_._internal_pkg(); + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + _s.data(), static_cast(_s.length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "Odb.Lib.Protobuf.ComponentsFile.BomDescriptionRecord.pkg"); + target = stream->WriteStringMaybeAliased(2, _s, target); + } + + // optional string ipn = 3; + if (cached_has_bits & 0x00000004u) { + const std::string& _s = this_._internal_ipn(); + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + _s.data(), static_cast(_s.length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "Odb.Lib.Protobuf.ComponentsFile.BomDescriptionRecord.ipn"); + target = stream->WriteStringMaybeAliased(3, _s, target); + } + + // repeated string descriptions = 4; + for (int i = 0, n = this_._internal_descriptions_size(); i < n; ++i) { + const auto& s = this_._internal_descriptions().Get(i); + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + s.data(), static_cast(s.length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "Odb.Lib.Protobuf.ComponentsFile.BomDescriptionRecord.descriptions"); + target = stream->WriteString(4, s, target); + } + + // optional string vpl_vnd = 5; + if (cached_has_bits & 0x00000008u) { + const std::string& _s = this_._internal_vpl_vnd(); + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + _s.data(), static_cast(_s.length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "Odb.Lib.Protobuf.ComponentsFile.BomDescriptionRecord.vpl_vnd"); + target = stream->WriteStringMaybeAliased(5, _s, target); + } + + // optional string vpl_mpn = 6; + if (cached_has_bits & 0x00000010u) { + const std::string& _s = this_._internal_vpl_mpn(); + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + _s.data(), static_cast(_s.length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "Odb.Lib.Protobuf.ComponentsFile.BomDescriptionRecord.vpl_mpn"); + target = stream->WriteStringMaybeAliased(6, _s, target); + } + + // optional string vnd = 7; + if (cached_has_bits & 0x00000020u) { + const std::string& _s = this_._internal_vnd(); + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + _s.data(), static_cast(_s.length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "Odb.Lib.Protobuf.ComponentsFile.BomDescriptionRecord.vnd"); + target = stream->WriteStringMaybeAliased(7, _s, target); + } + + // optional string mpn = 8; + if (cached_has_bits & 0x00000040u) { + const std::string& _s = this_._internal_mpn(); + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + _s.data(), static_cast(_s.length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "Odb.Lib.Protobuf.ComponentsFile.BomDescriptionRecord.mpn"); + target = stream->WriteStringMaybeAliased(8, _s, target); + } + + if (PROTOBUF_PREDICT_FALSE(this_._internal_metadata_.have_unknown_fields())) { + target = + ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( + this_._internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); + } + // @@protoc_insertion_point(serialize_to_array_end:Odb.Lib.Protobuf.ComponentsFile.BomDescriptionRecord) + return target; + } + +#if defined(PROTOBUF_CUSTOM_VTABLE) + ::size_t ComponentsFile_BomDescriptionRecord::ByteSizeLong(const MessageLite& base) { + const ComponentsFile_BomDescriptionRecord& this_ = static_cast(base); +#else // PROTOBUF_CUSTOM_VTABLE + ::size_t ComponentsFile_BomDescriptionRecord::ByteSizeLong() const { + const ComponentsFile_BomDescriptionRecord& this_ = *this; +#endif // PROTOBUF_CUSTOM_VTABLE + // @@protoc_insertion_point(message_byte_size_start:Odb.Lib.Protobuf.ComponentsFile.BomDescriptionRecord) + ::size_t total_size = 0; + + ::uint32_t cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void)cached_has_bits; + + ::_pbi::Prefetch5LinesFrom7Lines(&this_); + { + // repeated string descriptions = 4; + { + total_size += + 1 * ::google::protobuf::internal::FromIntSize(this_._internal_descriptions().size()); + for (int i = 0, n = this_._internal_descriptions().size(); i < n; ++i) { + total_size += ::google::protobuf::internal::WireFormatLite::StringSize( + this_._internal_descriptions().Get(i)); + } + } + } + cached_has_bits = this_._impl_._has_bits_[0]; + if (cached_has_bits & 0x0000007fu) { + // optional string cpn = 1; + if (cached_has_bits & 0x00000001u) { + total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize( + this_._internal_cpn()); + } + // optional string pkg = 2; + if (cached_has_bits & 0x00000002u) { + total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize( + this_._internal_pkg()); + } + // optional string ipn = 3; + if (cached_has_bits & 0x00000004u) { + total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize( + this_._internal_ipn()); + } + // optional string vpl_vnd = 5; + if (cached_has_bits & 0x00000008u) { + total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize( + this_._internal_vpl_vnd()); + } + // optional string vpl_mpn = 6; + if (cached_has_bits & 0x00000010u) { + total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize( + this_._internal_vpl_mpn()); + } + // optional string vnd = 7; + if (cached_has_bits & 0x00000020u) { + total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize( + this_._internal_vnd()); + } + // optional string mpn = 8; + if (cached_has_bits & 0x00000040u) { + total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize( + this_._internal_mpn()); + } + } + return this_.MaybeComputeUnknownFieldsSize(total_size, + &this_._impl_._cached_size_); + } + +void ComponentsFile_BomDescriptionRecord::MergeImpl(::google::protobuf::MessageLite& to_msg, const ::google::protobuf::MessageLite& from_msg) { auto* const _this = static_cast(&to_msg); auto& from = static_cast(from_msg); // @@protoc_insertion_point(class_specific_merge_from_start:Odb.Lib.Protobuf.ComponentsFile.BomDescriptionRecord) - GOOGLE_DCHECK_NE(&from, _this); - uint32_t cached_has_bits = 0; + ABSL_DCHECK_NE(&from, _this); + ::uint32_t cached_has_bits = 0; (void) cached_has_bits; - _this->_impl_.descriptions_.MergeFrom(from._impl_.descriptions_); + _this->_internal_mutable_descriptions()->MergeFrom(from._internal_descriptions()); cached_has_bits = from._impl_._has_bits_[0]; if (cached_has_bits & 0x0000007fu) { if (cached_has_bits & 0x00000001u) { @@ -2101,7 +2136,8 @@ void ComponentsFile_BomDescriptionRecord::MergeImpl(::PROTOBUF_NAMESPACE_ID::Mes _this->_internal_set_mpn(from._internal_mpn()); } } - _this->_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); + _this->_impl_._has_bits_[0] |= cached_has_bits; + _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); } void ComponentsFile_BomDescriptionRecord::CopyFrom(const ComponentsFile_BomDescriptionRecord& from) { @@ -2111,277 +2147,620 @@ void ComponentsFile_BomDescriptionRecord::CopyFrom(const ComponentsFile_BomDescr MergeFrom(from); } -bool ComponentsFile_BomDescriptionRecord::IsInitialized() const { - return true; -} -void ComponentsFile_BomDescriptionRecord::InternalSwap(ComponentsFile_BomDescriptionRecord* other) { +void ComponentsFile_BomDescriptionRecord::InternalSwap(ComponentsFile_BomDescriptionRecord* PROTOBUF_RESTRICT other) { using std::swap; - auto* lhs_arena = GetArenaForAllocation(); - auto* rhs_arena = other->GetArenaForAllocation(); + auto* arena = GetArena(); + ABSL_DCHECK_EQ(arena, other->GetArena()); _internal_metadata_.InternalSwap(&other->_internal_metadata_); swap(_impl_._has_bits_[0], other->_impl_._has_bits_[0]); _impl_.descriptions_.InternalSwap(&other->_impl_.descriptions_); - ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( - &_impl_.cpn_, lhs_arena, - &other->_impl_.cpn_, rhs_arena - ); - ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( - &_impl_.pkg_, lhs_arena, - &other->_impl_.pkg_, rhs_arena - ); - ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( - &_impl_.ipn_, lhs_arena, - &other->_impl_.ipn_, rhs_arena - ); - ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( - &_impl_.vpl_vnd_, lhs_arena, - &other->_impl_.vpl_vnd_, rhs_arena - ); - ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( - &_impl_.vpl_mpn_, lhs_arena, - &other->_impl_.vpl_mpn_, rhs_arena - ); - ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( - &_impl_.vnd_, lhs_arena, - &other->_impl_.vnd_, rhs_arena - ); - ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( - &_impl_.mpn_, lhs_arena, - &other->_impl_.mpn_, rhs_arena - ); + ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.cpn_, &other->_impl_.cpn_, arena); + ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.pkg_, &other->_impl_.pkg_, arena); + ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.ipn_, &other->_impl_.ipn_, arena); + ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.vpl_vnd_, &other->_impl_.vpl_vnd_, arena); + ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.vpl_mpn_, &other->_impl_.vpl_mpn_, arena); + ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.vnd_, &other->_impl_.vnd_, arena); + ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.mpn_, &other->_impl_.mpn_, arena); } -::PROTOBUF_NAMESPACE_ID::Metadata ComponentsFile_BomDescriptionRecord::GetMetadata() const { - return ::_pbi::AssignDescriptors( - &descriptor_table_componentsfile_2eproto_getter, &descriptor_table_componentsfile_2eproto_once, - file_level_metadata_componentsfile_2eproto[3]); +::google::protobuf::Metadata ComponentsFile_BomDescriptionRecord::GetMetadata() const { + return ::google::protobuf::Message::GetMetadataImpl(GetClassData()->full()); } - // =================================================================== -ComponentsFile_ComponentRecordsByNameEntry_DoNotUse::ComponentsFile_ComponentRecordsByNameEntry_DoNotUse() {} -ComponentsFile_ComponentRecordsByNameEntry_DoNotUse::ComponentsFile_ComponentRecordsByNameEntry_DoNotUse(::PROTOBUF_NAMESPACE_ID::Arena* arena) - : SuperType(arena) {} -void ComponentsFile_ComponentRecordsByNameEntry_DoNotUse::MergeFrom(const ComponentsFile_ComponentRecordsByNameEntry_DoNotUse& other) { - MergeFromInternal(other); -} -::PROTOBUF_NAMESPACE_ID::Metadata ComponentsFile_ComponentRecordsByNameEntry_DoNotUse::GetMetadata() const { - return ::_pbi::AssignDescriptors( - &descriptor_table_componentsfile_2eproto_getter, &descriptor_table_componentsfile_2eproto_once, - file_level_metadata_componentsfile_2eproto[4]); -} +#if defined(PROTOBUF_CUSTOM_VTABLE) + ComponentsFile_ComponentRecordsByNameEntry_DoNotUse::ComponentsFile_ComponentRecordsByNameEntry_DoNotUse() : SuperType(_class_data_.base()) {} + ComponentsFile_ComponentRecordsByNameEntry_DoNotUse::ComponentsFile_ComponentRecordsByNameEntry_DoNotUse(::google::protobuf::Arena* arena) + : SuperType(arena, _class_data_.base()) {} +#else // PROTOBUF_CUSTOM_VTABLE + ComponentsFile_ComponentRecordsByNameEntry_DoNotUse::ComponentsFile_ComponentRecordsByNameEntry_DoNotUse() : SuperType() {} + ComponentsFile_ComponentRecordsByNameEntry_DoNotUse::ComponentsFile_ComponentRecordsByNameEntry_DoNotUse(::google::protobuf::Arena* arena) : SuperType(arena) {} +#endif // PROTOBUF_CUSTOM_VTABLE + inline void* ComponentsFile_ComponentRecordsByNameEntry_DoNotUse::PlacementNew_(const void*, void* mem, + ::google::protobuf::Arena* arena) { + return ::new (mem) ComponentsFile_ComponentRecordsByNameEntry_DoNotUse(arena); + } + constexpr auto ComponentsFile_ComponentRecordsByNameEntry_DoNotUse::InternalNewImpl_() { + return ::google::protobuf::internal::MessageCreator::CopyInit(sizeof(ComponentsFile_ComponentRecordsByNameEntry_DoNotUse), + alignof(ComponentsFile_ComponentRecordsByNameEntry_DoNotUse)); + } + PROTOBUF_CONSTINIT + PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 + const ::google::protobuf::internal::ClassDataFull ComponentsFile_ComponentRecordsByNameEntry_DoNotUse::_class_data_ = { + ::google::protobuf::internal::ClassData{ + &_ComponentsFile_ComponentRecordsByNameEntry_DoNotUse_default_instance_._instance, + &_table_.header, + nullptr, // OnDemandRegisterArenaDtor + nullptr, // IsInitialized + &ComponentsFile_ComponentRecordsByNameEntry_DoNotUse::MergeImpl, + ::google::protobuf::Message::GetNewImpl(), + #if defined(PROTOBUF_CUSTOM_VTABLE) + &ComponentsFile_ComponentRecordsByNameEntry_DoNotUse::SharedDtor, + static_cast( + &ComponentsFile_ComponentRecordsByNameEntry_DoNotUse::ClearImpl), + ::google::protobuf::Message::ByteSizeLongImpl, ::google::protobuf::Message::_InternalSerializeImpl + , + #endif // PROTOBUF_CUSTOM_VTABLE + PROTOBUF_FIELD_OFFSET(ComponentsFile_ComponentRecordsByNameEntry_DoNotUse, _impl_._cached_size_), + false, + }, + &ComponentsFile_ComponentRecordsByNameEntry_DoNotUse::kDescriptorMethods, + &descriptor_table_componentsfile_2eproto, + nullptr, // tracker + }; + const ::google::protobuf::internal::ClassData* ComponentsFile_ComponentRecordsByNameEntry_DoNotUse::GetClassData() const { + ::google::protobuf::internal::PrefetchToLocalCache(&_class_data_); + ::google::protobuf::internal::PrefetchToLocalCache(_class_data_.tc_table); + return _class_data_.base(); + } +PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 +const ::_pbi::TcParseTable<1, 2, 1, 71, 2> ComponentsFile_ComponentRecordsByNameEntry_DoNotUse::_table_ = { + { + PROTOBUF_FIELD_OFFSET(ComponentsFile_ComponentRecordsByNameEntry_DoNotUse, _impl_._has_bits_), + 0, // no _extensions_ + 2, 8, // max_field_number, fast_idx_mask + offsetof(decltype(_table_), field_lookup_table), + 4294967292, // skipmap + offsetof(decltype(_table_), field_entries), + 2, // num_field_entries + 1, // num_aux_entries + offsetof(decltype(_table_), aux_entries), + _class_data_.base(), + nullptr, // post_loop_handler + ::_pbi::TcParser::DiscardEverythingFallback, // fallback + #ifdef PROTOBUF_PREFETCH_PARSE_TABLE + ::_pbi::TcParser::GetTable<::Odb::Lib::Protobuf::ComponentsFile_ComponentRecordsByNameEntry_DoNotUse>(), // to_prefetch + #endif // PROTOBUF_PREFETCH_PARSE_TABLE + }, {{ + // .Odb.Lib.Protobuf.ComponentsFile.ComponentRecord value = 2; + {::_pbi::TcParser::FastMtS1, + {18, 0, 0, PROTOBUF_FIELD_OFFSET(ComponentsFile_ComponentRecordsByNameEntry_DoNotUse, _impl_.value_)}}, + // string key = 1; + {::_pbi::TcParser::FastUS1, + {10, 63, 0, PROTOBUF_FIELD_OFFSET(ComponentsFile_ComponentRecordsByNameEntry_DoNotUse, _impl_.key_)}}, + }}, {{ + 65535, 65535 + }}, {{ + // string key = 1; + {PROTOBUF_FIELD_OFFSET(ComponentsFile_ComponentRecordsByNameEntry_DoNotUse, _impl_.key_), -1, 0, + (0 | ::_fl::kFcSingular | ::_fl::kUtf8String | ::_fl::kRepAString)}, + // .Odb.Lib.Protobuf.ComponentsFile.ComponentRecord value = 2; + {PROTOBUF_FIELD_OFFSET(ComponentsFile_ComponentRecordsByNameEntry_DoNotUse, _impl_.value_), _Internal::kHasBitsOffset + 0, 0, + (0 | ::_fl::kFcOptional | ::_fl::kMessage | ::_fl::kTvTable)}, + }}, {{ + {::_pbi::TcParser::GetTable<::Odb::Lib::Protobuf::ComponentsFile_ComponentRecord>()}, + }}, {{ + "\73\3\0\0\0\0\0\0" + "Odb.Lib.Protobuf.ComponentsFile.ComponentRecordsByNameEntry" + "key" + }}, +}; // =================================================================== -ComponentsFile_PropertyRecordsByNameEntry_DoNotUse::ComponentsFile_PropertyRecordsByNameEntry_DoNotUse() {} -ComponentsFile_PropertyRecordsByNameEntry_DoNotUse::ComponentsFile_PropertyRecordsByNameEntry_DoNotUse(::PROTOBUF_NAMESPACE_ID::Arena* arena) - : SuperType(arena) {} -void ComponentsFile_PropertyRecordsByNameEntry_DoNotUse::MergeFrom(const ComponentsFile_PropertyRecordsByNameEntry_DoNotUse& other) { - MergeFromInternal(other); -} -::PROTOBUF_NAMESPACE_ID::Metadata ComponentsFile_PropertyRecordsByNameEntry_DoNotUse::GetMetadata() const { - return ::_pbi::AssignDescriptors( - &descriptor_table_componentsfile_2eproto_getter, &descriptor_table_componentsfile_2eproto_once, - file_level_metadata_componentsfile_2eproto[5]); -} +#if defined(PROTOBUF_CUSTOM_VTABLE) + ComponentsFile_PropertyRecordsByNameEntry_DoNotUse::ComponentsFile_PropertyRecordsByNameEntry_DoNotUse() : SuperType(_class_data_.base()) {} + ComponentsFile_PropertyRecordsByNameEntry_DoNotUse::ComponentsFile_PropertyRecordsByNameEntry_DoNotUse(::google::protobuf::Arena* arena) + : SuperType(arena, _class_data_.base()) {} +#else // PROTOBUF_CUSTOM_VTABLE + ComponentsFile_PropertyRecordsByNameEntry_DoNotUse::ComponentsFile_PropertyRecordsByNameEntry_DoNotUse() : SuperType() {} + ComponentsFile_PropertyRecordsByNameEntry_DoNotUse::ComponentsFile_PropertyRecordsByNameEntry_DoNotUse(::google::protobuf::Arena* arena) : SuperType(arena) {} +#endif // PROTOBUF_CUSTOM_VTABLE + inline void* ComponentsFile_PropertyRecordsByNameEntry_DoNotUse::PlacementNew_(const void*, void* mem, + ::google::protobuf::Arena* arena) { + return ::new (mem) ComponentsFile_PropertyRecordsByNameEntry_DoNotUse(arena); + } + constexpr auto ComponentsFile_PropertyRecordsByNameEntry_DoNotUse::InternalNewImpl_() { + return ::google::protobuf::internal::MessageCreator::CopyInit(sizeof(ComponentsFile_PropertyRecordsByNameEntry_DoNotUse), + alignof(ComponentsFile_PropertyRecordsByNameEntry_DoNotUse)); + } + PROTOBUF_CONSTINIT + PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 + const ::google::protobuf::internal::ClassDataFull ComponentsFile_PropertyRecordsByNameEntry_DoNotUse::_class_data_ = { + ::google::protobuf::internal::ClassData{ + &_ComponentsFile_PropertyRecordsByNameEntry_DoNotUse_default_instance_._instance, + &_table_.header, + nullptr, // OnDemandRegisterArenaDtor + nullptr, // IsInitialized + &ComponentsFile_PropertyRecordsByNameEntry_DoNotUse::MergeImpl, + ::google::protobuf::Message::GetNewImpl(), + #if defined(PROTOBUF_CUSTOM_VTABLE) + &ComponentsFile_PropertyRecordsByNameEntry_DoNotUse::SharedDtor, + static_cast( + &ComponentsFile_PropertyRecordsByNameEntry_DoNotUse::ClearImpl), + ::google::protobuf::Message::ByteSizeLongImpl, ::google::protobuf::Message::_InternalSerializeImpl + , + #endif // PROTOBUF_CUSTOM_VTABLE + PROTOBUF_FIELD_OFFSET(ComponentsFile_PropertyRecordsByNameEntry_DoNotUse, _impl_._cached_size_), + false, + }, + &ComponentsFile_PropertyRecordsByNameEntry_DoNotUse::kDescriptorMethods, + &descriptor_table_componentsfile_2eproto, + nullptr, // tracker + }; + const ::google::protobuf::internal::ClassData* ComponentsFile_PropertyRecordsByNameEntry_DoNotUse::GetClassData() const { + ::google::protobuf::internal::PrefetchToLocalCache(&_class_data_); + ::google::protobuf::internal::PrefetchToLocalCache(_class_data_.tc_table); + return _class_data_.base(); + } +PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 +const ::_pbi::TcParseTable<1, 2, 1, 70, 2> ComponentsFile_PropertyRecordsByNameEntry_DoNotUse::_table_ = { + { + PROTOBUF_FIELD_OFFSET(ComponentsFile_PropertyRecordsByNameEntry_DoNotUse, _impl_._has_bits_), + 0, // no _extensions_ + 2, 8, // max_field_number, fast_idx_mask + offsetof(decltype(_table_), field_lookup_table), + 4294967292, // skipmap + offsetof(decltype(_table_), field_entries), + 2, // num_field_entries + 1, // num_aux_entries + offsetof(decltype(_table_), aux_entries), + _class_data_.base(), + nullptr, // post_loop_handler + ::_pbi::TcParser::DiscardEverythingFallback, // fallback + #ifdef PROTOBUF_PREFETCH_PARSE_TABLE + ::_pbi::TcParser::GetTable<::Odb::Lib::Protobuf::ComponentsFile_PropertyRecordsByNameEntry_DoNotUse>(), // to_prefetch + #endif // PROTOBUF_PREFETCH_PARSE_TABLE + }, {{ + // .Odb.Lib.Protobuf.PropertyRecord value = 2; + {::_pbi::TcParser::FastMtS1, + {18, 0, 0, PROTOBUF_FIELD_OFFSET(ComponentsFile_PropertyRecordsByNameEntry_DoNotUse, _impl_.value_)}}, + // string key = 1; + {::_pbi::TcParser::FastUS1, + {10, 63, 0, PROTOBUF_FIELD_OFFSET(ComponentsFile_PropertyRecordsByNameEntry_DoNotUse, _impl_.key_)}}, + }}, {{ + 65535, 65535 + }}, {{ + // string key = 1; + {PROTOBUF_FIELD_OFFSET(ComponentsFile_PropertyRecordsByNameEntry_DoNotUse, _impl_.key_), -1, 0, + (0 | ::_fl::kFcSingular | ::_fl::kUtf8String | ::_fl::kRepAString)}, + // .Odb.Lib.Protobuf.PropertyRecord value = 2; + {PROTOBUF_FIELD_OFFSET(ComponentsFile_PropertyRecordsByNameEntry_DoNotUse, _impl_.value_), _Internal::kHasBitsOffset + 0, 0, + (0 | ::_fl::kFcOptional | ::_fl::kMessage | ::_fl::kTvTable)}, + }}, {{ + {::_pbi::TcParser::GetTable<::Odb::Lib::Protobuf::PropertyRecord>()}, + }}, {{ + "\72\3\0\0\0\0\0\0" + "Odb.Lib.Protobuf.ComponentsFile.PropertyRecordsByNameEntry" + "key" + }}, +}; // =================================================================== -ComponentsFile_BomDescriptionRecordsByCpnEntry_DoNotUse::ComponentsFile_BomDescriptionRecordsByCpnEntry_DoNotUse() {} -ComponentsFile_BomDescriptionRecordsByCpnEntry_DoNotUse::ComponentsFile_BomDescriptionRecordsByCpnEntry_DoNotUse(::PROTOBUF_NAMESPACE_ID::Arena* arena) - : SuperType(arena) {} -void ComponentsFile_BomDescriptionRecordsByCpnEntry_DoNotUse::MergeFrom(const ComponentsFile_BomDescriptionRecordsByCpnEntry_DoNotUse& other) { - MergeFromInternal(other); -} -::PROTOBUF_NAMESPACE_ID::Metadata ComponentsFile_BomDescriptionRecordsByCpnEntry_DoNotUse::GetMetadata() const { - return ::_pbi::AssignDescriptors( - &descriptor_table_componentsfile_2eproto_getter, &descriptor_table_componentsfile_2eproto_once, - file_level_metadata_componentsfile_2eproto[6]); -} +#if defined(PROTOBUF_CUSTOM_VTABLE) + ComponentsFile_BomDescriptionRecordsByCpnEntry_DoNotUse::ComponentsFile_BomDescriptionRecordsByCpnEntry_DoNotUse() : SuperType(_class_data_.base()) {} + ComponentsFile_BomDescriptionRecordsByCpnEntry_DoNotUse::ComponentsFile_BomDescriptionRecordsByCpnEntry_DoNotUse(::google::protobuf::Arena* arena) + : SuperType(arena, _class_data_.base()) {} +#else // PROTOBUF_CUSTOM_VTABLE + ComponentsFile_BomDescriptionRecordsByCpnEntry_DoNotUse::ComponentsFile_BomDescriptionRecordsByCpnEntry_DoNotUse() : SuperType() {} + ComponentsFile_BomDescriptionRecordsByCpnEntry_DoNotUse::ComponentsFile_BomDescriptionRecordsByCpnEntry_DoNotUse(::google::protobuf::Arena* arena) : SuperType(arena) {} +#endif // PROTOBUF_CUSTOM_VTABLE + inline void* ComponentsFile_BomDescriptionRecordsByCpnEntry_DoNotUse::PlacementNew_(const void*, void* mem, + ::google::protobuf::Arena* arena) { + return ::new (mem) ComponentsFile_BomDescriptionRecordsByCpnEntry_DoNotUse(arena); + } + constexpr auto ComponentsFile_BomDescriptionRecordsByCpnEntry_DoNotUse::InternalNewImpl_() { + return ::google::protobuf::internal::MessageCreator::CopyInit(sizeof(ComponentsFile_BomDescriptionRecordsByCpnEntry_DoNotUse), + alignof(ComponentsFile_BomDescriptionRecordsByCpnEntry_DoNotUse)); + } + PROTOBUF_CONSTINIT + PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 + const ::google::protobuf::internal::ClassDataFull ComponentsFile_BomDescriptionRecordsByCpnEntry_DoNotUse::_class_data_ = { + ::google::protobuf::internal::ClassData{ + &_ComponentsFile_BomDescriptionRecordsByCpnEntry_DoNotUse_default_instance_._instance, + &_table_.header, + nullptr, // OnDemandRegisterArenaDtor + nullptr, // IsInitialized + &ComponentsFile_BomDescriptionRecordsByCpnEntry_DoNotUse::MergeImpl, + ::google::protobuf::Message::GetNewImpl(), + #if defined(PROTOBUF_CUSTOM_VTABLE) + &ComponentsFile_BomDescriptionRecordsByCpnEntry_DoNotUse::SharedDtor, + static_cast( + &ComponentsFile_BomDescriptionRecordsByCpnEntry_DoNotUse::ClearImpl), + ::google::protobuf::Message::ByteSizeLongImpl, ::google::protobuf::Message::_InternalSerializeImpl + , + #endif // PROTOBUF_CUSTOM_VTABLE + PROTOBUF_FIELD_OFFSET(ComponentsFile_BomDescriptionRecordsByCpnEntry_DoNotUse, _impl_._cached_size_), + false, + }, + &ComponentsFile_BomDescriptionRecordsByCpnEntry_DoNotUse::kDescriptorMethods, + &descriptor_table_componentsfile_2eproto, + nullptr, // tracker + }; + const ::google::protobuf::internal::ClassData* ComponentsFile_BomDescriptionRecordsByCpnEntry_DoNotUse::GetClassData() const { + ::google::protobuf::internal::PrefetchToLocalCache(&_class_data_); + ::google::protobuf::internal::PrefetchToLocalCache(_class_data_.tc_table); + return _class_data_.base(); + } +PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 +const ::_pbi::TcParseTable<1, 2, 1, 75, 2> ComponentsFile_BomDescriptionRecordsByCpnEntry_DoNotUse::_table_ = { + { + PROTOBUF_FIELD_OFFSET(ComponentsFile_BomDescriptionRecordsByCpnEntry_DoNotUse, _impl_._has_bits_), + 0, // no _extensions_ + 2, 8, // max_field_number, fast_idx_mask + offsetof(decltype(_table_), field_lookup_table), + 4294967292, // skipmap + offsetof(decltype(_table_), field_entries), + 2, // num_field_entries + 1, // num_aux_entries + offsetof(decltype(_table_), aux_entries), + _class_data_.base(), + nullptr, // post_loop_handler + ::_pbi::TcParser::DiscardEverythingFallback, // fallback + #ifdef PROTOBUF_PREFETCH_PARSE_TABLE + ::_pbi::TcParser::GetTable<::Odb::Lib::Protobuf::ComponentsFile_BomDescriptionRecordsByCpnEntry_DoNotUse>(), // to_prefetch + #endif // PROTOBUF_PREFETCH_PARSE_TABLE + }, {{ + // .Odb.Lib.Protobuf.ComponentsFile.BomDescriptionRecord value = 2; + {::_pbi::TcParser::FastMtS1, + {18, 0, 0, PROTOBUF_FIELD_OFFSET(ComponentsFile_BomDescriptionRecordsByCpnEntry_DoNotUse, _impl_.value_)}}, + // string key = 1; + {::_pbi::TcParser::FastUS1, + {10, 63, 0, PROTOBUF_FIELD_OFFSET(ComponentsFile_BomDescriptionRecordsByCpnEntry_DoNotUse, _impl_.key_)}}, + }}, {{ + 65535, 65535 + }}, {{ + // string key = 1; + {PROTOBUF_FIELD_OFFSET(ComponentsFile_BomDescriptionRecordsByCpnEntry_DoNotUse, _impl_.key_), -1, 0, + (0 | ::_fl::kFcSingular | ::_fl::kUtf8String | ::_fl::kRepAString)}, + // .Odb.Lib.Protobuf.ComponentsFile.BomDescriptionRecord value = 2; + {PROTOBUF_FIELD_OFFSET(ComponentsFile_BomDescriptionRecordsByCpnEntry_DoNotUse, _impl_.value_), _Internal::kHasBitsOffset + 0, 0, + (0 | ::_fl::kFcOptional | ::_fl::kMessage | ::_fl::kTvTable)}, + }}, {{ + {::_pbi::TcParser::GetTable<::Odb::Lib::Protobuf::ComponentsFile_BomDescriptionRecord>()}, + }}, {{ + "\77\3\0\0\0\0\0\0" + "Odb.Lib.Protobuf.ComponentsFile.BomDescriptionRecordsByCpnEntry" + "key" + }}, +}; // =================================================================== class ComponentsFile::_Internal { public: - using HasBits = decltype(std::declval()._impl_._has_bits_); - static void set_has_units(HasBits* has_bits) { - (*has_bits)[0] |= 1u; - } - static void set_has_id(HasBits* has_bits) { - (*has_bits)[0] |= 16u; - } - static void set_has_side(HasBits* has_bits) { - (*has_bits)[0] |= 32u; - } - static void set_has_layername(HasBits* has_bits) { - (*has_bits)[0] |= 2u; - } - static void set_has_path(HasBits* has_bits) { - (*has_bits)[0] |= 4u; - } - static void set_has_directory(HasBits* has_bits) { - (*has_bits)[0] |= 8u; - } + using HasBits = + decltype(std::declval()._impl_._has_bits_); + static constexpr ::int32_t kHasBitsOffset = + 8 * PROTOBUF_FIELD_OFFSET(ComponentsFile, _impl_._has_bits_); }; void ComponentsFile::clear_propertyrecords() { + ::google::protobuf::internal::TSanWrite(&_impl_); _impl_.propertyrecords_.Clear(); } void ComponentsFile::clear_propertyrecordsbyname() { + ::google::protobuf::internal::TSanWrite(&_impl_); _impl_.propertyrecordsbyname_.Clear(); } -ComponentsFile::ComponentsFile(::PROTOBUF_NAMESPACE_ID::Arena* arena, - bool is_message_owned) - : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned) { - SharedCtor(arena, is_message_owned); - if (arena != nullptr && !is_message_owned) { - arena->OwnCustomDestructor(this, &ComponentsFile::ArenaDtor); - } +ComponentsFile::ComponentsFile(::google::protobuf::Arena* arena) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : ::google::protobuf::Message(arena, _class_data_.base()) { +#else // PROTOBUF_CUSTOM_VTABLE + : ::google::protobuf::Message(arena) { +#endif // PROTOBUF_CUSTOM_VTABLE + SharedCtor(arena); // @@protoc_insertion_point(arena_constructor:Odb.Lib.Protobuf.ComponentsFile) } -ComponentsFile::ComponentsFile(const ComponentsFile& from) - : ::PROTOBUF_NAMESPACE_ID::Message() { - ComponentsFile* const _this = this; (void)_this; - new (&_impl_) Impl_{ - decltype(_impl_._has_bits_){from._impl_._has_bits_} - , /*decltype(_impl_._cached_size_)*/{} - , decltype(_impl_.attributenames_){from._impl_.attributenames_} - , decltype(_impl_.attributetextvalues_){from._impl_.attributetextvalues_} - , decltype(_impl_.componentrecords_){from._impl_.componentrecords_} - , /*decltype(_impl_.componentrecordsbyname_)*/{} - , decltype(_impl_.propertyrecords_){from._impl_.propertyrecords_} - , /*decltype(_impl_.propertyrecordsbyname_)*/{} - , /*decltype(_impl_.bomdescriptionrecordsbycpn_)*/{} - , decltype(_impl_.units_){} - , decltype(_impl_.layername_){} - , decltype(_impl_.path_){} - , decltype(_impl_.directory_){} - , decltype(_impl_.id_){} - , decltype(_impl_.side_){}}; - - _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); - _this->_impl_.componentrecordsbyname_.MergeFrom(from._impl_.componentrecordsbyname_); - _this->_impl_.propertyrecordsbyname_.MergeFrom(from._impl_.propertyrecordsbyname_); - _this->_impl_.bomdescriptionrecordsbycpn_.MergeFrom(from._impl_.bomdescriptionrecordsbycpn_); - _impl_.units_.InitDefault(); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - _impl_.units_.Set("", GetArenaForAllocation()); - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (from._internal_has_units()) { - _this->_impl_.units_.Set(from._internal_units(), - _this->GetArenaForAllocation()); - } - _impl_.layername_.InitDefault(); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - _impl_.layername_.Set("", GetArenaForAllocation()); - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (from._internal_has_layername()) { - _this->_impl_.layername_.Set(from._internal_layername(), - _this->GetArenaForAllocation()); - } - _impl_.path_.InitDefault(); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - _impl_.path_.Set("", GetArenaForAllocation()); - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (from._internal_has_path()) { - _this->_impl_.path_.Set(from._internal_path(), - _this->GetArenaForAllocation()); - } - _impl_.directory_.InitDefault(); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - _impl_.directory_.Set("", GetArenaForAllocation()); - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (from._internal_has_directory()) { - _this->_impl_.directory_.Set(from._internal_directory(), - _this->GetArenaForAllocation()); - } - ::memcpy(&_impl_.id_, &from._impl_.id_, - static_cast(reinterpret_cast(&_impl_.side_) - - reinterpret_cast(&_impl_.id_)) + sizeof(_impl_.side_)); +inline PROTOBUF_NDEBUG_INLINE ComponentsFile::Impl_::Impl_( + ::google::protobuf::internal::InternalVisibility visibility, ::google::protobuf::Arena* arena, + const Impl_& from, const ::Odb::Lib::Protobuf::ComponentsFile& from_msg) + : _has_bits_{from._has_bits_}, + _cached_size_{0}, + attributenames_{visibility, arena, from.attributenames_}, + attributetextvalues_{visibility, arena, from.attributetextvalues_}, + componentrecords_{visibility, arena, from.componentrecords_}, + componentrecordsbyname_{visibility, arena, from.componentrecordsbyname_}, + propertyrecords_{visibility, arena, from.propertyrecords_}, + propertyrecordsbyname_{visibility, arena, from.propertyrecordsbyname_}, + bomdescriptionrecordsbycpn_{visibility, arena, from.bomdescriptionrecordsbycpn_}, + units_(arena, from.units_), + layername_(arena, from.layername_), + path_(arena, from.path_), + directory_(arena, from.directory_) {} + +ComponentsFile::ComponentsFile( + ::google::protobuf::Arena* arena, + const ComponentsFile& from) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : ::google::protobuf::Message(arena, _class_data_.base()) { +#else // PROTOBUF_CUSTOM_VTABLE + : ::google::protobuf::Message(arena) { +#endif // PROTOBUF_CUSTOM_VTABLE + ComponentsFile* const _this = this; + (void)_this; + _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( + from._internal_metadata_); + new (&_impl_) Impl_(internal_visibility(), arena, from._impl_, from); + ::memcpy(reinterpret_cast(&_impl_) + + offsetof(Impl_, id_), + reinterpret_cast(&from._impl_) + + offsetof(Impl_, id_), + offsetof(Impl_, side_) - + offsetof(Impl_, id_) + + sizeof(Impl_::side_)); + // @@protoc_insertion_point(copy_constructor:Odb.Lib.Protobuf.ComponentsFile) } - -inline void ComponentsFile::SharedCtor( - ::_pb::Arena* arena, bool is_message_owned) { - (void)arena; - (void)is_message_owned; - new (&_impl_) Impl_{ - decltype(_impl_._has_bits_){} - , /*decltype(_impl_._cached_size_)*/{} - , decltype(_impl_.attributenames_){arena} - , decltype(_impl_.attributetextvalues_){arena} - , decltype(_impl_.componentrecords_){arena} - , /*decltype(_impl_.componentrecordsbyname_)*/{::_pbi::ArenaInitialized(), arena} - , decltype(_impl_.propertyrecords_){arena} - , /*decltype(_impl_.propertyrecordsbyname_)*/{::_pbi::ArenaInitialized(), arena} - , /*decltype(_impl_.bomdescriptionrecordsbycpn_)*/{::_pbi::ArenaInitialized(), arena} - , decltype(_impl_.units_){} - , decltype(_impl_.layername_){} - , decltype(_impl_.path_){} - , decltype(_impl_.directory_){} - , decltype(_impl_.id_){0u} - , decltype(_impl_.side_){0} - }; - _impl_.units_.InitDefault(); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - _impl_.units_.Set("", GetArenaForAllocation()); - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING - _impl_.layername_.InitDefault(); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - _impl_.layername_.Set("", GetArenaForAllocation()); - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING - _impl_.path_.InitDefault(); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - _impl_.path_.Set("", GetArenaForAllocation()); - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING - _impl_.directory_.InitDefault(); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - _impl_.directory_.Set("", GetArenaForAllocation()); - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING +inline PROTOBUF_NDEBUG_INLINE ComponentsFile::Impl_::Impl_( + ::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* arena) + : _cached_size_{0}, + attributenames_{visibility, arena}, + attributetextvalues_{visibility, arena}, + componentrecords_{visibility, arena}, + componentrecordsbyname_{visibility, arena}, + propertyrecords_{visibility, arena}, + propertyrecordsbyname_{visibility, arena}, + bomdescriptionrecordsbycpn_{visibility, arena}, + units_(arena), + layername_(arena), + path_(arena), + directory_(arena) {} + +inline void ComponentsFile::SharedCtor(::_pb::Arena* arena) { + new (&_impl_) Impl_(internal_visibility(), arena); + ::memset(reinterpret_cast(&_impl_) + + offsetof(Impl_, id_), + 0, + offsetof(Impl_, side_) - + offsetof(Impl_, id_) + + sizeof(Impl_::side_)); } - ComponentsFile::~ComponentsFile() { // @@protoc_insertion_point(destructor:Odb.Lib.Protobuf.ComponentsFile) - if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) { - (void)arena; - ArenaDtor(this); - return; - } - SharedDtor(); -} - -inline void ComponentsFile::SharedDtor() { - GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); - _impl_.attributenames_.~RepeatedPtrField(); - _impl_.attributetextvalues_.~RepeatedPtrField(); - _impl_.componentrecords_.~RepeatedPtrField(); - _impl_.componentrecordsbyname_.Destruct(); - _impl_.componentrecordsbyname_.~MapField(); - _impl_.propertyrecords_.~RepeatedPtrField(); - _impl_.propertyrecordsbyname_.Destruct(); - _impl_.propertyrecordsbyname_.~MapField(); - _impl_.bomdescriptionrecordsbycpn_.Destruct(); - _impl_.bomdescriptionrecordsbycpn_.~MapField(); - _impl_.units_.Destroy(); - _impl_.layername_.Destroy(); - _impl_.path_.Destroy(); - _impl_.directory_.Destroy(); -} - -void ComponentsFile::ArenaDtor(void* object) { - ComponentsFile* _this = reinterpret_cast< ComponentsFile* >(object); - _this->_impl_.componentrecordsbyname_.Destruct(); - _this->_impl_.propertyrecordsbyname_.Destruct(); - _this->_impl_.bomdescriptionrecordsbycpn_.Destruct(); -} -void ComponentsFile::SetCachedSize(int size) const { - _impl_._cached_size_.Set(size); -} + SharedDtor(*this); +} +inline void ComponentsFile::SharedDtor(MessageLite& self) { + ComponentsFile& this_ = static_cast(self); + this_._internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); + ABSL_DCHECK(this_.GetArena() == nullptr); + this_._impl_.units_.Destroy(); + this_._impl_.layername_.Destroy(); + this_._impl_.path_.Destroy(); + this_._impl_.directory_.Destroy(); + this_._impl_.~Impl_(); +} + +inline void* ComponentsFile::PlacementNew_(const void*, void* mem, + ::google::protobuf::Arena* arena) { + return ::new (mem) ComponentsFile(arena); +} +constexpr auto ComponentsFile::InternalNewImpl_() { + constexpr auto arena_bits = ::google::protobuf::internal::EncodePlacementArenaOffsets({ + PROTOBUF_FIELD_OFFSET(ComponentsFile, _impl_.attributenames_) + + decltype(ComponentsFile::_impl_.attributenames_):: + InternalGetArenaOffset( + ::google::protobuf::Message::internal_visibility()), + PROTOBUF_FIELD_OFFSET(ComponentsFile, _impl_.attributetextvalues_) + + decltype(ComponentsFile::_impl_.attributetextvalues_):: + InternalGetArenaOffset( + ::google::protobuf::Message::internal_visibility()), + PROTOBUF_FIELD_OFFSET(ComponentsFile, _impl_.componentrecords_) + + decltype(ComponentsFile::_impl_.componentrecords_):: + InternalGetArenaOffset( + ::google::protobuf::Message::internal_visibility()), + PROTOBUF_FIELD_OFFSET(ComponentsFile, _impl_.componentrecordsbyname_) + + decltype(ComponentsFile::_impl_.componentrecordsbyname_):: + InternalGetArenaOffset( + ::google::protobuf::Message::internal_visibility()), + PROTOBUF_FIELD_OFFSET(ComponentsFile, _impl_.componentrecordsbyname_) + + decltype(ComponentsFile::_impl_.componentrecordsbyname_):: + InternalGetArenaOffsetAlt( + ::google::protobuf::Message::internal_visibility()), + PROTOBUF_FIELD_OFFSET(ComponentsFile, _impl_.propertyrecords_) + + decltype(ComponentsFile::_impl_.propertyrecords_):: + InternalGetArenaOffset( + ::google::protobuf::Message::internal_visibility()), + PROTOBUF_FIELD_OFFSET(ComponentsFile, _impl_.propertyrecordsbyname_) + + decltype(ComponentsFile::_impl_.propertyrecordsbyname_):: + InternalGetArenaOffset( + ::google::protobuf::Message::internal_visibility()), + PROTOBUF_FIELD_OFFSET(ComponentsFile, _impl_.propertyrecordsbyname_) + + decltype(ComponentsFile::_impl_.propertyrecordsbyname_):: + InternalGetArenaOffsetAlt( + ::google::protobuf::Message::internal_visibility()), + PROTOBUF_FIELD_OFFSET(ComponentsFile, _impl_.bomdescriptionrecordsbycpn_) + + decltype(ComponentsFile::_impl_.bomdescriptionrecordsbycpn_):: + InternalGetArenaOffset( + ::google::protobuf::Message::internal_visibility()), + PROTOBUF_FIELD_OFFSET(ComponentsFile, _impl_.bomdescriptionrecordsbycpn_) + + decltype(ComponentsFile::_impl_.bomdescriptionrecordsbycpn_):: + InternalGetArenaOffsetAlt( + ::google::protobuf::Message::internal_visibility()), + }); + if (arena_bits.has_value()) { + return ::google::protobuf::internal::MessageCreator::CopyInit( + sizeof(ComponentsFile), alignof(ComponentsFile), *arena_bits); + } else { + return ::google::protobuf::internal::MessageCreator(&ComponentsFile::PlacementNew_, + sizeof(ComponentsFile), + alignof(ComponentsFile)); + } +} +PROTOBUF_CONSTINIT +PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 +const ::google::protobuf::internal::ClassDataFull ComponentsFile::_class_data_ = { + ::google::protobuf::internal::ClassData{ + &_ComponentsFile_default_instance_._instance, + &_table_.header, + nullptr, // OnDemandRegisterArenaDtor + nullptr, // IsInitialized + &ComponentsFile::MergeImpl, + ::google::protobuf::Message::GetNewImpl(), +#if defined(PROTOBUF_CUSTOM_VTABLE) + &ComponentsFile::SharedDtor, + ::google::protobuf::Message::GetClearImpl(), &ComponentsFile::ByteSizeLong, + &ComponentsFile::_InternalSerialize, +#endif // PROTOBUF_CUSTOM_VTABLE + PROTOBUF_FIELD_OFFSET(ComponentsFile, _impl_._cached_size_), + false, + }, + &ComponentsFile::kDescriptorMethods, + &descriptor_table_componentsfile_2eproto, + nullptr, // tracker +}; +const ::google::protobuf::internal::ClassData* ComponentsFile::GetClassData() const { + ::google::protobuf::internal::PrefetchToLocalCache(&_class_data_); + ::google::protobuf::internal::PrefetchToLocalCache(_class_data_.tc_table); + return _class_data_.base(); +} +PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 +const ::_pbi::TcParseTable<4, 13, 8, 177, 2> ComponentsFile::_table_ = { + { + PROTOBUF_FIELD_OFFSET(ComponentsFile, _impl_._has_bits_), + 0, // no _extensions_ + 13, 120, // max_field_number, fast_idx_mask + offsetof(decltype(_table_), field_lookup_table), + 4294959104, // skipmap + offsetof(decltype(_table_), field_entries), + 13, // num_field_entries + 8, // num_aux_entries + offsetof(decltype(_table_), aux_entries), + _class_data_.base(), + nullptr, // post_loop_handler + ::_pbi::TcParser::GenericFallback, // fallback + #ifdef PROTOBUF_PREFETCH_PARSE_TABLE + ::_pbi::TcParser::GetTable<::Odb::Lib::Protobuf::ComponentsFile>(), // to_prefetch + #endif // PROTOBUF_PREFETCH_PARSE_TABLE + }, {{ + {::_pbi::TcParser::MiniParse, {}}, + // optional string units = 1; + {::_pbi::TcParser::FastUS1, + {10, 0, 0, PROTOBUF_FIELD_OFFSET(ComponentsFile, _impl_.units_)}}, + // optional uint32 id = 2; + {::_pbi::TcParser::SingularVarintNoZag1<::uint32_t, offsetof(ComponentsFile, _impl_.id_), 4>(), + {16, 4, 0, PROTOBUF_FIELD_OFFSET(ComponentsFile, _impl_.id_)}}, + // optional .Odb.Lib.Protobuf.BoardSide side = 3; + {::_pbi::TcParser::SingularVarintNoZag1<::uint32_t, offsetof(ComponentsFile, _impl_.side_), 5>(), + {24, 5, 0, PROTOBUF_FIELD_OFFSET(ComponentsFile, _impl_.side_)}}, + // optional string layerName = 4; + {::_pbi::TcParser::FastUS1, + {34, 1, 0, PROTOBUF_FIELD_OFFSET(ComponentsFile, _impl_.layername_)}}, + // optional string path = 5; + {::_pbi::TcParser::FastUS1, + {42, 2, 0, PROTOBUF_FIELD_OFFSET(ComponentsFile, _impl_.path_)}}, + // optional string directory = 6; + {::_pbi::TcParser::FastUS1, + {50, 3, 0, PROTOBUF_FIELD_OFFSET(ComponentsFile, _impl_.directory_)}}, + // repeated string attributeNames = 7; + {::_pbi::TcParser::FastUR1, + {58, 63, 0, PROTOBUF_FIELD_OFFSET(ComponentsFile, _impl_.attributenames_)}}, + // repeated string attributeTextValues = 8; + {::_pbi::TcParser::FastUR1, + {66, 63, 0, PROTOBUF_FIELD_OFFSET(ComponentsFile, _impl_.attributetextvalues_)}}, + // repeated .Odb.Lib.Protobuf.ComponentsFile.ComponentRecord componentRecords = 9; + {::_pbi::TcParser::FastMtR1, + {74, 63, 0, PROTOBUF_FIELD_OFFSET(ComponentsFile, _impl_.componentrecords_)}}, + {::_pbi::TcParser::MiniParse, {}}, + // repeated .Odb.Lib.Protobuf.PropertyRecord propertyRecords = 11; + {::_pbi::TcParser::FastMtR1, + {90, 63, 1, PROTOBUF_FIELD_OFFSET(ComponentsFile, _impl_.propertyrecords_)}}, + {::_pbi::TcParser::MiniParse, {}}, + {::_pbi::TcParser::MiniParse, {}}, + {::_pbi::TcParser::MiniParse, {}}, + {::_pbi::TcParser::MiniParse, {}}, + }}, {{ + 65535, 65535 + }}, {{ + // optional string units = 1; + {PROTOBUF_FIELD_OFFSET(ComponentsFile, _impl_.units_), _Internal::kHasBitsOffset + 0, 0, + (0 | ::_fl::kFcOptional | ::_fl::kUtf8String | ::_fl::kRepAString)}, + // optional uint32 id = 2; + {PROTOBUF_FIELD_OFFSET(ComponentsFile, _impl_.id_), _Internal::kHasBitsOffset + 4, 0, + (0 | ::_fl::kFcOptional | ::_fl::kUInt32)}, + // optional .Odb.Lib.Protobuf.BoardSide side = 3; + {PROTOBUF_FIELD_OFFSET(ComponentsFile, _impl_.side_), _Internal::kHasBitsOffset + 5, 0, + (0 | ::_fl::kFcOptional | ::_fl::kOpenEnum)}, + // optional string layerName = 4; + {PROTOBUF_FIELD_OFFSET(ComponentsFile, _impl_.layername_), _Internal::kHasBitsOffset + 1, 0, + (0 | ::_fl::kFcOptional | ::_fl::kUtf8String | ::_fl::kRepAString)}, + // optional string path = 5; + {PROTOBUF_FIELD_OFFSET(ComponentsFile, _impl_.path_), _Internal::kHasBitsOffset + 2, 0, + (0 | ::_fl::kFcOptional | ::_fl::kUtf8String | ::_fl::kRepAString)}, + // optional string directory = 6; + {PROTOBUF_FIELD_OFFSET(ComponentsFile, _impl_.directory_), _Internal::kHasBitsOffset + 3, 0, + (0 | ::_fl::kFcOptional | ::_fl::kUtf8String | ::_fl::kRepAString)}, + // repeated string attributeNames = 7; + {PROTOBUF_FIELD_OFFSET(ComponentsFile, _impl_.attributenames_), -1, 0, + (0 | ::_fl::kFcRepeated | ::_fl::kUtf8String | ::_fl::kRepSString)}, + // repeated string attributeTextValues = 8; + {PROTOBUF_FIELD_OFFSET(ComponentsFile, _impl_.attributetextvalues_), -1, 0, + (0 | ::_fl::kFcRepeated | ::_fl::kUtf8String | ::_fl::kRepSString)}, + // repeated .Odb.Lib.Protobuf.ComponentsFile.ComponentRecord componentRecords = 9; + {PROTOBUF_FIELD_OFFSET(ComponentsFile, _impl_.componentrecords_), -1, 0, + (0 | ::_fl::kFcRepeated | ::_fl::kMessage | ::_fl::kTvTable)}, + // map componentRecordsByName = 10; + {PROTOBUF_FIELD_OFFSET(ComponentsFile, _impl_.componentrecordsbyname_), -1, 2, + (0 | ::_fl::kFcRepeated | ::_fl::kMap)}, + // repeated .Odb.Lib.Protobuf.PropertyRecord propertyRecords = 11; + {PROTOBUF_FIELD_OFFSET(ComponentsFile, _impl_.propertyrecords_), -1, 1, + (0 | ::_fl::kFcRepeated | ::_fl::kMessage | ::_fl::kTvTable)}, + // map propertyRecordsByName = 12; + {PROTOBUF_FIELD_OFFSET(ComponentsFile, _impl_.propertyrecordsbyname_), -1, 4, + (0 | ::_fl::kFcRepeated | ::_fl::kMap)}, + // map bomDescriptionRecordsByCpn = 13; + {PROTOBUF_FIELD_OFFSET(ComponentsFile, _impl_.bomdescriptionrecordsbycpn_), -1, 6, + (0 | ::_fl::kFcRepeated | ::_fl::kMap)}, + }}, {{ + {::_pbi::TcParser::GetTable<::Odb::Lib::Protobuf::ComponentsFile_ComponentRecord>()}, + {::_pbi::TcParser::GetTable<::Odb::Lib::Protobuf::PropertyRecord>()}, + {::_pbi::TcParser::GetMapAuxInfo< + decltype(ComponentsFile()._impl_.componentrecordsbyname_)>( + 1, 0, 0, 9, + 11)}, + {::_pbi::TcParser::GetTable<::Odb::Lib::Protobuf::ComponentsFile_ComponentRecord>()}, + {::_pbi::TcParser::GetMapAuxInfo< + decltype(ComponentsFile()._impl_.propertyrecordsbyname_)>( + 1, 0, 0, 9, + 11)}, + {::_pbi::TcParser::GetTable<::Odb::Lib::Protobuf::PropertyRecord>()}, + {::_pbi::TcParser::GetMapAuxInfo< + decltype(ComponentsFile()._impl_.bomdescriptionrecordsbycpn_)>( + 1, 0, 0, 9, + 11)}, + {::_pbi::TcParser::GetTable<::Odb::Lib::Protobuf::ComponentsFile_BomDescriptionRecord>()}, + }}, {{ + "\37\5\0\0\11\4\11\16\23\0\26\0\25\32\0\0" + "Odb.Lib.Protobuf.ComponentsFile" + "units" + "layerName" + "path" + "directory" + "attributeNames" + "attributeTextValues" + "componentRecordsByName" + "propertyRecordsByName" + "bomDescriptionRecordsByCpn" + }}, +}; -void ComponentsFile::Clear() { +PROTOBUF_NOINLINE void ComponentsFile::Clear() { // @@protoc_insertion_point(message_clear_start:Odb.Lib.Protobuf.ComponentsFile) - uint32_t cached_has_bits = 0; + ::google::protobuf::internal::TSanWrite(&_impl_); + ::uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; @@ -2408,509 +2787,335 @@ void ComponentsFile::Clear() { } } if (cached_has_bits & 0x00000030u) { - ::memset(&_impl_.id_, 0, static_cast( + ::memset(&_impl_.id_, 0, static_cast<::size_t>( reinterpret_cast(&_impl_.side_) - reinterpret_cast(&_impl_.id_)) + sizeof(_impl_.side_)); } _impl_._has_bits_.Clear(); - _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); -} - -const char* ComponentsFile::_InternalParse(const char* ptr, ::_pbi::ParseContext* ctx) { -#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure - _Internal::HasBits has_bits{}; - while (!ctx->Done(&ptr)) { - uint32_t tag; - ptr = ::_pbi::ReadTag(ptr, &tag); - switch (tag >> 3) { - // optional string units = 1; - case 1: - if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 10)) { - auto str = _internal_mutable_units(); - ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); - CHK_(ptr); - CHK_(::_pbi::VerifyUTF8(str, "Odb.Lib.Protobuf.ComponentsFile.units")); - } else - goto handle_unusual; - continue; - // optional uint32 id = 2; - case 2: - if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 16)) { - _Internal::set_has_id(&has_bits); - _impl_.id_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr); - CHK_(ptr); - } else - goto handle_unusual; - continue; - // optional .Odb.Lib.Protobuf.BoardSide side = 3; - case 3: - if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 24)) { - uint64_t val = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); - CHK_(ptr); - _internal_set_side(static_cast<::Odb::Lib::Protobuf::BoardSide>(val)); - } else - goto handle_unusual; - continue; - // optional string layerName = 4; - case 4: - if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 34)) { - auto str = _internal_mutable_layername(); - ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); - CHK_(ptr); - CHK_(::_pbi::VerifyUTF8(str, "Odb.Lib.Protobuf.ComponentsFile.layerName")); - } else - goto handle_unusual; - continue; - // optional string path = 5; - case 5: - if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 42)) { - auto str = _internal_mutable_path(); - ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); - CHK_(ptr); - CHK_(::_pbi::VerifyUTF8(str, "Odb.Lib.Protobuf.ComponentsFile.path")); - } else - goto handle_unusual; - continue; - // optional string directory = 6; - case 6: - if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 50)) { - auto str = _internal_mutable_directory(); - ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); - CHK_(ptr); - CHK_(::_pbi::VerifyUTF8(str, "Odb.Lib.Protobuf.ComponentsFile.directory")); - } else - goto handle_unusual; - continue; - // repeated string attributeNames = 7; - case 7: - if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 58)) { - ptr -= 1; - do { - ptr += 1; - auto str = _internal_add_attributenames(); - ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); - CHK_(ptr); - CHK_(::_pbi::VerifyUTF8(str, "Odb.Lib.Protobuf.ComponentsFile.attributeNames")); - if (!ctx->DataAvailable(ptr)) break; - } while (::PROTOBUF_NAMESPACE_ID::internal::ExpectTag<58>(ptr)); - } else - goto handle_unusual; - continue; - // repeated string attributeTextValues = 8; - case 8: - if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 66)) { - ptr -= 1; - do { - ptr += 1; - auto str = _internal_add_attributetextvalues(); - ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); - CHK_(ptr); - CHK_(::_pbi::VerifyUTF8(str, "Odb.Lib.Protobuf.ComponentsFile.attributeTextValues")); - if (!ctx->DataAvailable(ptr)) break; - } while (::PROTOBUF_NAMESPACE_ID::internal::ExpectTag<66>(ptr)); - } else - goto handle_unusual; - continue; - // repeated .Odb.Lib.Protobuf.ComponentsFile.ComponentRecord componentRecords = 9; - case 9: - if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 74)) { - ptr -= 1; - do { - ptr += 1; - ptr = ctx->ParseMessage(_internal_add_componentrecords(), ptr); - CHK_(ptr); - if (!ctx->DataAvailable(ptr)) break; - } while (::PROTOBUF_NAMESPACE_ID::internal::ExpectTag<74>(ptr)); - } else - goto handle_unusual; - continue; - // map componentRecordsByName = 10; - case 10: - if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 82)) { - ptr -= 1; - do { - ptr += 1; - ptr = ctx->ParseMessage(&_impl_.componentrecordsbyname_, ptr); - CHK_(ptr); - if (!ctx->DataAvailable(ptr)) break; - } while (::PROTOBUF_NAMESPACE_ID::internal::ExpectTag<82>(ptr)); - } else - goto handle_unusual; - continue; - // repeated .Odb.Lib.Protobuf.PropertyRecord propertyRecords = 11; - case 11: - if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 90)) { - ptr -= 1; - do { - ptr += 1; - ptr = ctx->ParseMessage(_internal_add_propertyrecords(), ptr); - CHK_(ptr); - if (!ctx->DataAvailable(ptr)) break; - } while (::PROTOBUF_NAMESPACE_ID::internal::ExpectTag<90>(ptr)); - } else - goto handle_unusual; - continue; - // map propertyRecordsByName = 12; - case 12: - if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 98)) { - ptr -= 1; - do { - ptr += 1; - ptr = ctx->ParseMessage(&_impl_.propertyrecordsbyname_, ptr); - CHK_(ptr); - if (!ctx->DataAvailable(ptr)) break; - } while (::PROTOBUF_NAMESPACE_ID::internal::ExpectTag<98>(ptr)); - } else - goto handle_unusual; - continue; - // map bomDescriptionRecordsByCpn = 13; - case 13: - if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 106)) { - ptr -= 1; - do { - ptr += 1; - ptr = ctx->ParseMessage(&_impl_.bomdescriptionrecordsbycpn_, ptr); - CHK_(ptr); - if (!ctx->DataAvailable(ptr)) break; - } while (::PROTOBUF_NAMESPACE_ID::internal::ExpectTag<106>(ptr)); - } else - goto handle_unusual; - continue; - default: - goto handle_unusual; - } // switch - handle_unusual: - if ((tag == 0) || ((tag & 7) == 4)) { - CHK_(ptr); - ctx->SetLastTag(tag); - goto message_done; - } - ptr = UnknownFieldParse( - tag, - _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(), - ptr, ctx); - CHK_(ptr != nullptr); - } // while -message_done: - _impl_._has_bits_.Or(has_bits); - return ptr; -failure: - ptr = nullptr; - goto message_done; -#undef CHK_ -} - -uint8_t* ComponentsFile::_InternalSerialize( - uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { - // @@protoc_insertion_point(serialize_to_array_start:Odb.Lib.Protobuf.ComponentsFile) - uint32_t cached_has_bits = 0; - (void) cached_has_bits; - - // optional string units = 1; - if (_internal_has_units()) { - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( - this->_internal_units().data(), static_cast(this->_internal_units().length()), - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, - "Odb.Lib.Protobuf.ComponentsFile.units"); - target = stream->WriteStringMaybeAliased( - 1, this->_internal_units(), target); - } - - // optional uint32 id = 2; - if (_internal_has_id()) { - target = stream->EnsureSpace(target); - target = ::_pbi::WireFormatLite::WriteUInt32ToArray(2, this->_internal_id(), target); - } - - // optional .Odb.Lib.Protobuf.BoardSide side = 3; - if (_internal_has_side()) { - target = stream->EnsureSpace(target); - target = ::_pbi::WireFormatLite::WriteEnumToArray( - 3, this->_internal_side(), target); - } - - // optional string layerName = 4; - if (_internal_has_layername()) { - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( - this->_internal_layername().data(), static_cast(this->_internal_layername().length()), - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, - "Odb.Lib.Protobuf.ComponentsFile.layerName"); - target = stream->WriteStringMaybeAliased( - 4, this->_internal_layername(), target); - } - - // optional string path = 5; - if (_internal_has_path()) { - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( - this->_internal_path().data(), static_cast(this->_internal_path().length()), - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, - "Odb.Lib.Protobuf.ComponentsFile.path"); - target = stream->WriteStringMaybeAliased( - 5, this->_internal_path(), target); - } - - // optional string directory = 6; - if (_internal_has_directory()) { - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( - this->_internal_directory().data(), static_cast(this->_internal_directory().length()), - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, - "Odb.Lib.Protobuf.ComponentsFile.directory"); - target = stream->WriteStringMaybeAliased( - 6, this->_internal_directory(), target); - } - - // repeated string attributeNames = 7; - for (int i = 0, n = this->_internal_attributenames_size(); i < n; i++) { - const auto& s = this->_internal_attributenames(i); - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( - s.data(), static_cast(s.length()), - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, - "Odb.Lib.Protobuf.ComponentsFile.attributeNames"); - target = stream->WriteString(7, s, target); - } - - // repeated string attributeTextValues = 8; - for (int i = 0, n = this->_internal_attributetextvalues_size(); i < n; i++) { - const auto& s = this->_internal_attributetextvalues(i); - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( - s.data(), static_cast(s.length()), - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, - "Odb.Lib.Protobuf.ComponentsFile.attributeTextValues"); - target = stream->WriteString(8, s, target); - } - - // repeated .Odb.Lib.Protobuf.ComponentsFile.ComponentRecord componentRecords = 9; - for (unsigned i = 0, - n = static_cast(this->_internal_componentrecords_size()); i < n; i++) { - const auto& repfield = this->_internal_componentrecords(i); - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: - InternalWriteMessage(9, repfield, repfield.GetCachedSize(), target, stream); - } - - // map componentRecordsByName = 10; - if (!this->_internal_componentrecordsbyname().empty()) { - using MapType = ::_pb::Map; - using WireHelper = ComponentsFile_ComponentRecordsByNameEntry_DoNotUse::Funcs; - const auto& map_field = this->_internal_componentrecordsbyname(); - auto check_utf8 = [](const MapType::value_type& entry) { - (void)entry; - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( - entry.first.data(), static_cast(entry.first.length()), - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, - "Odb.Lib.Protobuf.ComponentsFile.ComponentRecordsByNameEntry.key"); - }; - - if (stream->IsSerializationDeterministic() && map_field.size() > 1) { - for (const auto& entry : ::_pbi::MapSorterPtr(map_field)) { - target = WireHelper::InternalSerialize(10, entry.first, entry.second, target, stream); - check_utf8(entry); - } - } else { - for (const auto& entry : map_field) { - target = WireHelper::InternalSerialize(10, entry.first, entry.second, target, stream); - check_utf8(entry); - } - } - } - - // repeated .Odb.Lib.Protobuf.PropertyRecord propertyRecords = 11; - for (unsigned i = 0, - n = static_cast(this->_internal_propertyrecords_size()); i < n; i++) { - const auto& repfield = this->_internal_propertyrecords(i); - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: - InternalWriteMessage(11, repfield, repfield.GetCachedSize(), target, stream); - } - - // map propertyRecordsByName = 12; - if (!this->_internal_propertyrecordsbyname().empty()) { - using MapType = ::_pb::Map; - using WireHelper = ComponentsFile_PropertyRecordsByNameEntry_DoNotUse::Funcs; - const auto& map_field = this->_internal_propertyrecordsbyname(); - auto check_utf8 = [](const MapType::value_type& entry) { - (void)entry; - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( - entry.first.data(), static_cast(entry.first.length()), - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, - "Odb.Lib.Protobuf.ComponentsFile.PropertyRecordsByNameEntry.key"); - }; - - if (stream->IsSerializationDeterministic() && map_field.size() > 1) { - for (const auto& entry : ::_pbi::MapSorterPtr(map_field)) { - target = WireHelper::InternalSerialize(12, entry.first, entry.second, target, stream); - check_utf8(entry); - } - } else { - for (const auto& entry : map_field) { - target = WireHelper::InternalSerialize(12, entry.first, entry.second, target, stream); - check_utf8(entry); - } - } - } - - // map bomDescriptionRecordsByCpn = 13; - if (!this->_internal_bomdescriptionrecordsbycpn().empty()) { - using MapType = ::_pb::Map; - using WireHelper = ComponentsFile_BomDescriptionRecordsByCpnEntry_DoNotUse::Funcs; - const auto& map_field = this->_internal_bomdescriptionrecordsbycpn(); - auto check_utf8 = [](const MapType::value_type& entry) { - (void)entry; - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( - entry.first.data(), static_cast(entry.first.length()), - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, - "Odb.Lib.Protobuf.ComponentsFile.BomDescriptionRecordsByCpnEntry.key"); - }; - - if (stream->IsSerializationDeterministic() && map_field.size() > 1) { - for (const auto& entry : ::_pbi::MapSorterPtr(map_field)) { - target = WireHelper::InternalSerialize(13, entry.first, entry.second, target, stream); - check_utf8(entry); - } - } else { - for (const auto& entry : map_field) { - target = WireHelper::InternalSerialize(13, entry.first, entry.second, target, stream); - check_utf8(entry); - } - } - } - - if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = ::_pbi::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:Odb.Lib.Protobuf.ComponentsFile) - return target; -} - -size_t ComponentsFile::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:Odb.Lib.Protobuf.ComponentsFile) - size_t total_size = 0; - - uint32_t cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - // repeated string attributeNames = 7; - total_size += 1 * - ::PROTOBUF_NAMESPACE_ID::internal::FromIntSize(_impl_.attributenames_.size()); - for (int i = 0, n = _impl_.attributenames_.size(); i < n; i++) { - total_size += ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( - _impl_.attributenames_.Get(i)); - } - - // repeated string attributeTextValues = 8; - total_size += 1 * - ::PROTOBUF_NAMESPACE_ID::internal::FromIntSize(_impl_.attributetextvalues_.size()); - for (int i = 0, n = _impl_.attributetextvalues_.size(); i < n; i++) { - total_size += ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( - _impl_.attributetextvalues_.Get(i)); - } - - // repeated .Odb.Lib.Protobuf.ComponentsFile.ComponentRecord componentRecords = 9; - total_size += 1UL * this->_internal_componentrecords_size(); - for (const auto& msg : this->_impl_.componentrecords_) { - total_size += - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(msg); - } - - // map componentRecordsByName = 10; - total_size += 1 * - ::PROTOBUF_NAMESPACE_ID::internal::FromIntSize(this->_internal_componentrecordsbyname_size()); - for (::PROTOBUF_NAMESPACE_ID::Map< std::string, ::Odb::Lib::Protobuf::ComponentsFile_ComponentRecord >::const_iterator - it = this->_internal_componentrecordsbyname().begin(); - it != this->_internal_componentrecordsbyname().end(); ++it) { - total_size += ComponentsFile_ComponentRecordsByNameEntry_DoNotUse::Funcs::ByteSizeLong(it->first, it->second); - } - - // repeated .Odb.Lib.Protobuf.PropertyRecord propertyRecords = 11; - total_size += 1UL * this->_internal_propertyrecords_size(); - for (const auto& msg : this->_impl_.propertyrecords_) { - total_size += - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(msg); - } - - // map propertyRecordsByName = 12; - total_size += 1 * - ::PROTOBUF_NAMESPACE_ID::internal::FromIntSize(this->_internal_propertyrecordsbyname_size()); - for (::PROTOBUF_NAMESPACE_ID::Map< std::string, ::Odb::Lib::Protobuf::PropertyRecord >::const_iterator - it = this->_internal_propertyrecordsbyname().begin(); - it != this->_internal_propertyrecordsbyname().end(); ++it) { - total_size += ComponentsFile_PropertyRecordsByNameEntry_DoNotUse::Funcs::ByteSizeLong(it->first, it->second); - } - - // map bomDescriptionRecordsByCpn = 13; - total_size += 1 * - ::PROTOBUF_NAMESPACE_ID::internal::FromIntSize(this->_internal_bomdescriptionrecordsbycpn_size()); - for (::PROTOBUF_NAMESPACE_ID::Map< std::string, ::Odb::Lib::Protobuf::ComponentsFile_BomDescriptionRecord >::const_iterator - it = this->_internal_bomdescriptionrecordsbycpn().begin(); - it != this->_internal_bomdescriptionrecordsbycpn().end(); ++it) { - total_size += ComponentsFile_BomDescriptionRecordsByCpnEntry_DoNotUse::Funcs::ByteSizeLong(it->first, it->second); - } - - cached_has_bits = _impl_._has_bits_[0]; - if (cached_has_bits & 0x0000003fu) { - // optional string units = 1; - if (cached_has_bits & 0x00000001u) { - total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( - this->_internal_units()); - } - - // optional string layerName = 4; - if (cached_has_bits & 0x00000002u) { - total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( - this->_internal_layername()); - } - - // optional string path = 5; - if (cached_has_bits & 0x00000004u) { - total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( - this->_internal_path()); - } - - // optional string directory = 6; - if (cached_has_bits & 0x00000008u) { - total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( - this->_internal_directory()); - } - - // optional uint32 id = 2; - if (cached_has_bits & 0x00000010u) { - total_size += ::_pbi::WireFormatLite::UInt32SizePlusOne(this->_internal_id()); - } - - // optional .Odb.Lib.Protobuf.BoardSide side = 3; - if (cached_has_bits & 0x00000020u) { - total_size += 1 + - ::_pbi::WireFormatLite::EnumSize(this->_internal_side()); - } - - } - return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); -} - -const ::PROTOBUF_NAMESPACE_ID::Message::ClassData ComponentsFile::_class_data_ = { - ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSourceCheck, - ComponentsFile::MergeImpl -}; -const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*ComponentsFile::GetClassData() const { return &_class_data_; } - - -void ComponentsFile::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg) { + _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); +} + +#if defined(PROTOBUF_CUSTOM_VTABLE) + ::uint8_t* ComponentsFile::_InternalSerialize( + const MessageLite& base, ::uint8_t* target, + ::google::protobuf::io::EpsCopyOutputStream* stream) { + const ComponentsFile& this_ = static_cast(base); +#else // PROTOBUF_CUSTOM_VTABLE + ::uint8_t* ComponentsFile::_InternalSerialize( + ::uint8_t* target, + ::google::protobuf::io::EpsCopyOutputStream* stream) const { + const ComponentsFile& this_ = *this; +#endif // PROTOBUF_CUSTOM_VTABLE + // @@protoc_insertion_point(serialize_to_array_start:Odb.Lib.Protobuf.ComponentsFile) + ::uint32_t cached_has_bits = 0; + (void)cached_has_bits; + + cached_has_bits = this_._impl_._has_bits_[0]; + // optional string units = 1; + if (cached_has_bits & 0x00000001u) { + const std::string& _s = this_._internal_units(); + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + _s.data(), static_cast(_s.length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "Odb.Lib.Protobuf.ComponentsFile.units"); + target = stream->WriteStringMaybeAliased(1, _s, target); + } + + // optional uint32 id = 2; + if (cached_has_bits & 0x00000010u) { + target = stream->EnsureSpace(target); + target = ::_pbi::WireFormatLite::WriteUInt32ToArray( + 2, this_._internal_id(), target); + } + + // optional .Odb.Lib.Protobuf.BoardSide side = 3; + if (cached_has_bits & 0x00000020u) { + target = stream->EnsureSpace(target); + target = ::_pbi::WireFormatLite::WriteEnumToArray( + 3, this_._internal_side(), target); + } + + // optional string layerName = 4; + if (cached_has_bits & 0x00000002u) { + const std::string& _s = this_._internal_layername(); + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + _s.data(), static_cast(_s.length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "Odb.Lib.Protobuf.ComponentsFile.layerName"); + target = stream->WriteStringMaybeAliased(4, _s, target); + } + + // optional string path = 5; + if (cached_has_bits & 0x00000004u) { + const std::string& _s = this_._internal_path(); + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + _s.data(), static_cast(_s.length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "Odb.Lib.Protobuf.ComponentsFile.path"); + target = stream->WriteStringMaybeAliased(5, _s, target); + } + + // optional string directory = 6; + if (cached_has_bits & 0x00000008u) { + const std::string& _s = this_._internal_directory(); + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + _s.data(), static_cast(_s.length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "Odb.Lib.Protobuf.ComponentsFile.directory"); + target = stream->WriteStringMaybeAliased(6, _s, target); + } + + // repeated string attributeNames = 7; + for (int i = 0, n = this_._internal_attributenames_size(); i < n; ++i) { + const auto& s = this_._internal_attributenames().Get(i); + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + s.data(), static_cast(s.length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "Odb.Lib.Protobuf.ComponentsFile.attributeNames"); + target = stream->WriteString(7, s, target); + } + + // repeated string attributeTextValues = 8; + for (int i = 0, n = this_._internal_attributetextvalues_size(); i < n; ++i) { + const auto& s = this_._internal_attributetextvalues().Get(i); + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + s.data(), static_cast(s.length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "Odb.Lib.Protobuf.ComponentsFile.attributeTextValues"); + target = stream->WriteString(8, s, target); + } + + // repeated .Odb.Lib.Protobuf.ComponentsFile.ComponentRecord componentRecords = 9; + for (unsigned i = 0, n = static_cast( + this_._internal_componentrecords_size()); + i < n; i++) { + const auto& repfield = this_._internal_componentrecords().Get(i); + target = + ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( + 9, repfield, repfield.GetCachedSize(), + target, stream); + } + + // map componentRecordsByName = 10; + if (!this_._internal_componentrecordsbyname().empty()) { + using MapType = ::google::protobuf::Map; + using WireHelper = _pbi::MapEntryFuncs; + const auto& field = this_._internal_componentrecordsbyname(); + + if (stream->IsSerializationDeterministic() && field.size() > 1) { + for (const auto& entry : ::google::protobuf::internal::MapSorterPtr(field)) { + target = WireHelper::InternalSerialize( + 10, entry.first, entry.second, target, stream); + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + entry.first.data(), static_cast(entry.first.length()), + ::google::protobuf::internal::WireFormatLite::SERIALIZE, "Odb.Lib.Protobuf.ComponentsFile.componentRecordsByName"); + } + } else { + for (const auto& entry : field) { + target = WireHelper::InternalSerialize( + 10, entry.first, entry.second, target, stream); + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + entry.first.data(), static_cast(entry.first.length()), + ::google::protobuf::internal::WireFormatLite::SERIALIZE, "Odb.Lib.Protobuf.ComponentsFile.componentRecordsByName"); + } + } + } + + // repeated .Odb.Lib.Protobuf.PropertyRecord propertyRecords = 11; + for (unsigned i = 0, n = static_cast( + this_._internal_propertyrecords_size()); + i < n; i++) { + const auto& repfield = this_._internal_propertyrecords().Get(i); + target = + ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( + 11, repfield, repfield.GetCachedSize(), + target, stream); + } + + // map propertyRecordsByName = 12; + if (!this_._internal_propertyrecordsbyname().empty()) { + using MapType = ::google::protobuf::Map; + using WireHelper = _pbi::MapEntryFuncs; + const auto& field = this_._internal_propertyrecordsbyname(); + + if (stream->IsSerializationDeterministic() && field.size() > 1) { + for (const auto& entry : ::google::protobuf::internal::MapSorterPtr(field)) { + target = WireHelper::InternalSerialize( + 12, entry.first, entry.second, target, stream); + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + entry.first.data(), static_cast(entry.first.length()), + ::google::protobuf::internal::WireFormatLite::SERIALIZE, "Odb.Lib.Protobuf.ComponentsFile.propertyRecordsByName"); + } + } else { + for (const auto& entry : field) { + target = WireHelper::InternalSerialize( + 12, entry.first, entry.second, target, stream); + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + entry.first.data(), static_cast(entry.first.length()), + ::google::protobuf::internal::WireFormatLite::SERIALIZE, "Odb.Lib.Protobuf.ComponentsFile.propertyRecordsByName"); + } + } + } + + // map bomDescriptionRecordsByCpn = 13; + if (!this_._internal_bomdescriptionrecordsbycpn().empty()) { + using MapType = ::google::protobuf::Map; + using WireHelper = _pbi::MapEntryFuncs; + const auto& field = this_._internal_bomdescriptionrecordsbycpn(); + + if (stream->IsSerializationDeterministic() && field.size() > 1) { + for (const auto& entry : ::google::protobuf::internal::MapSorterPtr(field)) { + target = WireHelper::InternalSerialize( + 13, entry.first, entry.second, target, stream); + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + entry.first.data(), static_cast(entry.first.length()), + ::google::protobuf::internal::WireFormatLite::SERIALIZE, "Odb.Lib.Protobuf.ComponentsFile.bomDescriptionRecordsByCpn"); + } + } else { + for (const auto& entry : field) { + target = WireHelper::InternalSerialize( + 13, entry.first, entry.second, target, stream); + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + entry.first.data(), static_cast(entry.first.length()), + ::google::protobuf::internal::WireFormatLite::SERIALIZE, "Odb.Lib.Protobuf.ComponentsFile.bomDescriptionRecordsByCpn"); + } + } + } + + if (PROTOBUF_PREDICT_FALSE(this_._internal_metadata_.have_unknown_fields())) { + target = + ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( + this_._internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); + } + // @@protoc_insertion_point(serialize_to_array_end:Odb.Lib.Protobuf.ComponentsFile) + return target; + } + +#if defined(PROTOBUF_CUSTOM_VTABLE) + ::size_t ComponentsFile::ByteSizeLong(const MessageLite& base) { + const ComponentsFile& this_ = static_cast(base); +#else // PROTOBUF_CUSTOM_VTABLE + ::size_t ComponentsFile::ByteSizeLong() const { + const ComponentsFile& this_ = *this; +#endif // PROTOBUF_CUSTOM_VTABLE + // @@protoc_insertion_point(message_byte_size_start:Odb.Lib.Protobuf.ComponentsFile) + ::size_t total_size = 0; + + ::uint32_t cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void)cached_has_bits; + + ::_pbi::Prefetch5LinesFrom7Lines(&this_); + { + // repeated string attributeNames = 7; + { + total_size += + 1 * ::google::protobuf::internal::FromIntSize(this_._internal_attributenames().size()); + for (int i = 0, n = this_._internal_attributenames().size(); i < n; ++i) { + total_size += ::google::protobuf::internal::WireFormatLite::StringSize( + this_._internal_attributenames().Get(i)); + } + } + // repeated string attributeTextValues = 8; + { + total_size += + 1 * ::google::protobuf::internal::FromIntSize(this_._internal_attributetextvalues().size()); + for (int i = 0, n = this_._internal_attributetextvalues().size(); i < n; ++i) { + total_size += ::google::protobuf::internal::WireFormatLite::StringSize( + this_._internal_attributetextvalues().Get(i)); + } + } + // repeated .Odb.Lib.Protobuf.ComponentsFile.ComponentRecord componentRecords = 9; + { + total_size += 1UL * this_._internal_componentrecords_size(); + for (const auto& msg : this_._internal_componentrecords()) { + total_size += ::google::protobuf::internal::WireFormatLite::MessageSize(msg); + } + } + // map componentRecordsByName = 10; + { + total_size += + 1 * ::google::protobuf::internal::FromIntSize(this_._internal_componentrecordsbyname_size()); + for (const auto& entry : this_._internal_componentrecordsbyname()) { + total_size += _pbi::MapEntryFuncs::ByteSizeLong(entry.first, entry.second); + } + } + // repeated .Odb.Lib.Protobuf.PropertyRecord propertyRecords = 11; + { + total_size += 1UL * this_._internal_propertyrecords_size(); + for (const auto& msg : this_._internal_propertyrecords()) { + total_size += ::google::protobuf::internal::WireFormatLite::MessageSize(msg); + } + } + // map propertyRecordsByName = 12; + { + total_size += + 1 * ::google::protobuf::internal::FromIntSize(this_._internal_propertyrecordsbyname_size()); + for (const auto& entry : this_._internal_propertyrecordsbyname()) { + total_size += _pbi::MapEntryFuncs::ByteSizeLong(entry.first, entry.second); + } + } + // map bomDescriptionRecordsByCpn = 13; + { + total_size += + 1 * ::google::protobuf::internal::FromIntSize(this_._internal_bomdescriptionrecordsbycpn_size()); + for (const auto& entry : this_._internal_bomdescriptionrecordsbycpn()) { + total_size += _pbi::MapEntryFuncs::ByteSizeLong(entry.first, entry.second); + } + } + } + cached_has_bits = this_._impl_._has_bits_[0]; + if (cached_has_bits & 0x0000003fu) { + // optional string units = 1; + if (cached_has_bits & 0x00000001u) { + total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize( + this_._internal_units()); + } + // optional string layerName = 4; + if (cached_has_bits & 0x00000002u) { + total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize( + this_._internal_layername()); + } + // optional string path = 5; + if (cached_has_bits & 0x00000004u) { + total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize( + this_._internal_path()); + } + // optional string directory = 6; + if (cached_has_bits & 0x00000008u) { + total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize( + this_._internal_directory()); + } + // optional uint32 id = 2; + if (cached_has_bits & 0x00000010u) { + total_size += ::_pbi::WireFormatLite::UInt32SizePlusOne( + this_._internal_id()); + } + // optional .Odb.Lib.Protobuf.BoardSide side = 3; + if (cached_has_bits & 0x00000020u) { + total_size += 1 + + ::_pbi::WireFormatLite::EnumSize(this_._internal_side()); + } + } + return this_.MaybeComputeUnknownFieldsSize(total_size, + &this_._impl_._cached_size_); + } + +void ComponentsFile::MergeImpl(::google::protobuf::MessageLite& to_msg, const ::google::protobuf::MessageLite& from_msg) { auto* const _this = static_cast(&to_msg); auto& from = static_cast(from_msg); // @@protoc_insertion_point(class_specific_merge_from_start:Odb.Lib.Protobuf.ComponentsFile) - GOOGLE_DCHECK_NE(&from, _this); - uint32_t cached_has_bits = 0; + ABSL_DCHECK_NE(&from, _this); + ::uint32_t cached_has_bits = 0; (void) cached_has_bits; - _this->_impl_.attributenames_.MergeFrom(from._impl_.attributenames_); - _this->_impl_.attributetextvalues_.MergeFrom(from._impl_.attributetextvalues_); - _this->_impl_.componentrecords_.MergeFrom(from._impl_.componentrecords_); + _this->_internal_mutable_attributenames()->MergeFrom(from._internal_attributenames()); + _this->_internal_mutable_attributetextvalues()->MergeFrom(from._internal_attributetextvalues()); + _this->_internal_mutable_componentrecords()->MergeFrom( + from._internal_componentrecords()); _this->_impl_.componentrecordsbyname_.MergeFrom(from._impl_.componentrecordsbyname_); - _this->_impl_.propertyrecords_.MergeFrom(from._impl_.propertyrecords_); + _this->_internal_mutable_propertyrecords()->MergeFrom( + from._internal_propertyrecords()); _this->_impl_.propertyrecordsbyname_.MergeFrom(from._impl_.propertyrecordsbyname_); _this->_impl_.bomdescriptionrecordsbycpn_.MergeFrom(from._impl_.bomdescriptionrecordsbycpn_); cached_has_bits = from._impl_._has_bits_[0]; @@ -2933,9 +3138,9 @@ void ComponentsFile::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const : if (cached_has_bits & 0x00000020u) { _this->_impl_.side_ = from._impl_.side_; } - _this->_impl_._has_bits_[0] |= cached_has_bits; } - _this->_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); + _this->_impl_._has_bits_[0] |= cached_has_bits; + _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); } void ComponentsFile::CopyFrom(const ComponentsFile& from) { @@ -2945,14 +3150,11 @@ void ComponentsFile::CopyFrom(const ComponentsFile& from) { MergeFrom(from); } -bool ComponentsFile::IsInitialized() const { - return true; -} -void ComponentsFile::InternalSwap(ComponentsFile* other) { +void ComponentsFile::InternalSwap(ComponentsFile* PROTOBUF_RESTRICT other) { using std::swap; - auto* lhs_arena = GetArenaForAllocation(); - auto* rhs_arena = other->GetArenaForAllocation(); + auto* arena = GetArena(); + ABSL_DCHECK_EQ(arena, other->GetArena()); _internal_metadata_.InternalSwap(&other->_internal_metadata_); swap(_impl_._has_bits_[0], other->_impl_._has_bits_[0]); _impl_.attributenames_.InternalSwap(&other->_impl_.attributenames_); @@ -2962,23 +3164,11 @@ void ComponentsFile::InternalSwap(ComponentsFile* other) { _impl_.propertyrecords_.InternalSwap(&other->_impl_.propertyrecords_); _impl_.propertyrecordsbyname_.InternalSwap(&other->_impl_.propertyrecordsbyname_); _impl_.bomdescriptionrecordsbycpn_.InternalSwap(&other->_impl_.bomdescriptionrecordsbycpn_); - ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( - &_impl_.units_, lhs_arena, - &other->_impl_.units_, rhs_arena - ); - ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( - &_impl_.layername_, lhs_arena, - &other->_impl_.layername_, rhs_arena - ); - ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( - &_impl_.path_, lhs_arena, - &other->_impl_.path_, rhs_arena - ); - ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( - &_impl_.directory_, lhs_arena, - &other->_impl_.directory_, rhs_arena - ); - ::PROTOBUF_NAMESPACE_ID::internal::memswap< + ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.units_, &other->_impl_.units_, arena); + ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.layername_, &other->_impl_.layername_, arena); + ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.path_, &other->_impl_.path_, arena); + ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.directory_, &other->_impl_.directory_, arena); + ::google::protobuf::internal::memswap< PROTOBUF_FIELD_OFFSET(ComponentsFile, _impl_.side_) + sizeof(ComponentsFile::_impl_.side_) - PROTOBUF_FIELD_OFFSET(ComponentsFile, _impl_.id_)>( @@ -2986,50 +3176,20 @@ void ComponentsFile::InternalSwap(ComponentsFile* other) { reinterpret_cast(&other->_impl_.id_)); } -::PROTOBUF_NAMESPACE_ID::Metadata ComponentsFile::GetMetadata() const { - return ::_pbi::AssignDescriptors( - &descriptor_table_componentsfile_2eproto_getter, &descriptor_table_componentsfile_2eproto_once, - file_level_metadata_componentsfile_2eproto[7]); +::google::protobuf::Metadata ComponentsFile::GetMetadata() const { + return ::google::protobuf::Message::GetMetadataImpl(GetClassData()->full()); } - // @@protoc_insertion_point(namespace_scope) } // namespace Protobuf } // namespace Lib } // namespace Odb -PROTOBUF_NAMESPACE_OPEN -template<> PROTOBUF_NOINLINE ::Odb::Lib::Protobuf::ComponentsFile_ComponentRecord_ToeprintRecord* -Arena::CreateMaybeMessage< ::Odb::Lib::Protobuf::ComponentsFile_ComponentRecord_ToeprintRecord >(Arena* arena) { - return Arena::CreateMessageInternal< ::Odb::Lib::Protobuf::ComponentsFile_ComponentRecord_ToeprintRecord >(arena); -} -template<> PROTOBUF_NOINLINE ::Odb::Lib::Protobuf::ComponentsFile_ComponentRecord_AttributeLookupTableEntry_DoNotUse* -Arena::CreateMaybeMessage< ::Odb::Lib::Protobuf::ComponentsFile_ComponentRecord_AttributeLookupTableEntry_DoNotUse >(Arena* arena) { - return Arena::CreateMessageInternal< ::Odb::Lib::Protobuf::ComponentsFile_ComponentRecord_AttributeLookupTableEntry_DoNotUse >(arena); -} -template<> PROTOBUF_NOINLINE ::Odb::Lib::Protobuf::ComponentsFile_ComponentRecord* -Arena::CreateMaybeMessage< ::Odb::Lib::Protobuf::ComponentsFile_ComponentRecord >(Arena* arena) { - return Arena::CreateMessageInternal< ::Odb::Lib::Protobuf::ComponentsFile_ComponentRecord >(arena); -} -template<> PROTOBUF_NOINLINE ::Odb::Lib::Protobuf::ComponentsFile_BomDescriptionRecord* -Arena::CreateMaybeMessage< ::Odb::Lib::Protobuf::ComponentsFile_BomDescriptionRecord >(Arena* arena) { - return Arena::CreateMessageInternal< ::Odb::Lib::Protobuf::ComponentsFile_BomDescriptionRecord >(arena); -} -template<> PROTOBUF_NOINLINE ::Odb::Lib::Protobuf::ComponentsFile_ComponentRecordsByNameEntry_DoNotUse* -Arena::CreateMaybeMessage< ::Odb::Lib::Protobuf::ComponentsFile_ComponentRecordsByNameEntry_DoNotUse >(Arena* arena) { - return Arena::CreateMessageInternal< ::Odb::Lib::Protobuf::ComponentsFile_ComponentRecordsByNameEntry_DoNotUse >(arena); -} -template<> PROTOBUF_NOINLINE ::Odb::Lib::Protobuf::ComponentsFile_PropertyRecordsByNameEntry_DoNotUse* -Arena::CreateMaybeMessage< ::Odb::Lib::Protobuf::ComponentsFile_PropertyRecordsByNameEntry_DoNotUse >(Arena* arena) { - return Arena::CreateMessageInternal< ::Odb::Lib::Protobuf::ComponentsFile_PropertyRecordsByNameEntry_DoNotUse >(arena); -} -template<> PROTOBUF_NOINLINE ::Odb::Lib::Protobuf::ComponentsFile_BomDescriptionRecordsByCpnEntry_DoNotUse* -Arena::CreateMaybeMessage< ::Odb::Lib::Protobuf::ComponentsFile_BomDescriptionRecordsByCpnEntry_DoNotUse >(Arena* arena) { - return Arena::CreateMessageInternal< ::Odb::Lib::Protobuf::ComponentsFile_BomDescriptionRecordsByCpnEntry_DoNotUse >(arena); -} -template<> PROTOBUF_NOINLINE ::Odb::Lib::Protobuf::ComponentsFile* -Arena::CreateMaybeMessage< ::Odb::Lib::Protobuf::ComponentsFile >(Arena* arena) { - return Arena::CreateMessageInternal< ::Odb::Lib::Protobuf::ComponentsFile >(arena); -} -PROTOBUF_NAMESPACE_CLOSE - +namespace google { +namespace protobuf { +} // namespace protobuf +} // namespace google // @@protoc_insertion_point(global_scope) -#include +PROTOBUF_ATTRIBUTE_INIT_PRIORITY2 static ::std::false_type + _static_init2_ PROTOBUF_UNUSED = + (::_pbi::AddDescriptors(&descriptor_table_componentsfile_2eproto), + ::std::false_type{}); +#include "google/protobuf/port_undef.inc" diff --git a/OdbDesignLib/ProtoBuf/componentsfile.pb.h b/OdbDesignLib/ProtoBuf/componentsfile.pb.h index 4e799b65..e7b58777 100644 --- a/OdbDesignLib/ProtoBuf/componentsfile.pb.h +++ b/OdbDesignLib/ProtoBuf/componentsfile.pb.h @@ -1,54 +1,61 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE // source: componentsfile.proto +// Protobuf C++ Version: 5.29.2 -#ifndef GOOGLE_PROTOBUF_INCLUDED_componentsfile_2eproto -#define GOOGLE_PROTOBUF_INCLUDED_componentsfile_2eproto +#ifndef componentsfile_2eproto_2epb_2eh +#define componentsfile_2eproto_2epb_2eh #include #include - -#include -#if PROTOBUF_VERSION < 3021000 -#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 3021012 < 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. +#include +#include + +#include "google/protobuf/runtime_version.h" +#if PROTOBUF_VERSION != 5029002 +#error "Protobuf C++ gencode is built with an incompatible version of" +#error "Protobuf C++ headers/runtime. See" +#error "https://protobuf.dev/support/cross-version-runtime-guarantee/#cpp" #endif - -#include -#include -#include -#include -#include -#include -#include -#include -#include // IWYU pragma: export -#include // IWYU pragma: export -#include // IWYU pragma: export -#include -#include -#include +#include "google/protobuf/io/coded_stream.h" +#include "google/protobuf/arena.h" +#include "google/protobuf/arenastring.h" +#include "google/protobuf/generated_message_tctable_decl.h" +#include "google/protobuf/generated_message_util.h" +#include "google/protobuf/metadata_lite.h" +#include "google/protobuf/generated_message_reflection.h" +#include "google/protobuf/message.h" +#include "google/protobuf/message_lite.h" +#include "google/protobuf/repeated_field.h" // IWYU pragma: export +#include "google/protobuf/extension_set.h" // IWYU pragma: export +#include "google/protobuf/map.h" // IWYU pragma: export +#include "google/protobuf/map_entry.h" +#include "google/protobuf/map_field_inl.h" +#include "google/protobuf/unknown_field_set.h" #include "common.pb.h" #include "enums.pb.h" // @@protoc_insertion_point(includes) -#include + +// Must be included last. +#include "google/protobuf/port_def.inc" + #define PROTOBUF_INTERNAL_EXPORT_componentsfile_2eproto ODBDESIGN_EXPORT -PROTOBUF_NAMESPACE_OPEN + +namespace google { +namespace protobuf { namespace internal { -class AnyMetadata; +template +::absl::string_view GetAnyMessageName(); } // namespace internal -PROTOBUF_NAMESPACE_CLOSE +} // namespace protobuf +} // namespace google // Internal implementation detail -- do not use these members. struct ODBDESIGN_EXPORT TableStruct_componentsfile_2eproto { - static const uint32_t offsets[]; + static const ::uint32_t offsets[]; }; -ODBDESIGN_EXPORT extern const ::PROTOBUF_NAMESPACE_ID::internal::DescriptorTable descriptor_table_componentsfile_2eproto; +ODBDESIGN_EXPORT extern const ::google::protobuf::internal::DescriptorTable + descriptor_table_componentsfile_2eproto; namespace Odb { namespace Lib { namespace Protobuf { @@ -79,46 +86,47 @@ ODBDESIGN_EXPORT extern ComponentsFile_PropertyRecordsByNameEntry_DoNotUseDefaul } // namespace Protobuf } // namespace Lib } // namespace Odb -PROTOBUF_NAMESPACE_OPEN -template<> ODBDESIGN_EXPORT ::Odb::Lib::Protobuf::ComponentsFile* Arena::CreateMaybeMessage<::Odb::Lib::Protobuf::ComponentsFile>(Arena*); -template<> ODBDESIGN_EXPORT ::Odb::Lib::Protobuf::ComponentsFile_BomDescriptionRecord* Arena::CreateMaybeMessage<::Odb::Lib::Protobuf::ComponentsFile_BomDescriptionRecord>(Arena*); -template<> ODBDESIGN_EXPORT ::Odb::Lib::Protobuf::ComponentsFile_BomDescriptionRecordsByCpnEntry_DoNotUse* Arena::CreateMaybeMessage<::Odb::Lib::Protobuf::ComponentsFile_BomDescriptionRecordsByCpnEntry_DoNotUse>(Arena*); -template<> ODBDESIGN_EXPORT ::Odb::Lib::Protobuf::ComponentsFile_ComponentRecord* Arena::CreateMaybeMessage<::Odb::Lib::Protobuf::ComponentsFile_ComponentRecord>(Arena*); -template<> ODBDESIGN_EXPORT ::Odb::Lib::Protobuf::ComponentsFile_ComponentRecord_AttributeLookupTableEntry_DoNotUse* Arena::CreateMaybeMessage<::Odb::Lib::Protobuf::ComponentsFile_ComponentRecord_AttributeLookupTableEntry_DoNotUse>(Arena*); -template<> ODBDESIGN_EXPORT ::Odb::Lib::Protobuf::ComponentsFile_ComponentRecord_ToeprintRecord* Arena::CreateMaybeMessage<::Odb::Lib::Protobuf::ComponentsFile_ComponentRecord_ToeprintRecord>(Arena*); -template<> ODBDESIGN_EXPORT ::Odb::Lib::Protobuf::ComponentsFile_ComponentRecordsByNameEntry_DoNotUse* Arena::CreateMaybeMessage<::Odb::Lib::Protobuf::ComponentsFile_ComponentRecordsByNameEntry_DoNotUse>(Arena*); -template<> ODBDESIGN_EXPORT ::Odb::Lib::Protobuf::ComponentsFile_PropertyRecordsByNameEntry_DoNotUse* Arena::CreateMaybeMessage<::Odb::Lib::Protobuf::ComponentsFile_PropertyRecordsByNameEntry_DoNotUse>(Arena*); -PROTOBUF_NAMESPACE_CLOSE +namespace google { +namespace protobuf { +} // namespace protobuf +} // namespace google + namespace Odb { namespace Lib { namespace Protobuf { // =================================================================== -class ODBDESIGN_EXPORT ComponentsFile_ComponentRecord_ToeprintRecord final : - public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:Odb.Lib.Protobuf.ComponentsFile.ComponentRecord.ToeprintRecord) */ { + +// ------------------------------------------------------------------- + +class ODBDESIGN_EXPORT ComponentsFile_ComponentRecord_ToeprintRecord final : public ::google::protobuf::Message +/* @@protoc_insertion_point(class_definition:Odb.Lib.Protobuf.ComponentsFile.ComponentRecord.ToeprintRecord) */ { public: inline ComponentsFile_ComponentRecord_ToeprintRecord() : ComponentsFile_ComponentRecord_ToeprintRecord(nullptr) {} - ~ComponentsFile_ComponentRecord_ToeprintRecord() override; - explicit PROTOBUF_CONSTEXPR ComponentsFile_ComponentRecord_ToeprintRecord(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); + ~ComponentsFile_ComponentRecord_ToeprintRecord() PROTOBUF_FINAL; - ComponentsFile_ComponentRecord_ToeprintRecord(const ComponentsFile_ComponentRecord_ToeprintRecord& from); - ComponentsFile_ComponentRecord_ToeprintRecord(ComponentsFile_ComponentRecord_ToeprintRecord&& from) noexcept - : ComponentsFile_ComponentRecord_ToeprintRecord() { - *this = ::std::move(from); +#if defined(PROTOBUF_CUSTOM_VTABLE) + void operator delete(ComponentsFile_ComponentRecord_ToeprintRecord* msg, std::destroying_delete_t) { + SharedDtor(*msg); + ::google::protobuf::internal::SizedDelete(msg, sizeof(ComponentsFile_ComponentRecord_ToeprintRecord)); } +#endif + template + explicit PROTOBUF_CONSTEXPR ComponentsFile_ComponentRecord_ToeprintRecord( + ::google::protobuf::internal::ConstantInitialized); + + inline ComponentsFile_ComponentRecord_ToeprintRecord(const ComponentsFile_ComponentRecord_ToeprintRecord& from) : ComponentsFile_ComponentRecord_ToeprintRecord(nullptr, from) {} + inline ComponentsFile_ComponentRecord_ToeprintRecord(ComponentsFile_ComponentRecord_ToeprintRecord&& from) noexcept + : ComponentsFile_ComponentRecord_ToeprintRecord(nullptr, std::move(from)) {} inline ComponentsFile_ComponentRecord_ToeprintRecord& operator=(const ComponentsFile_ComponentRecord_ToeprintRecord& from) { CopyFrom(from); return *this; } inline ComponentsFile_ComponentRecord_ToeprintRecord& operator=(ComponentsFile_ComponentRecord_ToeprintRecord&& from) noexcept { if (this == &from) return *this; - if (GetOwningArena() == from.GetOwningArena() - #ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetOwningArena() != nullptr - #endif // !PROTOBUF_FORCE_COPY_IN_MOVE - ) { + if (::google::protobuf::internal::CanMoveWithInternalSwap(GetArena(), from.GetArena())) { InternalSwap(&from); } else { CopyFrom(from); @@ -126,13 +134,22 @@ class ODBDESIGN_EXPORT ComponentsFile_ComponentRecord_ToeprintRecord final : return *this; } - static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { + inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const + ABSL_ATTRIBUTE_LIFETIME_BOUND { + return _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance); + } + inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() + ABSL_ATTRIBUTE_LIFETIME_BOUND { + return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); + } + + static const ::google::protobuf::Descriptor* descriptor() { return GetDescriptor(); } - static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { + static const ::google::protobuf::Descriptor* GetDescriptor() { return default_instance().GetMetadata().descriptor; } - static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { + static const ::google::protobuf::Reflection* GetReflection() { return default_instance().GetMetadata().reflection; } static const ComponentsFile_ComponentRecord_ToeprintRecord& default_instance() { @@ -140,81 +157,94 @@ class ODBDESIGN_EXPORT ComponentsFile_ComponentRecord_ToeprintRecord final : } static inline const ComponentsFile_ComponentRecord_ToeprintRecord* internal_default_instance() { return reinterpret_cast( - &_ComponentsFile_ComponentRecord_ToeprintRecord_default_instance_); - } - static constexpr int kIndexInFileMessages = - 0; - - friend void swap(ComponentsFile_ComponentRecord_ToeprintRecord& a, ComponentsFile_ComponentRecord_ToeprintRecord& b) { - a.Swap(&b); + &_ComponentsFile_ComponentRecord_ToeprintRecord_default_instance_); } + static constexpr int kIndexInFileMessages = 0; + friend void swap(ComponentsFile_ComponentRecord_ToeprintRecord& a, ComponentsFile_ComponentRecord_ToeprintRecord& b) { a.Swap(&b); } inline void Swap(ComponentsFile_ComponentRecord_ToeprintRecord* other) { if (other == this) return; - #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetOwningArena() != nullptr && - GetOwningArena() == other->GetOwningArena()) { - #else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetOwningArena() == other->GetOwningArena()) { - #endif // !PROTOBUF_FORCE_COPY_IN_SWAP + if (::google::protobuf::internal::CanUseInternalSwap(GetArena(), other->GetArena())) { InternalSwap(other); } else { - ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); + ::google::protobuf::internal::GenericSwap(this, other); } } void UnsafeArenaSwap(ComponentsFile_ComponentRecord_ToeprintRecord* other) { if (other == this) return; - GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); + ABSL_DCHECK(GetArena() == other->GetArena()); InternalSwap(other); } // implements Message ---------------------------------------------- - ComponentsFile_ComponentRecord_ToeprintRecord* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); + ComponentsFile_ComponentRecord_ToeprintRecord* New(::google::protobuf::Arena* arena = nullptr) const { + return ::google::protobuf::Message::DefaultConstruct(arena); } - using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; + using ::google::protobuf::Message::CopyFrom; void CopyFrom(const ComponentsFile_ComponentRecord_ToeprintRecord& from); - using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; - void MergeFrom( const ComponentsFile_ComponentRecord_ToeprintRecord& from) { - ComponentsFile_ComponentRecord_ToeprintRecord::MergeImpl(*this, from); - } + using ::google::protobuf::Message::MergeFrom; + void MergeFrom(const ComponentsFile_ComponentRecord_ToeprintRecord& from) { ComponentsFile_ComponentRecord_ToeprintRecord::MergeImpl(*this, from); } + private: - static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg); + static void MergeImpl( + ::google::protobuf::MessageLite& to_msg, + const ::google::protobuf::MessageLite& from_msg); + public: - PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; - bool IsInitialized() const final; + bool IsInitialized() const { + return true; + } + ABSL_ATTRIBUTE_REINITIALIZES void Clear() PROTOBUF_FINAL; + #if defined(PROTOBUF_CUSTOM_VTABLE) + private: + static ::size_t ByteSizeLong(const ::google::protobuf::MessageLite& msg); + static ::uint8_t* _InternalSerialize( + const MessageLite& msg, ::uint8_t* target, + ::google::protobuf::io::EpsCopyOutputStream* stream); - size_t ByteSizeLong() const final; - const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final; - uint8_t* _InternalSerialize( - uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const final { return _impl_._cached_size_.Get(); } + public: + ::size_t ByteSizeLong() const { return ByteSizeLong(*this); } + ::uint8_t* _InternalSerialize( + ::uint8_t* target, + ::google::protobuf::io::EpsCopyOutputStream* stream) const { + return _InternalSerialize(*this, target, stream); + } + #else // PROTOBUF_CUSTOM_VTABLE + ::size_t ByteSizeLong() const final; + ::uint8_t* _InternalSerialize( + ::uint8_t* target, + ::google::protobuf::io::EpsCopyOutputStream* stream) const final; + #endif // PROTOBUF_CUSTOM_VTABLE + int GetCachedSize() const { return _impl_._cached_size_.Get(); } private: - void SharedCtor(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned); - void SharedDtor(); - void SetCachedSize(int size) const final; + void SharedCtor(::google::protobuf::Arena* arena); + static void SharedDtor(MessageLite& self); void InternalSwap(ComponentsFile_ComponentRecord_ToeprintRecord* other); - - private: - friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; - static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { - return "Odb.Lib.Protobuf.ComponentsFile.ComponentRecord.ToeprintRecord"; + private: + template + friend ::absl::string_view( + ::google::protobuf::internal::GetAnyMessageName)(); + static ::absl::string_view FullMessageName() { return "Odb.Lib.Protobuf.ComponentsFile.ComponentRecord.ToeprintRecord"; } + + protected: + explicit ComponentsFile_ComponentRecord_ToeprintRecord(::google::protobuf::Arena* arena); + ComponentsFile_ComponentRecord_ToeprintRecord(::google::protobuf::Arena* arena, const ComponentsFile_ComponentRecord_ToeprintRecord& from); + ComponentsFile_ComponentRecord_ToeprintRecord(::google::protobuf::Arena* arena, ComponentsFile_ComponentRecord_ToeprintRecord&& from) noexcept + : ComponentsFile_ComponentRecord_ToeprintRecord(arena) { + *this = ::std::move(from); } - protected: - explicit ComponentsFile_ComponentRecord_ToeprintRecord(::PROTOBUF_NAMESPACE_ID::Arena* arena, - bool is_message_owned = false); - public: - - static const ClassData _class_data_; - const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final; - - ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; + const ::google::protobuf::internal::ClassData* GetClassData() const PROTOBUF_FINAL; + static void* PlacementNew_(const void*, void* mem, + ::google::protobuf::Arena* arena); + static constexpr auto InternalNewImpl_(); + static const ::google::protobuf::internal::ClassDataFull _class_data_; + public: + ::google::protobuf::Metadata GetMetadata() const; // nested types ---------------------------------------------------- // accessors ------------------------------------------------------- - enum : int { kNameFieldNumber = 8, kPinNumberFieldNumber = 1, @@ -227,189 +257,204 @@ class ODBDESIGN_EXPORT ComponentsFile_ComponentRecord_ToeprintRecord final : }; // optional string name = 8; bool has_name() const; - private: - bool _internal_has_name() const; - public: - void clear_name(); + void clear_name() ; const std::string& name() const; - template - void set_name(ArgT0&& arg0, ArgT... args); + template + void set_name(Arg_&& arg, Args_... args); std::string* mutable_name(); PROTOBUF_NODISCARD std::string* release_name(); - void set_allocated_name(std::string* name); + void set_allocated_name(std::string* value); + private: const std::string& _internal_name() const; - inline PROTOBUF_ALWAYS_INLINE void _internal_set_name(const std::string& value); + inline PROTOBUF_ALWAYS_INLINE void _internal_set_name( + const std::string& value); std::string* _internal_mutable_name(); - public: + public: // optional uint32 pinNumber = 1; bool has_pinnumber() const; + void clear_pinnumber() ; + ::uint32_t pinnumber() const; + void set_pinnumber(::uint32_t value); + private: - bool _internal_has_pinnumber() const; - public: - void clear_pinnumber(); - uint32_t pinnumber() const; - void set_pinnumber(uint32_t value); - private: - uint32_t _internal_pinnumber() const; - void _internal_set_pinnumber(uint32_t value); - public: + ::uint32_t _internal_pinnumber() const; + void _internal_set_pinnumber(::uint32_t value); + public: // optional float locationX = 2; bool has_locationx() const; - private: - bool _internal_has_locationx() const; - public: - void clear_locationx(); + void clear_locationx() ; float locationx() const; void set_locationx(float value); + private: float _internal_locationx() const; void _internal_set_locationx(float value); - public: + public: // optional float locationY = 3; bool has_locationy() const; - private: - bool _internal_has_locationy() const; - public: - void clear_locationy(); + void clear_locationy() ; float locationy() const; void set_locationy(float value); + private: float _internal_locationy() const; void _internal_set_locationy(float value); - public: + public: // optional float rotation = 4; bool has_rotation() const; - private: - bool _internal_has_rotation() const; - public: - void clear_rotation(); + void clear_rotation() ; float rotation() const; void set_rotation(float value); + private: float _internal_rotation() const; void _internal_set_rotation(float value); - public: + public: // optional bool mirror = 5; bool has_mirror() const; - private: - bool _internal_has_mirror() const; - public: - void clear_mirror(); + void clear_mirror() ; bool mirror() const; void set_mirror(bool value); + private: bool _internal_mirror() const; void _internal_set_mirror(bool value); - public: + public: // optional uint32 netNumber = 6; bool has_netnumber() const; + void clear_netnumber() ; + ::uint32_t netnumber() const; + void set_netnumber(::uint32_t value); + private: - bool _internal_has_netnumber() const; - public: - void clear_netnumber(); - uint32_t netnumber() const; - void set_netnumber(uint32_t value); - private: - uint32_t _internal_netnumber() const; - void _internal_set_netnumber(uint32_t value); - public: + ::uint32_t _internal_netnumber() const; + void _internal_set_netnumber(::uint32_t value); + public: // optional uint32 subnetNumber = 7; bool has_subnetnumber() const; + void clear_subnetnumber() ; + ::uint32_t subnetnumber() const; + void set_subnetnumber(::uint32_t value); + private: - bool _internal_has_subnetnumber() const; - public: - void clear_subnetnumber(); - uint32_t subnetnumber() const; - void set_subnetnumber(uint32_t value); - private: - uint32_t _internal_subnetnumber() const; - void _internal_set_subnetnumber(uint32_t value); - public: + ::uint32_t _internal_subnetnumber() const; + void _internal_set_subnetnumber(::uint32_t value); + public: // @@protoc_insertion_point(class_scope:Odb.Lib.Protobuf.ComponentsFile.ComponentRecord.ToeprintRecord) private: class _Internal; - - template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; - typedef void InternalArenaConstructable_; - typedef void DestructorSkippable_; + friend class ::google::protobuf::internal::TcParser; + static const ::google::protobuf::internal::TcParseTable< + 3, 8, 0, + 83, 2> + _table_; + + friend class ::google::protobuf::MessageLite; + friend class ::google::protobuf::Arena; + template + friend class ::google::protobuf::Arena::InternalHelper; + using InternalArenaConstructable_ = void; + using DestructorSkippable_ = void; struct Impl_ { - ::PROTOBUF_NAMESPACE_ID::internal::HasBits<1> _has_bits_; - mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; - ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr name_; - uint32_t pinnumber_; + inline explicit constexpr Impl_( + ::google::protobuf::internal::ConstantInitialized) noexcept; + inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* arena); + inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* arena, const Impl_& from, + const ComponentsFile_ComponentRecord_ToeprintRecord& from_msg); + ::google::protobuf::internal::HasBits<1> _has_bits_; + ::google::protobuf::internal::CachedSize _cached_size_; + ::google::protobuf::internal::ArenaStringPtr name_; + ::uint32_t pinnumber_; float locationx_; float locationy_; float rotation_; bool mirror_; - uint32_t netnumber_; - uint32_t subnetnumber_; + ::uint32_t netnumber_; + ::uint32_t subnetnumber_; + PROTOBUF_TSAN_DECLARE_MEMBER }; union { Impl_ _impl_; }; friend struct ::TableStruct_componentsfile_2eproto; }; // ------------------------------------------------------------------- -class ComponentsFile_ComponentRecord_AttributeLookupTableEntry_DoNotUse : public ::PROTOBUF_NAMESPACE_ID::internal::MapEntry { -public: - typedef ::PROTOBUF_NAMESPACE_ID::internal::MapEntry SuperType; +class ComponentsFile_ComponentRecord_AttributeLookupTableEntry_DoNotUse final + : public ::google::protobuf::internal::MapEntry< + std::string, std::string, + ::google::protobuf::internal::WireFormatLite::TYPE_STRING, + ::google::protobuf::internal::WireFormatLite::TYPE_STRING> { + public: + using SuperType = ::google::protobuf::internal::MapEntry< + std::string, std::string, + ::google::protobuf::internal::WireFormatLite::TYPE_STRING, + ::google::protobuf::internal::WireFormatLite::TYPE_STRING>; ComponentsFile_ComponentRecord_AttributeLookupTableEntry_DoNotUse(); + template explicit PROTOBUF_CONSTEXPR ComponentsFile_ComponentRecord_AttributeLookupTableEntry_DoNotUse( - ::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); - explicit ComponentsFile_ComponentRecord_AttributeLookupTableEntry_DoNotUse(::PROTOBUF_NAMESPACE_ID::Arena* arena); - void MergeFrom(const ComponentsFile_ComponentRecord_AttributeLookupTableEntry_DoNotUse& other); - static const ComponentsFile_ComponentRecord_AttributeLookupTableEntry_DoNotUse* internal_default_instance() { return reinterpret_cast(&_ComponentsFile_ComponentRecord_AttributeLookupTableEntry_DoNotUse_default_instance_); } - static bool ValidateKey(std::string* s) { - return ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String(s->data(), static_cast(s->size()), ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::PARSE, "Odb.Lib.Protobuf.ComponentsFile.ComponentRecord.AttributeLookupTableEntry.key"); - } - static bool ValidateValue(std::string* s) { - return ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String(s->data(), static_cast(s->size()), ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::PARSE, "Odb.Lib.Protobuf.ComponentsFile.ComponentRecord.AttributeLookupTableEntry.value"); - } - using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; - ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; + ::google::protobuf::internal::ConstantInitialized); + explicit ComponentsFile_ComponentRecord_AttributeLookupTableEntry_DoNotUse(::google::protobuf::Arena* arena); + static const ComponentsFile_ComponentRecord_AttributeLookupTableEntry_DoNotUse* internal_default_instance() { + return reinterpret_cast( + &_ComponentsFile_ComponentRecord_AttributeLookupTableEntry_DoNotUse_default_instance_); + } + + + private: + friend class ::google::protobuf::MessageLite; friend struct ::TableStruct_componentsfile_2eproto; -}; + friend class ::google::protobuf::internal::TcParser; + static const ::google::protobuf::internal::TcParseTable< + 1, 2, 0, + 90, 2> + _table_; + + const ::google::protobuf::internal::ClassData* GetClassData() const PROTOBUF_FINAL; + static void* PlacementNew_(const void*, void* mem, + ::google::protobuf::Arena* arena); + static constexpr auto InternalNewImpl_(); + static const ::google::protobuf::internal::ClassDataFull _class_data_; +}; // ------------------------------------------------------------------- -class ODBDESIGN_EXPORT ComponentsFile_ComponentRecord final : - public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:Odb.Lib.Protobuf.ComponentsFile.ComponentRecord) */ { +class ODBDESIGN_EXPORT ComponentsFile_BomDescriptionRecord final : public ::google::protobuf::Message +/* @@protoc_insertion_point(class_definition:Odb.Lib.Protobuf.ComponentsFile.BomDescriptionRecord) */ { public: - inline ComponentsFile_ComponentRecord() : ComponentsFile_ComponentRecord(nullptr) {} - ~ComponentsFile_ComponentRecord() override; - explicit PROTOBUF_CONSTEXPR ComponentsFile_ComponentRecord(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); + inline ComponentsFile_BomDescriptionRecord() : ComponentsFile_BomDescriptionRecord(nullptr) {} + ~ComponentsFile_BomDescriptionRecord() PROTOBUF_FINAL; - ComponentsFile_ComponentRecord(const ComponentsFile_ComponentRecord& from); - ComponentsFile_ComponentRecord(ComponentsFile_ComponentRecord&& from) noexcept - : ComponentsFile_ComponentRecord() { - *this = ::std::move(from); +#if defined(PROTOBUF_CUSTOM_VTABLE) + void operator delete(ComponentsFile_BomDescriptionRecord* msg, std::destroying_delete_t) { + SharedDtor(*msg); + ::google::protobuf::internal::SizedDelete(msg, sizeof(ComponentsFile_BomDescriptionRecord)); } +#endif - inline ComponentsFile_ComponentRecord& operator=(const ComponentsFile_ComponentRecord& from) { + template + explicit PROTOBUF_CONSTEXPR ComponentsFile_BomDescriptionRecord( + ::google::protobuf::internal::ConstantInitialized); + + inline ComponentsFile_BomDescriptionRecord(const ComponentsFile_BomDescriptionRecord& from) : ComponentsFile_BomDescriptionRecord(nullptr, from) {} + inline ComponentsFile_BomDescriptionRecord(ComponentsFile_BomDescriptionRecord&& from) noexcept + : ComponentsFile_BomDescriptionRecord(nullptr, std::move(from)) {} + inline ComponentsFile_BomDescriptionRecord& operator=(const ComponentsFile_BomDescriptionRecord& from) { CopyFrom(from); return *this; } - inline ComponentsFile_ComponentRecord& operator=(ComponentsFile_ComponentRecord&& from) noexcept { + inline ComponentsFile_BomDescriptionRecord& operator=(ComponentsFile_BomDescriptionRecord&& from) noexcept { if (this == &from) return *this; - if (GetOwningArena() == from.GetOwningArena() - #ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetOwningArena() != nullptr - #endif // !PROTOBUF_FORCE_COPY_IN_MOVE - ) { + if (::google::protobuf::internal::CanMoveWithInternalSwap(GetArena(), from.GetArena())) { InternalSwap(&from); } else { CopyFrom(from); @@ -417,369 +462,374 @@ class ODBDESIGN_EXPORT ComponentsFile_ComponentRecord final : return *this; } - static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { + inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const + ABSL_ATTRIBUTE_LIFETIME_BOUND { + return _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance); + } + inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() + ABSL_ATTRIBUTE_LIFETIME_BOUND { + return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); + } + + static const ::google::protobuf::Descriptor* descriptor() { return GetDescriptor(); } - static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { + static const ::google::protobuf::Descriptor* GetDescriptor() { return default_instance().GetMetadata().descriptor; } - static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { + static const ::google::protobuf::Reflection* GetReflection() { return default_instance().GetMetadata().reflection; } - static const ComponentsFile_ComponentRecord& default_instance() { + static const ComponentsFile_BomDescriptionRecord& default_instance() { return *internal_default_instance(); } - static inline const ComponentsFile_ComponentRecord* internal_default_instance() { - return reinterpret_cast( - &_ComponentsFile_ComponentRecord_default_instance_); - } - static constexpr int kIndexInFileMessages = - 2; - - friend void swap(ComponentsFile_ComponentRecord& a, ComponentsFile_ComponentRecord& b) { - a.Swap(&b); + static inline const ComponentsFile_BomDescriptionRecord* internal_default_instance() { + return reinterpret_cast( + &_ComponentsFile_BomDescriptionRecord_default_instance_); } - inline void Swap(ComponentsFile_ComponentRecord* other) { + static constexpr int kIndexInFileMessages = 3; + friend void swap(ComponentsFile_BomDescriptionRecord& a, ComponentsFile_BomDescriptionRecord& b) { a.Swap(&b); } + inline void Swap(ComponentsFile_BomDescriptionRecord* other) { if (other == this) return; - #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetOwningArena() != nullptr && - GetOwningArena() == other->GetOwningArena()) { - #else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetOwningArena() == other->GetOwningArena()) { - #endif // !PROTOBUF_FORCE_COPY_IN_SWAP + if (::google::protobuf::internal::CanUseInternalSwap(GetArena(), other->GetArena())) { InternalSwap(other); } else { - ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); + ::google::protobuf::internal::GenericSwap(this, other); } } - void UnsafeArenaSwap(ComponentsFile_ComponentRecord* other) { + void UnsafeArenaSwap(ComponentsFile_BomDescriptionRecord* other) { if (other == this) return; - GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); + ABSL_DCHECK(GetArena() == other->GetArena()); InternalSwap(other); } // implements Message ---------------------------------------------- - ComponentsFile_ComponentRecord* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); - } - using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; - void CopyFrom(const ComponentsFile_ComponentRecord& from); - using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; - void MergeFrom( const ComponentsFile_ComponentRecord& from) { - ComponentsFile_ComponentRecord::MergeImpl(*this, from); + ComponentsFile_BomDescriptionRecord* New(::google::protobuf::Arena* arena = nullptr) const { + return ::google::protobuf::Message::DefaultConstruct(arena); } - private: - static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg); - public: - PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; - bool IsInitialized() const final; - - size_t ByteSizeLong() const final; - const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final; - uint8_t* _InternalSerialize( - uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const final { return _impl_._cached_size_.Get(); } + using ::google::protobuf::Message::CopyFrom; + void CopyFrom(const ComponentsFile_BomDescriptionRecord& from); + using ::google::protobuf::Message::MergeFrom; + void MergeFrom(const ComponentsFile_BomDescriptionRecord& from) { ComponentsFile_BomDescriptionRecord::MergeImpl(*this, from); } private: - void SharedCtor(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned); - void SharedDtor(); - void SetCachedSize(int size) const final; - void InternalSwap(ComponentsFile_ComponentRecord* other); + static void MergeImpl( + ::google::protobuf::MessageLite& to_msg, + const ::google::protobuf::MessageLite& from_msg); - private: - friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; - static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { - return "Odb.Lib.Protobuf.ComponentsFile.ComponentRecord"; + public: + bool IsInitialized() const { + return true; } - protected: - explicit ComponentsFile_ComponentRecord(::PROTOBUF_NAMESPACE_ID::Arena* arena, - bool is_message_owned = false); + ABSL_ATTRIBUTE_REINITIALIZES void Clear() PROTOBUF_FINAL; + #if defined(PROTOBUF_CUSTOM_VTABLE) private: - static void ArenaDtor(void* object); - public: + static ::size_t ByteSizeLong(const ::google::protobuf::MessageLite& msg); + static ::uint8_t* _InternalSerialize( + const MessageLite& msg, ::uint8_t* target, + ::google::protobuf::io::EpsCopyOutputStream* stream); - static const ClassData _class_data_; - const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final; + public: + ::size_t ByteSizeLong() const { return ByteSizeLong(*this); } + ::uint8_t* _InternalSerialize( + ::uint8_t* target, + ::google::protobuf::io::EpsCopyOutputStream* stream) const { + return _InternalSerialize(*this, target, stream); + } + #else // PROTOBUF_CUSTOM_VTABLE + ::size_t ByteSizeLong() const final; + ::uint8_t* _InternalSerialize( + ::uint8_t* target, + ::google::protobuf::io::EpsCopyOutputStream* stream) const final; + #endif // PROTOBUF_CUSTOM_VTABLE + int GetCachedSize() const { return _impl_._cached_size_.Get(); } - ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; + private: + void SharedCtor(::google::protobuf::Arena* arena); + static void SharedDtor(MessageLite& self); + void InternalSwap(ComponentsFile_BomDescriptionRecord* other); + private: + template + friend ::absl::string_view( + ::google::protobuf::internal::GetAnyMessageName)(); + static ::absl::string_view FullMessageName() { return "Odb.Lib.Protobuf.ComponentsFile.BomDescriptionRecord"; } + + protected: + explicit ComponentsFile_BomDescriptionRecord(::google::protobuf::Arena* arena); + ComponentsFile_BomDescriptionRecord(::google::protobuf::Arena* arena, const ComponentsFile_BomDescriptionRecord& from); + ComponentsFile_BomDescriptionRecord(::google::protobuf::Arena* arena, ComponentsFile_BomDescriptionRecord&& from) noexcept + : ComponentsFile_BomDescriptionRecord(arena) { + *this = ::std::move(from); + } + const ::google::protobuf::internal::ClassData* GetClassData() const PROTOBUF_FINAL; + static void* PlacementNew_(const void*, void* mem, + ::google::protobuf::Arena* arena); + static constexpr auto InternalNewImpl_(); + static const ::google::protobuf::internal::ClassDataFull _class_data_; + public: + ::google::protobuf::Metadata GetMetadata() const; // nested types ---------------------------------------------------- - typedef ComponentsFile_ComponentRecord_ToeprintRecord ToeprintRecord; - // accessors ------------------------------------------------------- - enum : int { - kPropertyRecordsFieldNumber = 11, - kToeprintRecordsFieldNumber = 12, - kAttributeLookupTableFieldNumber = 13, - kCompNameFieldNumber = 6, - kPartNameFieldNumber = 7, - kAttributesFieldNumber = 8, - kPkgRefFieldNumber = 1, - kLocationXFieldNumber = 2, - kLocationYFieldNumber = 3, - kRotationFieldNumber = 4, - kMirrorFieldNumber = 5, - kIdFieldNumber = 9, - kIndexFieldNumber = 10, + kDescriptionsFieldNumber = 4, + kCpnFieldNumber = 1, + kPkgFieldNumber = 2, + kIpnFieldNumber = 3, + kVplVndFieldNumber = 5, + kVplMpnFieldNumber = 6, + kVndFieldNumber = 7, + kMpnFieldNumber = 8, }; - // repeated .Odb.Lib.Protobuf.PropertyRecord propertyRecords = 11; - int propertyrecords_size() const; - private: - int _internal_propertyrecords_size() const; - public: - void clear_propertyrecords(); - ::Odb::Lib::Protobuf::PropertyRecord* mutable_propertyrecords(int index); - ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::Odb::Lib::Protobuf::PropertyRecord >* - mutable_propertyrecords(); + // repeated string descriptions = 4; + int descriptions_size() const; private: - const ::Odb::Lib::Protobuf::PropertyRecord& _internal_propertyrecords(int index) const; - ::Odb::Lib::Protobuf::PropertyRecord* _internal_add_propertyrecords(); - public: - const ::Odb::Lib::Protobuf::PropertyRecord& propertyrecords(int index) const; - ::Odb::Lib::Protobuf::PropertyRecord* add_propertyrecords(); - const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::Odb::Lib::Protobuf::PropertyRecord >& - propertyrecords() const; + int _internal_descriptions_size() const; - // repeated .Odb.Lib.Protobuf.ComponentsFile.ComponentRecord.ToeprintRecord toeprintRecords = 12; - int toeprintrecords_size() const; - private: - int _internal_toeprintrecords_size() const; - public: - void clear_toeprintrecords(); - ::Odb::Lib::Protobuf::ComponentsFile_ComponentRecord_ToeprintRecord* mutable_toeprintrecords(int index); - ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::Odb::Lib::Protobuf::ComponentsFile_ComponentRecord_ToeprintRecord >* - mutable_toeprintrecords(); - private: - const ::Odb::Lib::Protobuf::ComponentsFile_ComponentRecord_ToeprintRecord& _internal_toeprintrecords(int index) const; - ::Odb::Lib::Protobuf::ComponentsFile_ComponentRecord_ToeprintRecord* _internal_add_toeprintrecords(); public: - const ::Odb::Lib::Protobuf::ComponentsFile_ComponentRecord_ToeprintRecord& toeprintrecords(int index) const; - ::Odb::Lib::Protobuf::ComponentsFile_ComponentRecord_ToeprintRecord* add_toeprintrecords(); - const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::Odb::Lib::Protobuf::ComponentsFile_ComponentRecord_ToeprintRecord >& - toeprintrecords() const; + void clear_descriptions() ; + const std::string& descriptions(int index) const; + std::string* mutable_descriptions(int index); + template + void set_descriptions(int index, Arg_&& value, Args_... args); + std::string* add_descriptions(); + template + void add_descriptions(Arg_&& value, Args_... args); + const ::google::protobuf::RepeatedPtrField& descriptions() const; + ::google::protobuf::RepeatedPtrField* mutable_descriptions(); - // map attributeLookupTable = 13; - int attributelookuptable_size() const; - private: - int _internal_attributelookuptable_size() const; - public: - void clear_attributelookuptable(); private: - const ::PROTOBUF_NAMESPACE_ID::Map< std::string, std::string >& - _internal_attributelookuptable() const; - ::PROTOBUF_NAMESPACE_ID::Map< std::string, std::string >* - _internal_mutable_attributelookuptable(); + const ::google::protobuf::RepeatedPtrField& _internal_descriptions() const; + ::google::protobuf::RepeatedPtrField* _internal_mutable_descriptions(); + public: - const ::PROTOBUF_NAMESPACE_ID::Map< std::string, std::string >& - attributelookuptable() const; - ::PROTOBUF_NAMESPACE_ID::Map< std::string, std::string >* - mutable_attributelookuptable(); + // optional string cpn = 1; + bool has_cpn() const; + void clear_cpn() ; + const std::string& cpn() const; + template + void set_cpn(Arg_&& arg, Args_... args); + std::string* mutable_cpn(); + PROTOBUF_NODISCARD std::string* release_cpn(); + void set_allocated_cpn(std::string* value); - // optional string compName = 6; - bool has_compname() const; private: - bool _internal_has_compname() const; + const std::string& _internal_cpn() const; + inline PROTOBUF_ALWAYS_INLINE void _internal_set_cpn( + const std::string& value); + std::string* _internal_mutable_cpn(); + public: - void clear_compname(); - const std::string& compname() const; - template - void set_compname(ArgT0&& arg0, ArgT... args); - std::string* mutable_compname(); - PROTOBUF_NODISCARD std::string* release_compname(); - void set_allocated_compname(std::string* compname); + // optional string pkg = 2; + bool has_pkg() const; + void clear_pkg() ; + const std::string& pkg() const; + template + void set_pkg(Arg_&& arg, Args_... args); + std::string* mutable_pkg(); + PROTOBUF_NODISCARD std::string* release_pkg(); + void set_allocated_pkg(std::string* value); + private: - const std::string& _internal_compname() const; - inline PROTOBUF_ALWAYS_INLINE void _internal_set_compname(const std::string& value); - std::string* _internal_mutable_compname(); + const std::string& _internal_pkg() const; + inline PROTOBUF_ALWAYS_INLINE void _internal_set_pkg( + const std::string& value); + std::string* _internal_mutable_pkg(); + public: + // optional string ipn = 3; + bool has_ipn() const; + void clear_ipn() ; + const std::string& ipn() const; + template + void set_ipn(Arg_&& arg, Args_... args); + std::string* mutable_ipn(); + PROTOBUF_NODISCARD std::string* release_ipn(); + void set_allocated_ipn(std::string* value); - // optional string partName = 7; - bool has_partname() const; private: - bool _internal_has_partname() const; + const std::string& _internal_ipn() const; + inline PROTOBUF_ALWAYS_INLINE void _internal_set_ipn( + const std::string& value); + std::string* _internal_mutable_ipn(); + public: - void clear_partname(); - const std::string& partname() const; - template - void set_partname(ArgT0&& arg0, ArgT... args); - std::string* mutable_partname(); - PROTOBUF_NODISCARD std::string* release_partname(); - void set_allocated_partname(std::string* partname); + // optional string vpl_vnd = 5; + bool has_vpl_vnd() const; + void clear_vpl_vnd() ; + const std::string& vpl_vnd() const; + template + void set_vpl_vnd(Arg_&& arg, Args_... args); + std::string* mutable_vpl_vnd(); + PROTOBUF_NODISCARD std::string* release_vpl_vnd(); + void set_allocated_vpl_vnd(std::string* value); + private: - const std::string& _internal_partname() const; - inline PROTOBUF_ALWAYS_INLINE void _internal_set_partname(const std::string& value); - std::string* _internal_mutable_partname(); + const std::string& _internal_vpl_vnd() const; + inline PROTOBUF_ALWAYS_INLINE void _internal_set_vpl_vnd( + const std::string& value); + std::string* _internal_mutable_vpl_vnd(); + public: + // optional string vpl_mpn = 6; + bool has_vpl_mpn() const; + void clear_vpl_mpn() ; + const std::string& vpl_mpn() const; + template + void set_vpl_mpn(Arg_&& arg, Args_... args); + std::string* mutable_vpl_mpn(); + PROTOBUF_NODISCARD std::string* release_vpl_mpn(); + void set_allocated_vpl_mpn(std::string* value); - // optional string attributes = 8; - bool has_attributes() const; private: - bool _internal_has_attributes() const; + const std::string& _internal_vpl_mpn() const; + inline PROTOBUF_ALWAYS_INLINE void _internal_set_vpl_mpn( + const std::string& value); + std::string* _internal_mutable_vpl_mpn(); + public: - void clear_attributes(); - const std::string& attributes() const; - template - void set_attributes(ArgT0&& arg0, ArgT... args); - std::string* mutable_attributes(); - PROTOBUF_NODISCARD std::string* release_attributes(); - void set_allocated_attributes(std::string* attributes); + // optional string vnd = 7; + bool has_vnd() const; + void clear_vnd() ; + const std::string& vnd() const; + template + void set_vnd(Arg_&& arg, Args_... args); + std::string* mutable_vnd(); + PROTOBUF_NODISCARD std::string* release_vnd(); + void set_allocated_vnd(std::string* value); + private: - const std::string& _internal_attributes() const; - inline PROTOBUF_ALWAYS_INLINE void _internal_set_attributes(const std::string& value); - std::string* _internal_mutable_attributes(); + const std::string& _internal_vnd() const; + inline PROTOBUF_ALWAYS_INLINE void _internal_set_vnd( + const std::string& value); + std::string* _internal_mutable_vnd(); + public: + // optional string mpn = 8; + bool has_mpn() const; + void clear_mpn() ; + const std::string& mpn() const; + template + void set_mpn(Arg_&& arg, Args_... args); + std::string* mutable_mpn(); + PROTOBUF_NODISCARD std::string* release_mpn(); + void set_allocated_mpn(std::string* value); - // optional uint32 pkgRef = 1; - bool has_pkgref() const; private: - bool _internal_has_pkgref() const; - public: - void clear_pkgref(); - uint32_t pkgref() const; - void set_pkgref(uint32_t value); - private: - uint32_t _internal_pkgref() const; - void _internal_set_pkgref(uint32_t value); - public: - - // optional float locationX = 2; - bool has_locationx() const; - private: - bool _internal_has_locationx() const; - public: - void clear_locationx(); - float locationx() const; - void set_locationx(float value); - private: - float _internal_locationx() const; - void _internal_set_locationx(float value); - public: - - // optional float locationY = 3; - bool has_locationy() const; - private: - bool _internal_has_locationy() const; - public: - void clear_locationy(); - float locationy() const; - void set_locationy(float value); - private: - float _internal_locationy() const; - void _internal_set_locationy(float value); - public: - - // optional float rotation = 4; - bool has_rotation() const; - private: - bool _internal_has_rotation() const; - public: - void clear_rotation(); - float rotation() const; - void set_rotation(float value); - private: - float _internal_rotation() const; - void _internal_set_rotation(float value); - public: - - // optional bool mirror = 5; - bool has_mirror() const; - private: - bool _internal_has_mirror() const; - public: - void clear_mirror(); - bool mirror() const; - void set_mirror(bool value); - private: - bool _internal_mirror() const; - void _internal_set_mirror(bool value); - public: - - // optional uint32 id = 9; - bool has_id() const; - private: - bool _internal_has_id() const; - public: - void clear_id(); - uint32_t id() const; - void set_id(uint32_t value); - private: - uint32_t _internal_id() const; - void _internal_set_id(uint32_t value); - public: + const std::string& _internal_mpn() const; + inline PROTOBUF_ALWAYS_INLINE void _internal_set_mpn( + const std::string& value); + std::string* _internal_mutable_mpn(); - // optional uint32 index = 10; - bool has_index() const; - private: - bool _internal_has_index() const; - public: - void clear_index(); - uint32_t index() const; - void set_index(uint32_t value); - private: - uint32_t _internal_index() const; - void _internal_set_index(uint32_t value); public: - - // @@protoc_insertion_point(class_scope:Odb.Lib.Protobuf.ComponentsFile.ComponentRecord) + // @@protoc_insertion_point(class_scope:Odb.Lib.Protobuf.ComponentsFile.BomDescriptionRecord) private: class _Internal; - - template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; - typedef void InternalArenaConstructable_; - typedef void DestructorSkippable_; + friend class ::google::protobuf::internal::TcParser; + static const ::google::protobuf::internal::TcParseTable< + 3, 8, 0, + 110, 2> + _table_; + + friend class ::google::protobuf::MessageLite; + friend class ::google::protobuf::Arena; + template + friend class ::google::protobuf::Arena::InternalHelper; + using InternalArenaConstructable_ = void; + using DestructorSkippable_ = void; struct Impl_ { - ::PROTOBUF_NAMESPACE_ID::internal::HasBits<1> _has_bits_; - mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; - ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::Odb::Lib::Protobuf::PropertyRecord > propertyrecords_; - ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::Odb::Lib::Protobuf::ComponentsFile_ComponentRecord_ToeprintRecord > toeprintrecords_; - ::PROTOBUF_NAMESPACE_ID::internal::MapField< - ComponentsFile_ComponentRecord_AttributeLookupTableEntry_DoNotUse, - std::string, std::string, - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::TYPE_STRING, - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::TYPE_STRING> attributelookuptable_; - ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr compname_; - ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr partname_; - ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr attributes_; - uint32_t pkgref_; - float locationx_; - float locationy_; - float rotation_; - bool mirror_; - uint32_t id_; - uint32_t index_; + inline explicit constexpr Impl_( + ::google::protobuf::internal::ConstantInitialized) noexcept; + inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* arena); + inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* arena, const Impl_& from, + const ComponentsFile_BomDescriptionRecord& from_msg); + ::google::protobuf::internal::HasBits<1> _has_bits_; + ::google::protobuf::internal::CachedSize _cached_size_; + ::google::protobuf::RepeatedPtrField descriptions_; + ::google::protobuf::internal::ArenaStringPtr cpn_; + ::google::protobuf::internal::ArenaStringPtr pkg_; + ::google::protobuf::internal::ArenaStringPtr ipn_; + ::google::protobuf::internal::ArenaStringPtr vpl_vnd_; + ::google::protobuf::internal::ArenaStringPtr vpl_mpn_; + ::google::protobuf::internal::ArenaStringPtr vnd_; + ::google::protobuf::internal::ArenaStringPtr mpn_; + PROTOBUF_TSAN_DECLARE_MEMBER }; union { Impl_ _impl_; }; friend struct ::TableStruct_componentsfile_2eproto; }; // ------------------------------------------------------------------- -class ODBDESIGN_EXPORT ComponentsFile_BomDescriptionRecord final : - public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:Odb.Lib.Protobuf.ComponentsFile.BomDescriptionRecord) */ { +class ComponentsFile_PropertyRecordsByNameEntry_DoNotUse final + : public ::google::protobuf::internal::MapEntry< + std::string, ::google::protobuf::Message, + ::google::protobuf::internal::WireFormatLite::TYPE_STRING, + ::google::protobuf::internal::WireFormatLite::TYPE_MESSAGE> { public: - inline ComponentsFile_BomDescriptionRecord() : ComponentsFile_BomDescriptionRecord(nullptr) {} - ~ComponentsFile_BomDescriptionRecord() override; - explicit PROTOBUF_CONSTEXPR ComponentsFile_BomDescriptionRecord(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); + using SuperType = ::google::protobuf::internal::MapEntry< + std::string, ::google::protobuf::Message, + ::google::protobuf::internal::WireFormatLite::TYPE_STRING, + ::google::protobuf::internal::WireFormatLite::TYPE_MESSAGE>; + ComponentsFile_PropertyRecordsByNameEntry_DoNotUse(); + template + explicit PROTOBUF_CONSTEXPR ComponentsFile_PropertyRecordsByNameEntry_DoNotUse( + ::google::protobuf::internal::ConstantInitialized); + explicit ComponentsFile_PropertyRecordsByNameEntry_DoNotUse(::google::protobuf::Arena* arena); + static const ComponentsFile_PropertyRecordsByNameEntry_DoNotUse* internal_default_instance() { + return reinterpret_cast( + &_ComponentsFile_PropertyRecordsByNameEntry_DoNotUse_default_instance_); + } - ComponentsFile_BomDescriptionRecord(const ComponentsFile_BomDescriptionRecord& from); - ComponentsFile_BomDescriptionRecord(ComponentsFile_BomDescriptionRecord&& from) noexcept - : ComponentsFile_BomDescriptionRecord() { - *this = ::std::move(from); + + private: + friend class ::google::protobuf::MessageLite; + friend struct ::TableStruct_componentsfile_2eproto; + + friend class ::google::protobuf::internal::TcParser; + static const ::google::protobuf::internal::TcParseTable< + 1, 2, 1, + 70, 2> + _table_; + + const ::google::protobuf::internal::ClassData* GetClassData() const PROTOBUF_FINAL; + static void* PlacementNew_(const void*, void* mem, + ::google::protobuf::Arena* arena); + static constexpr auto InternalNewImpl_(); + static const ::google::protobuf::internal::ClassDataFull _class_data_; +}; +// ------------------------------------------------------------------- + +class ODBDESIGN_EXPORT ComponentsFile_ComponentRecord final : public ::google::protobuf::Message +/* @@protoc_insertion_point(class_definition:Odb.Lib.Protobuf.ComponentsFile.ComponentRecord) */ { + public: + inline ComponentsFile_ComponentRecord() : ComponentsFile_ComponentRecord(nullptr) {} + ~ComponentsFile_ComponentRecord() PROTOBUF_FINAL; + +#if defined(PROTOBUF_CUSTOM_VTABLE) + void operator delete(ComponentsFile_ComponentRecord* msg, std::destroying_delete_t) { + SharedDtor(*msg); + ::google::protobuf::internal::SizedDelete(msg, sizeof(ComponentsFile_ComponentRecord)); } +#endif - inline ComponentsFile_BomDescriptionRecord& operator=(const ComponentsFile_BomDescriptionRecord& from) { + template + explicit PROTOBUF_CONSTEXPR ComponentsFile_ComponentRecord( + ::google::protobuf::internal::ConstantInitialized); + + inline ComponentsFile_ComponentRecord(const ComponentsFile_ComponentRecord& from) : ComponentsFile_ComponentRecord(nullptr, from) {} + inline ComponentsFile_ComponentRecord(ComponentsFile_ComponentRecord&& from) noexcept + : ComponentsFile_ComponentRecord(nullptr, std::move(from)) {} + inline ComponentsFile_ComponentRecord& operator=(const ComponentsFile_ComponentRecord& from) { CopyFrom(from); return *this; } - inline ComponentsFile_BomDescriptionRecord& operator=(ComponentsFile_BomDescriptionRecord&& from) noexcept { + inline ComponentsFile_ComponentRecord& operator=(ComponentsFile_ComponentRecord&& from) noexcept { if (this == &from) return *this; - if (GetOwningArena() == from.GetOwningArena() - #ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetOwningArena() != nullptr - #endif // !PROTOBUF_FORCE_COPY_IN_MOVE - ) { + if (::google::protobuf::internal::CanMoveWithInternalSwap(GetArena(), from.GetArena())) { InternalSwap(&from); } else { CopyFrom(from); @@ -787,381 +837,463 @@ class ODBDESIGN_EXPORT ComponentsFile_BomDescriptionRecord final : return *this; } - static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { + inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const + ABSL_ATTRIBUTE_LIFETIME_BOUND { + return _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance); + } + inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() + ABSL_ATTRIBUTE_LIFETIME_BOUND { + return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); + } + + static const ::google::protobuf::Descriptor* descriptor() { return GetDescriptor(); } - static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { + static const ::google::protobuf::Descriptor* GetDescriptor() { return default_instance().GetMetadata().descriptor; } - static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { + static const ::google::protobuf::Reflection* GetReflection() { return default_instance().GetMetadata().reflection; } - static const ComponentsFile_BomDescriptionRecord& default_instance() { + static const ComponentsFile_ComponentRecord& default_instance() { return *internal_default_instance(); } - static inline const ComponentsFile_BomDescriptionRecord* internal_default_instance() { - return reinterpret_cast( - &_ComponentsFile_BomDescriptionRecord_default_instance_); - } - static constexpr int kIndexInFileMessages = - 3; - - friend void swap(ComponentsFile_BomDescriptionRecord& a, ComponentsFile_BomDescriptionRecord& b) { - a.Swap(&b); + static inline const ComponentsFile_ComponentRecord* internal_default_instance() { + return reinterpret_cast( + &_ComponentsFile_ComponentRecord_default_instance_); } - inline void Swap(ComponentsFile_BomDescriptionRecord* other) { + static constexpr int kIndexInFileMessages = 2; + friend void swap(ComponentsFile_ComponentRecord& a, ComponentsFile_ComponentRecord& b) { a.Swap(&b); } + inline void Swap(ComponentsFile_ComponentRecord* other) { if (other == this) return; - #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetOwningArena() != nullptr && - GetOwningArena() == other->GetOwningArena()) { - #else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetOwningArena() == other->GetOwningArena()) { - #endif // !PROTOBUF_FORCE_COPY_IN_SWAP + if (::google::protobuf::internal::CanUseInternalSwap(GetArena(), other->GetArena())) { InternalSwap(other); } else { - ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); + ::google::protobuf::internal::GenericSwap(this, other); } } - void UnsafeArenaSwap(ComponentsFile_BomDescriptionRecord* other) { + void UnsafeArenaSwap(ComponentsFile_ComponentRecord* other) { if (other == this) return; - GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); + ABSL_DCHECK(GetArena() == other->GetArena()); InternalSwap(other); } // implements Message ---------------------------------------------- - ComponentsFile_BomDescriptionRecord* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); + ComponentsFile_ComponentRecord* New(::google::protobuf::Arena* arena = nullptr) const { + return ::google::protobuf::Message::DefaultConstruct(arena); } - using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; - void CopyFrom(const ComponentsFile_BomDescriptionRecord& from); - using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; - void MergeFrom( const ComponentsFile_BomDescriptionRecord& from) { - ComponentsFile_BomDescriptionRecord::MergeImpl(*this, from); - } - private: - static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg); - public: - PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; - bool IsInitialized() const final; - - size_t ByteSizeLong() const final; - const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final; - uint8_t* _InternalSerialize( - uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const final { return _impl_._cached_size_.Get(); } + using ::google::protobuf::Message::CopyFrom; + void CopyFrom(const ComponentsFile_ComponentRecord& from); + using ::google::protobuf::Message::MergeFrom; + void MergeFrom(const ComponentsFile_ComponentRecord& from) { ComponentsFile_ComponentRecord::MergeImpl(*this, from); } private: - void SharedCtor(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned); - void SharedDtor(); - void SetCachedSize(int size) const final; - void InternalSwap(ComponentsFile_BomDescriptionRecord* other); + static void MergeImpl( + ::google::protobuf::MessageLite& to_msg, + const ::google::protobuf::MessageLite& from_msg); - private: - friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; - static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { - return "Odb.Lib.Protobuf.ComponentsFile.BomDescriptionRecord"; - } - protected: - explicit ComponentsFile_BomDescriptionRecord(::PROTOBUF_NAMESPACE_ID::Arena* arena, - bool is_message_owned = false); public: + bool IsInitialized() const { + return true; + } + ABSL_ATTRIBUTE_REINITIALIZES void Clear() PROTOBUF_FINAL; + #if defined(PROTOBUF_CUSTOM_VTABLE) + private: + static ::size_t ByteSizeLong(const ::google::protobuf::MessageLite& msg); + static ::uint8_t* _InternalSerialize( + const MessageLite& msg, ::uint8_t* target, + ::google::protobuf::io::EpsCopyOutputStream* stream); - static const ClassData _class_data_; - const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final; + public: + ::size_t ByteSizeLong() const { return ByteSizeLong(*this); } + ::uint8_t* _InternalSerialize( + ::uint8_t* target, + ::google::protobuf::io::EpsCopyOutputStream* stream) const { + return _InternalSerialize(*this, target, stream); + } + #else // PROTOBUF_CUSTOM_VTABLE + ::size_t ByteSizeLong() const final; + ::uint8_t* _InternalSerialize( + ::uint8_t* target, + ::google::protobuf::io::EpsCopyOutputStream* stream) const final; + #endif // PROTOBUF_CUSTOM_VTABLE + int GetCachedSize() const { return _impl_._cached_size_.Get(); } - ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; + private: + void SharedCtor(::google::protobuf::Arena* arena); + static void SharedDtor(MessageLite& self); + void InternalSwap(ComponentsFile_ComponentRecord* other); + private: + template + friend ::absl::string_view( + ::google::protobuf::internal::GetAnyMessageName)(); + static ::absl::string_view FullMessageName() { return "Odb.Lib.Protobuf.ComponentsFile.ComponentRecord"; } + + protected: + explicit ComponentsFile_ComponentRecord(::google::protobuf::Arena* arena); + ComponentsFile_ComponentRecord(::google::protobuf::Arena* arena, const ComponentsFile_ComponentRecord& from); + ComponentsFile_ComponentRecord(::google::protobuf::Arena* arena, ComponentsFile_ComponentRecord&& from) noexcept + : ComponentsFile_ComponentRecord(arena) { + *this = ::std::move(from); + } + const ::google::protobuf::internal::ClassData* GetClassData() const PROTOBUF_FINAL; + static void* PlacementNew_(const void*, void* mem, + ::google::protobuf::Arena* arena); + static constexpr auto InternalNewImpl_(); + static const ::google::protobuf::internal::ClassDataFull _class_data_; + public: + ::google::protobuf::Metadata GetMetadata() const; // nested types ---------------------------------------------------- + using ToeprintRecord = ComponentsFile_ComponentRecord_ToeprintRecord; // accessors ------------------------------------------------------- - enum : int { - kDescriptionsFieldNumber = 4, - kCpnFieldNumber = 1, - kPkgFieldNumber = 2, - kIpnFieldNumber = 3, - kVplVndFieldNumber = 5, - kVplMpnFieldNumber = 6, - kVndFieldNumber = 7, - kMpnFieldNumber = 8, + kPropertyRecordsFieldNumber = 11, + kToeprintRecordsFieldNumber = 12, + kAttributeLookupTableFieldNumber = 13, + kCompNameFieldNumber = 6, + kPartNameFieldNumber = 7, + kAttributesFieldNumber = 8, + kPkgRefFieldNumber = 1, + kLocationXFieldNumber = 2, + kLocationYFieldNumber = 3, + kRotationFieldNumber = 4, + kMirrorFieldNumber = 5, + kIdFieldNumber = 9, + kIndexFieldNumber = 10, }; - // repeated string descriptions = 4; - int descriptions_size() const; + // repeated .Odb.Lib.Protobuf.PropertyRecord propertyRecords = 11; + int propertyrecords_size() const; private: - int _internal_descriptions_size() const; - public: - void clear_descriptions(); - const std::string& descriptions(int index) const; - std::string* mutable_descriptions(int index); - void set_descriptions(int index, const std::string& value); - void set_descriptions(int index, std::string&& value); - void set_descriptions(int index, const char* value); - void set_descriptions(int index, const char* value, size_t size); - std::string* add_descriptions(); - void add_descriptions(const std::string& value); - void add_descriptions(std::string&& value); - void add_descriptions(const char* value); - void add_descriptions(const char* value, size_t size); - const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField& descriptions() const; - ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField* mutable_descriptions(); - private: - const std::string& _internal_descriptions(int index) const; - std::string* _internal_add_descriptions(); + int _internal_propertyrecords_size() const; + public: + void clear_propertyrecords() ; + ::Odb::Lib::Protobuf::PropertyRecord* mutable_propertyrecords(int index); + ::google::protobuf::RepeatedPtrField<::Odb::Lib::Protobuf::PropertyRecord>* mutable_propertyrecords(); - // optional string cpn = 1; - bool has_cpn() const; private: - bool _internal_has_cpn() const; + const ::google::protobuf::RepeatedPtrField<::Odb::Lib::Protobuf::PropertyRecord>& _internal_propertyrecords() const; + ::google::protobuf::RepeatedPtrField<::Odb::Lib::Protobuf::PropertyRecord>* _internal_mutable_propertyrecords(); public: - void clear_cpn(); - const std::string& cpn() const; - template - void set_cpn(ArgT0&& arg0, ArgT... args); - std::string* mutable_cpn(); - PROTOBUF_NODISCARD std::string* release_cpn(); - void set_allocated_cpn(std::string* cpn); + const ::Odb::Lib::Protobuf::PropertyRecord& propertyrecords(int index) const; + ::Odb::Lib::Protobuf::PropertyRecord* add_propertyrecords(); + const ::google::protobuf::RepeatedPtrField<::Odb::Lib::Protobuf::PropertyRecord>& propertyrecords() const; + // repeated .Odb.Lib.Protobuf.ComponentsFile.ComponentRecord.ToeprintRecord toeprintRecords = 12; + int toeprintrecords_size() const; private: - const std::string& _internal_cpn() const; - inline PROTOBUF_ALWAYS_INLINE void _internal_set_cpn(const std::string& value); - std::string* _internal_mutable_cpn(); + int _internal_toeprintrecords_size() const; + public: + void clear_toeprintrecords() ; + ::Odb::Lib::Protobuf::ComponentsFile_ComponentRecord_ToeprintRecord* mutable_toeprintrecords(int index); + ::google::protobuf::RepeatedPtrField<::Odb::Lib::Protobuf::ComponentsFile_ComponentRecord_ToeprintRecord>* mutable_toeprintrecords(); - // optional string pkg = 2; - bool has_pkg() const; private: - bool _internal_has_pkg() const; + const ::google::protobuf::RepeatedPtrField<::Odb::Lib::Protobuf::ComponentsFile_ComponentRecord_ToeprintRecord>& _internal_toeprintrecords() const; + ::google::protobuf::RepeatedPtrField<::Odb::Lib::Protobuf::ComponentsFile_ComponentRecord_ToeprintRecord>* _internal_mutable_toeprintrecords(); public: - void clear_pkg(); - const std::string& pkg() const; - template - void set_pkg(ArgT0&& arg0, ArgT... args); - std::string* mutable_pkg(); - PROTOBUF_NODISCARD std::string* release_pkg(); - void set_allocated_pkg(std::string* pkg); + const ::Odb::Lib::Protobuf::ComponentsFile_ComponentRecord_ToeprintRecord& toeprintrecords(int index) const; + ::Odb::Lib::Protobuf::ComponentsFile_ComponentRecord_ToeprintRecord* add_toeprintrecords(); + const ::google::protobuf::RepeatedPtrField<::Odb::Lib::Protobuf::ComponentsFile_ComponentRecord_ToeprintRecord>& toeprintrecords() const; + // map attributeLookupTable = 13; + int attributelookuptable_size() const; private: - const std::string& _internal_pkg() const; - inline PROTOBUF_ALWAYS_INLINE void _internal_set_pkg(const std::string& value); - std::string* _internal_mutable_pkg(); + int _internal_attributelookuptable_size() const; + public: + void clear_attributelookuptable() ; + const ::google::protobuf::Map& attributelookuptable() const; + ::google::protobuf::Map* mutable_attributelookuptable(); - // optional string ipn = 3; - bool has_ipn() const; private: - bool _internal_has_ipn() const; + const ::google::protobuf::Map& _internal_attributelookuptable() const; + ::google::protobuf::Map* _internal_mutable_attributelookuptable(); + public: - void clear_ipn(); - const std::string& ipn() const; - template - void set_ipn(ArgT0&& arg0, ArgT... args); - std::string* mutable_ipn(); - PROTOBUF_NODISCARD std::string* release_ipn(); - void set_allocated_ipn(std::string* ipn); + // optional string compName = 6; + bool has_compname() const; + void clear_compname() ; + const std::string& compname() const; + template + void set_compname(Arg_&& arg, Args_... args); + std::string* mutable_compname(); + PROTOBUF_NODISCARD std::string* release_compname(); + void set_allocated_compname(std::string* value); + private: - const std::string& _internal_ipn() const; - inline PROTOBUF_ALWAYS_INLINE void _internal_set_ipn(const std::string& value); - std::string* _internal_mutable_ipn(); + const std::string& _internal_compname() const; + inline PROTOBUF_ALWAYS_INLINE void _internal_set_compname( + const std::string& value); + std::string* _internal_mutable_compname(); + public: + // optional string partName = 7; + bool has_partname() const; + void clear_partname() ; + const std::string& partname() const; + template + void set_partname(Arg_&& arg, Args_... args); + std::string* mutable_partname(); + PROTOBUF_NODISCARD std::string* release_partname(); + void set_allocated_partname(std::string* value); - // optional string vpl_vnd = 5; - bool has_vpl_vnd() const; private: - bool _internal_has_vpl_vnd() const; + const std::string& _internal_partname() const; + inline PROTOBUF_ALWAYS_INLINE void _internal_set_partname( + const std::string& value); + std::string* _internal_mutable_partname(); + public: - void clear_vpl_vnd(); - const std::string& vpl_vnd() const; - template - void set_vpl_vnd(ArgT0&& arg0, ArgT... args); - std::string* mutable_vpl_vnd(); - PROTOBUF_NODISCARD std::string* release_vpl_vnd(); - void set_allocated_vpl_vnd(std::string* vpl_vnd); + // optional string attributes = 8; + bool has_attributes() const; + void clear_attributes() ; + const std::string& attributes() const; + template + void set_attributes(Arg_&& arg, Args_... args); + std::string* mutable_attributes(); + PROTOBUF_NODISCARD std::string* release_attributes(); + void set_allocated_attributes(std::string* value); + private: - const std::string& _internal_vpl_vnd() const; - inline PROTOBUF_ALWAYS_INLINE void _internal_set_vpl_vnd(const std::string& value); - std::string* _internal_mutable_vpl_vnd(); + const std::string& _internal_attributes() const; + inline PROTOBUF_ALWAYS_INLINE void _internal_set_attributes( + const std::string& value); + std::string* _internal_mutable_attributes(); + public: + // optional uint32 pkgRef = 1; + bool has_pkgref() const; + void clear_pkgref() ; + ::uint32_t pkgref() const; + void set_pkgref(::uint32_t value); - // optional string vpl_mpn = 6; - bool has_vpl_mpn() const; private: - bool _internal_has_vpl_mpn() const; + ::uint32_t _internal_pkgref() const; + void _internal_set_pkgref(::uint32_t value); + public: - void clear_vpl_mpn(); - const std::string& vpl_mpn() const; - template - void set_vpl_mpn(ArgT0&& arg0, ArgT... args); - std::string* mutable_vpl_mpn(); - PROTOBUF_NODISCARD std::string* release_vpl_mpn(); - void set_allocated_vpl_mpn(std::string* vpl_mpn); + // optional float locationX = 2; + bool has_locationx() const; + void clear_locationx() ; + float locationx() const; + void set_locationx(float value); + private: - const std::string& _internal_vpl_mpn() const; - inline PROTOBUF_ALWAYS_INLINE void _internal_set_vpl_mpn(const std::string& value); - std::string* _internal_mutable_vpl_mpn(); + float _internal_locationx() const; + void _internal_set_locationx(float value); + public: + // optional float locationY = 3; + bool has_locationy() const; + void clear_locationy() ; + float locationy() const; + void set_locationy(float value); - // optional string vnd = 7; - bool has_vnd() const; private: - bool _internal_has_vnd() const; + float _internal_locationy() const; + void _internal_set_locationy(float value); + public: - void clear_vnd(); - const std::string& vnd() const; - template - void set_vnd(ArgT0&& arg0, ArgT... args); - std::string* mutable_vnd(); - PROTOBUF_NODISCARD std::string* release_vnd(); - void set_allocated_vnd(std::string* vnd); + // optional float rotation = 4; + bool has_rotation() const; + void clear_rotation() ; + float rotation() const; + void set_rotation(float value); + private: - const std::string& _internal_vnd() const; - inline PROTOBUF_ALWAYS_INLINE void _internal_set_vnd(const std::string& value); - std::string* _internal_mutable_vnd(); + float _internal_rotation() const; + void _internal_set_rotation(float value); + public: + // optional bool mirror = 5; + bool has_mirror() const; + void clear_mirror() ; + bool mirror() const; + void set_mirror(bool value); - // optional string mpn = 8; - bool has_mpn() const; private: - bool _internal_has_mpn() const; + bool _internal_mirror() const; + void _internal_set_mirror(bool value); + public: - void clear_mpn(); - const std::string& mpn() const; - template - void set_mpn(ArgT0&& arg0, ArgT... args); - std::string* mutable_mpn(); - PROTOBUF_NODISCARD std::string* release_mpn(); - void set_allocated_mpn(std::string* mpn); + // optional uint32 id = 9; + bool has_id() const; + void clear_id() ; + ::uint32_t id() const; + void set_id(::uint32_t value); + private: - const std::string& _internal_mpn() const; - inline PROTOBUF_ALWAYS_INLINE void _internal_set_mpn(const std::string& value); - std::string* _internal_mutable_mpn(); + ::uint32_t _internal_id() const; + void _internal_set_id(::uint32_t value); + public: + // optional uint32 index = 10; + bool has_index() const; + void clear_index() ; + ::uint32_t index() const; + void set_index(::uint32_t value); - // @@protoc_insertion_point(class_scope:Odb.Lib.Protobuf.ComponentsFile.BomDescriptionRecord) + private: + ::uint32_t _internal_index() const; + void _internal_set_index(::uint32_t value); + + public: + // @@protoc_insertion_point(class_scope:Odb.Lib.Protobuf.ComponentsFile.ComponentRecord) private: class _Internal; - - template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; - typedef void InternalArenaConstructable_; - typedef void DestructorSkippable_; + friend class ::google::protobuf::internal::TcParser; + static const ::google::protobuf::internal::TcParseTable< + 4, 13, 3, + 110, 2> + _table_; + + friend class ::google::protobuf::MessageLite; + friend class ::google::protobuf::Arena; + template + friend class ::google::protobuf::Arena::InternalHelper; + using InternalArenaConstructable_ = void; + using DestructorSkippable_ = void; struct Impl_ { - ::PROTOBUF_NAMESPACE_ID::internal::HasBits<1> _has_bits_; - mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; - ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField descriptions_; - ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr cpn_; - ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr pkg_; - ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr ipn_; - ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr vpl_vnd_; - ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr vpl_mpn_; - ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr vnd_; - ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr mpn_; + inline explicit constexpr Impl_( + ::google::protobuf::internal::ConstantInitialized) noexcept; + inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* arena); + inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* arena, const Impl_& from, + const ComponentsFile_ComponentRecord& from_msg); + ::google::protobuf::internal::HasBits<1> _has_bits_; + ::google::protobuf::internal::CachedSize _cached_size_; + ::google::protobuf::RepeatedPtrField< ::Odb::Lib::Protobuf::PropertyRecord > propertyrecords_; + ::google::protobuf::RepeatedPtrField< ::Odb::Lib::Protobuf::ComponentsFile_ComponentRecord_ToeprintRecord > toeprintrecords_; + ::google::protobuf::internal::MapField + attributelookuptable_; + ::google::protobuf::internal::ArenaStringPtr compname_; + ::google::protobuf::internal::ArenaStringPtr partname_; + ::google::protobuf::internal::ArenaStringPtr attributes_; + ::uint32_t pkgref_; + float locationx_; + float locationy_; + float rotation_; + bool mirror_; + ::uint32_t id_; + ::uint32_t index_; + PROTOBUF_TSAN_DECLARE_MEMBER }; union { Impl_ _impl_; }; friend struct ::TableStruct_componentsfile_2eproto; }; // ------------------------------------------------------------------- -class ComponentsFile_ComponentRecordsByNameEntry_DoNotUse : public ::PROTOBUF_NAMESPACE_ID::internal::MapEntry { -public: - typedef ::PROTOBUF_NAMESPACE_ID::internal::MapEntry SuperType; - ComponentsFile_ComponentRecordsByNameEntry_DoNotUse(); - explicit PROTOBUF_CONSTEXPR ComponentsFile_ComponentRecordsByNameEntry_DoNotUse( - ::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); - explicit ComponentsFile_ComponentRecordsByNameEntry_DoNotUse(::PROTOBUF_NAMESPACE_ID::Arena* arena); - void MergeFrom(const ComponentsFile_ComponentRecordsByNameEntry_DoNotUse& other); - static const ComponentsFile_ComponentRecordsByNameEntry_DoNotUse* internal_default_instance() { return reinterpret_cast(&_ComponentsFile_ComponentRecordsByNameEntry_DoNotUse_default_instance_); } - static bool ValidateKey(std::string* s) { - return ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String(s->data(), static_cast(s->size()), ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::PARSE, "Odb.Lib.Protobuf.ComponentsFile.ComponentRecordsByNameEntry.key"); - } - static bool ValidateValue(void*) { return true; } - using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; - ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; - friend struct ::TableStruct_componentsfile_2eproto; -}; +class ComponentsFile_BomDescriptionRecordsByCpnEntry_DoNotUse final + : public ::google::protobuf::internal::MapEntry< + std::string, ::google::protobuf::Message, + ::google::protobuf::internal::WireFormatLite::TYPE_STRING, + ::google::protobuf::internal::WireFormatLite::TYPE_MESSAGE> { + public: + using SuperType = ::google::protobuf::internal::MapEntry< + std::string, ::google::protobuf::Message, + ::google::protobuf::internal::WireFormatLite::TYPE_STRING, + ::google::protobuf::internal::WireFormatLite::TYPE_MESSAGE>; + ComponentsFile_BomDescriptionRecordsByCpnEntry_DoNotUse(); + template + explicit PROTOBUF_CONSTEXPR ComponentsFile_BomDescriptionRecordsByCpnEntry_DoNotUse( + ::google::protobuf::internal::ConstantInitialized); + explicit ComponentsFile_BomDescriptionRecordsByCpnEntry_DoNotUse(::google::protobuf::Arena* arena); + static const ComponentsFile_BomDescriptionRecordsByCpnEntry_DoNotUse* internal_default_instance() { + return reinterpret_cast( + &_ComponentsFile_BomDescriptionRecordsByCpnEntry_DoNotUse_default_instance_); + } -// ------------------------------------------------------------------- -class ComponentsFile_PropertyRecordsByNameEntry_DoNotUse : public ::PROTOBUF_NAMESPACE_ID::internal::MapEntry { -public: - typedef ::PROTOBUF_NAMESPACE_ID::internal::MapEntry SuperType; - ComponentsFile_PropertyRecordsByNameEntry_DoNotUse(); - explicit PROTOBUF_CONSTEXPR ComponentsFile_PropertyRecordsByNameEntry_DoNotUse( - ::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); - explicit ComponentsFile_PropertyRecordsByNameEntry_DoNotUse(::PROTOBUF_NAMESPACE_ID::Arena* arena); - void MergeFrom(const ComponentsFile_PropertyRecordsByNameEntry_DoNotUse& other); - static const ComponentsFile_PropertyRecordsByNameEntry_DoNotUse* internal_default_instance() { return reinterpret_cast(&_ComponentsFile_PropertyRecordsByNameEntry_DoNotUse_default_instance_); } - static bool ValidateKey(std::string* s) { - return ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String(s->data(), static_cast(s->size()), ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::PARSE, "Odb.Lib.Protobuf.ComponentsFile.PropertyRecordsByNameEntry.key"); - } - static bool ValidateValue(void*) { return true; } - using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; - ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; + private: + friend class ::google::protobuf::MessageLite; friend struct ::TableStruct_componentsfile_2eproto; -}; + friend class ::google::protobuf::internal::TcParser; + static const ::google::protobuf::internal::TcParseTable< + 1, 2, 1, + 75, 2> + _table_; + + const ::google::protobuf::internal::ClassData* GetClassData() const PROTOBUF_FINAL; + static void* PlacementNew_(const void*, void* mem, + ::google::protobuf::Arena* arena); + static constexpr auto InternalNewImpl_(); + static const ::google::protobuf::internal::ClassDataFull _class_data_; +}; // ------------------------------------------------------------------- -class ComponentsFile_BomDescriptionRecordsByCpnEntry_DoNotUse : public ::PROTOBUF_NAMESPACE_ID::internal::MapEntry { -public: - typedef ::PROTOBUF_NAMESPACE_ID::internal::MapEntry SuperType; - ComponentsFile_BomDescriptionRecordsByCpnEntry_DoNotUse(); - explicit PROTOBUF_CONSTEXPR ComponentsFile_BomDescriptionRecordsByCpnEntry_DoNotUse( - ::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); - explicit ComponentsFile_BomDescriptionRecordsByCpnEntry_DoNotUse(::PROTOBUF_NAMESPACE_ID::Arena* arena); - void MergeFrom(const ComponentsFile_BomDescriptionRecordsByCpnEntry_DoNotUse& other); - static const ComponentsFile_BomDescriptionRecordsByCpnEntry_DoNotUse* internal_default_instance() { return reinterpret_cast(&_ComponentsFile_BomDescriptionRecordsByCpnEntry_DoNotUse_default_instance_); } - static bool ValidateKey(std::string* s) { - return ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String(s->data(), static_cast(s->size()), ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::PARSE, "Odb.Lib.Protobuf.ComponentsFile.BomDescriptionRecordsByCpnEntry.key"); - } - static bool ValidateValue(void*) { return true; } - using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; - ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; +class ComponentsFile_ComponentRecordsByNameEntry_DoNotUse final + : public ::google::protobuf::internal::MapEntry< + std::string, ::google::protobuf::Message, + ::google::protobuf::internal::WireFormatLite::TYPE_STRING, + ::google::protobuf::internal::WireFormatLite::TYPE_MESSAGE> { + public: + using SuperType = ::google::protobuf::internal::MapEntry< + std::string, ::google::protobuf::Message, + ::google::protobuf::internal::WireFormatLite::TYPE_STRING, + ::google::protobuf::internal::WireFormatLite::TYPE_MESSAGE>; + ComponentsFile_ComponentRecordsByNameEntry_DoNotUse(); + template + explicit PROTOBUF_CONSTEXPR ComponentsFile_ComponentRecordsByNameEntry_DoNotUse( + ::google::protobuf::internal::ConstantInitialized); + explicit ComponentsFile_ComponentRecordsByNameEntry_DoNotUse(::google::protobuf::Arena* arena); + static const ComponentsFile_ComponentRecordsByNameEntry_DoNotUse* internal_default_instance() { + return reinterpret_cast( + &_ComponentsFile_ComponentRecordsByNameEntry_DoNotUse_default_instance_); + } + + + private: + friend class ::google::protobuf::MessageLite; friend struct ::TableStruct_componentsfile_2eproto; -}; + friend class ::google::protobuf::internal::TcParser; + static const ::google::protobuf::internal::TcParseTable< + 1, 2, 1, + 71, 2> + _table_; + + const ::google::protobuf::internal::ClassData* GetClassData() const PROTOBUF_FINAL; + static void* PlacementNew_(const void*, void* mem, + ::google::protobuf::Arena* arena); + static constexpr auto InternalNewImpl_(); + static const ::google::protobuf::internal::ClassDataFull _class_data_; +}; // ------------------------------------------------------------------- -class ODBDESIGN_EXPORT ComponentsFile final : - public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:Odb.Lib.Protobuf.ComponentsFile) */ { +class ODBDESIGN_EXPORT ComponentsFile final : public ::google::protobuf::Message +/* @@protoc_insertion_point(class_definition:Odb.Lib.Protobuf.ComponentsFile) */ { public: inline ComponentsFile() : ComponentsFile(nullptr) {} - ~ComponentsFile() override; - explicit PROTOBUF_CONSTEXPR ComponentsFile(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); + ~ComponentsFile() PROTOBUF_FINAL; - ComponentsFile(const ComponentsFile& from); - ComponentsFile(ComponentsFile&& from) noexcept - : ComponentsFile() { - *this = ::std::move(from); +#if defined(PROTOBUF_CUSTOM_VTABLE) + void operator delete(ComponentsFile* msg, std::destroying_delete_t) { + SharedDtor(*msg); + ::google::protobuf::internal::SizedDelete(msg, sizeof(ComponentsFile)); } +#endif + template + explicit PROTOBUF_CONSTEXPR ComponentsFile( + ::google::protobuf::internal::ConstantInitialized); + + inline ComponentsFile(const ComponentsFile& from) : ComponentsFile(nullptr, from) {} + inline ComponentsFile(ComponentsFile&& from) noexcept + : ComponentsFile(nullptr, std::move(from)) {} inline ComponentsFile& operator=(const ComponentsFile& from) { CopyFrom(from); return *this; } inline ComponentsFile& operator=(ComponentsFile&& from) noexcept { if (this == &from) return *this; - if (GetOwningArena() == from.GetOwningArena() - #ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetOwningArena() != nullptr - #endif // !PROTOBUF_FORCE_COPY_IN_MOVE - ) { + if (::google::protobuf::internal::CanMoveWithInternalSwap(GetArena(), from.GetArena())) { InternalSwap(&from); } else { CopyFrom(from); @@ -1169,13 +1301,22 @@ class ODBDESIGN_EXPORT ComponentsFile final : return *this; } - static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { + inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const + ABSL_ATTRIBUTE_LIFETIME_BOUND { + return _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance); + } + inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() + ABSL_ATTRIBUTE_LIFETIME_BOUND { + return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); + } + + static const ::google::protobuf::Descriptor* descriptor() { return GetDescriptor(); } - static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { + static const ::google::protobuf::Descriptor* GetDescriptor() { return default_instance().GetMetadata().descriptor; } - static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { + static const ::google::protobuf::Reflection* GetReflection() { return default_instance().GetMetadata().reflection; } static const ComponentsFile& default_instance() { @@ -1183,86 +1324,96 @@ class ODBDESIGN_EXPORT ComponentsFile final : } static inline const ComponentsFile* internal_default_instance() { return reinterpret_cast( - &_ComponentsFile_default_instance_); - } - static constexpr int kIndexInFileMessages = - 7; - - friend void swap(ComponentsFile& a, ComponentsFile& b) { - a.Swap(&b); + &_ComponentsFile_default_instance_); } + static constexpr int kIndexInFileMessages = 7; + friend void swap(ComponentsFile& a, ComponentsFile& b) { a.Swap(&b); } inline void Swap(ComponentsFile* other) { if (other == this) return; - #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetOwningArena() != nullptr && - GetOwningArena() == other->GetOwningArena()) { - #else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetOwningArena() == other->GetOwningArena()) { - #endif // !PROTOBUF_FORCE_COPY_IN_SWAP + if (::google::protobuf::internal::CanUseInternalSwap(GetArena(), other->GetArena())) { InternalSwap(other); } else { - ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); + ::google::protobuf::internal::GenericSwap(this, other); } } void UnsafeArenaSwap(ComponentsFile* other) { if (other == this) return; - GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); + ABSL_DCHECK(GetArena() == other->GetArena()); InternalSwap(other); } // implements Message ---------------------------------------------- - ComponentsFile* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); + ComponentsFile* New(::google::protobuf::Arena* arena = nullptr) const { + return ::google::protobuf::Message::DefaultConstruct(arena); } - using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; + using ::google::protobuf::Message::CopyFrom; void CopyFrom(const ComponentsFile& from); - using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; - void MergeFrom( const ComponentsFile& from) { - ComponentsFile::MergeImpl(*this, from); - } - private: - static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg); - public: - PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; - bool IsInitialized() const final; - - size_t ByteSizeLong() const final; - const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final; - uint8_t* _InternalSerialize( - uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const final { return _impl_._cached_size_.Get(); } + using ::google::protobuf::Message::MergeFrom; + void MergeFrom(const ComponentsFile& from) { ComponentsFile::MergeImpl(*this, from); } private: - void SharedCtor(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned); - void SharedDtor(); - void SetCachedSize(int size) const final; - void InternalSwap(ComponentsFile* other); + static void MergeImpl( + ::google::protobuf::MessageLite& to_msg, + const ::google::protobuf::MessageLite& from_msg); - private: - friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; - static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { - return "Odb.Lib.Protobuf.ComponentsFile"; + public: + bool IsInitialized() const { + return true; } - protected: - explicit ComponentsFile(::PROTOBUF_NAMESPACE_ID::Arena* arena, - bool is_message_owned = false); + ABSL_ATTRIBUTE_REINITIALIZES void Clear() PROTOBUF_FINAL; + #if defined(PROTOBUF_CUSTOM_VTABLE) private: - static void ArenaDtor(void* object); - public: + static ::size_t ByteSizeLong(const ::google::protobuf::MessageLite& msg); + static ::uint8_t* _InternalSerialize( + const MessageLite& msg, ::uint8_t* target, + ::google::protobuf::io::EpsCopyOutputStream* stream); - static const ClassData _class_data_; - const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final; + public: + ::size_t ByteSizeLong() const { return ByteSizeLong(*this); } + ::uint8_t* _InternalSerialize( + ::uint8_t* target, + ::google::protobuf::io::EpsCopyOutputStream* stream) const { + return _InternalSerialize(*this, target, stream); + } + #else // PROTOBUF_CUSTOM_VTABLE + ::size_t ByteSizeLong() const final; + ::uint8_t* _InternalSerialize( + ::uint8_t* target, + ::google::protobuf::io::EpsCopyOutputStream* stream) const final; + #endif // PROTOBUF_CUSTOM_VTABLE + int GetCachedSize() const { return _impl_._cached_size_.Get(); } - ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; + private: + void SharedCtor(::google::protobuf::Arena* arena); + static void SharedDtor(MessageLite& self); + void InternalSwap(ComponentsFile* other); + private: + template + friend ::absl::string_view( + ::google::protobuf::internal::GetAnyMessageName)(); + static ::absl::string_view FullMessageName() { return "Odb.Lib.Protobuf.ComponentsFile"; } + + protected: + explicit ComponentsFile(::google::protobuf::Arena* arena); + ComponentsFile(::google::protobuf::Arena* arena, const ComponentsFile& from); + ComponentsFile(::google::protobuf::Arena* arena, ComponentsFile&& from) noexcept + : ComponentsFile(arena) { + *this = ::std::move(from); + } + const ::google::protobuf::internal::ClassData* GetClassData() const PROTOBUF_FINAL; + static void* PlacementNew_(const void*, void* mem, + ::google::protobuf::Arena* arena); + static constexpr auto InternalNewImpl_(); + static const ::google::protobuf::internal::ClassDataFull _class_data_; + public: + ::google::protobuf::Metadata GetMetadata() const; // nested types ---------------------------------------------------- - - typedef ComponentsFile_ComponentRecord ComponentRecord; - typedef ComponentsFile_BomDescriptionRecord BomDescriptionRecord; + using ComponentRecord = ComponentsFile_ComponentRecord; + using BomDescriptionRecord = ComponentsFile_BomDescriptionRecord; // accessors ------------------------------------------------------- - enum : int { kAttributeNamesFieldNumber = 7, kAttributeTextValuesFieldNumber = 8, @@ -1282,546 +1433,546 @@ class ODBDESIGN_EXPORT ComponentsFile final : int attributenames_size() const; private: int _internal_attributenames_size() const; + public: - void clear_attributenames(); + void clear_attributenames() ; const std::string& attributenames(int index) const; std::string* mutable_attributenames(int index); - void set_attributenames(int index, const std::string& value); - void set_attributenames(int index, std::string&& value); - void set_attributenames(int index, const char* value); - void set_attributenames(int index, const char* value, size_t size); + template + void set_attributenames(int index, Arg_&& value, Args_... args); std::string* add_attributenames(); - void add_attributenames(const std::string& value); - void add_attributenames(std::string&& value); - void add_attributenames(const char* value); - void add_attributenames(const char* value, size_t size); - const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField& attributenames() const; - ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField* mutable_attributenames(); - private: - const std::string& _internal_attributenames(int index) const; - std::string* _internal_add_attributenames(); - public: + template + void add_attributenames(Arg_&& value, Args_... args); + const ::google::protobuf::RepeatedPtrField& attributenames() const; + ::google::protobuf::RepeatedPtrField* mutable_attributenames(); + + private: + const ::google::protobuf::RepeatedPtrField& _internal_attributenames() const; + ::google::protobuf::RepeatedPtrField* _internal_mutable_attributenames(); + public: // repeated string attributeTextValues = 8; int attributetextvalues_size() const; private: int _internal_attributetextvalues_size() const; + public: - void clear_attributetextvalues(); + void clear_attributetextvalues() ; const std::string& attributetextvalues(int index) const; std::string* mutable_attributetextvalues(int index); - void set_attributetextvalues(int index, const std::string& value); - void set_attributetextvalues(int index, std::string&& value); - void set_attributetextvalues(int index, const char* value); - void set_attributetextvalues(int index, const char* value, size_t size); + template + void set_attributetextvalues(int index, Arg_&& value, Args_... args); std::string* add_attributetextvalues(); - void add_attributetextvalues(const std::string& value); - void add_attributetextvalues(std::string&& value); - void add_attributetextvalues(const char* value); - void add_attributetextvalues(const char* value, size_t size); - const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField& attributetextvalues() const; - ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField* mutable_attributetextvalues(); - private: - const std::string& _internal_attributetextvalues(int index) const; - std::string* _internal_add_attributetextvalues(); - public: + template + void add_attributetextvalues(Arg_&& value, Args_... args); + const ::google::protobuf::RepeatedPtrField& attributetextvalues() const; + ::google::protobuf::RepeatedPtrField* mutable_attributetextvalues(); + + private: + const ::google::protobuf::RepeatedPtrField& _internal_attributetextvalues() const; + ::google::protobuf::RepeatedPtrField* _internal_mutable_attributetextvalues(); + public: // repeated .Odb.Lib.Protobuf.ComponentsFile.ComponentRecord componentRecords = 9; int componentrecords_size() const; private: int _internal_componentrecords_size() const; + public: - void clear_componentrecords(); + void clear_componentrecords() ; ::Odb::Lib::Protobuf::ComponentsFile_ComponentRecord* mutable_componentrecords(int index); - ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::Odb::Lib::Protobuf::ComponentsFile_ComponentRecord >* - mutable_componentrecords(); + ::google::protobuf::RepeatedPtrField<::Odb::Lib::Protobuf::ComponentsFile_ComponentRecord>* mutable_componentrecords(); + private: - const ::Odb::Lib::Protobuf::ComponentsFile_ComponentRecord& _internal_componentrecords(int index) const; - ::Odb::Lib::Protobuf::ComponentsFile_ComponentRecord* _internal_add_componentrecords(); + const ::google::protobuf::RepeatedPtrField<::Odb::Lib::Protobuf::ComponentsFile_ComponentRecord>& _internal_componentrecords() const; + ::google::protobuf::RepeatedPtrField<::Odb::Lib::Protobuf::ComponentsFile_ComponentRecord>* _internal_mutable_componentrecords(); public: const ::Odb::Lib::Protobuf::ComponentsFile_ComponentRecord& componentrecords(int index) const; ::Odb::Lib::Protobuf::ComponentsFile_ComponentRecord* add_componentrecords(); - const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::Odb::Lib::Protobuf::ComponentsFile_ComponentRecord >& - componentrecords() const; - + const ::google::protobuf::RepeatedPtrField<::Odb::Lib::Protobuf::ComponentsFile_ComponentRecord>& componentrecords() const; // map componentRecordsByName = 10; int componentrecordsbyname_size() const; private: int _internal_componentrecordsbyname_size() const; + public: - void clear_componentrecordsbyname(); + void clear_componentrecordsbyname() ; + const ::google::protobuf::Map& componentrecordsbyname() const; + ::google::protobuf::Map* mutable_componentrecordsbyname(); + private: - const ::PROTOBUF_NAMESPACE_ID::Map< std::string, ::Odb::Lib::Protobuf::ComponentsFile_ComponentRecord >& - _internal_componentrecordsbyname() const; - ::PROTOBUF_NAMESPACE_ID::Map< std::string, ::Odb::Lib::Protobuf::ComponentsFile_ComponentRecord >* - _internal_mutable_componentrecordsbyname(); - public: - const ::PROTOBUF_NAMESPACE_ID::Map< std::string, ::Odb::Lib::Protobuf::ComponentsFile_ComponentRecord >& - componentrecordsbyname() const; - ::PROTOBUF_NAMESPACE_ID::Map< std::string, ::Odb::Lib::Protobuf::ComponentsFile_ComponentRecord >* - mutable_componentrecordsbyname(); + const ::google::protobuf::Map& _internal_componentrecordsbyname() const; + ::google::protobuf::Map* _internal_mutable_componentrecordsbyname(); + public: // repeated .Odb.Lib.Protobuf.PropertyRecord propertyRecords = 11; int propertyrecords_size() const; private: int _internal_propertyrecords_size() const; + public: - void clear_propertyrecords(); + void clear_propertyrecords() ; ::Odb::Lib::Protobuf::PropertyRecord* mutable_propertyrecords(int index); - ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::Odb::Lib::Protobuf::PropertyRecord >* - mutable_propertyrecords(); + ::google::protobuf::RepeatedPtrField<::Odb::Lib::Protobuf::PropertyRecord>* mutable_propertyrecords(); + private: - const ::Odb::Lib::Protobuf::PropertyRecord& _internal_propertyrecords(int index) const; - ::Odb::Lib::Protobuf::PropertyRecord* _internal_add_propertyrecords(); + const ::google::protobuf::RepeatedPtrField<::Odb::Lib::Protobuf::PropertyRecord>& _internal_propertyrecords() const; + ::google::protobuf::RepeatedPtrField<::Odb::Lib::Protobuf::PropertyRecord>* _internal_mutable_propertyrecords(); public: const ::Odb::Lib::Protobuf::PropertyRecord& propertyrecords(int index) const; ::Odb::Lib::Protobuf::PropertyRecord* add_propertyrecords(); - const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::Odb::Lib::Protobuf::PropertyRecord >& - propertyrecords() const; - + const ::google::protobuf::RepeatedPtrField<::Odb::Lib::Protobuf::PropertyRecord>& propertyrecords() const; // map propertyRecordsByName = 12; int propertyrecordsbyname_size() const; private: int _internal_propertyrecordsbyname_size() const; + public: - void clear_propertyrecordsbyname(); + void clear_propertyrecordsbyname() ; + const ::google::protobuf::Map& propertyrecordsbyname() const; + ::google::protobuf::Map* mutable_propertyrecordsbyname(); + private: - const ::PROTOBUF_NAMESPACE_ID::Map< std::string, ::Odb::Lib::Protobuf::PropertyRecord >& - _internal_propertyrecordsbyname() const; - ::PROTOBUF_NAMESPACE_ID::Map< std::string, ::Odb::Lib::Protobuf::PropertyRecord >* - _internal_mutable_propertyrecordsbyname(); - public: - const ::PROTOBUF_NAMESPACE_ID::Map< std::string, ::Odb::Lib::Protobuf::PropertyRecord >& - propertyrecordsbyname() const; - ::PROTOBUF_NAMESPACE_ID::Map< std::string, ::Odb::Lib::Protobuf::PropertyRecord >* - mutable_propertyrecordsbyname(); + const ::google::protobuf::Map& _internal_propertyrecordsbyname() const; + ::google::protobuf::Map* _internal_mutable_propertyrecordsbyname(); + public: // map bomDescriptionRecordsByCpn = 13; int bomdescriptionrecordsbycpn_size() const; private: int _internal_bomdescriptionrecordsbycpn_size() const; + public: - void clear_bomdescriptionrecordsbycpn(); + void clear_bomdescriptionrecordsbycpn() ; + const ::google::protobuf::Map& bomdescriptionrecordsbycpn() const; + ::google::protobuf::Map* mutable_bomdescriptionrecordsbycpn(); + private: - const ::PROTOBUF_NAMESPACE_ID::Map< std::string, ::Odb::Lib::Protobuf::ComponentsFile_BomDescriptionRecord >& - _internal_bomdescriptionrecordsbycpn() const; - ::PROTOBUF_NAMESPACE_ID::Map< std::string, ::Odb::Lib::Protobuf::ComponentsFile_BomDescriptionRecord >* - _internal_mutable_bomdescriptionrecordsbycpn(); - public: - const ::PROTOBUF_NAMESPACE_ID::Map< std::string, ::Odb::Lib::Protobuf::ComponentsFile_BomDescriptionRecord >& - bomdescriptionrecordsbycpn() const; - ::PROTOBUF_NAMESPACE_ID::Map< std::string, ::Odb::Lib::Protobuf::ComponentsFile_BomDescriptionRecord >* - mutable_bomdescriptionrecordsbycpn(); + const ::google::protobuf::Map& _internal_bomdescriptionrecordsbycpn() const; + ::google::protobuf::Map* _internal_mutable_bomdescriptionrecordsbycpn(); + public: // optional string units = 1; bool has_units() const; - private: - bool _internal_has_units() const; - public: - void clear_units(); + void clear_units() ; const std::string& units() const; - template - void set_units(ArgT0&& arg0, ArgT... args); + template + void set_units(Arg_&& arg, Args_... args); std::string* mutable_units(); PROTOBUF_NODISCARD std::string* release_units(); - void set_allocated_units(std::string* units); + void set_allocated_units(std::string* value); + private: const std::string& _internal_units() const; - inline PROTOBUF_ALWAYS_INLINE void _internal_set_units(const std::string& value); + inline PROTOBUF_ALWAYS_INLINE void _internal_set_units( + const std::string& value); std::string* _internal_mutable_units(); - public: + public: // optional string layerName = 4; bool has_layername() const; - private: - bool _internal_has_layername() const; - public: - void clear_layername(); + void clear_layername() ; const std::string& layername() const; - template - void set_layername(ArgT0&& arg0, ArgT... args); + template + void set_layername(Arg_&& arg, Args_... args); std::string* mutable_layername(); PROTOBUF_NODISCARD std::string* release_layername(); - void set_allocated_layername(std::string* layername); + void set_allocated_layername(std::string* value); + private: const std::string& _internal_layername() const; - inline PROTOBUF_ALWAYS_INLINE void _internal_set_layername(const std::string& value); + inline PROTOBUF_ALWAYS_INLINE void _internal_set_layername( + const std::string& value); std::string* _internal_mutable_layername(); - public: + public: // optional string path = 5; bool has_path() const; - private: - bool _internal_has_path() const; - public: - void clear_path(); + void clear_path() ; const std::string& path() const; - template - void set_path(ArgT0&& arg0, ArgT... args); + template + void set_path(Arg_&& arg, Args_... args); std::string* mutable_path(); PROTOBUF_NODISCARD std::string* release_path(); - void set_allocated_path(std::string* path); + void set_allocated_path(std::string* value); + private: const std::string& _internal_path() const; - inline PROTOBUF_ALWAYS_INLINE void _internal_set_path(const std::string& value); + inline PROTOBUF_ALWAYS_INLINE void _internal_set_path( + const std::string& value); std::string* _internal_mutable_path(); - public: + public: // optional string directory = 6; bool has_directory() const; - private: - bool _internal_has_directory() const; - public: - void clear_directory(); + void clear_directory() ; const std::string& directory() const; - template - void set_directory(ArgT0&& arg0, ArgT... args); + template + void set_directory(Arg_&& arg, Args_... args); std::string* mutable_directory(); PROTOBUF_NODISCARD std::string* release_directory(); - void set_allocated_directory(std::string* directory); + void set_allocated_directory(std::string* value); + private: const std::string& _internal_directory() const; - inline PROTOBUF_ALWAYS_INLINE void _internal_set_directory(const std::string& value); + inline PROTOBUF_ALWAYS_INLINE void _internal_set_directory( + const std::string& value); std::string* _internal_mutable_directory(); - public: + public: // optional uint32 id = 2; bool has_id() const; + void clear_id() ; + ::uint32_t id() const; + void set_id(::uint32_t value); + private: - bool _internal_has_id() const; - public: - void clear_id(); - uint32_t id() const; - void set_id(uint32_t value); - private: - uint32_t _internal_id() const; - void _internal_set_id(uint32_t value); - public: + ::uint32_t _internal_id() const; + void _internal_set_id(::uint32_t value); + public: // optional .Odb.Lib.Protobuf.BoardSide side = 3; bool has_side() const; - private: - bool _internal_has_side() const; - public: - void clear_side(); + void clear_side() ; ::Odb::Lib::Protobuf::BoardSide side() const; void set_side(::Odb::Lib::Protobuf::BoardSide value); + private: ::Odb::Lib::Protobuf::BoardSide _internal_side() const; void _internal_set_side(::Odb::Lib::Protobuf::BoardSide value); - public: + public: // @@protoc_insertion_point(class_scope:Odb.Lib.Protobuf.ComponentsFile) private: class _Internal; - - template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; - typedef void InternalArenaConstructable_; - typedef void DestructorSkippable_; + friend class ::google::protobuf::internal::TcParser; + static const ::google::protobuf::internal::TcParseTable< + 4, 13, 8, + 177, 2> + _table_; + + friend class ::google::protobuf::MessageLite; + friend class ::google::protobuf::Arena; + template + friend class ::google::protobuf::Arena::InternalHelper; + using InternalArenaConstructable_ = void; + using DestructorSkippable_ = void; struct Impl_ { - ::PROTOBUF_NAMESPACE_ID::internal::HasBits<1> _has_bits_; - mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; - ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField attributenames_; - ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField attributetextvalues_; - ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::Odb::Lib::Protobuf::ComponentsFile_ComponentRecord > componentrecords_; - ::PROTOBUF_NAMESPACE_ID::internal::MapField< - ComponentsFile_ComponentRecordsByNameEntry_DoNotUse, - std::string, ::Odb::Lib::Protobuf::ComponentsFile_ComponentRecord, - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::TYPE_STRING, - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::TYPE_MESSAGE> componentrecordsbyname_; - ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::Odb::Lib::Protobuf::PropertyRecord > propertyrecords_; - ::PROTOBUF_NAMESPACE_ID::internal::MapField< - ComponentsFile_PropertyRecordsByNameEntry_DoNotUse, - std::string, ::Odb::Lib::Protobuf::PropertyRecord, - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::TYPE_STRING, - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::TYPE_MESSAGE> propertyrecordsbyname_; - ::PROTOBUF_NAMESPACE_ID::internal::MapField< - ComponentsFile_BomDescriptionRecordsByCpnEntry_DoNotUse, - std::string, ::Odb::Lib::Protobuf::ComponentsFile_BomDescriptionRecord, - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::TYPE_STRING, - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::TYPE_MESSAGE> bomdescriptionrecordsbycpn_; - ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr units_; - ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr layername_; - ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr path_; - ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr directory_; - uint32_t id_; + inline explicit constexpr Impl_( + ::google::protobuf::internal::ConstantInitialized) noexcept; + inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* arena); + inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* arena, const Impl_& from, + const ComponentsFile& from_msg); + ::google::protobuf::internal::HasBits<1> _has_bits_; + ::google::protobuf::internal::CachedSize _cached_size_; + ::google::protobuf::RepeatedPtrField attributenames_; + ::google::protobuf::RepeatedPtrField attributetextvalues_; + ::google::protobuf::RepeatedPtrField< ::Odb::Lib::Protobuf::ComponentsFile_ComponentRecord > componentrecords_; + ::google::protobuf::internal::MapField + componentrecordsbyname_; + ::google::protobuf::RepeatedPtrField< ::Odb::Lib::Protobuf::PropertyRecord > propertyrecords_; + ::google::protobuf::internal::MapField + propertyrecordsbyname_; + ::google::protobuf::internal::MapField + bomdescriptionrecordsbycpn_; + ::google::protobuf::internal::ArenaStringPtr units_; + ::google::protobuf::internal::ArenaStringPtr layername_; + ::google::protobuf::internal::ArenaStringPtr path_; + ::google::protobuf::internal::ArenaStringPtr directory_; + ::uint32_t id_; int side_; + PROTOBUF_TSAN_DECLARE_MEMBER }; union { Impl_ _impl_; }; friend struct ::TableStruct_componentsfile_2eproto; }; + // =================================================================== + + // =================================================================== + #ifdef __GNUC__ - #pragma GCC diagnostic push - #pragma GCC diagnostic ignored "-Wstrict-aliasing" +#pragma GCC diagnostic push +#pragma GCC diagnostic ignored "-Wstrict-aliasing" #endif // __GNUC__ +// ------------------------------------------------------------------- + // ComponentsFile_ComponentRecord_ToeprintRecord // optional uint32 pinNumber = 1; -inline bool ComponentsFile_ComponentRecord_ToeprintRecord::_internal_has_pinnumber() const { +inline bool ComponentsFile_ComponentRecord_ToeprintRecord::has_pinnumber() const { bool value = (_impl_._has_bits_[0] & 0x00000002u) != 0; return value; } -inline bool ComponentsFile_ComponentRecord_ToeprintRecord::has_pinnumber() const { - return _internal_has_pinnumber(); -} inline void ComponentsFile_ComponentRecord_ToeprintRecord::clear_pinnumber() { + ::google::protobuf::internal::TSanWrite(&_impl_); _impl_.pinnumber_ = 0u; _impl_._has_bits_[0] &= ~0x00000002u; } -inline uint32_t ComponentsFile_ComponentRecord_ToeprintRecord::_internal_pinnumber() const { - return _impl_.pinnumber_; -} -inline uint32_t ComponentsFile_ComponentRecord_ToeprintRecord::pinnumber() const { +inline ::uint32_t ComponentsFile_ComponentRecord_ToeprintRecord::pinnumber() const { // @@protoc_insertion_point(field_get:Odb.Lib.Protobuf.ComponentsFile.ComponentRecord.ToeprintRecord.pinNumber) return _internal_pinnumber(); } -inline void ComponentsFile_ComponentRecord_ToeprintRecord::_internal_set_pinnumber(uint32_t value) { - _impl_._has_bits_[0] |= 0x00000002u; - _impl_.pinnumber_ = value; -} -inline void ComponentsFile_ComponentRecord_ToeprintRecord::set_pinnumber(uint32_t value) { +inline void ComponentsFile_ComponentRecord_ToeprintRecord::set_pinnumber(::uint32_t value) { _internal_set_pinnumber(value); + _impl_._has_bits_[0] |= 0x00000002u; // @@protoc_insertion_point(field_set:Odb.Lib.Protobuf.ComponentsFile.ComponentRecord.ToeprintRecord.pinNumber) } +inline ::uint32_t ComponentsFile_ComponentRecord_ToeprintRecord::_internal_pinnumber() const { + ::google::protobuf::internal::TSanRead(&_impl_); + return _impl_.pinnumber_; +} +inline void ComponentsFile_ComponentRecord_ToeprintRecord::_internal_set_pinnumber(::uint32_t value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.pinnumber_ = value; +} // optional float locationX = 2; -inline bool ComponentsFile_ComponentRecord_ToeprintRecord::_internal_has_locationx() const { +inline bool ComponentsFile_ComponentRecord_ToeprintRecord::has_locationx() const { bool value = (_impl_._has_bits_[0] & 0x00000004u) != 0; return value; } -inline bool ComponentsFile_ComponentRecord_ToeprintRecord::has_locationx() const { - return _internal_has_locationx(); -} inline void ComponentsFile_ComponentRecord_ToeprintRecord::clear_locationx() { + ::google::protobuf::internal::TSanWrite(&_impl_); _impl_.locationx_ = 0; _impl_._has_bits_[0] &= ~0x00000004u; } -inline float ComponentsFile_ComponentRecord_ToeprintRecord::_internal_locationx() const { - return _impl_.locationx_; -} inline float ComponentsFile_ComponentRecord_ToeprintRecord::locationx() const { // @@protoc_insertion_point(field_get:Odb.Lib.Protobuf.ComponentsFile.ComponentRecord.ToeprintRecord.locationX) return _internal_locationx(); } -inline void ComponentsFile_ComponentRecord_ToeprintRecord::_internal_set_locationx(float value) { - _impl_._has_bits_[0] |= 0x00000004u; - _impl_.locationx_ = value; -} inline void ComponentsFile_ComponentRecord_ToeprintRecord::set_locationx(float value) { _internal_set_locationx(value); + _impl_._has_bits_[0] |= 0x00000004u; // @@protoc_insertion_point(field_set:Odb.Lib.Protobuf.ComponentsFile.ComponentRecord.ToeprintRecord.locationX) } +inline float ComponentsFile_ComponentRecord_ToeprintRecord::_internal_locationx() const { + ::google::protobuf::internal::TSanRead(&_impl_); + return _impl_.locationx_; +} +inline void ComponentsFile_ComponentRecord_ToeprintRecord::_internal_set_locationx(float value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.locationx_ = value; +} // optional float locationY = 3; -inline bool ComponentsFile_ComponentRecord_ToeprintRecord::_internal_has_locationy() const { +inline bool ComponentsFile_ComponentRecord_ToeprintRecord::has_locationy() const { bool value = (_impl_._has_bits_[0] & 0x00000008u) != 0; return value; } -inline bool ComponentsFile_ComponentRecord_ToeprintRecord::has_locationy() const { - return _internal_has_locationy(); -} inline void ComponentsFile_ComponentRecord_ToeprintRecord::clear_locationy() { + ::google::protobuf::internal::TSanWrite(&_impl_); _impl_.locationy_ = 0; _impl_._has_bits_[0] &= ~0x00000008u; } -inline float ComponentsFile_ComponentRecord_ToeprintRecord::_internal_locationy() const { - return _impl_.locationy_; -} inline float ComponentsFile_ComponentRecord_ToeprintRecord::locationy() const { // @@protoc_insertion_point(field_get:Odb.Lib.Protobuf.ComponentsFile.ComponentRecord.ToeprintRecord.locationY) return _internal_locationy(); } -inline void ComponentsFile_ComponentRecord_ToeprintRecord::_internal_set_locationy(float value) { - _impl_._has_bits_[0] |= 0x00000008u; - _impl_.locationy_ = value; -} inline void ComponentsFile_ComponentRecord_ToeprintRecord::set_locationy(float value) { _internal_set_locationy(value); + _impl_._has_bits_[0] |= 0x00000008u; // @@protoc_insertion_point(field_set:Odb.Lib.Protobuf.ComponentsFile.ComponentRecord.ToeprintRecord.locationY) } +inline float ComponentsFile_ComponentRecord_ToeprintRecord::_internal_locationy() const { + ::google::protobuf::internal::TSanRead(&_impl_); + return _impl_.locationy_; +} +inline void ComponentsFile_ComponentRecord_ToeprintRecord::_internal_set_locationy(float value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.locationy_ = value; +} // optional float rotation = 4; -inline bool ComponentsFile_ComponentRecord_ToeprintRecord::_internal_has_rotation() const { +inline bool ComponentsFile_ComponentRecord_ToeprintRecord::has_rotation() const { bool value = (_impl_._has_bits_[0] & 0x00000010u) != 0; return value; } -inline bool ComponentsFile_ComponentRecord_ToeprintRecord::has_rotation() const { - return _internal_has_rotation(); -} inline void ComponentsFile_ComponentRecord_ToeprintRecord::clear_rotation() { + ::google::protobuf::internal::TSanWrite(&_impl_); _impl_.rotation_ = 0; _impl_._has_bits_[0] &= ~0x00000010u; } -inline float ComponentsFile_ComponentRecord_ToeprintRecord::_internal_rotation() const { - return _impl_.rotation_; -} inline float ComponentsFile_ComponentRecord_ToeprintRecord::rotation() const { // @@protoc_insertion_point(field_get:Odb.Lib.Protobuf.ComponentsFile.ComponentRecord.ToeprintRecord.rotation) return _internal_rotation(); } -inline void ComponentsFile_ComponentRecord_ToeprintRecord::_internal_set_rotation(float value) { - _impl_._has_bits_[0] |= 0x00000010u; - _impl_.rotation_ = value; -} inline void ComponentsFile_ComponentRecord_ToeprintRecord::set_rotation(float value) { _internal_set_rotation(value); + _impl_._has_bits_[0] |= 0x00000010u; // @@protoc_insertion_point(field_set:Odb.Lib.Protobuf.ComponentsFile.ComponentRecord.ToeprintRecord.rotation) } +inline float ComponentsFile_ComponentRecord_ToeprintRecord::_internal_rotation() const { + ::google::protobuf::internal::TSanRead(&_impl_); + return _impl_.rotation_; +} +inline void ComponentsFile_ComponentRecord_ToeprintRecord::_internal_set_rotation(float value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.rotation_ = value; +} // optional bool mirror = 5; -inline bool ComponentsFile_ComponentRecord_ToeprintRecord::_internal_has_mirror() const { +inline bool ComponentsFile_ComponentRecord_ToeprintRecord::has_mirror() const { bool value = (_impl_._has_bits_[0] & 0x00000020u) != 0; return value; } -inline bool ComponentsFile_ComponentRecord_ToeprintRecord::has_mirror() const { - return _internal_has_mirror(); -} inline void ComponentsFile_ComponentRecord_ToeprintRecord::clear_mirror() { + ::google::protobuf::internal::TSanWrite(&_impl_); _impl_.mirror_ = false; _impl_._has_bits_[0] &= ~0x00000020u; } -inline bool ComponentsFile_ComponentRecord_ToeprintRecord::_internal_mirror() const { - return _impl_.mirror_; -} inline bool ComponentsFile_ComponentRecord_ToeprintRecord::mirror() const { // @@protoc_insertion_point(field_get:Odb.Lib.Protobuf.ComponentsFile.ComponentRecord.ToeprintRecord.mirror) return _internal_mirror(); } -inline void ComponentsFile_ComponentRecord_ToeprintRecord::_internal_set_mirror(bool value) { - _impl_._has_bits_[0] |= 0x00000020u; - _impl_.mirror_ = value; -} inline void ComponentsFile_ComponentRecord_ToeprintRecord::set_mirror(bool value) { _internal_set_mirror(value); + _impl_._has_bits_[0] |= 0x00000020u; // @@protoc_insertion_point(field_set:Odb.Lib.Protobuf.ComponentsFile.ComponentRecord.ToeprintRecord.mirror) } +inline bool ComponentsFile_ComponentRecord_ToeprintRecord::_internal_mirror() const { + ::google::protobuf::internal::TSanRead(&_impl_); + return _impl_.mirror_; +} +inline void ComponentsFile_ComponentRecord_ToeprintRecord::_internal_set_mirror(bool value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.mirror_ = value; +} // optional uint32 netNumber = 6; -inline bool ComponentsFile_ComponentRecord_ToeprintRecord::_internal_has_netnumber() const { +inline bool ComponentsFile_ComponentRecord_ToeprintRecord::has_netnumber() const { bool value = (_impl_._has_bits_[0] & 0x00000040u) != 0; return value; } -inline bool ComponentsFile_ComponentRecord_ToeprintRecord::has_netnumber() const { - return _internal_has_netnumber(); -} inline void ComponentsFile_ComponentRecord_ToeprintRecord::clear_netnumber() { + ::google::protobuf::internal::TSanWrite(&_impl_); _impl_.netnumber_ = 0u; _impl_._has_bits_[0] &= ~0x00000040u; } -inline uint32_t ComponentsFile_ComponentRecord_ToeprintRecord::_internal_netnumber() const { - return _impl_.netnumber_; -} -inline uint32_t ComponentsFile_ComponentRecord_ToeprintRecord::netnumber() const { +inline ::uint32_t ComponentsFile_ComponentRecord_ToeprintRecord::netnumber() const { // @@protoc_insertion_point(field_get:Odb.Lib.Protobuf.ComponentsFile.ComponentRecord.ToeprintRecord.netNumber) return _internal_netnumber(); } -inline void ComponentsFile_ComponentRecord_ToeprintRecord::_internal_set_netnumber(uint32_t value) { - _impl_._has_bits_[0] |= 0x00000040u; - _impl_.netnumber_ = value; -} -inline void ComponentsFile_ComponentRecord_ToeprintRecord::set_netnumber(uint32_t value) { +inline void ComponentsFile_ComponentRecord_ToeprintRecord::set_netnumber(::uint32_t value) { _internal_set_netnumber(value); + _impl_._has_bits_[0] |= 0x00000040u; // @@protoc_insertion_point(field_set:Odb.Lib.Protobuf.ComponentsFile.ComponentRecord.ToeprintRecord.netNumber) } +inline ::uint32_t ComponentsFile_ComponentRecord_ToeprintRecord::_internal_netnumber() const { + ::google::protobuf::internal::TSanRead(&_impl_); + return _impl_.netnumber_; +} +inline void ComponentsFile_ComponentRecord_ToeprintRecord::_internal_set_netnumber(::uint32_t value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.netnumber_ = value; +} // optional uint32 subnetNumber = 7; -inline bool ComponentsFile_ComponentRecord_ToeprintRecord::_internal_has_subnetnumber() const { +inline bool ComponentsFile_ComponentRecord_ToeprintRecord::has_subnetnumber() const { bool value = (_impl_._has_bits_[0] & 0x00000080u) != 0; return value; } -inline bool ComponentsFile_ComponentRecord_ToeprintRecord::has_subnetnumber() const { - return _internal_has_subnetnumber(); -} inline void ComponentsFile_ComponentRecord_ToeprintRecord::clear_subnetnumber() { + ::google::protobuf::internal::TSanWrite(&_impl_); _impl_.subnetnumber_ = 0u; _impl_._has_bits_[0] &= ~0x00000080u; } -inline uint32_t ComponentsFile_ComponentRecord_ToeprintRecord::_internal_subnetnumber() const { - return _impl_.subnetnumber_; -} -inline uint32_t ComponentsFile_ComponentRecord_ToeprintRecord::subnetnumber() const { +inline ::uint32_t ComponentsFile_ComponentRecord_ToeprintRecord::subnetnumber() const { // @@protoc_insertion_point(field_get:Odb.Lib.Protobuf.ComponentsFile.ComponentRecord.ToeprintRecord.subnetNumber) return _internal_subnetnumber(); } -inline void ComponentsFile_ComponentRecord_ToeprintRecord::_internal_set_subnetnumber(uint32_t value) { - _impl_._has_bits_[0] |= 0x00000080u; - _impl_.subnetnumber_ = value; -} -inline void ComponentsFile_ComponentRecord_ToeprintRecord::set_subnetnumber(uint32_t value) { +inline void ComponentsFile_ComponentRecord_ToeprintRecord::set_subnetnumber(::uint32_t value) { _internal_set_subnetnumber(value); + _impl_._has_bits_[0] |= 0x00000080u; // @@protoc_insertion_point(field_set:Odb.Lib.Protobuf.ComponentsFile.ComponentRecord.ToeprintRecord.subnetNumber) } +inline ::uint32_t ComponentsFile_ComponentRecord_ToeprintRecord::_internal_subnetnumber() const { + ::google::protobuf::internal::TSanRead(&_impl_); + return _impl_.subnetnumber_; +} +inline void ComponentsFile_ComponentRecord_ToeprintRecord::_internal_set_subnetnumber(::uint32_t value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.subnetnumber_ = value; +} // optional string name = 8; -inline bool ComponentsFile_ComponentRecord_ToeprintRecord::_internal_has_name() const { +inline bool ComponentsFile_ComponentRecord_ToeprintRecord::has_name() const { bool value = (_impl_._has_bits_[0] & 0x00000001u) != 0; return value; } -inline bool ComponentsFile_ComponentRecord_ToeprintRecord::has_name() const { - return _internal_has_name(); -} inline void ComponentsFile_ComponentRecord_ToeprintRecord::clear_name() { + ::google::protobuf::internal::TSanWrite(&_impl_); _impl_.name_.ClearToEmpty(); _impl_._has_bits_[0] &= ~0x00000001u; } -inline const std::string& ComponentsFile_ComponentRecord_ToeprintRecord::name() const { +inline const std::string& ComponentsFile_ComponentRecord_ToeprintRecord::name() const + ABSL_ATTRIBUTE_LIFETIME_BOUND { // @@protoc_insertion_point(field_get:Odb.Lib.Protobuf.ComponentsFile.ComponentRecord.ToeprintRecord.name) return _internal_name(); } -template -inline PROTOBUF_ALWAYS_INLINE -void ComponentsFile_ComponentRecord_ToeprintRecord::set_name(ArgT0&& arg0, ArgT... args) { - _impl_._has_bits_[0] |= 0x00000001u; - _impl_.name_.Set(static_cast(arg0), args..., GetArenaForAllocation()); +template +inline PROTOBUF_ALWAYS_INLINE void ComponentsFile_ComponentRecord_ToeprintRecord::set_name(Arg_&& arg, + Args_... args) { + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_._has_bits_[0] |= 0x00000001u; + _impl_.name_.Set(static_cast(arg), args..., GetArena()); // @@protoc_insertion_point(field_set:Odb.Lib.Protobuf.ComponentsFile.ComponentRecord.ToeprintRecord.name) } -inline std::string* ComponentsFile_ComponentRecord_ToeprintRecord::mutable_name() { +inline std::string* ComponentsFile_ComponentRecord_ToeprintRecord::mutable_name() ABSL_ATTRIBUTE_LIFETIME_BOUND { std::string* _s = _internal_mutable_name(); // @@protoc_insertion_point(field_mutable:Odb.Lib.Protobuf.ComponentsFile.ComponentRecord.ToeprintRecord.name) return _s; } inline const std::string& ComponentsFile_ComponentRecord_ToeprintRecord::_internal_name() const { + ::google::protobuf::internal::TSanRead(&_impl_); return _impl_.name_.Get(); } inline void ComponentsFile_ComponentRecord_ToeprintRecord::_internal_set_name(const std::string& value) { + ::google::protobuf::internal::TSanWrite(&_impl_); _impl_._has_bits_[0] |= 0x00000001u; - _impl_.name_.Set(value, GetArenaForAllocation()); + _impl_.name_.Set(value, GetArena()); } inline std::string* ComponentsFile_ComponentRecord_ToeprintRecord::_internal_mutable_name() { + ::google::protobuf::internal::TSanWrite(&_impl_); _impl_._has_bits_[0] |= 0x00000001u; - return _impl_.name_.Mutable(GetArenaForAllocation()); + return _impl_.name_.Mutable( GetArena()); } inline std::string* ComponentsFile_ComponentRecord_ToeprintRecord::release_name() { + ::google::protobuf::internal::TSanWrite(&_impl_); // @@protoc_insertion_point(field_release:Odb.Lib.Protobuf.ComponentsFile.ComponentRecord.ToeprintRecord.name) - if (!_internal_has_name()) { + if ((_impl_._has_bits_[0] & 0x00000001u) == 0) { return nullptr; } _impl_._has_bits_[0] &= ~0x00000001u; - auto* p = _impl_.name_.Release(); -#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (_impl_.name_.IsDefault()) { - _impl_.name_.Set("", GetArenaForAllocation()); + auto* released = _impl_.name_.Release(); + if (::google::protobuf::internal::DebugHardenForceCopyDefaultString()) { + _impl_.name_.Set("", GetArena()); } -#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING - return p; + return released; } -inline void ComponentsFile_ComponentRecord_ToeprintRecord::set_allocated_name(std::string* name) { - if (name != nullptr) { +inline void ComponentsFile_ComponentRecord_ToeprintRecord::set_allocated_name(std::string* value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + if (value != nullptr) { _impl_._has_bits_[0] |= 0x00000001u; } else { _impl_._has_bits_[0] &= ~0x00000001u; } - _impl_.name_.SetAllocated(name, GetArenaForAllocation()); -#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (_impl_.name_.IsDefault()) { - _impl_.name_.Set("", GetArenaForAllocation()); + _impl_.name_.SetAllocated(value, GetArena()); + if (::google::protobuf::internal::DebugHardenForceCopyDefaultString() && _impl_.name_.IsDefault()) { + _impl_.name_.Set("", GetArena()); } -#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING // @@protoc_insertion_point(field_set_allocated:Odb.Lib.Protobuf.ComponentsFile.ComponentRecord.ToeprintRecord.name) } @@ -1832,507 +1983,526 @@ inline void ComponentsFile_ComponentRecord_ToeprintRecord::set_allocated_name(st // ComponentsFile_ComponentRecord // optional uint32 pkgRef = 1; -inline bool ComponentsFile_ComponentRecord::_internal_has_pkgref() const { +inline bool ComponentsFile_ComponentRecord::has_pkgref() const { bool value = (_impl_._has_bits_[0] & 0x00000008u) != 0; return value; } -inline bool ComponentsFile_ComponentRecord::has_pkgref() const { - return _internal_has_pkgref(); -} inline void ComponentsFile_ComponentRecord::clear_pkgref() { + ::google::protobuf::internal::TSanWrite(&_impl_); _impl_.pkgref_ = 0u; _impl_._has_bits_[0] &= ~0x00000008u; } -inline uint32_t ComponentsFile_ComponentRecord::_internal_pkgref() const { - return _impl_.pkgref_; -} -inline uint32_t ComponentsFile_ComponentRecord::pkgref() const { +inline ::uint32_t ComponentsFile_ComponentRecord::pkgref() const { // @@protoc_insertion_point(field_get:Odb.Lib.Protobuf.ComponentsFile.ComponentRecord.pkgRef) return _internal_pkgref(); } -inline void ComponentsFile_ComponentRecord::_internal_set_pkgref(uint32_t value) { - _impl_._has_bits_[0] |= 0x00000008u; - _impl_.pkgref_ = value; -} -inline void ComponentsFile_ComponentRecord::set_pkgref(uint32_t value) { +inline void ComponentsFile_ComponentRecord::set_pkgref(::uint32_t value) { _internal_set_pkgref(value); + _impl_._has_bits_[0] |= 0x00000008u; // @@protoc_insertion_point(field_set:Odb.Lib.Protobuf.ComponentsFile.ComponentRecord.pkgRef) } +inline ::uint32_t ComponentsFile_ComponentRecord::_internal_pkgref() const { + ::google::protobuf::internal::TSanRead(&_impl_); + return _impl_.pkgref_; +} +inline void ComponentsFile_ComponentRecord::_internal_set_pkgref(::uint32_t value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.pkgref_ = value; +} // optional float locationX = 2; -inline bool ComponentsFile_ComponentRecord::_internal_has_locationx() const { +inline bool ComponentsFile_ComponentRecord::has_locationx() const { bool value = (_impl_._has_bits_[0] & 0x00000010u) != 0; return value; } -inline bool ComponentsFile_ComponentRecord::has_locationx() const { - return _internal_has_locationx(); -} inline void ComponentsFile_ComponentRecord::clear_locationx() { + ::google::protobuf::internal::TSanWrite(&_impl_); _impl_.locationx_ = 0; _impl_._has_bits_[0] &= ~0x00000010u; } -inline float ComponentsFile_ComponentRecord::_internal_locationx() const { - return _impl_.locationx_; -} inline float ComponentsFile_ComponentRecord::locationx() const { // @@protoc_insertion_point(field_get:Odb.Lib.Protobuf.ComponentsFile.ComponentRecord.locationX) return _internal_locationx(); } -inline void ComponentsFile_ComponentRecord::_internal_set_locationx(float value) { - _impl_._has_bits_[0] |= 0x00000010u; - _impl_.locationx_ = value; -} inline void ComponentsFile_ComponentRecord::set_locationx(float value) { _internal_set_locationx(value); + _impl_._has_bits_[0] |= 0x00000010u; // @@protoc_insertion_point(field_set:Odb.Lib.Protobuf.ComponentsFile.ComponentRecord.locationX) } +inline float ComponentsFile_ComponentRecord::_internal_locationx() const { + ::google::protobuf::internal::TSanRead(&_impl_); + return _impl_.locationx_; +} +inline void ComponentsFile_ComponentRecord::_internal_set_locationx(float value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.locationx_ = value; +} // optional float locationY = 3; -inline bool ComponentsFile_ComponentRecord::_internal_has_locationy() const { +inline bool ComponentsFile_ComponentRecord::has_locationy() const { bool value = (_impl_._has_bits_[0] & 0x00000020u) != 0; return value; } -inline bool ComponentsFile_ComponentRecord::has_locationy() const { - return _internal_has_locationy(); -} inline void ComponentsFile_ComponentRecord::clear_locationy() { + ::google::protobuf::internal::TSanWrite(&_impl_); _impl_.locationy_ = 0; _impl_._has_bits_[0] &= ~0x00000020u; } -inline float ComponentsFile_ComponentRecord::_internal_locationy() const { - return _impl_.locationy_; -} inline float ComponentsFile_ComponentRecord::locationy() const { // @@protoc_insertion_point(field_get:Odb.Lib.Protobuf.ComponentsFile.ComponentRecord.locationY) return _internal_locationy(); } -inline void ComponentsFile_ComponentRecord::_internal_set_locationy(float value) { - _impl_._has_bits_[0] |= 0x00000020u; - _impl_.locationy_ = value; -} inline void ComponentsFile_ComponentRecord::set_locationy(float value) { _internal_set_locationy(value); + _impl_._has_bits_[0] |= 0x00000020u; // @@protoc_insertion_point(field_set:Odb.Lib.Protobuf.ComponentsFile.ComponentRecord.locationY) } +inline float ComponentsFile_ComponentRecord::_internal_locationy() const { + ::google::protobuf::internal::TSanRead(&_impl_); + return _impl_.locationy_; +} +inline void ComponentsFile_ComponentRecord::_internal_set_locationy(float value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.locationy_ = value; +} // optional float rotation = 4; -inline bool ComponentsFile_ComponentRecord::_internal_has_rotation() const { +inline bool ComponentsFile_ComponentRecord::has_rotation() const { bool value = (_impl_._has_bits_[0] & 0x00000040u) != 0; return value; } -inline bool ComponentsFile_ComponentRecord::has_rotation() const { - return _internal_has_rotation(); -} inline void ComponentsFile_ComponentRecord::clear_rotation() { + ::google::protobuf::internal::TSanWrite(&_impl_); _impl_.rotation_ = 0; _impl_._has_bits_[0] &= ~0x00000040u; } -inline float ComponentsFile_ComponentRecord::_internal_rotation() const { - return _impl_.rotation_; -} inline float ComponentsFile_ComponentRecord::rotation() const { // @@protoc_insertion_point(field_get:Odb.Lib.Protobuf.ComponentsFile.ComponentRecord.rotation) return _internal_rotation(); } -inline void ComponentsFile_ComponentRecord::_internal_set_rotation(float value) { - _impl_._has_bits_[0] |= 0x00000040u; - _impl_.rotation_ = value; -} inline void ComponentsFile_ComponentRecord::set_rotation(float value) { _internal_set_rotation(value); + _impl_._has_bits_[0] |= 0x00000040u; // @@protoc_insertion_point(field_set:Odb.Lib.Protobuf.ComponentsFile.ComponentRecord.rotation) } +inline float ComponentsFile_ComponentRecord::_internal_rotation() const { + ::google::protobuf::internal::TSanRead(&_impl_); + return _impl_.rotation_; +} +inline void ComponentsFile_ComponentRecord::_internal_set_rotation(float value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.rotation_ = value; +} // optional bool mirror = 5; -inline bool ComponentsFile_ComponentRecord::_internal_has_mirror() const { +inline bool ComponentsFile_ComponentRecord::has_mirror() const { bool value = (_impl_._has_bits_[0] & 0x00000080u) != 0; return value; } -inline bool ComponentsFile_ComponentRecord::has_mirror() const { - return _internal_has_mirror(); -} inline void ComponentsFile_ComponentRecord::clear_mirror() { + ::google::protobuf::internal::TSanWrite(&_impl_); _impl_.mirror_ = false; _impl_._has_bits_[0] &= ~0x00000080u; } -inline bool ComponentsFile_ComponentRecord::_internal_mirror() const { - return _impl_.mirror_; -} inline bool ComponentsFile_ComponentRecord::mirror() const { // @@protoc_insertion_point(field_get:Odb.Lib.Protobuf.ComponentsFile.ComponentRecord.mirror) return _internal_mirror(); } -inline void ComponentsFile_ComponentRecord::_internal_set_mirror(bool value) { - _impl_._has_bits_[0] |= 0x00000080u; - _impl_.mirror_ = value; -} inline void ComponentsFile_ComponentRecord::set_mirror(bool value) { _internal_set_mirror(value); + _impl_._has_bits_[0] |= 0x00000080u; // @@protoc_insertion_point(field_set:Odb.Lib.Protobuf.ComponentsFile.ComponentRecord.mirror) } +inline bool ComponentsFile_ComponentRecord::_internal_mirror() const { + ::google::protobuf::internal::TSanRead(&_impl_); + return _impl_.mirror_; +} +inline void ComponentsFile_ComponentRecord::_internal_set_mirror(bool value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.mirror_ = value; +} // optional string compName = 6; -inline bool ComponentsFile_ComponentRecord::_internal_has_compname() const { +inline bool ComponentsFile_ComponentRecord::has_compname() const { bool value = (_impl_._has_bits_[0] & 0x00000001u) != 0; return value; } -inline bool ComponentsFile_ComponentRecord::has_compname() const { - return _internal_has_compname(); -} inline void ComponentsFile_ComponentRecord::clear_compname() { + ::google::protobuf::internal::TSanWrite(&_impl_); _impl_.compname_.ClearToEmpty(); _impl_._has_bits_[0] &= ~0x00000001u; } -inline const std::string& ComponentsFile_ComponentRecord::compname() const { +inline const std::string& ComponentsFile_ComponentRecord::compname() const + ABSL_ATTRIBUTE_LIFETIME_BOUND { // @@protoc_insertion_point(field_get:Odb.Lib.Protobuf.ComponentsFile.ComponentRecord.compName) return _internal_compname(); } -template -inline PROTOBUF_ALWAYS_INLINE -void ComponentsFile_ComponentRecord::set_compname(ArgT0&& arg0, ArgT... args) { - _impl_._has_bits_[0] |= 0x00000001u; - _impl_.compname_.Set(static_cast(arg0), args..., GetArenaForAllocation()); +template +inline PROTOBUF_ALWAYS_INLINE void ComponentsFile_ComponentRecord::set_compname(Arg_&& arg, + Args_... args) { + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_._has_bits_[0] |= 0x00000001u; + _impl_.compname_.Set(static_cast(arg), args..., GetArena()); // @@protoc_insertion_point(field_set:Odb.Lib.Protobuf.ComponentsFile.ComponentRecord.compName) } -inline std::string* ComponentsFile_ComponentRecord::mutable_compname() { +inline std::string* ComponentsFile_ComponentRecord::mutable_compname() ABSL_ATTRIBUTE_LIFETIME_BOUND { std::string* _s = _internal_mutable_compname(); // @@protoc_insertion_point(field_mutable:Odb.Lib.Protobuf.ComponentsFile.ComponentRecord.compName) return _s; } inline const std::string& ComponentsFile_ComponentRecord::_internal_compname() const { + ::google::protobuf::internal::TSanRead(&_impl_); return _impl_.compname_.Get(); } inline void ComponentsFile_ComponentRecord::_internal_set_compname(const std::string& value) { + ::google::protobuf::internal::TSanWrite(&_impl_); _impl_._has_bits_[0] |= 0x00000001u; - _impl_.compname_.Set(value, GetArenaForAllocation()); + _impl_.compname_.Set(value, GetArena()); } inline std::string* ComponentsFile_ComponentRecord::_internal_mutable_compname() { + ::google::protobuf::internal::TSanWrite(&_impl_); _impl_._has_bits_[0] |= 0x00000001u; - return _impl_.compname_.Mutable(GetArenaForAllocation()); + return _impl_.compname_.Mutable( GetArena()); } inline std::string* ComponentsFile_ComponentRecord::release_compname() { + ::google::protobuf::internal::TSanWrite(&_impl_); // @@protoc_insertion_point(field_release:Odb.Lib.Protobuf.ComponentsFile.ComponentRecord.compName) - if (!_internal_has_compname()) { + if ((_impl_._has_bits_[0] & 0x00000001u) == 0) { return nullptr; } _impl_._has_bits_[0] &= ~0x00000001u; - auto* p = _impl_.compname_.Release(); -#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (_impl_.compname_.IsDefault()) { - _impl_.compname_.Set("", GetArenaForAllocation()); + auto* released = _impl_.compname_.Release(); + if (::google::protobuf::internal::DebugHardenForceCopyDefaultString()) { + _impl_.compname_.Set("", GetArena()); } -#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING - return p; + return released; } -inline void ComponentsFile_ComponentRecord::set_allocated_compname(std::string* compname) { - if (compname != nullptr) { +inline void ComponentsFile_ComponentRecord::set_allocated_compname(std::string* value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + if (value != nullptr) { _impl_._has_bits_[0] |= 0x00000001u; } else { _impl_._has_bits_[0] &= ~0x00000001u; } - _impl_.compname_.SetAllocated(compname, GetArenaForAllocation()); -#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (_impl_.compname_.IsDefault()) { - _impl_.compname_.Set("", GetArenaForAllocation()); + _impl_.compname_.SetAllocated(value, GetArena()); + if (::google::protobuf::internal::DebugHardenForceCopyDefaultString() && _impl_.compname_.IsDefault()) { + _impl_.compname_.Set("", GetArena()); } -#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING // @@protoc_insertion_point(field_set_allocated:Odb.Lib.Protobuf.ComponentsFile.ComponentRecord.compName) } // optional string partName = 7; -inline bool ComponentsFile_ComponentRecord::_internal_has_partname() const { +inline bool ComponentsFile_ComponentRecord::has_partname() const { bool value = (_impl_._has_bits_[0] & 0x00000002u) != 0; return value; } -inline bool ComponentsFile_ComponentRecord::has_partname() const { - return _internal_has_partname(); -} inline void ComponentsFile_ComponentRecord::clear_partname() { + ::google::protobuf::internal::TSanWrite(&_impl_); _impl_.partname_.ClearToEmpty(); _impl_._has_bits_[0] &= ~0x00000002u; } -inline const std::string& ComponentsFile_ComponentRecord::partname() const { +inline const std::string& ComponentsFile_ComponentRecord::partname() const + ABSL_ATTRIBUTE_LIFETIME_BOUND { // @@protoc_insertion_point(field_get:Odb.Lib.Protobuf.ComponentsFile.ComponentRecord.partName) return _internal_partname(); } -template -inline PROTOBUF_ALWAYS_INLINE -void ComponentsFile_ComponentRecord::set_partname(ArgT0&& arg0, ArgT... args) { - _impl_._has_bits_[0] |= 0x00000002u; - _impl_.partname_.Set(static_cast(arg0), args..., GetArenaForAllocation()); +template +inline PROTOBUF_ALWAYS_INLINE void ComponentsFile_ComponentRecord::set_partname(Arg_&& arg, + Args_... args) { + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_._has_bits_[0] |= 0x00000002u; + _impl_.partname_.Set(static_cast(arg), args..., GetArena()); // @@protoc_insertion_point(field_set:Odb.Lib.Protobuf.ComponentsFile.ComponentRecord.partName) } -inline std::string* ComponentsFile_ComponentRecord::mutable_partname() { +inline std::string* ComponentsFile_ComponentRecord::mutable_partname() ABSL_ATTRIBUTE_LIFETIME_BOUND { std::string* _s = _internal_mutable_partname(); // @@protoc_insertion_point(field_mutable:Odb.Lib.Protobuf.ComponentsFile.ComponentRecord.partName) return _s; } inline const std::string& ComponentsFile_ComponentRecord::_internal_partname() const { + ::google::protobuf::internal::TSanRead(&_impl_); return _impl_.partname_.Get(); } inline void ComponentsFile_ComponentRecord::_internal_set_partname(const std::string& value) { + ::google::protobuf::internal::TSanWrite(&_impl_); _impl_._has_bits_[0] |= 0x00000002u; - _impl_.partname_.Set(value, GetArenaForAllocation()); + _impl_.partname_.Set(value, GetArena()); } inline std::string* ComponentsFile_ComponentRecord::_internal_mutable_partname() { + ::google::protobuf::internal::TSanWrite(&_impl_); _impl_._has_bits_[0] |= 0x00000002u; - return _impl_.partname_.Mutable(GetArenaForAllocation()); + return _impl_.partname_.Mutable( GetArena()); } inline std::string* ComponentsFile_ComponentRecord::release_partname() { + ::google::protobuf::internal::TSanWrite(&_impl_); // @@protoc_insertion_point(field_release:Odb.Lib.Protobuf.ComponentsFile.ComponentRecord.partName) - if (!_internal_has_partname()) { + if ((_impl_._has_bits_[0] & 0x00000002u) == 0) { return nullptr; } _impl_._has_bits_[0] &= ~0x00000002u; - auto* p = _impl_.partname_.Release(); -#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (_impl_.partname_.IsDefault()) { - _impl_.partname_.Set("", GetArenaForAllocation()); + auto* released = _impl_.partname_.Release(); + if (::google::protobuf::internal::DebugHardenForceCopyDefaultString()) { + _impl_.partname_.Set("", GetArena()); } -#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING - return p; + return released; } -inline void ComponentsFile_ComponentRecord::set_allocated_partname(std::string* partname) { - if (partname != nullptr) { +inline void ComponentsFile_ComponentRecord::set_allocated_partname(std::string* value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + if (value != nullptr) { _impl_._has_bits_[0] |= 0x00000002u; } else { _impl_._has_bits_[0] &= ~0x00000002u; } - _impl_.partname_.SetAllocated(partname, GetArenaForAllocation()); -#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (_impl_.partname_.IsDefault()) { - _impl_.partname_.Set("", GetArenaForAllocation()); + _impl_.partname_.SetAllocated(value, GetArena()); + if (::google::protobuf::internal::DebugHardenForceCopyDefaultString() && _impl_.partname_.IsDefault()) { + _impl_.partname_.Set("", GetArena()); } -#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING // @@protoc_insertion_point(field_set_allocated:Odb.Lib.Protobuf.ComponentsFile.ComponentRecord.partName) } // optional string attributes = 8; -inline bool ComponentsFile_ComponentRecord::_internal_has_attributes() const { +inline bool ComponentsFile_ComponentRecord::has_attributes() const { bool value = (_impl_._has_bits_[0] & 0x00000004u) != 0; return value; } -inline bool ComponentsFile_ComponentRecord::has_attributes() const { - return _internal_has_attributes(); -} inline void ComponentsFile_ComponentRecord::clear_attributes() { + ::google::protobuf::internal::TSanWrite(&_impl_); _impl_.attributes_.ClearToEmpty(); _impl_._has_bits_[0] &= ~0x00000004u; } -inline const std::string& ComponentsFile_ComponentRecord::attributes() const { +inline const std::string& ComponentsFile_ComponentRecord::attributes() const + ABSL_ATTRIBUTE_LIFETIME_BOUND { // @@protoc_insertion_point(field_get:Odb.Lib.Protobuf.ComponentsFile.ComponentRecord.attributes) return _internal_attributes(); } -template -inline PROTOBUF_ALWAYS_INLINE -void ComponentsFile_ComponentRecord::set_attributes(ArgT0&& arg0, ArgT... args) { - _impl_._has_bits_[0] |= 0x00000004u; - _impl_.attributes_.Set(static_cast(arg0), args..., GetArenaForAllocation()); +template +inline PROTOBUF_ALWAYS_INLINE void ComponentsFile_ComponentRecord::set_attributes(Arg_&& arg, + Args_... args) { + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_._has_bits_[0] |= 0x00000004u; + _impl_.attributes_.Set(static_cast(arg), args..., GetArena()); // @@protoc_insertion_point(field_set:Odb.Lib.Protobuf.ComponentsFile.ComponentRecord.attributes) } -inline std::string* ComponentsFile_ComponentRecord::mutable_attributes() { +inline std::string* ComponentsFile_ComponentRecord::mutable_attributes() ABSL_ATTRIBUTE_LIFETIME_BOUND { std::string* _s = _internal_mutable_attributes(); // @@protoc_insertion_point(field_mutable:Odb.Lib.Protobuf.ComponentsFile.ComponentRecord.attributes) return _s; } inline const std::string& ComponentsFile_ComponentRecord::_internal_attributes() const { + ::google::protobuf::internal::TSanRead(&_impl_); return _impl_.attributes_.Get(); } inline void ComponentsFile_ComponentRecord::_internal_set_attributes(const std::string& value) { + ::google::protobuf::internal::TSanWrite(&_impl_); _impl_._has_bits_[0] |= 0x00000004u; - _impl_.attributes_.Set(value, GetArenaForAllocation()); + _impl_.attributes_.Set(value, GetArena()); } inline std::string* ComponentsFile_ComponentRecord::_internal_mutable_attributes() { + ::google::protobuf::internal::TSanWrite(&_impl_); _impl_._has_bits_[0] |= 0x00000004u; - return _impl_.attributes_.Mutable(GetArenaForAllocation()); + return _impl_.attributes_.Mutable( GetArena()); } inline std::string* ComponentsFile_ComponentRecord::release_attributes() { + ::google::protobuf::internal::TSanWrite(&_impl_); // @@protoc_insertion_point(field_release:Odb.Lib.Protobuf.ComponentsFile.ComponentRecord.attributes) - if (!_internal_has_attributes()) { + if ((_impl_._has_bits_[0] & 0x00000004u) == 0) { return nullptr; } _impl_._has_bits_[0] &= ~0x00000004u; - auto* p = _impl_.attributes_.Release(); -#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (_impl_.attributes_.IsDefault()) { - _impl_.attributes_.Set("", GetArenaForAllocation()); + auto* released = _impl_.attributes_.Release(); + if (::google::protobuf::internal::DebugHardenForceCopyDefaultString()) { + _impl_.attributes_.Set("", GetArena()); } -#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING - return p; + return released; } -inline void ComponentsFile_ComponentRecord::set_allocated_attributes(std::string* attributes) { - if (attributes != nullptr) { +inline void ComponentsFile_ComponentRecord::set_allocated_attributes(std::string* value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + if (value != nullptr) { _impl_._has_bits_[0] |= 0x00000004u; } else { _impl_._has_bits_[0] &= ~0x00000004u; } - _impl_.attributes_.SetAllocated(attributes, GetArenaForAllocation()); -#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (_impl_.attributes_.IsDefault()) { - _impl_.attributes_.Set("", GetArenaForAllocation()); + _impl_.attributes_.SetAllocated(value, GetArena()); + if (::google::protobuf::internal::DebugHardenForceCopyDefaultString() && _impl_.attributes_.IsDefault()) { + _impl_.attributes_.Set("", GetArena()); } -#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING // @@protoc_insertion_point(field_set_allocated:Odb.Lib.Protobuf.ComponentsFile.ComponentRecord.attributes) } // optional uint32 id = 9; -inline bool ComponentsFile_ComponentRecord::_internal_has_id() const { +inline bool ComponentsFile_ComponentRecord::has_id() const { bool value = (_impl_._has_bits_[0] & 0x00000100u) != 0; return value; } -inline bool ComponentsFile_ComponentRecord::has_id() const { - return _internal_has_id(); -} inline void ComponentsFile_ComponentRecord::clear_id() { + ::google::protobuf::internal::TSanWrite(&_impl_); _impl_.id_ = 0u; _impl_._has_bits_[0] &= ~0x00000100u; } -inline uint32_t ComponentsFile_ComponentRecord::_internal_id() const { - return _impl_.id_; -} -inline uint32_t ComponentsFile_ComponentRecord::id() const { +inline ::uint32_t ComponentsFile_ComponentRecord::id() const { // @@protoc_insertion_point(field_get:Odb.Lib.Protobuf.ComponentsFile.ComponentRecord.id) return _internal_id(); } -inline void ComponentsFile_ComponentRecord::_internal_set_id(uint32_t value) { - _impl_._has_bits_[0] |= 0x00000100u; - _impl_.id_ = value; -} -inline void ComponentsFile_ComponentRecord::set_id(uint32_t value) { +inline void ComponentsFile_ComponentRecord::set_id(::uint32_t value) { _internal_set_id(value); + _impl_._has_bits_[0] |= 0x00000100u; // @@protoc_insertion_point(field_set:Odb.Lib.Protobuf.ComponentsFile.ComponentRecord.id) } +inline ::uint32_t ComponentsFile_ComponentRecord::_internal_id() const { + ::google::protobuf::internal::TSanRead(&_impl_); + return _impl_.id_; +} +inline void ComponentsFile_ComponentRecord::_internal_set_id(::uint32_t value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.id_ = value; +} // optional uint32 index = 10; -inline bool ComponentsFile_ComponentRecord::_internal_has_index() const { +inline bool ComponentsFile_ComponentRecord::has_index() const { bool value = (_impl_._has_bits_[0] & 0x00000200u) != 0; return value; } -inline bool ComponentsFile_ComponentRecord::has_index() const { - return _internal_has_index(); -} inline void ComponentsFile_ComponentRecord::clear_index() { + ::google::protobuf::internal::TSanWrite(&_impl_); _impl_.index_ = 0u; _impl_._has_bits_[0] &= ~0x00000200u; } -inline uint32_t ComponentsFile_ComponentRecord::_internal_index() const { - return _impl_.index_; -} -inline uint32_t ComponentsFile_ComponentRecord::index() const { +inline ::uint32_t ComponentsFile_ComponentRecord::index() const { // @@protoc_insertion_point(field_get:Odb.Lib.Protobuf.ComponentsFile.ComponentRecord.index) return _internal_index(); } -inline void ComponentsFile_ComponentRecord::_internal_set_index(uint32_t value) { - _impl_._has_bits_[0] |= 0x00000200u; - _impl_.index_ = value; -} -inline void ComponentsFile_ComponentRecord::set_index(uint32_t value) { +inline void ComponentsFile_ComponentRecord::set_index(::uint32_t value) { _internal_set_index(value); + _impl_._has_bits_[0] |= 0x00000200u; // @@protoc_insertion_point(field_set:Odb.Lib.Protobuf.ComponentsFile.ComponentRecord.index) } +inline ::uint32_t ComponentsFile_ComponentRecord::_internal_index() const { + ::google::protobuf::internal::TSanRead(&_impl_); + return _impl_.index_; +} +inline void ComponentsFile_ComponentRecord::_internal_set_index(::uint32_t value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.index_ = value; +} // repeated .Odb.Lib.Protobuf.PropertyRecord propertyRecords = 11; inline int ComponentsFile_ComponentRecord::_internal_propertyrecords_size() const { - return _impl_.propertyrecords_.size(); + return _internal_propertyrecords().size(); } inline int ComponentsFile_ComponentRecord::propertyrecords_size() const { return _internal_propertyrecords_size(); } -inline ::Odb::Lib::Protobuf::PropertyRecord* ComponentsFile_ComponentRecord::mutable_propertyrecords(int index) { +inline ::Odb::Lib::Protobuf::PropertyRecord* ComponentsFile_ComponentRecord::mutable_propertyrecords(int index) + ABSL_ATTRIBUTE_LIFETIME_BOUND { // @@protoc_insertion_point(field_mutable:Odb.Lib.Protobuf.ComponentsFile.ComponentRecord.propertyRecords) - return _impl_.propertyrecords_.Mutable(index); + return _internal_mutable_propertyrecords()->Mutable(index); } -inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::Odb::Lib::Protobuf::PropertyRecord >* -ComponentsFile_ComponentRecord::mutable_propertyrecords() { +inline ::google::protobuf::RepeatedPtrField<::Odb::Lib::Protobuf::PropertyRecord>* ComponentsFile_ComponentRecord::mutable_propertyrecords() + ABSL_ATTRIBUTE_LIFETIME_BOUND { // @@protoc_insertion_point(field_mutable_list:Odb.Lib.Protobuf.ComponentsFile.ComponentRecord.propertyRecords) - return &_impl_.propertyrecords_; + ::google::protobuf::internal::TSanWrite(&_impl_); + return _internal_mutable_propertyrecords(); } -inline const ::Odb::Lib::Protobuf::PropertyRecord& ComponentsFile_ComponentRecord::_internal_propertyrecords(int index) const { - return _impl_.propertyrecords_.Get(index); -} -inline const ::Odb::Lib::Protobuf::PropertyRecord& ComponentsFile_ComponentRecord::propertyrecords(int index) const { +inline const ::Odb::Lib::Protobuf::PropertyRecord& ComponentsFile_ComponentRecord::propertyrecords(int index) const + ABSL_ATTRIBUTE_LIFETIME_BOUND { // @@protoc_insertion_point(field_get:Odb.Lib.Protobuf.ComponentsFile.ComponentRecord.propertyRecords) - return _internal_propertyrecords(index); -} -inline ::Odb::Lib::Protobuf::PropertyRecord* ComponentsFile_ComponentRecord::_internal_add_propertyrecords() { - return _impl_.propertyrecords_.Add(); + return _internal_propertyrecords().Get(index); } -inline ::Odb::Lib::Protobuf::PropertyRecord* ComponentsFile_ComponentRecord::add_propertyrecords() { - ::Odb::Lib::Protobuf::PropertyRecord* _add = _internal_add_propertyrecords(); +inline ::Odb::Lib::Protobuf::PropertyRecord* ComponentsFile_ComponentRecord::add_propertyrecords() ABSL_ATTRIBUTE_LIFETIME_BOUND { + ::google::protobuf::internal::TSanWrite(&_impl_); + ::Odb::Lib::Protobuf::PropertyRecord* _add = _internal_mutable_propertyrecords()->Add(); // @@protoc_insertion_point(field_add:Odb.Lib.Protobuf.ComponentsFile.ComponentRecord.propertyRecords) return _add; } -inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::Odb::Lib::Protobuf::PropertyRecord >& -ComponentsFile_ComponentRecord::propertyrecords() const { +inline const ::google::protobuf::RepeatedPtrField<::Odb::Lib::Protobuf::PropertyRecord>& ComponentsFile_ComponentRecord::propertyrecords() const + ABSL_ATTRIBUTE_LIFETIME_BOUND { // @@protoc_insertion_point(field_list:Odb.Lib.Protobuf.ComponentsFile.ComponentRecord.propertyRecords) + return _internal_propertyrecords(); +} +inline const ::google::protobuf::RepeatedPtrField<::Odb::Lib::Protobuf::PropertyRecord>& +ComponentsFile_ComponentRecord::_internal_propertyrecords() const { + ::google::protobuf::internal::TSanRead(&_impl_); return _impl_.propertyrecords_; } +inline ::google::protobuf::RepeatedPtrField<::Odb::Lib::Protobuf::PropertyRecord>* +ComponentsFile_ComponentRecord::_internal_mutable_propertyrecords() { + ::google::protobuf::internal::TSanRead(&_impl_); + return &_impl_.propertyrecords_; +} // repeated .Odb.Lib.Protobuf.ComponentsFile.ComponentRecord.ToeprintRecord toeprintRecords = 12; inline int ComponentsFile_ComponentRecord::_internal_toeprintrecords_size() const { - return _impl_.toeprintrecords_.size(); + return _internal_toeprintrecords().size(); } inline int ComponentsFile_ComponentRecord::toeprintrecords_size() const { return _internal_toeprintrecords_size(); } inline void ComponentsFile_ComponentRecord::clear_toeprintrecords() { + ::google::protobuf::internal::TSanWrite(&_impl_); _impl_.toeprintrecords_.Clear(); } -inline ::Odb::Lib::Protobuf::ComponentsFile_ComponentRecord_ToeprintRecord* ComponentsFile_ComponentRecord::mutable_toeprintrecords(int index) { +inline ::Odb::Lib::Protobuf::ComponentsFile_ComponentRecord_ToeprintRecord* ComponentsFile_ComponentRecord::mutable_toeprintrecords(int index) + ABSL_ATTRIBUTE_LIFETIME_BOUND { // @@protoc_insertion_point(field_mutable:Odb.Lib.Protobuf.ComponentsFile.ComponentRecord.toeprintRecords) - return _impl_.toeprintrecords_.Mutable(index); + return _internal_mutable_toeprintrecords()->Mutable(index); } -inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::Odb::Lib::Protobuf::ComponentsFile_ComponentRecord_ToeprintRecord >* -ComponentsFile_ComponentRecord::mutable_toeprintrecords() { +inline ::google::protobuf::RepeatedPtrField<::Odb::Lib::Protobuf::ComponentsFile_ComponentRecord_ToeprintRecord>* ComponentsFile_ComponentRecord::mutable_toeprintrecords() + ABSL_ATTRIBUTE_LIFETIME_BOUND { // @@protoc_insertion_point(field_mutable_list:Odb.Lib.Protobuf.ComponentsFile.ComponentRecord.toeprintRecords) - return &_impl_.toeprintrecords_; + ::google::protobuf::internal::TSanWrite(&_impl_); + return _internal_mutable_toeprintrecords(); } -inline const ::Odb::Lib::Protobuf::ComponentsFile_ComponentRecord_ToeprintRecord& ComponentsFile_ComponentRecord::_internal_toeprintrecords(int index) const { - return _impl_.toeprintrecords_.Get(index); -} -inline const ::Odb::Lib::Protobuf::ComponentsFile_ComponentRecord_ToeprintRecord& ComponentsFile_ComponentRecord::toeprintrecords(int index) const { +inline const ::Odb::Lib::Protobuf::ComponentsFile_ComponentRecord_ToeprintRecord& ComponentsFile_ComponentRecord::toeprintrecords(int index) const + ABSL_ATTRIBUTE_LIFETIME_BOUND { // @@protoc_insertion_point(field_get:Odb.Lib.Protobuf.ComponentsFile.ComponentRecord.toeprintRecords) - return _internal_toeprintrecords(index); -} -inline ::Odb::Lib::Protobuf::ComponentsFile_ComponentRecord_ToeprintRecord* ComponentsFile_ComponentRecord::_internal_add_toeprintrecords() { - return _impl_.toeprintrecords_.Add(); + return _internal_toeprintrecords().Get(index); } -inline ::Odb::Lib::Protobuf::ComponentsFile_ComponentRecord_ToeprintRecord* ComponentsFile_ComponentRecord::add_toeprintrecords() { - ::Odb::Lib::Protobuf::ComponentsFile_ComponentRecord_ToeprintRecord* _add = _internal_add_toeprintrecords(); +inline ::Odb::Lib::Protobuf::ComponentsFile_ComponentRecord_ToeprintRecord* ComponentsFile_ComponentRecord::add_toeprintrecords() ABSL_ATTRIBUTE_LIFETIME_BOUND { + ::google::protobuf::internal::TSanWrite(&_impl_); + ::Odb::Lib::Protobuf::ComponentsFile_ComponentRecord_ToeprintRecord* _add = _internal_mutable_toeprintrecords()->Add(); // @@protoc_insertion_point(field_add:Odb.Lib.Protobuf.ComponentsFile.ComponentRecord.toeprintRecords) return _add; } -inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::Odb::Lib::Protobuf::ComponentsFile_ComponentRecord_ToeprintRecord >& -ComponentsFile_ComponentRecord::toeprintrecords() const { +inline const ::google::protobuf::RepeatedPtrField<::Odb::Lib::Protobuf::ComponentsFile_ComponentRecord_ToeprintRecord>& ComponentsFile_ComponentRecord::toeprintrecords() const + ABSL_ATTRIBUTE_LIFETIME_BOUND { // @@protoc_insertion_point(field_list:Odb.Lib.Protobuf.ComponentsFile.ComponentRecord.toeprintRecords) + return _internal_toeprintrecords(); +} +inline const ::google::protobuf::RepeatedPtrField<::Odb::Lib::Protobuf::ComponentsFile_ComponentRecord_ToeprintRecord>& +ComponentsFile_ComponentRecord::_internal_toeprintrecords() const { + ::google::protobuf::internal::TSanRead(&_impl_); return _impl_.toeprintrecords_; } +inline ::google::protobuf::RepeatedPtrField<::Odb::Lib::Protobuf::ComponentsFile_ComponentRecord_ToeprintRecord>* +ComponentsFile_ComponentRecord::_internal_mutable_toeprintrecords() { + ::google::protobuf::internal::TSanRead(&_impl_); + return &_impl_.toeprintrecords_; +} // map attributeLookupTable = 13; inline int ComponentsFile_ComponentRecord::_internal_attributelookuptable_size() const { - return _impl_.attributelookuptable_.size(); + return _internal_attributelookuptable().size(); } inline int ComponentsFile_ComponentRecord::attributelookuptable_size() const { return _internal_attributelookuptable_size(); } inline void ComponentsFile_ComponentRecord::clear_attributelookuptable() { + ::google::protobuf::internal::TSanWrite(&_impl_); _impl_.attributelookuptable_.Clear(); } -inline const ::PROTOBUF_NAMESPACE_ID::Map< std::string, std::string >& -ComponentsFile_ComponentRecord::_internal_attributelookuptable() const { +inline const ::google::protobuf::Map& ComponentsFile_ComponentRecord::_internal_attributelookuptable() const { + ::google::protobuf::internal::TSanRead(&_impl_); return _impl_.attributelookuptable_.GetMap(); } -inline const ::PROTOBUF_NAMESPACE_ID::Map< std::string, std::string >& -ComponentsFile_ComponentRecord::attributelookuptable() const { +inline const ::google::protobuf::Map& ComponentsFile_ComponentRecord::attributelookuptable() const ABSL_ATTRIBUTE_LIFETIME_BOUND { // @@protoc_insertion_point(field_map:Odb.Lib.Protobuf.ComponentsFile.ComponentRecord.attributeLookupTable) return _internal_attributelookuptable(); } -inline ::PROTOBUF_NAMESPACE_ID::Map< std::string, std::string >* -ComponentsFile_ComponentRecord::_internal_mutable_attributelookuptable() { +inline ::google::protobuf::Map* ComponentsFile_ComponentRecord::_internal_mutable_attributelookuptable() { + ::google::protobuf::internal::TSanWrite(&_impl_); return _impl_.attributelookuptable_.MutableMap(); } -inline ::PROTOBUF_NAMESPACE_ID::Map< std::string, std::string >* -ComponentsFile_ComponentRecord::mutable_attributelookuptable() { +inline ::google::protobuf::Map* ComponentsFile_ComponentRecord::mutable_attributelookuptable() ABSL_ATTRIBUTE_LIFETIME_BOUND { // @@protoc_insertion_point(field_mutable_map:Odb.Lib.Protobuf.ComponentsFile.ComponentRecord.attributeLookupTable) return _internal_mutable_attributelookuptable(); } @@ -2342,553 +2512,549 @@ ComponentsFile_ComponentRecord::mutable_attributelookuptable() { // ComponentsFile_BomDescriptionRecord // optional string cpn = 1; -inline bool ComponentsFile_BomDescriptionRecord::_internal_has_cpn() const { +inline bool ComponentsFile_BomDescriptionRecord::has_cpn() const { bool value = (_impl_._has_bits_[0] & 0x00000001u) != 0; return value; } -inline bool ComponentsFile_BomDescriptionRecord::has_cpn() const { - return _internal_has_cpn(); -} inline void ComponentsFile_BomDescriptionRecord::clear_cpn() { + ::google::protobuf::internal::TSanWrite(&_impl_); _impl_.cpn_.ClearToEmpty(); _impl_._has_bits_[0] &= ~0x00000001u; } -inline const std::string& ComponentsFile_BomDescriptionRecord::cpn() const { +inline const std::string& ComponentsFile_BomDescriptionRecord::cpn() const + ABSL_ATTRIBUTE_LIFETIME_BOUND { // @@protoc_insertion_point(field_get:Odb.Lib.Protobuf.ComponentsFile.BomDescriptionRecord.cpn) return _internal_cpn(); } -template -inline PROTOBUF_ALWAYS_INLINE -void ComponentsFile_BomDescriptionRecord::set_cpn(ArgT0&& arg0, ArgT... args) { - _impl_._has_bits_[0] |= 0x00000001u; - _impl_.cpn_.Set(static_cast(arg0), args..., GetArenaForAllocation()); +template +inline PROTOBUF_ALWAYS_INLINE void ComponentsFile_BomDescriptionRecord::set_cpn(Arg_&& arg, + Args_... args) { + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_._has_bits_[0] |= 0x00000001u; + _impl_.cpn_.Set(static_cast(arg), args..., GetArena()); // @@protoc_insertion_point(field_set:Odb.Lib.Protobuf.ComponentsFile.BomDescriptionRecord.cpn) } -inline std::string* ComponentsFile_BomDescriptionRecord::mutable_cpn() { +inline std::string* ComponentsFile_BomDescriptionRecord::mutable_cpn() ABSL_ATTRIBUTE_LIFETIME_BOUND { std::string* _s = _internal_mutable_cpn(); // @@protoc_insertion_point(field_mutable:Odb.Lib.Protobuf.ComponentsFile.BomDescriptionRecord.cpn) return _s; } inline const std::string& ComponentsFile_BomDescriptionRecord::_internal_cpn() const { + ::google::protobuf::internal::TSanRead(&_impl_); return _impl_.cpn_.Get(); } inline void ComponentsFile_BomDescriptionRecord::_internal_set_cpn(const std::string& value) { + ::google::protobuf::internal::TSanWrite(&_impl_); _impl_._has_bits_[0] |= 0x00000001u; - _impl_.cpn_.Set(value, GetArenaForAllocation()); + _impl_.cpn_.Set(value, GetArena()); } inline std::string* ComponentsFile_BomDescriptionRecord::_internal_mutable_cpn() { + ::google::protobuf::internal::TSanWrite(&_impl_); _impl_._has_bits_[0] |= 0x00000001u; - return _impl_.cpn_.Mutable(GetArenaForAllocation()); + return _impl_.cpn_.Mutable( GetArena()); } inline std::string* ComponentsFile_BomDescriptionRecord::release_cpn() { + ::google::protobuf::internal::TSanWrite(&_impl_); // @@protoc_insertion_point(field_release:Odb.Lib.Protobuf.ComponentsFile.BomDescriptionRecord.cpn) - if (!_internal_has_cpn()) { + if ((_impl_._has_bits_[0] & 0x00000001u) == 0) { return nullptr; } _impl_._has_bits_[0] &= ~0x00000001u; - auto* p = _impl_.cpn_.Release(); -#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (_impl_.cpn_.IsDefault()) { - _impl_.cpn_.Set("", GetArenaForAllocation()); + auto* released = _impl_.cpn_.Release(); + if (::google::protobuf::internal::DebugHardenForceCopyDefaultString()) { + _impl_.cpn_.Set("", GetArena()); } -#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING - return p; + return released; } -inline void ComponentsFile_BomDescriptionRecord::set_allocated_cpn(std::string* cpn) { - if (cpn != nullptr) { +inline void ComponentsFile_BomDescriptionRecord::set_allocated_cpn(std::string* value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + if (value != nullptr) { _impl_._has_bits_[0] |= 0x00000001u; } else { _impl_._has_bits_[0] &= ~0x00000001u; } - _impl_.cpn_.SetAllocated(cpn, GetArenaForAllocation()); -#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (_impl_.cpn_.IsDefault()) { - _impl_.cpn_.Set("", GetArenaForAllocation()); + _impl_.cpn_.SetAllocated(value, GetArena()); + if (::google::protobuf::internal::DebugHardenForceCopyDefaultString() && _impl_.cpn_.IsDefault()) { + _impl_.cpn_.Set("", GetArena()); } -#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING // @@protoc_insertion_point(field_set_allocated:Odb.Lib.Protobuf.ComponentsFile.BomDescriptionRecord.cpn) } // optional string pkg = 2; -inline bool ComponentsFile_BomDescriptionRecord::_internal_has_pkg() const { +inline bool ComponentsFile_BomDescriptionRecord::has_pkg() const { bool value = (_impl_._has_bits_[0] & 0x00000002u) != 0; return value; } -inline bool ComponentsFile_BomDescriptionRecord::has_pkg() const { - return _internal_has_pkg(); -} inline void ComponentsFile_BomDescriptionRecord::clear_pkg() { + ::google::protobuf::internal::TSanWrite(&_impl_); _impl_.pkg_.ClearToEmpty(); _impl_._has_bits_[0] &= ~0x00000002u; } -inline const std::string& ComponentsFile_BomDescriptionRecord::pkg() const { +inline const std::string& ComponentsFile_BomDescriptionRecord::pkg() const + ABSL_ATTRIBUTE_LIFETIME_BOUND { // @@protoc_insertion_point(field_get:Odb.Lib.Protobuf.ComponentsFile.BomDescriptionRecord.pkg) return _internal_pkg(); } -template -inline PROTOBUF_ALWAYS_INLINE -void ComponentsFile_BomDescriptionRecord::set_pkg(ArgT0&& arg0, ArgT... args) { - _impl_._has_bits_[0] |= 0x00000002u; - _impl_.pkg_.Set(static_cast(arg0), args..., GetArenaForAllocation()); +template +inline PROTOBUF_ALWAYS_INLINE void ComponentsFile_BomDescriptionRecord::set_pkg(Arg_&& arg, + Args_... args) { + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_._has_bits_[0] |= 0x00000002u; + _impl_.pkg_.Set(static_cast(arg), args..., GetArena()); // @@protoc_insertion_point(field_set:Odb.Lib.Protobuf.ComponentsFile.BomDescriptionRecord.pkg) } -inline std::string* ComponentsFile_BomDescriptionRecord::mutable_pkg() { +inline std::string* ComponentsFile_BomDescriptionRecord::mutable_pkg() ABSL_ATTRIBUTE_LIFETIME_BOUND { std::string* _s = _internal_mutable_pkg(); // @@protoc_insertion_point(field_mutable:Odb.Lib.Protobuf.ComponentsFile.BomDescriptionRecord.pkg) return _s; } inline const std::string& ComponentsFile_BomDescriptionRecord::_internal_pkg() const { + ::google::protobuf::internal::TSanRead(&_impl_); return _impl_.pkg_.Get(); } inline void ComponentsFile_BomDescriptionRecord::_internal_set_pkg(const std::string& value) { + ::google::protobuf::internal::TSanWrite(&_impl_); _impl_._has_bits_[0] |= 0x00000002u; - _impl_.pkg_.Set(value, GetArenaForAllocation()); + _impl_.pkg_.Set(value, GetArena()); } inline std::string* ComponentsFile_BomDescriptionRecord::_internal_mutable_pkg() { + ::google::protobuf::internal::TSanWrite(&_impl_); _impl_._has_bits_[0] |= 0x00000002u; - return _impl_.pkg_.Mutable(GetArenaForAllocation()); + return _impl_.pkg_.Mutable( GetArena()); } inline std::string* ComponentsFile_BomDescriptionRecord::release_pkg() { + ::google::protobuf::internal::TSanWrite(&_impl_); // @@protoc_insertion_point(field_release:Odb.Lib.Protobuf.ComponentsFile.BomDescriptionRecord.pkg) - if (!_internal_has_pkg()) { + if ((_impl_._has_bits_[0] & 0x00000002u) == 0) { return nullptr; } _impl_._has_bits_[0] &= ~0x00000002u; - auto* p = _impl_.pkg_.Release(); -#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (_impl_.pkg_.IsDefault()) { - _impl_.pkg_.Set("", GetArenaForAllocation()); + auto* released = _impl_.pkg_.Release(); + if (::google::protobuf::internal::DebugHardenForceCopyDefaultString()) { + _impl_.pkg_.Set("", GetArena()); } -#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING - return p; + return released; } -inline void ComponentsFile_BomDescriptionRecord::set_allocated_pkg(std::string* pkg) { - if (pkg != nullptr) { +inline void ComponentsFile_BomDescriptionRecord::set_allocated_pkg(std::string* value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + if (value != nullptr) { _impl_._has_bits_[0] |= 0x00000002u; } else { _impl_._has_bits_[0] &= ~0x00000002u; } - _impl_.pkg_.SetAllocated(pkg, GetArenaForAllocation()); -#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (_impl_.pkg_.IsDefault()) { - _impl_.pkg_.Set("", GetArenaForAllocation()); + _impl_.pkg_.SetAllocated(value, GetArena()); + if (::google::protobuf::internal::DebugHardenForceCopyDefaultString() && _impl_.pkg_.IsDefault()) { + _impl_.pkg_.Set("", GetArena()); } -#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING // @@protoc_insertion_point(field_set_allocated:Odb.Lib.Protobuf.ComponentsFile.BomDescriptionRecord.pkg) } // optional string ipn = 3; -inline bool ComponentsFile_BomDescriptionRecord::_internal_has_ipn() const { +inline bool ComponentsFile_BomDescriptionRecord::has_ipn() const { bool value = (_impl_._has_bits_[0] & 0x00000004u) != 0; return value; } -inline bool ComponentsFile_BomDescriptionRecord::has_ipn() const { - return _internal_has_ipn(); -} inline void ComponentsFile_BomDescriptionRecord::clear_ipn() { + ::google::protobuf::internal::TSanWrite(&_impl_); _impl_.ipn_.ClearToEmpty(); _impl_._has_bits_[0] &= ~0x00000004u; } -inline const std::string& ComponentsFile_BomDescriptionRecord::ipn() const { +inline const std::string& ComponentsFile_BomDescriptionRecord::ipn() const + ABSL_ATTRIBUTE_LIFETIME_BOUND { // @@protoc_insertion_point(field_get:Odb.Lib.Protobuf.ComponentsFile.BomDescriptionRecord.ipn) return _internal_ipn(); } -template -inline PROTOBUF_ALWAYS_INLINE -void ComponentsFile_BomDescriptionRecord::set_ipn(ArgT0&& arg0, ArgT... args) { - _impl_._has_bits_[0] |= 0x00000004u; - _impl_.ipn_.Set(static_cast(arg0), args..., GetArenaForAllocation()); +template +inline PROTOBUF_ALWAYS_INLINE void ComponentsFile_BomDescriptionRecord::set_ipn(Arg_&& arg, + Args_... args) { + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_._has_bits_[0] |= 0x00000004u; + _impl_.ipn_.Set(static_cast(arg), args..., GetArena()); // @@protoc_insertion_point(field_set:Odb.Lib.Protobuf.ComponentsFile.BomDescriptionRecord.ipn) } -inline std::string* ComponentsFile_BomDescriptionRecord::mutable_ipn() { +inline std::string* ComponentsFile_BomDescriptionRecord::mutable_ipn() ABSL_ATTRIBUTE_LIFETIME_BOUND { std::string* _s = _internal_mutable_ipn(); // @@protoc_insertion_point(field_mutable:Odb.Lib.Protobuf.ComponentsFile.BomDescriptionRecord.ipn) return _s; } inline const std::string& ComponentsFile_BomDescriptionRecord::_internal_ipn() const { + ::google::protobuf::internal::TSanRead(&_impl_); return _impl_.ipn_.Get(); } inline void ComponentsFile_BomDescriptionRecord::_internal_set_ipn(const std::string& value) { + ::google::protobuf::internal::TSanWrite(&_impl_); _impl_._has_bits_[0] |= 0x00000004u; - _impl_.ipn_.Set(value, GetArenaForAllocation()); + _impl_.ipn_.Set(value, GetArena()); } inline std::string* ComponentsFile_BomDescriptionRecord::_internal_mutable_ipn() { + ::google::protobuf::internal::TSanWrite(&_impl_); _impl_._has_bits_[0] |= 0x00000004u; - return _impl_.ipn_.Mutable(GetArenaForAllocation()); + return _impl_.ipn_.Mutable( GetArena()); } inline std::string* ComponentsFile_BomDescriptionRecord::release_ipn() { + ::google::protobuf::internal::TSanWrite(&_impl_); // @@protoc_insertion_point(field_release:Odb.Lib.Protobuf.ComponentsFile.BomDescriptionRecord.ipn) - if (!_internal_has_ipn()) { + if ((_impl_._has_bits_[0] & 0x00000004u) == 0) { return nullptr; } _impl_._has_bits_[0] &= ~0x00000004u; - auto* p = _impl_.ipn_.Release(); -#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (_impl_.ipn_.IsDefault()) { - _impl_.ipn_.Set("", GetArenaForAllocation()); + auto* released = _impl_.ipn_.Release(); + if (::google::protobuf::internal::DebugHardenForceCopyDefaultString()) { + _impl_.ipn_.Set("", GetArena()); } -#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING - return p; + return released; } -inline void ComponentsFile_BomDescriptionRecord::set_allocated_ipn(std::string* ipn) { - if (ipn != nullptr) { +inline void ComponentsFile_BomDescriptionRecord::set_allocated_ipn(std::string* value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + if (value != nullptr) { _impl_._has_bits_[0] |= 0x00000004u; } else { _impl_._has_bits_[0] &= ~0x00000004u; } - _impl_.ipn_.SetAllocated(ipn, GetArenaForAllocation()); -#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (_impl_.ipn_.IsDefault()) { - _impl_.ipn_.Set("", GetArenaForAllocation()); + _impl_.ipn_.SetAllocated(value, GetArena()); + if (::google::protobuf::internal::DebugHardenForceCopyDefaultString() && _impl_.ipn_.IsDefault()) { + _impl_.ipn_.Set("", GetArena()); } -#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING // @@protoc_insertion_point(field_set_allocated:Odb.Lib.Protobuf.ComponentsFile.BomDescriptionRecord.ipn) } // repeated string descriptions = 4; inline int ComponentsFile_BomDescriptionRecord::_internal_descriptions_size() const { - return _impl_.descriptions_.size(); + return _internal_descriptions().size(); } inline int ComponentsFile_BomDescriptionRecord::descriptions_size() const { return _internal_descriptions_size(); } inline void ComponentsFile_BomDescriptionRecord::clear_descriptions() { + ::google::protobuf::internal::TSanWrite(&_impl_); _impl_.descriptions_.Clear(); } -inline std::string* ComponentsFile_BomDescriptionRecord::add_descriptions() { - std::string* _s = _internal_add_descriptions(); +inline std::string* ComponentsFile_BomDescriptionRecord::add_descriptions() ABSL_ATTRIBUTE_LIFETIME_BOUND { + ::google::protobuf::internal::TSanWrite(&_impl_); + std::string* _s = _internal_mutable_descriptions()->Add(); // @@protoc_insertion_point(field_add_mutable:Odb.Lib.Protobuf.ComponentsFile.BomDescriptionRecord.descriptions) return _s; } -inline const std::string& ComponentsFile_BomDescriptionRecord::_internal_descriptions(int index) const { - return _impl_.descriptions_.Get(index); -} -inline const std::string& ComponentsFile_BomDescriptionRecord::descriptions(int index) const { +inline const std::string& ComponentsFile_BomDescriptionRecord::descriptions(int index) const + ABSL_ATTRIBUTE_LIFETIME_BOUND { // @@protoc_insertion_point(field_get:Odb.Lib.Protobuf.ComponentsFile.BomDescriptionRecord.descriptions) - return _internal_descriptions(index); + return _internal_descriptions().Get(index); } -inline std::string* ComponentsFile_BomDescriptionRecord::mutable_descriptions(int index) { +inline std::string* ComponentsFile_BomDescriptionRecord::mutable_descriptions(int index) + ABSL_ATTRIBUTE_LIFETIME_BOUND { // @@protoc_insertion_point(field_mutable:Odb.Lib.Protobuf.ComponentsFile.BomDescriptionRecord.descriptions) - return _impl_.descriptions_.Mutable(index); + return _internal_mutable_descriptions()->Mutable(index); } -inline void ComponentsFile_BomDescriptionRecord::set_descriptions(int index, const std::string& value) { - _impl_.descriptions_.Mutable(index)->assign(value); +template +inline void ComponentsFile_BomDescriptionRecord::set_descriptions(int index, Arg_&& value, Args_... args) { + ::google::protobuf::internal::AssignToString( + *_internal_mutable_descriptions()->Mutable(index), + std::forward(value), args... ); // @@protoc_insertion_point(field_set:Odb.Lib.Protobuf.ComponentsFile.BomDescriptionRecord.descriptions) } -inline void ComponentsFile_BomDescriptionRecord::set_descriptions(int index, std::string&& value) { - _impl_.descriptions_.Mutable(index)->assign(std::move(value)); - // @@protoc_insertion_point(field_set:Odb.Lib.Protobuf.ComponentsFile.BomDescriptionRecord.descriptions) -} -inline void ComponentsFile_BomDescriptionRecord::set_descriptions(int index, const char* value) { - GOOGLE_DCHECK(value != nullptr); - _impl_.descriptions_.Mutable(index)->assign(value); - // @@protoc_insertion_point(field_set_char:Odb.Lib.Protobuf.ComponentsFile.BomDescriptionRecord.descriptions) -} -inline void ComponentsFile_BomDescriptionRecord::set_descriptions(int index, const char* value, size_t size) { - _impl_.descriptions_.Mutable(index)->assign( - reinterpret_cast(value), size); - // @@protoc_insertion_point(field_set_pointer:Odb.Lib.Protobuf.ComponentsFile.BomDescriptionRecord.descriptions) -} -inline std::string* ComponentsFile_BomDescriptionRecord::_internal_add_descriptions() { - return _impl_.descriptions_.Add(); -} -inline void ComponentsFile_BomDescriptionRecord::add_descriptions(const std::string& value) { - _impl_.descriptions_.Add()->assign(value); - // @@protoc_insertion_point(field_add:Odb.Lib.Protobuf.ComponentsFile.BomDescriptionRecord.descriptions) -} -inline void ComponentsFile_BomDescriptionRecord::add_descriptions(std::string&& value) { - _impl_.descriptions_.Add(std::move(value)); +template +inline void ComponentsFile_BomDescriptionRecord::add_descriptions(Arg_&& value, Args_... args) { + ::google::protobuf::internal::TSanWrite(&_impl_); + ::google::protobuf::internal::AddToRepeatedPtrField(*_internal_mutable_descriptions(), + std::forward(value), + args... ); // @@protoc_insertion_point(field_add:Odb.Lib.Protobuf.ComponentsFile.BomDescriptionRecord.descriptions) } -inline void ComponentsFile_BomDescriptionRecord::add_descriptions(const char* value) { - GOOGLE_DCHECK(value != nullptr); - _impl_.descriptions_.Add()->assign(value); - // @@protoc_insertion_point(field_add_char:Odb.Lib.Protobuf.ComponentsFile.BomDescriptionRecord.descriptions) +inline const ::google::protobuf::RepeatedPtrField& +ComponentsFile_BomDescriptionRecord::descriptions() const ABSL_ATTRIBUTE_LIFETIME_BOUND { + // @@protoc_insertion_point(field_list:Odb.Lib.Protobuf.ComponentsFile.BomDescriptionRecord.descriptions) + return _internal_descriptions(); } -inline void ComponentsFile_BomDescriptionRecord::add_descriptions(const char* value, size_t size) { - _impl_.descriptions_.Add()->assign(reinterpret_cast(value), size); - // @@protoc_insertion_point(field_add_pointer:Odb.Lib.Protobuf.ComponentsFile.BomDescriptionRecord.descriptions) +inline ::google::protobuf::RepeatedPtrField* +ComponentsFile_BomDescriptionRecord::mutable_descriptions() ABSL_ATTRIBUTE_LIFETIME_BOUND { + // @@protoc_insertion_point(field_mutable_list:Odb.Lib.Protobuf.ComponentsFile.BomDescriptionRecord.descriptions) + ::google::protobuf::internal::TSanWrite(&_impl_); + return _internal_mutable_descriptions(); } -inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField& -ComponentsFile_BomDescriptionRecord::descriptions() const { - // @@protoc_insertion_point(field_list:Odb.Lib.Protobuf.ComponentsFile.BomDescriptionRecord.descriptions) +inline const ::google::protobuf::RepeatedPtrField& +ComponentsFile_BomDescriptionRecord::_internal_descriptions() const { + ::google::protobuf::internal::TSanRead(&_impl_); return _impl_.descriptions_; } -inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField* -ComponentsFile_BomDescriptionRecord::mutable_descriptions() { - // @@protoc_insertion_point(field_mutable_list:Odb.Lib.Protobuf.ComponentsFile.BomDescriptionRecord.descriptions) +inline ::google::protobuf::RepeatedPtrField* +ComponentsFile_BomDescriptionRecord::_internal_mutable_descriptions() { + ::google::protobuf::internal::TSanRead(&_impl_); return &_impl_.descriptions_; } // optional string vpl_vnd = 5; -inline bool ComponentsFile_BomDescriptionRecord::_internal_has_vpl_vnd() const { +inline bool ComponentsFile_BomDescriptionRecord::has_vpl_vnd() const { bool value = (_impl_._has_bits_[0] & 0x00000008u) != 0; return value; } -inline bool ComponentsFile_BomDescriptionRecord::has_vpl_vnd() const { - return _internal_has_vpl_vnd(); -} inline void ComponentsFile_BomDescriptionRecord::clear_vpl_vnd() { + ::google::protobuf::internal::TSanWrite(&_impl_); _impl_.vpl_vnd_.ClearToEmpty(); _impl_._has_bits_[0] &= ~0x00000008u; } -inline const std::string& ComponentsFile_BomDescriptionRecord::vpl_vnd() const { +inline const std::string& ComponentsFile_BomDescriptionRecord::vpl_vnd() const + ABSL_ATTRIBUTE_LIFETIME_BOUND { // @@protoc_insertion_point(field_get:Odb.Lib.Protobuf.ComponentsFile.BomDescriptionRecord.vpl_vnd) return _internal_vpl_vnd(); } -template -inline PROTOBUF_ALWAYS_INLINE -void ComponentsFile_BomDescriptionRecord::set_vpl_vnd(ArgT0&& arg0, ArgT... args) { - _impl_._has_bits_[0] |= 0x00000008u; - _impl_.vpl_vnd_.Set(static_cast(arg0), args..., GetArenaForAllocation()); +template +inline PROTOBUF_ALWAYS_INLINE void ComponentsFile_BomDescriptionRecord::set_vpl_vnd(Arg_&& arg, + Args_... args) { + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_._has_bits_[0] |= 0x00000008u; + _impl_.vpl_vnd_.Set(static_cast(arg), args..., GetArena()); // @@protoc_insertion_point(field_set:Odb.Lib.Protobuf.ComponentsFile.BomDescriptionRecord.vpl_vnd) } -inline std::string* ComponentsFile_BomDescriptionRecord::mutable_vpl_vnd() { +inline std::string* ComponentsFile_BomDescriptionRecord::mutable_vpl_vnd() ABSL_ATTRIBUTE_LIFETIME_BOUND { std::string* _s = _internal_mutable_vpl_vnd(); // @@protoc_insertion_point(field_mutable:Odb.Lib.Protobuf.ComponentsFile.BomDescriptionRecord.vpl_vnd) return _s; } inline const std::string& ComponentsFile_BomDescriptionRecord::_internal_vpl_vnd() const { + ::google::protobuf::internal::TSanRead(&_impl_); return _impl_.vpl_vnd_.Get(); } inline void ComponentsFile_BomDescriptionRecord::_internal_set_vpl_vnd(const std::string& value) { + ::google::protobuf::internal::TSanWrite(&_impl_); _impl_._has_bits_[0] |= 0x00000008u; - _impl_.vpl_vnd_.Set(value, GetArenaForAllocation()); + _impl_.vpl_vnd_.Set(value, GetArena()); } inline std::string* ComponentsFile_BomDescriptionRecord::_internal_mutable_vpl_vnd() { + ::google::protobuf::internal::TSanWrite(&_impl_); _impl_._has_bits_[0] |= 0x00000008u; - return _impl_.vpl_vnd_.Mutable(GetArenaForAllocation()); + return _impl_.vpl_vnd_.Mutable( GetArena()); } inline std::string* ComponentsFile_BomDescriptionRecord::release_vpl_vnd() { + ::google::protobuf::internal::TSanWrite(&_impl_); // @@protoc_insertion_point(field_release:Odb.Lib.Protobuf.ComponentsFile.BomDescriptionRecord.vpl_vnd) - if (!_internal_has_vpl_vnd()) { + if ((_impl_._has_bits_[0] & 0x00000008u) == 0) { return nullptr; } _impl_._has_bits_[0] &= ~0x00000008u; - auto* p = _impl_.vpl_vnd_.Release(); -#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (_impl_.vpl_vnd_.IsDefault()) { - _impl_.vpl_vnd_.Set("", GetArenaForAllocation()); + auto* released = _impl_.vpl_vnd_.Release(); + if (::google::protobuf::internal::DebugHardenForceCopyDefaultString()) { + _impl_.vpl_vnd_.Set("", GetArena()); } -#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING - return p; + return released; } -inline void ComponentsFile_BomDescriptionRecord::set_allocated_vpl_vnd(std::string* vpl_vnd) { - if (vpl_vnd != nullptr) { +inline void ComponentsFile_BomDescriptionRecord::set_allocated_vpl_vnd(std::string* value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + if (value != nullptr) { _impl_._has_bits_[0] |= 0x00000008u; } else { _impl_._has_bits_[0] &= ~0x00000008u; } - _impl_.vpl_vnd_.SetAllocated(vpl_vnd, GetArenaForAllocation()); -#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (_impl_.vpl_vnd_.IsDefault()) { - _impl_.vpl_vnd_.Set("", GetArenaForAllocation()); + _impl_.vpl_vnd_.SetAllocated(value, GetArena()); + if (::google::protobuf::internal::DebugHardenForceCopyDefaultString() && _impl_.vpl_vnd_.IsDefault()) { + _impl_.vpl_vnd_.Set("", GetArena()); } -#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING // @@protoc_insertion_point(field_set_allocated:Odb.Lib.Protobuf.ComponentsFile.BomDescriptionRecord.vpl_vnd) } // optional string vpl_mpn = 6; -inline bool ComponentsFile_BomDescriptionRecord::_internal_has_vpl_mpn() const { +inline bool ComponentsFile_BomDescriptionRecord::has_vpl_mpn() const { bool value = (_impl_._has_bits_[0] & 0x00000010u) != 0; return value; } -inline bool ComponentsFile_BomDescriptionRecord::has_vpl_mpn() const { - return _internal_has_vpl_mpn(); -} inline void ComponentsFile_BomDescriptionRecord::clear_vpl_mpn() { + ::google::protobuf::internal::TSanWrite(&_impl_); _impl_.vpl_mpn_.ClearToEmpty(); _impl_._has_bits_[0] &= ~0x00000010u; } -inline const std::string& ComponentsFile_BomDescriptionRecord::vpl_mpn() const { +inline const std::string& ComponentsFile_BomDescriptionRecord::vpl_mpn() const + ABSL_ATTRIBUTE_LIFETIME_BOUND { // @@protoc_insertion_point(field_get:Odb.Lib.Protobuf.ComponentsFile.BomDescriptionRecord.vpl_mpn) return _internal_vpl_mpn(); } -template -inline PROTOBUF_ALWAYS_INLINE -void ComponentsFile_BomDescriptionRecord::set_vpl_mpn(ArgT0&& arg0, ArgT... args) { - _impl_._has_bits_[0] |= 0x00000010u; - _impl_.vpl_mpn_.Set(static_cast(arg0), args..., GetArenaForAllocation()); +template +inline PROTOBUF_ALWAYS_INLINE void ComponentsFile_BomDescriptionRecord::set_vpl_mpn(Arg_&& arg, + Args_... args) { + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_._has_bits_[0] |= 0x00000010u; + _impl_.vpl_mpn_.Set(static_cast(arg), args..., GetArena()); // @@protoc_insertion_point(field_set:Odb.Lib.Protobuf.ComponentsFile.BomDescriptionRecord.vpl_mpn) } -inline std::string* ComponentsFile_BomDescriptionRecord::mutable_vpl_mpn() { +inline std::string* ComponentsFile_BomDescriptionRecord::mutable_vpl_mpn() ABSL_ATTRIBUTE_LIFETIME_BOUND { std::string* _s = _internal_mutable_vpl_mpn(); // @@protoc_insertion_point(field_mutable:Odb.Lib.Protobuf.ComponentsFile.BomDescriptionRecord.vpl_mpn) return _s; } inline const std::string& ComponentsFile_BomDescriptionRecord::_internal_vpl_mpn() const { + ::google::protobuf::internal::TSanRead(&_impl_); return _impl_.vpl_mpn_.Get(); } inline void ComponentsFile_BomDescriptionRecord::_internal_set_vpl_mpn(const std::string& value) { + ::google::protobuf::internal::TSanWrite(&_impl_); _impl_._has_bits_[0] |= 0x00000010u; - _impl_.vpl_mpn_.Set(value, GetArenaForAllocation()); + _impl_.vpl_mpn_.Set(value, GetArena()); } inline std::string* ComponentsFile_BomDescriptionRecord::_internal_mutable_vpl_mpn() { + ::google::protobuf::internal::TSanWrite(&_impl_); _impl_._has_bits_[0] |= 0x00000010u; - return _impl_.vpl_mpn_.Mutable(GetArenaForAllocation()); + return _impl_.vpl_mpn_.Mutable( GetArena()); } inline std::string* ComponentsFile_BomDescriptionRecord::release_vpl_mpn() { + ::google::protobuf::internal::TSanWrite(&_impl_); // @@protoc_insertion_point(field_release:Odb.Lib.Protobuf.ComponentsFile.BomDescriptionRecord.vpl_mpn) - if (!_internal_has_vpl_mpn()) { + if ((_impl_._has_bits_[0] & 0x00000010u) == 0) { return nullptr; } _impl_._has_bits_[0] &= ~0x00000010u; - auto* p = _impl_.vpl_mpn_.Release(); -#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (_impl_.vpl_mpn_.IsDefault()) { - _impl_.vpl_mpn_.Set("", GetArenaForAllocation()); + auto* released = _impl_.vpl_mpn_.Release(); + if (::google::protobuf::internal::DebugHardenForceCopyDefaultString()) { + _impl_.vpl_mpn_.Set("", GetArena()); } -#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING - return p; + return released; } -inline void ComponentsFile_BomDescriptionRecord::set_allocated_vpl_mpn(std::string* vpl_mpn) { - if (vpl_mpn != nullptr) { +inline void ComponentsFile_BomDescriptionRecord::set_allocated_vpl_mpn(std::string* value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + if (value != nullptr) { _impl_._has_bits_[0] |= 0x00000010u; } else { _impl_._has_bits_[0] &= ~0x00000010u; } - _impl_.vpl_mpn_.SetAllocated(vpl_mpn, GetArenaForAllocation()); -#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (_impl_.vpl_mpn_.IsDefault()) { - _impl_.vpl_mpn_.Set("", GetArenaForAllocation()); + _impl_.vpl_mpn_.SetAllocated(value, GetArena()); + if (::google::protobuf::internal::DebugHardenForceCopyDefaultString() && _impl_.vpl_mpn_.IsDefault()) { + _impl_.vpl_mpn_.Set("", GetArena()); } -#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING // @@protoc_insertion_point(field_set_allocated:Odb.Lib.Protobuf.ComponentsFile.BomDescriptionRecord.vpl_mpn) } // optional string vnd = 7; -inline bool ComponentsFile_BomDescriptionRecord::_internal_has_vnd() const { +inline bool ComponentsFile_BomDescriptionRecord::has_vnd() const { bool value = (_impl_._has_bits_[0] & 0x00000020u) != 0; return value; } -inline bool ComponentsFile_BomDescriptionRecord::has_vnd() const { - return _internal_has_vnd(); -} inline void ComponentsFile_BomDescriptionRecord::clear_vnd() { + ::google::protobuf::internal::TSanWrite(&_impl_); _impl_.vnd_.ClearToEmpty(); _impl_._has_bits_[0] &= ~0x00000020u; } -inline const std::string& ComponentsFile_BomDescriptionRecord::vnd() const { +inline const std::string& ComponentsFile_BomDescriptionRecord::vnd() const + ABSL_ATTRIBUTE_LIFETIME_BOUND { // @@protoc_insertion_point(field_get:Odb.Lib.Protobuf.ComponentsFile.BomDescriptionRecord.vnd) return _internal_vnd(); } -template -inline PROTOBUF_ALWAYS_INLINE -void ComponentsFile_BomDescriptionRecord::set_vnd(ArgT0&& arg0, ArgT... args) { - _impl_._has_bits_[0] |= 0x00000020u; - _impl_.vnd_.Set(static_cast(arg0), args..., GetArenaForAllocation()); +template +inline PROTOBUF_ALWAYS_INLINE void ComponentsFile_BomDescriptionRecord::set_vnd(Arg_&& arg, + Args_... args) { + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_._has_bits_[0] |= 0x00000020u; + _impl_.vnd_.Set(static_cast(arg), args..., GetArena()); // @@protoc_insertion_point(field_set:Odb.Lib.Protobuf.ComponentsFile.BomDescriptionRecord.vnd) } -inline std::string* ComponentsFile_BomDescriptionRecord::mutable_vnd() { +inline std::string* ComponentsFile_BomDescriptionRecord::mutable_vnd() ABSL_ATTRIBUTE_LIFETIME_BOUND { std::string* _s = _internal_mutable_vnd(); // @@protoc_insertion_point(field_mutable:Odb.Lib.Protobuf.ComponentsFile.BomDescriptionRecord.vnd) return _s; } inline const std::string& ComponentsFile_BomDescriptionRecord::_internal_vnd() const { + ::google::protobuf::internal::TSanRead(&_impl_); return _impl_.vnd_.Get(); } inline void ComponentsFile_BomDescriptionRecord::_internal_set_vnd(const std::string& value) { + ::google::protobuf::internal::TSanWrite(&_impl_); _impl_._has_bits_[0] |= 0x00000020u; - _impl_.vnd_.Set(value, GetArenaForAllocation()); + _impl_.vnd_.Set(value, GetArena()); } inline std::string* ComponentsFile_BomDescriptionRecord::_internal_mutable_vnd() { + ::google::protobuf::internal::TSanWrite(&_impl_); _impl_._has_bits_[0] |= 0x00000020u; - return _impl_.vnd_.Mutable(GetArenaForAllocation()); + return _impl_.vnd_.Mutable( GetArena()); } inline std::string* ComponentsFile_BomDescriptionRecord::release_vnd() { + ::google::protobuf::internal::TSanWrite(&_impl_); // @@protoc_insertion_point(field_release:Odb.Lib.Protobuf.ComponentsFile.BomDescriptionRecord.vnd) - if (!_internal_has_vnd()) { + if ((_impl_._has_bits_[0] & 0x00000020u) == 0) { return nullptr; } _impl_._has_bits_[0] &= ~0x00000020u; - auto* p = _impl_.vnd_.Release(); -#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (_impl_.vnd_.IsDefault()) { - _impl_.vnd_.Set("", GetArenaForAllocation()); + auto* released = _impl_.vnd_.Release(); + if (::google::protobuf::internal::DebugHardenForceCopyDefaultString()) { + _impl_.vnd_.Set("", GetArena()); } -#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING - return p; + return released; } -inline void ComponentsFile_BomDescriptionRecord::set_allocated_vnd(std::string* vnd) { - if (vnd != nullptr) { +inline void ComponentsFile_BomDescriptionRecord::set_allocated_vnd(std::string* value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + if (value != nullptr) { _impl_._has_bits_[0] |= 0x00000020u; } else { _impl_._has_bits_[0] &= ~0x00000020u; } - _impl_.vnd_.SetAllocated(vnd, GetArenaForAllocation()); -#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (_impl_.vnd_.IsDefault()) { - _impl_.vnd_.Set("", GetArenaForAllocation()); + _impl_.vnd_.SetAllocated(value, GetArena()); + if (::google::protobuf::internal::DebugHardenForceCopyDefaultString() && _impl_.vnd_.IsDefault()) { + _impl_.vnd_.Set("", GetArena()); } -#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING // @@protoc_insertion_point(field_set_allocated:Odb.Lib.Protobuf.ComponentsFile.BomDescriptionRecord.vnd) } // optional string mpn = 8; -inline bool ComponentsFile_BomDescriptionRecord::_internal_has_mpn() const { +inline bool ComponentsFile_BomDescriptionRecord::has_mpn() const { bool value = (_impl_._has_bits_[0] & 0x00000040u) != 0; return value; } -inline bool ComponentsFile_BomDescriptionRecord::has_mpn() const { - return _internal_has_mpn(); -} inline void ComponentsFile_BomDescriptionRecord::clear_mpn() { + ::google::protobuf::internal::TSanWrite(&_impl_); _impl_.mpn_.ClearToEmpty(); _impl_._has_bits_[0] &= ~0x00000040u; } -inline const std::string& ComponentsFile_BomDescriptionRecord::mpn() const { +inline const std::string& ComponentsFile_BomDescriptionRecord::mpn() const + ABSL_ATTRIBUTE_LIFETIME_BOUND { // @@protoc_insertion_point(field_get:Odb.Lib.Protobuf.ComponentsFile.BomDescriptionRecord.mpn) return _internal_mpn(); } -template -inline PROTOBUF_ALWAYS_INLINE -void ComponentsFile_BomDescriptionRecord::set_mpn(ArgT0&& arg0, ArgT... args) { - _impl_._has_bits_[0] |= 0x00000040u; - _impl_.mpn_.Set(static_cast(arg0), args..., GetArenaForAllocation()); +template +inline PROTOBUF_ALWAYS_INLINE void ComponentsFile_BomDescriptionRecord::set_mpn(Arg_&& arg, + Args_... args) { + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_._has_bits_[0] |= 0x00000040u; + _impl_.mpn_.Set(static_cast(arg), args..., GetArena()); // @@protoc_insertion_point(field_set:Odb.Lib.Protobuf.ComponentsFile.BomDescriptionRecord.mpn) } -inline std::string* ComponentsFile_BomDescriptionRecord::mutable_mpn() { +inline std::string* ComponentsFile_BomDescriptionRecord::mutable_mpn() ABSL_ATTRIBUTE_LIFETIME_BOUND { std::string* _s = _internal_mutable_mpn(); // @@protoc_insertion_point(field_mutable:Odb.Lib.Protobuf.ComponentsFile.BomDescriptionRecord.mpn) return _s; } inline const std::string& ComponentsFile_BomDescriptionRecord::_internal_mpn() const { + ::google::protobuf::internal::TSanRead(&_impl_); return _impl_.mpn_.Get(); } inline void ComponentsFile_BomDescriptionRecord::_internal_set_mpn(const std::string& value) { + ::google::protobuf::internal::TSanWrite(&_impl_); _impl_._has_bits_[0] |= 0x00000040u; - _impl_.mpn_.Set(value, GetArenaForAllocation()); + _impl_.mpn_.Set(value, GetArena()); } inline std::string* ComponentsFile_BomDescriptionRecord::_internal_mutable_mpn() { + ::google::protobuf::internal::TSanWrite(&_impl_); _impl_._has_bits_[0] |= 0x00000040u; - return _impl_.mpn_.Mutable(GetArenaForAllocation()); + return _impl_.mpn_.Mutable( GetArena()); } inline std::string* ComponentsFile_BomDescriptionRecord::release_mpn() { + ::google::protobuf::internal::TSanWrite(&_impl_); // @@protoc_insertion_point(field_release:Odb.Lib.Protobuf.ComponentsFile.BomDescriptionRecord.mpn) - if (!_internal_has_mpn()) { + if ((_impl_._has_bits_[0] & 0x00000040u) == 0) { return nullptr; } _impl_._has_bits_[0] &= ~0x00000040u; - auto* p = _impl_.mpn_.Release(); -#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (_impl_.mpn_.IsDefault()) { - _impl_.mpn_.Set("", GetArenaForAllocation()); + auto* released = _impl_.mpn_.Release(); + if (::google::protobuf::internal::DebugHardenForceCopyDefaultString()) { + _impl_.mpn_.Set("", GetArena()); } -#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING - return p; + return released; } -inline void ComponentsFile_BomDescriptionRecord::set_allocated_mpn(std::string* mpn) { - if (mpn != nullptr) { +inline void ComponentsFile_BomDescriptionRecord::set_allocated_mpn(std::string* value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + if (value != nullptr) { _impl_._has_bits_[0] |= 0x00000040u; } else { _impl_._has_bits_[0] &= ~0x00000040u; } - _impl_.mpn_.SetAllocated(mpn, GetArenaForAllocation()); -#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (_impl_.mpn_.IsDefault()) { - _impl_.mpn_.Set("", GetArenaForAllocation()); + _impl_.mpn_.SetAllocated(value, GetArena()); + if (::google::protobuf::internal::DebugHardenForceCopyDefaultString() && _impl_.mpn_.IsDefault()) { + _impl_.mpn_.Set("", GetArena()); } -#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING // @@protoc_insertion_point(field_set_allocated:Odb.Lib.Protobuf.ComponentsFile.BomDescriptionRecord.mpn) } @@ -2903,669 +3069,651 @@ inline void ComponentsFile_BomDescriptionRecord::set_allocated_mpn(std::string* // ComponentsFile // optional string units = 1; -inline bool ComponentsFile::_internal_has_units() const { +inline bool ComponentsFile::has_units() const { bool value = (_impl_._has_bits_[0] & 0x00000001u) != 0; return value; } -inline bool ComponentsFile::has_units() const { - return _internal_has_units(); -} inline void ComponentsFile::clear_units() { + ::google::protobuf::internal::TSanWrite(&_impl_); _impl_.units_.ClearToEmpty(); _impl_._has_bits_[0] &= ~0x00000001u; } -inline const std::string& ComponentsFile::units() const { +inline const std::string& ComponentsFile::units() const + ABSL_ATTRIBUTE_LIFETIME_BOUND { // @@protoc_insertion_point(field_get:Odb.Lib.Protobuf.ComponentsFile.units) return _internal_units(); } -template -inline PROTOBUF_ALWAYS_INLINE -void ComponentsFile::set_units(ArgT0&& arg0, ArgT... args) { - _impl_._has_bits_[0] |= 0x00000001u; - _impl_.units_.Set(static_cast(arg0), args..., GetArenaForAllocation()); +template +inline PROTOBUF_ALWAYS_INLINE void ComponentsFile::set_units(Arg_&& arg, + Args_... args) { + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_._has_bits_[0] |= 0x00000001u; + _impl_.units_.Set(static_cast(arg), args..., GetArena()); // @@protoc_insertion_point(field_set:Odb.Lib.Protobuf.ComponentsFile.units) } -inline std::string* ComponentsFile::mutable_units() { +inline std::string* ComponentsFile::mutable_units() ABSL_ATTRIBUTE_LIFETIME_BOUND { std::string* _s = _internal_mutable_units(); // @@protoc_insertion_point(field_mutable:Odb.Lib.Protobuf.ComponentsFile.units) return _s; } inline const std::string& ComponentsFile::_internal_units() const { + ::google::protobuf::internal::TSanRead(&_impl_); return _impl_.units_.Get(); } inline void ComponentsFile::_internal_set_units(const std::string& value) { + ::google::protobuf::internal::TSanWrite(&_impl_); _impl_._has_bits_[0] |= 0x00000001u; - _impl_.units_.Set(value, GetArenaForAllocation()); + _impl_.units_.Set(value, GetArena()); } inline std::string* ComponentsFile::_internal_mutable_units() { + ::google::protobuf::internal::TSanWrite(&_impl_); _impl_._has_bits_[0] |= 0x00000001u; - return _impl_.units_.Mutable(GetArenaForAllocation()); + return _impl_.units_.Mutable( GetArena()); } inline std::string* ComponentsFile::release_units() { + ::google::protobuf::internal::TSanWrite(&_impl_); // @@protoc_insertion_point(field_release:Odb.Lib.Protobuf.ComponentsFile.units) - if (!_internal_has_units()) { + if ((_impl_._has_bits_[0] & 0x00000001u) == 0) { return nullptr; } _impl_._has_bits_[0] &= ~0x00000001u; - auto* p = _impl_.units_.Release(); -#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (_impl_.units_.IsDefault()) { - _impl_.units_.Set("", GetArenaForAllocation()); + auto* released = _impl_.units_.Release(); + if (::google::protobuf::internal::DebugHardenForceCopyDefaultString()) { + _impl_.units_.Set("", GetArena()); } -#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING - return p; + return released; } -inline void ComponentsFile::set_allocated_units(std::string* units) { - if (units != nullptr) { +inline void ComponentsFile::set_allocated_units(std::string* value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + if (value != nullptr) { _impl_._has_bits_[0] |= 0x00000001u; } else { _impl_._has_bits_[0] &= ~0x00000001u; } - _impl_.units_.SetAllocated(units, GetArenaForAllocation()); -#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (_impl_.units_.IsDefault()) { - _impl_.units_.Set("", GetArenaForAllocation()); + _impl_.units_.SetAllocated(value, GetArena()); + if (::google::protobuf::internal::DebugHardenForceCopyDefaultString() && _impl_.units_.IsDefault()) { + _impl_.units_.Set("", GetArena()); } -#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING // @@protoc_insertion_point(field_set_allocated:Odb.Lib.Protobuf.ComponentsFile.units) } // optional uint32 id = 2; -inline bool ComponentsFile::_internal_has_id() const { +inline bool ComponentsFile::has_id() const { bool value = (_impl_._has_bits_[0] & 0x00000010u) != 0; return value; } -inline bool ComponentsFile::has_id() const { - return _internal_has_id(); -} inline void ComponentsFile::clear_id() { + ::google::protobuf::internal::TSanWrite(&_impl_); _impl_.id_ = 0u; _impl_._has_bits_[0] &= ~0x00000010u; } -inline uint32_t ComponentsFile::_internal_id() const { - return _impl_.id_; -} -inline uint32_t ComponentsFile::id() const { +inline ::uint32_t ComponentsFile::id() const { // @@protoc_insertion_point(field_get:Odb.Lib.Protobuf.ComponentsFile.id) return _internal_id(); } -inline void ComponentsFile::_internal_set_id(uint32_t value) { - _impl_._has_bits_[0] |= 0x00000010u; - _impl_.id_ = value; -} -inline void ComponentsFile::set_id(uint32_t value) { +inline void ComponentsFile::set_id(::uint32_t value) { _internal_set_id(value); + _impl_._has_bits_[0] |= 0x00000010u; // @@protoc_insertion_point(field_set:Odb.Lib.Protobuf.ComponentsFile.id) } +inline ::uint32_t ComponentsFile::_internal_id() const { + ::google::protobuf::internal::TSanRead(&_impl_); + return _impl_.id_; +} +inline void ComponentsFile::_internal_set_id(::uint32_t value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.id_ = value; +} // optional .Odb.Lib.Protobuf.BoardSide side = 3; -inline bool ComponentsFile::_internal_has_side() const { +inline bool ComponentsFile::has_side() const { bool value = (_impl_._has_bits_[0] & 0x00000020u) != 0; return value; } -inline bool ComponentsFile::has_side() const { - return _internal_has_side(); -} inline void ComponentsFile::clear_side() { + ::google::protobuf::internal::TSanWrite(&_impl_); _impl_.side_ = 0; _impl_._has_bits_[0] &= ~0x00000020u; } -inline ::Odb::Lib::Protobuf::BoardSide ComponentsFile::_internal_side() const { - return static_cast< ::Odb::Lib::Protobuf::BoardSide >(_impl_.side_); -} inline ::Odb::Lib::Protobuf::BoardSide ComponentsFile::side() const { // @@protoc_insertion_point(field_get:Odb.Lib.Protobuf.ComponentsFile.side) return _internal_side(); } -inline void ComponentsFile::_internal_set_side(::Odb::Lib::Protobuf::BoardSide value) { - _impl_._has_bits_[0] |= 0x00000020u; - _impl_.side_ = value; -} inline void ComponentsFile::set_side(::Odb::Lib::Protobuf::BoardSide value) { _internal_set_side(value); + _impl_._has_bits_[0] |= 0x00000020u; // @@protoc_insertion_point(field_set:Odb.Lib.Protobuf.ComponentsFile.side) } +inline ::Odb::Lib::Protobuf::BoardSide ComponentsFile::_internal_side() const { + ::google::protobuf::internal::TSanRead(&_impl_); + return static_cast<::Odb::Lib::Protobuf::BoardSide>(_impl_.side_); +} +inline void ComponentsFile::_internal_set_side(::Odb::Lib::Protobuf::BoardSide value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.side_ = value; +} // optional string layerName = 4; -inline bool ComponentsFile::_internal_has_layername() const { +inline bool ComponentsFile::has_layername() const { bool value = (_impl_._has_bits_[0] & 0x00000002u) != 0; return value; } -inline bool ComponentsFile::has_layername() const { - return _internal_has_layername(); -} inline void ComponentsFile::clear_layername() { + ::google::protobuf::internal::TSanWrite(&_impl_); _impl_.layername_.ClearToEmpty(); _impl_._has_bits_[0] &= ~0x00000002u; } -inline const std::string& ComponentsFile::layername() const { +inline const std::string& ComponentsFile::layername() const + ABSL_ATTRIBUTE_LIFETIME_BOUND { // @@protoc_insertion_point(field_get:Odb.Lib.Protobuf.ComponentsFile.layerName) return _internal_layername(); } -template -inline PROTOBUF_ALWAYS_INLINE -void ComponentsFile::set_layername(ArgT0&& arg0, ArgT... args) { - _impl_._has_bits_[0] |= 0x00000002u; - _impl_.layername_.Set(static_cast(arg0), args..., GetArenaForAllocation()); +template +inline PROTOBUF_ALWAYS_INLINE void ComponentsFile::set_layername(Arg_&& arg, + Args_... args) { + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_._has_bits_[0] |= 0x00000002u; + _impl_.layername_.Set(static_cast(arg), args..., GetArena()); // @@protoc_insertion_point(field_set:Odb.Lib.Protobuf.ComponentsFile.layerName) } -inline std::string* ComponentsFile::mutable_layername() { +inline std::string* ComponentsFile::mutable_layername() ABSL_ATTRIBUTE_LIFETIME_BOUND { std::string* _s = _internal_mutable_layername(); // @@protoc_insertion_point(field_mutable:Odb.Lib.Protobuf.ComponentsFile.layerName) return _s; } inline const std::string& ComponentsFile::_internal_layername() const { + ::google::protobuf::internal::TSanRead(&_impl_); return _impl_.layername_.Get(); } inline void ComponentsFile::_internal_set_layername(const std::string& value) { + ::google::protobuf::internal::TSanWrite(&_impl_); _impl_._has_bits_[0] |= 0x00000002u; - _impl_.layername_.Set(value, GetArenaForAllocation()); + _impl_.layername_.Set(value, GetArena()); } inline std::string* ComponentsFile::_internal_mutable_layername() { + ::google::protobuf::internal::TSanWrite(&_impl_); _impl_._has_bits_[0] |= 0x00000002u; - return _impl_.layername_.Mutable(GetArenaForAllocation()); + return _impl_.layername_.Mutable( GetArena()); } inline std::string* ComponentsFile::release_layername() { + ::google::protobuf::internal::TSanWrite(&_impl_); // @@protoc_insertion_point(field_release:Odb.Lib.Protobuf.ComponentsFile.layerName) - if (!_internal_has_layername()) { + if ((_impl_._has_bits_[0] & 0x00000002u) == 0) { return nullptr; } _impl_._has_bits_[0] &= ~0x00000002u; - auto* p = _impl_.layername_.Release(); -#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (_impl_.layername_.IsDefault()) { - _impl_.layername_.Set("", GetArenaForAllocation()); + auto* released = _impl_.layername_.Release(); + if (::google::protobuf::internal::DebugHardenForceCopyDefaultString()) { + _impl_.layername_.Set("", GetArena()); } -#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING - return p; + return released; } -inline void ComponentsFile::set_allocated_layername(std::string* layername) { - if (layername != nullptr) { +inline void ComponentsFile::set_allocated_layername(std::string* value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + if (value != nullptr) { _impl_._has_bits_[0] |= 0x00000002u; } else { _impl_._has_bits_[0] &= ~0x00000002u; } - _impl_.layername_.SetAllocated(layername, GetArenaForAllocation()); -#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (_impl_.layername_.IsDefault()) { - _impl_.layername_.Set("", GetArenaForAllocation()); + _impl_.layername_.SetAllocated(value, GetArena()); + if (::google::protobuf::internal::DebugHardenForceCopyDefaultString() && _impl_.layername_.IsDefault()) { + _impl_.layername_.Set("", GetArena()); } -#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING // @@protoc_insertion_point(field_set_allocated:Odb.Lib.Protobuf.ComponentsFile.layerName) } // optional string path = 5; -inline bool ComponentsFile::_internal_has_path() const { +inline bool ComponentsFile::has_path() const { bool value = (_impl_._has_bits_[0] & 0x00000004u) != 0; return value; } -inline bool ComponentsFile::has_path() const { - return _internal_has_path(); -} inline void ComponentsFile::clear_path() { + ::google::protobuf::internal::TSanWrite(&_impl_); _impl_.path_.ClearToEmpty(); _impl_._has_bits_[0] &= ~0x00000004u; } -inline const std::string& ComponentsFile::path() const { +inline const std::string& ComponentsFile::path() const + ABSL_ATTRIBUTE_LIFETIME_BOUND { // @@protoc_insertion_point(field_get:Odb.Lib.Protobuf.ComponentsFile.path) return _internal_path(); } -template -inline PROTOBUF_ALWAYS_INLINE -void ComponentsFile::set_path(ArgT0&& arg0, ArgT... args) { - _impl_._has_bits_[0] |= 0x00000004u; - _impl_.path_.Set(static_cast(arg0), args..., GetArenaForAllocation()); +template +inline PROTOBUF_ALWAYS_INLINE void ComponentsFile::set_path(Arg_&& arg, + Args_... args) { + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_._has_bits_[0] |= 0x00000004u; + _impl_.path_.Set(static_cast(arg), args..., GetArena()); // @@protoc_insertion_point(field_set:Odb.Lib.Protobuf.ComponentsFile.path) } -inline std::string* ComponentsFile::mutable_path() { +inline std::string* ComponentsFile::mutable_path() ABSL_ATTRIBUTE_LIFETIME_BOUND { std::string* _s = _internal_mutable_path(); // @@protoc_insertion_point(field_mutable:Odb.Lib.Protobuf.ComponentsFile.path) return _s; } inline const std::string& ComponentsFile::_internal_path() const { + ::google::protobuf::internal::TSanRead(&_impl_); return _impl_.path_.Get(); } inline void ComponentsFile::_internal_set_path(const std::string& value) { + ::google::protobuf::internal::TSanWrite(&_impl_); _impl_._has_bits_[0] |= 0x00000004u; - _impl_.path_.Set(value, GetArenaForAllocation()); + _impl_.path_.Set(value, GetArena()); } inline std::string* ComponentsFile::_internal_mutable_path() { + ::google::protobuf::internal::TSanWrite(&_impl_); _impl_._has_bits_[0] |= 0x00000004u; - return _impl_.path_.Mutable(GetArenaForAllocation()); + return _impl_.path_.Mutable( GetArena()); } inline std::string* ComponentsFile::release_path() { + ::google::protobuf::internal::TSanWrite(&_impl_); // @@protoc_insertion_point(field_release:Odb.Lib.Protobuf.ComponentsFile.path) - if (!_internal_has_path()) { + if ((_impl_._has_bits_[0] & 0x00000004u) == 0) { return nullptr; } _impl_._has_bits_[0] &= ~0x00000004u; - auto* p = _impl_.path_.Release(); -#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (_impl_.path_.IsDefault()) { - _impl_.path_.Set("", GetArenaForAllocation()); + auto* released = _impl_.path_.Release(); + if (::google::protobuf::internal::DebugHardenForceCopyDefaultString()) { + _impl_.path_.Set("", GetArena()); } -#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING - return p; + return released; } -inline void ComponentsFile::set_allocated_path(std::string* path) { - if (path != nullptr) { +inline void ComponentsFile::set_allocated_path(std::string* value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + if (value != nullptr) { _impl_._has_bits_[0] |= 0x00000004u; } else { _impl_._has_bits_[0] &= ~0x00000004u; } - _impl_.path_.SetAllocated(path, GetArenaForAllocation()); -#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (_impl_.path_.IsDefault()) { - _impl_.path_.Set("", GetArenaForAllocation()); + _impl_.path_.SetAllocated(value, GetArena()); + if (::google::protobuf::internal::DebugHardenForceCopyDefaultString() && _impl_.path_.IsDefault()) { + _impl_.path_.Set("", GetArena()); } -#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING // @@protoc_insertion_point(field_set_allocated:Odb.Lib.Protobuf.ComponentsFile.path) } // optional string directory = 6; -inline bool ComponentsFile::_internal_has_directory() const { +inline bool ComponentsFile::has_directory() const { bool value = (_impl_._has_bits_[0] & 0x00000008u) != 0; return value; } -inline bool ComponentsFile::has_directory() const { - return _internal_has_directory(); -} inline void ComponentsFile::clear_directory() { + ::google::protobuf::internal::TSanWrite(&_impl_); _impl_.directory_.ClearToEmpty(); _impl_._has_bits_[0] &= ~0x00000008u; } -inline const std::string& ComponentsFile::directory() const { +inline const std::string& ComponentsFile::directory() const + ABSL_ATTRIBUTE_LIFETIME_BOUND { // @@protoc_insertion_point(field_get:Odb.Lib.Protobuf.ComponentsFile.directory) return _internal_directory(); } -template -inline PROTOBUF_ALWAYS_INLINE -void ComponentsFile::set_directory(ArgT0&& arg0, ArgT... args) { - _impl_._has_bits_[0] |= 0x00000008u; - _impl_.directory_.Set(static_cast(arg0), args..., GetArenaForAllocation()); +template +inline PROTOBUF_ALWAYS_INLINE void ComponentsFile::set_directory(Arg_&& arg, + Args_... args) { + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_._has_bits_[0] |= 0x00000008u; + _impl_.directory_.Set(static_cast(arg), args..., GetArena()); // @@protoc_insertion_point(field_set:Odb.Lib.Protobuf.ComponentsFile.directory) } -inline std::string* ComponentsFile::mutable_directory() { +inline std::string* ComponentsFile::mutable_directory() ABSL_ATTRIBUTE_LIFETIME_BOUND { std::string* _s = _internal_mutable_directory(); // @@protoc_insertion_point(field_mutable:Odb.Lib.Protobuf.ComponentsFile.directory) return _s; } inline const std::string& ComponentsFile::_internal_directory() const { + ::google::protobuf::internal::TSanRead(&_impl_); return _impl_.directory_.Get(); } inline void ComponentsFile::_internal_set_directory(const std::string& value) { + ::google::protobuf::internal::TSanWrite(&_impl_); _impl_._has_bits_[0] |= 0x00000008u; - _impl_.directory_.Set(value, GetArenaForAllocation()); + _impl_.directory_.Set(value, GetArena()); } inline std::string* ComponentsFile::_internal_mutable_directory() { + ::google::protobuf::internal::TSanWrite(&_impl_); _impl_._has_bits_[0] |= 0x00000008u; - return _impl_.directory_.Mutable(GetArenaForAllocation()); + return _impl_.directory_.Mutable( GetArena()); } inline std::string* ComponentsFile::release_directory() { + ::google::protobuf::internal::TSanWrite(&_impl_); // @@protoc_insertion_point(field_release:Odb.Lib.Protobuf.ComponentsFile.directory) - if (!_internal_has_directory()) { + if ((_impl_._has_bits_[0] & 0x00000008u) == 0) { return nullptr; } _impl_._has_bits_[0] &= ~0x00000008u; - auto* p = _impl_.directory_.Release(); -#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (_impl_.directory_.IsDefault()) { - _impl_.directory_.Set("", GetArenaForAllocation()); + auto* released = _impl_.directory_.Release(); + if (::google::protobuf::internal::DebugHardenForceCopyDefaultString()) { + _impl_.directory_.Set("", GetArena()); } -#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING - return p; + return released; } -inline void ComponentsFile::set_allocated_directory(std::string* directory) { - if (directory != nullptr) { +inline void ComponentsFile::set_allocated_directory(std::string* value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + if (value != nullptr) { _impl_._has_bits_[0] |= 0x00000008u; } else { _impl_._has_bits_[0] &= ~0x00000008u; } - _impl_.directory_.SetAllocated(directory, GetArenaForAllocation()); -#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (_impl_.directory_.IsDefault()) { - _impl_.directory_.Set("", GetArenaForAllocation()); + _impl_.directory_.SetAllocated(value, GetArena()); + if (::google::protobuf::internal::DebugHardenForceCopyDefaultString() && _impl_.directory_.IsDefault()) { + _impl_.directory_.Set("", GetArena()); } -#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING // @@protoc_insertion_point(field_set_allocated:Odb.Lib.Protobuf.ComponentsFile.directory) } // repeated string attributeNames = 7; inline int ComponentsFile::_internal_attributenames_size() const { - return _impl_.attributenames_.size(); + return _internal_attributenames().size(); } inline int ComponentsFile::attributenames_size() const { return _internal_attributenames_size(); } inline void ComponentsFile::clear_attributenames() { + ::google::protobuf::internal::TSanWrite(&_impl_); _impl_.attributenames_.Clear(); } -inline std::string* ComponentsFile::add_attributenames() { - std::string* _s = _internal_add_attributenames(); +inline std::string* ComponentsFile::add_attributenames() ABSL_ATTRIBUTE_LIFETIME_BOUND { + ::google::protobuf::internal::TSanWrite(&_impl_); + std::string* _s = _internal_mutable_attributenames()->Add(); // @@protoc_insertion_point(field_add_mutable:Odb.Lib.Protobuf.ComponentsFile.attributeNames) return _s; } -inline const std::string& ComponentsFile::_internal_attributenames(int index) const { - return _impl_.attributenames_.Get(index); -} -inline const std::string& ComponentsFile::attributenames(int index) const { +inline const std::string& ComponentsFile::attributenames(int index) const + ABSL_ATTRIBUTE_LIFETIME_BOUND { // @@protoc_insertion_point(field_get:Odb.Lib.Protobuf.ComponentsFile.attributeNames) - return _internal_attributenames(index); + return _internal_attributenames().Get(index); } -inline std::string* ComponentsFile::mutable_attributenames(int index) { +inline std::string* ComponentsFile::mutable_attributenames(int index) + ABSL_ATTRIBUTE_LIFETIME_BOUND { // @@protoc_insertion_point(field_mutable:Odb.Lib.Protobuf.ComponentsFile.attributeNames) - return _impl_.attributenames_.Mutable(index); + return _internal_mutable_attributenames()->Mutable(index); } -inline void ComponentsFile::set_attributenames(int index, const std::string& value) { - _impl_.attributenames_.Mutable(index)->assign(value); +template +inline void ComponentsFile::set_attributenames(int index, Arg_&& value, Args_... args) { + ::google::protobuf::internal::AssignToString( + *_internal_mutable_attributenames()->Mutable(index), + std::forward(value), args... ); // @@protoc_insertion_point(field_set:Odb.Lib.Protobuf.ComponentsFile.attributeNames) } -inline void ComponentsFile::set_attributenames(int index, std::string&& value) { - _impl_.attributenames_.Mutable(index)->assign(std::move(value)); - // @@protoc_insertion_point(field_set:Odb.Lib.Protobuf.ComponentsFile.attributeNames) -} -inline void ComponentsFile::set_attributenames(int index, const char* value) { - GOOGLE_DCHECK(value != nullptr); - _impl_.attributenames_.Mutable(index)->assign(value); - // @@protoc_insertion_point(field_set_char:Odb.Lib.Protobuf.ComponentsFile.attributeNames) -} -inline void ComponentsFile::set_attributenames(int index, const char* value, size_t size) { - _impl_.attributenames_.Mutable(index)->assign( - reinterpret_cast(value), size); - // @@protoc_insertion_point(field_set_pointer:Odb.Lib.Protobuf.ComponentsFile.attributeNames) -} -inline std::string* ComponentsFile::_internal_add_attributenames() { - return _impl_.attributenames_.Add(); -} -inline void ComponentsFile::add_attributenames(const std::string& value) { - _impl_.attributenames_.Add()->assign(value); - // @@protoc_insertion_point(field_add:Odb.Lib.Protobuf.ComponentsFile.attributeNames) -} -inline void ComponentsFile::add_attributenames(std::string&& value) { - _impl_.attributenames_.Add(std::move(value)); +template +inline void ComponentsFile::add_attributenames(Arg_&& value, Args_... args) { + ::google::protobuf::internal::TSanWrite(&_impl_); + ::google::protobuf::internal::AddToRepeatedPtrField(*_internal_mutable_attributenames(), + std::forward(value), + args... ); // @@protoc_insertion_point(field_add:Odb.Lib.Protobuf.ComponentsFile.attributeNames) } -inline void ComponentsFile::add_attributenames(const char* value) { - GOOGLE_DCHECK(value != nullptr); - _impl_.attributenames_.Add()->assign(value); - // @@protoc_insertion_point(field_add_char:Odb.Lib.Protobuf.ComponentsFile.attributeNames) +inline const ::google::protobuf::RepeatedPtrField& +ComponentsFile::attributenames() const ABSL_ATTRIBUTE_LIFETIME_BOUND { + // @@protoc_insertion_point(field_list:Odb.Lib.Protobuf.ComponentsFile.attributeNames) + return _internal_attributenames(); } -inline void ComponentsFile::add_attributenames(const char* value, size_t size) { - _impl_.attributenames_.Add()->assign(reinterpret_cast(value), size); - // @@protoc_insertion_point(field_add_pointer:Odb.Lib.Protobuf.ComponentsFile.attributeNames) +inline ::google::protobuf::RepeatedPtrField* +ComponentsFile::mutable_attributenames() ABSL_ATTRIBUTE_LIFETIME_BOUND { + // @@protoc_insertion_point(field_mutable_list:Odb.Lib.Protobuf.ComponentsFile.attributeNames) + ::google::protobuf::internal::TSanWrite(&_impl_); + return _internal_mutable_attributenames(); } -inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField& -ComponentsFile::attributenames() const { - // @@protoc_insertion_point(field_list:Odb.Lib.Protobuf.ComponentsFile.attributeNames) +inline const ::google::protobuf::RepeatedPtrField& +ComponentsFile::_internal_attributenames() const { + ::google::protobuf::internal::TSanRead(&_impl_); return _impl_.attributenames_; } -inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField* -ComponentsFile::mutable_attributenames() { - // @@protoc_insertion_point(field_mutable_list:Odb.Lib.Protobuf.ComponentsFile.attributeNames) +inline ::google::protobuf::RepeatedPtrField* +ComponentsFile::_internal_mutable_attributenames() { + ::google::protobuf::internal::TSanRead(&_impl_); return &_impl_.attributenames_; } // repeated string attributeTextValues = 8; inline int ComponentsFile::_internal_attributetextvalues_size() const { - return _impl_.attributetextvalues_.size(); + return _internal_attributetextvalues().size(); } inline int ComponentsFile::attributetextvalues_size() const { return _internal_attributetextvalues_size(); } inline void ComponentsFile::clear_attributetextvalues() { + ::google::protobuf::internal::TSanWrite(&_impl_); _impl_.attributetextvalues_.Clear(); } -inline std::string* ComponentsFile::add_attributetextvalues() { - std::string* _s = _internal_add_attributetextvalues(); +inline std::string* ComponentsFile::add_attributetextvalues() ABSL_ATTRIBUTE_LIFETIME_BOUND { + ::google::protobuf::internal::TSanWrite(&_impl_); + std::string* _s = _internal_mutable_attributetextvalues()->Add(); // @@protoc_insertion_point(field_add_mutable:Odb.Lib.Protobuf.ComponentsFile.attributeTextValues) return _s; } -inline const std::string& ComponentsFile::_internal_attributetextvalues(int index) const { - return _impl_.attributetextvalues_.Get(index); -} -inline const std::string& ComponentsFile::attributetextvalues(int index) const { +inline const std::string& ComponentsFile::attributetextvalues(int index) const + ABSL_ATTRIBUTE_LIFETIME_BOUND { // @@protoc_insertion_point(field_get:Odb.Lib.Protobuf.ComponentsFile.attributeTextValues) - return _internal_attributetextvalues(index); + return _internal_attributetextvalues().Get(index); } -inline std::string* ComponentsFile::mutable_attributetextvalues(int index) { +inline std::string* ComponentsFile::mutable_attributetextvalues(int index) + ABSL_ATTRIBUTE_LIFETIME_BOUND { // @@protoc_insertion_point(field_mutable:Odb.Lib.Protobuf.ComponentsFile.attributeTextValues) - return _impl_.attributetextvalues_.Mutable(index); + return _internal_mutable_attributetextvalues()->Mutable(index); } -inline void ComponentsFile::set_attributetextvalues(int index, const std::string& value) { - _impl_.attributetextvalues_.Mutable(index)->assign(value); +template +inline void ComponentsFile::set_attributetextvalues(int index, Arg_&& value, Args_... args) { + ::google::protobuf::internal::AssignToString( + *_internal_mutable_attributetextvalues()->Mutable(index), + std::forward(value), args... ); // @@protoc_insertion_point(field_set:Odb.Lib.Protobuf.ComponentsFile.attributeTextValues) } -inline void ComponentsFile::set_attributetextvalues(int index, std::string&& value) { - _impl_.attributetextvalues_.Mutable(index)->assign(std::move(value)); - // @@protoc_insertion_point(field_set:Odb.Lib.Protobuf.ComponentsFile.attributeTextValues) -} -inline void ComponentsFile::set_attributetextvalues(int index, const char* value) { - GOOGLE_DCHECK(value != nullptr); - _impl_.attributetextvalues_.Mutable(index)->assign(value); - // @@protoc_insertion_point(field_set_char:Odb.Lib.Protobuf.ComponentsFile.attributeTextValues) -} -inline void ComponentsFile::set_attributetextvalues(int index, const char* value, size_t size) { - _impl_.attributetextvalues_.Mutable(index)->assign( - reinterpret_cast(value), size); - // @@protoc_insertion_point(field_set_pointer:Odb.Lib.Protobuf.ComponentsFile.attributeTextValues) -} -inline std::string* ComponentsFile::_internal_add_attributetextvalues() { - return _impl_.attributetextvalues_.Add(); -} -inline void ComponentsFile::add_attributetextvalues(const std::string& value) { - _impl_.attributetextvalues_.Add()->assign(value); - // @@protoc_insertion_point(field_add:Odb.Lib.Protobuf.ComponentsFile.attributeTextValues) -} -inline void ComponentsFile::add_attributetextvalues(std::string&& value) { - _impl_.attributetextvalues_.Add(std::move(value)); +template +inline void ComponentsFile::add_attributetextvalues(Arg_&& value, Args_... args) { + ::google::protobuf::internal::TSanWrite(&_impl_); + ::google::protobuf::internal::AddToRepeatedPtrField(*_internal_mutable_attributetextvalues(), + std::forward(value), + args... ); // @@protoc_insertion_point(field_add:Odb.Lib.Protobuf.ComponentsFile.attributeTextValues) } -inline void ComponentsFile::add_attributetextvalues(const char* value) { - GOOGLE_DCHECK(value != nullptr); - _impl_.attributetextvalues_.Add()->assign(value); - // @@protoc_insertion_point(field_add_char:Odb.Lib.Protobuf.ComponentsFile.attributeTextValues) +inline const ::google::protobuf::RepeatedPtrField& +ComponentsFile::attributetextvalues() const ABSL_ATTRIBUTE_LIFETIME_BOUND { + // @@protoc_insertion_point(field_list:Odb.Lib.Protobuf.ComponentsFile.attributeTextValues) + return _internal_attributetextvalues(); } -inline void ComponentsFile::add_attributetextvalues(const char* value, size_t size) { - _impl_.attributetextvalues_.Add()->assign(reinterpret_cast(value), size); - // @@protoc_insertion_point(field_add_pointer:Odb.Lib.Protobuf.ComponentsFile.attributeTextValues) +inline ::google::protobuf::RepeatedPtrField* +ComponentsFile::mutable_attributetextvalues() ABSL_ATTRIBUTE_LIFETIME_BOUND { + // @@protoc_insertion_point(field_mutable_list:Odb.Lib.Protobuf.ComponentsFile.attributeTextValues) + ::google::protobuf::internal::TSanWrite(&_impl_); + return _internal_mutable_attributetextvalues(); } -inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField& -ComponentsFile::attributetextvalues() const { - // @@protoc_insertion_point(field_list:Odb.Lib.Protobuf.ComponentsFile.attributeTextValues) +inline const ::google::protobuf::RepeatedPtrField& +ComponentsFile::_internal_attributetextvalues() const { + ::google::protobuf::internal::TSanRead(&_impl_); return _impl_.attributetextvalues_; } -inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField* -ComponentsFile::mutable_attributetextvalues() { - // @@protoc_insertion_point(field_mutable_list:Odb.Lib.Protobuf.ComponentsFile.attributeTextValues) +inline ::google::protobuf::RepeatedPtrField* +ComponentsFile::_internal_mutable_attributetextvalues() { + ::google::protobuf::internal::TSanRead(&_impl_); return &_impl_.attributetextvalues_; } // repeated .Odb.Lib.Protobuf.ComponentsFile.ComponentRecord componentRecords = 9; inline int ComponentsFile::_internal_componentrecords_size() const { - return _impl_.componentrecords_.size(); + return _internal_componentrecords().size(); } inline int ComponentsFile::componentrecords_size() const { return _internal_componentrecords_size(); } inline void ComponentsFile::clear_componentrecords() { + ::google::protobuf::internal::TSanWrite(&_impl_); _impl_.componentrecords_.Clear(); } -inline ::Odb::Lib::Protobuf::ComponentsFile_ComponentRecord* ComponentsFile::mutable_componentrecords(int index) { +inline ::Odb::Lib::Protobuf::ComponentsFile_ComponentRecord* ComponentsFile::mutable_componentrecords(int index) + ABSL_ATTRIBUTE_LIFETIME_BOUND { // @@protoc_insertion_point(field_mutable:Odb.Lib.Protobuf.ComponentsFile.componentRecords) - return _impl_.componentrecords_.Mutable(index); + return _internal_mutable_componentrecords()->Mutable(index); } -inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::Odb::Lib::Protobuf::ComponentsFile_ComponentRecord >* -ComponentsFile::mutable_componentrecords() { +inline ::google::protobuf::RepeatedPtrField<::Odb::Lib::Protobuf::ComponentsFile_ComponentRecord>* ComponentsFile::mutable_componentrecords() + ABSL_ATTRIBUTE_LIFETIME_BOUND { // @@protoc_insertion_point(field_mutable_list:Odb.Lib.Protobuf.ComponentsFile.componentRecords) - return &_impl_.componentrecords_; + ::google::protobuf::internal::TSanWrite(&_impl_); + return _internal_mutable_componentrecords(); } -inline const ::Odb::Lib::Protobuf::ComponentsFile_ComponentRecord& ComponentsFile::_internal_componentrecords(int index) const { - return _impl_.componentrecords_.Get(index); -} -inline const ::Odb::Lib::Protobuf::ComponentsFile_ComponentRecord& ComponentsFile::componentrecords(int index) const { +inline const ::Odb::Lib::Protobuf::ComponentsFile_ComponentRecord& ComponentsFile::componentrecords(int index) const + ABSL_ATTRIBUTE_LIFETIME_BOUND { // @@protoc_insertion_point(field_get:Odb.Lib.Protobuf.ComponentsFile.componentRecords) - return _internal_componentrecords(index); -} -inline ::Odb::Lib::Protobuf::ComponentsFile_ComponentRecord* ComponentsFile::_internal_add_componentrecords() { - return _impl_.componentrecords_.Add(); + return _internal_componentrecords().Get(index); } -inline ::Odb::Lib::Protobuf::ComponentsFile_ComponentRecord* ComponentsFile::add_componentrecords() { - ::Odb::Lib::Protobuf::ComponentsFile_ComponentRecord* _add = _internal_add_componentrecords(); +inline ::Odb::Lib::Protobuf::ComponentsFile_ComponentRecord* ComponentsFile::add_componentrecords() ABSL_ATTRIBUTE_LIFETIME_BOUND { + ::google::protobuf::internal::TSanWrite(&_impl_); + ::Odb::Lib::Protobuf::ComponentsFile_ComponentRecord* _add = _internal_mutable_componentrecords()->Add(); // @@protoc_insertion_point(field_add:Odb.Lib.Protobuf.ComponentsFile.componentRecords) return _add; } -inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::Odb::Lib::Protobuf::ComponentsFile_ComponentRecord >& -ComponentsFile::componentrecords() const { +inline const ::google::protobuf::RepeatedPtrField<::Odb::Lib::Protobuf::ComponentsFile_ComponentRecord>& ComponentsFile::componentrecords() const + ABSL_ATTRIBUTE_LIFETIME_BOUND { // @@protoc_insertion_point(field_list:Odb.Lib.Protobuf.ComponentsFile.componentRecords) + return _internal_componentrecords(); +} +inline const ::google::protobuf::RepeatedPtrField<::Odb::Lib::Protobuf::ComponentsFile_ComponentRecord>& +ComponentsFile::_internal_componentrecords() const { + ::google::protobuf::internal::TSanRead(&_impl_); return _impl_.componentrecords_; } +inline ::google::protobuf::RepeatedPtrField<::Odb::Lib::Protobuf::ComponentsFile_ComponentRecord>* +ComponentsFile::_internal_mutable_componentrecords() { + ::google::protobuf::internal::TSanRead(&_impl_); + return &_impl_.componentrecords_; +} // map componentRecordsByName = 10; inline int ComponentsFile::_internal_componentrecordsbyname_size() const { - return _impl_.componentrecordsbyname_.size(); + return _internal_componentrecordsbyname().size(); } inline int ComponentsFile::componentrecordsbyname_size() const { return _internal_componentrecordsbyname_size(); } inline void ComponentsFile::clear_componentrecordsbyname() { + ::google::protobuf::internal::TSanWrite(&_impl_); _impl_.componentrecordsbyname_.Clear(); } -inline const ::PROTOBUF_NAMESPACE_ID::Map< std::string, ::Odb::Lib::Protobuf::ComponentsFile_ComponentRecord >& -ComponentsFile::_internal_componentrecordsbyname() const { +inline const ::google::protobuf::Map& ComponentsFile::_internal_componentrecordsbyname() const { + ::google::protobuf::internal::TSanRead(&_impl_); return _impl_.componentrecordsbyname_.GetMap(); } -inline const ::PROTOBUF_NAMESPACE_ID::Map< std::string, ::Odb::Lib::Protobuf::ComponentsFile_ComponentRecord >& -ComponentsFile::componentrecordsbyname() const { +inline const ::google::protobuf::Map& ComponentsFile::componentrecordsbyname() const ABSL_ATTRIBUTE_LIFETIME_BOUND { // @@protoc_insertion_point(field_map:Odb.Lib.Protobuf.ComponentsFile.componentRecordsByName) return _internal_componentrecordsbyname(); } -inline ::PROTOBUF_NAMESPACE_ID::Map< std::string, ::Odb::Lib::Protobuf::ComponentsFile_ComponentRecord >* -ComponentsFile::_internal_mutable_componentrecordsbyname() { +inline ::google::protobuf::Map* ComponentsFile::_internal_mutable_componentrecordsbyname() { + ::google::protobuf::internal::TSanWrite(&_impl_); return _impl_.componentrecordsbyname_.MutableMap(); } -inline ::PROTOBUF_NAMESPACE_ID::Map< std::string, ::Odb::Lib::Protobuf::ComponentsFile_ComponentRecord >* -ComponentsFile::mutable_componentrecordsbyname() { +inline ::google::protobuf::Map* ComponentsFile::mutable_componentrecordsbyname() ABSL_ATTRIBUTE_LIFETIME_BOUND { // @@protoc_insertion_point(field_mutable_map:Odb.Lib.Protobuf.ComponentsFile.componentRecordsByName) return _internal_mutable_componentrecordsbyname(); } // repeated .Odb.Lib.Protobuf.PropertyRecord propertyRecords = 11; inline int ComponentsFile::_internal_propertyrecords_size() const { - return _impl_.propertyrecords_.size(); + return _internal_propertyrecords().size(); } inline int ComponentsFile::propertyrecords_size() const { return _internal_propertyrecords_size(); } -inline ::Odb::Lib::Protobuf::PropertyRecord* ComponentsFile::mutable_propertyrecords(int index) { +inline ::Odb::Lib::Protobuf::PropertyRecord* ComponentsFile::mutable_propertyrecords(int index) + ABSL_ATTRIBUTE_LIFETIME_BOUND { // @@protoc_insertion_point(field_mutable:Odb.Lib.Protobuf.ComponentsFile.propertyRecords) - return _impl_.propertyrecords_.Mutable(index); + return _internal_mutable_propertyrecords()->Mutable(index); } -inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::Odb::Lib::Protobuf::PropertyRecord >* -ComponentsFile::mutable_propertyrecords() { +inline ::google::protobuf::RepeatedPtrField<::Odb::Lib::Protobuf::PropertyRecord>* ComponentsFile::mutable_propertyrecords() + ABSL_ATTRIBUTE_LIFETIME_BOUND { // @@protoc_insertion_point(field_mutable_list:Odb.Lib.Protobuf.ComponentsFile.propertyRecords) - return &_impl_.propertyrecords_; + ::google::protobuf::internal::TSanWrite(&_impl_); + return _internal_mutable_propertyrecords(); } -inline const ::Odb::Lib::Protobuf::PropertyRecord& ComponentsFile::_internal_propertyrecords(int index) const { - return _impl_.propertyrecords_.Get(index); -} -inline const ::Odb::Lib::Protobuf::PropertyRecord& ComponentsFile::propertyrecords(int index) const { +inline const ::Odb::Lib::Protobuf::PropertyRecord& ComponentsFile::propertyrecords(int index) const + ABSL_ATTRIBUTE_LIFETIME_BOUND { // @@protoc_insertion_point(field_get:Odb.Lib.Protobuf.ComponentsFile.propertyRecords) - return _internal_propertyrecords(index); -} -inline ::Odb::Lib::Protobuf::PropertyRecord* ComponentsFile::_internal_add_propertyrecords() { - return _impl_.propertyrecords_.Add(); + return _internal_propertyrecords().Get(index); } -inline ::Odb::Lib::Protobuf::PropertyRecord* ComponentsFile::add_propertyrecords() { - ::Odb::Lib::Protobuf::PropertyRecord* _add = _internal_add_propertyrecords(); +inline ::Odb::Lib::Protobuf::PropertyRecord* ComponentsFile::add_propertyrecords() ABSL_ATTRIBUTE_LIFETIME_BOUND { + ::google::protobuf::internal::TSanWrite(&_impl_); + ::Odb::Lib::Protobuf::PropertyRecord* _add = _internal_mutable_propertyrecords()->Add(); // @@protoc_insertion_point(field_add:Odb.Lib.Protobuf.ComponentsFile.propertyRecords) return _add; } -inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::Odb::Lib::Protobuf::PropertyRecord >& -ComponentsFile::propertyrecords() const { +inline const ::google::protobuf::RepeatedPtrField<::Odb::Lib::Protobuf::PropertyRecord>& ComponentsFile::propertyrecords() const + ABSL_ATTRIBUTE_LIFETIME_BOUND { // @@protoc_insertion_point(field_list:Odb.Lib.Protobuf.ComponentsFile.propertyRecords) + return _internal_propertyrecords(); +} +inline const ::google::protobuf::RepeatedPtrField<::Odb::Lib::Protobuf::PropertyRecord>& +ComponentsFile::_internal_propertyrecords() const { + ::google::protobuf::internal::TSanRead(&_impl_); return _impl_.propertyrecords_; } +inline ::google::protobuf::RepeatedPtrField<::Odb::Lib::Protobuf::PropertyRecord>* +ComponentsFile::_internal_mutable_propertyrecords() { + ::google::protobuf::internal::TSanRead(&_impl_); + return &_impl_.propertyrecords_; +} // map propertyRecordsByName = 12; inline int ComponentsFile::_internal_propertyrecordsbyname_size() const { - return _impl_.propertyrecordsbyname_.size(); + return _internal_propertyrecordsbyname().size(); } inline int ComponentsFile::propertyrecordsbyname_size() const { return _internal_propertyrecordsbyname_size(); } -inline const ::PROTOBUF_NAMESPACE_ID::Map< std::string, ::Odb::Lib::Protobuf::PropertyRecord >& -ComponentsFile::_internal_propertyrecordsbyname() const { +inline const ::google::protobuf::Map& ComponentsFile::_internal_propertyrecordsbyname() const { + ::google::protobuf::internal::TSanRead(&_impl_); return _impl_.propertyrecordsbyname_.GetMap(); } -inline const ::PROTOBUF_NAMESPACE_ID::Map< std::string, ::Odb::Lib::Protobuf::PropertyRecord >& -ComponentsFile::propertyrecordsbyname() const { +inline const ::google::protobuf::Map& ComponentsFile::propertyrecordsbyname() const ABSL_ATTRIBUTE_LIFETIME_BOUND { // @@protoc_insertion_point(field_map:Odb.Lib.Protobuf.ComponentsFile.propertyRecordsByName) return _internal_propertyrecordsbyname(); } -inline ::PROTOBUF_NAMESPACE_ID::Map< std::string, ::Odb::Lib::Protobuf::PropertyRecord >* -ComponentsFile::_internal_mutable_propertyrecordsbyname() { +inline ::google::protobuf::Map* ComponentsFile::_internal_mutable_propertyrecordsbyname() { + ::google::protobuf::internal::TSanWrite(&_impl_); return _impl_.propertyrecordsbyname_.MutableMap(); } -inline ::PROTOBUF_NAMESPACE_ID::Map< std::string, ::Odb::Lib::Protobuf::PropertyRecord >* -ComponentsFile::mutable_propertyrecordsbyname() { +inline ::google::protobuf::Map* ComponentsFile::mutable_propertyrecordsbyname() ABSL_ATTRIBUTE_LIFETIME_BOUND { // @@protoc_insertion_point(field_mutable_map:Odb.Lib.Protobuf.ComponentsFile.propertyRecordsByName) return _internal_mutable_propertyrecordsbyname(); } // map bomDescriptionRecordsByCpn = 13; inline int ComponentsFile::_internal_bomdescriptionrecordsbycpn_size() const { - return _impl_.bomdescriptionrecordsbycpn_.size(); + return _internal_bomdescriptionrecordsbycpn().size(); } inline int ComponentsFile::bomdescriptionrecordsbycpn_size() const { return _internal_bomdescriptionrecordsbycpn_size(); } inline void ComponentsFile::clear_bomdescriptionrecordsbycpn() { + ::google::protobuf::internal::TSanWrite(&_impl_); _impl_.bomdescriptionrecordsbycpn_.Clear(); } -inline const ::PROTOBUF_NAMESPACE_ID::Map< std::string, ::Odb::Lib::Protobuf::ComponentsFile_BomDescriptionRecord >& -ComponentsFile::_internal_bomdescriptionrecordsbycpn() const { +inline const ::google::protobuf::Map& ComponentsFile::_internal_bomdescriptionrecordsbycpn() const { + ::google::protobuf::internal::TSanRead(&_impl_); return _impl_.bomdescriptionrecordsbycpn_.GetMap(); } -inline const ::PROTOBUF_NAMESPACE_ID::Map< std::string, ::Odb::Lib::Protobuf::ComponentsFile_BomDescriptionRecord >& -ComponentsFile::bomdescriptionrecordsbycpn() const { +inline const ::google::protobuf::Map& ComponentsFile::bomdescriptionrecordsbycpn() const ABSL_ATTRIBUTE_LIFETIME_BOUND { // @@protoc_insertion_point(field_map:Odb.Lib.Protobuf.ComponentsFile.bomDescriptionRecordsByCpn) return _internal_bomdescriptionrecordsbycpn(); } -inline ::PROTOBUF_NAMESPACE_ID::Map< std::string, ::Odb::Lib::Protobuf::ComponentsFile_BomDescriptionRecord >* -ComponentsFile::_internal_mutable_bomdescriptionrecordsbycpn() { +inline ::google::protobuf::Map* ComponentsFile::_internal_mutable_bomdescriptionrecordsbycpn() { + ::google::protobuf::internal::TSanWrite(&_impl_); return _impl_.bomdescriptionrecordsbycpn_.MutableMap(); } -inline ::PROTOBUF_NAMESPACE_ID::Map< std::string, ::Odb::Lib::Protobuf::ComponentsFile_BomDescriptionRecord >* -ComponentsFile::mutable_bomdescriptionrecordsbycpn() { +inline ::google::protobuf::Map* ComponentsFile::mutable_bomdescriptionrecordsbycpn() ABSL_ATTRIBUTE_LIFETIME_BOUND { // @@protoc_insertion_point(field_mutable_map:Odb.Lib.Protobuf.ComponentsFile.bomDescriptionRecordsByCpn) return _internal_mutable_bomdescriptionrecordsbycpn(); } #ifdef __GNUC__ - #pragma GCC diagnostic pop +#pragma GCC diagnostic pop #endif // __GNUC__ -// ------------------------------------------------------------------- - -// ------------------------------------------------------------------- - -// ------------------------------------------------------------------- - -// ------------------------------------------------------------------- - -// ------------------------------------------------------------------- - -// ------------------------------------------------------------------- - -// ------------------------------------------------------------------- - // @@protoc_insertion_point(namespace_scope) - } // namespace Protobuf } // namespace Lib } // namespace Odb + // @@protoc_insertion_point(global_scope) -#include -#endif // GOOGLE_PROTOBUF_INCLUDED_GOOGLE_PROTOBUF_INCLUDED_componentsfile_2eproto +#include "google/protobuf/port_undef.inc" + +#endif // componentsfile_2eproto_2epb_2eh diff --git a/OdbDesignLib/ProtoBuf/design.pb.cc b/OdbDesignLib/ProtoBuf/design.pb.cc index 477da8b3..dc84040e 100644 --- a/OdbDesignLib/ProtoBuf/design.pb.cc +++ b/OdbDesignLib/ProtoBuf/design.pb.cc @@ -1,481 +1,1015 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE // source: design.proto +// Protobuf C++ Version: 5.29.2 #include "design.pb.h" #include - -#include -#include -#include -#include -#include -#include -#include +#include +#include "google/protobuf/io/coded_stream.h" +#include "google/protobuf/generated_message_tctable_impl.h" +#include "google/protobuf/extension_set.h" +#include "google/protobuf/generated_message_util.h" +#include "google/protobuf/wire_format_lite.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) -#include +// Must be included last. +#include "google/protobuf/port_def.inc" PROTOBUF_PRAGMA_INIT_SEG - -namespace _pb = ::PROTOBUF_NAMESPACE_ID; -namespace _pbi = _pb::internal; - +namespace _pb = ::google::protobuf; +namespace _pbi = ::google::protobuf::internal; +namespace _fl = ::google::protobuf::internal::field_layout; namespace Odb { namespace Lib { namespace Protobuf { namespace ProductModel { -PROTOBUF_CONSTEXPR Design_NetsByNameEntry_DoNotUse::Design_NetsByNameEntry_DoNotUse( - ::_pbi::ConstantInitialized) {} -struct Design_NetsByNameEntry_DoNotUseDefaultTypeInternal { - PROTOBUF_CONSTEXPR Design_NetsByNameEntry_DoNotUseDefaultTypeInternal() - : _instance(::_pbi::ConstantInitialized{}) {} - ~Design_NetsByNameEntry_DoNotUseDefaultTypeInternal() {} + template +PROTOBUF_CONSTEXPR Design_PartsByNameEntry_DoNotUse::Design_PartsByNameEntry_DoNotUse(::_pbi::ConstantInitialized) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : Design_PartsByNameEntry_DoNotUse::MapEntry(_class_data_.base()){} +#else // PROTOBUF_CUSTOM_VTABLE + : Design_PartsByNameEntry_DoNotUse::MapEntry() { +} +#endif // PROTOBUF_CUSTOM_VTABLE +struct Design_PartsByNameEntry_DoNotUseDefaultTypeInternal { + PROTOBUF_CONSTEXPR Design_PartsByNameEntry_DoNotUseDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} + ~Design_PartsByNameEntry_DoNotUseDefaultTypeInternal() {} union { - Design_NetsByNameEntry_DoNotUse _instance; + Design_PartsByNameEntry_DoNotUse _instance; }; }; -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 Design_NetsByNameEntry_DoNotUseDefaultTypeInternal _Design_NetsByNameEntry_DoNotUse_default_instance_; -PROTOBUF_CONSTEXPR Design_PackagesByNameEntry_DoNotUse::Design_PackagesByNameEntry_DoNotUse( - ::_pbi::ConstantInitialized) {} + +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT ODBDESIGN_EXPORT + PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 Design_PartsByNameEntry_DoNotUseDefaultTypeInternal _Design_PartsByNameEntry_DoNotUse_default_instance_; + template +PROTOBUF_CONSTEXPR Design_PackagesByNameEntry_DoNotUse::Design_PackagesByNameEntry_DoNotUse(::_pbi::ConstantInitialized) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : Design_PackagesByNameEntry_DoNotUse::MapEntry(_class_data_.base()){} +#else // PROTOBUF_CUSTOM_VTABLE + : Design_PackagesByNameEntry_DoNotUse::MapEntry() { +} +#endif // PROTOBUF_CUSTOM_VTABLE struct Design_PackagesByNameEntry_DoNotUseDefaultTypeInternal { - PROTOBUF_CONSTEXPR Design_PackagesByNameEntry_DoNotUseDefaultTypeInternal() - : _instance(::_pbi::ConstantInitialized{}) {} + PROTOBUF_CONSTEXPR Design_PackagesByNameEntry_DoNotUseDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} ~Design_PackagesByNameEntry_DoNotUseDefaultTypeInternal() {} union { Design_PackagesByNameEntry_DoNotUse _instance; }; }; -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 Design_PackagesByNameEntry_DoNotUseDefaultTypeInternal _Design_PackagesByNameEntry_DoNotUse_default_instance_; -PROTOBUF_CONSTEXPR Design_ComponentsByNameEntry_DoNotUse::Design_ComponentsByNameEntry_DoNotUse( - ::_pbi::ConstantInitialized) {} + +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT ODBDESIGN_EXPORT + PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 Design_PackagesByNameEntry_DoNotUseDefaultTypeInternal _Design_PackagesByNameEntry_DoNotUse_default_instance_; + template +PROTOBUF_CONSTEXPR Design_ComponentsByNameEntry_DoNotUse::Design_ComponentsByNameEntry_DoNotUse(::_pbi::ConstantInitialized) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : Design_ComponentsByNameEntry_DoNotUse::MapEntry(_class_data_.base()){} +#else // PROTOBUF_CUSTOM_VTABLE + : Design_ComponentsByNameEntry_DoNotUse::MapEntry() { +} +#endif // PROTOBUF_CUSTOM_VTABLE struct Design_ComponentsByNameEntry_DoNotUseDefaultTypeInternal { - PROTOBUF_CONSTEXPR Design_ComponentsByNameEntry_DoNotUseDefaultTypeInternal() - : _instance(::_pbi::ConstantInitialized{}) {} + PROTOBUF_CONSTEXPR Design_ComponentsByNameEntry_DoNotUseDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} ~Design_ComponentsByNameEntry_DoNotUseDefaultTypeInternal() {} union { Design_ComponentsByNameEntry_DoNotUse _instance; }; }; -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 Design_ComponentsByNameEntry_DoNotUseDefaultTypeInternal _Design_ComponentsByNameEntry_DoNotUse_default_instance_; -PROTOBUF_CONSTEXPR Design_PartsByNameEntry_DoNotUse::Design_PartsByNameEntry_DoNotUse( - ::_pbi::ConstantInitialized) {} -struct Design_PartsByNameEntry_DoNotUseDefaultTypeInternal { - PROTOBUF_CONSTEXPR Design_PartsByNameEntry_DoNotUseDefaultTypeInternal() - : _instance(::_pbi::ConstantInitialized{}) {} - ~Design_PartsByNameEntry_DoNotUseDefaultTypeInternal() {} + +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT ODBDESIGN_EXPORT + PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 Design_ComponentsByNameEntry_DoNotUseDefaultTypeInternal _Design_ComponentsByNameEntry_DoNotUse_default_instance_; + template +PROTOBUF_CONSTEXPR Design_NetsByNameEntry_DoNotUse::Design_NetsByNameEntry_DoNotUse(::_pbi::ConstantInitialized) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : Design_NetsByNameEntry_DoNotUse::MapEntry(_class_data_.base()){} +#else // PROTOBUF_CUSTOM_VTABLE + : Design_NetsByNameEntry_DoNotUse::MapEntry() { +} +#endif // PROTOBUF_CUSTOM_VTABLE +struct Design_NetsByNameEntry_DoNotUseDefaultTypeInternal { + PROTOBUF_CONSTEXPR Design_NetsByNameEntry_DoNotUseDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} + ~Design_NetsByNameEntry_DoNotUseDefaultTypeInternal() {} union { - Design_PartsByNameEntry_DoNotUse _instance; + Design_NetsByNameEntry_DoNotUse _instance; }; }; -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 Design_PartsByNameEntry_DoNotUseDefaultTypeInternal _Design_PartsByNameEntry_DoNotUse_default_instance_; -PROTOBUF_CONSTEXPR Design::Design( - ::_pbi::ConstantInitialized): _impl_{ - /*decltype(_impl_._has_bits_)*/{} - , /*decltype(_impl_._cached_size_)*/{} - , /*decltype(_impl_.nets_)*/{} - , /*decltype(_impl_.netsbyname_)*/{::_pbi::ConstantInitialized()} - , /*decltype(_impl_.packages_)*/{} - , /*decltype(_impl_.packagesbyname_)*/{::_pbi::ConstantInitialized()} - , /*decltype(_impl_.components_)*/{} - , /*decltype(_impl_.componentsbyname_)*/{::_pbi::ConstantInitialized()} - , /*decltype(_impl_.parts_)*/{} - , /*decltype(_impl_.partsbyname_)*/{::_pbi::ConstantInitialized()} - , /*decltype(_impl_.productmodel_)*/{&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}} - , /*decltype(_impl_.name_)*/{&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}} - , /*decltype(_impl_.filemodel_)*/nullptr} {} + +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT ODBDESIGN_EXPORT + PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 Design_NetsByNameEntry_DoNotUseDefaultTypeInternal _Design_NetsByNameEntry_DoNotUse_default_instance_; + +inline constexpr Design::Impl_::Impl_( + ::_pbi::ConstantInitialized) noexcept + : _cached_size_{0}, + nets_{}, + netsbyname_{}, + packages_{}, + packagesbyname_{}, + components_{}, + componentsbyname_{}, + parts_{}, + partsbyname_{}, + productmodel_( + &::google::protobuf::internal::fixed_address_empty_string, + ::_pbi::ConstantInitialized()), + name_( + &::google::protobuf::internal::fixed_address_empty_string, + ::_pbi::ConstantInitialized()), + filemodel_{nullptr} {} + +template +PROTOBUF_CONSTEXPR Design::Design(::_pbi::ConstantInitialized) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : ::google::protobuf::Message(_class_data_.base()), +#else // PROTOBUF_CUSTOM_VTABLE + : ::google::protobuf::Message(), +#endif // PROTOBUF_CUSTOM_VTABLE + _impl_(::_pbi::ConstantInitialized()) { +} struct DesignDefaultTypeInternal { - PROTOBUF_CONSTEXPR DesignDefaultTypeInternal() - : _instance(::_pbi::ConstantInitialized{}) {} + PROTOBUF_CONSTEXPR DesignDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} ~DesignDefaultTypeInternal() {} union { Design _instance; }; }; -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 DesignDefaultTypeInternal _Design_default_instance_; + +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT ODBDESIGN_EXPORT + PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 DesignDefaultTypeInternal _Design_default_instance_; } // namespace ProductModel } // namespace Protobuf } // namespace Lib } // namespace Odb -static ::_pb::Metadata file_level_metadata_design_2eproto[5]; -static constexpr ::_pb::EnumDescriptor const** file_level_enum_descriptors_design_2eproto = nullptr; -static constexpr ::_pb::ServiceDescriptor const** file_level_service_descriptors_design_2eproto = nullptr; - -const uint32_t TableStruct_design_2eproto::offsets[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = { - PROTOBUF_FIELD_OFFSET(::Odb::Lib::Protobuf::ProductModel::Design_NetsByNameEntry_DoNotUse, _has_bits_), - PROTOBUF_FIELD_OFFSET(::Odb::Lib::Protobuf::ProductModel::Design_NetsByNameEntry_DoNotUse, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - ~0u, // no _inlined_string_donated_ - PROTOBUF_FIELD_OFFSET(::Odb::Lib::Protobuf::ProductModel::Design_NetsByNameEntry_DoNotUse, key_), - PROTOBUF_FIELD_OFFSET(::Odb::Lib::Protobuf::ProductModel::Design_NetsByNameEntry_DoNotUse, value_), - 0, - 1, - PROTOBUF_FIELD_OFFSET(::Odb::Lib::Protobuf::ProductModel::Design_PackagesByNameEntry_DoNotUse, _has_bits_), - PROTOBUF_FIELD_OFFSET(::Odb::Lib::Protobuf::ProductModel::Design_PackagesByNameEntry_DoNotUse, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - ~0u, // no _inlined_string_donated_ - PROTOBUF_FIELD_OFFSET(::Odb::Lib::Protobuf::ProductModel::Design_PackagesByNameEntry_DoNotUse, key_), - PROTOBUF_FIELD_OFFSET(::Odb::Lib::Protobuf::ProductModel::Design_PackagesByNameEntry_DoNotUse, value_), - 0, - 1, - PROTOBUF_FIELD_OFFSET(::Odb::Lib::Protobuf::ProductModel::Design_ComponentsByNameEntry_DoNotUse, _has_bits_), - PROTOBUF_FIELD_OFFSET(::Odb::Lib::Protobuf::ProductModel::Design_ComponentsByNameEntry_DoNotUse, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - ~0u, // no _inlined_string_donated_ - PROTOBUF_FIELD_OFFSET(::Odb::Lib::Protobuf::ProductModel::Design_ComponentsByNameEntry_DoNotUse, key_), - PROTOBUF_FIELD_OFFSET(::Odb::Lib::Protobuf::ProductModel::Design_ComponentsByNameEntry_DoNotUse, value_), - 0, - 1, - PROTOBUF_FIELD_OFFSET(::Odb::Lib::Protobuf::ProductModel::Design_PartsByNameEntry_DoNotUse, _has_bits_), - PROTOBUF_FIELD_OFFSET(::Odb::Lib::Protobuf::ProductModel::Design_PartsByNameEntry_DoNotUse, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - ~0u, // no _inlined_string_donated_ - PROTOBUF_FIELD_OFFSET(::Odb::Lib::Protobuf::ProductModel::Design_PartsByNameEntry_DoNotUse, key_), - PROTOBUF_FIELD_OFFSET(::Odb::Lib::Protobuf::ProductModel::Design_PartsByNameEntry_DoNotUse, value_), - 0, - 1, - PROTOBUF_FIELD_OFFSET(::Odb::Lib::Protobuf::ProductModel::Design, _impl_._has_bits_), - PROTOBUF_FIELD_OFFSET(::Odb::Lib::Protobuf::ProductModel::Design, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - ~0u, // no _inlined_string_donated_ - PROTOBUF_FIELD_OFFSET(::Odb::Lib::Protobuf::ProductModel::Design, _impl_.productmodel_), - PROTOBUF_FIELD_OFFSET(::Odb::Lib::Protobuf::ProductModel::Design, _impl_.name_), - PROTOBUF_FIELD_OFFSET(::Odb::Lib::Protobuf::ProductModel::Design, _impl_.filemodel_), - PROTOBUF_FIELD_OFFSET(::Odb::Lib::Protobuf::ProductModel::Design, _impl_.nets_), - PROTOBUF_FIELD_OFFSET(::Odb::Lib::Protobuf::ProductModel::Design, _impl_.netsbyname_), - PROTOBUF_FIELD_OFFSET(::Odb::Lib::Protobuf::ProductModel::Design, _impl_.packages_), - PROTOBUF_FIELD_OFFSET(::Odb::Lib::Protobuf::ProductModel::Design, _impl_.packagesbyname_), - PROTOBUF_FIELD_OFFSET(::Odb::Lib::Protobuf::ProductModel::Design, _impl_.components_), - PROTOBUF_FIELD_OFFSET(::Odb::Lib::Protobuf::ProductModel::Design, _impl_.componentsbyname_), - PROTOBUF_FIELD_OFFSET(::Odb::Lib::Protobuf::ProductModel::Design, _impl_.parts_), - PROTOBUF_FIELD_OFFSET(::Odb::Lib::Protobuf::ProductModel::Design, _impl_.partsbyname_), - 0, - 1, - 2, - ~0u, - ~0u, - ~0u, - ~0u, - ~0u, - ~0u, - ~0u, - ~0u, -}; -static const ::_pbi::MigrationSchema schemas[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = { - { 0, 8, -1, sizeof(::Odb::Lib::Protobuf::ProductModel::Design_NetsByNameEntry_DoNotUse)}, - { 10, 18, -1, sizeof(::Odb::Lib::Protobuf::ProductModel::Design_PackagesByNameEntry_DoNotUse)}, - { 20, 28, -1, sizeof(::Odb::Lib::Protobuf::ProductModel::Design_ComponentsByNameEntry_DoNotUse)}, - { 30, 38, -1, sizeof(::Odb::Lib::Protobuf::ProductModel::Design_PartsByNameEntry_DoNotUse)}, - { 40, 57, -1, sizeof(::Odb::Lib::Protobuf::ProductModel::Design)}, +static constexpr const ::_pb::EnumDescriptor** + file_level_enum_descriptors_design_2eproto = nullptr; +static constexpr const ::_pb::ServiceDescriptor** + file_level_service_descriptors_design_2eproto = nullptr; +const ::uint32_t + TableStruct_design_2eproto::offsets[] ABSL_ATTRIBUTE_SECTION_VARIABLE( + protodesc_cold) = { + PROTOBUF_FIELD_OFFSET(::Odb::Lib::Protobuf::ProductModel::Design_NetsByNameEntry_DoNotUse, _impl_._has_bits_), + PROTOBUF_FIELD_OFFSET(::Odb::Lib::Protobuf::ProductModel::Design_NetsByNameEntry_DoNotUse, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + ~0u, // no _split_ + ~0u, // no sizeof(Split) + PROTOBUF_FIELD_OFFSET(::Odb::Lib::Protobuf::ProductModel::Design_NetsByNameEntry_DoNotUse, _impl_.key_), + PROTOBUF_FIELD_OFFSET(::Odb::Lib::Protobuf::ProductModel::Design_NetsByNameEntry_DoNotUse, _impl_.value_), + 0, + 1, + PROTOBUF_FIELD_OFFSET(::Odb::Lib::Protobuf::ProductModel::Design_PackagesByNameEntry_DoNotUse, _impl_._has_bits_), + PROTOBUF_FIELD_OFFSET(::Odb::Lib::Protobuf::ProductModel::Design_PackagesByNameEntry_DoNotUse, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + ~0u, // no _split_ + ~0u, // no sizeof(Split) + PROTOBUF_FIELD_OFFSET(::Odb::Lib::Protobuf::ProductModel::Design_PackagesByNameEntry_DoNotUse, _impl_.key_), + PROTOBUF_FIELD_OFFSET(::Odb::Lib::Protobuf::ProductModel::Design_PackagesByNameEntry_DoNotUse, _impl_.value_), + 0, + 1, + PROTOBUF_FIELD_OFFSET(::Odb::Lib::Protobuf::ProductModel::Design_ComponentsByNameEntry_DoNotUse, _impl_._has_bits_), + PROTOBUF_FIELD_OFFSET(::Odb::Lib::Protobuf::ProductModel::Design_ComponentsByNameEntry_DoNotUse, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + ~0u, // no _split_ + ~0u, // no sizeof(Split) + PROTOBUF_FIELD_OFFSET(::Odb::Lib::Protobuf::ProductModel::Design_ComponentsByNameEntry_DoNotUse, _impl_.key_), + PROTOBUF_FIELD_OFFSET(::Odb::Lib::Protobuf::ProductModel::Design_ComponentsByNameEntry_DoNotUse, _impl_.value_), + 0, + 1, + PROTOBUF_FIELD_OFFSET(::Odb::Lib::Protobuf::ProductModel::Design_PartsByNameEntry_DoNotUse, _impl_._has_bits_), + PROTOBUF_FIELD_OFFSET(::Odb::Lib::Protobuf::ProductModel::Design_PartsByNameEntry_DoNotUse, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + ~0u, // no _split_ + ~0u, // no sizeof(Split) + PROTOBUF_FIELD_OFFSET(::Odb::Lib::Protobuf::ProductModel::Design_PartsByNameEntry_DoNotUse, _impl_.key_), + PROTOBUF_FIELD_OFFSET(::Odb::Lib::Protobuf::ProductModel::Design_PartsByNameEntry_DoNotUse, _impl_.value_), + 0, + 1, + PROTOBUF_FIELD_OFFSET(::Odb::Lib::Protobuf::ProductModel::Design, _impl_._has_bits_), + PROTOBUF_FIELD_OFFSET(::Odb::Lib::Protobuf::ProductModel::Design, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + ~0u, // no _split_ + ~0u, // no sizeof(Split) + PROTOBUF_FIELD_OFFSET(::Odb::Lib::Protobuf::ProductModel::Design, _impl_.productmodel_), + PROTOBUF_FIELD_OFFSET(::Odb::Lib::Protobuf::ProductModel::Design, _impl_.name_), + PROTOBUF_FIELD_OFFSET(::Odb::Lib::Protobuf::ProductModel::Design, _impl_.filemodel_), + PROTOBUF_FIELD_OFFSET(::Odb::Lib::Protobuf::ProductModel::Design, _impl_.nets_), + PROTOBUF_FIELD_OFFSET(::Odb::Lib::Protobuf::ProductModel::Design, _impl_.netsbyname_), + PROTOBUF_FIELD_OFFSET(::Odb::Lib::Protobuf::ProductModel::Design, _impl_.packages_), + PROTOBUF_FIELD_OFFSET(::Odb::Lib::Protobuf::ProductModel::Design, _impl_.packagesbyname_), + PROTOBUF_FIELD_OFFSET(::Odb::Lib::Protobuf::ProductModel::Design, _impl_.components_), + PROTOBUF_FIELD_OFFSET(::Odb::Lib::Protobuf::ProductModel::Design, _impl_.componentsbyname_), + PROTOBUF_FIELD_OFFSET(::Odb::Lib::Protobuf::ProductModel::Design, _impl_.parts_), + PROTOBUF_FIELD_OFFSET(::Odb::Lib::Protobuf::ProductModel::Design, _impl_.partsbyname_), + 0, + 1, + 2, + ~0u, + ~0u, + ~0u, + ~0u, + ~0u, + ~0u, + ~0u, + ~0u, }; +static const ::_pbi::MigrationSchema + schemas[] ABSL_ATTRIBUTE_SECTION_VARIABLE(protodesc_cold) = { + {0, 10, -1, sizeof(::Odb::Lib::Protobuf::ProductModel::Design_NetsByNameEntry_DoNotUse)}, + {12, 22, -1, sizeof(::Odb::Lib::Protobuf::ProductModel::Design_PackagesByNameEntry_DoNotUse)}, + {24, 34, -1, sizeof(::Odb::Lib::Protobuf::ProductModel::Design_ComponentsByNameEntry_DoNotUse)}, + {36, 46, -1, sizeof(::Odb::Lib::Protobuf::ProductModel::Design_PartsByNameEntry_DoNotUse)}, + {48, 67, -1, sizeof(::Odb::Lib::Protobuf::ProductModel::Design)}, +}; static const ::_pb::Message* const file_default_instances[] = { - &::Odb::Lib::Protobuf::ProductModel::_Design_NetsByNameEntry_DoNotUse_default_instance_._instance, - &::Odb::Lib::Protobuf::ProductModel::_Design_PackagesByNameEntry_DoNotUse_default_instance_._instance, - &::Odb::Lib::Protobuf::ProductModel::_Design_ComponentsByNameEntry_DoNotUse_default_instance_._instance, - &::Odb::Lib::Protobuf::ProductModel::_Design_PartsByNameEntry_DoNotUse_default_instance_._instance, - &::Odb::Lib::Protobuf::ProductModel::_Design_default_instance_._instance, + &::Odb::Lib::Protobuf::ProductModel::_Design_NetsByNameEntry_DoNotUse_default_instance_._instance, + &::Odb::Lib::Protobuf::ProductModel::_Design_PackagesByNameEntry_DoNotUse_default_instance_._instance, + &::Odb::Lib::Protobuf::ProductModel::_Design_ComponentsByNameEntry_DoNotUse_default_instance_._instance, + &::Odb::Lib::Protobuf::ProductModel::_Design_PartsByNameEntry_DoNotUse_default_instance_._instance, + &::Odb::Lib::Protobuf::ProductModel::_Design_default_instance_._instance, }; - -const char descriptor_table_protodef_design_2eproto[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = - "\n\014design.proto\022\035Odb.Lib.Protobuf.Product" - "Model\032\021filearchive.proto\032\tnet.proto\032\rpac" - "kage.proto\032\017component.proto\032\npart.proto\"" - "\247\010\n\006Design\022\031\n\014productModel\030\001 \001(\tH\000\210\001\001\022\021\n" - "\004name\030\002 \001(\tH\001\210\001\001\0225\n\tfileModel\030\003 \001(\0132\035.Od" - "b.Lib.Protobuf.FileArchiveH\002\210\001\001\0220\n\004nets\030" - "\004 \003(\0132\".Odb.Lib.Protobuf.ProductModel.Ne" - "t\022I\n\nnetsByName\030\005 \003(\01325.Odb.Lib.Protobuf" - ".ProductModel.Design.NetsByNameEntry\0228\n\010" - "packages\030\006 \003(\0132&.Odb.Lib.Protobuf.Produc" - "tModel.Package\022Q\n\016packagesByName\030\007 \003(\01329" - ".Odb.Lib.Protobuf.ProductModel.Design.Pa" - "ckagesByNameEntry\022<\n\ncomponents\030\010 \003(\0132(." - "Odb.Lib.Protobuf.ProductModel.Component\022" - "U\n\020componentsByName\030\t \003(\0132;.Odb.Lib.Prot" - "obuf.ProductModel.Design.ComponentsByNam" - "eEntry\0222\n\005parts\030\n \003(\0132#.Odb.Lib.Protobuf" - ".ProductModel.Part\022K\n\013partsByName\030\013 \003(\0132" - "6.Odb.Lib.Protobuf.ProductModel.Design.P" - "artsByNameEntry\032U\n\017NetsByNameEntry\022\013\n\003ke" - "y\030\001 \001(\t\0221\n\005value\030\002 \001(\0132\".Odb.Lib.Protobu" - "f.ProductModel.Net:\0028\001\032]\n\023PackagesByName" - "Entry\022\013\n\003key\030\001 \001(\t\0225\n\005value\030\002 \001(\0132&.Odb." - "Lib.Protobuf.ProductModel.Package:\0028\001\032a\n" - "\025ComponentsByNameEntry\022\013\n\003key\030\001 \001(\t\0227\n\005v" - "alue\030\002 \001(\0132(.Odb.Lib.Protobuf.ProductMod" - "el.Component:\0028\001\032W\n\020PartsByNameEntry\022\013\n\003" - "key\030\001 \001(\t\0222\n\005value\030\002 \001(\0132#.Odb.Lib.Proto" - "buf.ProductModel.Part:\0028\001B\017\n\r_productMod" - "elB\007\n\005_nameB\014\n\n_fileModelb\006proto3" - ; -static const ::_pbi::DescriptorTable* const descriptor_table_design_2eproto_deps[5] = { - &::descriptor_table_component_2eproto, - &::descriptor_table_filearchive_2eproto, - &::descriptor_table_net_2eproto, - &::descriptor_table_package_2eproto, - &::descriptor_table_part_2eproto, +const char descriptor_table_protodef_design_2eproto[] ABSL_ATTRIBUTE_SECTION_VARIABLE( + protodesc_cold) = { + "\n\014design.proto\022\035Odb.Lib.Protobuf.Product" + "Model\032\021filearchive.proto\032\tnet.proto\032\rpac" + "kage.proto\032\017component.proto\032\npart.proto\"" + "\247\010\n\006Design\022\031\n\014productModel\030\001 \001(\tH\000\210\001\001\022\021\n" + "\004name\030\002 \001(\tH\001\210\001\001\0225\n\tfileModel\030\003 \001(\0132\035.Od" + "b.Lib.Protobuf.FileArchiveH\002\210\001\001\0220\n\004nets\030" + "\004 \003(\0132\".Odb.Lib.Protobuf.ProductModel.Ne" + "t\022I\n\nnetsByName\030\005 \003(\01325.Odb.Lib.Protobuf" + ".ProductModel.Design.NetsByNameEntry\0228\n\010" + "packages\030\006 \003(\0132&.Odb.Lib.Protobuf.Produc" + "tModel.Package\022Q\n\016packagesByName\030\007 \003(\01329" + ".Odb.Lib.Protobuf.ProductModel.Design.Pa" + "ckagesByNameEntry\022<\n\ncomponents\030\010 \003(\0132(." + "Odb.Lib.Protobuf.ProductModel.Component\022" + "U\n\020componentsByName\030\t \003(\0132;.Odb.Lib.Prot" + "obuf.ProductModel.Design.ComponentsByNam" + "eEntry\0222\n\005parts\030\n \003(\0132#.Odb.Lib.Protobuf" + ".ProductModel.Part\022K\n\013partsByName\030\013 \003(\0132" + "6.Odb.Lib.Protobuf.ProductModel.Design.P" + "artsByNameEntry\032U\n\017NetsByNameEntry\022\013\n\003ke" + "y\030\001 \001(\t\0221\n\005value\030\002 \001(\0132\".Odb.Lib.Protobu" + "f.ProductModel.Net:\0028\001\032]\n\023PackagesByName" + "Entry\022\013\n\003key\030\001 \001(\t\0225\n\005value\030\002 \001(\0132&.Odb." + "Lib.Protobuf.ProductModel.Package:\0028\001\032a\n" + "\025ComponentsByNameEntry\022\013\n\003key\030\001 \001(\t\0227\n\005v" + "alue\030\002 \001(\0132(.Odb.Lib.Protobuf.ProductMod" + "el.Component:\0028\001\032W\n\020PartsByNameEntry\022\013\n\003" + "key\030\001 \001(\t\0222\n\005value\030\002 \001(\0132#.Odb.Lib.Proto" + "buf.ProductModel.Part:\0028\001B\017\n\r_productMod" + "elB\007\n\005_nameB\014\n\n_fileModelb\006proto3" +}; +static const ::_pbi::DescriptorTable* const descriptor_table_design_2eproto_deps[5] = + { + &::descriptor_table_component_2eproto, + &::descriptor_table_filearchive_2eproto, + &::descriptor_table_net_2eproto, + &::descriptor_table_package_2eproto, + &::descriptor_table_part_2eproto, }; -static ::_pbi::once_flag descriptor_table_design_2eproto_once; -const ::_pbi::DescriptorTable descriptor_table_design_2eproto = { - false, false, 1193, descriptor_table_protodef_design_2eproto, +static ::absl::once_flag descriptor_table_design_2eproto_once; +PROTOBUF_CONSTINIT const ::_pbi::DescriptorTable descriptor_table_design_2eproto = { + false, + false, + 1193, + descriptor_table_protodef_design_2eproto, "design.proto", - &descriptor_table_design_2eproto_once, descriptor_table_design_2eproto_deps, 5, 5, - schemas, file_default_instances, TableStruct_design_2eproto::offsets, - file_level_metadata_design_2eproto, file_level_enum_descriptors_design_2eproto, + &descriptor_table_design_2eproto_once, + descriptor_table_design_2eproto_deps, + 5, + 5, + schemas, + file_default_instances, + TableStruct_design_2eproto::offsets, + file_level_enum_descriptors_design_2eproto, file_level_service_descriptors_design_2eproto, }; -PROTOBUF_ATTRIBUTE_WEAK const ::_pbi::DescriptorTable* descriptor_table_design_2eproto_getter() { - return &descriptor_table_design_2eproto; -} - -// Force running AddDescriptors() at dynamic initialization time. -PROTOBUF_ATTRIBUTE_INIT_PRIORITY2 static ::_pbi::AddDescriptorsRunner dynamic_init_dummy_design_2eproto(&descriptor_table_design_2eproto); namespace Odb { namespace Lib { namespace Protobuf { namespace ProductModel { - // =================================================================== -Design_NetsByNameEntry_DoNotUse::Design_NetsByNameEntry_DoNotUse() {} -Design_NetsByNameEntry_DoNotUse::Design_NetsByNameEntry_DoNotUse(::PROTOBUF_NAMESPACE_ID::Arena* arena) - : SuperType(arena) {} -void Design_NetsByNameEntry_DoNotUse::MergeFrom(const Design_NetsByNameEntry_DoNotUse& other) { - MergeFromInternal(other); -} -::PROTOBUF_NAMESPACE_ID::Metadata Design_NetsByNameEntry_DoNotUse::GetMetadata() const { - return ::_pbi::AssignDescriptors( - &descriptor_table_design_2eproto_getter, &descriptor_table_design_2eproto_once, - file_level_metadata_design_2eproto[0]); -} +#if defined(PROTOBUF_CUSTOM_VTABLE) + Design_NetsByNameEntry_DoNotUse::Design_NetsByNameEntry_DoNotUse() : SuperType(_class_data_.base()) {} + Design_NetsByNameEntry_DoNotUse::Design_NetsByNameEntry_DoNotUse(::google::protobuf::Arena* arena) + : SuperType(arena, _class_data_.base()) {} +#else // PROTOBUF_CUSTOM_VTABLE + Design_NetsByNameEntry_DoNotUse::Design_NetsByNameEntry_DoNotUse() : SuperType() {} + Design_NetsByNameEntry_DoNotUse::Design_NetsByNameEntry_DoNotUse(::google::protobuf::Arena* arena) : SuperType(arena) {} +#endif // PROTOBUF_CUSTOM_VTABLE + inline void* Design_NetsByNameEntry_DoNotUse::PlacementNew_(const void*, void* mem, + ::google::protobuf::Arena* arena) { + return ::new (mem) Design_NetsByNameEntry_DoNotUse(arena); + } + constexpr auto Design_NetsByNameEntry_DoNotUse::InternalNewImpl_() { + return ::google::protobuf::internal::MessageCreator::CopyInit(sizeof(Design_NetsByNameEntry_DoNotUse), + alignof(Design_NetsByNameEntry_DoNotUse)); + } + PROTOBUF_CONSTINIT + PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 + const ::google::protobuf::internal::ClassDataFull Design_NetsByNameEntry_DoNotUse::_class_data_ = { + ::google::protobuf::internal::ClassData{ + &_Design_NetsByNameEntry_DoNotUse_default_instance_._instance, + &_table_.header, + nullptr, // OnDemandRegisterArenaDtor + nullptr, // IsInitialized + &Design_NetsByNameEntry_DoNotUse::MergeImpl, + ::google::protobuf::Message::GetNewImpl(), + #if defined(PROTOBUF_CUSTOM_VTABLE) + &Design_NetsByNameEntry_DoNotUse::SharedDtor, + static_cast( + &Design_NetsByNameEntry_DoNotUse::ClearImpl), + ::google::protobuf::Message::ByteSizeLongImpl, ::google::protobuf::Message::_InternalSerializeImpl + , + #endif // PROTOBUF_CUSTOM_VTABLE + PROTOBUF_FIELD_OFFSET(Design_NetsByNameEntry_DoNotUse, _impl_._cached_size_), + false, + }, + &Design_NetsByNameEntry_DoNotUse::kDescriptorMethods, + &descriptor_table_design_2eproto, + nullptr, // tracker + }; + const ::google::protobuf::internal::ClassData* Design_NetsByNameEntry_DoNotUse::GetClassData() const { + ::google::protobuf::internal::PrefetchToLocalCache(&_class_data_); + ::google::protobuf::internal::PrefetchToLocalCache(_class_data_.tc_table); + return _class_data_.base(); + } +PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 +const ::_pbi::TcParseTable<1, 2, 1, 64, 2> Design_NetsByNameEntry_DoNotUse::_table_ = { + { + PROTOBUF_FIELD_OFFSET(Design_NetsByNameEntry_DoNotUse, _impl_._has_bits_), + 0, // no _extensions_ + 2, 8, // max_field_number, fast_idx_mask + offsetof(decltype(_table_), field_lookup_table), + 4294967292, // skipmap + offsetof(decltype(_table_), field_entries), + 2, // num_field_entries + 1, // num_aux_entries + offsetof(decltype(_table_), aux_entries), + _class_data_.base(), + nullptr, // post_loop_handler + ::_pbi::TcParser::DiscardEverythingFallback, // fallback + #ifdef PROTOBUF_PREFETCH_PARSE_TABLE + ::_pbi::TcParser::GetTable<::Odb::Lib::Protobuf::ProductModel::Design_NetsByNameEntry_DoNotUse>(), // to_prefetch + #endif // PROTOBUF_PREFETCH_PARSE_TABLE + }, {{ + // .Odb.Lib.Protobuf.ProductModel.Net value = 2; + {::_pbi::TcParser::FastMtS1, + {18, 0, 0, PROTOBUF_FIELD_OFFSET(Design_NetsByNameEntry_DoNotUse, _impl_.value_)}}, + // string key = 1; + {::_pbi::TcParser::FastUS1, + {10, 63, 0, PROTOBUF_FIELD_OFFSET(Design_NetsByNameEntry_DoNotUse, _impl_.key_)}}, + }}, {{ + 65535, 65535 + }}, {{ + // string key = 1; + {PROTOBUF_FIELD_OFFSET(Design_NetsByNameEntry_DoNotUse, _impl_.key_), -1, 0, + (0 | ::_fl::kFcSingular | ::_fl::kUtf8String | ::_fl::kRepAString)}, + // .Odb.Lib.Protobuf.ProductModel.Net value = 2; + {PROTOBUF_FIELD_OFFSET(Design_NetsByNameEntry_DoNotUse, _impl_.value_), _Internal::kHasBitsOffset + 0, 0, + (0 | ::_fl::kFcOptional | ::_fl::kMessage | ::_fl::kTvTable)}, + }}, {{ + {::_pbi::TcParser::GetTable<::Odb::Lib::Protobuf::ProductModel::Net>()}, + }}, {{ + "\64\3\0\0\0\0\0\0" + "Odb.Lib.Protobuf.ProductModel.Design.NetsByNameEntry" + "key" + }}, +}; // =================================================================== -Design_PackagesByNameEntry_DoNotUse::Design_PackagesByNameEntry_DoNotUse() {} -Design_PackagesByNameEntry_DoNotUse::Design_PackagesByNameEntry_DoNotUse(::PROTOBUF_NAMESPACE_ID::Arena* arena) - : SuperType(arena) {} -void Design_PackagesByNameEntry_DoNotUse::MergeFrom(const Design_PackagesByNameEntry_DoNotUse& other) { - MergeFromInternal(other); -} -::PROTOBUF_NAMESPACE_ID::Metadata Design_PackagesByNameEntry_DoNotUse::GetMetadata() const { - return ::_pbi::AssignDescriptors( - &descriptor_table_design_2eproto_getter, &descriptor_table_design_2eproto_once, - file_level_metadata_design_2eproto[1]); -} +#if defined(PROTOBUF_CUSTOM_VTABLE) + Design_PackagesByNameEntry_DoNotUse::Design_PackagesByNameEntry_DoNotUse() : SuperType(_class_data_.base()) {} + Design_PackagesByNameEntry_DoNotUse::Design_PackagesByNameEntry_DoNotUse(::google::protobuf::Arena* arena) + : SuperType(arena, _class_data_.base()) {} +#else // PROTOBUF_CUSTOM_VTABLE + Design_PackagesByNameEntry_DoNotUse::Design_PackagesByNameEntry_DoNotUse() : SuperType() {} + Design_PackagesByNameEntry_DoNotUse::Design_PackagesByNameEntry_DoNotUse(::google::protobuf::Arena* arena) : SuperType(arena) {} +#endif // PROTOBUF_CUSTOM_VTABLE + inline void* Design_PackagesByNameEntry_DoNotUse::PlacementNew_(const void*, void* mem, + ::google::protobuf::Arena* arena) { + return ::new (mem) Design_PackagesByNameEntry_DoNotUse(arena); + } + constexpr auto Design_PackagesByNameEntry_DoNotUse::InternalNewImpl_() { + return ::google::protobuf::internal::MessageCreator::CopyInit(sizeof(Design_PackagesByNameEntry_DoNotUse), + alignof(Design_PackagesByNameEntry_DoNotUse)); + } + PROTOBUF_CONSTINIT + PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 + const ::google::protobuf::internal::ClassDataFull Design_PackagesByNameEntry_DoNotUse::_class_data_ = { + ::google::protobuf::internal::ClassData{ + &_Design_PackagesByNameEntry_DoNotUse_default_instance_._instance, + &_table_.header, + nullptr, // OnDemandRegisterArenaDtor + nullptr, // IsInitialized + &Design_PackagesByNameEntry_DoNotUse::MergeImpl, + ::google::protobuf::Message::GetNewImpl(), + #if defined(PROTOBUF_CUSTOM_VTABLE) + &Design_PackagesByNameEntry_DoNotUse::SharedDtor, + static_cast( + &Design_PackagesByNameEntry_DoNotUse::ClearImpl), + ::google::protobuf::Message::ByteSizeLongImpl, ::google::protobuf::Message::_InternalSerializeImpl + , + #endif // PROTOBUF_CUSTOM_VTABLE + PROTOBUF_FIELD_OFFSET(Design_PackagesByNameEntry_DoNotUse, _impl_._cached_size_), + false, + }, + &Design_PackagesByNameEntry_DoNotUse::kDescriptorMethods, + &descriptor_table_design_2eproto, + nullptr, // tracker + }; + const ::google::protobuf::internal::ClassData* Design_PackagesByNameEntry_DoNotUse::GetClassData() const { + ::google::protobuf::internal::PrefetchToLocalCache(&_class_data_); + ::google::protobuf::internal::PrefetchToLocalCache(_class_data_.tc_table); + return _class_data_.base(); + } +PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 +const ::_pbi::TcParseTable<1, 2, 1, 68, 2> Design_PackagesByNameEntry_DoNotUse::_table_ = { + { + PROTOBUF_FIELD_OFFSET(Design_PackagesByNameEntry_DoNotUse, _impl_._has_bits_), + 0, // no _extensions_ + 2, 8, // max_field_number, fast_idx_mask + offsetof(decltype(_table_), field_lookup_table), + 4294967292, // skipmap + offsetof(decltype(_table_), field_entries), + 2, // num_field_entries + 1, // num_aux_entries + offsetof(decltype(_table_), aux_entries), + _class_data_.base(), + nullptr, // post_loop_handler + ::_pbi::TcParser::DiscardEverythingFallback, // fallback + #ifdef PROTOBUF_PREFETCH_PARSE_TABLE + ::_pbi::TcParser::GetTable<::Odb::Lib::Protobuf::ProductModel::Design_PackagesByNameEntry_DoNotUse>(), // to_prefetch + #endif // PROTOBUF_PREFETCH_PARSE_TABLE + }, {{ + // .Odb.Lib.Protobuf.ProductModel.Package value = 2; + {::_pbi::TcParser::FastMtS1, + {18, 0, 0, PROTOBUF_FIELD_OFFSET(Design_PackagesByNameEntry_DoNotUse, _impl_.value_)}}, + // string key = 1; + {::_pbi::TcParser::FastUS1, + {10, 63, 0, PROTOBUF_FIELD_OFFSET(Design_PackagesByNameEntry_DoNotUse, _impl_.key_)}}, + }}, {{ + 65535, 65535 + }}, {{ + // string key = 1; + {PROTOBUF_FIELD_OFFSET(Design_PackagesByNameEntry_DoNotUse, _impl_.key_), -1, 0, + (0 | ::_fl::kFcSingular | ::_fl::kUtf8String | ::_fl::kRepAString)}, + // .Odb.Lib.Protobuf.ProductModel.Package value = 2; + {PROTOBUF_FIELD_OFFSET(Design_PackagesByNameEntry_DoNotUse, _impl_.value_), _Internal::kHasBitsOffset + 0, 0, + (0 | ::_fl::kFcOptional | ::_fl::kMessage | ::_fl::kTvTable)}, + }}, {{ + {::_pbi::TcParser::GetTable<::Odb::Lib::Protobuf::ProductModel::Package>()}, + }}, {{ + "\70\3\0\0\0\0\0\0" + "Odb.Lib.Protobuf.ProductModel.Design.PackagesByNameEntry" + "key" + }}, +}; // =================================================================== -Design_ComponentsByNameEntry_DoNotUse::Design_ComponentsByNameEntry_DoNotUse() {} -Design_ComponentsByNameEntry_DoNotUse::Design_ComponentsByNameEntry_DoNotUse(::PROTOBUF_NAMESPACE_ID::Arena* arena) - : SuperType(arena) {} -void Design_ComponentsByNameEntry_DoNotUse::MergeFrom(const Design_ComponentsByNameEntry_DoNotUse& other) { - MergeFromInternal(other); -} -::PROTOBUF_NAMESPACE_ID::Metadata Design_ComponentsByNameEntry_DoNotUse::GetMetadata() const { - return ::_pbi::AssignDescriptors( - &descriptor_table_design_2eproto_getter, &descriptor_table_design_2eproto_once, - file_level_metadata_design_2eproto[2]); -} +#if defined(PROTOBUF_CUSTOM_VTABLE) + Design_ComponentsByNameEntry_DoNotUse::Design_ComponentsByNameEntry_DoNotUse() : SuperType(_class_data_.base()) {} + Design_ComponentsByNameEntry_DoNotUse::Design_ComponentsByNameEntry_DoNotUse(::google::protobuf::Arena* arena) + : SuperType(arena, _class_data_.base()) {} +#else // PROTOBUF_CUSTOM_VTABLE + Design_ComponentsByNameEntry_DoNotUse::Design_ComponentsByNameEntry_DoNotUse() : SuperType() {} + Design_ComponentsByNameEntry_DoNotUse::Design_ComponentsByNameEntry_DoNotUse(::google::protobuf::Arena* arena) : SuperType(arena) {} +#endif // PROTOBUF_CUSTOM_VTABLE + inline void* Design_ComponentsByNameEntry_DoNotUse::PlacementNew_(const void*, void* mem, + ::google::protobuf::Arena* arena) { + return ::new (mem) Design_ComponentsByNameEntry_DoNotUse(arena); + } + constexpr auto Design_ComponentsByNameEntry_DoNotUse::InternalNewImpl_() { + return ::google::protobuf::internal::MessageCreator::CopyInit(sizeof(Design_ComponentsByNameEntry_DoNotUse), + alignof(Design_ComponentsByNameEntry_DoNotUse)); + } + PROTOBUF_CONSTINIT + PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 + const ::google::protobuf::internal::ClassDataFull Design_ComponentsByNameEntry_DoNotUse::_class_data_ = { + ::google::protobuf::internal::ClassData{ + &_Design_ComponentsByNameEntry_DoNotUse_default_instance_._instance, + &_table_.header, + nullptr, // OnDemandRegisterArenaDtor + nullptr, // IsInitialized + &Design_ComponentsByNameEntry_DoNotUse::MergeImpl, + ::google::protobuf::Message::GetNewImpl(), + #if defined(PROTOBUF_CUSTOM_VTABLE) + &Design_ComponentsByNameEntry_DoNotUse::SharedDtor, + static_cast( + &Design_ComponentsByNameEntry_DoNotUse::ClearImpl), + ::google::protobuf::Message::ByteSizeLongImpl, ::google::protobuf::Message::_InternalSerializeImpl + , + #endif // PROTOBUF_CUSTOM_VTABLE + PROTOBUF_FIELD_OFFSET(Design_ComponentsByNameEntry_DoNotUse, _impl_._cached_size_), + false, + }, + &Design_ComponentsByNameEntry_DoNotUse::kDescriptorMethods, + &descriptor_table_design_2eproto, + nullptr, // tracker + }; + const ::google::protobuf::internal::ClassData* Design_ComponentsByNameEntry_DoNotUse::GetClassData() const { + ::google::protobuf::internal::PrefetchToLocalCache(&_class_data_); + ::google::protobuf::internal::PrefetchToLocalCache(_class_data_.tc_table); + return _class_data_.base(); + } +PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 +const ::_pbi::TcParseTable<1, 2, 1, 70, 2> Design_ComponentsByNameEntry_DoNotUse::_table_ = { + { + PROTOBUF_FIELD_OFFSET(Design_ComponentsByNameEntry_DoNotUse, _impl_._has_bits_), + 0, // no _extensions_ + 2, 8, // max_field_number, fast_idx_mask + offsetof(decltype(_table_), field_lookup_table), + 4294967292, // skipmap + offsetof(decltype(_table_), field_entries), + 2, // num_field_entries + 1, // num_aux_entries + offsetof(decltype(_table_), aux_entries), + _class_data_.base(), + nullptr, // post_loop_handler + ::_pbi::TcParser::DiscardEverythingFallback, // fallback + #ifdef PROTOBUF_PREFETCH_PARSE_TABLE + ::_pbi::TcParser::GetTable<::Odb::Lib::Protobuf::ProductModel::Design_ComponentsByNameEntry_DoNotUse>(), // to_prefetch + #endif // PROTOBUF_PREFETCH_PARSE_TABLE + }, {{ + // .Odb.Lib.Protobuf.ProductModel.Component value = 2; + {::_pbi::TcParser::FastMtS1, + {18, 0, 0, PROTOBUF_FIELD_OFFSET(Design_ComponentsByNameEntry_DoNotUse, _impl_.value_)}}, + // string key = 1; + {::_pbi::TcParser::FastUS1, + {10, 63, 0, PROTOBUF_FIELD_OFFSET(Design_ComponentsByNameEntry_DoNotUse, _impl_.key_)}}, + }}, {{ + 65535, 65535 + }}, {{ + // string key = 1; + {PROTOBUF_FIELD_OFFSET(Design_ComponentsByNameEntry_DoNotUse, _impl_.key_), -1, 0, + (0 | ::_fl::kFcSingular | ::_fl::kUtf8String | ::_fl::kRepAString)}, + // .Odb.Lib.Protobuf.ProductModel.Component value = 2; + {PROTOBUF_FIELD_OFFSET(Design_ComponentsByNameEntry_DoNotUse, _impl_.value_), _Internal::kHasBitsOffset + 0, 0, + (0 | ::_fl::kFcOptional | ::_fl::kMessage | ::_fl::kTvTable)}, + }}, {{ + {::_pbi::TcParser::GetTable<::Odb::Lib::Protobuf::ProductModel::Component>()}, + }}, {{ + "\72\3\0\0\0\0\0\0" + "Odb.Lib.Protobuf.ProductModel.Design.ComponentsByNameEntry" + "key" + }}, +}; // =================================================================== -Design_PartsByNameEntry_DoNotUse::Design_PartsByNameEntry_DoNotUse() {} -Design_PartsByNameEntry_DoNotUse::Design_PartsByNameEntry_DoNotUse(::PROTOBUF_NAMESPACE_ID::Arena* arena) - : SuperType(arena) {} -void Design_PartsByNameEntry_DoNotUse::MergeFrom(const Design_PartsByNameEntry_DoNotUse& other) { - MergeFromInternal(other); -} -::PROTOBUF_NAMESPACE_ID::Metadata Design_PartsByNameEntry_DoNotUse::GetMetadata() const { - return ::_pbi::AssignDescriptors( - &descriptor_table_design_2eproto_getter, &descriptor_table_design_2eproto_once, - file_level_metadata_design_2eproto[3]); -} +#if defined(PROTOBUF_CUSTOM_VTABLE) + Design_PartsByNameEntry_DoNotUse::Design_PartsByNameEntry_DoNotUse() : SuperType(_class_data_.base()) {} + Design_PartsByNameEntry_DoNotUse::Design_PartsByNameEntry_DoNotUse(::google::protobuf::Arena* arena) + : SuperType(arena, _class_data_.base()) {} +#else // PROTOBUF_CUSTOM_VTABLE + Design_PartsByNameEntry_DoNotUse::Design_PartsByNameEntry_DoNotUse() : SuperType() {} + Design_PartsByNameEntry_DoNotUse::Design_PartsByNameEntry_DoNotUse(::google::protobuf::Arena* arena) : SuperType(arena) {} +#endif // PROTOBUF_CUSTOM_VTABLE + inline void* Design_PartsByNameEntry_DoNotUse::PlacementNew_(const void*, void* mem, + ::google::protobuf::Arena* arena) { + return ::new (mem) Design_PartsByNameEntry_DoNotUse(arena); + } + constexpr auto Design_PartsByNameEntry_DoNotUse::InternalNewImpl_() { + return ::google::protobuf::internal::MessageCreator::CopyInit(sizeof(Design_PartsByNameEntry_DoNotUse), + alignof(Design_PartsByNameEntry_DoNotUse)); + } + PROTOBUF_CONSTINIT + PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 + const ::google::protobuf::internal::ClassDataFull Design_PartsByNameEntry_DoNotUse::_class_data_ = { + ::google::protobuf::internal::ClassData{ + &_Design_PartsByNameEntry_DoNotUse_default_instance_._instance, + &_table_.header, + nullptr, // OnDemandRegisterArenaDtor + nullptr, // IsInitialized + &Design_PartsByNameEntry_DoNotUse::MergeImpl, + ::google::protobuf::Message::GetNewImpl(), + #if defined(PROTOBUF_CUSTOM_VTABLE) + &Design_PartsByNameEntry_DoNotUse::SharedDtor, + static_cast( + &Design_PartsByNameEntry_DoNotUse::ClearImpl), + ::google::protobuf::Message::ByteSizeLongImpl, ::google::protobuf::Message::_InternalSerializeImpl + , + #endif // PROTOBUF_CUSTOM_VTABLE + PROTOBUF_FIELD_OFFSET(Design_PartsByNameEntry_DoNotUse, _impl_._cached_size_), + false, + }, + &Design_PartsByNameEntry_DoNotUse::kDescriptorMethods, + &descriptor_table_design_2eproto, + nullptr, // tracker + }; + const ::google::protobuf::internal::ClassData* Design_PartsByNameEntry_DoNotUse::GetClassData() const { + ::google::protobuf::internal::PrefetchToLocalCache(&_class_data_); + ::google::protobuf::internal::PrefetchToLocalCache(_class_data_.tc_table); + return _class_data_.base(); + } +PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 +const ::_pbi::TcParseTable<1, 2, 1, 65, 2> Design_PartsByNameEntry_DoNotUse::_table_ = { + { + PROTOBUF_FIELD_OFFSET(Design_PartsByNameEntry_DoNotUse, _impl_._has_bits_), + 0, // no _extensions_ + 2, 8, // max_field_number, fast_idx_mask + offsetof(decltype(_table_), field_lookup_table), + 4294967292, // skipmap + offsetof(decltype(_table_), field_entries), + 2, // num_field_entries + 1, // num_aux_entries + offsetof(decltype(_table_), aux_entries), + _class_data_.base(), + nullptr, // post_loop_handler + ::_pbi::TcParser::DiscardEverythingFallback, // fallback + #ifdef PROTOBUF_PREFETCH_PARSE_TABLE + ::_pbi::TcParser::GetTable<::Odb::Lib::Protobuf::ProductModel::Design_PartsByNameEntry_DoNotUse>(), // to_prefetch + #endif // PROTOBUF_PREFETCH_PARSE_TABLE + }, {{ + // .Odb.Lib.Protobuf.ProductModel.Part value = 2; + {::_pbi::TcParser::FastMtS1, + {18, 0, 0, PROTOBUF_FIELD_OFFSET(Design_PartsByNameEntry_DoNotUse, _impl_.value_)}}, + // string key = 1; + {::_pbi::TcParser::FastUS1, + {10, 63, 0, PROTOBUF_FIELD_OFFSET(Design_PartsByNameEntry_DoNotUse, _impl_.key_)}}, + }}, {{ + 65535, 65535 + }}, {{ + // string key = 1; + {PROTOBUF_FIELD_OFFSET(Design_PartsByNameEntry_DoNotUse, _impl_.key_), -1, 0, + (0 | ::_fl::kFcSingular | ::_fl::kUtf8String | ::_fl::kRepAString)}, + // .Odb.Lib.Protobuf.ProductModel.Part value = 2; + {PROTOBUF_FIELD_OFFSET(Design_PartsByNameEntry_DoNotUse, _impl_.value_), _Internal::kHasBitsOffset + 0, 0, + (0 | ::_fl::kFcOptional | ::_fl::kMessage | ::_fl::kTvTable)}, + }}, {{ + {::_pbi::TcParser::GetTable<::Odb::Lib::Protobuf::ProductModel::Part>()}, + }}, {{ + "\65\3\0\0\0\0\0\0" + "Odb.Lib.Protobuf.ProductModel.Design.PartsByNameEntry" + "key" + }}, +}; // =================================================================== class Design::_Internal { public: - using HasBits = decltype(std::declval()._impl_._has_bits_); - static void set_has_productmodel(HasBits* has_bits) { - (*has_bits)[0] |= 1u; - } - static void set_has_name(HasBits* has_bits) { - (*has_bits)[0] |= 2u; - } - static const ::Odb::Lib::Protobuf::FileArchive& filemodel(const Design* msg); - static void set_has_filemodel(HasBits* has_bits) { - (*has_bits)[0] |= 4u; - } + using HasBits = + decltype(std::declval()._impl_._has_bits_); + static constexpr ::int32_t kHasBitsOffset = + 8 * PROTOBUF_FIELD_OFFSET(Design, _impl_._has_bits_); }; -const ::Odb::Lib::Protobuf::FileArchive& -Design::_Internal::filemodel(const Design* msg) { - return *msg->_impl_.filemodel_; -} void Design::clear_filemodel() { + ::google::protobuf::internal::TSanWrite(&_impl_); if (_impl_.filemodel_ != nullptr) _impl_.filemodel_->Clear(); _impl_._has_bits_[0] &= ~0x00000004u; } void Design::clear_nets() { + ::google::protobuf::internal::TSanWrite(&_impl_); _impl_.nets_.Clear(); } void Design::clear_netsbyname() { + ::google::protobuf::internal::TSanWrite(&_impl_); _impl_.netsbyname_.Clear(); } void Design::clear_packages() { + ::google::protobuf::internal::TSanWrite(&_impl_); _impl_.packages_.Clear(); } void Design::clear_packagesbyname() { + ::google::protobuf::internal::TSanWrite(&_impl_); _impl_.packagesbyname_.Clear(); } void Design::clear_components() { + ::google::protobuf::internal::TSanWrite(&_impl_); _impl_.components_.Clear(); } void Design::clear_componentsbyname() { + ::google::protobuf::internal::TSanWrite(&_impl_); _impl_.componentsbyname_.Clear(); } void Design::clear_parts() { + ::google::protobuf::internal::TSanWrite(&_impl_); _impl_.parts_.Clear(); } void Design::clear_partsbyname() { + ::google::protobuf::internal::TSanWrite(&_impl_); _impl_.partsbyname_.Clear(); } -Design::Design(::PROTOBUF_NAMESPACE_ID::Arena* arena, - bool is_message_owned) - : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned) { - SharedCtor(arena, is_message_owned); - if (arena != nullptr && !is_message_owned) { - arena->OwnCustomDestructor(this, &Design::ArenaDtor); - } +Design::Design(::google::protobuf::Arena* arena) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : ::google::protobuf::Message(arena, _class_data_.base()) { +#else // PROTOBUF_CUSTOM_VTABLE + : ::google::protobuf::Message(arena) { +#endif // PROTOBUF_CUSTOM_VTABLE + SharedCtor(arena); // @@protoc_insertion_point(arena_constructor:Odb.Lib.Protobuf.ProductModel.Design) } -Design::Design(const Design& from) - : ::PROTOBUF_NAMESPACE_ID::Message() { - Design* const _this = this; (void)_this; - new (&_impl_) Impl_{ - decltype(_impl_._has_bits_){from._impl_._has_bits_} - , /*decltype(_impl_._cached_size_)*/{} - , decltype(_impl_.nets_){from._impl_.nets_} - , /*decltype(_impl_.netsbyname_)*/{} - , decltype(_impl_.packages_){from._impl_.packages_} - , /*decltype(_impl_.packagesbyname_)*/{} - , decltype(_impl_.components_){from._impl_.components_} - , /*decltype(_impl_.componentsbyname_)*/{} - , decltype(_impl_.parts_){from._impl_.parts_} - , /*decltype(_impl_.partsbyname_)*/{} - , decltype(_impl_.productmodel_){} - , decltype(_impl_.name_){} - , decltype(_impl_.filemodel_){nullptr}}; +inline PROTOBUF_NDEBUG_INLINE Design::Impl_::Impl_( + ::google::protobuf::internal::InternalVisibility visibility, ::google::protobuf::Arena* arena, + const Impl_& from, const ::Odb::Lib::Protobuf::ProductModel::Design& from_msg) + : _has_bits_{from._has_bits_}, + _cached_size_{0}, + nets_{visibility, arena, from.nets_}, + netsbyname_{visibility, arena, from.netsbyname_}, + packages_{visibility, arena, from.packages_}, + packagesbyname_{visibility, arena, from.packagesbyname_}, + components_{visibility, arena, from.components_}, + componentsbyname_{visibility, arena, from.componentsbyname_}, + parts_{visibility, arena, from.parts_}, + partsbyname_{visibility, arena, from.partsbyname_}, + productmodel_(arena, from.productmodel_), + name_(arena, from.name_) {} + +Design::Design( + ::google::protobuf::Arena* arena, + const Design& from) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : ::google::protobuf::Message(arena, _class_data_.base()) { +#else // PROTOBUF_CUSTOM_VTABLE + : ::google::protobuf::Message(arena) { +#endif // PROTOBUF_CUSTOM_VTABLE + Design* const _this = this; + (void)_this; + _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( + from._internal_metadata_); + new (&_impl_) Impl_(internal_visibility(), arena, from._impl_, from); + ::uint32_t cached_has_bits = _impl_._has_bits_[0]; + _impl_.filemodel_ = (cached_has_bits & 0x00000004u) ? ::google::protobuf::Message::CopyConstruct<::Odb::Lib::Protobuf::FileArchive>( + arena, *from._impl_.filemodel_) + : nullptr; - _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); - _this->_impl_.netsbyname_.MergeFrom(from._impl_.netsbyname_); - _this->_impl_.packagesbyname_.MergeFrom(from._impl_.packagesbyname_); - _this->_impl_.componentsbyname_.MergeFrom(from._impl_.componentsbyname_); - _this->_impl_.partsbyname_.MergeFrom(from._impl_.partsbyname_); - _impl_.productmodel_.InitDefault(); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - _impl_.productmodel_.Set("", GetArenaForAllocation()); - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (from._internal_has_productmodel()) { - _this->_impl_.productmodel_.Set(from._internal_productmodel(), - _this->GetArenaForAllocation()); - } - _impl_.name_.InitDefault(); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - _impl_.name_.Set("", GetArenaForAllocation()); - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (from._internal_has_name()) { - _this->_impl_.name_.Set(from._internal_name(), - _this->GetArenaForAllocation()); - } - if (from._internal_has_filemodel()) { - _this->_impl_.filemodel_ = new ::Odb::Lib::Protobuf::FileArchive(*from._impl_.filemodel_); - } // @@protoc_insertion_point(copy_constructor:Odb.Lib.Protobuf.ProductModel.Design) } - -inline void Design::SharedCtor( - ::_pb::Arena* arena, bool is_message_owned) { - (void)arena; - (void)is_message_owned; - new (&_impl_) Impl_{ - decltype(_impl_._has_bits_){} - , /*decltype(_impl_._cached_size_)*/{} - , decltype(_impl_.nets_){arena} - , /*decltype(_impl_.netsbyname_)*/{::_pbi::ArenaInitialized(), arena} - , decltype(_impl_.packages_){arena} - , /*decltype(_impl_.packagesbyname_)*/{::_pbi::ArenaInitialized(), arena} - , decltype(_impl_.components_){arena} - , /*decltype(_impl_.componentsbyname_)*/{::_pbi::ArenaInitialized(), arena} - , decltype(_impl_.parts_){arena} - , /*decltype(_impl_.partsbyname_)*/{::_pbi::ArenaInitialized(), arena} - , decltype(_impl_.productmodel_){} - , decltype(_impl_.name_){} - , decltype(_impl_.filemodel_){nullptr} - }; - _impl_.productmodel_.InitDefault(); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - _impl_.productmodel_.Set("", GetArenaForAllocation()); - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING - _impl_.name_.InitDefault(); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - _impl_.name_.Set("", GetArenaForAllocation()); - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING +inline PROTOBUF_NDEBUG_INLINE Design::Impl_::Impl_( + ::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* arena) + : _cached_size_{0}, + nets_{visibility, arena}, + netsbyname_{visibility, arena}, + packages_{visibility, arena}, + packagesbyname_{visibility, arena}, + components_{visibility, arena}, + componentsbyname_{visibility, arena}, + parts_{visibility, arena}, + partsbyname_{visibility, arena}, + productmodel_(arena), + name_(arena) {} + +inline void Design::SharedCtor(::_pb::Arena* arena) { + new (&_impl_) Impl_(internal_visibility(), arena); + _impl_.filemodel_ = {}; } - Design::~Design() { // @@protoc_insertion_point(destructor:Odb.Lib.Protobuf.ProductModel.Design) - if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) { - (void)arena; - ArenaDtor(this); - return; - } - SharedDtor(); + SharedDtor(*this); } - -inline void Design::SharedDtor() { - GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); - _impl_.nets_.~RepeatedPtrField(); - _impl_.netsbyname_.Destruct(); - _impl_.netsbyname_.~MapField(); - _impl_.packages_.~RepeatedPtrField(); - _impl_.packagesbyname_.Destruct(); - _impl_.packagesbyname_.~MapField(); - _impl_.components_.~RepeatedPtrField(); - _impl_.componentsbyname_.Destruct(); - _impl_.componentsbyname_.~MapField(); - _impl_.parts_.~RepeatedPtrField(); - _impl_.partsbyname_.Destruct(); - _impl_.partsbyname_.~MapField(); - _impl_.productmodel_.Destroy(); - _impl_.name_.Destroy(); - if (this != internal_default_instance()) delete _impl_.filemodel_; +inline void Design::SharedDtor(MessageLite& self) { + Design& this_ = static_cast(self); + this_._internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); + ABSL_DCHECK(this_.GetArena() == nullptr); + this_._impl_.productmodel_.Destroy(); + this_._impl_.name_.Destroy(); + delete this_._impl_.filemodel_; + this_._impl_.~Impl_(); } -void Design::ArenaDtor(void* object) { - Design* _this = reinterpret_cast< Design* >(object); - _this->_impl_.netsbyname_.Destruct(); - _this->_impl_.packagesbyname_.Destruct(); - _this->_impl_.componentsbyname_.Destruct(); - _this->_impl_.partsbyname_.Destruct(); +inline void* Design::PlacementNew_(const void*, void* mem, + ::google::protobuf::Arena* arena) { + return ::new (mem) Design(arena); +} +constexpr auto Design::InternalNewImpl_() { + constexpr auto arena_bits = ::google::protobuf::internal::EncodePlacementArenaOffsets({ + PROTOBUF_FIELD_OFFSET(Design, _impl_.nets_) + + decltype(Design::_impl_.nets_):: + InternalGetArenaOffset( + ::google::protobuf::Message::internal_visibility()), + PROTOBUF_FIELD_OFFSET(Design, _impl_.netsbyname_) + + decltype(Design::_impl_.netsbyname_):: + InternalGetArenaOffset( + ::google::protobuf::Message::internal_visibility()), + PROTOBUF_FIELD_OFFSET(Design, _impl_.netsbyname_) + + decltype(Design::_impl_.netsbyname_):: + InternalGetArenaOffsetAlt( + ::google::protobuf::Message::internal_visibility()), + PROTOBUF_FIELD_OFFSET(Design, _impl_.packages_) + + decltype(Design::_impl_.packages_):: + InternalGetArenaOffset( + ::google::protobuf::Message::internal_visibility()), + PROTOBUF_FIELD_OFFSET(Design, _impl_.packagesbyname_) + + decltype(Design::_impl_.packagesbyname_):: + InternalGetArenaOffset( + ::google::protobuf::Message::internal_visibility()), + PROTOBUF_FIELD_OFFSET(Design, _impl_.packagesbyname_) + + decltype(Design::_impl_.packagesbyname_):: + InternalGetArenaOffsetAlt( + ::google::protobuf::Message::internal_visibility()), + PROTOBUF_FIELD_OFFSET(Design, _impl_.components_) + + decltype(Design::_impl_.components_):: + InternalGetArenaOffset( + ::google::protobuf::Message::internal_visibility()), + PROTOBUF_FIELD_OFFSET(Design, _impl_.componentsbyname_) + + decltype(Design::_impl_.componentsbyname_):: + InternalGetArenaOffset( + ::google::protobuf::Message::internal_visibility()), + PROTOBUF_FIELD_OFFSET(Design, _impl_.componentsbyname_) + + decltype(Design::_impl_.componentsbyname_):: + InternalGetArenaOffsetAlt( + ::google::protobuf::Message::internal_visibility()), + PROTOBUF_FIELD_OFFSET(Design, _impl_.parts_) + + decltype(Design::_impl_.parts_):: + InternalGetArenaOffset( + ::google::protobuf::Message::internal_visibility()), + PROTOBUF_FIELD_OFFSET(Design, _impl_.partsbyname_) + + decltype(Design::_impl_.partsbyname_):: + InternalGetArenaOffset( + ::google::protobuf::Message::internal_visibility()), + PROTOBUF_FIELD_OFFSET(Design, _impl_.partsbyname_) + + decltype(Design::_impl_.partsbyname_):: + InternalGetArenaOffsetAlt( + ::google::protobuf::Message::internal_visibility()), + }); + if (arena_bits.has_value()) { + return ::google::protobuf::internal::MessageCreator::CopyInit( + sizeof(Design), alignof(Design), *arena_bits); + } else { + return ::google::protobuf::internal::MessageCreator(&Design::PlacementNew_, + sizeof(Design), + alignof(Design)); + } } -void Design::SetCachedSize(int size) const { - _impl_._cached_size_.Set(size); +PROTOBUF_CONSTINIT +PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 +const ::google::protobuf::internal::ClassDataFull Design::_class_data_ = { + ::google::protobuf::internal::ClassData{ + &_Design_default_instance_._instance, + &_table_.header, + nullptr, // OnDemandRegisterArenaDtor + nullptr, // IsInitialized + &Design::MergeImpl, + ::google::protobuf::Message::GetNewImpl(), +#if defined(PROTOBUF_CUSTOM_VTABLE) + &Design::SharedDtor, + ::google::protobuf::Message::GetClearImpl(), &Design::ByteSizeLong, + &Design::_InternalSerialize, +#endif // PROTOBUF_CUSTOM_VTABLE + PROTOBUF_FIELD_OFFSET(Design, _impl_._cached_size_), + false, + }, + &Design::kDescriptorMethods, + &descriptor_table_design_2eproto, + nullptr, // tracker +}; +const ::google::protobuf::internal::ClassData* Design::GetClassData() const { + ::google::protobuf::internal::PrefetchToLocalCache(&_class_data_); + ::google::protobuf::internal::PrefetchToLocalCache(_class_data_.tc_table); + return _class_data_.base(); } +PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 +const ::_pbi::TcParseTable<4, 11, 13, 120, 2> Design::_table_ = { + { + PROTOBUF_FIELD_OFFSET(Design, _impl_._has_bits_), + 0, // no _extensions_ + 11, 120, // max_field_number, fast_idx_mask + offsetof(decltype(_table_), field_lookup_table), + 4294965248, // skipmap + offsetof(decltype(_table_), field_entries), + 11, // num_field_entries + 13, // num_aux_entries + offsetof(decltype(_table_), aux_entries), + _class_data_.base(), + nullptr, // post_loop_handler + ::_pbi::TcParser::GenericFallback, // fallback + #ifdef PROTOBUF_PREFETCH_PARSE_TABLE + ::_pbi::TcParser::GetTable<::Odb::Lib::Protobuf::ProductModel::Design>(), // to_prefetch + #endif // PROTOBUF_PREFETCH_PARSE_TABLE + }, {{ + {::_pbi::TcParser::MiniParse, {}}, + // optional string productModel = 1; + {::_pbi::TcParser::FastUS1, + {10, 0, 0, PROTOBUF_FIELD_OFFSET(Design, _impl_.productmodel_)}}, + // optional string name = 2; + {::_pbi::TcParser::FastUS1, + {18, 1, 0, PROTOBUF_FIELD_OFFSET(Design, _impl_.name_)}}, + // optional .Odb.Lib.Protobuf.FileArchive fileModel = 3; + {::_pbi::TcParser::FastMtS1, + {26, 2, 0, PROTOBUF_FIELD_OFFSET(Design, _impl_.filemodel_)}}, + // repeated .Odb.Lib.Protobuf.ProductModel.Net nets = 4; + {::_pbi::TcParser::FastMtR1, + {34, 63, 1, PROTOBUF_FIELD_OFFSET(Design, _impl_.nets_)}}, + {::_pbi::TcParser::MiniParse, {}}, + // repeated .Odb.Lib.Protobuf.ProductModel.Package packages = 6; + {::_pbi::TcParser::FastMtR1, + {50, 63, 2, PROTOBUF_FIELD_OFFSET(Design, _impl_.packages_)}}, + {::_pbi::TcParser::MiniParse, {}}, + // repeated .Odb.Lib.Protobuf.ProductModel.Component components = 8; + {::_pbi::TcParser::FastMtR1, + {66, 63, 3, PROTOBUF_FIELD_OFFSET(Design, _impl_.components_)}}, + {::_pbi::TcParser::MiniParse, {}}, + // repeated .Odb.Lib.Protobuf.ProductModel.Part parts = 10; + {::_pbi::TcParser::FastMtR1, + {82, 63, 4, PROTOBUF_FIELD_OFFSET(Design, _impl_.parts_)}}, + {::_pbi::TcParser::MiniParse, {}}, + {::_pbi::TcParser::MiniParse, {}}, + {::_pbi::TcParser::MiniParse, {}}, + {::_pbi::TcParser::MiniParse, {}}, + {::_pbi::TcParser::MiniParse, {}}, + }}, {{ + 65535, 65535 + }}, {{ + // optional string productModel = 1; + {PROTOBUF_FIELD_OFFSET(Design, _impl_.productmodel_), _Internal::kHasBitsOffset + 0, 0, + (0 | ::_fl::kFcOptional | ::_fl::kUtf8String | ::_fl::kRepAString)}, + // optional string name = 2; + {PROTOBUF_FIELD_OFFSET(Design, _impl_.name_), _Internal::kHasBitsOffset + 1, 0, + (0 | ::_fl::kFcOptional | ::_fl::kUtf8String | ::_fl::kRepAString)}, + // optional .Odb.Lib.Protobuf.FileArchive fileModel = 3; + {PROTOBUF_FIELD_OFFSET(Design, _impl_.filemodel_), _Internal::kHasBitsOffset + 2, 0, + (0 | ::_fl::kFcOptional | ::_fl::kMessage | ::_fl::kTvTable)}, + // repeated .Odb.Lib.Protobuf.ProductModel.Net nets = 4; + {PROTOBUF_FIELD_OFFSET(Design, _impl_.nets_), -1, 1, + (0 | ::_fl::kFcRepeated | ::_fl::kMessage | ::_fl::kTvTable)}, + // map netsByName = 5; + {PROTOBUF_FIELD_OFFSET(Design, _impl_.netsbyname_), -1, 5, + (0 | ::_fl::kFcRepeated | ::_fl::kMap)}, + // repeated .Odb.Lib.Protobuf.ProductModel.Package packages = 6; + {PROTOBUF_FIELD_OFFSET(Design, _impl_.packages_), -1, 2, + (0 | ::_fl::kFcRepeated | ::_fl::kMessage | ::_fl::kTvTable)}, + // map packagesByName = 7; + {PROTOBUF_FIELD_OFFSET(Design, _impl_.packagesbyname_), -1, 7, + (0 | ::_fl::kFcRepeated | ::_fl::kMap)}, + // repeated .Odb.Lib.Protobuf.ProductModel.Component components = 8; + {PROTOBUF_FIELD_OFFSET(Design, _impl_.components_), -1, 3, + (0 | ::_fl::kFcRepeated | ::_fl::kMessage | ::_fl::kTvTable)}, + // map componentsByName = 9; + {PROTOBUF_FIELD_OFFSET(Design, _impl_.componentsbyname_), -1, 9, + (0 | ::_fl::kFcRepeated | ::_fl::kMap)}, + // repeated .Odb.Lib.Protobuf.ProductModel.Part parts = 10; + {PROTOBUF_FIELD_OFFSET(Design, _impl_.parts_), -1, 4, + (0 | ::_fl::kFcRepeated | ::_fl::kMessage | ::_fl::kTvTable)}, + // map partsByName = 11; + {PROTOBUF_FIELD_OFFSET(Design, _impl_.partsbyname_), -1, 11, + (0 | ::_fl::kFcRepeated | ::_fl::kMap)}, + }}, {{ + {::_pbi::TcParser::GetTable<::Odb::Lib::Protobuf::FileArchive>()}, + {::_pbi::TcParser::GetTable<::Odb::Lib::Protobuf::ProductModel::Net>()}, + {::_pbi::TcParser::GetTable<::Odb::Lib::Protobuf::ProductModel::Package>()}, + {::_pbi::TcParser::GetTable<::Odb::Lib::Protobuf::ProductModel::Component>()}, + {::_pbi::TcParser::GetTable<::Odb::Lib::Protobuf::ProductModel::Part>()}, + {::_pbi::TcParser::GetMapAuxInfo< + decltype(Design()._impl_.netsbyname_)>( + 1, 0, 0, 9, + 11)}, + {::_pbi::TcParser::GetTable<::Odb::Lib::Protobuf::ProductModel::Net>()}, + {::_pbi::TcParser::GetMapAuxInfo< + decltype(Design()._impl_.packagesbyname_)>( + 1, 0, 0, 9, + 11)}, + {::_pbi::TcParser::GetTable<::Odb::Lib::Protobuf::ProductModel::Package>()}, + {::_pbi::TcParser::GetMapAuxInfo< + decltype(Design()._impl_.componentsbyname_)>( + 1, 0, 0, 9, + 11)}, + {::_pbi::TcParser::GetTable<::Odb::Lib::Protobuf::ProductModel::Component>()}, + {::_pbi::TcParser::GetMapAuxInfo< + decltype(Design()._impl_.partsbyname_)>( + 1, 0, 0, 9, + 11)}, + {::_pbi::TcParser::GetTable<::Odb::Lib::Protobuf::ProductModel::Part>()}, + }}, {{ + "\44\14\4\0\0\12\0\16\0\20\0\13\0\0\0\0" + "Odb.Lib.Protobuf.ProductModel.Design" + "productModel" + "name" + "netsByName" + "packagesByName" + "componentsByName" + "partsByName" + }}, +}; -void Design::Clear() { +PROTOBUF_NOINLINE void Design::Clear() { // @@protoc_insertion_point(message_clear_start:Odb.Lib.Protobuf.ProductModel.Design) - uint32_t cached_has_bits = 0; + ::google::protobuf::internal::TSanWrite(&_impl_); + ::uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; @@ -496,475 +1030,341 @@ void Design::Clear() { _impl_.name_.ClearNonDefaultToEmpty(); } if (cached_has_bits & 0x00000004u) { - GOOGLE_DCHECK(_impl_.filemodel_ != nullptr); + ABSL_DCHECK(_impl_.filemodel_ != nullptr); _impl_.filemodel_->Clear(); } } _impl_._has_bits_.Clear(); - _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); + _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); } -const char* Design::_InternalParse(const char* ptr, ::_pbi::ParseContext* ctx) { -#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure - _Internal::HasBits has_bits{}; - while (!ctx->Done(&ptr)) { - uint32_t tag; - ptr = ::_pbi::ReadTag(ptr, &tag); - switch (tag >> 3) { - // optional string productModel = 1; - case 1: - if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 10)) { - auto str = _internal_mutable_productmodel(); - ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); - CHK_(ptr); - CHK_(::_pbi::VerifyUTF8(str, "Odb.Lib.Protobuf.ProductModel.Design.productModel")); - } else - goto handle_unusual; - continue; - // optional string name = 2; - case 2: - if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 18)) { - auto str = _internal_mutable_name(); - ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); - CHK_(ptr); - CHK_(::_pbi::VerifyUTF8(str, "Odb.Lib.Protobuf.ProductModel.Design.name")); - } else - goto handle_unusual; - continue; - // optional .Odb.Lib.Protobuf.FileArchive fileModel = 3; - case 3: - if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 26)) { - ptr = ctx->ParseMessage(_internal_mutable_filemodel(), ptr); - CHK_(ptr); - } else - goto handle_unusual; - continue; - // repeated .Odb.Lib.Protobuf.ProductModel.Net nets = 4; - case 4: - if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 34)) { - ptr -= 1; - do { - ptr += 1; - ptr = ctx->ParseMessage(_internal_add_nets(), ptr); - CHK_(ptr); - if (!ctx->DataAvailable(ptr)) break; - } while (::PROTOBUF_NAMESPACE_ID::internal::ExpectTag<34>(ptr)); - } else - goto handle_unusual; - continue; - // map netsByName = 5; - case 5: - if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 42)) { - ptr -= 1; - do { - ptr += 1; - ptr = ctx->ParseMessage(&_impl_.netsbyname_, ptr); - CHK_(ptr); - if (!ctx->DataAvailable(ptr)) break; - } while (::PROTOBUF_NAMESPACE_ID::internal::ExpectTag<42>(ptr)); - } else - goto handle_unusual; - continue; - // repeated .Odb.Lib.Protobuf.ProductModel.Package packages = 6; - case 6: - if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 50)) { - ptr -= 1; - do { - ptr += 1; - ptr = ctx->ParseMessage(_internal_add_packages(), ptr); - CHK_(ptr); - if (!ctx->DataAvailable(ptr)) break; - } while (::PROTOBUF_NAMESPACE_ID::internal::ExpectTag<50>(ptr)); - } else - goto handle_unusual; - continue; - // map packagesByName = 7; - case 7: - if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 58)) { - ptr -= 1; - do { - ptr += 1; - ptr = ctx->ParseMessage(&_impl_.packagesbyname_, ptr); - CHK_(ptr); - if (!ctx->DataAvailable(ptr)) break; - } while (::PROTOBUF_NAMESPACE_ID::internal::ExpectTag<58>(ptr)); - } else - goto handle_unusual; - continue; - // repeated .Odb.Lib.Protobuf.ProductModel.Component components = 8; - case 8: - if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 66)) { - ptr -= 1; - do { - ptr += 1; - ptr = ctx->ParseMessage(_internal_add_components(), ptr); - CHK_(ptr); - if (!ctx->DataAvailable(ptr)) break; - } while (::PROTOBUF_NAMESPACE_ID::internal::ExpectTag<66>(ptr)); - } else - goto handle_unusual; - continue; - // map componentsByName = 9; - case 9: - if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 74)) { - ptr -= 1; - do { - ptr += 1; - ptr = ctx->ParseMessage(&_impl_.componentsbyname_, ptr); - CHK_(ptr); - if (!ctx->DataAvailable(ptr)) break; - } while (::PROTOBUF_NAMESPACE_ID::internal::ExpectTag<74>(ptr)); - } else - goto handle_unusual; - continue; - // repeated .Odb.Lib.Protobuf.ProductModel.Part parts = 10; - case 10: - if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 82)) { - ptr -= 1; - do { - ptr += 1; - ptr = ctx->ParseMessage(_internal_add_parts(), ptr); - CHK_(ptr); - if (!ctx->DataAvailable(ptr)) break; - } while (::PROTOBUF_NAMESPACE_ID::internal::ExpectTag<82>(ptr)); - } else - goto handle_unusual; - continue; - // map partsByName = 11; - case 11: - if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 90)) { - ptr -= 1; - do { - ptr += 1; - ptr = ctx->ParseMessage(&_impl_.partsbyname_, ptr); - CHK_(ptr); - if (!ctx->DataAvailable(ptr)) break; - } while (::PROTOBUF_NAMESPACE_ID::internal::ExpectTag<90>(ptr)); - } else - goto handle_unusual; - continue; - default: - goto handle_unusual; - } // switch - handle_unusual: - if ((tag == 0) || ((tag & 7) == 4)) { - CHK_(ptr); - ctx->SetLastTag(tag); - goto message_done; - } - ptr = UnknownFieldParse( - tag, - _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(), - ptr, ctx); - CHK_(ptr != nullptr); - } // while -message_done: - _impl_._has_bits_.Or(has_bits); - return ptr; -failure: - ptr = nullptr; - goto message_done; -#undef CHK_ -} - -uint8_t* Design::_InternalSerialize( - uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { - // @@protoc_insertion_point(serialize_to_array_start:Odb.Lib.Protobuf.ProductModel.Design) - uint32_t cached_has_bits = 0; - (void) cached_has_bits; - - // optional string productModel = 1; - if (_internal_has_productmodel()) { - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( - this->_internal_productmodel().data(), static_cast(this->_internal_productmodel().length()), - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, - "Odb.Lib.Protobuf.ProductModel.Design.productModel"); - target = stream->WriteStringMaybeAliased( - 1, this->_internal_productmodel(), target); - } - - // optional string name = 2; - if (_internal_has_name()) { - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( - this->_internal_name().data(), static_cast(this->_internal_name().length()), - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, - "Odb.Lib.Protobuf.ProductModel.Design.name"); - target = stream->WriteStringMaybeAliased( - 2, this->_internal_name(), target); - } - - // optional .Odb.Lib.Protobuf.FileArchive fileModel = 3; - if (_internal_has_filemodel()) { - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: - InternalWriteMessage(3, _Internal::filemodel(this), - _Internal::filemodel(this).GetCachedSize(), target, stream); - } - - // repeated .Odb.Lib.Protobuf.ProductModel.Net nets = 4; - for (unsigned i = 0, - n = static_cast(this->_internal_nets_size()); i < n; i++) { - const auto& repfield = this->_internal_nets(i); - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: - InternalWriteMessage(4, repfield, repfield.GetCachedSize(), target, stream); - } - - // map netsByName = 5; - if (!this->_internal_netsbyname().empty()) { - using MapType = ::_pb::Map; - using WireHelper = Design_NetsByNameEntry_DoNotUse::Funcs; - const auto& map_field = this->_internal_netsbyname(); - auto check_utf8 = [](const MapType::value_type& entry) { - (void)entry; - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( - entry.first.data(), static_cast(entry.first.length()), - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, - "Odb.Lib.Protobuf.ProductModel.Design.NetsByNameEntry.key"); - }; - - if (stream->IsSerializationDeterministic() && map_field.size() > 1) { - for (const auto& entry : ::_pbi::MapSorterPtr(map_field)) { - target = WireHelper::InternalSerialize(5, entry.first, entry.second, target, stream); - check_utf8(entry); - } - } else { - for (const auto& entry : map_field) { - target = WireHelper::InternalSerialize(5, entry.first, entry.second, target, stream); - check_utf8(entry); - } - } - } - - // repeated .Odb.Lib.Protobuf.ProductModel.Package packages = 6; - for (unsigned i = 0, - n = static_cast(this->_internal_packages_size()); i < n; i++) { - const auto& repfield = this->_internal_packages(i); - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: - InternalWriteMessage(6, repfield, repfield.GetCachedSize(), target, stream); - } - - // map packagesByName = 7; - if (!this->_internal_packagesbyname().empty()) { - using MapType = ::_pb::Map; - using WireHelper = Design_PackagesByNameEntry_DoNotUse::Funcs; - const auto& map_field = this->_internal_packagesbyname(); - auto check_utf8 = [](const MapType::value_type& entry) { - (void)entry; - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( - entry.first.data(), static_cast(entry.first.length()), - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, - "Odb.Lib.Protobuf.ProductModel.Design.PackagesByNameEntry.key"); - }; - - if (stream->IsSerializationDeterministic() && map_field.size() > 1) { - for (const auto& entry : ::_pbi::MapSorterPtr(map_field)) { - target = WireHelper::InternalSerialize(7, entry.first, entry.second, target, stream); - check_utf8(entry); - } - } else { - for (const auto& entry : map_field) { - target = WireHelper::InternalSerialize(7, entry.first, entry.second, target, stream); - check_utf8(entry); - } - } - } - - // repeated .Odb.Lib.Protobuf.ProductModel.Component components = 8; - for (unsigned i = 0, - n = static_cast(this->_internal_components_size()); i < n; i++) { - const auto& repfield = this->_internal_components(i); - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: - InternalWriteMessage(8, repfield, repfield.GetCachedSize(), target, stream); - } - - // map componentsByName = 9; - if (!this->_internal_componentsbyname().empty()) { - using MapType = ::_pb::Map; - using WireHelper = Design_ComponentsByNameEntry_DoNotUse::Funcs; - const auto& map_field = this->_internal_componentsbyname(); - auto check_utf8 = [](const MapType::value_type& entry) { - (void)entry; - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( - entry.first.data(), static_cast(entry.first.length()), - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, - "Odb.Lib.Protobuf.ProductModel.Design.ComponentsByNameEntry.key"); - }; - - if (stream->IsSerializationDeterministic() && map_field.size() > 1) { - for (const auto& entry : ::_pbi::MapSorterPtr(map_field)) { - target = WireHelper::InternalSerialize(9, entry.first, entry.second, target, stream); - check_utf8(entry); - } - } else { - for (const auto& entry : map_field) { - target = WireHelper::InternalSerialize(9, entry.first, entry.second, target, stream); - check_utf8(entry); - } - } - } - - // repeated .Odb.Lib.Protobuf.ProductModel.Part parts = 10; - for (unsigned i = 0, - n = static_cast(this->_internal_parts_size()); i < n; i++) { - const auto& repfield = this->_internal_parts(i); - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: - InternalWriteMessage(10, repfield, repfield.GetCachedSize(), target, stream); - } - - // map partsByName = 11; - if (!this->_internal_partsbyname().empty()) { - using MapType = ::_pb::Map; - using WireHelper = Design_PartsByNameEntry_DoNotUse::Funcs; - const auto& map_field = this->_internal_partsbyname(); - auto check_utf8 = [](const MapType::value_type& entry) { - (void)entry; - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( - entry.first.data(), static_cast(entry.first.length()), - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, - "Odb.Lib.Protobuf.ProductModel.Design.PartsByNameEntry.key"); - }; - - if (stream->IsSerializationDeterministic() && map_field.size() > 1) { - for (const auto& entry : ::_pbi::MapSorterPtr(map_field)) { - target = WireHelper::InternalSerialize(11, entry.first, entry.second, target, stream); - check_utf8(entry); - } - } else { - for (const auto& entry : map_field) { - target = WireHelper::InternalSerialize(11, entry.first, entry.second, target, stream); - check_utf8(entry); - } - } - } - - if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = ::_pbi::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:Odb.Lib.Protobuf.ProductModel.Design) - return target; -} - -size_t Design::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:Odb.Lib.Protobuf.ProductModel.Design) - size_t total_size = 0; - - uint32_t cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - // repeated .Odb.Lib.Protobuf.ProductModel.Net nets = 4; - total_size += 1UL * this->_internal_nets_size(); - for (const auto& msg : this->_impl_.nets_) { - total_size += - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(msg); - } - - // map netsByName = 5; - total_size += 1 * - ::PROTOBUF_NAMESPACE_ID::internal::FromIntSize(this->_internal_netsbyname_size()); - for (::PROTOBUF_NAMESPACE_ID::Map< std::string, ::Odb::Lib::Protobuf::ProductModel::Net >::const_iterator - it = this->_internal_netsbyname().begin(); - it != this->_internal_netsbyname().end(); ++it) { - total_size += Design_NetsByNameEntry_DoNotUse::Funcs::ByteSizeLong(it->first, it->second); - } - - // repeated .Odb.Lib.Protobuf.ProductModel.Package packages = 6; - total_size += 1UL * this->_internal_packages_size(); - for (const auto& msg : this->_impl_.packages_) { - total_size += - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(msg); - } - - // map packagesByName = 7; - total_size += 1 * - ::PROTOBUF_NAMESPACE_ID::internal::FromIntSize(this->_internal_packagesbyname_size()); - for (::PROTOBUF_NAMESPACE_ID::Map< std::string, ::Odb::Lib::Protobuf::ProductModel::Package >::const_iterator - it = this->_internal_packagesbyname().begin(); - it != this->_internal_packagesbyname().end(); ++it) { - total_size += Design_PackagesByNameEntry_DoNotUse::Funcs::ByteSizeLong(it->first, it->second); - } - - // repeated .Odb.Lib.Protobuf.ProductModel.Component components = 8; - total_size += 1UL * this->_internal_components_size(); - for (const auto& msg : this->_impl_.components_) { - total_size += - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(msg); - } - - // map componentsByName = 9; - total_size += 1 * - ::PROTOBUF_NAMESPACE_ID::internal::FromIntSize(this->_internal_componentsbyname_size()); - for (::PROTOBUF_NAMESPACE_ID::Map< std::string, ::Odb::Lib::Protobuf::ProductModel::Component >::const_iterator - it = this->_internal_componentsbyname().begin(); - it != this->_internal_componentsbyname().end(); ++it) { - total_size += Design_ComponentsByNameEntry_DoNotUse::Funcs::ByteSizeLong(it->first, it->second); - } - - // repeated .Odb.Lib.Protobuf.ProductModel.Part parts = 10; - total_size += 1UL * this->_internal_parts_size(); - for (const auto& msg : this->_impl_.parts_) { - total_size += - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(msg); - } - - // map partsByName = 11; - total_size += 1 * - ::PROTOBUF_NAMESPACE_ID::internal::FromIntSize(this->_internal_partsbyname_size()); - for (::PROTOBUF_NAMESPACE_ID::Map< std::string, ::Odb::Lib::Protobuf::ProductModel::Part >::const_iterator - it = this->_internal_partsbyname().begin(); - it != this->_internal_partsbyname().end(); ++it) { - total_size += Design_PartsByNameEntry_DoNotUse::Funcs::ByteSizeLong(it->first, it->second); - } - - cached_has_bits = _impl_._has_bits_[0]; - if (cached_has_bits & 0x00000007u) { - // optional string productModel = 1; - if (cached_has_bits & 0x00000001u) { - total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( - this->_internal_productmodel()); - } - - // optional string name = 2; - if (cached_has_bits & 0x00000002u) { - total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( - this->_internal_name()); - } - - // optional .Odb.Lib.Protobuf.FileArchive fileModel = 3; - if (cached_has_bits & 0x00000004u) { - total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( - *_impl_.filemodel_); - } - - } - return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); -} - -const ::PROTOBUF_NAMESPACE_ID::Message::ClassData Design::_class_data_ = { - ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSourceCheck, - Design::MergeImpl -}; -const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*Design::GetClassData() const { return &_class_data_; } - - -void Design::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg) { +#if defined(PROTOBUF_CUSTOM_VTABLE) + ::uint8_t* Design::_InternalSerialize( + const MessageLite& base, ::uint8_t* target, + ::google::protobuf::io::EpsCopyOutputStream* stream) { + const Design& this_ = static_cast(base); +#else // PROTOBUF_CUSTOM_VTABLE + ::uint8_t* Design::_InternalSerialize( + ::uint8_t* target, + ::google::protobuf::io::EpsCopyOutputStream* stream) const { + const Design& this_ = *this; +#endif // PROTOBUF_CUSTOM_VTABLE + // @@protoc_insertion_point(serialize_to_array_start:Odb.Lib.Protobuf.ProductModel.Design) + ::uint32_t cached_has_bits = 0; + (void)cached_has_bits; + + cached_has_bits = this_._impl_._has_bits_[0]; + // optional string productModel = 1; + if (cached_has_bits & 0x00000001u) { + const std::string& _s = this_._internal_productmodel(); + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + _s.data(), static_cast(_s.length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "Odb.Lib.Protobuf.ProductModel.Design.productModel"); + target = stream->WriteStringMaybeAliased(1, _s, target); + } + + // optional string name = 2; + if (cached_has_bits & 0x00000002u) { + const std::string& _s = this_._internal_name(); + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + _s.data(), static_cast(_s.length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "Odb.Lib.Protobuf.ProductModel.Design.name"); + target = stream->WriteStringMaybeAliased(2, _s, target); + } + + // optional .Odb.Lib.Protobuf.FileArchive fileModel = 3; + if (cached_has_bits & 0x00000004u) { + target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( + 3, *this_._impl_.filemodel_, this_._impl_.filemodel_->GetCachedSize(), target, + stream); + } + + // repeated .Odb.Lib.Protobuf.ProductModel.Net nets = 4; + for (unsigned i = 0, n = static_cast( + this_._internal_nets_size()); + i < n; i++) { + const auto& repfield = this_._internal_nets().Get(i); + target = + ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( + 4, repfield, repfield.GetCachedSize(), + target, stream); + } + + // map netsByName = 5; + if (!this_._internal_netsbyname().empty()) { + using MapType = ::google::protobuf::Map; + using WireHelper = _pbi::MapEntryFuncs; + const auto& field = this_._internal_netsbyname(); + + if (stream->IsSerializationDeterministic() && field.size() > 1) { + for (const auto& entry : ::google::protobuf::internal::MapSorterPtr(field)) { + target = WireHelper::InternalSerialize( + 5, entry.first, entry.second, target, stream); + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + entry.first.data(), static_cast(entry.first.length()), + ::google::protobuf::internal::WireFormatLite::SERIALIZE, "Odb.Lib.Protobuf.ProductModel.Design.netsByName"); + } + } else { + for (const auto& entry : field) { + target = WireHelper::InternalSerialize( + 5, entry.first, entry.second, target, stream); + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + entry.first.data(), static_cast(entry.first.length()), + ::google::protobuf::internal::WireFormatLite::SERIALIZE, "Odb.Lib.Protobuf.ProductModel.Design.netsByName"); + } + } + } + + // repeated .Odb.Lib.Protobuf.ProductModel.Package packages = 6; + for (unsigned i = 0, n = static_cast( + this_._internal_packages_size()); + i < n; i++) { + const auto& repfield = this_._internal_packages().Get(i); + target = + ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( + 6, repfield, repfield.GetCachedSize(), + target, stream); + } + + // map packagesByName = 7; + if (!this_._internal_packagesbyname().empty()) { + using MapType = ::google::protobuf::Map; + using WireHelper = _pbi::MapEntryFuncs; + const auto& field = this_._internal_packagesbyname(); + + if (stream->IsSerializationDeterministic() && field.size() > 1) { + for (const auto& entry : ::google::protobuf::internal::MapSorterPtr(field)) { + target = WireHelper::InternalSerialize( + 7, entry.first, entry.second, target, stream); + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + entry.first.data(), static_cast(entry.first.length()), + ::google::protobuf::internal::WireFormatLite::SERIALIZE, "Odb.Lib.Protobuf.ProductModel.Design.packagesByName"); + } + } else { + for (const auto& entry : field) { + target = WireHelper::InternalSerialize( + 7, entry.first, entry.second, target, stream); + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + entry.first.data(), static_cast(entry.first.length()), + ::google::protobuf::internal::WireFormatLite::SERIALIZE, "Odb.Lib.Protobuf.ProductModel.Design.packagesByName"); + } + } + } + + // repeated .Odb.Lib.Protobuf.ProductModel.Component components = 8; + for (unsigned i = 0, n = static_cast( + this_._internal_components_size()); + i < n; i++) { + const auto& repfield = this_._internal_components().Get(i); + target = + ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( + 8, repfield, repfield.GetCachedSize(), + target, stream); + } + + // map componentsByName = 9; + if (!this_._internal_componentsbyname().empty()) { + using MapType = ::google::protobuf::Map; + using WireHelper = _pbi::MapEntryFuncs; + const auto& field = this_._internal_componentsbyname(); + + if (stream->IsSerializationDeterministic() && field.size() > 1) { + for (const auto& entry : ::google::protobuf::internal::MapSorterPtr(field)) { + target = WireHelper::InternalSerialize( + 9, entry.first, entry.second, target, stream); + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + entry.first.data(), static_cast(entry.first.length()), + ::google::protobuf::internal::WireFormatLite::SERIALIZE, "Odb.Lib.Protobuf.ProductModel.Design.componentsByName"); + } + } else { + for (const auto& entry : field) { + target = WireHelper::InternalSerialize( + 9, entry.first, entry.second, target, stream); + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + entry.first.data(), static_cast(entry.first.length()), + ::google::protobuf::internal::WireFormatLite::SERIALIZE, "Odb.Lib.Protobuf.ProductModel.Design.componentsByName"); + } + } + } + + // repeated .Odb.Lib.Protobuf.ProductModel.Part parts = 10; + for (unsigned i = 0, n = static_cast( + this_._internal_parts_size()); + i < n; i++) { + const auto& repfield = this_._internal_parts().Get(i); + target = + ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( + 10, repfield, repfield.GetCachedSize(), + target, stream); + } + + // map partsByName = 11; + if (!this_._internal_partsbyname().empty()) { + using MapType = ::google::protobuf::Map; + using WireHelper = _pbi::MapEntryFuncs; + const auto& field = this_._internal_partsbyname(); + + if (stream->IsSerializationDeterministic() && field.size() > 1) { + for (const auto& entry : ::google::protobuf::internal::MapSorterPtr(field)) { + target = WireHelper::InternalSerialize( + 11, entry.first, entry.second, target, stream); + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + entry.first.data(), static_cast(entry.first.length()), + ::google::protobuf::internal::WireFormatLite::SERIALIZE, "Odb.Lib.Protobuf.ProductModel.Design.partsByName"); + } + } else { + for (const auto& entry : field) { + target = WireHelper::InternalSerialize( + 11, entry.first, entry.second, target, stream); + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + entry.first.data(), static_cast(entry.first.length()), + ::google::protobuf::internal::WireFormatLite::SERIALIZE, "Odb.Lib.Protobuf.ProductModel.Design.partsByName"); + } + } + } + + if (PROTOBUF_PREDICT_FALSE(this_._internal_metadata_.have_unknown_fields())) { + target = + ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( + this_._internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); + } + // @@protoc_insertion_point(serialize_to_array_end:Odb.Lib.Protobuf.ProductModel.Design) + return target; + } + +#if defined(PROTOBUF_CUSTOM_VTABLE) + ::size_t Design::ByteSizeLong(const MessageLite& base) { + const Design& this_ = static_cast(base); +#else // PROTOBUF_CUSTOM_VTABLE + ::size_t Design::ByteSizeLong() const { + const Design& this_ = *this; +#endif // PROTOBUF_CUSTOM_VTABLE + // @@protoc_insertion_point(message_byte_size_start:Odb.Lib.Protobuf.ProductModel.Design) + ::size_t total_size = 0; + + ::uint32_t cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void)cached_has_bits; + + ::_pbi::Prefetch5LinesFrom7Lines(&this_); + { + // repeated .Odb.Lib.Protobuf.ProductModel.Net nets = 4; + { + total_size += 1UL * this_._internal_nets_size(); + for (const auto& msg : this_._internal_nets()) { + total_size += ::google::protobuf::internal::WireFormatLite::MessageSize(msg); + } + } + // map netsByName = 5; + { + total_size += + 1 * ::google::protobuf::internal::FromIntSize(this_._internal_netsbyname_size()); + for (const auto& entry : this_._internal_netsbyname()) { + total_size += _pbi::MapEntryFuncs::ByteSizeLong(entry.first, entry.second); + } + } + // repeated .Odb.Lib.Protobuf.ProductModel.Package packages = 6; + { + total_size += 1UL * this_._internal_packages_size(); + for (const auto& msg : this_._internal_packages()) { + total_size += ::google::protobuf::internal::WireFormatLite::MessageSize(msg); + } + } + // map packagesByName = 7; + { + total_size += + 1 * ::google::protobuf::internal::FromIntSize(this_._internal_packagesbyname_size()); + for (const auto& entry : this_._internal_packagesbyname()) { + total_size += _pbi::MapEntryFuncs::ByteSizeLong(entry.first, entry.second); + } + } + // repeated .Odb.Lib.Protobuf.ProductModel.Component components = 8; + { + total_size += 1UL * this_._internal_components_size(); + for (const auto& msg : this_._internal_components()) { + total_size += ::google::protobuf::internal::WireFormatLite::MessageSize(msg); + } + } + // map componentsByName = 9; + { + total_size += + 1 * ::google::protobuf::internal::FromIntSize(this_._internal_componentsbyname_size()); + for (const auto& entry : this_._internal_componentsbyname()) { + total_size += _pbi::MapEntryFuncs::ByteSizeLong(entry.first, entry.second); + } + } + // repeated .Odb.Lib.Protobuf.ProductModel.Part parts = 10; + { + total_size += 1UL * this_._internal_parts_size(); + for (const auto& msg : this_._internal_parts()) { + total_size += ::google::protobuf::internal::WireFormatLite::MessageSize(msg); + } + } + // map partsByName = 11; + { + total_size += + 1 * ::google::protobuf::internal::FromIntSize(this_._internal_partsbyname_size()); + for (const auto& entry : this_._internal_partsbyname()) { + total_size += _pbi::MapEntryFuncs::ByteSizeLong(entry.first, entry.second); + } + } + } + cached_has_bits = this_._impl_._has_bits_[0]; + if (cached_has_bits & 0x00000007u) { + // optional string productModel = 1; + if (cached_has_bits & 0x00000001u) { + total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize( + this_._internal_productmodel()); + } + // optional string name = 2; + if (cached_has_bits & 0x00000002u) { + total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize( + this_._internal_name()); + } + // optional .Odb.Lib.Protobuf.FileArchive fileModel = 3; + if (cached_has_bits & 0x00000004u) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::MessageSize(*this_._impl_.filemodel_); + } + } + return this_.MaybeComputeUnknownFieldsSize(total_size, + &this_._impl_._cached_size_); + } + +void Design::MergeImpl(::google::protobuf::MessageLite& to_msg, const ::google::protobuf::MessageLite& from_msg) { auto* const _this = static_cast(&to_msg); auto& from = static_cast(from_msg); + ::google::protobuf::Arena* arena = _this->GetArena(); // @@protoc_insertion_point(class_specific_merge_from_start:Odb.Lib.Protobuf.ProductModel.Design) - GOOGLE_DCHECK_NE(&from, _this); - uint32_t cached_has_bits = 0; + ABSL_DCHECK_NE(&from, _this); + ::uint32_t cached_has_bits = 0; (void) cached_has_bits; - _this->_impl_.nets_.MergeFrom(from._impl_.nets_); + _this->_internal_mutable_nets()->MergeFrom( + from._internal_nets()); _this->_impl_.netsbyname_.MergeFrom(from._impl_.netsbyname_); - _this->_impl_.packages_.MergeFrom(from._impl_.packages_); + _this->_internal_mutable_packages()->MergeFrom( + from._internal_packages()); _this->_impl_.packagesbyname_.MergeFrom(from._impl_.packagesbyname_); - _this->_impl_.components_.MergeFrom(from._impl_.components_); + _this->_internal_mutable_components()->MergeFrom( + from._internal_components()); _this->_impl_.componentsbyname_.MergeFrom(from._impl_.componentsbyname_); - _this->_impl_.parts_.MergeFrom(from._impl_.parts_); + _this->_internal_mutable_parts()->MergeFrom( + from._internal_parts()); _this->_impl_.partsbyname_.MergeFrom(from._impl_.partsbyname_); cached_has_bits = from._impl_._has_bits_[0]; if (cached_has_bits & 0x00000007u) { @@ -975,11 +1375,17 @@ void Design::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBU _this->_internal_set_name(from._internal_name()); } if (cached_has_bits & 0x00000004u) { - _this->_internal_mutable_filemodel()->::Odb::Lib::Protobuf::FileArchive::MergeFrom( - from._internal_filemodel()); + ABSL_DCHECK(from._impl_.filemodel_ != nullptr); + if (_this->_impl_.filemodel_ == nullptr) { + _this->_impl_.filemodel_ = + ::google::protobuf::Message::CopyConstruct<::Odb::Lib::Protobuf::FileArchive>(arena, *from._impl_.filemodel_); + } else { + _this->_impl_.filemodel_->MergeFrom(*from._impl_.filemodel_); + } } } - _this->_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); + _this->_impl_._has_bits_[0] |= cached_has_bits; + _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); } void Design::CopyFrom(const Design& from) { @@ -989,14 +1395,11 @@ void Design::CopyFrom(const Design& from) { MergeFrom(from); } -bool Design::IsInitialized() const { - return true; -} -void Design::InternalSwap(Design* other) { +void Design::InternalSwap(Design* PROTOBUF_RESTRICT other) { using std::swap; - auto* lhs_arena = GetArenaForAllocation(); - auto* rhs_arena = other->GetArenaForAllocation(); + auto* arena = GetArena(); + ABSL_DCHECK_EQ(arena, other->GetArena()); _internal_metadata_.InternalSwap(&other->_internal_metadata_); swap(_impl_._has_bits_[0], other->_impl_._has_bits_[0]); _impl_.nets_.InternalSwap(&other->_impl_.nets_); @@ -1007,50 +1410,26 @@ void Design::InternalSwap(Design* other) { _impl_.componentsbyname_.InternalSwap(&other->_impl_.componentsbyname_); _impl_.parts_.InternalSwap(&other->_impl_.parts_); _impl_.partsbyname_.InternalSwap(&other->_impl_.partsbyname_); - ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( - &_impl_.productmodel_, lhs_arena, - &other->_impl_.productmodel_, rhs_arena - ); - ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( - &_impl_.name_, lhs_arena, - &other->_impl_.name_, rhs_arena - ); + ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.productmodel_, &other->_impl_.productmodel_, arena); + ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.name_, &other->_impl_.name_, arena); swap(_impl_.filemodel_, other->_impl_.filemodel_); } -::PROTOBUF_NAMESPACE_ID::Metadata Design::GetMetadata() const { - return ::_pbi::AssignDescriptors( - &descriptor_table_design_2eproto_getter, &descriptor_table_design_2eproto_once, - file_level_metadata_design_2eproto[4]); +::google::protobuf::Metadata Design::GetMetadata() const { + return ::google::protobuf::Message::GetMetadataImpl(GetClassData()->full()); } - // @@protoc_insertion_point(namespace_scope) } // namespace ProductModel } // namespace Protobuf } // namespace Lib } // namespace Odb -PROTOBUF_NAMESPACE_OPEN -template<> PROTOBUF_NOINLINE ::Odb::Lib::Protobuf::ProductModel::Design_NetsByNameEntry_DoNotUse* -Arena::CreateMaybeMessage< ::Odb::Lib::Protobuf::ProductModel::Design_NetsByNameEntry_DoNotUse >(Arena* arena) { - return Arena::CreateMessageInternal< ::Odb::Lib::Protobuf::ProductModel::Design_NetsByNameEntry_DoNotUse >(arena); -} -template<> PROTOBUF_NOINLINE ::Odb::Lib::Protobuf::ProductModel::Design_PackagesByNameEntry_DoNotUse* -Arena::CreateMaybeMessage< ::Odb::Lib::Protobuf::ProductModel::Design_PackagesByNameEntry_DoNotUse >(Arena* arena) { - return Arena::CreateMessageInternal< ::Odb::Lib::Protobuf::ProductModel::Design_PackagesByNameEntry_DoNotUse >(arena); -} -template<> PROTOBUF_NOINLINE ::Odb::Lib::Protobuf::ProductModel::Design_ComponentsByNameEntry_DoNotUse* -Arena::CreateMaybeMessage< ::Odb::Lib::Protobuf::ProductModel::Design_ComponentsByNameEntry_DoNotUse >(Arena* arena) { - return Arena::CreateMessageInternal< ::Odb::Lib::Protobuf::ProductModel::Design_ComponentsByNameEntry_DoNotUse >(arena); -} -template<> PROTOBUF_NOINLINE ::Odb::Lib::Protobuf::ProductModel::Design_PartsByNameEntry_DoNotUse* -Arena::CreateMaybeMessage< ::Odb::Lib::Protobuf::ProductModel::Design_PartsByNameEntry_DoNotUse >(Arena* arena) { - return Arena::CreateMessageInternal< ::Odb::Lib::Protobuf::ProductModel::Design_PartsByNameEntry_DoNotUse >(arena); -} -template<> PROTOBUF_NOINLINE ::Odb::Lib::Protobuf::ProductModel::Design* -Arena::CreateMaybeMessage< ::Odb::Lib::Protobuf::ProductModel::Design >(Arena* arena) { - return Arena::CreateMessageInternal< ::Odb::Lib::Protobuf::ProductModel::Design >(arena); -} -PROTOBUF_NAMESPACE_CLOSE - +namespace google { +namespace protobuf { +} // namespace protobuf +} // namespace google // @@protoc_insertion_point(global_scope) -#include +PROTOBUF_ATTRIBUTE_INIT_PRIORITY2 static ::std::false_type + _static_init2_ PROTOBUF_UNUSED = + (::_pbi::AddDescriptors(&descriptor_table_design_2eproto), + ::std::false_type{}); +#include "google/protobuf/port_undef.inc" diff --git a/OdbDesignLib/ProtoBuf/design.pb.h b/OdbDesignLib/ProtoBuf/design.pb.h index 5897df72..2bb582de 100644 --- a/OdbDesignLib/ProtoBuf/design.pb.h +++ b/OdbDesignLib/ProtoBuf/design.pb.h @@ -1,57 +1,64 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE // source: design.proto +// Protobuf C++ Version: 5.29.2 -#ifndef GOOGLE_PROTOBUF_INCLUDED_design_2eproto -#define GOOGLE_PROTOBUF_INCLUDED_design_2eproto +#ifndef design_2eproto_2epb_2eh +#define design_2eproto_2epb_2eh #include #include - -#include -#if PROTOBUF_VERSION < 3021000 -#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 3021012 < 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. +#include +#include + +#include "google/protobuf/runtime_version.h" +#if PROTOBUF_VERSION != 5029002 +#error "Protobuf C++ gencode is built with an incompatible version of" +#error "Protobuf C++ headers/runtime. See" +#error "https://protobuf.dev/support/cross-version-runtime-guarantee/#cpp" #endif - -#include -#include -#include -#include -#include -#include -#include -#include -#include // IWYU pragma: export -#include // IWYU pragma: export -#include // IWYU pragma: export -#include -#include -#include +#include "google/protobuf/io/coded_stream.h" +#include "google/protobuf/arena.h" +#include "google/protobuf/arenastring.h" +#include "google/protobuf/generated_message_tctable_decl.h" +#include "google/protobuf/generated_message_util.h" +#include "google/protobuf/metadata_lite.h" +#include "google/protobuf/generated_message_reflection.h" +#include "google/protobuf/message.h" +#include "google/protobuf/message_lite.h" +#include "google/protobuf/repeated_field.h" // IWYU pragma: export +#include "google/protobuf/extension_set.h" // IWYU pragma: export +#include "google/protobuf/map.h" // IWYU pragma: export +#include "google/protobuf/map_entry.h" +#include "google/protobuf/map_field_inl.h" +#include "google/protobuf/unknown_field_set.h" #include "filearchive.pb.h" #include "net.pb.h" #include "package.pb.h" #include "component.pb.h" #include "part.pb.h" // @@protoc_insertion_point(includes) -#include + +// Must be included last. +#include "google/protobuf/port_def.inc" + #define PROTOBUF_INTERNAL_EXPORT_design_2eproto ODBDESIGN_EXPORT -PROTOBUF_NAMESPACE_OPEN + +namespace google { +namespace protobuf { namespace internal { -class AnyMetadata; +template +::absl::string_view GetAnyMessageName(); } // namespace internal -PROTOBUF_NAMESPACE_CLOSE +} // namespace protobuf +} // namespace google // Internal implementation detail -- do not use these members. struct ODBDESIGN_EXPORT TableStruct_design_2eproto { - static const uint32_t offsets[]; + static const ::uint32_t offsets[]; }; -ODBDESIGN_EXPORT extern const ::PROTOBUF_NAMESPACE_ID::internal::DescriptorTable descriptor_table_design_2eproto; +ODBDESIGN_EXPORT extern const ::google::protobuf::internal::DescriptorTable + descriptor_table_design_2eproto; namespace Odb { namespace Lib { namespace Protobuf { @@ -75,13 +82,11 @@ ODBDESIGN_EXPORT extern Design_PartsByNameEntry_DoNotUseDefaultTypeInternal _Des } // namespace Protobuf } // namespace Lib } // namespace Odb -PROTOBUF_NAMESPACE_OPEN -template<> ODBDESIGN_EXPORT ::Odb::Lib::Protobuf::ProductModel::Design* Arena::CreateMaybeMessage<::Odb::Lib::Protobuf::ProductModel::Design>(Arena*); -template<> ODBDESIGN_EXPORT ::Odb::Lib::Protobuf::ProductModel::Design_ComponentsByNameEntry_DoNotUse* Arena::CreateMaybeMessage<::Odb::Lib::Protobuf::ProductModel::Design_ComponentsByNameEntry_DoNotUse>(Arena*); -template<> ODBDESIGN_EXPORT ::Odb::Lib::Protobuf::ProductModel::Design_NetsByNameEntry_DoNotUse* Arena::CreateMaybeMessage<::Odb::Lib::Protobuf::ProductModel::Design_NetsByNameEntry_DoNotUse>(Arena*); -template<> ODBDESIGN_EXPORT ::Odb::Lib::Protobuf::ProductModel::Design_PackagesByNameEntry_DoNotUse* Arena::CreateMaybeMessage<::Odb::Lib::Protobuf::ProductModel::Design_PackagesByNameEntry_DoNotUse>(Arena*); -template<> ODBDESIGN_EXPORT ::Odb::Lib::Protobuf::ProductModel::Design_PartsByNameEntry_DoNotUse* Arena::CreateMaybeMessage<::Odb::Lib::Protobuf::ProductModel::Design_PartsByNameEntry_DoNotUse>(Arena*); -PROTOBUF_NAMESPACE_CLOSE +namespace google { +namespace protobuf { +} // namespace protobuf +} // namespace google + namespace Odb { namespace Lib { namespace Protobuf { @@ -89,134 +94,192 @@ namespace ProductModel { // =================================================================== -class Design_NetsByNameEntry_DoNotUse : public ::PROTOBUF_NAMESPACE_ID::internal::MapEntry { -public: - typedef ::PROTOBUF_NAMESPACE_ID::internal::MapEntry SuperType; - Design_NetsByNameEntry_DoNotUse(); - explicit PROTOBUF_CONSTEXPR Design_NetsByNameEntry_DoNotUse( - ::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); - explicit Design_NetsByNameEntry_DoNotUse(::PROTOBUF_NAMESPACE_ID::Arena* arena); - void MergeFrom(const Design_NetsByNameEntry_DoNotUse& other); - static const Design_NetsByNameEntry_DoNotUse* internal_default_instance() { return reinterpret_cast(&_Design_NetsByNameEntry_DoNotUse_default_instance_); } - static bool ValidateKey(std::string* s) { - return ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String(s->data(), static_cast(s->size()), ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::PARSE, "Odb.Lib.Protobuf.ProductModel.Design.NetsByNameEntry.key"); - } - static bool ValidateValue(void*) { return true; } - using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; - ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; + +// ------------------------------------------------------------------- + +class Design_PartsByNameEntry_DoNotUse final + : public ::google::protobuf::internal::MapEntry< + std::string, ::google::protobuf::Message, + ::google::protobuf::internal::WireFormatLite::TYPE_STRING, + ::google::protobuf::internal::WireFormatLite::TYPE_MESSAGE> { + public: + using SuperType = ::google::protobuf::internal::MapEntry< + std::string, ::google::protobuf::Message, + ::google::protobuf::internal::WireFormatLite::TYPE_STRING, + ::google::protobuf::internal::WireFormatLite::TYPE_MESSAGE>; + Design_PartsByNameEntry_DoNotUse(); + template + explicit PROTOBUF_CONSTEXPR Design_PartsByNameEntry_DoNotUse( + ::google::protobuf::internal::ConstantInitialized); + explicit Design_PartsByNameEntry_DoNotUse(::google::protobuf::Arena* arena); + static const Design_PartsByNameEntry_DoNotUse* internal_default_instance() { + return reinterpret_cast( + &_Design_PartsByNameEntry_DoNotUse_default_instance_); + } + + + private: + friend class ::google::protobuf::MessageLite; friend struct ::TableStruct_design_2eproto; -}; + friend class ::google::protobuf::internal::TcParser; + static const ::google::protobuf::internal::TcParseTable< + 1, 2, 1, + 65, 2> + _table_; + + const ::google::protobuf::internal::ClassData* GetClassData() const PROTOBUF_FINAL; + static void* PlacementNew_(const void*, void* mem, + ::google::protobuf::Arena* arena); + static constexpr auto InternalNewImpl_(); + static const ::google::protobuf::internal::ClassDataFull _class_data_; +}; // ------------------------------------------------------------------- -class Design_PackagesByNameEntry_DoNotUse : public ::PROTOBUF_NAMESPACE_ID::internal::MapEntry { -public: - typedef ::PROTOBUF_NAMESPACE_ID::internal::MapEntry SuperType; +class Design_PackagesByNameEntry_DoNotUse final + : public ::google::protobuf::internal::MapEntry< + std::string, ::google::protobuf::Message, + ::google::protobuf::internal::WireFormatLite::TYPE_STRING, + ::google::protobuf::internal::WireFormatLite::TYPE_MESSAGE> { + public: + using SuperType = ::google::protobuf::internal::MapEntry< + std::string, ::google::protobuf::Message, + ::google::protobuf::internal::WireFormatLite::TYPE_STRING, + ::google::protobuf::internal::WireFormatLite::TYPE_MESSAGE>; Design_PackagesByNameEntry_DoNotUse(); + template explicit PROTOBUF_CONSTEXPR Design_PackagesByNameEntry_DoNotUse( - ::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); - explicit Design_PackagesByNameEntry_DoNotUse(::PROTOBUF_NAMESPACE_ID::Arena* arena); - void MergeFrom(const Design_PackagesByNameEntry_DoNotUse& other); - static const Design_PackagesByNameEntry_DoNotUse* internal_default_instance() { return reinterpret_cast(&_Design_PackagesByNameEntry_DoNotUse_default_instance_); } - static bool ValidateKey(std::string* s) { - return ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String(s->data(), static_cast(s->size()), ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::PARSE, "Odb.Lib.Protobuf.ProductModel.Design.PackagesByNameEntry.key"); - } - static bool ValidateValue(void*) { return true; } - using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; - ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; + ::google::protobuf::internal::ConstantInitialized); + explicit Design_PackagesByNameEntry_DoNotUse(::google::protobuf::Arena* arena); + static const Design_PackagesByNameEntry_DoNotUse* internal_default_instance() { + return reinterpret_cast( + &_Design_PackagesByNameEntry_DoNotUse_default_instance_); + } + + + private: + friend class ::google::protobuf::MessageLite; friend struct ::TableStruct_design_2eproto; -}; + friend class ::google::protobuf::internal::TcParser; + static const ::google::protobuf::internal::TcParseTable< + 1, 2, 1, + 68, 2> + _table_; + + const ::google::protobuf::internal::ClassData* GetClassData() const PROTOBUF_FINAL; + static void* PlacementNew_(const void*, void* mem, + ::google::protobuf::Arena* arena); + static constexpr auto InternalNewImpl_(); + static const ::google::protobuf::internal::ClassDataFull _class_data_; +}; // ------------------------------------------------------------------- -class Design_ComponentsByNameEntry_DoNotUse : public ::PROTOBUF_NAMESPACE_ID::internal::MapEntry { -public: - typedef ::PROTOBUF_NAMESPACE_ID::internal::MapEntry SuperType; +class Design_ComponentsByNameEntry_DoNotUse final + : public ::google::protobuf::internal::MapEntry< + std::string, ::google::protobuf::Message, + ::google::protobuf::internal::WireFormatLite::TYPE_STRING, + ::google::protobuf::internal::WireFormatLite::TYPE_MESSAGE> { + public: + using SuperType = ::google::protobuf::internal::MapEntry< + std::string, ::google::protobuf::Message, + ::google::protobuf::internal::WireFormatLite::TYPE_STRING, + ::google::protobuf::internal::WireFormatLite::TYPE_MESSAGE>; Design_ComponentsByNameEntry_DoNotUse(); + template explicit PROTOBUF_CONSTEXPR Design_ComponentsByNameEntry_DoNotUse( - ::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); - explicit Design_ComponentsByNameEntry_DoNotUse(::PROTOBUF_NAMESPACE_ID::Arena* arena); - void MergeFrom(const Design_ComponentsByNameEntry_DoNotUse& other); - static const Design_ComponentsByNameEntry_DoNotUse* internal_default_instance() { return reinterpret_cast(&_Design_ComponentsByNameEntry_DoNotUse_default_instance_); } - static bool ValidateKey(std::string* s) { - return ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String(s->data(), static_cast(s->size()), ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::PARSE, "Odb.Lib.Protobuf.ProductModel.Design.ComponentsByNameEntry.key"); - } - static bool ValidateValue(void*) { return true; } - using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; - ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; + ::google::protobuf::internal::ConstantInitialized); + explicit Design_ComponentsByNameEntry_DoNotUse(::google::protobuf::Arena* arena); + static const Design_ComponentsByNameEntry_DoNotUse* internal_default_instance() { + return reinterpret_cast( + &_Design_ComponentsByNameEntry_DoNotUse_default_instance_); + } + + + private: + friend class ::google::protobuf::MessageLite; friend struct ::TableStruct_design_2eproto; -}; + friend class ::google::protobuf::internal::TcParser; + static const ::google::protobuf::internal::TcParseTable< + 1, 2, 1, + 70, 2> + _table_; + + const ::google::protobuf::internal::ClassData* GetClassData() const PROTOBUF_FINAL; + static void* PlacementNew_(const void*, void* mem, + ::google::protobuf::Arena* arena); + static constexpr auto InternalNewImpl_(); + static const ::google::protobuf::internal::ClassDataFull _class_data_; +}; // ------------------------------------------------------------------- -class Design_PartsByNameEntry_DoNotUse : public ::PROTOBUF_NAMESPACE_ID::internal::MapEntry { -public: - typedef ::PROTOBUF_NAMESPACE_ID::internal::MapEntry SuperType; - Design_PartsByNameEntry_DoNotUse(); - explicit PROTOBUF_CONSTEXPR Design_PartsByNameEntry_DoNotUse( - ::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); - explicit Design_PartsByNameEntry_DoNotUse(::PROTOBUF_NAMESPACE_ID::Arena* arena); - void MergeFrom(const Design_PartsByNameEntry_DoNotUse& other); - static const Design_PartsByNameEntry_DoNotUse* internal_default_instance() { return reinterpret_cast(&_Design_PartsByNameEntry_DoNotUse_default_instance_); } - static bool ValidateKey(std::string* s) { - return ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String(s->data(), static_cast(s->size()), ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::PARSE, "Odb.Lib.Protobuf.ProductModel.Design.PartsByNameEntry.key"); - } - static bool ValidateValue(void*) { return true; } - using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; - ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; +class Design_NetsByNameEntry_DoNotUse final + : public ::google::protobuf::internal::MapEntry< + std::string, ::google::protobuf::Message, + ::google::protobuf::internal::WireFormatLite::TYPE_STRING, + ::google::protobuf::internal::WireFormatLite::TYPE_MESSAGE> { + public: + using SuperType = ::google::protobuf::internal::MapEntry< + std::string, ::google::protobuf::Message, + ::google::protobuf::internal::WireFormatLite::TYPE_STRING, + ::google::protobuf::internal::WireFormatLite::TYPE_MESSAGE>; + Design_NetsByNameEntry_DoNotUse(); + template + explicit PROTOBUF_CONSTEXPR Design_NetsByNameEntry_DoNotUse( + ::google::protobuf::internal::ConstantInitialized); + explicit Design_NetsByNameEntry_DoNotUse(::google::protobuf::Arena* arena); + static const Design_NetsByNameEntry_DoNotUse* internal_default_instance() { + return reinterpret_cast( + &_Design_NetsByNameEntry_DoNotUse_default_instance_); + } + + + private: + friend class ::google::protobuf::MessageLite; friend struct ::TableStruct_design_2eproto; -}; + friend class ::google::protobuf::internal::TcParser; + static const ::google::protobuf::internal::TcParseTable< + 1, 2, 1, + 64, 2> + _table_; + + const ::google::protobuf::internal::ClassData* GetClassData() const PROTOBUF_FINAL; + static void* PlacementNew_(const void*, void* mem, + ::google::protobuf::Arena* arena); + static constexpr auto InternalNewImpl_(); + static const ::google::protobuf::internal::ClassDataFull _class_data_; +}; // ------------------------------------------------------------------- -class ODBDESIGN_EXPORT Design final : - public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:Odb.Lib.Protobuf.ProductModel.Design) */ { +class ODBDESIGN_EXPORT Design final : public ::google::protobuf::Message +/* @@protoc_insertion_point(class_definition:Odb.Lib.Protobuf.ProductModel.Design) */ { public: inline Design() : Design(nullptr) {} - ~Design() override; - explicit PROTOBUF_CONSTEXPR Design(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); + ~Design() PROTOBUF_FINAL; - Design(const Design& from); - Design(Design&& from) noexcept - : Design() { - *this = ::std::move(from); +#if defined(PROTOBUF_CUSTOM_VTABLE) + void operator delete(Design* msg, std::destroying_delete_t) { + SharedDtor(*msg); + ::google::protobuf::internal::SizedDelete(msg, sizeof(Design)); } +#endif + + template + explicit PROTOBUF_CONSTEXPR Design( + ::google::protobuf::internal::ConstantInitialized); + inline Design(const Design& from) : Design(nullptr, from) {} + inline Design(Design&& from) noexcept + : Design(nullptr, std::move(from)) {} inline Design& operator=(const Design& from) { CopyFrom(from); return *this; } inline Design& operator=(Design&& from) noexcept { if (this == &from) return *this; - if (GetOwningArena() == from.GetOwningArena() - #ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetOwningArena() != nullptr - #endif // !PROTOBUF_FORCE_COPY_IN_MOVE - ) { + if (::google::protobuf::internal::CanMoveWithInternalSwap(GetArena(), from.GetArena())) { InternalSwap(&from); } else { CopyFrom(from); @@ -224,13 +287,22 @@ class ODBDESIGN_EXPORT Design final : return *this; } - static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { + inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const + ABSL_ATTRIBUTE_LIFETIME_BOUND { + return _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance); + } + inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() + ABSL_ATTRIBUTE_LIFETIME_BOUND { + return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); + } + + static const ::google::protobuf::Descriptor* descriptor() { return GetDescriptor(); } - static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { + static const ::google::protobuf::Descriptor* GetDescriptor() { return default_instance().GetMetadata().descriptor; } - static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { + static const ::google::protobuf::Reflection* GetReflection() { return default_instance().GetMetadata().reflection; } static const Design& default_instance() { @@ -238,84 +310,94 @@ class ODBDESIGN_EXPORT Design final : } static inline const Design* internal_default_instance() { return reinterpret_cast( - &_Design_default_instance_); - } - static constexpr int kIndexInFileMessages = - 4; - - friend void swap(Design& a, Design& b) { - a.Swap(&b); + &_Design_default_instance_); } + static constexpr int kIndexInFileMessages = 4; + friend void swap(Design& a, Design& b) { a.Swap(&b); } inline void Swap(Design* other) { if (other == this) return; - #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetOwningArena() != nullptr && - GetOwningArena() == other->GetOwningArena()) { - #else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetOwningArena() == other->GetOwningArena()) { - #endif // !PROTOBUF_FORCE_COPY_IN_SWAP + if (::google::protobuf::internal::CanUseInternalSwap(GetArena(), other->GetArena())) { InternalSwap(other); } else { - ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); + ::google::protobuf::internal::GenericSwap(this, other); } } void UnsafeArenaSwap(Design* other) { if (other == this) return; - GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); + ABSL_DCHECK(GetArena() == other->GetArena()); InternalSwap(other); } // implements Message ---------------------------------------------- - Design* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); + Design* New(::google::protobuf::Arena* arena = nullptr) const { + return ::google::protobuf::Message::DefaultConstruct(arena); } - using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; + using ::google::protobuf::Message::CopyFrom; void CopyFrom(const Design& from); - using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; - void MergeFrom( const Design& from) { - Design::MergeImpl(*this, from); - } - private: - static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg); - public: - PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; - bool IsInitialized() const final; - - size_t ByteSizeLong() const final; - const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final; - uint8_t* _InternalSerialize( - uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const final { return _impl_._cached_size_.Get(); } + using ::google::protobuf::Message::MergeFrom; + void MergeFrom(const Design& from) { Design::MergeImpl(*this, from); } private: - void SharedCtor(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned); - void SharedDtor(); - void SetCachedSize(int size) const final; - void InternalSwap(Design* other); + static void MergeImpl( + ::google::protobuf::MessageLite& to_msg, + const ::google::protobuf::MessageLite& from_msg); - private: - friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; - static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { - return "Odb.Lib.Protobuf.ProductModel.Design"; + public: + bool IsInitialized() const { + return true; } - protected: - explicit Design(::PROTOBUF_NAMESPACE_ID::Arena* arena, - bool is_message_owned = false); + ABSL_ATTRIBUTE_REINITIALIZES void Clear() PROTOBUF_FINAL; + #if defined(PROTOBUF_CUSTOM_VTABLE) private: - static void ArenaDtor(void* object); - public: + static ::size_t ByteSizeLong(const ::google::protobuf::MessageLite& msg); + static ::uint8_t* _InternalSerialize( + const MessageLite& msg, ::uint8_t* target, + ::google::protobuf::io::EpsCopyOutputStream* stream); - static const ClassData _class_data_; - const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final; + public: + ::size_t ByteSizeLong() const { return ByteSizeLong(*this); } + ::uint8_t* _InternalSerialize( + ::uint8_t* target, + ::google::protobuf::io::EpsCopyOutputStream* stream) const { + return _InternalSerialize(*this, target, stream); + } + #else // PROTOBUF_CUSTOM_VTABLE + ::size_t ByteSizeLong() const final; + ::uint8_t* _InternalSerialize( + ::uint8_t* target, + ::google::protobuf::io::EpsCopyOutputStream* stream) const final; + #endif // PROTOBUF_CUSTOM_VTABLE + int GetCachedSize() const { return _impl_._cached_size_.Get(); } - ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; + private: + void SharedCtor(::google::protobuf::Arena* arena); + static void SharedDtor(MessageLite& self); + void InternalSwap(Design* other); + private: + template + friend ::absl::string_view( + ::google::protobuf::internal::GetAnyMessageName)(); + static ::absl::string_view FullMessageName() { return "Odb.Lib.Protobuf.ProductModel.Design"; } + + protected: + explicit Design(::google::protobuf::Arena* arena); + Design(::google::protobuf::Arena* arena, const Design& from); + Design(::google::protobuf::Arena* arena, Design&& from) noexcept + : Design(arena) { + *this = ::std::move(from); + } + const ::google::protobuf::internal::ClassData* GetClassData() const PROTOBUF_FINAL; + static void* PlacementNew_(const void*, void* mem, + ::google::protobuf::Arena* arena); + static constexpr auto InternalNewImpl_(); + static const ::google::protobuf::internal::ClassDataFull _class_data_; + public: + ::google::protobuf::Metadata GetMetadata() const; // nested types ---------------------------------------------------- - // accessors ------------------------------------------------------- - enum : int { kNetsFieldNumber = 4, kNetsByNameFieldNumber = 5, @@ -333,245 +415,244 @@ class ODBDESIGN_EXPORT Design final : int nets_size() const; private: int _internal_nets_size() const; + public: - void clear_nets(); + void clear_nets() ; ::Odb::Lib::Protobuf::ProductModel::Net* mutable_nets(int index); - ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::Odb::Lib::Protobuf::ProductModel::Net >* - mutable_nets(); + ::google::protobuf::RepeatedPtrField<::Odb::Lib::Protobuf::ProductModel::Net>* mutable_nets(); + private: - const ::Odb::Lib::Protobuf::ProductModel::Net& _internal_nets(int index) const; - ::Odb::Lib::Protobuf::ProductModel::Net* _internal_add_nets(); + const ::google::protobuf::RepeatedPtrField<::Odb::Lib::Protobuf::ProductModel::Net>& _internal_nets() const; + ::google::protobuf::RepeatedPtrField<::Odb::Lib::Protobuf::ProductModel::Net>* _internal_mutable_nets(); public: const ::Odb::Lib::Protobuf::ProductModel::Net& nets(int index) const; ::Odb::Lib::Protobuf::ProductModel::Net* add_nets(); - const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::Odb::Lib::Protobuf::ProductModel::Net >& - nets() const; - + const ::google::protobuf::RepeatedPtrField<::Odb::Lib::Protobuf::ProductModel::Net>& nets() const; // map netsByName = 5; int netsbyname_size() const; private: int _internal_netsbyname_size() const; + public: - void clear_netsbyname(); + void clear_netsbyname() ; + const ::google::protobuf::Map& netsbyname() const; + ::google::protobuf::Map* mutable_netsbyname(); + private: - const ::PROTOBUF_NAMESPACE_ID::Map< std::string, ::Odb::Lib::Protobuf::ProductModel::Net >& - _internal_netsbyname() const; - ::PROTOBUF_NAMESPACE_ID::Map< std::string, ::Odb::Lib::Protobuf::ProductModel::Net >* - _internal_mutable_netsbyname(); - public: - const ::PROTOBUF_NAMESPACE_ID::Map< std::string, ::Odb::Lib::Protobuf::ProductModel::Net >& - netsbyname() const; - ::PROTOBUF_NAMESPACE_ID::Map< std::string, ::Odb::Lib::Protobuf::ProductModel::Net >* - mutable_netsbyname(); + const ::google::protobuf::Map& _internal_netsbyname() const; + ::google::protobuf::Map* _internal_mutable_netsbyname(); + public: // repeated .Odb.Lib.Protobuf.ProductModel.Package packages = 6; int packages_size() const; private: int _internal_packages_size() const; + public: - void clear_packages(); + void clear_packages() ; ::Odb::Lib::Protobuf::ProductModel::Package* mutable_packages(int index); - ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::Odb::Lib::Protobuf::ProductModel::Package >* - mutable_packages(); + ::google::protobuf::RepeatedPtrField<::Odb::Lib::Protobuf::ProductModel::Package>* mutable_packages(); + private: - const ::Odb::Lib::Protobuf::ProductModel::Package& _internal_packages(int index) const; - ::Odb::Lib::Protobuf::ProductModel::Package* _internal_add_packages(); + const ::google::protobuf::RepeatedPtrField<::Odb::Lib::Protobuf::ProductModel::Package>& _internal_packages() const; + ::google::protobuf::RepeatedPtrField<::Odb::Lib::Protobuf::ProductModel::Package>* _internal_mutable_packages(); public: const ::Odb::Lib::Protobuf::ProductModel::Package& packages(int index) const; ::Odb::Lib::Protobuf::ProductModel::Package* add_packages(); - const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::Odb::Lib::Protobuf::ProductModel::Package >& - packages() const; - + const ::google::protobuf::RepeatedPtrField<::Odb::Lib::Protobuf::ProductModel::Package>& packages() const; // map packagesByName = 7; int packagesbyname_size() const; private: int _internal_packagesbyname_size() const; + public: - void clear_packagesbyname(); + void clear_packagesbyname() ; + const ::google::protobuf::Map& packagesbyname() const; + ::google::protobuf::Map* mutable_packagesbyname(); + private: - const ::PROTOBUF_NAMESPACE_ID::Map< std::string, ::Odb::Lib::Protobuf::ProductModel::Package >& - _internal_packagesbyname() const; - ::PROTOBUF_NAMESPACE_ID::Map< std::string, ::Odb::Lib::Protobuf::ProductModel::Package >* - _internal_mutable_packagesbyname(); - public: - const ::PROTOBUF_NAMESPACE_ID::Map< std::string, ::Odb::Lib::Protobuf::ProductModel::Package >& - packagesbyname() const; - ::PROTOBUF_NAMESPACE_ID::Map< std::string, ::Odb::Lib::Protobuf::ProductModel::Package >* - mutable_packagesbyname(); + const ::google::protobuf::Map& _internal_packagesbyname() const; + ::google::protobuf::Map* _internal_mutable_packagesbyname(); + public: // repeated .Odb.Lib.Protobuf.ProductModel.Component components = 8; int components_size() const; private: int _internal_components_size() const; + public: - void clear_components(); + void clear_components() ; ::Odb::Lib::Protobuf::ProductModel::Component* mutable_components(int index); - ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::Odb::Lib::Protobuf::ProductModel::Component >* - mutable_components(); + ::google::protobuf::RepeatedPtrField<::Odb::Lib::Protobuf::ProductModel::Component>* mutable_components(); + private: - const ::Odb::Lib::Protobuf::ProductModel::Component& _internal_components(int index) const; - ::Odb::Lib::Protobuf::ProductModel::Component* _internal_add_components(); + const ::google::protobuf::RepeatedPtrField<::Odb::Lib::Protobuf::ProductModel::Component>& _internal_components() const; + ::google::protobuf::RepeatedPtrField<::Odb::Lib::Protobuf::ProductModel::Component>* _internal_mutable_components(); public: const ::Odb::Lib::Protobuf::ProductModel::Component& components(int index) const; ::Odb::Lib::Protobuf::ProductModel::Component* add_components(); - const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::Odb::Lib::Protobuf::ProductModel::Component >& - components() const; - + const ::google::protobuf::RepeatedPtrField<::Odb::Lib::Protobuf::ProductModel::Component>& components() const; // map componentsByName = 9; int componentsbyname_size() const; private: int _internal_componentsbyname_size() const; + public: - void clear_componentsbyname(); + void clear_componentsbyname() ; + const ::google::protobuf::Map& componentsbyname() const; + ::google::protobuf::Map* mutable_componentsbyname(); + private: - const ::PROTOBUF_NAMESPACE_ID::Map< std::string, ::Odb::Lib::Protobuf::ProductModel::Component >& - _internal_componentsbyname() const; - ::PROTOBUF_NAMESPACE_ID::Map< std::string, ::Odb::Lib::Protobuf::ProductModel::Component >* - _internal_mutable_componentsbyname(); - public: - const ::PROTOBUF_NAMESPACE_ID::Map< std::string, ::Odb::Lib::Protobuf::ProductModel::Component >& - componentsbyname() const; - ::PROTOBUF_NAMESPACE_ID::Map< std::string, ::Odb::Lib::Protobuf::ProductModel::Component >* - mutable_componentsbyname(); + const ::google::protobuf::Map& _internal_componentsbyname() const; + ::google::protobuf::Map* _internal_mutable_componentsbyname(); + public: // repeated .Odb.Lib.Protobuf.ProductModel.Part parts = 10; int parts_size() const; private: int _internal_parts_size() const; + public: - void clear_parts(); + void clear_parts() ; ::Odb::Lib::Protobuf::ProductModel::Part* mutable_parts(int index); - ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::Odb::Lib::Protobuf::ProductModel::Part >* - mutable_parts(); + ::google::protobuf::RepeatedPtrField<::Odb::Lib::Protobuf::ProductModel::Part>* mutable_parts(); + private: - const ::Odb::Lib::Protobuf::ProductModel::Part& _internal_parts(int index) const; - ::Odb::Lib::Protobuf::ProductModel::Part* _internal_add_parts(); + const ::google::protobuf::RepeatedPtrField<::Odb::Lib::Protobuf::ProductModel::Part>& _internal_parts() const; + ::google::protobuf::RepeatedPtrField<::Odb::Lib::Protobuf::ProductModel::Part>* _internal_mutable_parts(); public: const ::Odb::Lib::Protobuf::ProductModel::Part& parts(int index) const; ::Odb::Lib::Protobuf::ProductModel::Part* add_parts(); - const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::Odb::Lib::Protobuf::ProductModel::Part >& - parts() const; - + const ::google::protobuf::RepeatedPtrField<::Odb::Lib::Protobuf::ProductModel::Part>& parts() const; // map partsByName = 11; int partsbyname_size() const; private: int _internal_partsbyname_size() const; + public: - void clear_partsbyname(); + void clear_partsbyname() ; + const ::google::protobuf::Map& partsbyname() const; + ::google::protobuf::Map* mutable_partsbyname(); + private: - const ::PROTOBUF_NAMESPACE_ID::Map< std::string, ::Odb::Lib::Protobuf::ProductModel::Part >& - _internal_partsbyname() const; - ::PROTOBUF_NAMESPACE_ID::Map< std::string, ::Odb::Lib::Protobuf::ProductModel::Part >* - _internal_mutable_partsbyname(); - public: - const ::PROTOBUF_NAMESPACE_ID::Map< std::string, ::Odb::Lib::Protobuf::ProductModel::Part >& - partsbyname() const; - ::PROTOBUF_NAMESPACE_ID::Map< std::string, ::Odb::Lib::Protobuf::ProductModel::Part >* - mutable_partsbyname(); + const ::google::protobuf::Map& _internal_partsbyname() const; + ::google::protobuf::Map* _internal_mutable_partsbyname(); + public: // optional string productModel = 1; bool has_productmodel() const; - private: - bool _internal_has_productmodel() const; - public: - void clear_productmodel(); + void clear_productmodel() ; const std::string& productmodel() const; - template - void set_productmodel(ArgT0&& arg0, ArgT... args); + template + void set_productmodel(Arg_&& arg, Args_... args); std::string* mutable_productmodel(); PROTOBUF_NODISCARD std::string* release_productmodel(); - void set_allocated_productmodel(std::string* productmodel); + void set_allocated_productmodel(std::string* value); + private: const std::string& _internal_productmodel() const; - inline PROTOBUF_ALWAYS_INLINE void _internal_set_productmodel(const std::string& value); + inline PROTOBUF_ALWAYS_INLINE void _internal_set_productmodel( + const std::string& value); std::string* _internal_mutable_productmodel(); - public: + public: // optional string name = 2; bool has_name() const; - private: - bool _internal_has_name() const; - public: - void clear_name(); + void clear_name() ; const std::string& name() const; - template - void set_name(ArgT0&& arg0, ArgT... args); + template + void set_name(Arg_&& arg, Args_... args); std::string* mutable_name(); PROTOBUF_NODISCARD std::string* release_name(); - void set_allocated_name(std::string* name); + void set_allocated_name(std::string* value); + private: const std::string& _internal_name() const; - inline PROTOBUF_ALWAYS_INLINE void _internal_set_name(const std::string& value); + inline PROTOBUF_ALWAYS_INLINE void _internal_set_name( + const std::string& value); std::string* _internal_mutable_name(); - public: + public: // optional .Odb.Lib.Protobuf.FileArchive fileModel = 3; bool has_filemodel() const; - private: - bool _internal_has_filemodel() const; - public: - void clear_filemodel(); + void clear_filemodel() ; const ::Odb::Lib::Protobuf::FileArchive& filemodel() const; PROTOBUF_NODISCARD ::Odb::Lib::Protobuf::FileArchive* release_filemodel(); ::Odb::Lib::Protobuf::FileArchive* mutable_filemodel(); - void set_allocated_filemodel(::Odb::Lib::Protobuf::FileArchive* filemodel); + void set_allocated_filemodel(::Odb::Lib::Protobuf::FileArchive* value); + void unsafe_arena_set_allocated_filemodel(::Odb::Lib::Protobuf::FileArchive* value); + ::Odb::Lib::Protobuf::FileArchive* unsafe_arena_release_filemodel(); + private: const ::Odb::Lib::Protobuf::FileArchive& _internal_filemodel() const; ::Odb::Lib::Protobuf::FileArchive* _internal_mutable_filemodel(); - public: - void unsafe_arena_set_allocated_filemodel( - ::Odb::Lib::Protobuf::FileArchive* filemodel); - ::Odb::Lib::Protobuf::FileArchive* unsafe_arena_release_filemodel(); + public: // @@protoc_insertion_point(class_scope:Odb.Lib.Protobuf.ProductModel.Design) private: class _Internal; - - template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; - typedef void InternalArenaConstructable_; - typedef void DestructorSkippable_; + friend class ::google::protobuf::internal::TcParser; + static const ::google::protobuf::internal::TcParseTable< + 4, 11, 13, + 120, 2> + _table_; + + friend class ::google::protobuf::MessageLite; + friend class ::google::protobuf::Arena; + template + friend class ::google::protobuf::Arena::InternalHelper; + using InternalArenaConstructable_ = void; + using DestructorSkippable_ = void; struct Impl_ { - ::PROTOBUF_NAMESPACE_ID::internal::HasBits<1> _has_bits_; - mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; - ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::Odb::Lib::Protobuf::ProductModel::Net > nets_; - ::PROTOBUF_NAMESPACE_ID::internal::MapField< - Design_NetsByNameEntry_DoNotUse, - std::string, ::Odb::Lib::Protobuf::ProductModel::Net, - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::TYPE_STRING, - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::TYPE_MESSAGE> netsbyname_; - ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::Odb::Lib::Protobuf::ProductModel::Package > packages_; - ::PROTOBUF_NAMESPACE_ID::internal::MapField< - Design_PackagesByNameEntry_DoNotUse, - std::string, ::Odb::Lib::Protobuf::ProductModel::Package, - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::TYPE_STRING, - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::TYPE_MESSAGE> packagesbyname_; - ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::Odb::Lib::Protobuf::ProductModel::Component > components_; - ::PROTOBUF_NAMESPACE_ID::internal::MapField< - Design_ComponentsByNameEntry_DoNotUse, - std::string, ::Odb::Lib::Protobuf::ProductModel::Component, - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::TYPE_STRING, - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::TYPE_MESSAGE> componentsbyname_; - ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::Odb::Lib::Protobuf::ProductModel::Part > parts_; - ::PROTOBUF_NAMESPACE_ID::internal::MapField< - Design_PartsByNameEntry_DoNotUse, - std::string, ::Odb::Lib::Protobuf::ProductModel::Part, - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::TYPE_STRING, - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::TYPE_MESSAGE> partsbyname_; - ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr productmodel_; - ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr name_; + inline explicit constexpr Impl_( + ::google::protobuf::internal::ConstantInitialized) noexcept; + inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* arena); + inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* arena, const Impl_& from, + const Design& from_msg); + ::google::protobuf::internal::HasBits<1> _has_bits_; + ::google::protobuf::internal::CachedSize _cached_size_; + ::google::protobuf::RepeatedPtrField< ::Odb::Lib::Protobuf::ProductModel::Net > nets_; + ::google::protobuf::internal::MapField + netsbyname_; + ::google::protobuf::RepeatedPtrField< ::Odb::Lib::Protobuf::ProductModel::Package > packages_; + ::google::protobuf::internal::MapField + packagesbyname_; + ::google::protobuf::RepeatedPtrField< ::Odb::Lib::Protobuf::ProductModel::Component > components_; + ::google::protobuf::internal::MapField + componentsbyname_; + ::google::protobuf::RepeatedPtrField< ::Odb::Lib::Protobuf::ProductModel::Part > parts_; + ::google::protobuf::internal::MapField + partsbyname_; + ::google::protobuf::internal::ArenaStringPtr productmodel_; + ::google::protobuf::internal::ArenaStringPtr name_; ::Odb::Lib::Protobuf::FileArchive* filemodel_; + PROTOBUF_TSAN_DECLARE_MEMBER }; union { Impl_ _impl_; }; friend struct ::TableStruct_design_2eproto; }; + // =================================================================== + + // =================================================================== + #ifdef __GNUC__ - #pragma GCC diagnostic push - #pragma GCC diagnostic ignored "-Wstrict-aliasing" +#pragma GCC diagnostic push +#pragma GCC diagnostic ignored "-Wstrict-aliasing" #endif // __GNUC__ // ------------------------------------------------------------------- @@ -581,169 +662,170 @@ class ODBDESIGN_EXPORT Design final : // ------------------------------------------------------------------- +// ------------------------------------------------------------------- + // Design // optional string productModel = 1; -inline bool Design::_internal_has_productmodel() const { +inline bool Design::has_productmodel() const { bool value = (_impl_._has_bits_[0] & 0x00000001u) != 0; return value; } -inline bool Design::has_productmodel() const { - return _internal_has_productmodel(); -} inline void Design::clear_productmodel() { + ::google::protobuf::internal::TSanWrite(&_impl_); _impl_.productmodel_.ClearToEmpty(); _impl_._has_bits_[0] &= ~0x00000001u; } -inline const std::string& Design::productmodel() const { +inline const std::string& Design::productmodel() const + ABSL_ATTRIBUTE_LIFETIME_BOUND { // @@protoc_insertion_point(field_get:Odb.Lib.Protobuf.ProductModel.Design.productModel) return _internal_productmodel(); } -template -inline PROTOBUF_ALWAYS_INLINE -void Design::set_productmodel(ArgT0&& arg0, ArgT... args) { - _impl_._has_bits_[0] |= 0x00000001u; - _impl_.productmodel_.Set(static_cast(arg0), args..., GetArenaForAllocation()); +template +inline PROTOBUF_ALWAYS_INLINE void Design::set_productmodel(Arg_&& arg, + Args_... args) { + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_._has_bits_[0] |= 0x00000001u; + _impl_.productmodel_.Set(static_cast(arg), args..., GetArena()); // @@protoc_insertion_point(field_set:Odb.Lib.Protobuf.ProductModel.Design.productModel) } -inline std::string* Design::mutable_productmodel() { +inline std::string* Design::mutable_productmodel() ABSL_ATTRIBUTE_LIFETIME_BOUND { std::string* _s = _internal_mutable_productmodel(); // @@protoc_insertion_point(field_mutable:Odb.Lib.Protobuf.ProductModel.Design.productModel) return _s; } inline const std::string& Design::_internal_productmodel() const { + ::google::protobuf::internal::TSanRead(&_impl_); return _impl_.productmodel_.Get(); } inline void Design::_internal_set_productmodel(const std::string& value) { + ::google::protobuf::internal::TSanWrite(&_impl_); _impl_._has_bits_[0] |= 0x00000001u; - _impl_.productmodel_.Set(value, GetArenaForAllocation()); + _impl_.productmodel_.Set(value, GetArena()); } inline std::string* Design::_internal_mutable_productmodel() { + ::google::protobuf::internal::TSanWrite(&_impl_); _impl_._has_bits_[0] |= 0x00000001u; - return _impl_.productmodel_.Mutable(GetArenaForAllocation()); + return _impl_.productmodel_.Mutable( GetArena()); } inline std::string* Design::release_productmodel() { + ::google::protobuf::internal::TSanWrite(&_impl_); // @@protoc_insertion_point(field_release:Odb.Lib.Protobuf.ProductModel.Design.productModel) - if (!_internal_has_productmodel()) { + if ((_impl_._has_bits_[0] & 0x00000001u) == 0) { return nullptr; } _impl_._has_bits_[0] &= ~0x00000001u; - auto* p = _impl_.productmodel_.Release(); -#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (_impl_.productmodel_.IsDefault()) { - _impl_.productmodel_.Set("", GetArenaForAllocation()); + auto* released = _impl_.productmodel_.Release(); + if (::google::protobuf::internal::DebugHardenForceCopyDefaultString()) { + _impl_.productmodel_.Set("", GetArena()); } -#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING - return p; + return released; } -inline void Design::set_allocated_productmodel(std::string* productmodel) { - if (productmodel != nullptr) { +inline void Design::set_allocated_productmodel(std::string* value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + if (value != nullptr) { _impl_._has_bits_[0] |= 0x00000001u; } else { _impl_._has_bits_[0] &= ~0x00000001u; } - _impl_.productmodel_.SetAllocated(productmodel, GetArenaForAllocation()); -#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (_impl_.productmodel_.IsDefault()) { - _impl_.productmodel_.Set("", GetArenaForAllocation()); + _impl_.productmodel_.SetAllocated(value, GetArena()); + if (::google::protobuf::internal::DebugHardenForceCopyDefaultString() && _impl_.productmodel_.IsDefault()) { + _impl_.productmodel_.Set("", GetArena()); } -#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING // @@protoc_insertion_point(field_set_allocated:Odb.Lib.Protobuf.ProductModel.Design.productModel) } // optional string name = 2; -inline bool Design::_internal_has_name() const { +inline bool Design::has_name() const { bool value = (_impl_._has_bits_[0] & 0x00000002u) != 0; return value; } -inline bool Design::has_name() const { - return _internal_has_name(); -} inline void Design::clear_name() { + ::google::protobuf::internal::TSanWrite(&_impl_); _impl_.name_.ClearToEmpty(); _impl_._has_bits_[0] &= ~0x00000002u; } -inline const std::string& Design::name() const { +inline const std::string& Design::name() const + ABSL_ATTRIBUTE_LIFETIME_BOUND { // @@protoc_insertion_point(field_get:Odb.Lib.Protobuf.ProductModel.Design.name) return _internal_name(); } -template -inline PROTOBUF_ALWAYS_INLINE -void Design::set_name(ArgT0&& arg0, ArgT... args) { - _impl_._has_bits_[0] |= 0x00000002u; - _impl_.name_.Set(static_cast(arg0), args..., GetArenaForAllocation()); +template +inline PROTOBUF_ALWAYS_INLINE void Design::set_name(Arg_&& arg, + Args_... args) { + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_._has_bits_[0] |= 0x00000002u; + _impl_.name_.Set(static_cast(arg), args..., GetArena()); // @@protoc_insertion_point(field_set:Odb.Lib.Protobuf.ProductModel.Design.name) } -inline std::string* Design::mutable_name() { +inline std::string* Design::mutable_name() ABSL_ATTRIBUTE_LIFETIME_BOUND { std::string* _s = _internal_mutable_name(); // @@protoc_insertion_point(field_mutable:Odb.Lib.Protobuf.ProductModel.Design.name) return _s; } inline const std::string& Design::_internal_name() const { + ::google::protobuf::internal::TSanRead(&_impl_); return _impl_.name_.Get(); } inline void Design::_internal_set_name(const std::string& value) { + ::google::protobuf::internal::TSanWrite(&_impl_); _impl_._has_bits_[0] |= 0x00000002u; - _impl_.name_.Set(value, GetArenaForAllocation()); + _impl_.name_.Set(value, GetArena()); } inline std::string* Design::_internal_mutable_name() { + ::google::protobuf::internal::TSanWrite(&_impl_); _impl_._has_bits_[0] |= 0x00000002u; - return _impl_.name_.Mutable(GetArenaForAllocation()); + return _impl_.name_.Mutable( GetArena()); } inline std::string* Design::release_name() { + ::google::protobuf::internal::TSanWrite(&_impl_); // @@protoc_insertion_point(field_release:Odb.Lib.Protobuf.ProductModel.Design.name) - if (!_internal_has_name()) { + if ((_impl_._has_bits_[0] & 0x00000002u) == 0) { return nullptr; } _impl_._has_bits_[0] &= ~0x00000002u; - auto* p = _impl_.name_.Release(); -#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (_impl_.name_.IsDefault()) { - _impl_.name_.Set("", GetArenaForAllocation()); + auto* released = _impl_.name_.Release(); + if (::google::protobuf::internal::DebugHardenForceCopyDefaultString()) { + _impl_.name_.Set("", GetArena()); } -#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING - return p; + return released; } -inline void Design::set_allocated_name(std::string* name) { - if (name != nullptr) { +inline void Design::set_allocated_name(std::string* value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + if (value != nullptr) { _impl_._has_bits_[0] |= 0x00000002u; } else { _impl_._has_bits_[0] &= ~0x00000002u; } - _impl_.name_.SetAllocated(name, GetArenaForAllocation()); -#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (_impl_.name_.IsDefault()) { - _impl_.name_.Set("", GetArenaForAllocation()); + _impl_.name_.SetAllocated(value, GetArena()); + if (::google::protobuf::internal::DebugHardenForceCopyDefaultString() && _impl_.name_.IsDefault()) { + _impl_.name_.Set("", GetArena()); } -#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING // @@protoc_insertion_point(field_set_allocated:Odb.Lib.Protobuf.ProductModel.Design.name) } // optional .Odb.Lib.Protobuf.FileArchive fileModel = 3; -inline bool Design::_internal_has_filemodel() const { +inline bool Design::has_filemodel() const { bool value = (_impl_._has_bits_[0] & 0x00000004u) != 0; PROTOBUF_ASSUME(!value || _impl_.filemodel_ != nullptr); return value; } -inline bool Design::has_filemodel() const { - return _internal_has_filemodel(); -} inline const ::Odb::Lib::Protobuf::FileArchive& Design::_internal_filemodel() const { + ::google::protobuf::internal::TSanRead(&_impl_); const ::Odb::Lib::Protobuf::FileArchive* p = _impl_.filemodel_; - return p != nullptr ? *p : reinterpret_cast( - ::Odb::Lib::Protobuf::_FileArchive_default_instance_); + return p != nullptr ? *p : reinterpret_cast(::Odb::Lib::Protobuf::_FileArchive_default_instance_); } -inline const ::Odb::Lib::Protobuf::FileArchive& Design::filemodel() const { +inline const ::Odb::Lib::Protobuf::FileArchive& Design::filemodel() const ABSL_ATTRIBUTE_LIFETIME_BOUND { // @@protoc_insertion_point(field_get:Odb.Lib.Protobuf.ProductModel.Design.fileModel) return _internal_filemodel(); } -inline void Design::unsafe_arena_set_allocated_filemodel( - ::Odb::Lib::Protobuf::FileArchive* filemodel) { - if (GetArenaForAllocation() == nullptr) { - delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(_impl_.filemodel_); +inline void Design::unsafe_arena_set_allocated_filemodel(::Odb::Lib::Protobuf::FileArchive* value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + if (GetArena() == nullptr) { + delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.filemodel_); } - _impl_.filemodel_ = filemodel; - if (filemodel) { + _impl_.filemodel_ = reinterpret_cast<::Odb::Lib::Protobuf::FileArchive*>(value); + if (value != nullptr) { _impl_._has_bits_[0] |= 0x00000004u; } else { _impl_._has_bits_[0] &= ~0x00000004u; @@ -751,333 +833,357 @@ inline void Design::unsafe_arena_set_allocated_filemodel( // @@protoc_insertion_point(field_unsafe_arena_set_allocated:Odb.Lib.Protobuf.ProductModel.Design.fileModel) } inline ::Odb::Lib::Protobuf::FileArchive* Design::release_filemodel() { + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_._has_bits_[0] &= ~0x00000004u; - ::Odb::Lib::Protobuf::FileArchive* temp = _impl_.filemodel_; + ::Odb::Lib::Protobuf::FileArchive* released = _impl_.filemodel_; _impl_.filemodel_ = nullptr; -#ifdef PROTOBUF_FORCE_COPY_IN_RELEASE - auto* old = reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(temp); - temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); - if (GetArenaForAllocation() == nullptr) { delete old; } -#else // PROTOBUF_FORCE_COPY_IN_RELEASE - if (GetArenaForAllocation() != nullptr) { - temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); + if (::google::protobuf::internal::DebugHardenForceCopyInRelease()) { + auto* old = reinterpret_cast<::google::protobuf::MessageLite*>(released); + released = ::google::protobuf::internal::DuplicateIfNonNull(released); + if (GetArena() == nullptr) { + delete old; + } + } else { + if (GetArena() != nullptr) { + released = ::google::protobuf::internal::DuplicateIfNonNull(released); + } } -#endif // !PROTOBUF_FORCE_COPY_IN_RELEASE - return temp; + return released; } inline ::Odb::Lib::Protobuf::FileArchive* Design::unsafe_arena_release_filemodel() { + ::google::protobuf::internal::TSanWrite(&_impl_); // @@protoc_insertion_point(field_release:Odb.Lib.Protobuf.ProductModel.Design.fileModel) + _impl_._has_bits_[0] &= ~0x00000004u; ::Odb::Lib::Protobuf::FileArchive* temp = _impl_.filemodel_; _impl_.filemodel_ = nullptr; return temp; } inline ::Odb::Lib::Protobuf::FileArchive* Design::_internal_mutable_filemodel() { - _impl_._has_bits_[0] |= 0x00000004u; + ::google::protobuf::internal::TSanWrite(&_impl_); if (_impl_.filemodel_ == nullptr) { - auto* p = CreateMaybeMessage<::Odb::Lib::Protobuf::FileArchive>(GetArenaForAllocation()); - _impl_.filemodel_ = p; + auto* p = ::google::protobuf::Message::DefaultConstruct<::Odb::Lib::Protobuf::FileArchive>(GetArena()); + _impl_.filemodel_ = reinterpret_cast<::Odb::Lib::Protobuf::FileArchive*>(p); } return _impl_.filemodel_; } -inline ::Odb::Lib::Protobuf::FileArchive* Design::mutable_filemodel() { +inline ::Odb::Lib::Protobuf::FileArchive* Design::mutable_filemodel() ABSL_ATTRIBUTE_LIFETIME_BOUND { + _impl_._has_bits_[0] |= 0x00000004u; ::Odb::Lib::Protobuf::FileArchive* _msg = _internal_mutable_filemodel(); // @@protoc_insertion_point(field_mutable:Odb.Lib.Protobuf.ProductModel.Design.fileModel) return _msg; } -inline void Design::set_allocated_filemodel(::Odb::Lib::Protobuf::FileArchive* filemodel) { - ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); +inline void Design::set_allocated_filemodel(::Odb::Lib::Protobuf::FileArchive* value) { + ::google::protobuf::Arena* message_arena = GetArena(); + ::google::protobuf::internal::TSanWrite(&_impl_); if (message_arena == nullptr) { - delete reinterpret_cast< ::PROTOBUF_NAMESPACE_ID::MessageLite*>(_impl_.filemodel_); + delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.filemodel_); } - if (filemodel) { - ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = - ::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena( - reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(filemodel)); + + if (value != nullptr) { + ::google::protobuf::Arena* submessage_arena = reinterpret_cast<::google::protobuf::MessageLite*>(value)->GetArena(); if (message_arena != submessage_arena) { - filemodel = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( - message_arena, filemodel, submessage_arena); + value = ::google::protobuf::internal::GetOwnedMessage(message_arena, value, submessage_arena); } _impl_._has_bits_[0] |= 0x00000004u; } else { _impl_._has_bits_[0] &= ~0x00000004u; } - _impl_.filemodel_ = filemodel; + + _impl_.filemodel_ = reinterpret_cast<::Odb::Lib::Protobuf::FileArchive*>(value); // @@protoc_insertion_point(field_set_allocated:Odb.Lib.Protobuf.ProductModel.Design.fileModel) } // repeated .Odb.Lib.Protobuf.ProductModel.Net nets = 4; inline int Design::_internal_nets_size() const { - return _impl_.nets_.size(); + return _internal_nets().size(); } inline int Design::nets_size() const { return _internal_nets_size(); } -inline ::Odb::Lib::Protobuf::ProductModel::Net* Design::mutable_nets(int index) { +inline ::Odb::Lib::Protobuf::ProductModel::Net* Design::mutable_nets(int index) + ABSL_ATTRIBUTE_LIFETIME_BOUND { // @@protoc_insertion_point(field_mutable:Odb.Lib.Protobuf.ProductModel.Design.nets) - return _impl_.nets_.Mutable(index); + return _internal_mutable_nets()->Mutable(index); } -inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::Odb::Lib::Protobuf::ProductModel::Net >* -Design::mutable_nets() { +inline ::google::protobuf::RepeatedPtrField<::Odb::Lib::Protobuf::ProductModel::Net>* Design::mutable_nets() + ABSL_ATTRIBUTE_LIFETIME_BOUND { // @@protoc_insertion_point(field_mutable_list:Odb.Lib.Protobuf.ProductModel.Design.nets) - return &_impl_.nets_; -} -inline const ::Odb::Lib::Protobuf::ProductModel::Net& Design::_internal_nets(int index) const { - return _impl_.nets_.Get(index); + ::google::protobuf::internal::TSanWrite(&_impl_); + return _internal_mutable_nets(); } -inline const ::Odb::Lib::Protobuf::ProductModel::Net& Design::nets(int index) const { +inline const ::Odb::Lib::Protobuf::ProductModel::Net& Design::nets(int index) const + ABSL_ATTRIBUTE_LIFETIME_BOUND { // @@protoc_insertion_point(field_get:Odb.Lib.Protobuf.ProductModel.Design.nets) - return _internal_nets(index); + return _internal_nets().Get(index); } -inline ::Odb::Lib::Protobuf::ProductModel::Net* Design::_internal_add_nets() { - return _impl_.nets_.Add(); -} -inline ::Odb::Lib::Protobuf::ProductModel::Net* Design::add_nets() { - ::Odb::Lib::Protobuf::ProductModel::Net* _add = _internal_add_nets(); +inline ::Odb::Lib::Protobuf::ProductModel::Net* Design::add_nets() ABSL_ATTRIBUTE_LIFETIME_BOUND { + ::google::protobuf::internal::TSanWrite(&_impl_); + ::Odb::Lib::Protobuf::ProductModel::Net* _add = _internal_mutable_nets()->Add(); // @@protoc_insertion_point(field_add:Odb.Lib.Protobuf.ProductModel.Design.nets) return _add; } -inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::Odb::Lib::Protobuf::ProductModel::Net >& -Design::nets() const { +inline const ::google::protobuf::RepeatedPtrField<::Odb::Lib::Protobuf::ProductModel::Net>& Design::nets() const + ABSL_ATTRIBUTE_LIFETIME_BOUND { // @@protoc_insertion_point(field_list:Odb.Lib.Protobuf.ProductModel.Design.nets) + return _internal_nets(); +} +inline const ::google::protobuf::RepeatedPtrField<::Odb::Lib::Protobuf::ProductModel::Net>& +Design::_internal_nets() const { + ::google::protobuf::internal::TSanRead(&_impl_); return _impl_.nets_; } +inline ::google::protobuf::RepeatedPtrField<::Odb::Lib::Protobuf::ProductModel::Net>* +Design::_internal_mutable_nets() { + ::google::protobuf::internal::TSanRead(&_impl_); + return &_impl_.nets_; +} // map netsByName = 5; inline int Design::_internal_netsbyname_size() const { - return _impl_.netsbyname_.size(); + return _internal_netsbyname().size(); } inline int Design::netsbyname_size() const { return _internal_netsbyname_size(); } -inline const ::PROTOBUF_NAMESPACE_ID::Map< std::string, ::Odb::Lib::Protobuf::ProductModel::Net >& -Design::_internal_netsbyname() const { +inline const ::google::protobuf::Map& Design::_internal_netsbyname() const { + ::google::protobuf::internal::TSanRead(&_impl_); return _impl_.netsbyname_.GetMap(); } -inline const ::PROTOBUF_NAMESPACE_ID::Map< std::string, ::Odb::Lib::Protobuf::ProductModel::Net >& -Design::netsbyname() const { +inline const ::google::protobuf::Map& Design::netsbyname() const ABSL_ATTRIBUTE_LIFETIME_BOUND { // @@protoc_insertion_point(field_map:Odb.Lib.Protobuf.ProductModel.Design.netsByName) return _internal_netsbyname(); } -inline ::PROTOBUF_NAMESPACE_ID::Map< std::string, ::Odb::Lib::Protobuf::ProductModel::Net >* -Design::_internal_mutable_netsbyname() { +inline ::google::protobuf::Map* Design::_internal_mutable_netsbyname() { + ::google::protobuf::internal::TSanWrite(&_impl_); return _impl_.netsbyname_.MutableMap(); } -inline ::PROTOBUF_NAMESPACE_ID::Map< std::string, ::Odb::Lib::Protobuf::ProductModel::Net >* -Design::mutable_netsbyname() { +inline ::google::protobuf::Map* Design::mutable_netsbyname() ABSL_ATTRIBUTE_LIFETIME_BOUND { // @@protoc_insertion_point(field_mutable_map:Odb.Lib.Protobuf.ProductModel.Design.netsByName) return _internal_mutable_netsbyname(); } // repeated .Odb.Lib.Protobuf.ProductModel.Package packages = 6; inline int Design::_internal_packages_size() const { - return _impl_.packages_.size(); + return _internal_packages().size(); } inline int Design::packages_size() const { return _internal_packages_size(); } -inline ::Odb::Lib::Protobuf::ProductModel::Package* Design::mutable_packages(int index) { +inline ::Odb::Lib::Protobuf::ProductModel::Package* Design::mutable_packages(int index) + ABSL_ATTRIBUTE_LIFETIME_BOUND { // @@protoc_insertion_point(field_mutable:Odb.Lib.Protobuf.ProductModel.Design.packages) - return _impl_.packages_.Mutable(index); + return _internal_mutable_packages()->Mutable(index); } -inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::Odb::Lib::Protobuf::ProductModel::Package >* -Design::mutable_packages() { +inline ::google::protobuf::RepeatedPtrField<::Odb::Lib::Protobuf::ProductModel::Package>* Design::mutable_packages() + ABSL_ATTRIBUTE_LIFETIME_BOUND { // @@protoc_insertion_point(field_mutable_list:Odb.Lib.Protobuf.ProductModel.Design.packages) - return &_impl_.packages_; -} -inline const ::Odb::Lib::Protobuf::ProductModel::Package& Design::_internal_packages(int index) const { - return _impl_.packages_.Get(index); + ::google::protobuf::internal::TSanWrite(&_impl_); + return _internal_mutable_packages(); } -inline const ::Odb::Lib::Protobuf::ProductModel::Package& Design::packages(int index) const { +inline const ::Odb::Lib::Protobuf::ProductModel::Package& Design::packages(int index) const + ABSL_ATTRIBUTE_LIFETIME_BOUND { // @@protoc_insertion_point(field_get:Odb.Lib.Protobuf.ProductModel.Design.packages) - return _internal_packages(index); + return _internal_packages().Get(index); } -inline ::Odb::Lib::Protobuf::ProductModel::Package* Design::_internal_add_packages() { - return _impl_.packages_.Add(); -} -inline ::Odb::Lib::Protobuf::ProductModel::Package* Design::add_packages() { - ::Odb::Lib::Protobuf::ProductModel::Package* _add = _internal_add_packages(); +inline ::Odb::Lib::Protobuf::ProductModel::Package* Design::add_packages() ABSL_ATTRIBUTE_LIFETIME_BOUND { + ::google::protobuf::internal::TSanWrite(&_impl_); + ::Odb::Lib::Protobuf::ProductModel::Package* _add = _internal_mutable_packages()->Add(); // @@protoc_insertion_point(field_add:Odb.Lib.Protobuf.ProductModel.Design.packages) return _add; } -inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::Odb::Lib::Protobuf::ProductModel::Package >& -Design::packages() const { +inline const ::google::protobuf::RepeatedPtrField<::Odb::Lib::Protobuf::ProductModel::Package>& Design::packages() const + ABSL_ATTRIBUTE_LIFETIME_BOUND { // @@protoc_insertion_point(field_list:Odb.Lib.Protobuf.ProductModel.Design.packages) + return _internal_packages(); +} +inline const ::google::protobuf::RepeatedPtrField<::Odb::Lib::Protobuf::ProductModel::Package>& +Design::_internal_packages() const { + ::google::protobuf::internal::TSanRead(&_impl_); return _impl_.packages_; } +inline ::google::protobuf::RepeatedPtrField<::Odb::Lib::Protobuf::ProductModel::Package>* +Design::_internal_mutable_packages() { + ::google::protobuf::internal::TSanRead(&_impl_); + return &_impl_.packages_; +} // map packagesByName = 7; inline int Design::_internal_packagesbyname_size() const { - return _impl_.packagesbyname_.size(); + return _internal_packagesbyname().size(); } inline int Design::packagesbyname_size() const { return _internal_packagesbyname_size(); } -inline const ::PROTOBUF_NAMESPACE_ID::Map< std::string, ::Odb::Lib::Protobuf::ProductModel::Package >& -Design::_internal_packagesbyname() const { +inline const ::google::protobuf::Map& Design::_internal_packagesbyname() const { + ::google::protobuf::internal::TSanRead(&_impl_); return _impl_.packagesbyname_.GetMap(); } -inline const ::PROTOBUF_NAMESPACE_ID::Map< std::string, ::Odb::Lib::Protobuf::ProductModel::Package >& -Design::packagesbyname() const { +inline const ::google::protobuf::Map& Design::packagesbyname() const ABSL_ATTRIBUTE_LIFETIME_BOUND { // @@protoc_insertion_point(field_map:Odb.Lib.Protobuf.ProductModel.Design.packagesByName) return _internal_packagesbyname(); } -inline ::PROTOBUF_NAMESPACE_ID::Map< std::string, ::Odb::Lib::Protobuf::ProductModel::Package >* -Design::_internal_mutable_packagesbyname() { +inline ::google::protobuf::Map* Design::_internal_mutable_packagesbyname() { + ::google::protobuf::internal::TSanWrite(&_impl_); return _impl_.packagesbyname_.MutableMap(); } -inline ::PROTOBUF_NAMESPACE_ID::Map< std::string, ::Odb::Lib::Protobuf::ProductModel::Package >* -Design::mutable_packagesbyname() { +inline ::google::protobuf::Map* Design::mutable_packagesbyname() ABSL_ATTRIBUTE_LIFETIME_BOUND { // @@protoc_insertion_point(field_mutable_map:Odb.Lib.Protobuf.ProductModel.Design.packagesByName) return _internal_mutable_packagesbyname(); } // repeated .Odb.Lib.Protobuf.ProductModel.Component components = 8; inline int Design::_internal_components_size() const { - return _impl_.components_.size(); + return _internal_components().size(); } inline int Design::components_size() const { return _internal_components_size(); } -inline ::Odb::Lib::Protobuf::ProductModel::Component* Design::mutable_components(int index) { +inline ::Odb::Lib::Protobuf::ProductModel::Component* Design::mutable_components(int index) + ABSL_ATTRIBUTE_LIFETIME_BOUND { // @@protoc_insertion_point(field_mutable:Odb.Lib.Protobuf.ProductModel.Design.components) - return _impl_.components_.Mutable(index); + return _internal_mutable_components()->Mutable(index); } -inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::Odb::Lib::Protobuf::ProductModel::Component >* -Design::mutable_components() { +inline ::google::protobuf::RepeatedPtrField<::Odb::Lib::Protobuf::ProductModel::Component>* Design::mutable_components() + ABSL_ATTRIBUTE_LIFETIME_BOUND { // @@protoc_insertion_point(field_mutable_list:Odb.Lib.Protobuf.ProductModel.Design.components) - return &_impl_.components_; + ::google::protobuf::internal::TSanWrite(&_impl_); + return _internal_mutable_components(); } -inline const ::Odb::Lib::Protobuf::ProductModel::Component& Design::_internal_components(int index) const { - return _impl_.components_.Get(index); -} -inline const ::Odb::Lib::Protobuf::ProductModel::Component& Design::components(int index) const { +inline const ::Odb::Lib::Protobuf::ProductModel::Component& Design::components(int index) const + ABSL_ATTRIBUTE_LIFETIME_BOUND { // @@protoc_insertion_point(field_get:Odb.Lib.Protobuf.ProductModel.Design.components) - return _internal_components(index); -} -inline ::Odb::Lib::Protobuf::ProductModel::Component* Design::_internal_add_components() { - return _impl_.components_.Add(); + return _internal_components().Get(index); } -inline ::Odb::Lib::Protobuf::ProductModel::Component* Design::add_components() { - ::Odb::Lib::Protobuf::ProductModel::Component* _add = _internal_add_components(); +inline ::Odb::Lib::Protobuf::ProductModel::Component* Design::add_components() ABSL_ATTRIBUTE_LIFETIME_BOUND { + ::google::protobuf::internal::TSanWrite(&_impl_); + ::Odb::Lib::Protobuf::ProductModel::Component* _add = _internal_mutable_components()->Add(); // @@protoc_insertion_point(field_add:Odb.Lib.Protobuf.ProductModel.Design.components) return _add; } -inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::Odb::Lib::Protobuf::ProductModel::Component >& -Design::components() const { +inline const ::google::protobuf::RepeatedPtrField<::Odb::Lib::Protobuf::ProductModel::Component>& Design::components() const + ABSL_ATTRIBUTE_LIFETIME_BOUND { // @@protoc_insertion_point(field_list:Odb.Lib.Protobuf.ProductModel.Design.components) + return _internal_components(); +} +inline const ::google::protobuf::RepeatedPtrField<::Odb::Lib::Protobuf::ProductModel::Component>& +Design::_internal_components() const { + ::google::protobuf::internal::TSanRead(&_impl_); return _impl_.components_; } +inline ::google::protobuf::RepeatedPtrField<::Odb::Lib::Protobuf::ProductModel::Component>* +Design::_internal_mutable_components() { + ::google::protobuf::internal::TSanRead(&_impl_); + return &_impl_.components_; +} // map componentsByName = 9; inline int Design::_internal_componentsbyname_size() const { - return _impl_.componentsbyname_.size(); + return _internal_componentsbyname().size(); } inline int Design::componentsbyname_size() const { return _internal_componentsbyname_size(); } -inline const ::PROTOBUF_NAMESPACE_ID::Map< std::string, ::Odb::Lib::Protobuf::ProductModel::Component >& -Design::_internal_componentsbyname() const { +inline const ::google::protobuf::Map& Design::_internal_componentsbyname() const { + ::google::protobuf::internal::TSanRead(&_impl_); return _impl_.componentsbyname_.GetMap(); } -inline const ::PROTOBUF_NAMESPACE_ID::Map< std::string, ::Odb::Lib::Protobuf::ProductModel::Component >& -Design::componentsbyname() const { +inline const ::google::protobuf::Map& Design::componentsbyname() const ABSL_ATTRIBUTE_LIFETIME_BOUND { // @@protoc_insertion_point(field_map:Odb.Lib.Protobuf.ProductModel.Design.componentsByName) return _internal_componentsbyname(); } -inline ::PROTOBUF_NAMESPACE_ID::Map< std::string, ::Odb::Lib::Protobuf::ProductModel::Component >* -Design::_internal_mutable_componentsbyname() { +inline ::google::protobuf::Map* Design::_internal_mutable_componentsbyname() { + ::google::protobuf::internal::TSanWrite(&_impl_); return _impl_.componentsbyname_.MutableMap(); } -inline ::PROTOBUF_NAMESPACE_ID::Map< std::string, ::Odb::Lib::Protobuf::ProductModel::Component >* -Design::mutable_componentsbyname() { +inline ::google::protobuf::Map* Design::mutable_componentsbyname() ABSL_ATTRIBUTE_LIFETIME_BOUND { // @@protoc_insertion_point(field_mutable_map:Odb.Lib.Protobuf.ProductModel.Design.componentsByName) return _internal_mutable_componentsbyname(); } // repeated .Odb.Lib.Protobuf.ProductModel.Part parts = 10; inline int Design::_internal_parts_size() const { - return _impl_.parts_.size(); + return _internal_parts().size(); } inline int Design::parts_size() const { return _internal_parts_size(); } -inline ::Odb::Lib::Protobuf::ProductModel::Part* Design::mutable_parts(int index) { +inline ::Odb::Lib::Protobuf::ProductModel::Part* Design::mutable_parts(int index) + ABSL_ATTRIBUTE_LIFETIME_BOUND { // @@protoc_insertion_point(field_mutable:Odb.Lib.Protobuf.ProductModel.Design.parts) - return _impl_.parts_.Mutable(index); + return _internal_mutable_parts()->Mutable(index); } -inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::Odb::Lib::Protobuf::ProductModel::Part >* -Design::mutable_parts() { +inline ::google::protobuf::RepeatedPtrField<::Odb::Lib::Protobuf::ProductModel::Part>* Design::mutable_parts() + ABSL_ATTRIBUTE_LIFETIME_BOUND { // @@protoc_insertion_point(field_mutable_list:Odb.Lib.Protobuf.ProductModel.Design.parts) - return &_impl_.parts_; + ::google::protobuf::internal::TSanWrite(&_impl_); + return _internal_mutable_parts(); } -inline const ::Odb::Lib::Protobuf::ProductModel::Part& Design::_internal_parts(int index) const { - return _impl_.parts_.Get(index); -} -inline const ::Odb::Lib::Protobuf::ProductModel::Part& Design::parts(int index) const { +inline const ::Odb::Lib::Protobuf::ProductModel::Part& Design::parts(int index) const + ABSL_ATTRIBUTE_LIFETIME_BOUND { // @@protoc_insertion_point(field_get:Odb.Lib.Protobuf.ProductModel.Design.parts) - return _internal_parts(index); -} -inline ::Odb::Lib::Protobuf::ProductModel::Part* Design::_internal_add_parts() { - return _impl_.parts_.Add(); + return _internal_parts().Get(index); } -inline ::Odb::Lib::Protobuf::ProductModel::Part* Design::add_parts() { - ::Odb::Lib::Protobuf::ProductModel::Part* _add = _internal_add_parts(); +inline ::Odb::Lib::Protobuf::ProductModel::Part* Design::add_parts() ABSL_ATTRIBUTE_LIFETIME_BOUND { + ::google::protobuf::internal::TSanWrite(&_impl_); + ::Odb::Lib::Protobuf::ProductModel::Part* _add = _internal_mutable_parts()->Add(); // @@protoc_insertion_point(field_add:Odb.Lib.Protobuf.ProductModel.Design.parts) return _add; } -inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::Odb::Lib::Protobuf::ProductModel::Part >& -Design::parts() const { +inline const ::google::protobuf::RepeatedPtrField<::Odb::Lib::Protobuf::ProductModel::Part>& Design::parts() const + ABSL_ATTRIBUTE_LIFETIME_BOUND { // @@protoc_insertion_point(field_list:Odb.Lib.Protobuf.ProductModel.Design.parts) + return _internal_parts(); +} +inline const ::google::protobuf::RepeatedPtrField<::Odb::Lib::Protobuf::ProductModel::Part>& +Design::_internal_parts() const { + ::google::protobuf::internal::TSanRead(&_impl_); return _impl_.parts_; } +inline ::google::protobuf::RepeatedPtrField<::Odb::Lib::Protobuf::ProductModel::Part>* +Design::_internal_mutable_parts() { + ::google::protobuf::internal::TSanRead(&_impl_); + return &_impl_.parts_; +} // map partsByName = 11; inline int Design::_internal_partsbyname_size() const { - return _impl_.partsbyname_.size(); + return _internal_partsbyname().size(); } inline int Design::partsbyname_size() const { return _internal_partsbyname_size(); } -inline const ::PROTOBUF_NAMESPACE_ID::Map< std::string, ::Odb::Lib::Protobuf::ProductModel::Part >& -Design::_internal_partsbyname() const { +inline const ::google::protobuf::Map& Design::_internal_partsbyname() const { + ::google::protobuf::internal::TSanRead(&_impl_); return _impl_.partsbyname_.GetMap(); } -inline const ::PROTOBUF_NAMESPACE_ID::Map< std::string, ::Odb::Lib::Protobuf::ProductModel::Part >& -Design::partsbyname() const { +inline const ::google::protobuf::Map& Design::partsbyname() const ABSL_ATTRIBUTE_LIFETIME_BOUND { // @@protoc_insertion_point(field_map:Odb.Lib.Protobuf.ProductModel.Design.partsByName) return _internal_partsbyname(); } -inline ::PROTOBUF_NAMESPACE_ID::Map< std::string, ::Odb::Lib::Protobuf::ProductModel::Part >* -Design::_internal_mutable_partsbyname() { +inline ::google::protobuf::Map* Design::_internal_mutable_partsbyname() { + ::google::protobuf::internal::TSanWrite(&_impl_); return _impl_.partsbyname_.MutableMap(); } -inline ::PROTOBUF_NAMESPACE_ID::Map< std::string, ::Odb::Lib::Protobuf::ProductModel::Part >* -Design::mutable_partsbyname() { +inline ::google::protobuf::Map* Design::mutable_partsbyname() ABSL_ATTRIBUTE_LIFETIME_BOUND { // @@protoc_insertion_point(field_mutable_map:Odb.Lib.Protobuf.ProductModel.Design.partsByName) return _internal_mutable_partsbyname(); } #ifdef __GNUC__ - #pragma GCC diagnostic pop +#pragma GCC diagnostic pop #endif // __GNUC__ -// ------------------------------------------------------------------- - -// ------------------------------------------------------------------- - -// ------------------------------------------------------------------- - -// ------------------------------------------------------------------- - // @@protoc_insertion_point(namespace_scope) - } // namespace ProductModel } // namespace Protobuf } // namespace Lib } // namespace Odb + // @@protoc_insertion_point(global_scope) -#include -#endif // GOOGLE_PROTOBUF_INCLUDED_GOOGLE_PROTOBUF_INCLUDED_design_2eproto +#include "google/protobuf/port_undef.inc" + +#endif // design_2eproto_2epb_2eh diff --git a/OdbDesignLib/ProtoBuf/edadatafile.pb.cc b/OdbDesignLib/ProtoBuf/edadatafile.pb.cc index c5b01cb8..24c1dad9 100644 --- a/OdbDesignLib/ProtoBuf/edadatafile.pb.cc +++ b/OdbDesignLib/ProtoBuf/edadatafile.pb.cc @@ -1,698 +1,867 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE // source: edadatafile.proto +// Protobuf C++ Version: 5.29.2 #include "edadatafile.pb.h" #include - -#include -#include -#include -#include -#include -#include -#include +#include +#include "google/protobuf/io/coded_stream.h" +#include "google/protobuf/generated_message_tctable_impl.h" +#include "google/protobuf/extension_set.h" +#include "google/protobuf/generated_message_util.h" +#include "google/protobuf/wire_format_lite.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) -#include +// Must be included last. +#include "google/protobuf/port_def.inc" PROTOBUF_PRAGMA_INIT_SEG - -namespace _pb = ::PROTOBUF_NAMESPACE_ID; -namespace _pbi = _pb::internal; - +namespace _pb = ::google::protobuf; +namespace _pbi = ::google::protobuf::internal; +namespace _fl = ::google::protobuf::internal::field_layout; namespace Odb { namespace Lib { namespace Protobuf { -PROTOBUF_CONSTEXPR EdaDataFile_FeatureIdRecord::EdaDataFile_FeatureIdRecord( - ::_pbi::ConstantInitialized): _impl_{ - /*decltype(_impl_._has_bits_)*/{} - , /*decltype(_impl_._cached_size_)*/{} - , /*decltype(_impl_.type_)*/0 - , /*decltype(_impl_.layernumber_)*/0u - , /*decltype(_impl_.featurenumber_)*/0u} {} -struct EdaDataFile_FeatureIdRecordDefaultTypeInternal { - PROTOBUF_CONSTEXPR EdaDataFile_FeatureIdRecordDefaultTypeInternal() - : _instance(::_pbi::ConstantInitialized{}) {} - ~EdaDataFile_FeatureIdRecordDefaultTypeInternal() {} + +inline constexpr EdaDataFile_PackageRecord_PinRecord::Impl_::Impl_( + ::_pbi::ConstantInitialized) noexcept + : _cached_size_{0}, + name_( + &::google::protobuf::internal::fixed_address_empty_string, + ::_pbi::ConstantInitialized()), + type_{static_cast< ::Odb::Lib::Protobuf::EdaDataFile_PackageRecord_PinRecord_Type >(0)}, + xcenter_{0}, + ycenter_{0}, + finishedholesize_{0}, + electricaltype_{static_cast< ::Odb::Lib::Protobuf::EdaDataFile_PackageRecord_PinRecord_ElectricalType >(0)}, + mounttype_{static_cast< ::Odb::Lib::Protobuf::EdaDataFile_PackageRecord_PinRecord_MountType >(0)}, + id_{0u}, + index_{0u} {} + +template +PROTOBUF_CONSTEXPR EdaDataFile_PackageRecord_PinRecord::EdaDataFile_PackageRecord_PinRecord(::_pbi::ConstantInitialized) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : ::google::protobuf::Message(_class_data_.base()), +#else // PROTOBUF_CUSTOM_VTABLE + : ::google::protobuf::Message(), +#endif // PROTOBUF_CUSTOM_VTABLE + _impl_(::_pbi::ConstantInitialized()) { +} +struct EdaDataFile_PackageRecord_PinRecordDefaultTypeInternal { + PROTOBUF_CONSTEXPR EdaDataFile_PackageRecord_PinRecordDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} + ~EdaDataFile_PackageRecord_PinRecordDefaultTypeInternal() {} union { - EdaDataFile_FeatureIdRecord _instance; + EdaDataFile_PackageRecord_PinRecord _instance; }; }; -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 EdaDataFile_FeatureIdRecordDefaultTypeInternal _EdaDataFile_FeatureIdRecord_default_instance_; -PROTOBUF_CONSTEXPR EdaDataFile_NetRecord_SubnetRecord::EdaDataFile_NetRecord_SubnetRecord( - ::_pbi::ConstantInitialized): _impl_{ - /*decltype(_impl_._has_bits_)*/{} - , /*decltype(_impl_._cached_size_)*/{} - , /*decltype(_impl_.featureidrecords_)*/{} - , /*decltype(_impl_.type_)*/0 - , /*decltype(_impl_.filltype_)*/0 - , /*decltype(_impl_.cutouttype_)*/0 - , /*decltype(_impl_.fillsize_)*/0 - , /*decltype(_impl_.side_)*/0 - , /*decltype(_impl_.componentnumber_)*/0u - , /*decltype(_impl_.toeprintnumber_)*/0u - , /*decltype(_impl_.index_)*/0u} {} -struct EdaDataFile_NetRecord_SubnetRecordDefaultTypeInternal { - PROTOBUF_CONSTEXPR EdaDataFile_NetRecord_SubnetRecordDefaultTypeInternal() - : _instance(::_pbi::ConstantInitialized{}) {} - ~EdaDataFile_NetRecord_SubnetRecordDefaultTypeInternal() {} + +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT ODBDESIGN_EXPORT + PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 EdaDataFile_PackageRecord_PinRecordDefaultTypeInternal _EdaDataFile_PackageRecord_PinRecord_default_instance_; + template +PROTOBUF_CONSTEXPR EdaDataFile_PackageRecord_AttributeLookupTableEntry_DoNotUse::EdaDataFile_PackageRecord_AttributeLookupTableEntry_DoNotUse(::_pbi::ConstantInitialized) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : EdaDataFile_PackageRecord_AttributeLookupTableEntry_DoNotUse::MapEntry(_class_data_.base()){} +#else // PROTOBUF_CUSTOM_VTABLE + : EdaDataFile_PackageRecord_AttributeLookupTableEntry_DoNotUse::MapEntry() { +} +#endif // PROTOBUF_CUSTOM_VTABLE +struct EdaDataFile_PackageRecord_AttributeLookupTableEntry_DoNotUseDefaultTypeInternal { + PROTOBUF_CONSTEXPR EdaDataFile_PackageRecord_AttributeLookupTableEntry_DoNotUseDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} + ~EdaDataFile_PackageRecord_AttributeLookupTableEntry_DoNotUseDefaultTypeInternal() {} union { - EdaDataFile_NetRecord_SubnetRecord _instance; + EdaDataFile_PackageRecord_AttributeLookupTableEntry_DoNotUse _instance; }; }; -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 EdaDataFile_NetRecord_SubnetRecordDefaultTypeInternal _EdaDataFile_NetRecord_SubnetRecord_default_instance_; -PROTOBUF_CONSTEXPR EdaDataFile_NetRecord_AttributeLookupTableEntry_DoNotUse::EdaDataFile_NetRecord_AttributeLookupTableEntry_DoNotUse( - ::_pbi::ConstantInitialized) {} + +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT ODBDESIGN_EXPORT + PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 EdaDataFile_PackageRecord_AttributeLookupTableEntry_DoNotUseDefaultTypeInternal _EdaDataFile_PackageRecord_AttributeLookupTableEntry_DoNotUse_default_instance_; + template +PROTOBUF_CONSTEXPR EdaDataFile_NetRecord_AttributeLookupTableEntry_DoNotUse::EdaDataFile_NetRecord_AttributeLookupTableEntry_DoNotUse(::_pbi::ConstantInitialized) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : EdaDataFile_NetRecord_AttributeLookupTableEntry_DoNotUse::MapEntry(_class_data_.base()){} +#else // PROTOBUF_CUSTOM_VTABLE + : EdaDataFile_NetRecord_AttributeLookupTableEntry_DoNotUse::MapEntry() { +} +#endif // PROTOBUF_CUSTOM_VTABLE struct EdaDataFile_NetRecord_AttributeLookupTableEntry_DoNotUseDefaultTypeInternal { - PROTOBUF_CONSTEXPR EdaDataFile_NetRecord_AttributeLookupTableEntry_DoNotUseDefaultTypeInternal() - : _instance(::_pbi::ConstantInitialized{}) {} + PROTOBUF_CONSTEXPR EdaDataFile_NetRecord_AttributeLookupTableEntry_DoNotUseDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} ~EdaDataFile_NetRecord_AttributeLookupTableEntry_DoNotUseDefaultTypeInternal() {} union { EdaDataFile_NetRecord_AttributeLookupTableEntry_DoNotUse _instance; }; }; -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 EdaDataFile_NetRecord_AttributeLookupTableEntry_DoNotUseDefaultTypeInternal _EdaDataFile_NetRecord_AttributeLookupTableEntry_DoNotUse_default_instance_; -PROTOBUF_CONSTEXPR EdaDataFile_NetRecord::EdaDataFile_NetRecord( - ::_pbi::ConstantInitialized): _impl_{ - /*decltype(_impl_._has_bits_)*/{} - , /*decltype(_impl_._cached_size_)*/{} - , /*decltype(_impl_.subnetrecords_)*/{} - , /*decltype(_impl_.propertyrecords_)*/{} - , /*decltype(_impl_.attributelookuptable_)*/{::_pbi::ConstantInitialized()} - , /*decltype(_impl_.name_)*/{&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}} - , /*decltype(_impl_.attributesidstring_)*/{&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}} - , /*decltype(_impl_.index_)*/0u} {} -struct EdaDataFile_NetRecordDefaultTypeInternal { - PROTOBUF_CONSTEXPR EdaDataFile_NetRecordDefaultTypeInternal() - : _instance(::_pbi::ConstantInitialized{}) {} - ~EdaDataFile_NetRecordDefaultTypeInternal() {} + +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT ODBDESIGN_EXPORT + PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 EdaDataFile_NetRecord_AttributeLookupTableEntry_DoNotUseDefaultTypeInternal _EdaDataFile_NetRecord_AttributeLookupTableEntry_DoNotUse_default_instance_; + +inline constexpr EdaDataFile_FeatureIdRecord::Impl_::Impl_( + ::_pbi::ConstantInitialized) noexcept + : _cached_size_{0}, + type_{static_cast< ::Odb::Lib::Protobuf::EdaDataFile_FeatureIdRecord_Type >(0)}, + layernumber_{0u}, + featurenumber_{0u} {} + +template +PROTOBUF_CONSTEXPR EdaDataFile_FeatureIdRecord::EdaDataFile_FeatureIdRecord(::_pbi::ConstantInitialized) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : ::google::protobuf::Message(_class_data_.base()), +#else // PROTOBUF_CUSTOM_VTABLE + : ::google::protobuf::Message(), +#endif // PROTOBUF_CUSTOM_VTABLE + _impl_(::_pbi::ConstantInitialized()) { +} +struct EdaDataFile_FeatureIdRecordDefaultTypeInternal { + PROTOBUF_CONSTEXPR EdaDataFile_FeatureIdRecordDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} + ~EdaDataFile_FeatureIdRecordDefaultTypeInternal() {} union { - EdaDataFile_NetRecord _instance; + EdaDataFile_FeatureIdRecord _instance; }; }; -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 EdaDataFile_NetRecordDefaultTypeInternal _EdaDataFile_NetRecord_default_instance_; -PROTOBUF_CONSTEXPR EdaDataFile_PackageRecord_PinRecordsByNameEntry_DoNotUse::EdaDataFile_PackageRecord_PinRecordsByNameEntry_DoNotUse( - ::_pbi::ConstantInitialized) {} + +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT ODBDESIGN_EXPORT + PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 EdaDataFile_FeatureIdRecordDefaultTypeInternal _EdaDataFile_FeatureIdRecord_default_instance_; + template +PROTOBUF_CONSTEXPR EdaDataFile_PackageRecord_PinRecordsByNameEntry_DoNotUse::EdaDataFile_PackageRecord_PinRecordsByNameEntry_DoNotUse(::_pbi::ConstantInitialized) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : EdaDataFile_PackageRecord_PinRecordsByNameEntry_DoNotUse::MapEntry(_class_data_.base()){} +#else // PROTOBUF_CUSTOM_VTABLE + : EdaDataFile_PackageRecord_PinRecordsByNameEntry_DoNotUse::MapEntry() { +} +#endif // PROTOBUF_CUSTOM_VTABLE struct EdaDataFile_PackageRecord_PinRecordsByNameEntry_DoNotUseDefaultTypeInternal { - PROTOBUF_CONSTEXPR EdaDataFile_PackageRecord_PinRecordsByNameEntry_DoNotUseDefaultTypeInternal() - : _instance(::_pbi::ConstantInitialized{}) {} + PROTOBUF_CONSTEXPR EdaDataFile_PackageRecord_PinRecordsByNameEntry_DoNotUseDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} ~EdaDataFile_PackageRecord_PinRecordsByNameEntry_DoNotUseDefaultTypeInternal() {} union { EdaDataFile_PackageRecord_PinRecordsByNameEntry_DoNotUse _instance; }; }; -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 EdaDataFile_PackageRecord_PinRecordsByNameEntry_DoNotUseDefaultTypeInternal _EdaDataFile_PackageRecord_PinRecordsByNameEntry_DoNotUse_default_instance_; -PROTOBUF_CONSTEXPR EdaDataFile_PackageRecord_AttributeLookupTableEntry_DoNotUse::EdaDataFile_PackageRecord_AttributeLookupTableEntry_DoNotUse( - ::_pbi::ConstantInitialized) {} -struct EdaDataFile_PackageRecord_AttributeLookupTableEntry_DoNotUseDefaultTypeInternal { - PROTOBUF_CONSTEXPR EdaDataFile_PackageRecord_AttributeLookupTableEntry_DoNotUseDefaultTypeInternal() - : _instance(::_pbi::ConstantInitialized{}) {} - ~EdaDataFile_PackageRecord_AttributeLookupTableEntry_DoNotUseDefaultTypeInternal() {} + +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT ODBDESIGN_EXPORT + PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 EdaDataFile_PackageRecord_PinRecordsByNameEntry_DoNotUseDefaultTypeInternal _EdaDataFile_PackageRecord_PinRecordsByNameEntry_DoNotUse_default_instance_; + +inline constexpr EdaDataFile_NetRecord_SubnetRecord::Impl_::Impl_( + ::_pbi::ConstantInitialized) noexcept + : _cached_size_{0}, + featureidrecords_{}, + type_{static_cast< ::Odb::Lib::Protobuf::EdaDataFile_NetRecord_SubnetRecord_Type >(0)}, + filltype_{static_cast< ::Odb::Lib::Protobuf::EdaDataFile_NetRecord_SubnetRecord_FillType >(0)}, + cutouttype_{static_cast< ::Odb::Lib::Protobuf::EdaDataFile_NetRecord_SubnetRecord_CutoutType >(0)}, + fillsize_{0}, + side_{static_cast< ::Odb::Lib::Protobuf::BoardSide >(0)}, + componentnumber_{0u}, + toeprintnumber_{0u}, + index_{0u} {} + +template +PROTOBUF_CONSTEXPR EdaDataFile_NetRecord_SubnetRecord::EdaDataFile_NetRecord_SubnetRecord(::_pbi::ConstantInitialized) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : ::google::protobuf::Message(_class_data_.base()), +#else // PROTOBUF_CUSTOM_VTABLE + : ::google::protobuf::Message(), +#endif // PROTOBUF_CUSTOM_VTABLE + _impl_(::_pbi::ConstantInitialized()) { +} +struct EdaDataFile_NetRecord_SubnetRecordDefaultTypeInternal { + PROTOBUF_CONSTEXPR EdaDataFile_NetRecord_SubnetRecordDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} + ~EdaDataFile_NetRecord_SubnetRecordDefaultTypeInternal() {} union { - EdaDataFile_PackageRecord_AttributeLookupTableEntry_DoNotUse _instance; + EdaDataFile_NetRecord_SubnetRecord _instance; + }; +}; + +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT ODBDESIGN_EXPORT + PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 EdaDataFile_NetRecord_SubnetRecordDefaultTypeInternal _EdaDataFile_NetRecord_SubnetRecord_default_instance_; + +inline constexpr EdaDataFile_FeatureGroupRecord::Impl_::Impl_( + ::_pbi::ConstantInitialized) noexcept + : _cached_size_{0}, + propertyrecords_{}, + featureidrecords_{}, + type_( + &::google::protobuf::internal::fixed_address_empty_string, + ::_pbi::ConstantInitialized()) {} + +template +PROTOBUF_CONSTEXPR EdaDataFile_FeatureGroupRecord::EdaDataFile_FeatureGroupRecord(::_pbi::ConstantInitialized) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : ::google::protobuf::Message(_class_data_.base()), +#else // PROTOBUF_CUSTOM_VTABLE + : ::google::protobuf::Message(), +#endif // PROTOBUF_CUSTOM_VTABLE + _impl_(::_pbi::ConstantInitialized()) { +} +struct EdaDataFile_FeatureGroupRecordDefaultTypeInternal { + PROTOBUF_CONSTEXPR EdaDataFile_FeatureGroupRecordDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} + ~EdaDataFile_FeatureGroupRecordDefaultTypeInternal() {} + union { + EdaDataFile_FeatureGroupRecord _instance; }; }; -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 EdaDataFile_PackageRecord_AttributeLookupTableEntry_DoNotUseDefaultTypeInternal _EdaDataFile_PackageRecord_AttributeLookupTableEntry_DoNotUse_default_instance_; -PROTOBUF_CONSTEXPR EdaDataFile_PackageRecord_OutlineRecord::EdaDataFile_PackageRecord_OutlineRecord( - ::_pbi::ConstantInitialized): _impl_{ - /*decltype(_impl_._has_bits_)*/{} - , /*decltype(_impl_._cached_size_)*/{} - , /*decltype(_impl_.contourpolygons_)*/{} - , /*decltype(_impl_.type_)*/0 - , /*decltype(_impl_.lowerleftx_)*/0 - , /*decltype(_impl_.lowerlefty_)*/0 - , /*decltype(_impl_.width_)*/0 - , /*decltype(_impl_.height_)*/0 - , /*decltype(_impl_.xcenter_)*/0 - , /*decltype(_impl_.ycenter_)*/0 - , /*decltype(_impl_.halfside_)*/0 - , /*decltype(_impl_.radius_)*/0} {} + +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT ODBDESIGN_EXPORT + PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 EdaDataFile_FeatureGroupRecordDefaultTypeInternal _EdaDataFile_FeatureGroupRecord_default_instance_; + +inline constexpr EdaDataFile_PackageRecord_OutlineRecord::Impl_::Impl_( + ::_pbi::ConstantInitialized) noexcept + : _cached_size_{0}, + contourpolygons_{}, + type_{static_cast< ::Odb::Lib::Protobuf::EdaDataFile_PackageRecord_OutlineRecord_Type >(0)}, + lowerleftx_{0}, + lowerlefty_{0}, + width_{0}, + height_{0}, + xcenter_{0}, + ycenter_{0}, + halfside_{0}, + radius_{0} {} + +template +PROTOBUF_CONSTEXPR EdaDataFile_PackageRecord_OutlineRecord::EdaDataFile_PackageRecord_OutlineRecord(::_pbi::ConstantInitialized) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : ::google::protobuf::Message(_class_data_.base()), +#else // PROTOBUF_CUSTOM_VTABLE + : ::google::protobuf::Message(), +#endif // PROTOBUF_CUSTOM_VTABLE + _impl_(::_pbi::ConstantInitialized()) { +} struct EdaDataFile_PackageRecord_OutlineRecordDefaultTypeInternal { - PROTOBUF_CONSTEXPR EdaDataFile_PackageRecord_OutlineRecordDefaultTypeInternal() - : _instance(::_pbi::ConstantInitialized{}) {} + PROTOBUF_CONSTEXPR EdaDataFile_PackageRecord_OutlineRecordDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} ~EdaDataFile_PackageRecord_OutlineRecordDefaultTypeInternal() {} union { EdaDataFile_PackageRecord_OutlineRecord _instance; }; }; -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 EdaDataFile_PackageRecord_OutlineRecordDefaultTypeInternal _EdaDataFile_PackageRecord_OutlineRecord_default_instance_; -PROTOBUF_CONSTEXPR EdaDataFile_PackageRecord_PinRecord::EdaDataFile_PackageRecord_PinRecord( - ::_pbi::ConstantInitialized): _impl_{ - /*decltype(_impl_._has_bits_)*/{} - , /*decltype(_impl_._cached_size_)*/{} - , /*decltype(_impl_.name_)*/{&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}} - , /*decltype(_impl_.type_)*/0 - , /*decltype(_impl_.xcenter_)*/0 - , /*decltype(_impl_.ycenter_)*/0 - , /*decltype(_impl_.finishedholesize_)*/0 - , /*decltype(_impl_.electricaltype_)*/0 - , /*decltype(_impl_.mounttype_)*/0 - , /*decltype(_impl_.id_)*/0u - , /*decltype(_impl_.index_)*/0u} {} -struct EdaDataFile_PackageRecord_PinRecordDefaultTypeInternal { - PROTOBUF_CONSTEXPR EdaDataFile_PackageRecord_PinRecordDefaultTypeInternal() - : _instance(::_pbi::ConstantInitialized{}) {} - ~EdaDataFile_PackageRecord_PinRecordDefaultTypeInternal() {} + +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT ODBDESIGN_EXPORT + PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 EdaDataFile_PackageRecord_OutlineRecordDefaultTypeInternal _EdaDataFile_PackageRecord_OutlineRecord_default_instance_; + +inline constexpr EdaDataFile_NetRecord::Impl_::Impl_( + ::_pbi::ConstantInitialized) noexcept + : _cached_size_{0}, + subnetrecords_{}, + propertyrecords_{}, + attributelookuptable_{}, + name_( + &::google::protobuf::internal::fixed_address_empty_string, + ::_pbi::ConstantInitialized()), + attributesidstring_( + &::google::protobuf::internal::fixed_address_empty_string, + ::_pbi::ConstantInitialized()), + index_{0u} {} + +template +PROTOBUF_CONSTEXPR EdaDataFile_NetRecord::EdaDataFile_NetRecord(::_pbi::ConstantInitialized) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : ::google::protobuf::Message(_class_data_.base()), +#else // PROTOBUF_CUSTOM_VTABLE + : ::google::protobuf::Message(), +#endif // PROTOBUF_CUSTOM_VTABLE + _impl_(::_pbi::ConstantInitialized()) { +} +struct EdaDataFile_NetRecordDefaultTypeInternal { + PROTOBUF_CONSTEXPR EdaDataFile_NetRecordDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} + ~EdaDataFile_NetRecordDefaultTypeInternal() {} union { - EdaDataFile_PackageRecord_PinRecord _instance; + EdaDataFile_NetRecord _instance; }; }; -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 EdaDataFile_PackageRecord_PinRecordDefaultTypeInternal _EdaDataFile_PackageRecord_PinRecord_default_instance_; -PROTOBUF_CONSTEXPR EdaDataFile_PackageRecord::EdaDataFile_PackageRecord( - ::_pbi::ConstantInitialized): _impl_{ - /*decltype(_impl_._has_bits_)*/{} - , /*decltype(_impl_._cached_size_)*/{} - , /*decltype(_impl_.pinrecords_)*/{} - , /*decltype(_impl_.pinrecordsbyname_)*/{::_pbi::ConstantInitialized()} - , /*decltype(_impl_.propertyrecords_)*/{} - , /*decltype(_impl_.outlinerecords_)*/{} - , /*decltype(_impl_.attributelookuptable_)*/{::_pbi::ConstantInitialized()} - , /*decltype(_impl_.name_)*/{&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}} - , /*decltype(_impl_.attributesidstring_)*/{&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}} - , /*decltype(_impl_.pitch_)*/0 - , /*decltype(_impl_.xmin_)*/0 - , /*decltype(_impl_.ymin_)*/0 - , /*decltype(_impl_.xmax_)*/0 - , /*decltype(_impl_.ymax_)*/0} {} + +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT ODBDESIGN_EXPORT + PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 EdaDataFile_NetRecordDefaultTypeInternal _EdaDataFile_NetRecord_default_instance_; + +inline constexpr EdaDataFile_PackageRecord::Impl_::Impl_( + ::_pbi::ConstantInitialized) noexcept + : _cached_size_{0}, + pinrecords_{}, + pinrecordsbyname_{}, + propertyrecords_{}, + outlinerecords_{}, + attributelookuptable_{}, + name_( + &::google::protobuf::internal::fixed_address_empty_string, + ::_pbi::ConstantInitialized()), + attributesidstring_( + &::google::protobuf::internal::fixed_address_empty_string, + ::_pbi::ConstantInitialized()), + pitch_{0}, + xmin_{0}, + ymin_{0}, + xmax_{0}, + ymax_{0} {} + +template +PROTOBUF_CONSTEXPR EdaDataFile_PackageRecord::EdaDataFile_PackageRecord(::_pbi::ConstantInitialized) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : ::google::protobuf::Message(_class_data_.base()), +#else // PROTOBUF_CUSTOM_VTABLE + : ::google::protobuf::Message(), +#endif // PROTOBUF_CUSTOM_VTABLE + _impl_(::_pbi::ConstantInitialized()) { +} struct EdaDataFile_PackageRecordDefaultTypeInternal { - PROTOBUF_CONSTEXPR EdaDataFile_PackageRecordDefaultTypeInternal() - : _instance(::_pbi::ConstantInitialized{}) {} + PROTOBUF_CONSTEXPR EdaDataFile_PackageRecordDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} ~EdaDataFile_PackageRecordDefaultTypeInternal() {} union { EdaDataFile_PackageRecord _instance; }; }; -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 EdaDataFile_PackageRecordDefaultTypeInternal _EdaDataFile_PackageRecord_default_instance_; -PROTOBUF_CONSTEXPR EdaDataFile_FeatureGroupRecord::EdaDataFile_FeatureGroupRecord( - ::_pbi::ConstantInitialized): _impl_{ - /*decltype(_impl_._has_bits_)*/{} - , /*decltype(_impl_._cached_size_)*/{} - , /*decltype(_impl_.propertyrecords_)*/{} - , /*decltype(_impl_.featureidrecords_)*/{} - , /*decltype(_impl_.type_)*/{&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}}} {} -struct EdaDataFile_FeatureGroupRecordDefaultTypeInternal { - PROTOBUF_CONSTEXPR EdaDataFile_FeatureGroupRecordDefaultTypeInternal() - : _instance(::_pbi::ConstantInitialized{}) {} - ~EdaDataFile_FeatureGroupRecordDefaultTypeInternal() {} - union { - EdaDataFile_FeatureGroupRecord _instance; - }; -}; -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 EdaDataFile_FeatureGroupRecordDefaultTypeInternal _EdaDataFile_FeatureGroupRecord_default_instance_; -PROTOBUF_CONSTEXPR EdaDataFile_NetRecordsByNameEntry_DoNotUse::EdaDataFile_NetRecordsByNameEntry_DoNotUse( - ::_pbi::ConstantInitialized) {} + +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT ODBDESIGN_EXPORT + PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 EdaDataFile_PackageRecordDefaultTypeInternal _EdaDataFile_PackageRecord_default_instance_; + template +PROTOBUF_CONSTEXPR EdaDataFile_NetRecordsByNameEntry_DoNotUse::EdaDataFile_NetRecordsByNameEntry_DoNotUse(::_pbi::ConstantInitialized) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : EdaDataFile_NetRecordsByNameEntry_DoNotUse::MapEntry(_class_data_.base()){} +#else // PROTOBUF_CUSTOM_VTABLE + : EdaDataFile_NetRecordsByNameEntry_DoNotUse::MapEntry() { +} +#endif // PROTOBUF_CUSTOM_VTABLE struct EdaDataFile_NetRecordsByNameEntry_DoNotUseDefaultTypeInternal { - PROTOBUF_CONSTEXPR EdaDataFile_NetRecordsByNameEntry_DoNotUseDefaultTypeInternal() - : _instance(::_pbi::ConstantInitialized{}) {} + PROTOBUF_CONSTEXPR EdaDataFile_NetRecordsByNameEntry_DoNotUseDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} ~EdaDataFile_NetRecordsByNameEntry_DoNotUseDefaultTypeInternal() {} union { EdaDataFile_NetRecordsByNameEntry_DoNotUse _instance; }; }; -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 EdaDataFile_NetRecordsByNameEntry_DoNotUseDefaultTypeInternal _EdaDataFile_NetRecordsByNameEntry_DoNotUse_default_instance_; -PROTOBUF_CONSTEXPR EdaDataFile_PackageRecordsByNameEntry_DoNotUse::EdaDataFile_PackageRecordsByNameEntry_DoNotUse( - ::_pbi::ConstantInitialized) {} + +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT ODBDESIGN_EXPORT + PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 EdaDataFile_NetRecordsByNameEntry_DoNotUseDefaultTypeInternal _EdaDataFile_NetRecordsByNameEntry_DoNotUse_default_instance_; + template +PROTOBUF_CONSTEXPR EdaDataFile_PackageRecordsByNameEntry_DoNotUse::EdaDataFile_PackageRecordsByNameEntry_DoNotUse(::_pbi::ConstantInitialized) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : EdaDataFile_PackageRecordsByNameEntry_DoNotUse::MapEntry(_class_data_.base()){} +#else // PROTOBUF_CUSTOM_VTABLE + : EdaDataFile_PackageRecordsByNameEntry_DoNotUse::MapEntry() { +} +#endif // PROTOBUF_CUSTOM_VTABLE struct EdaDataFile_PackageRecordsByNameEntry_DoNotUseDefaultTypeInternal { - PROTOBUF_CONSTEXPR EdaDataFile_PackageRecordsByNameEntry_DoNotUseDefaultTypeInternal() - : _instance(::_pbi::ConstantInitialized{}) {} + PROTOBUF_CONSTEXPR EdaDataFile_PackageRecordsByNameEntry_DoNotUseDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} ~EdaDataFile_PackageRecordsByNameEntry_DoNotUseDefaultTypeInternal() {} union { EdaDataFile_PackageRecordsByNameEntry_DoNotUse _instance; }; }; -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 EdaDataFile_PackageRecordsByNameEntry_DoNotUseDefaultTypeInternal _EdaDataFile_PackageRecordsByNameEntry_DoNotUse_default_instance_; -PROTOBUF_CONSTEXPR EdaDataFile::EdaDataFile( - ::_pbi::ConstantInitialized): _impl_{ - /*decltype(_impl_._has_bits_)*/{} - , /*decltype(_impl_._cached_size_)*/{} - , /*decltype(_impl_.layernames_)*/{} - , /*decltype(_impl_.attributenames_)*/{} - , /*decltype(_impl_.attributetextvalues_)*/{} - , /*decltype(_impl_.netrecords_)*/{} - , /*decltype(_impl_.netrecordsbyname_)*/{::_pbi::ConstantInitialized()} - , /*decltype(_impl_.packagerecords_)*/{} - , /*decltype(_impl_.packagerecordsbyname_)*/{::_pbi::ConstantInitialized()} - , /*decltype(_impl_.propertyrecords_)*/{} - , /*decltype(_impl_.featuregrouprecords_)*/{} - , /*decltype(_impl_.path_)*/{&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}} - , /*decltype(_impl_.units_)*/{&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}} - , /*decltype(_impl_.source_)*/{&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}}} {} + +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT ODBDESIGN_EXPORT + PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 EdaDataFile_PackageRecordsByNameEntry_DoNotUseDefaultTypeInternal _EdaDataFile_PackageRecordsByNameEntry_DoNotUse_default_instance_; + +inline constexpr EdaDataFile::Impl_::Impl_( + ::_pbi::ConstantInitialized) noexcept + : _cached_size_{0}, + layernames_{}, + attributenames_{}, + attributetextvalues_{}, + netrecords_{}, + netrecordsbyname_{}, + packagerecords_{}, + packagerecordsbyname_{}, + propertyrecords_{}, + featuregrouprecords_{}, + path_( + &::google::protobuf::internal::fixed_address_empty_string, + ::_pbi::ConstantInitialized()), + units_( + &::google::protobuf::internal::fixed_address_empty_string, + ::_pbi::ConstantInitialized()), + source_( + &::google::protobuf::internal::fixed_address_empty_string, + ::_pbi::ConstantInitialized()) {} + +template +PROTOBUF_CONSTEXPR EdaDataFile::EdaDataFile(::_pbi::ConstantInitialized) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : ::google::protobuf::Message(_class_data_.base()), +#else // PROTOBUF_CUSTOM_VTABLE + : ::google::protobuf::Message(), +#endif // PROTOBUF_CUSTOM_VTABLE + _impl_(::_pbi::ConstantInitialized()) { +} struct EdaDataFileDefaultTypeInternal { - PROTOBUF_CONSTEXPR EdaDataFileDefaultTypeInternal() - : _instance(::_pbi::ConstantInitialized{}) {} + PROTOBUF_CONSTEXPR EdaDataFileDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} ~EdaDataFileDefaultTypeInternal() {} union { EdaDataFile _instance; }; }; -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 EdaDataFileDefaultTypeInternal _EdaDataFile_default_instance_; + +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT ODBDESIGN_EXPORT + PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 EdaDataFileDefaultTypeInternal _EdaDataFile_default_instance_; } // namespace Protobuf } // namespace Lib } // namespace Odb -static ::_pb::Metadata file_level_metadata_edadatafile_2eproto[13]; static const ::_pb::EnumDescriptor* file_level_enum_descriptors_edadatafile_2eproto[8]; -static constexpr ::_pb::ServiceDescriptor const** file_level_service_descriptors_edadatafile_2eproto = nullptr; - -const uint32_t TableStruct_edadatafile_2eproto::offsets[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = { - PROTOBUF_FIELD_OFFSET(::Odb::Lib::Protobuf::EdaDataFile_FeatureIdRecord, _impl_._has_bits_), - PROTOBUF_FIELD_OFFSET(::Odb::Lib::Protobuf::EdaDataFile_FeatureIdRecord, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - ~0u, // no _inlined_string_donated_ - PROTOBUF_FIELD_OFFSET(::Odb::Lib::Protobuf::EdaDataFile_FeatureIdRecord, _impl_.type_), - PROTOBUF_FIELD_OFFSET(::Odb::Lib::Protobuf::EdaDataFile_FeatureIdRecord, _impl_.layernumber_), - PROTOBUF_FIELD_OFFSET(::Odb::Lib::Protobuf::EdaDataFile_FeatureIdRecord, _impl_.featurenumber_), - 0, - 1, - 2, - PROTOBUF_FIELD_OFFSET(::Odb::Lib::Protobuf::EdaDataFile_NetRecord_SubnetRecord, _impl_._has_bits_), - PROTOBUF_FIELD_OFFSET(::Odb::Lib::Protobuf::EdaDataFile_NetRecord_SubnetRecord, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - ~0u, // no _inlined_string_donated_ - PROTOBUF_FIELD_OFFSET(::Odb::Lib::Protobuf::EdaDataFile_NetRecord_SubnetRecord, _impl_.type_), - PROTOBUF_FIELD_OFFSET(::Odb::Lib::Protobuf::EdaDataFile_NetRecord_SubnetRecord, _impl_.featureidrecords_), - PROTOBUF_FIELD_OFFSET(::Odb::Lib::Protobuf::EdaDataFile_NetRecord_SubnetRecord, _impl_.filltype_), - PROTOBUF_FIELD_OFFSET(::Odb::Lib::Protobuf::EdaDataFile_NetRecord_SubnetRecord, _impl_.cutouttype_), - PROTOBUF_FIELD_OFFSET(::Odb::Lib::Protobuf::EdaDataFile_NetRecord_SubnetRecord, _impl_.fillsize_), - PROTOBUF_FIELD_OFFSET(::Odb::Lib::Protobuf::EdaDataFile_NetRecord_SubnetRecord, _impl_.side_), - PROTOBUF_FIELD_OFFSET(::Odb::Lib::Protobuf::EdaDataFile_NetRecord_SubnetRecord, _impl_.componentnumber_), - PROTOBUF_FIELD_OFFSET(::Odb::Lib::Protobuf::EdaDataFile_NetRecord_SubnetRecord, _impl_.toeprintnumber_), - PROTOBUF_FIELD_OFFSET(::Odb::Lib::Protobuf::EdaDataFile_NetRecord_SubnetRecord, _impl_.index_), - 0, - ~0u, - 1, - 2, - 3, - 4, - 5, - 6, - 7, - PROTOBUF_FIELD_OFFSET(::Odb::Lib::Protobuf::EdaDataFile_NetRecord_AttributeLookupTableEntry_DoNotUse, _has_bits_), - PROTOBUF_FIELD_OFFSET(::Odb::Lib::Protobuf::EdaDataFile_NetRecord_AttributeLookupTableEntry_DoNotUse, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - ~0u, // no _inlined_string_donated_ - PROTOBUF_FIELD_OFFSET(::Odb::Lib::Protobuf::EdaDataFile_NetRecord_AttributeLookupTableEntry_DoNotUse, key_), - PROTOBUF_FIELD_OFFSET(::Odb::Lib::Protobuf::EdaDataFile_NetRecord_AttributeLookupTableEntry_DoNotUse, value_), - 0, - 1, - PROTOBUF_FIELD_OFFSET(::Odb::Lib::Protobuf::EdaDataFile_NetRecord, _impl_._has_bits_), - PROTOBUF_FIELD_OFFSET(::Odb::Lib::Protobuf::EdaDataFile_NetRecord, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - ~0u, // no _inlined_string_donated_ - PROTOBUF_FIELD_OFFSET(::Odb::Lib::Protobuf::EdaDataFile_NetRecord, _impl_.name_), - PROTOBUF_FIELD_OFFSET(::Odb::Lib::Protobuf::EdaDataFile_NetRecord, _impl_.attributesidstring_), - PROTOBUF_FIELD_OFFSET(::Odb::Lib::Protobuf::EdaDataFile_NetRecord, _impl_.index_), - PROTOBUF_FIELD_OFFSET(::Odb::Lib::Protobuf::EdaDataFile_NetRecord, _impl_.subnetrecords_), - PROTOBUF_FIELD_OFFSET(::Odb::Lib::Protobuf::EdaDataFile_NetRecord, _impl_.propertyrecords_), - PROTOBUF_FIELD_OFFSET(::Odb::Lib::Protobuf::EdaDataFile_NetRecord, _impl_.attributelookuptable_), - 0, - 1, - 2, - ~0u, - ~0u, - ~0u, - PROTOBUF_FIELD_OFFSET(::Odb::Lib::Protobuf::EdaDataFile_PackageRecord_PinRecordsByNameEntry_DoNotUse, _has_bits_), - PROTOBUF_FIELD_OFFSET(::Odb::Lib::Protobuf::EdaDataFile_PackageRecord_PinRecordsByNameEntry_DoNotUse, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - ~0u, // no _inlined_string_donated_ - PROTOBUF_FIELD_OFFSET(::Odb::Lib::Protobuf::EdaDataFile_PackageRecord_PinRecordsByNameEntry_DoNotUse, key_), - PROTOBUF_FIELD_OFFSET(::Odb::Lib::Protobuf::EdaDataFile_PackageRecord_PinRecordsByNameEntry_DoNotUse, value_), - 0, - 1, - PROTOBUF_FIELD_OFFSET(::Odb::Lib::Protobuf::EdaDataFile_PackageRecord_AttributeLookupTableEntry_DoNotUse, _has_bits_), - PROTOBUF_FIELD_OFFSET(::Odb::Lib::Protobuf::EdaDataFile_PackageRecord_AttributeLookupTableEntry_DoNotUse, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - ~0u, // no _inlined_string_donated_ - PROTOBUF_FIELD_OFFSET(::Odb::Lib::Protobuf::EdaDataFile_PackageRecord_AttributeLookupTableEntry_DoNotUse, key_), - PROTOBUF_FIELD_OFFSET(::Odb::Lib::Protobuf::EdaDataFile_PackageRecord_AttributeLookupTableEntry_DoNotUse, value_), - 0, - 1, - PROTOBUF_FIELD_OFFSET(::Odb::Lib::Protobuf::EdaDataFile_PackageRecord_OutlineRecord, _impl_._has_bits_), - PROTOBUF_FIELD_OFFSET(::Odb::Lib::Protobuf::EdaDataFile_PackageRecord_OutlineRecord, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - ~0u, // no _inlined_string_donated_ - PROTOBUF_FIELD_OFFSET(::Odb::Lib::Protobuf::EdaDataFile_PackageRecord_OutlineRecord, _impl_.type_), - PROTOBUF_FIELD_OFFSET(::Odb::Lib::Protobuf::EdaDataFile_PackageRecord_OutlineRecord, _impl_.lowerleftx_), - PROTOBUF_FIELD_OFFSET(::Odb::Lib::Protobuf::EdaDataFile_PackageRecord_OutlineRecord, _impl_.lowerlefty_), - PROTOBUF_FIELD_OFFSET(::Odb::Lib::Protobuf::EdaDataFile_PackageRecord_OutlineRecord, _impl_.width_), - PROTOBUF_FIELD_OFFSET(::Odb::Lib::Protobuf::EdaDataFile_PackageRecord_OutlineRecord, _impl_.height_), - PROTOBUF_FIELD_OFFSET(::Odb::Lib::Protobuf::EdaDataFile_PackageRecord_OutlineRecord, _impl_.xcenter_), - PROTOBUF_FIELD_OFFSET(::Odb::Lib::Protobuf::EdaDataFile_PackageRecord_OutlineRecord, _impl_.ycenter_), - PROTOBUF_FIELD_OFFSET(::Odb::Lib::Protobuf::EdaDataFile_PackageRecord_OutlineRecord, _impl_.halfside_), - PROTOBUF_FIELD_OFFSET(::Odb::Lib::Protobuf::EdaDataFile_PackageRecord_OutlineRecord, _impl_.radius_), - PROTOBUF_FIELD_OFFSET(::Odb::Lib::Protobuf::EdaDataFile_PackageRecord_OutlineRecord, _impl_.contourpolygons_), - 0, - 1, - 2, - 3, - 4, - 5, - 6, - 7, - 8, - ~0u, - PROTOBUF_FIELD_OFFSET(::Odb::Lib::Protobuf::EdaDataFile_PackageRecord_PinRecord, _impl_._has_bits_), - PROTOBUF_FIELD_OFFSET(::Odb::Lib::Protobuf::EdaDataFile_PackageRecord_PinRecord, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - ~0u, // no _inlined_string_donated_ - PROTOBUF_FIELD_OFFSET(::Odb::Lib::Protobuf::EdaDataFile_PackageRecord_PinRecord, _impl_.name_), - PROTOBUF_FIELD_OFFSET(::Odb::Lib::Protobuf::EdaDataFile_PackageRecord_PinRecord, _impl_.type_), - PROTOBUF_FIELD_OFFSET(::Odb::Lib::Protobuf::EdaDataFile_PackageRecord_PinRecord, _impl_.xcenter_), - PROTOBUF_FIELD_OFFSET(::Odb::Lib::Protobuf::EdaDataFile_PackageRecord_PinRecord, _impl_.ycenter_), - PROTOBUF_FIELD_OFFSET(::Odb::Lib::Protobuf::EdaDataFile_PackageRecord_PinRecord, _impl_.finishedholesize_), - PROTOBUF_FIELD_OFFSET(::Odb::Lib::Protobuf::EdaDataFile_PackageRecord_PinRecord, _impl_.electricaltype_), - PROTOBUF_FIELD_OFFSET(::Odb::Lib::Protobuf::EdaDataFile_PackageRecord_PinRecord, _impl_.mounttype_), - PROTOBUF_FIELD_OFFSET(::Odb::Lib::Protobuf::EdaDataFile_PackageRecord_PinRecord, _impl_.id_), - PROTOBUF_FIELD_OFFSET(::Odb::Lib::Protobuf::EdaDataFile_PackageRecord_PinRecord, _impl_.index_), - 0, - 1, - 2, - 3, - 4, - 5, - 6, - 7, - 8, - PROTOBUF_FIELD_OFFSET(::Odb::Lib::Protobuf::EdaDataFile_PackageRecord, _impl_._has_bits_), - PROTOBUF_FIELD_OFFSET(::Odb::Lib::Protobuf::EdaDataFile_PackageRecord, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - ~0u, // no _inlined_string_donated_ - PROTOBUF_FIELD_OFFSET(::Odb::Lib::Protobuf::EdaDataFile_PackageRecord, _impl_.name_), - PROTOBUF_FIELD_OFFSET(::Odb::Lib::Protobuf::EdaDataFile_PackageRecord, _impl_.pitch_), - PROTOBUF_FIELD_OFFSET(::Odb::Lib::Protobuf::EdaDataFile_PackageRecord, _impl_.xmin_), - PROTOBUF_FIELD_OFFSET(::Odb::Lib::Protobuf::EdaDataFile_PackageRecord, _impl_.ymin_), - PROTOBUF_FIELD_OFFSET(::Odb::Lib::Protobuf::EdaDataFile_PackageRecord, _impl_.xmax_), - PROTOBUF_FIELD_OFFSET(::Odb::Lib::Protobuf::EdaDataFile_PackageRecord, _impl_.ymax_), - PROTOBUF_FIELD_OFFSET(::Odb::Lib::Protobuf::EdaDataFile_PackageRecord, _impl_.attributesidstring_), - PROTOBUF_FIELD_OFFSET(::Odb::Lib::Protobuf::EdaDataFile_PackageRecord, _impl_.pinrecords_), - PROTOBUF_FIELD_OFFSET(::Odb::Lib::Protobuf::EdaDataFile_PackageRecord, _impl_.pinrecordsbyname_), - PROTOBUF_FIELD_OFFSET(::Odb::Lib::Protobuf::EdaDataFile_PackageRecord, _impl_.propertyrecords_), - PROTOBUF_FIELD_OFFSET(::Odb::Lib::Protobuf::EdaDataFile_PackageRecord, _impl_.outlinerecords_), - PROTOBUF_FIELD_OFFSET(::Odb::Lib::Protobuf::EdaDataFile_PackageRecord, _impl_.attributelookuptable_), - 0, - 2, - 3, - 4, - 5, - 6, - 1, - ~0u, - ~0u, - ~0u, - ~0u, - ~0u, - PROTOBUF_FIELD_OFFSET(::Odb::Lib::Protobuf::EdaDataFile_FeatureGroupRecord, _impl_._has_bits_), - PROTOBUF_FIELD_OFFSET(::Odb::Lib::Protobuf::EdaDataFile_FeatureGroupRecord, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - ~0u, // no _inlined_string_donated_ - PROTOBUF_FIELD_OFFSET(::Odb::Lib::Protobuf::EdaDataFile_FeatureGroupRecord, _impl_.type_), - PROTOBUF_FIELD_OFFSET(::Odb::Lib::Protobuf::EdaDataFile_FeatureGroupRecord, _impl_.propertyrecords_), - PROTOBUF_FIELD_OFFSET(::Odb::Lib::Protobuf::EdaDataFile_FeatureGroupRecord, _impl_.featureidrecords_), - 0, - ~0u, - ~0u, - PROTOBUF_FIELD_OFFSET(::Odb::Lib::Protobuf::EdaDataFile_NetRecordsByNameEntry_DoNotUse, _has_bits_), - PROTOBUF_FIELD_OFFSET(::Odb::Lib::Protobuf::EdaDataFile_NetRecordsByNameEntry_DoNotUse, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - ~0u, // no _inlined_string_donated_ - PROTOBUF_FIELD_OFFSET(::Odb::Lib::Protobuf::EdaDataFile_NetRecordsByNameEntry_DoNotUse, key_), - PROTOBUF_FIELD_OFFSET(::Odb::Lib::Protobuf::EdaDataFile_NetRecordsByNameEntry_DoNotUse, value_), - 0, - 1, - PROTOBUF_FIELD_OFFSET(::Odb::Lib::Protobuf::EdaDataFile_PackageRecordsByNameEntry_DoNotUse, _has_bits_), - PROTOBUF_FIELD_OFFSET(::Odb::Lib::Protobuf::EdaDataFile_PackageRecordsByNameEntry_DoNotUse, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - ~0u, // no _inlined_string_donated_ - PROTOBUF_FIELD_OFFSET(::Odb::Lib::Protobuf::EdaDataFile_PackageRecordsByNameEntry_DoNotUse, key_), - PROTOBUF_FIELD_OFFSET(::Odb::Lib::Protobuf::EdaDataFile_PackageRecordsByNameEntry_DoNotUse, value_), - 0, - 1, - PROTOBUF_FIELD_OFFSET(::Odb::Lib::Protobuf::EdaDataFile, _impl_._has_bits_), - PROTOBUF_FIELD_OFFSET(::Odb::Lib::Protobuf::EdaDataFile, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - ~0u, // no _inlined_string_donated_ - PROTOBUF_FIELD_OFFSET(::Odb::Lib::Protobuf::EdaDataFile, _impl_.path_), - PROTOBUF_FIELD_OFFSET(::Odb::Lib::Protobuf::EdaDataFile, _impl_.units_), - PROTOBUF_FIELD_OFFSET(::Odb::Lib::Protobuf::EdaDataFile, _impl_.source_), - PROTOBUF_FIELD_OFFSET(::Odb::Lib::Protobuf::EdaDataFile, _impl_.layernames_), - PROTOBUF_FIELD_OFFSET(::Odb::Lib::Protobuf::EdaDataFile, _impl_.attributenames_), - PROTOBUF_FIELD_OFFSET(::Odb::Lib::Protobuf::EdaDataFile, _impl_.attributetextvalues_), - PROTOBUF_FIELD_OFFSET(::Odb::Lib::Protobuf::EdaDataFile, _impl_.netrecords_), - PROTOBUF_FIELD_OFFSET(::Odb::Lib::Protobuf::EdaDataFile, _impl_.netrecordsbyname_), - PROTOBUF_FIELD_OFFSET(::Odb::Lib::Protobuf::EdaDataFile, _impl_.packagerecords_), - PROTOBUF_FIELD_OFFSET(::Odb::Lib::Protobuf::EdaDataFile, _impl_.packagerecordsbyname_), - PROTOBUF_FIELD_OFFSET(::Odb::Lib::Protobuf::EdaDataFile, _impl_.propertyrecords_), - PROTOBUF_FIELD_OFFSET(::Odb::Lib::Protobuf::EdaDataFile, _impl_.featuregrouprecords_), - 0, - 1, - 2, - ~0u, - ~0u, - ~0u, - ~0u, - ~0u, - ~0u, - ~0u, - ~0u, - ~0u, -}; -static const ::_pbi::MigrationSchema schemas[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = { - { 0, 9, -1, sizeof(::Odb::Lib::Protobuf::EdaDataFile_FeatureIdRecord)}, - { 12, 27, -1, sizeof(::Odb::Lib::Protobuf::EdaDataFile_NetRecord_SubnetRecord)}, - { 36, 44, -1, sizeof(::Odb::Lib::Protobuf::EdaDataFile_NetRecord_AttributeLookupTableEntry_DoNotUse)}, - { 46, 58, -1, sizeof(::Odb::Lib::Protobuf::EdaDataFile_NetRecord)}, - { 64, 72, -1, sizeof(::Odb::Lib::Protobuf::EdaDataFile_PackageRecord_PinRecordsByNameEntry_DoNotUse)}, - { 74, 82, -1, sizeof(::Odb::Lib::Protobuf::EdaDataFile_PackageRecord_AttributeLookupTableEntry_DoNotUse)}, - { 84, 100, -1, sizeof(::Odb::Lib::Protobuf::EdaDataFile_PackageRecord_OutlineRecord)}, - { 110, 125, -1, sizeof(::Odb::Lib::Protobuf::EdaDataFile_PackageRecord_PinRecord)}, - { 134, 152, -1, sizeof(::Odb::Lib::Protobuf::EdaDataFile_PackageRecord)}, - { 164, 173, -1, sizeof(::Odb::Lib::Protobuf::EdaDataFile_FeatureGroupRecord)}, - { 176, 184, -1, sizeof(::Odb::Lib::Protobuf::EdaDataFile_NetRecordsByNameEntry_DoNotUse)}, - { 186, 194, -1, sizeof(::Odb::Lib::Protobuf::EdaDataFile_PackageRecordsByNameEntry_DoNotUse)}, - { 196, 214, -1, sizeof(::Odb::Lib::Protobuf::EdaDataFile)}, +static constexpr const ::_pb::ServiceDescriptor** + file_level_service_descriptors_edadatafile_2eproto = nullptr; +const ::uint32_t + TableStruct_edadatafile_2eproto::offsets[] ABSL_ATTRIBUTE_SECTION_VARIABLE( + protodesc_cold) = { + PROTOBUF_FIELD_OFFSET(::Odb::Lib::Protobuf::EdaDataFile_FeatureIdRecord, _impl_._has_bits_), + PROTOBUF_FIELD_OFFSET(::Odb::Lib::Protobuf::EdaDataFile_FeatureIdRecord, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + ~0u, // no _split_ + ~0u, // no sizeof(Split) + PROTOBUF_FIELD_OFFSET(::Odb::Lib::Protobuf::EdaDataFile_FeatureIdRecord, _impl_.type_), + PROTOBUF_FIELD_OFFSET(::Odb::Lib::Protobuf::EdaDataFile_FeatureIdRecord, _impl_.layernumber_), + PROTOBUF_FIELD_OFFSET(::Odb::Lib::Protobuf::EdaDataFile_FeatureIdRecord, _impl_.featurenumber_), + 0, + 1, + 2, + PROTOBUF_FIELD_OFFSET(::Odb::Lib::Protobuf::EdaDataFile_NetRecord_SubnetRecord, _impl_._has_bits_), + PROTOBUF_FIELD_OFFSET(::Odb::Lib::Protobuf::EdaDataFile_NetRecord_SubnetRecord, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + ~0u, // no _split_ + ~0u, // no sizeof(Split) + PROTOBUF_FIELD_OFFSET(::Odb::Lib::Protobuf::EdaDataFile_NetRecord_SubnetRecord, _impl_.type_), + PROTOBUF_FIELD_OFFSET(::Odb::Lib::Protobuf::EdaDataFile_NetRecord_SubnetRecord, _impl_.featureidrecords_), + PROTOBUF_FIELD_OFFSET(::Odb::Lib::Protobuf::EdaDataFile_NetRecord_SubnetRecord, _impl_.filltype_), + PROTOBUF_FIELD_OFFSET(::Odb::Lib::Protobuf::EdaDataFile_NetRecord_SubnetRecord, _impl_.cutouttype_), + PROTOBUF_FIELD_OFFSET(::Odb::Lib::Protobuf::EdaDataFile_NetRecord_SubnetRecord, _impl_.fillsize_), + PROTOBUF_FIELD_OFFSET(::Odb::Lib::Protobuf::EdaDataFile_NetRecord_SubnetRecord, _impl_.side_), + PROTOBUF_FIELD_OFFSET(::Odb::Lib::Protobuf::EdaDataFile_NetRecord_SubnetRecord, _impl_.componentnumber_), + PROTOBUF_FIELD_OFFSET(::Odb::Lib::Protobuf::EdaDataFile_NetRecord_SubnetRecord, _impl_.toeprintnumber_), + PROTOBUF_FIELD_OFFSET(::Odb::Lib::Protobuf::EdaDataFile_NetRecord_SubnetRecord, _impl_.index_), + 0, + ~0u, + 1, + 2, + 3, + 4, + 5, + 6, + 7, + PROTOBUF_FIELD_OFFSET(::Odb::Lib::Protobuf::EdaDataFile_NetRecord_AttributeLookupTableEntry_DoNotUse, _impl_._has_bits_), + PROTOBUF_FIELD_OFFSET(::Odb::Lib::Protobuf::EdaDataFile_NetRecord_AttributeLookupTableEntry_DoNotUse, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + ~0u, // no _split_ + ~0u, // no sizeof(Split) + PROTOBUF_FIELD_OFFSET(::Odb::Lib::Protobuf::EdaDataFile_NetRecord_AttributeLookupTableEntry_DoNotUse, _impl_.key_), + PROTOBUF_FIELD_OFFSET(::Odb::Lib::Protobuf::EdaDataFile_NetRecord_AttributeLookupTableEntry_DoNotUse, _impl_.value_), + 0, + 1, + PROTOBUF_FIELD_OFFSET(::Odb::Lib::Protobuf::EdaDataFile_NetRecord, _impl_._has_bits_), + PROTOBUF_FIELD_OFFSET(::Odb::Lib::Protobuf::EdaDataFile_NetRecord, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + ~0u, // no _split_ + ~0u, // no sizeof(Split) + PROTOBUF_FIELD_OFFSET(::Odb::Lib::Protobuf::EdaDataFile_NetRecord, _impl_.name_), + PROTOBUF_FIELD_OFFSET(::Odb::Lib::Protobuf::EdaDataFile_NetRecord, _impl_.attributesidstring_), + PROTOBUF_FIELD_OFFSET(::Odb::Lib::Protobuf::EdaDataFile_NetRecord, _impl_.index_), + PROTOBUF_FIELD_OFFSET(::Odb::Lib::Protobuf::EdaDataFile_NetRecord, _impl_.subnetrecords_), + PROTOBUF_FIELD_OFFSET(::Odb::Lib::Protobuf::EdaDataFile_NetRecord, _impl_.propertyrecords_), + PROTOBUF_FIELD_OFFSET(::Odb::Lib::Protobuf::EdaDataFile_NetRecord, _impl_.attributelookuptable_), + 0, + 1, + 2, + ~0u, + ~0u, + ~0u, + PROTOBUF_FIELD_OFFSET(::Odb::Lib::Protobuf::EdaDataFile_PackageRecord_PinRecordsByNameEntry_DoNotUse, _impl_._has_bits_), + PROTOBUF_FIELD_OFFSET(::Odb::Lib::Protobuf::EdaDataFile_PackageRecord_PinRecordsByNameEntry_DoNotUse, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + ~0u, // no _split_ + ~0u, // no sizeof(Split) + PROTOBUF_FIELD_OFFSET(::Odb::Lib::Protobuf::EdaDataFile_PackageRecord_PinRecordsByNameEntry_DoNotUse, _impl_.key_), + PROTOBUF_FIELD_OFFSET(::Odb::Lib::Protobuf::EdaDataFile_PackageRecord_PinRecordsByNameEntry_DoNotUse, _impl_.value_), + 0, + 1, + PROTOBUF_FIELD_OFFSET(::Odb::Lib::Protobuf::EdaDataFile_PackageRecord_AttributeLookupTableEntry_DoNotUse, _impl_._has_bits_), + PROTOBUF_FIELD_OFFSET(::Odb::Lib::Protobuf::EdaDataFile_PackageRecord_AttributeLookupTableEntry_DoNotUse, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + ~0u, // no _split_ + ~0u, // no sizeof(Split) + PROTOBUF_FIELD_OFFSET(::Odb::Lib::Protobuf::EdaDataFile_PackageRecord_AttributeLookupTableEntry_DoNotUse, _impl_.key_), + PROTOBUF_FIELD_OFFSET(::Odb::Lib::Protobuf::EdaDataFile_PackageRecord_AttributeLookupTableEntry_DoNotUse, _impl_.value_), + 0, + 1, + PROTOBUF_FIELD_OFFSET(::Odb::Lib::Protobuf::EdaDataFile_PackageRecord_OutlineRecord, _impl_._has_bits_), + PROTOBUF_FIELD_OFFSET(::Odb::Lib::Protobuf::EdaDataFile_PackageRecord_OutlineRecord, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + ~0u, // no _split_ + ~0u, // no sizeof(Split) + PROTOBUF_FIELD_OFFSET(::Odb::Lib::Protobuf::EdaDataFile_PackageRecord_OutlineRecord, _impl_.type_), + PROTOBUF_FIELD_OFFSET(::Odb::Lib::Protobuf::EdaDataFile_PackageRecord_OutlineRecord, _impl_.lowerleftx_), + PROTOBUF_FIELD_OFFSET(::Odb::Lib::Protobuf::EdaDataFile_PackageRecord_OutlineRecord, _impl_.lowerlefty_), + PROTOBUF_FIELD_OFFSET(::Odb::Lib::Protobuf::EdaDataFile_PackageRecord_OutlineRecord, _impl_.width_), + PROTOBUF_FIELD_OFFSET(::Odb::Lib::Protobuf::EdaDataFile_PackageRecord_OutlineRecord, _impl_.height_), + PROTOBUF_FIELD_OFFSET(::Odb::Lib::Protobuf::EdaDataFile_PackageRecord_OutlineRecord, _impl_.xcenter_), + PROTOBUF_FIELD_OFFSET(::Odb::Lib::Protobuf::EdaDataFile_PackageRecord_OutlineRecord, _impl_.ycenter_), + PROTOBUF_FIELD_OFFSET(::Odb::Lib::Protobuf::EdaDataFile_PackageRecord_OutlineRecord, _impl_.halfside_), + PROTOBUF_FIELD_OFFSET(::Odb::Lib::Protobuf::EdaDataFile_PackageRecord_OutlineRecord, _impl_.radius_), + PROTOBUF_FIELD_OFFSET(::Odb::Lib::Protobuf::EdaDataFile_PackageRecord_OutlineRecord, _impl_.contourpolygons_), + 0, + 1, + 2, + 3, + 4, + 5, + 6, + 7, + 8, + ~0u, + PROTOBUF_FIELD_OFFSET(::Odb::Lib::Protobuf::EdaDataFile_PackageRecord_PinRecord, _impl_._has_bits_), + PROTOBUF_FIELD_OFFSET(::Odb::Lib::Protobuf::EdaDataFile_PackageRecord_PinRecord, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + ~0u, // no _split_ + ~0u, // no sizeof(Split) + PROTOBUF_FIELD_OFFSET(::Odb::Lib::Protobuf::EdaDataFile_PackageRecord_PinRecord, _impl_.name_), + PROTOBUF_FIELD_OFFSET(::Odb::Lib::Protobuf::EdaDataFile_PackageRecord_PinRecord, _impl_.type_), + PROTOBUF_FIELD_OFFSET(::Odb::Lib::Protobuf::EdaDataFile_PackageRecord_PinRecord, _impl_.xcenter_), + PROTOBUF_FIELD_OFFSET(::Odb::Lib::Protobuf::EdaDataFile_PackageRecord_PinRecord, _impl_.ycenter_), + PROTOBUF_FIELD_OFFSET(::Odb::Lib::Protobuf::EdaDataFile_PackageRecord_PinRecord, _impl_.finishedholesize_), + PROTOBUF_FIELD_OFFSET(::Odb::Lib::Protobuf::EdaDataFile_PackageRecord_PinRecord, _impl_.electricaltype_), + PROTOBUF_FIELD_OFFSET(::Odb::Lib::Protobuf::EdaDataFile_PackageRecord_PinRecord, _impl_.mounttype_), + PROTOBUF_FIELD_OFFSET(::Odb::Lib::Protobuf::EdaDataFile_PackageRecord_PinRecord, _impl_.id_), + PROTOBUF_FIELD_OFFSET(::Odb::Lib::Protobuf::EdaDataFile_PackageRecord_PinRecord, _impl_.index_), + 0, + 1, + 2, + 3, + 4, + 5, + 6, + 7, + 8, + PROTOBUF_FIELD_OFFSET(::Odb::Lib::Protobuf::EdaDataFile_PackageRecord, _impl_._has_bits_), + PROTOBUF_FIELD_OFFSET(::Odb::Lib::Protobuf::EdaDataFile_PackageRecord, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + ~0u, // no _split_ + ~0u, // no sizeof(Split) + PROTOBUF_FIELD_OFFSET(::Odb::Lib::Protobuf::EdaDataFile_PackageRecord, _impl_.name_), + PROTOBUF_FIELD_OFFSET(::Odb::Lib::Protobuf::EdaDataFile_PackageRecord, _impl_.pitch_), + PROTOBUF_FIELD_OFFSET(::Odb::Lib::Protobuf::EdaDataFile_PackageRecord, _impl_.xmin_), + PROTOBUF_FIELD_OFFSET(::Odb::Lib::Protobuf::EdaDataFile_PackageRecord, _impl_.ymin_), + PROTOBUF_FIELD_OFFSET(::Odb::Lib::Protobuf::EdaDataFile_PackageRecord, _impl_.xmax_), + PROTOBUF_FIELD_OFFSET(::Odb::Lib::Protobuf::EdaDataFile_PackageRecord, _impl_.ymax_), + PROTOBUF_FIELD_OFFSET(::Odb::Lib::Protobuf::EdaDataFile_PackageRecord, _impl_.attributesidstring_), + PROTOBUF_FIELD_OFFSET(::Odb::Lib::Protobuf::EdaDataFile_PackageRecord, _impl_.pinrecords_), + PROTOBUF_FIELD_OFFSET(::Odb::Lib::Protobuf::EdaDataFile_PackageRecord, _impl_.pinrecordsbyname_), + PROTOBUF_FIELD_OFFSET(::Odb::Lib::Protobuf::EdaDataFile_PackageRecord, _impl_.propertyrecords_), + PROTOBUF_FIELD_OFFSET(::Odb::Lib::Protobuf::EdaDataFile_PackageRecord, _impl_.outlinerecords_), + PROTOBUF_FIELD_OFFSET(::Odb::Lib::Protobuf::EdaDataFile_PackageRecord, _impl_.attributelookuptable_), + 0, + 2, + 3, + 4, + 5, + 6, + 1, + ~0u, + ~0u, + ~0u, + ~0u, + ~0u, + PROTOBUF_FIELD_OFFSET(::Odb::Lib::Protobuf::EdaDataFile_FeatureGroupRecord, _impl_._has_bits_), + PROTOBUF_FIELD_OFFSET(::Odb::Lib::Protobuf::EdaDataFile_FeatureGroupRecord, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + ~0u, // no _split_ + ~0u, // no sizeof(Split) + PROTOBUF_FIELD_OFFSET(::Odb::Lib::Protobuf::EdaDataFile_FeatureGroupRecord, _impl_.type_), + PROTOBUF_FIELD_OFFSET(::Odb::Lib::Protobuf::EdaDataFile_FeatureGroupRecord, _impl_.propertyrecords_), + PROTOBUF_FIELD_OFFSET(::Odb::Lib::Protobuf::EdaDataFile_FeatureGroupRecord, _impl_.featureidrecords_), + 0, + ~0u, + ~0u, + PROTOBUF_FIELD_OFFSET(::Odb::Lib::Protobuf::EdaDataFile_NetRecordsByNameEntry_DoNotUse, _impl_._has_bits_), + PROTOBUF_FIELD_OFFSET(::Odb::Lib::Protobuf::EdaDataFile_NetRecordsByNameEntry_DoNotUse, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + ~0u, // no _split_ + ~0u, // no sizeof(Split) + PROTOBUF_FIELD_OFFSET(::Odb::Lib::Protobuf::EdaDataFile_NetRecordsByNameEntry_DoNotUse, _impl_.key_), + PROTOBUF_FIELD_OFFSET(::Odb::Lib::Protobuf::EdaDataFile_NetRecordsByNameEntry_DoNotUse, _impl_.value_), + 0, + 1, + PROTOBUF_FIELD_OFFSET(::Odb::Lib::Protobuf::EdaDataFile_PackageRecordsByNameEntry_DoNotUse, _impl_._has_bits_), + PROTOBUF_FIELD_OFFSET(::Odb::Lib::Protobuf::EdaDataFile_PackageRecordsByNameEntry_DoNotUse, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + ~0u, // no _split_ + ~0u, // no sizeof(Split) + PROTOBUF_FIELD_OFFSET(::Odb::Lib::Protobuf::EdaDataFile_PackageRecordsByNameEntry_DoNotUse, _impl_.key_), + PROTOBUF_FIELD_OFFSET(::Odb::Lib::Protobuf::EdaDataFile_PackageRecordsByNameEntry_DoNotUse, _impl_.value_), + 0, + 1, + PROTOBUF_FIELD_OFFSET(::Odb::Lib::Protobuf::EdaDataFile, _impl_._has_bits_), + PROTOBUF_FIELD_OFFSET(::Odb::Lib::Protobuf::EdaDataFile, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + ~0u, // no _split_ + ~0u, // no sizeof(Split) + PROTOBUF_FIELD_OFFSET(::Odb::Lib::Protobuf::EdaDataFile, _impl_.path_), + PROTOBUF_FIELD_OFFSET(::Odb::Lib::Protobuf::EdaDataFile, _impl_.units_), + PROTOBUF_FIELD_OFFSET(::Odb::Lib::Protobuf::EdaDataFile, _impl_.source_), + PROTOBUF_FIELD_OFFSET(::Odb::Lib::Protobuf::EdaDataFile, _impl_.layernames_), + PROTOBUF_FIELD_OFFSET(::Odb::Lib::Protobuf::EdaDataFile, _impl_.attributenames_), + PROTOBUF_FIELD_OFFSET(::Odb::Lib::Protobuf::EdaDataFile, _impl_.attributetextvalues_), + PROTOBUF_FIELD_OFFSET(::Odb::Lib::Protobuf::EdaDataFile, _impl_.netrecords_), + PROTOBUF_FIELD_OFFSET(::Odb::Lib::Protobuf::EdaDataFile, _impl_.netrecordsbyname_), + PROTOBUF_FIELD_OFFSET(::Odb::Lib::Protobuf::EdaDataFile, _impl_.packagerecords_), + PROTOBUF_FIELD_OFFSET(::Odb::Lib::Protobuf::EdaDataFile, _impl_.packagerecordsbyname_), + PROTOBUF_FIELD_OFFSET(::Odb::Lib::Protobuf::EdaDataFile, _impl_.propertyrecords_), + PROTOBUF_FIELD_OFFSET(::Odb::Lib::Protobuf::EdaDataFile, _impl_.featuregrouprecords_), + 0, + 1, + 2, + ~0u, + ~0u, + ~0u, + ~0u, + ~0u, + ~0u, + ~0u, + ~0u, + ~0u, }; +static const ::_pbi::MigrationSchema + schemas[] ABSL_ATTRIBUTE_SECTION_VARIABLE(protodesc_cold) = { + {0, 11, -1, sizeof(::Odb::Lib::Protobuf::EdaDataFile_FeatureIdRecord)}, + {14, 31, -1, sizeof(::Odb::Lib::Protobuf::EdaDataFile_NetRecord_SubnetRecord)}, + {40, 50, -1, sizeof(::Odb::Lib::Protobuf::EdaDataFile_NetRecord_AttributeLookupTableEntry_DoNotUse)}, + {52, 66, -1, sizeof(::Odb::Lib::Protobuf::EdaDataFile_NetRecord)}, + {72, 82, -1, sizeof(::Odb::Lib::Protobuf::EdaDataFile_PackageRecord_PinRecordsByNameEntry_DoNotUse)}, + {84, 94, -1, sizeof(::Odb::Lib::Protobuf::EdaDataFile_PackageRecord_AttributeLookupTableEntry_DoNotUse)}, + {96, 114, -1, sizeof(::Odb::Lib::Protobuf::EdaDataFile_PackageRecord_OutlineRecord)}, + {124, 141, -1, sizeof(::Odb::Lib::Protobuf::EdaDataFile_PackageRecord_PinRecord)}, + {150, 170, -1, sizeof(::Odb::Lib::Protobuf::EdaDataFile_PackageRecord)}, + {182, 193, -1, sizeof(::Odb::Lib::Protobuf::EdaDataFile_FeatureGroupRecord)}, + {196, 206, -1, sizeof(::Odb::Lib::Protobuf::EdaDataFile_NetRecordsByNameEntry_DoNotUse)}, + {208, 218, -1, sizeof(::Odb::Lib::Protobuf::EdaDataFile_PackageRecordsByNameEntry_DoNotUse)}, + {220, 240, -1, sizeof(::Odb::Lib::Protobuf::EdaDataFile)}, +}; static const ::_pb::Message* const file_default_instances[] = { - &::Odb::Lib::Protobuf::_EdaDataFile_FeatureIdRecord_default_instance_._instance, - &::Odb::Lib::Protobuf::_EdaDataFile_NetRecord_SubnetRecord_default_instance_._instance, - &::Odb::Lib::Protobuf::_EdaDataFile_NetRecord_AttributeLookupTableEntry_DoNotUse_default_instance_._instance, - &::Odb::Lib::Protobuf::_EdaDataFile_NetRecord_default_instance_._instance, - &::Odb::Lib::Protobuf::_EdaDataFile_PackageRecord_PinRecordsByNameEntry_DoNotUse_default_instance_._instance, - &::Odb::Lib::Protobuf::_EdaDataFile_PackageRecord_AttributeLookupTableEntry_DoNotUse_default_instance_._instance, - &::Odb::Lib::Protobuf::_EdaDataFile_PackageRecord_OutlineRecord_default_instance_._instance, - &::Odb::Lib::Protobuf::_EdaDataFile_PackageRecord_PinRecord_default_instance_._instance, - &::Odb::Lib::Protobuf::_EdaDataFile_PackageRecord_default_instance_._instance, - &::Odb::Lib::Protobuf::_EdaDataFile_FeatureGroupRecord_default_instance_._instance, - &::Odb::Lib::Protobuf::_EdaDataFile_NetRecordsByNameEntry_DoNotUse_default_instance_._instance, - &::Odb::Lib::Protobuf::_EdaDataFile_PackageRecordsByNameEntry_DoNotUse_default_instance_._instance, - &::Odb::Lib::Protobuf::_EdaDataFile_default_instance_._instance, + &::Odb::Lib::Protobuf::_EdaDataFile_FeatureIdRecord_default_instance_._instance, + &::Odb::Lib::Protobuf::_EdaDataFile_NetRecord_SubnetRecord_default_instance_._instance, + &::Odb::Lib::Protobuf::_EdaDataFile_NetRecord_AttributeLookupTableEntry_DoNotUse_default_instance_._instance, + &::Odb::Lib::Protobuf::_EdaDataFile_NetRecord_default_instance_._instance, + &::Odb::Lib::Protobuf::_EdaDataFile_PackageRecord_PinRecordsByNameEntry_DoNotUse_default_instance_._instance, + &::Odb::Lib::Protobuf::_EdaDataFile_PackageRecord_AttributeLookupTableEntry_DoNotUse_default_instance_._instance, + &::Odb::Lib::Protobuf::_EdaDataFile_PackageRecord_OutlineRecord_default_instance_._instance, + &::Odb::Lib::Protobuf::_EdaDataFile_PackageRecord_PinRecord_default_instance_._instance, + &::Odb::Lib::Protobuf::_EdaDataFile_PackageRecord_default_instance_._instance, + &::Odb::Lib::Protobuf::_EdaDataFile_FeatureGroupRecord_default_instance_._instance, + &::Odb::Lib::Protobuf::_EdaDataFile_NetRecordsByNameEntry_DoNotUse_default_instance_._instance, + &::Odb::Lib::Protobuf::_EdaDataFile_PackageRecordsByNameEntry_DoNotUse_default_instance_._instance, + &::Odb::Lib::Protobuf::_EdaDataFile_default_instance_._instance, }; - -const char descriptor_table_protodef_edadatafile_2eproto[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = - "\n\021edadatafile.proto\022\020Odb.Lib.Protobuf\032\014c" - "ommon.proto\032\013enums.proto\"\266#\n\013EdaDataFile" - "\022\021\n\004path\030\001 \001(\tH\000\210\001\001\022\022\n\005units\030\002 \001(\tH\001\210\001\001\022" - "\023\n\006source\030\003 \001(\tH\002\210\001\001\022\022\n\nlayerNames\030\004 \003(\t" - "\022\026\n\016attributeNames\030\005 \003(\t\022\033\n\023attributeTex" - "tValues\030\006 \003(\t\022;\n\nnetRecords\030\007 \003(\0132\'.Odb." - "Lib.Protobuf.EdaDataFile.NetRecord\022M\n\020ne" - "tRecordsByName\030\010 \003(\01323.Odb.Lib.Protobuf." - "EdaDataFile.NetRecordsByNameEntry\022C\n\016pac" - "kageRecords\030\t \003(\0132+.Odb.Lib.Protobuf.Eda" - "DataFile.PackageRecord\022U\n\024packageRecords" - "ByName\030\n \003(\01327.Odb.Lib.Protobuf.EdaDataF" - "ile.PackageRecordsByNameEntry\0229\n\017propert" - "yRecords\030\013 \003(\0132 .Odb.Lib.Protobuf.Proper" - "tyRecord\022M\n\023featureGroupRecords\030\014 \003(\01320." - "Odb.Lib.Protobuf.EdaDataFile.FeatureGrou" - "pRecord\032\345\001\n\017FeatureIdRecord\022E\n\004type\030\001 \001(" - "\01622.Odb.Lib.Protobuf.EdaDataFile.Feature" - "IdRecord.TypeH\000\210\001\001\022\030\n\013layerNumber\030\002 \001(\rH" - "\001\210\001\001\022\032\n\rfeatureNumber\030\003 \001(\rH\002\210\001\001\"*\n\004Type" - "\022\n\n\006COPPER\020\000\022\014\n\010LAMINATE\020\001\022\010\n\004HOLE\020\002B\007\n\005" - "_typeB\016\n\014_layerNumberB\020\n\016_featureNumber\032" - "\227\t\n\tNetRecord\022\021\n\004name\030\001 \001(\tH\000\210\001\001\022\037\n\022attr" - "ibutesIdString\030\002 \001(\tH\001\210\001\001\022\022\n\005index\030\003 \001(\r" - "H\002\210\001\001\022K\n\rsubnetRecords\030\004 \003(\01324.Odb.Lib.P" - "rotobuf.EdaDataFile.NetRecord.SubnetReco" - "rd\0229\n\017propertyRecords\030\005 \003(\0132 .Odb.Lib.Pr" - "otobuf.PropertyRecord\022_\n\024attributeLookup" - "Table\030\006 \003(\0132A.Odb.Lib.Protobuf.EdaDataFi" - "le.NetRecord.AttributeLookupTableEntry\032\361" - "\005\n\014SubnetRecord\022L\n\004type\030\001 \001(\01629.Odb.Lib." - "Protobuf.EdaDataFile.NetRecord.SubnetRec" - "ord.TypeH\000\210\001\001\022G\n\020featureIdRecords\030\002 \003(\0132" - "-.Odb.Lib.Protobuf.EdaDataFile.FeatureId" - "Record\022T\n\010fillType\030\003 \001(\0162=.Odb.Lib.Proto" - "buf.EdaDataFile.NetRecord.SubnetRecord.F" - "illTypeH\001\210\001\001\022X\n\ncutoutType\030\004 \001(\0162\?.Odb.L" - "ib.Protobuf.EdaDataFile.NetRecord.Subnet" - "Record.CutoutTypeH\002\210\001\001\022\025\n\010fillSize\030\005 \001(\002" - "H\003\210\001\001\022.\n\004side\030\006 \001(\0162\033.Odb.Lib.Protobuf.B" - "oardSideH\004\210\001\001\022\034\n\017componentNumber\030\007 \001(\rH\005" - "\210\001\001\022\033\n\016toeprintNumber\030\010 \001(\rH\006\210\001\001\022\022\n\005inde" - "x\030\t \001(\rH\007\210\001\001\"3\n\004Type\022\007\n\003VIA\020\000\022\t\n\005TRACE\020\001" - "\022\t\n\005PLANE\020\002\022\014\n\010TOEPRINT\020\003\"\"\n\010FillType\022\t\n" - "\005SOLID\020\000\022\013\n\007OUTLINE\020\001\"\?\n\nCutoutType\022\n\n\006C" - "IRCLE\020\000\022\r\n\tRECTANGLE\020\001\022\013\n\007OCTAGON\020\002\022\t\n\005E" - "XACT\020\003B\007\n\005_typeB\013\n\t_fillTypeB\r\n\013_cutoutT" - "ypeB\013\n\t_fillSizeB\007\n\005_sideB\022\n\020_componentN" - "umberB\021\n\017_toeprintNumberB\010\n\006_index\032;\n\031At" - "tributeLookupTableEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005" - "value\030\002 \001(\t:\0028\001B\007\n\005_nameB\025\n\023_attributesI" - "dStringB\010\n\006_index\032\314\020\n\rPackageRecord\022\021\n\004n" - "ame\030\001 \001(\tH\000\210\001\001\022\022\n\005pitch\030\002 \001(\002H\001\210\001\001\022\021\n\004xM" - "in\030\003 \001(\002H\002\210\001\001\022\021\n\004yMin\030\004 \001(\002H\003\210\001\001\022\021\n\004xMax" - "\030\005 \001(\002H\004\210\001\001\022\021\n\004yMax\030\006 \001(\002H\005\210\001\001\022\037\n\022attrib" - "utesIdString\030\007 \001(\tH\006\210\001\001\022I\n\npinRecords\030\010 " - "\003(\01325.Odb.Lib.Protobuf.EdaDataFile.Packa" - "geRecord.PinRecord\022[\n\020pinRecordsByName\030\t" - " \003(\0132A.Odb.Lib.Protobuf.EdaDataFile.Pack" - "ageRecord.PinRecordsByNameEntry\0229\n\017prope" - "rtyRecords\030\n \003(\0132 .Odb.Lib.Protobuf.Prop" - "ertyRecord\022Q\n\016outlineRecords\030\013 \003(\01329.Odb" - ".Lib.Protobuf.EdaDataFile.PackageRecord." - "OutlineRecord\022c\n\024attributeLookupTable\030\014 " - "\003(\0132E.Odb.Lib.Protobuf.EdaDataFile.Packa" - "geRecord.AttributeLookupTableEntry\032n\n\025Pi" - "nRecordsByNameEntry\022\013\n\003key\030\001 \001(\t\022D\n\005valu" - "e\030\002 \001(\01325.Odb.Lib.Protobuf.EdaDataFile.P" - "ackageRecord.PinRecord:\0028\001\032;\n\031AttributeL" - "ookupTableEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 " - "\001(\t:\0028\001\032\370\003\n\rOutlineRecord\022Q\n\004type\030\001 \001(\0162" - ">.Odb.Lib.Protobuf.EdaDataFile.PackageRe" - "cord.OutlineRecord.TypeH\000\210\001\001\022\027\n\nlowerLef" - "tX\030\002 \001(\002H\001\210\001\001\022\027\n\nlowerLeftY\030\003 \001(\002H\002\210\001\001\022\022" - "\n\005width\030\004 \001(\002H\003\210\001\001\022\023\n\006height\030\005 \001(\002H\004\210\001\001\022" - "\024\n\007xCenter\030\006 \001(\002H\005\210\001\001\022\024\n\007yCenter\030\007 \001(\002H\006" - "\210\001\001\022\025\n\010halfSide\030\010 \001(\002H\007\210\001\001\022\023\n\006radius\030\t \001" - "(\002H\010\210\001\001\0229\n\017contourPolygons\030\n \003(\0132 .Odb.L" - "ib.Protobuf.ContourPolygon\":\n\004Type\022\r\n\tRe" - "ctangle\020\000\022\n\n\006Circle\020\001\022\n\n\006Square\020\002\022\013\n\007Con" - "tour\020\003B\007\n\005_typeB\r\n\013_lowerLeftXB\r\n\013_lower" - "LeftYB\010\n\006_widthB\t\n\007_heightB\n\n\010_xCenterB\n" - "\n\010_yCenterB\013\n\t_halfSideB\t\n\007_radius\032\225\006\n\tP" - "inRecord\022\021\n\004name\030\001 \001(\tH\000\210\001\001\022M\n\004type\030\002 \001(" - "\0162:.Odb.Lib.Protobuf.EdaDataFile.Package" - "Record.PinRecord.TypeH\001\210\001\001\022\024\n\007xCenter\030\003 " - "\001(\002H\002\210\001\001\022\024\n\007yCenter\030\004 \001(\002H\003\210\001\001\022\035\n\020finish" - "edHoleSize\030\005 \001(\002H\004\210\001\001\022a\n\016electricalType\030" - "\006 \001(\0162D.Odb.Lib.Protobuf.EdaDataFile.Pac" - "kageRecord.PinRecord.ElectricalTypeH\005\210\001\001" - "\022W\n\tmountType\030\007 \001(\0162\?.Odb.Lib.Protobuf.E" - "daDataFile.PackageRecord.PinRecord.Mount" - "TypeH\006\210\001\001\022\017\n\002id\030\010 \001(\rH\007\210\001\001\022\022\n\005index\030\t \001(" - "\rH\010\210\001\001\"/\n\004Type\022\017\n\013ThroughHole\020\000\022\t\n\005Blind" - "\020\001\022\013\n\007Surface\020\002\"B\n\016ElectricalType\022\016\n\nEle" - "ctrical\020\000\022\021\n\rNonElectrical\020\001\022\r\n\tUndefine" - "d\020\002\"\223\001\n\tMountType\022\007\n\003Smt\020\000\022\025\n\021Recommende" - "dSmtPad\020\001\022\022\n\016MT_ThroughHole\020\002\022\032\n\026Recomme" - "ndedThroughHole\020\003\022\014\n\010PressFit\020\004\022\014\n\010NonBo" - "ard\020\005\022\010\n\004Hole\020\006\022\020\n\014MT_Undefined\020\007B\007\n\005_na" - "meB\007\n\005_typeB\n\n\010_xCenterB\n\n\010_yCenterB\023\n\021_" - "finishedHoleSizeB\021\n\017_electricalTypeB\014\n\n_" - "mountTypeB\005\n\003_idB\010\n\006_indexB\007\n\005_nameB\010\n\006_" - "pitchB\007\n\005_xMinB\007\n\005_yMinB\007\n\005_xMaxB\007\n\005_yMa" - "xB\025\n\023_attributesIdString\032\264\001\n\022FeatureGrou" - "pRecord\022\021\n\004type\030\001 \001(\tH\000\210\001\001\0229\n\017propertyRe" - "cords\030\002 \003(\0132 .Odb.Lib.Protobuf.PropertyR" - "ecord\022G\n\020featureIdRecords\030\003 \003(\0132-.Odb.Li" - "b.Protobuf.EdaDataFile.FeatureIdRecordB\007" - "\n\005_type\032`\n\025NetRecordsByNameEntry\022\013\n\003key\030" - "\001 \001(\t\0226\n\005value\030\002 \001(\0132\'.Odb.Lib.Protobuf." - "EdaDataFile.NetRecord:\0028\001\032h\n\031PackageReco" - "rdsByNameEntry\022\013\n\003key\030\001 \001(\t\022:\n\005value\030\002 \001" - "(\0132+.Odb.Lib.Protobuf.EdaDataFile.Packag" - "eRecord:\0028\001B\007\n\005_pathB\010\n\006_unitsB\t\n\007_sourc" - "eb\006proto3" - ; -static const ::_pbi::DescriptorTable* const descriptor_table_edadatafile_2eproto_deps[2] = { - &::descriptor_table_common_2eproto, - &::descriptor_table_enums_2eproto, +const char descriptor_table_protodef_edadatafile_2eproto[] ABSL_ATTRIBUTE_SECTION_VARIABLE( + protodesc_cold) = { + "\n\021edadatafile.proto\022\020Odb.Lib.Protobuf\032\014c" + "ommon.proto\032\013enums.proto\"\266#\n\013EdaDataFile" + "\022\021\n\004path\030\001 \001(\tH\000\210\001\001\022\022\n\005units\030\002 \001(\tH\001\210\001\001\022" + "\023\n\006source\030\003 \001(\tH\002\210\001\001\022\022\n\nlayerNames\030\004 \003(\t" + "\022\026\n\016attributeNames\030\005 \003(\t\022\033\n\023attributeTex" + "tValues\030\006 \003(\t\022;\n\nnetRecords\030\007 \003(\0132\'.Odb." + "Lib.Protobuf.EdaDataFile.NetRecord\022M\n\020ne" + "tRecordsByName\030\010 \003(\01323.Odb.Lib.Protobuf." + "EdaDataFile.NetRecordsByNameEntry\022C\n\016pac" + "kageRecords\030\t \003(\0132+.Odb.Lib.Protobuf.Eda" + "DataFile.PackageRecord\022U\n\024packageRecords" + "ByName\030\n \003(\01327.Odb.Lib.Protobuf.EdaDataF" + "ile.PackageRecordsByNameEntry\0229\n\017propert" + "yRecords\030\013 \003(\0132 .Odb.Lib.Protobuf.Proper" + "tyRecord\022M\n\023featureGroupRecords\030\014 \003(\01320." + "Odb.Lib.Protobuf.EdaDataFile.FeatureGrou" + "pRecord\032\345\001\n\017FeatureIdRecord\022E\n\004type\030\001 \001(" + "\01622.Odb.Lib.Protobuf.EdaDataFile.Feature" + "IdRecord.TypeH\000\210\001\001\022\030\n\013layerNumber\030\002 \001(\rH" + "\001\210\001\001\022\032\n\rfeatureNumber\030\003 \001(\rH\002\210\001\001\"*\n\004Type" + "\022\n\n\006COPPER\020\000\022\014\n\010LAMINATE\020\001\022\010\n\004HOLE\020\002B\007\n\005" + "_typeB\016\n\014_layerNumberB\020\n\016_featureNumber\032" + "\227\t\n\tNetRecord\022\021\n\004name\030\001 \001(\tH\000\210\001\001\022\037\n\022attr" + "ibutesIdString\030\002 \001(\tH\001\210\001\001\022\022\n\005index\030\003 \001(\r" + "H\002\210\001\001\022K\n\rsubnetRecords\030\004 \003(\01324.Odb.Lib.P" + "rotobuf.EdaDataFile.NetRecord.SubnetReco" + "rd\0229\n\017propertyRecords\030\005 \003(\0132 .Odb.Lib.Pr" + "otobuf.PropertyRecord\022_\n\024attributeLookup" + "Table\030\006 \003(\0132A.Odb.Lib.Protobuf.EdaDataFi" + "le.NetRecord.AttributeLookupTableEntry\032\361" + "\005\n\014SubnetRecord\022L\n\004type\030\001 \001(\01629.Odb.Lib." + "Protobuf.EdaDataFile.NetRecord.SubnetRec" + "ord.TypeH\000\210\001\001\022G\n\020featureIdRecords\030\002 \003(\0132" + "-.Odb.Lib.Protobuf.EdaDataFile.FeatureId" + "Record\022T\n\010fillType\030\003 \001(\0162=.Odb.Lib.Proto" + "buf.EdaDataFile.NetRecord.SubnetRecord.F" + "illTypeH\001\210\001\001\022X\n\ncutoutType\030\004 \001(\0162\?.Odb.L" + "ib.Protobuf.EdaDataFile.NetRecord.Subnet" + "Record.CutoutTypeH\002\210\001\001\022\025\n\010fillSize\030\005 \001(\002" + "H\003\210\001\001\022.\n\004side\030\006 \001(\0162\033.Odb.Lib.Protobuf.B" + "oardSideH\004\210\001\001\022\034\n\017componentNumber\030\007 \001(\rH\005" + "\210\001\001\022\033\n\016toeprintNumber\030\010 \001(\rH\006\210\001\001\022\022\n\005inde" + "x\030\t \001(\rH\007\210\001\001\"3\n\004Type\022\007\n\003VIA\020\000\022\t\n\005TRACE\020\001" + "\022\t\n\005PLANE\020\002\022\014\n\010TOEPRINT\020\003\"\"\n\010FillType\022\t\n" + "\005SOLID\020\000\022\013\n\007OUTLINE\020\001\"\?\n\nCutoutType\022\n\n\006C" + "IRCLE\020\000\022\r\n\tRECTANGLE\020\001\022\013\n\007OCTAGON\020\002\022\t\n\005E" + "XACT\020\003B\007\n\005_typeB\013\n\t_fillTypeB\r\n\013_cutoutT" + "ypeB\013\n\t_fillSizeB\007\n\005_sideB\022\n\020_componentN" + "umberB\021\n\017_toeprintNumberB\010\n\006_index\032;\n\031At" + "tributeLookupTableEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005" + "value\030\002 \001(\t:\0028\001B\007\n\005_nameB\025\n\023_attributesI" + "dStringB\010\n\006_index\032\314\020\n\rPackageRecord\022\021\n\004n" + "ame\030\001 \001(\tH\000\210\001\001\022\022\n\005pitch\030\002 \001(\002H\001\210\001\001\022\021\n\004xM" + "in\030\003 \001(\002H\002\210\001\001\022\021\n\004yMin\030\004 \001(\002H\003\210\001\001\022\021\n\004xMax" + "\030\005 \001(\002H\004\210\001\001\022\021\n\004yMax\030\006 \001(\002H\005\210\001\001\022\037\n\022attrib" + "utesIdString\030\007 \001(\tH\006\210\001\001\022I\n\npinRecords\030\010 " + "\003(\01325.Odb.Lib.Protobuf.EdaDataFile.Packa" + "geRecord.PinRecord\022[\n\020pinRecordsByName\030\t" + " \003(\0132A.Odb.Lib.Protobuf.EdaDataFile.Pack" + "ageRecord.PinRecordsByNameEntry\0229\n\017prope" + "rtyRecords\030\n \003(\0132 .Odb.Lib.Protobuf.Prop" + "ertyRecord\022Q\n\016outlineRecords\030\013 \003(\01329.Odb" + ".Lib.Protobuf.EdaDataFile.PackageRecord." + "OutlineRecord\022c\n\024attributeLookupTable\030\014 " + "\003(\0132E.Odb.Lib.Protobuf.EdaDataFile.Packa" + "geRecord.AttributeLookupTableEntry\032n\n\025Pi" + "nRecordsByNameEntry\022\013\n\003key\030\001 \001(\t\022D\n\005valu" + "e\030\002 \001(\01325.Odb.Lib.Protobuf.EdaDataFile.P" + "ackageRecord.PinRecord:\0028\001\032;\n\031AttributeL" + "ookupTableEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 " + "\001(\t:\0028\001\032\370\003\n\rOutlineRecord\022Q\n\004type\030\001 \001(\0162" + ">.Odb.Lib.Protobuf.EdaDataFile.PackageRe" + "cord.OutlineRecord.TypeH\000\210\001\001\022\027\n\nlowerLef" + "tX\030\002 \001(\002H\001\210\001\001\022\027\n\nlowerLeftY\030\003 \001(\002H\002\210\001\001\022\022" + "\n\005width\030\004 \001(\002H\003\210\001\001\022\023\n\006height\030\005 \001(\002H\004\210\001\001\022" + "\024\n\007xCenter\030\006 \001(\002H\005\210\001\001\022\024\n\007yCenter\030\007 \001(\002H\006" + "\210\001\001\022\025\n\010halfSide\030\010 \001(\002H\007\210\001\001\022\023\n\006radius\030\t \001" + "(\002H\010\210\001\001\0229\n\017contourPolygons\030\n \003(\0132 .Odb.L" + "ib.Protobuf.ContourPolygon\":\n\004Type\022\r\n\tRe" + "ctangle\020\000\022\n\n\006Circle\020\001\022\n\n\006Square\020\002\022\013\n\007Con" + "tour\020\003B\007\n\005_typeB\r\n\013_lowerLeftXB\r\n\013_lower" + "LeftYB\010\n\006_widthB\t\n\007_heightB\n\n\010_xCenterB\n" + "\n\010_yCenterB\013\n\t_halfSideB\t\n\007_radius\032\225\006\n\tP" + "inRecord\022\021\n\004name\030\001 \001(\tH\000\210\001\001\022M\n\004type\030\002 \001(" + "\0162:.Odb.Lib.Protobuf.EdaDataFile.Package" + "Record.PinRecord.TypeH\001\210\001\001\022\024\n\007xCenter\030\003 " + "\001(\002H\002\210\001\001\022\024\n\007yCenter\030\004 \001(\002H\003\210\001\001\022\035\n\020finish" + "edHoleSize\030\005 \001(\002H\004\210\001\001\022a\n\016electricalType\030" + "\006 \001(\0162D.Odb.Lib.Protobuf.EdaDataFile.Pac" + "kageRecord.PinRecord.ElectricalTypeH\005\210\001\001" + "\022W\n\tmountType\030\007 \001(\0162\?.Odb.Lib.Protobuf.E" + "daDataFile.PackageRecord.PinRecord.Mount" + "TypeH\006\210\001\001\022\017\n\002id\030\010 \001(\rH\007\210\001\001\022\022\n\005index\030\t \001(" + "\rH\010\210\001\001\"/\n\004Type\022\017\n\013ThroughHole\020\000\022\t\n\005Blind" + "\020\001\022\013\n\007Surface\020\002\"B\n\016ElectricalType\022\016\n\nEle" + "ctrical\020\000\022\021\n\rNonElectrical\020\001\022\r\n\tUndefine" + "d\020\002\"\223\001\n\tMountType\022\007\n\003Smt\020\000\022\025\n\021Recommende" + "dSmtPad\020\001\022\022\n\016MT_ThroughHole\020\002\022\032\n\026Recomme" + "ndedThroughHole\020\003\022\014\n\010PressFit\020\004\022\014\n\010NonBo" + "ard\020\005\022\010\n\004Hole\020\006\022\020\n\014MT_Undefined\020\007B\007\n\005_na" + "meB\007\n\005_typeB\n\n\010_xCenterB\n\n\010_yCenterB\023\n\021_" + "finishedHoleSizeB\021\n\017_electricalTypeB\014\n\n_" + "mountTypeB\005\n\003_idB\010\n\006_indexB\007\n\005_nameB\010\n\006_" + "pitchB\007\n\005_xMinB\007\n\005_yMinB\007\n\005_xMaxB\007\n\005_yMa" + "xB\025\n\023_attributesIdString\032\264\001\n\022FeatureGrou" + "pRecord\022\021\n\004type\030\001 \001(\tH\000\210\001\001\0229\n\017propertyRe" + "cords\030\002 \003(\0132 .Odb.Lib.Protobuf.PropertyR" + "ecord\022G\n\020featureIdRecords\030\003 \003(\0132-.Odb.Li" + "b.Protobuf.EdaDataFile.FeatureIdRecordB\007" + "\n\005_type\032`\n\025NetRecordsByNameEntry\022\013\n\003key\030" + "\001 \001(\t\0226\n\005value\030\002 \001(\0132\'.Odb.Lib.Protobuf." + "EdaDataFile.NetRecord:\0028\001\032h\n\031PackageReco" + "rdsByNameEntry\022\013\n\003key\030\001 \001(\t\022:\n\005value\030\002 \001" + "(\0132+.Odb.Lib.Protobuf.EdaDataFile.Packag" + "eRecord:\0028\001B\007\n\005_pathB\010\n\006_unitsB\t\n\007_sourc" + "eb\006proto3" +}; +static const ::_pbi::DescriptorTable* const descriptor_table_edadatafile_2eproto_deps[2] = + { + &::descriptor_table_common_2eproto, + &::descriptor_table_enums_2eproto, }; -static ::_pbi::once_flag descriptor_table_edadatafile_2eproto_once; -const ::_pbi::DescriptorTable descriptor_table_edadatafile_2eproto = { - false, false, 4609, descriptor_table_protodef_edadatafile_2eproto, +static ::absl::once_flag descriptor_table_edadatafile_2eproto_once; +PROTOBUF_CONSTINIT const ::_pbi::DescriptorTable descriptor_table_edadatafile_2eproto = { + false, + false, + 4609, + descriptor_table_protodef_edadatafile_2eproto, "edadatafile.proto", - &descriptor_table_edadatafile_2eproto_once, descriptor_table_edadatafile_2eproto_deps, 2, 13, - schemas, file_default_instances, TableStruct_edadatafile_2eproto::offsets, - file_level_metadata_edadatafile_2eproto, file_level_enum_descriptors_edadatafile_2eproto, + &descriptor_table_edadatafile_2eproto_once, + descriptor_table_edadatafile_2eproto_deps, + 2, + 13, + schemas, + file_default_instances, + TableStruct_edadatafile_2eproto::offsets, + file_level_enum_descriptors_edadatafile_2eproto, file_level_service_descriptors_edadatafile_2eproto, }; -PROTOBUF_ATTRIBUTE_WEAK const ::_pbi::DescriptorTable* descriptor_table_edadatafile_2eproto_getter() { - return &descriptor_table_edadatafile_2eproto; -} - -// Force running AddDescriptors() at dynamic initialization time. -PROTOBUF_ATTRIBUTE_INIT_PRIORITY2 static ::_pbi::AddDescriptorsRunner dynamic_init_dummy_edadatafile_2eproto(&descriptor_table_edadatafile_2eproto); namespace Odb { namespace Lib { namespace Protobuf { -const ::PROTOBUF_NAMESPACE_ID::EnumDescriptor* EdaDataFile_FeatureIdRecord_Type_descriptor() { - ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(&descriptor_table_edadatafile_2eproto); +const ::google::protobuf::EnumDescriptor* EdaDataFile_FeatureIdRecord_Type_descriptor() { + ::google::protobuf::internal::AssignDescriptors(&descriptor_table_edadatafile_2eproto); return file_level_enum_descriptors_edadatafile_2eproto[0]; } +PROTOBUF_CONSTINIT const uint32_t EdaDataFile_FeatureIdRecord_Type_internal_data_[] = { + 196608u, 0u, }; bool EdaDataFile_FeatureIdRecord_Type_IsValid(int value) { - switch (value) { - case 0: - case 1: - case 2: - return true; - default: - return false; - } + return 0 <= value && value <= 2; } +#if (__cplusplus < 201703) && \ + (!defined(_MSC_VER) || (_MSC_VER >= 1900 && _MSC_VER < 1912)) -#if (__cplusplus < 201703) && (!defined(_MSC_VER) || (_MSC_VER >= 1900 && _MSC_VER < 1912)) constexpr EdaDataFile_FeatureIdRecord_Type EdaDataFile_FeatureIdRecord::COPPER; constexpr EdaDataFile_FeatureIdRecord_Type EdaDataFile_FeatureIdRecord::LAMINATE; constexpr EdaDataFile_FeatureIdRecord_Type EdaDataFile_FeatureIdRecord::HOLE; constexpr EdaDataFile_FeatureIdRecord_Type EdaDataFile_FeatureIdRecord::Type_MIN; constexpr EdaDataFile_FeatureIdRecord_Type EdaDataFile_FeatureIdRecord::Type_MAX; constexpr int EdaDataFile_FeatureIdRecord::Type_ARRAYSIZE; -#endif // (__cplusplus < 201703) && (!defined(_MSC_VER) || (_MSC_VER >= 1900 && _MSC_VER < 1912)) -const ::PROTOBUF_NAMESPACE_ID::EnumDescriptor* EdaDataFile_NetRecord_SubnetRecord_Type_descriptor() { - ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(&descriptor_table_edadatafile_2eproto); + +#endif // (__cplusplus < 201703) && + // (!defined(_MSC_VER) || (_MSC_VER >= 1900 && _MSC_VER < 1912)) +const ::google::protobuf::EnumDescriptor* EdaDataFile_NetRecord_SubnetRecord_Type_descriptor() { + ::google::protobuf::internal::AssignDescriptors(&descriptor_table_edadatafile_2eproto); return file_level_enum_descriptors_edadatafile_2eproto[1]; } +PROTOBUF_CONSTINIT const uint32_t EdaDataFile_NetRecord_SubnetRecord_Type_internal_data_[] = { + 262144u, 0u, }; bool EdaDataFile_NetRecord_SubnetRecord_Type_IsValid(int value) { - switch (value) { - case 0: - case 1: - case 2: - case 3: - return true; - default: - return false; - } + return 0 <= value && value <= 3; } +#if (__cplusplus < 201703) && \ + (!defined(_MSC_VER) || (_MSC_VER >= 1900 && _MSC_VER < 1912)) -#if (__cplusplus < 201703) && (!defined(_MSC_VER) || (_MSC_VER >= 1900 && _MSC_VER < 1912)) constexpr EdaDataFile_NetRecord_SubnetRecord_Type EdaDataFile_NetRecord_SubnetRecord::VIA; constexpr EdaDataFile_NetRecord_SubnetRecord_Type EdaDataFile_NetRecord_SubnetRecord::TRACE; constexpr EdaDataFile_NetRecord_SubnetRecord_Type EdaDataFile_NetRecord_SubnetRecord::PLANE; @@ -700,45 +869,41 @@ constexpr EdaDataFile_NetRecord_SubnetRecord_Type EdaDataFile_NetRecord_SubnetRe constexpr EdaDataFile_NetRecord_SubnetRecord_Type EdaDataFile_NetRecord_SubnetRecord::Type_MIN; constexpr EdaDataFile_NetRecord_SubnetRecord_Type EdaDataFile_NetRecord_SubnetRecord::Type_MAX; constexpr int EdaDataFile_NetRecord_SubnetRecord::Type_ARRAYSIZE; -#endif // (__cplusplus < 201703) && (!defined(_MSC_VER) || (_MSC_VER >= 1900 && _MSC_VER < 1912)) -const ::PROTOBUF_NAMESPACE_ID::EnumDescriptor* EdaDataFile_NetRecord_SubnetRecord_FillType_descriptor() { - ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(&descriptor_table_edadatafile_2eproto); + +#endif // (__cplusplus < 201703) && + // (!defined(_MSC_VER) || (_MSC_VER >= 1900 && _MSC_VER < 1912)) +const ::google::protobuf::EnumDescriptor* EdaDataFile_NetRecord_SubnetRecord_FillType_descriptor() { + ::google::protobuf::internal::AssignDescriptors(&descriptor_table_edadatafile_2eproto); return file_level_enum_descriptors_edadatafile_2eproto[2]; } +PROTOBUF_CONSTINIT const uint32_t EdaDataFile_NetRecord_SubnetRecord_FillType_internal_data_[] = { + 131072u, 0u, }; bool EdaDataFile_NetRecord_SubnetRecord_FillType_IsValid(int value) { - switch (value) { - case 0: - case 1: - return true; - default: - return false; - } + return 0 <= value && value <= 1; } +#if (__cplusplus < 201703) && \ + (!defined(_MSC_VER) || (_MSC_VER >= 1900 && _MSC_VER < 1912)) -#if (__cplusplus < 201703) && (!defined(_MSC_VER) || (_MSC_VER >= 1900 && _MSC_VER < 1912)) constexpr EdaDataFile_NetRecord_SubnetRecord_FillType EdaDataFile_NetRecord_SubnetRecord::SOLID; constexpr EdaDataFile_NetRecord_SubnetRecord_FillType EdaDataFile_NetRecord_SubnetRecord::OUTLINE; constexpr EdaDataFile_NetRecord_SubnetRecord_FillType EdaDataFile_NetRecord_SubnetRecord::FillType_MIN; constexpr EdaDataFile_NetRecord_SubnetRecord_FillType EdaDataFile_NetRecord_SubnetRecord::FillType_MAX; constexpr int EdaDataFile_NetRecord_SubnetRecord::FillType_ARRAYSIZE; -#endif // (__cplusplus < 201703) && (!defined(_MSC_VER) || (_MSC_VER >= 1900 && _MSC_VER < 1912)) -const ::PROTOBUF_NAMESPACE_ID::EnumDescriptor* EdaDataFile_NetRecord_SubnetRecord_CutoutType_descriptor() { - ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(&descriptor_table_edadatafile_2eproto); + +#endif // (__cplusplus < 201703) && + // (!defined(_MSC_VER) || (_MSC_VER >= 1900 && _MSC_VER < 1912)) +const ::google::protobuf::EnumDescriptor* EdaDataFile_NetRecord_SubnetRecord_CutoutType_descriptor() { + ::google::protobuf::internal::AssignDescriptors(&descriptor_table_edadatafile_2eproto); return file_level_enum_descriptors_edadatafile_2eproto[3]; } +PROTOBUF_CONSTINIT const uint32_t EdaDataFile_NetRecord_SubnetRecord_CutoutType_internal_data_[] = { + 262144u, 0u, }; bool EdaDataFile_NetRecord_SubnetRecord_CutoutType_IsValid(int value) { - switch (value) { - case 0: - case 1: - case 2: - case 3: - return true; - default: - return false; - } + return 0 <= value && value <= 3; } +#if (__cplusplus < 201703) && \ + (!defined(_MSC_VER) || (_MSC_VER >= 1900 && _MSC_VER < 1912)) -#if (__cplusplus < 201703) && (!defined(_MSC_VER) || (_MSC_VER >= 1900 && _MSC_VER < 1912)) constexpr EdaDataFile_NetRecord_SubnetRecord_CutoutType EdaDataFile_NetRecord_SubnetRecord::CIRCLE; constexpr EdaDataFile_NetRecord_SubnetRecord_CutoutType EdaDataFile_NetRecord_SubnetRecord::RECTANGLE; constexpr EdaDataFile_NetRecord_SubnetRecord_CutoutType EdaDataFile_NetRecord_SubnetRecord::OCTAGON; @@ -746,24 +911,21 @@ constexpr EdaDataFile_NetRecord_SubnetRecord_CutoutType EdaDataFile_NetRecord_Su constexpr EdaDataFile_NetRecord_SubnetRecord_CutoutType EdaDataFile_NetRecord_SubnetRecord::CutoutType_MIN; constexpr EdaDataFile_NetRecord_SubnetRecord_CutoutType EdaDataFile_NetRecord_SubnetRecord::CutoutType_MAX; constexpr int EdaDataFile_NetRecord_SubnetRecord::CutoutType_ARRAYSIZE; -#endif // (__cplusplus < 201703) && (!defined(_MSC_VER) || (_MSC_VER >= 1900 && _MSC_VER < 1912)) -const ::PROTOBUF_NAMESPACE_ID::EnumDescriptor* EdaDataFile_PackageRecord_OutlineRecord_Type_descriptor() { - ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(&descriptor_table_edadatafile_2eproto); + +#endif // (__cplusplus < 201703) && + // (!defined(_MSC_VER) || (_MSC_VER >= 1900 && _MSC_VER < 1912)) +const ::google::protobuf::EnumDescriptor* EdaDataFile_PackageRecord_OutlineRecord_Type_descriptor() { + ::google::protobuf::internal::AssignDescriptors(&descriptor_table_edadatafile_2eproto); return file_level_enum_descriptors_edadatafile_2eproto[4]; } +PROTOBUF_CONSTINIT const uint32_t EdaDataFile_PackageRecord_OutlineRecord_Type_internal_data_[] = { + 262144u, 0u, }; bool EdaDataFile_PackageRecord_OutlineRecord_Type_IsValid(int value) { - switch (value) { - case 0: - case 1: - case 2: - case 3: - return true; - default: - return false; - } + return 0 <= value && value <= 3; } +#if (__cplusplus < 201703) && \ + (!defined(_MSC_VER) || (_MSC_VER >= 1900 && _MSC_VER < 1912)) -#if (__cplusplus < 201703) && (!defined(_MSC_VER) || (_MSC_VER >= 1900 && _MSC_VER < 1912)) constexpr EdaDataFile_PackageRecord_OutlineRecord_Type EdaDataFile_PackageRecord_OutlineRecord::Rectangle; constexpr EdaDataFile_PackageRecord_OutlineRecord_Type EdaDataFile_PackageRecord_OutlineRecord::Circle; constexpr EdaDataFile_PackageRecord_OutlineRecord_Type EdaDataFile_PackageRecord_OutlineRecord::Square; @@ -771,74 +933,63 @@ constexpr EdaDataFile_PackageRecord_OutlineRecord_Type EdaDataFile_PackageRecord constexpr EdaDataFile_PackageRecord_OutlineRecord_Type EdaDataFile_PackageRecord_OutlineRecord::Type_MIN; constexpr EdaDataFile_PackageRecord_OutlineRecord_Type EdaDataFile_PackageRecord_OutlineRecord::Type_MAX; constexpr int EdaDataFile_PackageRecord_OutlineRecord::Type_ARRAYSIZE; -#endif // (__cplusplus < 201703) && (!defined(_MSC_VER) || (_MSC_VER >= 1900 && _MSC_VER < 1912)) -const ::PROTOBUF_NAMESPACE_ID::EnumDescriptor* EdaDataFile_PackageRecord_PinRecord_Type_descriptor() { - ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(&descriptor_table_edadatafile_2eproto); + +#endif // (__cplusplus < 201703) && + // (!defined(_MSC_VER) || (_MSC_VER >= 1900 && _MSC_VER < 1912)) +const ::google::protobuf::EnumDescriptor* EdaDataFile_PackageRecord_PinRecord_Type_descriptor() { + ::google::protobuf::internal::AssignDescriptors(&descriptor_table_edadatafile_2eproto); return file_level_enum_descriptors_edadatafile_2eproto[5]; } +PROTOBUF_CONSTINIT const uint32_t EdaDataFile_PackageRecord_PinRecord_Type_internal_data_[] = { + 196608u, 0u, }; bool EdaDataFile_PackageRecord_PinRecord_Type_IsValid(int value) { - switch (value) { - case 0: - case 1: - case 2: - return true; - default: - return false; - } + return 0 <= value && value <= 2; } +#if (__cplusplus < 201703) && \ + (!defined(_MSC_VER) || (_MSC_VER >= 1900 && _MSC_VER < 1912)) -#if (__cplusplus < 201703) && (!defined(_MSC_VER) || (_MSC_VER >= 1900 && _MSC_VER < 1912)) constexpr EdaDataFile_PackageRecord_PinRecord_Type EdaDataFile_PackageRecord_PinRecord::ThroughHole; constexpr EdaDataFile_PackageRecord_PinRecord_Type EdaDataFile_PackageRecord_PinRecord::Blind; constexpr EdaDataFile_PackageRecord_PinRecord_Type EdaDataFile_PackageRecord_PinRecord::Surface; constexpr EdaDataFile_PackageRecord_PinRecord_Type EdaDataFile_PackageRecord_PinRecord::Type_MIN; constexpr EdaDataFile_PackageRecord_PinRecord_Type EdaDataFile_PackageRecord_PinRecord::Type_MAX; constexpr int EdaDataFile_PackageRecord_PinRecord::Type_ARRAYSIZE; -#endif // (__cplusplus < 201703) && (!defined(_MSC_VER) || (_MSC_VER >= 1900 && _MSC_VER < 1912)) -const ::PROTOBUF_NAMESPACE_ID::EnumDescriptor* EdaDataFile_PackageRecord_PinRecord_ElectricalType_descriptor() { - ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(&descriptor_table_edadatafile_2eproto); + +#endif // (__cplusplus < 201703) && + // (!defined(_MSC_VER) || (_MSC_VER >= 1900 && _MSC_VER < 1912)) +const ::google::protobuf::EnumDescriptor* EdaDataFile_PackageRecord_PinRecord_ElectricalType_descriptor() { + ::google::protobuf::internal::AssignDescriptors(&descriptor_table_edadatafile_2eproto); return file_level_enum_descriptors_edadatafile_2eproto[6]; } +PROTOBUF_CONSTINIT const uint32_t EdaDataFile_PackageRecord_PinRecord_ElectricalType_internal_data_[] = { + 196608u, 0u, }; bool EdaDataFile_PackageRecord_PinRecord_ElectricalType_IsValid(int value) { - switch (value) { - case 0: - case 1: - case 2: - return true; - default: - return false; - } + return 0 <= value && value <= 2; } +#if (__cplusplus < 201703) && \ + (!defined(_MSC_VER) || (_MSC_VER >= 1900 && _MSC_VER < 1912)) -#if (__cplusplus < 201703) && (!defined(_MSC_VER) || (_MSC_VER >= 1900 && _MSC_VER < 1912)) constexpr EdaDataFile_PackageRecord_PinRecord_ElectricalType EdaDataFile_PackageRecord_PinRecord::Electrical; constexpr EdaDataFile_PackageRecord_PinRecord_ElectricalType EdaDataFile_PackageRecord_PinRecord::NonElectrical; constexpr EdaDataFile_PackageRecord_PinRecord_ElectricalType EdaDataFile_PackageRecord_PinRecord::Undefined; constexpr EdaDataFile_PackageRecord_PinRecord_ElectricalType EdaDataFile_PackageRecord_PinRecord::ElectricalType_MIN; constexpr EdaDataFile_PackageRecord_PinRecord_ElectricalType EdaDataFile_PackageRecord_PinRecord::ElectricalType_MAX; constexpr int EdaDataFile_PackageRecord_PinRecord::ElectricalType_ARRAYSIZE; -#endif // (__cplusplus < 201703) && (!defined(_MSC_VER) || (_MSC_VER >= 1900 && _MSC_VER < 1912)) -const ::PROTOBUF_NAMESPACE_ID::EnumDescriptor* EdaDataFile_PackageRecord_PinRecord_MountType_descriptor() { - ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(&descriptor_table_edadatafile_2eproto); + +#endif // (__cplusplus < 201703) && + // (!defined(_MSC_VER) || (_MSC_VER >= 1900 && _MSC_VER < 1912)) +const ::google::protobuf::EnumDescriptor* EdaDataFile_PackageRecord_PinRecord_MountType_descriptor() { + ::google::protobuf::internal::AssignDescriptors(&descriptor_table_edadatafile_2eproto); return file_level_enum_descriptors_edadatafile_2eproto[7]; } +PROTOBUF_CONSTINIT const uint32_t EdaDataFile_PackageRecord_PinRecord_MountType_internal_data_[] = { + 524288u, 0u, }; bool EdaDataFile_PackageRecord_PinRecord_MountType_IsValid(int value) { - switch (value) { - case 0: - case 1: - case 2: - case 3: - case 4: - case 5: - case 6: - case 7: - return true; - default: - return false; - } + return 0 <= value && value <= 7; } +#if (__cplusplus < 201703) && \ + (!defined(_MSC_VER) || (_MSC_VER >= 1900 && _MSC_VER < 1912)) -#if (__cplusplus < 201703) && (!defined(_MSC_VER) || (_MSC_VER >= 1900 && _MSC_VER < 1912)) constexpr EdaDataFile_PackageRecord_PinRecord_MountType EdaDataFile_PackageRecord_PinRecord::Smt; constexpr EdaDataFile_PackageRecord_PinRecord_MountType EdaDataFile_PackageRecord_PinRecord::RecommendedSmtPad; constexpr EdaDataFile_PackageRecord_PinRecord_MountType EdaDataFile_PackageRecord_PinRecord::MT_ThroughHole; @@ -850,227 +1001,246 @@ constexpr EdaDataFile_PackageRecord_PinRecord_MountType EdaDataFile_PackageRecor constexpr EdaDataFile_PackageRecord_PinRecord_MountType EdaDataFile_PackageRecord_PinRecord::MountType_MIN; constexpr EdaDataFile_PackageRecord_PinRecord_MountType EdaDataFile_PackageRecord_PinRecord::MountType_MAX; constexpr int EdaDataFile_PackageRecord_PinRecord::MountType_ARRAYSIZE; -#endif // (__cplusplus < 201703) && (!defined(_MSC_VER) || (_MSC_VER >= 1900 && _MSC_VER < 1912)) +#endif // (__cplusplus < 201703) && + // (!defined(_MSC_VER) || (_MSC_VER >= 1900 && _MSC_VER < 1912)) // =================================================================== class EdaDataFile_FeatureIdRecord::_Internal { public: - using HasBits = decltype(std::declval()._impl_._has_bits_); - static void set_has_type(HasBits* has_bits) { - (*has_bits)[0] |= 1u; - } - static void set_has_layernumber(HasBits* has_bits) { - (*has_bits)[0] |= 2u; - } - static void set_has_featurenumber(HasBits* has_bits) { - (*has_bits)[0] |= 4u; - } + using HasBits = + decltype(std::declval()._impl_._has_bits_); + static constexpr ::int32_t kHasBitsOffset = + 8 * PROTOBUF_FIELD_OFFSET(EdaDataFile_FeatureIdRecord, _impl_._has_bits_); }; -EdaDataFile_FeatureIdRecord::EdaDataFile_FeatureIdRecord(::PROTOBUF_NAMESPACE_ID::Arena* arena, - bool is_message_owned) - : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned) { - SharedCtor(arena, is_message_owned); +EdaDataFile_FeatureIdRecord::EdaDataFile_FeatureIdRecord(::google::protobuf::Arena* arena) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : ::google::protobuf::Message(arena, _class_data_.base()) { +#else // PROTOBUF_CUSTOM_VTABLE + : ::google::protobuf::Message(arena) { +#endif // PROTOBUF_CUSTOM_VTABLE + SharedCtor(arena); // @@protoc_insertion_point(arena_constructor:Odb.Lib.Protobuf.EdaDataFile.FeatureIdRecord) } -EdaDataFile_FeatureIdRecord::EdaDataFile_FeatureIdRecord(const EdaDataFile_FeatureIdRecord& from) - : ::PROTOBUF_NAMESPACE_ID::Message() { - EdaDataFile_FeatureIdRecord* const _this = this; (void)_this; - new (&_impl_) Impl_{ - decltype(_impl_._has_bits_){from._impl_._has_bits_} - , /*decltype(_impl_._cached_size_)*/{} - , decltype(_impl_.type_){} - , decltype(_impl_.layernumber_){} - , decltype(_impl_.featurenumber_){}}; - - _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); - ::memcpy(&_impl_.type_, &from._impl_.type_, - static_cast(reinterpret_cast(&_impl_.featurenumber_) - - reinterpret_cast(&_impl_.type_)) + sizeof(_impl_.featurenumber_)); - // @@protoc_insertion_point(copy_constructor:Odb.Lib.Protobuf.EdaDataFile.FeatureIdRecord) -} - -inline void EdaDataFile_FeatureIdRecord::SharedCtor( - ::_pb::Arena* arena, bool is_message_owned) { - (void)arena; - (void)is_message_owned; - new (&_impl_) Impl_{ - decltype(_impl_._has_bits_){} - , /*decltype(_impl_._cached_size_)*/{} - , decltype(_impl_.type_){0} - , decltype(_impl_.layernumber_){0u} - , decltype(_impl_.featurenumber_){0u} - }; +EdaDataFile_FeatureIdRecord::EdaDataFile_FeatureIdRecord( + ::google::protobuf::Arena* arena, const EdaDataFile_FeatureIdRecord& from) + : EdaDataFile_FeatureIdRecord(arena) { + MergeFrom(from); } +inline PROTOBUF_NDEBUG_INLINE EdaDataFile_FeatureIdRecord::Impl_::Impl_( + ::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* arena) + : _cached_size_{0} {} +inline void EdaDataFile_FeatureIdRecord::SharedCtor(::_pb::Arena* arena) { + new (&_impl_) Impl_(internal_visibility(), arena); + ::memset(reinterpret_cast(&_impl_) + + offsetof(Impl_, type_), + 0, + offsetof(Impl_, featurenumber_) - + offsetof(Impl_, type_) + + sizeof(Impl_::featurenumber_)); +} EdaDataFile_FeatureIdRecord::~EdaDataFile_FeatureIdRecord() { // @@protoc_insertion_point(destructor:Odb.Lib.Protobuf.EdaDataFile.FeatureIdRecord) - if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) { - (void)arena; - return; - } - SharedDtor(); -} - -inline void EdaDataFile_FeatureIdRecord::SharedDtor() { - GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); -} - -void EdaDataFile_FeatureIdRecord::SetCachedSize(int size) const { - _impl_._cached_size_.Set(size); -} + SharedDtor(*this); +} +inline void EdaDataFile_FeatureIdRecord::SharedDtor(MessageLite& self) { + EdaDataFile_FeatureIdRecord& this_ = static_cast(self); + this_._internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); + ABSL_DCHECK(this_.GetArena() == nullptr); + this_._impl_.~Impl_(); +} + +inline void* EdaDataFile_FeatureIdRecord::PlacementNew_(const void*, void* mem, + ::google::protobuf::Arena* arena) { + return ::new (mem) EdaDataFile_FeatureIdRecord(arena); +} +constexpr auto EdaDataFile_FeatureIdRecord::InternalNewImpl_() { + return ::google::protobuf::internal::MessageCreator::ZeroInit(sizeof(EdaDataFile_FeatureIdRecord), + alignof(EdaDataFile_FeatureIdRecord)); +} +PROTOBUF_CONSTINIT +PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 +const ::google::protobuf::internal::ClassDataFull EdaDataFile_FeatureIdRecord::_class_data_ = { + ::google::protobuf::internal::ClassData{ + &_EdaDataFile_FeatureIdRecord_default_instance_._instance, + &_table_.header, + nullptr, // OnDemandRegisterArenaDtor + nullptr, // IsInitialized + &EdaDataFile_FeatureIdRecord::MergeImpl, + ::google::protobuf::Message::GetNewImpl(), +#if defined(PROTOBUF_CUSTOM_VTABLE) + &EdaDataFile_FeatureIdRecord::SharedDtor, + ::google::protobuf::Message::GetClearImpl(), &EdaDataFile_FeatureIdRecord::ByteSizeLong, + &EdaDataFile_FeatureIdRecord::_InternalSerialize, +#endif // PROTOBUF_CUSTOM_VTABLE + PROTOBUF_FIELD_OFFSET(EdaDataFile_FeatureIdRecord, _impl_._cached_size_), + false, + }, + &EdaDataFile_FeatureIdRecord::kDescriptorMethods, + &descriptor_table_edadatafile_2eproto, + nullptr, // tracker +}; +const ::google::protobuf::internal::ClassData* EdaDataFile_FeatureIdRecord::GetClassData() const { + ::google::protobuf::internal::PrefetchToLocalCache(&_class_data_); + ::google::protobuf::internal::PrefetchToLocalCache(_class_data_.tc_table); + return _class_data_.base(); +} +PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 +const ::_pbi::TcParseTable<2, 3, 0, 0, 2> EdaDataFile_FeatureIdRecord::_table_ = { + { + PROTOBUF_FIELD_OFFSET(EdaDataFile_FeatureIdRecord, _impl_._has_bits_), + 0, // no _extensions_ + 3, 24, // max_field_number, fast_idx_mask + offsetof(decltype(_table_), field_lookup_table), + 4294967288, // skipmap + offsetof(decltype(_table_), field_entries), + 3, // num_field_entries + 0, // num_aux_entries + offsetof(decltype(_table_), field_names), // no aux_entries + _class_data_.base(), + nullptr, // post_loop_handler + ::_pbi::TcParser::GenericFallback, // fallback + #ifdef PROTOBUF_PREFETCH_PARSE_TABLE + ::_pbi::TcParser::GetTable<::Odb::Lib::Protobuf::EdaDataFile_FeatureIdRecord>(), // to_prefetch + #endif // PROTOBUF_PREFETCH_PARSE_TABLE + }, {{ + {::_pbi::TcParser::MiniParse, {}}, + // optional .Odb.Lib.Protobuf.EdaDataFile.FeatureIdRecord.Type type = 1; + {::_pbi::TcParser::SingularVarintNoZag1<::uint32_t, offsetof(EdaDataFile_FeatureIdRecord, _impl_.type_), 0>(), + {8, 0, 0, PROTOBUF_FIELD_OFFSET(EdaDataFile_FeatureIdRecord, _impl_.type_)}}, + // optional uint32 layerNumber = 2; + {::_pbi::TcParser::SingularVarintNoZag1<::uint32_t, offsetof(EdaDataFile_FeatureIdRecord, _impl_.layernumber_), 1>(), + {16, 1, 0, PROTOBUF_FIELD_OFFSET(EdaDataFile_FeatureIdRecord, _impl_.layernumber_)}}, + // optional uint32 featureNumber = 3; + {::_pbi::TcParser::SingularVarintNoZag1<::uint32_t, offsetof(EdaDataFile_FeatureIdRecord, _impl_.featurenumber_), 2>(), + {24, 2, 0, PROTOBUF_FIELD_OFFSET(EdaDataFile_FeatureIdRecord, _impl_.featurenumber_)}}, + }}, {{ + 65535, 65535 + }}, {{ + // optional .Odb.Lib.Protobuf.EdaDataFile.FeatureIdRecord.Type type = 1; + {PROTOBUF_FIELD_OFFSET(EdaDataFile_FeatureIdRecord, _impl_.type_), _Internal::kHasBitsOffset + 0, 0, + (0 | ::_fl::kFcOptional | ::_fl::kOpenEnum)}, + // optional uint32 layerNumber = 2; + {PROTOBUF_FIELD_OFFSET(EdaDataFile_FeatureIdRecord, _impl_.layernumber_), _Internal::kHasBitsOffset + 1, 0, + (0 | ::_fl::kFcOptional | ::_fl::kUInt32)}, + // optional uint32 featureNumber = 3; + {PROTOBUF_FIELD_OFFSET(EdaDataFile_FeatureIdRecord, _impl_.featurenumber_), _Internal::kHasBitsOffset + 2, 0, + (0 | ::_fl::kFcOptional | ::_fl::kUInt32)}, + }}, + // no aux_entries + {{ + }}, +}; -void EdaDataFile_FeatureIdRecord::Clear() { +PROTOBUF_NOINLINE void EdaDataFile_FeatureIdRecord::Clear() { // @@protoc_insertion_point(message_clear_start:Odb.Lib.Protobuf.EdaDataFile.FeatureIdRecord) - uint32_t cached_has_bits = 0; + ::google::protobuf::internal::TSanWrite(&_impl_); + ::uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; cached_has_bits = _impl_._has_bits_[0]; if (cached_has_bits & 0x00000007u) { - ::memset(&_impl_.type_, 0, static_cast( + ::memset(&_impl_.type_, 0, static_cast<::size_t>( reinterpret_cast(&_impl_.featurenumber_) - reinterpret_cast(&_impl_.type_)) + sizeof(_impl_.featurenumber_)); } _impl_._has_bits_.Clear(); - _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); -} - -const char* EdaDataFile_FeatureIdRecord::_InternalParse(const char* ptr, ::_pbi::ParseContext* ctx) { -#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure - _Internal::HasBits has_bits{}; - while (!ctx->Done(&ptr)) { - uint32_t tag; - ptr = ::_pbi::ReadTag(ptr, &tag); - switch (tag >> 3) { - // optional .Odb.Lib.Protobuf.EdaDataFile.FeatureIdRecord.Type type = 1; - case 1: - if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 8)) { - uint64_t val = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); - CHK_(ptr); - _internal_set_type(static_cast<::Odb::Lib::Protobuf::EdaDataFile_FeatureIdRecord_Type>(val)); - } else - goto handle_unusual; - continue; - // optional uint32 layerNumber = 2; - case 2: - if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 16)) { - _Internal::set_has_layernumber(&has_bits); - _impl_.layernumber_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr); - CHK_(ptr); - } else - goto handle_unusual; - continue; - // optional uint32 featureNumber = 3; - case 3: - if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 24)) { - _Internal::set_has_featurenumber(&has_bits); - _impl_.featurenumber_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr); - CHK_(ptr); - } else - goto handle_unusual; - continue; - default: - goto handle_unusual; - } // switch - handle_unusual: - if ((tag == 0) || ((tag & 7) == 4)) { - CHK_(ptr); - ctx->SetLastTag(tag); - goto message_done; - } - ptr = UnknownFieldParse( - tag, - _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(), - ptr, ctx); - CHK_(ptr != nullptr); - } // while -message_done: - _impl_._has_bits_.Or(has_bits); - return ptr; -failure: - ptr = nullptr; - goto message_done; -#undef CHK_ -} - -uint8_t* EdaDataFile_FeatureIdRecord::_InternalSerialize( - uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { - // @@protoc_insertion_point(serialize_to_array_start:Odb.Lib.Protobuf.EdaDataFile.FeatureIdRecord) - uint32_t cached_has_bits = 0; - (void) cached_has_bits; - - // optional .Odb.Lib.Protobuf.EdaDataFile.FeatureIdRecord.Type type = 1; - if (_internal_has_type()) { - target = stream->EnsureSpace(target); - target = ::_pbi::WireFormatLite::WriteEnumToArray( - 1, this->_internal_type(), target); - } - - // optional uint32 layerNumber = 2; - if (_internal_has_layernumber()) { - target = stream->EnsureSpace(target); - target = ::_pbi::WireFormatLite::WriteUInt32ToArray(2, this->_internal_layernumber(), target); - } - - // optional uint32 featureNumber = 3; - if (_internal_has_featurenumber()) { - target = stream->EnsureSpace(target); - target = ::_pbi::WireFormatLite::WriteUInt32ToArray(3, this->_internal_featurenumber(), target); - } - - if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = ::_pbi::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:Odb.Lib.Protobuf.EdaDataFile.FeatureIdRecord) - return target; -} - -size_t EdaDataFile_FeatureIdRecord::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:Odb.Lib.Protobuf.EdaDataFile.FeatureIdRecord) - size_t total_size = 0; - - uint32_t cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - cached_has_bits = _impl_._has_bits_[0]; - if (cached_has_bits & 0x00000007u) { - // optional .Odb.Lib.Protobuf.EdaDataFile.FeatureIdRecord.Type type = 1; - if (cached_has_bits & 0x00000001u) { - total_size += 1 + - ::_pbi::WireFormatLite::EnumSize(this->_internal_type()); - } - - // optional uint32 layerNumber = 2; - if (cached_has_bits & 0x00000002u) { - total_size += ::_pbi::WireFormatLite::UInt32SizePlusOne(this->_internal_layernumber()); - } - - // optional uint32 featureNumber = 3; - if (cached_has_bits & 0x00000004u) { - total_size += ::_pbi::WireFormatLite::UInt32SizePlusOne(this->_internal_featurenumber()); - } - - } - return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); -} - -const ::PROTOBUF_NAMESPACE_ID::Message::ClassData EdaDataFile_FeatureIdRecord::_class_data_ = { - ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSourceCheck, - EdaDataFile_FeatureIdRecord::MergeImpl -}; -const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*EdaDataFile_FeatureIdRecord::GetClassData() const { return &_class_data_; } - - -void EdaDataFile_FeatureIdRecord::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg) { + _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); +} + +#if defined(PROTOBUF_CUSTOM_VTABLE) + ::uint8_t* EdaDataFile_FeatureIdRecord::_InternalSerialize( + const MessageLite& base, ::uint8_t* target, + ::google::protobuf::io::EpsCopyOutputStream* stream) { + const EdaDataFile_FeatureIdRecord& this_ = static_cast(base); +#else // PROTOBUF_CUSTOM_VTABLE + ::uint8_t* EdaDataFile_FeatureIdRecord::_InternalSerialize( + ::uint8_t* target, + ::google::protobuf::io::EpsCopyOutputStream* stream) const { + const EdaDataFile_FeatureIdRecord& this_ = *this; +#endif // PROTOBUF_CUSTOM_VTABLE + // @@protoc_insertion_point(serialize_to_array_start:Odb.Lib.Protobuf.EdaDataFile.FeatureIdRecord) + ::uint32_t cached_has_bits = 0; + (void)cached_has_bits; + + cached_has_bits = this_._impl_._has_bits_[0]; + // optional .Odb.Lib.Protobuf.EdaDataFile.FeatureIdRecord.Type type = 1; + if (cached_has_bits & 0x00000001u) { + target = stream->EnsureSpace(target); + target = ::_pbi::WireFormatLite::WriteEnumToArray( + 1, this_._internal_type(), target); + } + + // optional uint32 layerNumber = 2; + if (cached_has_bits & 0x00000002u) { + target = stream->EnsureSpace(target); + target = ::_pbi::WireFormatLite::WriteUInt32ToArray( + 2, this_._internal_layernumber(), target); + } + + // optional uint32 featureNumber = 3; + if (cached_has_bits & 0x00000004u) { + target = stream->EnsureSpace(target); + target = ::_pbi::WireFormatLite::WriteUInt32ToArray( + 3, this_._internal_featurenumber(), target); + } + + if (PROTOBUF_PREDICT_FALSE(this_._internal_metadata_.have_unknown_fields())) { + target = + ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( + this_._internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); + } + // @@protoc_insertion_point(serialize_to_array_end:Odb.Lib.Protobuf.EdaDataFile.FeatureIdRecord) + return target; + } + +#if defined(PROTOBUF_CUSTOM_VTABLE) + ::size_t EdaDataFile_FeatureIdRecord::ByteSizeLong(const MessageLite& base) { + const EdaDataFile_FeatureIdRecord& this_ = static_cast(base); +#else // PROTOBUF_CUSTOM_VTABLE + ::size_t EdaDataFile_FeatureIdRecord::ByteSizeLong() const { + const EdaDataFile_FeatureIdRecord& this_ = *this; +#endif // PROTOBUF_CUSTOM_VTABLE + // @@protoc_insertion_point(message_byte_size_start:Odb.Lib.Protobuf.EdaDataFile.FeatureIdRecord) + ::size_t total_size = 0; + + ::uint32_t cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void)cached_has_bits; + + ::_pbi::Prefetch5LinesFrom7Lines(&this_); + cached_has_bits = this_._impl_._has_bits_[0]; + if (cached_has_bits & 0x00000007u) { + // optional .Odb.Lib.Protobuf.EdaDataFile.FeatureIdRecord.Type type = 1; + if (cached_has_bits & 0x00000001u) { + total_size += 1 + + ::_pbi::WireFormatLite::EnumSize(this_._internal_type()); + } + // optional uint32 layerNumber = 2; + if (cached_has_bits & 0x00000002u) { + total_size += ::_pbi::WireFormatLite::UInt32SizePlusOne( + this_._internal_layernumber()); + } + // optional uint32 featureNumber = 3; + if (cached_has_bits & 0x00000004u) { + total_size += ::_pbi::WireFormatLite::UInt32SizePlusOne( + this_._internal_featurenumber()); + } + } + return this_.MaybeComputeUnknownFieldsSize(total_size, + &this_._impl_._cached_size_); + } + +void EdaDataFile_FeatureIdRecord::MergeImpl(::google::protobuf::MessageLite& to_msg, const ::google::protobuf::MessageLite& from_msg) { auto* const _this = static_cast(&to_msg); auto& from = static_cast(from_msg); // @@protoc_insertion_point(class_specific_merge_from_start:Odb.Lib.Protobuf.EdaDataFile.FeatureIdRecord) - GOOGLE_DCHECK_NE(&from, _this); - uint32_t cached_has_bits = 0; + ABSL_DCHECK_NE(&from, _this); + ::uint32_t cached_has_bits = 0; (void) cached_has_bits; cached_has_bits = from._impl_._has_bits_[0]; @@ -1084,9 +1254,9 @@ void EdaDataFile_FeatureIdRecord::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to if (cached_has_bits & 0x00000004u) { _this->_impl_.featurenumber_ = from._impl_.featurenumber_; } - _this->_impl_._has_bits_[0] |= cached_has_bits; } - _this->_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); + _this->_impl_._has_bits_[0] |= cached_has_bits; + _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); } void EdaDataFile_FeatureIdRecord::CopyFrom(const EdaDataFile_FeatureIdRecord& from) { @@ -1096,15 +1266,12 @@ void EdaDataFile_FeatureIdRecord::CopyFrom(const EdaDataFile_FeatureIdRecord& fr MergeFrom(from); } -bool EdaDataFile_FeatureIdRecord::IsInitialized() const { - return true; -} -void EdaDataFile_FeatureIdRecord::InternalSwap(EdaDataFile_FeatureIdRecord* other) { +void EdaDataFile_FeatureIdRecord::InternalSwap(EdaDataFile_FeatureIdRecord* PROTOBUF_RESTRICT other) { using std::swap; _internal_metadata_.InternalSwap(&other->_internal_metadata_); swap(_impl_._has_bits_[0], other->_impl_._has_bits_[0]); - ::PROTOBUF_NAMESPACE_ID::internal::memswap< + ::google::protobuf::internal::memswap< PROTOBUF_FIELD_OFFSET(EdaDataFile_FeatureIdRecord, _impl_.featurenumber_) + sizeof(EdaDataFile_FeatureIdRecord::_impl_.featurenumber_) - PROTOBUF_FIELD_OFFSET(EdaDataFile_FeatureIdRecord, _impl_.type_)>( @@ -1112,445 +1279,455 @@ void EdaDataFile_FeatureIdRecord::InternalSwap(EdaDataFile_FeatureIdRecord* othe reinterpret_cast(&other->_impl_.type_)); } -::PROTOBUF_NAMESPACE_ID::Metadata EdaDataFile_FeatureIdRecord::GetMetadata() const { - return ::_pbi::AssignDescriptors( - &descriptor_table_edadatafile_2eproto_getter, &descriptor_table_edadatafile_2eproto_once, - file_level_metadata_edadatafile_2eproto[0]); +::google::protobuf::Metadata EdaDataFile_FeatureIdRecord::GetMetadata() const { + return ::google::protobuf::Message::GetMetadataImpl(GetClassData()->full()); } - // =================================================================== class EdaDataFile_NetRecord_SubnetRecord::_Internal { public: - using HasBits = decltype(std::declval()._impl_._has_bits_); - static void set_has_type(HasBits* has_bits) { - (*has_bits)[0] |= 1u; - } - static void set_has_filltype(HasBits* has_bits) { - (*has_bits)[0] |= 2u; - } - static void set_has_cutouttype(HasBits* has_bits) { - (*has_bits)[0] |= 4u; - } - static void set_has_fillsize(HasBits* has_bits) { - (*has_bits)[0] |= 8u; - } - static void set_has_side(HasBits* has_bits) { - (*has_bits)[0] |= 16u; - } - static void set_has_componentnumber(HasBits* has_bits) { - (*has_bits)[0] |= 32u; - } - static void set_has_toeprintnumber(HasBits* has_bits) { - (*has_bits)[0] |= 64u; - } - static void set_has_index(HasBits* has_bits) { - (*has_bits)[0] |= 128u; - } + using HasBits = + decltype(std::declval()._impl_._has_bits_); + static constexpr ::int32_t kHasBitsOffset = + 8 * PROTOBUF_FIELD_OFFSET(EdaDataFile_NetRecord_SubnetRecord, _impl_._has_bits_); }; -EdaDataFile_NetRecord_SubnetRecord::EdaDataFile_NetRecord_SubnetRecord(::PROTOBUF_NAMESPACE_ID::Arena* arena, - bool is_message_owned) - : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned) { - SharedCtor(arena, is_message_owned); +EdaDataFile_NetRecord_SubnetRecord::EdaDataFile_NetRecord_SubnetRecord(::google::protobuf::Arena* arena) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : ::google::protobuf::Message(arena, _class_data_.base()) { +#else // PROTOBUF_CUSTOM_VTABLE + : ::google::protobuf::Message(arena) { +#endif // PROTOBUF_CUSTOM_VTABLE + SharedCtor(arena); // @@protoc_insertion_point(arena_constructor:Odb.Lib.Protobuf.EdaDataFile.NetRecord.SubnetRecord) } -EdaDataFile_NetRecord_SubnetRecord::EdaDataFile_NetRecord_SubnetRecord(const EdaDataFile_NetRecord_SubnetRecord& from) - : ::PROTOBUF_NAMESPACE_ID::Message() { - EdaDataFile_NetRecord_SubnetRecord* const _this = this; (void)_this; - new (&_impl_) Impl_{ - decltype(_impl_._has_bits_){from._impl_._has_bits_} - , /*decltype(_impl_._cached_size_)*/{} - , decltype(_impl_.featureidrecords_){from._impl_.featureidrecords_} - , decltype(_impl_.type_){} - , decltype(_impl_.filltype_){} - , decltype(_impl_.cutouttype_){} - , decltype(_impl_.fillsize_){} - , decltype(_impl_.side_){} - , decltype(_impl_.componentnumber_){} - , decltype(_impl_.toeprintnumber_){} - , decltype(_impl_.index_){}}; - - _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); - ::memcpy(&_impl_.type_, &from._impl_.type_, - static_cast(reinterpret_cast(&_impl_.index_) - - reinterpret_cast(&_impl_.type_)) + sizeof(_impl_.index_)); +inline PROTOBUF_NDEBUG_INLINE EdaDataFile_NetRecord_SubnetRecord::Impl_::Impl_( + ::google::protobuf::internal::InternalVisibility visibility, ::google::protobuf::Arena* arena, + const Impl_& from, const ::Odb::Lib::Protobuf::EdaDataFile_NetRecord_SubnetRecord& from_msg) + : _has_bits_{from._has_bits_}, + _cached_size_{0}, + featureidrecords_{visibility, arena, from.featureidrecords_} {} + +EdaDataFile_NetRecord_SubnetRecord::EdaDataFile_NetRecord_SubnetRecord( + ::google::protobuf::Arena* arena, + const EdaDataFile_NetRecord_SubnetRecord& from) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : ::google::protobuf::Message(arena, _class_data_.base()) { +#else // PROTOBUF_CUSTOM_VTABLE + : ::google::protobuf::Message(arena) { +#endif // PROTOBUF_CUSTOM_VTABLE + EdaDataFile_NetRecord_SubnetRecord* const _this = this; + (void)_this; + _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( + from._internal_metadata_); + new (&_impl_) Impl_(internal_visibility(), arena, from._impl_, from); + ::memcpy(reinterpret_cast(&_impl_) + + offsetof(Impl_, type_), + reinterpret_cast(&from._impl_) + + offsetof(Impl_, type_), + offsetof(Impl_, index_) - + offsetof(Impl_, type_) + + sizeof(Impl_::index_)); + // @@protoc_insertion_point(copy_constructor:Odb.Lib.Protobuf.EdaDataFile.NetRecord.SubnetRecord) } - -inline void EdaDataFile_NetRecord_SubnetRecord::SharedCtor( - ::_pb::Arena* arena, bool is_message_owned) { - (void)arena; - (void)is_message_owned; - new (&_impl_) Impl_{ - decltype(_impl_._has_bits_){} - , /*decltype(_impl_._cached_size_)*/{} - , decltype(_impl_.featureidrecords_){arena} - , decltype(_impl_.type_){0} - , decltype(_impl_.filltype_){0} - , decltype(_impl_.cutouttype_){0} - , decltype(_impl_.fillsize_){0} - , decltype(_impl_.side_){0} - , decltype(_impl_.componentnumber_){0u} - , decltype(_impl_.toeprintnumber_){0u} - , decltype(_impl_.index_){0u} - }; +inline PROTOBUF_NDEBUG_INLINE EdaDataFile_NetRecord_SubnetRecord::Impl_::Impl_( + ::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* arena) + : _cached_size_{0}, + featureidrecords_{visibility, arena} {} + +inline void EdaDataFile_NetRecord_SubnetRecord::SharedCtor(::_pb::Arena* arena) { + new (&_impl_) Impl_(internal_visibility(), arena); + ::memset(reinterpret_cast(&_impl_) + + offsetof(Impl_, type_), + 0, + offsetof(Impl_, index_) - + offsetof(Impl_, type_) + + sizeof(Impl_::index_)); } - EdaDataFile_NetRecord_SubnetRecord::~EdaDataFile_NetRecord_SubnetRecord() { // @@protoc_insertion_point(destructor:Odb.Lib.Protobuf.EdaDataFile.NetRecord.SubnetRecord) - if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) { - (void)arena; - return; - } - SharedDtor(); -} - -inline void EdaDataFile_NetRecord_SubnetRecord::SharedDtor() { - GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); - _impl_.featureidrecords_.~RepeatedPtrField(); -} - -void EdaDataFile_NetRecord_SubnetRecord::SetCachedSize(int size) const { - _impl_._cached_size_.Set(size); -} + SharedDtor(*this); +} +inline void EdaDataFile_NetRecord_SubnetRecord::SharedDtor(MessageLite& self) { + EdaDataFile_NetRecord_SubnetRecord& this_ = static_cast(self); + this_._internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); + ABSL_DCHECK(this_.GetArena() == nullptr); + this_._impl_.~Impl_(); +} + +inline void* EdaDataFile_NetRecord_SubnetRecord::PlacementNew_(const void*, void* mem, + ::google::protobuf::Arena* arena) { + return ::new (mem) EdaDataFile_NetRecord_SubnetRecord(arena); +} +constexpr auto EdaDataFile_NetRecord_SubnetRecord::InternalNewImpl_() { + constexpr auto arena_bits = ::google::protobuf::internal::EncodePlacementArenaOffsets({ + PROTOBUF_FIELD_OFFSET(EdaDataFile_NetRecord_SubnetRecord, _impl_.featureidrecords_) + + decltype(EdaDataFile_NetRecord_SubnetRecord::_impl_.featureidrecords_):: + InternalGetArenaOffset( + ::google::protobuf::Message::internal_visibility()), + }); + if (arena_bits.has_value()) { + return ::google::protobuf::internal::MessageCreator::ZeroInit( + sizeof(EdaDataFile_NetRecord_SubnetRecord), alignof(EdaDataFile_NetRecord_SubnetRecord), *arena_bits); + } else { + return ::google::protobuf::internal::MessageCreator(&EdaDataFile_NetRecord_SubnetRecord::PlacementNew_, + sizeof(EdaDataFile_NetRecord_SubnetRecord), + alignof(EdaDataFile_NetRecord_SubnetRecord)); + } +} +PROTOBUF_CONSTINIT +PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 +const ::google::protobuf::internal::ClassDataFull EdaDataFile_NetRecord_SubnetRecord::_class_data_ = { + ::google::protobuf::internal::ClassData{ + &_EdaDataFile_NetRecord_SubnetRecord_default_instance_._instance, + &_table_.header, + nullptr, // OnDemandRegisterArenaDtor + nullptr, // IsInitialized + &EdaDataFile_NetRecord_SubnetRecord::MergeImpl, + ::google::protobuf::Message::GetNewImpl(), +#if defined(PROTOBUF_CUSTOM_VTABLE) + &EdaDataFile_NetRecord_SubnetRecord::SharedDtor, + ::google::protobuf::Message::GetClearImpl(), &EdaDataFile_NetRecord_SubnetRecord::ByteSizeLong, + &EdaDataFile_NetRecord_SubnetRecord::_InternalSerialize, +#endif // PROTOBUF_CUSTOM_VTABLE + PROTOBUF_FIELD_OFFSET(EdaDataFile_NetRecord_SubnetRecord, _impl_._cached_size_), + false, + }, + &EdaDataFile_NetRecord_SubnetRecord::kDescriptorMethods, + &descriptor_table_edadatafile_2eproto, + nullptr, // tracker +}; +const ::google::protobuf::internal::ClassData* EdaDataFile_NetRecord_SubnetRecord::GetClassData() const { + ::google::protobuf::internal::PrefetchToLocalCache(&_class_data_); + ::google::protobuf::internal::PrefetchToLocalCache(_class_data_.tc_table); + return _class_data_.base(); +} +PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 +const ::_pbi::TcParseTable<4, 9, 1, 0, 2> EdaDataFile_NetRecord_SubnetRecord::_table_ = { + { + PROTOBUF_FIELD_OFFSET(EdaDataFile_NetRecord_SubnetRecord, _impl_._has_bits_), + 0, // no _extensions_ + 9, 120, // max_field_number, fast_idx_mask + offsetof(decltype(_table_), field_lookup_table), + 4294966784, // skipmap + offsetof(decltype(_table_), field_entries), + 9, // num_field_entries + 1, // num_aux_entries + offsetof(decltype(_table_), aux_entries), + _class_data_.base(), + nullptr, // post_loop_handler + ::_pbi::TcParser::GenericFallback, // fallback + #ifdef PROTOBUF_PREFETCH_PARSE_TABLE + ::_pbi::TcParser::GetTable<::Odb::Lib::Protobuf::EdaDataFile_NetRecord_SubnetRecord>(), // to_prefetch + #endif // PROTOBUF_PREFETCH_PARSE_TABLE + }, {{ + {::_pbi::TcParser::MiniParse, {}}, + // optional .Odb.Lib.Protobuf.EdaDataFile.NetRecord.SubnetRecord.Type type = 1; + {::_pbi::TcParser::SingularVarintNoZag1<::uint32_t, offsetof(EdaDataFile_NetRecord_SubnetRecord, _impl_.type_), 0>(), + {8, 0, 0, PROTOBUF_FIELD_OFFSET(EdaDataFile_NetRecord_SubnetRecord, _impl_.type_)}}, + // repeated .Odb.Lib.Protobuf.EdaDataFile.FeatureIdRecord featureIdRecords = 2; + {::_pbi::TcParser::FastMtR1, + {18, 63, 0, PROTOBUF_FIELD_OFFSET(EdaDataFile_NetRecord_SubnetRecord, _impl_.featureidrecords_)}}, + // optional .Odb.Lib.Protobuf.EdaDataFile.NetRecord.SubnetRecord.FillType fillType = 3; + {::_pbi::TcParser::SingularVarintNoZag1<::uint32_t, offsetof(EdaDataFile_NetRecord_SubnetRecord, _impl_.filltype_), 1>(), + {24, 1, 0, PROTOBUF_FIELD_OFFSET(EdaDataFile_NetRecord_SubnetRecord, _impl_.filltype_)}}, + // optional .Odb.Lib.Protobuf.EdaDataFile.NetRecord.SubnetRecord.CutoutType cutoutType = 4; + {::_pbi::TcParser::SingularVarintNoZag1<::uint32_t, offsetof(EdaDataFile_NetRecord_SubnetRecord, _impl_.cutouttype_), 2>(), + {32, 2, 0, PROTOBUF_FIELD_OFFSET(EdaDataFile_NetRecord_SubnetRecord, _impl_.cutouttype_)}}, + // optional float fillSize = 5; + {::_pbi::TcParser::FastF32S1, + {45, 3, 0, PROTOBUF_FIELD_OFFSET(EdaDataFile_NetRecord_SubnetRecord, _impl_.fillsize_)}}, + // optional .Odb.Lib.Protobuf.BoardSide side = 6; + {::_pbi::TcParser::SingularVarintNoZag1<::uint32_t, offsetof(EdaDataFile_NetRecord_SubnetRecord, _impl_.side_), 4>(), + {48, 4, 0, PROTOBUF_FIELD_OFFSET(EdaDataFile_NetRecord_SubnetRecord, _impl_.side_)}}, + // optional uint32 componentNumber = 7; + {::_pbi::TcParser::SingularVarintNoZag1<::uint32_t, offsetof(EdaDataFile_NetRecord_SubnetRecord, _impl_.componentnumber_), 5>(), + {56, 5, 0, PROTOBUF_FIELD_OFFSET(EdaDataFile_NetRecord_SubnetRecord, _impl_.componentnumber_)}}, + // optional uint32 toeprintNumber = 8; + {::_pbi::TcParser::SingularVarintNoZag1<::uint32_t, offsetof(EdaDataFile_NetRecord_SubnetRecord, _impl_.toeprintnumber_), 6>(), + {64, 6, 0, PROTOBUF_FIELD_OFFSET(EdaDataFile_NetRecord_SubnetRecord, _impl_.toeprintnumber_)}}, + // optional uint32 index = 9; + {::_pbi::TcParser::SingularVarintNoZag1<::uint32_t, offsetof(EdaDataFile_NetRecord_SubnetRecord, _impl_.index_), 7>(), + {72, 7, 0, PROTOBUF_FIELD_OFFSET(EdaDataFile_NetRecord_SubnetRecord, _impl_.index_)}}, + {::_pbi::TcParser::MiniParse, {}}, + {::_pbi::TcParser::MiniParse, {}}, + {::_pbi::TcParser::MiniParse, {}}, + {::_pbi::TcParser::MiniParse, {}}, + {::_pbi::TcParser::MiniParse, {}}, + {::_pbi::TcParser::MiniParse, {}}, + }}, {{ + 65535, 65535 + }}, {{ + // optional .Odb.Lib.Protobuf.EdaDataFile.NetRecord.SubnetRecord.Type type = 1; + {PROTOBUF_FIELD_OFFSET(EdaDataFile_NetRecord_SubnetRecord, _impl_.type_), _Internal::kHasBitsOffset + 0, 0, + (0 | ::_fl::kFcOptional | ::_fl::kOpenEnum)}, + // repeated .Odb.Lib.Protobuf.EdaDataFile.FeatureIdRecord featureIdRecords = 2; + {PROTOBUF_FIELD_OFFSET(EdaDataFile_NetRecord_SubnetRecord, _impl_.featureidrecords_), -1, 0, + (0 | ::_fl::kFcRepeated | ::_fl::kMessage | ::_fl::kTvTable)}, + // optional .Odb.Lib.Protobuf.EdaDataFile.NetRecord.SubnetRecord.FillType fillType = 3; + {PROTOBUF_FIELD_OFFSET(EdaDataFile_NetRecord_SubnetRecord, _impl_.filltype_), _Internal::kHasBitsOffset + 1, 0, + (0 | ::_fl::kFcOptional | ::_fl::kOpenEnum)}, + // optional .Odb.Lib.Protobuf.EdaDataFile.NetRecord.SubnetRecord.CutoutType cutoutType = 4; + {PROTOBUF_FIELD_OFFSET(EdaDataFile_NetRecord_SubnetRecord, _impl_.cutouttype_), _Internal::kHasBitsOffset + 2, 0, + (0 | ::_fl::kFcOptional | ::_fl::kOpenEnum)}, + // optional float fillSize = 5; + {PROTOBUF_FIELD_OFFSET(EdaDataFile_NetRecord_SubnetRecord, _impl_.fillsize_), _Internal::kHasBitsOffset + 3, 0, + (0 | ::_fl::kFcOptional | ::_fl::kFloat)}, + // optional .Odb.Lib.Protobuf.BoardSide side = 6; + {PROTOBUF_FIELD_OFFSET(EdaDataFile_NetRecord_SubnetRecord, _impl_.side_), _Internal::kHasBitsOffset + 4, 0, + (0 | ::_fl::kFcOptional | ::_fl::kOpenEnum)}, + // optional uint32 componentNumber = 7; + {PROTOBUF_FIELD_OFFSET(EdaDataFile_NetRecord_SubnetRecord, _impl_.componentnumber_), _Internal::kHasBitsOffset + 5, 0, + (0 | ::_fl::kFcOptional | ::_fl::kUInt32)}, + // optional uint32 toeprintNumber = 8; + {PROTOBUF_FIELD_OFFSET(EdaDataFile_NetRecord_SubnetRecord, _impl_.toeprintnumber_), _Internal::kHasBitsOffset + 6, 0, + (0 | ::_fl::kFcOptional | ::_fl::kUInt32)}, + // optional uint32 index = 9; + {PROTOBUF_FIELD_OFFSET(EdaDataFile_NetRecord_SubnetRecord, _impl_.index_), _Internal::kHasBitsOffset + 7, 0, + (0 | ::_fl::kFcOptional | ::_fl::kUInt32)}, + }}, {{ + {::_pbi::TcParser::GetTable<::Odb::Lib::Protobuf::EdaDataFile_FeatureIdRecord>()}, + }}, {{ + }}, +}; -void EdaDataFile_NetRecord_SubnetRecord::Clear() { +PROTOBUF_NOINLINE void EdaDataFile_NetRecord_SubnetRecord::Clear() { // @@protoc_insertion_point(message_clear_start:Odb.Lib.Protobuf.EdaDataFile.NetRecord.SubnetRecord) - uint32_t cached_has_bits = 0; + ::google::protobuf::internal::TSanWrite(&_impl_); + ::uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; _impl_.featureidrecords_.Clear(); cached_has_bits = _impl_._has_bits_[0]; if (cached_has_bits & 0x000000ffu) { - ::memset(&_impl_.type_, 0, static_cast( + ::memset(&_impl_.type_, 0, static_cast<::size_t>( reinterpret_cast(&_impl_.index_) - reinterpret_cast(&_impl_.type_)) + sizeof(_impl_.index_)); } _impl_._has_bits_.Clear(); - _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); -} - -const char* EdaDataFile_NetRecord_SubnetRecord::_InternalParse(const char* ptr, ::_pbi::ParseContext* ctx) { -#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure - _Internal::HasBits has_bits{}; - while (!ctx->Done(&ptr)) { - uint32_t tag; - ptr = ::_pbi::ReadTag(ptr, &tag); - switch (tag >> 3) { - // optional .Odb.Lib.Protobuf.EdaDataFile.NetRecord.SubnetRecord.Type type = 1; - case 1: - if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 8)) { - uint64_t val = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); - CHK_(ptr); - _internal_set_type(static_cast<::Odb::Lib::Protobuf::EdaDataFile_NetRecord_SubnetRecord_Type>(val)); - } else - goto handle_unusual; - continue; - // repeated .Odb.Lib.Protobuf.EdaDataFile.FeatureIdRecord featureIdRecords = 2; - case 2: - if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 18)) { - ptr -= 1; - do { - ptr += 1; - ptr = ctx->ParseMessage(_internal_add_featureidrecords(), ptr); - CHK_(ptr); - if (!ctx->DataAvailable(ptr)) break; - } while (::PROTOBUF_NAMESPACE_ID::internal::ExpectTag<18>(ptr)); - } else - goto handle_unusual; - continue; - // optional .Odb.Lib.Protobuf.EdaDataFile.NetRecord.SubnetRecord.FillType fillType = 3; - case 3: - if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 24)) { - uint64_t val = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); - CHK_(ptr); - _internal_set_filltype(static_cast<::Odb::Lib::Protobuf::EdaDataFile_NetRecord_SubnetRecord_FillType>(val)); - } else - goto handle_unusual; - continue; - // optional .Odb.Lib.Protobuf.EdaDataFile.NetRecord.SubnetRecord.CutoutType cutoutType = 4; - case 4: - if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 32)) { - uint64_t val = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); - CHK_(ptr); - _internal_set_cutouttype(static_cast<::Odb::Lib::Protobuf::EdaDataFile_NetRecord_SubnetRecord_CutoutType>(val)); - } else - goto handle_unusual; - continue; - // optional float fillSize = 5; - case 5: - if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 45)) { - _Internal::set_has_fillsize(&has_bits); - _impl_.fillsize_ = ::PROTOBUF_NAMESPACE_ID::internal::UnalignedLoad(ptr); - ptr += sizeof(float); - } else - goto handle_unusual; - continue; - // optional .Odb.Lib.Protobuf.BoardSide side = 6; - case 6: - if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 48)) { - uint64_t val = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); - CHK_(ptr); - _internal_set_side(static_cast<::Odb::Lib::Protobuf::BoardSide>(val)); - } else - goto handle_unusual; - continue; - // optional uint32 componentNumber = 7; - case 7: - if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 56)) { - _Internal::set_has_componentnumber(&has_bits); - _impl_.componentnumber_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr); - CHK_(ptr); - } else - goto handle_unusual; - continue; - // optional uint32 toeprintNumber = 8; - case 8: - if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 64)) { - _Internal::set_has_toeprintnumber(&has_bits); - _impl_.toeprintnumber_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr); - CHK_(ptr); - } else - goto handle_unusual; - continue; - // optional uint32 index = 9; - case 9: - if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 72)) { - _Internal::set_has_index(&has_bits); - _impl_.index_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr); - CHK_(ptr); - } else - goto handle_unusual; - continue; - default: - goto handle_unusual; - } // switch - handle_unusual: - if ((tag == 0) || ((tag & 7) == 4)) { - CHK_(ptr); - ctx->SetLastTag(tag); - goto message_done; - } - ptr = UnknownFieldParse( - tag, - _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(), - ptr, ctx); - CHK_(ptr != nullptr); - } // while -message_done: - _impl_._has_bits_.Or(has_bits); - return ptr; -failure: - ptr = nullptr; - goto message_done; -#undef CHK_ -} - -uint8_t* EdaDataFile_NetRecord_SubnetRecord::_InternalSerialize( - uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { - // @@protoc_insertion_point(serialize_to_array_start:Odb.Lib.Protobuf.EdaDataFile.NetRecord.SubnetRecord) - uint32_t cached_has_bits = 0; - (void) cached_has_bits; - - // optional .Odb.Lib.Protobuf.EdaDataFile.NetRecord.SubnetRecord.Type type = 1; - if (_internal_has_type()) { - target = stream->EnsureSpace(target); - target = ::_pbi::WireFormatLite::WriteEnumToArray( - 1, this->_internal_type(), target); - } - - // repeated .Odb.Lib.Protobuf.EdaDataFile.FeatureIdRecord featureIdRecords = 2; - for (unsigned i = 0, - n = static_cast(this->_internal_featureidrecords_size()); i < n; i++) { - const auto& repfield = this->_internal_featureidrecords(i); - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: - InternalWriteMessage(2, repfield, repfield.GetCachedSize(), target, stream); - } - - // optional .Odb.Lib.Protobuf.EdaDataFile.NetRecord.SubnetRecord.FillType fillType = 3; - if (_internal_has_filltype()) { - target = stream->EnsureSpace(target); - target = ::_pbi::WireFormatLite::WriteEnumToArray( - 3, this->_internal_filltype(), target); - } - - // optional .Odb.Lib.Protobuf.EdaDataFile.NetRecord.SubnetRecord.CutoutType cutoutType = 4; - if (_internal_has_cutouttype()) { - target = stream->EnsureSpace(target); - target = ::_pbi::WireFormatLite::WriteEnumToArray( - 4, this->_internal_cutouttype(), target); - } - - // optional float fillSize = 5; - if (_internal_has_fillsize()) { - target = stream->EnsureSpace(target); - target = ::_pbi::WireFormatLite::WriteFloatToArray(5, this->_internal_fillsize(), target); - } - - // optional .Odb.Lib.Protobuf.BoardSide side = 6; - if (_internal_has_side()) { - target = stream->EnsureSpace(target); - target = ::_pbi::WireFormatLite::WriteEnumToArray( - 6, this->_internal_side(), target); - } - - // optional uint32 componentNumber = 7; - if (_internal_has_componentnumber()) { - target = stream->EnsureSpace(target); - target = ::_pbi::WireFormatLite::WriteUInt32ToArray(7, this->_internal_componentnumber(), target); - } - - // optional uint32 toeprintNumber = 8; - if (_internal_has_toeprintnumber()) { - target = stream->EnsureSpace(target); - target = ::_pbi::WireFormatLite::WriteUInt32ToArray(8, this->_internal_toeprintnumber(), target); - } - - // optional uint32 index = 9; - if (_internal_has_index()) { - target = stream->EnsureSpace(target); - target = ::_pbi::WireFormatLite::WriteUInt32ToArray(9, this->_internal_index(), target); - } - - if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = ::_pbi::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:Odb.Lib.Protobuf.EdaDataFile.NetRecord.SubnetRecord) - return target; -} - -size_t EdaDataFile_NetRecord_SubnetRecord::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:Odb.Lib.Protobuf.EdaDataFile.NetRecord.SubnetRecord) - size_t total_size = 0; - - uint32_t cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused + _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); +} + +#if defined(PROTOBUF_CUSTOM_VTABLE) + ::uint8_t* EdaDataFile_NetRecord_SubnetRecord::_InternalSerialize( + const MessageLite& base, ::uint8_t* target, + ::google::protobuf::io::EpsCopyOutputStream* stream) { + const EdaDataFile_NetRecord_SubnetRecord& this_ = static_cast(base); +#else // PROTOBUF_CUSTOM_VTABLE + ::uint8_t* EdaDataFile_NetRecord_SubnetRecord::_InternalSerialize( + ::uint8_t* target, + ::google::protobuf::io::EpsCopyOutputStream* stream) const { + const EdaDataFile_NetRecord_SubnetRecord& this_ = *this; +#endif // PROTOBUF_CUSTOM_VTABLE + // @@protoc_insertion_point(serialize_to_array_start:Odb.Lib.Protobuf.EdaDataFile.NetRecord.SubnetRecord) + ::uint32_t cached_has_bits = 0; + (void)cached_has_bits; + + cached_has_bits = this_._impl_._has_bits_[0]; + // optional .Odb.Lib.Protobuf.EdaDataFile.NetRecord.SubnetRecord.Type type = 1; + if (cached_has_bits & 0x00000001u) { + target = stream->EnsureSpace(target); + target = ::_pbi::WireFormatLite::WriteEnumToArray( + 1, this_._internal_type(), target); + } + + // repeated .Odb.Lib.Protobuf.EdaDataFile.FeatureIdRecord featureIdRecords = 2; + for (unsigned i = 0, n = static_cast( + this_._internal_featureidrecords_size()); + i < n; i++) { + const auto& repfield = this_._internal_featureidrecords().Get(i); + target = + ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( + 2, repfield, repfield.GetCachedSize(), + target, stream); + } + + // optional .Odb.Lib.Protobuf.EdaDataFile.NetRecord.SubnetRecord.FillType fillType = 3; + if (cached_has_bits & 0x00000002u) { + target = stream->EnsureSpace(target); + target = ::_pbi::WireFormatLite::WriteEnumToArray( + 3, this_._internal_filltype(), target); + } + + // optional .Odb.Lib.Protobuf.EdaDataFile.NetRecord.SubnetRecord.CutoutType cutoutType = 4; + if (cached_has_bits & 0x00000004u) { + target = stream->EnsureSpace(target); + target = ::_pbi::WireFormatLite::WriteEnumToArray( + 4, this_._internal_cutouttype(), target); + } + + // optional float fillSize = 5; + if (cached_has_bits & 0x00000008u) { + target = stream->EnsureSpace(target); + target = ::_pbi::WireFormatLite::WriteFloatToArray( + 5, this_._internal_fillsize(), target); + } + + // optional .Odb.Lib.Protobuf.BoardSide side = 6; + if (cached_has_bits & 0x00000010u) { + target = stream->EnsureSpace(target); + target = ::_pbi::WireFormatLite::WriteEnumToArray( + 6, this_._internal_side(), target); + } + + // optional uint32 componentNumber = 7; + if (cached_has_bits & 0x00000020u) { + target = stream->EnsureSpace(target); + target = ::_pbi::WireFormatLite::WriteUInt32ToArray( + 7, this_._internal_componentnumber(), target); + } + + // optional uint32 toeprintNumber = 8; + if (cached_has_bits & 0x00000040u) { + target = stream->EnsureSpace(target); + target = ::_pbi::WireFormatLite::WriteUInt32ToArray( + 8, this_._internal_toeprintnumber(), target); + } + + // optional uint32 index = 9; + if (cached_has_bits & 0x00000080u) { + target = stream->EnsureSpace(target); + target = ::_pbi::WireFormatLite::WriteUInt32ToArray( + 9, this_._internal_index(), target); + } + + if (PROTOBUF_PREDICT_FALSE(this_._internal_metadata_.have_unknown_fields())) { + target = + ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( + this_._internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); + } + // @@protoc_insertion_point(serialize_to_array_end:Odb.Lib.Protobuf.EdaDataFile.NetRecord.SubnetRecord) + return target; + } + +#if defined(PROTOBUF_CUSTOM_VTABLE) + ::size_t EdaDataFile_NetRecord_SubnetRecord::ByteSizeLong(const MessageLite& base) { + const EdaDataFile_NetRecord_SubnetRecord& this_ = static_cast(base); +#else // PROTOBUF_CUSTOM_VTABLE + ::size_t EdaDataFile_NetRecord_SubnetRecord::ByteSizeLong() const { + const EdaDataFile_NetRecord_SubnetRecord& this_ = *this; +#endif // PROTOBUF_CUSTOM_VTABLE + // @@protoc_insertion_point(message_byte_size_start:Odb.Lib.Protobuf.EdaDataFile.NetRecord.SubnetRecord) + ::size_t total_size = 0; + + ::uint32_t cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void)cached_has_bits; + + ::_pbi::Prefetch5LinesFrom7Lines(&this_); + { + // repeated .Odb.Lib.Protobuf.EdaDataFile.FeatureIdRecord featureIdRecords = 2; + { + total_size += 1UL * this_._internal_featureidrecords_size(); + for (const auto& msg : this_._internal_featureidrecords()) { + total_size += ::google::protobuf::internal::WireFormatLite::MessageSize(msg); + } + } + } + cached_has_bits = this_._impl_._has_bits_[0]; + if (cached_has_bits & 0x000000ffu) { + // optional .Odb.Lib.Protobuf.EdaDataFile.NetRecord.SubnetRecord.Type type = 1; + if (cached_has_bits & 0x00000001u) { + total_size += 1 + + ::_pbi::WireFormatLite::EnumSize(this_._internal_type()); + } + // optional .Odb.Lib.Protobuf.EdaDataFile.NetRecord.SubnetRecord.FillType fillType = 3; + if (cached_has_bits & 0x00000002u) { + total_size += 1 + + ::_pbi::WireFormatLite::EnumSize(this_._internal_filltype()); + } + // optional .Odb.Lib.Protobuf.EdaDataFile.NetRecord.SubnetRecord.CutoutType cutoutType = 4; + if (cached_has_bits & 0x00000004u) { + total_size += 1 + + ::_pbi::WireFormatLite::EnumSize(this_._internal_cutouttype()); + } + // optional float fillSize = 5; + if (cached_has_bits & 0x00000008u) { + total_size += 5; + } + // optional .Odb.Lib.Protobuf.BoardSide side = 6; + if (cached_has_bits & 0x00000010u) { + total_size += 1 + + ::_pbi::WireFormatLite::EnumSize(this_._internal_side()); + } + // optional uint32 componentNumber = 7; + if (cached_has_bits & 0x00000020u) { + total_size += ::_pbi::WireFormatLite::UInt32SizePlusOne( + this_._internal_componentnumber()); + } + // optional uint32 toeprintNumber = 8; + if (cached_has_bits & 0x00000040u) { + total_size += ::_pbi::WireFormatLite::UInt32SizePlusOne( + this_._internal_toeprintnumber()); + } + // optional uint32 index = 9; + if (cached_has_bits & 0x00000080u) { + total_size += ::_pbi::WireFormatLite::UInt32SizePlusOne( + this_._internal_index()); + } + } + return this_.MaybeComputeUnknownFieldsSize(total_size, + &this_._impl_._cached_size_); + } + +void EdaDataFile_NetRecord_SubnetRecord::MergeImpl(::google::protobuf::MessageLite& to_msg, const ::google::protobuf::MessageLite& from_msg) { + auto* const _this = static_cast(&to_msg); + auto& from = static_cast(from_msg); + // @@protoc_insertion_point(class_specific_merge_from_start:Odb.Lib.Protobuf.EdaDataFile.NetRecord.SubnetRecord) + ABSL_DCHECK_NE(&from, _this); + ::uint32_t cached_has_bits = 0; (void) cached_has_bits; - // repeated .Odb.Lib.Protobuf.EdaDataFile.FeatureIdRecord featureIdRecords = 2; - total_size += 1UL * this->_internal_featureidrecords_size(); - for (const auto& msg : this->_impl_.featureidrecords_) { - total_size += - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(msg); - } - - cached_has_bits = _impl_._has_bits_[0]; + _this->_internal_mutable_featureidrecords()->MergeFrom( + from._internal_featureidrecords()); + cached_has_bits = from._impl_._has_bits_[0]; if (cached_has_bits & 0x000000ffu) { - // optional .Odb.Lib.Protobuf.EdaDataFile.NetRecord.SubnetRecord.Type type = 1; if (cached_has_bits & 0x00000001u) { - total_size += 1 + - ::_pbi::WireFormatLite::EnumSize(this->_internal_type()); + _this->_impl_.type_ = from._impl_.type_; } - - // optional .Odb.Lib.Protobuf.EdaDataFile.NetRecord.SubnetRecord.FillType fillType = 3; if (cached_has_bits & 0x00000002u) { - total_size += 1 + - ::_pbi::WireFormatLite::EnumSize(this->_internal_filltype()); + _this->_impl_.filltype_ = from._impl_.filltype_; } - - // optional .Odb.Lib.Protobuf.EdaDataFile.NetRecord.SubnetRecord.CutoutType cutoutType = 4; if (cached_has_bits & 0x00000004u) { - total_size += 1 + - ::_pbi::WireFormatLite::EnumSize(this->_internal_cutouttype()); + _this->_impl_.cutouttype_ = from._impl_.cutouttype_; } - - // optional float fillSize = 5; if (cached_has_bits & 0x00000008u) { - total_size += 1 + 4; + _this->_impl_.fillsize_ = from._impl_.fillsize_; } - - // optional .Odb.Lib.Protobuf.BoardSide side = 6; if (cached_has_bits & 0x00000010u) { - total_size += 1 + - ::_pbi::WireFormatLite::EnumSize(this->_internal_side()); + _this->_impl_.side_ = from._impl_.side_; } - - // optional uint32 componentNumber = 7; if (cached_has_bits & 0x00000020u) { - total_size += ::_pbi::WireFormatLite::UInt32SizePlusOne(this->_internal_componentnumber()); + _this->_impl_.componentnumber_ = from._impl_.componentnumber_; } - - // optional uint32 toeprintNumber = 8; if (cached_has_bits & 0x00000040u) { - total_size += ::_pbi::WireFormatLite::UInt32SizePlusOne(this->_internal_toeprintnumber()); + _this->_impl_.toeprintnumber_ = from._impl_.toeprintnumber_; } - - // optional uint32 index = 9; if (cached_has_bits & 0x00000080u) { - total_size += ::_pbi::WireFormatLite::UInt32SizePlusOne(this->_internal_index()); + _this->_impl_.index_ = from._impl_.index_; } - } - return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); + _this->_impl_._has_bits_[0] |= cached_has_bits; + _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); } -const ::PROTOBUF_NAMESPACE_ID::Message::ClassData EdaDataFile_NetRecord_SubnetRecord::_class_data_ = { - ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSourceCheck, - EdaDataFile_NetRecord_SubnetRecord::MergeImpl -}; -const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*EdaDataFile_NetRecord_SubnetRecord::GetClassData() const { return &_class_data_; } - +void EdaDataFile_NetRecord_SubnetRecord::CopyFrom(const EdaDataFile_NetRecord_SubnetRecord& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:Odb.Lib.Protobuf.EdaDataFile.NetRecord.SubnetRecord) + if (&from == this) return; + Clear(); + MergeFrom(from); +} -void EdaDataFile_NetRecord_SubnetRecord::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg) { - auto* const _this = static_cast(&to_msg); - auto& from = static_cast(from_msg); - // @@protoc_insertion_point(class_specific_merge_from_start:Odb.Lib.Protobuf.EdaDataFile.NetRecord.SubnetRecord) - GOOGLE_DCHECK_NE(&from, _this); - uint32_t cached_has_bits = 0; - (void) cached_has_bits; - _this->_impl_.featureidrecords_.MergeFrom(from._impl_.featureidrecords_); - cached_has_bits = from._impl_._has_bits_[0]; - if (cached_has_bits & 0x000000ffu) { - if (cached_has_bits & 0x00000001u) { - _this->_impl_.type_ = from._impl_.type_; - } - if (cached_has_bits & 0x00000002u) { - _this->_impl_.filltype_ = from._impl_.filltype_; - } - if (cached_has_bits & 0x00000004u) { - _this->_impl_.cutouttype_ = from._impl_.cutouttype_; - } - if (cached_has_bits & 0x00000008u) { - _this->_impl_.fillsize_ = from._impl_.fillsize_; - } - if (cached_has_bits & 0x00000010u) { - _this->_impl_.side_ = from._impl_.side_; - } - if (cached_has_bits & 0x00000020u) { - _this->_impl_.componentnumber_ = from._impl_.componentnumber_; - } - if (cached_has_bits & 0x00000040u) { - _this->_impl_.toeprintnumber_ = from._impl_.toeprintnumber_; - } - if (cached_has_bits & 0x00000080u) { - _this->_impl_.index_ = from._impl_.index_; - } - _this->_impl_._has_bits_[0] |= cached_has_bits; - } - _this->_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); -} - -void EdaDataFile_NetRecord_SubnetRecord::CopyFrom(const EdaDataFile_NetRecord_SubnetRecord& from) { -// @@protoc_insertion_point(class_specific_copy_from_start:Odb.Lib.Protobuf.EdaDataFile.NetRecord.SubnetRecord) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -bool EdaDataFile_NetRecord_SubnetRecord::IsInitialized() const { - return true; -} - -void EdaDataFile_NetRecord_SubnetRecord::InternalSwap(EdaDataFile_NetRecord_SubnetRecord* other) { +void EdaDataFile_NetRecord_SubnetRecord::InternalSwap(EdaDataFile_NetRecord_SubnetRecord* PROTOBUF_RESTRICT other) { using std::swap; _internal_metadata_.InternalSwap(&other->_internal_metadata_); swap(_impl_._has_bits_[0], other->_impl_._has_bits_[0]); _impl_.featureidrecords_.InternalSwap(&other->_impl_.featureidrecords_); - ::PROTOBUF_NAMESPACE_ID::internal::memswap< + ::google::protobuf::internal::memswap< PROTOBUF_FIELD_OFFSET(EdaDataFile_NetRecord_SubnetRecord, _impl_.index_) + sizeof(EdaDataFile_NetRecord_SubnetRecord::_impl_.index_) - PROTOBUF_FIELD_OFFSET(EdaDataFile_NetRecord_SubnetRecord, _impl_.type_)>( @@ -1558,144 +1735,315 @@ void EdaDataFile_NetRecord_SubnetRecord::InternalSwap(EdaDataFile_NetRecord_Subn reinterpret_cast(&other->_impl_.type_)); } -::PROTOBUF_NAMESPACE_ID::Metadata EdaDataFile_NetRecord_SubnetRecord::GetMetadata() const { - return ::_pbi::AssignDescriptors( - &descriptor_table_edadatafile_2eproto_getter, &descriptor_table_edadatafile_2eproto_once, - file_level_metadata_edadatafile_2eproto[1]); +::google::protobuf::Metadata EdaDataFile_NetRecord_SubnetRecord::GetMetadata() const { + return ::google::protobuf::Message::GetMetadataImpl(GetClassData()->full()); } - // =================================================================== -EdaDataFile_NetRecord_AttributeLookupTableEntry_DoNotUse::EdaDataFile_NetRecord_AttributeLookupTableEntry_DoNotUse() {} -EdaDataFile_NetRecord_AttributeLookupTableEntry_DoNotUse::EdaDataFile_NetRecord_AttributeLookupTableEntry_DoNotUse(::PROTOBUF_NAMESPACE_ID::Arena* arena) - : SuperType(arena) {} -void EdaDataFile_NetRecord_AttributeLookupTableEntry_DoNotUse::MergeFrom(const EdaDataFile_NetRecord_AttributeLookupTableEntry_DoNotUse& other) { - MergeFromInternal(other); -} -::PROTOBUF_NAMESPACE_ID::Metadata EdaDataFile_NetRecord_AttributeLookupTableEntry_DoNotUse::GetMetadata() const { - return ::_pbi::AssignDescriptors( - &descriptor_table_edadatafile_2eproto_getter, &descriptor_table_edadatafile_2eproto_once, - file_level_metadata_edadatafile_2eproto[2]); -} +#if defined(PROTOBUF_CUSTOM_VTABLE) + EdaDataFile_NetRecord_AttributeLookupTableEntry_DoNotUse::EdaDataFile_NetRecord_AttributeLookupTableEntry_DoNotUse() : SuperType(_class_data_.base()) {} + EdaDataFile_NetRecord_AttributeLookupTableEntry_DoNotUse::EdaDataFile_NetRecord_AttributeLookupTableEntry_DoNotUse(::google::protobuf::Arena* arena) + : SuperType(arena, _class_data_.base()) {} +#else // PROTOBUF_CUSTOM_VTABLE + EdaDataFile_NetRecord_AttributeLookupTableEntry_DoNotUse::EdaDataFile_NetRecord_AttributeLookupTableEntry_DoNotUse() : SuperType() {} + EdaDataFile_NetRecord_AttributeLookupTableEntry_DoNotUse::EdaDataFile_NetRecord_AttributeLookupTableEntry_DoNotUse(::google::protobuf::Arena* arena) : SuperType(arena) {} +#endif // PROTOBUF_CUSTOM_VTABLE + inline void* EdaDataFile_NetRecord_AttributeLookupTableEntry_DoNotUse::PlacementNew_(const void*, void* mem, + ::google::protobuf::Arena* arena) { + return ::new (mem) EdaDataFile_NetRecord_AttributeLookupTableEntry_DoNotUse(arena); + } + constexpr auto EdaDataFile_NetRecord_AttributeLookupTableEntry_DoNotUse::InternalNewImpl_() { + return ::google::protobuf::internal::MessageCreator::CopyInit(sizeof(EdaDataFile_NetRecord_AttributeLookupTableEntry_DoNotUse), + alignof(EdaDataFile_NetRecord_AttributeLookupTableEntry_DoNotUse)); + } + PROTOBUF_CONSTINIT + PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 + const ::google::protobuf::internal::ClassDataFull EdaDataFile_NetRecord_AttributeLookupTableEntry_DoNotUse::_class_data_ = { + ::google::protobuf::internal::ClassData{ + &_EdaDataFile_NetRecord_AttributeLookupTableEntry_DoNotUse_default_instance_._instance, + &_table_.header, + nullptr, // OnDemandRegisterArenaDtor + nullptr, // IsInitialized + &EdaDataFile_NetRecord_AttributeLookupTableEntry_DoNotUse::MergeImpl, + ::google::protobuf::Message::GetNewImpl(), + #if defined(PROTOBUF_CUSTOM_VTABLE) + &EdaDataFile_NetRecord_AttributeLookupTableEntry_DoNotUse::SharedDtor, + static_cast( + &EdaDataFile_NetRecord_AttributeLookupTableEntry_DoNotUse::ClearImpl), + ::google::protobuf::Message::ByteSizeLongImpl, ::google::protobuf::Message::_InternalSerializeImpl + , + #endif // PROTOBUF_CUSTOM_VTABLE + PROTOBUF_FIELD_OFFSET(EdaDataFile_NetRecord_AttributeLookupTableEntry_DoNotUse, _impl_._cached_size_), + false, + }, + &EdaDataFile_NetRecord_AttributeLookupTableEntry_DoNotUse::kDescriptorMethods, + &descriptor_table_edadatafile_2eproto, + nullptr, // tracker + }; + const ::google::protobuf::internal::ClassData* EdaDataFile_NetRecord_AttributeLookupTableEntry_DoNotUse::GetClassData() const { + ::google::protobuf::internal::PrefetchToLocalCache(&_class_data_); + ::google::protobuf::internal::PrefetchToLocalCache(_class_data_.tc_table); + return _class_data_.base(); + } +PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 +const ::_pbi::TcParseTable<1, 2, 0, 81, 2> EdaDataFile_NetRecord_AttributeLookupTableEntry_DoNotUse::_table_ = { + { + PROTOBUF_FIELD_OFFSET(EdaDataFile_NetRecord_AttributeLookupTableEntry_DoNotUse, _impl_._has_bits_), + 0, // no _extensions_ + 2, 8, // max_field_number, fast_idx_mask + offsetof(decltype(_table_), field_lookup_table), + 4294967292, // skipmap + offsetof(decltype(_table_), field_entries), + 2, // num_field_entries + 0, // num_aux_entries + offsetof(decltype(_table_), field_names), // no aux_entries + _class_data_.base(), + nullptr, // post_loop_handler + ::_pbi::TcParser::DiscardEverythingFallback, // fallback + #ifdef PROTOBUF_PREFETCH_PARSE_TABLE + ::_pbi::TcParser::GetTable<::Odb::Lib::Protobuf::EdaDataFile_NetRecord_AttributeLookupTableEntry_DoNotUse>(), // to_prefetch + #endif // PROTOBUF_PREFETCH_PARSE_TABLE + }, {{ + // string value = 2; + {::_pbi::TcParser::FastUS1, + {18, 63, 0, PROTOBUF_FIELD_OFFSET(EdaDataFile_NetRecord_AttributeLookupTableEntry_DoNotUse, _impl_.value_)}}, + // string key = 1; + {::_pbi::TcParser::FastUS1, + {10, 63, 0, PROTOBUF_FIELD_OFFSET(EdaDataFile_NetRecord_AttributeLookupTableEntry_DoNotUse, _impl_.key_)}}, + }}, {{ + 65535, 65535 + }}, {{ + // string key = 1; + {PROTOBUF_FIELD_OFFSET(EdaDataFile_NetRecord_AttributeLookupTableEntry_DoNotUse, _impl_.key_), -1, 0, + (0 | ::_fl::kFcSingular | ::_fl::kUtf8String | ::_fl::kRepAString)}, + // string value = 2; + {PROTOBUF_FIELD_OFFSET(EdaDataFile_NetRecord_AttributeLookupTableEntry_DoNotUse, _impl_.value_), -1, 0, + (0 | ::_fl::kFcSingular | ::_fl::kUtf8String | ::_fl::kRepAString)}, + }}, + // no aux_entries + {{ + "\100\3\5\0\0\0\0\0" + "Odb.Lib.Protobuf.EdaDataFile.NetRecord.AttributeLookupTableEntry" + "key" + "value" + }}, +}; // =================================================================== class EdaDataFile_NetRecord::_Internal { public: - using HasBits = decltype(std::declval()._impl_._has_bits_); - static void set_has_name(HasBits* has_bits) { - (*has_bits)[0] |= 1u; - } - static void set_has_attributesidstring(HasBits* has_bits) { - (*has_bits)[0] |= 2u; - } - static void set_has_index(HasBits* has_bits) { - (*has_bits)[0] |= 4u; - } + using HasBits = + decltype(std::declval()._impl_._has_bits_); + static constexpr ::int32_t kHasBitsOffset = + 8 * PROTOBUF_FIELD_OFFSET(EdaDataFile_NetRecord, _impl_._has_bits_); }; void EdaDataFile_NetRecord::clear_propertyrecords() { + ::google::protobuf::internal::TSanWrite(&_impl_); _impl_.propertyrecords_.Clear(); } -EdaDataFile_NetRecord::EdaDataFile_NetRecord(::PROTOBUF_NAMESPACE_ID::Arena* arena, - bool is_message_owned) - : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned) { - SharedCtor(arena, is_message_owned); - if (arena != nullptr && !is_message_owned) { - arena->OwnCustomDestructor(this, &EdaDataFile_NetRecord::ArenaDtor); - } +EdaDataFile_NetRecord::EdaDataFile_NetRecord(::google::protobuf::Arena* arena) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : ::google::protobuf::Message(arena, _class_data_.base()) { +#else // PROTOBUF_CUSTOM_VTABLE + : ::google::protobuf::Message(arena) { +#endif // PROTOBUF_CUSTOM_VTABLE + SharedCtor(arena); // @@protoc_insertion_point(arena_constructor:Odb.Lib.Protobuf.EdaDataFile.NetRecord) } -EdaDataFile_NetRecord::EdaDataFile_NetRecord(const EdaDataFile_NetRecord& from) - : ::PROTOBUF_NAMESPACE_ID::Message() { - EdaDataFile_NetRecord* const _this = this; (void)_this; - new (&_impl_) Impl_{ - decltype(_impl_._has_bits_){from._impl_._has_bits_} - , /*decltype(_impl_._cached_size_)*/{} - , decltype(_impl_.subnetrecords_){from._impl_.subnetrecords_} - , decltype(_impl_.propertyrecords_){from._impl_.propertyrecords_} - , /*decltype(_impl_.attributelookuptable_)*/{} - , decltype(_impl_.name_){} - , decltype(_impl_.attributesidstring_){} - , decltype(_impl_.index_){}}; - - _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); - _this->_impl_.attributelookuptable_.MergeFrom(from._impl_.attributelookuptable_); - _impl_.name_.InitDefault(); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - _impl_.name_.Set("", GetArenaForAllocation()); - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (from._internal_has_name()) { - _this->_impl_.name_.Set(from._internal_name(), - _this->GetArenaForAllocation()); - } - _impl_.attributesidstring_.InitDefault(); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - _impl_.attributesidstring_.Set("", GetArenaForAllocation()); - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (from._internal_has_attributesidstring()) { - _this->_impl_.attributesidstring_.Set(from._internal_attributesidstring(), - _this->GetArenaForAllocation()); - } - _this->_impl_.index_ = from._impl_.index_; +inline PROTOBUF_NDEBUG_INLINE EdaDataFile_NetRecord::Impl_::Impl_( + ::google::protobuf::internal::InternalVisibility visibility, ::google::protobuf::Arena* arena, + const Impl_& from, const ::Odb::Lib::Protobuf::EdaDataFile_NetRecord& from_msg) + : _has_bits_{from._has_bits_}, + _cached_size_{0}, + subnetrecords_{visibility, arena, from.subnetrecords_}, + propertyrecords_{visibility, arena, from.propertyrecords_}, + attributelookuptable_{visibility, arena, from.attributelookuptable_}, + name_(arena, from.name_), + attributesidstring_(arena, from.attributesidstring_) {} + +EdaDataFile_NetRecord::EdaDataFile_NetRecord( + ::google::protobuf::Arena* arena, + const EdaDataFile_NetRecord& from) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : ::google::protobuf::Message(arena, _class_data_.base()) { +#else // PROTOBUF_CUSTOM_VTABLE + : ::google::protobuf::Message(arena) { +#endif // PROTOBUF_CUSTOM_VTABLE + EdaDataFile_NetRecord* const _this = this; + (void)_this; + _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( + from._internal_metadata_); + new (&_impl_) Impl_(internal_visibility(), arena, from._impl_, from); + _impl_.index_ = from._impl_.index_; + // @@protoc_insertion_point(copy_constructor:Odb.Lib.Protobuf.EdaDataFile.NetRecord) } +inline PROTOBUF_NDEBUG_INLINE EdaDataFile_NetRecord::Impl_::Impl_( + ::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* arena) + : _cached_size_{0}, + subnetrecords_{visibility, arena}, + propertyrecords_{visibility, arena}, + attributelookuptable_{visibility, arena}, + name_(arena), + attributesidstring_(arena) {} -inline void EdaDataFile_NetRecord::SharedCtor( - ::_pb::Arena* arena, bool is_message_owned) { - (void)arena; - (void)is_message_owned; - new (&_impl_) Impl_{ - decltype(_impl_._has_bits_){} - , /*decltype(_impl_._cached_size_)*/{} - , decltype(_impl_.subnetrecords_){arena} - , decltype(_impl_.propertyrecords_){arena} - , /*decltype(_impl_.attributelookuptable_)*/{::_pbi::ArenaInitialized(), arena} - , decltype(_impl_.name_){} - , decltype(_impl_.attributesidstring_){} - , decltype(_impl_.index_){0u} - }; - _impl_.name_.InitDefault(); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - _impl_.name_.Set("", GetArenaForAllocation()); - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING - _impl_.attributesidstring_.InitDefault(); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - _impl_.attributesidstring_.Set("", GetArenaForAllocation()); - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING +inline void EdaDataFile_NetRecord::SharedCtor(::_pb::Arena* arena) { + new (&_impl_) Impl_(internal_visibility(), arena); + _impl_.index_ = {}; } - EdaDataFile_NetRecord::~EdaDataFile_NetRecord() { // @@protoc_insertion_point(destructor:Odb.Lib.Protobuf.EdaDataFile.NetRecord) - if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) { - (void)arena; - ArenaDtor(this); - return; - } - SharedDtor(); -} - -inline void EdaDataFile_NetRecord::SharedDtor() { - GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); - _impl_.subnetrecords_.~RepeatedPtrField(); - _impl_.propertyrecords_.~RepeatedPtrField(); - _impl_.attributelookuptable_.Destruct(); - _impl_.attributelookuptable_.~MapField(); - _impl_.name_.Destroy(); - _impl_.attributesidstring_.Destroy(); -} - -void EdaDataFile_NetRecord::ArenaDtor(void* object) { - EdaDataFile_NetRecord* _this = reinterpret_cast< EdaDataFile_NetRecord* >(object); - _this->_impl_.attributelookuptable_.Destruct(); -} -void EdaDataFile_NetRecord::SetCachedSize(int size) const { - _impl_._cached_size_.Set(size); -} + SharedDtor(*this); +} +inline void EdaDataFile_NetRecord::SharedDtor(MessageLite& self) { + EdaDataFile_NetRecord& this_ = static_cast(self); + this_._internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); + ABSL_DCHECK(this_.GetArena() == nullptr); + this_._impl_.name_.Destroy(); + this_._impl_.attributesidstring_.Destroy(); + this_._impl_.~Impl_(); +} + +inline void* EdaDataFile_NetRecord::PlacementNew_(const void*, void* mem, + ::google::protobuf::Arena* arena) { + return ::new (mem) EdaDataFile_NetRecord(arena); +} +constexpr auto EdaDataFile_NetRecord::InternalNewImpl_() { + constexpr auto arena_bits = ::google::protobuf::internal::EncodePlacementArenaOffsets({ + PROTOBUF_FIELD_OFFSET(EdaDataFile_NetRecord, _impl_.subnetrecords_) + + decltype(EdaDataFile_NetRecord::_impl_.subnetrecords_):: + InternalGetArenaOffset( + ::google::protobuf::Message::internal_visibility()), + PROTOBUF_FIELD_OFFSET(EdaDataFile_NetRecord, _impl_.propertyrecords_) + + decltype(EdaDataFile_NetRecord::_impl_.propertyrecords_):: + InternalGetArenaOffset( + ::google::protobuf::Message::internal_visibility()), + PROTOBUF_FIELD_OFFSET(EdaDataFile_NetRecord, _impl_.attributelookuptable_) + + decltype(EdaDataFile_NetRecord::_impl_.attributelookuptable_):: + InternalGetArenaOffset( + ::google::protobuf::Message::internal_visibility()), + PROTOBUF_FIELD_OFFSET(EdaDataFile_NetRecord, _impl_.attributelookuptable_) + + decltype(EdaDataFile_NetRecord::_impl_.attributelookuptable_):: + InternalGetArenaOffsetAlt( + ::google::protobuf::Message::internal_visibility()), + }); + if (arena_bits.has_value()) { + return ::google::protobuf::internal::MessageCreator::CopyInit( + sizeof(EdaDataFile_NetRecord), alignof(EdaDataFile_NetRecord), *arena_bits); + } else { + return ::google::protobuf::internal::MessageCreator(&EdaDataFile_NetRecord::PlacementNew_, + sizeof(EdaDataFile_NetRecord), + alignof(EdaDataFile_NetRecord)); + } +} +PROTOBUF_CONSTINIT +PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 +const ::google::protobuf::internal::ClassDataFull EdaDataFile_NetRecord::_class_data_ = { + ::google::protobuf::internal::ClassData{ + &_EdaDataFile_NetRecord_default_instance_._instance, + &_table_.header, + nullptr, // OnDemandRegisterArenaDtor + nullptr, // IsInitialized + &EdaDataFile_NetRecord::MergeImpl, + ::google::protobuf::Message::GetNewImpl(), +#if defined(PROTOBUF_CUSTOM_VTABLE) + &EdaDataFile_NetRecord::SharedDtor, + ::google::protobuf::Message::GetClearImpl(), &EdaDataFile_NetRecord::ByteSizeLong, + &EdaDataFile_NetRecord::_InternalSerialize, +#endif // PROTOBUF_CUSTOM_VTABLE + PROTOBUF_FIELD_OFFSET(EdaDataFile_NetRecord, _impl_._cached_size_), + false, + }, + &EdaDataFile_NetRecord::kDescriptorMethods, + &descriptor_table_edadatafile_2eproto, + nullptr, // tracker +}; +const ::google::protobuf::internal::ClassData* EdaDataFile_NetRecord::GetClassData() const { + ::google::protobuf::internal::PrefetchToLocalCache(&_class_data_); + ::google::protobuf::internal::PrefetchToLocalCache(_class_data_.tc_table); + return _class_data_.base(); +} +PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 +const ::_pbi::TcParseTable<3, 6, 3, 89, 2> EdaDataFile_NetRecord::_table_ = { + { + PROTOBUF_FIELD_OFFSET(EdaDataFile_NetRecord, _impl_._has_bits_), + 0, // no _extensions_ + 6, 56, // max_field_number, fast_idx_mask + offsetof(decltype(_table_), field_lookup_table), + 4294967232, // skipmap + offsetof(decltype(_table_), field_entries), + 6, // num_field_entries + 3, // num_aux_entries + offsetof(decltype(_table_), aux_entries), + _class_data_.base(), + nullptr, // post_loop_handler + ::_pbi::TcParser::GenericFallback, // fallback + #ifdef PROTOBUF_PREFETCH_PARSE_TABLE + ::_pbi::TcParser::GetTable<::Odb::Lib::Protobuf::EdaDataFile_NetRecord>(), // to_prefetch + #endif // PROTOBUF_PREFETCH_PARSE_TABLE + }, {{ + {::_pbi::TcParser::MiniParse, {}}, + // optional string name = 1; + {::_pbi::TcParser::FastUS1, + {10, 0, 0, PROTOBUF_FIELD_OFFSET(EdaDataFile_NetRecord, _impl_.name_)}}, + // optional string attributesIdString = 2; + {::_pbi::TcParser::FastUS1, + {18, 1, 0, PROTOBUF_FIELD_OFFSET(EdaDataFile_NetRecord, _impl_.attributesidstring_)}}, + // optional uint32 index = 3; + {::_pbi::TcParser::SingularVarintNoZag1<::uint32_t, offsetof(EdaDataFile_NetRecord, _impl_.index_), 2>(), + {24, 2, 0, PROTOBUF_FIELD_OFFSET(EdaDataFile_NetRecord, _impl_.index_)}}, + // repeated .Odb.Lib.Protobuf.EdaDataFile.NetRecord.SubnetRecord subnetRecords = 4; + {::_pbi::TcParser::FastMtR1, + {34, 63, 0, PROTOBUF_FIELD_OFFSET(EdaDataFile_NetRecord, _impl_.subnetrecords_)}}, + // repeated .Odb.Lib.Protobuf.PropertyRecord propertyRecords = 5; + {::_pbi::TcParser::FastMtR1, + {42, 63, 1, PROTOBUF_FIELD_OFFSET(EdaDataFile_NetRecord, _impl_.propertyrecords_)}}, + {::_pbi::TcParser::MiniParse, {}}, + {::_pbi::TcParser::MiniParse, {}}, + }}, {{ + 65535, 65535 + }}, {{ + // optional string name = 1; + {PROTOBUF_FIELD_OFFSET(EdaDataFile_NetRecord, _impl_.name_), _Internal::kHasBitsOffset + 0, 0, + (0 | ::_fl::kFcOptional | ::_fl::kUtf8String | ::_fl::kRepAString)}, + // optional string attributesIdString = 2; + {PROTOBUF_FIELD_OFFSET(EdaDataFile_NetRecord, _impl_.attributesidstring_), _Internal::kHasBitsOffset + 1, 0, + (0 | ::_fl::kFcOptional | ::_fl::kUtf8String | ::_fl::kRepAString)}, + // optional uint32 index = 3; + {PROTOBUF_FIELD_OFFSET(EdaDataFile_NetRecord, _impl_.index_), _Internal::kHasBitsOffset + 2, 0, + (0 | ::_fl::kFcOptional | ::_fl::kUInt32)}, + // repeated .Odb.Lib.Protobuf.EdaDataFile.NetRecord.SubnetRecord subnetRecords = 4; + {PROTOBUF_FIELD_OFFSET(EdaDataFile_NetRecord, _impl_.subnetrecords_), -1, 0, + (0 | ::_fl::kFcRepeated | ::_fl::kMessage | ::_fl::kTvTable)}, + // repeated .Odb.Lib.Protobuf.PropertyRecord propertyRecords = 5; + {PROTOBUF_FIELD_OFFSET(EdaDataFile_NetRecord, _impl_.propertyrecords_), -1, 1, + (0 | ::_fl::kFcRepeated | ::_fl::kMessage | ::_fl::kTvTable)}, + // map attributeLookupTable = 6; + {PROTOBUF_FIELD_OFFSET(EdaDataFile_NetRecord, _impl_.attributelookuptable_), -1, 2, + (0 | ::_fl::kFcRepeated | ::_fl::kMap)}, + }}, {{ + {::_pbi::TcParser::GetTable<::Odb::Lib::Protobuf::EdaDataFile_NetRecord_SubnetRecord>()}, + {::_pbi::TcParser::GetTable<::Odb::Lib::Protobuf::PropertyRecord>()}, + {::_pbi::TcParser::GetMapAuxInfo< + decltype(EdaDataFile_NetRecord()._impl_.attributelookuptable_)>( + 1, 0, 0, 9, + 9)}, + }}, {{ + "\46\4\22\0\0\0\24\0" + "Odb.Lib.Protobuf.EdaDataFile.NetRecord" + "name" + "attributesIdString" + "attributeLookupTable" + }}, +}; -void EdaDataFile_NetRecord::Clear() { +PROTOBUF_NOINLINE void EdaDataFile_NetRecord::Clear() { // @@protoc_insertion_point(message_clear_start:Odb.Lib.Protobuf.EdaDataFile.NetRecord) - uint32_t cached_has_bits = 0; + ::google::protobuf::internal::TSanWrite(&_impl_); + ::uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; @@ -1713,267 +2061,187 @@ void EdaDataFile_NetRecord::Clear() { } _impl_.index_ = 0u; _impl_._has_bits_.Clear(); - _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); -} - -const char* EdaDataFile_NetRecord::_InternalParse(const char* ptr, ::_pbi::ParseContext* ctx) { -#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure - _Internal::HasBits has_bits{}; - while (!ctx->Done(&ptr)) { - uint32_t tag; - ptr = ::_pbi::ReadTag(ptr, &tag); - switch (tag >> 3) { - // optional string name = 1; - case 1: - if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 10)) { - auto str = _internal_mutable_name(); - ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); - CHK_(ptr); - CHK_(::_pbi::VerifyUTF8(str, "Odb.Lib.Protobuf.EdaDataFile.NetRecord.name")); - } else - goto handle_unusual; - continue; - // optional string attributesIdString = 2; - case 2: - if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 18)) { - auto str = _internal_mutable_attributesidstring(); - ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); - CHK_(ptr); - CHK_(::_pbi::VerifyUTF8(str, "Odb.Lib.Protobuf.EdaDataFile.NetRecord.attributesIdString")); - } else - goto handle_unusual; - continue; - // optional uint32 index = 3; - case 3: - if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 24)) { - _Internal::set_has_index(&has_bits); - _impl_.index_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr); - CHK_(ptr); - } else - goto handle_unusual; - continue; - // repeated .Odb.Lib.Protobuf.EdaDataFile.NetRecord.SubnetRecord subnetRecords = 4; - case 4: - if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 34)) { - ptr -= 1; - do { - ptr += 1; - ptr = ctx->ParseMessage(_internal_add_subnetrecords(), ptr); - CHK_(ptr); - if (!ctx->DataAvailable(ptr)) break; - } while (::PROTOBUF_NAMESPACE_ID::internal::ExpectTag<34>(ptr)); - } else - goto handle_unusual; - continue; - // repeated .Odb.Lib.Protobuf.PropertyRecord propertyRecords = 5; - case 5: - if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 42)) { - ptr -= 1; - do { - ptr += 1; - ptr = ctx->ParseMessage(_internal_add_propertyrecords(), ptr); - CHK_(ptr); - if (!ctx->DataAvailable(ptr)) break; - } while (::PROTOBUF_NAMESPACE_ID::internal::ExpectTag<42>(ptr)); - } else - goto handle_unusual; - continue; - // map attributeLookupTable = 6; - case 6: - if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 50)) { - ptr -= 1; - do { - ptr += 1; - ptr = ctx->ParseMessage(&_impl_.attributelookuptable_, ptr); - CHK_(ptr); - if (!ctx->DataAvailable(ptr)) break; - } while (::PROTOBUF_NAMESPACE_ID::internal::ExpectTag<50>(ptr)); - } else - goto handle_unusual; - continue; - default: - goto handle_unusual; - } // switch - handle_unusual: - if ((tag == 0) || ((tag & 7) == 4)) { - CHK_(ptr); - ctx->SetLastTag(tag); - goto message_done; - } - ptr = UnknownFieldParse( - tag, - _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(), - ptr, ctx); - CHK_(ptr != nullptr); - } // while -message_done: - _impl_._has_bits_.Or(has_bits); - return ptr; -failure: - ptr = nullptr; - goto message_done; -#undef CHK_ -} - -uint8_t* EdaDataFile_NetRecord::_InternalSerialize( - uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { - // @@protoc_insertion_point(serialize_to_array_start:Odb.Lib.Protobuf.EdaDataFile.NetRecord) - uint32_t cached_has_bits = 0; - (void) cached_has_bits; - - // optional string name = 1; - if (_internal_has_name()) { - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( - this->_internal_name().data(), static_cast(this->_internal_name().length()), - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, - "Odb.Lib.Protobuf.EdaDataFile.NetRecord.name"); - target = stream->WriteStringMaybeAliased( - 1, this->_internal_name(), target); - } - - // optional string attributesIdString = 2; - if (_internal_has_attributesidstring()) { - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( - this->_internal_attributesidstring().data(), static_cast(this->_internal_attributesidstring().length()), - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, - "Odb.Lib.Protobuf.EdaDataFile.NetRecord.attributesIdString"); - target = stream->WriteStringMaybeAliased( - 2, this->_internal_attributesidstring(), target); - } - - // optional uint32 index = 3; - if (_internal_has_index()) { - target = stream->EnsureSpace(target); - target = ::_pbi::WireFormatLite::WriteUInt32ToArray(3, this->_internal_index(), target); - } - - // repeated .Odb.Lib.Protobuf.EdaDataFile.NetRecord.SubnetRecord subnetRecords = 4; - for (unsigned i = 0, - n = static_cast(this->_internal_subnetrecords_size()); i < n; i++) { - const auto& repfield = this->_internal_subnetrecords(i); - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: - InternalWriteMessage(4, repfield, repfield.GetCachedSize(), target, stream); - } - - // repeated .Odb.Lib.Protobuf.PropertyRecord propertyRecords = 5; - for (unsigned i = 0, - n = static_cast(this->_internal_propertyrecords_size()); i < n; i++) { - const auto& repfield = this->_internal_propertyrecords(i); - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: - InternalWriteMessage(5, repfield, repfield.GetCachedSize(), target, stream); - } - - // map attributeLookupTable = 6; - if (!this->_internal_attributelookuptable().empty()) { - using MapType = ::_pb::Map; - using WireHelper = EdaDataFile_NetRecord_AttributeLookupTableEntry_DoNotUse::Funcs; - const auto& map_field = this->_internal_attributelookuptable(); - auto check_utf8 = [](const MapType::value_type& entry) { - (void)entry; - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( - entry.first.data(), static_cast(entry.first.length()), - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, - "Odb.Lib.Protobuf.EdaDataFile.NetRecord.AttributeLookupTableEntry.key"); - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( - entry.second.data(), static_cast(entry.second.length()), - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, - "Odb.Lib.Protobuf.EdaDataFile.NetRecord.AttributeLookupTableEntry.value"); - }; - - if (stream->IsSerializationDeterministic() && map_field.size() > 1) { - for (const auto& entry : ::_pbi::MapSorterPtr(map_field)) { - target = WireHelper::InternalSerialize(6, entry.first, entry.second, target, stream); - check_utf8(entry); - } - } else { - for (const auto& entry : map_field) { - target = WireHelper::InternalSerialize(6, entry.first, entry.second, target, stream); - check_utf8(entry); - } - } - } - - if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = ::_pbi::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:Odb.Lib.Protobuf.EdaDataFile.NetRecord) - return target; -} - -size_t EdaDataFile_NetRecord::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:Odb.Lib.Protobuf.EdaDataFile.NetRecord) - size_t total_size = 0; - - uint32_t cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - // repeated .Odb.Lib.Protobuf.EdaDataFile.NetRecord.SubnetRecord subnetRecords = 4; - total_size += 1UL * this->_internal_subnetrecords_size(); - for (const auto& msg : this->_impl_.subnetrecords_) { - total_size += - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(msg); - } - - // repeated .Odb.Lib.Protobuf.PropertyRecord propertyRecords = 5; - total_size += 1UL * this->_internal_propertyrecords_size(); - for (const auto& msg : this->_impl_.propertyrecords_) { - total_size += - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(msg); - } - - // map attributeLookupTable = 6; - total_size += 1 * - ::PROTOBUF_NAMESPACE_ID::internal::FromIntSize(this->_internal_attributelookuptable_size()); - for (::PROTOBUF_NAMESPACE_ID::Map< std::string, std::string >::const_iterator - it = this->_internal_attributelookuptable().begin(); - it != this->_internal_attributelookuptable().end(); ++it) { - total_size += EdaDataFile_NetRecord_AttributeLookupTableEntry_DoNotUse::Funcs::ByteSizeLong(it->first, it->second); - } - - cached_has_bits = _impl_._has_bits_[0]; - if (cached_has_bits & 0x00000007u) { - // optional string name = 1; - if (cached_has_bits & 0x00000001u) { - total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( - this->_internal_name()); - } - - // optional string attributesIdString = 2; - if (cached_has_bits & 0x00000002u) { - total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( - this->_internal_attributesidstring()); - } - - // optional uint32 index = 3; - if (cached_has_bits & 0x00000004u) { - total_size += ::_pbi::WireFormatLite::UInt32SizePlusOne(this->_internal_index()); - } - - } - return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); -} - -const ::PROTOBUF_NAMESPACE_ID::Message::ClassData EdaDataFile_NetRecord::_class_data_ = { - ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSourceCheck, - EdaDataFile_NetRecord::MergeImpl -}; -const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*EdaDataFile_NetRecord::GetClassData() const { return &_class_data_; } - - -void EdaDataFile_NetRecord::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg) { + _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); +} + +#if defined(PROTOBUF_CUSTOM_VTABLE) + ::uint8_t* EdaDataFile_NetRecord::_InternalSerialize( + const MessageLite& base, ::uint8_t* target, + ::google::protobuf::io::EpsCopyOutputStream* stream) { + const EdaDataFile_NetRecord& this_ = static_cast(base); +#else // PROTOBUF_CUSTOM_VTABLE + ::uint8_t* EdaDataFile_NetRecord::_InternalSerialize( + ::uint8_t* target, + ::google::protobuf::io::EpsCopyOutputStream* stream) const { + const EdaDataFile_NetRecord& this_ = *this; +#endif // PROTOBUF_CUSTOM_VTABLE + // @@protoc_insertion_point(serialize_to_array_start:Odb.Lib.Protobuf.EdaDataFile.NetRecord) + ::uint32_t cached_has_bits = 0; + (void)cached_has_bits; + + cached_has_bits = this_._impl_._has_bits_[0]; + // optional string name = 1; + if (cached_has_bits & 0x00000001u) { + const std::string& _s = this_._internal_name(); + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + _s.data(), static_cast(_s.length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "Odb.Lib.Protobuf.EdaDataFile.NetRecord.name"); + target = stream->WriteStringMaybeAliased(1, _s, target); + } + + // optional string attributesIdString = 2; + if (cached_has_bits & 0x00000002u) { + const std::string& _s = this_._internal_attributesidstring(); + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + _s.data(), static_cast(_s.length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "Odb.Lib.Protobuf.EdaDataFile.NetRecord.attributesIdString"); + target = stream->WriteStringMaybeAliased(2, _s, target); + } + + // optional uint32 index = 3; + if (cached_has_bits & 0x00000004u) { + target = stream->EnsureSpace(target); + target = ::_pbi::WireFormatLite::WriteUInt32ToArray( + 3, this_._internal_index(), target); + } + + // repeated .Odb.Lib.Protobuf.EdaDataFile.NetRecord.SubnetRecord subnetRecords = 4; + for (unsigned i = 0, n = static_cast( + this_._internal_subnetrecords_size()); + i < n; i++) { + const auto& repfield = this_._internal_subnetrecords().Get(i); + target = + ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( + 4, repfield, repfield.GetCachedSize(), + target, stream); + } + + // repeated .Odb.Lib.Protobuf.PropertyRecord propertyRecords = 5; + for (unsigned i = 0, n = static_cast( + this_._internal_propertyrecords_size()); + i < n; i++) { + const auto& repfield = this_._internal_propertyrecords().Get(i); + target = + ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( + 5, repfield, repfield.GetCachedSize(), + target, stream); + } + + // map attributeLookupTable = 6; + if (!this_._internal_attributelookuptable().empty()) { + using MapType = ::google::protobuf::Map; + using WireHelper = _pbi::MapEntryFuncs; + const auto& field = this_._internal_attributelookuptable(); + + if (stream->IsSerializationDeterministic() && field.size() > 1) { + for (const auto& entry : ::google::protobuf::internal::MapSorterPtr(field)) { + target = WireHelper::InternalSerialize( + 6, entry.first, entry.second, target, stream); + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + entry.first.data(), static_cast(entry.first.length()), + ::google::protobuf::internal::WireFormatLite::SERIALIZE, "Odb.Lib.Protobuf.EdaDataFile.NetRecord.attributeLookupTable"); + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + entry.second.data(), static_cast(entry.second.length()), + ::google::protobuf::internal::WireFormatLite::SERIALIZE, "Odb.Lib.Protobuf.EdaDataFile.NetRecord.attributeLookupTable"); + } + } else { + for (const auto& entry : field) { + target = WireHelper::InternalSerialize( + 6, entry.first, entry.second, target, stream); + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + entry.first.data(), static_cast(entry.first.length()), + ::google::protobuf::internal::WireFormatLite::SERIALIZE, "Odb.Lib.Protobuf.EdaDataFile.NetRecord.attributeLookupTable"); + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + entry.second.data(), static_cast(entry.second.length()), + ::google::protobuf::internal::WireFormatLite::SERIALIZE, "Odb.Lib.Protobuf.EdaDataFile.NetRecord.attributeLookupTable"); + } + } + } + + if (PROTOBUF_PREDICT_FALSE(this_._internal_metadata_.have_unknown_fields())) { + target = + ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( + this_._internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); + } + // @@protoc_insertion_point(serialize_to_array_end:Odb.Lib.Protobuf.EdaDataFile.NetRecord) + return target; + } + +#if defined(PROTOBUF_CUSTOM_VTABLE) + ::size_t EdaDataFile_NetRecord::ByteSizeLong(const MessageLite& base) { + const EdaDataFile_NetRecord& this_ = static_cast(base); +#else // PROTOBUF_CUSTOM_VTABLE + ::size_t EdaDataFile_NetRecord::ByteSizeLong() const { + const EdaDataFile_NetRecord& this_ = *this; +#endif // PROTOBUF_CUSTOM_VTABLE + // @@protoc_insertion_point(message_byte_size_start:Odb.Lib.Protobuf.EdaDataFile.NetRecord) + ::size_t total_size = 0; + + ::uint32_t cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void)cached_has_bits; + + ::_pbi::Prefetch5LinesFrom7Lines(&this_); + { + // repeated .Odb.Lib.Protobuf.EdaDataFile.NetRecord.SubnetRecord subnetRecords = 4; + { + total_size += 1UL * this_._internal_subnetrecords_size(); + for (const auto& msg : this_._internal_subnetrecords()) { + total_size += ::google::protobuf::internal::WireFormatLite::MessageSize(msg); + } + } + // repeated .Odb.Lib.Protobuf.PropertyRecord propertyRecords = 5; + { + total_size += 1UL * this_._internal_propertyrecords_size(); + for (const auto& msg : this_._internal_propertyrecords()) { + total_size += ::google::protobuf::internal::WireFormatLite::MessageSize(msg); + } + } + // map attributeLookupTable = 6; + { + total_size += + 1 * ::google::protobuf::internal::FromIntSize(this_._internal_attributelookuptable_size()); + for (const auto& entry : this_._internal_attributelookuptable()) { + total_size += _pbi::MapEntryFuncs::ByteSizeLong(entry.first, entry.second); + } + } + } + cached_has_bits = this_._impl_._has_bits_[0]; + if (cached_has_bits & 0x00000007u) { + // optional string name = 1; + if (cached_has_bits & 0x00000001u) { + total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize( + this_._internal_name()); + } + // optional string attributesIdString = 2; + if (cached_has_bits & 0x00000002u) { + total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize( + this_._internal_attributesidstring()); + } + // optional uint32 index = 3; + if (cached_has_bits & 0x00000004u) { + total_size += ::_pbi::WireFormatLite::UInt32SizePlusOne( + this_._internal_index()); + } + } + return this_.MaybeComputeUnknownFieldsSize(total_size, + &this_._impl_._cached_size_); + } + +void EdaDataFile_NetRecord::MergeImpl(::google::protobuf::MessageLite& to_msg, const ::google::protobuf::MessageLite& from_msg) { auto* const _this = static_cast(&to_msg); auto& from = static_cast(from_msg); // @@protoc_insertion_point(class_specific_merge_from_start:Odb.Lib.Protobuf.EdaDataFile.NetRecord) - GOOGLE_DCHECK_NE(&from, _this); - uint32_t cached_has_bits = 0; + ABSL_DCHECK_NE(&from, _this); + ::uint32_t cached_has_bits = 0; (void) cached_has_bits; - _this->_impl_.subnetrecords_.MergeFrom(from._impl_.subnetrecords_); - _this->_impl_.propertyrecords_.MergeFrom(from._impl_.propertyrecords_); + _this->_internal_mutable_subnetrecords()->MergeFrom( + from._internal_subnetrecords()); + _this->_internal_mutable_propertyrecords()->MergeFrom( + from._internal_propertyrecords()); _this->_impl_.attributelookuptable_.MergeFrom(from._impl_.attributelookuptable_); cached_has_bits = from._impl_._has_bits_[0]; if (cached_has_bits & 0x00000007u) { @@ -1986,9 +2254,9 @@ void EdaDataFile_NetRecord::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, if (cached_has_bits & 0x00000004u) { _this->_impl_.index_ = from._impl_.index_; } - _this->_impl_._has_bits_[0] |= cached_has_bits; } - _this->_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); + _this->_impl_._has_bits_[0] |= cached_has_bits; + _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); } void EdaDataFile_NetRecord::CopyFrom(const EdaDataFile_NetRecord& from) { @@ -1998,472 +2266,623 @@ void EdaDataFile_NetRecord::CopyFrom(const EdaDataFile_NetRecord& from) { MergeFrom(from); } -bool EdaDataFile_NetRecord::IsInitialized() const { - return true; -} -void EdaDataFile_NetRecord::InternalSwap(EdaDataFile_NetRecord* other) { +void EdaDataFile_NetRecord::InternalSwap(EdaDataFile_NetRecord* PROTOBUF_RESTRICT other) { using std::swap; - auto* lhs_arena = GetArenaForAllocation(); - auto* rhs_arena = other->GetArenaForAllocation(); + auto* arena = GetArena(); + ABSL_DCHECK_EQ(arena, other->GetArena()); _internal_metadata_.InternalSwap(&other->_internal_metadata_); swap(_impl_._has_bits_[0], other->_impl_._has_bits_[0]); _impl_.subnetrecords_.InternalSwap(&other->_impl_.subnetrecords_); _impl_.propertyrecords_.InternalSwap(&other->_impl_.propertyrecords_); _impl_.attributelookuptable_.InternalSwap(&other->_impl_.attributelookuptable_); - ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( - &_impl_.name_, lhs_arena, - &other->_impl_.name_, rhs_arena - ); - ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( - &_impl_.attributesidstring_, lhs_arena, - &other->_impl_.attributesidstring_, rhs_arena - ); - swap(_impl_.index_, other->_impl_.index_); + ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.name_, &other->_impl_.name_, arena); + ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.attributesidstring_, &other->_impl_.attributesidstring_, arena); + swap(_impl_.index_, other->_impl_.index_); } -::PROTOBUF_NAMESPACE_ID::Metadata EdaDataFile_NetRecord::GetMetadata() const { - return ::_pbi::AssignDescriptors( - &descriptor_table_edadatafile_2eproto_getter, &descriptor_table_edadatafile_2eproto_once, - file_level_metadata_edadatafile_2eproto[3]); +::google::protobuf::Metadata EdaDataFile_NetRecord::GetMetadata() const { + return ::google::protobuf::Message::GetMetadataImpl(GetClassData()->full()); } - // =================================================================== -EdaDataFile_PackageRecord_PinRecordsByNameEntry_DoNotUse::EdaDataFile_PackageRecord_PinRecordsByNameEntry_DoNotUse() {} -EdaDataFile_PackageRecord_PinRecordsByNameEntry_DoNotUse::EdaDataFile_PackageRecord_PinRecordsByNameEntry_DoNotUse(::PROTOBUF_NAMESPACE_ID::Arena* arena) - : SuperType(arena) {} -void EdaDataFile_PackageRecord_PinRecordsByNameEntry_DoNotUse::MergeFrom(const EdaDataFile_PackageRecord_PinRecordsByNameEntry_DoNotUse& other) { - MergeFromInternal(other); -} -::PROTOBUF_NAMESPACE_ID::Metadata EdaDataFile_PackageRecord_PinRecordsByNameEntry_DoNotUse::GetMetadata() const { - return ::_pbi::AssignDescriptors( - &descriptor_table_edadatafile_2eproto_getter, &descriptor_table_edadatafile_2eproto_once, - file_level_metadata_edadatafile_2eproto[4]); -} +#if defined(PROTOBUF_CUSTOM_VTABLE) + EdaDataFile_PackageRecord_PinRecordsByNameEntry_DoNotUse::EdaDataFile_PackageRecord_PinRecordsByNameEntry_DoNotUse() : SuperType(_class_data_.base()) {} + EdaDataFile_PackageRecord_PinRecordsByNameEntry_DoNotUse::EdaDataFile_PackageRecord_PinRecordsByNameEntry_DoNotUse(::google::protobuf::Arena* arena) + : SuperType(arena, _class_data_.base()) {} +#else // PROTOBUF_CUSTOM_VTABLE + EdaDataFile_PackageRecord_PinRecordsByNameEntry_DoNotUse::EdaDataFile_PackageRecord_PinRecordsByNameEntry_DoNotUse() : SuperType() {} + EdaDataFile_PackageRecord_PinRecordsByNameEntry_DoNotUse::EdaDataFile_PackageRecord_PinRecordsByNameEntry_DoNotUse(::google::protobuf::Arena* arena) : SuperType(arena) {} +#endif // PROTOBUF_CUSTOM_VTABLE + inline void* EdaDataFile_PackageRecord_PinRecordsByNameEntry_DoNotUse::PlacementNew_(const void*, void* mem, + ::google::protobuf::Arena* arena) { + return ::new (mem) EdaDataFile_PackageRecord_PinRecordsByNameEntry_DoNotUse(arena); + } + constexpr auto EdaDataFile_PackageRecord_PinRecordsByNameEntry_DoNotUse::InternalNewImpl_() { + return ::google::protobuf::internal::MessageCreator::CopyInit(sizeof(EdaDataFile_PackageRecord_PinRecordsByNameEntry_DoNotUse), + alignof(EdaDataFile_PackageRecord_PinRecordsByNameEntry_DoNotUse)); + } + PROTOBUF_CONSTINIT + PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 + const ::google::protobuf::internal::ClassDataFull EdaDataFile_PackageRecord_PinRecordsByNameEntry_DoNotUse::_class_data_ = { + ::google::protobuf::internal::ClassData{ + &_EdaDataFile_PackageRecord_PinRecordsByNameEntry_DoNotUse_default_instance_._instance, + &_table_.header, + nullptr, // OnDemandRegisterArenaDtor + nullptr, // IsInitialized + &EdaDataFile_PackageRecord_PinRecordsByNameEntry_DoNotUse::MergeImpl, + ::google::protobuf::Message::GetNewImpl(), + #if defined(PROTOBUF_CUSTOM_VTABLE) + &EdaDataFile_PackageRecord_PinRecordsByNameEntry_DoNotUse::SharedDtor, + static_cast( + &EdaDataFile_PackageRecord_PinRecordsByNameEntry_DoNotUse::ClearImpl), + ::google::protobuf::Message::ByteSizeLongImpl, ::google::protobuf::Message::_InternalSerializeImpl + , + #endif // PROTOBUF_CUSTOM_VTABLE + PROTOBUF_FIELD_OFFSET(EdaDataFile_PackageRecord_PinRecordsByNameEntry_DoNotUse, _impl_._cached_size_), + false, + }, + &EdaDataFile_PackageRecord_PinRecordsByNameEntry_DoNotUse::kDescriptorMethods, + &descriptor_table_edadatafile_2eproto, + nullptr, // tracker + }; + const ::google::protobuf::internal::ClassData* EdaDataFile_PackageRecord_PinRecordsByNameEntry_DoNotUse::GetClassData() const { + ::google::protobuf::internal::PrefetchToLocalCache(&_class_data_); + ::google::protobuf::internal::PrefetchToLocalCache(_class_data_.tc_table); + return _class_data_.base(); + } +PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 +const ::_pbi::TcParseTable<1, 2, 1, 76, 2> EdaDataFile_PackageRecord_PinRecordsByNameEntry_DoNotUse::_table_ = { + { + PROTOBUF_FIELD_OFFSET(EdaDataFile_PackageRecord_PinRecordsByNameEntry_DoNotUse, _impl_._has_bits_), + 0, // no _extensions_ + 2, 8, // max_field_number, fast_idx_mask + offsetof(decltype(_table_), field_lookup_table), + 4294967292, // skipmap + offsetof(decltype(_table_), field_entries), + 2, // num_field_entries + 1, // num_aux_entries + offsetof(decltype(_table_), aux_entries), + _class_data_.base(), + nullptr, // post_loop_handler + ::_pbi::TcParser::DiscardEverythingFallback, // fallback + #ifdef PROTOBUF_PREFETCH_PARSE_TABLE + ::_pbi::TcParser::GetTable<::Odb::Lib::Protobuf::EdaDataFile_PackageRecord_PinRecordsByNameEntry_DoNotUse>(), // to_prefetch + #endif // PROTOBUF_PREFETCH_PARSE_TABLE + }, {{ + // .Odb.Lib.Protobuf.EdaDataFile.PackageRecord.PinRecord value = 2; + {::_pbi::TcParser::FastMtS1, + {18, 0, 0, PROTOBUF_FIELD_OFFSET(EdaDataFile_PackageRecord_PinRecordsByNameEntry_DoNotUse, _impl_.value_)}}, + // string key = 1; + {::_pbi::TcParser::FastUS1, + {10, 63, 0, PROTOBUF_FIELD_OFFSET(EdaDataFile_PackageRecord_PinRecordsByNameEntry_DoNotUse, _impl_.key_)}}, + }}, {{ + 65535, 65535 + }}, {{ + // string key = 1; + {PROTOBUF_FIELD_OFFSET(EdaDataFile_PackageRecord_PinRecordsByNameEntry_DoNotUse, _impl_.key_), -1, 0, + (0 | ::_fl::kFcSingular | ::_fl::kUtf8String | ::_fl::kRepAString)}, + // .Odb.Lib.Protobuf.EdaDataFile.PackageRecord.PinRecord value = 2; + {PROTOBUF_FIELD_OFFSET(EdaDataFile_PackageRecord_PinRecordsByNameEntry_DoNotUse, _impl_.value_), _Internal::kHasBitsOffset + 0, 0, + (0 | ::_fl::kFcOptional | ::_fl::kMessage | ::_fl::kTvTable)}, + }}, {{ + {::_pbi::TcParser::GetTable<::Odb::Lib::Protobuf::EdaDataFile_PackageRecord_PinRecord>()}, + }}, {{ + "\100\3\0\0\0\0\0\0" + "Odb.Lib.Protobuf.EdaDataFile.PackageRecord.PinRecordsByNameEntry" + "key" + }}, +}; // =================================================================== -EdaDataFile_PackageRecord_AttributeLookupTableEntry_DoNotUse::EdaDataFile_PackageRecord_AttributeLookupTableEntry_DoNotUse() {} -EdaDataFile_PackageRecord_AttributeLookupTableEntry_DoNotUse::EdaDataFile_PackageRecord_AttributeLookupTableEntry_DoNotUse(::PROTOBUF_NAMESPACE_ID::Arena* arena) - : SuperType(arena) {} -void EdaDataFile_PackageRecord_AttributeLookupTableEntry_DoNotUse::MergeFrom(const EdaDataFile_PackageRecord_AttributeLookupTableEntry_DoNotUse& other) { - MergeFromInternal(other); -} -::PROTOBUF_NAMESPACE_ID::Metadata EdaDataFile_PackageRecord_AttributeLookupTableEntry_DoNotUse::GetMetadata() const { - return ::_pbi::AssignDescriptors( - &descriptor_table_edadatafile_2eproto_getter, &descriptor_table_edadatafile_2eproto_once, - file_level_metadata_edadatafile_2eproto[5]); -} +#if defined(PROTOBUF_CUSTOM_VTABLE) + EdaDataFile_PackageRecord_AttributeLookupTableEntry_DoNotUse::EdaDataFile_PackageRecord_AttributeLookupTableEntry_DoNotUse() : SuperType(_class_data_.base()) {} + EdaDataFile_PackageRecord_AttributeLookupTableEntry_DoNotUse::EdaDataFile_PackageRecord_AttributeLookupTableEntry_DoNotUse(::google::protobuf::Arena* arena) + : SuperType(arena, _class_data_.base()) {} +#else // PROTOBUF_CUSTOM_VTABLE + EdaDataFile_PackageRecord_AttributeLookupTableEntry_DoNotUse::EdaDataFile_PackageRecord_AttributeLookupTableEntry_DoNotUse() : SuperType() {} + EdaDataFile_PackageRecord_AttributeLookupTableEntry_DoNotUse::EdaDataFile_PackageRecord_AttributeLookupTableEntry_DoNotUse(::google::protobuf::Arena* arena) : SuperType(arena) {} +#endif // PROTOBUF_CUSTOM_VTABLE + inline void* EdaDataFile_PackageRecord_AttributeLookupTableEntry_DoNotUse::PlacementNew_(const void*, void* mem, + ::google::protobuf::Arena* arena) { + return ::new (mem) EdaDataFile_PackageRecord_AttributeLookupTableEntry_DoNotUse(arena); + } + constexpr auto EdaDataFile_PackageRecord_AttributeLookupTableEntry_DoNotUse::InternalNewImpl_() { + return ::google::protobuf::internal::MessageCreator::CopyInit(sizeof(EdaDataFile_PackageRecord_AttributeLookupTableEntry_DoNotUse), + alignof(EdaDataFile_PackageRecord_AttributeLookupTableEntry_DoNotUse)); + } + PROTOBUF_CONSTINIT + PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 + const ::google::protobuf::internal::ClassDataFull EdaDataFile_PackageRecord_AttributeLookupTableEntry_DoNotUse::_class_data_ = { + ::google::protobuf::internal::ClassData{ + &_EdaDataFile_PackageRecord_AttributeLookupTableEntry_DoNotUse_default_instance_._instance, + &_table_.header, + nullptr, // OnDemandRegisterArenaDtor + nullptr, // IsInitialized + &EdaDataFile_PackageRecord_AttributeLookupTableEntry_DoNotUse::MergeImpl, + ::google::protobuf::Message::GetNewImpl(), + #if defined(PROTOBUF_CUSTOM_VTABLE) + &EdaDataFile_PackageRecord_AttributeLookupTableEntry_DoNotUse::SharedDtor, + static_cast( + &EdaDataFile_PackageRecord_AttributeLookupTableEntry_DoNotUse::ClearImpl), + ::google::protobuf::Message::ByteSizeLongImpl, ::google::protobuf::Message::_InternalSerializeImpl + , + #endif // PROTOBUF_CUSTOM_VTABLE + PROTOBUF_FIELD_OFFSET(EdaDataFile_PackageRecord_AttributeLookupTableEntry_DoNotUse, _impl_._cached_size_), + false, + }, + &EdaDataFile_PackageRecord_AttributeLookupTableEntry_DoNotUse::kDescriptorMethods, + &descriptor_table_edadatafile_2eproto, + nullptr, // tracker + }; + const ::google::protobuf::internal::ClassData* EdaDataFile_PackageRecord_AttributeLookupTableEntry_DoNotUse::GetClassData() const { + ::google::protobuf::internal::PrefetchToLocalCache(&_class_data_); + ::google::protobuf::internal::PrefetchToLocalCache(_class_data_.tc_table); + return _class_data_.base(); + } +PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 +const ::_pbi::TcParseTable<1, 2, 0, 85, 2> EdaDataFile_PackageRecord_AttributeLookupTableEntry_DoNotUse::_table_ = { + { + PROTOBUF_FIELD_OFFSET(EdaDataFile_PackageRecord_AttributeLookupTableEntry_DoNotUse, _impl_._has_bits_), + 0, // no _extensions_ + 2, 8, // max_field_number, fast_idx_mask + offsetof(decltype(_table_), field_lookup_table), + 4294967292, // skipmap + offsetof(decltype(_table_), field_entries), + 2, // num_field_entries + 0, // num_aux_entries + offsetof(decltype(_table_), field_names), // no aux_entries + _class_data_.base(), + nullptr, // post_loop_handler + ::_pbi::TcParser::DiscardEverythingFallback, // fallback + #ifdef PROTOBUF_PREFETCH_PARSE_TABLE + ::_pbi::TcParser::GetTable<::Odb::Lib::Protobuf::EdaDataFile_PackageRecord_AttributeLookupTableEntry_DoNotUse>(), // to_prefetch + #endif // PROTOBUF_PREFETCH_PARSE_TABLE + }, {{ + // string value = 2; + {::_pbi::TcParser::FastUS1, + {18, 63, 0, PROTOBUF_FIELD_OFFSET(EdaDataFile_PackageRecord_AttributeLookupTableEntry_DoNotUse, _impl_.value_)}}, + // string key = 1; + {::_pbi::TcParser::FastUS1, + {10, 63, 0, PROTOBUF_FIELD_OFFSET(EdaDataFile_PackageRecord_AttributeLookupTableEntry_DoNotUse, _impl_.key_)}}, + }}, {{ + 65535, 65535 + }}, {{ + // string key = 1; + {PROTOBUF_FIELD_OFFSET(EdaDataFile_PackageRecord_AttributeLookupTableEntry_DoNotUse, _impl_.key_), -1, 0, + (0 | ::_fl::kFcSingular | ::_fl::kUtf8String | ::_fl::kRepAString)}, + // string value = 2; + {PROTOBUF_FIELD_OFFSET(EdaDataFile_PackageRecord_AttributeLookupTableEntry_DoNotUse, _impl_.value_), -1, 0, + (0 | ::_fl::kFcSingular | ::_fl::kUtf8String | ::_fl::kRepAString)}, + }}, + // no aux_entries + {{ + "\104\3\5\0\0\0\0\0" + "Odb.Lib.Protobuf.EdaDataFile.PackageRecord.AttributeLookupTableEntry" + "key" + "value" + }}, +}; // =================================================================== class EdaDataFile_PackageRecord_OutlineRecord::_Internal { public: - using HasBits = decltype(std::declval()._impl_._has_bits_); - static void set_has_type(HasBits* has_bits) { - (*has_bits)[0] |= 1u; - } - static void set_has_lowerleftx(HasBits* has_bits) { - (*has_bits)[0] |= 2u; - } - static void set_has_lowerlefty(HasBits* has_bits) { - (*has_bits)[0] |= 4u; - } - static void set_has_width(HasBits* has_bits) { - (*has_bits)[0] |= 8u; - } - static void set_has_height(HasBits* has_bits) { - (*has_bits)[0] |= 16u; - } - static void set_has_xcenter(HasBits* has_bits) { - (*has_bits)[0] |= 32u; - } - static void set_has_ycenter(HasBits* has_bits) { - (*has_bits)[0] |= 64u; - } - static void set_has_halfside(HasBits* has_bits) { - (*has_bits)[0] |= 128u; - } - static void set_has_radius(HasBits* has_bits) { - (*has_bits)[0] |= 256u; - } + using HasBits = + decltype(std::declval()._impl_._has_bits_); + static constexpr ::int32_t kHasBitsOffset = + 8 * PROTOBUF_FIELD_OFFSET(EdaDataFile_PackageRecord_OutlineRecord, _impl_._has_bits_); }; void EdaDataFile_PackageRecord_OutlineRecord::clear_contourpolygons() { + ::google::protobuf::internal::TSanWrite(&_impl_); _impl_.contourpolygons_.Clear(); } -EdaDataFile_PackageRecord_OutlineRecord::EdaDataFile_PackageRecord_OutlineRecord(::PROTOBUF_NAMESPACE_ID::Arena* arena, - bool is_message_owned) - : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned) { - SharedCtor(arena, is_message_owned); +EdaDataFile_PackageRecord_OutlineRecord::EdaDataFile_PackageRecord_OutlineRecord(::google::protobuf::Arena* arena) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : ::google::protobuf::Message(arena, _class_data_.base()) { +#else // PROTOBUF_CUSTOM_VTABLE + : ::google::protobuf::Message(arena) { +#endif // PROTOBUF_CUSTOM_VTABLE + SharedCtor(arena); // @@protoc_insertion_point(arena_constructor:Odb.Lib.Protobuf.EdaDataFile.PackageRecord.OutlineRecord) } -EdaDataFile_PackageRecord_OutlineRecord::EdaDataFile_PackageRecord_OutlineRecord(const EdaDataFile_PackageRecord_OutlineRecord& from) - : ::PROTOBUF_NAMESPACE_ID::Message() { - EdaDataFile_PackageRecord_OutlineRecord* const _this = this; (void)_this; - new (&_impl_) Impl_{ - decltype(_impl_._has_bits_){from._impl_._has_bits_} - , /*decltype(_impl_._cached_size_)*/{} - , decltype(_impl_.contourpolygons_){from._impl_.contourpolygons_} - , decltype(_impl_.type_){} - , decltype(_impl_.lowerleftx_){} - , decltype(_impl_.lowerlefty_){} - , decltype(_impl_.width_){} - , decltype(_impl_.height_){} - , decltype(_impl_.xcenter_){} - , decltype(_impl_.ycenter_){} - , decltype(_impl_.halfside_){} - , decltype(_impl_.radius_){}}; - - _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); - ::memcpy(&_impl_.type_, &from._impl_.type_, - static_cast(reinterpret_cast(&_impl_.radius_) - - reinterpret_cast(&_impl_.type_)) + sizeof(_impl_.radius_)); +inline PROTOBUF_NDEBUG_INLINE EdaDataFile_PackageRecord_OutlineRecord::Impl_::Impl_( + ::google::protobuf::internal::InternalVisibility visibility, ::google::protobuf::Arena* arena, + const Impl_& from, const ::Odb::Lib::Protobuf::EdaDataFile_PackageRecord_OutlineRecord& from_msg) + : _has_bits_{from._has_bits_}, + _cached_size_{0}, + contourpolygons_{visibility, arena, from.contourpolygons_} {} + +EdaDataFile_PackageRecord_OutlineRecord::EdaDataFile_PackageRecord_OutlineRecord( + ::google::protobuf::Arena* arena, + const EdaDataFile_PackageRecord_OutlineRecord& from) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : ::google::protobuf::Message(arena, _class_data_.base()) { +#else // PROTOBUF_CUSTOM_VTABLE + : ::google::protobuf::Message(arena) { +#endif // PROTOBUF_CUSTOM_VTABLE + EdaDataFile_PackageRecord_OutlineRecord* const _this = this; + (void)_this; + _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( + from._internal_metadata_); + new (&_impl_) Impl_(internal_visibility(), arena, from._impl_, from); + ::memcpy(reinterpret_cast(&_impl_) + + offsetof(Impl_, type_), + reinterpret_cast(&from._impl_) + + offsetof(Impl_, type_), + offsetof(Impl_, radius_) - + offsetof(Impl_, type_) + + sizeof(Impl_::radius_)); + // @@protoc_insertion_point(copy_constructor:Odb.Lib.Protobuf.EdaDataFile.PackageRecord.OutlineRecord) } - -inline void EdaDataFile_PackageRecord_OutlineRecord::SharedCtor( - ::_pb::Arena* arena, bool is_message_owned) { - (void)arena; - (void)is_message_owned; - new (&_impl_) Impl_{ - decltype(_impl_._has_bits_){} - , /*decltype(_impl_._cached_size_)*/{} - , decltype(_impl_.contourpolygons_){arena} - , decltype(_impl_.type_){0} - , decltype(_impl_.lowerleftx_){0} - , decltype(_impl_.lowerlefty_){0} - , decltype(_impl_.width_){0} - , decltype(_impl_.height_){0} - , decltype(_impl_.xcenter_){0} - , decltype(_impl_.ycenter_){0} - , decltype(_impl_.halfside_){0} - , decltype(_impl_.radius_){0} - }; +inline PROTOBUF_NDEBUG_INLINE EdaDataFile_PackageRecord_OutlineRecord::Impl_::Impl_( + ::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* arena) + : _cached_size_{0}, + contourpolygons_{visibility, arena} {} + +inline void EdaDataFile_PackageRecord_OutlineRecord::SharedCtor(::_pb::Arena* arena) { + new (&_impl_) Impl_(internal_visibility(), arena); + ::memset(reinterpret_cast(&_impl_) + + offsetof(Impl_, type_), + 0, + offsetof(Impl_, radius_) - + offsetof(Impl_, type_) + + sizeof(Impl_::radius_)); } - EdaDataFile_PackageRecord_OutlineRecord::~EdaDataFile_PackageRecord_OutlineRecord() { // @@protoc_insertion_point(destructor:Odb.Lib.Protobuf.EdaDataFile.PackageRecord.OutlineRecord) - if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) { - (void)arena; - return; - } - SharedDtor(); -} - -inline void EdaDataFile_PackageRecord_OutlineRecord::SharedDtor() { - GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); - _impl_.contourpolygons_.~RepeatedPtrField(); -} - -void EdaDataFile_PackageRecord_OutlineRecord::SetCachedSize(int size) const { - _impl_._cached_size_.Set(size); -} + SharedDtor(*this); +} +inline void EdaDataFile_PackageRecord_OutlineRecord::SharedDtor(MessageLite& self) { + EdaDataFile_PackageRecord_OutlineRecord& this_ = static_cast(self); + this_._internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); + ABSL_DCHECK(this_.GetArena() == nullptr); + this_._impl_.~Impl_(); +} + +inline void* EdaDataFile_PackageRecord_OutlineRecord::PlacementNew_(const void*, void* mem, + ::google::protobuf::Arena* arena) { + return ::new (mem) EdaDataFile_PackageRecord_OutlineRecord(arena); +} +constexpr auto EdaDataFile_PackageRecord_OutlineRecord::InternalNewImpl_() { + constexpr auto arena_bits = ::google::protobuf::internal::EncodePlacementArenaOffsets({ + PROTOBUF_FIELD_OFFSET(EdaDataFile_PackageRecord_OutlineRecord, _impl_.contourpolygons_) + + decltype(EdaDataFile_PackageRecord_OutlineRecord::_impl_.contourpolygons_):: + InternalGetArenaOffset( + ::google::protobuf::Message::internal_visibility()), + }); + if (arena_bits.has_value()) { + return ::google::protobuf::internal::MessageCreator::ZeroInit( + sizeof(EdaDataFile_PackageRecord_OutlineRecord), alignof(EdaDataFile_PackageRecord_OutlineRecord), *arena_bits); + } else { + return ::google::protobuf::internal::MessageCreator(&EdaDataFile_PackageRecord_OutlineRecord::PlacementNew_, + sizeof(EdaDataFile_PackageRecord_OutlineRecord), + alignof(EdaDataFile_PackageRecord_OutlineRecord)); + } +} +PROTOBUF_CONSTINIT +PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 +const ::google::protobuf::internal::ClassDataFull EdaDataFile_PackageRecord_OutlineRecord::_class_data_ = { + ::google::protobuf::internal::ClassData{ + &_EdaDataFile_PackageRecord_OutlineRecord_default_instance_._instance, + &_table_.header, + nullptr, // OnDemandRegisterArenaDtor + nullptr, // IsInitialized + &EdaDataFile_PackageRecord_OutlineRecord::MergeImpl, + ::google::protobuf::Message::GetNewImpl(), +#if defined(PROTOBUF_CUSTOM_VTABLE) + &EdaDataFile_PackageRecord_OutlineRecord::SharedDtor, + ::google::protobuf::Message::GetClearImpl(), &EdaDataFile_PackageRecord_OutlineRecord::ByteSizeLong, + &EdaDataFile_PackageRecord_OutlineRecord::_InternalSerialize, +#endif // PROTOBUF_CUSTOM_VTABLE + PROTOBUF_FIELD_OFFSET(EdaDataFile_PackageRecord_OutlineRecord, _impl_._cached_size_), + false, + }, + &EdaDataFile_PackageRecord_OutlineRecord::kDescriptorMethods, + &descriptor_table_edadatafile_2eproto, + nullptr, // tracker +}; +const ::google::protobuf::internal::ClassData* EdaDataFile_PackageRecord_OutlineRecord::GetClassData() const { + ::google::protobuf::internal::PrefetchToLocalCache(&_class_data_); + ::google::protobuf::internal::PrefetchToLocalCache(_class_data_.tc_table); + return _class_data_.base(); +} +PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 +const ::_pbi::TcParseTable<4, 10, 1, 0, 2> EdaDataFile_PackageRecord_OutlineRecord::_table_ = { + { + PROTOBUF_FIELD_OFFSET(EdaDataFile_PackageRecord_OutlineRecord, _impl_._has_bits_), + 0, // no _extensions_ + 10, 120, // max_field_number, fast_idx_mask + offsetof(decltype(_table_), field_lookup_table), + 4294966272, // skipmap + offsetof(decltype(_table_), field_entries), + 10, // num_field_entries + 1, // num_aux_entries + offsetof(decltype(_table_), aux_entries), + _class_data_.base(), + nullptr, // post_loop_handler + ::_pbi::TcParser::GenericFallback, // fallback + #ifdef PROTOBUF_PREFETCH_PARSE_TABLE + ::_pbi::TcParser::GetTable<::Odb::Lib::Protobuf::EdaDataFile_PackageRecord_OutlineRecord>(), // to_prefetch + #endif // PROTOBUF_PREFETCH_PARSE_TABLE + }, {{ + {::_pbi::TcParser::MiniParse, {}}, + // optional .Odb.Lib.Protobuf.EdaDataFile.PackageRecord.OutlineRecord.Type type = 1; + {::_pbi::TcParser::SingularVarintNoZag1<::uint32_t, offsetof(EdaDataFile_PackageRecord_OutlineRecord, _impl_.type_), 0>(), + {8, 0, 0, PROTOBUF_FIELD_OFFSET(EdaDataFile_PackageRecord_OutlineRecord, _impl_.type_)}}, + // optional float lowerLeftX = 2; + {::_pbi::TcParser::FastF32S1, + {21, 1, 0, PROTOBUF_FIELD_OFFSET(EdaDataFile_PackageRecord_OutlineRecord, _impl_.lowerleftx_)}}, + // optional float lowerLeftY = 3; + {::_pbi::TcParser::FastF32S1, + {29, 2, 0, PROTOBUF_FIELD_OFFSET(EdaDataFile_PackageRecord_OutlineRecord, _impl_.lowerlefty_)}}, + // optional float width = 4; + {::_pbi::TcParser::FastF32S1, + {37, 3, 0, PROTOBUF_FIELD_OFFSET(EdaDataFile_PackageRecord_OutlineRecord, _impl_.width_)}}, + // optional float height = 5; + {::_pbi::TcParser::FastF32S1, + {45, 4, 0, PROTOBUF_FIELD_OFFSET(EdaDataFile_PackageRecord_OutlineRecord, _impl_.height_)}}, + // optional float xCenter = 6; + {::_pbi::TcParser::FastF32S1, + {53, 5, 0, PROTOBUF_FIELD_OFFSET(EdaDataFile_PackageRecord_OutlineRecord, _impl_.xcenter_)}}, + // optional float yCenter = 7; + {::_pbi::TcParser::FastF32S1, + {61, 6, 0, PROTOBUF_FIELD_OFFSET(EdaDataFile_PackageRecord_OutlineRecord, _impl_.ycenter_)}}, + // optional float halfSide = 8; + {::_pbi::TcParser::FastF32S1, + {69, 7, 0, PROTOBUF_FIELD_OFFSET(EdaDataFile_PackageRecord_OutlineRecord, _impl_.halfside_)}}, + // optional float radius = 9; + {::_pbi::TcParser::FastF32S1, + {77, 8, 0, PROTOBUF_FIELD_OFFSET(EdaDataFile_PackageRecord_OutlineRecord, _impl_.radius_)}}, + // repeated .Odb.Lib.Protobuf.ContourPolygon contourPolygons = 10; + {::_pbi::TcParser::FastMtR1, + {82, 63, 0, PROTOBUF_FIELD_OFFSET(EdaDataFile_PackageRecord_OutlineRecord, _impl_.contourpolygons_)}}, + {::_pbi::TcParser::MiniParse, {}}, + {::_pbi::TcParser::MiniParse, {}}, + {::_pbi::TcParser::MiniParse, {}}, + {::_pbi::TcParser::MiniParse, {}}, + {::_pbi::TcParser::MiniParse, {}}, + }}, {{ + 65535, 65535 + }}, {{ + // optional .Odb.Lib.Protobuf.EdaDataFile.PackageRecord.OutlineRecord.Type type = 1; + {PROTOBUF_FIELD_OFFSET(EdaDataFile_PackageRecord_OutlineRecord, _impl_.type_), _Internal::kHasBitsOffset + 0, 0, + (0 | ::_fl::kFcOptional | ::_fl::kOpenEnum)}, + // optional float lowerLeftX = 2; + {PROTOBUF_FIELD_OFFSET(EdaDataFile_PackageRecord_OutlineRecord, _impl_.lowerleftx_), _Internal::kHasBitsOffset + 1, 0, + (0 | ::_fl::kFcOptional | ::_fl::kFloat)}, + // optional float lowerLeftY = 3; + {PROTOBUF_FIELD_OFFSET(EdaDataFile_PackageRecord_OutlineRecord, _impl_.lowerlefty_), _Internal::kHasBitsOffset + 2, 0, + (0 | ::_fl::kFcOptional | ::_fl::kFloat)}, + // optional float width = 4; + {PROTOBUF_FIELD_OFFSET(EdaDataFile_PackageRecord_OutlineRecord, _impl_.width_), _Internal::kHasBitsOffset + 3, 0, + (0 | ::_fl::kFcOptional | ::_fl::kFloat)}, + // optional float height = 5; + {PROTOBUF_FIELD_OFFSET(EdaDataFile_PackageRecord_OutlineRecord, _impl_.height_), _Internal::kHasBitsOffset + 4, 0, + (0 | ::_fl::kFcOptional | ::_fl::kFloat)}, + // optional float xCenter = 6; + {PROTOBUF_FIELD_OFFSET(EdaDataFile_PackageRecord_OutlineRecord, _impl_.xcenter_), _Internal::kHasBitsOffset + 5, 0, + (0 | ::_fl::kFcOptional | ::_fl::kFloat)}, + // optional float yCenter = 7; + {PROTOBUF_FIELD_OFFSET(EdaDataFile_PackageRecord_OutlineRecord, _impl_.ycenter_), _Internal::kHasBitsOffset + 6, 0, + (0 | ::_fl::kFcOptional | ::_fl::kFloat)}, + // optional float halfSide = 8; + {PROTOBUF_FIELD_OFFSET(EdaDataFile_PackageRecord_OutlineRecord, _impl_.halfside_), _Internal::kHasBitsOffset + 7, 0, + (0 | ::_fl::kFcOptional | ::_fl::kFloat)}, + // optional float radius = 9; + {PROTOBUF_FIELD_OFFSET(EdaDataFile_PackageRecord_OutlineRecord, _impl_.radius_), _Internal::kHasBitsOffset + 8, 0, + (0 | ::_fl::kFcOptional | ::_fl::kFloat)}, + // repeated .Odb.Lib.Protobuf.ContourPolygon contourPolygons = 10; + {PROTOBUF_FIELD_OFFSET(EdaDataFile_PackageRecord_OutlineRecord, _impl_.contourpolygons_), -1, 0, + (0 | ::_fl::kFcRepeated | ::_fl::kMessage | ::_fl::kTvTable)}, + }}, {{ + {::_pbi::TcParser::GetTable<::Odb::Lib::Protobuf::ContourPolygon>()}, + }}, {{ + }}, +}; -void EdaDataFile_PackageRecord_OutlineRecord::Clear() { +PROTOBUF_NOINLINE void EdaDataFile_PackageRecord_OutlineRecord::Clear() { // @@protoc_insertion_point(message_clear_start:Odb.Lib.Protobuf.EdaDataFile.PackageRecord.OutlineRecord) - uint32_t cached_has_bits = 0; + ::google::protobuf::internal::TSanWrite(&_impl_); + ::uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; _impl_.contourpolygons_.Clear(); cached_has_bits = _impl_._has_bits_[0]; if (cached_has_bits & 0x000000ffu) { - ::memset(&_impl_.type_, 0, static_cast( + ::memset(&_impl_.type_, 0, static_cast<::size_t>( reinterpret_cast(&_impl_.halfside_) - reinterpret_cast(&_impl_.type_)) + sizeof(_impl_.halfside_)); } _impl_.radius_ = 0; _impl_._has_bits_.Clear(); - _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); -} - -const char* EdaDataFile_PackageRecord_OutlineRecord::_InternalParse(const char* ptr, ::_pbi::ParseContext* ctx) { -#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure - _Internal::HasBits has_bits{}; - while (!ctx->Done(&ptr)) { - uint32_t tag; - ptr = ::_pbi::ReadTag(ptr, &tag); - switch (tag >> 3) { - // optional .Odb.Lib.Protobuf.EdaDataFile.PackageRecord.OutlineRecord.Type type = 1; - case 1: - if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 8)) { - uint64_t val = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); - CHK_(ptr); - _internal_set_type(static_cast<::Odb::Lib::Protobuf::EdaDataFile_PackageRecord_OutlineRecord_Type>(val)); - } else - goto handle_unusual; - continue; - // optional float lowerLeftX = 2; - case 2: - if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 21)) { - _Internal::set_has_lowerleftx(&has_bits); - _impl_.lowerleftx_ = ::PROTOBUF_NAMESPACE_ID::internal::UnalignedLoad(ptr); - ptr += sizeof(float); - } else - goto handle_unusual; - continue; - // optional float lowerLeftY = 3; - case 3: - if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 29)) { - _Internal::set_has_lowerlefty(&has_bits); - _impl_.lowerlefty_ = ::PROTOBUF_NAMESPACE_ID::internal::UnalignedLoad(ptr); - ptr += sizeof(float); - } else - goto handle_unusual; - continue; - // optional float width = 4; - case 4: - if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 37)) { - _Internal::set_has_width(&has_bits); - _impl_.width_ = ::PROTOBUF_NAMESPACE_ID::internal::UnalignedLoad(ptr); - ptr += sizeof(float); - } else - goto handle_unusual; - continue; - // optional float height = 5; - case 5: - if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 45)) { - _Internal::set_has_height(&has_bits); - _impl_.height_ = ::PROTOBUF_NAMESPACE_ID::internal::UnalignedLoad(ptr); - ptr += sizeof(float); - } else - goto handle_unusual; - continue; - // optional float xCenter = 6; - case 6: - if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 53)) { - _Internal::set_has_xcenter(&has_bits); - _impl_.xcenter_ = ::PROTOBUF_NAMESPACE_ID::internal::UnalignedLoad(ptr); - ptr += sizeof(float); - } else - goto handle_unusual; - continue; - // optional float yCenter = 7; - case 7: - if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 61)) { - _Internal::set_has_ycenter(&has_bits); - _impl_.ycenter_ = ::PROTOBUF_NAMESPACE_ID::internal::UnalignedLoad(ptr); - ptr += sizeof(float); - } else - goto handle_unusual; - continue; - // optional float halfSide = 8; - case 8: - if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 69)) { - _Internal::set_has_halfside(&has_bits); - _impl_.halfside_ = ::PROTOBUF_NAMESPACE_ID::internal::UnalignedLoad(ptr); - ptr += sizeof(float); - } else - goto handle_unusual; - continue; - // optional float radius = 9; - case 9: - if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 77)) { - _Internal::set_has_radius(&has_bits); - _impl_.radius_ = ::PROTOBUF_NAMESPACE_ID::internal::UnalignedLoad(ptr); - ptr += sizeof(float); - } else - goto handle_unusual; - continue; - // repeated .Odb.Lib.Protobuf.ContourPolygon contourPolygons = 10; - case 10: - if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 82)) { - ptr -= 1; - do { - ptr += 1; - ptr = ctx->ParseMessage(_internal_add_contourpolygons(), ptr); - CHK_(ptr); - if (!ctx->DataAvailable(ptr)) break; - } while (::PROTOBUF_NAMESPACE_ID::internal::ExpectTag<82>(ptr)); - } else - goto handle_unusual; - continue; - default: - goto handle_unusual; - } // switch - handle_unusual: - if ((tag == 0) || ((tag & 7) == 4)) { - CHK_(ptr); - ctx->SetLastTag(tag); - goto message_done; - } - ptr = UnknownFieldParse( - tag, - _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(), - ptr, ctx); - CHK_(ptr != nullptr); - } // while -message_done: - _impl_._has_bits_.Or(has_bits); - return ptr; -failure: - ptr = nullptr; - goto message_done; -#undef CHK_ -} - -uint8_t* EdaDataFile_PackageRecord_OutlineRecord::_InternalSerialize( - uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { - // @@protoc_insertion_point(serialize_to_array_start:Odb.Lib.Protobuf.EdaDataFile.PackageRecord.OutlineRecord) - uint32_t cached_has_bits = 0; - (void) cached_has_bits; - - // optional .Odb.Lib.Protobuf.EdaDataFile.PackageRecord.OutlineRecord.Type type = 1; - if (_internal_has_type()) { - target = stream->EnsureSpace(target); - target = ::_pbi::WireFormatLite::WriteEnumToArray( - 1, this->_internal_type(), target); - } - - // optional float lowerLeftX = 2; - if (_internal_has_lowerleftx()) { - target = stream->EnsureSpace(target); - target = ::_pbi::WireFormatLite::WriteFloatToArray(2, this->_internal_lowerleftx(), target); - } - - // optional float lowerLeftY = 3; - if (_internal_has_lowerlefty()) { - target = stream->EnsureSpace(target); - target = ::_pbi::WireFormatLite::WriteFloatToArray(3, this->_internal_lowerlefty(), target); - } - - // optional float width = 4; - if (_internal_has_width()) { - target = stream->EnsureSpace(target); - target = ::_pbi::WireFormatLite::WriteFloatToArray(4, this->_internal_width(), target); - } - - // optional float height = 5; - if (_internal_has_height()) { - target = stream->EnsureSpace(target); - target = ::_pbi::WireFormatLite::WriteFloatToArray(5, this->_internal_height(), target); - } - - // optional float xCenter = 6; - if (_internal_has_xcenter()) { - target = stream->EnsureSpace(target); - target = ::_pbi::WireFormatLite::WriteFloatToArray(6, this->_internal_xcenter(), target); - } - - // optional float yCenter = 7; - if (_internal_has_ycenter()) { - target = stream->EnsureSpace(target); - target = ::_pbi::WireFormatLite::WriteFloatToArray(7, this->_internal_ycenter(), target); - } - - // optional float halfSide = 8; - if (_internal_has_halfside()) { - target = stream->EnsureSpace(target); - target = ::_pbi::WireFormatLite::WriteFloatToArray(8, this->_internal_halfside(), target); - } - - // optional float radius = 9; - if (_internal_has_radius()) { - target = stream->EnsureSpace(target); - target = ::_pbi::WireFormatLite::WriteFloatToArray(9, this->_internal_radius(), target); - } - - // repeated .Odb.Lib.Protobuf.ContourPolygon contourPolygons = 10; - for (unsigned i = 0, - n = static_cast(this->_internal_contourpolygons_size()); i < n; i++) { - const auto& repfield = this->_internal_contourpolygons(i); - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: - InternalWriteMessage(10, repfield, repfield.GetCachedSize(), target, stream); - } - - if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = ::_pbi::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:Odb.Lib.Protobuf.EdaDataFile.PackageRecord.OutlineRecord) - return target; -} - -size_t EdaDataFile_PackageRecord_OutlineRecord::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:Odb.Lib.Protobuf.EdaDataFile.PackageRecord.OutlineRecord) - size_t total_size = 0; - - uint32_t cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - // repeated .Odb.Lib.Protobuf.ContourPolygon contourPolygons = 10; - total_size += 1UL * this->_internal_contourpolygons_size(); - for (const auto& msg : this->_impl_.contourpolygons_) { - total_size += - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(msg); - } - - cached_has_bits = _impl_._has_bits_[0]; - if (cached_has_bits & 0x000000ffu) { - // optional .Odb.Lib.Protobuf.EdaDataFile.PackageRecord.OutlineRecord.Type type = 1; - if (cached_has_bits & 0x00000001u) { - total_size += 1 + - ::_pbi::WireFormatLite::EnumSize(this->_internal_type()); - } - - // optional float lowerLeftX = 2; - if (cached_has_bits & 0x00000002u) { - total_size += 1 + 4; - } - - // optional float lowerLeftY = 3; - if (cached_has_bits & 0x00000004u) { - total_size += 1 + 4; - } - - // optional float width = 4; - if (cached_has_bits & 0x00000008u) { - total_size += 1 + 4; - } - - // optional float height = 5; - if (cached_has_bits & 0x00000010u) { - total_size += 1 + 4; - } - - // optional float xCenter = 6; - if (cached_has_bits & 0x00000020u) { - total_size += 1 + 4; - } - - // optional float yCenter = 7; - if (cached_has_bits & 0x00000040u) { - total_size += 1 + 4; - } - - // optional float halfSide = 8; - if (cached_has_bits & 0x00000080u) { - total_size += 1 + 4; - } - - } - // optional float radius = 9; - if (cached_has_bits & 0x00000100u) { - total_size += 1 + 4; - } - - return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); -} - -const ::PROTOBUF_NAMESPACE_ID::Message::ClassData EdaDataFile_PackageRecord_OutlineRecord::_class_data_ = { - ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSourceCheck, - EdaDataFile_PackageRecord_OutlineRecord::MergeImpl -}; -const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*EdaDataFile_PackageRecord_OutlineRecord::GetClassData() const { return &_class_data_; } - - -void EdaDataFile_PackageRecord_OutlineRecord::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg) { + _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); +} + +#if defined(PROTOBUF_CUSTOM_VTABLE) + ::uint8_t* EdaDataFile_PackageRecord_OutlineRecord::_InternalSerialize( + const MessageLite& base, ::uint8_t* target, + ::google::protobuf::io::EpsCopyOutputStream* stream) { + const EdaDataFile_PackageRecord_OutlineRecord& this_ = static_cast(base); +#else // PROTOBUF_CUSTOM_VTABLE + ::uint8_t* EdaDataFile_PackageRecord_OutlineRecord::_InternalSerialize( + ::uint8_t* target, + ::google::protobuf::io::EpsCopyOutputStream* stream) const { + const EdaDataFile_PackageRecord_OutlineRecord& this_ = *this; +#endif // PROTOBUF_CUSTOM_VTABLE + // @@protoc_insertion_point(serialize_to_array_start:Odb.Lib.Protobuf.EdaDataFile.PackageRecord.OutlineRecord) + ::uint32_t cached_has_bits = 0; + (void)cached_has_bits; + + cached_has_bits = this_._impl_._has_bits_[0]; + // optional .Odb.Lib.Protobuf.EdaDataFile.PackageRecord.OutlineRecord.Type type = 1; + if (cached_has_bits & 0x00000001u) { + target = stream->EnsureSpace(target); + target = ::_pbi::WireFormatLite::WriteEnumToArray( + 1, this_._internal_type(), target); + } + + // optional float lowerLeftX = 2; + if (cached_has_bits & 0x00000002u) { + target = stream->EnsureSpace(target); + target = ::_pbi::WireFormatLite::WriteFloatToArray( + 2, this_._internal_lowerleftx(), target); + } + + // optional float lowerLeftY = 3; + if (cached_has_bits & 0x00000004u) { + target = stream->EnsureSpace(target); + target = ::_pbi::WireFormatLite::WriteFloatToArray( + 3, this_._internal_lowerlefty(), target); + } + + // optional float width = 4; + if (cached_has_bits & 0x00000008u) { + target = stream->EnsureSpace(target); + target = ::_pbi::WireFormatLite::WriteFloatToArray( + 4, this_._internal_width(), target); + } + + // optional float height = 5; + if (cached_has_bits & 0x00000010u) { + target = stream->EnsureSpace(target); + target = ::_pbi::WireFormatLite::WriteFloatToArray( + 5, this_._internal_height(), target); + } + + // optional float xCenter = 6; + if (cached_has_bits & 0x00000020u) { + target = stream->EnsureSpace(target); + target = ::_pbi::WireFormatLite::WriteFloatToArray( + 6, this_._internal_xcenter(), target); + } + + // optional float yCenter = 7; + if (cached_has_bits & 0x00000040u) { + target = stream->EnsureSpace(target); + target = ::_pbi::WireFormatLite::WriteFloatToArray( + 7, this_._internal_ycenter(), target); + } + + // optional float halfSide = 8; + if (cached_has_bits & 0x00000080u) { + target = stream->EnsureSpace(target); + target = ::_pbi::WireFormatLite::WriteFloatToArray( + 8, this_._internal_halfside(), target); + } + + // optional float radius = 9; + if (cached_has_bits & 0x00000100u) { + target = stream->EnsureSpace(target); + target = ::_pbi::WireFormatLite::WriteFloatToArray( + 9, this_._internal_radius(), target); + } + + // repeated .Odb.Lib.Protobuf.ContourPolygon contourPolygons = 10; + for (unsigned i = 0, n = static_cast( + this_._internal_contourpolygons_size()); + i < n; i++) { + const auto& repfield = this_._internal_contourpolygons().Get(i); + target = + ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( + 10, repfield, repfield.GetCachedSize(), + target, stream); + } + + if (PROTOBUF_PREDICT_FALSE(this_._internal_metadata_.have_unknown_fields())) { + target = + ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( + this_._internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); + } + // @@protoc_insertion_point(serialize_to_array_end:Odb.Lib.Protobuf.EdaDataFile.PackageRecord.OutlineRecord) + return target; + } + +#if defined(PROTOBUF_CUSTOM_VTABLE) + ::size_t EdaDataFile_PackageRecord_OutlineRecord::ByteSizeLong(const MessageLite& base) { + const EdaDataFile_PackageRecord_OutlineRecord& this_ = static_cast(base); +#else // PROTOBUF_CUSTOM_VTABLE + ::size_t EdaDataFile_PackageRecord_OutlineRecord::ByteSizeLong() const { + const EdaDataFile_PackageRecord_OutlineRecord& this_ = *this; +#endif // PROTOBUF_CUSTOM_VTABLE + // @@protoc_insertion_point(message_byte_size_start:Odb.Lib.Protobuf.EdaDataFile.PackageRecord.OutlineRecord) + ::size_t total_size = 0; + + ::uint32_t cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void)cached_has_bits; + + ::_pbi::Prefetch5LinesFrom7Lines(&this_); + { + // repeated .Odb.Lib.Protobuf.ContourPolygon contourPolygons = 10; + { + total_size += 1UL * this_._internal_contourpolygons_size(); + for (const auto& msg : this_._internal_contourpolygons()) { + total_size += ::google::protobuf::internal::WireFormatLite::MessageSize(msg); + } + } + } + cached_has_bits = this_._impl_._has_bits_[0]; + if (cached_has_bits & 0x000000ffu) { + // optional .Odb.Lib.Protobuf.EdaDataFile.PackageRecord.OutlineRecord.Type type = 1; + if (cached_has_bits & 0x00000001u) { + total_size += 1 + + ::_pbi::WireFormatLite::EnumSize(this_._internal_type()); + } + // optional float lowerLeftX = 2; + if (cached_has_bits & 0x00000002u) { + total_size += 5; + } + // optional float lowerLeftY = 3; + if (cached_has_bits & 0x00000004u) { + total_size += 5; + } + // optional float width = 4; + if (cached_has_bits & 0x00000008u) { + total_size += 5; + } + // optional float height = 5; + if (cached_has_bits & 0x00000010u) { + total_size += 5; + } + // optional float xCenter = 6; + if (cached_has_bits & 0x00000020u) { + total_size += 5; + } + // optional float yCenter = 7; + if (cached_has_bits & 0x00000040u) { + total_size += 5; + } + // optional float halfSide = 8; + if (cached_has_bits & 0x00000080u) { + total_size += 5; + } + } + { + // optional float radius = 9; + if (cached_has_bits & 0x00000100u) { + total_size += 5; + } + } + return this_.MaybeComputeUnknownFieldsSize(total_size, + &this_._impl_._cached_size_); + } + +void EdaDataFile_PackageRecord_OutlineRecord::MergeImpl(::google::protobuf::MessageLite& to_msg, const ::google::protobuf::MessageLite& from_msg) { auto* const _this = static_cast(&to_msg); auto& from = static_cast(from_msg); // @@protoc_insertion_point(class_specific_merge_from_start:Odb.Lib.Protobuf.EdaDataFile.PackageRecord.OutlineRecord) - GOOGLE_DCHECK_NE(&from, _this); - uint32_t cached_has_bits = 0; + ABSL_DCHECK_NE(&from, _this); + ::uint32_t cached_has_bits = 0; (void) cached_has_bits; - _this->_impl_.contourpolygons_.MergeFrom(from._impl_.contourpolygons_); + _this->_internal_mutable_contourpolygons()->MergeFrom( + from._internal_contourpolygons()); cached_has_bits = from._impl_._has_bits_[0]; if (cached_has_bits & 0x000000ffu) { if (cached_has_bits & 0x00000001u) { @@ -2490,12 +2909,12 @@ void EdaDataFile_PackageRecord_OutlineRecord::MergeImpl(::PROTOBUF_NAMESPACE_ID: if (cached_has_bits & 0x00000080u) { _this->_impl_.halfside_ = from._impl_.halfside_; } - _this->_impl_._has_bits_[0] |= cached_has_bits; } if (cached_has_bits & 0x00000100u) { - _this->_internal_set_radius(from._internal_radius()); + _this->_impl_.radius_ = from._impl_.radius_; } - _this->_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); + _this->_impl_._has_bits_[0] |= cached_has_bits; + _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); } void EdaDataFile_PackageRecord_OutlineRecord::CopyFrom(const EdaDataFile_PackageRecord_OutlineRecord& from) { @@ -2505,16 +2924,13 @@ void EdaDataFile_PackageRecord_OutlineRecord::CopyFrom(const EdaDataFile_Package MergeFrom(from); } -bool EdaDataFile_PackageRecord_OutlineRecord::IsInitialized() const { - return true; -} -void EdaDataFile_PackageRecord_OutlineRecord::InternalSwap(EdaDataFile_PackageRecord_OutlineRecord* other) { +void EdaDataFile_PackageRecord_OutlineRecord::InternalSwap(EdaDataFile_PackageRecord_OutlineRecord* PROTOBUF_RESTRICT other) { using std::swap; _internal_metadata_.InternalSwap(&other->_internal_metadata_); swap(_impl_._has_bits_[0], other->_impl_._has_bits_[0]); _impl_.contourpolygons_.InternalSwap(&other->_impl_.contourpolygons_); - ::PROTOBUF_NAMESPACE_ID::internal::memswap< + ::google::protobuf::internal::memswap< PROTOBUF_FIELD_OFFSET(EdaDataFile_PackageRecord_OutlineRecord, _impl_.radius_) + sizeof(EdaDataFile_PackageRecord_OutlineRecord::_impl_.radius_) - PROTOBUF_FIELD_OFFSET(EdaDataFile_PackageRecord_OutlineRecord, _impl_.type_)>( @@ -2522,127 +2938,216 @@ void EdaDataFile_PackageRecord_OutlineRecord::InternalSwap(EdaDataFile_PackageRe reinterpret_cast(&other->_impl_.type_)); } -::PROTOBUF_NAMESPACE_ID::Metadata EdaDataFile_PackageRecord_OutlineRecord::GetMetadata() const { - return ::_pbi::AssignDescriptors( - &descriptor_table_edadatafile_2eproto_getter, &descriptor_table_edadatafile_2eproto_once, - file_level_metadata_edadatafile_2eproto[6]); +::google::protobuf::Metadata EdaDataFile_PackageRecord_OutlineRecord::GetMetadata() const { + return ::google::protobuf::Message::GetMetadataImpl(GetClassData()->full()); } - // =================================================================== class EdaDataFile_PackageRecord_PinRecord::_Internal { public: - using HasBits = decltype(std::declval()._impl_._has_bits_); - static void set_has_name(HasBits* has_bits) { - (*has_bits)[0] |= 1u; - } - static void set_has_type(HasBits* has_bits) { - (*has_bits)[0] |= 2u; - } - static void set_has_xcenter(HasBits* has_bits) { - (*has_bits)[0] |= 4u; - } - static void set_has_ycenter(HasBits* has_bits) { - (*has_bits)[0] |= 8u; - } - static void set_has_finishedholesize(HasBits* has_bits) { - (*has_bits)[0] |= 16u; - } - static void set_has_electricaltype(HasBits* has_bits) { - (*has_bits)[0] |= 32u; - } - static void set_has_mounttype(HasBits* has_bits) { - (*has_bits)[0] |= 64u; - } - static void set_has_id(HasBits* has_bits) { - (*has_bits)[0] |= 128u; - } - static void set_has_index(HasBits* has_bits) { - (*has_bits)[0] |= 256u; - } + using HasBits = + decltype(std::declval()._impl_._has_bits_); + static constexpr ::int32_t kHasBitsOffset = + 8 * PROTOBUF_FIELD_OFFSET(EdaDataFile_PackageRecord_PinRecord, _impl_._has_bits_); }; -EdaDataFile_PackageRecord_PinRecord::EdaDataFile_PackageRecord_PinRecord(::PROTOBUF_NAMESPACE_ID::Arena* arena, - bool is_message_owned) - : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned) { - SharedCtor(arena, is_message_owned); +EdaDataFile_PackageRecord_PinRecord::EdaDataFile_PackageRecord_PinRecord(::google::protobuf::Arena* arena) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : ::google::protobuf::Message(arena, _class_data_.base()) { +#else // PROTOBUF_CUSTOM_VTABLE + : ::google::protobuf::Message(arena) { +#endif // PROTOBUF_CUSTOM_VTABLE + SharedCtor(arena); // @@protoc_insertion_point(arena_constructor:Odb.Lib.Protobuf.EdaDataFile.PackageRecord.PinRecord) } -EdaDataFile_PackageRecord_PinRecord::EdaDataFile_PackageRecord_PinRecord(const EdaDataFile_PackageRecord_PinRecord& from) - : ::PROTOBUF_NAMESPACE_ID::Message() { - EdaDataFile_PackageRecord_PinRecord* const _this = this; (void)_this; - new (&_impl_) Impl_{ - decltype(_impl_._has_bits_){from._impl_._has_bits_} - , /*decltype(_impl_._cached_size_)*/{} - , decltype(_impl_.name_){} - , decltype(_impl_.type_){} - , decltype(_impl_.xcenter_){} - , decltype(_impl_.ycenter_){} - , decltype(_impl_.finishedholesize_){} - , decltype(_impl_.electricaltype_){} - , decltype(_impl_.mounttype_){} - , decltype(_impl_.id_){} - , decltype(_impl_.index_){}}; - - _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); - _impl_.name_.InitDefault(); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - _impl_.name_.Set("", GetArenaForAllocation()); - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (from._internal_has_name()) { - _this->_impl_.name_.Set(from._internal_name(), - _this->GetArenaForAllocation()); - } - ::memcpy(&_impl_.type_, &from._impl_.type_, - static_cast(reinterpret_cast(&_impl_.index_) - - reinterpret_cast(&_impl_.type_)) + sizeof(_impl_.index_)); +inline PROTOBUF_NDEBUG_INLINE EdaDataFile_PackageRecord_PinRecord::Impl_::Impl_( + ::google::protobuf::internal::InternalVisibility visibility, ::google::protobuf::Arena* arena, + const Impl_& from, const ::Odb::Lib::Protobuf::EdaDataFile_PackageRecord_PinRecord& from_msg) + : _has_bits_{from._has_bits_}, + _cached_size_{0}, + name_(arena, from.name_) {} + +EdaDataFile_PackageRecord_PinRecord::EdaDataFile_PackageRecord_PinRecord( + ::google::protobuf::Arena* arena, + const EdaDataFile_PackageRecord_PinRecord& from) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : ::google::protobuf::Message(arena, _class_data_.base()) { +#else // PROTOBUF_CUSTOM_VTABLE + : ::google::protobuf::Message(arena) { +#endif // PROTOBUF_CUSTOM_VTABLE + EdaDataFile_PackageRecord_PinRecord* const _this = this; + (void)_this; + _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( + from._internal_metadata_); + new (&_impl_) Impl_(internal_visibility(), arena, from._impl_, from); + ::memcpy(reinterpret_cast(&_impl_) + + offsetof(Impl_, type_), + reinterpret_cast(&from._impl_) + + offsetof(Impl_, type_), + offsetof(Impl_, index_) - + offsetof(Impl_, type_) + + sizeof(Impl_::index_)); + // @@protoc_insertion_point(copy_constructor:Odb.Lib.Protobuf.EdaDataFile.PackageRecord.PinRecord) } - -inline void EdaDataFile_PackageRecord_PinRecord::SharedCtor( - ::_pb::Arena* arena, bool is_message_owned) { - (void)arena; - (void)is_message_owned; - new (&_impl_) Impl_{ - decltype(_impl_._has_bits_){} - , /*decltype(_impl_._cached_size_)*/{} - , decltype(_impl_.name_){} - , decltype(_impl_.type_){0} - , decltype(_impl_.xcenter_){0} - , decltype(_impl_.ycenter_){0} - , decltype(_impl_.finishedholesize_){0} - , decltype(_impl_.electricaltype_){0} - , decltype(_impl_.mounttype_){0} - , decltype(_impl_.id_){0u} - , decltype(_impl_.index_){0u} - }; - _impl_.name_.InitDefault(); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - _impl_.name_.Set("", GetArenaForAllocation()); - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING +inline PROTOBUF_NDEBUG_INLINE EdaDataFile_PackageRecord_PinRecord::Impl_::Impl_( + ::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* arena) + : _cached_size_{0}, + name_(arena) {} + +inline void EdaDataFile_PackageRecord_PinRecord::SharedCtor(::_pb::Arena* arena) { + new (&_impl_) Impl_(internal_visibility(), arena); + ::memset(reinterpret_cast(&_impl_) + + offsetof(Impl_, type_), + 0, + offsetof(Impl_, index_) - + offsetof(Impl_, type_) + + sizeof(Impl_::index_)); } - EdaDataFile_PackageRecord_PinRecord::~EdaDataFile_PackageRecord_PinRecord() { // @@protoc_insertion_point(destructor:Odb.Lib.Protobuf.EdaDataFile.PackageRecord.PinRecord) - if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) { - (void)arena; - return; - } - SharedDtor(); -} - -inline void EdaDataFile_PackageRecord_PinRecord::SharedDtor() { - GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); - _impl_.name_.Destroy(); -} - -void EdaDataFile_PackageRecord_PinRecord::SetCachedSize(int size) const { - _impl_._cached_size_.Set(size); -} + SharedDtor(*this); +} +inline void EdaDataFile_PackageRecord_PinRecord::SharedDtor(MessageLite& self) { + EdaDataFile_PackageRecord_PinRecord& this_ = static_cast(self); + this_._internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); + ABSL_DCHECK(this_.GetArena() == nullptr); + this_._impl_.name_.Destroy(); + this_._impl_.~Impl_(); +} + +inline void* EdaDataFile_PackageRecord_PinRecord::PlacementNew_(const void*, void* mem, + ::google::protobuf::Arena* arena) { + return ::new (mem) EdaDataFile_PackageRecord_PinRecord(arena); +} +constexpr auto EdaDataFile_PackageRecord_PinRecord::InternalNewImpl_() { + return ::google::protobuf::internal::MessageCreator::CopyInit(sizeof(EdaDataFile_PackageRecord_PinRecord), + alignof(EdaDataFile_PackageRecord_PinRecord)); +} +PROTOBUF_CONSTINIT +PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 +const ::google::protobuf::internal::ClassDataFull EdaDataFile_PackageRecord_PinRecord::_class_data_ = { + ::google::protobuf::internal::ClassData{ + &_EdaDataFile_PackageRecord_PinRecord_default_instance_._instance, + &_table_.header, + nullptr, // OnDemandRegisterArenaDtor + nullptr, // IsInitialized + &EdaDataFile_PackageRecord_PinRecord::MergeImpl, + ::google::protobuf::Message::GetNewImpl(), +#if defined(PROTOBUF_CUSTOM_VTABLE) + &EdaDataFile_PackageRecord_PinRecord::SharedDtor, + ::google::protobuf::Message::GetClearImpl(), &EdaDataFile_PackageRecord_PinRecord::ByteSizeLong, + &EdaDataFile_PackageRecord_PinRecord::_InternalSerialize, +#endif // PROTOBUF_CUSTOM_VTABLE + PROTOBUF_FIELD_OFFSET(EdaDataFile_PackageRecord_PinRecord, _impl_._cached_size_), + false, + }, + &EdaDataFile_PackageRecord_PinRecord::kDescriptorMethods, + &descriptor_table_edadatafile_2eproto, + nullptr, // tracker +}; +const ::google::protobuf::internal::ClassData* EdaDataFile_PackageRecord_PinRecord::GetClassData() const { + ::google::protobuf::internal::PrefetchToLocalCache(&_class_data_); + ::google::protobuf::internal::PrefetchToLocalCache(_class_data_.tc_table); + return _class_data_.base(); +} +PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 +const ::_pbi::TcParseTable<4, 9, 0, 73, 2> EdaDataFile_PackageRecord_PinRecord::_table_ = { + { + PROTOBUF_FIELD_OFFSET(EdaDataFile_PackageRecord_PinRecord, _impl_._has_bits_), + 0, // no _extensions_ + 9, 120, // max_field_number, fast_idx_mask + offsetof(decltype(_table_), field_lookup_table), + 4294966784, // skipmap + offsetof(decltype(_table_), field_entries), + 9, // num_field_entries + 0, // num_aux_entries + offsetof(decltype(_table_), field_names), // no aux_entries + _class_data_.base(), + nullptr, // post_loop_handler + ::_pbi::TcParser::GenericFallback, // fallback + #ifdef PROTOBUF_PREFETCH_PARSE_TABLE + ::_pbi::TcParser::GetTable<::Odb::Lib::Protobuf::EdaDataFile_PackageRecord_PinRecord>(), // to_prefetch + #endif // PROTOBUF_PREFETCH_PARSE_TABLE + }, {{ + {::_pbi::TcParser::MiniParse, {}}, + // optional string name = 1; + {::_pbi::TcParser::FastUS1, + {10, 0, 0, PROTOBUF_FIELD_OFFSET(EdaDataFile_PackageRecord_PinRecord, _impl_.name_)}}, + // optional .Odb.Lib.Protobuf.EdaDataFile.PackageRecord.PinRecord.Type type = 2; + {::_pbi::TcParser::SingularVarintNoZag1<::uint32_t, offsetof(EdaDataFile_PackageRecord_PinRecord, _impl_.type_), 1>(), + {16, 1, 0, PROTOBUF_FIELD_OFFSET(EdaDataFile_PackageRecord_PinRecord, _impl_.type_)}}, + // optional float xCenter = 3; + {::_pbi::TcParser::FastF32S1, + {29, 2, 0, PROTOBUF_FIELD_OFFSET(EdaDataFile_PackageRecord_PinRecord, _impl_.xcenter_)}}, + // optional float yCenter = 4; + {::_pbi::TcParser::FastF32S1, + {37, 3, 0, PROTOBUF_FIELD_OFFSET(EdaDataFile_PackageRecord_PinRecord, _impl_.ycenter_)}}, + // optional float finishedHoleSize = 5; + {::_pbi::TcParser::FastF32S1, + {45, 4, 0, PROTOBUF_FIELD_OFFSET(EdaDataFile_PackageRecord_PinRecord, _impl_.finishedholesize_)}}, + // optional .Odb.Lib.Protobuf.EdaDataFile.PackageRecord.PinRecord.ElectricalType electricalType = 6; + {::_pbi::TcParser::SingularVarintNoZag1<::uint32_t, offsetof(EdaDataFile_PackageRecord_PinRecord, _impl_.electricaltype_), 5>(), + {48, 5, 0, PROTOBUF_FIELD_OFFSET(EdaDataFile_PackageRecord_PinRecord, _impl_.electricaltype_)}}, + // optional .Odb.Lib.Protobuf.EdaDataFile.PackageRecord.PinRecord.MountType mountType = 7; + {::_pbi::TcParser::SingularVarintNoZag1<::uint32_t, offsetof(EdaDataFile_PackageRecord_PinRecord, _impl_.mounttype_), 6>(), + {56, 6, 0, PROTOBUF_FIELD_OFFSET(EdaDataFile_PackageRecord_PinRecord, _impl_.mounttype_)}}, + // optional uint32 id = 8; + {::_pbi::TcParser::SingularVarintNoZag1<::uint32_t, offsetof(EdaDataFile_PackageRecord_PinRecord, _impl_.id_), 7>(), + {64, 7, 0, PROTOBUF_FIELD_OFFSET(EdaDataFile_PackageRecord_PinRecord, _impl_.id_)}}, + // optional uint32 index = 9; + {::_pbi::TcParser::SingularVarintNoZag1<::uint32_t, offsetof(EdaDataFile_PackageRecord_PinRecord, _impl_.index_), 8>(), + {72, 8, 0, PROTOBUF_FIELD_OFFSET(EdaDataFile_PackageRecord_PinRecord, _impl_.index_)}}, + {::_pbi::TcParser::MiniParse, {}}, + {::_pbi::TcParser::MiniParse, {}}, + {::_pbi::TcParser::MiniParse, {}}, + {::_pbi::TcParser::MiniParse, {}}, + {::_pbi::TcParser::MiniParse, {}}, + {::_pbi::TcParser::MiniParse, {}}, + }}, {{ + 65535, 65535 + }}, {{ + // optional string name = 1; + {PROTOBUF_FIELD_OFFSET(EdaDataFile_PackageRecord_PinRecord, _impl_.name_), _Internal::kHasBitsOffset + 0, 0, + (0 | ::_fl::kFcOptional | ::_fl::kUtf8String | ::_fl::kRepAString)}, + // optional .Odb.Lib.Protobuf.EdaDataFile.PackageRecord.PinRecord.Type type = 2; + {PROTOBUF_FIELD_OFFSET(EdaDataFile_PackageRecord_PinRecord, _impl_.type_), _Internal::kHasBitsOffset + 1, 0, + (0 | ::_fl::kFcOptional | ::_fl::kOpenEnum)}, + // optional float xCenter = 3; + {PROTOBUF_FIELD_OFFSET(EdaDataFile_PackageRecord_PinRecord, _impl_.xcenter_), _Internal::kHasBitsOffset + 2, 0, + (0 | ::_fl::kFcOptional | ::_fl::kFloat)}, + // optional float yCenter = 4; + {PROTOBUF_FIELD_OFFSET(EdaDataFile_PackageRecord_PinRecord, _impl_.ycenter_), _Internal::kHasBitsOffset + 3, 0, + (0 | ::_fl::kFcOptional | ::_fl::kFloat)}, + // optional float finishedHoleSize = 5; + {PROTOBUF_FIELD_OFFSET(EdaDataFile_PackageRecord_PinRecord, _impl_.finishedholesize_), _Internal::kHasBitsOffset + 4, 0, + (0 | ::_fl::kFcOptional | ::_fl::kFloat)}, + // optional .Odb.Lib.Protobuf.EdaDataFile.PackageRecord.PinRecord.ElectricalType electricalType = 6; + {PROTOBUF_FIELD_OFFSET(EdaDataFile_PackageRecord_PinRecord, _impl_.electricaltype_), _Internal::kHasBitsOffset + 5, 0, + (0 | ::_fl::kFcOptional | ::_fl::kOpenEnum)}, + // optional .Odb.Lib.Protobuf.EdaDataFile.PackageRecord.PinRecord.MountType mountType = 7; + {PROTOBUF_FIELD_OFFSET(EdaDataFile_PackageRecord_PinRecord, _impl_.mounttype_), _Internal::kHasBitsOffset + 6, 0, + (0 | ::_fl::kFcOptional | ::_fl::kOpenEnum)}, + // optional uint32 id = 8; + {PROTOBUF_FIELD_OFFSET(EdaDataFile_PackageRecord_PinRecord, _impl_.id_), _Internal::kHasBitsOffset + 7, 0, + (0 | ::_fl::kFcOptional | ::_fl::kUInt32)}, + // optional uint32 index = 9; + {PROTOBUF_FIELD_OFFSET(EdaDataFile_PackageRecord_PinRecord, _impl_.index_), _Internal::kHasBitsOffset + 8, 0, + (0 | ::_fl::kFcOptional | ::_fl::kUInt32)}, + }}, + // no aux_entries + {{ + "\64\4\0\0\0\0\0\0\0\0\0\0\0\0\0\0" + "Odb.Lib.Protobuf.EdaDataFile.PackageRecord.PinRecord" + "name" + }}, +}; -void EdaDataFile_PackageRecord_PinRecord::Clear() { +PROTOBUF_NOINLINE void EdaDataFile_PackageRecord_PinRecord::Clear() { // @@protoc_insertion_point(message_clear_start:Odb.Lib.Protobuf.EdaDataFile.PackageRecord.PinRecord) - uint32_t cached_has_bits = 0; + ::google::protobuf::internal::TSanWrite(&_impl_); + ::uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; @@ -2651,280 +3156,176 @@ void EdaDataFile_PackageRecord_PinRecord::Clear() { _impl_.name_.ClearNonDefaultToEmpty(); } if (cached_has_bits & 0x000000feu) { - ::memset(&_impl_.type_, 0, static_cast( + ::memset(&_impl_.type_, 0, static_cast<::size_t>( reinterpret_cast(&_impl_.id_) - reinterpret_cast(&_impl_.type_)) + sizeof(_impl_.id_)); } _impl_.index_ = 0u; _impl_._has_bits_.Clear(); - _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); -} - -const char* EdaDataFile_PackageRecord_PinRecord::_InternalParse(const char* ptr, ::_pbi::ParseContext* ctx) { -#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure - _Internal::HasBits has_bits{}; - while (!ctx->Done(&ptr)) { - uint32_t tag; - ptr = ::_pbi::ReadTag(ptr, &tag); - switch (tag >> 3) { - // optional string name = 1; - case 1: - if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 10)) { - auto str = _internal_mutable_name(); - ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); - CHK_(ptr); - CHK_(::_pbi::VerifyUTF8(str, "Odb.Lib.Protobuf.EdaDataFile.PackageRecord.PinRecord.name")); - } else - goto handle_unusual; - continue; - // optional .Odb.Lib.Protobuf.EdaDataFile.PackageRecord.PinRecord.Type type = 2; - case 2: - if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 16)) { - uint64_t val = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); - CHK_(ptr); - _internal_set_type(static_cast<::Odb::Lib::Protobuf::EdaDataFile_PackageRecord_PinRecord_Type>(val)); - } else - goto handle_unusual; - continue; - // optional float xCenter = 3; - case 3: - if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 29)) { - _Internal::set_has_xcenter(&has_bits); - _impl_.xcenter_ = ::PROTOBUF_NAMESPACE_ID::internal::UnalignedLoad(ptr); - ptr += sizeof(float); - } else - goto handle_unusual; - continue; - // optional float yCenter = 4; - case 4: - if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 37)) { - _Internal::set_has_ycenter(&has_bits); - _impl_.ycenter_ = ::PROTOBUF_NAMESPACE_ID::internal::UnalignedLoad(ptr); - ptr += sizeof(float); - } else - goto handle_unusual; - continue; - // optional float finishedHoleSize = 5; - case 5: - if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 45)) { - _Internal::set_has_finishedholesize(&has_bits); - _impl_.finishedholesize_ = ::PROTOBUF_NAMESPACE_ID::internal::UnalignedLoad(ptr); - ptr += sizeof(float); - } else - goto handle_unusual; - continue; - // optional .Odb.Lib.Protobuf.EdaDataFile.PackageRecord.PinRecord.ElectricalType electricalType = 6; - case 6: - if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 48)) { - uint64_t val = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); - CHK_(ptr); - _internal_set_electricaltype(static_cast<::Odb::Lib::Protobuf::EdaDataFile_PackageRecord_PinRecord_ElectricalType>(val)); - } else - goto handle_unusual; - continue; - // optional .Odb.Lib.Protobuf.EdaDataFile.PackageRecord.PinRecord.MountType mountType = 7; - case 7: - if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 56)) { - uint64_t val = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); - CHK_(ptr); - _internal_set_mounttype(static_cast<::Odb::Lib::Protobuf::EdaDataFile_PackageRecord_PinRecord_MountType>(val)); - } else - goto handle_unusual; - continue; - // optional uint32 id = 8; - case 8: - if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 64)) { - _Internal::set_has_id(&has_bits); - _impl_.id_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr); - CHK_(ptr); - } else - goto handle_unusual; - continue; - // optional uint32 index = 9; - case 9: - if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 72)) { - _Internal::set_has_index(&has_bits); - _impl_.index_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr); - CHK_(ptr); - } else - goto handle_unusual; - continue; - default: - goto handle_unusual; - } // switch - handle_unusual: - if ((tag == 0) || ((tag & 7) == 4)) { - CHK_(ptr); - ctx->SetLastTag(tag); - goto message_done; - } - ptr = UnknownFieldParse( - tag, - _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(), - ptr, ctx); - CHK_(ptr != nullptr); - } // while -message_done: - _impl_._has_bits_.Or(has_bits); - return ptr; -failure: - ptr = nullptr; - goto message_done; -#undef CHK_ -} - -uint8_t* EdaDataFile_PackageRecord_PinRecord::_InternalSerialize( - uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { - // @@protoc_insertion_point(serialize_to_array_start:Odb.Lib.Protobuf.EdaDataFile.PackageRecord.PinRecord) - uint32_t cached_has_bits = 0; - (void) cached_has_bits; - - // optional string name = 1; - if (_internal_has_name()) { - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( - this->_internal_name().data(), static_cast(this->_internal_name().length()), - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, - "Odb.Lib.Protobuf.EdaDataFile.PackageRecord.PinRecord.name"); - target = stream->WriteStringMaybeAliased( - 1, this->_internal_name(), target); - } - - // optional .Odb.Lib.Protobuf.EdaDataFile.PackageRecord.PinRecord.Type type = 2; - if (_internal_has_type()) { - target = stream->EnsureSpace(target); - target = ::_pbi::WireFormatLite::WriteEnumToArray( - 2, this->_internal_type(), target); - } - - // optional float xCenter = 3; - if (_internal_has_xcenter()) { - target = stream->EnsureSpace(target); - target = ::_pbi::WireFormatLite::WriteFloatToArray(3, this->_internal_xcenter(), target); - } - - // optional float yCenter = 4; - if (_internal_has_ycenter()) { - target = stream->EnsureSpace(target); - target = ::_pbi::WireFormatLite::WriteFloatToArray(4, this->_internal_ycenter(), target); - } - - // optional float finishedHoleSize = 5; - if (_internal_has_finishedholesize()) { - target = stream->EnsureSpace(target); - target = ::_pbi::WireFormatLite::WriteFloatToArray(5, this->_internal_finishedholesize(), target); - } - - // optional .Odb.Lib.Protobuf.EdaDataFile.PackageRecord.PinRecord.ElectricalType electricalType = 6; - if (_internal_has_electricaltype()) { - target = stream->EnsureSpace(target); - target = ::_pbi::WireFormatLite::WriteEnumToArray( - 6, this->_internal_electricaltype(), target); - } - - // optional .Odb.Lib.Protobuf.EdaDataFile.PackageRecord.PinRecord.MountType mountType = 7; - if (_internal_has_mounttype()) { - target = stream->EnsureSpace(target); - target = ::_pbi::WireFormatLite::WriteEnumToArray( - 7, this->_internal_mounttype(), target); - } - - // optional uint32 id = 8; - if (_internal_has_id()) { - target = stream->EnsureSpace(target); - target = ::_pbi::WireFormatLite::WriteUInt32ToArray(8, this->_internal_id(), target); - } - - // optional uint32 index = 9; - if (_internal_has_index()) { - target = stream->EnsureSpace(target); - target = ::_pbi::WireFormatLite::WriteUInt32ToArray(9, this->_internal_index(), target); - } - - if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = ::_pbi::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:Odb.Lib.Protobuf.EdaDataFile.PackageRecord.PinRecord) - return target; -} - -size_t EdaDataFile_PackageRecord_PinRecord::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:Odb.Lib.Protobuf.EdaDataFile.PackageRecord.PinRecord) - size_t total_size = 0; - - uint32_t cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - cached_has_bits = _impl_._has_bits_[0]; - if (cached_has_bits & 0x000000ffu) { - // optional string name = 1; - if (cached_has_bits & 0x00000001u) { - total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( - this->_internal_name()); - } - - // optional .Odb.Lib.Protobuf.EdaDataFile.PackageRecord.PinRecord.Type type = 2; - if (cached_has_bits & 0x00000002u) { - total_size += 1 + - ::_pbi::WireFormatLite::EnumSize(this->_internal_type()); - } - - // optional float xCenter = 3; - if (cached_has_bits & 0x00000004u) { - total_size += 1 + 4; - } - - // optional float yCenter = 4; - if (cached_has_bits & 0x00000008u) { - total_size += 1 + 4; - } - - // optional float finishedHoleSize = 5; - if (cached_has_bits & 0x00000010u) { - total_size += 1 + 4; - } - - // optional .Odb.Lib.Protobuf.EdaDataFile.PackageRecord.PinRecord.ElectricalType electricalType = 6; - if (cached_has_bits & 0x00000020u) { - total_size += 1 + - ::_pbi::WireFormatLite::EnumSize(this->_internal_electricaltype()); - } - - // optional .Odb.Lib.Protobuf.EdaDataFile.PackageRecord.PinRecord.MountType mountType = 7; - if (cached_has_bits & 0x00000040u) { - total_size += 1 + - ::_pbi::WireFormatLite::EnumSize(this->_internal_mounttype()); - } - - // optional uint32 id = 8; - if (cached_has_bits & 0x00000080u) { - total_size += ::_pbi::WireFormatLite::UInt32SizePlusOne(this->_internal_id()); - } - - } - // optional uint32 index = 9; - if (cached_has_bits & 0x00000100u) { - total_size += ::_pbi::WireFormatLite::UInt32SizePlusOne(this->_internal_index()); - } - - return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); -} - -const ::PROTOBUF_NAMESPACE_ID::Message::ClassData EdaDataFile_PackageRecord_PinRecord::_class_data_ = { - ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSourceCheck, - EdaDataFile_PackageRecord_PinRecord::MergeImpl -}; -const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*EdaDataFile_PackageRecord_PinRecord::GetClassData() const { return &_class_data_; } - - -void EdaDataFile_PackageRecord_PinRecord::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg) { + _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); +} + +#if defined(PROTOBUF_CUSTOM_VTABLE) + ::uint8_t* EdaDataFile_PackageRecord_PinRecord::_InternalSerialize( + const MessageLite& base, ::uint8_t* target, + ::google::protobuf::io::EpsCopyOutputStream* stream) { + const EdaDataFile_PackageRecord_PinRecord& this_ = static_cast(base); +#else // PROTOBUF_CUSTOM_VTABLE + ::uint8_t* EdaDataFile_PackageRecord_PinRecord::_InternalSerialize( + ::uint8_t* target, + ::google::protobuf::io::EpsCopyOutputStream* stream) const { + const EdaDataFile_PackageRecord_PinRecord& this_ = *this; +#endif // PROTOBUF_CUSTOM_VTABLE + // @@protoc_insertion_point(serialize_to_array_start:Odb.Lib.Protobuf.EdaDataFile.PackageRecord.PinRecord) + ::uint32_t cached_has_bits = 0; + (void)cached_has_bits; + + cached_has_bits = this_._impl_._has_bits_[0]; + // optional string name = 1; + if (cached_has_bits & 0x00000001u) { + const std::string& _s = this_._internal_name(); + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + _s.data(), static_cast(_s.length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "Odb.Lib.Protobuf.EdaDataFile.PackageRecord.PinRecord.name"); + target = stream->WriteStringMaybeAliased(1, _s, target); + } + + // optional .Odb.Lib.Protobuf.EdaDataFile.PackageRecord.PinRecord.Type type = 2; + if (cached_has_bits & 0x00000002u) { + target = stream->EnsureSpace(target); + target = ::_pbi::WireFormatLite::WriteEnumToArray( + 2, this_._internal_type(), target); + } + + // optional float xCenter = 3; + if (cached_has_bits & 0x00000004u) { + target = stream->EnsureSpace(target); + target = ::_pbi::WireFormatLite::WriteFloatToArray( + 3, this_._internal_xcenter(), target); + } + + // optional float yCenter = 4; + if (cached_has_bits & 0x00000008u) { + target = stream->EnsureSpace(target); + target = ::_pbi::WireFormatLite::WriteFloatToArray( + 4, this_._internal_ycenter(), target); + } + + // optional float finishedHoleSize = 5; + if (cached_has_bits & 0x00000010u) { + target = stream->EnsureSpace(target); + target = ::_pbi::WireFormatLite::WriteFloatToArray( + 5, this_._internal_finishedholesize(), target); + } + + // optional .Odb.Lib.Protobuf.EdaDataFile.PackageRecord.PinRecord.ElectricalType electricalType = 6; + if (cached_has_bits & 0x00000020u) { + target = stream->EnsureSpace(target); + target = ::_pbi::WireFormatLite::WriteEnumToArray( + 6, this_._internal_electricaltype(), target); + } + + // optional .Odb.Lib.Protobuf.EdaDataFile.PackageRecord.PinRecord.MountType mountType = 7; + if (cached_has_bits & 0x00000040u) { + target = stream->EnsureSpace(target); + target = ::_pbi::WireFormatLite::WriteEnumToArray( + 7, this_._internal_mounttype(), target); + } + + // optional uint32 id = 8; + if (cached_has_bits & 0x00000080u) { + target = stream->EnsureSpace(target); + target = ::_pbi::WireFormatLite::WriteUInt32ToArray( + 8, this_._internal_id(), target); + } + + // optional uint32 index = 9; + if (cached_has_bits & 0x00000100u) { + target = stream->EnsureSpace(target); + target = ::_pbi::WireFormatLite::WriteUInt32ToArray( + 9, this_._internal_index(), target); + } + + if (PROTOBUF_PREDICT_FALSE(this_._internal_metadata_.have_unknown_fields())) { + target = + ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( + this_._internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); + } + // @@protoc_insertion_point(serialize_to_array_end:Odb.Lib.Protobuf.EdaDataFile.PackageRecord.PinRecord) + return target; + } + +#if defined(PROTOBUF_CUSTOM_VTABLE) + ::size_t EdaDataFile_PackageRecord_PinRecord::ByteSizeLong(const MessageLite& base) { + const EdaDataFile_PackageRecord_PinRecord& this_ = static_cast(base); +#else // PROTOBUF_CUSTOM_VTABLE + ::size_t EdaDataFile_PackageRecord_PinRecord::ByteSizeLong() const { + const EdaDataFile_PackageRecord_PinRecord& this_ = *this; +#endif // PROTOBUF_CUSTOM_VTABLE + // @@protoc_insertion_point(message_byte_size_start:Odb.Lib.Protobuf.EdaDataFile.PackageRecord.PinRecord) + ::size_t total_size = 0; + + ::uint32_t cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void)cached_has_bits; + + ::_pbi::Prefetch5LinesFrom7Lines(&this_); + cached_has_bits = this_._impl_._has_bits_[0]; + if (cached_has_bits & 0x000000ffu) { + // optional string name = 1; + if (cached_has_bits & 0x00000001u) { + total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize( + this_._internal_name()); + } + // optional .Odb.Lib.Protobuf.EdaDataFile.PackageRecord.PinRecord.Type type = 2; + if (cached_has_bits & 0x00000002u) { + total_size += 1 + + ::_pbi::WireFormatLite::EnumSize(this_._internal_type()); + } + // optional float xCenter = 3; + if (cached_has_bits & 0x00000004u) { + total_size += 5; + } + // optional float yCenter = 4; + if (cached_has_bits & 0x00000008u) { + total_size += 5; + } + // optional float finishedHoleSize = 5; + if (cached_has_bits & 0x00000010u) { + total_size += 5; + } + // optional .Odb.Lib.Protobuf.EdaDataFile.PackageRecord.PinRecord.ElectricalType electricalType = 6; + if (cached_has_bits & 0x00000020u) { + total_size += 1 + + ::_pbi::WireFormatLite::EnumSize(this_._internal_electricaltype()); + } + // optional .Odb.Lib.Protobuf.EdaDataFile.PackageRecord.PinRecord.MountType mountType = 7; + if (cached_has_bits & 0x00000040u) { + total_size += 1 + + ::_pbi::WireFormatLite::EnumSize(this_._internal_mounttype()); + } + // optional uint32 id = 8; + if (cached_has_bits & 0x00000080u) { + total_size += ::_pbi::WireFormatLite::UInt32SizePlusOne( + this_._internal_id()); + } + } + { + // optional uint32 index = 9; + if (cached_has_bits & 0x00000100u) { + total_size += ::_pbi::WireFormatLite::UInt32SizePlusOne( + this_._internal_index()); + } + } + return this_.MaybeComputeUnknownFieldsSize(total_size, + &this_._impl_._cached_size_); + } + +void EdaDataFile_PackageRecord_PinRecord::MergeImpl(::google::protobuf::MessageLite& to_msg, const ::google::protobuf::MessageLite& from_msg) { auto* const _this = static_cast(&to_msg); auto& from = static_cast(from_msg); // @@protoc_insertion_point(class_specific_merge_from_start:Odb.Lib.Protobuf.EdaDataFile.PackageRecord.PinRecord) - GOOGLE_DCHECK_NE(&from, _this); - uint32_t cached_has_bits = 0; + ABSL_DCHECK_NE(&from, _this); + ::uint32_t cached_has_bits = 0; (void) cached_has_bits; cached_has_bits = from._impl_._has_bits_[0]; @@ -2953,12 +3354,12 @@ void EdaDataFile_PackageRecord_PinRecord::MergeImpl(::PROTOBUF_NAMESPACE_ID::Mes if (cached_has_bits & 0x00000080u) { _this->_impl_.id_ = from._impl_.id_; } - _this->_impl_._has_bits_[0] |= cached_has_bits; } if (cached_has_bits & 0x00000100u) { - _this->_internal_set_index(from._internal_index()); + _this->_impl_.index_ = from._impl_.index_; } - _this->_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); + _this->_impl_._has_bits_[0] |= cached_has_bits; + _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); } void EdaDataFile_PackageRecord_PinRecord::CopyFrom(const EdaDataFile_PackageRecord_PinRecord& from) { @@ -2968,21 +3369,15 @@ void EdaDataFile_PackageRecord_PinRecord::CopyFrom(const EdaDataFile_PackageReco MergeFrom(from); } -bool EdaDataFile_PackageRecord_PinRecord::IsInitialized() const { - return true; -} -void EdaDataFile_PackageRecord_PinRecord::InternalSwap(EdaDataFile_PackageRecord_PinRecord* other) { +void EdaDataFile_PackageRecord_PinRecord::InternalSwap(EdaDataFile_PackageRecord_PinRecord* PROTOBUF_RESTRICT other) { using std::swap; - auto* lhs_arena = GetArenaForAllocation(); - auto* rhs_arena = other->GetArenaForAllocation(); + auto* arena = GetArena(); + ABSL_DCHECK_EQ(arena, other->GetArena()); _internal_metadata_.InternalSwap(&other->_internal_metadata_); swap(_impl_._has_bits_[0], other->_impl_._has_bits_[0]); - ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( - &_impl_.name_, lhs_arena, - &other->_impl_.name_, rhs_arena - ); - ::PROTOBUF_NAMESPACE_ID::internal::memswap< + ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.name_, &other->_impl_.name_, arena); + ::google::protobuf::internal::memswap< PROTOBUF_FIELD_OFFSET(EdaDataFile_PackageRecord_PinRecord, _impl_.index_) + sizeof(EdaDataFile_PackageRecord_PinRecord::_impl_.index_) - PROTOBUF_FIELD_OFFSET(EdaDataFile_PackageRecord_PinRecord, _impl_.type_)>( @@ -2990,161 +3385,294 @@ void EdaDataFile_PackageRecord_PinRecord::InternalSwap(EdaDataFile_PackageRecord reinterpret_cast(&other->_impl_.type_)); } -::PROTOBUF_NAMESPACE_ID::Metadata EdaDataFile_PackageRecord_PinRecord::GetMetadata() const { - return ::_pbi::AssignDescriptors( - &descriptor_table_edadatafile_2eproto_getter, &descriptor_table_edadatafile_2eproto_once, - file_level_metadata_edadatafile_2eproto[7]); +::google::protobuf::Metadata EdaDataFile_PackageRecord_PinRecord::GetMetadata() const { + return ::google::protobuf::Message::GetMetadataImpl(GetClassData()->full()); } - // =================================================================== class EdaDataFile_PackageRecord::_Internal { public: - using HasBits = decltype(std::declval()._impl_._has_bits_); - static void set_has_name(HasBits* has_bits) { - (*has_bits)[0] |= 1u; - } - static void set_has_pitch(HasBits* has_bits) { - (*has_bits)[0] |= 4u; - } - static void set_has_xmin(HasBits* has_bits) { - (*has_bits)[0] |= 8u; - } - static void set_has_ymin(HasBits* has_bits) { - (*has_bits)[0] |= 16u; - } - static void set_has_xmax(HasBits* has_bits) { - (*has_bits)[0] |= 32u; - } - static void set_has_ymax(HasBits* has_bits) { - (*has_bits)[0] |= 64u; - } - static void set_has_attributesidstring(HasBits* has_bits) { - (*has_bits)[0] |= 2u; - } + using HasBits = + decltype(std::declval()._impl_._has_bits_); + static constexpr ::int32_t kHasBitsOffset = + 8 * PROTOBUF_FIELD_OFFSET(EdaDataFile_PackageRecord, _impl_._has_bits_); }; void EdaDataFile_PackageRecord::clear_propertyrecords() { + ::google::protobuf::internal::TSanWrite(&_impl_); _impl_.propertyrecords_.Clear(); } -EdaDataFile_PackageRecord::EdaDataFile_PackageRecord(::PROTOBUF_NAMESPACE_ID::Arena* arena, - bool is_message_owned) - : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned) { - SharedCtor(arena, is_message_owned); - if (arena != nullptr && !is_message_owned) { - arena->OwnCustomDestructor(this, &EdaDataFile_PackageRecord::ArenaDtor); - } +EdaDataFile_PackageRecord::EdaDataFile_PackageRecord(::google::protobuf::Arena* arena) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : ::google::protobuf::Message(arena, _class_data_.base()) { +#else // PROTOBUF_CUSTOM_VTABLE + : ::google::protobuf::Message(arena) { +#endif // PROTOBUF_CUSTOM_VTABLE + SharedCtor(arena); // @@protoc_insertion_point(arena_constructor:Odb.Lib.Protobuf.EdaDataFile.PackageRecord) } -EdaDataFile_PackageRecord::EdaDataFile_PackageRecord(const EdaDataFile_PackageRecord& from) - : ::PROTOBUF_NAMESPACE_ID::Message() { - EdaDataFile_PackageRecord* const _this = this; (void)_this; - new (&_impl_) Impl_{ - decltype(_impl_._has_bits_){from._impl_._has_bits_} - , /*decltype(_impl_._cached_size_)*/{} - , decltype(_impl_.pinrecords_){from._impl_.pinrecords_} - , /*decltype(_impl_.pinrecordsbyname_)*/{} - , decltype(_impl_.propertyrecords_){from._impl_.propertyrecords_} - , decltype(_impl_.outlinerecords_){from._impl_.outlinerecords_} - , /*decltype(_impl_.attributelookuptable_)*/{} - , decltype(_impl_.name_){} - , decltype(_impl_.attributesidstring_){} - , decltype(_impl_.pitch_){} - , decltype(_impl_.xmin_){} - , decltype(_impl_.ymin_){} - , decltype(_impl_.xmax_){} - , decltype(_impl_.ymax_){}}; - - _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); - _this->_impl_.pinrecordsbyname_.MergeFrom(from._impl_.pinrecordsbyname_); - _this->_impl_.attributelookuptable_.MergeFrom(from._impl_.attributelookuptable_); - _impl_.name_.InitDefault(); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - _impl_.name_.Set("", GetArenaForAllocation()); - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (from._internal_has_name()) { - _this->_impl_.name_.Set(from._internal_name(), - _this->GetArenaForAllocation()); - } - _impl_.attributesidstring_.InitDefault(); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - _impl_.attributesidstring_.Set("", GetArenaForAllocation()); - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (from._internal_has_attributesidstring()) { - _this->_impl_.attributesidstring_.Set(from._internal_attributesidstring(), - _this->GetArenaForAllocation()); - } - ::memcpy(&_impl_.pitch_, &from._impl_.pitch_, - static_cast(reinterpret_cast(&_impl_.ymax_) - - reinterpret_cast(&_impl_.pitch_)) + sizeof(_impl_.ymax_)); +inline PROTOBUF_NDEBUG_INLINE EdaDataFile_PackageRecord::Impl_::Impl_( + ::google::protobuf::internal::InternalVisibility visibility, ::google::protobuf::Arena* arena, + const Impl_& from, const ::Odb::Lib::Protobuf::EdaDataFile_PackageRecord& from_msg) + : _has_bits_{from._has_bits_}, + _cached_size_{0}, + pinrecords_{visibility, arena, from.pinrecords_}, + pinrecordsbyname_{visibility, arena, from.pinrecordsbyname_}, + propertyrecords_{visibility, arena, from.propertyrecords_}, + outlinerecords_{visibility, arena, from.outlinerecords_}, + attributelookuptable_{visibility, arena, from.attributelookuptable_}, + name_(arena, from.name_), + attributesidstring_(arena, from.attributesidstring_) {} + +EdaDataFile_PackageRecord::EdaDataFile_PackageRecord( + ::google::protobuf::Arena* arena, + const EdaDataFile_PackageRecord& from) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : ::google::protobuf::Message(arena, _class_data_.base()) { +#else // PROTOBUF_CUSTOM_VTABLE + : ::google::protobuf::Message(arena) { +#endif // PROTOBUF_CUSTOM_VTABLE + EdaDataFile_PackageRecord* const _this = this; + (void)_this; + _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( + from._internal_metadata_); + new (&_impl_) Impl_(internal_visibility(), arena, from._impl_, from); + ::memcpy(reinterpret_cast(&_impl_) + + offsetof(Impl_, pitch_), + reinterpret_cast(&from._impl_) + + offsetof(Impl_, pitch_), + offsetof(Impl_, ymax_) - + offsetof(Impl_, pitch_) + + sizeof(Impl_::ymax_)); + // @@protoc_insertion_point(copy_constructor:Odb.Lib.Protobuf.EdaDataFile.PackageRecord) } - -inline void EdaDataFile_PackageRecord::SharedCtor( - ::_pb::Arena* arena, bool is_message_owned) { - (void)arena; - (void)is_message_owned; - new (&_impl_) Impl_{ - decltype(_impl_._has_bits_){} - , /*decltype(_impl_._cached_size_)*/{} - , decltype(_impl_.pinrecords_){arena} - , /*decltype(_impl_.pinrecordsbyname_)*/{::_pbi::ArenaInitialized(), arena} - , decltype(_impl_.propertyrecords_){arena} - , decltype(_impl_.outlinerecords_){arena} - , /*decltype(_impl_.attributelookuptable_)*/{::_pbi::ArenaInitialized(), arena} - , decltype(_impl_.name_){} - , decltype(_impl_.attributesidstring_){} - , decltype(_impl_.pitch_){0} - , decltype(_impl_.xmin_){0} - , decltype(_impl_.ymin_){0} - , decltype(_impl_.xmax_){0} - , decltype(_impl_.ymax_){0} - }; - _impl_.name_.InitDefault(); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - _impl_.name_.Set("", GetArenaForAllocation()); - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING - _impl_.attributesidstring_.InitDefault(); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - _impl_.attributesidstring_.Set("", GetArenaForAllocation()); - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING +inline PROTOBUF_NDEBUG_INLINE EdaDataFile_PackageRecord::Impl_::Impl_( + ::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* arena) + : _cached_size_{0}, + pinrecords_{visibility, arena}, + pinrecordsbyname_{visibility, arena}, + propertyrecords_{visibility, arena}, + outlinerecords_{visibility, arena}, + attributelookuptable_{visibility, arena}, + name_(arena), + attributesidstring_(arena) {} + +inline void EdaDataFile_PackageRecord::SharedCtor(::_pb::Arena* arena) { + new (&_impl_) Impl_(internal_visibility(), arena); + ::memset(reinterpret_cast(&_impl_) + + offsetof(Impl_, pitch_), + 0, + offsetof(Impl_, ymax_) - + offsetof(Impl_, pitch_) + + sizeof(Impl_::ymax_)); } - EdaDataFile_PackageRecord::~EdaDataFile_PackageRecord() { // @@protoc_insertion_point(destructor:Odb.Lib.Protobuf.EdaDataFile.PackageRecord) - if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) { - (void)arena; - ArenaDtor(this); - return; - } - SharedDtor(); -} - -inline void EdaDataFile_PackageRecord::SharedDtor() { - GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); - _impl_.pinrecords_.~RepeatedPtrField(); - _impl_.pinrecordsbyname_.Destruct(); - _impl_.pinrecordsbyname_.~MapField(); - _impl_.propertyrecords_.~RepeatedPtrField(); - _impl_.outlinerecords_.~RepeatedPtrField(); - _impl_.attributelookuptable_.Destruct(); - _impl_.attributelookuptable_.~MapField(); - _impl_.name_.Destroy(); - _impl_.attributesidstring_.Destroy(); -} - -void EdaDataFile_PackageRecord::ArenaDtor(void* object) { - EdaDataFile_PackageRecord* _this = reinterpret_cast< EdaDataFile_PackageRecord* >(object); - _this->_impl_.pinrecordsbyname_.Destruct(); - _this->_impl_.attributelookuptable_.Destruct(); -} -void EdaDataFile_PackageRecord::SetCachedSize(int size) const { - _impl_._cached_size_.Set(size); -} + SharedDtor(*this); +} +inline void EdaDataFile_PackageRecord::SharedDtor(MessageLite& self) { + EdaDataFile_PackageRecord& this_ = static_cast(self); + this_._internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); + ABSL_DCHECK(this_.GetArena() == nullptr); + this_._impl_.name_.Destroy(); + this_._impl_.attributesidstring_.Destroy(); + this_._impl_.~Impl_(); +} + +inline void* EdaDataFile_PackageRecord::PlacementNew_(const void*, void* mem, + ::google::protobuf::Arena* arena) { + return ::new (mem) EdaDataFile_PackageRecord(arena); +} +constexpr auto EdaDataFile_PackageRecord::InternalNewImpl_() { + constexpr auto arena_bits = ::google::protobuf::internal::EncodePlacementArenaOffsets({ + PROTOBUF_FIELD_OFFSET(EdaDataFile_PackageRecord, _impl_.pinrecords_) + + decltype(EdaDataFile_PackageRecord::_impl_.pinrecords_):: + InternalGetArenaOffset( + ::google::protobuf::Message::internal_visibility()), + PROTOBUF_FIELD_OFFSET(EdaDataFile_PackageRecord, _impl_.pinrecordsbyname_) + + decltype(EdaDataFile_PackageRecord::_impl_.pinrecordsbyname_):: + InternalGetArenaOffset( + ::google::protobuf::Message::internal_visibility()), + PROTOBUF_FIELD_OFFSET(EdaDataFile_PackageRecord, _impl_.pinrecordsbyname_) + + decltype(EdaDataFile_PackageRecord::_impl_.pinrecordsbyname_):: + InternalGetArenaOffsetAlt( + ::google::protobuf::Message::internal_visibility()), + PROTOBUF_FIELD_OFFSET(EdaDataFile_PackageRecord, _impl_.propertyrecords_) + + decltype(EdaDataFile_PackageRecord::_impl_.propertyrecords_):: + InternalGetArenaOffset( + ::google::protobuf::Message::internal_visibility()), + PROTOBUF_FIELD_OFFSET(EdaDataFile_PackageRecord, _impl_.outlinerecords_) + + decltype(EdaDataFile_PackageRecord::_impl_.outlinerecords_):: + InternalGetArenaOffset( + ::google::protobuf::Message::internal_visibility()), + PROTOBUF_FIELD_OFFSET(EdaDataFile_PackageRecord, _impl_.attributelookuptable_) + + decltype(EdaDataFile_PackageRecord::_impl_.attributelookuptable_):: + InternalGetArenaOffset( + ::google::protobuf::Message::internal_visibility()), + PROTOBUF_FIELD_OFFSET(EdaDataFile_PackageRecord, _impl_.attributelookuptable_) + + decltype(EdaDataFile_PackageRecord::_impl_.attributelookuptable_):: + InternalGetArenaOffsetAlt( + ::google::protobuf::Message::internal_visibility()), + }); + if (arena_bits.has_value()) { + return ::google::protobuf::internal::MessageCreator::CopyInit( + sizeof(EdaDataFile_PackageRecord), alignof(EdaDataFile_PackageRecord), *arena_bits); + } else { + return ::google::protobuf::internal::MessageCreator(&EdaDataFile_PackageRecord::PlacementNew_, + sizeof(EdaDataFile_PackageRecord), + alignof(EdaDataFile_PackageRecord)); + } +} +PROTOBUF_CONSTINIT +PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 +const ::google::protobuf::internal::ClassDataFull EdaDataFile_PackageRecord::_class_data_ = { + ::google::protobuf::internal::ClassData{ + &_EdaDataFile_PackageRecord_default_instance_._instance, + &_table_.header, + nullptr, // OnDemandRegisterArenaDtor + nullptr, // IsInitialized + &EdaDataFile_PackageRecord::MergeImpl, + ::google::protobuf::Message::GetNewImpl(), +#if defined(PROTOBUF_CUSTOM_VTABLE) + &EdaDataFile_PackageRecord::SharedDtor, + ::google::protobuf::Message::GetClearImpl(), &EdaDataFile_PackageRecord::ByteSizeLong, + &EdaDataFile_PackageRecord::_InternalSerialize, +#endif // PROTOBUF_CUSTOM_VTABLE + PROTOBUF_FIELD_OFFSET(EdaDataFile_PackageRecord, _impl_._cached_size_), + false, + }, + &EdaDataFile_PackageRecord::kDescriptorMethods, + &descriptor_table_edadatafile_2eproto, + nullptr, // tracker +}; +const ::google::protobuf::internal::ClassData* EdaDataFile_PackageRecord::GetClassData() const { + ::google::protobuf::internal::PrefetchToLocalCache(&_class_data_); + ::google::protobuf::internal::PrefetchToLocalCache(_class_data_.tc_table); + return _class_data_.base(); +} +PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 +const ::_pbi::TcParseTable<4, 12, 6, 117, 2> EdaDataFile_PackageRecord::_table_ = { + { + PROTOBUF_FIELD_OFFSET(EdaDataFile_PackageRecord, _impl_._has_bits_), + 0, // no _extensions_ + 12, 120, // max_field_number, fast_idx_mask + offsetof(decltype(_table_), field_lookup_table), + 4294963200, // skipmap + offsetof(decltype(_table_), field_entries), + 12, // num_field_entries + 6, // num_aux_entries + offsetof(decltype(_table_), aux_entries), + _class_data_.base(), + nullptr, // post_loop_handler + ::_pbi::TcParser::GenericFallback, // fallback + #ifdef PROTOBUF_PREFETCH_PARSE_TABLE + ::_pbi::TcParser::GetTable<::Odb::Lib::Protobuf::EdaDataFile_PackageRecord>(), // to_prefetch + #endif // PROTOBUF_PREFETCH_PARSE_TABLE + }, {{ + {::_pbi::TcParser::MiniParse, {}}, + // optional string name = 1; + {::_pbi::TcParser::FastUS1, + {10, 0, 0, PROTOBUF_FIELD_OFFSET(EdaDataFile_PackageRecord, _impl_.name_)}}, + // optional float pitch = 2; + {::_pbi::TcParser::FastF32S1, + {21, 2, 0, PROTOBUF_FIELD_OFFSET(EdaDataFile_PackageRecord, _impl_.pitch_)}}, + // optional float xMin = 3; + {::_pbi::TcParser::FastF32S1, + {29, 3, 0, PROTOBUF_FIELD_OFFSET(EdaDataFile_PackageRecord, _impl_.xmin_)}}, + // optional float yMin = 4; + {::_pbi::TcParser::FastF32S1, + {37, 4, 0, PROTOBUF_FIELD_OFFSET(EdaDataFile_PackageRecord, _impl_.ymin_)}}, + // optional float xMax = 5; + {::_pbi::TcParser::FastF32S1, + {45, 5, 0, PROTOBUF_FIELD_OFFSET(EdaDataFile_PackageRecord, _impl_.xmax_)}}, + // optional float yMax = 6; + {::_pbi::TcParser::FastF32S1, + {53, 6, 0, PROTOBUF_FIELD_OFFSET(EdaDataFile_PackageRecord, _impl_.ymax_)}}, + // optional string attributesIdString = 7; + {::_pbi::TcParser::FastUS1, + {58, 1, 0, PROTOBUF_FIELD_OFFSET(EdaDataFile_PackageRecord, _impl_.attributesidstring_)}}, + // repeated .Odb.Lib.Protobuf.EdaDataFile.PackageRecord.PinRecord pinRecords = 8; + {::_pbi::TcParser::FastMtR1, + {66, 63, 0, PROTOBUF_FIELD_OFFSET(EdaDataFile_PackageRecord, _impl_.pinrecords_)}}, + {::_pbi::TcParser::MiniParse, {}}, + // repeated .Odb.Lib.Protobuf.PropertyRecord propertyRecords = 10; + {::_pbi::TcParser::FastMtR1, + {82, 63, 1, PROTOBUF_FIELD_OFFSET(EdaDataFile_PackageRecord, _impl_.propertyrecords_)}}, + // repeated .Odb.Lib.Protobuf.EdaDataFile.PackageRecord.OutlineRecord outlineRecords = 11; + {::_pbi::TcParser::FastMtR1, + {90, 63, 2, PROTOBUF_FIELD_OFFSET(EdaDataFile_PackageRecord, _impl_.outlinerecords_)}}, + {::_pbi::TcParser::MiniParse, {}}, + {::_pbi::TcParser::MiniParse, {}}, + {::_pbi::TcParser::MiniParse, {}}, + {::_pbi::TcParser::MiniParse, {}}, + }}, {{ + 65535, 65535 + }}, {{ + // optional string name = 1; + {PROTOBUF_FIELD_OFFSET(EdaDataFile_PackageRecord, _impl_.name_), _Internal::kHasBitsOffset + 0, 0, + (0 | ::_fl::kFcOptional | ::_fl::kUtf8String | ::_fl::kRepAString)}, + // optional float pitch = 2; + {PROTOBUF_FIELD_OFFSET(EdaDataFile_PackageRecord, _impl_.pitch_), _Internal::kHasBitsOffset + 2, 0, + (0 | ::_fl::kFcOptional | ::_fl::kFloat)}, + // optional float xMin = 3; + {PROTOBUF_FIELD_OFFSET(EdaDataFile_PackageRecord, _impl_.xmin_), _Internal::kHasBitsOffset + 3, 0, + (0 | ::_fl::kFcOptional | ::_fl::kFloat)}, + // optional float yMin = 4; + {PROTOBUF_FIELD_OFFSET(EdaDataFile_PackageRecord, _impl_.ymin_), _Internal::kHasBitsOffset + 4, 0, + (0 | ::_fl::kFcOptional | ::_fl::kFloat)}, + // optional float xMax = 5; + {PROTOBUF_FIELD_OFFSET(EdaDataFile_PackageRecord, _impl_.xmax_), _Internal::kHasBitsOffset + 5, 0, + (0 | ::_fl::kFcOptional | ::_fl::kFloat)}, + // optional float yMax = 6; + {PROTOBUF_FIELD_OFFSET(EdaDataFile_PackageRecord, _impl_.ymax_), _Internal::kHasBitsOffset + 6, 0, + (0 | ::_fl::kFcOptional | ::_fl::kFloat)}, + // optional string attributesIdString = 7; + {PROTOBUF_FIELD_OFFSET(EdaDataFile_PackageRecord, _impl_.attributesidstring_), _Internal::kHasBitsOffset + 1, 0, + (0 | ::_fl::kFcOptional | ::_fl::kUtf8String | ::_fl::kRepAString)}, + // repeated .Odb.Lib.Protobuf.EdaDataFile.PackageRecord.PinRecord pinRecords = 8; + {PROTOBUF_FIELD_OFFSET(EdaDataFile_PackageRecord, _impl_.pinrecords_), -1, 0, + (0 | ::_fl::kFcRepeated | ::_fl::kMessage | ::_fl::kTvTable)}, + // map pinRecordsByName = 9; + {PROTOBUF_FIELD_OFFSET(EdaDataFile_PackageRecord, _impl_.pinrecordsbyname_), -1, 3, + (0 | ::_fl::kFcRepeated | ::_fl::kMap)}, + // repeated .Odb.Lib.Protobuf.PropertyRecord propertyRecords = 10; + {PROTOBUF_FIELD_OFFSET(EdaDataFile_PackageRecord, _impl_.propertyrecords_), -1, 1, + (0 | ::_fl::kFcRepeated | ::_fl::kMessage | ::_fl::kTvTable)}, + // repeated .Odb.Lib.Protobuf.EdaDataFile.PackageRecord.OutlineRecord outlineRecords = 11; + {PROTOBUF_FIELD_OFFSET(EdaDataFile_PackageRecord, _impl_.outlinerecords_), -1, 2, + (0 | ::_fl::kFcRepeated | ::_fl::kMessage | ::_fl::kTvTable)}, + // map attributeLookupTable = 12; + {PROTOBUF_FIELD_OFFSET(EdaDataFile_PackageRecord, _impl_.attributelookuptable_), -1, 5, + (0 | ::_fl::kFcRepeated | ::_fl::kMap)}, + }}, {{ + {::_pbi::TcParser::GetTable<::Odb::Lib::Protobuf::EdaDataFile_PackageRecord_PinRecord>()}, + {::_pbi::TcParser::GetTable<::Odb::Lib::Protobuf::PropertyRecord>()}, + {::_pbi::TcParser::GetTable<::Odb::Lib::Protobuf::EdaDataFile_PackageRecord_OutlineRecord>()}, + {::_pbi::TcParser::GetMapAuxInfo< + decltype(EdaDataFile_PackageRecord()._impl_.pinrecordsbyname_)>( + 1, 0, 0, 9, + 11)}, + {::_pbi::TcParser::GetTable<::Odb::Lib::Protobuf::EdaDataFile_PackageRecord_PinRecord>()}, + {::_pbi::TcParser::GetMapAuxInfo< + decltype(EdaDataFile_PackageRecord()._impl_.attributelookuptable_)>( + 1, 0, 0, 9, + 9)}, + }}, {{ + "\52\4\0\0\0\0\0\22\0\20\0\0\24\0\0\0" + "Odb.Lib.Protobuf.EdaDataFile.PackageRecord" + "name" + "attributesIdString" + "pinRecordsByName" + "attributeLookupTable" + }}, +}; -void EdaDataFile_PackageRecord::Clear() { +PROTOBUF_NOINLINE void EdaDataFile_PackageRecord::Clear() { // @@protoc_insertion_point(message_clear_start:Odb.Lib.Protobuf.EdaDataFile.PackageRecord) - uint32_t cached_has_bits = 0; + ::google::protobuf::internal::TSanWrite(&_impl_); + ::uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; @@ -3163,430 +3691,293 @@ void EdaDataFile_PackageRecord::Clear() { } } if (cached_has_bits & 0x0000007cu) { - ::memset(&_impl_.pitch_, 0, static_cast( + ::memset(&_impl_.pitch_, 0, static_cast<::size_t>( reinterpret_cast(&_impl_.ymax_) - reinterpret_cast(&_impl_.pitch_)) + sizeof(_impl_.ymax_)); } _impl_._has_bits_.Clear(); - _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); -} - -const char* EdaDataFile_PackageRecord::_InternalParse(const char* ptr, ::_pbi::ParseContext* ctx) { -#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure - _Internal::HasBits has_bits{}; - while (!ctx->Done(&ptr)) { - uint32_t tag; - ptr = ::_pbi::ReadTag(ptr, &tag); - switch (tag >> 3) { - // optional string name = 1; - case 1: - if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 10)) { - auto str = _internal_mutable_name(); - ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); - CHK_(ptr); - CHK_(::_pbi::VerifyUTF8(str, "Odb.Lib.Protobuf.EdaDataFile.PackageRecord.name")); - } else - goto handle_unusual; - continue; - // optional float pitch = 2; - case 2: - if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 21)) { - _Internal::set_has_pitch(&has_bits); - _impl_.pitch_ = ::PROTOBUF_NAMESPACE_ID::internal::UnalignedLoad(ptr); - ptr += sizeof(float); - } else - goto handle_unusual; - continue; - // optional float xMin = 3; - case 3: - if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 29)) { - _Internal::set_has_xmin(&has_bits); - _impl_.xmin_ = ::PROTOBUF_NAMESPACE_ID::internal::UnalignedLoad(ptr); - ptr += sizeof(float); - } else - goto handle_unusual; - continue; - // optional float yMin = 4; - case 4: - if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 37)) { - _Internal::set_has_ymin(&has_bits); - _impl_.ymin_ = ::PROTOBUF_NAMESPACE_ID::internal::UnalignedLoad(ptr); - ptr += sizeof(float); - } else - goto handle_unusual; - continue; - // optional float xMax = 5; - case 5: - if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 45)) { - _Internal::set_has_xmax(&has_bits); - _impl_.xmax_ = ::PROTOBUF_NAMESPACE_ID::internal::UnalignedLoad(ptr); - ptr += sizeof(float); - } else - goto handle_unusual; - continue; - // optional float yMax = 6; - case 6: - if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 53)) { - _Internal::set_has_ymax(&has_bits); - _impl_.ymax_ = ::PROTOBUF_NAMESPACE_ID::internal::UnalignedLoad(ptr); - ptr += sizeof(float); - } else - goto handle_unusual; - continue; - // optional string attributesIdString = 7; - case 7: - if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 58)) { - auto str = _internal_mutable_attributesidstring(); - ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); - CHK_(ptr); - CHK_(::_pbi::VerifyUTF8(str, "Odb.Lib.Protobuf.EdaDataFile.PackageRecord.attributesIdString")); - } else - goto handle_unusual; - continue; - // repeated .Odb.Lib.Protobuf.EdaDataFile.PackageRecord.PinRecord pinRecords = 8; - case 8: - if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 66)) { - ptr -= 1; - do { - ptr += 1; - ptr = ctx->ParseMessage(_internal_add_pinrecords(), ptr); - CHK_(ptr); - if (!ctx->DataAvailable(ptr)) break; - } while (::PROTOBUF_NAMESPACE_ID::internal::ExpectTag<66>(ptr)); - } else - goto handle_unusual; - continue; - // map pinRecordsByName = 9; - case 9: - if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 74)) { - ptr -= 1; - do { - ptr += 1; - ptr = ctx->ParseMessage(&_impl_.pinrecordsbyname_, ptr); - CHK_(ptr); - if (!ctx->DataAvailable(ptr)) break; - } while (::PROTOBUF_NAMESPACE_ID::internal::ExpectTag<74>(ptr)); - } else - goto handle_unusual; - continue; - // repeated .Odb.Lib.Protobuf.PropertyRecord propertyRecords = 10; - case 10: - if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 82)) { - ptr -= 1; - do { - ptr += 1; - ptr = ctx->ParseMessage(_internal_add_propertyrecords(), ptr); - CHK_(ptr); - if (!ctx->DataAvailable(ptr)) break; - } while (::PROTOBUF_NAMESPACE_ID::internal::ExpectTag<82>(ptr)); - } else - goto handle_unusual; - continue; - // repeated .Odb.Lib.Protobuf.EdaDataFile.PackageRecord.OutlineRecord outlineRecords = 11; - case 11: - if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 90)) { - ptr -= 1; - do { - ptr += 1; - ptr = ctx->ParseMessage(_internal_add_outlinerecords(), ptr); - CHK_(ptr); - if (!ctx->DataAvailable(ptr)) break; - } while (::PROTOBUF_NAMESPACE_ID::internal::ExpectTag<90>(ptr)); - } else - goto handle_unusual; - continue; - // map attributeLookupTable = 12; - case 12: - if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 98)) { - ptr -= 1; - do { - ptr += 1; - ptr = ctx->ParseMessage(&_impl_.attributelookuptable_, ptr); - CHK_(ptr); - if (!ctx->DataAvailable(ptr)) break; - } while (::PROTOBUF_NAMESPACE_ID::internal::ExpectTag<98>(ptr)); - } else - goto handle_unusual; - continue; - default: - goto handle_unusual; - } // switch - handle_unusual: - if ((tag == 0) || ((tag & 7) == 4)) { - CHK_(ptr); - ctx->SetLastTag(tag); - goto message_done; - } - ptr = UnknownFieldParse( - tag, - _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(), - ptr, ctx); - CHK_(ptr != nullptr); - } // while -message_done: - _impl_._has_bits_.Or(has_bits); - return ptr; -failure: - ptr = nullptr; - goto message_done; -#undef CHK_ -} - -uint8_t* EdaDataFile_PackageRecord::_InternalSerialize( - uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { - // @@protoc_insertion_point(serialize_to_array_start:Odb.Lib.Protobuf.EdaDataFile.PackageRecord) - uint32_t cached_has_bits = 0; - (void) cached_has_bits; - - // optional string name = 1; - if (_internal_has_name()) { - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( - this->_internal_name().data(), static_cast(this->_internal_name().length()), - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, - "Odb.Lib.Protobuf.EdaDataFile.PackageRecord.name"); - target = stream->WriteStringMaybeAliased( - 1, this->_internal_name(), target); - } - - // optional float pitch = 2; - if (_internal_has_pitch()) { - target = stream->EnsureSpace(target); - target = ::_pbi::WireFormatLite::WriteFloatToArray(2, this->_internal_pitch(), target); - } - - // optional float xMin = 3; - if (_internal_has_xmin()) { - target = stream->EnsureSpace(target); - target = ::_pbi::WireFormatLite::WriteFloatToArray(3, this->_internal_xmin(), target); - } - - // optional float yMin = 4; - if (_internal_has_ymin()) { - target = stream->EnsureSpace(target); - target = ::_pbi::WireFormatLite::WriteFloatToArray(4, this->_internal_ymin(), target); - } - - // optional float xMax = 5; - if (_internal_has_xmax()) { - target = stream->EnsureSpace(target); - target = ::_pbi::WireFormatLite::WriteFloatToArray(5, this->_internal_xmax(), target); - } - - // optional float yMax = 6; - if (_internal_has_ymax()) { - target = stream->EnsureSpace(target); - target = ::_pbi::WireFormatLite::WriteFloatToArray(6, this->_internal_ymax(), target); - } - - // optional string attributesIdString = 7; - if (_internal_has_attributesidstring()) { - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( - this->_internal_attributesidstring().data(), static_cast(this->_internal_attributesidstring().length()), - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, - "Odb.Lib.Protobuf.EdaDataFile.PackageRecord.attributesIdString"); - target = stream->WriteStringMaybeAliased( - 7, this->_internal_attributesidstring(), target); - } - - // repeated .Odb.Lib.Protobuf.EdaDataFile.PackageRecord.PinRecord pinRecords = 8; - for (unsigned i = 0, - n = static_cast(this->_internal_pinrecords_size()); i < n; i++) { - const auto& repfield = this->_internal_pinrecords(i); - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: - InternalWriteMessage(8, repfield, repfield.GetCachedSize(), target, stream); - } - - // map pinRecordsByName = 9; - if (!this->_internal_pinrecordsbyname().empty()) { - using MapType = ::_pb::Map; - using WireHelper = EdaDataFile_PackageRecord_PinRecordsByNameEntry_DoNotUse::Funcs; - const auto& map_field = this->_internal_pinrecordsbyname(); - auto check_utf8 = [](const MapType::value_type& entry) { - (void)entry; - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( - entry.first.data(), static_cast(entry.first.length()), - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, - "Odb.Lib.Protobuf.EdaDataFile.PackageRecord.PinRecordsByNameEntry.key"); - }; - - if (stream->IsSerializationDeterministic() && map_field.size() > 1) { - for (const auto& entry : ::_pbi::MapSorterPtr(map_field)) { - target = WireHelper::InternalSerialize(9, entry.first, entry.second, target, stream); - check_utf8(entry); - } - } else { - for (const auto& entry : map_field) { - target = WireHelper::InternalSerialize(9, entry.first, entry.second, target, stream); - check_utf8(entry); - } - } - } - - // repeated .Odb.Lib.Protobuf.PropertyRecord propertyRecords = 10; - for (unsigned i = 0, - n = static_cast(this->_internal_propertyrecords_size()); i < n; i++) { - const auto& repfield = this->_internal_propertyrecords(i); - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: - InternalWriteMessage(10, repfield, repfield.GetCachedSize(), target, stream); - } - - // repeated .Odb.Lib.Protobuf.EdaDataFile.PackageRecord.OutlineRecord outlineRecords = 11; - for (unsigned i = 0, - n = static_cast(this->_internal_outlinerecords_size()); i < n; i++) { - const auto& repfield = this->_internal_outlinerecords(i); - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: - InternalWriteMessage(11, repfield, repfield.GetCachedSize(), target, stream); - } - - // map attributeLookupTable = 12; - if (!this->_internal_attributelookuptable().empty()) { - using MapType = ::_pb::Map; - using WireHelper = EdaDataFile_PackageRecord_AttributeLookupTableEntry_DoNotUse::Funcs; - const auto& map_field = this->_internal_attributelookuptable(); - auto check_utf8 = [](const MapType::value_type& entry) { - (void)entry; - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( - entry.first.data(), static_cast(entry.first.length()), - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, - "Odb.Lib.Protobuf.EdaDataFile.PackageRecord.AttributeLookupTableEntry.key"); - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( - entry.second.data(), static_cast(entry.second.length()), - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, - "Odb.Lib.Protobuf.EdaDataFile.PackageRecord.AttributeLookupTableEntry.value"); - }; - - if (stream->IsSerializationDeterministic() && map_field.size() > 1) { - for (const auto& entry : ::_pbi::MapSorterPtr(map_field)) { - target = WireHelper::InternalSerialize(12, entry.first, entry.second, target, stream); - check_utf8(entry); - } - } else { - for (const auto& entry : map_field) { - target = WireHelper::InternalSerialize(12, entry.first, entry.second, target, stream); - check_utf8(entry); - } - } - } - - if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = ::_pbi::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:Odb.Lib.Protobuf.EdaDataFile.PackageRecord) - return target; -} - -size_t EdaDataFile_PackageRecord::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:Odb.Lib.Protobuf.EdaDataFile.PackageRecord) - size_t total_size = 0; - - uint32_t cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - // repeated .Odb.Lib.Protobuf.EdaDataFile.PackageRecord.PinRecord pinRecords = 8; - total_size += 1UL * this->_internal_pinrecords_size(); - for (const auto& msg : this->_impl_.pinrecords_) { - total_size += - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(msg); - } - - // map pinRecordsByName = 9; - total_size += 1 * - ::PROTOBUF_NAMESPACE_ID::internal::FromIntSize(this->_internal_pinrecordsbyname_size()); - for (::PROTOBUF_NAMESPACE_ID::Map< std::string, ::Odb::Lib::Protobuf::EdaDataFile_PackageRecord_PinRecord >::const_iterator - it = this->_internal_pinrecordsbyname().begin(); - it != this->_internal_pinrecordsbyname().end(); ++it) { - total_size += EdaDataFile_PackageRecord_PinRecordsByNameEntry_DoNotUse::Funcs::ByteSizeLong(it->first, it->second); - } - - // repeated .Odb.Lib.Protobuf.PropertyRecord propertyRecords = 10; - total_size += 1UL * this->_internal_propertyrecords_size(); - for (const auto& msg : this->_impl_.propertyrecords_) { - total_size += - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(msg); - } - - // repeated .Odb.Lib.Protobuf.EdaDataFile.PackageRecord.OutlineRecord outlineRecords = 11; - total_size += 1UL * this->_internal_outlinerecords_size(); - for (const auto& msg : this->_impl_.outlinerecords_) { - total_size += - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(msg); - } - - // map attributeLookupTable = 12; - total_size += 1 * - ::PROTOBUF_NAMESPACE_ID::internal::FromIntSize(this->_internal_attributelookuptable_size()); - for (::PROTOBUF_NAMESPACE_ID::Map< std::string, std::string >::const_iterator - it = this->_internal_attributelookuptable().begin(); - it != this->_internal_attributelookuptable().end(); ++it) { - total_size += EdaDataFile_PackageRecord_AttributeLookupTableEntry_DoNotUse::Funcs::ByteSizeLong(it->first, it->second); - } - - cached_has_bits = _impl_._has_bits_[0]; - if (cached_has_bits & 0x0000007fu) { - // optional string name = 1; - if (cached_has_bits & 0x00000001u) { - total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( - this->_internal_name()); - } - - // optional string attributesIdString = 7; - if (cached_has_bits & 0x00000002u) { - total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( - this->_internal_attributesidstring()); - } - - // optional float pitch = 2; - if (cached_has_bits & 0x00000004u) { - total_size += 1 + 4; - } - - // optional float xMin = 3; - if (cached_has_bits & 0x00000008u) { - total_size += 1 + 4; - } - - // optional float yMin = 4; - if (cached_has_bits & 0x00000010u) { - total_size += 1 + 4; - } - - // optional float xMax = 5; - if (cached_has_bits & 0x00000020u) { - total_size += 1 + 4; - } - - // optional float yMax = 6; - if (cached_has_bits & 0x00000040u) { - total_size += 1 + 4; - } - - } - return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); -} - -const ::PROTOBUF_NAMESPACE_ID::Message::ClassData EdaDataFile_PackageRecord::_class_data_ = { - ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSourceCheck, - EdaDataFile_PackageRecord::MergeImpl -}; -const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*EdaDataFile_PackageRecord::GetClassData() const { return &_class_data_; } - - -void EdaDataFile_PackageRecord::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg) { + _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); +} + +#if defined(PROTOBUF_CUSTOM_VTABLE) + ::uint8_t* EdaDataFile_PackageRecord::_InternalSerialize( + const MessageLite& base, ::uint8_t* target, + ::google::protobuf::io::EpsCopyOutputStream* stream) { + const EdaDataFile_PackageRecord& this_ = static_cast(base); +#else // PROTOBUF_CUSTOM_VTABLE + ::uint8_t* EdaDataFile_PackageRecord::_InternalSerialize( + ::uint8_t* target, + ::google::protobuf::io::EpsCopyOutputStream* stream) const { + const EdaDataFile_PackageRecord& this_ = *this; +#endif // PROTOBUF_CUSTOM_VTABLE + // @@protoc_insertion_point(serialize_to_array_start:Odb.Lib.Protobuf.EdaDataFile.PackageRecord) + ::uint32_t cached_has_bits = 0; + (void)cached_has_bits; + + cached_has_bits = this_._impl_._has_bits_[0]; + // optional string name = 1; + if (cached_has_bits & 0x00000001u) { + const std::string& _s = this_._internal_name(); + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + _s.data(), static_cast(_s.length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "Odb.Lib.Protobuf.EdaDataFile.PackageRecord.name"); + target = stream->WriteStringMaybeAliased(1, _s, target); + } + + // optional float pitch = 2; + if (cached_has_bits & 0x00000004u) { + target = stream->EnsureSpace(target); + target = ::_pbi::WireFormatLite::WriteFloatToArray( + 2, this_._internal_pitch(), target); + } + + // optional float xMin = 3; + if (cached_has_bits & 0x00000008u) { + target = stream->EnsureSpace(target); + target = ::_pbi::WireFormatLite::WriteFloatToArray( + 3, this_._internal_xmin(), target); + } + + // optional float yMin = 4; + if (cached_has_bits & 0x00000010u) { + target = stream->EnsureSpace(target); + target = ::_pbi::WireFormatLite::WriteFloatToArray( + 4, this_._internal_ymin(), target); + } + + // optional float xMax = 5; + if (cached_has_bits & 0x00000020u) { + target = stream->EnsureSpace(target); + target = ::_pbi::WireFormatLite::WriteFloatToArray( + 5, this_._internal_xmax(), target); + } + + // optional float yMax = 6; + if (cached_has_bits & 0x00000040u) { + target = stream->EnsureSpace(target); + target = ::_pbi::WireFormatLite::WriteFloatToArray( + 6, this_._internal_ymax(), target); + } + + // optional string attributesIdString = 7; + if (cached_has_bits & 0x00000002u) { + const std::string& _s = this_._internal_attributesidstring(); + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + _s.data(), static_cast(_s.length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "Odb.Lib.Protobuf.EdaDataFile.PackageRecord.attributesIdString"); + target = stream->WriteStringMaybeAliased(7, _s, target); + } + + // repeated .Odb.Lib.Protobuf.EdaDataFile.PackageRecord.PinRecord pinRecords = 8; + for (unsigned i = 0, n = static_cast( + this_._internal_pinrecords_size()); + i < n; i++) { + const auto& repfield = this_._internal_pinrecords().Get(i); + target = + ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( + 8, repfield, repfield.GetCachedSize(), + target, stream); + } + + // map pinRecordsByName = 9; + if (!this_._internal_pinrecordsbyname().empty()) { + using MapType = ::google::protobuf::Map; + using WireHelper = _pbi::MapEntryFuncs; + const auto& field = this_._internal_pinrecordsbyname(); + + if (stream->IsSerializationDeterministic() && field.size() > 1) { + for (const auto& entry : ::google::protobuf::internal::MapSorterPtr(field)) { + target = WireHelper::InternalSerialize( + 9, entry.first, entry.second, target, stream); + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + entry.first.data(), static_cast(entry.first.length()), + ::google::protobuf::internal::WireFormatLite::SERIALIZE, "Odb.Lib.Protobuf.EdaDataFile.PackageRecord.pinRecordsByName"); + } + } else { + for (const auto& entry : field) { + target = WireHelper::InternalSerialize( + 9, entry.first, entry.second, target, stream); + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + entry.first.data(), static_cast(entry.first.length()), + ::google::protobuf::internal::WireFormatLite::SERIALIZE, "Odb.Lib.Protobuf.EdaDataFile.PackageRecord.pinRecordsByName"); + } + } + } + + // repeated .Odb.Lib.Protobuf.PropertyRecord propertyRecords = 10; + for (unsigned i = 0, n = static_cast( + this_._internal_propertyrecords_size()); + i < n; i++) { + const auto& repfield = this_._internal_propertyrecords().Get(i); + target = + ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( + 10, repfield, repfield.GetCachedSize(), + target, stream); + } + + // repeated .Odb.Lib.Protobuf.EdaDataFile.PackageRecord.OutlineRecord outlineRecords = 11; + for (unsigned i = 0, n = static_cast( + this_._internal_outlinerecords_size()); + i < n; i++) { + const auto& repfield = this_._internal_outlinerecords().Get(i); + target = + ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( + 11, repfield, repfield.GetCachedSize(), + target, stream); + } + + // map attributeLookupTable = 12; + if (!this_._internal_attributelookuptable().empty()) { + using MapType = ::google::protobuf::Map; + using WireHelper = _pbi::MapEntryFuncs; + const auto& field = this_._internal_attributelookuptable(); + + if (stream->IsSerializationDeterministic() && field.size() > 1) { + for (const auto& entry : ::google::protobuf::internal::MapSorterPtr(field)) { + target = WireHelper::InternalSerialize( + 12, entry.first, entry.second, target, stream); + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + entry.first.data(), static_cast(entry.first.length()), + ::google::protobuf::internal::WireFormatLite::SERIALIZE, "Odb.Lib.Protobuf.EdaDataFile.PackageRecord.attributeLookupTable"); + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + entry.second.data(), static_cast(entry.second.length()), + ::google::protobuf::internal::WireFormatLite::SERIALIZE, "Odb.Lib.Protobuf.EdaDataFile.PackageRecord.attributeLookupTable"); + } + } else { + for (const auto& entry : field) { + target = WireHelper::InternalSerialize( + 12, entry.first, entry.second, target, stream); + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + entry.first.data(), static_cast(entry.first.length()), + ::google::protobuf::internal::WireFormatLite::SERIALIZE, "Odb.Lib.Protobuf.EdaDataFile.PackageRecord.attributeLookupTable"); + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + entry.second.data(), static_cast(entry.second.length()), + ::google::protobuf::internal::WireFormatLite::SERIALIZE, "Odb.Lib.Protobuf.EdaDataFile.PackageRecord.attributeLookupTable"); + } + } + } + + if (PROTOBUF_PREDICT_FALSE(this_._internal_metadata_.have_unknown_fields())) { + target = + ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( + this_._internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); + } + // @@protoc_insertion_point(serialize_to_array_end:Odb.Lib.Protobuf.EdaDataFile.PackageRecord) + return target; + } + +#if defined(PROTOBUF_CUSTOM_VTABLE) + ::size_t EdaDataFile_PackageRecord::ByteSizeLong(const MessageLite& base) { + const EdaDataFile_PackageRecord& this_ = static_cast(base); +#else // PROTOBUF_CUSTOM_VTABLE + ::size_t EdaDataFile_PackageRecord::ByteSizeLong() const { + const EdaDataFile_PackageRecord& this_ = *this; +#endif // PROTOBUF_CUSTOM_VTABLE + // @@protoc_insertion_point(message_byte_size_start:Odb.Lib.Protobuf.EdaDataFile.PackageRecord) + ::size_t total_size = 0; + + ::uint32_t cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void)cached_has_bits; + + ::_pbi::Prefetch5LinesFrom7Lines(&this_); + { + // repeated .Odb.Lib.Protobuf.EdaDataFile.PackageRecord.PinRecord pinRecords = 8; + { + total_size += 1UL * this_._internal_pinrecords_size(); + for (const auto& msg : this_._internal_pinrecords()) { + total_size += ::google::protobuf::internal::WireFormatLite::MessageSize(msg); + } + } + // map pinRecordsByName = 9; + { + total_size += + 1 * ::google::protobuf::internal::FromIntSize(this_._internal_pinrecordsbyname_size()); + for (const auto& entry : this_._internal_pinrecordsbyname()) { + total_size += _pbi::MapEntryFuncs::ByteSizeLong(entry.first, entry.second); + } + } + // repeated .Odb.Lib.Protobuf.PropertyRecord propertyRecords = 10; + { + total_size += 1UL * this_._internal_propertyrecords_size(); + for (const auto& msg : this_._internal_propertyrecords()) { + total_size += ::google::protobuf::internal::WireFormatLite::MessageSize(msg); + } + } + // repeated .Odb.Lib.Protobuf.EdaDataFile.PackageRecord.OutlineRecord outlineRecords = 11; + { + total_size += 1UL * this_._internal_outlinerecords_size(); + for (const auto& msg : this_._internal_outlinerecords()) { + total_size += ::google::protobuf::internal::WireFormatLite::MessageSize(msg); + } + } + // map attributeLookupTable = 12; + { + total_size += + 1 * ::google::protobuf::internal::FromIntSize(this_._internal_attributelookuptable_size()); + for (const auto& entry : this_._internal_attributelookuptable()) { + total_size += _pbi::MapEntryFuncs::ByteSizeLong(entry.first, entry.second); + } + } + } + cached_has_bits = this_._impl_._has_bits_[0]; + if (cached_has_bits & 0x0000007fu) { + // optional string name = 1; + if (cached_has_bits & 0x00000001u) { + total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize( + this_._internal_name()); + } + // optional string attributesIdString = 7; + if (cached_has_bits & 0x00000002u) { + total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize( + this_._internal_attributesidstring()); + } + // optional float pitch = 2; + if (cached_has_bits & 0x00000004u) { + total_size += 5; + } + // optional float xMin = 3; + if (cached_has_bits & 0x00000008u) { + total_size += 5; + } + // optional float yMin = 4; + if (cached_has_bits & 0x00000010u) { + total_size += 5; + } + // optional float xMax = 5; + if (cached_has_bits & 0x00000020u) { + total_size += 5; + } + // optional float yMax = 6; + if (cached_has_bits & 0x00000040u) { + total_size += 5; + } + } + return this_.MaybeComputeUnknownFieldsSize(total_size, + &this_._impl_._cached_size_); + } + +void EdaDataFile_PackageRecord::MergeImpl(::google::protobuf::MessageLite& to_msg, const ::google::protobuf::MessageLite& from_msg) { auto* const _this = static_cast(&to_msg); auto& from = static_cast(from_msg); // @@protoc_insertion_point(class_specific_merge_from_start:Odb.Lib.Protobuf.EdaDataFile.PackageRecord) - GOOGLE_DCHECK_NE(&from, _this); - uint32_t cached_has_bits = 0; + ABSL_DCHECK_NE(&from, _this); + ::uint32_t cached_has_bits = 0; (void) cached_has_bits; - _this->_impl_.pinrecords_.MergeFrom(from._impl_.pinrecords_); + _this->_internal_mutable_pinrecords()->MergeFrom( + from._internal_pinrecords()); _this->_impl_.pinrecordsbyname_.MergeFrom(from._impl_.pinrecordsbyname_); - _this->_impl_.propertyrecords_.MergeFrom(from._impl_.propertyrecords_); - _this->_impl_.outlinerecords_.MergeFrom(from._impl_.outlinerecords_); + _this->_internal_mutable_propertyrecords()->MergeFrom( + from._internal_propertyrecords()); + _this->_internal_mutable_outlinerecords()->MergeFrom( + from._internal_outlinerecords()); _this->_impl_.attributelookuptable_.MergeFrom(from._impl_.attributelookuptable_); cached_has_bits = from._impl_._has_bits_[0]; if (cached_has_bits & 0x0000007fu) { @@ -3611,9 +4002,9 @@ void EdaDataFile_PackageRecord::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_m if (cached_has_bits & 0x00000040u) { _this->_impl_.ymax_ = from._impl_.ymax_; } - _this->_impl_._has_bits_[0] |= cached_has_bits; } - _this->_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); + _this->_impl_._has_bits_[0] |= cached_has_bits; + _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); } void EdaDataFile_PackageRecord::CopyFrom(const EdaDataFile_PackageRecord& from) { @@ -3623,14 +4014,11 @@ void EdaDataFile_PackageRecord::CopyFrom(const EdaDataFile_PackageRecord& from) MergeFrom(from); } -bool EdaDataFile_PackageRecord::IsInitialized() const { - return true; -} -void EdaDataFile_PackageRecord::InternalSwap(EdaDataFile_PackageRecord* other) { +void EdaDataFile_PackageRecord::InternalSwap(EdaDataFile_PackageRecord* PROTOBUF_RESTRICT other) { using std::swap; - auto* lhs_arena = GetArenaForAllocation(); - auto* rhs_arena = other->GetArenaForAllocation(); + auto* arena = GetArena(); + ABSL_DCHECK_EQ(arena, other->GetArena()); _internal_metadata_.InternalSwap(&other->_internal_metadata_); swap(_impl_._has_bits_[0], other->_impl_._has_bits_[0]); _impl_.pinrecords_.InternalSwap(&other->_impl_.pinrecords_); @@ -3638,15 +4026,9 @@ void EdaDataFile_PackageRecord::InternalSwap(EdaDataFile_PackageRecord* other) { _impl_.propertyrecords_.InternalSwap(&other->_impl_.propertyrecords_); _impl_.outlinerecords_.InternalSwap(&other->_impl_.outlinerecords_); _impl_.attributelookuptable_.InternalSwap(&other->_impl_.attributelookuptable_); - ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( - &_impl_.name_, lhs_arena, - &other->_impl_.name_, rhs_arena - ); - ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( - &_impl_.attributesidstring_, lhs_arena, - &other->_impl_.attributesidstring_, rhs_arena - ); - ::PROTOBUF_NAMESPACE_ID::internal::memswap< + ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.name_, &other->_impl_.name_, arena); + ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.attributesidstring_, &other->_impl_.attributesidstring_, arena); + ::google::protobuf::internal::memswap< PROTOBUF_FIELD_OFFSET(EdaDataFile_PackageRecord, _impl_.ymax_) + sizeof(EdaDataFile_PackageRecord::_impl_.ymax_) - PROTOBUF_FIELD_OFFSET(EdaDataFile_PackageRecord, _impl_.pitch_)>( @@ -3654,93 +4036,186 @@ void EdaDataFile_PackageRecord::InternalSwap(EdaDataFile_PackageRecord* other) { reinterpret_cast(&other->_impl_.pitch_)); } -::PROTOBUF_NAMESPACE_ID::Metadata EdaDataFile_PackageRecord::GetMetadata() const { - return ::_pbi::AssignDescriptors( - &descriptor_table_edadatafile_2eproto_getter, &descriptor_table_edadatafile_2eproto_once, - file_level_metadata_edadatafile_2eproto[8]); +::google::protobuf::Metadata EdaDataFile_PackageRecord::GetMetadata() const { + return ::google::protobuf::Message::GetMetadataImpl(GetClassData()->full()); } - // =================================================================== class EdaDataFile_FeatureGroupRecord::_Internal { public: - using HasBits = decltype(std::declval()._impl_._has_bits_); - static void set_has_type(HasBits* has_bits) { - (*has_bits)[0] |= 1u; - } + using HasBits = + decltype(std::declval()._impl_._has_bits_); + static constexpr ::int32_t kHasBitsOffset = + 8 * PROTOBUF_FIELD_OFFSET(EdaDataFile_FeatureGroupRecord, _impl_._has_bits_); }; void EdaDataFile_FeatureGroupRecord::clear_propertyrecords() { + ::google::protobuf::internal::TSanWrite(&_impl_); _impl_.propertyrecords_.Clear(); } -EdaDataFile_FeatureGroupRecord::EdaDataFile_FeatureGroupRecord(::PROTOBUF_NAMESPACE_ID::Arena* arena, - bool is_message_owned) - : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned) { - SharedCtor(arena, is_message_owned); +EdaDataFile_FeatureGroupRecord::EdaDataFile_FeatureGroupRecord(::google::protobuf::Arena* arena) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : ::google::protobuf::Message(arena, _class_data_.base()) { +#else // PROTOBUF_CUSTOM_VTABLE + : ::google::protobuf::Message(arena) { +#endif // PROTOBUF_CUSTOM_VTABLE + SharedCtor(arena); // @@protoc_insertion_point(arena_constructor:Odb.Lib.Protobuf.EdaDataFile.FeatureGroupRecord) } -EdaDataFile_FeatureGroupRecord::EdaDataFile_FeatureGroupRecord(const EdaDataFile_FeatureGroupRecord& from) - : ::PROTOBUF_NAMESPACE_ID::Message() { - EdaDataFile_FeatureGroupRecord* const _this = this; (void)_this; - new (&_impl_) Impl_{ - decltype(_impl_._has_bits_){from._impl_._has_bits_} - , /*decltype(_impl_._cached_size_)*/{} - , decltype(_impl_.propertyrecords_){from._impl_.propertyrecords_} - , decltype(_impl_.featureidrecords_){from._impl_.featureidrecords_} - , decltype(_impl_.type_){}}; - - _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); - _impl_.type_.InitDefault(); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - _impl_.type_.Set("", GetArenaForAllocation()); - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (from._internal_has_type()) { - _this->_impl_.type_.Set(from._internal_type(), - _this->GetArenaForAllocation()); - } +inline PROTOBUF_NDEBUG_INLINE EdaDataFile_FeatureGroupRecord::Impl_::Impl_( + ::google::protobuf::internal::InternalVisibility visibility, ::google::protobuf::Arena* arena, + const Impl_& from, const ::Odb::Lib::Protobuf::EdaDataFile_FeatureGroupRecord& from_msg) + : _has_bits_{from._has_bits_}, + _cached_size_{0}, + propertyrecords_{visibility, arena, from.propertyrecords_}, + featureidrecords_{visibility, arena, from.featureidrecords_}, + type_(arena, from.type_) {} + +EdaDataFile_FeatureGroupRecord::EdaDataFile_FeatureGroupRecord( + ::google::protobuf::Arena* arena, + const EdaDataFile_FeatureGroupRecord& from) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : ::google::protobuf::Message(arena, _class_data_.base()) { +#else // PROTOBUF_CUSTOM_VTABLE + : ::google::protobuf::Message(arena) { +#endif // PROTOBUF_CUSTOM_VTABLE + EdaDataFile_FeatureGroupRecord* const _this = this; + (void)_this; + _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( + from._internal_metadata_); + new (&_impl_) Impl_(internal_visibility(), arena, from._impl_, from); + // @@protoc_insertion_point(copy_constructor:Odb.Lib.Protobuf.EdaDataFile.FeatureGroupRecord) } +inline PROTOBUF_NDEBUG_INLINE EdaDataFile_FeatureGroupRecord::Impl_::Impl_( + ::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* arena) + : _cached_size_{0}, + propertyrecords_{visibility, arena}, + featureidrecords_{visibility, arena}, + type_(arena) {} -inline void EdaDataFile_FeatureGroupRecord::SharedCtor( - ::_pb::Arena* arena, bool is_message_owned) { - (void)arena; - (void)is_message_owned; - new (&_impl_) Impl_{ - decltype(_impl_._has_bits_){} - , /*decltype(_impl_._cached_size_)*/{} - , decltype(_impl_.propertyrecords_){arena} - , decltype(_impl_.featureidrecords_){arena} - , decltype(_impl_.type_){} - }; - _impl_.type_.InitDefault(); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - _impl_.type_.Set("", GetArenaForAllocation()); - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING +inline void EdaDataFile_FeatureGroupRecord::SharedCtor(::_pb::Arena* arena) { + new (&_impl_) Impl_(internal_visibility(), arena); } - EdaDataFile_FeatureGroupRecord::~EdaDataFile_FeatureGroupRecord() { // @@protoc_insertion_point(destructor:Odb.Lib.Protobuf.EdaDataFile.FeatureGroupRecord) - if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) { - (void)arena; - return; - } - SharedDtor(); -} - -inline void EdaDataFile_FeatureGroupRecord::SharedDtor() { - GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); - _impl_.propertyrecords_.~RepeatedPtrField(); - _impl_.featureidrecords_.~RepeatedPtrField(); - _impl_.type_.Destroy(); -} - -void EdaDataFile_FeatureGroupRecord::SetCachedSize(int size) const { - _impl_._cached_size_.Set(size); -} + SharedDtor(*this); +} +inline void EdaDataFile_FeatureGroupRecord::SharedDtor(MessageLite& self) { + EdaDataFile_FeatureGroupRecord& this_ = static_cast(self); + this_._internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); + ABSL_DCHECK(this_.GetArena() == nullptr); + this_._impl_.type_.Destroy(); + this_._impl_.~Impl_(); +} + +inline void* EdaDataFile_FeatureGroupRecord::PlacementNew_(const void*, void* mem, + ::google::protobuf::Arena* arena) { + return ::new (mem) EdaDataFile_FeatureGroupRecord(arena); +} +constexpr auto EdaDataFile_FeatureGroupRecord::InternalNewImpl_() { + constexpr auto arena_bits = ::google::protobuf::internal::EncodePlacementArenaOffsets({ + PROTOBUF_FIELD_OFFSET(EdaDataFile_FeatureGroupRecord, _impl_.propertyrecords_) + + decltype(EdaDataFile_FeatureGroupRecord::_impl_.propertyrecords_):: + InternalGetArenaOffset( + ::google::protobuf::Message::internal_visibility()), + PROTOBUF_FIELD_OFFSET(EdaDataFile_FeatureGroupRecord, _impl_.featureidrecords_) + + decltype(EdaDataFile_FeatureGroupRecord::_impl_.featureidrecords_):: + InternalGetArenaOffset( + ::google::protobuf::Message::internal_visibility()), + }); + if (arena_bits.has_value()) { + return ::google::protobuf::internal::MessageCreator::CopyInit( + sizeof(EdaDataFile_FeatureGroupRecord), alignof(EdaDataFile_FeatureGroupRecord), *arena_bits); + } else { + return ::google::protobuf::internal::MessageCreator(&EdaDataFile_FeatureGroupRecord::PlacementNew_, + sizeof(EdaDataFile_FeatureGroupRecord), + alignof(EdaDataFile_FeatureGroupRecord)); + } +} +PROTOBUF_CONSTINIT +PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 +const ::google::protobuf::internal::ClassDataFull EdaDataFile_FeatureGroupRecord::_class_data_ = { + ::google::protobuf::internal::ClassData{ + &_EdaDataFile_FeatureGroupRecord_default_instance_._instance, + &_table_.header, + nullptr, // OnDemandRegisterArenaDtor + nullptr, // IsInitialized + &EdaDataFile_FeatureGroupRecord::MergeImpl, + ::google::protobuf::Message::GetNewImpl(), +#if defined(PROTOBUF_CUSTOM_VTABLE) + &EdaDataFile_FeatureGroupRecord::SharedDtor, + ::google::protobuf::Message::GetClearImpl(), &EdaDataFile_FeatureGroupRecord::ByteSizeLong, + &EdaDataFile_FeatureGroupRecord::_InternalSerialize, +#endif // PROTOBUF_CUSTOM_VTABLE + PROTOBUF_FIELD_OFFSET(EdaDataFile_FeatureGroupRecord, _impl_._cached_size_), + false, + }, + &EdaDataFile_FeatureGroupRecord::kDescriptorMethods, + &descriptor_table_edadatafile_2eproto, + nullptr, // tracker +}; +const ::google::protobuf::internal::ClassData* EdaDataFile_FeatureGroupRecord::GetClassData() const { + ::google::protobuf::internal::PrefetchToLocalCache(&_class_data_); + ::google::protobuf::internal::PrefetchToLocalCache(_class_data_.tc_table); + return _class_data_.base(); +} +PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 +const ::_pbi::TcParseTable<2, 3, 2, 60, 2> EdaDataFile_FeatureGroupRecord::_table_ = { + { + PROTOBUF_FIELD_OFFSET(EdaDataFile_FeatureGroupRecord, _impl_._has_bits_), + 0, // no _extensions_ + 3, 24, // max_field_number, fast_idx_mask + offsetof(decltype(_table_), field_lookup_table), + 4294967288, // skipmap + offsetof(decltype(_table_), field_entries), + 3, // num_field_entries + 2, // num_aux_entries + offsetof(decltype(_table_), aux_entries), + _class_data_.base(), + nullptr, // post_loop_handler + ::_pbi::TcParser::GenericFallback, // fallback + #ifdef PROTOBUF_PREFETCH_PARSE_TABLE + ::_pbi::TcParser::GetTable<::Odb::Lib::Protobuf::EdaDataFile_FeatureGroupRecord>(), // to_prefetch + #endif // PROTOBUF_PREFETCH_PARSE_TABLE + }, {{ + {::_pbi::TcParser::MiniParse, {}}, + // optional string type = 1; + {::_pbi::TcParser::FastUS1, + {10, 0, 0, PROTOBUF_FIELD_OFFSET(EdaDataFile_FeatureGroupRecord, _impl_.type_)}}, + // repeated .Odb.Lib.Protobuf.PropertyRecord propertyRecords = 2; + {::_pbi::TcParser::FastMtR1, + {18, 63, 0, PROTOBUF_FIELD_OFFSET(EdaDataFile_FeatureGroupRecord, _impl_.propertyrecords_)}}, + // repeated .Odb.Lib.Protobuf.EdaDataFile.FeatureIdRecord featureIdRecords = 3; + {::_pbi::TcParser::FastMtR1, + {26, 63, 1, PROTOBUF_FIELD_OFFSET(EdaDataFile_FeatureGroupRecord, _impl_.featureidrecords_)}}, + }}, {{ + 65535, 65535 + }}, {{ + // optional string type = 1; + {PROTOBUF_FIELD_OFFSET(EdaDataFile_FeatureGroupRecord, _impl_.type_), _Internal::kHasBitsOffset + 0, 0, + (0 | ::_fl::kFcOptional | ::_fl::kUtf8String | ::_fl::kRepAString)}, + // repeated .Odb.Lib.Protobuf.PropertyRecord propertyRecords = 2; + {PROTOBUF_FIELD_OFFSET(EdaDataFile_FeatureGroupRecord, _impl_.propertyrecords_), -1, 0, + (0 | ::_fl::kFcRepeated | ::_fl::kMessage | ::_fl::kTvTable)}, + // repeated .Odb.Lib.Protobuf.EdaDataFile.FeatureIdRecord featureIdRecords = 3; + {PROTOBUF_FIELD_OFFSET(EdaDataFile_FeatureGroupRecord, _impl_.featureidrecords_), -1, 1, + (0 | ::_fl::kFcRepeated | ::_fl::kMessage | ::_fl::kTvTable)}, + }}, {{ + {::_pbi::TcParser::GetTable<::Odb::Lib::Protobuf::PropertyRecord>()}, + {::_pbi::TcParser::GetTable<::Odb::Lib::Protobuf::EdaDataFile_FeatureIdRecord>()}, + }}, {{ + "\57\4\0\0\0\0\0\0" + "Odb.Lib.Protobuf.EdaDataFile.FeatureGroupRecord" + "type" + }}, +}; -void EdaDataFile_FeatureGroupRecord::Clear() { +PROTOBUF_NOINLINE void EdaDataFile_FeatureGroupRecord::Clear() { // @@protoc_insertion_point(message_clear_start:Odb.Lib.Protobuf.EdaDataFile.FeatureGroupRecord) - uint32_t cached_has_bits = 0; + ::google::protobuf::internal::TSanWrite(&_impl_); + ::uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; @@ -3751,170 +4226,125 @@ void EdaDataFile_FeatureGroupRecord::Clear() { _impl_.type_.ClearNonDefaultToEmpty(); } _impl_._has_bits_.Clear(); - _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); -} - -const char* EdaDataFile_FeatureGroupRecord::_InternalParse(const char* ptr, ::_pbi::ParseContext* ctx) { -#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure - _Internal::HasBits has_bits{}; - while (!ctx->Done(&ptr)) { - uint32_t tag; - ptr = ::_pbi::ReadTag(ptr, &tag); - switch (tag >> 3) { - // optional string type = 1; - case 1: - if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 10)) { - auto str = _internal_mutable_type(); - ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); - CHK_(ptr); - CHK_(::_pbi::VerifyUTF8(str, "Odb.Lib.Protobuf.EdaDataFile.FeatureGroupRecord.type")); - } else - goto handle_unusual; - continue; - // repeated .Odb.Lib.Protobuf.PropertyRecord propertyRecords = 2; - case 2: - if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 18)) { - ptr -= 1; - do { - ptr += 1; - ptr = ctx->ParseMessage(_internal_add_propertyrecords(), ptr); - CHK_(ptr); - if (!ctx->DataAvailable(ptr)) break; - } while (::PROTOBUF_NAMESPACE_ID::internal::ExpectTag<18>(ptr)); - } else - goto handle_unusual; - continue; - // repeated .Odb.Lib.Protobuf.EdaDataFile.FeatureIdRecord featureIdRecords = 3; - case 3: - if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 26)) { - ptr -= 1; - do { - ptr += 1; - ptr = ctx->ParseMessage(_internal_add_featureidrecords(), ptr); - CHK_(ptr); - if (!ctx->DataAvailable(ptr)) break; - } while (::PROTOBUF_NAMESPACE_ID::internal::ExpectTag<26>(ptr)); - } else - goto handle_unusual; - continue; - default: - goto handle_unusual; - } // switch - handle_unusual: - if ((tag == 0) || ((tag & 7) == 4)) { - CHK_(ptr); - ctx->SetLastTag(tag); - goto message_done; - } - ptr = UnknownFieldParse( - tag, - _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(), - ptr, ctx); - CHK_(ptr != nullptr); - } // while -message_done: - _impl_._has_bits_.Or(has_bits); - return ptr; -failure: - ptr = nullptr; - goto message_done; -#undef CHK_ -} - -uint8_t* EdaDataFile_FeatureGroupRecord::_InternalSerialize( - uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { - // @@protoc_insertion_point(serialize_to_array_start:Odb.Lib.Protobuf.EdaDataFile.FeatureGroupRecord) - uint32_t cached_has_bits = 0; - (void) cached_has_bits; - - // optional string type = 1; - if (_internal_has_type()) { - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( - this->_internal_type().data(), static_cast(this->_internal_type().length()), - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, - "Odb.Lib.Protobuf.EdaDataFile.FeatureGroupRecord.type"); - target = stream->WriteStringMaybeAliased( - 1, this->_internal_type(), target); - } - - // repeated .Odb.Lib.Protobuf.PropertyRecord propertyRecords = 2; - for (unsigned i = 0, - n = static_cast(this->_internal_propertyrecords_size()); i < n; i++) { - const auto& repfield = this->_internal_propertyrecords(i); - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: - InternalWriteMessage(2, repfield, repfield.GetCachedSize(), target, stream); - } - - // repeated .Odb.Lib.Protobuf.EdaDataFile.FeatureIdRecord featureIdRecords = 3; - for (unsigned i = 0, - n = static_cast(this->_internal_featureidrecords_size()); i < n; i++) { - const auto& repfield = this->_internal_featureidrecords(i); - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: - InternalWriteMessage(3, repfield, repfield.GetCachedSize(), target, stream); - } - - if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = ::_pbi::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:Odb.Lib.Protobuf.EdaDataFile.FeatureGroupRecord) - return target; -} - -size_t EdaDataFile_FeatureGroupRecord::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:Odb.Lib.Protobuf.EdaDataFile.FeatureGroupRecord) - size_t total_size = 0; - - uint32_t cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - // repeated .Odb.Lib.Protobuf.PropertyRecord propertyRecords = 2; - total_size += 1UL * this->_internal_propertyrecords_size(); - for (const auto& msg : this->_impl_.propertyrecords_) { - total_size += - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(msg); - } - - // repeated .Odb.Lib.Protobuf.EdaDataFile.FeatureIdRecord featureIdRecords = 3; - total_size += 1UL * this->_internal_featureidrecords_size(); - for (const auto& msg : this->_impl_.featureidrecords_) { - total_size += - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(msg); - } - - // optional string type = 1; - cached_has_bits = _impl_._has_bits_[0]; - if (cached_has_bits & 0x00000001u) { - total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( - this->_internal_type()); - } - - return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); -} - -const ::PROTOBUF_NAMESPACE_ID::Message::ClassData EdaDataFile_FeatureGroupRecord::_class_data_ = { - ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSourceCheck, - EdaDataFile_FeatureGroupRecord::MergeImpl -}; -const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*EdaDataFile_FeatureGroupRecord::GetClassData() const { return &_class_data_; } - - -void EdaDataFile_FeatureGroupRecord::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg) { + _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); +} + +#if defined(PROTOBUF_CUSTOM_VTABLE) + ::uint8_t* EdaDataFile_FeatureGroupRecord::_InternalSerialize( + const MessageLite& base, ::uint8_t* target, + ::google::protobuf::io::EpsCopyOutputStream* stream) { + const EdaDataFile_FeatureGroupRecord& this_ = static_cast(base); +#else // PROTOBUF_CUSTOM_VTABLE + ::uint8_t* EdaDataFile_FeatureGroupRecord::_InternalSerialize( + ::uint8_t* target, + ::google::protobuf::io::EpsCopyOutputStream* stream) const { + const EdaDataFile_FeatureGroupRecord& this_ = *this; +#endif // PROTOBUF_CUSTOM_VTABLE + // @@protoc_insertion_point(serialize_to_array_start:Odb.Lib.Protobuf.EdaDataFile.FeatureGroupRecord) + ::uint32_t cached_has_bits = 0; + (void)cached_has_bits; + + cached_has_bits = this_._impl_._has_bits_[0]; + // optional string type = 1; + if (cached_has_bits & 0x00000001u) { + const std::string& _s = this_._internal_type(); + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + _s.data(), static_cast(_s.length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "Odb.Lib.Protobuf.EdaDataFile.FeatureGroupRecord.type"); + target = stream->WriteStringMaybeAliased(1, _s, target); + } + + // repeated .Odb.Lib.Protobuf.PropertyRecord propertyRecords = 2; + for (unsigned i = 0, n = static_cast( + this_._internal_propertyrecords_size()); + i < n; i++) { + const auto& repfield = this_._internal_propertyrecords().Get(i); + target = + ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( + 2, repfield, repfield.GetCachedSize(), + target, stream); + } + + // repeated .Odb.Lib.Protobuf.EdaDataFile.FeatureIdRecord featureIdRecords = 3; + for (unsigned i = 0, n = static_cast( + this_._internal_featureidrecords_size()); + i < n; i++) { + const auto& repfield = this_._internal_featureidrecords().Get(i); + target = + ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( + 3, repfield, repfield.GetCachedSize(), + target, stream); + } + + if (PROTOBUF_PREDICT_FALSE(this_._internal_metadata_.have_unknown_fields())) { + target = + ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( + this_._internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); + } + // @@protoc_insertion_point(serialize_to_array_end:Odb.Lib.Protobuf.EdaDataFile.FeatureGroupRecord) + return target; + } + +#if defined(PROTOBUF_CUSTOM_VTABLE) + ::size_t EdaDataFile_FeatureGroupRecord::ByteSizeLong(const MessageLite& base) { + const EdaDataFile_FeatureGroupRecord& this_ = static_cast(base); +#else // PROTOBUF_CUSTOM_VTABLE + ::size_t EdaDataFile_FeatureGroupRecord::ByteSizeLong() const { + const EdaDataFile_FeatureGroupRecord& this_ = *this; +#endif // PROTOBUF_CUSTOM_VTABLE + // @@protoc_insertion_point(message_byte_size_start:Odb.Lib.Protobuf.EdaDataFile.FeatureGroupRecord) + ::size_t total_size = 0; + + ::uint32_t cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void)cached_has_bits; + + ::_pbi::Prefetch5LinesFrom7Lines(&this_); + { + // repeated .Odb.Lib.Protobuf.PropertyRecord propertyRecords = 2; + { + total_size += 1UL * this_._internal_propertyrecords_size(); + for (const auto& msg : this_._internal_propertyrecords()) { + total_size += ::google::protobuf::internal::WireFormatLite::MessageSize(msg); + } + } + // repeated .Odb.Lib.Protobuf.EdaDataFile.FeatureIdRecord featureIdRecords = 3; + { + total_size += 1UL * this_._internal_featureidrecords_size(); + for (const auto& msg : this_._internal_featureidrecords()) { + total_size += ::google::protobuf::internal::WireFormatLite::MessageSize(msg); + } + } + } + { + // optional string type = 1; + cached_has_bits = this_._impl_._has_bits_[0]; + if (cached_has_bits & 0x00000001u) { + total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize( + this_._internal_type()); + } + } + return this_.MaybeComputeUnknownFieldsSize(total_size, + &this_._impl_._cached_size_); + } + +void EdaDataFile_FeatureGroupRecord::MergeImpl(::google::protobuf::MessageLite& to_msg, const ::google::protobuf::MessageLite& from_msg) { auto* const _this = static_cast(&to_msg); auto& from = static_cast(from_msg); // @@protoc_insertion_point(class_specific_merge_from_start:Odb.Lib.Protobuf.EdaDataFile.FeatureGroupRecord) - GOOGLE_DCHECK_NE(&from, _this); - uint32_t cached_has_bits = 0; + ABSL_DCHECK_NE(&from, _this); + ::uint32_t cached_has_bits = 0; (void) cached_has_bits; - _this->_impl_.propertyrecords_.MergeFrom(from._impl_.propertyrecords_); - _this->_impl_.featureidrecords_.MergeFrom(from._impl_.featureidrecords_); - if (from._internal_has_type()) { + _this->_internal_mutable_propertyrecords()->MergeFrom( + from._internal_propertyrecords()); + _this->_internal_mutable_featureidrecords()->MergeFrom( + from._internal_featureidrecords()); + cached_has_bits = from._impl_._has_bits_[0]; + if (cached_has_bits & 0x00000001u) { _this->_internal_set_type(from._internal_type()); } - _this->_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); + _this->_impl_._has_bits_[0] |= cached_has_bits; + _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); } void EdaDataFile_FeatureGroupRecord::CopyFrom(const EdaDataFile_FeatureGroupRecord& from) { @@ -3924,209 +4354,506 @@ void EdaDataFile_FeatureGroupRecord::CopyFrom(const EdaDataFile_FeatureGroupReco MergeFrom(from); } -bool EdaDataFile_FeatureGroupRecord::IsInitialized() const { - return true; -} -void EdaDataFile_FeatureGroupRecord::InternalSwap(EdaDataFile_FeatureGroupRecord* other) { +void EdaDataFile_FeatureGroupRecord::InternalSwap(EdaDataFile_FeatureGroupRecord* PROTOBUF_RESTRICT other) { using std::swap; - auto* lhs_arena = GetArenaForAllocation(); - auto* rhs_arena = other->GetArenaForAllocation(); + auto* arena = GetArena(); + ABSL_DCHECK_EQ(arena, other->GetArena()); _internal_metadata_.InternalSwap(&other->_internal_metadata_); swap(_impl_._has_bits_[0], other->_impl_._has_bits_[0]); _impl_.propertyrecords_.InternalSwap(&other->_impl_.propertyrecords_); _impl_.featureidrecords_.InternalSwap(&other->_impl_.featureidrecords_); - ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( - &_impl_.type_, lhs_arena, - &other->_impl_.type_, rhs_arena - ); + ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.type_, &other->_impl_.type_, arena); } -::PROTOBUF_NAMESPACE_ID::Metadata EdaDataFile_FeatureGroupRecord::GetMetadata() const { - return ::_pbi::AssignDescriptors( - &descriptor_table_edadatafile_2eproto_getter, &descriptor_table_edadatafile_2eproto_once, - file_level_metadata_edadatafile_2eproto[9]); +::google::protobuf::Metadata EdaDataFile_FeatureGroupRecord::GetMetadata() const { + return ::google::protobuf::Message::GetMetadataImpl(GetClassData()->full()); } - // =================================================================== -EdaDataFile_NetRecordsByNameEntry_DoNotUse::EdaDataFile_NetRecordsByNameEntry_DoNotUse() {} -EdaDataFile_NetRecordsByNameEntry_DoNotUse::EdaDataFile_NetRecordsByNameEntry_DoNotUse(::PROTOBUF_NAMESPACE_ID::Arena* arena) - : SuperType(arena) {} -void EdaDataFile_NetRecordsByNameEntry_DoNotUse::MergeFrom(const EdaDataFile_NetRecordsByNameEntry_DoNotUse& other) { - MergeFromInternal(other); -} -::PROTOBUF_NAMESPACE_ID::Metadata EdaDataFile_NetRecordsByNameEntry_DoNotUse::GetMetadata() const { - return ::_pbi::AssignDescriptors( - &descriptor_table_edadatafile_2eproto_getter, &descriptor_table_edadatafile_2eproto_once, - file_level_metadata_edadatafile_2eproto[10]); -} +#if defined(PROTOBUF_CUSTOM_VTABLE) + EdaDataFile_NetRecordsByNameEntry_DoNotUse::EdaDataFile_NetRecordsByNameEntry_DoNotUse() : SuperType(_class_data_.base()) {} + EdaDataFile_NetRecordsByNameEntry_DoNotUse::EdaDataFile_NetRecordsByNameEntry_DoNotUse(::google::protobuf::Arena* arena) + : SuperType(arena, _class_data_.base()) {} +#else // PROTOBUF_CUSTOM_VTABLE + EdaDataFile_NetRecordsByNameEntry_DoNotUse::EdaDataFile_NetRecordsByNameEntry_DoNotUse() : SuperType() {} + EdaDataFile_NetRecordsByNameEntry_DoNotUse::EdaDataFile_NetRecordsByNameEntry_DoNotUse(::google::protobuf::Arena* arena) : SuperType(arena) {} +#endif // PROTOBUF_CUSTOM_VTABLE + inline void* EdaDataFile_NetRecordsByNameEntry_DoNotUse::PlacementNew_(const void*, void* mem, + ::google::protobuf::Arena* arena) { + return ::new (mem) EdaDataFile_NetRecordsByNameEntry_DoNotUse(arena); + } + constexpr auto EdaDataFile_NetRecordsByNameEntry_DoNotUse::InternalNewImpl_() { + return ::google::protobuf::internal::MessageCreator::CopyInit(sizeof(EdaDataFile_NetRecordsByNameEntry_DoNotUse), + alignof(EdaDataFile_NetRecordsByNameEntry_DoNotUse)); + } + PROTOBUF_CONSTINIT + PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 + const ::google::protobuf::internal::ClassDataFull EdaDataFile_NetRecordsByNameEntry_DoNotUse::_class_data_ = { + ::google::protobuf::internal::ClassData{ + &_EdaDataFile_NetRecordsByNameEntry_DoNotUse_default_instance_._instance, + &_table_.header, + nullptr, // OnDemandRegisterArenaDtor + nullptr, // IsInitialized + &EdaDataFile_NetRecordsByNameEntry_DoNotUse::MergeImpl, + ::google::protobuf::Message::GetNewImpl(), + #if defined(PROTOBUF_CUSTOM_VTABLE) + &EdaDataFile_NetRecordsByNameEntry_DoNotUse::SharedDtor, + static_cast( + &EdaDataFile_NetRecordsByNameEntry_DoNotUse::ClearImpl), + ::google::protobuf::Message::ByteSizeLongImpl, ::google::protobuf::Message::_InternalSerializeImpl + , + #endif // PROTOBUF_CUSTOM_VTABLE + PROTOBUF_FIELD_OFFSET(EdaDataFile_NetRecordsByNameEntry_DoNotUse, _impl_._cached_size_), + false, + }, + &EdaDataFile_NetRecordsByNameEntry_DoNotUse::kDescriptorMethods, + &descriptor_table_edadatafile_2eproto, + nullptr, // tracker + }; + const ::google::protobuf::internal::ClassData* EdaDataFile_NetRecordsByNameEntry_DoNotUse::GetClassData() const { + ::google::protobuf::internal::PrefetchToLocalCache(&_class_data_); + ::google::protobuf::internal::PrefetchToLocalCache(_class_data_.tc_table); + return _class_data_.base(); + } +PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 +const ::_pbi::TcParseTable<1, 2, 1, 62, 2> EdaDataFile_NetRecordsByNameEntry_DoNotUse::_table_ = { + { + PROTOBUF_FIELD_OFFSET(EdaDataFile_NetRecordsByNameEntry_DoNotUse, _impl_._has_bits_), + 0, // no _extensions_ + 2, 8, // max_field_number, fast_idx_mask + offsetof(decltype(_table_), field_lookup_table), + 4294967292, // skipmap + offsetof(decltype(_table_), field_entries), + 2, // num_field_entries + 1, // num_aux_entries + offsetof(decltype(_table_), aux_entries), + _class_data_.base(), + nullptr, // post_loop_handler + ::_pbi::TcParser::DiscardEverythingFallback, // fallback + #ifdef PROTOBUF_PREFETCH_PARSE_TABLE + ::_pbi::TcParser::GetTable<::Odb::Lib::Protobuf::EdaDataFile_NetRecordsByNameEntry_DoNotUse>(), // to_prefetch + #endif // PROTOBUF_PREFETCH_PARSE_TABLE + }, {{ + // .Odb.Lib.Protobuf.EdaDataFile.NetRecord value = 2; + {::_pbi::TcParser::FastMtS1, + {18, 0, 0, PROTOBUF_FIELD_OFFSET(EdaDataFile_NetRecordsByNameEntry_DoNotUse, _impl_.value_)}}, + // string key = 1; + {::_pbi::TcParser::FastUS1, + {10, 63, 0, PROTOBUF_FIELD_OFFSET(EdaDataFile_NetRecordsByNameEntry_DoNotUse, _impl_.key_)}}, + }}, {{ + 65535, 65535 + }}, {{ + // string key = 1; + {PROTOBUF_FIELD_OFFSET(EdaDataFile_NetRecordsByNameEntry_DoNotUse, _impl_.key_), -1, 0, + (0 | ::_fl::kFcSingular | ::_fl::kUtf8String | ::_fl::kRepAString)}, + // .Odb.Lib.Protobuf.EdaDataFile.NetRecord value = 2; + {PROTOBUF_FIELD_OFFSET(EdaDataFile_NetRecordsByNameEntry_DoNotUse, _impl_.value_), _Internal::kHasBitsOffset + 0, 0, + (0 | ::_fl::kFcOptional | ::_fl::kMessage | ::_fl::kTvTable)}, + }}, {{ + {::_pbi::TcParser::GetTable<::Odb::Lib::Protobuf::EdaDataFile_NetRecord>()}, + }}, {{ + "\62\3\0\0\0\0\0\0" + "Odb.Lib.Protobuf.EdaDataFile.NetRecordsByNameEntry" + "key" + }}, +}; // =================================================================== -EdaDataFile_PackageRecordsByNameEntry_DoNotUse::EdaDataFile_PackageRecordsByNameEntry_DoNotUse() {} -EdaDataFile_PackageRecordsByNameEntry_DoNotUse::EdaDataFile_PackageRecordsByNameEntry_DoNotUse(::PROTOBUF_NAMESPACE_ID::Arena* arena) - : SuperType(arena) {} -void EdaDataFile_PackageRecordsByNameEntry_DoNotUse::MergeFrom(const EdaDataFile_PackageRecordsByNameEntry_DoNotUse& other) { - MergeFromInternal(other); -} -::PROTOBUF_NAMESPACE_ID::Metadata EdaDataFile_PackageRecordsByNameEntry_DoNotUse::GetMetadata() const { - return ::_pbi::AssignDescriptors( - &descriptor_table_edadatafile_2eproto_getter, &descriptor_table_edadatafile_2eproto_once, - file_level_metadata_edadatafile_2eproto[11]); -} +#if defined(PROTOBUF_CUSTOM_VTABLE) + EdaDataFile_PackageRecordsByNameEntry_DoNotUse::EdaDataFile_PackageRecordsByNameEntry_DoNotUse() : SuperType(_class_data_.base()) {} + EdaDataFile_PackageRecordsByNameEntry_DoNotUse::EdaDataFile_PackageRecordsByNameEntry_DoNotUse(::google::protobuf::Arena* arena) + : SuperType(arena, _class_data_.base()) {} +#else // PROTOBUF_CUSTOM_VTABLE + EdaDataFile_PackageRecordsByNameEntry_DoNotUse::EdaDataFile_PackageRecordsByNameEntry_DoNotUse() : SuperType() {} + EdaDataFile_PackageRecordsByNameEntry_DoNotUse::EdaDataFile_PackageRecordsByNameEntry_DoNotUse(::google::protobuf::Arena* arena) : SuperType(arena) {} +#endif // PROTOBUF_CUSTOM_VTABLE + inline void* EdaDataFile_PackageRecordsByNameEntry_DoNotUse::PlacementNew_(const void*, void* mem, + ::google::protobuf::Arena* arena) { + return ::new (mem) EdaDataFile_PackageRecordsByNameEntry_DoNotUse(arena); + } + constexpr auto EdaDataFile_PackageRecordsByNameEntry_DoNotUse::InternalNewImpl_() { + return ::google::protobuf::internal::MessageCreator::CopyInit(sizeof(EdaDataFile_PackageRecordsByNameEntry_DoNotUse), + alignof(EdaDataFile_PackageRecordsByNameEntry_DoNotUse)); + } + PROTOBUF_CONSTINIT + PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 + const ::google::protobuf::internal::ClassDataFull EdaDataFile_PackageRecordsByNameEntry_DoNotUse::_class_data_ = { + ::google::protobuf::internal::ClassData{ + &_EdaDataFile_PackageRecordsByNameEntry_DoNotUse_default_instance_._instance, + &_table_.header, + nullptr, // OnDemandRegisterArenaDtor + nullptr, // IsInitialized + &EdaDataFile_PackageRecordsByNameEntry_DoNotUse::MergeImpl, + ::google::protobuf::Message::GetNewImpl(), + #if defined(PROTOBUF_CUSTOM_VTABLE) + &EdaDataFile_PackageRecordsByNameEntry_DoNotUse::SharedDtor, + static_cast( + &EdaDataFile_PackageRecordsByNameEntry_DoNotUse::ClearImpl), + ::google::protobuf::Message::ByteSizeLongImpl, ::google::protobuf::Message::_InternalSerializeImpl + , + #endif // PROTOBUF_CUSTOM_VTABLE + PROTOBUF_FIELD_OFFSET(EdaDataFile_PackageRecordsByNameEntry_DoNotUse, _impl_._cached_size_), + false, + }, + &EdaDataFile_PackageRecordsByNameEntry_DoNotUse::kDescriptorMethods, + &descriptor_table_edadatafile_2eproto, + nullptr, // tracker + }; + const ::google::protobuf::internal::ClassData* EdaDataFile_PackageRecordsByNameEntry_DoNotUse::GetClassData() const { + ::google::protobuf::internal::PrefetchToLocalCache(&_class_data_); + ::google::protobuf::internal::PrefetchToLocalCache(_class_data_.tc_table); + return _class_data_.base(); + } +PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 +const ::_pbi::TcParseTable<1, 2, 1, 66, 2> EdaDataFile_PackageRecordsByNameEntry_DoNotUse::_table_ = { + { + PROTOBUF_FIELD_OFFSET(EdaDataFile_PackageRecordsByNameEntry_DoNotUse, _impl_._has_bits_), + 0, // no _extensions_ + 2, 8, // max_field_number, fast_idx_mask + offsetof(decltype(_table_), field_lookup_table), + 4294967292, // skipmap + offsetof(decltype(_table_), field_entries), + 2, // num_field_entries + 1, // num_aux_entries + offsetof(decltype(_table_), aux_entries), + _class_data_.base(), + nullptr, // post_loop_handler + ::_pbi::TcParser::DiscardEverythingFallback, // fallback + #ifdef PROTOBUF_PREFETCH_PARSE_TABLE + ::_pbi::TcParser::GetTable<::Odb::Lib::Protobuf::EdaDataFile_PackageRecordsByNameEntry_DoNotUse>(), // to_prefetch + #endif // PROTOBUF_PREFETCH_PARSE_TABLE + }, {{ + // .Odb.Lib.Protobuf.EdaDataFile.PackageRecord value = 2; + {::_pbi::TcParser::FastMtS1, + {18, 0, 0, PROTOBUF_FIELD_OFFSET(EdaDataFile_PackageRecordsByNameEntry_DoNotUse, _impl_.value_)}}, + // string key = 1; + {::_pbi::TcParser::FastUS1, + {10, 63, 0, PROTOBUF_FIELD_OFFSET(EdaDataFile_PackageRecordsByNameEntry_DoNotUse, _impl_.key_)}}, + }}, {{ + 65535, 65535 + }}, {{ + // string key = 1; + {PROTOBUF_FIELD_OFFSET(EdaDataFile_PackageRecordsByNameEntry_DoNotUse, _impl_.key_), -1, 0, + (0 | ::_fl::kFcSingular | ::_fl::kUtf8String | ::_fl::kRepAString)}, + // .Odb.Lib.Protobuf.EdaDataFile.PackageRecord value = 2; + {PROTOBUF_FIELD_OFFSET(EdaDataFile_PackageRecordsByNameEntry_DoNotUse, _impl_.value_), _Internal::kHasBitsOffset + 0, 0, + (0 | ::_fl::kFcOptional | ::_fl::kMessage | ::_fl::kTvTable)}, + }}, {{ + {::_pbi::TcParser::GetTable<::Odb::Lib::Protobuf::EdaDataFile_PackageRecord>()}, + }}, {{ + "\66\3\0\0\0\0\0\0" + "Odb.Lib.Protobuf.EdaDataFile.PackageRecordsByNameEntry" + "key" + }}, +}; // =================================================================== class EdaDataFile::_Internal { public: - using HasBits = decltype(std::declval()._impl_._has_bits_); - static void set_has_path(HasBits* has_bits) { - (*has_bits)[0] |= 1u; - } - static void set_has_units(HasBits* has_bits) { - (*has_bits)[0] |= 2u; - } - static void set_has_source(HasBits* has_bits) { - (*has_bits)[0] |= 4u; - } + using HasBits = + decltype(std::declval()._impl_._has_bits_); + static constexpr ::int32_t kHasBitsOffset = + 8 * PROTOBUF_FIELD_OFFSET(EdaDataFile, _impl_._has_bits_); }; void EdaDataFile::clear_propertyrecords() { + ::google::protobuf::internal::TSanWrite(&_impl_); _impl_.propertyrecords_.Clear(); } -EdaDataFile::EdaDataFile(::PROTOBUF_NAMESPACE_ID::Arena* arena, - bool is_message_owned) - : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned) { - SharedCtor(arena, is_message_owned); - if (arena != nullptr && !is_message_owned) { - arena->OwnCustomDestructor(this, &EdaDataFile::ArenaDtor); - } +EdaDataFile::EdaDataFile(::google::protobuf::Arena* arena) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : ::google::protobuf::Message(arena, _class_data_.base()) { +#else // PROTOBUF_CUSTOM_VTABLE + : ::google::protobuf::Message(arena) { +#endif // PROTOBUF_CUSTOM_VTABLE + SharedCtor(arena); // @@protoc_insertion_point(arena_constructor:Odb.Lib.Protobuf.EdaDataFile) } -EdaDataFile::EdaDataFile(const EdaDataFile& from) - : ::PROTOBUF_NAMESPACE_ID::Message() { - EdaDataFile* const _this = this; (void)_this; - new (&_impl_) Impl_{ - decltype(_impl_._has_bits_){from._impl_._has_bits_} - , /*decltype(_impl_._cached_size_)*/{} - , decltype(_impl_.layernames_){from._impl_.layernames_} - , decltype(_impl_.attributenames_){from._impl_.attributenames_} - , decltype(_impl_.attributetextvalues_){from._impl_.attributetextvalues_} - , decltype(_impl_.netrecords_){from._impl_.netrecords_} - , /*decltype(_impl_.netrecordsbyname_)*/{} - , decltype(_impl_.packagerecords_){from._impl_.packagerecords_} - , /*decltype(_impl_.packagerecordsbyname_)*/{} - , decltype(_impl_.propertyrecords_){from._impl_.propertyrecords_} - , decltype(_impl_.featuregrouprecords_){from._impl_.featuregrouprecords_} - , decltype(_impl_.path_){} - , decltype(_impl_.units_){} - , decltype(_impl_.source_){}}; - - _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); - _this->_impl_.netrecordsbyname_.MergeFrom(from._impl_.netrecordsbyname_); - _this->_impl_.packagerecordsbyname_.MergeFrom(from._impl_.packagerecordsbyname_); - _impl_.path_.InitDefault(); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - _impl_.path_.Set("", GetArenaForAllocation()); - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (from._internal_has_path()) { - _this->_impl_.path_.Set(from._internal_path(), - _this->GetArenaForAllocation()); - } - _impl_.units_.InitDefault(); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - _impl_.units_.Set("", GetArenaForAllocation()); - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (from._internal_has_units()) { - _this->_impl_.units_.Set(from._internal_units(), - _this->GetArenaForAllocation()); - } - _impl_.source_.InitDefault(); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - _impl_.source_.Set("", GetArenaForAllocation()); - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (from._internal_has_source()) { - _this->_impl_.source_.Set(from._internal_source(), - _this->GetArenaForAllocation()); - } +inline PROTOBUF_NDEBUG_INLINE EdaDataFile::Impl_::Impl_( + ::google::protobuf::internal::InternalVisibility visibility, ::google::protobuf::Arena* arena, + const Impl_& from, const ::Odb::Lib::Protobuf::EdaDataFile& from_msg) + : _has_bits_{from._has_bits_}, + _cached_size_{0}, + layernames_{visibility, arena, from.layernames_}, + attributenames_{visibility, arena, from.attributenames_}, + attributetextvalues_{visibility, arena, from.attributetextvalues_}, + netrecords_{visibility, arena, from.netrecords_}, + netrecordsbyname_{visibility, arena, from.netrecordsbyname_}, + packagerecords_{visibility, arena, from.packagerecords_}, + packagerecordsbyname_{visibility, arena, from.packagerecordsbyname_}, + propertyrecords_{visibility, arena, from.propertyrecords_}, + featuregrouprecords_{visibility, arena, from.featuregrouprecords_}, + path_(arena, from.path_), + units_(arena, from.units_), + source_(arena, from.source_) {} + +EdaDataFile::EdaDataFile( + ::google::protobuf::Arena* arena, + const EdaDataFile& from) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : ::google::protobuf::Message(arena, _class_data_.base()) { +#else // PROTOBUF_CUSTOM_VTABLE + : ::google::protobuf::Message(arena) { +#endif // PROTOBUF_CUSTOM_VTABLE + EdaDataFile* const _this = this; + (void)_this; + _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( + from._internal_metadata_); + new (&_impl_) Impl_(internal_visibility(), arena, from._impl_, from); + // @@protoc_insertion_point(copy_constructor:Odb.Lib.Protobuf.EdaDataFile) } - -inline void EdaDataFile::SharedCtor( - ::_pb::Arena* arena, bool is_message_owned) { - (void)arena; - (void)is_message_owned; - new (&_impl_) Impl_{ - decltype(_impl_._has_bits_){} - , /*decltype(_impl_._cached_size_)*/{} - , decltype(_impl_.layernames_){arena} - , decltype(_impl_.attributenames_){arena} - , decltype(_impl_.attributetextvalues_){arena} - , decltype(_impl_.netrecords_){arena} - , /*decltype(_impl_.netrecordsbyname_)*/{::_pbi::ArenaInitialized(), arena} - , decltype(_impl_.packagerecords_){arena} - , /*decltype(_impl_.packagerecordsbyname_)*/{::_pbi::ArenaInitialized(), arena} - , decltype(_impl_.propertyrecords_){arena} - , decltype(_impl_.featuregrouprecords_){arena} - , decltype(_impl_.path_){} - , decltype(_impl_.units_){} - , decltype(_impl_.source_){} - }; - _impl_.path_.InitDefault(); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - _impl_.path_.Set("", GetArenaForAllocation()); - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING - _impl_.units_.InitDefault(); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - _impl_.units_.Set("", GetArenaForAllocation()); - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING - _impl_.source_.InitDefault(); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - _impl_.source_.Set("", GetArenaForAllocation()); - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING +inline PROTOBUF_NDEBUG_INLINE EdaDataFile::Impl_::Impl_( + ::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* arena) + : _cached_size_{0}, + layernames_{visibility, arena}, + attributenames_{visibility, arena}, + attributetextvalues_{visibility, arena}, + netrecords_{visibility, arena}, + netrecordsbyname_{visibility, arena}, + packagerecords_{visibility, arena}, + packagerecordsbyname_{visibility, arena}, + propertyrecords_{visibility, arena}, + featuregrouprecords_{visibility, arena}, + path_(arena), + units_(arena), + source_(arena) {} + +inline void EdaDataFile::SharedCtor(::_pb::Arena* arena) { + new (&_impl_) Impl_(internal_visibility(), arena); } - EdaDataFile::~EdaDataFile() { // @@protoc_insertion_point(destructor:Odb.Lib.Protobuf.EdaDataFile) - if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) { - (void)arena; - ArenaDtor(this); - return; - } - SharedDtor(); -} - -inline void EdaDataFile::SharedDtor() { - GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); - _impl_.layernames_.~RepeatedPtrField(); - _impl_.attributenames_.~RepeatedPtrField(); - _impl_.attributetextvalues_.~RepeatedPtrField(); - _impl_.netrecords_.~RepeatedPtrField(); - _impl_.netrecordsbyname_.Destruct(); - _impl_.netrecordsbyname_.~MapField(); - _impl_.packagerecords_.~RepeatedPtrField(); - _impl_.packagerecordsbyname_.Destruct(); - _impl_.packagerecordsbyname_.~MapField(); - _impl_.propertyrecords_.~RepeatedPtrField(); - _impl_.featuregrouprecords_.~RepeatedPtrField(); - _impl_.path_.Destroy(); - _impl_.units_.Destroy(); - _impl_.source_.Destroy(); -} - -void EdaDataFile::ArenaDtor(void* object) { - EdaDataFile* _this = reinterpret_cast< EdaDataFile* >(object); - _this->_impl_.netrecordsbyname_.Destruct(); - _this->_impl_.packagerecordsbyname_.Destruct(); -} -void EdaDataFile::SetCachedSize(int size) const { - _impl_._cached_size_.Set(size); -} + SharedDtor(*this); +} +inline void EdaDataFile::SharedDtor(MessageLite& self) { + EdaDataFile& this_ = static_cast(self); + this_._internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); + ABSL_DCHECK(this_.GetArena() == nullptr); + this_._impl_.path_.Destroy(); + this_._impl_.units_.Destroy(); + this_._impl_.source_.Destroy(); + this_._impl_.~Impl_(); +} + +inline void* EdaDataFile::PlacementNew_(const void*, void* mem, + ::google::protobuf::Arena* arena) { + return ::new (mem) EdaDataFile(arena); +} +constexpr auto EdaDataFile::InternalNewImpl_() { + constexpr auto arena_bits = ::google::protobuf::internal::EncodePlacementArenaOffsets({ + PROTOBUF_FIELD_OFFSET(EdaDataFile, _impl_.layernames_) + + decltype(EdaDataFile::_impl_.layernames_):: + InternalGetArenaOffset( + ::google::protobuf::Message::internal_visibility()), + PROTOBUF_FIELD_OFFSET(EdaDataFile, _impl_.attributenames_) + + decltype(EdaDataFile::_impl_.attributenames_):: + InternalGetArenaOffset( + ::google::protobuf::Message::internal_visibility()), + PROTOBUF_FIELD_OFFSET(EdaDataFile, _impl_.attributetextvalues_) + + decltype(EdaDataFile::_impl_.attributetextvalues_):: + InternalGetArenaOffset( + ::google::protobuf::Message::internal_visibility()), + PROTOBUF_FIELD_OFFSET(EdaDataFile, _impl_.netrecords_) + + decltype(EdaDataFile::_impl_.netrecords_):: + InternalGetArenaOffset( + ::google::protobuf::Message::internal_visibility()), + PROTOBUF_FIELD_OFFSET(EdaDataFile, _impl_.netrecordsbyname_) + + decltype(EdaDataFile::_impl_.netrecordsbyname_):: + InternalGetArenaOffset( + ::google::protobuf::Message::internal_visibility()), + PROTOBUF_FIELD_OFFSET(EdaDataFile, _impl_.netrecordsbyname_) + + decltype(EdaDataFile::_impl_.netrecordsbyname_):: + InternalGetArenaOffsetAlt( + ::google::protobuf::Message::internal_visibility()), + PROTOBUF_FIELD_OFFSET(EdaDataFile, _impl_.packagerecords_) + + decltype(EdaDataFile::_impl_.packagerecords_):: + InternalGetArenaOffset( + ::google::protobuf::Message::internal_visibility()), + PROTOBUF_FIELD_OFFSET(EdaDataFile, _impl_.packagerecordsbyname_) + + decltype(EdaDataFile::_impl_.packagerecordsbyname_):: + InternalGetArenaOffset( + ::google::protobuf::Message::internal_visibility()), + PROTOBUF_FIELD_OFFSET(EdaDataFile, _impl_.packagerecordsbyname_) + + decltype(EdaDataFile::_impl_.packagerecordsbyname_):: + InternalGetArenaOffsetAlt( + ::google::protobuf::Message::internal_visibility()), + PROTOBUF_FIELD_OFFSET(EdaDataFile, _impl_.propertyrecords_) + + decltype(EdaDataFile::_impl_.propertyrecords_):: + InternalGetArenaOffset( + ::google::protobuf::Message::internal_visibility()), + PROTOBUF_FIELD_OFFSET(EdaDataFile, _impl_.featuregrouprecords_) + + decltype(EdaDataFile::_impl_.featuregrouprecords_):: + InternalGetArenaOffset( + ::google::protobuf::Message::internal_visibility()), + }); + if (arena_bits.has_value()) { + return ::google::protobuf::internal::MessageCreator::CopyInit( + sizeof(EdaDataFile), alignof(EdaDataFile), *arena_bits); + } else { + return ::google::protobuf::internal::MessageCreator(&EdaDataFile::PlacementNew_, + sizeof(EdaDataFile), + alignof(EdaDataFile)); + } +} +PROTOBUF_CONSTINIT +PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 +const ::google::protobuf::internal::ClassDataFull EdaDataFile::_class_data_ = { + ::google::protobuf::internal::ClassData{ + &_EdaDataFile_default_instance_._instance, + &_table_.header, + nullptr, // OnDemandRegisterArenaDtor + nullptr, // IsInitialized + &EdaDataFile::MergeImpl, + ::google::protobuf::Message::GetNewImpl(), +#if defined(PROTOBUF_CUSTOM_VTABLE) + &EdaDataFile::SharedDtor, + ::google::protobuf::Message::GetClearImpl(), &EdaDataFile::ByteSizeLong, + &EdaDataFile::_InternalSerialize, +#endif // PROTOBUF_CUSTOM_VTABLE + PROTOBUF_FIELD_OFFSET(EdaDataFile, _impl_._cached_size_), + false, + }, + &EdaDataFile::kDescriptorMethods, + &descriptor_table_edadatafile_2eproto, + nullptr, // tracker +}; +const ::google::protobuf::internal::ClassData* EdaDataFile::GetClassData() const { + ::google::protobuf::internal::PrefetchToLocalCache(&_class_data_); + ::google::protobuf::internal::PrefetchToLocalCache(_class_data_.tc_table); + return _class_data_.base(); +} +PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 +const ::_pbi::TcParseTable<4, 12, 8, 139, 2> EdaDataFile::_table_ = { + { + PROTOBUF_FIELD_OFFSET(EdaDataFile, _impl_._has_bits_), + 0, // no _extensions_ + 12, 120, // max_field_number, fast_idx_mask + offsetof(decltype(_table_), field_lookup_table), + 4294963200, // skipmap + offsetof(decltype(_table_), field_entries), + 12, // num_field_entries + 8, // num_aux_entries + offsetof(decltype(_table_), aux_entries), + _class_data_.base(), + nullptr, // post_loop_handler + ::_pbi::TcParser::GenericFallback, // fallback + #ifdef PROTOBUF_PREFETCH_PARSE_TABLE + ::_pbi::TcParser::GetTable<::Odb::Lib::Protobuf::EdaDataFile>(), // to_prefetch + #endif // PROTOBUF_PREFETCH_PARSE_TABLE + }, {{ + {::_pbi::TcParser::MiniParse, {}}, + // optional string path = 1; + {::_pbi::TcParser::FastUS1, + {10, 0, 0, PROTOBUF_FIELD_OFFSET(EdaDataFile, _impl_.path_)}}, + // optional string units = 2; + {::_pbi::TcParser::FastUS1, + {18, 1, 0, PROTOBUF_FIELD_OFFSET(EdaDataFile, _impl_.units_)}}, + // optional string source = 3; + {::_pbi::TcParser::FastUS1, + {26, 2, 0, PROTOBUF_FIELD_OFFSET(EdaDataFile, _impl_.source_)}}, + // repeated string layerNames = 4; + {::_pbi::TcParser::FastUR1, + {34, 63, 0, PROTOBUF_FIELD_OFFSET(EdaDataFile, _impl_.layernames_)}}, + // repeated string attributeNames = 5; + {::_pbi::TcParser::FastUR1, + {42, 63, 0, PROTOBUF_FIELD_OFFSET(EdaDataFile, _impl_.attributenames_)}}, + // repeated string attributeTextValues = 6; + {::_pbi::TcParser::FastUR1, + {50, 63, 0, PROTOBUF_FIELD_OFFSET(EdaDataFile, _impl_.attributetextvalues_)}}, + // repeated .Odb.Lib.Protobuf.EdaDataFile.NetRecord netRecords = 7; + {::_pbi::TcParser::FastMtR1, + {58, 63, 0, PROTOBUF_FIELD_OFFSET(EdaDataFile, _impl_.netrecords_)}}, + {::_pbi::TcParser::MiniParse, {}}, + // repeated .Odb.Lib.Protobuf.EdaDataFile.PackageRecord packageRecords = 9; + {::_pbi::TcParser::FastMtR1, + {74, 63, 1, PROTOBUF_FIELD_OFFSET(EdaDataFile, _impl_.packagerecords_)}}, + {::_pbi::TcParser::MiniParse, {}}, + // repeated .Odb.Lib.Protobuf.PropertyRecord propertyRecords = 11; + {::_pbi::TcParser::FastMtR1, + {90, 63, 2, PROTOBUF_FIELD_OFFSET(EdaDataFile, _impl_.propertyrecords_)}}, + // repeated .Odb.Lib.Protobuf.EdaDataFile.FeatureGroupRecord featureGroupRecords = 12; + {::_pbi::TcParser::FastMtR1, + {98, 63, 3, PROTOBUF_FIELD_OFFSET(EdaDataFile, _impl_.featuregrouprecords_)}}, + {::_pbi::TcParser::MiniParse, {}}, + {::_pbi::TcParser::MiniParse, {}}, + {::_pbi::TcParser::MiniParse, {}}, + }}, {{ + 65535, 65535 + }}, {{ + // optional string path = 1; + {PROTOBUF_FIELD_OFFSET(EdaDataFile, _impl_.path_), _Internal::kHasBitsOffset + 0, 0, + (0 | ::_fl::kFcOptional | ::_fl::kUtf8String | ::_fl::kRepAString)}, + // optional string units = 2; + {PROTOBUF_FIELD_OFFSET(EdaDataFile, _impl_.units_), _Internal::kHasBitsOffset + 1, 0, + (0 | ::_fl::kFcOptional | ::_fl::kUtf8String | ::_fl::kRepAString)}, + // optional string source = 3; + {PROTOBUF_FIELD_OFFSET(EdaDataFile, _impl_.source_), _Internal::kHasBitsOffset + 2, 0, + (0 | ::_fl::kFcOptional | ::_fl::kUtf8String | ::_fl::kRepAString)}, + // repeated string layerNames = 4; + {PROTOBUF_FIELD_OFFSET(EdaDataFile, _impl_.layernames_), -1, 0, + (0 | ::_fl::kFcRepeated | ::_fl::kUtf8String | ::_fl::kRepSString)}, + // repeated string attributeNames = 5; + {PROTOBUF_FIELD_OFFSET(EdaDataFile, _impl_.attributenames_), -1, 0, + (0 | ::_fl::kFcRepeated | ::_fl::kUtf8String | ::_fl::kRepSString)}, + // repeated string attributeTextValues = 6; + {PROTOBUF_FIELD_OFFSET(EdaDataFile, _impl_.attributetextvalues_), -1, 0, + (0 | ::_fl::kFcRepeated | ::_fl::kUtf8String | ::_fl::kRepSString)}, + // repeated .Odb.Lib.Protobuf.EdaDataFile.NetRecord netRecords = 7; + {PROTOBUF_FIELD_OFFSET(EdaDataFile, _impl_.netrecords_), -1, 0, + (0 | ::_fl::kFcRepeated | ::_fl::kMessage | ::_fl::kTvTable)}, + // map netRecordsByName = 8; + {PROTOBUF_FIELD_OFFSET(EdaDataFile, _impl_.netrecordsbyname_), -1, 4, + (0 | ::_fl::kFcRepeated | ::_fl::kMap)}, + // repeated .Odb.Lib.Protobuf.EdaDataFile.PackageRecord packageRecords = 9; + {PROTOBUF_FIELD_OFFSET(EdaDataFile, _impl_.packagerecords_), -1, 1, + (0 | ::_fl::kFcRepeated | ::_fl::kMessage | ::_fl::kTvTable)}, + // map packageRecordsByName = 10; + {PROTOBUF_FIELD_OFFSET(EdaDataFile, _impl_.packagerecordsbyname_), -1, 6, + (0 | ::_fl::kFcRepeated | ::_fl::kMap)}, + // repeated .Odb.Lib.Protobuf.PropertyRecord propertyRecords = 11; + {PROTOBUF_FIELD_OFFSET(EdaDataFile, _impl_.propertyrecords_), -1, 2, + (0 | ::_fl::kFcRepeated | ::_fl::kMessage | ::_fl::kTvTable)}, + // repeated .Odb.Lib.Protobuf.EdaDataFile.FeatureGroupRecord featureGroupRecords = 12; + {PROTOBUF_FIELD_OFFSET(EdaDataFile, _impl_.featuregrouprecords_), -1, 3, + (0 | ::_fl::kFcRepeated | ::_fl::kMessage | ::_fl::kTvTable)}, + }}, {{ + {::_pbi::TcParser::GetTable<::Odb::Lib::Protobuf::EdaDataFile_NetRecord>()}, + {::_pbi::TcParser::GetTable<::Odb::Lib::Protobuf::EdaDataFile_PackageRecord>()}, + {::_pbi::TcParser::GetTable<::Odb::Lib::Protobuf::PropertyRecord>()}, + {::_pbi::TcParser::GetTable<::Odb::Lib::Protobuf::EdaDataFile_FeatureGroupRecord>()}, + {::_pbi::TcParser::GetMapAuxInfo< + decltype(EdaDataFile()._impl_.netrecordsbyname_)>( + 1, 0, 0, 9, + 11)}, + {::_pbi::TcParser::GetTable<::Odb::Lib::Protobuf::EdaDataFile_NetRecord>()}, + {::_pbi::TcParser::GetMapAuxInfo< + decltype(EdaDataFile()._impl_.packagerecordsbyname_)>( + 1, 0, 0, 9, + 11)}, + {::_pbi::TcParser::GetTable<::Odb::Lib::Protobuf::EdaDataFile_PackageRecord>()}, + }}, {{ + "\34\4\5\6\12\16\23\0\20\0\24\0\0\0\0\0" + "Odb.Lib.Protobuf.EdaDataFile" + "path" + "units" + "source" + "layerNames" + "attributeNames" + "attributeTextValues" + "netRecordsByName" + "packageRecordsByName" + }}, +}; -void EdaDataFile::Clear() { +PROTOBUF_NOINLINE void EdaDataFile::Clear() { // @@protoc_insertion_point(message_clear_start:Odb.Lib.Protobuf.EdaDataFile) - uint32_t cached_has_bits = 0; + ::google::protobuf::internal::TSanWrite(&_impl_); + ::uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; @@ -4152,480 +4879,315 @@ void EdaDataFile::Clear() { } } _impl_._has_bits_.Clear(); - _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); -} - -const char* EdaDataFile::_InternalParse(const char* ptr, ::_pbi::ParseContext* ctx) { -#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure - _Internal::HasBits has_bits{}; - while (!ctx->Done(&ptr)) { - uint32_t tag; - ptr = ::_pbi::ReadTag(ptr, &tag); - switch (tag >> 3) { - // optional string path = 1; - case 1: - if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 10)) { - auto str = _internal_mutable_path(); - ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); - CHK_(ptr); - CHK_(::_pbi::VerifyUTF8(str, "Odb.Lib.Protobuf.EdaDataFile.path")); - } else - goto handle_unusual; - continue; - // optional string units = 2; - case 2: - if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 18)) { - auto str = _internal_mutable_units(); - ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); - CHK_(ptr); - CHK_(::_pbi::VerifyUTF8(str, "Odb.Lib.Protobuf.EdaDataFile.units")); - } else - goto handle_unusual; - continue; - // optional string source = 3; - case 3: - if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 26)) { - auto str = _internal_mutable_source(); - ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); - CHK_(ptr); - CHK_(::_pbi::VerifyUTF8(str, "Odb.Lib.Protobuf.EdaDataFile.source")); - } else - goto handle_unusual; - continue; - // repeated string layerNames = 4; - case 4: - if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 34)) { - ptr -= 1; - do { - ptr += 1; - auto str = _internal_add_layernames(); - ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); - CHK_(ptr); - CHK_(::_pbi::VerifyUTF8(str, "Odb.Lib.Protobuf.EdaDataFile.layerNames")); - if (!ctx->DataAvailable(ptr)) break; - } while (::PROTOBUF_NAMESPACE_ID::internal::ExpectTag<34>(ptr)); - } else - goto handle_unusual; - continue; - // repeated string attributeNames = 5; - case 5: - if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 42)) { - ptr -= 1; - do { - ptr += 1; - auto str = _internal_add_attributenames(); - ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); - CHK_(ptr); - CHK_(::_pbi::VerifyUTF8(str, "Odb.Lib.Protobuf.EdaDataFile.attributeNames")); - if (!ctx->DataAvailable(ptr)) break; - } while (::PROTOBUF_NAMESPACE_ID::internal::ExpectTag<42>(ptr)); - } else - goto handle_unusual; - continue; - // repeated string attributeTextValues = 6; - case 6: - if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 50)) { - ptr -= 1; - do { - ptr += 1; - auto str = _internal_add_attributetextvalues(); - ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); - CHK_(ptr); - CHK_(::_pbi::VerifyUTF8(str, "Odb.Lib.Protobuf.EdaDataFile.attributeTextValues")); - if (!ctx->DataAvailable(ptr)) break; - } while (::PROTOBUF_NAMESPACE_ID::internal::ExpectTag<50>(ptr)); - } else - goto handle_unusual; - continue; - // repeated .Odb.Lib.Protobuf.EdaDataFile.NetRecord netRecords = 7; - case 7: - if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 58)) { - ptr -= 1; - do { - ptr += 1; - ptr = ctx->ParseMessage(_internal_add_netrecords(), ptr); - CHK_(ptr); - if (!ctx->DataAvailable(ptr)) break; - } while (::PROTOBUF_NAMESPACE_ID::internal::ExpectTag<58>(ptr)); - } else - goto handle_unusual; - continue; - // map netRecordsByName = 8; - case 8: - if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 66)) { - ptr -= 1; - do { - ptr += 1; - ptr = ctx->ParseMessage(&_impl_.netrecordsbyname_, ptr); - CHK_(ptr); - if (!ctx->DataAvailable(ptr)) break; - } while (::PROTOBUF_NAMESPACE_ID::internal::ExpectTag<66>(ptr)); - } else - goto handle_unusual; - continue; - // repeated .Odb.Lib.Protobuf.EdaDataFile.PackageRecord packageRecords = 9; - case 9: - if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 74)) { - ptr -= 1; - do { - ptr += 1; - ptr = ctx->ParseMessage(_internal_add_packagerecords(), ptr); - CHK_(ptr); - if (!ctx->DataAvailable(ptr)) break; - } while (::PROTOBUF_NAMESPACE_ID::internal::ExpectTag<74>(ptr)); - } else - goto handle_unusual; - continue; - // map packageRecordsByName = 10; - case 10: - if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 82)) { - ptr -= 1; - do { - ptr += 1; - ptr = ctx->ParseMessage(&_impl_.packagerecordsbyname_, ptr); - CHK_(ptr); - if (!ctx->DataAvailable(ptr)) break; - } while (::PROTOBUF_NAMESPACE_ID::internal::ExpectTag<82>(ptr)); - } else - goto handle_unusual; - continue; - // repeated .Odb.Lib.Protobuf.PropertyRecord propertyRecords = 11; - case 11: - if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 90)) { - ptr -= 1; - do { - ptr += 1; - ptr = ctx->ParseMessage(_internal_add_propertyrecords(), ptr); - CHK_(ptr); - if (!ctx->DataAvailable(ptr)) break; - } while (::PROTOBUF_NAMESPACE_ID::internal::ExpectTag<90>(ptr)); - } else - goto handle_unusual; - continue; - // repeated .Odb.Lib.Protobuf.EdaDataFile.FeatureGroupRecord featureGroupRecords = 12; - case 12: - if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 98)) { - ptr -= 1; - do { - ptr += 1; - ptr = ctx->ParseMessage(_internal_add_featuregrouprecords(), ptr); - CHK_(ptr); - if (!ctx->DataAvailable(ptr)) break; - } while (::PROTOBUF_NAMESPACE_ID::internal::ExpectTag<98>(ptr)); - } else - goto handle_unusual; - continue; - default: - goto handle_unusual; - } // switch - handle_unusual: - if ((tag == 0) || ((tag & 7) == 4)) { - CHK_(ptr); - ctx->SetLastTag(tag); - goto message_done; - } - ptr = UnknownFieldParse( - tag, - _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(), - ptr, ctx); - CHK_(ptr != nullptr); - } // while -message_done: - _impl_._has_bits_.Or(has_bits); - return ptr; -failure: - ptr = nullptr; - goto message_done; -#undef CHK_ -} - -uint8_t* EdaDataFile::_InternalSerialize( - uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { - // @@protoc_insertion_point(serialize_to_array_start:Odb.Lib.Protobuf.EdaDataFile) - uint32_t cached_has_bits = 0; - (void) cached_has_bits; - - // optional string path = 1; - if (_internal_has_path()) { - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( - this->_internal_path().data(), static_cast(this->_internal_path().length()), - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, - "Odb.Lib.Protobuf.EdaDataFile.path"); - target = stream->WriteStringMaybeAliased( - 1, this->_internal_path(), target); - } - - // optional string units = 2; - if (_internal_has_units()) { - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( - this->_internal_units().data(), static_cast(this->_internal_units().length()), - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, - "Odb.Lib.Protobuf.EdaDataFile.units"); - target = stream->WriteStringMaybeAliased( - 2, this->_internal_units(), target); - } - - // optional string source = 3; - if (_internal_has_source()) { - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( - this->_internal_source().data(), static_cast(this->_internal_source().length()), - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, - "Odb.Lib.Protobuf.EdaDataFile.source"); - target = stream->WriteStringMaybeAliased( - 3, this->_internal_source(), target); - } - - // repeated string layerNames = 4; - for (int i = 0, n = this->_internal_layernames_size(); i < n; i++) { - const auto& s = this->_internal_layernames(i); - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( - s.data(), static_cast(s.length()), - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, - "Odb.Lib.Protobuf.EdaDataFile.layerNames"); - target = stream->WriteString(4, s, target); - } - - // repeated string attributeNames = 5; - for (int i = 0, n = this->_internal_attributenames_size(); i < n; i++) { - const auto& s = this->_internal_attributenames(i); - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( - s.data(), static_cast(s.length()), - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, - "Odb.Lib.Protobuf.EdaDataFile.attributeNames"); - target = stream->WriteString(5, s, target); - } - - // repeated string attributeTextValues = 6; - for (int i = 0, n = this->_internal_attributetextvalues_size(); i < n; i++) { - const auto& s = this->_internal_attributetextvalues(i); - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( - s.data(), static_cast(s.length()), - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, - "Odb.Lib.Protobuf.EdaDataFile.attributeTextValues"); - target = stream->WriteString(6, s, target); - } - - // repeated .Odb.Lib.Protobuf.EdaDataFile.NetRecord netRecords = 7; - for (unsigned i = 0, - n = static_cast(this->_internal_netrecords_size()); i < n; i++) { - const auto& repfield = this->_internal_netrecords(i); - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: - InternalWriteMessage(7, repfield, repfield.GetCachedSize(), target, stream); - } - - // map netRecordsByName = 8; - if (!this->_internal_netrecordsbyname().empty()) { - using MapType = ::_pb::Map; - using WireHelper = EdaDataFile_NetRecordsByNameEntry_DoNotUse::Funcs; - const auto& map_field = this->_internal_netrecordsbyname(); - auto check_utf8 = [](const MapType::value_type& entry) { - (void)entry; - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( - entry.first.data(), static_cast(entry.first.length()), - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, - "Odb.Lib.Protobuf.EdaDataFile.NetRecordsByNameEntry.key"); - }; - - if (stream->IsSerializationDeterministic() && map_field.size() > 1) { - for (const auto& entry : ::_pbi::MapSorterPtr(map_field)) { - target = WireHelper::InternalSerialize(8, entry.first, entry.second, target, stream); - check_utf8(entry); - } - } else { - for (const auto& entry : map_field) { - target = WireHelper::InternalSerialize(8, entry.first, entry.second, target, stream); - check_utf8(entry); - } - } - } - - // repeated .Odb.Lib.Protobuf.EdaDataFile.PackageRecord packageRecords = 9; - for (unsigned i = 0, - n = static_cast(this->_internal_packagerecords_size()); i < n; i++) { - const auto& repfield = this->_internal_packagerecords(i); - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: - InternalWriteMessage(9, repfield, repfield.GetCachedSize(), target, stream); - } - - // map packageRecordsByName = 10; - if (!this->_internal_packagerecordsbyname().empty()) { - using MapType = ::_pb::Map; - using WireHelper = EdaDataFile_PackageRecordsByNameEntry_DoNotUse::Funcs; - const auto& map_field = this->_internal_packagerecordsbyname(); - auto check_utf8 = [](const MapType::value_type& entry) { - (void)entry; - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( - entry.first.data(), static_cast(entry.first.length()), - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, - "Odb.Lib.Protobuf.EdaDataFile.PackageRecordsByNameEntry.key"); - }; - - if (stream->IsSerializationDeterministic() && map_field.size() > 1) { - for (const auto& entry : ::_pbi::MapSorterPtr(map_field)) { - target = WireHelper::InternalSerialize(10, entry.first, entry.second, target, stream); - check_utf8(entry); - } - } else { - for (const auto& entry : map_field) { - target = WireHelper::InternalSerialize(10, entry.first, entry.second, target, stream); - check_utf8(entry); - } - } - } - - // repeated .Odb.Lib.Protobuf.PropertyRecord propertyRecords = 11; - for (unsigned i = 0, - n = static_cast(this->_internal_propertyrecords_size()); i < n; i++) { - const auto& repfield = this->_internal_propertyrecords(i); - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: - InternalWriteMessage(11, repfield, repfield.GetCachedSize(), target, stream); - } - - // repeated .Odb.Lib.Protobuf.EdaDataFile.FeatureGroupRecord featureGroupRecords = 12; - for (unsigned i = 0, - n = static_cast(this->_internal_featuregrouprecords_size()); i < n; i++) { - const auto& repfield = this->_internal_featuregrouprecords(i); - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: - InternalWriteMessage(12, repfield, repfield.GetCachedSize(), target, stream); - } - - if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = ::_pbi::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:Odb.Lib.Protobuf.EdaDataFile) - return target; -} - -size_t EdaDataFile::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:Odb.Lib.Protobuf.EdaDataFile) - size_t total_size = 0; - - uint32_t cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - // repeated string layerNames = 4; - total_size += 1 * - ::PROTOBUF_NAMESPACE_ID::internal::FromIntSize(_impl_.layernames_.size()); - for (int i = 0, n = _impl_.layernames_.size(); i < n; i++) { - total_size += ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( - _impl_.layernames_.Get(i)); - } - - // repeated string attributeNames = 5; - total_size += 1 * - ::PROTOBUF_NAMESPACE_ID::internal::FromIntSize(_impl_.attributenames_.size()); - for (int i = 0, n = _impl_.attributenames_.size(); i < n; i++) { - total_size += ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( - _impl_.attributenames_.Get(i)); - } - - // repeated string attributeTextValues = 6; - total_size += 1 * - ::PROTOBUF_NAMESPACE_ID::internal::FromIntSize(_impl_.attributetextvalues_.size()); - for (int i = 0, n = _impl_.attributetextvalues_.size(); i < n; i++) { - total_size += ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( - _impl_.attributetextvalues_.Get(i)); - } - - // repeated .Odb.Lib.Protobuf.EdaDataFile.NetRecord netRecords = 7; - total_size += 1UL * this->_internal_netrecords_size(); - for (const auto& msg : this->_impl_.netrecords_) { - total_size += - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(msg); - } - - // map netRecordsByName = 8; - total_size += 1 * - ::PROTOBUF_NAMESPACE_ID::internal::FromIntSize(this->_internal_netrecordsbyname_size()); - for (::PROTOBUF_NAMESPACE_ID::Map< std::string, ::Odb::Lib::Protobuf::EdaDataFile_NetRecord >::const_iterator - it = this->_internal_netrecordsbyname().begin(); - it != this->_internal_netrecordsbyname().end(); ++it) { - total_size += EdaDataFile_NetRecordsByNameEntry_DoNotUse::Funcs::ByteSizeLong(it->first, it->second); - } - - // repeated .Odb.Lib.Protobuf.EdaDataFile.PackageRecord packageRecords = 9; - total_size += 1UL * this->_internal_packagerecords_size(); - for (const auto& msg : this->_impl_.packagerecords_) { - total_size += - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(msg); - } - - // map packageRecordsByName = 10; - total_size += 1 * - ::PROTOBUF_NAMESPACE_ID::internal::FromIntSize(this->_internal_packagerecordsbyname_size()); - for (::PROTOBUF_NAMESPACE_ID::Map< std::string, ::Odb::Lib::Protobuf::EdaDataFile_PackageRecord >::const_iterator - it = this->_internal_packagerecordsbyname().begin(); - it != this->_internal_packagerecordsbyname().end(); ++it) { - total_size += EdaDataFile_PackageRecordsByNameEntry_DoNotUse::Funcs::ByteSizeLong(it->first, it->second); - } - - // repeated .Odb.Lib.Protobuf.PropertyRecord propertyRecords = 11; - total_size += 1UL * this->_internal_propertyrecords_size(); - for (const auto& msg : this->_impl_.propertyrecords_) { - total_size += - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(msg); - } - - // repeated .Odb.Lib.Protobuf.EdaDataFile.FeatureGroupRecord featureGroupRecords = 12; - total_size += 1UL * this->_internal_featuregrouprecords_size(); - for (const auto& msg : this->_impl_.featuregrouprecords_) { - total_size += - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(msg); - } - - cached_has_bits = _impl_._has_bits_[0]; - if (cached_has_bits & 0x00000007u) { - // optional string path = 1; - if (cached_has_bits & 0x00000001u) { - total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( - this->_internal_path()); - } - - // optional string units = 2; - if (cached_has_bits & 0x00000002u) { - total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( - this->_internal_units()); - } - - // optional string source = 3; - if (cached_has_bits & 0x00000004u) { - total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( - this->_internal_source()); - } - - } - return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); -} - -const ::PROTOBUF_NAMESPACE_ID::Message::ClassData EdaDataFile::_class_data_ = { - ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSourceCheck, - EdaDataFile::MergeImpl -}; -const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*EdaDataFile::GetClassData() const { return &_class_data_; } - - -void EdaDataFile::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg) { + _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); +} + +#if defined(PROTOBUF_CUSTOM_VTABLE) + ::uint8_t* EdaDataFile::_InternalSerialize( + const MessageLite& base, ::uint8_t* target, + ::google::protobuf::io::EpsCopyOutputStream* stream) { + const EdaDataFile& this_ = static_cast(base); +#else // PROTOBUF_CUSTOM_VTABLE + ::uint8_t* EdaDataFile::_InternalSerialize( + ::uint8_t* target, + ::google::protobuf::io::EpsCopyOutputStream* stream) const { + const EdaDataFile& this_ = *this; +#endif // PROTOBUF_CUSTOM_VTABLE + // @@protoc_insertion_point(serialize_to_array_start:Odb.Lib.Protobuf.EdaDataFile) + ::uint32_t cached_has_bits = 0; + (void)cached_has_bits; + + cached_has_bits = this_._impl_._has_bits_[0]; + // optional string path = 1; + if (cached_has_bits & 0x00000001u) { + const std::string& _s = this_._internal_path(); + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + _s.data(), static_cast(_s.length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "Odb.Lib.Protobuf.EdaDataFile.path"); + target = stream->WriteStringMaybeAliased(1, _s, target); + } + + // optional string units = 2; + if (cached_has_bits & 0x00000002u) { + const std::string& _s = this_._internal_units(); + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + _s.data(), static_cast(_s.length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "Odb.Lib.Protobuf.EdaDataFile.units"); + target = stream->WriteStringMaybeAliased(2, _s, target); + } + + // optional string source = 3; + if (cached_has_bits & 0x00000004u) { + const std::string& _s = this_._internal_source(); + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + _s.data(), static_cast(_s.length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "Odb.Lib.Protobuf.EdaDataFile.source"); + target = stream->WriteStringMaybeAliased(3, _s, target); + } + + // repeated string layerNames = 4; + for (int i = 0, n = this_._internal_layernames_size(); i < n; ++i) { + const auto& s = this_._internal_layernames().Get(i); + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + s.data(), static_cast(s.length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "Odb.Lib.Protobuf.EdaDataFile.layerNames"); + target = stream->WriteString(4, s, target); + } + + // repeated string attributeNames = 5; + for (int i = 0, n = this_._internal_attributenames_size(); i < n; ++i) { + const auto& s = this_._internal_attributenames().Get(i); + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + s.data(), static_cast(s.length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "Odb.Lib.Protobuf.EdaDataFile.attributeNames"); + target = stream->WriteString(5, s, target); + } + + // repeated string attributeTextValues = 6; + for (int i = 0, n = this_._internal_attributetextvalues_size(); i < n; ++i) { + const auto& s = this_._internal_attributetextvalues().Get(i); + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + s.data(), static_cast(s.length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "Odb.Lib.Protobuf.EdaDataFile.attributeTextValues"); + target = stream->WriteString(6, s, target); + } + + // repeated .Odb.Lib.Protobuf.EdaDataFile.NetRecord netRecords = 7; + for (unsigned i = 0, n = static_cast( + this_._internal_netrecords_size()); + i < n; i++) { + const auto& repfield = this_._internal_netrecords().Get(i); + target = + ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( + 7, repfield, repfield.GetCachedSize(), + target, stream); + } + + // map netRecordsByName = 8; + if (!this_._internal_netrecordsbyname().empty()) { + using MapType = ::google::protobuf::Map; + using WireHelper = _pbi::MapEntryFuncs; + const auto& field = this_._internal_netrecordsbyname(); + + if (stream->IsSerializationDeterministic() && field.size() > 1) { + for (const auto& entry : ::google::protobuf::internal::MapSorterPtr(field)) { + target = WireHelper::InternalSerialize( + 8, entry.first, entry.second, target, stream); + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + entry.first.data(), static_cast(entry.first.length()), + ::google::protobuf::internal::WireFormatLite::SERIALIZE, "Odb.Lib.Protobuf.EdaDataFile.netRecordsByName"); + } + } else { + for (const auto& entry : field) { + target = WireHelper::InternalSerialize( + 8, entry.first, entry.second, target, stream); + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + entry.first.data(), static_cast(entry.first.length()), + ::google::protobuf::internal::WireFormatLite::SERIALIZE, "Odb.Lib.Protobuf.EdaDataFile.netRecordsByName"); + } + } + } + + // repeated .Odb.Lib.Protobuf.EdaDataFile.PackageRecord packageRecords = 9; + for (unsigned i = 0, n = static_cast( + this_._internal_packagerecords_size()); + i < n; i++) { + const auto& repfield = this_._internal_packagerecords().Get(i); + target = + ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( + 9, repfield, repfield.GetCachedSize(), + target, stream); + } + + // map packageRecordsByName = 10; + if (!this_._internal_packagerecordsbyname().empty()) { + using MapType = ::google::protobuf::Map; + using WireHelper = _pbi::MapEntryFuncs; + const auto& field = this_._internal_packagerecordsbyname(); + + if (stream->IsSerializationDeterministic() && field.size() > 1) { + for (const auto& entry : ::google::protobuf::internal::MapSorterPtr(field)) { + target = WireHelper::InternalSerialize( + 10, entry.first, entry.second, target, stream); + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + entry.first.data(), static_cast(entry.first.length()), + ::google::protobuf::internal::WireFormatLite::SERIALIZE, "Odb.Lib.Protobuf.EdaDataFile.packageRecordsByName"); + } + } else { + for (const auto& entry : field) { + target = WireHelper::InternalSerialize( + 10, entry.first, entry.second, target, stream); + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + entry.first.data(), static_cast(entry.first.length()), + ::google::protobuf::internal::WireFormatLite::SERIALIZE, "Odb.Lib.Protobuf.EdaDataFile.packageRecordsByName"); + } + } + } + + // repeated .Odb.Lib.Protobuf.PropertyRecord propertyRecords = 11; + for (unsigned i = 0, n = static_cast( + this_._internal_propertyrecords_size()); + i < n; i++) { + const auto& repfield = this_._internal_propertyrecords().Get(i); + target = + ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( + 11, repfield, repfield.GetCachedSize(), + target, stream); + } + + // repeated .Odb.Lib.Protobuf.EdaDataFile.FeatureGroupRecord featureGroupRecords = 12; + for (unsigned i = 0, n = static_cast( + this_._internal_featuregrouprecords_size()); + i < n; i++) { + const auto& repfield = this_._internal_featuregrouprecords().Get(i); + target = + ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( + 12, repfield, repfield.GetCachedSize(), + target, stream); + } + + if (PROTOBUF_PREDICT_FALSE(this_._internal_metadata_.have_unknown_fields())) { + target = + ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( + this_._internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); + } + // @@protoc_insertion_point(serialize_to_array_end:Odb.Lib.Protobuf.EdaDataFile) + return target; + } + +#if defined(PROTOBUF_CUSTOM_VTABLE) + ::size_t EdaDataFile::ByteSizeLong(const MessageLite& base) { + const EdaDataFile& this_ = static_cast(base); +#else // PROTOBUF_CUSTOM_VTABLE + ::size_t EdaDataFile::ByteSizeLong() const { + const EdaDataFile& this_ = *this; +#endif // PROTOBUF_CUSTOM_VTABLE + // @@protoc_insertion_point(message_byte_size_start:Odb.Lib.Protobuf.EdaDataFile) + ::size_t total_size = 0; + + ::uint32_t cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void)cached_has_bits; + + ::_pbi::Prefetch5LinesFrom7Lines(&this_); + { + // repeated string layerNames = 4; + { + total_size += + 1 * ::google::protobuf::internal::FromIntSize(this_._internal_layernames().size()); + for (int i = 0, n = this_._internal_layernames().size(); i < n; ++i) { + total_size += ::google::protobuf::internal::WireFormatLite::StringSize( + this_._internal_layernames().Get(i)); + } + } + // repeated string attributeNames = 5; + { + total_size += + 1 * ::google::protobuf::internal::FromIntSize(this_._internal_attributenames().size()); + for (int i = 0, n = this_._internal_attributenames().size(); i < n; ++i) { + total_size += ::google::protobuf::internal::WireFormatLite::StringSize( + this_._internal_attributenames().Get(i)); + } + } + // repeated string attributeTextValues = 6; + { + total_size += + 1 * ::google::protobuf::internal::FromIntSize(this_._internal_attributetextvalues().size()); + for (int i = 0, n = this_._internal_attributetextvalues().size(); i < n; ++i) { + total_size += ::google::protobuf::internal::WireFormatLite::StringSize( + this_._internal_attributetextvalues().Get(i)); + } + } + // repeated .Odb.Lib.Protobuf.EdaDataFile.NetRecord netRecords = 7; + { + total_size += 1UL * this_._internal_netrecords_size(); + for (const auto& msg : this_._internal_netrecords()) { + total_size += ::google::protobuf::internal::WireFormatLite::MessageSize(msg); + } + } + // map netRecordsByName = 8; + { + total_size += + 1 * ::google::protobuf::internal::FromIntSize(this_._internal_netrecordsbyname_size()); + for (const auto& entry : this_._internal_netrecordsbyname()) { + total_size += _pbi::MapEntryFuncs::ByteSizeLong(entry.first, entry.second); + } + } + // repeated .Odb.Lib.Protobuf.EdaDataFile.PackageRecord packageRecords = 9; + { + total_size += 1UL * this_._internal_packagerecords_size(); + for (const auto& msg : this_._internal_packagerecords()) { + total_size += ::google::protobuf::internal::WireFormatLite::MessageSize(msg); + } + } + // map packageRecordsByName = 10; + { + total_size += + 1 * ::google::protobuf::internal::FromIntSize(this_._internal_packagerecordsbyname_size()); + for (const auto& entry : this_._internal_packagerecordsbyname()) { + total_size += _pbi::MapEntryFuncs::ByteSizeLong(entry.first, entry.second); + } + } + // repeated .Odb.Lib.Protobuf.PropertyRecord propertyRecords = 11; + { + total_size += 1UL * this_._internal_propertyrecords_size(); + for (const auto& msg : this_._internal_propertyrecords()) { + total_size += ::google::protobuf::internal::WireFormatLite::MessageSize(msg); + } + } + // repeated .Odb.Lib.Protobuf.EdaDataFile.FeatureGroupRecord featureGroupRecords = 12; + { + total_size += 1UL * this_._internal_featuregrouprecords_size(); + for (const auto& msg : this_._internal_featuregrouprecords()) { + total_size += ::google::protobuf::internal::WireFormatLite::MessageSize(msg); + } + } + } + cached_has_bits = this_._impl_._has_bits_[0]; + if (cached_has_bits & 0x00000007u) { + // optional string path = 1; + if (cached_has_bits & 0x00000001u) { + total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize( + this_._internal_path()); + } + // optional string units = 2; + if (cached_has_bits & 0x00000002u) { + total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize( + this_._internal_units()); + } + // optional string source = 3; + if (cached_has_bits & 0x00000004u) { + total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize( + this_._internal_source()); + } + } + return this_.MaybeComputeUnknownFieldsSize(total_size, + &this_._impl_._cached_size_); + } + +void EdaDataFile::MergeImpl(::google::protobuf::MessageLite& to_msg, const ::google::protobuf::MessageLite& from_msg) { auto* const _this = static_cast(&to_msg); auto& from = static_cast(from_msg); // @@protoc_insertion_point(class_specific_merge_from_start:Odb.Lib.Protobuf.EdaDataFile) - GOOGLE_DCHECK_NE(&from, _this); - uint32_t cached_has_bits = 0; + ABSL_DCHECK_NE(&from, _this); + ::uint32_t cached_has_bits = 0; (void) cached_has_bits; - _this->_impl_.layernames_.MergeFrom(from._impl_.layernames_); - _this->_impl_.attributenames_.MergeFrom(from._impl_.attributenames_); - _this->_impl_.attributetextvalues_.MergeFrom(from._impl_.attributetextvalues_); - _this->_impl_.netrecords_.MergeFrom(from._impl_.netrecords_); + _this->_internal_mutable_layernames()->MergeFrom(from._internal_layernames()); + _this->_internal_mutable_attributenames()->MergeFrom(from._internal_attributenames()); + _this->_internal_mutable_attributetextvalues()->MergeFrom(from._internal_attributetextvalues()); + _this->_internal_mutable_netrecords()->MergeFrom( + from._internal_netrecords()); _this->_impl_.netrecordsbyname_.MergeFrom(from._impl_.netrecordsbyname_); - _this->_impl_.packagerecords_.MergeFrom(from._impl_.packagerecords_); + _this->_internal_mutable_packagerecords()->MergeFrom( + from._internal_packagerecords()); _this->_impl_.packagerecordsbyname_.MergeFrom(from._impl_.packagerecordsbyname_); - _this->_impl_.propertyrecords_.MergeFrom(from._impl_.propertyrecords_); - _this->_impl_.featuregrouprecords_.MergeFrom(from._impl_.featuregrouprecords_); + _this->_internal_mutable_propertyrecords()->MergeFrom( + from._internal_propertyrecords()); + _this->_internal_mutable_featuregrouprecords()->MergeFrom( + from._internal_featuregrouprecords()); cached_has_bits = from._impl_._has_bits_[0]; if (cached_has_bits & 0x00000007u) { if (cached_has_bits & 0x00000001u) { @@ -4638,7 +5200,8 @@ void EdaDataFile::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PR _this->_internal_set_source(from._internal_source()); } } - _this->_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); + _this->_impl_._has_bits_[0] |= cached_has_bits; + _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); } void EdaDataFile::CopyFrom(const EdaDataFile& from) { @@ -4648,14 +5211,11 @@ void EdaDataFile::CopyFrom(const EdaDataFile& from) { MergeFrom(from); } -bool EdaDataFile::IsInitialized() const { - return true; -} -void EdaDataFile::InternalSwap(EdaDataFile* other) { +void EdaDataFile::InternalSwap(EdaDataFile* PROTOBUF_RESTRICT other) { using std::swap; - auto* lhs_arena = GetArenaForAllocation(); - auto* rhs_arena = other->GetArenaForAllocation(); + auto* arena = GetArena(); + ABSL_DCHECK_EQ(arena, other->GetArena()); _internal_metadata_.InternalSwap(&other->_internal_metadata_); swap(_impl_._has_bits_[0], other->_impl_._has_bits_[0]); _impl_.layernames_.InternalSwap(&other->_impl_.layernames_); @@ -4667,84 +5227,25 @@ void EdaDataFile::InternalSwap(EdaDataFile* other) { _impl_.packagerecordsbyname_.InternalSwap(&other->_impl_.packagerecordsbyname_); _impl_.propertyrecords_.InternalSwap(&other->_impl_.propertyrecords_); _impl_.featuregrouprecords_.InternalSwap(&other->_impl_.featuregrouprecords_); - ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( - &_impl_.path_, lhs_arena, - &other->_impl_.path_, rhs_arena - ); - ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( - &_impl_.units_, lhs_arena, - &other->_impl_.units_, rhs_arena - ); - ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( - &_impl_.source_, lhs_arena, - &other->_impl_.source_, rhs_arena - ); -} - -::PROTOBUF_NAMESPACE_ID::Metadata EdaDataFile::GetMetadata() const { - return ::_pbi::AssignDescriptors( - &descriptor_table_edadatafile_2eproto_getter, &descriptor_table_edadatafile_2eproto_once, - file_level_metadata_edadatafile_2eproto[12]); + ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.path_, &other->_impl_.path_, arena); + ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.units_, &other->_impl_.units_, arena); + ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.source_, &other->_impl_.source_, arena); } +::google::protobuf::Metadata EdaDataFile::GetMetadata() const { + return ::google::protobuf::Message::GetMetadataImpl(GetClassData()->full()); +} // @@protoc_insertion_point(namespace_scope) } // namespace Protobuf } // namespace Lib } // namespace Odb -PROTOBUF_NAMESPACE_OPEN -template<> PROTOBUF_NOINLINE ::Odb::Lib::Protobuf::EdaDataFile_FeatureIdRecord* -Arena::CreateMaybeMessage< ::Odb::Lib::Protobuf::EdaDataFile_FeatureIdRecord >(Arena* arena) { - return Arena::CreateMessageInternal< ::Odb::Lib::Protobuf::EdaDataFile_FeatureIdRecord >(arena); -} -template<> PROTOBUF_NOINLINE ::Odb::Lib::Protobuf::EdaDataFile_NetRecord_SubnetRecord* -Arena::CreateMaybeMessage< ::Odb::Lib::Protobuf::EdaDataFile_NetRecord_SubnetRecord >(Arena* arena) { - return Arena::CreateMessageInternal< ::Odb::Lib::Protobuf::EdaDataFile_NetRecord_SubnetRecord >(arena); -} -template<> PROTOBUF_NOINLINE ::Odb::Lib::Protobuf::EdaDataFile_NetRecord_AttributeLookupTableEntry_DoNotUse* -Arena::CreateMaybeMessage< ::Odb::Lib::Protobuf::EdaDataFile_NetRecord_AttributeLookupTableEntry_DoNotUse >(Arena* arena) { - return Arena::CreateMessageInternal< ::Odb::Lib::Protobuf::EdaDataFile_NetRecord_AttributeLookupTableEntry_DoNotUse >(arena); -} -template<> PROTOBUF_NOINLINE ::Odb::Lib::Protobuf::EdaDataFile_NetRecord* -Arena::CreateMaybeMessage< ::Odb::Lib::Protobuf::EdaDataFile_NetRecord >(Arena* arena) { - return Arena::CreateMessageInternal< ::Odb::Lib::Protobuf::EdaDataFile_NetRecord >(arena); -} -template<> PROTOBUF_NOINLINE ::Odb::Lib::Protobuf::EdaDataFile_PackageRecord_PinRecordsByNameEntry_DoNotUse* -Arena::CreateMaybeMessage< ::Odb::Lib::Protobuf::EdaDataFile_PackageRecord_PinRecordsByNameEntry_DoNotUse >(Arena* arena) { - return Arena::CreateMessageInternal< ::Odb::Lib::Protobuf::EdaDataFile_PackageRecord_PinRecordsByNameEntry_DoNotUse >(arena); -} -template<> PROTOBUF_NOINLINE ::Odb::Lib::Protobuf::EdaDataFile_PackageRecord_AttributeLookupTableEntry_DoNotUse* -Arena::CreateMaybeMessage< ::Odb::Lib::Protobuf::EdaDataFile_PackageRecord_AttributeLookupTableEntry_DoNotUse >(Arena* arena) { - return Arena::CreateMessageInternal< ::Odb::Lib::Protobuf::EdaDataFile_PackageRecord_AttributeLookupTableEntry_DoNotUse >(arena); -} -template<> PROTOBUF_NOINLINE ::Odb::Lib::Protobuf::EdaDataFile_PackageRecord_OutlineRecord* -Arena::CreateMaybeMessage< ::Odb::Lib::Protobuf::EdaDataFile_PackageRecord_OutlineRecord >(Arena* arena) { - return Arena::CreateMessageInternal< ::Odb::Lib::Protobuf::EdaDataFile_PackageRecord_OutlineRecord >(arena); -} -template<> PROTOBUF_NOINLINE ::Odb::Lib::Protobuf::EdaDataFile_PackageRecord_PinRecord* -Arena::CreateMaybeMessage< ::Odb::Lib::Protobuf::EdaDataFile_PackageRecord_PinRecord >(Arena* arena) { - return Arena::CreateMessageInternal< ::Odb::Lib::Protobuf::EdaDataFile_PackageRecord_PinRecord >(arena); -} -template<> PROTOBUF_NOINLINE ::Odb::Lib::Protobuf::EdaDataFile_PackageRecord* -Arena::CreateMaybeMessage< ::Odb::Lib::Protobuf::EdaDataFile_PackageRecord >(Arena* arena) { - return Arena::CreateMessageInternal< ::Odb::Lib::Protobuf::EdaDataFile_PackageRecord >(arena); -} -template<> PROTOBUF_NOINLINE ::Odb::Lib::Protobuf::EdaDataFile_FeatureGroupRecord* -Arena::CreateMaybeMessage< ::Odb::Lib::Protobuf::EdaDataFile_FeatureGroupRecord >(Arena* arena) { - return Arena::CreateMessageInternal< ::Odb::Lib::Protobuf::EdaDataFile_FeatureGroupRecord >(arena); -} -template<> PROTOBUF_NOINLINE ::Odb::Lib::Protobuf::EdaDataFile_NetRecordsByNameEntry_DoNotUse* -Arena::CreateMaybeMessage< ::Odb::Lib::Protobuf::EdaDataFile_NetRecordsByNameEntry_DoNotUse >(Arena* arena) { - return Arena::CreateMessageInternal< ::Odb::Lib::Protobuf::EdaDataFile_NetRecordsByNameEntry_DoNotUse >(arena); -} -template<> PROTOBUF_NOINLINE ::Odb::Lib::Protobuf::EdaDataFile_PackageRecordsByNameEntry_DoNotUse* -Arena::CreateMaybeMessage< ::Odb::Lib::Protobuf::EdaDataFile_PackageRecordsByNameEntry_DoNotUse >(Arena* arena) { - return Arena::CreateMessageInternal< ::Odb::Lib::Protobuf::EdaDataFile_PackageRecordsByNameEntry_DoNotUse >(arena); -} -template<> PROTOBUF_NOINLINE ::Odb::Lib::Protobuf::EdaDataFile* -Arena::CreateMaybeMessage< ::Odb::Lib::Protobuf::EdaDataFile >(Arena* arena) { - return Arena::CreateMessageInternal< ::Odb::Lib::Protobuf::EdaDataFile >(arena); -} -PROTOBUF_NAMESPACE_CLOSE - +namespace google { +namespace protobuf { +} // namespace protobuf +} // namespace google // @@protoc_insertion_point(global_scope) -#include +PROTOBUF_ATTRIBUTE_INIT_PRIORITY2 static ::std::false_type + _static_init2_ PROTOBUF_UNUSED = + (::_pbi::AddDescriptors(&descriptor_table_edadatafile_2eproto), + ::std::false_type{}); +#include "google/protobuf/port_undef.inc" diff --git a/OdbDesignLib/ProtoBuf/edadatafile.pb.h b/OdbDesignLib/ProtoBuf/edadatafile.pb.h index 7d3f57fa..c4b82dbf 100644 --- a/OdbDesignLib/ProtoBuf/edadatafile.pb.h +++ b/OdbDesignLib/ProtoBuf/edadatafile.pb.h @@ -1,55 +1,62 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE // source: edadatafile.proto +// Protobuf C++ Version: 5.29.2 -#ifndef GOOGLE_PROTOBUF_INCLUDED_edadatafile_2eproto -#define GOOGLE_PROTOBUF_INCLUDED_edadatafile_2eproto +#ifndef edadatafile_2eproto_2epb_2eh +#define edadatafile_2eproto_2epb_2eh #include #include - -#include -#if PROTOBUF_VERSION < 3021000 -#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 3021012 < 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. +#include +#include + +#include "google/protobuf/runtime_version.h" +#if PROTOBUF_VERSION != 5029002 +#error "Protobuf C++ gencode is built with an incompatible version of" +#error "Protobuf C++ headers/runtime. See" +#error "https://protobuf.dev/support/cross-version-runtime-guarantee/#cpp" #endif - -#include -#include -#include -#include -#include -#include -#include -#include -#include // IWYU pragma: export -#include // IWYU pragma: export -#include // IWYU pragma: export -#include -#include -#include -#include +#include "google/protobuf/io/coded_stream.h" +#include "google/protobuf/arena.h" +#include "google/protobuf/arenastring.h" +#include "google/protobuf/generated_message_tctable_decl.h" +#include "google/protobuf/generated_message_util.h" +#include "google/protobuf/metadata_lite.h" +#include "google/protobuf/generated_message_reflection.h" +#include "google/protobuf/message.h" +#include "google/protobuf/message_lite.h" +#include "google/protobuf/repeated_field.h" // IWYU pragma: export +#include "google/protobuf/extension_set.h" // IWYU pragma: export +#include "google/protobuf/map.h" // IWYU pragma: export +#include "google/protobuf/map_entry.h" +#include "google/protobuf/map_field_inl.h" +#include "google/protobuf/generated_enum_reflection.h" +#include "google/protobuf/unknown_field_set.h" #include "common.pb.h" #include "enums.pb.h" // @@protoc_insertion_point(includes) -#include + +// Must be included last. +#include "google/protobuf/port_def.inc" + #define PROTOBUF_INTERNAL_EXPORT_edadatafile_2eproto ODBDESIGN_EXPORT -PROTOBUF_NAMESPACE_OPEN + +namespace google { +namespace protobuf { namespace internal { -class AnyMetadata; +template +::absl::string_view GetAnyMessageName(); } // namespace internal -PROTOBUF_NAMESPACE_CLOSE +} // namespace protobuf +} // namespace google // Internal implementation detail -- do not use these members. struct ODBDESIGN_EXPORT TableStruct_edadatafile_2eproto { - static const uint32_t offsets[]; + static const ::uint32_t offsets[]; }; -ODBDESIGN_EXPORT extern const ::PROTOBUF_NAMESPACE_ID::internal::DescriptorTable descriptor_table_edadatafile_2eproto; +ODBDESIGN_EXPORT extern const ::google::protobuf::internal::DescriptorTable + descriptor_table_edadatafile_2eproto; namespace Odb { namespace Lib { namespace Protobuf { @@ -95,208 +102,253 @@ ODBDESIGN_EXPORT extern EdaDataFile_PackageRecordsByNameEntry_DoNotUseDefaultTyp } // namespace Protobuf } // namespace Lib } // namespace Odb -PROTOBUF_NAMESPACE_OPEN -template<> ODBDESIGN_EXPORT ::Odb::Lib::Protobuf::EdaDataFile* Arena::CreateMaybeMessage<::Odb::Lib::Protobuf::EdaDataFile>(Arena*); -template<> ODBDESIGN_EXPORT ::Odb::Lib::Protobuf::EdaDataFile_FeatureGroupRecord* Arena::CreateMaybeMessage<::Odb::Lib::Protobuf::EdaDataFile_FeatureGroupRecord>(Arena*); -template<> ODBDESIGN_EXPORT ::Odb::Lib::Protobuf::EdaDataFile_FeatureIdRecord* Arena::CreateMaybeMessage<::Odb::Lib::Protobuf::EdaDataFile_FeatureIdRecord>(Arena*); -template<> ODBDESIGN_EXPORT ::Odb::Lib::Protobuf::EdaDataFile_NetRecord* Arena::CreateMaybeMessage<::Odb::Lib::Protobuf::EdaDataFile_NetRecord>(Arena*); -template<> ODBDESIGN_EXPORT ::Odb::Lib::Protobuf::EdaDataFile_NetRecord_AttributeLookupTableEntry_DoNotUse* Arena::CreateMaybeMessage<::Odb::Lib::Protobuf::EdaDataFile_NetRecord_AttributeLookupTableEntry_DoNotUse>(Arena*); -template<> ODBDESIGN_EXPORT ::Odb::Lib::Protobuf::EdaDataFile_NetRecord_SubnetRecord* Arena::CreateMaybeMessage<::Odb::Lib::Protobuf::EdaDataFile_NetRecord_SubnetRecord>(Arena*); -template<> ODBDESIGN_EXPORT ::Odb::Lib::Protobuf::EdaDataFile_NetRecordsByNameEntry_DoNotUse* Arena::CreateMaybeMessage<::Odb::Lib::Protobuf::EdaDataFile_NetRecordsByNameEntry_DoNotUse>(Arena*); -template<> ODBDESIGN_EXPORT ::Odb::Lib::Protobuf::EdaDataFile_PackageRecord* Arena::CreateMaybeMessage<::Odb::Lib::Protobuf::EdaDataFile_PackageRecord>(Arena*); -template<> ODBDESIGN_EXPORT ::Odb::Lib::Protobuf::EdaDataFile_PackageRecord_AttributeLookupTableEntry_DoNotUse* Arena::CreateMaybeMessage<::Odb::Lib::Protobuf::EdaDataFile_PackageRecord_AttributeLookupTableEntry_DoNotUse>(Arena*); -template<> ODBDESIGN_EXPORT ::Odb::Lib::Protobuf::EdaDataFile_PackageRecord_OutlineRecord* Arena::CreateMaybeMessage<::Odb::Lib::Protobuf::EdaDataFile_PackageRecord_OutlineRecord>(Arena*); -template<> ODBDESIGN_EXPORT ::Odb::Lib::Protobuf::EdaDataFile_PackageRecord_PinRecord* Arena::CreateMaybeMessage<::Odb::Lib::Protobuf::EdaDataFile_PackageRecord_PinRecord>(Arena*); -template<> ODBDESIGN_EXPORT ::Odb::Lib::Protobuf::EdaDataFile_PackageRecord_PinRecordsByNameEntry_DoNotUse* Arena::CreateMaybeMessage<::Odb::Lib::Protobuf::EdaDataFile_PackageRecord_PinRecordsByNameEntry_DoNotUse>(Arena*); -template<> ODBDESIGN_EXPORT ::Odb::Lib::Protobuf::EdaDataFile_PackageRecordsByNameEntry_DoNotUse* Arena::CreateMaybeMessage<::Odb::Lib::Protobuf::EdaDataFile_PackageRecordsByNameEntry_DoNotUse>(Arena*); -PROTOBUF_NAMESPACE_CLOSE +namespace google { +namespace protobuf { +} // namespace protobuf +} // namespace google + namespace Odb { namespace Lib { namespace Protobuf { - enum EdaDataFile_FeatureIdRecord_Type : int { EdaDataFile_FeatureIdRecord_Type_COPPER = 0, EdaDataFile_FeatureIdRecord_Type_LAMINATE = 1, EdaDataFile_FeatureIdRecord_Type_HOLE = 2, - EdaDataFile_FeatureIdRecord_Type_EdaDataFile_FeatureIdRecord_Type_INT_MIN_SENTINEL_DO_NOT_USE_ = std::numeric_limits::min(), - EdaDataFile_FeatureIdRecord_Type_EdaDataFile_FeatureIdRecord_Type_INT_MAX_SENTINEL_DO_NOT_USE_ = std::numeric_limits::max() + EdaDataFile_FeatureIdRecord_Type_EdaDataFile_FeatureIdRecord_Type_INT_MIN_SENTINEL_DO_NOT_USE_ = + std::numeric_limits<::int32_t>::min(), + EdaDataFile_FeatureIdRecord_Type_EdaDataFile_FeatureIdRecord_Type_INT_MAX_SENTINEL_DO_NOT_USE_ = + std::numeric_limits<::int32_t>::max(), }; + ODBDESIGN_EXPORT bool EdaDataFile_FeatureIdRecord_Type_IsValid(int value); -constexpr EdaDataFile_FeatureIdRecord_Type EdaDataFile_FeatureIdRecord_Type_Type_MIN = EdaDataFile_FeatureIdRecord_Type_COPPER; -constexpr EdaDataFile_FeatureIdRecord_Type EdaDataFile_FeatureIdRecord_Type_Type_MAX = EdaDataFile_FeatureIdRecord_Type_HOLE; -constexpr int EdaDataFile_FeatureIdRecord_Type_Type_ARRAYSIZE = EdaDataFile_FeatureIdRecord_Type_Type_MAX + 1; - -ODBDESIGN_EXPORT const ::PROTOBUF_NAMESPACE_ID::EnumDescriptor* EdaDataFile_FeatureIdRecord_Type_descriptor(); -template -inline const std::string& EdaDataFile_FeatureIdRecord_Type_Name(T enum_t_value) { - static_assert(::std::is_same::value || - ::std::is_integral::value, - "Incorrect type passed to function EdaDataFile_FeatureIdRecord_Type_Name."); - return ::PROTOBUF_NAMESPACE_ID::internal::NameOfEnum( - EdaDataFile_FeatureIdRecord_Type_descriptor(), enum_t_value); -} -inline bool EdaDataFile_FeatureIdRecord_Type_Parse( - ::PROTOBUF_NAMESPACE_ID::ConstStringParam name, EdaDataFile_FeatureIdRecord_Type* value) { - return ::PROTOBUF_NAMESPACE_ID::internal::ParseNamedEnum( - EdaDataFile_FeatureIdRecord_Type_descriptor(), name, value); +ODBDESIGN_EXPORT extern const uint32_t EdaDataFile_FeatureIdRecord_Type_internal_data_[]; +constexpr EdaDataFile_FeatureIdRecord_Type EdaDataFile_FeatureIdRecord_Type_Type_MIN = static_cast(0); +constexpr EdaDataFile_FeatureIdRecord_Type EdaDataFile_FeatureIdRecord_Type_Type_MAX = static_cast(2); +constexpr int EdaDataFile_FeatureIdRecord_Type_Type_ARRAYSIZE = 2 + 1; +ODBDESIGN_EXPORT const ::google::protobuf::EnumDescriptor* +EdaDataFile_FeatureIdRecord_Type_descriptor(); +template +const std::string& EdaDataFile_FeatureIdRecord_Type_Name(T value) { + static_assert(std::is_same::value || + std::is_integral::value, + "Incorrect type passed to Type_Name()."); + return EdaDataFile_FeatureIdRecord_Type_Name(static_cast(value)); +} +template <> +inline const std::string& EdaDataFile_FeatureIdRecord_Type_Name(EdaDataFile_FeatureIdRecord_Type value) { + return ::google::protobuf::internal::NameOfDenseEnum( + static_cast(value)); +} +inline bool EdaDataFile_FeatureIdRecord_Type_Parse(absl::string_view name, EdaDataFile_FeatureIdRecord_Type* value) { + return ::google::protobuf::internal::ParseNamedEnum( + EdaDataFile_FeatureIdRecord_Type_descriptor(), name, value); } enum EdaDataFile_NetRecord_SubnetRecord_Type : int { EdaDataFile_NetRecord_SubnetRecord_Type_VIA = 0, EdaDataFile_NetRecord_SubnetRecord_Type_TRACE = 1, EdaDataFile_NetRecord_SubnetRecord_Type_PLANE = 2, EdaDataFile_NetRecord_SubnetRecord_Type_TOEPRINT = 3, - EdaDataFile_NetRecord_SubnetRecord_Type_EdaDataFile_NetRecord_SubnetRecord_Type_INT_MIN_SENTINEL_DO_NOT_USE_ = std::numeric_limits::min(), - EdaDataFile_NetRecord_SubnetRecord_Type_EdaDataFile_NetRecord_SubnetRecord_Type_INT_MAX_SENTINEL_DO_NOT_USE_ = std::numeric_limits::max() + EdaDataFile_NetRecord_SubnetRecord_Type_EdaDataFile_NetRecord_SubnetRecord_Type_INT_MIN_SENTINEL_DO_NOT_USE_ = + std::numeric_limits<::int32_t>::min(), + EdaDataFile_NetRecord_SubnetRecord_Type_EdaDataFile_NetRecord_SubnetRecord_Type_INT_MAX_SENTINEL_DO_NOT_USE_ = + std::numeric_limits<::int32_t>::max(), }; + ODBDESIGN_EXPORT bool EdaDataFile_NetRecord_SubnetRecord_Type_IsValid(int value); -constexpr EdaDataFile_NetRecord_SubnetRecord_Type EdaDataFile_NetRecord_SubnetRecord_Type_Type_MIN = EdaDataFile_NetRecord_SubnetRecord_Type_VIA; -constexpr EdaDataFile_NetRecord_SubnetRecord_Type EdaDataFile_NetRecord_SubnetRecord_Type_Type_MAX = EdaDataFile_NetRecord_SubnetRecord_Type_TOEPRINT; -constexpr int EdaDataFile_NetRecord_SubnetRecord_Type_Type_ARRAYSIZE = EdaDataFile_NetRecord_SubnetRecord_Type_Type_MAX + 1; - -ODBDESIGN_EXPORT const ::PROTOBUF_NAMESPACE_ID::EnumDescriptor* EdaDataFile_NetRecord_SubnetRecord_Type_descriptor(); -template -inline const std::string& EdaDataFile_NetRecord_SubnetRecord_Type_Name(T enum_t_value) { - static_assert(::std::is_same::value || - ::std::is_integral::value, - "Incorrect type passed to function EdaDataFile_NetRecord_SubnetRecord_Type_Name."); - return ::PROTOBUF_NAMESPACE_ID::internal::NameOfEnum( - EdaDataFile_NetRecord_SubnetRecord_Type_descriptor(), enum_t_value); -} -inline bool EdaDataFile_NetRecord_SubnetRecord_Type_Parse( - ::PROTOBUF_NAMESPACE_ID::ConstStringParam name, EdaDataFile_NetRecord_SubnetRecord_Type* value) { - return ::PROTOBUF_NAMESPACE_ID::internal::ParseNamedEnum( - EdaDataFile_NetRecord_SubnetRecord_Type_descriptor(), name, value); +ODBDESIGN_EXPORT extern const uint32_t EdaDataFile_NetRecord_SubnetRecord_Type_internal_data_[]; +constexpr EdaDataFile_NetRecord_SubnetRecord_Type EdaDataFile_NetRecord_SubnetRecord_Type_Type_MIN = static_cast(0); +constexpr EdaDataFile_NetRecord_SubnetRecord_Type EdaDataFile_NetRecord_SubnetRecord_Type_Type_MAX = static_cast(3); +constexpr int EdaDataFile_NetRecord_SubnetRecord_Type_Type_ARRAYSIZE = 3 + 1; +ODBDESIGN_EXPORT const ::google::protobuf::EnumDescriptor* +EdaDataFile_NetRecord_SubnetRecord_Type_descriptor(); +template +const std::string& EdaDataFile_NetRecord_SubnetRecord_Type_Name(T value) { + static_assert(std::is_same::value || + std::is_integral::value, + "Incorrect type passed to Type_Name()."); + return EdaDataFile_NetRecord_SubnetRecord_Type_Name(static_cast(value)); +} +template <> +inline const std::string& EdaDataFile_NetRecord_SubnetRecord_Type_Name(EdaDataFile_NetRecord_SubnetRecord_Type value) { + return ::google::protobuf::internal::NameOfDenseEnum( + static_cast(value)); +} +inline bool EdaDataFile_NetRecord_SubnetRecord_Type_Parse(absl::string_view name, EdaDataFile_NetRecord_SubnetRecord_Type* value) { + return ::google::protobuf::internal::ParseNamedEnum( + EdaDataFile_NetRecord_SubnetRecord_Type_descriptor(), name, value); } enum EdaDataFile_NetRecord_SubnetRecord_FillType : int { EdaDataFile_NetRecord_SubnetRecord_FillType_SOLID = 0, EdaDataFile_NetRecord_SubnetRecord_FillType_OUTLINE = 1, - EdaDataFile_NetRecord_SubnetRecord_FillType_EdaDataFile_NetRecord_SubnetRecord_FillType_INT_MIN_SENTINEL_DO_NOT_USE_ = std::numeric_limits::min(), - EdaDataFile_NetRecord_SubnetRecord_FillType_EdaDataFile_NetRecord_SubnetRecord_FillType_INT_MAX_SENTINEL_DO_NOT_USE_ = std::numeric_limits::max() + EdaDataFile_NetRecord_SubnetRecord_FillType_EdaDataFile_NetRecord_SubnetRecord_FillType_INT_MIN_SENTINEL_DO_NOT_USE_ = + std::numeric_limits<::int32_t>::min(), + EdaDataFile_NetRecord_SubnetRecord_FillType_EdaDataFile_NetRecord_SubnetRecord_FillType_INT_MAX_SENTINEL_DO_NOT_USE_ = + std::numeric_limits<::int32_t>::max(), }; + ODBDESIGN_EXPORT bool EdaDataFile_NetRecord_SubnetRecord_FillType_IsValid(int value); -constexpr EdaDataFile_NetRecord_SubnetRecord_FillType EdaDataFile_NetRecord_SubnetRecord_FillType_FillType_MIN = EdaDataFile_NetRecord_SubnetRecord_FillType_SOLID; -constexpr EdaDataFile_NetRecord_SubnetRecord_FillType EdaDataFile_NetRecord_SubnetRecord_FillType_FillType_MAX = EdaDataFile_NetRecord_SubnetRecord_FillType_OUTLINE; -constexpr int EdaDataFile_NetRecord_SubnetRecord_FillType_FillType_ARRAYSIZE = EdaDataFile_NetRecord_SubnetRecord_FillType_FillType_MAX + 1; - -ODBDESIGN_EXPORT const ::PROTOBUF_NAMESPACE_ID::EnumDescriptor* EdaDataFile_NetRecord_SubnetRecord_FillType_descriptor(); -template -inline const std::string& EdaDataFile_NetRecord_SubnetRecord_FillType_Name(T enum_t_value) { - static_assert(::std::is_same::value || - ::std::is_integral::value, - "Incorrect type passed to function EdaDataFile_NetRecord_SubnetRecord_FillType_Name."); - return ::PROTOBUF_NAMESPACE_ID::internal::NameOfEnum( - EdaDataFile_NetRecord_SubnetRecord_FillType_descriptor(), enum_t_value); -} -inline bool EdaDataFile_NetRecord_SubnetRecord_FillType_Parse( - ::PROTOBUF_NAMESPACE_ID::ConstStringParam name, EdaDataFile_NetRecord_SubnetRecord_FillType* value) { - return ::PROTOBUF_NAMESPACE_ID::internal::ParseNamedEnum( - EdaDataFile_NetRecord_SubnetRecord_FillType_descriptor(), name, value); +ODBDESIGN_EXPORT extern const uint32_t EdaDataFile_NetRecord_SubnetRecord_FillType_internal_data_[]; +constexpr EdaDataFile_NetRecord_SubnetRecord_FillType EdaDataFile_NetRecord_SubnetRecord_FillType_FillType_MIN = static_cast(0); +constexpr EdaDataFile_NetRecord_SubnetRecord_FillType EdaDataFile_NetRecord_SubnetRecord_FillType_FillType_MAX = static_cast(1); +constexpr int EdaDataFile_NetRecord_SubnetRecord_FillType_FillType_ARRAYSIZE = 1 + 1; +ODBDESIGN_EXPORT const ::google::protobuf::EnumDescriptor* +EdaDataFile_NetRecord_SubnetRecord_FillType_descriptor(); +template +const std::string& EdaDataFile_NetRecord_SubnetRecord_FillType_Name(T value) { + static_assert(std::is_same::value || + std::is_integral::value, + "Incorrect type passed to FillType_Name()."); + return EdaDataFile_NetRecord_SubnetRecord_FillType_Name(static_cast(value)); +} +template <> +inline const std::string& EdaDataFile_NetRecord_SubnetRecord_FillType_Name(EdaDataFile_NetRecord_SubnetRecord_FillType value) { + return ::google::protobuf::internal::NameOfDenseEnum( + static_cast(value)); +} +inline bool EdaDataFile_NetRecord_SubnetRecord_FillType_Parse(absl::string_view name, EdaDataFile_NetRecord_SubnetRecord_FillType* value) { + return ::google::protobuf::internal::ParseNamedEnum( + EdaDataFile_NetRecord_SubnetRecord_FillType_descriptor(), name, value); } enum EdaDataFile_NetRecord_SubnetRecord_CutoutType : int { EdaDataFile_NetRecord_SubnetRecord_CutoutType_CIRCLE = 0, EdaDataFile_NetRecord_SubnetRecord_CutoutType_RECTANGLE = 1, EdaDataFile_NetRecord_SubnetRecord_CutoutType_OCTAGON = 2, EdaDataFile_NetRecord_SubnetRecord_CutoutType_EXACT = 3, - EdaDataFile_NetRecord_SubnetRecord_CutoutType_EdaDataFile_NetRecord_SubnetRecord_CutoutType_INT_MIN_SENTINEL_DO_NOT_USE_ = std::numeric_limits::min(), - EdaDataFile_NetRecord_SubnetRecord_CutoutType_EdaDataFile_NetRecord_SubnetRecord_CutoutType_INT_MAX_SENTINEL_DO_NOT_USE_ = std::numeric_limits::max() + EdaDataFile_NetRecord_SubnetRecord_CutoutType_EdaDataFile_NetRecord_SubnetRecord_CutoutType_INT_MIN_SENTINEL_DO_NOT_USE_ = + std::numeric_limits<::int32_t>::min(), + EdaDataFile_NetRecord_SubnetRecord_CutoutType_EdaDataFile_NetRecord_SubnetRecord_CutoutType_INT_MAX_SENTINEL_DO_NOT_USE_ = + std::numeric_limits<::int32_t>::max(), }; + ODBDESIGN_EXPORT bool EdaDataFile_NetRecord_SubnetRecord_CutoutType_IsValid(int value); -constexpr EdaDataFile_NetRecord_SubnetRecord_CutoutType EdaDataFile_NetRecord_SubnetRecord_CutoutType_CutoutType_MIN = EdaDataFile_NetRecord_SubnetRecord_CutoutType_CIRCLE; -constexpr EdaDataFile_NetRecord_SubnetRecord_CutoutType EdaDataFile_NetRecord_SubnetRecord_CutoutType_CutoutType_MAX = EdaDataFile_NetRecord_SubnetRecord_CutoutType_EXACT; -constexpr int EdaDataFile_NetRecord_SubnetRecord_CutoutType_CutoutType_ARRAYSIZE = EdaDataFile_NetRecord_SubnetRecord_CutoutType_CutoutType_MAX + 1; - -ODBDESIGN_EXPORT const ::PROTOBUF_NAMESPACE_ID::EnumDescriptor* EdaDataFile_NetRecord_SubnetRecord_CutoutType_descriptor(); -template -inline const std::string& EdaDataFile_NetRecord_SubnetRecord_CutoutType_Name(T enum_t_value) { - static_assert(::std::is_same::value || - ::std::is_integral::value, - "Incorrect type passed to function EdaDataFile_NetRecord_SubnetRecord_CutoutType_Name."); - return ::PROTOBUF_NAMESPACE_ID::internal::NameOfEnum( - EdaDataFile_NetRecord_SubnetRecord_CutoutType_descriptor(), enum_t_value); -} -inline bool EdaDataFile_NetRecord_SubnetRecord_CutoutType_Parse( - ::PROTOBUF_NAMESPACE_ID::ConstStringParam name, EdaDataFile_NetRecord_SubnetRecord_CutoutType* value) { - return ::PROTOBUF_NAMESPACE_ID::internal::ParseNamedEnum( - EdaDataFile_NetRecord_SubnetRecord_CutoutType_descriptor(), name, value); +ODBDESIGN_EXPORT extern const uint32_t EdaDataFile_NetRecord_SubnetRecord_CutoutType_internal_data_[]; +constexpr EdaDataFile_NetRecord_SubnetRecord_CutoutType EdaDataFile_NetRecord_SubnetRecord_CutoutType_CutoutType_MIN = static_cast(0); +constexpr EdaDataFile_NetRecord_SubnetRecord_CutoutType EdaDataFile_NetRecord_SubnetRecord_CutoutType_CutoutType_MAX = static_cast(3); +constexpr int EdaDataFile_NetRecord_SubnetRecord_CutoutType_CutoutType_ARRAYSIZE = 3 + 1; +ODBDESIGN_EXPORT const ::google::protobuf::EnumDescriptor* +EdaDataFile_NetRecord_SubnetRecord_CutoutType_descriptor(); +template +const std::string& EdaDataFile_NetRecord_SubnetRecord_CutoutType_Name(T value) { + static_assert(std::is_same::value || + std::is_integral::value, + "Incorrect type passed to CutoutType_Name()."); + return EdaDataFile_NetRecord_SubnetRecord_CutoutType_Name(static_cast(value)); +} +template <> +inline const std::string& EdaDataFile_NetRecord_SubnetRecord_CutoutType_Name(EdaDataFile_NetRecord_SubnetRecord_CutoutType value) { + return ::google::protobuf::internal::NameOfDenseEnum( + static_cast(value)); +} +inline bool EdaDataFile_NetRecord_SubnetRecord_CutoutType_Parse(absl::string_view name, EdaDataFile_NetRecord_SubnetRecord_CutoutType* value) { + return ::google::protobuf::internal::ParseNamedEnum( + EdaDataFile_NetRecord_SubnetRecord_CutoutType_descriptor(), name, value); } enum EdaDataFile_PackageRecord_OutlineRecord_Type : int { EdaDataFile_PackageRecord_OutlineRecord_Type_Rectangle = 0, EdaDataFile_PackageRecord_OutlineRecord_Type_Circle = 1, EdaDataFile_PackageRecord_OutlineRecord_Type_Square = 2, EdaDataFile_PackageRecord_OutlineRecord_Type_Contour = 3, - EdaDataFile_PackageRecord_OutlineRecord_Type_EdaDataFile_PackageRecord_OutlineRecord_Type_INT_MIN_SENTINEL_DO_NOT_USE_ = std::numeric_limits::min(), - EdaDataFile_PackageRecord_OutlineRecord_Type_EdaDataFile_PackageRecord_OutlineRecord_Type_INT_MAX_SENTINEL_DO_NOT_USE_ = std::numeric_limits::max() + EdaDataFile_PackageRecord_OutlineRecord_Type_EdaDataFile_PackageRecord_OutlineRecord_Type_INT_MIN_SENTINEL_DO_NOT_USE_ = + std::numeric_limits<::int32_t>::min(), + EdaDataFile_PackageRecord_OutlineRecord_Type_EdaDataFile_PackageRecord_OutlineRecord_Type_INT_MAX_SENTINEL_DO_NOT_USE_ = + std::numeric_limits<::int32_t>::max(), }; + ODBDESIGN_EXPORT bool EdaDataFile_PackageRecord_OutlineRecord_Type_IsValid(int value); -constexpr EdaDataFile_PackageRecord_OutlineRecord_Type EdaDataFile_PackageRecord_OutlineRecord_Type_Type_MIN = EdaDataFile_PackageRecord_OutlineRecord_Type_Rectangle; -constexpr EdaDataFile_PackageRecord_OutlineRecord_Type EdaDataFile_PackageRecord_OutlineRecord_Type_Type_MAX = EdaDataFile_PackageRecord_OutlineRecord_Type_Contour; -constexpr int EdaDataFile_PackageRecord_OutlineRecord_Type_Type_ARRAYSIZE = EdaDataFile_PackageRecord_OutlineRecord_Type_Type_MAX + 1; - -ODBDESIGN_EXPORT const ::PROTOBUF_NAMESPACE_ID::EnumDescriptor* EdaDataFile_PackageRecord_OutlineRecord_Type_descriptor(); -template -inline const std::string& EdaDataFile_PackageRecord_OutlineRecord_Type_Name(T enum_t_value) { - static_assert(::std::is_same::value || - ::std::is_integral::value, - "Incorrect type passed to function EdaDataFile_PackageRecord_OutlineRecord_Type_Name."); - return ::PROTOBUF_NAMESPACE_ID::internal::NameOfEnum( - EdaDataFile_PackageRecord_OutlineRecord_Type_descriptor(), enum_t_value); -} -inline bool EdaDataFile_PackageRecord_OutlineRecord_Type_Parse( - ::PROTOBUF_NAMESPACE_ID::ConstStringParam name, EdaDataFile_PackageRecord_OutlineRecord_Type* value) { - return ::PROTOBUF_NAMESPACE_ID::internal::ParseNamedEnum( - EdaDataFile_PackageRecord_OutlineRecord_Type_descriptor(), name, value); +ODBDESIGN_EXPORT extern const uint32_t EdaDataFile_PackageRecord_OutlineRecord_Type_internal_data_[]; +constexpr EdaDataFile_PackageRecord_OutlineRecord_Type EdaDataFile_PackageRecord_OutlineRecord_Type_Type_MIN = static_cast(0); +constexpr EdaDataFile_PackageRecord_OutlineRecord_Type EdaDataFile_PackageRecord_OutlineRecord_Type_Type_MAX = static_cast(3); +constexpr int EdaDataFile_PackageRecord_OutlineRecord_Type_Type_ARRAYSIZE = 3 + 1; +ODBDESIGN_EXPORT const ::google::protobuf::EnumDescriptor* +EdaDataFile_PackageRecord_OutlineRecord_Type_descriptor(); +template +const std::string& EdaDataFile_PackageRecord_OutlineRecord_Type_Name(T value) { + static_assert(std::is_same::value || + std::is_integral::value, + "Incorrect type passed to Type_Name()."); + return EdaDataFile_PackageRecord_OutlineRecord_Type_Name(static_cast(value)); +} +template <> +inline const std::string& EdaDataFile_PackageRecord_OutlineRecord_Type_Name(EdaDataFile_PackageRecord_OutlineRecord_Type value) { + return ::google::protobuf::internal::NameOfDenseEnum( + static_cast(value)); +} +inline bool EdaDataFile_PackageRecord_OutlineRecord_Type_Parse(absl::string_view name, EdaDataFile_PackageRecord_OutlineRecord_Type* value) { + return ::google::protobuf::internal::ParseNamedEnum( + EdaDataFile_PackageRecord_OutlineRecord_Type_descriptor(), name, value); } enum EdaDataFile_PackageRecord_PinRecord_Type : int { EdaDataFile_PackageRecord_PinRecord_Type_ThroughHole = 0, EdaDataFile_PackageRecord_PinRecord_Type_Blind = 1, EdaDataFile_PackageRecord_PinRecord_Type_Surface = 2, - EdaDataFile_PackageRecord_PinRecord_Type_EdaDataFile_PackageRecord_PinRecord_Type_INT_MIN_SENTINEL_DO_NOT_USE_ = std::numeric_limits::min(), - EdaDataFile_PackageRecord_PinRecord_Type_EdaDataFile_PackageRecord_PinRecord_Type_INT_MAX_SENTINEL_DO_NOT_USE_ = std::numeric_limits::max() + EdaDataFile_PackageRecord_PinRecord_Type_EdaDataFile_PackageRecord_PinRecord_Type_INT_MIN_SENTINEL_DO_NOT_USE_ = + std::numeric_limits<::int32_t>::min(), + EdaDataFile_PackageRecord_PinRecord_Type_EdaDataFile_PackageRecord_PinRecord_Type_INT_MAX_SENTINEL_DO_NOT_USE_ = + std::numeric_limits<::int32_t>::max(), }; + ODBDESIGN_EXPORT bool EdaDataFile_PackageRecord_PinRecord_Type_IsValid(int value); -constexpr EdaDataFile_PackageRecord_PinRecord_Type EdaDataFile_PackageRecord_PinRecord_Type_Type_MIN = EdaDataFile_PackageRecord_PinRecord_Type_ThroughHole; -constexpr EdaDataFile_PackageRecord_PinRecord_Type EdaDataFile_PackageRecord_PinRecord_Type_Type_MAX = EdaDataFile_PackageRecord_PinRecord_Type_Surface; -constexpr int EdaDataFile_PackageRecord_PinRecord_Type_Type_ARRAYSIZE = EdaDataFile_PackageRecord_PinRecord_Type_Type_MAX + 1; - -ODBDESIGN_EXPORT const ::PROTOBUF_NAMESPACE_ID::EnumDescriptor* EdaDataFile_PackageRecord_PinRecord_Type_descriptor(); -template -inline const std::string& EdaDataFile_PackageRecord_PinRecord_Type_Name(T enum_t_value) { - static_assert(::std::is_same::value || - ::std::is_integral::value, - "Incorrect type passed to function EdaDataFile_PackageRecord_PinRecord_Type_Name."); - return ::PROTOBUF_NAMESPACE_ID::internal::NameOfEnum( - EdaDataFile_PackageRecord_PinRecord_Type_descriptor(), enum_t_value); -} -inline bool EdaDataFile_PackageRecord_PinRecord_Type_Parse( - ::PROTOBUF_NAMESPACE_ID::ConstStringParam name, EdaDataFile_PackageRecord_PinRecord_Type* value) { - return ::PROTOBUF_NAMESPACE_ID::internal::ParseNamedEnum( - EdaDataFile_PackageRecord_PinRecord_Type_descriptor(), name, value); +ODBDESIGN_EXPORT extern const uint32_t EdaDataFile_PackageRecord_PinRecord_Type_internal_data_[]; +constexpr EdaDataFile_PackageRecord_PinRecord_Type EdaDataFile_PackageRecord_PinRecord_Type_Type_MIN = static_cast(0); +constexpr EdaDataFile_PackageRecord_PinRecord_Type EdaDataFile_PackageRecord_PinRecord_Type_Type_MAX = static_cast(2); +constexpr int EdaDataFile_PackageRecord_PinRecord_Type_Type_ARRAYSIZE = 2 + 1; +ODBDESIGN_EXPORT const ::google::protobuf::EnumDescriptor* +EdaDataFile_PackageRecord_PinRecord_Type_descriptor(); +template +const std::string& EdaDataFile_PackageRecord_PinRecord_Type_Name(T value) { + static_assert(std::is_same::value || + std::is_integral::value, + "Incorrect type passed to Type_Name()."); + return EdaDataFile_PackageRecord_PinRecord_Type_Name(static_cast(value)); +} +template <> +inline const std::string& EdaDataFile_PackageRecord_PinRecord_Type_Name(EdaDataFile_PackageRecord_PinRecord_Type value) { + return ::google::protobuf::internal::NameOfDenseEnum( + static_cast(value)); +} +inline bool EdaDataFile_PackageRecord_PinRecord_Type_Parse(absl::string_view name, EdaDataFile_PackageRecord_PinRecord_Type* value) { + return ::google::protobuf::internal::ParseNamedEnum( + EdaDataFile_PackageRecord_PinRecord_Type_descriptor(), name, value); } enum EdaDataFile_PackageRecord_PinRecord_ElectricalType : int { EdaDataFile_PackageRecord_PinRecord_ElectricalType_Electrical = 0, EdaDataFile_PackageRecord_PinRecord_ElectricalType_NonElectrical = 1, EdaDataFile_PackageRecord_PinRecord_ElectricalType_Undefined = 2, - EdaDataFile_PackageRecord_PinRecord_ElectricalType_EdaDataFile_PackageRecord_PinRecord_ElectricalType_INT_MIN_SENTINEL_DO_NOT_USE_ = std::numeric_limits::min(), - EdaDataFile_PackageRecord_PinRecord_ElectricalType_EdaDataFile_PackageRecord_PinRecord_ElectricalType_INT_MAX_SENTINEL_DO_NOT_USE_ = std::numeric_limits::max() + EdaDataFile_PackageRecord_PinRecord_ElectricalType_EdaDataFile_PackageRecord_PinRecord_ElectricalType_INT_MIN_SENTINEL_DO_NOT_USE_ = + std::numeric_limits<::int32_t>::min(), + EdaDataFile_PackageRecord_PinRecord_ElectricalType_EdaDataFile_PackageRecord_PinRecord_ElectricalType_INT_MAX_SENTINEL_DO_NOT_USE_ = + std::numeric_limits<::int32_t>::max(), }; + ODBDESIGN_EXPORT bool EdaDataFile_PackageRecord_PinRecord_ElectricalType_IsValid(int value); -constexpr EdaDataFile_PackageRecord_PinRecord_ElectricalType EdaDataFile_PackageRecord_PinRecord_ElectricalType_ElectricalType_MIN = EdaDataFile_PackageRecord_PinRecord_ElectricalType_Electrical; -constexpr EdaDataFile_PackageRecord_PinRecord_ElectricalType EdaDataFile_PackageRecord_PinRecord_ElectricalType_ElectricalType_MAX = EdaDataFile_PackageRecord_PinRecord_ElectricalType_Undefined; -constexpr int EdaDataFile_PackageRecord_PinRecord_ElectricalType_ElectricalType_ARRAYSIZE = EdaDataFile_PackageRecord_PinRecord_ElectricalType_ElectricalType_MAX + 1; - -ODBDESIGN_EXPORT const ::PROTOBUF_NAMESPACE_ID::EnumDescriptor* EdaDataFile_PackageRecord_PinRecord_ElectricalType_descriptor(); -template -inline const std::string& EdaDataFile_PackageRecord_PinRecord_ElectricalType_Name(T enum_t_value) { - static_assert(::std::is_same::value || - ::std::is_integral::value, - "Incorrect type passed to function EdaDataFile_PackageRecord_PinRecord_ElectricalType_Name."); - return ::PROTOBUF_NAMESPACE_ID::internal::NameOfEnum( - EdaDataFile_PackageRecord_PinRecord_ElectricalType_descriptor(), enum_t_value); -} -inline bool EdaDataFile_PackageRecord_PinRecord_ElectricalType_Parse( - ::PROTOBUF_NAMESPACE_ID::ConstStringParam name, EdaDataFile_PackageRecord_PinRecord_ElectricalType* value) { - return ::PROTOBUF_NAMESPACE_ID::internal::ParseNamedEnum( - EdaDataFile_PackageRecord_PinRecord_ElectricalType_descriptor(), name, value); +ODBDESIGN_EXPORT extern const uint32_t EdaDataFile_PackageRecord_PinRecord_ElectricalType_internal_data_[]; +constexpr EdaDataFile_PackageRecord_PinRecord_ElectricalType EdaDataFile_PackageRecord_PinRecord_ElectricalType_ElectricalType_MIN = static_cast(0); +constexpr EdaDataFile_PackageRecord_PinRecord_ElectricalType EdaDataFile_PackageRecord_PinRecord_ElectricalType_ElectricalType_MAX = static_cast(2); +constexpr int EdaDataFile_PackageRecord_PinRecord_ElectricalType_ElectricalType_ARRAYSIZE = 2 + 1; +ODBDESIGN_EXPORT const ::google::protobuf::EnumDescriptor* +EdaDataFile_PackageRecord_PinRecord_ElectricalType_descriptor(); +template +const std::string& EdaDataFile_PackageRecord_PinRecord_ElectricalType_Name(T value) { + static_assert(std::is_same::value || + std::is_integral::value, + "Incorrect type passed to ElectricalType_Name()."); + return EdaDataFile_PackageRecord_PinRecord_ElectricalType_Name(static_cast(value)); +} +template <> +inline const std::string& EdaDataFile_PackageRecord_PinRecord_ElectricalType_Name(EdaDataFile_PackageRecord_PinRecord_ElectricalType value) { + return ::google::protobuf::internal::NameOfDenseEnum( + static_cast(value)); +} +inline bool EdaDataFile_PackageRecord_PinRecord_ElectricalType_Parse(absl::string_view name, EdaDataFile_PackageRecord_PinRecord_ElectricalType* value) { + return ::google::protobuf::internal::ParseNamedEnum( + EdaDataFile_PackageRecord_PinRecord_ElectricalType_descriptor(), name, value); } enum EdaDataFile_PackageRecord_PinRecord_MountType : int { EdaDataFile_PackageRecord_PinRecord_MountType_Smt = 0, @@ -307,54 +359,514 @@ enum EdaDataFile_PackageRecord_PinRecord_MountType : int { EdaDataFile_PackageRecord_PinRecord_MountType_NonBoard = 5, EdaDataFile_PackageRecord_PinRecord_MountType_Hole = 6, EdaDataFile_PackageRecord_PinRecord_MountType_MT_Undefined = 7, - EdaDataFile_PackageRecord_PinRecord_MountType_EdaDataFile_PackageRecord_PinRecord_MountType_INT_MIN_SENTINEL_DO_NOT_USE_ = std::numeric_limits::min(), - EdaDataFile_PackageRecord_PinRecord_MountType_EdaDataFile_PackageRecord_PinRecord_MountType_INT_MAX_SENTINEL_DO_NOT_USE_ = std::numeric_limits::max() + EdaDataFile_PackageRecord_PinRecord_MountType_EdaDataFile_PackageRecord_PinRecord_MountType_INT_MIN_SENTINEL_DO_NOT_USE_ = + std::numeric_limits<::int32_t>::min(), + EdaDataFile_PackageRecord_PinRecord_MountType_EdaDataFile_PackageRecord_PinRecord_MountType_INT_MAX_SENTINEL_DO_NOT_USE_ = + std::numeric_limits<::int32_t>::max(), }; + ODBDESIGN_EXPORT bool EdaDataFile_PackageRecord_PinRecord_MountType_IsValid(int value); -constexpr EdaDataFile_PackageRecord_PinRecord_MountType EdaDataFile_PackageRecord_PinRecord_MountType_MountType_MIN = EdaDataFile_PackageRecord_PinRecord_MountType_Smt; -constexpr EdaDataFile_PackageRecord_PinRecord_MountType EdaDataFile_PackageRecord_PinRecord_MountType_MountType_MAX = EdaDataFile_PackageRecord_PinRecord_MountType_MT_Undefined; -constexpr int EdaDataFile_PackageRecord_PinRecord_MountType_MountType_ARRAYSIZE = EdaDataFile_PackageRecord_PinRecord_MountType_MountType_MAX + 1; - -ODBDESIGN_EXPORT const ::PROTOBUF_NAMESPACE_ID::EnumDescriptor* EdaDataFile_PackageRecord_PinRecord_MountType_descriptor(); -template -inline const std::string& EdaDataFile_PackageRecord_PinRecord_MountType_Name(T enum_t_value) { - static_assert(::std::is_same::value || - ::std::is_integral::value, - "Incorrect type passed to function EdaDataFile_PackageRecord_PinRecord_MountType_Name."); - return ::PROTOBUF_NAMESPACE_ID::internal::NameOfEnum( - EdaDataFile_PackageRecord_PinRecord_MountType_descriptor(), enum_t_value); -} -inline bool EdaDataFile_PackageRecord_PinRecord_MountType_Parse( - ::PROTOBUF_NAMESPACE_ID::ConstStringParam name, EdaDataFile_PackageRecord_PinRecord_MountType* value) { - return ::PROTOBUF_NAMESPACE_ID::internal::ParseNamedEnum( - EdaDataFile_PackageRecord_PinRecord_MountType_descriptor(), name, value); +ODBDESIGN_EXPORT extern const uint32_t EdaDataFile_PackageRecord_PinRecord_MountType_internal_data_[]; +constexpr EdaDataFile_PackageRecord_PinRecord_MountType EdaDataFile_PackageRecord_PinRecord_MountType_MountType_MIN = static_cast(0); +constexpr EdaDataFile_PackageRecord_PinRecord_MountType EdaDataFile_PackageRecord_PinRecord_MountType_MountType_MAX = static_cast(7); +constexpr int EdaDataFile_PackageRecord_PinRecord_MountType_MountType_ARRAYSIZE = 7 + 1; +ODBDESIGN_EXPORT const ::google::protobuf::EnumDescriptor* +EdaDataFile_PackageRecord_PinRecord_MountType_descriptor(); +template +const std::string& EdaDataFile_PackageRecord_PinRecord_MountType_Name(T value) { + static_assert(std::is_same::value || + std::is_integral::value, + "Incorrect type passed to MountType_Name()."); + return EdaDataFile_PackageRecord_PinRecord_MountType_Name(static_cast(value)); +} +template <> +inline const std::string& EdaDataFile_PackageRecord_PinRecord_MountType_Name(EdaDataFile_PackageRecord_PinRecord_MountType value) { + return ::google::protobuf::internal::NameOfDenseEnum( + static_cast(value)); +} +inline bool EdaDataFile_PackageRecord_PinRecord_MountType_Parse(absl::string_view name, EdaDataFile_PackageRecord_PinRecord_MountType* value) { + return ::google::protobuf::internal::ParseNamedEnum( + EdaDataFile_PackageRecord_PinRecord_MountType_descriptor(), name, value); } + // =================================================================== -class ODBDESIGN_EXPORT EdaDataFile_FeatureIdRecord final : - public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:Odb.Lib.Protobuf.EdaDataFile.FeatureIdRecord) */ { + +// ------------------------------------------------------------------- + +class ODBDESIGN_EXPORT EdaDataFile_PackageRecord_PinRecord final : public ::google::protobuf::Message +/* @@protoc_insertion_point(class_definition:Odb.Lib.Protobuf.EdaDataFile.PackageRecord.PinRecord) */ { public: - inline EdaDataFile_FeatureIdRecord() : EdaDataFile_FeatureIdRecord(nullptr) {} - ~EdaDataFile_FeatureIdRecord() override; - explicit PROTOBUF_CONSTEXPR EdaDataFile_FeatureIdRecord(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); + inline EdaDataFile_PackageRecord_PinRecord() : EdaDataFile_PackageRecord_PinRecord(nullptr) {} + ~EdaDataFile_PackageRecord_PinRecord() PROTOBUF_FINAL; + +#if defined(PROTOBUF_CUSTOM_VTABLE) + void operator delete(EdaDataFile_PackageRecord_PinRecord* msg, std::destroying_delete_t) { + SharedDtor(*msg); + ::google::protobuf::internal::SizedDelete(msg, sizeof(EdaDataFile_PackageRecord_PinRecord)); + } +#endif + + template + explicit PROTOBUF_CONSTEXPR EdaDataFile_PackageRecord_PinRecord( + ::google::protobuf::internal::ConstantInitialized); + + inline EdaDataFile_PackageRecord_PinRecord(const EdaDataFile_PackageRecord_PinRecord& from) : EdaDataFile_PackageRecord_PinRecord(nullptr, from) {} + inline EdaDataFile_PackageRecord_PinRecord(EdaDataFile_PackageRecord_PinRecord&& from) noexcept + : EdaDataFile_PackageRecord_PinRecord(nullptr, std::move(from)) {} + inline EdaDataFile_PackageRecord_PinRecord& operator=(const EdaDataFile_PackageRecord_PinRecord& from) { + CopyFrom(from); + return *this; + } + inline EdaDataFile_PackageRecord_PinRecord& operator=(EdaDataFile_PackageRecord_PinRecord&& from) noexcept { + if (this == &from) return *this; + if (::google::protobuf::internal::CanMoveWithInternalSwap(GetArena(), from.GetArena())) { + InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } + + inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const + ABSL_ATTRIBUTE_LIFETIME_BOUND { + return _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance); + } + inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() + ABSL_ATTRIBUTE_LIFETIME_BOUND { + return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); + } + + static const ::google::protobuf::Descriptor* descriptor() { + return GetDescriptor(); + } + static const ::google::protobuf::Descriptor* GetDescriptor() { + return default_instance().GetMetadata().descriptor; + } + static const ::google::protobuf::Reflection* GetReflection() { + return default_instance().GetMetadata().reflection; + } + static const EdaDataFile_PackageRecord_PinRecord& default_instance() { + return *internal_default_instance(); + } + static inline const EdaDataFile_PackageRecord_PinRecord* internal_default_instance() { + return reinterpret_cast( + &_EdaDataFile_PackageRecord_PinRecord_default_instance_); + } + static constexpr int kIndexInFileMessages = 7; + friend void swap(EdaDataFile_PackageRecord_PinRecord& a, EdaDataFile_PackageRecord_PinRecord& b) { a.Swap(&b); } + inline void Swap(EdaDataFile_PackageRecord_PinRecord* other) { + if (other == this) return; + if (::google::protobuf::internal::CanUseInternalSwap(GetArena(), other->GetArena())) { + InternalSwap(other); + } else { + ::google::protobuf::internal::GenericSwap(this, other); + } + } + void UnsafeArenaSwap(EdaDataFile_PackageRecord_PinRecord* other) { + if (other == this) return; + ABSL_DCHECK(GetArena() == other->GetArena()); + InternalSwap(other); + } + + // implements Message ---------------------------------------------- + + EdaDataFile_PackageRecord_PinRecord* New(::google::protobuf::Arena* arena = nullptr) const { + return ::google::protobuf::Message::DefaultConstruct(arena); + } + using ::google::protobuf::Message::CopyFrom; + void CopyFrom(const EdaDataFile_PackageRecord_PinRecord& from); + using ::google::protobuf::Message::MergeFrom; + void MergeFrom(const EdaDataFile_PackageRecord_PinRecord& from) { EdaDataFile_PackageRecord_PinRecord::MergeImpl(*this, from); } + + private: + static void MergeImpl( + ::google::protobuf::MessageLite& to_msg, + const ::google::protobuf::MessageLite& from_msg); - EdaDataFile_FeatureIdRecord(const EdaDataFile_FeatureIdRecord& from); - EdaDataFile_FeatureIdRecord(EdaDataFile_FeatureIdRecord&& from) noexcept - : EdaDataFile_FeatureIdRecord() { + public: + bool IsInitialized() const { + return true; + } + ABSL_ATTRIBUTE_REINITIALIZES void Clear() PROTOBUF_FINAL; + #if defined(PROTOBUF_CUSTOM_VTABLE) + private: + static ::size_t ByteSizeLong(const ::google::protobuf::MessageLite& msg); + static ::uint8_t* _InternalSerialize( + const MessageLite& msg, ::uint8_t* target, + ::google::protobuf::io::EpsCopyOutputStream* stream); + + public: + ::size_t ByteSizeLong() const { return ByteSizeLong(*this); } + ::uint8_t* _InternalSerialize( + ::uint8_t* target, + ::google::protobuf::io::EpsCopyOutputStream* stream) const { + return _InternalSerialize(*this, target, stream); + } + #else // PROTOBUF_CUSTOM_VTABLE + ::size_t ByteSizeLong() const final; + ::uint8_t* _InternalSerialize( + ::uint8_t* target, + ::google::protobuf::io::EpsCopyOutputStream* stream) const final; + #endif // PROTOBUF_CUSTOM_VTABLE + int GetCachedSize() const { return _impl_._cached_size_.Get(); } + + private: + void SharedCtor(::google::protobuf::Arena* arena); + static void SharedDtor(MessageLite& self); + void InternalSwap(EdaDataFile_PackageRecord_PinRecord* other); + private: + template + friend ::absl::string_view( + ::google::protobuf::internal::GetAnyMessageName)(); + static ::absl::string_view FullMessageName() { return "Odb.Lib.Protobuf.EdaDataFile.PackageRecord.PinRecord"; } + + protected: + explicit EdaDataFile_PackageRecord_PinRecord(::google::protobuf::Arena* arena); + EdaDataFile_PackageRecord_PinRecord(::google::protobuf::Arena* arena, const EdaDataFile_PackageRecord_PinRecord& from); + EdaDataFile_PackageRecord_PinRecord(::google::protobuf::Arena* arena, EdaDataFile_PackageRecord_PinRecord&& from) noexcept + : EdaDataFile_PackageRecord_PinRecord(arena) { *this = ::std::move(from); } + const ::google::protobuf::internal::ClassData* GetClassData() const PROTOBUF_FINAL; + static void* PlacementNew_(const void*, void* mem, + ::google::protobuf::Arena* arena); + static constexpr auto InternalNewImpl_(); + static const ::google::protobuf::internal::ClassDataFull _class_data_; + + public: + ::google::protobuf::Metadata GetMetadata() const; + // nested types ---------------------------------------------------- + using Type = EdaDataFile_PackageRecord_PinRecord_Type; + static constexpr Type ThroughHole = EdaDataFile_PackageRecord_PinRecord_Type_ThroughHole; + static constexpr Type Blind = EdaDataFile_PackageRecord_PinRecord_Type_Blind; + static constexpr Type Surface = EdaDataFile_PackageRecord_PinRecord_Type_Surface; + static inline bool Type_IsValid(int value) { + return EdaDataFile_PackageRecord_PinRecord_Type_IsValid(value); + } + static constexpr Type Type_MIN = EdaDataFile_PackageRecord_PinRecord_Type_Type_MIN; + static constexpr Type Type_MAX = EdaDataFile_PackageRecord_PinRecord_Type_Type_MAX; + static constexpr int Type_ARRAYSIZE = EdaDataFile_PackageRecord_PinRecord_Type_Type_ARRAYSIZE; + static inline const ::google::protobuf::EnumDescriptor* Type_descriptor() { + return EdaDataFile_PackageRecord_PinRecord_Type_descriptor(); + } + template + static inline const std::string& Type_Name(T value) { + return EdaDataFile_PackageRecord_PinRecord_Type_Name(value); + } + static inline bool Type_Parse(absl::string_view name, Type* value) { + return EdaDataFile_PackageRecord_PinRecord_Type_Parse(name, value); + } + using ElectricalType = EdaDataFile_PackageRecord_PinRecord_ElectricalType; + static constexpr ElectricalType Electrical = EdaDataFile_PackageRecord_PinRecord_ElectricalType_Electrical; + static constexpr ElectricalType NonElectrical = EdaDataFile_PackageRecord_PinRecord_ElectricalType_NonElectrical; + static constexpr ElectricalType Undefined = EdaDataFile_PackageRecord_PinRecord_ElectricalType_Undefined; + static inline bool ElectricalType_IsValid(int value) { + return EdaDataFile_PackageRecord_PinRecord_ElectricalType_IsValid(value); + } + static constexpr ElectricalType ElectricalType_MIN = EdaDataFile_PackageRecord_PinRecord_ElectricalType_ElectricalType_MIN; + static constexpr ElectricalType ElectricalType_MAX = EdaDataFile_PackageRecord_PinRecord_ElectricalType_ElectricalType_MAX; + static constexpr int ElectricalType_ARRAYSIZE = EdaDataFile_PackageRecord_PinRecord_ElectricalType_ElectricalType_ARRAYSIZE; + static inline const ::google::protobuf::EnumDescriptor* ElectricalType_descriptor() { + return EdaDataFile_PackageRecord_PinRecord_ElectricalType_descriptor(); + } + template + static inline const std::string& ElectricalType_Name(T value) { + return EdaDataFile_PackageRecord_PinRecord_ElectricalType_Name(value); + } + static inline bool ElectricalType_Parse(absl::string_view name, ElectricalType* value) { + return EdaDataFile_PackageRecord_PinRecord_ElectricalType_Parse(name, value); + } + using MountType = EdaDataFile_PackageRecord_PinRecord_MountType; + static constexpr MountType Smt = EdaDataFile_PackageRecord_PinRecord_MountType_Smt; + static constexpr MountType RecommendedSmtPad = EdaDataFile_PackageRecord_PinRecord_MountType_RecommendedSmtPad; + static constexpr MountType MT_ThroughHole = EdaDataFile_PackageRecord_PinRecord_MountType_MT_ThroughHole; + static constexpr MountType RecommendedThroughHole = EdaDataFile_PackageRecord_PinRecord_MountType_RecommendedThroughHole; + static constexpr MountType PressFit = EdaDataFile_PackageRecord_PinRecord_MountType_PressFit; + static constexpr MountType NonBoard = EdaDataFile_PackageRecord_PinRecord_MountType_NonBoard; + static constexpr MountType Hole = EdaDataFile_PackageRecord_PinRecord_MountType_Hole; + static constexpr MountType MT_Undefined = EdaDataFile_PackageRecord_PinRecord_MountType_MT_Undefined; + static inline bool MountType_IsValid(int value) { + return EdaDataFile_PackageRecord_PinRecord_MountType_IsValid(value); + } + static constexpr MountType MountType_MIN = EdaDataFile_PackageRecord_PinRecord_MountType_MountType_MIN; + static constexpr MountType MountType_MAX = EdaDataFile_PackageRecord_PinRecord_MountType_MountType_MAX; + static constexpr int MountType_ARRAYSIZE = EdaDataFile_PackageRecord_PinRecord_MountType_MountType_ARRAYSIZE; + static inline const ::google::protobuf::EnumDescriptor* MountType_descriptor() { + return EdaDataFile_PackageRecord_PinRecord_MountType_descriptor(); + } + template + static inline const std::string& MountType_Name(T value) { + return EdaDataFile_PackageRecord_PinRecord_MountType_Name(value); + } + static inline bool MountType_Parse(absl::string_view name, MountType* value) { + return EdaDataFile_PackageRecord_PinRecord_MountType_Parse(name, value); + } + + // accessors ------------------------------------------------------- + enum : int { + kNameFieldNumber = 1, + kTypeFieldNumber = 2, + kXCenterFieldNumber = 3, + kYCenterFieldNumber = 4, + kFinishedHoleSizeFieldNumber = 5, + kElectricalTypeFieldNumber = 6, + kMountTypeFieldNumber = 7, + kIdFieldNumber = 8, + kIndexFieldNumber = 9, + }; + // optional string name = 1; + bool has_name() const; + void clear_name() ; + const std::string& name() const; + template + void set_name(Arg_&& arg, Args_... args); + std::string* mutable_name(); + PROTOBUF_NODISCARD std::string* release_name(); + void set_allocated_name(std::string* value); + + private: + const std::string& _internal_name() const; + inline PROTOBUF_ALWAYS_INLINE void _internal_set_name( + const std::string& value); + std::string* _internal_mutable_name(); + + public: + // optional .Odb.Lib.Protobuf.EdaDataFile.PackageRecord.PinRecord.Type type = 2; + bool has_type() const; + void clear_type() ; + ::Odb::Lib::Protobuf::EdaDataFile_PackageRecord_PinRecord_Type type() const; + void set_type(::Odb::Lib::Protobuf::EdaDataFile_PackageRecord_PinRecord_Type value); + + private: + ::Odb::Lib::Protobuf::EdaDataFile_PackageRecord_PinRecord_Type _internal_type() const; + void _internal_set_type(::Odb::Lib::Protobuf::EdaDataFile_PackageRecord_PinRecord_Type value); + + public: + // optional float xCenter = 3; + bool has_xcenter() const; + void clear_xcenter() ; + float xcenter() const; + void set_xcenter(float value); + + private: + float _internal_xcenter() const; + void _internal_set_xcenter(float value); + + public: + // optional float yCenter = 4; + bool has_ycenter() const; + void clear_ycenter() ; + float ycenter() const; + void set_ycenter(float value); + + private: + float _internal_ycenter() const; + void _internal_set_ycenter(float value); + + public: + // optional float finishedHoleSize = 5; + bool has_finishedholesize() const; + void clear_finishedholesize() ; + float finishedholesize() const; + void set_finishedholesize(float value); + + private: + float _internal_finishedholesize() const; + void _internal_set_finishedholesize(float value); + + public: + // optional .Odb.Lib.Protobuf.EdaDataFile.PackageRecord.PinRecord.ElectricalType electricalType = 6; + bool has_electricaltype() const; + void clear_electricaltype() ; + ::Odb::Lib::Protobuf::EdaDataFile_PackageRecord_PinRecord_ElectricalType electricaltype() const; + void set_electricaltype(::Odb::Lib::Protobuf::EdaDataFile_PackageRecord_PinRecord_ElectricalType value); + + private: + ::Odb::Lib::Protobuf::EdaDataFile_PackageRecord_PinRecord_ElectricalType _internal_electricaltype() const; + void _internal_set_electricaltype(::Odb::Lib::Protobuf::EdaDataFile_PackageRecord_PinRecord_ElectricalType value); + + public: + // optional .Odb.Lib.Protobuf.EdaDataFile.PackageRecord.PinRecord.MountType mountType = 7; + bool has_mounttype() const; + void clear_mounttype() ; + ::Odb::Lib::Protobuf::EdaDataFile_PackageRecord_PinRecord_MountType mounttype() const; + void set_mounttype(::Odb::Lib::Protobuf::EdaDataFile_PackageRecord_PinRecord_MountType value); + + private: + ::Odb::Lib::Protobuf::EdaDataFile_PackageRecord_PinRecord_MountType _internal_mounttype() const; + void _internal_set_mounttype(::Odb::Lib::Protobuf::EdaDataFile_PackageRecord_PinRecord_MountType value); + + public: + // optional uint32 id = 8; + bool has_id() const; + void clear_id() ; + ::uint32_t id() const; + void set_id(::uint32_t value); + + private: + ::uint32_t _internal_id() const; + void _internal_set_id(::uint32_t value); + + public: + // optional uint32 index = 9; + bool has_index() const; + void clear_index() ; + ::uint32_t index() const; + void set_index(::uint32_t value); + + private: + ::uint32_t _internal_index() const; + void _internal_set_index(::uint32_t value); + + public: + // @@protoc_insertion_point(class_scope:Odb.Lib.Protobuf.EdaDataFile.PackageRecord.PinRecord) + private: + class _Internal; + friend class ::google::protobuf::internal::TcParser; + static const ::google::protobuf::internal::TcParseTable< + 4, 9, 0, + 73, 2> + _table_; + + friend class ::google::protobuf::MessageLite; + friend class ::google::protobuf::Arena; + template + friend class ::google::protobuf::Arena::InternalHelper; + using InternalArenaConstructable_ = void; + using DestructorSkippable_ = void; + struct Impl_ { + inline explicit constexpr Impl_( + ::google::protobuf::internal::ConstantInitialized) noexcept; + inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* arena); + inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* arena, const Impl_& from, + const EdaDataFile_PackageRecord_PinRecord& from_msg); + ::google::protobuf::internal::HasBits<1> _has_bits_; + ::google::protobuf::internal::CachedSize _cached_size_; + ::google::protobuf::internal::ArenaStringPtr name_; + int type_; + float xcenter_; + float ycenter_; + float finishedholesize_; + int electricaltype_; + int mounttype_; + ::uint32_t id_; + ::uint32_t index_; + PROTOBUF_TSAN_DECLARE_MEMBER + }; + union { Impl_ _impl_; }; + friend struct ::TableStruct_edadatafile_2eproto; +}; +// ------------------------------------------------------------------- + +class EdaDataFile_PackageRecord_AttributeLookupTableEntry_DoNotUse final + : public ::google::protobuf::internal::MapEntry< + std::string, std::string, + ::google::protobuf::internal::WireFormatLite::TYPE_STRING, + ::google::protobuf::internal::WireFormatLite::TYPE_STRING> { + public: + using SuperType = ::google::protobuf::internal::MapEntry< + std::string, std::string, + ::google::protobuf::internal::WireFormatLite::TYPE_STRING, + ::google::protobuf::internal::WireFormatLite::TYPE_STRING>; + EdaDataFile_PackageRecord_AttributeLookupTableEntry_DoNotUse(); + template + explicit PROTOBUF_CONSTEXPR EdaDataFile_PackageRecord_AttributeLookupTableEntry_DoNotUse( + ::google::protobuf::internal::ConstantInitialized); + explicit EdaDataFile_PackageRecord_AttributeLookupTableEntry_DoNotUse(::google::protobuf::Arena* arena); + static const EdaDataFile_PackageRecord_AttributeLookupTableEntry_DoNotUse* internal_default_instance() { + return reinterpret_cast( + &_EdaDataFile_PackageRecord_AttributeLookupTableEntry_DoNotUse_default_instance_); + } + + + private: + friend class ::google::protobuf::MessageLite; + friend struct ::TableStruct_edadatafile_2eproto; + + friend class ::google::protobuf::internal::TcParser; + static const ::google::protobuf::internal::TcParseTable< + 1, 2, 0, + 85, 2> + _table_; + + const ::google::protobuf::internal::ClassData* GetClassData() const PROTOBUF_FINAL; + static void* PlacementNew_(const void*, void* mem, + ::google::protobuf::Arena* arena); + static constexpr auto InternalNewImpl_(); + static const ::google::protobuf::internal::ClassDataFull _class_data_; +}; +// ------------------------------------------------------------------- + +class EdaDataFile_NetRecord_AttributeLookupTableEntry_DoNotUse final + : public ::google::protobuf::internal::MapEntry< + std::string, std::string, + ::google::protobuf::internal::WireFormatLite::TYPE_STRING, + ::google::protobuf::internal::WireFormatLite::TYPE_STRING> { + public: + using SuperType = ::google::protobuf::internal::MapEntry< + std::string, std::string, + ::google::protobuf::internal::WireFormatLite::TYPE_STRING, + ::google::protobuf::internal::WireFormatLite::TYPE_STRING>; + EdaDataFile_NetRecord_AttributeLookupTableEntry_DoNotUse(); + template + explicit PROTOBUF_CONSTEXPR EdaDataFile_NetRecord_AttributeLookupTableEntry_DoNotUse( + ::google::protobuf::internal::ConstantInitialized); + explicit EdaDataFile_NetRecord_AttributeLookupTableEntry_DoNotUse(::google::protobuf::Arena* arena); + static const EdaDataFile_NetRecord_AttributeLookupTableEntry_DoNotUse* internal_default_instance() { + return reinterpret_cast( + &_EdaDataFile_NetRecord_AttributeLookupTableEntry_DoNotUse_default_instance_); + } + + + private: + friend class ::google::protobuf::MessageLite; + friend struct ::TableStruct_edadatafile_2eproto; + + friend class ::google::protobuf::internal::TcParser; + static const ::google::protobuf::internal::TcParseTable< + 1, 2, 0, + 81, 2> + _table_; + + const ::google::protobuf::internal::ClassData* GetClassData() const PROTOBUF_FINAL; + static void* PlacementNew_(const void*, void* mem, + ::google::protobuf::Arena* arena); + static constexpr auto InternalNewImpl_(); + static const ::google::protobuf::internal::ClassDataFull _class_data_; +}; +// ------------------------------------------------------------------- +class ODBDESIGN_EXPORT EdaDataFile_FeatureIdRecord final : public ::google::protobuf::Message +/* @@protoc_insertion_point(class_definition:Odb.Lib.Protobuf.EdaDataFile.FeatureIdRecord) */ { + public: + inline EdaDataFile_FeatureIdRecord() : EdaDataFile_FeatureIdRecord(nullptr) {} + ~EdaDataFile_FeatureIdRecord() PROTOBUF_FINAL; + +#if defined(PROTOBUF_CUSTOM_VTABLE) + void operator delete(EdaDataFile_FeatureIdRecord* msg, std::destroying_delete_t) { + SharedDtor(*msg); + ::google::protobuf::internal::SizedDelete(msg, sizeof(EdaDataFile_FeatureIdRecord)); + } +#endif + + template + explicit PROTOBUF_CONSTEXPR EdaDataFile_FeatureIdRecord( + ::google::protobuf::internal::ConstantInitialized); + + inline EdaDataFile_FeatureIdRecord(const EdaDataFile_FeatureIdRecord& from) : EdaDataFile_FeatureIdRecord(nullptr, from) {} + inline EdaDataFile_FeatureIdRecord(EdaDataFile_FeatureIdRecord&& from) noexcept + : EdaDataFile_FeatureIdRecord(nullptr, std::move(from)) {} inline EdaDataFile_FeatureIdRecord& operator=(const EdaDataFile_FeatureIdRecord& from) { CopyFrom(from); return *this; } inline EdaDataFile_FeatureIdRecord& operator=(EdaDataFile_FeatureIdRecord&& from) noexcept { if (this == &from) return *this; - if (GetOwningArena() == from.GetOwningArena() - #ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetOwningArena() != nullptr - #endif // !PROTOBUF_FORCE_COPY_IN_MOVE - ) { + if (::google::protobuf::internal::CanMoveWithInternalSwap(GetArena(), from.GetArena())) { InternalSwap(&from); } else { CopyFrom(from); @@ -362,13 +874,22 @@ class ODBDESIGN_EXPORT EdaDataFile_FeatureIdRecord final : return *this; } - static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { + inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const + ABSL_ATTRIBUTE_LIFETIME_BOUND { + return _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance); + } + inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() + ABSL_ATTRIBUTE_LIFETIME_BOUND { + return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); + } + + static const ::google::protobuf::Descriptor* descriptor() { return GetDescriptor(); } - static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { + static const ::google::protobuf::Descriptor* GetDescriptor() { return default_instance().GetMetadata().descriptor; } - static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { + static const ::google::protobuf::Reflection* GetReflection() { return default_instance().GetMetadata().reflection; } static const EdaDataFile_FeatureIdRecord& default_instance() { @@ -376,113 +897,114 @@ class ODBDESIGN_EXPORT EdaDataFile_FeatureIdRecord final : } static inline const EdaDataFile_FeatureIdRecord* internal_default_instance() { return reinterpret_cast( - &_EdaDataFile_FeatureIdRecord_default_instance_); - } - static constexpr int kIndexInFileMessages = - 0; - - friend void swap(EdaDataFile_FeatureIdRecord& a, EdaDataFile_FeatureIdRecord& b) { - a.Swap(&b); + &_EdaDataFile_FeatureIdRecord_default_instance_); } + static constexpr int kIndexInFileMessages = 0; + friend void swap(EdaDataFile_FeatureIdRecord& a, EdaDataFile_FeatureIdRecord& b) { a.Swap(&b); } inline void Swap(EdaDataFile_FeatureIdRecord* other) { if (other == this) return; - #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetOwningArena() != nullptr && - GetOwningArena() == other->GetOwningArena()) { - #else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetOwningArena() == other->GetOwningArena()) { - #endif // !PROTOBUF_FORCE_COPY_IN_SWAP + if (::google::protobuf::internal::CanUseInternalSwap(GetArena(), other->GetArena())) { InternalSwap(other); } else { - ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); + ::google::protobuf::internal::GenericSwap(this, other); } } void UnsafeArenaSwap(EdaDataFile_FeatureIdRecord* other) { if (other == this) return; - GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); + ABSL_DCHECK(GetArena() == other->GetArena()); InternalSwap(other); } // implements Message ---------------------------------------------- - EdaDataFile_FeatureIdRecord* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); + EdaDataFile_FeatureIdRecord* New(::google::protobuf::Arena* arena = nullptr) const { + return ::google::protobuf::Message::DefaultConstruct(arena); } - using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; + using ::google::protobuf::Message::CopyFrom; void CopyFrom(const EdaDataFile_FeatureIdRecord& from); - using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; - void MergeFrom( const EdaDataFile_FeatureIdRecord& from) { - EdaDataFile_FeatureIdRecord::MergeImpl(*this, from); - } + using ::google::protobuf::Message::MergeFrom; + void MergeFrom(const EdaDataFile_FeatureIdRecord& from) { EdaDataFile_FeatureIdRecord::MergeImpl(*this, from); } + private: - static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg); + static void MergeImpl( + ::google::protobuf::MessageLite& to_msg, + const ::google::protobuf::MessageLite& from_msg); + public: - PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; - bool IsInitialized() const final; + bool IsInitialized() const { + return true; + } + ABSL_ATTRIBUTE_REINITIALIZES void Clear() PROTOBUF_FINAL; + #if defined(PROTOBUF_CUSTOM_VTABLE) + private: + static ::size_t ByteSizeLong(const ::google::protobuf::MessageLite& msg); + static ::uint8_t* _InternalSerialize( + const MessageLite& msg, ::uint8_t* target, + ::google::protobuf::io::EpsCopyOutputStream* stream); - size_t ByteSizeLong() const final; - const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final; - uint8_t* _InternalSerialize( - uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const final { return _impl_._cached_size_.Get(); } + public: + ::size_t ByteSizeLong() const { return ByteSizeLong(*this); } + ::uint8_t* _InternalSerialize( + ::uint8_t* target, + ::google::protobuf::io::EpsCopyOutputStream* stream) const { + return _InternalSerialize(*this, target, stream); + } + #else // PROTOBUF_CUSTOM_VTABLE + ::size_t ByteSizeLong() const final; + ::uint8_t* _InternalSerialize( + ::uint8_t* target, + ::google::protobuf::io::EpsCopyOutputStream* stream) const final; + #endif // PROTOBUF_CUSTOM_VTABLE + int GetCachedSize() const { return _impl_._cached_size_.Get(); } private: - void SharedCtor(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned); - void SharedDtor(); - void SetCachedSize(int size) const final; + void SharedCtor(::google::protobuf::Arena* arena); + static void SharedDtor(MessageLite& self); void InternalSwap(EdaDataFile_FeatureIdRecord* other); - - private: - friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; - static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { - return "Odb.Lib.Protobuf.EdaDataFile.FeatureIdRecord"; + private: + template + friend ::absl::string_view( + ::google::protobuf::internal::GetAnyMessageName)(); + static ::absl::string_view FullMessageName() { return "Odb.Lib.Protobuf.EdaDataFile.FeatureIdRecord"; } + + protected: + explicit EdaDataFile_FeatureIdRecord(::google::protobuf::Arena* arena); + EdaDataFile_FeatureIdRecord(::google::protobuf::Arena* arena, const EdaDataFile_FeatureIdRecord& from); + EdaDataFile_FeatureIdRecord(::google::protobuf::Arena* arena, EdaDataFile_FeatureIdRecord&& from) noexcept + : EdaDataFile_FeatureIdRecord(arena) { + *this = ::std::move(from); } - protected: - explicit EdaDataFile_FeatureIdRecord(::PROTOBUF_NAMESPACE_ID::Arena* arena, - bool is_message_owned = false); - public: - - static const ClassData _class_data_; - const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final; - - ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; + const ::google::protobuf::internal::ClassData* GetClassData() const PROTOBUF_FINAL; + static void* PlacementNew_(const void*, void* mem, + ::google::protobuf::Arena* arena); + static constexpr auto InternalNewImpl_(); + static const ::google::protobuf::internal::ClassDataFull _class_data_; + public: + ::google::protobuf::Metadata GetMetadata() const; // nested types ---------------------------------------------------- - - typedef EdaDataFile_FeatureIdRecord_Type Type; - static constexpr Type COPPER = - EdaDataFile_FeatureIdRecord_Type_COPPER; - static constexpr Type LAMINATE = - EdaDataFile_FeatureIdRecord_Type_LAMINATE; - static constexpr Type HOLE = - EdaDataFile_FeatureIdRecord_Type_HOLE; + using Type = EdaDataFile_FeatureIdRecord_Type; + static constexpr Type COPPER = EdaDataFile_FeatureIdRecord_Type_COPPER; + static constexpr Type LAMINATE = EdaDataFile_FeatureIdRecord_Type_LAMINATE; + static constexpr Type HOLE = EdaDataFile_FeatureIdRecord_Type_HOLE; static inline bool Type_IsValid(int value) { return EdaDataFile_FeatureIdRecord_Type_IsValid(value); } - static constexpr Type Type_MIN = - EdaDataFile_FeatureIdRecord_Type_Type_MIN; - static constexpr Type Type_MAX = - EdaDataFile_FeatureIdRecord_Type_Type_MAX; - static constexpr int Type_ARRAYSIZE = - EdaDataFile_FeatureIdRecord_Type_Type_ARRAYSIZE; - static inline const ::PROTOBUF_NAMESPACE_ID::EnumDescriptor* - Type_descriptor() { + static constexpr Type Type_MIN = EdaDataFile_FeatureIdRecord_Type_Type_MIN; + static constexpr Type Type_MAX = EdaDataFile_FeatureIdRecord_Type_Type_MAX; + static constexpr int Type_ARRAYSIZE = EdaDataFile_FeatureIdRecord_Type_Type_ARRAYSIZE; + static inline const ::google::protobuf::EnumDescriptor* Type_descriptor() { return EdaDataFile_FeatureIdRecord_Type_descriptor(); } - template - static inline const std::string& Type_Name(T enum_t_value) { - static_assert(::std::is_same::value || - ::std::is_integral::value, - "Incorrect type passed to function Type_Name."); - return EdaDataFile_FeatureIdRecord_Type_Name(enum_t_value); + template + static inline const std::string& Type_Name(T value) { + return EdaDataFile_FeatureIdRecord_Type_Name(value); } - static inline bool Type_Parse(::PROTOBUF_NAMESPACE_ID::ConstStringParam name, - Type* value) { + static inline bool Type_Parse(absl::string_view name, Type* value) { return EdaDataFile_FeatureIdRecord_Type_Parse(name, value); } // accessors ------------------------------------------------------- - enum : int { kTypeFieldNumber = 1, kLayerNumberFieldNumber = 2, @@ -490,86 +1012,138 @@ class ODBDESIGN_EXPORT EdaDataFile_FeatureIdRecord final : }; // optional .Odb.Lib.Protobuf.EdaDataFile.FeatureIdRecord.Type type = 1; bool has_type() const; - private: - bool _internal_has_type() const; - public: - void clear_type(); + void clear_type() ; ::Odb::Lib::Protobuf::EdaDataFile_FeatureIdRecord_Type type() const; void set_type(::Odb::Lib::Protobuf::EdaDataFile_FeatureIdRecord_Type value); + private: ::Odb::Lib::Protobuf::EdaDataFile_FeatureIdRecord_Type _internal_type() const; void _internal_set_type(::Odb::Lib::Protobuf::EdaDataFile_FeatureIdRecord_Type value); - public: + public: // optional uint32 layerNumber = 2; bool has_layernumber() const; + void clear_layernumber() ; + ::uint32_t layernumber() const; + void set_layernumber(::uint32_t value); + private: - bool _internal_has_layernumber() const; - public: - void clear_layernumber(); - uint32_t layernumber() const; - void set_layernumber(uint32_t value); - private: - uint32_t _internal_layernumber() const; - void _internal_set_layernumber(uint32_t value); - public: + ::uint32_t _internal_layernumber() const; + void _internal_set_layernumber(::uint32_t value); + public: // optional uint32 featureNumber = 3; bool has_featurenumber() const; + void clear_featurenumber() ; + ::uint32_t featurenumber() const; + void set_featurenumber(::uint32_t value); + private: - bool _internal_has_featurenumber() const; - public: - void clear_featurenumber(); - uint32_t featurenumber() const; - void set_featurenumber(uint32_t value); - private: - uint32_t _internal_featurenumber() const; - void _internal_set_featurenumber(uint32_t value); - public: + ::uint32_t _internal_featurenumber() const; + void _internal_set_featurenumber(::uint32_t value); + public: // @@protoc_insertion_point(class_scope:Odb.Lib.Protobuf.EdaDataFile.FeatureIdRecord) private: class _Internal; - - template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; - typedef void InternalArenaConstructable_; - typedef void DestructorSkippable_; + friend class ::google::protobuf::internal::TcParser; + static const ::google::protobuf::internal::TcParseTable< + 2, 3, 0, + 0, 2> + _table_; + + friend class ::google::protobuf::MessageLite; + friend class ::google::protobuf::Arena; + template + friend class ::google::protobuf::Arena::InternalHelper; + using InternalArenaConstructable_ = void; + using DestructorSkippable_ = void; struct Impl_ { - ::PROTOBUF_NAMESPACE_ID::internal::HasBits<1> _has_bits_; - mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; + inline explicit constexpr Impl_( + ::google::protobuf::internal::ConstantInitialized) noexcept; + inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* arena); + inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* arena, const Impl_& from, + const EdaDataFile_FeatureIdRecord& from_msg); + ::google::protobuf::internal::HasBits<1> _has_bits_; + ::google::protobuf::internal::CachedSize _cached_size_; int type_; - uint32_t layernumber_; - uint32_t featurenumber_; + ::uint32_t layernumber_; + ::uint32_t featurenumber_; + PROTOBUF_TSAN_DECLARE_MEMBER }; union { Impl_ _impl_; }; friend struct ::TableStruct_edadatafile_2eproto; }; // ------------------------------------------------------------------- -class ODBDESIGN_EXPORT EdaDataFile_NetRecord_SubnetRecord final : - public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:Odb.Lib.Protobuf.EdaDataFile.NetRecord.SubnetRecord) */ { +class EdaDataFile_PackageRecord_PinRecordsByNameEntry_DoNotUse final + : public ::google::protobuf::internal::MapEntry< + std::string, ::google::protobuf::Message, + ::google::protobuf::internal::WireFormatLite::TYPE_STRING, + ::google::protobuf::internal::WireFormatLite::TYPE_MESSAGE> { + public: + using SuperType = ::google::protobuf::internal::MapEntry< + std::string, ::google::protobuf::Message, + ::google::protobuf::internal::WireFormatLite::TYPE_STRING, + ::google::protobuf::internal::WireFormatLite::TYPE_MESSAGE>; + EdaDataFile_PackageRecord_PinRecordsByNameEntry_DoNotUse(); + template + explicit PROTOBUF_CONSTEXPR EdaDataFile_PackageRecord_PinRecordsByNameEntry_DoNotUse( + ::google::protobuf::internal::ConstantInitialized); + explicit EdaDataFile_PackageRecord_PinRecordsByNameEntry_DoNotUse(::google::protobuf::Arena* arena); + static const EdaDataFile_PackageRecord_PinRecordsByNameEntry_DoNotUse* internal_default_instance() { + return reinterpret_cast( + &_EdaDataFile_PackageRecord_PinRecordsByNameEntry_DoNotUse_default_instance_); + } + + + private: + friend class ::google::protobuf::MessageLite; + friend struct ::TableStruct_edadatafile_2eproto; + + friend class ::google::protobuf::internal::TcParser; + static const ::google::protobuf::internal::TcParseTable< + 1, 2, 1, + 76, 2> + _table_; + + const ::google::protobuf::internal::ClassData* GetClassData() const PROTOBUF_FINAL; + static void* PlacementNew_(const void*, void* mem, + ::google::protobuf::Arena* arena); + static constexpr auto InternalNewImpl_(); + static const ::google::protobuf::internal::ClassDataFull _class_data_; +}; +// ------------------------------------------------------------------- + +class ODBDESIGN_EXPORT EdaDataFile_NetRecord_SubnetRecord final : public ::google::protobuf::Message +/* @@protoc_insertion_point(class_definition:Odb.Lib.Protobuf.EdaDataFile.NetRecord.SubnetRecord) */ { public: inline EdaDataFile_NetRecord_SubnetRecord() : EdaDataFile_NetRecord_SubnetRecord(nullptr) {} - ~EdaDataFile_NetRecord_SubnetRecord() override; - explicit PROTOBUF_CONSTEXPR EdaDataFile_NetRecord_SubnetRecord(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); + ~EdaDataFile_NetRecord_SubnetRecord() PROTOBUF_FINAL; - EdaDataFile_NetRecord_SubnetRecord(const EdaDataFile_NetRecord_SubnetRecord& from); - EdaDataFile_NetRecord_SubnetRecord(EdaDataFile_NetRecord_SubnetRecord&& from) noexcept - : EdaDataFile_NetRecord_SubnetRecord() { - *this = ::std::move(from); +#if defined(PROTOBUF_CUSTOM_VTABLE) + void operator delete(EdaDataFile_NetRecord_SubnetRecord* msg, std::destroying_delete_t) { + SharedDtor(*msg); + ::google::protobuf::internal::SizedDelete(msg, sizeof(EdaDataFile_NetRecord_SubnetRecord)); } +#endif + + template + explicit PROTOBUF_CONSTEXPR EdaDataFile_NetRecord_SubnetRecord( + ::google::protobuf::internal::ConstantInitialized); + inline EdaDataFile_NetRecord_SubnetRecord(const EdaDataFile_NetRecord_SubnetRecord& from) : EdaDataFile_NetRecord_SubnetRecord(nullptr, from) {} + inline EdaDataFile_NetRecord_SubnetRecord(EdaDataFile_NetRecord_SubnetRecord&& from) noexcept + : EdaDataFile_NetRecord_SubnetRecord(nullptr, std::move(from)) {} inline EdaDataFile_NetRecord_SubnetRecord& operator=(const EdaDataFile_NetRecord_SubnetRecord& from) { CopyFrom(from); return *this; } inline EdaDataFile_NetRecord_SubnetRecord& operator=(EdaDataFile_NetRecord_SubnetRecord&& from) noexcept { if (this == &from) return *this; - if (GetOwningArena() == from.GetOwningArena() - #ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetOwningArena() != nullptr - #endif // !PROTOBUF_FORCE_COPY_IN_MOVE - ) { + if (::google::protobuf::internal::CanMoveWithInternalSwap(GetArena(), from.GetArena())) { InternalSwap(&from); } else { CopyFrom(from); @@ -577,13 +1151,22 @@ class ODBDESIGN_EXPORT EdaDataFile_NetRecord_SubnetRecord final : return *this; } - static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { + inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const + ABSL_ATTRIBUTE_LIFETIME_BOUND { + return _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance); + } + inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() + ABSL_ATTRIBUTE_LIFETIME_BOUND { + return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); + } + + static const ::google::protobuf::Descriptor* descriptor() { return GetDescriptor(); } - static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { + static const ::google::protobuf::Descriptor* GetDescriptor() { return default_instance().GetMetadata().descriptor; } - static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { + static const ::google::protobuf::Reflection* GetReflection() { return default_instance().GetMetadata().reflection; } static const EdaDataFile_NetRecord_SubnetRecord& default_instance() { @@ -591,179 +1174,155 @@ class ODBDESIGN_EXPORT EdaDataFile_NetRecord_SubnetRecord final : } static inline const EdaDataFile_NetRecord_SubnetRecord* internal_default_instance() { return reinterpret_cast( - &_EdaDataFile_NetRecord_SubnetRecord_default_instance_); - } - static constexpr int kIndexInFileMessages = - 1; - - friend void swap(EdaDataFile_NetRecord_SubnetRecord& a, EdaDataFile_NetRecord_SubnetRecord& b) { - a.Swap(&b); + &_EdaDataFile_NetRecord_SubnetRecord_default_instance_); } + static constexpr int kIndexInFileMessages = 1; + friend void swap(EdaDataFile_NetRecord_SubnetRecord& a, EdaDataFile_NetRecord_SubnetRecord& b) { a.Swap(&b); } inline void Swap(EdaDataFile_NetRecord_SubnetRecord* other) { if (other == this) return; - #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetOwningArena() != nullptr && - GetOwningArena() == other->GetOwningArena()) { - #else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetOwningArena() == other->GetOwningArena()) { - #endif // !PROTOBUF_FORCE_COPY_IN_SWAP + if (::google::protobuf::internal::CanUseInternalSwap(GetArena(), other->GetArena())) { InternalSwap(other); } else { - ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); + ::google::protobuf::internal::GenericSwap(this, other); } } void UnsafeArenaSwap(EdaDataFile_NetRecord_SubnetRecord* other) { if (other == this) return; - GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); + ABSL_DCHECK(GetArena() == other->GetArena()); InternalSwap(other); } // implements Message ---------------------------------------------- - EdaDataFile_NetRecord_SubnetRecord* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); + EdaDataFile_NetRecord_SubnetRecord* New(::google::protobuf::Arena* arena = nullptr) const { + return ::google::protobuf::Message::DefaultConstruct(arena); } - using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; + using ::google::protobuf::Message::CopyFrom; void CopyFrom(const EdaDataFile_NetRecord_SubnetRecord& from); - using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; - void MergeFrom( const EdaDataFile_NetRecord_SubnetRecord& from) { - EdaDataFile_NetRecord_SubnetRecord::MergeImpl(*this, from); - } + using ::google::protobuf::Message::MergeFrom; + void MergeFrom(const EdaDataFile_NetRecord_SubnetRecord& from) { EdaDataFile_NetRecord_SubnetRecord::MergeImpl(*this, from); } + private: - static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg); + static void MergeImpl( + ::google::protobuf::MessageLite& to_msg, + const ::google::protobuf::MessageLite& from_msg); + public: - PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; - bool IsInitialized() const final; + bool IsInitialized() const { + return true; + } + ABSL_ATTRIBUTE_REINITIALIZES void Clear() PROTOBUF_FINAL; + #if defined(PROTOBUF_CUSTOM_VTABLE) + private: + static ::size_t ByteSizeLong(const ::google::protobuf::MessageLite& msg); + static ::uint8_t* _InternalSerialize( + const MessageLite& msg, ::uint8_t* target, + ::google::protobuf::io::EpsCopyOutputStream* stream); - size_t ByteSizeLong() const final; - const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final; - uint8_t* _InternalSerialize( - uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const final { return _impl_._cached_size_.Get(); } + public: + ::size_t ByteSizeLong() const { return ByteSizeLong(*this); } + ::uint8_t* _InternalSerialize( + ::uint8_t* target, + ::google::protobuf::io::EpsCopyOutputStream* stream) const { + return _InternalSerialize(*this, target, stream); + } + #else // PROTOBUF_CUSTOM_VTABLE + ::size_t ByteSizeLong() const final; + ::uint8_t* _InternalSerialize( + ::uint8_t* target, + ::google::protobuf::io::EpsCopyOutputStream* stream) const final; + #endif // PROTOBUF_CUSTOM_VTABLE + int GetCachedSize() const { return _impl_._cached_size_.Get(); } private: - void SharedCtor(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned); - void SharedDtor(); - void SetCachedSize(int size) const final; + void SharedCtor(::google::protobuf::Arena* arena); + static void SharedDtor(MessageLite& self); void InternalSwap(EdaDataFile_NetRecord_SubnetRecord* other); - - private: - friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; - static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { - return "Odb.Lib.Protobuf.EdaDataFile.NetRecord.SubnetRecord"; + private: + template + friend ::absl::string_view( + ::google::protobuf::internal::GetAnyMessageName)(); + static ::absl::string_view FullMessageName() { return "Odb.Lib.Protobuf.EdaDataFile.NetRecord.SubnetRecord"; } + + protected: + explicit EdaDataFile_NetRecord_SubnetRecord(::google::protobuf::Arena* arena); + EdaDataFile_NetRecord_SubnetRecord(::google::protobuf::Arena* arena, const EdaDataFile_NetRecord_SubnetRecord& from); + EdaDataFile_NetRecord_SubnetRecord(::google::protobuf::Arena* arena, EdaDataFile_NetRecord_SubnetRecord&& from) noexcept + : EdaDataFile_NetRecord_SubnetRecord(arena) { + *this = ::std::move(from); } - protected: - explicit EdaDataFile_NetRecord_SubnetRecord(::PROTOBUF_NAMESPACE_ID::Arena* arena, - bool is_message_owned = false); - public: - - static const ClassData _class_data_; - const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final; - - ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; + const ::google::protobuf::internal::ClassData* GetClassData() const PROTOBUF_FINAL; + static void* PlacementNew_(const void*, void* mem, + ::google::protobuf::Arena* arena); + static constexpr auto InternalNewImpl_(); + static const ::google::protobuf::internal::ClassDataFull _class_data_; + public: + ::google::protobuf::Metadata GetMetadata() const; // nested types ---------------------------------------------------- - - typedef EdaDataFile_NetRecord_SubnetRecord_Type Type; - static constexpr Type VIA = - EdaDataFile_NetRecord_SubnetRecord_Type_VIA; - static constexpr Type TRACE = - EdaDataFile_NetRecord_SubnetRecord_Type_TRACE; - static constexpr Type PLANE = - EdaDataFile_NetRecord_SubnetRecord_Type_PLANE; - static constexpr Type TOEPRINT = - EdaDataFile_NetRecord_SubnetRecord_Type_TOEPRINT; + using Type = EdaDataFile_NetRecord_SubnetRecord_Type; + static constexpr Type VIA = EdaDataFile_NetRecord_SubnetRecord_Type_VIA; + static constexpr Type TRACE = EdaDataFile_NetRecord_SubnetRecord_Type_TRACE; + static constexpr Type PLANE = EdaDataFile_NetRecord_SubnetRecord_Type_PLANE; + static constexpr Type TOEPRINT = EdaDataFile_NetRecord_SubnetRecord_Type_TOEPRINT; static inline bool Type_IsValid(int value) { return EdaDataFile_NetRecord_SubnetRecord_Type_IsValid(value); } - static constexpr Type Type_MIN = - EdaDataFile_NetRecord_SubnetRecord_Type_Type_MIN; - static constexpr Type Type_MAX = - EdaDataFile_NetRecord_SubnetRecord_Type_Type_MAX; - static constexpr int Type_ARRAYSIZE = - EdaDataFile_NetRecord_SubnetRecord_Type_Type_ARRAYSIZE; - static inline const ::PROTOBUF_NAMESPACE_ID::EnumDescriptor* - Type_descriptor() { + static constexpr Type Type_MIN = EdaDataFile_NetRecord_SubnetRecord_Type_Type_MIN; + static constexpr Type Type_MAX = EdaDataFile_NetRecord_SubnetRecord_Type_Type_MAX; + static constexpr int Type_ARRAYSIZE = EdaDataFile_NetRecord_SubnetRecord_Type_Type_ARRAYSIZE; + static inline const ::google::protobuf::EnumDescriptor* Type_descriptor() { return EdaDataFile_NetRecord_SubnetRecord_Type_descriptor(); } - template - static inline const std::string& Type_Name(T enum_t_value) { - static_assert(::std::is_same::value || - ::std::is_integral::value, - "Incorrect type passed to function Type_Name."); - return EdaDataFile_NetRecord_SubnetRecord_Type_Name(enum_t_value); + template + static inline const std::string& Type_Name(T value) { + return EdaDataFile_NetRecord_SubnetRecord_Type_Name(value); } - static inline bool Type_Parse(::PROTOBUF_NAMESPACE_ID::ConstStringParam name, - Type* value) { + static inline bool Type_Parse(absl::string_view name, Type* value) { return EdaDataFile_NetRecord_SubnetRecord_Type_Parse(name, value); } - - typedef EdaDataFile_NetRecord_SubnetRecord_FillType FillType; - static constexpr FillType SOLID = - EdaDataFile_NetRecord_SubnetRecord_FillType_SOLID; - static constexpr FillType OUTLINE = - EdaDataFile_NetRecord_SubnetRecord_FillType_OUTLINE; + using FillType = EdaDataFile_NetRecord_SubnetRecord_FillType; + static constexpr FillType SOLID = EdaDataFile_NetRecord_SubnetRecord_FillType_SOLID; + static constexpr FillType OUTLINE = EdaDataFile_NetRecord_SubnetRecord_FillType_OUTLINE; static inline bool FillType_IsValid(int value) { return EdaDataFile_NetRecord_SubnetRecord_FillType_IsValid(value); } - static constexpr FillType FillType_MIN = - EdaDataFile_NetRecord_SubnetRecord_FillType_FillType_MIN; - static constexpr FillType FillType_MAX = - EdaDataFile_NetRecord_SubnetRecord_FillType_FillType_MAX; - static constexpr int FillType_ARRAYSIZE = - EdaDataFile_NetRecord_SubnetRecord_FillType_FillType_ARRAYSIZE; - static inline const ::PROTOBUF_NAMESPACE_ID::EnumDescriptor* - FillType_descriptor() { + static constexpr FillType FillType_MIN = EdaDataFile_NetRecord_SubnetRecord_FillType_FillType_MIN; + static constexpr FillType FillType_MAX = EdaDataFile_NetRecord_SubnetRecord_FillType_FillType_MAX; + static constexpr int FillType_ARRAYSIZE = EdaDataFile_NetRecord_SubnetRecord_FillType_FillType_ARRAYSIZE; + static inline const ::google::protobuf::EnumDescriptor* FillType_descriptor() { return EdaDataFile_NetRecord_SubnetRecord_FillType_descriptor(); } - template - static inline const std::string& FillType_Name(T enum_t_value) { - static_assert(::std::is_same::value || - ::std::is_integral::value, - "Incorrect type passed to function FillType_Name."); - return EdaDataFile_NetRecord_SubnetRecord_FillType_Name(enum_t_value); + template + static inline const std::string& FillType_Name(T value) { + return EdaDataFile_NetRecord_SubnetRecord_FillType_Name(value); } - static inline bool FillType_Parse(::PROTOBUF_NAMESPACE_ID::ConstStringParam name, - FillType* value) { + static inline bool FillType_Parse(absl::string_view name, FillType* value) { return EdaDataFile_NetRecord_SubnetRecord_FillType_Parse(name, value); } - - typedef EdaDataFile_NetRecord_SubnetRecord_CutoutType CutoutType; - static constexpr CutoutType CIRCLE = - EdaDataFile_NetRecord_SubnetRecord_CutoutType_CIRCLE; - static constexpr CutoutType RECTANGLE = - EdaDataFile_NetRecord_SubnetRecord_CutoutType_RECTANGLE; - static constexpr CutoutType OCTAGON = - EdaDataFile_NetRecord_SubnetRecord_CutoutType_OCTAGON; - static constexpr CutoutType EXACT = - EdaDataFile_NetRecord_SubnetRecord_CutoutType_EXACT; + using CutoutType = EdaDataFile_NetRecord_SubnetRecord_CutoutType; + static constexpr CutoutType CIRCLE = EdaDataFile_NetRecord_SubnetRecord_CutoutType_CIRCLE; + static constexpr CutoutType RECTANGLE = EdaDataFile_NetRecord_SubnetRecord_CutoutType_RECTANGLE; + static constexpr CutoutType OCTAGON = EdaDataFile_NetRecord_SubnetRecord_CutoutType_OCTAGON; + static constexpr CutoutType EXACT = EdaDataFile_NetRecord_SubnetRecord_CutoutType_EXACT; static inline bool CutoutType_IsValid(int value) { return EdaDataFile_NetRecord_SubnetRecord_CutoutType_IsValid(value); } - static constexpr CutoutType CutoutType_MIN = - EdaDataFile_NetRecord_SubnetRecord_CutoutType_CutoutType_MIN; - static constexpr CutoutType CutoutType_MAX = - EdaDataFile_NetRecord_SubnetRecord_CutoutType_CutoutType_MAX; - static constexpr int CutoutType_ARRAYSIZE = - EdaDataFile_NetRecord_SubnetRecord_CutoutType_CutoutType_ARRAYSIZE; - static inline const ::PROTOBUF_NAMESPACE_ID::EnumDescriptor* - CutoutType_descriptor() { + static constexpr CutoutType CutoutType_MIN = EdaDataFile_NetRecord_SubnetRecord_CutoutType_CutoutType_MIN; + static constexpr CutoutType CutoutType_MAX = EdaDataFile_NetRecord_SubnetRecord_CutoutType_CutoutType_MAX; + static constexpr int CutoutType_ARRAYSIZE = EdaDataFile_NetRecord_SubnetRecord_CutoutType_CutoutType_ARRAYSIZE; + static inline const ::google::protobuf::EnumDescriptor* CutoutType_descriptor() { return EdaDataFile_NetRecord_SubnetRecord_CutoutType_descriptor(); } - template - static inline const std::string& CutoutType_Name(T enum_t_value) { - static_assert(::std::is_same::value || - ::std::is_integral::value, - "Incorrect type passed to function CutoutType_Name."); - return EdaDataFile_NetRecord_SubnetRecord_CutoutType_Name(enum_t_value); + template + static inline const std::string& CutoutType_Name(T value) { + return EdaDataFile_NetRecord_SubnetRecord_CutoutType_Name(value); } - static inline bool CutoutType_Parse(::PROTOBUF_NAMESPACE_ID::ConstStringParam name, - CutoutType* value) { + static inline bool CutoutType_Parse(absl::string_view name, CutoutType* value) { return EdaDataFile_NetRecord_SubnetRecord_CutoutType_Parse(name, value); } // accessors ------------------------------------------------------- - enum : int { kFeatureIdRecordsFieldNumber = 2, kTypeFieldNumber = 1, @@ -779,201 +1338,175 @@ class ODBDESIGN_EXPORT EdaDataFile_NetRecord_SubnetRecord final : int featureidrecords_size() const; private: int _internal_featureidrecords_size() const; + public: - void clear_featureidrecords(); + void clear_featureidrecords() ; ::Odb::Lib::Protobuf::EdaDataFile_FeatureIdRecord* mutable_featureidrecords(int index); - ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::Odb::Lib::Protobuf::EdaDataFile_FeatureIdRecord >* - mutable_featureidrecords(); + ::google::protobuf::RepeatedPtrField<::Odb::Lib::Protobuf::EdaDataFile_FeatureIdRecord>* mutable_featureidrecords(); + private: - const ::Odb::Lib::Protobuf::EdaDataFile_FeatureIdRecord& _internal_featureidrecords(int index) const; - ::Odb::Lib::Protobuf::EdaDataFile_FeatureIdRecord* _internal_add_featureidrecords(); + const ::google::protobuf::RepeatedPtrField<::Odb::Lib::Protobuf::EdaDataFile_FeatureIdRecord>& _internal_featureidrecords() const; + ::google::protobuf::RepeatedPtrField<::Odb::Lib::Protobuf::EdaDataFile_FeatureIdRecord>* _internal_mutable_featureidrecords(); public: const ::Odb::Lib::Protobuf::EdaDataFile_FeatureIdRecord& featureidrecords(int index) const; ::Odb::Lib::Protobuf::EdaDataFile_FeatureIdRecord* add_featureidrecords(); - const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::Odb::Lib::Protobuf::EdaDataFile_FeatureIdRecord >& - featureidrecords() const; - + const ::google::protobuf::RepeatedPtrField<::Odb::Lib::Protobuf::EdaDataFile_FeatureIdRecord>& featureidrecords() const; // optional .Odb.Lib.Protobuf.EdaDataFile.NetRecord.SubnetRecord.Type type = 1; bool has_type() const; - private: - bool _internal_has_type() const; - public: - void clear_type(); + void clear_type() ; ::Odb::Lib::Protobuf::EdaDataFile_NetRecord_SubnetRecord_Type type() const; void set_type(::Odb::Lib::Protobuf::EdaDataFile_NetRecord_SubnetRecord_Type value); + private: ::Odb::Lib::Protobuf::EdaDataFile_NetRecord_SubnetRecord_Type _internal_type() const; void _internal_set_type(::Odb::Lib::Protobuf::EdaDataFile_NetRecord_SubnetRecord_Type value); - public: + public: // optional .Odb.Lib.Protobuf.EdaDataFile.NetRecord.SubnetRecord.FillType fillType = 3; bool has_filltype() const; - private: - bool _internal_has_filltype() const; - public: - void clear_filltype(); + void clear_filltype() ; ::Odb::Lib::Protobuf::EdaDataFile_NetRecord_SubnetRecord_FillType filltype() const; void set_filltype(::Odb::Lib::Protobuf::EdaDataFile_NetRecord_SubnetRecord_FillType value); + private: ::Odb::Lib::Protobuf::EdaDataFile_NetRecord_SubnetRecord_FillType _internal_filltype() const; void _internal_set_filltype(::Odb::Lib::Protobuf::EdaDataFile_NetRecord_SubnetRecord_FillType value); - public: + public: // optional .Odb.Lib.Protobuf.EdaDataFile.NetRecord.SubnetRecord.CutoutType cutoutType = 4; bool has_cutouttype() const; - private: - bool _internal_has_cutouttype() const; - public: - void clear_cutouttype(); + void clear_cutouttype() ; ::Odb::Lib::Protobuf::EdaDataFile_NetRecord_SubnetRecord_CutoutType cutouttype() const; void set_cutouttype(::Odb::Lib::Protobuf::EdaDataFile_NetRecord_SubnetRecord_CutoutType value); + private: ::Odb::Lib::Protobuf::EdaDataFile_NetRecord_SubnetRecord_CutoutType _internal_cutouttype() const; void _internal_set_cutouttype(::Odb::Lib::Protobuf::EdaDataFile_NetRecord_SubnetRecord_CutoutType value); - public: + public: // optional float fillSize = 5; bool has_fillsize() const; - private: - bool _internal_has_fillsize() const; - public: - void clear_fillsize(); + void clear_fillsize() ; float fillsize() const; void set_fillsize(float value); + private: float _internal_fillsize() const; void _internal_set_fillsize(float value); - public: + public: // optional .Odb.Lib.Protobuf.BoardSide side = 6; bool has_side() const; - private: - bool _internal_has_side() const; - public: - void clear_side(); + void clear_side() ; ::Odb::Lib::Protobuf::BoardSide side() const; void set_side(::Odb::Lib::Protobuf::BoardSide value); + private: ::Odb::Lib::Protobuf::BoardSide _internal_side() const; void _internal_set_side(::Odb::Lib::Protobuf::BoardSide value); - public: + public: // optional uint32 componentNumber = 7; bool has_componentnumber() const; + void clear_componentnumber() ; + ::uint32_t componentnumber() const; + void set_componentnumber(::uint32_t value); + private: - bool _internal_has_componentnumber() const; - public: - void clear_componentnumber(); - uint32_t componentnumber() const; - void set_componentnumber(uint32_t value); - private: - uint32_t _internal_componentnumber() const; - void _internal_set_componentnumber(uint32_t value); - public: + ::uint32_t _internal_componentnumber() const; + void _internal_set_componentnumber(::uint32_t value); + public: // optional uint32 toeprintNumber = 8; bool has_toeprintnumber() const; + void clear_toeprintnumber() ; + ::uint32_t toeprintnumber() const; + void set_toeprintnumber(::uint32_t value); + private: - bool _internal_has_toeprintnumber() const; - public: - void clear_toeprintnumber(); - uint32_t toeprintnumber() const; - void set_toeprintnumber(uint32_t value); - private: - uint32_t _internal_toeprintnumber() const; - void _internal_set_toeprintnumber(uint32_t value); - public: + ::uint32_t _internal_toeprintnumber() const; + void _internal_set_toeprintnumber(::uint32_t value); + public: // optional uint32 index = 9; bool has_index() const; + void clear_index() ; + ::uint32_t index() const; + void set_index(::uint32_t value); + private: - bool _internal_has_index() const; - public: - void clear_index(); - uint32_t index() const; - void set_index(uint32_t value); - private: - uint32_t _internal_index() const; - void _internal_set_index(uint32_t value); - public: + ::uint32_t _internal_index() const; + void _internal_set_index(::uint32_t value); + public: // @@protoc_insertion_point(class_scope:Odb.Lib.Protobuf.EdaDataFile.NetRecord.SubnetRecord) private: class _Internal; - - template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; - typedef void InternalArenaConstructable_; - typedef void DestructorSkippable_; + friend class ::google::protobuf::internal::TcParser; + static const ::google::protobuf::internal::TcParseTable< + 4, 9, 1, + 0, 2> + _table_; + + friend class ::google::protobuf::MessageLite; + friend class ::google::protobuf::Arena; + template + friend class ::google::protobuf::Arena::InternalHelper; + using InternalArenaConstructable_ = void; + using DestructorSkippable_ = void; struct Impl_ { - ::PROTOBUF_NAMESPACE_ID::internal::HasBits<1> _has_bits_; - mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; - ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::Odb::Lib::Protobuf::EdaDataFile_FeatureIdRecord > featureidrecords_; + inline explicit constexpr Impl_( + ::google::protobuf::internal::ConstantInitialized) noexcept; + inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* arena); + inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* arena, const Impl_& from, + const EdaDataFile_NetRecord_SubnetRecord& from_msg); + ::google::protobuf::internal::HasBits<1> _has_bits_; + ::google::protobuf::internal::CachedSize _cached_size_; + ::google::protobuf::RepeatedPtrField< ::Odb::Lib::Protobuf::EdaDataFile_FeatureIdRecord > featureidrecords_; int type_; int filltype_; int cutouttype_; float fillsize_; int side_; - uint32_t componentnumber_; - uint32_t toeprintnumber_; - uint32_t index_; + ::uint32_t componentnumber_; + ::uint32_t toeprintnumber_; + ::uint32_t index_; + PROTOBUF_TSAN_DECLARE_MEMBER }; union { Impl_ _impl_; }; friend struct ::TableStruct_edadatafile_2eproto; }; // ------------------------------------------------------------------- -class EdaDataFile_NetRecord_AttributeLookupTableEntry_DoNotUse : public ::PROTOBUF_NAMESPACE_ID::internal::MapEntry { -public: - typedef ::PROTOBUF_NAMESPACE_ID::internal::MapEntry SuperType; - EdaDataFile_NetRecord_AttributeLookupTableEntry_DoNotUse(); - explicit PROTOBUF_CONSTEXPR EdaDataFile_NetRecord_AttributeLookupTableEntry_DoNotUse( - ::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); - explicit EdaDataFile_NetRecord_AttributeLookupTableEntry_DoNotUse(::PROTOBUF_NAMESPACE_ID::Arena* arena); - void MergeFrom(const EdaDataFile_NetRecord_AttributeLookupTableEntry_DoNotUse& other); - static const EdaDataFile_NetRecord_AttributeLookupTableEntry_DoNotUse* internal_default_instance() { return reinterpret_cast(&_EdaDataFile_NetRecord_AttributeLookupTableEntry_DoNotUse_default_instance_); } - static bool ValidateKey(std::string* s) { - return ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String(s->data(), static_cast(s->size()), ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::PARSE, "Odb.Lib.Protobuf.EdaDataFile.NetRecord.AttributeLookupTableEntry.key"); - } - static bool ValidateValue(std::string* s) { - return ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String(s->data(), static_cast(s->size()), ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::PARSE, "Odb.Lib.Protobuf.EdaDataFile.NetRecord.AttributeLookupTableEntry.value"); - } - using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; - ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; - friend struct ::TableStruct_edadatafile_2eproto; -}; - -// ------------------------------------------------------------------- - -class ODBDESIGN_EXPORT EdaDataFile_NetRecord final : - public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:Odb.Lib.Protobuf.EdaDataFile.NetRecord) */ { +class ODBDESIGN_EXPORT EdaDataFile_FeatureGroupRecord final : public ::google::protobuf::Message +/* @@protoc_insertion_point(class_definition:Odb.Lib.Protobuf.EdaDataFile.FeatureGroupRecord) */ { public: - inline EdaDataFile_NetRecord() : EdaDataFile_NetRecord(nullptr) {} - ~EdaDataFile_NetRecord() override; - explicit PROTOBUF_CONSTEXPR EdaDataFile_NetRecord(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); + inline EdaDataFile_FeatureGroupRecord() : EdaDataFile_FeatureGroupRecord(nullptr) {} + ~EdaDataFile_FeatureGroupRecord() PROTOBUF_FINAL; - EdaDataFile_NetRecord(const EdaDataFile_NetRecord& from); - EdaDataFile_NetRecord(EdaDataFile_NetRecord&& from) noexcept - : EdaDataFile_NetRecord() { - *this = ::std::move(from); +#if defined(PROTOBUF_CUSTOM_VTABLE) + void operator delete(EdaDataFile_FeatureGroupRecord* msg, std::destroying_delete_t) { + SharedDtor(*msg); + ::google::protobuf::internal::SizedDelete(msg, sizeof(EdaDataFile_FeatureGroupRecord)); } +#endif - inline EdaDataFile_NetRecord& operator=(const EdaDataFile_NetRecord& from) { + template + explicit PROTOBUF_CONSTEXPR EdaDataFile_FeatureGroupRecord( + ::google::protobuf::internal::ConstantInitialized); + + inline EdaDataFile_FeatureGroupRecord(const EdaDataFile_FeatureGroupRecord& from) : EdaDataFile_FeatureGroupRecord(nullptr, from) {} + inline EdaDataFile_FeatureGroupRecord(EdaDataFile_FeatureGroupRecord&& from) noexcept + : EdaDataFile_FeatureGroupRecord(nullptr, std::move(from)) {} + inline EdaDataFile_FeatureGroupRecord& operator=(const EdaDataFile_FeatureGroupRecord& from) { CopyFrom(from); return *this; } - inline EdaDataFile_NetRecord& operator=(EdaDataFile_NetRecord&& from) noexcept { + inline EdaDataFile_FeatureGroupRecord& operator=(EdaDataFile_FeatureGroupRecord&& from) noexcept { if (this == &from) return *this; - if (GetOwningArena() == from.GetOwningArena() - #ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetOwningArena() != nullptr - #endif // !PROTOBUF_FORCE_COPY_IN_MOVE - ) { + if (::google::protobuf::internal::CanMoveWithInternalSwap(GetArena(), from.GetArena())) { InternalSwap(&from); } else { CopyFrom(from); @@ -981,313 +1514,235 @@ class ODBDESIGN_EXPORT EdaDataFile_NetRecord final : return *this; } - static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { + inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const + ABSL_ATTRIBUTE_LIFETIME_BOUND { + return _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance); + } + inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() + ABSL_ATTRIBUTE_LIFETIME_BOUND { + return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); + } + + static const ::google::protobuf::Descriptor* descriptor() { return GetDescriptor(); } - static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { + static const ::google::protobuf::Descriptor* GetDescriptor() { return default_instance().GetMetadata().descriptor; } - static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { + static const ::google::protobuf::Reflection* GetReflection() { return default_instance().GetMetadata().reflection; } - static const EdaDataFile_NetRecord& default_instance() { + static const EdaDataFile_FeatureGroupRecord& default_instance() { return *internal_default_instance(); } - static inline const EdaDataFile_NetRecord* internal_default_instance() { - return reinterpret_cast( - &_EdaDataFile_NetRecord_default_instance_); - } - static constexpr int kIndexInFileMessages = - 3; - - friend void swap(EdaDataFile_NetRecord& a, EdaDataFile_NetRecord& b) { - a.Swap(&b); + static inline const EdaDataFile_FeatureGroupRecord* internal_default_instance() { + return reinterpret_cast( + &_EdaDataFile_FeatureGroupRecord_default_instance_); } - inline void Swap(EdaDataFile_NetRecord* other) { + static constexpr int kIndexInFileMessages = 9; + friend void swap(EdaDataFile_FeatureGroupRecord& a, EdaDataFile_FeatureGroupRecord& b) { a.Swap(&b); } + inline void Swap(EdaDataFile_FeatureGroupRecord* other) { if (other == this) return; - #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetOwningArena() != nullptr && - GetOwningArena() == other->GetOwningArena()) { - #else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetOwningArena() == other->GetOwningArena()) { - #endif // !PROTOBUF_FORCE_COPY_IN_SWAP + if (::google::protobuf::internal::CanUseInternalSwap(GetArena(), other->GetArena())) { InternalSwap(other); } else { - ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); + ::google::protobuf::internal::GenericSwap(this, other); } } - void UnsafeArenaSwap(EdaDataFile_NetRecord* other) { + void UnsafeArenaSwap(EdaDataFile_FeatureGroupRecord* other) { if (other == this) return; - GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); + ABSL_DCHECK(GetArena() == other->GetArena()); InternalSwap(other); } // implements Message ---------------------------------------------- - EdaDataFile_NetRecord* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); - } - using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; - void CopyFrom(const EdaDataFile_NetRecord& from); - using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; - void MergeFrom( const EdaDataFile_NetRecord& from) { - EdaDataFile_NetRecord::MergeImpl(*this, from); + EdaDataFile_FeatureGroupRecord* New(::google::protobuf::Arena* arena = nullptr) const { + return ::google::protobuf::Message::DefaultConstruct(arena); } - private: - static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg); - public: - PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; - bool IsInitialized() const final; - - size_t ByteSizeLong() const final; - const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final; - uint8_t* _InternalSerialize( - uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const final { return _impl_._cached_size_.Get(); } + using ::google::protobuf::Message::CopyFrom; + void CopyFrom(const EdaDataFile_FeatureGroupRecord& from); + using ::google::protobuf::Message::MergeFrom; + void MergeFrom(const EdaDataFile_FeatureGroupRecord& from) { EdaDataFile_FeatureGroupRecord::MergeImpl(*this, from); } private: - void SharedCtor(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned); - void SharedDtor(); - void SetCachedSize(int size) const final; - void InternalSwap(EdaDataFile_NetRecord* other); + static void MergeImpl( + ::google::protobuf::MessageLite& to_msg, + const ::google::protobuf::MessageLite& from_msg); - private: - friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; - static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { - return "Odb.Lib.Protobuf.EdaDataFile.NetRecord"; + public: + bool IsInitialized() const { + return true; } - protected: - explicit EdaDataFile_NetRecord(::PROTOBUF_NAMESPACE_ID::Arena* arena, - bool is_message_owned = false); + ABSL_ATTRIBUTE_REINITIALIZES void Clear() PROTOBUF_FINAL; + #if defined(PROTOBUF_CUSTOM_VTABLE) private: - static void ArenaDtor(void* object); - public: + static ::size_t ByteSizeLong(const ::google::protobuf::MessageLite& msg); + static ::uint8_t* _InternalSerialize( + const MessageLite& msg, ::uint8_t* target, + ::google::protobuf::io::EpsCopyOutputStream* stream); - static const ClassData _class_data_; - const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final; + public: + ::size_t ByteSizeLong() const { return ByteSizeLong(*this); } + ::uint8_t* _InternalSerialize( + ::uint8_t* target, + ::google::protobuf::io::EpsCopyOutputStream* stream) const { + return _InternalSerialize(*this, target, stream); + } + #else // PROTOBUF_CUSTOM_VTABLE + ::size_t ByteSizeLong() const final; + ::uint8_t* _InternalSerialize( + ::uint8_t* target, + ::google::protobuf::io::EpsCopyOutputStream* stream) const final; + #endif // PROTOBUF_CUSTOM_VTABLE + int GetCachedSize() const { return _impl_._cached_size_.Get(); } - ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; + private: + void SharedCtor(::google::protobuf::Arena* arena); + static void SharedDtor(MessageLite& self); + void InternalSwap(EdaDataFile_FeatureGroupRecord* other); + private: + template + friend ::absl::string_view( + ::google::protobuf::internal::GetAnyMessageName)(); + static ::absl::string_view FullMessageName() { return "Odb.Lib.Protobuf.EdaDataFile.FeatureGroupRecord"; } + + protected: + explicit EdaDataFile_FeatureGroupRecord(::google::protobuf::Arena* arena); + EdaDataFile_FeatureGroupRecord(::google::protobuf::Arena* arena, const EdaDataFile_FeatureGroupRecord& from); + EdaDataFile_FeatureGroupRecord(::google::protobuf::Arena* arena, EdaDataFile_FeatureGroupRecord&& from) noexcept + : EdaDataFile_FeatureGroupRecord(arena) { + *this = ::std::move(from); + } + const ::google::protobuf::internal::ClassData* GetClassData() const PROTOBUF_FINAL; + static void* PlacementNew_(const void*, void* mem, + ::google::protobuf::Arena* arena); + static constexpr auto InternalNewImpl_(); + static const ::google::protobuf::internal::ClassDataFull _class_data_; + public: + ::google::protobuf::Metadata GetMetadata() const; // nested types ---------------------------------------------------- - typedef EdaDataFile_NetRecord_SubnetRecord SubnetRecord; - // accessors ------------------------------------------------------- - enum : int { - kSubnetRecordsFieldNumber = 4, - kPropertyRecordsFieldNumber = 5, - kAttributeLookupTableFieldNumber = 6, - kNameFieldNumber = 1, - kAttributesIdStringFieldNumber = 2, - kIndexFieldNumber = 3, + kPropertyRecordsFieldNumber = 2, + kFeatureIdRecordsFieldNumber = 3, + kTypeFieldNumber = 1, }; - // repeated .Odb.Lib.Protobuf.EdaDataFile.NetRecord.SubnetRecord subnetRecords = 4; - int subnetrecords_size() const; - private: - int _internal_subnetrecords_size() const; - public: - void clear_subnetrecords(); - ::Odb::Lib::Protobuf::EdaDataFile_NetRecord_SubnetRecord* mutable_subnetrecords(int index); - ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::Odb::Lib::Protobuf::EdaDataFile_NetRecord_SubnetRecord >* - mutable_subnetrecords(); - private: - const ::Odb::Lib::Protobuf::EdaDataFile_NetRecord_SubnetRecord& _internal_subnetrecords(int index) const; - ::Odb::Lib::Protobuf::EdaDataFile_NetRecord_SubnetRecord* _internal_add_subnetrecords(); - public: - const ::Odb::Lib::Protobuf::EdaDataFile_NetRecord_SubnetRecord& subnetrecords(int index) const; - ::Odb::Lib::Protobuf::EdaDataFile_NetRecord_SubnetRecord* add_subnetrecords(); - const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::Odb::Lib::Protobuf::EdaDataFile_NetRecord_SubnetRecord >& - subnetrecords() const; - - // repeated .Odb.Lib.Protobuf.PropertyRecord propertyRecords = 5; + // repeated .Odb.Lib.Protobuf.PropertyRecord propertyRecords = 2; int propertyrecords_size() const; private: int _internal_propertyrecords_size() const; + public: - void clear_propertyrecords(); + void clear_propertyrecords() ; ::Odb::Lib::Protobuf::PropertyRecord* mutable_propertyrecords(int index); - ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::Odb::Lib::Protobuf::PropertyRecord >* - mutable_propertyrecords(); + ::google::protobuf::RepeatedPtrField<::Odb::Lib::Protobuf::PropertyRecord>* mutable_propertyrecords(); + private: - const ::Odb::Lib::Protobuf::PropertyRecord& _internal_propertyrecords(int index) const; - ::Odb::Lib::Protobuf::PropertyRecord* _internal_add_propertyrecords(); + const ::google::protobuf::RepeatedPtrField<::Odb::Lib::Protobuf::PropertyRecord>& _internal_propertyrecords() const; + ::google::protobuf::RepeatedPtrField<::Odb::Lib::Protobuf::PropertyRecord>* _internal_mutable_propertyrecords(); public: const ::Odb::Lib::Protobuf::PropertyRecord& propertyrecords(int index) const; ::Odb::Lib::Protobuf::PropertyRecord* add_propertyrecords(); - const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::Odb::Lib::Protobuf::PropertyRecord >& - propertyrecords() const; - - // map attributeLookupTable = 6; - int attributelookuptable_size() const; - private: - int _internal_attributelookuptable_size() const; - public: - void clear_attributelookuptable(); - private: - const ::PROTOBUF_NAMESPACE_ID::Map< std::string, std::string >& - _internal_attributelookuptable() const; - ::PROTOBUF_NAMESPACE_ID::Map< std::string, std::string >* - _internal_mutable_attributelookuptable(); - public: - const ::PROTOBUF_NAMESPACE_ID::Map< std::string, std::string >& - attributelookuptable() const; - ::PROTOBUF_NAMESPACE_ID::Map< std::string, std::string >* - mutable_attributelookuptable(); - - // optional string name = 1; - bool has_name() const; - private: - bool _internal_has_name() const; - public: - void clear_name(); - const std::string& name() const; - template - void set_name(ArgT0&& arg0, ArgT... args); - std::string* mutable_name(); - PROTOBUF_NODISCARD std::string* release_name(); - void set_allocated_name(std::string* name); + const ::google::protobuf::RepeatedPtrField<::Odb::Lib::Protobuf::PropertyRecord>& propertyrecords() const; + // repeated .Odb.Lib.Protobuf.EdaDataFile.FeatureIdRecord featureIdRecords = 3; + int featureidrecords_size() const; private: - const std::string& _internal_name() const; - inline PROTOBUF_ALWAYS_INLINE void _internal_set_name(const std::string& value); - std::string* _internal_mutable_name(); - public: + int _internal_featureidrecords_size() const; - // optional string attributesIdString = 2; - bool has_attributesidstring() const; - private: - bool _internal_has_attributesidstring() const; - public: - void clear_attributesidstring(); - const std::string& attributesidstring() const; - template - void set_attributesidstring(ArgT0&& arg0, ArgT... args); - std::string* mutable_attributesidstring(); - PROTOBUF_NODISCARD std::string* release_attributesidstring(); - void set_allocated_attributesidstring(std::string* attributesidstring); - private: - const std::string& _internal_attributesidstring() const; - inline PROTOBUF_ALWAYS_INLINE void _internal_set_attributesidstring(const std::string& value); - std::string* _internal_mutable_attributesidstring(); public: + void clear_featureidrecords() ; + ::Odb::Lib::Protobuf::EdaDataFile_FeatureIdRecord* mutable_featureidrecords(int index); + ::google::protobuf::RepeatedPtrField<::Odb::Lib::Protobuf::EdaDataFile_FeatureIdRecord>* mutable_featureidrecords(); - // optional uint32 index = 3; - bool has_index() const; - private: - bool _internal_has_index() const; - public: - void clear_index(); - uint32_t index() const; - void set_index(uint32_t value); private: - uint32_t _internal_index() const; - void _internal_set_index(uint32_t value); + const ::google::protobuf::RepeatedPtrField<::Odb::Lib::Protobuf::EdaDataFile_FeatureIdRecord>& _internal_featureidrecords() const; + ::google::protobuf::RepeatedPtrField<::Odb::Lib::Protobuf::EdaDataFile_FeatureIdRecord>* _internal_mutable_featureidrecords(); public: + const ::Odb::Lib::Protobuf::EdaDataFile_FeatureIdRecord& featureidrecords(int index) const; + ::Odb::Lib::Protobuf::EdaDataFile_FeatureIdRecord* add_featureidrecords(); + const ::google::protobuf::RepeatedPtrField<::Odb::Lib::Protobuf::EdaDataFile_FeatureIdRecord>& featureidrecords() const; + // optional string type = 1; + bool has_type() const; + void clear_type() ; + const std::string& type() const; + template + void set_type(Arg_&& arg, Args_... args); + std::string* mutable_type(); + PROTOBUF_NODISCARD std::string* release_type(); + void set_allocated_type(std::string* value); - // @@protoc_insertion_point(class_scope:Odb.Lib.Protobuf.EdaDataFile.NetRecord) - private: - class _Internal; - - template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; - typedef void InternalArenaConstructable_; - typedef void DestructorSkippable_; - struct Impl_ { - ::PROTOBUF_NAMESPACE_ID::internal::HasBits<1> _has_bits_; - mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; - ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::Odb::Lib::Protobuf::EdaDataFile_NetRecord_SubnetRecord > subnetrecords_; - ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::Odb::Lib::Protobuf::PropertyRecord > propertyrecords_; - ::PROTOBUF_NAMESPACE_ID::internal::MapField< - EdaDataFile_NetRecord_AttributeLookupTableEntry_DoNotUse, - std::string, std::string, - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::TYPE_STRING, - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::TYPE_STRING> attributelookuptable_; - ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr name_; - ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr attributesidstring_; - uint32_t index_; - }; - union { Impl_ _impl_; }; - friend struct ::TableStruct_edadatafile_2eproto; -}; -// ------------------------------------------------------------------- - -class EdaDataFile_PackageRecord_PinRecordsByNameEntry_DoNotUse : public ::PROTOBUF_NAMESPACE_ID::internal::MapEntry { -public: - typedef ::PROTOBUF_NAMESPACE_ID::internal::MapEntry SuperType; - EdaDataFile_PackageRecord_PinRecordsByNameEntry_DoNotUse(); - explicit PROTOBUF_CONSTEXPR EdaDataFile_PackageRecord_PinRecordsByNameEntry_DoNotUse( - ::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); - explicit EdaDataFile_PackageRecord_PinRecordsByNameEntry_DoNotUse(::PROTOBUF_NAMESPACE_ID::Arena* arena); - void MergeFrom(const EdaDataFile_PackageRecord_PinRecordsByNameEntry_DoNotUse& other); - static const EdaDataFile_PackageRecord_PinRecordsByNameEntry_DoNotUse* internal_default_instance() { return reinterpret_cast(&_EdaDataFile_PackageRecord_PinRecordsByNameEntry_DoNotUse_default_instance_); } - static bool ValidateKey(std::string* s) { - return ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String(s->data(), static_cast(s->size()), ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::PARSE, "Odb.Lib.Protobuf.EdaDataFile.PackageRecord.PinRecordsByNameEntry.key"); - } - static bool ValidateValue(void*) { return true; } - using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; - ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; - friend struct ::TableStruct_edadatafile_2eproto; -}; - -// ------------------------------------------------------------------- + private: + const std::string& _internal_type() const; + inline PROTOBUF_ALWAYS_INLINE void _internal_set_type( + const std::string& value); + std::string* _internal_mutable_type(); -class EdaDataFile_PackageRecord_AttributeLookupTableEntry_DoNotUse : public ::PROTOBUF_NAMESPACE_ID::internal::MapEntry { -public: - typedef ::PROTOBUF_NAMESPACE_ID::internal::MapEntry SuperType; - EdaDataFile_PackageRecord_AttributeLookupTableEntry_DoNotUse(); - explicit PROTOBUF_CONSTEXPR EdaDataFile_PackageRecord_AttributeLookupTableEntry_DoNotUse( - ::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); - explicit EdaDataFile_PackageRecord_AttributeLookupTableEntry_DoNotUse(::PROTOBUF_NAMESPACE_ID::Arena* arena); - void MergeFrom(const EdaDataFile_PackageRecord_AttributeLookupTableEntry_DoNotUse& other); - static const EdaDataFile_PackageRecord_AttributeLookupTableEntry_DoNotUse* internal_default_instance() { return reinterpret_cast(&_EdaDataFile_PackageRecord_AttributeLookupTableEntry_DoNotUse_default_instance_); } - static bool ValidateKey(std::string* s) { - return ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String(s->data(), static_cast(s->size()), ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::PARSE, "Odb.Lib.Protobuf.EdaDataFile.PackageRecord.AttributeLookupTableEntry.key"); - } - static bool ValidateValue(std::string* s) { - return ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String(s->data(), static_cast(s->size()), ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::PARSE, "Odb.Lib.Protobuf.EdaDataFile.PackageRecord.AttributeLookupTableEntry.value"); - } - using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; - ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; + public: + // @@protoc_insertion_point(class_scope:Odb.Lib.Protobuf.EdaDataFile.FeatureGroupRecord) + private: + class _Internal; + friend class ::google::protobuf::internal::TcParser; + static const ::google::protobuf::internal::TcParseTable< + 2, 3, 2, + 60, 2> + _table_; + + friend class ::google::protobuf::MessageLite; + friend class ::google::protobuf::Arena; + template + friend class ::google::protobuf::Arena::InternalHelper; + using InternalArenaConstructable_ = void; + using DestructorSkippable_ = void; + struct Impl_ { + inline explicit constexpr Impl_( + ::google::protobuf::internal::ConstantInitialized) noexcept; + inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* arena); + inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* arena, const Impl_& from, + const EdaDataFile_FeatureGroupRecord& from_msg); + ::google::protobuf::internal::HasBits<1> _has_bits_; + ::google::protobuf::internal::CachedSize _cached_size_; + ::google::protobuf::RepeatedPtrField< ::Odb::Lib::Protobuf::PropertyRecord > propertyrecords_; + ::google::protobuf::RepeatedPtrField< ::Odb::Lib::Protobuf::EdaDataFile_FeatureIdRecord > featureidrecords_; + ::google::protobuf::internal::ArenaStringPtr type_; + PROTOBUF_TSAN_DECLARE_MEMBER + }; + union { Impl_ _impl_; }; friend struct ::TableStruct_edadatafile_2eproto; }; - // ------------------------------------------------------------------- -class ODBDESIGN_EXPORT EdaDataFile_PackageRecord_OutlineRecord final : - public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:Odb.Lib.Protobuf.EdaDataFile.PackageRecord.OutlineRecord) */ { +class ODBDESIGN_EXPORT EdaDataFile_PackageRecord_OutlineRecord final : public ::google::protobuf::Message +/* @@protoc_insertion_point(class_definition:Odb.Lib.Protobuf.EdaDataFile.PackageRecord.OutlineRecord) */ { public: inline EdaDataFile_PackageRecord_OutlineRecord() : EdaDataFile_PackageRecord_OutlineRecord(nullptr) {} - ~EdaDataFile_PackageRecord_OutlineRecord() override; - explicit PROTOBUF_CONSTEXPR EdaDataFile_PackageRecord_OutlineRecord(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); + ~EdaDataFile_PackageRecord_OutlineRecord() PROTOBUF_FINAL; - EdaDataFile_PackageRecord_OutlineRecord(const EdaDataFile_PackageRecord_OutlineRecord& from); - EdaDataFile_PackageRecord_OutlineRecord(EdaDataFile_PackageRecord_OutlineRecord&& from) noexcept - : EdaDataFile_PackageRecord_OutlineRecord() { - *this = ::std::move(from); +#if defined(PROTOBUF_CUSTOM_VTABLE) + void operator delete(EdaDataFile_PackageRecord_OutlineRecord* msg, std::destroying_delete_t) { + SharedDtor(*msg); + ::google::protobuf::internal::SizedDelete(msg, sizeof(EdaDataFile_PackageRecord_OutlineRecord)); } +#endif + + template + explicit PROTOBUF_CONSTEXPR EdaDataFile_PackageRecord_OutlineRecord( + ::google::protobuf::internal::ConstantInitialized); + inline EdaDataFile_PackageRecord_OutlineRecord(const EdaDataFile_PackageRecord_OutlineRecord& from) : EdaDataFile_PackageRecord_OutlineRecord(nullptr, from) {} + inline EdaDataFile_PackageRecord_OutlineRecord(EdaDataFile_PackageRecord_OutlineRecord&& from) noexcept + : EdaDataFile_PackageRecord_OutlineRecord(nullptr, std::move(from)) {} inline EdaDataFile_PackageRecord_OutlineRecord& operator=(const EdaDataFile_PackageRecord_OutlineRecord& from) { CopyFrom(from); return *this; } inline EdaDataFile_PackageRecord_OutlineRecord& operator=(EdaDataFile_PackageRecord_OutlineRecord&& from) noexcept { if (this == &from) return *this; - if (GetOwningArena() == from.GetOwningArena() - #ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetOwningArena() != nullptr - #endif // !PROTOBUF_FORCE_COPY_IN_MOVE - ) { + if (::google::protobuf::internal::CanMoveWithInternalSwap(GetArena(), from.GetArena())) { InternalSwap(&from); } else { CopyFrom(from); @@ -1295,13 +1750,22 @@ class ODBDESIGN_EXPORT EdaDataFile_PackageRecord_OutlineRecord final : return *this; } - static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { + inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const + ABSL_ATTRIBUTE_LIFETIME_BOUND { + return _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance); + } + inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() + ABSL_ATTRIBUTE_LIFETIME_BOUND { + return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); + } + + static const ::google::protobuf::Descriptor* descriptor() { return GetDescriptor(); } - static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { + static const ::google::protobuf::Descriptor* GetDescriptor() { return default_instance().GetMetadata().descriptor; } - static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { + static const ::google::protobuf::Reflection* GetReflection() { return default_instance().GetMetadata().reflection; } static const EdaDataFile_PackageRecord_OutlineRecord& default_instance() { @@ -1309,115 +1773,115 @@ class ODBDESIGN_EXPORT EdaDataFile_PackageRecord_OutlineRecord final : } static inline const EdaDataFile_PackageRecord_OutlineRecord* internal_default_instance() { return reinterpret_cast( - &_EdaDataFile_PackageRecord_OutlineRecord_default_instance_); - } - static constexpr int kIndexInFileMessages = - 6; - - friend void swap(EdaDataFile_PackageRecord_OutlineRecord& a, EdaDataFile_PackageRecord_OutlineRecord& b) { - a.Swap(&b); + &_EdaDataFile_PackageRecord_OutlineRecord_default_instance_); } + static constexpr int kIndexInFileMessages = 6; + friend void swap(EdaDataFile_PackageRecord_OutlineRecord& a, EdaDataFile_PackageRecord_OutlineRecord& b) { a.Swap(&b); } inline void Swap(EdaDataFile_PackageRecord_OutlineRecord* other) { if (other == this) return; - #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetOwningArena() != nullptr && - GetOwningArena() == other->GetOwningArena()) { - #else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetOwningArena() == other->GetOwningArena()) { - #endif // !PROTOBUF_FORCE_COPY_IN_SWAP + if (::google::protobuf::internal::CanUseInternalSwap(GetArena(), other->GetArena())) { InternalSwap(other); } else { - ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); + ::google::protobuf::internal::GenericSwap(this, other); } } void UnsafeArenaSwap(EdaDataFile_PackageRecord_OutlineRecord* other) { if (other == this) return; - GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); + ABSL_DCHECK(GetArena() == other->GetArena()); InternalSwap(other); } // implements Message ---------------------------------------------- - EdaDataFile_PackageRecord_OutlineRecord* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); + EdaDataFile_PackageRecord_OutlineRecord* New(::google::protobuf::Arena* arena = nullptr) const { + return ::google::protobuf::Message::DefaultConstruct(arena); } - using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; + using ::google::protobuf::Message::CopyFrom; void CopyFrom(const EdaDataFile_PackageRecord_OutlineRecord& from); - using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; - void MergeFrom( const EdaDataFile_PackageRecord_OutlineRecord& from) { - EdaDataFile_PackageRecord_OutlineRecord::MergeImpl(*this, from); - } + using ::google::protobuf::Message::MergeFrom; + void MergeFrom(const EdaDataFile_PackageRecord_OutlineRecord& from) { EdaDataFile_PackageRecord_OutlineRecord::MergeImpl(*this, from); } + private: - static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg); + static void MergeImpl( + ::google::protobuf::MessageLite& to_msg, + const ::google::protobuf::MessageLite& from_msg); + public: - PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; - bool IsInitialized() const final; + bool IsInitialized() const { + return true; + } + ABSL_ATTRIBUTE_REINITIALIZES void Clear() PROTOBUF_FINAL; + #if defined(PROTOBUF_CUSTOM_VTABLE) + private: + static ::size_t ByteSizeLong(const ::google::protobuf::MessageLite& msg); + static ::uint8_t* _InternalSerialize( + const MessageLite& msg, ::uint8_t* target, + ::google::protobuf::io::EpsCopyOutputStream* stream); - size_t ByteSizeLong() const final; - const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final; - uint8_t* _InternalSerialize( - uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const final { return _impl_._cached_size_.Get(); } + public: + ::size_t ByteSizeLong() const { return ByteSizeLong(*this); } + ::uint8_t* _InternalSerialize( + ::uint8_t* target, + ::google::protobuf::io::EpsCopyOutputStream* stream) const { + return _InternalSerialize(*this, target, stream); + } + #else // PROTOBUF_CUSTOM_VTABLE + ::size_t ByteSizeLong() const final; + ::uint8_t* _InternalSerialize( + ::uint8_t* target, + ::google::protobuf::io::EpsCopyOutputStream* stream) const final; + #endif // PROTOBUF_CUSTOM_VTABLE + int GetCachedSize() const { return _impl_._cached_size_.Get(); } private: - void SharedCtor(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned); - void SharedDtor(); - void SetCachedSize(int size) const final; + void SharedCtor(::google::protobuf::Arena* arena); + static void SharedDtor(MessageLite& self); void InternalSwap(EdaDataFile_PackageRecord_OutlineRecord* other); - - private: - friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; - static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { - return "Odb.Lib.Protobuf.EdaDataFile.PackageRecord.OutlineRecord"; + private: + template + friend ::absl::string_view( + ::google::protobuf::internal::GetAnyMessageName)(); + static ::absl::string_view FullMessageName() { return "Odb.Lib.Protobuf.EdaDataFile.PackageRecord.OutlineRecord"; } + + protected: + explicit EdaDataFile_PackageRecord_OutlineRecord(::google::protobuf::Arena* arena); + EdaDataFile_PackageRecord_OutlineRecord(::google::protobuf::Arena* arena, const EdaDataFile_PackageRecord_OutlineRecord& from); + EdaDataFile_PackageRecord_OutlineRecord(::google::protobuf::Arena* arena, EdaDataFile_PackageRecord_OutlineRecord&& from) noexcept + : EdaDataFile_PackageRecord_OutlineRecord(arena) { + *this = ::std::move(from); } - protected: - explicit EdaDataFile_PackageRecord_OutlineRecord(::PROTOBUF_NAMESPACE_ID::Arena* arena, - bool is_message_owned = false); - public: - - static const ClassData _class_data_; - const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final; - - ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; + const ::google::protobuf::internal::ClassData* GetClassData() const PROTOBUF_FINAL; + static void* PlacementNew_(const void*, void* mem, + ::google::protobuf::Arena* arena); + static constexpr auto InternalNewImpl_(); + static const ::google::protobuf::internal::ClassDataFull _class_data_; + public: + ::google::protobuf::Metadata GetMetadata() const; // nested types ---------------------------------------------------- - - typedef EdaDataFile_PackageRecord_OutlineRecord_Type Type; - static constexpr Type Rectangle = - EdaDataFile_PackageRecord_OutlineRecord_Type_Rectangle; - static constexpr Type Circle = - EdaDataFile_PackageRecord_OutlineRecord_Type_Circle; - static constexpr Type Square = - EdaDataFile_PackageRecord_OutlineRecord_Type_Square; - static constexpr Type Contour = - EdaDataFile_PackageRecord_OutlineRecord_Type_Contour; + using Type = EdaDataFile_PackageRecord_OutlineRecord_Type; + static constexpr Type Rectangle = EdaDataFile_PackageRecord_OutlineRecord_Type_Rectangle; + static constexpr Type Circle = EdaDataFile_PackageRecord_OutlineRecord_Type_Circle; + static constexpr Type Square = EdaDataFile_PackageRecord_OutlineRecord_Type_Square; + static constexpr Type Contour = EdaDataFile_PackageRecord_OutlineRecord_Type_Contour; static inline bool Type_IsValid(int value) { return EdaDataFile_PackageRecord_OutlineRecord_Type_IsValid(value); } - static constexpr Type Type_MIN = - EdaDataFile_PackageRecord_OutlineRecord_Type_Type_MIN; - static constexpr Type Type_MAX = - EdaDataFile_PackageRecord_OutlineRecord_Type_Type_MAX; - static constexpr int Type_ARRAYSIZE = - EdaDataFile_PackageRecord_OutlineRecord_Type_Type_ARRAYSIZE; - static inline const ::PROTOBUF_NAMESPACE_ID::EnumDescriptor* - Type_descriptor() { + static constexpr Type Type_MIN = EdaDataFile_PackageRecord_OutlineRecord_Type_Type_MIN; + static constexpr Type Type_MAX = EdaDataFile_PackageRecord_OutlineRecord_Type_Type_MAX; + static constexpr int Type_ARRAYSIZE = EdaDataFile_PackageRecord_OutlineRecord_Type_Type_ARRAYSIZE; + static inline const ::google::protobuf::EnumDescriptor* Type_descriptor() { return EdaDataFile_PackageRecord_OutlineRecord_Type_descriptor(); } - template - static inline const std::string& Type_Name(T enum_t_value) { - static_assert(::std::is_same::value || - ::std::is_integral::value, - "Incorrect type passed to function Type_Name."); - return EdaDataFile_PackageRecord_OutlineRecord_Type_Name(enum_t_value); + template + static inline const std::string& Type_Name(T value) { + return EdaDataFile_PackageRecord_OutlineRecord_Type_Name(value); } - static inline bool Type_Parse(::PROTOBUF_NAMESPACE_ID::ConstStringParam name, - Type* value) { + static inline bool Type_Parse(absl::string_view name, Type* value) { return EdaDataFile_PackageRecord_OutlineRecord_Type_Parse(name, value); } // accessors ------------------------------------------------------- - enum : int { kContourPolygonsFieldNumber = 10, kTypeFieldNumber = 1, @@ -1434,148 +1898,144 @@ class ODBDESIGN_EXPORT EdaDataFile_PackageRecord_OutlineRecord final : int contourpolygons_size() const; private: int _internal_contourpolygons_size() const; + public: - void clear_contourpolygons(); + void clear_contourpolygons() ; ::Odb::Lib::Protobuf::ContourPolygon* mutable_contourpolygons(int index); - ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::Odb::Lib::Protobuf::ContourPolygon >* - mutable_contourpolygons(); + ::google::protobuf::RepeatedPtrField<::Odb::Lib::Protobuf::ContourPolygon>* mutable_contourpolygons(); + private: - const ::Odb::Lib::Protobuf::ContourPolygon& _internal_contourpolygons(int index) const; - ::Odb::Lib::Protobuf::ContourPolygon* _internal_add_contourpolygons(); + const ::google::protobuf::RepeatedPtrField<::Odb::Lib::Protobuf::ContourPolygon>& _internal_contourpolygons() const; + ::google::protobuf::RepeatedPtrField<::Odb::Lib::Protobuf::ContourPolygon>* _internal_mutable_contourpolygons(); public: const ::Odb::Lib::Protobuf::ContourPolygon& contourpolygons(int index) const; ::Odb::Lib::Protobuf::ContourPolygon* add_contourpolygons(); - const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::Odb::Lib::Protobuf::ContourPolygon >& - contourpolygons() const; - + const ::google::protobuf::RepeatedPtrField<::Odb::Lib::Protobuf::ContourPolygon>& contourpolygons() const; // optional .Odb.Lib.Protobuf.EdaDataFile.PackageRecord.OutlineRecord.Type type = 1; bool has_type() const; - private: - bool _internal_has_type() const; - public: - void clear_type(); + void clear_type() ; ::Odb::Lib::Protobuf::EdaDataFile_PackageRecord_OutlineRecord_Type type() const; void set_type(::Odb::Lib::Protobuf::EdaDataFile_PackageRecord_OutlineRecord_Type value); + private: ::Odb::Lib::Protobuf::EdaDataFile_PackageRecord_OutlineRecord_Type _internal_type() const; void _internal_set_type(::Odb::Lib::Protobuf::EdaDataFile_PackageRecord_OutlineRecord_Type value); - public: + public: // optional float lowerLeftX = 2; bool has_lowerleftx() const; - private: - bool _internal_has_lowerleftx() const; - public: - void clear_lowerleftx(); + void clear_lowerleftx() ; float lowerleftx() const; void set_lowerleftx(float value); + private: float _internal_lowerleftx() const; void _internal_set_lowerleftx(float value); - public: + public: // optional float lowerLeftY = 3; bool has_lowerlefty() const; - private: - bool _internal_has_lowerlefty() const; - public: - void clear_lowerlefty(); + void clear_lowerlefty() ; float lowerlefty() const; void set_lowerlefty(float value); + private: float _internal_lowerlefty() const; void _internal_set_lowerlefty(float value); - public: + public: // optional float width = 4; bool has_width() const; - private: - bool _internal_has_width() const; - public: - void clear_width(); + void clear_width() ; float width() const; void set_width(float value); + private: float _internal_width() const; void _internal_set_width(float value); - public: + public: // optional float height = 5; bool has_height() const; - private: - bool _internal_has_height() const; - public: - void clear_height(); + void clear_height() ; float height() const; void set_height(float value); + private: float _internal_height() const; void _internal_set_height(float value); - public: + public: // optional float xCenter = 6; bool has_xcenter() const; - private: - bool _internal_has_xcenter() const; - public: - void clear_xcenter(); + void clear_xcenter() ; float xcenter() const; void set_xcenter(float value); + private: float _internal_xcenter() const; void _internal_set_xcenter(float value); - public: + public: // optional float yCenter = 7; bool has_ycenter() const; - private: - bool _internal_has_ycenter() const; - public: - void clear_ycenter(); + void clear_ycenter() ; float ycenter() const; void set_ycenter(float value); + private: float _internal_ycenter() const; void _internal_set_ycenter(float value); - public: + public: // optional float halfSide = 8; bool has_halfside() const; - private: - bool _internal_has_halfside() const; - public: - void clear_halfside(); + void clear_halfside() ; float halfside() const; void set_halfside(float value); + private: float _internal_halfside() const; void _internal_set_halfside(float value); - public: + public: // optional float radius = 9; bool has_radius() const; - private: - bool _internal_has_radius() const; - public: - void clear_radius(); + void clear_radius() ; float radius() const; void set_radius(float value); + private: float _internal_radius() const; void _internal_set_radius(float value); - public: + public: // @@protoc_insertion_point(class_scope:Odb.Lib.Protobuf.EdaDataFile.PackageRecord.OutlineRecord) private: class _Internal; - - template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; - typedef void InternalArenaConstructable_; - typedef void DestructorSkippable_; + friend class ::google::protobuf::internal::TcParser; + static const ::google::protobuf::internal::TcParseTable< + 4, 10, 1, + 0, 2> + _table_; + + friend class ::google::protobuf::MessageLite; + friend class ::google::protobuf::Arena; + template + friend class ::google::protobuf::Arena::InternalHelper; + using InternalArenaConstructable_ = void; + using DestructorSkippable_ = void; struct Impl_ { - ::PROTOBUF_NAMESPACE_ID::internal::HasBits<1> _has_bits_; - mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; - ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::Odb::Lib::Protobuf::ContourPolygon > contourpolygons_; + inline explicit constexpr Impl_( + ::google::protobuf::internal::ConstantInitialized) noexcept; + inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* arena); + inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* arena, const Impl_& from, + const EdaDataFile_PackageRecord_OutlineRecord& from_msg); + ::google::protobuf::internal::HasBits<1> _has_bits_; + ::google::protobuf::internal::CachedSize _cached_size_; + ::google::protobuf::RepeatedPtrField< ::Odb::Lib::Protobuf::ContourPolygon > contourpolygons_; int type_; float lowerleftx_; float lowerlefty_; @@ -1585,36 +2045,40 @@ class ODBDESIGN_EXPORT EdaDataFile_PackageRecord_OutlineRecord final : float ycenter_; float halfside_; float radius_; + PROTOBUF_TSAN_DECLARE_MEMBER }; union { Impl_ _impl_; }; friend struct ::TableStruct_edadatafile_2eproto; }; // ------------------------------------------------------------------- -class ODBDESIGN_EXPORT EdaDataFile_PackageRecord_PinRecord final : - public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:Odb.Lib.Protobuf.EdaDataFile.PackageRecord.PinRecord) */ { +class ODBDESIGN_EXPORT EdaDataFile_NetRecord final : public ::google::protobuf::Message +/* @@protoc_insertion_point(class_definition:Odb.Lib.Protobuf.EdaDataFile.NetRecord) */ { public: - inline EdaDataFile_PackageRecord_PinRecord() : EdaDataFile_PackageRecord_PinRecord(nullptr) {} - ~EdaDataFile_PackageRecord_PinRecord() override; - explicit PROTOBUF_CONSTEXPR EdaDataFile_PackageRecord_PinRecord(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); + inline EdaDataFile_NetRecord() : EdaDataFile_NetRecord(nullptr) {} + ~EdaDataFile_NetRecord() PROTOBUF_FINAL; - EdaDataFile_PackageRecord_PinRecord(const EdaDataFile_PackageRecord_PinRecord& from); - EdaDataFile_PackageRecord_PinRecord(EdaDataFile_PackageRecord_PinRecord&& from) noexcept - : EdaDataFile_PackageRecord_PinRecord() { - *this = ::std::move(from); +#if defined(PROTOBUF_CUSTOM_VTABLE) + void operator delete(EdaDataFile_NetRecord* msg, std::destroying_delete_t) { + SharedDtor(*msg); + ::google::protobuf::internal::SizedDelete(msg, sizeof(EdaDataFile_NetRecord)); } +#endif - inline EdaDataFile_PackageRecord_PinRecord& operator=(const EdaDataFile_PackageRecord_PinRecord& from) { + template + explicit PROTOBUF_CONSTEXPR EdaDataFile_NetRecord( + ::google::protobuf::internal::ConstantInitialized); + + inline EdaDataFile_NetRecord(const EdaDataFile_NetRecord& from) : EdaDataFile_NetRecord(nullptr, from) {} + inline EdaDataFile_NetRecord(EdaDataFile_NetRecord&& from) noexcept + : EdaDataFile_NetRecord(nullptr, std::move(from)) {} + inline EdaDataFile_NetRecord& operator=(const EdaDataFile_NetRecord& from) { CopyFrom(from); return *this; } - inline EdaDataFile_PackageRecord_PinRecord& operator=(EdaDataFile_PackageRecord_PinRecord&& from) noexcept { + inline EdaDataFile_NetRecord& operator=(EdaDataFile_NetRecord&& from) noexcept { if (this == &from) return *this; - if (GetOwningArena() == from.GetOwningArena() - #ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetOwningArena() != nullptr - #endif // !PROTOBUF_FORCE_COPY_IN_MOVE - ) { + if (::google::protobuf::internal::CanMoveWithInternalSwap(GetArena(), from.GetArena())) { InternalSwap(&from); } else { CopyFrom(from); @@ -1622,383 +2086,288 @@ class ODBDESIGN_EXPORT EdaDataFile_PackageRecord_PinRecord final : return *this; } - static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { + inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const + ABSL_ATTRIBUTE_LIFETIME_BOUND { + return _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance); + } + inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() + ABSL_ATTRIBUTE_LIFETIME_BOUND { + return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); + } + + static const ::google::protobuf::Descriptor* descriptor() { return GetDescriptor(); } - static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { + static const ::google::protobuf::Descriptor* GetDescriptor() { return default_instance().GetMetadata().descriptor; } - static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { + static const ::google::protobuf::Reflection* GetReflection() { return default_instance().GetMetadata().reflection; } - static const EdaDataFile_PackageRecord_PinRecord& default_instance() { + static const EdaDataFile_NetRecord& default_instance() { return *internal_default_instance(); } - static inline const EdaDataFile_PackageRecord_PinRecord* internal_default_instance() { - return reinterpret_cast( - &_EdaDataFile_PackageRecord_PinRecord_default_instance_); - } - static constexpr int kIndexInFileMessages = - 7; - - friend void swap(EdaDataFile_PackageRecord_PinRecord& a, EdaDataFile_PackageRecord_PinRecord& b) { - a.Swap(&b); + static inline const EdaDataFile_NetRecord* internal_default_instance() { + return reinterpret_cast( + &_EdaDataFile_NetRecord_default_instance_); } - inline void Swap(EdaDataFile_PackageRecord_PinRecord* other) { + static constexpr int kIndexInFileMessages = 3; + friend void swap(EdaDataFile_NetRecord& a, EdaDataFile_NetRecord& b) { a.Swap(&b); } + inline void Swap(EdaDataFile_NetRecord* other) { if (other == this) return; - #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetOwningArena() != nullptr && - GetOwningArena() == other->GetOwningArena()) { - #else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetOwningArena() == other->GetOwningArena()) { - #endif // !PROTOBUF_FORCE_COPY_IN_SWAP + if (::google::protobuf::internal::CanUseInternalSwap(GetArena(), other->GetArena())) { InternalSwap(other); } else { - ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); + ::google::protobuf::internal::GenericSwap(this, other); } } - void UnsafeArenaSwap(EdaDataFile_PackageRecord_PinRecord* other) { + void UnsafeArenaSwap(EdaDataFile_NetRecord* other) { if (other == this) return; - GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); + ABSL_DCHECK(GetArena() == other->GetArena()); InternalSwap(other); } // implements Message ---------------------------------------------- - EdaDataFile_PackageRecord_PinRecord* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); - } - using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; - void CopyFrom(const EdaDataFile_PackageRecord_PinRecord& from); - using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; - void MergeFrom( const EdaDataFile_PackageRecord_PinRecord& from) { - EdaDataFile_PackageRecord_PinRecord::MergeImpl(*this, from); + EdaDataFile_NetRecord* New(::google::protobuf::Arena* arena = nullptr) const { + return ::google::protobuf::Message::DefaultConstruct(arena); } - private: - static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg); - public: - PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; - bool IsInitialized() const final; - - size_t ByteSizeLong() const final; - const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final; - uint8_t* _InternalSerialize( - uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const final { return _impl_._cached_size_.Get(); } + using ::google::protobuf::Message::CopyFrom; + void CopyFrom(const EdaDataFile_NetRecord& from); + using ::google::protobuf::Message::MergeFrom; + void MergeFrom(const EdaDataFile_NetRecord& from) { EdaDataFile_NetRecord::MergeImpl(*this, from); } private: - void SharedCtor(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned); - void SharedDtor(); - void SetCachedSize(int size) const final; - void InternalSwap(EdaDataFile_PackageRecord_PinRecord* other); + static void MergeImpl( + ::google::protobuf::MessageLite& to_msg, + const ::google::protobuf::MessageLite& from_msg); - private: - friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; - static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { - return "Odb.Lib.Protobuf.EdaDataFile.PackageRecord.PinRecord"; - } - protected: - explicit EdaDataFile_PackageRecord_PinRecord(::PROTOBUF_NAMESPACE_ID::Arena* arena, - bool is_message_owned = false); public: - - static const ClassData _class_data_; - const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final; - - ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; - - // nested types ---------------------------------------------------- - - typedef EdaDataFile_PackageRecord_PinRecord_Type Type; - static constexpr Type ThroughHole = - EdaDataFile_PackageRecord_PinRecord_Type_ThroughHole; - static constexpr Type Blind = - EdaDataFile_PackageRecord_PinRecord_Type_Blind; - static constexpr Type Surface = - EdaDataFile_PackageRecord_PinRecord_Type_Surface; - static inline bool Type_IsValid(int value) { - return EdaDataFile_PackageRecord_PinRecord_Type_IsValid(value); - } - static constexpr Type Type_MIN = - EdaDataFile_PackageRecord_PinRecord_Type_Type_MIN; - static constexpr Type Type_MAX = - EdaDataFile_PackageRecord_PinRecord_Type_Type_MAX; - static constexpr int Type_ARRAYSIZE = - EdaDataFile_PackageRecord_PinRecord_Type_Type_ARRAYSIZE; - static inline const ::PROTOBUF_NAMESPACE_ID::EnumDescriptor* - Type_descriptor() { - return EdaDataFile_PackageRecord_PinRecord_Type_descriptor(); - } - template - static inline const std::string& Type_Name(T enum_t_value) { - static_assert(::std::is_same::value || - ::std::is_integral::value, - "Incorrect type passed to function Type_Name."); - return EdaDataFile_PackageRecord_PinRecord_Type_Name(enum_t_value); - } - static inline bool Type_Parse(::PROTOBUF_NAMESPACE_ID::ConstStringParam name, - Type* value) { - return EdaDataFile_PackageRecord_PinRecord_Type_Parse(name, value); + bool IsInitialized() const { + return true; } + ABSL_ATTRIBUTE_REINITIALIZES void Clear() PROTOBUF_FINAL; + #if defined(PROTOBUF_CUSTOM_VTABLE) + private: + static ::size_t ByteSizeLong(const ::google::protobuf::MessageLite& msg); + static ::uint8_t* _InternalSerialize( + const MessageLite& msg, ::uint8_t* target, + ::google::protobuf::io::EpsCopyOutputStream* stream); - typedef EdaDataFile_PackageRecord_PinRecord_ElectricalType ElectricalType; - static constexpr ElectricalType Electrical = - EdaDataFile_PackageRecord_PinRecord_ElectricalType_Electrical; - static constexpr ElectricalType NonElectrical = - EdaDataFile_PackageRecord_PinRecord_ElectricalType_NonElectrical; - static constexpr ElectricalType Undefined = - EdaDataFile_PackageRecord_PinRecord_ElectricalType_Undefined; - static inline bool ElectricalType_IsValid(int value) { - return EdaDataFile_PackageRecord_PinRecord_ElectricalType_IsValid(value); - } - static constexpr ElectricalType ElectricalType_MIN = - EdaDataFile_PackageRecord_PinRecord_ElectricalType_ElectricalType_MIN; - static constexpr ElectricalType ElectricalType_MAX = - EdaDataFile_PackageRecord_PinRecord_ElectricalType_ElectricalType_MAX; - static constexpr int ElectricalType_ARRAYSIZE = - EdaDataFile_PackageRecord_PinRecord_ElectricalType_ElectricalType_ARRAYSIZE; - static inline const ::PROTOBUF_NAMESPACE_ID::EnumDescriptor* - ElectricalType_descriptor() { - return EdaDataFile_PackageRecord_PinRecord_ElectricalType_descriptor(); - } - template - static inline const std::string& ElectricalType_Name(T enum_t_value) { - static_assert(::std::is_same::value || - ::std::is_integral::value, - "Incorrect type passed to function ElectricalType_Name."); - return EdaDataFile_PackageRecord_PinRecord_ElectricalType_Name(enum_t_value); - } - static inline bool ElectricalType_Parse(::PROTOBUF_NAMESPACE_ID::ConstStringParam name, - ElectricalType* value) { - return EdaDataFile_PackageRecord_PinRecord_ElectricalType_Parse(name, value); + public: + ::size_t ByteSizeLong() const { return ByteSizeLong(*this); } + ::uint8_t* _InternalSerialize( + ::uint8_t* target, + ::google::protobuf::io::EpsCopyOutputStream* stream) const { + return _InternalSerialize(*this, target, stream); } + #else // PROTOBUF_CUSTOM_VTABLE + ::size_t ByteSizeLong() const final; + ::uint8_t* _InternalSerialize( + ::uint8_t* target, + ::google::protobuf::io::EpsCopyOutputStream* stream) const final; + #endif // PROTOBUF_CUSTOM_VTABLE + int GetCachedSize() const { return _impl_._cached_size_.Get(); } - typedef EdaDataFile_PackageRecord_PinRecord_MountType MountType; - static constexpr MountType Smt = - EdaDataFile_PackageRecord_PinRecord_MountType_Smt; - static constexpr MountType RecommendedSmtPad = - EdaDataFile_PackageRecord_PinRecord_MountType_RecommendedSmtPad; - static constexpr MountType MT_ThroughHole = - EdaDataFile_PackageRecord_PinRecord_MountType_MT_ThroughHole; - static constexpr MountType RecommendedThroughHole = - EdaDataFile_PackageRecord_PinRecord_MountType_RecommendedThroughHole; - static constexpr MountType PressFit = - EdaDataFile_PackageRecord_PinRecord_MountType_PressFit; - static constexpr MountType NonBoard = - EdaDataFile_PackageRecord_PinRecord_MountType_NonBoard; - static constexpr MountType Hole = - EdaDataFile_PackageRecord_PinRecord_MountType_Hole; - static constexpr MountType MT_Undefined = - EdaDataFile_PackageRecord_PinRecord_MountType_MT_Undefined; - static inline bool MountType_IsValid(int value) { - return EdaDataFile_PackageRecord_PinRecord_MountType_IsValid(value); - } - static constexpr MountType MountType_MIN = - EdaDataFile_PackageRecord_PinRecord_MountType_MountType_MIN; - static constexpr MountType MountType_MAX = - EdaDataFile_PackageRecord_PinRecord_MountType_MountType_MAX; - static constexpr int MountType_ARRAYSIZE = - EdaDataFile_PackageRecord_PinRecord_MountType_MountType_ARRAYSIZE; - static inline const ::PROTOBUF_NAMESPACE_ID::EnumDescriptor* - MountType_descriptor() { - return EdaDataFile_PackageRecord_PinRecord_MountType_descriptor(); - } - template - static inline const std::string& MountType_Name(T enum_t_value) { - static_assert(::std::is_same::value || - ::std::is_integral::value, - "Incorrect type passed to function MountType_Name."); - return EdaDataFile_PackageRecord_PinRecord_MountType_Name(enum_t_value); - } - static inline bool MountType_Parse(::PROTOBUF_NAMESPACE_ID::ConstStringParam name, - MountType* value) { - return EdaDataFile_PackageRecord_PinRecord_MountType_Parse(name, value); + private: + void SharedCtor(::google::protobuf::Arena* arena); + static void SharedDtor(MessageLite& self); + void InternalSwap(EdaDataFile_NetRecord* other); + private: + template + friend ::absl::string_view( + ::google::protobuf::internal::GetAnyMessageName)(); + static ::absl::string_view FullMessageName() { return "Odb.Lib.Protobuf.EdaDataFile.NetRecord"; } + + protected: + explicit EdaDataFile_NetRecord(::google::protobuf::Arena* arena); + EdaDataFile_NetRecord(::google::protobuf::Arena* arena, const EdaDataFile_NetRecord& from); + EdaDataFile_NetRecord(::google::protobuf::Arena* arena, EdaDataFile_NetRecord&& from) noexcept + : EdaDataFile_NetRecord(arena) { + *this = ::std::move(from); } + const ::google::protobuf::internal::ClassData* GetClassData() const PROTOBUF_FINAL; + static void* PlacementNew_(const void*, void* mem, + ::google::protobuf::Arena* arena); + static constexpr auto InternalNewImpl_(); + static const ::google::protobuf::internal::ClassDataFull _class_data_; - // accessors ------------------------------------------------------- + public: + ::google::protobuf::Metadata GetMetadata() const; + // nested types ---------------------------------------------------- + using SubnetRecord = EdaDataFile_NetRecord_SubnetRecord; + // accessors ------------------------------------------------------- enum : int { + kSubnetRecordsFieldNumber = 4, + kPropertyRecordsFieldNumber = 5, + kAttributeLookupTableFieldNumber = 6, kNameFieldNumber = 1, - kTypeFieldNumber = 2, - kXCenterFieldNumber = 3, - kYCenterFieldNumber = 4, - kFinishedHoleSizeFieldNumber = 5, - kElectricalTypeFieldNumber = 6, - kMountTypeFieldNumber = 7, - kIdFieldNumber = 8, - kIndexFieldNumber = 9, + kAttributesIdStringFieldNumber = 2, + kIndexFieldNumber = 3, }; - // optional string name = 1; - bool has_name() const; - private: - bool _internal_has_name() const; - public: - void clear_name(); - const std::string& name() const; - template - void set_name(ArgT0&& arg0, ArgT... args); - std::string* mutable_name(); - PROTOBUF_NODISCARD std::string* release_name(); - void set_allocated_name(std::string* name); + // repeated .Odb.Lib.Protobuf.EdaDataFile.NetRecord.SubnetRecord subnetRecords = 4; + int subnetrecords_size() const; private: - const std::string& _internal_name() const; - inline PROTOBUF_ALWAYS_INLINE void _internal_set_name(const std::string& value); - std::string* _internal_mutable_name(); - public: + int _internal_subnetrecords_size() const; - // optional .Odb.Lib.Protobuf.EdaDataFile.PackageRecord.PinRecord.Type type = 2; - bool has_type() const; - private: - bool _internal_has_type() const; - public: - void clear_type(); - ::Odb::Lib::Protobuf::EdaDataFile_PackageRecord_PinRecord_Type type() const; - void set_type(::Odb::Lib::Protobuf::EdaDataFile_PackageRecord_PinRecord_Type value); - private: - ::Odb::Lib::Protobuf::EdaDataFile_PackageRecord_PinRecord_Type _internal_type() const; - void _internal_set_type(::Odb::Lib::Protobuf::EdaDataFile_PackageRecord_PinRecord_Type value); public: + void clear_subnetrecords() ; + ::Odb::Lib::Protobuf::EdaDataFile_NetRecord_SubnetRecord* mutable_subnetrecords(int index); + ::google::protobuf::RepeatedPtrField<::Odb::Lib::Protobuf::EdaDataFile_NetRecord_SubnetRecord>* mutable_subnetrecords(); - // optional float xCenter = 3; - bool has_xcenter() const; private: - bool _internal_has_xcenter() const; + const ::google::protobuf::RepeatedPtrField<::Odb::Lib::Protobuf::EdaDataFile_NetRecord_SubnetRecord>& _internal_subnetrecords() const; + ::google::protobuf::RepeatedPtrField<::Odb::Lib::Protobuf::EdaDataFile_NetRecord_SubnetRecord>* _internal_mutable_subnetrecords(); public: - void clear_xcenter(); - float xcenter() const; - void set_xcenter(float value); + const ::Odb::Lib::Protobuf::EdaDataFile_NetRecord_SubnetRecord& subnetrecords(int index) const; + ::Odb::Lib::Protobuf::EdaDataFile_NetRecord_SubnetRecord* add_subnetrecords(); + const ::google::protobuf::RepeatedPtrField<::Odb::Lib::Protobuf::EdaDataFile_NetRecord_SubnetRecord>& subnetrecords() const; + // repeated .Odb.Lib.Protobuf.PropertyRecord propertyRecords = 5; + int propertyrecords_size() const; private: - float _internal_xcenter() const; - void _internal_set_xcenter(float value); - public: + int _internal_propertyrecords_size() const; - // optional float yCenter = 4; - bool has_ycenter() const; - private: - bool _internal_has_ycenter() const; - public: - void clear_ycenter(); - float ycenter() const; - void set_ycenter(float value); - private: - float _internal_ycenter() const; - void _internal_set_ycenter(float value); public: + void clear_propertyrecords() ; + ::Odb::Lib::Protobuf::PropertyRecord* mutable_propertyrecords(int index); + ::google::protobuf::RepeatedPtrField<::Odb::Lib::Protobuf::PropertyRecord>* mutable_propertyrecords(); - // optional float finishedHoleSize = 5; - bool has_finishedholesize() const; private: - bool _internal_has_finishedholesize() const; + const ::google::protobuf::RepeatedPtrField<::Odb::Lib::Protobuf::PropertyRecord>& _internal_propertyrecords() const; + ::google::protobuf::RepeatedPtrField<::Odb::Lib::Protobuf::PropertyRecord>* _internal_mutable_propertyrecords(); public: - void clear_finishedholesize(); - float finishedholesize() const; - void set_finishedholesize(float value); + const ::Odb::Lib::Protobuf::PropertyRecord& propertyrecords(int index) const; + ::Odb::Lib::Protobuf::PropertyRecord* add_propertyrecords(); + const ::google::protobuf::RepeatedPtrField<::Odb::Lib::Protobuf::PropertyRecord>& propertyrecords() const; + // map attributeLookupTable = 6; + int attributelookuptable_size() const; private: - float _internal_finishedholesize() const; - void _internal_set_finishedholesize(float value); - public: + int _internal_attributelookuptable_size() const; - // optional .Odb.Lib.Protobuf.EdaDataFile.PackageRecord.PinRecord.ElectricalType electricalType = 6; - bool has_electricaltype() const; - private: - bool _internal_has_electricaltype() const; - public: - void clear_electricaltype(); - ::Odb::Lib::Protobuf::EdaDataFile_PackageRecord_PinRecord_ElectricalType electricaltype() const; - void set_electricaltype(::Odb::Lib::Protobuf::EdaDataFile_PackageRecord_PinRecord_ElectricalType value); - private: - ::Odb::Lib::Protobuf::EdaDataFile_PackageRecord_PinRecord_ElectricalType _internal_electricaltype() const; - void _internal_set_electricaltype(::Odb::Lib::Protobuf::EdaDataFile_PackageRecord_PinRecord_ElectricalType value); public: + void clear_attributelookuptable() ; + const ::google::protobuf::Map& attributelookuptable() const; + ::google::protobuf::Map* mutable_attributelookuptable(); - // optional .Odb.Lib.Protobuf.EdaDataFile.PackageRecord.PinRecord.MountType mountType = 7; - bool has_mounttype() const; - private: - bool _internal_has_mounttype() const; - public: - void clear_mounttype(); - ::Odb::Lib::Protobuf::EdaDataFile_PackageRecord_PinRecord_MountType mounttype() const; - void set_mounttype(::Odb::Lib::Protobuf::EdaDataFile_PackageRecord_PinRecord_MountType value); private: - ::Odb::Lib::Protobuf::EdaDataFile_PackageRecord_PinRecord_MountType _internal_mounttype() const; - void _internal_set_mounttype(::Odb::Lib::Protobuf::EdaDataFile_PackageRecord_PinRecord_MountType value); - public: + const ::google::protobuf::Map& _internal_attributelookuptable() const; + ::google::protobuf::Map* _internal_mutable_attributelookuptable(); - // optional uint32 id = 8; - bool has_id() const; - private: - bool _internal_has_id() const; public: - void clear_id(); - uint32_t id() const; - void set_id(uint32_t value); + // optional string name = 1; + bool has_name() const; + void clear_name() ; + const std::string& name() const; + template + void set_name(Arg_&& arg, Args_... args); + std::string* mutable_name(); + PROTOBUF_NODISCARD std::string* release_name(); + void set_allocated_name(std::string* value); + private: - uint32_t _internal_id() const; - void _internal_set_id(uint32_t value); + const std::string& _internal_name() const; + inline PROTOBUF_ALWAYS_INLINE void _internal_set_name( + const std::string& value); + std::string* _internal_mutable_name(); + public: + // optional string attributesIdString = 2; + bool has_attributesidstring() const; + void clear_attributesidstring() ; + const std::string& attributesidstring() const; + template + void set_attributesidstring(Arg_&& arg, Args_... args); + std::string* mutable_attributesidstring(); + PROTOBUF_NODISCARD std::string* release_attributesidstring(); + void set_allocated_attributesidstring(std::string* value); - // optional uint32 index = 9; - bool has_index() const; private: - bool _internal_has_index() const; + const std::string& _internal_attributesidstring() const; + inline PROTOBUF_ALWAYS_INLINE void _internal_set_attributesidstring( + const std::string& value); + std::string* _internal_mutable_attributesidstring(); + public: - void clear_index(); - uint32_t index() const; - void set_index(uint32_t value); + // optional uint32 index = 3; + bool has_index() const; + void clear_index() ; + ::uint32_t index() const; + void set_index(::uint32_t value); + private: - uint32_t _internal_index() const; - void _internal_set_index(uint32_t value); - public: + ::uint32_t _internal_index() const; + void _internal_set_index(::uint32_t value); - // @@protoc_insertion_point(class_scope:Odb.Lib.Protobuf.EdaDataFile.PackageRecord.PinRecord) + public: + // @@protoc_insertion_point(class_scope:Odb.Lib.Protobuf.EdaDataFile.NetRecord) private: class _Internal; - - template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; - typedef void InternalArenaConstructable_; - typedef void DestructorSkippable_; + friend class ::google::protobuf::internal::TcParser; + static const ::google::protobuf::internal::TcParseTable< + 3, 6, 3, + 89, 2> + _table_; + + friend class ::google::protobuf::MessageLite; + friend class ::google::protobuf::Arena; + template + friend class ::google::protobuf::Arena::InternalHelper; + using InternalArenaConstructable_ = void; + using DestructorSkippable_ = void; struct Impl_ { - ::PROTOBUF_NAMESPACE_ID::internal::HasBits<1> _has_bits_; - mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; - ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr name_; - int type_; - float xcenter_; - float ycenter_; - float finishedholesize_; - int electricaltype_; - int mounttype_; - uint32_t id_; - uint32_t index_; + inline explicit constexpr Impl_( + ::google::protobuf::internal::ConstantInitialized) noexcept; + inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* arena); + inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* arena, const Impl_& from, + const EdaDataFile_NetRecord& from_msg); + ::google::protobuf::internal::HasBits<1> _has_bits_; + ::google::protobuf::internal::CachedSize _cached_size_; + ::google::protobuf::RepeatedPtrField< ::Odb::Lib::Protobuf::EdaDataFile_NetRecord_SubnetRecord > subnetrecords_; + ::google::protobuf::RepeatedPtrField< ::Odb::Lib::Protobuf::PropertyRecord > propertyrecords_; + ::google::protobuf::internal::MapField + attributelookuptable_; + ::google::protobuf::internal::ArenaStringPtr name_; + ::google::protobuf::internal::ArenaStringPtr attributesidstring_; + ::uint32_t index_; + PROTOBUF_TSAN_DECLARE_MEMBER }; union { Impl_ _impl_; }; friend struct ::TableStruct_edadatafile_2eproto; }; // ------------------------------------------------------------------- -class ODBDESIGN_EXPORT EdaDataFile_PackageRecord final : - public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:Odb.Lib.Protobuf.EdaDataFile.PackageRecord) */ { +class ODBDESIGN_EXPORT EdaDataFile_PackageRecord final : public ::google::protobuf::Message +/* @@protoc_insertion_point(class_definition:Odb.Lib.Protobuf.EdaDataFile.PackageRecord) */ { public: inline EdaDataFile_PackageRecord() : EdaDataFile_PackageRecord(nullptr) {} - ~EdaDataFile_PackageRecord() override; - explicit PROTOBUF_CONSTEXPR EdaDataFile_PackageRecord(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); + ~EdaDataFile_PackageRecord() PROTOBUF_FINAL; - EdaDataFile_PackageRecord(const EdaDataFile_PackageRecord& from); - EdaDataFile_PackageRecord(EdaDataFile_PackageRecord&& from) noexcept - : EdaDataFile_PackageRecord() { - *this = ::std::move(from); +#if defined(PROTOBUF_CUSTOM_VTABLE) + void operator delete(EdaDataFile_PackageRecord* msg, std::destroying_delete_t) { + SharedDtor(*msg); + ::google::protobuf::internal::SizedDelete(msg, sizeof(EdaDataFile_PackageRecord)); } +#endif + template + explicit PROTOBUF_CONSTEXPR EdaDataFile_PackageRecord( + ::google::protobuf::internal::ConstantInitialized); + + inline EdaDataFile_PackageRecord(const EdaDataFile_PackageRecord& from) : EdaDataFile_PackageRecord(nullptr, from) {} + inline EdaDataFile_PackageRecord(EdaDataFile_PackageRecord&& from) noexcept + : EdaDataFile_PackageRecord(nullptr, std::move(from)) {} inline EdaDataFile_PackageRecord& operator=(const EdaDataFile_PackageRecord& from) { CopyFrom(from); return *this; } inline EdaDataFile_PackageRecord& operator=(EdaDataFile_PackageRecord&& from) noexcept { if (this == &from) return *this; - if (GetOwningArena() == from.GetOwningArena() - #ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetOwningArena() != nullptr - #endif // !PROTOBUF_FORCE_COPY_IN_MOVE - ) { + if (::google::protobuf::internal::CanMoveWithInternalSwap(GetArena(), from.GetArena())) { InternalSwap(&from); } else { CopyFrom(from); @@ -2006,13 +2375,22 @@ class ODBDESIGN_EXPORT EdaDataFile_PackageRecord final : return *this; } - static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { + inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const + ABSL_ATTRIBUTE_LIFETIME_BOUND { + return _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance); + } + inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() + ABSL_ATTRIBUTE_LIFETIME_BOUND { + return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); + } + + static const ::google::protobuf::Descriptor* descriptor() { return GetDescriptor(); } - static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { + static const ::google::protobuf::Descriptor* GetDescriptor() { return default_instance().GetMetadata().descriptor; } - static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { + static const ::google::protobuf::Reflection* GetReflection() { return default_instance().GetMetadata().reflection; } static const EdaDataFile_PackageRecord& default_instance() { @@ -2020,86 +2398,96 @@ class ODBDESIGN_EXPORT EdaDataFile_PackageRecord final : } static inline const EdaDataFile_PackageRecord* internal_default_instance() { return reinterpret_cast( - &_EdaDataFile_PackageRecord_default_instance_); - } - static constexpr int kIndexInFileMessages = - 8; - - friend void swap(EdaDataFile_PackageRecord& a, EdaDataFile_PackageRecord& b) { - a.Swap(&b); + &_EdaDataFile_PackageRecord_default_instance_); } + static constexpr int kIndexInFileMessages = 8; + friend void swap(EdaDataFile_PackageRecord& a, EdaDataFile_PackageRecord& b) { a.Swap(&b); } inline void Swap(EdaDataFile_PackageRecord* other) { if (other == this) return; - #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetOwningArena() != nullptr && - GetOwningArena() == other->GetOwningArena()) { - #else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetOwningArena() == other->GetOwningArena()) { - #endif // !PROTOBUF_FORCE_COPY_IN_SWAP + if (::google::protobuf::internal::CanUseInternalSwap(GetArena(), other->GetArena())) { InternalSwap(other); } else { - ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); + ::google::protobuf::internal::GenericSwap(this, other); } } void UnsafeArenaSwap(EdaDataFile_PackageRecord* other) { if (other == this) return; - GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); + ABSL_DCHECK(GetArena() == other->GetArena()); InternalSwap(other); } // implements Message ---------------------------------------------- - EdaDataFile_PackageRecord* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); + EdaDataFile_PackageRecord* New(::google::protobuf::Arena* arena = nullptr) const { + return ::google::protobuf::Message::DefaultConstruct(arena); } - using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; + using ::google::protobuf::Message::CopyFrom; void CopyFrom(const EdaDataFile_PackageRecord& from); - using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; - void MergeFrom( const EdaDataFile_PackageRecord& from) { - EdaDataFile_PackageRecord::MergeImpl(*this, from); - } - private: - static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg); - public: - PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; - bool IsInitialized() const final; - - size_t ByteSizeLong() const final; - const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final; - uint8_t* _InternalSerialize( - uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const final { return _impl_._cached_size_.Get(); } + using ::google::protobuf::Message::MergeFrom; + void MergeFrom(const EdaDataFile_PackageRecord& from) { EdaDataFile_PackageRecord::MergeImpl(*this, from); } private: - void SharedCtor(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned); - void SharedDtor(); - void SetCachedSize(int size) const final; - void InternalSwap(EdaDataFile_PackageRecord* other); + static void MergeImpl( + ::google::protobuf::MessageLite& to_msg, + const ::google::protobuf::MessageLite& from_msg); - private: - friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; - static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { - return "Odb.Lib.Protobuf.EdaDataFile.PackageRecord"; + public: + bool IsInitialized() const { + return true; } - protected: - explicit EdaDataFile_PackageRecord(::PROTOBUF_NAMESPACE_ID::Arena* arena, - bool is_message_owned = false); + ABSL_ATTRIBUTE_REINITIALIZES void Clear() PROTOBUF_FINAL; + #if defined(PROTOBUF_CUSTOM_VTABLE) private: - static void ArenaDtor(void* object); - public: + static ::size_t ByteSizeLong(const ::google::protobuf::MessageLite& msg); + static ::uint8_t* _InternalSerialize( + const MessageLite& msg, ::uint8_t* target, + ::google::protobuf::io::EpsCopyOutputStream* stream); - static const ClassData _class_data_; - const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final; + public: + ::size_t ByteSizeLong() const { return ByteSizeLong(*this); } + ::uint8_t* _InternalSerialize( + ::uint8_t* target, + ::google::protobuf::io::EpsCopyOutputStream* stream) const { + return _InternalSerialize(*this, target, stream); + } + #else // PROTOBUF_CUSTOM_VTABLE + ::size_t ByteSizeLong() const final; + ::uint8_t* _InternalSerialize( + ::uint8_t* target, + ::google::protobuf::io::EpsCopyOutputStream* stream) const final; + #endif // PROTOBUF_CUSTOM_VTABLE + int GetCachedSize() const { return _impl_._cached_size_.Get(); } - ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; + private: + void SharedCtor(::google::protobuf::Arena* arena); + static void SharedDtor(MessageLite& self); + void InternalSwap(EdaDataFile_PackageRecord* other); + private: + template + friend ::absl::string_view( + ::google::protobuf::internal::GetAnyMessageName)(); + static ::absl::string_view FullMessageName() { return "Odb.Lib.Protobuf.EdaDataFile.PackageRecord"; } + + protected: + explicit EdaDataFile_PackageRecord(::google::protobuf::Arena* arena); + EdaDataFile_PackageRecord(::google::protobuf::Arena* arena, const EdaDataFile_PackageRecord& from); + EdaDataFile_PackageRecord(::google::protobuf::Arena* arena, EdaDataFile_PackageRecord&& from) noexcept + : EdaDataFile_PackageRecord(arena) { + *this = ::std::move(from); + } + const ::google::protobuf::internal::ClassData* GetClassData() const PROTOBUF_FINAL; + static void* PlacementNew_(const void*, void* mem, + ::google::protobuf::Arena* arena); + static constexpr auto InternalNewImpl_(); + static const ::google::protobuf::internal::ClassDataFull _class_data_; + public: + ::google::protobuf::Metadata GetMetadata() const; // nested types ---------------------------------------------------- - - typedef EdaDataFile_PackageRecord_OutlineRecord OutlineRecord; - typedef EdaDataFile_PackageRecord_PinRecord PinRecord; + using OutlineRecord = EdaDataFile_PackageRecord_OutlineRecord; + using PinRecord = EdaDataFile_PackageRecord_PinRecord; // accessors ------------------------------------------------------- - enum : int { kPinRecordsFieldNumber = 8, kPinRecordsByNameFieldNumber = 9, @@ -2118,501 +2506,327 @@ class ODBDESIGN_EXPORT EdaDataFile_PackageRecord final : int pinrecords_size() const; private: int _internal_pinrecords_size() const; + public: - void clear_pinrecords(); + void clear_pinrecords() ; ::Odb::Lib::Protobuf::EdaDataFile_PackageRecord_PinRecord* mutable_pinrecords(int index); - ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::Odb::Lib::Protobuf::EdaDataFile_PackageRecord_PinRecord >* - mutable_pinrecords(); + ::google::protobuf::RepeatedPtrField<::Odb::Lib::Protobuf::EdaDataFile_PackageRecord_PinRecord>* mutable_pinrecords(); + private: - const ::Odb::Lib::Protobuf::EdaDataFile_PackageRecord_PinRecord& _internal_pinrecords(int index) const; - ::Odb::Lib::Protobuf::EdaDataFile_PackageRecord_PinRecord* _internal_add_pinrecords(); + const ::google::protobuf::RepeatedPtrField<::Odb::Lib::Protobuf::EdaDataFile_PackageRecord_PinRecord>& _internal_pinrecords() const; + ::google::protobuf::RepeatedPtrField<::Odb::Lib::Protobuf::EdaDataFile_PackageRecord_PinRecord>* _internal_mutable_pinrecords(); public: const ::Odb::Lib::Protobuf::EdaDataFile_PackageRecord_PinRecord& pinrecords(int index) const; ::Odb::Lib::Protobuf::EdaDataFile_PackageRecord_PinRecord* add_pinrecords(); - const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::Odb::Lib::Protobuf::EdaDataFile_PackageRecord_PinRecord >& - pinrecords() const; - + const ::google::protobuf::RepeatedPtrField<::Odb::Lib::Protobuf::EdaDataFile_PackageRecord_PinRecord>& pinrecords() const; // map pinRecordsByName = 9; int pinrecordsbyname_size() const; private: int _internal_pinrecordsbyname_size() const; + public: - void clear_pinrecordsbyname(); + void clear_pinrecordsbyname() ; + const ::google::protobuf::Map& pinrecordsbyname() const; + ::google::protobuf::Map* mutable_pinrecordsbyname(); + private: - const ::PROTOBUF_NAMESPACE_ID::Map< std::string, ::Odb::Lib::Protobuf::EdaDataFile_PackageRecord_PinRecord >& - _internal_pinrecordsbyname() const; - ::PROTOBUF_NAMESPACE_ID::Map< std::string, ::Odb::Lib::Protobuf::EdaDataFile_PackageRecord_PinRecord >* - _internal_mutable_pinrecordsbyname(); - public: - const ::PROTOBUF_NAMESPACE_ID::Map< std::string, ::Odb::Lib::Protobuf::EdaDataFile_PackageRecord_PinRecord >& - pinrecordsbyname() const; - ::PROTOBUF_NAMESPACE_ID::Map< std::string, ::Odb::Lib::Protobuf::EdaDataFile_PackageRecord_PinRecord >* - mutable_pinrecordsbyname(); + const ::google::protobuf::Map& _internal_pinrecordsbyname() const; + ::google::protobuf::Map* _internal_mutable_pinrecordsbyname(); + public: // repeated .Odb.Lib.Protobuf.PropertyRecord propertyRecords = 10; int propertyrecords_size() const; private: int _internal_propertyrecords_size() const; + public: - void clear_propertyrecords(); + void clear_propertyrecords() ; ::Odb::Lib::Protobuf::PropertyRecord* mutable_propertyrecords(int index); - ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::Odb::Lib::Protobuf::PropertyRecord >* - mutable_propertyrecords(); + ::google::protobuf::RepeatedPtrField<::Odb::Lib::Protobuf::PropertyRecord>* mutable_propertyrecords(); + private: - const ::Odb::Lib::Protobuf::PropertyRecord& _internal_propertyrecords(int index) const; - ::Odb::Lib::Protobuf::PropertyRecord* _internal_add_propertyrecords(); + const ::google::protobuf::RepeatedPtrField<::Odb::Lib::Protobuf::PropertyRecord>& _internal_propertyrecords() const; + ::google::protobuf::RepeatedPtrField<::Odb::Lib::Protobuf::PropertyRecord>* _internal_mutable_propertyrecords(); public: const ::Odb::Lib::Protobuf::PropertyRecord& propertyrecords(int index) const; ::Odb::Lib::Protobuf::PropertyRecord* add_propertyrecords(); - const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::Odb::Lib::Protobuf::PropertyRecord >& - propertyrecords() const; - + const ::google::protobuf::RepeatedPtrField<::Odb::Lib::Protobuf::PropertyRecord>& propertyrecords() const; // repeated .Odb.Lib.Protobuf.EdaDataFile.PackageRecord.OutlineRecord outlineRecords = 11; int outlinerecords_size() const; private: int _internal_outlinerecords_size() const; + public: - void clear_outlinerecords(); + void clear_outlinerecords() ; ::Odb::Lib::Protobuf::EdaDataFile_PackageRecord_OutlineRecord* mutable_outlinerecords(int index); - ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::Odb::Lib::Protobuf::EdaDataFile_PackageRecord_OutlineRecord >* - mutable_outlinerecords(); + ::google::protobuf::RepeatedPtrField<::Odb::Lib::Protobuf::EdaDataFile_PackageRecord_OutlineRecord>* mutable_outlinerecords(); + private: - const ::Odb::Lib::Protobuf::EdaDataFile_PackageRecord_OutlineRecord& _internal_outlinerecords(int index) const; - ::Odb::Lib::Protobuf::EdaDataFile_PackageRecord_OutlineRecord* _internal_add_outlinerecords(); + const ::google::protobuf::RepeatedPtrField<::Odb::Lib::Protobuf::EdaDataFile_PackageRecord_OutlineRecord>& _internal_outlinerecords() const; + ::google::protobuf::RepeatedPtrField<::Odb::Lib::Protobuf::EdaDataFile_PackageRecord_OutlineRecord>* _internal_mutable_outlinerecords(); public: const ::Odb::Lib::Protobuf::EdaDataFile_PackageRecord_OutlineRecord& outlinerecords(int index) const; ::Odb::Lib::Protobuf::EdaDataFile_PackageRecord_OutlineRecord* add_outlinerecords(); - const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::Odb::Lib::Protobuf::EdaDataFile_PackageRecord_OutlineRecord >& - outlinerecords() const; - + const ::google::protobuf::RepeatedPtrField<::Odb::Lib::Protobuf::EdaDataFile_PackageRecord_OutlineRecord>& outlinerecords() const; // map attributeLookupTable = 12; int attributelookuptable_size() const; private: int _internal_attributelookuptable_size() const; + public: - void clear_attributelookuptable(); + void clear_attributelookuptable() ; + const ::google::protobuf::Map& attributelookuptable() const; + ::google::protobuf::Map* mutable_attributelookuptable(); + private: - const ::PROTOBUF_NAMESPACE_ID::Map< std::string, std::string >& - _internal_attributelookuptable() const; - ::PROTOBUF_NAMESPACE_ID::Map< std::string, std::string >* - _internal_mutable_attributelookuptable(); - public: - const ::PROTOBUF_NAMESPACE_ID::Map< std::string, std::string >& - attributelookuptable() const; - ::PROTOBUF_NAMESPACE_ID::Map< std::string, std::string >* - mutable_attributelookuptable(); + const ::google::protobuf::Map& _internal_attributelookuptable() const; + ::google::protobuf::Map* _internal_mutable_attributelookuptable(); + public: // optional string name = 1; bool has_name() const; - private: - bool _internal_has_name() const; - public: - void clear_name(); + void clear_name() ; const std::string& name() const; - template - void set_name(ArgT0&& arg0, ArgT... args); + template + void set_name(Arg_&& arg, Args_... args); std::string* mutable_name(); PROTOBUF_NODISCARD std::string* release_name(); - void set_allocated_name(std::string* name); + void set_allocated_name(std::string* value); + private: const std::string& _internal_name() const; - inline PROTOBUF_ALWAYS_INLINE void _internal_set_name(const std::string& value); + inline PROTOBUF_ALWAYS_INLINE void _internal_set_name( + const std::string& value); std::string* _internal_mutable_name(); - public: + public: // optional string attributesIdString = 7; bool has_attributesidstring() const; - private: - bool _internal_has_attributesidstring() const; - public: - void clear_attributesidstring(); + void clear_attributesidstring() ; const std::string& attributesidstring() const; - template - void set_attributesidstring(ArgT0&& arg0, ArgT... args); + template + void set_attributesidstring(Arg_&& arg, Args_... args); std::string* mutable_attributesidstring(); PROTOBUF_NODISCARD std::string* release_attributesidstring(); - void set_allocated_attributesidstring(std::string* attributesidstring); + void set_allocated_attributesidstring(std::string* value); + private: const std::string& _internal_attributesidstring() const; - inline PROTOBUF_ALWAYS_INLINE void _internal_set_attributesidstring(const std::string& value); + inline PROTOBUF_ALWAYS_INLINE void _internal_set_attributesidstring( + const std::string& value); std::string* _internal_mutable_attributesidstring(); - public: + public: // optional float pitch = 2; bool has_pitch() const; - private: - bool _internal_has_pitch() const; - public: - void clear_pitch(); + void clear_pitch() ; float pitch() const; void set_pitch(float value); + private: float _internal_pitch() const; void _internal_set_pitch(float value); - public: + public: // optional float xMin = 3; bool has_xmin() const; - private: - bool _internal_has_xmin() const; - public: - void clear_xmin(); + void clear_xmin() ; float xmin() const; void set_xmin(float value); + private: float _internal_xmin() const; void _internal_set_xmin(float value); - public: + public: // optional float yMin = 4; bool has_ymin() const; - private: - bool _internal_has_ymin() const; - public: - void clear_ymin(); + void clear_ymin() ; float ymin() const; void set_ymin(float value); + private: float _internal_ymin() const; void _internal_set_ymin(float value); - public: + public: // optional float xMax = 5; bool has_xmax() const; - private: - bool _internal_has_xmax() const; - public: - void clear_xmax(); + void clear_xmax() ; float xmax() const; void set_xmax(float value); + private: float _internal_xmax() const; void _internal_set_xmax(float value); - public: + public: // optional float yMax = 6; bool has_ymax() const; - private: - bool _internal_has_ymax() const; - public: - void clear_ymax(); + void clear_ymax() ; float ymax() const; void set_ymax(float value); + private: float _internal_ymax() const; void _internal_set_ymax(float value); - public: + public: // @@protoc_insertion_point(class_scope:Odb.Lib.Protobuf.EdaDataFile.PackageRecord) private: class _Internal; - - template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; - typedef void InternalArenaConstructable_; - typedef void DestructorSkippable_; + friend class ::google::protobuf::internal::TcParser; + static const ::google::protobuf::internal::TcParseTable< + 4, 12, 6, + 117, 2> + _table_; + + friend class ::google::protobuf::MessageLite; + friend class ::google::protobuf::Arena; + template + friend class ::google::protobuf::Arena::InternalHelper; + using InternalArenaConstructable_ = void; + using DestructorSkippable_ = void; struct Impl_ { - ::PROTOBUF_NAMESPACE_ID::internal::HasBits<1> _has_bits_; - mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; - ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::Odb::Lib::Protobuf::EdaDataFile_PackageRecord_PinRecord > pinrecords_; - ::PROTOBUF_NAMESPACE_ID::internal::MapField< - EdaDataFile_PackageRecord_PinRecordsByNameEntry_DoNotUse, - std::string, ::Odb::Lib::Protobuf::EdaDataFile_PackageRecord_PinRecord, - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::TYPE_STRING, - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::TYPE_MESSAGE> pinrecordsbyname_; - ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::Odb::Lib::Protobuf::PropertyRecord > propertyrecords_; - ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::Odb::Lib::Protobuf::EdaDataFile_PackageRecord_OutlineRecord > outlinerecords_; - ::PROTOBUF_NAMESPACE_ID::internal::MapField< - EdaDataFile_PackageRecord_AttributeLookupTableEntry_DoNotUse, - std::string, std::string, - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::TYPE_STRING, - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::TYPE_STRING> attributelookuptable_; - ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr name_; - ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr attributesidstring_; + inline explicit constexpr Impl_( + ::google::protobuf::internal::ConstantInitialized) noexcept; + inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* arena); + inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* arena, const Impl_& from, + const EdaDataFile_PackageRecord& from_msg); + ::google::protobuf::internal::HasBits<1> _has_bits_; + ::google::protobuf::internal::CachedSize _cached_size_; + ::google::protobuf::RepeatedPtrField< ::Odb::Lib::Protobuf::EdaDataFile_PackageRecord_PinRecord > pinrecords_; + ::google::protobuf::internal::MapField + pinrecordsbyname_; + ::google::protobuf::RepeatedPtrField< ::Odb::Lib::Protobuf::PropertyRecord > propertyrecords_; + ::google::protobuf::RepeatedPtrField< ::Odb::Lib::Protobuf::EdaDataFile_PackageRecord_OutlineRecord > outlinerecords_; + ::google::protobuf::internal::MapField + attributelookuptable_; + ::google::protobuf::internal::ArenaStringPtr name_; + ::google::protobuf::internal::ArenaStringPtr attributesidstring_; float pitch_; float xmin_; float ymin_; float xmax_; float ymax_; + PROTOBUF_TSAN_DECLARE_MEMBER }; union { Impl_ _impl_; }; friend struct ::TableStruct_edadatafile_2eproto; }; // ------------------------------------------------------------------- -class ODBDESIGN_EXPORT EdaDataFile_FeatureGroupRecord final : - public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:Odb.Lib.Protobuf.EdaDataFile.FeatureGroupRecord) */ { +class EdaDataFile_NetRecordsByNameEntry_DoNotUse final + : public ::google::protobuf::internal::MapEntry< + std::string, ::google::protobuf::Message, + ::google::protobuf::internal::WireFormatLite::TYPE_STRING, + ::google::protobuf::internal::WireFormatLite::TYPE_MESSAGE> { public: - inline EdaDataFile_FeatureGroupRecord() : EdaDataFile_FeatureGroupRecord(nullptr) {} - ~EdaDataFile_FeatureGroupRecord() override; - explicit PROTOBUF_CONSTEXPR EdaDataFile_FeatureGroupRecord(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); - - EdaDataFile_FeatureGroupRecord(const EdaDataFile_FeatureGroupRecord& from); - EdaDataFile_FeatureGroupRecord(EdaDataFile_FeatureGroupRecord&& from) noexcept - : EdaDataFile_FeatureGroupRecord() { - *this = ::std::move(from); - } - - inline EdaDataFile_FeatureGroupRecord& operator=(const EdaDataFile_FeatureGroupRecord& from) { - CopyFrom(from); - return *this; - } - inline EdaDataFile_FeatureGroupRecord& operator=(EdaDataFile_FeatureGroupRecord&& from) noexcept { - if (this == &from) return *this; - if (GetOwningArena() == from.GetOwningArena() - #ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetOwningArena() != nullptr - #endif // !PROTOBUF_FORCE_COPY_IN_MOVE - ) { - InternalSwap(&from); - } else { - CopyFrom(from); - } - return *this; - } - - static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { - return GetDescriptor(); - } - static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { - return default_instance().GetMetadata().descriptor; - } - static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { - return default_instance().GetMetadata().reflection; - } - static const EdaDataFile_FeatureGroupRecord& default_instance() { - return *internal_default_instance(); - } - static inline const EdaDataFile_FeatureGroupRecord* internal_default_instance() { - return reinterpret_cast( - &_EdaDataFile_FeatureGroupRecord_default_instance_); - } - static constexpr int kIndexInFileMessages = - 9; - - friend void swap(EdaDataFile_FeatureGroupRecord& a, EdaDataFile_FeatureGroupRecord& b) { - a.Swap(&b); - } - inline void Swap(EdaDataFile_FeatureGroupRecord* other) { - if (other == this) return; - #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetOwningArena() != nullptr && - GetOwningArena() == other->GetOwningArena()) { - #else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetOwningArena() == other->GetOwningArena()) { - #endif // !PROTOBUF_FORCE_COPY_IN_SWAP - InternalSwap(other); - } else { - ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); - } - } - void UnsafeArenaSwap(EdaDataFile_FeatureGroupRecord* other) { - if (other == this) return; - GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); - InternalSwap(other); - } - - // implements Message ---------------------------------------------- - - EdaDataFile_FeatureGroupRecord* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); - } - using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; - void CopyFrom(const EdaDataFile_FeatureGroupRecord& from); - using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; - void MergeFrom( const EdaDataFile_FeatureGroupRecord& from) { - EdaDataFile_FeatureGroupRecord::MergeImpl(*this, from); - } - private: - static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg); - public: - PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; - bool IsInitialized() const final; - - size_t ByteSizeLong() const final; - const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final; - uint8_t* _InternalSerialize( - uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const final { return _impl_._cached_size_.Get(); } - - private: - void SharedCtor(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned); - void SharedDtor(); - void SetCachedSize(int size) const final; - void InternalSwap(EdaDataFile_FeatureGroupRecord* other); - - private: - friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; - static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { - return "Odb.Lib.Protobuf.EdaDataFile.FeatureGroupRecord"; + using SuperType = ::google::protobuf::internal::MapEntry< + std::string, ::google::protobuf::Message, + ::google::protobuf::internal::WireFormatLite::TYPE_STRING, + ::google::protobuf::internal::WireFormatLite::TYPE_MESSAGE>; + EdaDataFile_NetRecordsByNameEntry_DoNotUse(); + template + explicit PROTOBUF_CONSTEXPR EdaDataFile_NetRecordsByNameEntry_DoNotUse( + ::google::protobuf::internal::ConstantInitialized); + explicit EdaDataFile_NetRecordsByNameEntry_DoNotUse(::google::protobuf::Arena* arena); + static const EdaDataFile_NetRecordsByNameEntry_DoNotUse* internal_default_instance() { + return reinterpret_cast( + &_EdaDataFile_NetRecordsByNameEntry_DoNotUse_default_instance_); } - protected: - explicit EdaDataFile_FeatureGroupRecord(::PROTOBUF_NAMESPACE_ID::Arena* arena, - bool is_message_owned = false); - public: - - static const ClassData _class_data_; - const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final; - - ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; - - // nested types ---------------------------------------------------- - - // accessors ------------------------------------------------------- - - enum : int { - kPropertyRecordsFieldNumber = 2, - kFeatureIdRecordsFieldNumber = 3, - kTypeFieldNumber = 1, - }; - // repeated .Odb.Lib.Protobuf.PropertyRecord propertyRecords = 2; - int propertyrecords_size() const; - private: - int _internal_propertyrecords_size() const; - public: - void clear_propertyrecords(); - ::Odb::Lib::Protobuf::PropertyRecord* mutable_propertyrecords(int index); - ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::Odb::Lib::Protobuf::PropertyRecord >* - mutable_propertyrecords(); - private: - const ::Odb::Lib::Protobuf::PropertyRecord& _internal_propertyrecords(int index) const; - ::Odb::Lib::Protobuf::PropertyRecord* _internal_add_propertyrecords(); - public: - const ::Odb::Lib::Protobuf::PropertyRecord& propertyrecords(int index) const; - ::Odb::Lib::Protobuf::PropertyRecord* add_propertyrecords(); - const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::Odb::Lib::Protobuf::PropertyRecord >& - propertyrecords() const; - - // repeated .Odb.Lib.Protobuf.EdaDataFile.FeatureIdRecord featureIdRecords = 3; - int featureidrecords_size() const; - private: - int _internal_featureidrecords_size() const; - public: - void clear_featureidrecords(); - ::Odb::Lib::Protobuf::EdaDataFile_FeatureIdRecord* mutable_featureidrecords(int index); - ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::Odb::Lib::Protobuf::EdaDataFile_FeatureIdRecord >* - mutable_featureidrecords(); - private: - const ::Odb::Lib::Protobuf::EdaDataFile_FeatureIdRecord& _internal_featureidrecords(int index) const; - ::Odb::Lib::Protobuf::EdaDataFile_FeatureIdRecord* _internal_add_featureidrecords(); - public: - const ::Odb::Lib::Protobuf::EdaDataFile_FeatureIdRecord& featureidrecords(int index) const; - ::Odb::Lib::Protobuf::EdaDataFile_FeatureIdRecord* add_featureidrecords(); - const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::Odb::Lib::Protobuf::EdaDataFile_FeatureIdRecord >& - featureidrecords() const; - // optional string type = 1; - bool has_type() const; - private: - bool _internal_has_type() const; - public: - void clear_type(); - const std::string& type() const; - template - void set_type(ArgT0&& arg0, ArgT... args); - std::string* mutable_type(); - PROTOBUF_NODISCARD std::string* release_type(); - void set_allocated_type(std::string* type); - private: - const std::string& _internal_type() const; - inline PROTOBUF_ALWAYS_INLINE void _internal_set_type(const std::string& value); - std::string* _internal_mutable_type(); - public: - // @@protoc_insertion_point(class_scope:Odb.Lib.Protobuf.EdaDataFile.FeatureGroupRecord) private: - class _Internal; - - template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; - typedef void InternalArenaConstructable_; - typedef void DestructorSkippable_; - struct Impl_ { - ::PROTOBUF_NAMESPACE_ID::internal::HasBits<1> _has_bits_; - mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; - ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::Odb::Lib::Protobuf::PropertyRecord > propertyrecords_; - ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::Odb::Lib::Protobuf::EdaDataFile_FeatureIdRecord > featureidrecords_; - ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr type_; - }; - union { Impl_ _impl_; }; + friend class ::google::protobuf::MessageLite; friend struct ::TableStruct_edadatafile_2eproto; -}; -// ------------------------------------------------------------------- -class EdaDataFile_NetRecordsByNameEntry_DoNotUse : public ::PROTOBUF_NAMESPACE_ID::internal::MapEntry { -public: - typedef ::PROTOBUF_NAMESPACE_ID::internal::MapEntry SuperType; - EdaDataFile_NetRecordsByNameEntry_DoNotUse(); - explicit PROTOBUF_CONSTEXPR EdaDataFile_NetRecordsByNameEntry_DoNotUse( - ::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); - explicit EdaDataFile_NetRecordsByNameEntry_DoNotUse(::PROTOBUF_NAMESPACE_ID::Arena* arena); - void MergeFrom(const EdaDataFile_NetRecordsByNameEntry_DoNotUse& other); - static const EdaDataFile_NetRecordsByNameEntry_DoNotUse* internal_default_instance() { return reinterpret_cast(&_EdaDataFile_NetRecordsByNameEntry_DoNotUse_default_instance_); } - static bool ValidateKey(std::string* s) { - return ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String(s->data(), static_cast(s->size()), ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::PARSE, "Odb.Lib.Protobuf.EdaDataFile.NetRecordsByNameEntry.key"); - } - static bool ValidateValue(void*) { return true; } - using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; - ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; - friend struct ::TableStruct_edadatafile_2eproto; + friend class ::google::protobuf::internal::TcParser; + static const ::google::protobuf::internal::TcParseTable< + 1, 2, 1, + 62, 2> + _table_; + + const ::google::protobuf::internal::ClassData* GetClassData() const PROTOBUF_FINAL; + static void* PlacementNew_(const void*, void* mem, + ::google::protobuf::Arena* arena); + static constexpr auto InternalNewImpl_(); + static const ::google::protobuf::internal::ClassDataFull _class_data_; }; - // ------------------------------------------------------------------- -class EdaDataFile_PackageRecordsByNameEntry_DoNotUse : public ::PROTOBUF_NAMESPACE_ID::internal::MapEntry { -public: - typedef ::PROTOBUF_NAMESPACE_ID::internal::MapEntry SuperType; +class EdaDataFile_PackageRecordsByNameEntry_DoNotUse final + : public ::google::protobuf::internal::MapEntry< + std::string, ::google::protobuf::Message, + ::google::protobuf::internal::WireFormatLite::TYPE_STRING, + ::google::protobuf::internal::WireFormatLite::TYPE_MESSAGE> { + public: + using SuperType = ::google::protobuf::internal::MapEntry< + std::string, ::google::protobuf::Message, + ::google::protobuf::internal::WireFormatLite::TYPE_STRING, + ::google::protobuf::internal::WireFormatLite::TYPE_MESSAGE>; EdaDataFile_PackageRecordsByNameEntry_DoNotUse(); + template explicit PROTOBUF_CONSTEXPR EdaDataFile_PackageRecordsByNameEntry_DoNotUse( - ::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); - explicit EdaDataFile_PackageRecordsByNameEntry_DoNotUse(::PROTOBUF_NAMESPACE_ID::Arena* arena); - void MergeFrom(const EdaDataFile_PackageRecordsByNameEntry_DoNotUse& other); - static const EdaDataFile_PackageRecordsByNameEntry_DoNotUse* internal_default_instance() { return reinterpret_cast(&_EdaDataFile_PackageRecordsByNameEntry_DoNotUse_default_instance_); } - static bool ValidateKey(std::string* s) { - return ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String(s->data(), static_cast(s->size()), ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::PARSE, "Odb.Lib.Protobuf.EdaDataFile.PackageRecordsByNameEntry.key"); - } - static bool ValidateValue(void*) { return true; } - using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; - ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; + ::google::protobuf::internal::ConstantInitialized); + explicit EdaDataFile_PackageRecordsByNameEntry_DoNotUse(::google::protobuf::Arena* arena); + static const EdaDataFile_PackageRecordsByNameEntry_DoNotUse* internal_default_instance() { + return reinterpret_cast( + &_EdaDataFile_PackageRecordsByNameEntry_DoNotUse_default_instance_); + } + + + private: + friend class ::google::protobuf::MessageLite; friend struct ::TableStruct_edadatafile_2eproto; -}; + friend class ::google::protobuf::internal::TcParser; + static const ::google::protobuf::internal::TcParseTable< + 1, 2, 1, + 66, 2> + _table_; + + const ::google::protobuf::internal::ClassData* GetClassData() const PROTOBUF_FINAL; + static void* PlacementNew_(const void*, void* mem, + ::google::protobuf::Arena* arena); + static constexpr auto InternalNewImpl_(); + static const ::google::protobuf::internal::ClassDataFull _class_data_; +}; // ------------------------------------------------------------------- -class ODBDESIGN_EXPORT EdaDataFile final : - public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:Odb.Lib.Protobuf.EdaDataFile) */ { +class ODBDESIGN_EXPORT EdaDataFile final : public ::google::protobuf::Message +/* @@protoc_insertion_point(class_definition:Odb.Lib.Protobuf.EdaDataFile) */ { public: inline EdaDataFile() : EdaDataFile(nullptr) {} - ~EdaDataFile() override; - explicit PROTOBUF_CONSTEXPR EdaDataFile(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); + ~EdaDataFile() PROTOBUF_FINAL; - EdaDataFile(const EdaDataFile& from); - EdaDataFile(EdaDataFile&& from) noexcept - : EdaDataFile() { - *this = ::std::move(from); +#if defined(PROTOBUF_CUSTOM_VTABLE) + void operator delete(EdaDataFile* msg, std::destroying_delete_t) { + SharedDtor(*msg); + ::google::protobuf::internal::SizedDelete(msg, sizeof(EdaDataFile)); } +#endif + + template + explicit PROTOBUF_CONSTEXPR EdaDataFile( + ::google::protobuf::internal::ConstantInitialized); + inline EdaDataFile(const EdaDataFile& from) : EdaDataFile(nullptr, from) {} + inline EdaDataFile(EdaDataFile&& from) noexcept + : EdaDataFile(nullptr, std::move(from)) {} inline EdaDataFile& operator=(const EdaDataFile& from) { CopyFrom(from); return *this; } inline EdaDataFile& operator=(EdaDataFile&& from) noexcept { if (this == &from) return *this; - if (GetOwningArena() == from.GetOwningArena() - #ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetOwningArena() != nullptr - #endif // !PROTOBUF_FORCE_COPY_IN_MOVE - ) { + if (::google::protobuf::internal::CanMoveWithInternalSwap(GetArena(), from.GetArena())) { InternalSwap(&from); } else { CopyFrom(from); @@ -2620,13 +2834,22 @@ class ODBDESIGN_EXPORT EdaDataFile final : return *this; } - static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { + inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const + ABSL_ATTRIBUTE_LIFETIME_BOUND { + return _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance); + } + inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() + ABSL_ATTRIBUTE_LIFETIME_BOUND { + return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); + } + + static const ::google::protobuf::Descriptor* descriptor() { return GetDescriptor(); } - static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { + static const ::google::protobuf::Descriptor* GetDescriptor() { return default_instance().GetMetadata().descriptor; } - static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { + static const ::google::protobuf::Reflection* GetReflection() { return default_instance().GetMetadata().reflection; } static const EdaDataFile& default_instance() { @@ -2634,88 +2857,98 @@ class ODBDESIGN_EXPORT EdaDataFile final : } static inline const EdaDataFile* internal_default_instance() { return reinterpret_cast( - &_EdaDataFile_default_instance_); - } - static constexpr int kIndexInFileMessages = - 12; - - friend void swap(EdaDataFile& a, EdaDataFile& b) { - a.Swap(&b); + &_EdaDataFile_default_instance_); } + static constexpr int kIndexInFileMessages = 12; + friend void swap(EdaDataFile& a, EdaDataFile& b) { a.Swap(&b); } inline void Swap(EdaDataFile* other) { if (other == this) return; - #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetOwningArena() != nullptr && - GetOwningArena() == other->GetOwningArena()) { - #else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetOwningArena() == other->GetOwningArena()) { - #endif // !PROTOBUF_FORCE_COPY_IN_SWAP + if (::google::protobuf::internal::CanUseInternalSwap(GetArena(), other->GetArena())) { InternalSwap(other); } else { - ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); + ::google::protobuf::internal::GenericSwap(this, other); } } void UnsafeArenaSwap(EdaDataFile* other) { if (other == this) return; - GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); + ABSL_DCHECK(GetArena() == other->GetArena()); InternalSwap(other); } // implements Message ---------------------------------------------- - EdaDataFile* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); + EdaDataFile* New(::google::protobuf::Arena* arena = nullptr) const { + return ::google::protobuf::Message::DefaultConstruct(arena); } - using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; + using ::google::protobuf::Message::CopyFrom; void CopyFrom(const EdaDataFile& from); - using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; - void MergeFrom( const EdaDataFile& from) { - EdaDataFile::MergeImpl(*this, from); - } - private: - static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg); - public: - PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; - bool IsInitialized() const final; - - size_t ByteSizeLong() const final; - const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final; - uint8_t* _InternalSerialize( - uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const final { return _impl_._cached_size_.Get(); } + using ::google::protobuf::Message::MergeFrom; + void MergeFrom(const EdaDataFile& from) { EdaDataFile::MergeImpl(*this, from); } private: - void SharedCtor(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned); - void SharedDtor(); - void SetCachedSize(int size) const final; - void InternalSwap(EdaDataFile* other); + static void MergeImpl( + ::google::protobuf::MessageLite& to_msg, + const ::google::protobuf::MessageLite& from_msg); - private: - friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; - static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { - return "Odb.Lib.Protobuf.EdaDataFile"; + public: + bool IsInitialized() const { + return true; } - protected: - explicit EdaDataFile(::PROTOBUF_NAMESPACE_ID::Arena* arena, - bool is_message_owned = false); + ABSL_ATTRIBUTE_REINITIALIZES void Clear() PROTOBUF_FINAL; + #if defined(PROTOBUF_CUSTOM_VTABLE) private: - static void ArenaDtor(void* object); - public: + static ::size_t ByteSizeLong(const ::google::protobuf::MessageLite& msg); + static ::uint8_t* _InternalSerialize( + const MessageLite& msg, ::uint8_t* target, + ::google::protobuf::io::EpsCopyOutputStream* stream); - static const ClassData _class_data_; - const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final; + public: + ::size_t ByteSizeLong() const { return ByteSizeLong(*this); } + ::uint8_t* _InternalSerialize( + ::uint8_t* target, + ::google::protobuf::io::EpsCopyOutputStream* stream) const { + return _InternalSerialize(*this, target, stream); + } + #else // PROTOBUF_CUSTOM_VTABLE + ::size_t ByteSizeLong() const final; + ::uint8_t* _InternalSerialize( + ::uint8_t* target, + ::google::protobuf::io::EpsCopyOutputStream* stream) const final; + #endif // PROTOBUF_CUSTOM_VTABLE + int GetCachedSize() const { return _impl_._cached_size_.Get(); } - ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; + private: + void SharedCtor(::google::protobuf::Arena* arena); + static void SharedDtor(MessageLite& self); + void InternalSwap(EdaDataFile* other); + private: + template + friend ::absl::string_view( + ::google::protobuf::internal::GetAnyMessageName)(); + static ::absl::string_view FullMessageName() { return "Odb.Lib.Protobuf.EdaDataFile"; } + + protected: + explicit EdaDataFile(::google::protobuf::Arena* arena); + EdaDataFile(::google::protobuf::Arena* arena, const EdaDataFile& from); + EdaDataFile(::google::protobuf::Arena* arena, EdaDataFile&& from) noexcept + : EdaDataFile(arena) { + *this = ::std::move(from); + } + const ::google::protobuf::internal::ClassData* GetClassData() const PROTOBUF_FINAL; + static void* PlacementNew_(const void*, void* mem, + ::google::protobuf::Arena* arena); + static constexpr auto InternalNewImpl_(); + static const ::google::protobuf::internal::ClassDataFull _class_data_; + public: + ::google::protobuf::Metadata GetMetadata() const; // nested types ---------------------------------------------------- - - typedef EdaDataFile_FeatureIdRecord FeatureIdRecord; - typedef EdaDataFile_NetRecord NetRecord; - typedef EdaDataFile_PackageRecord PackageRecord; - typedef EdaDataFile_FeatureGroupRecord FeatureGroupRecord; + using FeatureIdRecord = EdaDataFile_FeatureIdRecord; + using NetRecord = EdaDataFile_NetRecord; + using PackageRecord = EdaDataFile_PackageRecord; + using FeatureGroupRecord = EdaDataFile_FeatureGroupRecord; // accessors ------------------------------------------------------- - enum : int { kLayerNamesFieldNumber = 4, kAttributeNamesFieldNumber = 5, @@ -2734,630 +2967,642 @@ class ODBDESIGN_EXPORT EdaDataFile final : int layernames_size() const; private: int _internal_layernames_size() const; + public: - void clear_layernames(); + void clear_layernames() ; const std::string& layernames(int index) const; std::string* mutable_layernames(int index); - void set_layernames(int index, const std::string& value); - void set_layernames(int index, std::string&& value); - void set_layernames(int index, const char* value); - void set_layernames(int index, const char* value, size_t size); + template + void set_layernames(int index, Arg_&& value, Args_... args); std::string* add_layernames(); - void add_layernames(const std::string& value); - void add_layernames(std::string&& value); - void add_layernames(const char* value); - void add_layernames(const char* value, size_t size); - const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField& layernames() const; - ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField* mutable_layernames(); + template + void add_layernames(Arg_&& value, Args_... args); + const ::google::protobuf::RepeatedPtrField& layernames() const; + ::google::protobuf::RepeatedPtrField* mutable_layernames(); + private: - const std::string& _internal_layernames(int index) const; - std::string* _internal_add_layernames(); - public: + const ::google::protobuf::RepeatedPtrField& _internal_layernames() const; + ::google::protobuf::RepeatedPtrField* _internal_mutable_layernames(); + public: // repeated string attributeNames = 5; int attributenames_size() const; private: int _internal_attributenames_size() const; + public: - void clear_attributenames(); + void clear_attributenames() ; const std::string& attributenames(int index) const; std::string* mutable_attributenames(int index); - void set_attributenames(int index, const std::string& value); - void set_attributenames(int index, std::string&& value); - void set_attributenames(int index, const char* value); - void set_attributenames(int index, const char* value, size_t size); + template + void set_attributenames(int index, Arg_&& value, Args_... args); std::string* add_attributenames(); - void add_attributenames(const std::string& value); - void add_attributenames(std::string&& value); - void add_attributenames(const char* value); - void add_attributenames(const char* value, size_t size); - const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField& attributenames() const; - ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField* mutable_attributenames(); + template + void add_attributenames(Arg_&& value, Args_... args); + const ::google::protobuf::RepeatedPtrField& attributenames() const; + ::google::protobuf::RepeatedPtrField* mutable_attributenames(); + private: - const std::string& _internal_attributenames(int index) const; - std::string* _internal_add_attributenames(); - public: + const ::google::protobuf::RepeatedPtrField& _internal_attributenames() const; + ::google::protobuf::RepeatedPtrField* _internal_mutable_attributenames(); + public: // repeated string attributeTextValues = 6; int attributetextvalues_size() const; private: int _internal_attributetextvalues_size() const; + public: - void clear_attributetextvalues(); + void clear_attributetextvalues() ; const std::string& attributetextvalues(int index) const; std::string* mutable_attributetextvalues(int index); - void set_attributetextvalues(int index, const std::string& value); - void set_attributetextvalues(int index, std::string&& value); - void set_attributetextvalues(int index, const char* value); - void set_attributetextvalues(int index, const char* value, size_t size); + template + void set_attributetextvalues(int index, Arg_&& value, Args_... args); std::string* add_attributetextvalues(); - void add_attributetextvalues(const std::string& value); - void add_attributetextvalues(std::string&& value); - void add_attributetextvalues(const char* value); - void add_attributetextvalues(const char* value, size_t size); - const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField& attributetextvalues() const; - ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField* mutable_attributetextvalues(); + template + void add_attributetextvalues(Arg_&& value, Args_... args); + const ::google::protobuf::RepeatedPtrField& attributetextvalues() const; + ::google::protobuf::RepeatedPtrField* mutable_attributetextvalues(); + private: - const std::string& _internal_attributetextvalues(int index) const; - std::string* _internal_add_attributetextvalues(); - public: + const ::google::protobuf::RepeatedPtrField& _internal_attributetextvalues() const; + ::google::protobuf::RepeatedPtrField* _internal_mutable_attributetextvalues(); + public: // repeated .Odb.Lib.Protobuf.EdaDataFile.NetRecord netRecords = 7; int netrecords_size() const; private: int _internal_netrecords_size() const; + public: - void clear_netrecords(); + void clear_netrecords() ; ::Odb::Lib::Protobuf::EdaDataFile_NetRecord* mutable_netrecords(int index); - ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::Odb::Lib::Protobuf::EdaDataFile_NetRecord >* - mutable_netrecords(); + ::google::protobuf::RepeatedPtrField<::Odb::Lib::Protobuf::EdaDataFile_NetRecord>* mutable_netrecords(); + private: - const ::Odb::Lib::Protobuf::EdaDataFile_NetRecord& _internal_netrecords(int index) const; - ::Odb::Lib::Protobuf::EdaDataFile_NetRecord* _internal_add_netrecords(); + const ::google::protobuf::RepeatedPtrField<::Odb::Lib::Protobuf::EdaDataFile_NetRecord>& _internal_netrecords() const; + ::google::protobuf::RepeatedPtrField<::Odb::Lib::Protobuf::EdaDataFile_NetRecord>* _internal_mutable_netrecords(); public: const ::Odb::Lib::Protobuf::EdaDataFile_NetRecord& netrecords(int index) const; ::Odb::Lib::Protobuf::EdaDataFile_NetRecord* add_netrecords(); - const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::Odb::Lib::Protobuf::EdaDataFile_NetRecord >& - netrecords() const; - + const ::google::protobuf::RepeatedPtrField<::Odb::Lib::Protobuf::EdaDataFile_NetRecord>& netrecords() const; // map netRecordsByName = 8; int netrecordsbyname_size() const; private: int _internal_netrecordsbyname_size() const; + public: - void clear_netrecordsbyname(); + void clear_netrecordsbyname() ; + const ::google::protobuf::Map& netrecordsbyname() const; + ::google::protobuf::Map* mutable_netrecordsbyname(); + private: - const ::PROTOBUF_NAMESPACE_ID::Map< std::string, ::Odb::Lib::Protobuf::EdaDataFile_NetRecord >& - _internal_netrecordsbyname() const; - ::PROTOBUF_NAMESPACE_ID::Map< std::string, ::Odb::Lib::Protobuf::EdaDataFile_NetRecord >* - _internal_mutable_netrecordsbyname(); - public: - const ::PROTOBUF_NAMESPACE_ID::Map< std::string, ::Odb::Lib::Protobuf::EdaDataFile_NetRecord >& - netrecordsbyname() const; - ::PROTOBUF_NAMESPACE_ID::Map< std::string, ::Odb::Lib::Protobuf::EdaDataFile_NetRecord >* - mutable_netrecordsbyname(); + const ::google::protobuf::Map& _internal_netrecordsbyname() const; + ::google::protobuf::Map* _internal_mutable_netrecordsbyname(); + public: // repeated .Odb.Lib.Protobuf.EdaDataFile.PackageRecord packageRecords = 9; int packagerecords_size() const; private: int _internal_packagerecords_size() const; + public: - void clear_packagerecords(); + void clear_packagerecords() ; ::Odb::Lib::Protobuf::EdaDataFile_PackageRecord* mutable_packagerecords(int index); - ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::Odb::Lib::Protobuf::EdaDataFile_PackageRecord >* - mutable_packagerecords(); + ::google::protobuf::RepeatedPtrField<::Odb::Lib::Protobuf::EdaDataFile_PackageRecord>* mutable_packagerecords(); + private: - const ::Odb::Lib::Protobuf::EdaDataFile_PackageRecord& _internal_packagerecords(int index) const; - ::Odb::Lib::Protobuf::EdaDataFile_PackageRecord* _internal_add_packagerecords(); + const ::google::protobuf::RepeatedPtrField<::Odb::Lib::Protobuf::EdaDataFile_PackageRecord>& _internal_packagerecords() const; + ::google::protobuf::RepeatedPtrField<::Odb::Lib::Protobuf::EdaDataFile_PackageRecord>* _internal_mutable_packagerecords(); public: const ::Odb::Lib::Protobuf::EdaDataFile_PackageRecord& packagerecords(int index) const; ::Odb::Lib::Protobuf::EdaDataFile_PackageRecord* add_packagerecords(); - const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::Odb::Lib::Protobuf::EdaDataFile_PackageRecord >& - packagerecords() const; - + const ::google::protobuf::RepeatedPtrField<::Odb::Lib::Protobuf::EdaDataFile_PackageRecord>& packagerecords() const; // map packageRecordsByName = 10; int packagerecordsbyname_size() const; private: int _internal_packagerecordsbyname_size() const; + public: - void clear_packagerecordsbyname(); + void clear_packagerecordsbyname() ; + const ::google::protobuf::Map& packagerecordsbyname() const; + ::google::protobuf::Map* mutable_packagerecordsbyname(); + private: - const ::PROTOBUF_NAMESPACE_ID::Map< std::string, ::Odb::Lib::Protobuf::EdaDataFile_PackageRecord >& - _internal_packagerecordsbyname() const; - ::PROTOBUF_NAMESPACE_ID::Map< std::string, ::Odb::Lib::Protobuf::EdaDataFile_PackageRecord >* - _internal_mutable_packagerecordsbyname(); - public: - const ::PROTOBUF_NAMESPACE_ID::Map< std::string, ::Odb::Lib::Protobuf::EdaDataFile_PackageRecord >& - packagerecordsbyname() const; - ::PROTOBUF_NAMESPACE_ID::Map< std::string, ::Odb::Lib::Protobuf::EdaDataFile_PackageRecord >* - mutable_packagerecordsbyname(); + const ::google::protobuf::Map& _internal_packagerecordsbyname() const; + ::google::protobuf::Map* _internal_mutable_packagerecordsbyname(); + public: // repeated .Odb.Lib.Protobuf.PropertyRecord propertyRecords = 11; int propertyrecords_size() const; private: int _internal_propertyrecords_size() const; + public: - void clear_propertyrecords(); + void clear_propertyrecords() ; ::Odb::Lib::Protobuf::PropertyRecord* mutable_propertyrecords(int index); - ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::Odb::Lib::Protobuf::PropertyRecord >* - mutable_propertyrecords(); + ::google::protobuf::RepeatedPtrField<::Odb::Lib::Protobuf::PropertyRecord>* mutable_propertyrecords(); + private: - const ::Odb::Lib::Protobuf::PropertyRecord& _internal_propertyrecords(int index) const; - ::Odb::Lib::Protobuf::PropertyRecord* _internal_add_propertyrecords(); + const ::google::protobuf::RepeatedPtrField<::Odb::Lib::Protobuf::PropertyRecord>& _internal_propertyrecords() const; + ::google::protobuf::RepeatedPtrField<::Odb::Lib::Protobuf::PropertyRecord>* _internal_mutable_propertyrecords(); public: const ::Odb::Lib::Protobuf::PropertyRecord& propertyrecords(int index) const; ::Odb::Lib::Protobuf::PropertyRecord* add_propertyrecords(); - const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::Odb::Lib::Protobuf::PropertyRecord >& - propertyrecords() const; - + const ::google::protobuf::RepeatedPtrField<::Odb::Lib::Protobuf::PropertyRecord>& propertyrecords() const; // repeated .Odb.Lib.Protobuf.EdaDataFile.FeatureGroupRecord featureGroupRecords = 12; int featuregrouprecords_size() const; private: int _internal_featuregrouprecords_size() const; + public: - void clear_featuregrouprecords(); + void clear_featuregrouprecords() ; ::Odb::Lib::Protobuf::EdaDataFile_FeatureGroupRecord* mutable_featuregrouprecords(int index); - ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::Odb::Lib::Protobuf::EdaDataFile_FeatureGroupRecord >* - mutable_featuregrouprecords(); + ::google::protobuf::RepeatedPtrField<::Odb::Lib::Protobuf::EdaDataFile_FeatureGroupRecord>* mutable_featuregrouprecords(); + private: - const ::Odb::Lib::Protobuf::EdaDataFile_FeatureGroupRecord& _internal_featuregrouprecords(int index) const; - ::Odb::Lib::Protobuf::EdaDataFile_FeatureGroupRecord* _internal_add_featuregrouprecords(); + const ::google::protobuf::RepeatedPtrField<::Odb::Lib::Protobuf::EdaDataFile_FeatureGroupRecord>& _internal_featuregrouprecords() const; + ::google::protobuf::RepeatedPtrField<::Odb::Lib::Protobuf::EdaDataFile_FeatureGroupRecord>* _internal_mutable_featuregrouprecords(); public: const ::Odb::Lib::Protobuf::EdaDataFile_FeatureGroupRecord& featuregrouprecords(int index) const; ::Odb::Lib::Protobuf::EdaDataFile_FeatureGroupRecord* add_featuregrouprecords(); - const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::Odb::Lib::Protobuf::EdaDataFile_FeatureGroupRecord >& - featuregrouprecords() const; - + const ::google::protobuf::RepeatedPtrField<::Odb::Lib::Protobuf::EdaDataFile_FeatureGroupRecord>& featuregrouprecords() const; // optional string path = 1; bool has_path() const; - private: - bool _internal_has_path() const; - public: - void clear_path(); + void clear_path() ; const std::string& path() const; - template - void set_path(ArgT0&& arg0, ArgT... args); + template + void set_path(Arg_&& arg, Args_... args); std::string* mutable_path(); PROTOBUF_NODISCARD std::string* release_path(); - void set_allocated_path(std::string* path); + void set_allocated_path(std::string* value); + private: const std::string& _internal_path() const; - inline PROTOBUF_ALWAYS_INLINE void _internal_set_path(const std::string& value); + inline PROTOBUF_ALWAYS_INLINE void _internal_set_path( + const std::string& value); std::string* _internal_mutable_path(); - public: + public: // optional string units = 2; bool has_units() const; - private: - bool _internal_has_units() const; - public: - void clear_units(); + void clear_units() ; const std::string& units() const; - template - void set_units(ArgT0&& arg0, ArgT... args); + template + void set_units(Arg_&& arg, Args_... args); std::string* mutable_units(); PROTOBUF_NODISCARD std::string* release_units(); - void set_allocated_units(std::string* units); + void set_allocated_units(std::string* value); + private: const std::string& _internal_units() const; - inline PROTOBUF_ALWAYS_INLINE void _internal_set_units(const std::string& value); + inline PROTOBUF_ALWAYS_INLINE void _internal_set_units( + const std::string& value); std::string* _internal_mutable_units(); - public: + public: // optional string source = 3; bool has_source() const; - private: - bool _internal_has_source() const; - public: - void clear_source(); + void clear_source() ; const std::string& source() const; - template - void set_source(ArgT0&& arg0, ArgT... args); + template + void set_source(Arg_&& arg, Args_... args); std::string* mutable_source(); PROTOBUF_NODISCARD std::string* release_source(); - void set_allocated_source(std::string* source); + void set_allocated_source(std::string* value); + private: const std::string& _internal_source() const; - inline PROTOBUF_ALWAYS_INLINE void _internal_set_source(const std::string& value); + inline PROTOBUF_ALWAYS_INLINE void _internal_set_source( + const std::string& value); std::string* _internal_mutable_source(); - public: + public: // @@protoc_insertion_point(class_scope:Odb.Lib.Protobuf.EdaDataFile) private: class _Internal; - - template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; - typedef void InternalArenaConstructable_; - typedef void DestructorSkippable_; + friend class ::google::protobuf::internal::TcParser; + static const ::google::protobuf::internal::TcParseTable< + 4, 12, 8, + 139, 2> + _table_; + + friend class ::google::protobuf::MessageLite; + friend class ::google::protobuf::Arena; + template + friend class ::google::protobuf::Arena::InternalHelper; + using InternalArenaConstructable_ = void; + using DestructorSkippable_ = void; struct Impl_ { - ::PROTOBUF_NAMESPACE_ID::internal::HasBits<1> _has_bits_; - mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; - ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField layernames_; - ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField attributenames_; - ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField attributetextvalues_; - ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::Odb::Lib::Protobuf::EdaDataFile_NetRecord > netrecords_; - ::PROTOBUF_NAMESPACE_ID::internal::MapField< - EdaDataFile_NetRecordsByNameEntry_DoNotUse, - std::string, ::Odb::Lib::Protobuf::EdaDataFile_NetRecord, - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::TYPE_STRING, - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::TYPE_MESSAGE> netrecordsbyname_; - ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::Odb::Lib::Protobuf::EdaDataFile_PackageRecord > packagerecords_; - ::PROTOBUF_NAMESPACE_ID::internal::MapField< - EdaDataFile_PackageRecordsByNameEntry_DoNotUse, - std::string, ::Odb::Lib::Protobuf::EdaDataFile_PackageRecord, - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::TYPE_STRING, - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::TYPE_MESSAGE> packagerecordsbyname_; - ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::Odb::Lib::Protobuf::PropertyRecord > propertyrecords_; - ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::Odb::Lib::Protobuf::EdaDataFile_FeatureGroupRecord > featuregrouprecords_; - ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr path_; - ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr units_; - ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr source_; + inline explicit constexpr Impl_( + ::google::protobuf::internal::ConstantInitialized) noexcept; + inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* arena); + inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* arena, const Impl_& from, + const EdaDataFile& from_msg); + ::google::protobuf::internal::HasBits<1> _has_bits_; + ::google::protobuf::internal::CachedSize _cached_size_; + ::google::protobuf::RepeatedPtrField layernames_; + ::google::protobuf::RepeatedPtrField attributenames_; + ::google::protobuf::RepeatedPtrField attributetextvalues_; + ::google::protobuf::RepeatedPtrField< ::Odb::Lib::Protobuf::EdaDataFile_NetRecord > netrecords_; + ::google::protobuf::internal::MapField + netrecordsbyname_; + ::google::protobuf::RepeatedPtrField< ::Odb::Lib::Protobuf::EdaDataFile_PackageRecord > packagerecords_; + ::google::protobuf::internal::MapField + packagerecordsbyname_; + ::google::protobuf::RepeatedPtrField< ::Odb::Lib::Protobuf::PropertyRecord > propertyrecords_; + ::google::protobuf::RepeatedPtrField< ::Odb::Lib::Protobuf::EdaDataFile_FeatureGroupRecord > featuregrouprecords_; + ::google::protobuf::internal::ArenaStringPtr path_; + ::google::protobuf::internal::ArenaStringPtr units_; + ::google::protobuf::internal::ArenaStringPtr source_; + PROTOBUF_TSAN_DECLARE_MEMBER }; union { Impl_ _impl_; }; friend struct ::TableStruct_edadatafile_2eproto; }; + // =================================================================== + + // =================================================================== + #ifdef __GNUC__ - #pragma GCC diagnostic push - #pragma GCC diagnostic ignored "-Wstrict-aliasing" +#pragma GCC diagnostic push +#pragma GCC diagnostic ignored "-Wstrict-aliasing" #endif // __GNUC__ +// ------------------------------------------------------------------- + // EdaDataFile_FeatureIdRecord // optional .Odb.Lib.Protobuf.EdaDataFile.FeatureIdRecord.Type type = 1; -inline bool EdaDataFile_FeatureIdRecord::_internal_has_type() const { +inline bool EdaDataFile_FeatureIdRecord::has_type() const { bool value = (_impl_._has_bits_[0] & 0x00000001u) != 0; return value; } -inline bool EdaDataFile_FeatureIdRecord::has_type() const { - return _internal_has_type(); -} inline void EdaDataFile_FeatureIdRecord::clear_type() { + ::google::protobuf::internal::TSanWrite(&_impl_); _impl_.type_ = 0; _impl_._has_bits_[0] &= ~0x00000001u; } -inline ::Odb::Lib::Protobuf::EdaDataFile_FeatureIdRecord_Type EdaDataFile_FeatureIdRecord::_internal_type() const { - return static_cast< ::Odb::Lib::Protobuf::EdaDataFile_FeatureIdRecord_Type >(_impl_.type_); -} inline ::Odb::Lib::Protobuf::EdaDataFile_FeatureIdRecord_Type EdaDataFile_FeatureIdRecord::type() const { // @@protoc_insertion_point(field_get:Odb.Lib.Protobuf.EdaDataFile.FeatureIdRecord.type) return _internal_type(); } -inline void EdaDataFile_FeatureIdRecord::_internal_set_type(::Odb::Lib::Protobuf::EdaDataFile_FeatureIdRecord_Type value) { - _impl_._has_bits_[0] |= 0x00000001u; - _impl_.type_ = value; -} inline void EdaDataFile_FeatureIdRecord::set_type(::Odb::Lib::Protobuf::EdaDataFile_FeatureIdRecord_Type value) { _internal_set_type(value); + _impl_._has_bits_[0] |= 0x00000001u; // @@protoc_insertion_point(field_set:Odb.Lib.Protobuf.EdaDataFile.FeatureIdRecord.type) } +inline ::Odb::Lib::Protobuf::EdaDataFile_FeatureIdRecord_Type EdaDataFile_FeatureIdRecord::_internal_type() const { + ::google::protobuf::internal::TSanRead(&_impl_); + return static_cast<::Odb::Lib::Protobuf::EdaDataFile_FeatureIdRecord_Type>(_impl_.type_); +} +inline void EdaDataFile_FeatureIdRecord::_internal_set_type(::Odb::Lib::Protobuf::EdaDataFile_FeatureIdRecord_Type value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.type_ = value; +} // optional uint32 layerNumber = 2; -inline bool EdaDataFile_FeatureIdRecord::_internal_has_layernumber() const { +inline bool EdaDataFile_FeatureIdRecord::has_layernumber() const { bool value = (_impl_._has_bits_[0] & 0x00000002u) != 0; return value; } -inline bool EdaDataFile_FeatureIdRecord::has_layernumber() const { - return _internal_has_layernumber(); -} inline void EdaDataFile_FeatureIdRecord::clear_layernumber() { + ::google::protobuf::internal::TSanWrite(&_impl_); _impl_.layernumber_ = 0u; _impl_._has_bits_[0] &= ~0x00000002u; } -inline uint32_t EdaDataFile_FeatureIdRecord::_internal_layernumber() const { - return _impl_.layernumber_; -} -inline uint32_t EdaDataFile_FeatureIdRecord::layernumber() const { +inline ::uint32_t EdaDataFile_FeatureIdRecord::layernumber() const { // @@protoc_insertion_point(field_get:Odb.Lib.Protobuf.EdaDataFile.FeatureIdRecord.layerNumber) return _internal_layernumber(); } -inline void EdaDataFile_FeatureIdRecord::_internal_set_layernumber(uint32_t value) { - _impl_._has_bits_[0] |= 0x00000002u; - _impl_.layernumber_ = value; -} -inline void EdaDataFile_FeatureIdRecord::set_layernumber(uint32_t value) { +inline void EdaDataFile_FeatureIdRecord::set_layernumber(::uint32_t value) { _internal_set_layernumber(value); + _impl_._has_bits_[0] |= 0x00000002u; // @@protoc_insertion_point(field_set:Odb.Lib.Protobuf.EdaDataFile.FeatureIdRecord.layerNumber) } +inline ::uint32_t EdaDataFile_FeatureIdRecord::_internal_layernumber() const { + ::google::protobuf::internal::TSanRead(&_impl_); + return _impl_.layernumber_; +} +inline void EdaDataFile_FeatureIdRecord::_internal_set_layernumber(::uint32_t value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.layernumber_ = value; +} // optional uint32 featureNumber = 3; -inline bool EdaDataFile_FeatureIdRecord::_internal_has_featurenumber() const { +inline bool EdaDataFile_FeatureIdRecord::has_featurenumber() const { bool value = (_impl_._has_bits_[0] & 0x00000004u) != 0; return value; } -inline bool EdaDataFile_FeatureIdRecord::has_featurenumber() const { - return _internal_has_featurenumber(); -} inline void EdaDataFile_FeatureIdRecord::clear_featurenumber() { + ::google::protobuf::internal::TSanWrite(&_impl_); _impl_.featurenumber_ = 0u; _impl_._has_bits_[0] &= ~0x00000004u; } -inline uint32_t EdaDataFile_FeatureIdRecord::_internal_featurenumber() const { - return _impl_.featurenumber_; -} -inline uint32_t EdaDataFile_FeatureIdRecord::featurenumber() const { +inline ::uint32_t EdaDataFile_FeatureIdRecord::featurenumber() const { // @@protoc_insertion_point(field_get:Odb.Lib.Protobuf.EdaDataFile.FeatureIdRecord.featureNumber) return _internal_featurenumber(); } -inline void EdaDataFile_FeatureIdRecord::_internal_set_featurenumber(uint32_t value) { - _impl_._has_bits_[0] |= 0x00000004u; - _impl_.featurenumber_ = value; -} -inline void EdaDataFile_FeatureIdRecord::set_featurenumber(uint32_t value) { +inline void EdaDataFile_FeatureIdRecord::set_featurenumber(::uint32_t value) { _internal_set_featurenumber(value); + _impl_._has_bits_[0] |= 0x00000004u; // @@protoc_insertion_point(field_set:Odb.Lib.Protobuf.EdaDataFile.FeatureIdRecord.featureNumber) } +inline ::uint32_t EdaDataFile_FeatureIdRecord::_internal_featurenumber() const { + ::google::protobuf::internal::TSanRead(&_impl_); + return _impl_.featurenumber_; +} +inline void EdaDataFile_FeatureIdRecord::_internal_set_featurenumber(::uint32_t value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.featurenumber_ = value; +} // ------------------------------------------------------------------- // EdaDataFile_NetRecord_SubnetRecord // optional .Odb.Lib.Protobuf.EdaDataFile.NetRecord.SubnetRecord.Type type = 1; -inline bool EdaDataFile_NetRecord_SubnetRecord::_internal_has_type() const { +inline bool EdaDataFile_NetRecord_SubnetRecord::has_type() const { bool value = (_impl_._has_bits_[0] & 0x00000001u) != 0; return value; } -inline bool EdaDataFile_NetRecord_SubnetRecord::has_type() const { - return _internal_has_type(); -} inline void EdaDataFile_NetRecord_SubnetRecord::clear_type() { + ::google::protobuf::internal::TSanWrite(&_impl_); _impl_.type_ = 0; _impl_._has_bits_[0] &= ~0x00000001u; } -inline ::Odb::Lib::Protobuf::EdaDataFile_NetRecord_SubnetRecord_Type EdaDataFile_NetRecord_SubnetRecord::_internal_type() const { - return static_cast< ::Odb::Lib::Protobuf::EdaDataFile_NetRecord_SubnetRecord_Type >(_impl_.type_); -} inline ::Odb::Lib::Protobuf::EdaDataFile_NetRecord_SubnetRecord_Type EdaDataFile_NetRecord_SubnetRecord::type() const { // @@protoc_insertion_point(field_get:Odb.Lib.Protobuf.EdaDataFile.NetRecord.SubnetRecord.type) return _internal_type(); } -inline void EdaDataFile_NetRecord_SubnetRecord::_internal_set_type(::Odb::Lib::Protobuf::EdaDataFile_NetRecord_SubnetRecord_Type value) { - _impl_._has_bits_[0] |= 0x00000001u; - _impl_.type_ = value; -} inline void EdaDataFile_NetRecord_SubnetRecord::set_type(::Odb::Lib::Protobuf::EdaDataFile_NetRecord_SubnetRecord_Type value) { _internal_set_type(value); + _impl_._has_bits_[0] |= 0x00000001u; // @@protoc_insertion_point(field_set:Odb.Lib.Protobuf.EdaDataFile.NetRecord.SubnetRecord.type) } +inline ::Odb::Lib::Protobuf::EdaDataFile_NetRecord_SubnetRecord_Type EdaDataFile_NetRecord_SubnetRecord::_internal_type() const { + ::google::protobuf::internal::TSanRead(&_impl_); + return static_cast<::Odb::Lib::Protobuf::EdaDataFile_NetRecord_SubnetRecord_Type>(_impl_.type_); +} +inline void EdaDataFile_NetRecord_SubnetRecord::_internal_set_type(::Odb::Lib::Protobuf::EdaDataFile_NetRecord_SubnetRecord_Type value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.type_ = value; +} // repeated .Odb.Lib.Protobuf.EdaDataFile.FeatureIdRecord featureIdRecords = 2; inline int EdaDataFile_NetRecord_SubnetRecord::_internal_featureidrecords_size() const { - return _impl_.featureidrecords_.size(); + return _internal_featureidrecords().size(); } inline int EdaDataFile_NetRecord_SubnetRecord::featureidrecords_size() const { return _internal_featureidrecords_size(); } inline void EdaDataFile_NetRecord_SubnetRecord::clear_featureidrecords() { + ::google::protobuf::internal::TSanWrite(&_impl_); _impl_.featureidrecords_.Clear(); } -inline ::Odb::Lib::Protobuf::EdaDataFile_FeatureIdRecord* EdaDataFile_NetRecord_SubnetRecord::mutable_featureidrecords(int index) { +inline ::Odb::Lib::Protobuf::EdaDataFile_FeatureIdRecord* EdaDataFile_NetRecord_SubnetRecord::mutable_featureidrecords(int index) + ABSL_ATTRIBUTE_LIFETIME_BOUND { // @@protoc_insertion_point(field_mutable:Odb.Lib.Protobuf.EdaDataFile.NetRecord.SubnetRecord.featureIdRecords) - return _impl_.featureidrecords_.Mutable(index); + return _internal_mutable_featureidrecords()->Mutable(index); } -inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::Odb::Lib::Protobuf::EdaDataFile_FeatureIdRecord >* -EdaDataFile_NetRecord_SubnetRecord::mutable_featureidrecords() { +inline ::google::protobuf::RepeatedPtrField<::Odb::Lib::Protobuf::EdaDataFile_FeatureIdRecord>* EdaDataFile_NetRecord_SubnetRecord::mutable_featureidrecords() + ABSL_ATTRIBUTE_LIFETIME_BOUND { // @@protoc_insertion_point(field_mutable_list:Odb.Lib.Protobuf.EdaDataFile.NetRecord.SubnetRecord.featureIdRecords) - return &_impl_.featureidrecords_; + ::google::protobuf::internal::TSanWrite(&_impl_); + return _internal_mutable_featureidrecords(); } -inline const ::Odb::Lib::Protobuf::EdaDataFile_FeatureIdRecord& EdaDataFile_NetRecord_SubnetRecord::_internal_featureidrecords(int index) const { - return _impl_.featureidrecords_.Get(index); -} -inline const ::Odb::Lib::Protobuf::EdaDataFile_FeatureIdRecord& EdaDataFile_NetRecord_SubnetRecord::featureidrecords(int index) const { +inline const ::Odb::Lib::Protobuf::EdaDataFile_FeatureIdRecord& EdaDataFile_NetRecord_SubnetRecord::featureidrecords(int index) const + ABSL_ATTRIBUTE_LIFETIME_BOUND { // @@protoc_insertion_point(field_get:Odb.Lib.Protobuf.EdaDataFile.NetRecord.SubnetRecord.featureIdRecords) - return _internal_featureidrecords(index); -} -inline ::Odb::Lib::Protobuf::EdaDataFile_FeatureIdRecord* EdaDataFile_NetRecord_SubnetRecord::_internal_add_featureidrecords() { - return _impl_.featureidrecords_.Add(); + return _internal_featureidrecords().Get(index); } -inline ::Odb::Lib::Protobuf::EdaDataFile_FeatureIdRecord* EdaDataFile_NetRecord_SubnetRecord::add_featureidrecords() { - ::Odb::Lib::Protobuf::EdaDataFile_FeatureIdRecord* _add = _internal_add_featureidrecords(); +inline ::Odb::Lib::Protobuf::EdaDataFile_FeatureIdRecord* EdaDataFile_NetRecord_SubnetRecord::add_featureidrecords() ABSL_ATTRIBUTE_LIFETIME_BOUND { + ::google::protobuf::internal::TSanWrite(&_impl_); + ::Odb::Lib::Protobuf::EdaDataFile_FeatureIdRecord* _add = _internal_mutable_featureidrecords()->Add(); // @@protoc_insertion_point(field_add:Odb.Lib.Protobuf.EdaDataFile.NetRecord.SubnetRecord.featureIdRecords) return _add; } -inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::Odb::Lib::Protobuf::EdaDataFile_FeatureIdRecord >& -EdaDataFile_NetRecord_SubnetRecord::featureidrecords() const { +inline const ::google::protobuf::RepeatedPtrField<::Odb::Lib::Protobuf::EdaDataFile_FeatureIdRecord>& EdaDataFile_NetRecord_SubnetRecord::featureidrecords() const + ABSL_ATTRIBUTE_LIFETIME_BOUND { // @@protoc_insertion_point(field_list:Odb.Lib.Protobuf.EdaDataFile.NetRecord.SubnetRecord.featureIdRecords) + return _internal_featureidrecords(); +} +inline const ::google::protobuf::RepeatedPtrField<::Odb::Lib::Protobuf::EdaDataFile_FeatureIdRecord>& +EdaDataFile_NetRecord_SubnetRecord::_internal_featureidrecords() const { + ::google::protobuf::internal::TSanRead(&_impl_); return _impl_.featureidrecords_; } +inline ::google::protobuf::RepeatedPtrField<::Odb::Lib::Protobuf::EdaDataFile_FeatureIdRecord>* +EdaDataFile_NetRecord_SubnetRecord::_internal_mutable_featureidrecords() { + ::google::protobuf::internal::TSanRead(&_impl_); + return &_impl_.featureidrecords_; +} // optional .Odb.Lib.Protobuf.EdaDataFile.NetRecord.SubnetRecord.FillType fillType = 3; -inline bool EdaDataFile_NetRecord_SubnetRecord::_internal_has_filltype() const { +inline bool EdaDataFile_NetRecord_SubnetRecord::has_filltype() const { bool value = (_impl_._has_bits_[0] & 0x00000002u) != 0; return value; } -inline bool EdaDataFile_NetRecord_SubnetRecord::has_filltype() const { - return _internal_has_filltype(); -} inline void EdaDataFile_NetRecord_SubnetRecord::clear_filltype() { + ::google::protobuf::internal::TSanWrite(&_impl_); _impl_.filltype_ = 0; _impl_._has_bits_[0] &= ~0x00000002u; } -inline ::Odb::Lib::Protobuf::EdaDataFile_NetRecord_SubnetRecord_FillType EdaDataFile_NetRecord_SubnetRecord::_internal_filltype() const { - return static_cast< ::Odb::Lib::Protobuf::EdaDataFile_NetRecord_SubnetRecord_FillType >(_impl_.filltype_); -} inline ::Odb::Lib::Protobuf::EdaDataFile_NetRecord_SubnetRecord_FillType EdaDataFile_NetRecord_SubnetRecord::filltype() const { // @@protoc_insertion_point(field_get:Odb.Lib.Protobuf.EdaDataFile.NetRecord.SubnetRecord.fillType) return _internal_filltype(); } -inline void EdaDataFile_NetRecord_SubnetRecord::_internal_set_filltype(::Odb::Lib::Protobuf::EdaDataFile_NetRecord_SubnetRecord_FillType value) { - _impl_._has_bits_[0] |= 0x00000002u; - _impl_.filltype_ = value; -} inline void EdaDataFile_NetRecord_SubnetRecord::set_filltype(::Odb::Lib::Protobuf::EdaDataFile_NetRecord_SubnetRecord_FillType value) { _internal_set_filltype(value); + _impl_._has_bits_[0] |= 0x00000002u; // @@protoc_insertion_point(field_set:Odb.Lib.Protobuf.EdaDataFile.NetRecord.SubnetRecord.fillType) } +inline ::Odb::Lib::Protobuf::EdaDataFile_NetRecord_SubnetRecord_FillType EdaDataFile_NetRecord_SubnetRecord::_internal_filltype() const { + ::google::protobuf::internal::TSanRead(&_impl_); + return static_cast<::Odb::Lib::Protobuf::EdaDataFile_NetRecord_SubnetRecord_FillType>(_impl_.filltype_); +} +inline void EdaDataFile_NetRecord_SubnetRecord::_internal_set_filltype(::Odb::Lib::Protobuf::EdaDataFile_NetRecord_SubnetRecord_FillType value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.filltype_ = value; +} // optional .Odb.Lib.Protobuf.EdaDataFile.NetRecord.SubnetRecord.CutoutType cutoutType = 4; -inline bool EdaDataFile_NetRecord_SubnetRecord::_internal_has_cutouttype() const { +inline bool EdaDataFile_NetRecord_SubnetRecord::has_cutouttype() const { bool value = (_impl_._has_bits_[0] & 0x00000004u) != 0; return value; } -inline bool EdaDataFile_NetRecord_SubnetRecord::has_cutouttype() const { - return _internal_has_cutouttype(); -} inline void EdaDataFile_NetRecord_SubnetRecord::clear_cutouttype() { + ::google::protobuf::internal::TSanWrite(&_impl_); _impl_.cutouttype_ = 0; _impl_._has_bits_[0] &= ~0x00000004u; } -inline ::Odb::Lib::Protobuf::EdaDataFile_NetRecord_SubnetRecord_CutoutType EdaDataFile_NetRecord_SubnetRecord::_internal_cutouttype() const { - return static_cast< ::Odb::Lib::Protobuf::EdaDataFile_NetRecord_SubnetRecord_CutoutType >(_impl_.cutouttype_); -} inline ::Odb::Lib::Protobuf::EdaDataFile_NetRecord_SubnetRecord_CutoutType EdaDataFile_NetRecord_SubnetRecord::cutouttype() const { // @@protoc_insertion_point(field_get:Odb.Lib.Protobuf.EdaDataFile.NetRecord.SubnetRecord.cutoutType) return _internal_cutouttype(); } -inline void EdaDataFile_NetRecord_SubnetRecord::_internal_set_cutouttype(::Odb::Lib::Protobuf::EdaDataFile_NetRecord_SubnetRecord_CutoutType value) { - _impl_._has_bits_[0] |= 0x00000004u; - _impl_.cutouttype_ = value; -} inline void EdaDataFile_NetRecord_SubnetRecord::set_cutouttype(::Odb::Lib::Protobuf::EdaDataFile_NetRecord_SubnetRecord_CutoutType value) { _internal_set_cutouttype(value); + _impl_._has_bits_[0] |= 0x00000004u; // @@protoc_insertion_point(field_set:Odb.Lib.Protobuf.EdaDataFile.NetRecord.SubnetRecord.cutoutType) } +inline ::Odb::Lib::Protobuf::EdaDataFile_NetRecord_SubnetRecord_CutoutType EdaDataFile_NetRecord_SubnetRecord::_internal_cutouttype() const { + ::google::protobuf::internal::TSanRead(&_impl_); + return static_cast<::Odb::Lib::Protobuf::EdaDataFile_NetRecord_SubnetRecord_CutoutType>(_impl_.cutouttype_); +} +inline void EdaDataFile_NetRecord_SubnetRecord::_internal_set_cutouttype(::Odb::Lib::Protobuf::EdaDataFile_NetRecord_SubnetRecord_CutoutType value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.cutouttype_ = value; +} // optional float fillSize = 5; -inline bool EdaDataFile_NetRecord_SubnetRecord::_internal_has_fillsize() const { +inline bool EdaDataFile_NetRecord_SubnetRecord::has_fillsize() const { bool value = (_impl_._has_bits_[0] & 0x00000008u) != 0; return value; } -inline bool EdaDataFile_NetRecord_SubnetRecord::has_fillsize() const { - return _internal_has_fillsize(); -} inline void EdaDataFile_NetRecord_SubnetRecord::clear_fillsize() { + ::google::protobuf::internal::TSanWrite(&_impl_); _impl_.fillsize_ = 0; _impl_._has_bits_[0] &= ~0x00000008u; } -inline float EdaDataFile_NetRecord_SubnetRecord::_internal_fillsize() const { - return _impl_.fillsize_; -} inline float EdaDataFile_NetRecord_SubnetRecord::fillsize() const { // @@protoc_insertion_point(field_get:Odb.Lib.Protobuf.EdaDataFile.NetRecord.SubnetRecord.fillSize) return _internal_fillsize(); } -inline void EdaDataFile_NetRecord_SubnetRecord::_internal_set_fillsize(float value) { - _impl_._has_bits_[0] |= 0x00000008u; - _impl_.fillsize_ = value; -} inline void EdaDataFile_NetRecord_SubnetRecord::set_fillsize(float value) { _internal_set_fillsize(value); + _impl_._has_bits_[0] |= 0x00000008u; // @@protoc_insertion_point(field_set:Odb.Lib.Protobuf.EdaDataFile.NetRecord.SubnetRecord.fillSize) } +inline float EdaDataFile_NetRecord_SubnetRecord::_internal_fillsize() const { + ::google::protobuf::internal::TSanRead(&_impl_); + return _impl_.fillsize_; +} +inline void EdaDataFile_NetRecord_SubnetRecord::_internal_set_fillsize(float value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.fillsize_ = value; +} // optional .Odb.Lib.Protobuf.BoardSide side = 6; -inline bool EdaDataFile_NetRecord_SubnetRecord::_internal_has_side() const { +inline bool EdaDataFile_NetRecord_SubnetRecord::has_side() const { bool value = (_impl_._has_bits_[0] & 0x00000010u) != 0; return value; } -inline bool EdaDataFile_NetRecord_SubnetRecord::has_side() const { - return _internal_has_side(); -} inline void EdaDataFile_NetRecord_SubnetRecord::clear_side() { + ::google::protobuf::internal::TSanWrite(&_impl_); _impl_.side_ = 0; _impl_._has_bits_[0] &= ~0x00000010u; } -inline ::Odb::Lib::Protobuf::BoardSide EdaDataFile_NetRecord_SubnetRecord::_internal_side() const { - return static_cast< ::Odb::Lib::Protobuf::BoardSide >(_impl_.side_); -} inline ::Odb::Lib::Protobuf::BoardSide EdaDataFile_NetRecord_SubnetRecord::side() const { // @@protoc_insertion_point(field_get:Odb.Lib.Protobuf.EdaDataFile.NetRecord.SubnetRecord.side) return _internal_side(); } -inline void EdaDataFile_NetRecord_SubnetRecord::_internal_set_side(::Odb::Lib::Protobuf::BoardSide value) { - _impl_._has_bits_[0] |= 0x00000010u; - _impl_.side_ = value; -} inline void EdaDataFile_NetRecord_SubnetRecord::set_side(::Odb::Lib::Protobuf::BoardSide value) { _internal_set_side(value); + _impl_._has_bits_[0] |= 0x00000010u; // @@protoc_insertion_point(field_set:Odb.Lib.Protobuf.EdaDataFile.NetRecord.SubnetRecord.side) } +inline ::Odb::Lib::Protobuf::BoardSide EdaDataFile_NetRecord_SubnetRecord::_internal_side() const { + ::google::protobuf::internal::TSanRead(&_impl_); + return static_cast<::Odb::Lib::Protobuf::BoardSide>(_impl_.side_); +} +inline void EdaDataFile_NetRecord_SubnetRecord::_internal_set_side(::Odb::Lib::Protobuf::BoardSide value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.side_ = value; +} // optional uint32 componentNumber = 7; -inline bool EdaDataFile_NetRecord_SubnetRecord::_internal_has_componentnumber() const { +inline bool EdaDataFile_NetRecord_SubnetRecord::has_componentnumber() const { bool value = (_impl_._has_bits_[0] & 0x00000020u) != 0; return value; } -inline bool EdaDataFile_NetRecord_SubnetRecord::has_componentnumber() const { - return _internal_has_componentnumber(); -} inline void EdaDataFile_NetRecord_SubnetRecord::clear_componentnumber() { + ::google::protobuf::internal::TSanWrite(&_impl_); _impl_.componentnumber_ = 0u; _impl_._has_bits_[0] &= ~0x00000020u; } -inline uint32_t EdaDataFile_NetRecord_SubnetRecord::_internal_componentnumber() const { - return _impl_.componentnumber_; -} -inline uint32_t EdaDataFile_NetRecord_SubnetRecord::componentnumber() const { +inline ::uint32_t EdaDataFile_NetRecord_SubnetRecord::componentnumber() const { // @@protoc_insertion_point(field_get:Odb.Lib.Protobuf.EdaDataFile.NetRecord.SubnetRecord.componentNumber) return _internal_componentnumber(); } -inline void EdaDataFile_NetRecord_SubnetRecord::_internal_set_componentnumber(uint32_t value) { - _impl_._has_bits_[0] |= 0x00000020u; - _impl_.componentnumber_ = value; -} -inline void EdaDataFile_NetRecord_SubnetRecord::set_componentnumber(uint32_t value) { +inline void EdaDataFile_NetRecord_SubnetRecord::set_componentnumber(::uint32_t value) { _internal_set_componentnumber(value); + _impl_._has_bits_[0] |= 0x00000020u; // @@protoc_insertion_point(field_set:Odb.Lib.Protobuf.EdaDataFile.NetRecord.SubnetRecord.componentNumber) } +inline ::uint32_t EdaDataFile_NetRecord_SubnetRecord::_internal_componentnumber() const { + ::google::protobuf::internal::TSanRead(&_impl_); + return _impl_.componentnumber_; +} +inline void EdaDataFile_NetRecord_SubnetRecord::_internal_set_componentnumber(::uint32_t value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.componentnumber_ = value; +} // optional uint32 toeprintNumber = 8; -inline bool EdaDataFile_NetRecord_SubnetRecord::_internal_has_toeprintnumber() const { +inline bool EdaDataFile_NetRecord_SubnetRecord::has_toeprintnumber() const { bool value = (_impl_._has_bits_[0] & 0x00000040u) != 0; return value; } -inline bool EdaDataFile_NetRecord_SubnetRecord::has_toeprintnumber() const { - return _internal_has_toeprintnumber(); -} inline void EdaDataFile_NetRecord_SubnetRecord::clear_toeprintnumber() { + ::google::protobuf::internal::TSanWrite(&_impl_); _impl_.toeprintnumber_ = 0u; _impl_._has_bits_[0] &= ~0x00000040u; } -inline uint32_t EdaDataFile_NetRecord_SubnetRecord::_internal_toeprintnumber() const { - return _impl_.toeprintnumber_; -} -inline uint32_t EdaDataFile_NetRecord_SubnetRecord::toeprintnumber() const { +inline ::uint32_t EdaDataFile_NetRecord_SubnetRecord::toeprintnumber() const { // @@protoc_insertion_point(field_get:Odb.Lib.Protobuf.EdaDataFile.NetRecord.SubnetRecord.toeprintNumber) return _internal_toeprintnumber(); } -inline void EdaDataFile_NetRecord_SubnetRecord::_internal_set_toeprintnumber(uint32_t value) { - _impl_._has_bits_[0] |= 0x00000040u; - _impl_.toeprintnumber_ = value; -} -inline void EdaDataFile_NetRecord_SubnetRecord::set_toeprintnumber(uint32_t value) { +inline void EdaDataFile_NetRecord_SubnetRecord::set_toeprintnumber(::uint32_t value) { _internal_set_toeprintnumber(value); + _impl_._has_bits_[0] |= 0x00000040u; // @@protoc_insertion_point(field_set:Odb.Lib.Protobuf.EdaDataFile.NetRecord.SubnetRecord.toeprintNumber) } +inline ::uint32_t EdaDataFile_NetRecord_SubnetRecord::_internal_toeprintnumber() const { + ::google::protobuf::internal::TSanRead(&_impl_); + return _impl_.toeprintnumber_; +} +inline void EdaDataFile_NetRecord_SubnetRecord::_internal_set_toeprintnumber(::uint32_t value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.toeprintnumber_ = value; +} // optional uint32 index = 9; -inline bool EdaDataFile_NetRecord_SubnetRecord::_internal_has_index() const { +inline bool EdaDataFile_NetRecord_SubnetRecord::has_index() const { bool value = (_impl_._has_bits_[0] & 0x00000080u) != 0; return value; } -inline bool EdaDataFile_NetRecord_SubnetRecord::has_index() const { - return _internal_has_index(); -} inline void EdaDataFile_NetRecord_SubnetRecord::clear_index() { + ::google::protobuf::internal::TSanWrite(&_impl_); _impl_.index_ = 0u; _impl_._has_bits_[0] &= ~0x00000080u; } -inline uint32_t EdaDataFile_NetRecord_SubnetRecord::_internal_index() const { - return _impl_.index_; -} -inline uint32_t EdaDataFile_NetRecord_SubnetRecord::index() const { +inline ::uint32_t EdaDataFile_NetRecord_SubnetRecord::index() const { // @@protoc_insertion_point(field_get:Odb.Lib.Protobuf.EdaDataFile.NetRecord.SubnetRecord.index) return _internal_index(); } -inline void EdaDataFile_NetRecord_SubnetRecord::_internal_set_index(uint32_t value) { - _impl_._has_bits_[0] |= 0x00000080u; - _impl_.index_ = value; -} -inline void EdaDataFile_NetRecord_SubnetRecord::set_index(uint32_t value) { +inline void EdaDataFile_NetRecord_SubnetRecord::set_index(::uint32_t value) { _internal_set_index(value); + _impl_._has_bits_[0] |= 0x00000080u; // @@protoc_insertion_point(field_set:Odb.Lib.Protobuf.EdaDataFile.NetRecord.SubnetRecord.index) } +inline ::uint32_t EdaDataFile_NetRecord_SubnetRecord::_internal_index() const { + ::google::protobuf::internal::TSanRead(&_impl_); + return _impl_.index_; +} +inline void EdaDataFile_NetRecord_SubnetRecord::_internal_set_index(::uint32_t value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.index_ = value; +} // ------------------------------------------------------------------- @@ -3366,271 +3611,289 @@ inline void EdaDataFile_NetRecord_SubnetRecord::set_index(uint32_t value) { // EdaDataFile_NetRecord // optional string name = 1; -inline bool EdaDataFile_NetRecord::_internal_has_name() const { +inline bool EdaDataFile_NetRecord::has_name() const { bool value = (_impl_._has_bits_[0] & 0x00000001u) != 0; return value; } -inline bool EdaDataFile_NetRecord::has_name() const { - return _internal_has_name(); -} inline void EdaDataFile_NetRecord::clear_name() { + ::google::protobuf::internal::TSanWrite(&_impl_); _impl_.name_.ClearToEmpty(); _impl_._has_bits_[0] &= ~0x00000001u; } -inline const std::string& EdaDataFile_NetRecord::name() const { +inline const std::string& EdaDataFile_NetRecord::name() const + ABSL_ATTRIBUTE_LIFETIME_BOUND { // @@protoc_insertion_point(field_get:Odb.Lib.Protobuf.EdaDataFile.NetRecord.name) return _internal_name(); } -template -inline PROTOBUF_ALWAYS_INLINE -void EdaDataFile_NetRecord::set_name(ArgT0&& arg0, ArgT... args) { - _impl_._has_bits_[0] |= 0x00000001u; - _impl_.name_.Set(static_cast(arg0), args..., GetArenaForAllocation()); +template +inline PROTOBUF_ALWAYS_INLINE void EdaDataFile_NetRecord::set_name(Arg_&& arg, + Args_... args) { + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_._has_bits_[0] |= 0x00000001u; + _impl_.name_.Set(static_cast(arg), args..., GetArena()); // @@protoc_insertion_point(field_set:Odb.Lib.Protobuf.EdaDataFile.NetRecord.name) } -inline std::string* EdaDataFile_NetRecord::mutable_name() { +inline std::string* EdaDataFile_NetRecord::mutable_name() ABSL_ATTRIBUTE_LIFETIME_BOUND { std::string* _s = _internal_mutable_name(); // @@protoc_insertion_point(field_mutable:Odb.Lib.Protobuf.EdaDataFile.NetRecord.name) return _s; } inline const std::string& EdaDataFile_NetRecord::_internal_name() const { + ::google::protobuf::internal::TSanRead(&_impl_); return _impl_.name_.Get(); } inline void EdaDataFile_NetRecord::_internal_set_name(const std::string& value) { + ::google::protobuf::internal::TSanWrite(&_impl_); _impl_._has_bits_[0] |= 0x00000001u; - _impl_.name_.Set(value, GetArenaForAllocation()); + _impl_.name_.Set(value, GetArena()); } inline std::string* EdaDataFile_NetRecord::_internal_mutable_name() { + ::google::protobuf::internal::TSanWrite(&_impl_); _impl_._has_bits_[0] |= 0x00000001u; - return _impl_.name_.Mutable(GetArenaForAllocation()); + return _impl_.name_.Mutable( GetArena()); } inline std::string* EdaDataFile_NetRecord::release_name() { + ::google::protobuf::internal::TSanWrite(&_impl_); // @@protoc_insertion_point(field_release:Odb.Lib.Protobuf.EdaDataFile.NetRecord.name) - if (!_internal_has_name()) { + if ((_impl_._has_bits_[0] & 0x00000001u) == 0) { return nullptr; } _impl_._has_bits_[0] &= ~0x00000001u; - auto* p = _impl_.name_.Release(); -#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (_impl_.name_.IsDefault()) { - _impl_.name_.Set("", GetArenaForAllocation()); + auto* released = _impl_.name_.Release(); + if (::google::protobuf::internal::DebugHardenForceCopyDefaultString()) { + _impl_.name_.Set("", GetArena()); } -#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING - return p; + return released; } -inline void EdaDataFile_NetRecord::set_allocated_name(std::string* name) { - if (name != nullptr) { +inline void EdaDataFile_NetRecord::set_allocated_name(std::string* value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + if (value != nullptr) { _impl_._has_bits_[0] |= 0x00000001u; } else { _impl_._has_bits_[0] &= ~0x00000001u; } - _impl_.name_.SetAllocated(name, GetArenaForAllocation()); -#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (_impl_.name_.IsDefault()) { - _impl_.name_.Set("", GetArenaForAllocation()); + _impl_.name_.SetAllocated(value, GetArena()); + if (::google::protobuf::internal::DebugHardenForceCopyDefaultString() && _impl_.name_.IsDefault()) { + _impl_.name_.Set("", GetArena()); } -#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING // @@protoc_insertion_point(field_set_allocated:Odb.Lib.Protobuf.EdaDataFile.NetRecord.name) } // optional string attributesIdString = 2; -inline bool EdaDataFile_NetRecord::_internal_has_attributesidstring() const { +inline bool EdaDataFile_NetRecord::has_attributesidstring() const { bool value = (_impl_._has_bits_[0] & 0x00000002u) != 0; return value; } -inline bool EdaDataFile_NetRecord::has_attributesidstring() const { - return _internal_has_attributesidstring(); -} inline void EdaDataFile_NetRecord::clear_attributesidstring() { + ::google::protobuf::internal::TSanWrite(&_impl_); _impl_.attributesidstring_.ClearToEmpty(); _impl_._has_bits_[0] &= ~0x00000002u; } -inline const std::string& EdaDataFile_NetRecord::attributesidstring() const { +inline const std::string& EdaDataFile_NetRecord::attributesidstring() const + ABSL_ATTRIBUTE_LIFETIME_BOUND { // @@protoc_insertion_point(field_get:Odb.Lib.Protobuf.EdaDataFile.NetRecord.attributesIdString) return _internal_attributesidstring(); } -template -inline PROTOBUF_ALWAYS_INLINE -void EdaDataFile_NetRecord::set_attributesidstring(ArgT0&& arg0, ArgT... args) { - _impl_._has_bits_[0] |= 0x00000002u; - _impl_.attributesidstring_.Set(static_cast(arg0), args..., GetArenaForAllocation()); +template +inline PROTOBUF_ALWAYS_INLINE void EdaDataFile_NetRecord::set_attributesidstring(Arg_&& arg, + Args_... args) { + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_._has_bits_[0] |= 0x00000002u; + _impl_.attributesidstring_.Set(static_cast(arg), args..., GetArena()); // @@protoc_insertion_point(field_set:Odb.Lib.Protobuf.EdaDataFile.NetRecord.attributesIdString) } -inline std::string* EdaDataFile_NetRecord::mutable_attributesidstring() { +inline std::string* EdaDataFile_NetRecord::mutable_attributesidstring() ABSL_ATTRIBUTE_LIFETIME_BOUND { std::string* _s = _internal_mutable_attributesidstring(); // @@protoc_insertion_point(field_mutable:Odb.Lib.Protobuf.EdaDataFile.NetRecord.attributesIdString) return _s; } inline const std::string& EdaDataFile_NetRecord::_internal_attributesidstring() const { + ::google::protobuf::internal::TSanRead(&_impl_); return _impl_.attributesidstring_.Get(); } inline void EdaDataFile_NetRecord::_internal_set_attributesidstring(const std::string& value) { + ::google::protobuf::internal::TSanWrite(&_impl_); _impl_._has_bits_[0] |= 0x00000002u; - _impl_.attributesidstring_.Set(value, GetArenaForAllocation()); + _impl_.attributesidstring_.Set(value, GetArena()); } inline std::string* EdaDataFile_NetRecord::_internal_mutable_attributesidstring() { + ::google::protobuf::internal::TSanWrite(&_impl_); _impl_._has_bits_[0] |= 0x00000002u; - return _impl_.attributesidstring_.Mutable(GetArenaForAllocation()); + return _impl_.attributesidstring_.Mutable( GetArena()); } inline std::string* EdaDataFile_NetRecord::release_attributesidstring() { + ::google::protobuf::internal::TSanWrite(&_impl_); // @@protoc_insertion_point(field_release:Odb.Lib.Protobuf.EdaDataFile.NetRecord.attributesIdString) - if (!_internal_has_attributesidstring()) { + if ((_impl_._has_bits_[0] & 0x00000002u) == 0) { return nullptr; } _impl_._has_bits_[0] &= ~0x00000002u; - auto* p = _impl_.attributesidstring_.Release(); -#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (_impl_.attributesidstring_.IsDefault()) { - _impl_.attributesidstring_.Set("", GetArenaForAllocation()); + auto* released = _impl_.attributesidstring_.Release(); + if (::google::protobuf::internal::DebugHardenForceCopyDefaultString()) { + _impl_.attributesidstring_.Set("", GetArena()); } -#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING - return p; + return released; } -inline void EdaDataFile_NetRecord::set_allocated_attributesidstring(std::string* attributesidstring) { - if (attributesidstring != nullptr) { +inline void EdaDataFile_NetRecord::set_allocated_attributesidstring(std::string* value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + if (value != nullptr) { _impl_._has_bits_[0] |= 0x00000002u; } else { _impl_._has_bits_[0] &= ~0x00000002u; } - _impl_.attributesidstring_.SetAllocated(attributesidstring, GetArenaForAllocation()); -#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (_impl_.attributesidstring_.IsDefault()) { - _impl_.attributesidstring_.Set("", GetArenaForAllocation()); + _impl_.attributesidstring_.SetAllocated(value, GetArena()); + if (::google::protobuf::internal::DebugHardenForceCopyDefaultString() && _impl_.attributesidstring_.IsDefault()) { + _impl_.attributesidstring_.Set("", GetArena()); } -#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING // @@protoc_insertion_point(field_set_allocated:Odb.Lib.Protobuf.EdaDataFile.NetRecord.attributesIdString) } // optional uint32 index = 3; -inline bool EdaDataFile_NetRecord::_internal_has_index() const { +inline bool EdaDataFile_NetRecord::has_index() const { bool value = (_impl_._has_bits_[0] & 0x00000004u) != 0; return value; } -inline bool EdaDataFile_NetRecord::has_index() const { - return _internal_has_index(); -} inline void EdaDataFile_NetRecord::clear_index() { + ::google::protobuf::internal::TSanWrite(&_impl_); _impl_.index_ = 0u; _impl_._has_bits_[0] &= ~0x00000004u; } -inline uint32_t EdaDataFile_NetRecord::_internal_index() const { - return _impl_.index_; -} -inline uint32_t EdaDataFile_NetRecord::index() const { +inline ::uint32_t EdaDataFile_NetRecord::index() const { // @@protoc_insertion_point(field_get:Odb.Lib.Protobuf.EdaDataFile.NetRecord.index) return _internal_index(); } -inline void EdaDataFile_NetRecord::_internal_set_index(uint32_t value) { - _impl_._has_bits_[0] |= 0x00000004u; - _impl_.index_ = value; -} -inline void EdaDataFile_NetRecord::set_index(uint32_t value) { +inline void EdaDataFile_NetRecord::set_index(::uint32_t value) { _internal_set_index(value); + _impl_._has_bits_[0] |= 0x00000004u; // @@protoc_insertion_point(field_set:Odb.Lib.Protobuf.EdaDataFile.NetRecord.index) } +inline ::uint32_t EdaDataFile_NetRecord::_internal_index() const { + ::google::protobuf::internal::TSanRead(&_impl_); + return _impl_.index_; +} +inline void EdaDataFile_NetRecord::_internal_set_index(::uint32_t value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.index_ = value; +} // repeated .Odb.Lib.Protobuf.EdaDataFile.NetRecord.SubnetRecord subnetRecords = 4; inline int EdaDataFile_NetRecord::_internal_subnetrecords_size() const { - return _impl_.subnetrecords_.size(); + return _internal_subnetrecords().size(); } inline int EdaDataFile_NetRecord::subnetrecords_size() const { return _internal_subnetrecords_size(); } inline void EdaDataFile_NetRecord::clear_subnetrecords() { + ::google::protobuf::internal::TSanWrite(&_impl_); _impl_.subnetrecords_.Clear(); } -inline ::Odb::Lib::Protobuf::EdaDataFile_NetRecord_SubnetRecord* EdaDataFile_NetRecord::mutable_subnetrecords(int index) { +inline ::Odb::Lib::Protobuf::EdaDataFile_NetRecord_SubnetRecord* EdaDataFile_NetRecord::mutable_subnetrecords(int index) + ABSL_ATTRIBUTE_LIFETIME_BOUND { // @@protoc_insertion_point(field_mutable:Odb.Lib.Protobuf.EdaDataFile.NetRecord.subnetRecords) - return _impl_.subnetrecords_.Mutable(index); + return _internal_mutable_subnetrecords()->Mutable(index); } -inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::Odb::Lib::Protobuf::EdaDataFile_NetRecord_SubnetRecord >* -EdaDataFile_NetRecord::mutable_subnetrecords() { +inline ::google::protobuf::RepeatedPtrField<::Odb::Lib::Protobuf::EdaDataFile_NetRecord_SubnetRecord>* EdaDataFile_NetRecord::mutable_subnetrecords() + ABSL_ATTRIBUTE_LIFETIME_BOUND { // @@protoc_insertion_point(field_mutable_list:Odb.Lib.Protobuf.EdaDataFile.NetRecord.subnetRecords) - return &_impl_.subnetrecords_; + ::google::protobuf::internal::TSanWrite(&_impl_); + return _internal_mutable_subnetrecords(); } -inline const ::Odb::Lib::Protobuf::EdaDataFile_NetRecord_SubnetRecord& EdaDataFile_NetRecord::_internal_subnetrecords(int index) const { - return _impl_.subnetrecords_.Get(index); -} -inline const ::Odb::Lib::Protobuf::EdaDataFile_NetRecord_SubnetRecord& EdaDataFile_NetRecord::subnetrecords(int index) const { +inline const ::Odb::Lib::Protobuf::EdaDataFile_NetRecord_SubnetRecord& EdaDataFile_NetRecord::subnetrecords(int index) const + ABSL_ATTRIBUTE_LIFETIME_BOUND { // @@protoc_insertion_point(field_get:Odb.Lib.Protobuf.EdaDataFile.NetRecord.subnetRecords) - return _internal_subnetrecords(index); -} -inline ::Odb::Lib::Protobuf::EdaDataFile_NetRecord_SubnetRecord* EdaDataFile_NetRecord::_internal_add_subnetrecords() { - return _impl_.subnetrecords_.Add(); + return _internal_subnetrecords().Get(index); } -inline ::Odb::Lib::Protobuf::EdaDataFile_NetRecord_SubnetRecord* EdaDataFile_NetRecord::add_subnetrecords() { - ::Odb::Lib::Protobuf::EdaDataFile_NetRecord_SubnetRecord* _add = _internal_add_subnetrecords(); +inline ::Odb::Lib::Protobuf::EdaDataFile_NetRecord_SubnetRecord* EdaDataFile_NetRecord::add_subnetrecords() ABSL_ATTRIBUTE_LIFETIME_BOUND { + ::google::protobuf::internal::TSanWrite(&_impl_); + ::Odb::Lib::Protobuf::EdaDataFile_NetRecord_SubnetRecord* _add = _internal_mutable_subnetrecords()->Add(); // @@protoc_insertion_point(field_add:Odb.Lib.Protobuf.EdaDataFile.NetRecord.subnetRecords) return _add; } -inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::Odb::Lib::Protobuf::EdaDataFile_NetRecord_SubnetRecord >& -EdaDataFile_NetRecord::subnetrecords() const { +inline const ::google::protobuf::RepeatedPtrField<::Odb::Lib::Protobuf::EdaDataFile_NetRecord_SubnetRecord>& EdaDataFile_NetRecord::subnetrecords() const + ABSL_ATTRIBUTE_LIFETIME_BOUND { // @@protoc_insertion_point(field_list:Odb.Lib.Protobuf.EdaDataFile.NetRecord.subnetRecords) + return _internal_subnetrecords(); +} +inline const ::google::protobuf::RepeatedPtrField<::Odb::Lib::Protobuf::EdaDataFile_NetRecord_SubnetRecord>& +EdaDataFile_NetRecord::_internal_subnetrecords() const { + ::google::protobuf::internal::TSanRead(&_impl_); return _impl_.subnetrecords_; } +inline ::google::protobuf::RepeatedPtrField<::Odb::Lib::Protobuf::EdaDataFile_NetRecord_SubnetRecord>* +EdaDataFile_NetRecord::_internal_mutable_subnetrecords() { + ::google::protobuf::internal::TSanRead(&_impl_); + return &_impl_.subnetrecords_; +} // repeated .Odb.Lib.Protobuf.PropertyRecord propertyRecords = 5; inline int EdaDataFile_NetRecord::_internal_propertyrecords_size() const { - return _impl_.propertyrecords_.size(); + return _internal_propertyrecords().size(); } inline int EdaDataFile_NetRecord::propertyrecords_size() const { return _internal_propertyrecords_size(); } -inline ::Odb::Lib::Protobuf::PropertyRecord* EdaDataFile_NetRecord::mutable_propertyrecords(int index) { +inline ::Odb::Lib::Protobuf::PropertyRecord* EdaDataFile_NetRecord::mutable_propertyrecords(int index) + ABSL_ATTRIBUTE_LIFETIME_BOUND { // @@protoc_insertion_point(field_mutable:Odb.Lib.Protobuf.EdaDataFile.NetRecord.propertyRecords) - return _impl_.propertyrecords_.Mutable(index); + return _internal_mutable_propertyrecords()->Mutable(index); } -inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::Odb::Lib::Protobuf::PropertyRecord >* -EdaDataFile_NetRecord::mutable_propertyrecords() { +inline ::google::protobuf::RepeatedPtrField<::Odb::Lib::Protobuf::PropertyRecord>* EdaDataFile_NetRecord::mutable_propertyrecords() + ABSL_ATTRIBUTE_LIFETIME_BOUND { // @@protoc_insertion_point(field_mutable_list:Odb.Lib.Protobuf.EdaDataFile.NetRecord.propertyRecords) - return &_impl_.propertyrecords_; + ::google::protobuf::internal::TSanWrite(&_impl_); + return _internal_mutable_propertyrecords(); } -inline const ::Odb::Lib::Protobuf::PropertyRecord& EdaDataFile_NetRecord::_internal_propertyrecords(int index) const { - return _impl_.propertyrecords_.Get(index); -} -inline const ::Odb::Lib::Protobuf::PropertyRecord& EdaDataFile_NetRecord::propertyrecords(int index) const { +inline const ::Odb::Lib::Protobuf::PropertyRecord& EdaDataFile_NetRecord::propertyrecords(int index) const + ABSL_ATTRIBUTE_LIFETIME_BOUND { // @@protoc_insertion_point(field_get:Odb.Lib.Protobuf.EdaDataFile.NetRecord.propertyRecords) - return _internal_propertyrecords(index); -} -inline ::Odb::Lib::Protobuf::PropertyRecord* EdaDataFile_NetRecord::_internal_add_propertyrecords() { - return _impl_.propertyrecords_.Add(); + return _internal_propertyrecords().Get(index); } -inline ::Odb::Lib::Protobuf::PropertyRecord* EdaDataFile_NetRecord::add_propertyrecords() { - ::Odb::Lib::Protobuf::PropertyRecord* _add = _internal_add_propertyrecords(); +inline ::Odb::Lib::Protobuf::PropertyRecord* EdaDataFile_NetRecord::add_propertyrecords() ABSL_ATTRIBUTE_LIFETIME_BOUND { + ::google::protobuf::internal::TSanWrite(&_impl_); + ::Odb::Lib::Protobuf::PropertyRecord* _add = _internal_mutable_propertyrecords()->Add(); // @@protoc_insertion_point(field_add:Odb.Lib.Protobuf.EdaDataFile.NetRecord.propertyRecords) return _add; } -inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::Odb::Lib::Protobuf::PropertyRecord >& -EdaDataFile_NetRecord::propertyrecords() const { +inline const ::google::protobuf::RepeatedPtrField<::Odb::Lib::Protobuf::PropertyRecord>& EdaDataFile_NetRecord::propertyrecords() const + ABSL_ATTRIBUTE_LIFETIME_BOUND { // @@protoc_insertion_point(field_list:Odb.Lib.Protobuf.EdaDataFile.NetRecord.propertyRecords) + return _internal_propertyrecords(); +} +inline const ::google::protobuf::RepeatedPtrField<::Odb::Lib::Protobuf::PropertyRecord>& +EdaDataFile_NetRecord::_internal_propertyrecords() const { + ::google::protobuf::internal::TSanRead(&_impl_); return _impl_.propertyrecords_; } +inline ::google::protobuf::RepeatedPtrField<::Odb::Lib::Protobuf::PropertyRecord>* +EdaDataFile_NetRecord::_internal_mutable_propertyrecords() { + ::google::protobuf::internal::TSanRead(&_impl_); + return &_impl_.propertyrecords_; +} // map attributeLookupTable = 6; inline int EdaDataFile_NetRecord::_internal_attributelookuptable_size() const { - return _impl_.attributelookuptable_.size(); + return _internal_attributelookuptable().size(); } inline int EdaDataFile_NetRecord::attributelookuptable_size() const { return _internal_attributelookuptable_size(); } inline void EdaDataFile_NetRecord::clear_attributelookuptable() { + ::google::protobuf::internal::TSanWrite(&_impl_); _impl_.attributelookuptable_.Clear(); } -inline const ::PROTOBUF_NAMESPACE_ID::Map< std::string, std::string >& -EdaDataFile_NetRecord::_internal_attributelookuptable() const { +inline const ::google::protobuf::Map& EdaDataFile_NetRecord::_internal_attributelookuptable() const { + ::google::protobuf::internal::TSanRead(&_impl_); return _impl_.attributelookuptable_.GetMap(); } -inline const ::PROTOBUF_NAMESPACE_ID::Map< std::string, std::string >& -EdaDataFile_NetRecord::attributelookuptable() const { +inline const ::google::protobuf::Map& EdaDataFile_NetRecord::attributelookuptable() const ABSL_ATTRIBUTE_LIFETIME_BOUND { // @@protoc_insertion_point(field_map:Odb.Lib.Protobuf.EdaDataFile.NetRecord.attributeLookupTable) return _internal_attributelookuptable(); } -inline ::PROTOBUF_NAMESPACE_ID::Map< std::string, std::string >* -EdaDataFile_NetRecord::_internal_mutable_attributelookuptable() { +inline ::google::protobuf::Map* EdaDataFile_NetRecord::_internal_mutable_attributelookuptable() { + ::google::protobuf::internal::TSanWrite(&_impl_); return _impl_.attributelookuptable_.MutableMap(); } -inline ::PROTOBUF_NAMESPACE_ID::Map< std::string, std::string >* -EdaDataFile_NetRecord::mutable_attributelookuptable() { +inline ::google::protobuf::Map* EdaDataFile_NetRecord::mutable_attributelookuptable() ABSL_ATTRIBUTE_LIFETIME_BOUND { // @@protoc_insertion_point(field_mutable_map:Odb.Lib.Protobuf.EdaDataFile.NetRecord.attributeLookupTable) return _internal_mutable_attributelookuptable(); } @@ -3644,1041 +3907,1076 @@ EdaDataFile_NetRecord::mutable_attributelookuptable() { // EdaDataFile_PackageRecord_OutlineRecord // optional .Odb.Lib.Protobuf.EdaDataFile.PackageRecord.OutlineRecord.Type type = 1; -inline bool EdaDataFile_PackageRecord_OutlineRecord::_internal_has_type() const { +inline bool EdaDataFile_PackageRecord_OutlineRecord::has_type() const { bool value = (_impl_._has_bits_[0] & 0x00000001u) != 0; return value; } -inline bool EdaDataFile_PackageRecord_OutlineRecord::has_type() const { - return _internal_has_type(); -} inline void EdaDataFile_PackageRecord_OutlineRecord::clear_type() { + ::google::protobuf::internal::TSanWrite(&_impl_); _impl_.type_ = 0; _impl_._has_bits_[0] &= ~0x00000001u; } -inline ::Odb::Lib::Protobuf::EdaDataFile_PackageRecord_OutlineRecord_Type EdaDataFile_PackageRecord_OutlineRecord::_internal_type() const { - return static_cast< ::Odb::Lib::Protobuf::EdaDataFile_PackageRecord_OutlineRecord_Type >(_impl_.type_); -} inline ::Odb::Lib::Protobuf::EdaDataFile_PackageRecord_OutlineRecord_Type EdaDataFile_PackageRecord_OutlineRecord::type() const { - // @@protoc_insertion_point(field_get:Odb.Lib.Protobuf.EdaDataFile.PackageRecord.OutlineRecord.type) - return _internal_type(); -} -inline void EdaDataFile_PackageRecord_OutlineRecord::_internal_set_type(::Odb::Lib::Protobuf::EdaDataFile_PackageRecord_OutlineRecord_Type value) { - _impl_._has_bits_[0] |= 0x00000001u; - _impl_.type_ = value; + // @@protoc_insertion_point(field_get:Odb.Lib.Protobuf.EdaDataFile.PackageRecord.OutlineRecord.type) + return _internal_type(); } inline void EdaDataFile_PackageRecord_OutlineRecord::set_type(::Odb::Lib::Protobuf::EdaDataFile_PackageRecord_OutlineRecord_Type value) { _internal_set_type(value); + _impl_._has_bits_[0] |= 0x00000001u; // @@protoc_insertion_point(field_set:Odb.Lib.Protobuf.EdaDataFile.PackageRecord.OutlineRecord.type) } +inline ::Odb::Lib::Protobuf::EdaDataFile_PackageRecord_OutlineRecord_Type EdaDataFile_PackageRecord_OutlineRecord::_internal_type() const { + ::google::protobuf::internal::TSanRead(&_impl_); + return static_cast<::Odb::Lib::Protobuf::EdaDataFile_PackageRecord_OutlineRecord_Type>(_impl_.type_); +} +inline void EdaDataFile_PackageRecord_OutlineRecord::_internal_set_type(::Odb::Lib::Protobuf::EdaDataFile_PackageRecord_OutlineRecord_Type value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.type_ = value; +} // optional float lowerLeftX = 2; -inline bool EdaDataFile_PackageRecord_OutlineRecord::_internal_has_lowerleftx() const { +inline bool EdaDataFile_PackageRecord_OutlineRecord::has_lowerleftx() const { bool value = (_impl_._has_bits_[0] & 0x00000002u) != 0; return value; } -inline bool EdaDataFile_PackageRecord_OutlineRecord::has_lowerleftx() const { - return _internal_has_lowerleftx(); -} inline void EdaDataFile_PackageRecord_OutlineRecord::clear_lowerleftx() { + ::google::protobuf::internal::TSanWrite(&_impl_); _impl_.lowerleftx_ = 0; _impl_._has_bits_[0] &= ~0x00000002u; } -inline float EdaDataFile_PackageRecord_OutlineRecord::_internal_lowerleftx() const { - return _impl_.lowerleftx_; -} inline float EdaDataFile_PackageRecord_OutlineRecord::lowerleftx() const { // @@protoc_insertion_point(field_get:Odb.Lib.Protobuf.EdaDataFile.PackageRecord.OutlineRecord.lowerLeftX) return _internal_lowerleftx(); } -inline void EdaDataFile_PackageRecord_OutlineRecord::_internal_set_lowerleftx(float value) { - _impl_._has_bits_[0] |= 0x00000002u; - _impl_.lowerleftx_ = value; -} inline void EdaDataFile_PackageRecord_OutlineRecord::set_lowerleftx(float value) { _internal_set_lowerleftx(value); + _impl_._has_bits_[0] |= 0x00000002u; // @@protoc_insertion_point(field_set:Odb.Lib.Protobuf.EdaDataFile.PackageRecord.OutlineRecord.lowerLeftX) } +inline float EdaDataFile_PackageRecord_OutlineRecord::_internal_lowerleftx() const { + ::google::protobuf::internal::TSanRead(&_impl_); + return _impl_.lowerleftx_; +} +inline void EdaDataFile_PackageRecord_OutlineRecord::_internal_set_lowerleftx(float value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.lowerleftx_ = value; +} // optional float lowerLeftY = 3; -inline bool EdaDataFile_PackageRecord_OutlineRecord::_internal_has_lowerlefty() const { +inline bool EdaDataFile_PackageRecord_OutlineRecord::has_lowerlefty() const { bool value = (_impl_._has_bits_[0] & 0x00000004u) != 0; return value; } -inline bool EdaDataFile_PackageRecord_OutlineRecord::has_lowerlefty() const { - return _internal_has_lowerlefty(); -} inline void EdaDataFile_PackageRecord_OutlineRecord::clear_lowerlefty() { + ::google::protobuf::internal::TSanWrite(&_impl_); _impl_.lowerlefty_ = 0; _impl_._has_bits_[0] &= ~0x00000004u; } -inline float EdaDataFile_PackageRecord_OutlineRecord::_internal_lowerlefty() const { - return _impl_.lowerlefty_; -} inline float EdaDataFile_PackageRecord_OutlineRecord::lowerlefty() const { // @@protoc_insertion_point(field_get:Odb.Lib.Protobuf.EdaDataFile.PackageRecord.OutlineRecord.lowerLeftY) return _internal_lowerlefty(); } -inline void EdaDataFile_PackageRecord_OutlineRecord::_internal_set_lowerlefty(float value) { - _impl_._has_bits_[0] |= 0x00000004u; - _impl_.lowerlefty_ = value; -} inline void EdaDataFile_PackageRecord_OutlineRecord::set_lowerlefty(float value) { _internal_set_lowerlefty(value); + _impl_._has_bits_[0] |= 0x00000004u; // @@protoc_insertion_point(field_set:Odb.Lib.Protobuf.EdaDataFile.PackageRecord.OutlineRecord.lowerLeftY) } +inline float EdaDataFile_PackageRecord_OutlineRecord::_internal_lowerlefty() const { + ::google::protobuf::internal::TSanRead(&_impl_); + return _impl_.lowerlefty_; +} +inline void EdaDataFile_PackageRecord_OutlineRecord::_internal_set_lowerlefty(float value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.lowerlefty_ = value; +} // optional float width = 4; -inline bool EdaDataFile_PackageRecord_OutlineRecord::_internal_has_width() const { +inline bool EdaDataFile_PackageRecord_OutlineRecord::has_width() const { bool value = (_impl_._has_bits_[0] & 0x00000008u) != 0; return value; } -inline bool EdaDataFile_PackageRecord_OutlineRecord::has_width() const { - return _internal_has_width(); -} inline void EdaDataFile_PackageRecord_OutlineRecord::clear_width() { + ::google::protobuf::internal::TSanWrite(&_impl_); _impl_.width_ = 0; _impl_._has_bits_[0] &= ~0x00000008u; } -inline float EdaDataFile_PackageRecord_OutlineRecord::_internal_width() const { - return _impl_.width_; -} inline float EdaDataFile_PackageRecord_OutlineRecord::width() const { // @@protoc_insertion_point(field_get:Odb.Lib.Protobuf.EdaDataFile.PackageRecord.OutlineRecord.width) return _internal_width(); } -inline void EdaDataFile_PackageRecord_OutlineRecord::_internal_set_width(float value) { - _impl_._has_bits_[0] |= 0x00000008u; - _impl_.width_ = value; -} inline void EdaDataFile_PackageRecord_OutlineRecord::set_width(float value) { _internal_set_width(value); + _impl_._has_bits_[0] |= 0x00000008u; // @@protoc_insertion_point(field_set:Odb.Lib.Protobuf.EdaDataFile.PackageRecord.OutlineRecord.width) } +inline float EdaDataFile_PackageRecord_OutlineRecord::_internal_width() const { + ::google::protobuf::internal::TSanRead(&_impl_); + return _impl_.width_; +} +inline void EdaDataFile_PackageRecord_OutlineRecord::_internal_set_width(float value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.width_ = value; +} // optional float height = 5; -inline bool EdaDataFile_PackageRecord_OutlineRecord::_internal_has_height() const { +inline bool EdaDataFile_PackageRecord_OutlineRecord::has_height() const { bool value = (_impl_._has_bits_[0] & 0x00000010u) != 0; return value; } -inline bool EdaDataFile_PackageRecord_OutlineRecord::has_height() const { - return _internal_has_height(); -} inline void EdaDataFile_PackageRecord_OutlineRecord::clear_height() { + ::google::protobuf::internal::TSanWrite(&_impl_); _impl_.height_ = 0; _impl_._has_bits_[0] &= ~0x00000010u; } -inline float EdaDataFile_PackageRecord_OutlineRecord::_internal_height() const { - return _impl_.height_; -} inline float EdaDataFile_PackageRecord_OutlineRecord::height() const { // @@protoc_insertion_point(field_get:Odb.Lib.Protobuf.EdaDataFile.PackageRecord.OutlineRecord.height) return _internal_height(); } -inline void EdaDataFile_PackageRecord_OutlineRecord::_internal_set_height(float value) { - _impl_._has_bits_[0] |= 0x00000010u; - _impl_.height_ = value; -} inline void EdaDataFile_PackageRecord_OutlineRecord::set_height(float value) { _internal_set_height(value); + _impl_._has_bits_[0] |= 0x00000010u; // @@protoc_insertion_point(field_set:Odb.Lib.Protobuf.EdaDataFile.PackageRecord.OutlineRecord.height) } +inline float EdaDataFile_PackageRecord_OutlineRecord::_internal_height() const { + ::google::protobuf::internal::TSanRead(&_impl_); + return _impl_.height_; +} +inline void EdaDataFile_PackageRecord_OutlineRecord::_internal_set_height(float value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.height_ = value; +} // optional float xCenter = 6; -inline bool EdaDataFile_PackageRecord_OutlineRecord::_internal_has_xcenter() const { +inline bool EdaDataFile_PackageRecord_OutlineRecord::has_xcenter() const { bool value = (_impl_._has_bits_[0] & 0x00000020u) != 0; return value; } -inline bool EdaDataFile_PackageRecord_OutlineRecord::has_xcenter() const { - return _internal_has_xcenter(); -} inline void EdaDataFile_PackageRecord_OutlineRecord::clear_xcenter() { + ::google::protobuf::internal::TSanWrite(&_impl_); _impl_.xcenter_ = 0; _impl_._has_bits_[0] &= ~0x00000020u; } -inline float EdaDataFile_PackageRecord_OutlineRecord::_internal_xcenter() const { - return _impl_.xcenter_; -} inline float EdaDataFile_PackageRecord_OutlineRecord::xcenter() const { // @@protoc_insertion_point(field_get:Odb.Lib.Protobuf.EdaDataFile.PackageRecord.OutlineRecord.xCenter) return _internal_xcenter(); } -inline void EdaDataFile_PackageRecord_OutlineRecord::_internal_set_xcenter(float value) { - _impl_._has_bits_[0] |= 0x00000020u; - _impl_.xcenter_ = value; -} inline void EdaDataFile_PackageRecord_OutlineRecord::set_xcenter(float value) { _internal_set_xcenter(value); + _impl_._has_bits_[0] |= 0x00000020u; // @@protoc_insertion_point(field_set:Odb.Lib.Protobuf.EdaDataFile.PackageRecord.OutlineRecord.xCenter) } +inline float EdaDataFile_PackageRecord_OutlineRecord::_internal_xcenter() const { + ::google::protobuf::internal::TSanRead(&_impl_); + return _impl_.xcenter_; +} +inline void EdaDataFile_PackageRecord_OutlineRecord::_internal_set_xcenter(float value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.xcenter_ = value; +} // optional float yCenter = 7; -inline bool EdaDataFile_PackageRecord_OutlineRecord::_internal_has_ycenter() const { +inline bool EdaDataFile_PackageRecord_OutlineRecord::has_ycenter() const { bool value = (_impl_._has_bits_[0] & 0x00000040u) != 0; return value; } -inline bool EdaDataFile_PackageRecord_OutlineRecord::has_ycenter() const { - return _internal_has_ycenter(); -} inline void EdaDataFile_PackageRecord_OutlineRecord::clear_ycenter() { + ::google::protobuf::internal::TSanWrite(&_impl_); _impl_.ycenter_ = 0; _impl_._has_bits_[0] &= ~0x00000040u; } -inline float EdaDataFile_PackageRecord_OutlineRecord::_internal_ycenter() const { - return _impl_.ycenter_; -} inline float EdaDataFile_PackageRecord_OutlineRecord::ycenter() const { // @@protoc_insertion_point(field_get:Odb.Lib.Protobuf.EdaDataFile.PackageRecord.OutlineRecord.yCenter) return _internal_ycenter(); } -inline void EdaDataFile_PackageRecord_OutlineRecord::_internal_set_ycenter(float value) { - _impl_._has_bits_[0] |= 0x00000040u; - _impl_.ycenter_ = value; -} inline void EdaDataFile_PackageRecord_OutlineRecord::set_ycenter(float value) { _internal_set_ycenter(value); + _impl_._has_bits_[0] |= 0x00000040u; // @@protoc_insertion_point(field_set:Odb.Lib.Protobuf.EdaDataFile.PackageRecord.OutlineRecord.yCenter) } +inline float EdaDataFile_PackageRecord_OutlineRecord::_internal_ycenter() const { + ::google::protobuf::internal::TSanRead(&_impl_); + return _impl_.ycenter_; +} +inline void EdaDataFile_PackageRecord_OutlineRecord::_internal_set_ycenter(float value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.ycenter_ = value; +} // optional float halfSide = 8; -inline bool EdaDataFile_PackageRecord_OutlineRecord::_internal_has_halfside() const { +inline bool EdaDataFile_PackageRecord_OutlineRecord::has_halfside() const { bool value = (_impl_._has_bits_[0] & 0x00000080u) != 0; return value; } -inline bool EdaDataFile_PackageRecord_OutlineRecord::has_halfside() const { - return _internal_has_halfside(); -} inline void EdaDataFile_PackageRecord_OutlineRecord::clear_halfside() { + ::google::protobuf::internal::TSanWrite(&_impl_); _impl_.halfside_ = 0; _impl_._has_bits_[0] &= ~0x00000080u; } -inline float EdaDataFile_PackageRecord_OutlineRecord::_internal_halfside() const { - return _impl_.halfside_; -} inline float EdaDataFile_PackageRecord_OutlineRecord::halfside() const { // @@protoc_insertion_point(field_get:Odb.Lib.Protobuf.EdaDataFile.PackageRecord.OutlineRecord.halfSide) return _internal_halfside(); } -inline void EdaDataFile_PackageRecord_OutlineRecord::_internal_set_halfside(float value) { - _impl_._has_bits_[0] |= 0x00000080u; - _impl_.halfside_ = value; -} inline void EdaDataFile_PackageRecord_OutlineRecord::set_halfside(float value) { _internal_set_halfside(value); + _impl_._has_bits_[0] |= 0x00000080u; // @@protoc_insertion_point(field_set:Odb.Lib.Protobuf.EdaDataFile.PackageRecord.OutlineRecord.halfSide) } +inline float EdaDataFile_PackageRecord_OutlineRecord::_internal_halfside() const { + ::google::protobuf::internal::TSanRead(&_impl_); + return _impl_.halfside_; +} +inline void EdaDataFile_PackageRecord_OutlineRecord::_internal_set_halfside(float value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.halfside_ = value; +} // optional float radius = 9; -inline bool EdaDataFile_PackageRecord_OutlineRecord::_internal_has_radius() const { +inline bool EdaDataFile_PackageRecord_OutlineRecord::has_radius() const { bool value = (_impl_._has_bits_[0] & 0x00000100u) != 0; return value; } -inline bool EdaDataFile_PackageRecord_OutlineRecord::has_radius() const { - return _internal_has_radius(); -} inline void EdaDataFile_PackageRecord_OutlineRecord::clear_radius() { + ::google::protobuf::internal::TSanWrite(&_impl_); _impl_.radius_ = 0; _impl_._has_bits_[0] &= ~0x00000100u; } -inline float EdaDataFile_PackageRecord_OutlineRecord::_internal_radius() const { - return _impl_.radius_; -} inline float EdaDataFile_PackageRecord_OutlineRecord::radius() const { // @@protoc_insertion_point(field_get:Odb.Lib.Protobuf.EdaDataFile.PackageRecord.OutlineRecord.radius) return _internal_radius(); } -inline void EdaDataFile_PackageRecord_OutlineRecord::_internal_set_radius(float value) { - _impl_._has_bits_[0] |= 0x00000100u; - _impl_.radius_ = value; -} inline void EdaDataFile_PackageRecord_OutlineRecord::set_radius(float value) { _internal_set_radius(value); + _impl_._has_bits_[0] |= 0x00000100u; // @@protoc_insertion_point(field_set:Odb.Lib.Protobuf.EdaDataFile.PackageRecord.OutlineRecord.radius) } +inline float EdaDataFile_PackageRecord_OutlineRecord::_internal_radius() const { + ::google::protobuf::internal::TSanRead(&_impl_); + return _impl_.radius_; +} +inline void EdaDataFile_PackageRecord_OutlineRecord::_internal_set_radius(float value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.radius_ = value; +} // repeated .Odb.Lib.Protobuf.ContourPolygon contourPolygons = 10; inline int EdaDataFile_PackageRecord_OutlineRecord::_internal_contourpolygons_size() const { - return _impl_.contourpolygons_.size(); + return _internal_contourpolygons().size(); } inline int EdaDataFile_PackageRecord_OutlineRecord::contourpolygons_size() const { return _internal_contourpolygons_size(); } -inline ::Odb::Lib::Protobuf::ContourPolygon* EdaDataFile_PackageRecord_OutlineRecord::mutable_contourpolygons(int index) { +inline ::Odb::Lib::Protobuf::ContourPolygon* EdaDataFile_PackageRecord_OutlineRecord::mutable_contourpolygons(int index) + ABSL_ATTRIBUTE_LIFETIME_BOUND { // @@protoc_insertion_point(field_mutable:Odb.Lib.Protobuf.EdaDataFile.PackageRecord.OutlineRecord.contourPolygons) - return _impl_.contourpolygons_.Mutable(index); + return _internal_mutable_contourpolygons()->Mutable(index); } -inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::Odb::Lib::Protobuf::ContourPolygon >* -EdaDataFile_PackageRecord_OutlineRecord::mutable_contourpolygons() { +inline ::google::protobuf::RepeatedPtrField<::Odb::Lib::Protobuf::ContourPolygon>* EdaDataFile_PackageRecord_OutlineRecord::mutable_contourpolygons() + ABSL_ATTRIBUTE_LIFETIME_BOUND { // @@protoc_insertion_point(field_mutable_list:Odb.Lib.Protobuf.EdaDataFile.PackageRecord.OutlineRecord.contourPolygons) - return &_impl_.contourpolygons_; -} -inline const ::Odb::Lib::Protobuf::ContourPolygon& EdaDataFile_PackageRecord_OutlineRecord::_internal_contourpolygons(int index) const { - return _impl_.contourpolygons_.Get(index); + ::google::protobuf::internal::TSanWrite(&_impl_); + return _internal_mutable_contourpolygons(); } -inline const ::Odb::Lib::Protobuf::ContourPolygon& EdaDataFile_PackageRecord_OutlineRecord::contourpolygons(int index) const { +inline const ::Odb::Lib::Protobuf::ContourPolygon& EdaDataFile_PackageRecord_OutlineRecord::contourpolygons(int index) const + ABSL_ATTRIBUTE_LIFETIME_BOUND { // @@protoc_insertion_point(field_get:Odb.Lib.Protobuf.EdaDataFile.PackageRecord.OutlineRecord.contourPolygons) - return _internal_contourpolygons(index); + return _internal_contourpolygons().Get(index); } -inline ::Odb::Lib::Protobuf::ContourPolygon* EdaDataFile_PackageRecord_OutlineRecord::_internal_add_contourpolygons() { - return _impl_.contourpolygons_.Add(); -} -inline ::Odb::Lib::Protobuf::ContourPolygon* EdaDataFile_PackageRecord_OutlineRecord::add_contourpolygons() { - ::Odb::Lib::Protobuf::ContourPolygon* _add = _internal_add_contourpolygons(); +inline ::Odb::Lib::Protobuf::ContourPolygon* EdaDataFile_PackageRecord_OutlineRecord::add_contourpolygons() ABSL_ATTRIBUTE_LIFETIME_BOUND { + ::google::protobuf::internal::TSanWrite(&_impl_); + ::Odb::Lib::Protobuf::ContourPolygon* _add = _internal_mutable_contourpolygons()->Add(); // @@protoc_insertion_point(field_add:Odb.Lib.Protobuf.EdaDataFile.PackageRecord.OutlineRecord.contourPolygons) return _add; } -inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::Odb::Lib::Protobuf::ContourPolygon >& -EdaDataFile_PackageRecord_OutlineRecord::contourpolygons() const { +inline const ::google::protobuf::RepeatedPtrField<::Odb::Lib::Protobuf::ContourPolygon>& EdaDataFile_PackageRecord_OutlineRecord::contourpolygons() const + ABSL_ATTRIBUTE_LIFETIME_BOUND { // @@protoc_insertion_point(field_list:Odb.Lib.Protobuf.EdaDataFile.PackageRecord.OutlineRecord.contourPolygons) + return _internal_contourpolygons(); +} +inline const ::google::protobuf::RepeatedPtrField<::Odb::Lib::Protobuf::ContourPolygon>& +EdaDataFile_PackageRecord_OutlineRecord::_internal_contourpolygons() const { + ::google::protobuf::internal::TSanRead(&_impl_); return _impl_.contourpolygons_; } +inline ::google::protobuf::RepeatedPtrField<::Odb::Lib::Protobuf::ContourPolygon>* +EdaDataFile_PackageRecord_OutlineRecord::_internal_mutable_contourpolygons() { + ::google::protobuf::internal::TSanRead(&_impl_); + return &_impl_.contourpolygons_; +} // ------------------------------------------------------------------- // EdaDataFile_PackageRecord_PinRecord // optional string name = 1; -inline bool EdaDataFile_PackageRecord_PinRecord::_internal_has_name() const { +inline bool EdaDataFile_PackageRecord_PinRecord::has_name() const { bool value = (_impl_._has_bits_[0] & 0x00000001u) != 0; return value; } -inline bool EdaDataFile_PackageRecord_PinRecord::has_name() const { - return _internal_has_name(); -} inline void EdaDataFile_PackageRecord_PinRecord::clear_name() { + ::google::protobuf::internal::TSanWrite(&_impl_); _impl_.name_.ClearToEmpty(); _impl_._has_bits_[0] &= ~0x00000001u; } -inline const std::string& EdaDataFile_PackageRecord_PinRecord::name() const { +inline const std::string& EdaDataFile_PackageRecord_PinRecord::name() const + ABSL_ATTRIBUTE_LIFETIME_BOUND { // @@protoc_insertion_point(field_get:Odb.Lib.Protobuf.EdaDataFile.PackageRecord.PinRecord.name) return _internal_name(); } -template -inline PROTOBUF_ALWAYS_INLINE -void EdaDataFile_PackageRecord_PinRecord::set_name(ArgT0&& arg0, ArgT... args) { - _impl_._has_bits_[0] |= 0x00000001u; - _impl_.name_.Set(static_cast(arg0), args..., GetArenaForAllocation()); +template +inline PROTOBUF_ALWAYS_INLINE void EdaDataFile_PackageRecord_PinRecord::set_name(Arg_&& arg, + Args_... args) { + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_._has_bits_[0] |= 0x00000001u; + _impl_.name_.Set(static_cast(arg), args..., GetArena()); // @@protoc_insertion_point(field_set:Odb.Lib.Protobuf.EdaDataFile.PackageRecord.PinRecord.name) } -inline std::string* EdaDataFile_PackageRecord_PinRecord::mutable_name() { +inline std::string* EdaDataFile_PackageRecord_PinRecord::mutable_name() ABSL_ATTRIBUTE_LIFETIME_BOUND { std::string* _s = _internal_mutable_name(); // @@protoc_insertion_point(field_mutable:Odb.Lib.Protobuf.EdaDataFile.PackageRecord.PinRecord.name) return _s; } inline const std::string& EdaDataFile_PackageRecord_PinRecord::_internal_name() const { + ::google::protobuf::internal::TSanRead(&_impl_); return _impl_.name_.Get(); } inline void EdaDataFile_PackageRecord_PinRecord::_internal_set_name(const std::string& value) { + ::google::protobuf::internal::TSanWrite(&_impl_); _impl_._has_bits_[0] |= 0x00000001u; - _impl_.name_.Set(value, GetArenaForAllocation()); + _impl_.name_.Set(value, GetArena()); } inline std::string* EdaDataFile_PackageRecord_PinRecord::_internal_mutable_name() { + ::google::protobuf::internal::TSanWrite(&_impl_); _impl_._has_bits_[0] |= 0x00000001u; - return _impl_.name_.Mutable(GetArenaForAllocation()); + return _impl_.name_.Mutable( GetArena()); } inline std::string* EdaDataFile_PackageRecord_PinRecord::release_name() { + ::google::protobuf::internal::TSanWrite(&_impl_); // @@protoc_insertion_point(field_release:Odb.Lib.Protobuf.EdaDataFile.PackageRecord.PinRecord.name) - if (!_internal_has_name()) { + if ((_impl_._has_bits_[0] & 0x00000001u) == 0) { return nullptr; } _impl_._has_bits_[0] &= ~0x00000001u; - auto* p = _impl_.name_.Release(); -#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (_impl_.name_.IsDefault()) { - _impl_.name_.Set("", GetArenaForAllocation()); + auto* released = _impl_.name_.Release(); + if (::google::protobuf::internal::DebugHardenForceCopyDefaultString()) { + _impl_.name_.Set("", GetArena()); } -#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING - return p; + return released; } -inline void EdaDataFile_PackageRecord_PinRecord::set_allocated_name(std::string* name) { - if (name != nullptr) { +inline void EdaDataFile_PackageRecord_PinRecord::set_allocated_name(std::string* value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + if (value != nullptr) { _impl_._has_bits_[0] |= 0x00000001u; } else { _impl_._has_bits_[0] &= ~0x00000001u; } - _impl_.name_.SetAllocated(name, GetArenaForAllocation()); -#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (_impl_.name_.IsDefault()) { - _impl_.name_.Set("", GetArenaForAllocation()); + _impl_.name_.SetAllocated(value, GetArena()); + if (::google::protobuf::internal::DebugHardenForceCopyDefaultString() && _impl_.name_.IsDefault()) { + _impl_.name_.Set("", GetArena()); } -#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING // @@protoc_insertion_point(field_set_allocated:Odb.Lib.Protobuf.EdaDataFile.PackageRecord.PinRecord.name) } // optional .Odb.Lib.Protobuf.EdaDataFile.PackageRecord.PinRecord.Type type = 2; -inline bool EdaDataFile_PackageRecord_PinRecord::_internal_has_type() const { +inline bool EdaDataFile_PackageRecord_PinRecord::has_type() const { bool value = (_impl_._has_bits_[0] & 0x00000002u) != 0; return value; } -inline bool EdaDataFile_PackageRecord_PinRecord::has_type() const { - return _internal_has_type(); -} inline void EdaDataFile_PackageRecord_PinRecord::clear_type() { + ::google::protobuf::internal::TSanWrite(&_impl_); _impl_.type_ = 0; _impl_._has_bits_[0] &= ~0x00000002u; } -inline ::Odb::Lib::Protobuf::EdaDataFile_PackageRecord_PinRecord_Type EdaDataFile_PackageRecord_PinRecord::_internal_type() const { - return static_cast< ::Odb::Lib::Protobuf::EdaDataFile_PackageRecord_PinRecord_Type >(_impl_.type_); -} inline ::Odb::Lib::Protobuf::EdaDataFile_PackageRecord_PinRecord_Type EdaDataFile_PackageRecord_PinRecord::type() const { // @@protoc_insertion_point(field_get:Odb.Lib.Protobuf.EdaDataFile.PackageRecord.PinRecord.type) return _internal_type(); } -inline void EdaDataFile_PackageRecord_PinRecord::_internal_set_type(::Odb::Lib::Protobuf::EdaDataFile_PackageRecord_PinRecord_Type value) { - _impl_._has_bits_[0] |= 0x00000002u; - _impl_.type_ = value; -} inline void EdaDataFile_PackageRecord_PinRecord::set_type(::Odb::Lib::Protobuf::EdaDataFile_PackageRecord_PinRecord_Type value) { _internal_set_type(value); + _impl_._has_bits_[0] |= 0x00000002u; // @@protoc_insertion_point(field_set:Odb.Lib.Protobuf.EdaDataFile.PackageRecord.PinRecord.type) } +inline ::Odb::Lib::Protobuf::EdaDataFile_PackageRecord_PinRecord_Type EdaDataFile_PackageRecord_PinRecord::_internal_type() const { + ::google::protobuf::internal::TSanRead(&_impl_); + return static_cast<::Odb::Lib::Protobuf::EdaDataFile_PackageRecord_PinRecord_Type>(_impl_.type_); +} +inline void EdaDataFile_PackageRecord_PinRecord::_internal_set_type(::Odb::Lib::Protobuf::EdaDataFile_PackageRecord_PinRecord_Type value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.type_ = value; +} // optional float xCenter = 3; -inline bool EdaDataFile_PackageRecord_PinRecord::_internal_has_xcenter() const { +inline bool EdaDataFile_PackageRecord_PinRecord::has_xcenter() const { bool value = (_impl_._has_bits_[0] & 0x00000004u) != 0; return value; } -inline bool EdaDataFile_PackageRecord_PinRecord::has_xcenter() const { - return _internal_has_xcenter(); -} inline void EdaDataFile_PackageRecord_PinRecord::clear_xcenter() { + ::google::protobuf::internal::TSanWrite(&_impl_); _impl_.xcenter_ = 0; _impl_._has_bits_[0] &= ~0x00000004u; } -inline float EdaDataFile_PackageRecord_PinRecord::_internal_xcenter() const { - return _impl_.xcenter_; -} inline float EdaDataFile_PackageRecord_PinRecord::xcenter() const { // @@protoc_insertion_point(field_get:Odb.Lib.Protobuf.EdaDataFile.PackageRecord.PinRecord.xCenter) return _internal_xcenter(); } -inline void EdaDataFile_PackageRecord_PinRecord::_internal_set_xcenter(float value) { - _impl_._has_bits_[0] |= 0x00000004u; - _impl_.xcenter_ = value; -} inline void EdaDataFile_PackageRecord_PinRecord::set_xcenter(float value) { _internal_set_xcenter(value); + _impl_._has_bits_[0] |= 0x00000004u; // @@protoc_insertion_point(field_set:Odb.Lib.Protobuf.EdaDataFile.PackageRecord.PinRecord.xCenter) } +inline float EdaDataFile_PackageRecord_PinRecord::_internal_xcenter() const { + ::google::protobuf::internal::TSanRead(&_impl_); + return _impl_.xcenter_; +} +inline void EdaDataFile_PackageRecord_PinRecord::_internal_set_xcenter(float value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.xcenter_ = value; +} // optional float yCenter = 4; -inline bool EdaDataFile_PackageRecord_PinRecord::_internal_has_ycenter() const { +inline bool EdaDataFile_PackageRecord_PinRecord::has_ycenter() const { bool value = (_impl_._has_bits_[0] & 0x00000008u) != 0; return value; } -inline bool EdaDataFile_PackageRecord_PinRecord::has_ycenter() const { - return _internal_has_ycenter(); -} inline void EdaDataFile_PackageRecord_PinRecord::clear_ycenter() { + ::google::protobuf::internal::TSanWrite(&_impl_); _impl_.ycenter_ = 0; _impl_._has_bits_[0] &= ~0x00000008u; } -inline float EdaDataFile_PackageRecord_PinRecord::_internal_ycenter() const { - return _impl_.ycenter_; -} inline float EdaDataFile_PackageRecord_PinRecord::ycenter() const { // @@protoc_insertion_point(field_get:Odb.Lib.Protobuf.EdaDataFile.PackageRecord.PinRecord.yCenter) return _internal_ycenter(); } -inline void EdaDataFile_PackageRecord_PinRecord::_internal_set_ycenter(float value) { - _impl_._has_bits_[0] |= 0x00000008u; - _impl_.ycenter_ = value; -} inline void EdaDataFile_PackageRecord_PinRecord::set_ycenter(float value) { _internal_set_ycenter(value); + _impl_._has_bits_[0] |= 0x00000008u; // @@protoc_insertion_point(field_set:Odb.Lib.Protobuf.EdaDataFile.PackageRecord.PinRecord.yCenter) } +inline float EdaDataFile_PackageRecord_PinRecord::_internal_ycenter() const { + ::google::protobuf::internal::TSanRead(&_impl_); + return _impl_.ycenter_; +} +inline void EdaDataFile_PackageRecord_PinRecord::_internal_set_ycenter(float value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.ycenter_ = value; +} // optional float finishedHoleSize = 5; -inline bool EdaDataFile_PackageRecord_PinRecord::_internal_has_finishedholesize() const { +inline bool EdaDataFile_PackageRecord_PinRecord::has_finishedholesize() const { bool value = (_impl_._has_bits_[0] & 0x00000010u) != 0; return value; } -inline bool EdaDataFile_PackageRecord_PinRecord::has_finishedholesize() const { - return _internal_has_finishedholesize(); -} inline void EdaDataFile_PackageRecord_PinRecord::clear_finishedholesize() { + ::google::protobuf::internal::TSanWrite(&_impl_); _impl_.finishedholesize_ = 0; _impl_._has_bits_[0] &= ~0x00000010u; } -inline float EdaDataFile_PackageRecord_PinRecord::_internal_finishedholesize() const { - return _impl_.finishedholesize_; -} inline float EdaDataFile_PackageRecord_PinRecord::finishedholesize() const { // @@protoc_insertion_point(field_get:Odb.Lib.Protobuf.EdaDataFile.PackageRecord.PinRecord.finishedHoleSize) return _internal_finishedholesize(); } -inline void EdaDataFile_PackageRecord_PinRecord::_internal_set_finishedholesize(float value) { - _impl_._has_bits_[0] |= 0x00000010u; - _impl_.finishedholesize_ = value; -} inline void EdaDataFile_PackageRecord_PinRecord::set_finishedholesize(float value) { _internal_set_finishedholesize(value); + _impl_._has_bits_[0] |= 0x00000010u; // @@protoc_insertion_point(field_set:Odb.Lib.Protobuf.EdaDataFile.PackageRecord.PinRecord.finishedHoleSize) } +inline float EdaDataFile_PackageRecord_PinRecord::_internal_finishedholesize() const { + ::google::protobuf::internal::TSanRead(&_impl_); + return _impl_.finishedholesize_; +} +inline void EdaDataFile_PackageRecord_PinRecord::_internal_set_finishedholesize(float value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.finishedholesize_ = value; +} // optional .Odb.Lib.Protobuf.EdaDataFile.PackageRecord.PinRecord.ElectricalType electricalType = 6; -inline bool EdaDataFile_PackageRecord_PinRecord::_internal_has_electricaltype() const { +inline bool EdaDataFile_PackageRecord_PinRecord::has_electricaltype() const { bool value = (_impl_._has_bits_[0] & 0x00000020u) != 0; return value; } -inline bool EdaDataFile_PackageRecord_PinRecord::has_electricaltype() const { - return _internal_has_electricaltype(); -} inline void EdaDataFile_PackageRecord_PinRecord::clear_electricaltype() { + ::google::protobuf::internal::TSanWrite(&_impl_); _impl_.electricaltype_ = 0; _impl_._has_bits_[0] &= ~0x00000020u; } -inline ::Odb::Lib::Protobuf::EdaDataFile_PackageRecord_PinRecord_ElectricalType EdaDataFile_PackageRecord_PinRecord::_internal_electricaltype() const { - return static_cast< ::Odb::Lib::Protobuf::EdaDataFile_PackageRecord_PinRecord_ElectricalType >(_impl_.electricaltype_); -} inline ::Odb::Lib::Protobuf::EdaDataFile_PackageRecord_PinRecord_ElectricalType EdaDataFile_PackageRecord_PinRecord::electricaltype() const { // @@protoc_insertion_point(field_get:Odb.Lib.Protobuf.EdaDataFile.PackageRecord.PinRecord.electricalType) return _internal_electricaltype(); } -inline void EdaDataFile_PackageRecord_PinRecord::_internal_set_electricaltype(::Odb::Lib::Protobuf::EdaDataFile_PackageRecord_PinRecord_ElectricalType value) { - _impl_._has_bits_[0] |= 0x00000020u; - _impl_.electricaltype_ = value; -} inline void EdaDataFile_PackageRecord_PinRecord::set_electricaltype(::Odb::Lib::Protobuf::EdaDataFile_PackageRecord_PinRecord_ElectricalType value) { _internal_set_electricaltype(value); + _impl_._has_bits_[0] |= 0x00000020u; // @@protoc_insertion_point(field_set:Odb.Lib.Protobuf.EdaDataFile.PackageRecord.PinRecord.electricalType) } +inline ::Odb::Lib::Protobuf::EdaDataFile_PackageRecord_PinRecord_ElectricalType EdaDataFile_PackageRecord_PinRecord::_internal_electricaltype() const { + ::google::protobuf::internal::TSanRead(&_impl_); + return static_cast<::Odb::Lib::Protobuf::EdaDataFile_PackageRecord_PinRecord_ElectricalType>(_impl_.electricaltype_); +} +inline void EdaDataFile_PackageRecord_PinRecord::_internal_set_electricaltype(::Odb::Lib::Protobuf::EdaDataFile_PackageRecord_PinRecord_ElectricalType value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.electricaltype_ = value; +} // optional .Odb.Lib.Protobuf.EdaDataFile.PackageRecord.PinRecord.MountType mountType = 7; -inline bool EdaDataFile_PackageRecord_PinRecord::_internal_has_mounttype() const { +inline bool EdaDataFile_PackageRecord_PinRecord::has_mounttype() const { bool value = (_impl_._has_bits_[0] & 0x00000040u) != 0; return value; } -inline bool EdaDataFile_PackageRecord_PinRecord::has_mounttype() const { - return _internal_has_mounttype(); -} inline void EdaDataFile_PackageRecord_PinRecord::clear_mounttype() { + ::google::protobuf::internal::TSanWrite(&_impl_); _impl_.mounttype_ = 0; _impl_._has_bits_[0] &= ~0x00000040u; } -inline ::Odb::Lib::Protobuf::EdaDataFile_PackageRecord_PinRecord_MountType EdaDataFile_PackageRecord_PinRecord::_internal_mounttype() const { - return static_cast< ::Odb::Lib::Protobuf::EdaDataFile_PackageRecord_PinRecord_MountType >(_impl_.mounttype_); -} inline ::Odb::Lib::Protobuf::EdaDataFile_PackageRecord_PinRecord_MountType EdaDataFile_PackageRecord_PinRecord::mounttype() const { // @@protoc_insertion_point(field_get:Odb.Lib.Protobuf.EdaDataFile.PackageRecord.PinRecord.mountType) return _internal_mounttype(); } -inline void EdaDataFile_PackageRecord_PinRecord::_internal_set_mounttype(::Odb::Lib::Protobuf::EdaDataFile_PackageRecord_PinRecord_MountType value) { - _impl_._has_bits_[0] |= 0x00000040u; - _impl_.mounttype_ = value; -} inline void EdaDataFile_PackageRecord_PinRecord::set_mounttype(::Odb::Lib::Protobuf::EdaDataFile_PackageRecord_PinRecord_MountType value) { _internal_set_mounttype(value); + _impl_._has_bits_[0] |= 0x00000040u; // @@protoc_insertion_point(field_set:Odb.Lib.Protobuf.EdaDataFile.PackageRecord.PinRecord.mountType) } +inline ::Odb::Lib::Protobuf::EdaDataFile_PackageRecord_PinRecord_MountType EdaDataFile_PackageRecord_PinRecord::_internal_mounttype() const { + ::google::protobuf::internal::TSanRead(&_impl_); + return static_cast<::Odb::Lib::Protobuf::EdaDataFile_PackageRecord_PinRecord_MountType>(_impl_.mounttype_); +} +inline void EdaDataFile_PackageRecord_PinRecord::_internal_set_mounttype(::Odb::Lib::Protobuf::EdaDataFile_PackageRecord_PinRecord_MountType value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.mounttype_ = value; +} // optional uint32 id = 8; -inline bool EdaDataFile_PackageRecord_PinRecord::_internal_has_id() const { +inline bool EdaDataFile_PackageRecord_PinRecord::has_id() const { bool value = (_impl_._has_bits_[0] & 0x00000080u) != 0; return value; } -inline bool EdaDataFile_PackageRecord_PinRecord::has_id() const { - return _internal_has_id(); -} inline void EdaDataFile_PackageRecord_PinRecord::clear_id() { + ::google::protobuf::internal::TSanWrite(&_impl_); _impl_.id_ = 0u; - _impl_._has_bits_[0] &= ~0x00000080u; -} -inline uint32_t EdaDataFile_PackageRecord_PinRecord::_internal_id() const { - return _impl_.id_; + _impl_._has_bits_[0] &= ~0x00000080u; } -inline uint32_t EdaDataFile_PackageRecord_PinRecord::id() const { +inline ::uint32_t EdaDataFile_PackageRecord_PinRecord::id() const { // @@protoc_insertion_point(field_get:Odb.Lib.Protobuf.EdaDataFile.PackageRecord.PinRecord.id) return _internal_id(); } -inline void EdaDataFile_PackageRecord_PinRecord::_internal_set_id(uint32_t value) { - _impl_._has_bits_[0] |= 0x00000080u; - _impl_.id_ = value; -} -inline void EdaDataFile_PackageRecord_PinRecord::set_id(uint32_t value) { +inline void EdaDataFile_PackageRecord_PinRecord::set_id(::uint32_t value) { _internal_set_id(value); + _impl_._has_bits_[0] |= 0x00000080u; // @@protoc_insertion_point(field_set:Odb.Lib.Protobuf.EdaDataFile.PackageRecord.PinRecord.id) } +inline ::uint32_t EdaDataFile_PackageRecord_PinRecord::_internal_id() const { + ::google::protobuf::internal::TSanRead(&_impl_); + return _impl_.id_; +} +inline void EdaDataFile_PackageRecord_PinRecord::_internal_set_id(::uint32_t value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.id_ = value; +} // optional uint32 index = 9; -inline bool EdaDataFile_PackageRecord_PinRecord::_internal_has_index() const { +inline bool EdaDataFile_PackageRecord_PinRecord::has_index() const { bool value = (_impl_._has_bits_[0] & 0x00000100u) != 0; return value; } -inline bool EdaDataFile_PackageRecord_PinRecord::has_index() const { - return _internal_has_index(); -} inline void EdaDataFile_PackageRecord_PinRecord::clear_index() { + ::google::protobuf::internal::TSanWrite(&_impl_); _impl_.index_ = 0u; _impl_._has_bits_[0] &= ~0x00000100u; } -inline uint32_t EdaDataFile_PackageRecord_PinRecord::_internal_index() const { - return _impl_.index_; -} -inline uint32_t EdaDataFile_PackageRecord_PinRecord::index() const { +inline ::uint32_t EdaDataFile_PackageRecord_PinRecord::index() const { // @@protoc_insertion_point(field_get:Odb.Lib.Protobuf.EdaDataFile.PackageRecord.PinRecord.index) return _internal_index(); } -inline void EdaDataFile_PackageRecord_PinRecord::_internal_set_index(uint32_t value) { - _impl_._has_bits_[0] |= 0x00000100u; - _impl_.index_ = value; -} -inline void EdaDataFile_PackageRecord_PinRecord::set_index(uint32_t value) { +inline void EdaDataFile_PackageRecord_PinRecord::set_index(::uint32_t value) { _internal_set_index(value); + _impl_._has_bits_[0] |= 0x00000100u; // @@protoc_insertion_point(field_set:Odb.Lib.Protobuf.EdaDataFile.PackageRecord.PinRecord.index) } +inline ::uint32_t EdaDataFile_PackageRecord_PinRecord::_internal_index() const { + ::google::protobuf::internal::TSanRead(&_impl_); + return _impl_.index_; +} +inline void EdaDataFile_PackageRecord_PinRecord::_internal_set_index(::uint32_t value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.index_ = value; +} // ------------------------------------------------------------------- // EdaDataFile_PackageRecord // optional string name = 1; -inline bool EdaDataFile_PackageRecord::_internal_has_name() const { +inline bool EdaDataFile_PackageRecord::has_name() const { bool value = (_impl_._has_bits_[0] & 0x00000001u) != 0; return value; } -inline bool EdaDataFile_PackageRecord::has_name() const { - return _internal_has_name(); -} inline void EdaDataFile_PackageRecord::clear_name() { + ::google::protobuf::internal::TSanWrite(&_impl_); _impl_.name_.ClearToEmpty(); _impl_._has_bits_[0] &= ~0x00000001u; } -inline const std::string& EdaDataFile_PackageRecord::name() const { +inline const std::string& EdaDataFile_PackageRecord::name() const + ABSL_ATTRIBUTE_LIFETIME_BOUND { // @@protoc_insertion_point(field_get:Odb.Lib.Protobuf.EdaDataFile.PackageRecord.name) return _internal_name(); } -template -inline PROTOBUF_ALWAYS_INLINE -void EdaDataFile_PackageRecord::set_name(ArgT0&& arg0, ArgT... args) { - _impl_._has_bits_[0] |= 0x00000001u; - _impl_.name_.Set(static_cast(arg0), args..., GetArenaForAllocation()); +template +inline PROTOBUF_ALWAYS_INLINE void EdaDataFile_PackageRecord::set_name(Arg_&& arg, + Args_... args) { + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_._has_bits_[0] |= 0x00000001u; + _impl_.name_.Set(static_cast(arg), args..., GetArena()); // @@protoc_insertion_point(field_set:Odb.Lib.Protobuf.EdaDataFile.PackageRecord.name) } -inline std::string* EdaDataFile_PackageRecord::mutable_name() { +inline std::string* EdaDataFile_PackageRecord::mutable_name() ABSL_ATTRIBUTE_LIFETIME_BOUND { std::string* _s = _internal_mutable_name(); // @@protoc_insertion_point(field_mutable:Odb.Lib.Protobuf.EdaDataFile.PackageRecord.name) return _s; } inline const std::string& EdaDataFile_PackageRecord::_internal_name() const { + ::google::protobuf::internal::TSanRead(&_impl_); return _impl_.name_.Get(); } inline void EdaDataFile_PackageRecord::_internal_set_name(const std::string& value) { + ::google::protobuf::internal::TSanWrite(&_impl_); _impl_._has_bits_[0] |= 0x00000001u; - _impl_.name_.Set(value, GetArenaForAllocation()); + _impl_.name_.Set(value, GetArena()); } inline std::string* EdaDataFile_PackageRecord::_internal_mutable_name() { + ::google::protobuf::internal::TSanWrite(&_impl_); _impl_._has_bits_[0] |= 0x00000001u; - return _impl_.name_.Mutable(GetArenaForAllocation()); + return _impl_.name_.Mutable( GetArena()); } inline std::string* EdaDataFile_PackageRecord::release_name() { + ::google::protobuf::internal::TSanWrite(&_impl_); // @@protoc_insertion_point(field_release:Odb.Lib.Protobuf.EdaDataFile.PackageRecord.name) - if (!_internal_has_name()) { + if ((_impl_._has_bits_[0] & 0x00000001u) == 0) { return nullptr; } _impl_._has_bits_[0] &= ~0x00000001u; - auto* p = _impl_.name_.Release(); -#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (_impl_.name_.IsDefault()) { - _impl_.name_.Set("", GetArenaForAllocation()); + auto* released = _impl_.name_.Release(); + if (::google::protobuf::internal::DebugHardenForceCopyDefaultString()) { + _impl_.name_.Set("", GetArena()); } -#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING - return p; + return released; } -inline void EdaDataFile_PackageRecord::set_allocated_name(std::string* name) { - if (name != nullptr) { +inline void EdaDataFile_PackageRecord::set_allocated_name(std::string* value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + if (value != nullptr) { _impl_._has_bits_[0] |= 0x00000001u; } else { _impl_._has_bits_[0] &= ~0x00000001u; } - _impl_.name_.SetAllocated(name, GetArenaForAllocation()); -#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (_impl_.name_.IsDefault()) { - _impl_.name_.Set("", GetArenaForAllocation()); + _impl_.name_.SetAllocated(value, GetArena()); + if (::google::protobuf::internal::DebugHardenForceCopyDefaultString() && _impl_.name_.IsDefault()) { + _impl_.name_.Set("", GetArena()); } -#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING // @@protoc_insertion_point(field_set_allocated:Odb.Lib.Protobuf.EdaDataFile.PackageRecord.name) } // optional float pitch = 2; -inline bool EdaDataFile_PackageRecord::_internal_has_pitch() const { +inline bool EdaDataFile_PackageRecord::has_pitch() const { bool value = (_impl_._has_bits_[0] & 0x00000004u) != 0; return value; } -inline bool EdaDataFile_PackageRecord::has_pitch() const { - return _internal_has_pitch(); -} inline void EdaDataFile_PackageRecord::clear_pitch() { + ::google::protobuf::internal::TSanWrite(&_impl_); _impl_.pitch_ = 0; _impl_._has_bits_[0] &= ~0x00000004u; } -inline float EdaDataFile_PackageRecord::_internal_pitch() const { - return _impl_.pitch_; -} inline float EdaDataFile_PackageRecord::pitch() const { // @@protoc_insertion_point(field_get:Odb.Lib.Protobuf.EdaDataFile.PackageRecord.pitch) return _internal_pitch(); } -inline void EdaDataFile_PackageRecord::_internal_set_pitch(float value) { - _impl_._has_bits_[0] |= 0x00000004u; - _impl_.pitch_ = value; -} inline void EdaDataFile_PackageRecord::set_pitch(float value) { _internal_set_pitch(value); + _impl_._has_bits_[0] |= 0x00000004u; // @@protoc_insertion_point(field_set:Odb.Lib.Protobuf.EdaDataFile.PackageRecord.pitch) } +inline float EdaDataFile_PackageRecord::_internal_pitch() const { + ::google::protobuf::internal::TSanRead(&_impl_); + return _impl_.pitch_; +} +inline void EdaDataFile_PackageRecord::_internal_set_pitch(float value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.pitch_ = value; +} // optional float xMin = 3; -inline bool EdaDataFile_PackageRecord::_internal_has_xmin() const { +inline bool EdaDataFile_PackageRecord::has_xmin() const { bool value = (_impl_._has_bits_[0] & 0x00000008u) != 0; return value; } -inline bool EdaDataFile_PackageRecord::has_xmin() const { - return _internal_has_xmin(); -} inline void EdaDataFile_PackageRecord::clear_xmin() { + ::google::protobuf::internal::TSanWrite(&_impl_); _impl_.xmin_ = 0; _impl_._has_bits_[0] &= ~0x00000008u; } -inline float EdaDataFile_PackageRecord::_internal_xmin() const { - return _impl_.xmin_; -} inline float EdaDataFile_PackageRecord::xmin() const { // @@protoc_insertion_point(field_get:Odb.Lib.Protobuf.EdaDataFile.PackageRecord.xMin) return _internal_xmin(); } -inline void EdaDataFile_PackageRecord::_internal_set_xmin(float value) { - _impl_._has_bits_[0] |= 0x00000008u; - _impl_.xmin_ = value; -} inline void EdaDataFile_PackageRecord::set_xmin(float value) { _internal_set_xmin(value); + _impl_._has_bits_[0] |= 0x00000008u; // @@protoc_insertion_point(field_set:Odb.Lib.Protobuf.EdaDataFile.PackageRecord.xMin) } +inline float EdaDataFile_PackageRecord::_internal_xmin() const { + ::google::protobuf::internal::TSanRead(&_impl_); + return _impl_.xmin_; +} +inline void EdaDataFile_PackageRecord::_internal_set_xmin(float value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.xmin_ = value; +} // optional float yMin = 4; -inline bool EdaDataFile_PackageRecord::_internal_has_ymin() const { +inline bool EdaDataFile_PackageRecord::has_ymin() const { bool value = (_impl_._has_bits_[0] & 0x00000010u) != 0; return value; } -inline bool EdaDataFile_PackageRecord::has_ymin() const { - return _internal_has_ymin(); -} inline void EdaDataFile_PackageRecord::clear_ymin() { + ::google::protobuf::internal::TSanWrite(&_impl_); _impl_.ymin_ = 0; _impl_._has_bits_[0] &= ~0x00000010u; } -inline float EdaDataFile_PackageRecord::_internal_ymin() const { - return _impl_.ymin_; -} inline float EdaDataFile_PackageRecord::ymin() const { // @@protoc_insertion_point(field_get:Odb.Lib.Protobuf.EdaDataFile.PackageRecord.yMin) return _internal_ymin(); } -inline void EdaDataFile_PackageRecord::_internal_set_ymin(float value) { - _impl_._has_bits_[0] |= 0x00000010u; - _impl_.ymin_ = value; -} inline void EdaDataFile_PackageRecord::set_ymin(float value) { _internal_set_ymin(value); + _impl_._has_bits_[0] |= 0x00000010u; // @@protoc_insertion_point(field_set:Odb.Lib.Protobuf.EdaDataFile.PackageRecord.yMin) } +inline float EdaDataFile_PackageRecord::_internal_ymin() const { + ::google::protobuf::internal::TSanRead(&_impl_); + return _impl_.ymin_; +} +inline void EdaDataFile_PackageRecord::_internal_set_ymin(float value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.ymin_ = value; +} // optional float xMax = 5; -inline bool EdaDataFile_PackageRecord::_internal_has_xmax() const { +inline bool EdaDataFile_PackageRecord::has_xmax() const { bool value = (_impl_._has_bits_[0] & 0x00000020u) != 0; return value; } -inline bool EdaDataFile_PackageRecord::has_xmax() const { - return _internal_has_xmax(); -} inline void EdaDataFile_PackageRecord::clear_xmax() { + ::google::protobuf::internal::TSanWrite(&_impl_); _impl_.xmax_ = 0; _impl_._has_bits_[0] &= ~0x00000020u; } -inline float EdaDataFile_PackageRecord::_internal_xmax() const { - return _impl_.xmax_; -} inline float EdaDataFile_PackageRecord::xmax() const { // @@protoc_insertion_point(field_get:Odb.Lib.Protobuf.EdaDataFile.PackageRecord.xMax) return _internal_xmax(); } -inline void EdaDataFile_PackageRecord::_internal_set_xmax(float value) { - _impl_._has_bits_[0] |= 0x00000020u; - _impl_.xmax_ = value; -} inline void EdaDataFile_PackageRecord::set_xmax(float value) { _internal_set_xmax(value); + _impl_._has_bits_[0] |= 0x00000020u; // @@protoc_insertion_point(field_set:Odb.Lib.Protobuf.EdaDataFile.PackageRecord.xMax) } +inline float EdaDataFile_PackageRecord::_internal_xmax() const { + ::google::protobuf::internal::TSanRead(&_impl_); + return _impl_.xmax_; +} +inline void EdaDataFile_PackageRecord::_internal_set_xmax(float value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.xmax_ = value; +} // optional float yMax = 6; -inline bool EdaDataFile_PackageRecord::_internal_has_ymax() const { +inline bool EdaDataFile_PackageRecord::has_ymax() const { bool value = (_impl_._has_bits_[0] & 0x00000040u) != 0; return value; } -inline bool EdaDataFile_PackageRecord::has_ymax() const { - return _internal_has_ymax(); -} inline void EdaDataFile_PackageRecord::clear_ymax() { + ::google::protobuf::internal::TSanWrite(&_impl_); _impl_.ymax_ = 0; _impl_._has_bits_[0] &= ~0x00000040u; } -inline float EdaDataFile_PackageRecord::_internal_ymax() const { - return _impl_.ymax_; -} inline float EdaDataFile_PackageRecord::ymax() const { // @@protoc_insertion_point(field_get:Odb.Lib.Protobuf.EdaDataFile.PackageRecord.yMax) return _internal_ymax(); } -inline void EdaDataFile_PackageRecord::_internal_set_ymax(float value) { - _impl_._has_bits_[0] |= 0x00000040u; - _impl_.ymax_ = value; -} inline void EdaDataFile_PackageRecord::set_ymax(float value) { _internal_set_ymax(value); + _impl_._has_bits_[0] |= 0x00000040u; // @@protoc_insertion_point(field_set:Odb.Lib.Protobuf.EdaDataFile.PackageRecord.yMax) } +inline float EdaDataFile_PackageRecord::_internal_ymax() const { + ::google::protobuf::internal::TSanRead(&_impl_); + return _impl_.ymax_; +} +inline void EdaDataFile_PackageRecord::_internal_set_ymax(float value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.ymax_ = value; +} // optional string attributesIdString = 7; -inline bool EdaDataFile_PackageRecord::_internal_has_attributesidstring() const { +inline bool EdaDataFile_PackageRecord::has_attributesidstring() const { bool value = (_impl_._has_bits_[0] & 0x00000002u) != 0; return value; } -inline bool EdaDataFile_PackageRecord::has_attributesidstring() const { - return _internal_has_attributesidstring(); -} inline void EdaDataFile_PackageRecord::clear_attributesidstring() { + ::google::protobuf::internal::TSanWrite(&_impl_); _impl_.attributesidstring_.ClearToEmpty(); _impl_._has_bits_[0] &= ~0x00000002u; } -inline const std::string& EdaDataFile_PackageRecord::attributesidstring() const { +inline const std::string& EdaDataFile_PackageRecord::attributesidstring() const + ABSL_ATTRIBUTE_LIFETIME_BOUND { // @@protoc_insertion_point(field_get:Odb.Lib.Protobuf.EdaDataFile.PackageRecord.attributesIdString) return _internal_attributesidstring(); } -template -inline PROTOBUF_ALWAYS_INLINE -void EdaDataFile_PackageRecord::set_attributesidstring(ArgT0&& arg0, ArgT... args) { - _impl_._has_bits_[0] |= 0x00000002u; - _impl_.attributesidstring_.Set(static_cast(arg0), args..., GetArenaForAllocation()); +template +inline PROTOBUF_ALWAYS_INLINE void EdaDataFile_PackageRecord::set_attributesidstring(Arg_&& arg, + Args_... args) { + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_._has_bits_[0] |= 0x00000002u; + _impl_.attributesidstring_.Set(static_cast(arg), args..., GetArena()); // @@protoc_insertion_point(field_set:Odb.Lib.Protobuf.EdaDataFile.PackageRecord.attributesIdString) } -inline std::string* EdaDataFile_PackageRecord::mutable_attributesidstring() { +inline std::string* EdaDataFile_PackageRecord::mutable_attributesidstring() ABSL_ATTRIBUTE_LIFETIME_BOUND { std::string* _s = _internal_mutable_attributesidstring(); // @@protoc_insertion_point(field_mutable:Odb.Lib.Protobuf.EdaDataFile.PackageRecord.attributesIdString) return _s; } inline const std::string& EdaDataFile_PackageRecord::_internal_attributesidstring() const { + ::google::protobuf::internal::TSanRead(&_impl_); return _impl_.attributesidstring_.Get(); } inline void EdaDataFile_PackageRecord::_internal_set_attributesidstring(const std::string& value) { + ::google::protobuf::internal::TSanWrite(&_impl_); _impl_._has_bits_[0] |= 0x00000002u; - _impl_.attributesidstring_.Set(value, GetArenaForAllocation()); + _impl_.attributesidstring_.Set(value, GetArena()); } inline std::string* EdaDataFile_PackageRecord::_internal_mutable_attributesidstring() { + ::google::protobuf::internal::TSanWrite(&_impl_); _impl_._has_bits_[0] |= 0x00000002u; - return _impl_.attributesidstring_.Mutable(GetArenaForAllocation()); + return _impl_.attributesidstring_.Mutable( GetArena()); } inline std::string* EdaDataFile_PackageRecord::release_attributesidstring() { + ::google::protobuf::internal::TSanWrite(&_impl_); // @@protoc_insertion_point(field_release:Odb.Lib.Protobuf.EdaDataFile.PackageRecord.attributesIdString) - if (!_internal_has_attributesidstring()) { + if ((_impl_._has_bits_[0] & 0x00000002u) == 0) { return nullptr; } _impl_._has_bits_[0] &= ~0x00000002u; - auto* p = _impl_.attributesidstring_.Release(); -#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (_impl_.attributesidstring_.IsDefault()) { - _impl_.attributesidstring_.Set("", GetArenaForAllocation()); + auto* released = _impl_.attributesidstring_.Release(); + if (::google::protobuf::internal::DebugHardenForceCopyDefaultString()) { + _impl_.attributesidstring_.Set("", GetArena()); } -#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING - return p; + return released; } -inline void EdaDataFile_PackageRecord::set_allocated_attributesidstring(std::string* attributesidstring) { - if (attributesidstring != nullptr) { +inline void EdaDataFile_PackageRecord::set_allocated_attributesidstring(std::string* value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + if (value != nullptr) { _impl_._has_bits_[0] |= 0x00000002u; } else { _impl_._has_bits_[0] &= ~0x00000002u; } - _impl_.attributesidstring_.SetAllocated(attributesidstring, GetArenaForAllocation()); -#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (_impl_.attributesidstring_.IsDefault()) { - _impl_.attributesidstring_.Set("", GetArenaForAllocation()); + _impl_.attributesidstring_.SetAllocated(value, GetArena()); + if (::google::protobuf::internal::DebugHardenForceCopyDefaultString() && _impl_.attributesidstring_.IsDefault()) { + _impl_.attributesidstring_.Set("", GetArena()); } -#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING // @@protoc_insertion_point(field_set_allocated:Odb.Lib.Protobuf.EdaDataFile.PackageRecord.attributesIdString) } // repeated .Odb.Lib.Protobuf.EdaDataFile.PackageRecord.PinRecord pinRecords = 8; inline int EdaDataFile_PackageRecord::_internal_pinrecords_size() const { - return _impl_.pinrecords_.size(); + return _internal_pinrecords().size(); } inline int EdaDataFile_PackageRecord::pinrecords_size() const { return _internal_pinrecords_size(); } inline void EdaDataFile_PackageRecord::clear_pinrecords() { + ::google::protobuf::internal::TSanWrite(&_impl_); _impl_.pinrecords_.Clear(); } -inline ::Odb::Lib::Protobuf::EdaDataFile_PackageRecord_PinRecord* EdaDataFile_PackageRecord::mutable_pinrecords(int index) { +inline ::Odb::Lib::Protobuf::EdaDataFile_PackageRecord_PinRecord* EdaDataFile_PackageRecord::mutable_pinrecords(int index) + ABSL_ATTRIBUTE_LIFETIME_BOUND { // @@protoc_insertion_point(field_mutable:Odb.Lib.Protobuf.EdaDataFile.PackageRecord.pinRecords) - return _impl_.pinrecords_.Mutable(index); + return _internal_mutable_pinrecords()->Mutable(index); } -inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::Odb::Lib::Protobuf::EdaDataFile_PackageRecord_PinRecord >* -EdaDataFile_PackageRecord::mutable_pinrecords() { +inline ::google::protobuf::RepeatedPtrField<::Odb::Lib::Protobuf::EdaDataFile_PackageRecord_PinRecord>* EdaDataFile_PackageRecord::mutable_pinrecords() + ABSL_ATTRIBUTE_LIFETIME_BOUND { // @@protoc_insertion_point(field_mutable_list:Odb.Lib.Protobuf.EdaDataFile.PackageRecord.pinRecords) - return &_impl_.pinrecords_; + ::google::protobuf::internal::TSanWrite(&_impl_); + return _internal_mutable_pinrecords(); } -inline const ::Odb::Lib::Protobuf::EdaDataFile_PackageRecord_PinRecord& EdaDataFile_PackageRecord::_internal_pinrecords(int index) const { - return _impl_.pinrecords_.Get(index); -} -inline const ::Odb::Lib::Protobuf::EdaDataFile_PackageRecord_PinRecord& EdaDataFile_PackageRecord::pinrecords(int index) const { +inline const ::Odb::Lib::Protobuf::EdaDataFile_PackageRecord_PinRecord& EdaDataFile_PackageRecord::pinrecords(int index) const + ABSL_ATTRIBUTE_LIFETIME_BOUND { // @@protoc_insertion_point(field_get:Odb.Lib.Protobuf.EdaDataFile.PackageRecord.pinRecords) - return _internal_pinrecords(index); -} -inline ::Odb::Lib::Protobuf::EdaDataFile_PackageRecord_PinRecord* EdaDataFile_PackageRecord::_internal_add_pinrecords() { - return _impl_.pinrecords_.Add(); + return _internal_pinrecords().Get(index); } -inline ::Odb::Lib::Protobuf::EdaDataFile_PackageRecord_PinRecord* EdaDataFile_PackageRecord::add_pinrecords() { - ::Odb::Lib::Protobuf::EdaDataFile_PackageRecord_PinRecord* _add = _internal_add_pinrecords(); +inline ::Odb::Lib::Protobuf::EdaDataFile_PackageRecord_PinRecord* EdaDataFile_PackageRecord::add_pinrecords() ABSL_ATTRIBUTE_LIFETIME_BOUND { + ::google::protobuf::internal::TSanWrite(&_impl_); + ::Odb::Lib::Protobuf::EdaDataFile_PackageRecord_PinRecord* _add = _internal_mutable_pinrecords()->Add(); // @@protoc_insertion_point(field_add:Odb.Lib.Protobuf.EdaDataFile.PackageRecord.pinRecords) return _add; } -inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::Odb::Lib::Protobuf::EdaDataFile_PackageRecord_PinRecord >& -EdaDataFile_PackageRecord::pinrecords() const { +inline const ::google::protobuf::RepeatedPtrField<::Odb::Lib::Protobuf::EdaDataFile_PackageRecord_PinRecord>& EdaDataFile_PackageRecord::pinrecords() const + ABSL_ATTRIBUTE_LIFETIME_BOUND { // @@protoc_insertion_point(field_list:Odb.Lib.Protobuf.EdaDataFile.PackageRecord.pinRecords) + return _internal_pinrecords(); +} +inline const ::google::protobuf::RepeatedPtrField<::Odb::Lib::Protobuf::EdaDataFile_PackageRecord_PinRecord>& +EdaDataFile_PackageRecord::_internal_pinrecords() const { + ::google::protobuf::internal::TSanRead(&_impl_); return _impl_.pinrecords_; } +inline ::google::protobuf::RepeatedPtrField<::Odb::Lib::Protobuf::EdaDataFile_PackageRecord_PinRecord>* +EdaDataFile_PackageRecord::_internal_mutable_pinrecords() { + ::google::protobuf::internal::TSanRead(&_impl_); + return &_impl_.pinrecords_; +} // map pinRecordsByName = 9; inline int EdaDataFile_PackageRecord::_internal_pinrecordsbyname_size() const { - return _impl_.pinrecordsbyname_.size(); + return _internal_pinrecordsbyname().size(); } inline int EdaDataFile_PackageRecord::pinrecordsbyname_size() const { return _internal_pinrecordsbyname_size(); } inline void EdaDataFile_PackageRecord::clear_pinrecordsbyname() { + ::google::protobuf::internal::TSanWrite(&_impl_); _impl_.pinrecordsbyname_.Clear(); } -inline const ::PROTOBUF_NAMESPACE_ID::Map< std::string, ::Odb::Lib::Protobuf::EdaDataFile_PackageRecord_PinRecord >& -EdaDataFile_PackageRecord::_internal_pinrecordsbyname() const { +inline const ::google::protobuf::Map& EdaDataFile_PackageRecord::_internal_pinrecordsbyname() const { + ::google::protobuf::internal::TSanRead(&_impl_); return _impl_.pinrecordsbyname_.GetMap(); } -inline const ::PROTOBUF_NAMESPACE_ID::Map< std::string, ::Odb::Lib::Protobuf::EdaDataFile_PackageRecord_PinRecord >& -EdaDataFile_PackageRecord::pinrecordsbyname() const { +inline const ::google::protobuf::Map& EdaDataFile_PackageRecord::pinrecordsbyname() const ABSL_ATTRIBUTE_LIFETIME_BOUND { // @@protoc_insertion_point(field_map:Odb.Lib.Protobuf.EdaDataFile.PackageRecord.pinRecordsByName) return _internal_pinrecordsbyname(); } -inline ::PROTOBUF_NAMESPACE_ID::Map< std::string, ::Odb::Lib::Protobuf::EdaDataFile_PackageRecord_PinRecord >* -EdaDataFile_PackageRecord::_internal_mutable_pinrecordsbyname() { +inline ::google::protobuf::Map* EdaDataFile_PackageRecord::_internal_mutable_pinrecordsbyname() { + ::google::protobuf::internal::TSanWrite(&_impl_); return _impl_.pinrecordsbyname_.MutableMap(); } -inline ::PROTOBUF_NAMESPACE_ID::Map< std::string, ::Odb::Lib::Protobuf::EdaDataFile_PackageRecord_PinRecord >* -EdaDataFile_PackageRecord::mutable_pinrecordsbyname() { +inline ::google::protobuf::Map* EdaDataFile_PackageRecord::mutable_pinrecordsbyname() ABSL_ATTRIBUTE_LIFETIME_BOUND { // @@protoc_insertion_point(field_mutable_map:Odb.Lib.Protobuf.EdaDataFile.PackageRecord.pinRecordsByName) return _internal_mutable_pinrecordsbyname(); } // repeated .Odb.Lib.Protobuf.PropertyRecord propertyRecords = 10; inline int EdaDataFile_PackageRecord::_internal_propertyrecords_size() const { - return _impl_.propertyrecords_.size(); + return _internal_propertyrecords().size(); } inline int EdaDataFile_PackageRecord::propertyrecords_size() const { return _internal_propertyrecords_size(); } -inline ::Odb::Lib::Protobuf::PropertyRecord* EdaDataFile_PackageRecord::mutable_propertyrecords(int index) { +inline ::Odb::Lib::Protobuf::PropertyRecord* EdaDataFile_PackageRecord::mutable_propertyrecords(int index) + ABSL_ATTRIBUTE_LIFETIME_BOUND { // @@protoc_insertion_point(field_mutable:Odb.Lib.Protobuf.EdaDataFile.PackageRecord.propertyRecords) - return _impl_.propertyrecords_.Mutable(index); + return _internal_mutable_propertyrecords()->Mutable(index); } -inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::Odb::Lib::Protobuf::PropertyRecord >* -EdaDataFile_PackageRecord::mutable_propertyrecords() { +inline ::google::protobuf::RepeatedPtrField<::Odb::Lib::Protobuf::PropertyRecord>* EdaDataFile_PackageRecord::mutable_propertyrecords() + ABSL_ATTRIBUTE_LIFETIME_BOUND { // @@protoc_insertion_point(field_mutable_list:Odb.Lib.Protobuf.EdaDataFile.PackageRecord.propertyRecords) - return &_impl_.propertyrecords_; + ::google::protobuf::internal::TSanWrite(&_impl_); + return _internal_mutable_propertyrecords(); } -inline const ::Odb::Lib::Protobuf::PropertyRecord& EdaDataFile_PackageRecord::_internal_propertyrecords(int index) const { - return _impl_.propertyrecords_.Get(index); -} -inline const ::Odb::Lib::Protobuf::PropertyRecord& EdaDataFile_PackageRecord::propertyrecords(int index) const { +inline const ::Odb::Lib::Protobuf::PropertyRecord& EdaDataFile_PackageRecord::propertyrecords(int index) const + ABSL_ATTRIBUTE_LIFETIME_BOUND { // @@protoc_insertion_point(field_get:Odb.Lib.Protobuf.EdaDataFile.PackageRecord.propertyRecords) - return _internal_propertyrecords(index); -} -inline ::Odb::Lib::Protobuf::PropertyRecord* EdaDataFile_PackageRecord::_internal_add_propertyrecords() { - return _impl_.propertyrecords_.Add(); + return _internal_propertyrecords().Get(index); } -inline ::Odb::Lib::Protobuf::PropertyRecord* EdaDataFile_PackageRecord::add_propertyrecords() { - ::Odb::Lib::Protobuf::PropertyRecord* _add = _internal_add_propertyrecords(); +inline ::Odb::Lib::Protobuf::PropertyRecord* EdaDataFile_PackageRecord::add_propertyrecords() ABSL_ATTRIBUTE_LIFETIME_BOUND { + ::google::protobuf::internal::TSanWrite(&_impl_); + ::Odb::Lib::Protobuf::PropertyRecord* _add = _internal_mutable_propertyrecords()->Add(); // @@protoc_insertion_point(field_add:Odb.Lib.Protobuf.EdaDataFile.PackageRecord.propertyRecords) return _add; } -inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::Odb::Lib::Protobuf::PropertyRecord >& -EdaDataFile_PackageRecord::propertyrecords() const { +inline const ::google::protobuf::RepeatedPtrField<::Odb::Lib::Protobuf::PropertyRecord>& EdaDataFile_PackageRecord::propertyrecords() const + ABSL_ATTRIBUTE_LIFETIME_BOUND { // @@protoc_insertion_point(field_list:Odb.Lib.Protobuf.EdaDataFile.PackageRecord.propertyRecords) + return _internal_propertyrecords(); +} +inline const ::google::protobuf::RepeatedPtrField<::Odb::Lib::Protobuf::PropertyRecord>& +EdaDataFile_PackageRecord::_internal_propertyrecords() const { + ::google::protobuf::internal::TSanRead(&_impl_); return _impl_.propertyrecords_; } +inline ::google::protobuf::RepeatedPtrField<::Odb::Lib::Protobuf::PropertyRecord>* +EdaDataFile_PackageRecord::_internal_mutable_propertyrecords() { + ::google::protobuf::internal::TSanRead(&_impl_); + return &_impl_.propertyrecords_; +} // repeated .Odb.Lib.Protobuf.EdaDataFile.PackageRecord.OutlineRecord outlineRecords = 11; inline int EdaDataFile_PackageRecord::_internal_outlinerecords_size() const { - return _impl_.outlinerecords_.size(); + return _internal_outlinerecords().size(); } inline int EdaDataFile_PackageRecord::outlinerecords_size() const { return _internal_outlinerecords_size(); } inline void EdaDataFile_PackageRecord::clear_outlinerecords() { + ::google::protobuf::internal::TSanWrite(&_impl_); _impl_.outlinerecords_.Clear(); } -inline ::Odb::Lib::Protobuf::EdaDataFile_PackageRecord_OutlineRecord* EdaDataFile_PackageRecord::mutable_outlinerecords(int index) { +inline ::Odb::Lib::Protobuf::EdaDataFile_PackageRecord_OutlineRecord* EdaDataFile_PackageRecord::mutable_outlinerecords(int index) + ABSL_ATTRIBUTE_LIFETIME_BOUND { // @@protoc_insertion_point(field_mutable:Odb.Lib.Protobuf.EdaDataFile.PackageRecord.outlineRecords) - return _impl_.outlinerecords_.Mutable(index); + return _internal_mutable_outlinerecords()->Mutable(index); } -inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::Odb::Lib::Protobuf::EdaDataFile_PackageRecord_OutlineRecord >* -EdaDataFile_PackageRecord::mutable_outlinerecords() { +inline ::google::protobuf::RepeatedPtrField<::Odb::Lib::Protobuf::EdaDataFile_PackageRecord_OutlineRecord>* EdaDataFile_PackageRecord::mutable_outlinerecords() + ABSL_ATTRIBUTE_LIFETIME_BOUND { // @@protoc_insertion_point(field_mutable_list:Odb.Lib.Protobuf.EdaDataFile.PackageRecord.outlineRecords) - return &_impl_.outlinerecords_; + ::google::protobuf::internal::TSanWrite(&_impl_); + return _internal_mutable_outlinerecords(); } -inline const ::Odb::Lib::Protobuf::EdaDataFile_PackageRecord_OutlineRecord& EdaDataFile_PackageRecord::_internal_outlinerecords(int index) const { - return _impl_.outlinerecords_.Get(index); -} -inline const ::Odb::Lib::Protobuf::EdaDataFile_PackageRecord_OutlineRecord& EdaDataFile_PackageRecord::outlinerecords(int index) const { +inline const ::Odb::Lib::Protobuf::EdaDataFile_PackageRecord_OutlineRecord& EdaDataFile_PackageRecord::outlinerecords(int index) const + ABSL_ATTRIBUTE_LIFETIME_BOUND { // @@protoc_insertion_point(field_get:Odb.Lib.Protobuf.EdaDataFile.PackageRecord.outlineRecords) - return _internal_outlinerecords(index); -} -inline ::Odb::Lib::Protobuf::EdaDataFile_PackageRecord_OutlineRecord* EdaDataFile_PackageRecord::_internal_add_outlinerecords() { - return _impl_.outlinerecords_.Add(); + return _internal_outlinerecords().Get(index); } -inline ::Odb::Lib::Protobuf::EdaDataFile_PackageRecord_OutlineRecord* EdaDataFile_PackageRecord::add_outlinerecords() { - ::Odb::Lib::Protobuf::EdaDataFile_PackageRecord_OutlineRecord* _add = _internal_add_outlinerecords(); +inline ::Odb::Lib::Protobuf::EdaDataFile_PackageRecord_OutlineRecord* EdaDataFile_PackageRecord::add_outlinerecords() ABSL_ATTRIBUTE_LIFETIME_BOUND { + ::google::protobuf::internal::TSanWrite(&_impl_); + ::Odb::Lib::Protobuf::EdaDataFile_PackageRecord_OutlineRecord* _add = _internal_mutable_outlinerecords()->Add(); // @@protoc_insertion_point(field_add:Odb.Lib.Protobuf.EdaDataFile.PackageRecord.outlineRecords) return _add; } -inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::Odb::Lib::Protobuf::EdaDataFile_PackageRecord_OutlineRecord >& -EdaDataFile_PackageRecord::outlinerecords() const { +inline const ::google::protobuf::RepeatedPtrField<::Odb::Lib::Protobuf::EdaDataFile_PackageRecord_OutlineRecord>& EdaDataFile_PackageRecord::outlinerecords() const + ABSL_ATTRIBUTE_LIFETIME_BOUND { // @@protoc_insertion_point(field_list:Odb.Lib.Protobuf.EdaDataFile.PackageRecord.outlineRecords) + return _internal_outlinerecords(); +} +inline const ::google::protobuf::RepeatedPtrField<::Odb::Lib::Protobuf::EdaDataFile_PackageRecord_OutlineRecord>& +EdaDataFile_PackageRecord::_internal_outlinerecords() const { + ::google::protobuf::internal::TSanRead(&_impl_); return _impl_.outlinerecords_; } +inline ::google::protobuf::RepeatedPtrField<::Odb::Lib::Protobuf::EdaDataFile_PackageRecord_OutlineRecord>* +EdaDataFile_PackageRecord::_internal_mutable_outlinerecords() { + ::google::protobuf::internal::TSanRead(&_impl_); + return &_impl_.outlinerecords_; +} // map attributeLookupTable = 12; inline int EdaDataFile_PackageRecord::_internal_attributelookuptable_size() const { - return _impl_.attributelookuptable_.size(); + return _internal_attributelookuptable().size(); } inline int EdaDataFile_PackageRecord::attributelookuptable_size() const { return _internal_attributelookuptable_size(); } inline void EdaDataFile_PackageRecord::clear_attributelookuptable() { + ::google::protobuf::internal::TSanWrite(&_impl_); _impl_.attributelookuptable_.Clear(); } -inline const ::PROTOBUF_NAMESPACE_ID::Map< std::string, std::string >& -EdaDataFile_PackageRecord::_internal_attributelookuptable() const { +inline const ::google::protobuf::Map& EdaDataFile_PackageRecord::_internal_attributelookuptable() const { + ::google::protobuf::internal::TSanRead(&_impl_); return _impl_.attributelookuptable_.GetMap(); } -inline const ::PROTOBUF_NAMESPACE_ID::Map< std::string, std::string >& -EdaDataFile_PackageRecord::attributelookuptable() const { +inline const ::google::protobuf::Map& EdaDataFile_PackageRecord::attributelookuptable() const ABSL_ATTRIBUTE_LIFETIME_BOUND { // @@protoc_insertion_point(field_map:Odb.Lib.Protobuf.EdaDataFile.PackageRecord.attributeLookupTable) return _internal_attributelookuptable(); } -inline ::PROTOBUF_NAMESPACE_ID::Map< std::string, std::string >* -EdaDataFile_PackageRecord::_internal_mutable_attributelookuptable() { +inline ::google::protobuf::Map* EdaDataFile_PackageRecord::_internal_mutable_attributelookuptable() { + ::google::protobuf::internal::TSanWrite(&_impl_); return _impl_.attributelookuptable_.MutableMap(); } -inline ::PROTOBUF_NAMESPACE_ID::Map< std::string, std::string >* -EdaDataFile_PackageRecord::mutable_attributelookuptable() { +inline ::google::protobuf::Map* EdaDataFile_PackageRecord::mutable_attributelookuptable() ABSL_ATTRIBUTE_LIFETIME_BOUND { // @@protoc_insertion_point(field_mutable_map:Odb.Lib.Protobuf.EdaDataFile.PackageRecord.attributeLookupTable) return _internal_mutable_attributelookuptable(); } @@ -4688,149 +4986,167 @@ EdaDataFile_PackageRecord::mutable_attributelookuptable() { // EdaDataFile_FeatureGroupRecord // optional string type = 1; -inline bool EdaDataFile_FeatureGroupRecord::_internal_has_type() const { +inline bool EdaDataFile_FeatureGroupRecord::has_type() const { bool value = (_impl_._has_bits_[0] & 0x00000001u) != 0; return value; } -inline bool EdaDataFile_FeatureGroupRecord::has_type() const { - return _internal_has_type(); -} inline void EdaDataFile_FeatureGroupRecord::clear_type() { + ::google::protobuf::internal::TSanWrite(&_impl_); _impl_.type_.ClearToEmpty(); _impl_._has_bits_[0] &= ~0x00000001u; } -inline const std::string& EdaDataFile_FeatureGroupRecord::type() const { +inline const std::string& EdaDataFile_FeatureGroupRecord::type() const + ABSL_ATTRIBUTE_LIFETIME_BOUND { // @@protoc_insertion_point(field_get:Odb.Lib.Protobuf.EdaDataFile.FeatureGroupRecord.type) return _internal_type(); } -template -inline PROTOBUF_ALWAYS_INLINE -void EdaDataFile_FeatureGroupRecord::set_type(ArgT0&& arg0, ArgT... args) { - _impl_._has_bits_[0] |= 0x00000001u; - _impl_.type_.Set(static_cast(arg0), args..., GetArenaForAllocation()); +template +inline PROTOBUF_ALWAYS_INLINE void EdaDataFile_FeatureGroupRecord::set_type(Arg_&& arg, + Args_... args) { + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_._has_bits_[0] |= 0x00000001u; + _impl_.type_.Set(static_cast(arg), args..., GetArena()); // @@protoc_insertion_point(field_set:Odb.Lib.Protobuf.EdaDataFile.FeatureGroupRecord.type) } -inline std::string* EdaDataFile_FeatureGroupRecord::mutable_type() { +inline std::string* EdaDataFile_FeatureGroupRecord::mutable_type() ABSL_ATTRIBUTE_LIFETIME_BOUND { std::string* _s = _internal_mutable_type(); // @@protoc_insertion_point(field_mutable:Odb.Lib.Protobuf.EdaDataFile.FeatureGroupRecord.type) return _s; } inline const std::string& EdaDataFile_FeatureGroupRecord::_internal_type() const { + ::google::protobuf::internal::TSanRead(&_impl_); return _impl_.type_.Get(); } inline void EdaDataFile_FeatureGroupRecord::_internal_set_type(const std::string& value) { + ::google::protobuf::internal::TSanWrite(&_impl_); _impl_._has_bits_[0] |= 0x00000001u; - _impl_.type_.Set(value, GetArenaForAllocation()); + _impl_.type_.Set(value, GetArena()); } inline std::string* EdaDataFile_FeatureGroupRecord::_internal_mutable_type() { + ::google::protobuf::internal::TSanWrite(&_impl_); _impl_._has_bits_[0] |= 0x00000001u; - return _impl_.type_.Mutable(GetArenaForAllocation()); + return _impl_.type_.Mutable( GetArena()); } inline std::string* EdaDataFile_FeatureGroupRecord::release_type() { + ::google::protobuf::internal::TSanWrite(&_impl_); // @@protoc_insertion_point(field_release:Odb.Lib.Protobuf.EdaDataFile.FeatureGroupRecord.type) - if (!_internal_has_type()) { + if ((_impl_._has_bits_[0] & 0x00000001u) == 0) { return nullptr; } _impl_._has_bits_[0] &= ~0x00000001u; - auto* p = _impl_.type_.Release(); -#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (_impl_.type_.IsDefault()) { - _impl_.type_.Set("", GetArenaForAllocation()); + auto* released = _impl_.type_.Release(); + if (::google::protobuf::internal::DebugHardenForceCopyDefaultString()) { + _impl_.type_.Set("", GetArena()); } -#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING - return p; + return released; } -inline void EdaDataFile_FeatureGroupRecord::set_allocated_type(std::string* type) { - if (type != nullptr) { +inline void EdaDataFile_FeatureGroupRecord::set_allocated_type(std::string* value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + if (value != nullptr) { _impl_._has_bits_[0] |= 0x00000001u; } else { _impl_._has_bits_[0] &= ~0x00000001u; } - _impl_.type_.SetAllocated(type, GetArenaForAllocation()); -#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (_impl_.type_.IsDefault()) { - _impl_.type_.Set("", GetArenaForAllocation()); + _impl_.type_.SetAllocated(value, GetArena()); + if (::google::protobuf::internal::DebugHardenForceCopyDefaultString() && _impl_.type_.IsDefault()) { + _impl_.type_.Set("", GetArena()); } -#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING // @@protoc_insertion_point(field_set_allocated:Odb.Lib.Protobuf.EdaDataFile.FeatureGroupRecord.type) } // repeated .Odb.Lib.Protobuf.PropertyRecord propertyRecords = 2; inline int EdaDataFile_FeatureGroupRecord::_internal_propertyrecords_size() const { - return _impl_.propertyrecords_.size(); + return _internal_propertyrecords().size(); } inline int EdaDataFile_FeatureGroupRecord::propertyrecords_size() const { return _internal_propertyrecords_size(); } -inline ::Odb::Lib::Protobuf::PropertyRecord* EdaDataFile_FeatureGroupRecord::mutable_propertyrecords(int index) { +inline ::Odb::Lib::Protobuf::PropertyRecord* EdaDataFile_FeatureGroupRecord::mutable_propertyrecords(int index) + ABSL_ATTRIBUTE_LIFETIME_BOUND { // @@protoc_insertion_point(field_mutable:Odb.Lib.Protobuf.EdaDataFile.FeatureGroupRecord.propertyRecords) - return _impl_.propertyrecords_.Mutable(index); + return _internal_mutable_propertyrecords()->Mutable(index); } -inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::Odb::Lib::Protobuf::PropertyRecord >* -EdaDataFile_FeatureGroupRecord::mutable_propertyrecords() { +inline ::google::protobuf::RepeatedPtrField<::Odb::Lib::Protobuf::PropertyRecord>* EdaDataFile_FeatureGroupRecord::mutable_propertyrecords() + ABSL_ATTRIBUTE_LIFETIME_BOUND { // @@protoc_insertion_point(field_mutable_list:Odb.Lib.Protobuf.EdaDataFile.FeatureGroupRecord.propertyRecords) - return &_impl_.propertyrecords_; + ::google::protobuf::internal::TSanWrite(&_impl_); + return _internal_mutable_propertyrecords(); } -inline const ::Odb::Lib::Protobuf::PropertyRecord& EdaDataFile_FeatureGroupRecord::_internal_propertyrecords(int index) const { - return _impl_.propertyrecords_.Get(index); -} -inline const ::Odb::Lib::Protobuf::PropertyRecord& EdaDataFile_FeatureGroupRecord::propertyrecords(int index) const { +inline const ::Odb::Lib::Protobuf::PropertyRecord& EdaDataFile_FeatureGroupRecord::propertyrecords(int index) const + ABSL_ATTRIBUTE_LIFETIME_BOUND { // @@protoc_insertion_point(field_get:Odb.Lib.Protobuf.EdaDataFile.FeatureGroupRecord.propertyRecords) - return _internal_propertyrecords(index); -} -inline ::Odb::Lib::Protobuf::PropertyRecord* EdaDataFile_FeatureGroupRecord::_internal_add_propertyrecords() { - return _impl_.propertyrecords_.Add(); + return _internal_propertyrecords().Get(index); } -inline ::Odb::Lib::Protobuf::PropertyRecord* EdaDataFile_FeatureGroupRecord::add_propertyrecords() { - ::Odb::Lib::Protobuf::PropertyRecord* _add = _internal_add_propertyrecords(); +inline ::Odb::Lib::Protobuf::PropertyRecord* EdaDataFile_FeatureGroupRecord::add_propertyrecords() ABSL_ATTRIBUTE_LIFETIME_BOUND { + ::google::protobuf::internal::TSanWrite(&_impl_); + ::Odb::Lib::Protobuf::PropertyRecord* _add = _internal_mutable_propertyrecords()->Add(); // @@protoc_insertion_point(field_add:Odb.Lib.Protobuf.EdaDataFile.FeatureGroupRecord.propertyRecords) return _add; } -inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::Odb::Lib::Protobuf::PropertyRecord >& -EdaDataFile_FeatureGroupRecord::propertyrecords() const { +inline const ::google::protobuf::RepeatedPtrField<::Odb::Lib::Protobuf::PropertyRecord>& EdaDataFile_FeatureGroupRecord::propertyrecords() const + ABSL_ATTRIBUTE_LIFETIME_BOUND { // @@protoc_insertion_point(field_list:Odb.Lib.Protobuf.EdaDataFile.FeatureGroupRecord.propertyRecords) + return _internal_propertyrecords(); +} +inline const ::google::protobuf::RepeatedPtrField<::Odb::Lib::Protobuf::PropertyRecord>& +EdaDataFile_FeatureGroupRecord::_internal_propertyrecords() const { + ::google::protobuf::internal::TSanRead(&_impl_); return _impl_.propertyrecords_; } +inline ::google::protobuf::RepeatedPtrField<::Odb::Lib::Protobuf::PropertyRecord>* +EdaDataFile_FeatureGroupRecord::_internal_mutable_propertyrecords() { + ::google::protobuf::internal::TSanRead(&_impl_); + return &_impl_.propertyrecords_; +} // repeated .Odb.Lib.Protobuf.EdaDataFile.FeatureIdRecord featureIdRecords = 3; inline int EdaDataFile_FeatureGroupRecord::_internal_featureidrecords_size() const { - return _impl_.featureidrecords_.size(); + return _internal_featureidrecords().size(); } inline int EdaDataFile_FeatureGroupRecord::featureidrecords_size() const { return _internal_featureidrecords_size(); } inline void EdaDataFile_FeatureGroupRecord::clear_featureidrecords() { + ::google::protobuf::internal::TSanWrite(&_impl_); _impl_.featureidrecords_.Clear(); } -inline ::Odb::Lib::Protobuf::EdaDataFile_FeatureIdRecord* EdaDataFile_FeatureGroupRecord::mutable_featureidrecords(int index) { +inline ::Odb::Lib::Protobuf::EdaDataFile_FeatureIdRecord* EdaDataFile_FeatureGroupRecord::mutable_featureidrecords(int index) + ABSL_ATTRIBUTE_LIFETIME_BOUND { // @@protoc_insertion_point(field_mutable:Odb.Lib.Protobuf.EdaDataFile.FeatureGroupRecord.featureIdRecords) - return _impl_.featureidrecords_.Mutable(index); + return _internal_mutable_featureidrecords()->Mutable(index); } -inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::Odb::Lib::Protobuf::EdaDataFile_FeatureIdRecord >* -EdaDataFile_FeatureGroupRecord::mutable_featureidrecords() { +inline ::google::protobuf::RepeatedPtrField<::Odb::Lib::Protobuf::EdaDataFile_FeatureIdRecord>* EdaDataFile_FeatureGroupRecord::mutable_featureidrecords() + ABSL_ATTRIBUTE_LIFETIME_BOUND { // @@protoc_insertion_point(field_mutable_list:Odb.Lib.Protobuf.EdaDataFile.FeatureGroupRecord.featureIdRecords) - return &_impl_.featureidrecords_; + ::google::protobuf::internal::TSanWrite(&_impl_); + return _internal_mutable_featureidrecords(); } -inline const ::Odb::Lib::Protobuf::EdaDataFile_FeatureIdRecord& EdaDataFile_FeatureGroupRecord::_internal_featureidrecords(int index) const { - return _impl_.featureidrecords_.Get(index); -} -inline const ::Odb::Lib::Protobuf::EdaDataFile_FeatureIdRecord& EdaDataFile_FeatureGroupRecord::featureidrecords(int index) const { +inline const ::Odb::Lib::Protobuf::EdaDataFile_FeatureIdRecord& EdaDataFile_FeatureGroupRecord::featureidrecords(int index) const + ABSL_ATTRIBUTE_LIFETIME_BOUND { // @@protoc_insertion_point(field_get:Odb.Lib.Protobuf.EdaDataFile.FeatureGroupRecord.featureIdRecords) - return _internal_featureidrecords(index); -} -inline ::Odb::Lib::Protobuf::EdaDataFile_FeatureIdRecord* EdaDataFile_FeatureGroupRecord::_internal_add_featureidrecords() { - return _impl_.featureidrecords_.Add(); + return _internal_featureidrecords().Get(index); } -inline ::Odb::Lib::Protobuf::EdaDataFile_FeatureIdRecord* EdaDataFile_FeatureGroupRecord::add_featureidrecords() { - ::Odb::Lib::Protobuf::EdaDataFile_FeatureIdRecord* _add = _internal_add_featureidrecords(); +inline ::Odb::Lib::Protobuf::EdaDataFile_FeatureIdRecord* EdaDataFile_FeatureGroupRecord::add_featureidrecords() ABSL_ATTRIBUTE_LIFETIME_BOUND { + ::google::protobuf::internal::TSanWrite(&_impl_); + ::Odb::Lib::Protobuf::EdaDataFile_FeatureIdRecord* _add = _internal_mutable_featureidrecords()->Add(); // @@protoc_insertion_point(field_add:Odb.Lib.Protobuf.EdaDataFile.FeatureGroupRecord.featureIdRecords) return _add; } -inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::Odb::Lib::Protobuf::EdaDataFile_FeatureIdRecord >& -EdaDataFile_FeatureGroupRecord::featureidrecords() const { +inline const ::google::protobuf::RepeatedPtrField<::Odb::Lib::Protobuf::EdaDataFile_FeatureIdRecord>& EdaDataFile_FeatureGroupRecord::featureidrecords() const + ABSL_ATTRIBUTE_LIFETIME_BOUND { // @@protoc_insertion_point(field_list:Odb.Lib.Protobuf.EdaDataFile.FeatureGroupRecord.featureIdRecords) + return _internal_featureidrecords(); +} +inline const ::google::protobuf::RepeatedPtrField<::Odb::Lib::Protobuf::EdaDataFile_FeatureIdRecord>& +EdaDataFile_FeatureGroupRecord::_internal_featureidrecords() const { + ::google::protobuf::internal::TSanRead(&_impl_); return _impl_.featureidrecords_; } +inline ::google::protobuf::RepeatedPtrField<::Odb::Lib::Protobuf::EdaDataFile_FeatureIdRecord>* +EdaDataFile_FeatureGroupRecord::_internal_mutable_featureidrecords() { + ::google::protobuf::internal::TSanRead(&_impl_); + return &_impl_.featureidrecords_; +} // ------------------------------------------------------------------- @@ -4841,729 +5157,719 @@ EdaDataFile_FeatureGroupRecord::featureidrecords() const { // EdaDataFile // optional string path = 1; -inline bool EdaDataFile::_internal_has_path() const { +inline bool EdaDataFile::has_path() const { bool value = (_impl_._has_bits_[0] & 0x00000001u) != 0; return value; } -inline bool EdaDataFile::has_path() const { - return _internal_has_path(); -} inline void EdaDataFile::clear_path() { + ::google::protobuf::internal::TSanWrite(&_impl_); _impl_.path_.ClearToEmpty(); _impl_._has_bits_[0] &= ~0x00000001u; } -inline const std::string& EdaDataFile::path() const { +inline const std::string& EdaDataFile::path() const + ABSL_ATTRIBUTE_LIFETIME_BOUND { // @@protoc_insertion_point(field_get:Odb.Lib.Protobuf.EdaDataFile.path) return _internal_path(); } -template -inline PROTOBUF_ALWAYS_INLINE -void EdaDataFile::set_path(ArgT0&& arg0, ArgT... args) { - _impl_._has_bits_[0] |= 0x00000001u; - _impl_.path_.Set(static_cast(arg0), args..., GetArenaForAllocation()); +template +inline PROTOBUF_ALWAYS_INLINE void EdaDataFile::set_path(Arg_&& arg, + Args_... args) { + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_._has_bits_[0] |= 0x00000001u; + _impl_.path_.Set(static_cast(arg), args..., GetArena()); // @@protoc_insertion_point(field_set:Odb.Lib.Protobuf.EdaDataFile.path) } -inline std::string* EdaDataFile::mutable_path() { +inline std::string* EdaDataFile::mutable_path() ABSL_ATTRIBUTE_LIFETIME_BOUND { std::string* _s = _internal_mutable_path(); // @@protoc_insertion_point(field_mutable:Odb.Lib.Protobuf.EdaDataFile.path) return _s; } inline const std::string& EdaDataFile::_internal_path() const { + ::google::protobuf::internal::TSanRead(&_impl_); return _impl_.path_.Get(); } inline void EdaDataFile::_internal_set_path(const std::string& value) { + ::google::protobuf::internal::TSanWrite(&_impl_); _impl_._has_bits_[0] |= 0x00000001u; - _impl_.path_.Set(value, GetArenaForAllocation()); + _impl_.path_.Set(value, GetArena()); } inline std::string* EdaDataFile::_internal_mutable_path() { + ::google::protobuf::internal::TSanWrite(&_impl_); _impl_._has_bits_[0] |= 0x00000001u; - return _impl_.path_.Mutable(GetArenaForAllocation()); + return _impl_.path_.Mutable( GetArena()); } inline std::string* EdaDataFile::release_path() { + ::google::protobuf::internal::TSanWrite(&_impl_); // @@protoc_insertion_point(field_release:Odb.Lib.Protobuf.EdaDataFile.path) - if (!_internal_has_path()) { + if ((_impl_._has_bits_[0] & 0x00000001u) == 0) { return nullptr; } _impl_._has_bits_[0] &= ~0x00000001u; - auto* p = _impl_.path_.Release(); -#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (_impl_.path_.IsDefault()) { - _impl_.path_.Set("", GetArenaForAllocation()); + auto* released = _impl_.path_.Release(); + if (::google::protobuf::internal::DebugHardenForceCopyDefaultString()) { + _impl_.path_.Set("", GetArena()); } -#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING - return p; + return released; } -inline void EdaDataFile::set_allocated_path(std::string* path) { - if (path != nullptr) { +inline void EdaDataFile::set_allocated_path(std::string* value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + if (value != nullptr) { _impl_._has_bits_[0] |= 0x00000001u; } else { _impl_._has_bits_[0] &= ~0x00000001u; } - _impl_.path_.SetAllocated(path, GetArenaForAllocation()); -#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (_impl_.path_.IsDefault()) { - _impl_.path_.Set("", GetArenaForAllocation()); + _impl_.path_.SetAllocated(value, GetArena()); + if (::google::protobuf::internal::DebugHardenForceCopyDefaultString() && _impl_.path_.IsDefault()) { + _impl_.path_.Set("", GetArena()); } -#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING // @@protoc_insertion_point(field_set_allocated:Odb.Lib.Protobuf.EdaDataFile.path) } // optional string units = 2; -inline bool EdaDataFile::_internal_has_units() const { +inline bool EdaDataFile::has_units() const { bool value = (_impl_._has_bits_[0] & 0x00000002u) != 0; return value; } -inline bool EdaDataFile::has_units() const { - return _internal_has_units(); -} inline void EdaDataFile::clear_units() { + ::google::protobuf::internal::TSanWrite(&_impl_); _impl_.units_.ClearToEmpty(); _impl_._has_bits_[0] &= ~0x00000002u; } -inline const std::string& EdaDataFile::units() const { +inline const std::string& EdaDataFile::units() const + ABSL_ATTRIBUTE_LIFETIME_BOUND { // @@protoc_insertion_point(field_get:Odb.Lib.Protobuf.EdaDataFile.units) return _internal_units(); } -template -inline PROTOBUF_ALWAYS_INLINE -void EdaDataFile::set_units(ArgT0&& arg0, ArgT... args) { - _impl_._has_bits_[0] |= 0x00000002u; - _impl_.units_.Set(static_cast(arg0), args..., GetArenaForAllocation()); +template +inline PROTOBUF_ALWAYS_INLINE void EdaDataFile::set_units(Arg_&& arg, + Args_... args) { + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_._has_bits_[0] |= 0x00000002u; + _impl_.units_.Set(static_cast(arg), args..., GetArena()); // @@protoc_insertion_point(field_set:Odb.Lib.Protobuf.EdaDataFile.units) } -inline std::string* EdaDataFile::mutable_units() { +inline std::string* EdaDataFile::mutable_units() ABSL_ATTRIBUTE_LIFETIME_BOUND { std::string* _s = _internal_mutable_units(); // @@protoc_insertion_point(field_mutable:Odb.Lib.Protobuf.EdaDataFile.units) return _s; } inline const std::string& EdaDataFile::_internal_units() const { + ::google::protobuf::internal::TSanRead(&_impl_); return _impl_.units_.Get(); } inline void EdaDataFile::_internal_set_units(const std::string& value) { + ::google::protobuf::internal::TSanWrite(&_impl_); _impl_._has_bits_[0] |= 0x00000002u; - _impl_.units_.Set(value, GetArenaForAllocation()); + _impl_.units_.Set(value, GetArena()); } inline std::string* EdaDataFile::_internal_mutable_units() { + ::google::protobuf::internal::TSanWrite(&_impl_); _impl_._has_bits_[0] |= 0x00000002u; - return _impl_.units_.Mutable(GetArenaForAllocation()); + return _impl_.units_.Mutable( GetArena()); } inline std::string* EdaDataFile::release_units() { + ::google::protobuf::internal::TSanWrite(&_impl_); // @@protoc_insertion_point(field_release:Odb.Lib.Protobuf.EdaDataFile.units) - if (!_internal_has_units()) { + if ((_impl_._has_bits_[0] & 0x00000002u) == 0) { return nullptr; } _impl_._has_bits_[0] &= ~0x00000002u; - auto* p = _impl_.units_.Release(); -#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (_impl_.units_.IsDefault()) { - _impl_.units_.Set("", GetArenaForAllocation()); + auto* released = _impl_.units_.Release(); + if (::google::protobuf::internal::DebugHardenForceCopyDefaultString()) { + _impl_.units_.Set("", GetArena()); } -#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING - return p; + return released; } -inline void EdaDataFile::set_allocated_units(std::string* units) { - if (units != nullptr) { +inline void EdaDataFile::set_allocated_units(std::string* value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + if (value != nullptr) { _impl_._has_bits_[0] |= 0x00000002u; } else { _impl_._has_bits_[0] &= ~0x00000002u; } - _impl_.units_.SetAllocated(units, GetArenaForAllocation()); -#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (_impl_.units_.IsDefault()) { - _impl_.units_.Set("", GetArenaForAllocation()); + _impl_.units_.SetAllocated(value, GetArena()); + if (::google::protobuf::internal::DebugHardenForceCopyDefaultString() && _impl_.units_.IsDefault()) { + _impl_.units_.Set("", GetArena()); } -#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING // @@protoc_insertion_point(field_set_allocated:Odb.Lib.Protobuf.EdaDataFile.units) } // optional string source = 3; -inline bool EdaDataFile::_internal_has_source() const { +inline bool EdaDataFile::has_source() const { bool value = (_impl_._has_bits_[0] & 0x00000004u) != 0; return value; } -inline bool EdaDataFile::has_source() const { - return _internal_has_source(); -} inline void EdaDataFile::clear_source() { + ::google::protobuf::internal::TSanWrite(&_impl_); _impl_.source_.ClearToEmpty(); _impl_._has_bits_[0] &= ~0x00000004u; } -inline const std::string& EdaDataFile::source() const { +inline const std::string& EdaDataFile::source() const + ABSL_ATTRIBUTE_LIFETIME_BOUND { // @@protoc_insertion_point(field_get:Odb.Lib.Protobuf.EdaDataFile.source) return _internal_source(); } -template -inline PROTOBUF_ALWAYS_INLINE -void EdaDataFile::set_source(ArgT0&& arg0, ArgT... args) { - _impl_._has_bits_[0] |= 0x00000004u; - _impl_.source_.Set(static_cast(arg0), args..., GetArenaForAllocation()); +template +inline PROTOBUF_ALWAYS_INLINE void EdaDataFile::set_source(Arg_&& arg, + Args_... args) { + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_._has_bits_[0] |= 0x00000004u; + _impl_.source_.Set(static_cast(arg), args..., GetArena()); // @@protoc_insertion_point(field_set:Odb.Lib.Protobuf.EdaDataFile.source) } -inline std::string* EdaDataFile::mutable_source() { +inline std::string* EdaDataFile::mutable_source() ABSL_ATTRIBUTE_LIFETIME_BOUND { std::string* _s = _internal_mutable_source(); // @@protoc_insertion_point(field_mutable:Odb.Lib.Protobuf.EdaDataFile.source) return _s; } inline const std::string& EdaDataFile::_internal_source() const { + ::google::protobuf::internal::TSanRead(&_impl_); return _impl_.source_.Get(); } inline void EdaDataFile::_internal_set_source(const std::string& value) { + ::google::protobuf::internal::TSanWrite(&_impl_); _impl_._has_bits_[0] |= 0x00000004u; - _impl_.source_.Set(value, GetArenaForAllocation()); + _impl_.source_.Set(value, GetArena()); } inline std::string* EdaDataFile::_internal_mutable_source() { + ::google::protobuf::internal::TSanWrite(&_impl_); _impl_._has_bits_[0] |= 0x00000004u; - return _impl_.source_.Mutable(GetArenaForAllocation()); + return _impl_.source_.Mutable( GetArena()); } inline std::string* EdaDataFile::release_source() { + ::google::protobuf::internal::TSanWrite(&_impl_); // @@protoc_insertion_point(field_release:Odb.Lib.Protobuf.EdaDataFile.source) - if (!_internal_has_source()) { + if ((_impl_._has_bits_[0] & 0x00000004u) == 0) { return nullptr; } _impl_._has_bits_[0] &= ~0x00000004u; - auto* p = _impl_.source_.Release(); -#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (_impl_.source_.IsDefault()) { - _impl_.source_.Set("", GetArenaForAllocation()); + auto* released = _impl_.source_.Release(); + if (::google::protobuf::internal::DebugHardenForceCopyDefaultString()) { + _impl_.source_.Set("", GetArena()); } -#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING - return p; + return released; } -inline void EdaDataFile::set_allocated_source(std::string* source) { - if (source != nullptr) { +inline void EdaDataFile::set_allocated_source(std::string* value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + if (value != nullptr) { _impl_._has_bits_[0] |= 0x00000004u; } else { _impl_._has_bits_[0] &= ~0x00000004u; } - _impl_.source_.SetAllocated(source, GetArenaForAllocation()); -#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (_impl_.source_.IsDefault()) { - _impl_.source_.Set("", GetArenaForAllocation()); + _impl_.source_.SetAllocated(value, GetArena()); + if (::google::protobuf::internal::DebugHardenForceCopyDefaultString() && _impl_.source_.IsDefault()) { + _impl_.source_.Set("", GetArena()); } -#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING // @@protoc_insertion_point(field_set_allocated:Odb.Lib.Protobuf.EdaDataFile.source) } // repeated string layerNames = 4; inline int EdaDataFile::_internal_layernames_size() const { - return _impl_.layernames_.size(); + return _internal_layernames().size(); } inline int EdaDataFile::layernames_size() const { return _internal_layernames_size(); } inline void EdaDataFile::clear_layernames() { + ::google::protobuf::internal::TSanWrite(&_impl_); _impl_.layernames_.Clear(); } -inline std::string* EdaDataFile::add_layernames() { - std::string* _s = _internal_add_layernames(); +inline std::string* EdaDataFile::add_layernames() ABSL_ATTRIBUTE_LIFETIME_BOUND { + ::google::protobuf::internal::TSanWrite(&_impl_); + std::string* _s = _internal_mutable_layernames()->Add(); // @@protoc_insertion_point(field_add_mutable:Odb.Lib.Protobuf.EdaDataFile.layerNames) return _s; } -inline const std::string& EdaDataFile::_internal_layernames(int index) const { - return _impl_.layernames_.Get(index); -} -inline const std::string& EdaDataFile::layernames(int index) const { +inline const std::string& EdaDataFile::layernames(int index) const + ABSL_ATTRIBUTE_LIFETIME_BOUND { // @@protoc_insertion_point(field_get:Odb.Lib.Protobuf.EdaDataFile.layerNames) - return _internal_layernames(index); + return _internal_layernames().Get(index); } -inline std::string* EdaDataFile::mutable_layernames(int index) { +inline std::string* EdaDataFile::mutable_layernames(int index) + ABSL_ATTRIBUTE_LIFETIME_BOUND { // @@protoc_insertion_point(field_mutable:Odb.Lib.Protobuf.EdaDataFile.layerNames) - return _impl_.layernames_.Mutable(index); -} -inline void EdaDataFile::set_layernames(int index, const std::string& value) { - _impl_.layernames_.Mutable(index)->assign(value); - // @@protoc_insertion_point(field_set:Odb.Lib.Protobuf.EdaDataFile.layerNames) + return _internal_mutable_layernames()->Mutable(index); } -inline void EdaDataFile::set_layernames(int index, std::string&& value) { - _impl_.layernames_.Mutable(index)->assign(std::move(value)); +template +inline void EdaDataFile::set_layernames(int index, Arg_&& value, Args_... args) { + ::google::protobuf::internal::AssignToString( + *_internal_mutable_layernames()->Mutable(index), + std::forward(value), args... ); // @@protoc_insertion_point(field_set:Odb.Lib.Protobuf.EdaDataFile.layerNames) } -inline void EdaDataFile::set_layernames(int index, const char* value) { - GOOGLE_DCHECK(value != nullptr); - _impl_.layernames_.Mutable(index)->assign(value); - // @@protoc_insertion_point(field_set_char:Odb.Lib.Protobuf.EdaDataFile.layerNames) -} -inline void EdaDataFile::set_layernames(int index, const char* value, size_t size) { - _impl_.layernames_.Mutable(index)->assign( - reinterpret_cast(value), size); - // @@protoc_insertion_point(field_set_pointer:Odb.Lib.Protobuf.EdaDataFile.layerNames) -} -inline std::string* EdaDataFile::_internal_add_layernames() { - return _impl_.layernames_.Add(); -} -inline void EdaDataFile::add_layernames(const std::string& value) { - _impl_.layernames_.Add()->assign(value); - // @@protoc_insertion_point(field_add:Odb.Lib.Protobuf.EdaDataFile.layerNames) -} -inline void EdaDataFile::add_layernames(std::string&& value) { - _impl_.layernames_.Add(std::move(value)); +template +inline void EdaDataFile::add_layernames(Arg_&& value, Args_... args) { + ::google::protobuf::internal::TSanWrite(&_impl_); + ::google::protobuf::internal::AddToRepeatedPtrField(*_internal_mutable_layernames(), + std::forward(value), + args... ); // @@protoc_insertion_point(field_add:Odb.Lib.Protobuf.EdaDataFile.layerNames) } -inline void EdaDataFile::add_layernames(const char* value) { - GOOGLE_DCHECK(value != nullptr); - _impl_.layernames_.Add()->assign(value); - // @@protoc_insertion_point(field_add_char:Odb.Lib.Protobuf.EdaDataFile.layerNames) +inline const ::google::protobuf::RepeatedPtrField& +EdaDataFile::layernames() const ABSL_ATTRIBUTE_LIFETIME_BOUND { + // @@protoc_insertion_point(field_list:Odb.Lib.Protobuf.EdaDataFile.layerNames) + return _internal_layernames(); } -inline void EdaDataFile::add_layernames(const char* value, size_t size) { - _impl_.layernames_.Add()->assign(reinterpret_cast(value), size); - // @@protoc_insertion_point(field_add_pointer:Odb.Lib.Protobuf.EdaDataFile.layerNames) +inline ::google::protobuf::RepeatedPtrField* +EdaDataFile::mutable_layernames() ABSL_ATTRIBUTE_LIFETIME_BOUND { + // @@protoc_insertion_point(field_mutable_list:Odb.Lib.Protobuf.EdaDataFile.layerNames) + ::google::protobuf::internal::TSanWrite(&_impl_); + return _internal_mutable_layernames(); } -inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField& -EdaDataFile::layernames() const { - // @@protoc_insertion_point(field_list:Odb.Lib.Protobuf.EdaDataFile.layerNames) +inline const ::google::protobuf::RepeatedPtrField& +EdaDataFile::_internal_layernames() const { + ::google::protobuf::internal::TSanRead(&_impl_); return _impl_.layernames_; } -inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField* -EdaDataFile::mutable_layernames() { - // @@protoc_insertion_point(field_mutable_list:Odb.Lib.Protobuf.EdaDataFile.layerNames) +inline ::google::protobuf::RepeatedPtrField* +EdaDataFile::_internal_mutable_layernames() { + ::google::protobuf::internal::TSanRead(&_impl_); return &_impl_.layernames_; } // repeated string attributeNames = 5; inline int EdaDataFile::_internal_attributenames_size() const { - return _impl_.attributenames_.size(); + return _internal_attributenames().size(); } inline int EdaDataFile::attributenames_size() const { return _internal_attributenames_size(); } inline void EdaDataFile::clear_attributenames() { + ::google::protobuf::internal::TSanWrite(&_impl_); _impl_.attributenames_.Clear(); } -inline std::string* EdaDataFile::add_attributenames() { - std::string* _s = _internal_add_attributenames(); +inline std::string* EdaDataFile::add_attributenames() ABSL_ATTRIBUTE_LIFETIME_BOUND { + ::google::protobuf::internal::TSanWrite(&_impl_); + std::string* _s = _internal_mutable_attributenames()->Add(); // @@protoc_insertion_point(field_add_mutable:Odb.Lib.Protobuf.EdaDataFile.attributeNames) return _s; } -inline const std::string& EdaDataFile::_internal_attributenames(int index) const { - return _impl_.attributenames_.Get(index); -} -inline const std::string& EdaDataFile::attributenames(int index) const { +inline const std::string& EdaDataFile::attributenames(int index) const + ABSL_ATTRIBUTE_LIFETIME_BOUND { // @@protoc_insertion_point(field_get:Odb.Lib.Protobuf.EdaDataFile.attributeNames) - return _internal_attributenames(index); + return _internal_attributenames().Get(index); } -inline std::string* EdaDataFile::mutable_attributenames(int index) { +inline std::string* EdaDataFile::mutable_attributenames(int index) + ABSL_ATTRIBUTE_LIFETIME_BOUND { // @@protoc_insertion_point(field_mutable:Odb.Lib.Protobuf.EdaDataFile.attributeNames) - return _impl_.attributenames_.Mutable(index); -} -inline void EdaDataFile::set_attributenames(int index, const std::string& value) { - _impl_.attributenames_.Mutable(index)->assign(value); - // @@protoc_insertion_point(field_set:Odb.Lib.Protobuf.EdaDataFile.attributeNames) + return _internal_mutable_attributenames()->Mutable(index); } -inline void EdaDataFile::set_attributenames(int index, std::string&& value) { - _impl_.attributenames_.Mutable(index)->assign(std::move(value)); +template +inline void EdaDataFile::set_attributenames(int index, Arg_&& value, Args_... args) { + ::google::protobuf::internal::AssignToString( + *_internal_mutable_attributenames()->Mutable(index), + std::forward(value), args... ); // @@protoc_insertion_point(field_set:Odb.Lib.Protobuf.EdaDataFile.attributeNames) } -inline void EdaDataFile::set_attributenames(int index, const char* value) { - GOOGLE_DCHECK(value != nullptr); - _impl_.attributenames_.Mutable(index)->assign(value); - // @@protoc_insertion_point(field_set_char:Odb.Lib.Protobuf.EdaDataFile.attributeNames) -} -inline void EdaDataFile::set_attributenames(int index, const char* value, size_t size) { - _impl_.attributenames_.Mutable(index)->assign( - reinterpret_cast(value), size); - // @@protoc_insertion_point(field_set_pointer:Odb.Lib.Protobuf.EdaDataFile.attributeNames) -} -inline std::string* EdaDataFile::_internal_add_attributenames() { - return _impl_.attributenames_.Add(); -} -inline void EdaDataFile::add_attributenames(const std::string& value) { - _impl_.attributenames_.Add()->assign(value); - // @@protoc_insertion_point(field_add:Odb.Lib.Protobuf.EdaDataFile.attributeNames) -} -inline void EdaDataFile::add_attributenames(std::string&& value) { - _impl_.attributenames_.Add(std::move(value)); +template +inline void EdaDataFile::add_attributenames(Arg_&& value, Args_... args) { + ::google::protobuf::internal::TSanWrite(&_impl_); + ::google::protobuf::internal::AddToRepeatedPtrField(*_internal_mutable_attributenames(), + std::forward(value), + args... ); // @@protoc_insertion_point(field_add:Odb.Lib.Protobuf.EdaDataFile.attributeNames) } -inline void EdaDataFile::add_attributenames(const char* value) { - GOOGLE_DCHECK(value != nullptr); - _impl_.attributenames_.Add()->assign(value); - // @@protoc_insertion_point(field_add_char:Odb.Lib.Protobuf.EdaDataFile.attributeNames) +inline const ::google::protobuf::RepeatedPtrField& +EdaDataFile::attributenames() const ABSL_ATTRIBUTE_LIFETIME_BOUND { + // @@protoc_insertion_point(field_list:Odb.Lib.Protobuf.EdaDataFile.attributeNames) + return _internal_attributenames(); } -inline void EdaDataFile::add_attributenames(const char* value, size_t size) { - _impl_.attributenames_.Add()->assign(reinterpret_cast(value), size); - // @@protoc_insertion_point(field_add_pointer:Odb.Lib.Protobuf.EdaDataFile.attributeNames) +inline ::google::protobuf::RepeatedPtrField* +EdaDataFile::mutable_attributenames() ABSL_ATTRIBUTE_LIFETIME_BOUND { + // @@protoc_insertion_point(field_mutable_list:Odb.Lib.Protobuf.EdaDataFile.attributeNames) + ::google::protobuf::internal::TSanWrite(&_impl_); + return _internal_mutable_attributenames(); } -inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField& -EdaDataFile::attributenames() const { - // @@protoc_insertion_point(field_list:Odb.Lib.Protobuf.EdaDataFile.attributeNames) +inline const ::google::protobuf::RepeatedPtrField& +EdaDataFile::_internal_attributenames() const { + ::google::protobuf::internal::TSanRead(&_impl_); return _impl_.attributenames_; } -inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField* -EdaDataFile::mutable_attributenames() { - // @@protoc_insertion_point(field_mutable_list:Odb.Lib.Protobuf.EdaDataFile.attributeNames) +inline ::google::protobuf::RepeatedPtrField* +EdaDataFile::_internal_mutable_attributenames() { + ::google::protobuf::internal::TSanRead(&_impl_); return &_impl_.attributenames_; } // repeated string attributeTextValues = 6; inline int EdaDataFile::_internal_attributetextvalues_size() const { - return _impl_.attributetextvalues_.size(); + return _internal_attributetextvalues().size(); } inline int EdaDataFile::attributetextvalues_size() const { return _internal_attributetextvalues_size(); } inline void EdaDataFile::clear_attributetextvalues() { + ::google::protobuf::internal::TSanWrite(&_impl_); _impl_.attributetextvalues_.Clear(); } -inline std::string* EdaDataFile::add_attributetextvalues() { - std::string* _s = _internal_add_attributetextvalues(); +inline std::string* EdaDataFile::add_attributetextvalues() ABSL_ATTRIBUTE_LIFETIME_BOUND { + ::google::protobuf::internal::TSanWrite(&_impl_); + std::string* _s = _internal_mutable_attributetextvalues()->Add(); // @@protoc_insertion_point(field_add_mutable:Odb.Lib.Protobuf.EdaDataFile.attributeTextValues) return _s; } -inline const std::string& EdaDataFile::_internal_attributetextvalues(int index) const { - return _impl_.attributetextvalues_.Get(index); -} -inline const std::string& EdaDataFile::attributetextvalues(int index) const { +inline const std::string& EdaDataFile::attributetextvalues(int index) const + ABSL_ATTRIBUTE_LIFETIME_BOUND { // @@protoc_insertion_point(field_get:Odb.Lib.Protobuf.EdaDataFile.attributeTextValues) - return _internal_attributetextvalues(index); + return _internal_attributetextvalues().Get(index); } -inline std::string* EdaDataFile::mutable_attributetextvalues(int index) { +inline std::string* EdaDataFile::mutable_attributetextvalues(int index) + ABSL_ATTRIBUTE_LIFETIME_BOUND { // @@protoc_insertion_point(field_mutable:Odb.Lib.Protobuf.EdaDataFile.attributeTextValues) - return _impl_.attributetextvalues_.Mutable(index); -} -inline void EdaDataFile::set_attributetextvalues(int index, const std::string& value) { - _impl_.attributetextvalues_.Mutable(index)->assign(value); - // @@protoc_insertion_point(field_set:Odb.Lib.Protobuf.EdaDataFile.attributeTextValues) + return _internal_mutable_attributetextvalues()->Mutable(index); } -inline void EdaDataFile::set_attributetextvalues(int index, std::string&& value) { - _impl_.attributetextvalues_.Mutable(index)->assign(std::move(value)); +template +inline void EdaDataFile::set_attributetextvalues(int index, Arg_&& value, Args_... args) { + ::google::protobuf::internal::AssignToString( + *_internal_mutable_attributetextvalues()->Mutable(index), + std::forward(value), args... ); // @@protoc_insertion_point(field_set:Odb.Lib.Protobuf.EdaDataFile.attributeTextValues) } -inline void EdaDataFile::set_attributetextvalues(int index, const char* value) { - GOOGLE_DCHECK(value != nullptr); - _impl_.attributetextvalues_.Mutable(index)->assign(value); - // @@protoc_insertion_point(field_set_char:Odb.Lib.Protobuf.EdaDataFile.attributeTextValues) -} -inline void EdaDataFile::set_attributetextvalues(int index, const char* value, size_t size) { - _impl_.attributetextvalues_.Mutable(index)->assign( - reinterpret_cast(value), size); - // @@protoc_insertion_point(field_set_pointer:Odb.Lib.Protobuf.EdaDataFile.attributeTextValues) -} -inline std::string* EdaDataFile::_internal_add_attributetextvalues() { - return _impl_.attributetextvalues_.Add(); -} -inline void EdaDataFile::add_attributetextvalues(const std::string& value) { - _impl_.attributetextvalues_.Add()->assign(value); - // @@protoc_insertion_point(field_add:Odb.Lib.Protobuf.EdaDataFile.attributeTextValues) -} -inline void EdaDataFile::add_attributetextvalues(std::string&& value) { - _impl_.attributetextvalues_.Add(std::move(value)); +template +inline void EdaDataFile::add_attributetextvalues(Arg_&& value, Args_... args) { + ::google::protobuf::internal::TSanWrite(&_impl_); + ::google::protobuf::internal::AddToRepeatedPtrField(*_internal_mutable_attributetextvalues(), + std::forward(value), + args... ); // @@protoc_insertion_point(field_add:Odb.Lib.Protobuf.EdaDataFile.attributeTextValues) } -inline void EdaDataFile::add_attributetextvalues(const char* value) { - GOOGLE_DCHECK(value != nullptr); - _impl_.attributetextvalues_.Add()->assign(value); - // @@protoc_insertion_point(field_add_char:Odb.Lib.Protobuf.EdaDataFile.attributeTextValues) +inline const ::google::protobuf::RepeatedPtrField& +EdaDataFile::attributetextvalues() const ABSL_ATTRIBUTE_LIFETIME_BOUND { + // @@protoc_insertion_point(field_list:Odb.Lib.Protobuf.EdaDataFile.attributeTextValues) + return _internal_attributetextvalues(); } -inline void EdaDataFile::add_attributetextvalues(const char* value, size_t size) { - _impl_.attributetextvalues_.Add()->assign(reinterpret_cast(value), size); - // @@protoc_insertion_point(field_add_pointer:Odb.Lib.Protobuf.EdaDataFile.attributeTextValues) +inline ::google::protobuf::RepeatedPtrField* +EdaDataFile::mutable_attributetextvalues() ABSL_ATTRIBUTE_LIFETIME_BOUND { + // @@protoc_insertion_point(field_mutable_list:Odb.Lib.Protobuf.EdaDataFile.attributeTextValues) + ::google::protobuf::internal::TSanWrite(&_impl_); + return _internal_mutable_attributetextvalues(); } -inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField& -EdaDataFile::attributetextvalues() const { - // @@protoc_insertion_point(field_list:Odb.Lib.Protobuf.EdaDataFile.attributeTextValues) +inline const ::google::protobuf::RepeatedPtrField& +EdaDataFile::_internal_attributetextvalues() const { + ::google::protobuf::internal::TSanRead(&_impl_); return _impl_.attributetextvalues_; } -inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField* -EdaDataFile::mutable_attributetextvalues() { - // @@protoc_insertion_point(field_mutable_list:Odb.Lib.Protobuf.EdaDataFile.attributeTextValues) +inline ::google::protobuf::RepeatedPtrField* +EdaDataFile::_internal_mutable_attributetextvalues() { + ::google::protobuf::internal::TSanRead(&_impl_); return &_impl_.attributetextvalues_; } // repeated .Odb.Lib.Protobuf.EdaDataFile.NetRecord netRecords = 7; inline int EdaDataFile::_internal_netrecords_size() const { - return _impl_.netrecords_.size(); + return _internal_netrecords().size(); } inline int EdaDataFile::netrecords_size() const { return _internal_netrecords_size(); } inline void EdaDataFile::clear_netrecords() { + ::google::protobuf::internal::TSanWrite(&_impl_); _impl_.netrecords_.Clear(); } -inline ::Odb::Lib::Protobuf::EdaDataFile_NetRecord* EdaDataFile::mutable_netrecords(int index) { +inline ::Odb::Lib::Protobuf::EdaDataFile_NetRecord* EdaDataFile::mutable_netrecords(int index) + ABSL_ATTRIBUTE_LIFETIME_BOUND { // @@protoc_insertion_point(field_mutable:Odb.Lib.Protobuf.EdaDataFile.netRecords) - return _impl_.netrecords_.Mutable(index); + return _internal_mutable_netrecords()->Mutable(index); } -inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::Odb::Lib::Protobuf::EdaDataFile_NetRecord >* -EdaDataFile::mutable_netrecords() { +inline ::google::protobuf::RepeatedPtrField<::Odb::Lib::Protobuf::EdaDataFile_NetRecord>* EdaDataFile::mutable_netrecords() + ABSL_ATTRIBUTE_LIFETIME_BOUND { // @@protoc_insertion_point(field_mutable_list:Odb.Lib.Protobuf.EdaDataFile.netRecords) - return &_impl_.netrecords_; + ::google::protobuf::internal::TSanWrite(&_impl_); + return _internal_mutable_netrecords(); } -inline const ::Odb::Lib::Protobuf::EdaDataFile_NetRecord& EdaDataFile::_internal_netrecords(int index) const { - return _impl_.netrecords_.Get(index); -} -inline const ::Odb::Lib::Protobuf::EdaDataFile_NetRecord& EdaDataFile::netrecords(int index) const { +inline const ::Odb::Lib::Protobuf::EdaDataFile_NetRecord& EdaDataFile::netrecords(int index) const + ABSL_ATTRIBUTE_LIFETIME_BOUND { // @@protoc_insertion_point(field_get:Odb.Lib.Protobuf.EdaDataFile.netRecords) - return _internal_netrecords(index); -} -inline ::Odb::Lib::Protobuf::EdaDataFile_NetRecord* EdaDataFile::_internal_add_netrecords() { - return _impl_.netrecords_.Add(); + return _internal_netrecords().Get(index); } -inline ::Odb::Lib::Protobuf::EdaDataFile_NetRecord* EdaDataFile::add_netrecords() { - ::Odb::Lib::Protobuf::EdaDataFile_NetRecord* _add = _internal_add_netrecords(); +inline ::Odb::Lib::Protobuf::EdaDataFile_NetRecord* EdaDataFile::add_netrecords() ABSL_ATTRIBUTE_LIFETIME_BOUND { + ::google::protobuf::internal::TSanWrite(&_impl_); + ::Odb::Lib::Protobuf::EdaDataFile_NetRecord* _add = _internal_mutable_netrecords()->Add(); // @@protoc_insertion_point(field_add:Odb.Lib.Protobuf.EdaDataFile.netRecords) return _add; } -inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::Odb::Lib::Protobuf::EdaDataFile_NetRecord >& -EdaDataFile::netrecords() const { +inline const ::google::protobuf::RepeatedPtrField<::Odb::Lib::Protobuf::EdaDataFile_NetRecord>& EdaDataFile::netrecords() const + ABSL_ATTRIBUTE_LIFETIME_BOUND { // @@protoc_insertion_point(field_list:Odb.Lib.Protobuf.EdaDataFile.netRecords) + return _internal_netrecords(); +} +inline const ::google::protobuf::RepeatedPtrField<::Odb::Lib::Protobuf::EdaDataFile_NetRecord>& +EdaDataFile::_internal_netrecords() const { + ::google::protobuf::internal::TSanRead(&_impl_); return _impl_.netrecords_; } +inline ::google::protobuf::RepeatedPtrField<::Odb::Lib::Protobuf::EdaDataFile_NetRecord>* +EdaDataFile::_internal_mutable_netrecords() { + ::google::protobuf::internal::TSanRead(&_impl_); + return &_impl_.netrecords_; +} // map netRecordsByName = 8; inline int EdaDataFile::_internal_netrecordsbyname_size() const { - return _impl_.netrecordsbyname_.size(); + return _internal_netrecordsbyname().size(); } inline int EdaDataFile::netrecordsbyname_size() const { return _internal_netrecordsbyname_size(); } inline void EdaDataFile::clear_netrecordsbyname() { + ::google::protobuf::internal::TSanWrite(&_impl_); _impl_.netrecordsbyname_.Clear(); } -inline const ::PROTOBUF_NAMESPACE_ID::Map< std::string, ::Odb::Lib::Protobuf::EdaDataFile_NetRecord >& -EdaDataFile::_internal_netrecordsbyname() const { +inline const ::google::protobuf::Map& EdaDataFile::_internal_netrecordsbyname() const { + ::google::protobuf::internal::TSanRead(&_impl_); return _impl_.netrecordsbyname_.GetMap(); } -inline const ::PROTOBUF_NAMESPACE_ID::Map< std::string, ::Odb::Lib::Protobuf::EdaDataFile_NetRecord >& -EdaDataFile::netrecordsbyname() const { +inline const ::google::protobuf::Map& EdaDataFile::netrecordsbyname() const ABSL_ATTRIBUTE_LIFETIME_BOUND { // @@protoc_insertion_point(field_map:Odb.Lib.Protobuf.EdaDataFile.netRecordsByName) return _internal_netrecordsbyname(); } -inline ::PROTOBUF_NAMESPACE_ID::Map< std::string, ::Odb::Lib::Protobuf::EdaDataFile_NetRecord >* -EdaDataFile::_internal_mutable_netrecordsbyname() { +inline ::google::protobuf::Map* EdaDataFile::_internal_mutable_netrecordsbyname() { + ::google::protobuf::internal::TSanWrite(&_impl_); return _impl_.netrecordsbyname_.MutableMap(); } -inline ::PROTOBUF_NAMESPACE_ID::Map< std::string, ::Odb::Lib::Protobuf::EdaDataFile_NetRecord >* -EdaDataFile::mutable_netrecordsbyname() { +inline ::google::protobuf::Map* EdaDataFile::mutable_netrecordsbyname() ABSL_ATTRIBUTE_LIFETIME_BOUND { // @@protoc_insertion_point(field_mutable_map:Odb.Lib.Protobuf.EdaDataFile.netRecordsByName) return _internal_mutable_netrecordsbyname(); } // repeated .Odb.Lib.Protobuf.EdaDataFile.PackageRecord packageRecords = 9; inline int EdaDataFile::_internal_packagerecords_size() const { - return _impl_.packagerecords_.size(); + return _internal_packagerecords().size(); } inline int EdaDataFile::packagerecords_size() const { return _internal_packagerecords_size(); } inline void EdaDataFile::clear_packagerecords() { + ::google::protobuf::internal::TSanWrite(&_impl_); _impl_.packagerecords_.Clear(); } -inline ::Odb::Lib::Protobuf::EdaDataFile_PackageRecord* EdaDataFile::mutable_packagerecords(int index) { +inline ::Odb::Lib::Protobuf::EdaDataFile_PackageRecord* EdaDataFile::mutable_packagerecords(int index) + ABSL_ATTRIBUTE_LIFETIME_BOUND { // @@protoc_insertion_point(field_mutable:Odb.Lib.Protobuf.EdaDataFile.packageRecords) - return _impl_.packagerecords_.Mutable(index); + return _internal_mutable_packagerecords()->Mutable(index); } -inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::Odb::Lib::Protobuf::EdaDataFile_PackageRecord >* -EdaDataFile::mutable_packagerecords() { +inline ::google::protobuf::RepeatedPtrField<::Odb::Lib::Protobuf::EdaDataFile_PackageRecord>* EdaDataFile::mutable_packagerecords() + ABSL_ATTRIBUTE_LIFETIME_BOUND { // @@protoc_insertion_point(field_mutable_list:Odb.Lib.Protobuf.EdaDataFile.packageRecords) - return &_impl_.packagerecords_; + ::google::protobuf::internal::TSanWrite(&_impl_); + return _internal_mutable_packagerecords(); } -inline const ::Odb::Lib::Protobuf::EdaDataFile_PackageRecord& EdaDataFile::_internal_packagerecords(int index) const { - return _impl_.packagerecords_.Get(index); -} -inline const ::Odb::Lib::Protobuf::EdaDataFile_PackageRecord& EdaDataFile::packagerecords(int index) const { +inline const ::Odb::Lib::Protobuf::EdaDataFile_PackageRecord& EdaDataFile::packagerecords(int index) const + ABSL_ATTRIBUTE_LIFETIME_BOUND { // @@protoc_insertion_point(field_get:Odb.Lib.Protobuf.EdaDataFile.packageRecords) - return _internal_packagerecords(index); -} -inline ::Odb::Lib::Protobuf::EdaDataFile_PackageRecord* EdaDataFile::_internal_add_packagerecords() { - return _impl_.packagerecords_.Add(); + return _internal_packagerecords().Get(index); } -inline ::Odb::Lib::Protobuf::EdaDataFile_PackageRecord* EdaDataFile::add_packagerecords() { - ::Odb::Lib::Protobuf::EdaDataFile_PackageRecord* _add = _internal_add_packagerecords(); +inline ::Odb::Lib::Protobuf::EdaDataFile_PackageRecord* EdaDataFile::add_packagerecords() ABSL_ATTRIBUTE_LIFETIME_BOUND { + ::google::protobuf::internal::TSanWrite(&_impl_); + ::Odb::Lib::Protobuf::EdaDataFile_PackageRecord* _add = _internal_mutable_packagerecords()->Add(); // @@protoc_insertion_point(field_add:Odb.Lib.Protobuf.EdaDataFile.packageRecords) return _add; } -inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::Odb::Lib::Protobuf::EdaDataFile_PackageRecord >& -EdaDataFile::packagerecords() const { +inline const ::google::protobuf::RepeatedPtrField<::Odb::Lib::Protobuf::EdaDataFile_PackageRecord>& EdaDataFile::packagerecords() const + ABSL_ATTRIBUTE_LIFETIME_BOUND { // @@protoc_insertion_point(field_list:Odb.Lib.Protobuf.EdaDataFile.packageRecords) + return _internal_packagerecords(); +} +inline const ::google::protobuf::RepeatedPtrField<::Odb::Lib::Protobuf::EdaDataFile_PackageRecord>& +EdaDataFile::_internal_packagerecords() const { + ::google::protobuf::internal::TSanRead(&_impl_); return _impl_.packagerecords_; } +inline ::google::protobuf::RepeatedPtrField<::Odb::Lib::Protobuf::EdaDataFile_PackageRecord>* +EdaDataFile::_internal_mutable_packagerecords() { + ::google::protobuf::internal::TSanRead(&_impl_); + return &_impl_.packagerecords_; +} // map packageRecordsByName = 10; inline int EdaDataFile::_internal_packagerecordsbyname_size() const { - return _impl_.packagerecordsbyname_.size(); + return _internal_packagerecordsbyname().size(); } inline int EdaDataFile::packagerecordsbyname_size() const { return _internal_packagerecordsbyname_size(); } inline void EdaDataFile::clear_packagerecordsbyname() { + ::google::protobuf::internal::TSanWrite(&_impl_); _impl_.packagerecordsbyname_.Clear(); } -inline const ::PROTOBUF_NAMESPACE_ID::Map< std::string, ::Odb::Lib::Protobuf::EdaDataFile_PackageRecord >& -EdaDataFile::_internal_packagerecordsbyname() const { +inline const ::google::protobuf::Map& EdaDataFile::_internal_packagerecordsbyname() const { + ::google::protobuf::internal::TSanRead(&_impl_); return _impl_.packagerecordsbyname_.GetMap(); } -inline const ::PROTOBUF_NAMESPACE_ID::Map< std::string, ::Odb::Lib::Protobuf::EdaDataFile_PackageRecord >& -EdaDataFile::packagerecordsbyname() const { +inline const ::google::protobuf::Map& EdaDataFile::packagerecordsbyname() const ABSL_ATTRIBUTE_LIFETIME_BOUND { // @@protoc_insertion_point(field_map:Odb.Lib.Protobuf.EdaDataFile.packageRecordsByName) return _internal_packagerecordsbyname(); } -inline ::PROTOBUF_NAMESPACE_ID::Map< std::string, ::Odb::Lib::Protobuf::EdaDataFile_PackageRecord >* -EdaDataFile::_internal_mutable_packagerecordsbyname() { +inline ::google::protobuf::Map* EdaDataFile::_internal_mutable_packagerecordsbyname() { + ::google::protobuf::internal::TSanWrite(&_impl_); return _impl_.packagerecordsbyname_.MutableMap(); } -inline ::PROTOBUF_NAMESPACE_ID::Map< std::string, ::Odb::Lib::Protobuf::EdaDataFile_PackageRecord >* -EdaDataFile::mutable_packagerecordsbyname() { +inline ::google::protobuf::Map* EdaDataFile::mutable_packagerecordsbyname() ABSL_ATTRIBUTE_LIFETIME_BOUND { // @@protoc_insertion_point(field_mutable_map:Odb.Lib.Protobuf.EdaDataFile.packageRecordsByName) return _internal_mutable_packagerecordsbyname(); } // repeated .Odb.Lib.Protobuf.PropertyRecord propertyRecords = 11; inline int EdaDataFile::_internal_propertyrecords_size() const { - return _impl_.propertyrecords_.size(); + return _internal_propertyrecords().size(); } inline int EdaDataFile::propertyrecords_size() const { return _internal_propertyrecords_size(); } -inline ::Odb::Lib::Protobuf::PropertyRecord* EdaDataFile::mutable_propertyrecords(int index) { +inline ::Odb::Lib::Protobuf::PropertyRecord* EdaDataFile::mutable_propertyrecords(int index) + ABSL_ATTRIBUTE_LIFETIME_BOUND { // @@protoc_insertion_point(field_mutable:Odb.Lib.Protobuf.EdaDataFile.propertyRecords) - return _impl_.propertyrecords_.Mutable(index); + return _internal_mutable_propertyrecords()->Mutable(index); } -inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::Odb::Lib::Protobuf::PropertyRecord >* -EdaDataFile::mutable_propertyrecords() { +inline ::google::protobuf::RepeatedPtrField<::Odb::Lib::Protobuf::PropertyRecord>* EdaDataFile::mutable_propertyrecords() + ABSL_ATTRIBUTE_LIFETIME_BOUND { // @@protoc_insertion_point(field_mutable_list:Odb.Lib.Protobuf.EdaDataFile.propertyRecords) - return &_impl_.propertyrecords_; + ::google::protobuf::internal::TSanWrite(&_impl_); + return _internal_mutable_propertyrecords(); } -inline const ::Odb::Lib::Protobuf::PropertyRecord& EdaDataFile::_internal_propertyrecords(int index) const { - return _impl_.propertyrecords_.Get(index); -} -inline const ::Odb::Lib::Protobuf::PropertyRecord& EdaDataFile::propertyrecords(int index) const { +inline const ::Odb::Lib::Protobuf::PropertyRecord& EdaDataFile::propertyrecords(int index) const + ABSL_ATTRIBUTE_LIFETIME_BOUND { // @@protoc_insertion_point(field_get:Odb.Lib.Protobuf.EdaDataFile.propertyRecords) - return _internal_propertyrecords(index); -} -inline ::Odb::Lib::Protobuf::PropertyRecord* EdaDataFile::_internal_add_propertyrecords() { - return _impl_.propertyrecords_.Add(); + return _internal_propertyrecords().Get(index); } -inline ::Odb::Lib::Protobuf::PropertyRecord* EdaDataFile::add_propertyrecords() { - ::Odb::Lib::Protobuf::PropertyRecord* _add = _internal_add_propertyrecords(); +inline ::Odb::Lib::Protobuf::PropertyRecord* EdaDataFile::add_propertyrecords() ABSL_ATTRIBUTE_LIFETIME_BOUND { + ::google::protobuf::internal::TSanWrite(&_impl_); + ::Odb::Lib::Protobuf::PropertyRecord* _add = _internal_mutable_propertyrecords()->Add(); // @@protoc_insertion_point(field_add:Odb.Lib.Protobuf.EdaDataFile.propertyRecords) return _add; } -inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::Odb::Lib::Protobuf::PropertyRecord >& -EdaDataFile::propertyrecords() const { +inline const ::google::protobuf::RepeatedPtrField<::Odb::Lib::Protobuf::PropertyRecord>& EdaDataFile::propertyrecords() const + ABSL_ATTRIBUTE_LIFETIME_BOUND { // @@protoc_insertion_point(field_list:Odb.Lib.Protobuf.EdaDataFile.propertyRecords) + return _internal_propertyrecords(); +} +inline const ::google::protobuf::RepeatedPtrField<::Odb::Lib::Protobuf::PropertyRecord>& +EdaDataFile::_internal_propertyrecords() const { + ::google::protobuf::internal::TSanRead(&_impl_); return _impl_.propertyrecords_; } +inline ::google::protobuf::RepeatedPtrField<::Odb::Lib::Protobuf::PropertyRecord>* +EdaDataFile::_internal_mutable_propertyrecords() { + ::google::protobuf::internal::TSanRead(&_impl_); + return &_impl_.propertyrecords_; +} // repeated .Odb.Lib.Protobuf.EdaDataFile.FeatureGroupRecord featureGroupRecords = 12; inline int EdaDataFile::_internal_featuregrouprecords_size() const { - return _impl_.featuregrouprecords_.size(); + return _internal_featuregrouprecords().size(); } inline int EdaDataFile::featuregrouprecords_size() const { return _internal_featuregrouprecords_size(); } inline void EdaDataFile::clear_featuregrouprecords() { + ::google::protobuf::internal::TSanWrite(&_impl_); _impl_.featuregrouprecords_.Clear(); } -inline ::Odb::Lib::Protobuf::EdaDataFile_FeatureGroupRecord* EdaDataFile::mutable_featuregrouprecords(int index) { +inline ::Odb::Lib::Protobuf::EdaDataFile_FeatureGroupRecord* EdaDataFile::mutable_featuregrouprecords(int index) + ABSL_ATTRIBUTE_LIFETIME_BOUND { // @@protoc_insertion_point(field_mutable:Odb.Lib.Protobuf.EdaDataFile.featureGroupRecords) - return _impl_.featuregrouprecords_.Mutable(index); + return _internal_mutable_featuregrouprecords()->Mutable(index); } -inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::Odb::Lib::Protobuf::EdaDataFile_FeatureGroupRecord >* -EdaDataFile::mutable_featuregrouprecords() { +inline ::google::protobuf::RepeatedPtrField<::Odb::Lib::Protobuf::EdaDataFile_FeatureGroupRecord>* EdaDataFile::mutable_featuregrouprecords() + ABSL_ATTRIBUTE_LIFETIME_BOUND { // @@protoc_insertion_point(field_mutable_list:Odb.Lib.Protobuf.EdaDataFile.featureGroupRecords) - return &_impl_.featuregrouprecords_; + ::google::protobuf::internal::TSanWrite(&_impl_); + return _internal_mutable_featuregrouprecords(); } -inline const ::Odb::Lib::Protobuf::EdaDataFile_FeatureGroupRecord& EdaDataFile::_internal_featuregrouprecords(int index) const { - return _impl_.featuregrouprecords_.Get(index); -} -inline const ::Odb::Lib::Protobuf::EdaDataFile_FeatureGroupRecord& EdaDataFile::featuregrouprecords(int index) const { +inline const ::Odb::Lib::Protobuf::EdaDataFile_FeatureGroupRecord& EdaDataFile::featuregrouprecords(int index) const + ABSL_ATTRIBUTE_LIFETIME_BOUND { // @@protoc_insertion_point(field_get:Odb.Lib.Protobuf.EdaDataFile.featureGroupRecords) - return _internal_featuregrouprecords(index); -} -inline ::Odb::Lib::Protobuf::EdaDataFile_FeatureGroupRecord* EdaDataFile::_internal_add_featuregrouprecords() { - return _impl_.featuregrouprecords_.Add(); + return _internal_featuregrouprecords().Get(index); } -inline ::Odb::Lib::Protobuf::EdaDataFile_FeatureGroupRecord* EdaDataFile::add_featuregrouprecords() { - ::Odb::Lib::Protobuf::EdaDataFile_FeatureGroupRecord* _add = _internal_add_featuregrouprecords(); +inline ::Odb::Lib::Protobuf::EdaDataFile_FeatureGroupRecord* EdaDataFile::add_featuregrouprecords() ABSL_ATTRIBUTE_LIFETIME_BOUND { + ::google::protobuf::internal::TSanWrite(&_impl_); + ::Odb::Lib::Protobuf::EdaDataFile_FeatureGroupRecord* _add = _internal_mutable_featuregrouprecords()->Add(); // @@protoc_insertion_point(field_add:Odb.Lib.Protobuf.EdaDataFile.featureGroupRecords) return _add; } -inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::Odb::Lib::Protobuf::EdaDataFile_FeatureGroupRecord >& -EdaDataFile::featuregrouprecords() const { +inline const ::google::protobuf::RepeatedPtrField<::Odb::Lib::Protobuf::EdaDataFile_FeatureGroupRecord>& EdaDataFile::featuregrouprecords() const + ABSL_ATTRIBUTE_LIFETIME_BOUND { // @@protoc_insertion_point(field_list:Odb.Lib.Protobuf.EdaDataFile.featureGroupRecords) + return _internal_featuregrouprecords(); +} +inline const ::google::protobuf::RepeatedPtrField<::Odb::Lib::Protobuf::EdaDataFile_FeatureGroupRecord>& +EdaDataFile::_internal_featuregrouprecords() const { + ::google::protobuf::internal::TSanRead(&_impl_); return _impl_.featuregrouprecords_; } +inline ::google::protobuf::RepeatedPtrField<::Odb::Lib::Protobuf::EdaDataFile_FeatureGroupRecord>* +EdaDataFile::_internal_mutable_featuregrouprecords() { + ::google::protobuf::internal::TSanRead(&_impl_); + return &_impl_.featuregrouprecords_; +} #ifdef __GNUC__ - #pragma GCC diagnostic pop +#pragma GCC diagnostic pop #endif // __GNUC__ -// ------------------------------------------------------------------- - -// ------------------------------------------------------------------- - -// ------------------------------------------------------------------- - -// ------------------------------------------------------------------- - -// ------------------------------------------------------------------- - -// ------------------------------------------------------------------- - -// ------------------------------------------------------------------- - -// ------------------------------------------------------------------- - -// ------------------------------------------------------------------- - -// ------------------------------------------------------------------- - -// ------------------------------------------------------------------- - -// ------------------------------------------------------------------- - // @@protoc_insertion_point(namespace_scope) - } // namespace Protobuf } // namespace Lib } // namespace Odb -PROTOBUF_NAMESPACE_OPEN -template <> struct is_proto_enum< ::Odb::Lib::Protobuf::EdaDataFile_FeatureIdRecord_Type> : ::std::true_type {}; +namespace google { +namespace protobuf { + +template <> +struct is_proto_enum<::Odb::Lib::Protobuf::EdaDataFile_FeatureIdRecord_Type> : std::true_type {}; template <> -inline const EnumDescriptor* GetEnumDescriptor< ::Odb::Lib::Protobuf::EdaDataFile_FeatureIdRecord_Type>() { +inline const EnumDescriptor* GetEnumDescriptor<::Odb::Lib::Protobuf::EdaDataFile_FeatureIdRecord_Type>() { return ::Odb::Lib::Protobuf::EdaDataFile_FeatureIdRecord_Type_descriptor(); } -template <> struct is_proto_enum< ::Odb::Lib::Protobuf::EdaDataFile_NetRecord_SubnetRecord_Type> : ::std::true_type {}; template <> -inline const EnumDescriptor* GetEnumDescriptor< ::Odb::Lib::Protobuf::EdaDataFile_NetRecord_SubnetRecord_Type>() { +struct is_proto_enum<::Odb::Lib::Protobuf::EdaDataFile_NetRecord_SubnetRecord_Type> : std::true_type {}; +template <> +inline const EnumDescriptor* GetEnumDescriptor<::Odb::Lib::Protobuf::EdaDataFile_NetRecord_SubnetRecord_Type>() { return ::Odb::Lib::Protobuf::EdaDataFile_NetRecord_SubnetRecord_Type_descriptor(); } -template <> struct is_proto_enum< ::Odb::Lib::Protobuf::EdaDataFile_NetRecord_SubnetRecord_FillType> : ::std::true_type {}; template <> -inline const EnumDescriptor* GetEnumDescriptor< ::Odb::Lib::Protobuf::EdaDataFile_NetRecord_SubnetRecord_FillType>() { +struct is_proto_enum<::Odb::Lib::Protobuf::EdaDataFile_NetRecord_SubnetRecord_FillType> : std::true_type {}; +template <> +inline const EnumDescriptor* GetEnumDescriptor<::Odb::Lib::Protobuf::EdaDataFile_NetRecord_SubnetRecord_FillType>() { return ::Odb::Lib::Protobuf::EdaDataFile_NetRecord_SubnetRecord_FillType_descriptor(); } -template <> struct is_proto_enum< ::Odb::Lib::Protobuf::EdaDataFile_NetRecord_SubnetRecord_CutoutType> : ::std::true_type {}; template <> -inline const EnumDescriptor* GetEnumDescriptor< ::Odb::Lib::Protobuf::EdaDataFile_NetRecord_SubnetRecord_CutoutType>() { +struct is_proto_enum<::Odb::Lib::Protobuf::EdaDataFile_NetRecord_SubnetRecord_CutoutType> : std::true_type {}; +template <> +inline const EnumDescriptor* GetEnumDescriptor<::Odb::Lib::Protobuf::EdaDataFile_NetRecord_SubnetRecord_CutoutType>() { return ::Odb::Lib::Protobuf::EdaDataFile_NetRecord_SubnetRecord_CutoutType_descriptor(); } -template <> struct is_proto_enum< ::Odb::Lib::Protobuf::EdaDataFile_PackageRecord_OutlineRecord_Type> : ::std::true_type {}; template <> -inline const EnumDescriptor* GetEnumDescriptor< ::Odb::Lib::Protobuf::EdaDataFile_PackageRecord_OutlineRecord_Type>() { +struct is_proto_enum<::Odb::Lib::Protobuf::EdaDataFile_PackageRecord_OutlineRecord_Type> : std::true_type {}; +template <> +inline const EnumDescriptor* GetEnumDescriptor<::Odb::Lib::Protobuf::EdaDataFile_PackageRecord_OutlineRecord_Type>() { return ::Odb::Lib::Protobuf::EdaDataFile_PackageRecord_OutlineRecord_Type_descriptor(); } -template <> struct is_proto_enum< ::Odb::Lib::Protobuf::EdaDataFile_PackageRecord_PinRecord_Type> : ::std::true_type {}; template <> -inline const EnumDescriptor* GetEnumDescriptor< ::Odb::Lib::Protobuf::EdaDataFile_PackageRecord_PinRecord_Type>() { +struct is_proto_enum<::Odb::Lib::Protobuf::EdaDataFile_PackageRecord_PinRecord_Type> : std::true_type {}; +template <> +inline const EnumDescriptor* GetEnumDescriptor<::Odb::Lib::Protobuf::EdaDataFile_PackageRecord_PinRecord_Type>() { return ::Odb::Lib::Protobuf::EdaDataFile_PackageRecord_PinRecord_Type_descriptor(); } -template <> struct is_proto_enum< ::Odb::Lib::Protobuf::EdaDataFile_PackageRecord_PinRecord_ElectricalType> : ::std::true_type {}; template <> -inline const EnumDescriptor* GetEnumDescriptor< ::Odb::Lib::Protobuf::EdaDataFile_PackageRecord_PinRecord_ElectricalType>() { +struct is_proto_enum<::Odb::Lib::Protobuf::EdaDataFile_PackageRecord_PinRecord_ElectricalType> : std::true_type {}; +template <> +inline const EnumDescriptor* GetEnumDescriptor<::Odb::Lib::Protobuf::EdaDataFile_PackageRecord_PinRecord_ElectricalType>() { return ::Odb::Lib::Protobuf::EdaDataFile_PackageRecord_PinRecord_ElectricalType_descriptor(); } -template <> struct is_proto_enum< ::Odb::Lib::Protobuf::EdaDataFile_PackageRecord_PinRecord_MountType> : ::std::true_type {}; template <> -inline const EnumDescriptor* GetEnumDescriptor< ::Odb::Lib::Protobuf::EdaDataFile_PackageRecord_PinRecord_MountType>() { +struct is_proto_enum<::Odb::Lib::Protobuf::EdaDataFile_PackageRecord_PinRecord_MountType> : std::true_type {}; +template <> +inline const EnumDescriptor* GetEnumDescriptor<::Odb::Lib::Protobuf::EdaDataFile_PackageRecord_PinRecord_MountType>() { return ::Odb::Lib::Protobuf::EdaDataFile_PackageRecord_PinRecord_MountType_descriptor(); } -PROTOBUF_NAMESPACE_CLOSE +} // namespace protobuf +} // namespace google // @@protoc_insertion_point(global_scope) -#include -#endif // GOOGLE_PROTOBUF_INCLUDED_GOOGLE_PROTOBUF_INCLUDED_edadatafile_2eproto +#include "google/protobuf/port_undef.inc" + +#endif // edadatafile_2eproto_2epb_2eh diff --git a/OdbDesignLib/ProtoBuf/enums.pb.cc b/OdbDesignLib/ProtoBuf/enums.pb.cc index 33db87b1..4b0ea7ac 100644 --- a/OdbDesignLib/ProtoBuf/enums.pb.cc +++ b/OdbDesignLib/ProtoBuf/enums.pb.cc @@ -1,25 +1,29 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE // source: enums.proto +// Protobuf C++ Version: 5.29.2 #include "enums.pb.h" #include - -#include -#include -#include -#include -#include -#include -#include +#include +#include "google/protobuf/io/coded_stream.h" +#include "google/protobuf/generated_message_tctable_impl.h" +#include "google/protobuf/extension_set.h" +#include "google/protobuf/generated_message_util.h" +#include "google/protobuf/wire_format_lite.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) -#include +// Must be included last. +#include "google/protobuf/port_def.inc" PROTOBUF_PRAGMA_INIT_SEG - -namespace _pb = ::PROTOBUF_NAMESPACE_ID; -namespace _pbi = _pb::internal; - +namespace _pb = ::google::protobuf; +namespace _pbi = ::google::protobuf::internal; +namespace _fl = ::google::protobuf::internal::field_layout; namespace Odb { namespace Lib { namespace Protobuf { @@ -27,102 +31,87 @@ namespace Protobuf { } // namespace Lib } // namespace Odb static const ::_pb::EnumDescriptor* file_level_enum_descriptors_enums_2eproto[4]; -static constexpr ::_pb::ServiceDescriptor const** file_level_service_descriptors_enums_2eproto = nullptr; -const uint32_t TableStruct_enums_2eproto::offsets[1] = {}; +static constexpr const ::_pb::ServiceDescriptor** + file_level_service_descriptors_enums_2eproto = nullptr; +const ::uint32_t TableStruct_enums_2eproto::offsets[1] = {}; static constexpr ::_pbi::MigrationSchema* schemas = nullptr; static constexpr ::_pb::Message* const* file_default_instances = nullptr; - -const char descriptor_table_protodef_enums_2eproto[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = - "\n\013enums.proto\022\020Odb.Lib.Protobuf*,\n\tBoard" - "Side\022\n\n\006BsNone\020\000\022\007\n\003Top\020\001\022\n\n\006Bottom\020\002*\"\n" - "\tLineShape\022\n\n\006Square\020\000\022\t\n\005Round\020\001*&\n\010Pol" - "arity\022\014\n\010Positive\020\000\022\014\n\010Negative\020\001*.\n\010Uni" - "tType\022\010\n\004None\020\000\022\n\n\006Metric\020\001\022\014\n\010Imperial\020" - "\002b\006proto3" - ; -static ::_pbi::once_flag descriptor_table_enums_2eproto_once; -const ::_pbi::DescriptorTable descriptor_table_enums_2eproto = { - false, false, 209, descriptor_table_protodef_enums_2eproto, +const char descriptor_table_protodef_enums_2eproto[] ABSL_ATTRIBUTE_SECTION_VARIABLE( + protodesc_cold) = { + "\n\013enums.proto\022\020Odb.Lib.Protobuf*,\n\tBoard" + "Side\022\n\n\006BsNone\020\000\022\007\n\003Top\020\001\022\n\n\006Bottom\020\002*\"\n" + "\tLineShape\022\n\n\006Square\020\000\022\t\n\005Round\020\001*&\n\010Pol" + "arity\022\014\n\010Positive\020\000\022\014\n\010Negative\020\001*.\n\010Uni" + "tType\022\010\n\004None\020\000\022\n\n\006Metric\020\001\022\014\n\010Imperial\020" + "\002b\006proto3" +}; +static ::absl::once_flag descriptor_table_enums_2eproto_once; +PROTOBUF_CONSTINIT const ::_pbi::DescriptorTable descriptor_table_enums_2eproto = { + false, + false, + 209, + descriptor_table_protodef_enums_2eproto, "enums.proto", - &descriptor_table_enums_2eproto_once, nullptr, 0, 0, - schemas, file_default_instances, TableStruct_enums_2eproto::offsets, - nullptr, file_level_enum_descriptors_enums_2eproto, + &descriptor_table_enums_2eproto_once, + nullptr, + 0, + 0, + schemas, + file_default_instances, + TableStruct_enums_2eproto::offsets, + file_level_enum_descriptors_enums_2eproto, file_level_service_descriptors_enums_2eproto, }; -PROTOBUF_ATTRIBUTE_WEAK const ::_pbi::DescriptorTable* descriptor_table_enums_2eproto_getter() { - return &descriptor_table_enums_2eproto; -} - -// Force running AddDescriptors() at dynamic initialization time. -PROTOBUF_ATTRIBUTE_INIT_PRIORITY2 static ::_pbi::AddDescriptorsRunner dynamic_init_dummy_enums_2eproto(&descriptor_table_enums_2eproto); namespace Odb { namespace Lib { namespace Protobuf { -const ::PROTOBUF_NAMESPACE_ID::EnumDescriptor* BoardSide_descriptor() { - ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(&descriptor_table_enums_2eproto); +const ::google::protobuf::EnumDescriptor* BoardSide_descriptor() { + ::google::protobuf::internal::AssignDescriptors(&descriptor_table_enums_2eproto); return file_level_enum_descriptors_enums_2eproto[0]; } +PROTOBUF_CONSTINIT const uint32_t BoardSide_internal_data_[] = { + 196608u, 0u, }; bool BoardSide_IsValid(int value) { - switch (value) { - case 0: - case 1: - case 2: - return true; - default: - return false; - } + return 0 <= value && value <= 2; } - -const ::PROTOBUF_NAMESPACE_ID::EnumDescriptor* LineShape_descriptor() { - ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(&descriptor_table_enums_2eproto); +const ::google::protobuf::EnumDescriptor* LineShape_descriptor() { + ::google::protobuf::internal::AssignDescriptors(&descriptor_table_enums_2eproto); return file_level_enum_descriptors_enums_2eproto[1]; } +PROTOBUF_CONSTINIT const uint32_t LineShape_internal_data_[] = { + 131072u, 0u, }; bool LineShape_IsValid(int value) { - switch (value) { - case 0: - case 1: - return true; - default: - return false; - } + return 0 <= value && value <= 1; } - -const ::PROTOBUF_NAMESPACE_ID::EnumDescriptor* Polarity_descriptor() { - ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(&descriptor_table_enums_2eproto); +const ::google::protobuf::EnumDescriptor* Polarity_descriptor() { + ::google::protobuf::internal::AssignDescriptors(&descriptor_table_enums_2eproto); return file_level_enum_descriptors_enums_2eproto[2]; } +PROTOBUF_CONSTINIT const uint32_t Polarity_internal_data_[] = { + 131072u, 0u, }; bool Polarity_IsValid(int value) { - switch (value) { - case 0: - case 1: - return true; - default: - return false; - } + return 0 <= value && value <= 1; } - -const ::PROTOBUF_NAMESPACE_ID::EnumDescriptor* UnitType_descriptor() { - ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(&descriptor_table_enums_2eproto); +const ::google::protobuf::EnumDescriptor* UnitType_descriptor() { + ::google::protobuf::internal::AssignDescriptors(&descriptor_table_enums_2eproto); return file_level_enum_descriptors_enums_2eproto[3]; } +PROTOBUF_CONSTINIT const uint32_t UnitType_internal_data_[] = { + 196608u, 0u, }; bool UnitType_IsValid(int value) { - switch (value) { - case 0: - case 1: - case 2: - return true; - default: - return false; - } + return 0 <= value && value <= 2; } - - // @@protoc_insertion_point(namespace_scope) } // namespace Protobuf } // namespace Lib } // namespace Odb -PROTOBUF_NAMESPACE_OPEN -PROTOBUF_NAMESPACE_CLOSE - +namespace google { +namespace protobuf { +} // namespace protobuf +} // namespace google // @@protoc_insertion_point(global_scope) -#include +PROTOBUF_ATTRIBUTE_INIT_PRIORITY2 static ::std::false_type + _static_init2_ PROTOBUF_UNUSED = + (::_pbi::AddDescriptors(&descriptor_table_enums_2eproto), + ::std::false_type{}); +#include "google/protobuf/port_undef.inc" diff --git a/OdbDesignLib/ProtoBuf/enums.pb.h b/OdbDesignLib/ProtoBuf/enums.pb.h index 7e4f73a8..4467d12b 100644 --- a/OdbDesignLib/ProtoBuf/enums.pb.h +++ b/OdbDesignLib/ProtoBuf/enums.pb.h @@ -1,204 +1,256 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE // source: enums.proto +// Protobuf C++ Version: 5.29.2 -#ifndef GOOGLE_PROTOBUF_INCLUDED_enums_2eproto -#define GOOGLE_PROTOBUF_INCLUDED_enums_2eproto +#ifndef enums_2eproto_2epb_2eh +#define enums_2eproto_2epb_2eh #include #include +#include +#include -#include -#if PROTOBUF_VERSION < 3021000 -#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. +#include "google/protobuf/runtime_version.h" +#if PROTOBUF_VERSION != 5029002 +#error "Protobuf C++ gencode is built with an incompatible version of" +#error "Protobuf C++ headers/runtime. See" +#error "https://protobuf.dev/support/cross-version-runtime-guarantee/#cpp" #endif -#if 3021012 < 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 -#include -#include -#include -#include -#include -#include -#include // IWYU pragma: export -#include // IWYU pragma: export -#include +#include "google/protobuf/io/coded_stream.h" +#include "google/protobuf/arena.h" +#include "google/protobuf/arenastring.h" +#include "google/protobuf/generated_message_tctable_decl.h" +#include "google/protobuf/generated_message_util.h" +#include "google/protobuf/metadata_lite.h" +#include "google/protobuf/generated_message_reflection.h" +#include "google/protobuf/repeated_field.h" // IWYU pragma: export +#include "google/protobuf/extension_set.h" // IWYU pragma: export +#include "google/protobuf/generated_enum_reflection.h" // @@protoc_insertion_point(includes) -#include + +// Must be included last. +#include "google/protobuf/port_def.inc" + #define PROTOBUF_INTERNAL_EXPORT_enums_2eproto ODBDESIGN_EXPORT -PROTOBUF_NAMESPACE_OPEN + +namespace google { +namespace protobuf { namespace internal { -class AnyMetadata; +template +::absl::string_view GetAnyMessageName(); } // namespace internal -PROTOBUF_NAMESPACE_CLOSE +} // namespace protobuf +} // namespace google // Internal implementation detail -- do not use these members. struct ODBDESIGN_EXPORT TableStruct_enums_2eproto { - static const uint32_t offsets[]; + static const ::uint32_t offsets[]; }; -ODBDESIGN_EXPORT extern const ::PROTOBUF_NAMESPACE_ID::internal::DescriptorTable descriptor_table_enums_2eproto; -PROTOBUF_NAMESPACE_OPEN -PROTOBUF_NAMESPACE_CLOSE +ODBDESIGN_EXPORT extern const ::google::protobuf::internal::DescriptorTable + descriptor_table_enums_2eproto; +namespace google { +namespace protobuf { +} // namespace protobuf +} // namespace google + namespace Odb { namespace Lib { namespace Protobuf { - enum BoardSide : int { BsNone = 0, Top = 1, Bottom = 2, - BoardSide_INT_MIN_SENTINEL_DO_NOT_USE_ = std::numeric_limits::min(), - BoardSide_INT_MAX_SENTINEL_DO_NOT_USE_ = std::numeric_limits::max() + BoardSide_INT_MIN_SENTINEL_DO_NOT_USE_ = + std::numeric_limits<::int32_t>::min(), + BoardSide_INT_MAX_SENTINEL_DO_NOT_USE_ = + std::numeric_limits<::int32_t>::max(), }; + ODBDESIGN_EXPORT bool BoardSide_IsValid(int value); -constexpr BoardSide BoardSide_MIN = BsNone; -constexpr BoardSide BoardSide_MAX = Bottom; -constexpr int BoardSide_ARRAYSIZE = BoardSide_MAX + 1; - -ODBDESIGN_EXPORT const ::PROTOBUF_NAMESPACE_ID::EnumDescriptor* BoardSide_descriptor(); -template -inline const std::string& BoardSide_Name(T enum_t_value) { - static_assert(::std::is_same::value || - ::std::is_integral::value, - "Incorrect type passed to function BoardSide_Name."); - return ::PROTOBUF_NAMESPACE_ID::internal::NameOfEnum( - BoardSide_descriptor(), enum_t_value); -} -inline bool BoardSide_Parse( - ::PROTOBUF_NAMESPACE_ID::ConstStringParam name, BoardSide* value) { - return ::PROTOBUF_NAMESPACE_ID::internal::ParseNamedEnum( - BoardSide_descriptor(), name, value); +ODBDESIGN_EXPORT extern const uint32_t BoardSide_internal_data_[]; +constexpr BoardSide BoardSide_MIN = static_cast(0); +constexpr BoardSide BoardSide_MAX = static_cast(2); +constexpr int BoardSide_ARRAYSIZE = 2 + 1; +ODBDESIGN_EXPORT const ::google::protobuf::EnumDescriptor* +BoardSide_descriptor(); +template +const std::string& BoardSide_Name(T value) { + static_assert(std::is_same::value || + std::is_integral::value, + "Incorrect type passed to BoardSide_Name()."); + return BoardSide_Name(static_cast(value)); +} +template <> +inline const std::string& BoardSide_Name(BoardSide value) { + return ::google::protobuf::internal::NameOfDenseEnum( + static_cast(value)); +} +inline bool BoardSide_Parse(absl::string_view name, BoardSide* value) { + return ::google::protobuf::internal::ParseNamedEnum( + BoardSide_descriptor(), name, value); } enum LineShape : int { Square = 0, Round = 1, - LineShape_INT_MIN_SENTINEL_DO_NOT_USE_ = std::numeric_limits::min(), - LineShape_INT_MAX_SENTINEL_DO_NOT_USE_ = std::numeric_limits::max() + LineShape_INT_MIN_SENTINEL_DO_NOT_USE_ = + std::numeric_limits<::int32_t>::min(), + LineShape_INT_MAX_SENTINEL_DO_NOT_USE_ = + std::numeric_limits<::int32_t>::max(), }; + ODBDESIGN_EXPORT bool LineShape_IsValid(int value); -constexpr LineShape LineShape_MIN = Square; -constexpr LineShape LineShape_MAX = Round; -constexpr int LineShape_ARRAYSIZE = LineShape_MAX + 1; - -ODBDESIGN_EXPORT const ::PROTOBUF_NAMESPACE_ID::EnumDescriptor* LineShape_descriptor(); -template -inline const std::string& LineShape_Name(T enum_t_value) { - static_assert(::std::is_same::value || - ::std::is_integral::value, - "Incorrect type passed to function LineShape_Name."); - return ::PROTOBUF_NAMESPACE_ID::internal::NameOfEnum( - LineShape_descriptor(), enum_t_value); -} -inline bool LineShape_Parse( - ::PROTOBUF_NAMESPACE_ID::ConstStringParam name, LineShape* value) { - return ::PROTOBUF_NAMESPACE_ID::internal::ParseNamedEnum( - LineShape_descriptor(), name, value); +ODBDESIGN_EXPORT extern const uint32_t LineShape_internal_data_[]; +constexpr LineShape LineShape_MIN = static_cast(0); +constexpr LineShape LineShape_MAX = static_cast(1); +constexpr int LineShape_ARRAYSIZE = 1 + 1; +ODBDESIGN_EXPORT const ::google::protobuf::EnumDescriptor* +LineShape_descriptor(); +template +const std::string& LineShape_Name(T value) { + static_assert(std::is_same::value || + std::is_integral::value, + "Incorrect type passed to LineShape_Name()."); + return LineShape_Name(static_cast(value)); +} +template <> +inline const std::string& LineShape_Name(LineShape value) { + return ::google::protobuf::internal::NameOfDenseEnum( + static_cast(value)); +} +inline bool LineShape_Parse(absl::string_view name, LineShape* value) { + return ::google::protobuf::internal::ParseNamedEnum( + LineShape_descriptor(), name, value); } enum Polarity : int { Positive = 0, Negative = 1, - Polarity_INT_MIN_SENTINEL_DO_NOT_USE_ = std::numeric_limits::min(), - Polarity_INT_MAX_SENTINEL_DO_NOT_USE_ = std::numeric_limits::max() + Polarity_INT_MIN_SENTINEL_DO_NOT_USE_ = + std::numeric_limits<::int32_t>::min(), + Polarity_INT_MAX_SENTINEL_DO_NOT_USE_ = + std::numeric_limits<::int32_t>::max(), }; + ODBDESIGN_EXPORT bool Polarity_IsValid(int value); -constexpr Polarity Polarity_MIN = Positive; -constexpr Polarity Polarity_MAX = Negative; -constexpr int Polarity_ARRAYSIZE = Polarity_MAX + 1; - -ODBDESIGN_EXPORT const ::PROTOBUF_NAMESPACE_ID::EnumDescriptor* Polarity_descriptor(); -template -inline const std::string& Polarity_Name(T enum_t_value) { - static_assert(::std::is_same::value || - ::std::is_integral::value, - "Incorrect type passed to function Polarity_Name."); - return ::PROTOBUF_NAMESPACE_ID::internal::NameOfEnum( - Polarity_descriptor(), enum_t_value); -} -inline bool Polarity_Parse( - ::PROTOBUF_NAMESPACE_ID::ConstStringParam name, Polarity* value) { - return ::PROTOBUF_NAMESPACE_ID::internal::ParseNamedEnum( - Polarity_descriptor(), name, value); +ODBDESIGN_EXPORT extern const uint32_t Polarity_internal_data_[]; +constexpr Polarity Polarity_MIN = static_cast(0); +constexpr Polarity Polarity_MAX = static_cast(1); +constexpr int Polarity_ARRAYSIZE = 1 + 1; +ODBDESIGN_EXPORT const ::google::protobuf::EnumDescriptor* +Polarity_descriptor(); +template +const std::string& Polarity_Name(T value) { + static_assert(std::is_same::value || + std::is_integral::value, + "Incorrect type passed to Polarity_Name()."); + return Polarity_Name(static_cast(value)); +} +template <> +inline const std::string& Polarity_Name(Polarity value) { + return ::google::protobuf::internal::NameOfDenseEnum( + static_cast(value)); +} +inline bool Polarity_Parse(absl::string_view name, Polarity* value) { + return ::google::protobuf::internal::ParseNamedEnum( + Polarity_descriptor(), name, value); } enum UnitType : int { None = 0, Metric = 1, Imperial = 2, - UnitType_INT_MIN_SENTINEL_DO_NOT_USE_ = std::numeric_limits::min(), - UnitType_INT_MAX_SENTINEL_DO_NOT_USE_ = std::numeric_limits::max() + UnitType_INT_MIN_SENTINEL_DO_NOT_USE_ = + std::numeric_limits<::int32_t>::min(), + UnitType_INT_MAX_SENTINEL_DO_NOT_USE_ = + std::numeric_limits<::int32_t>::max(), }; + ODBDESIGN_EXPORT bool UnitType_IsValid(int value); -constexpr UnitType UnitType_MIN = None; -constexpr UnitType UnitType_MAX = Imperial; -constexpr int UnitType_ARRAYSIZE = UnitType_MAX + 1; - -ODBDESIGN_EXPORT const ::PROTOBUF_NAMESPACE_ID::EnumDescriptor* UnitType_descriptor(); -template -inline const std::string& UnitType_Name(T enum_t_value) { - static_assert(::std::is_same::value || - ::std::is_integral::value, - "Incorrect type passed to function UnitType_Name."); - return ::PROTOBUF_NAMESPACE_ID::internal::NameOfEnum( - UnitType_descriptor(), enum_t_value); -} -inline bool UnitType_Parse( - ::PROTOBUF_NAMESPACE_ID::ConstStringParam name, UnitType* value) { - return ::PROTOBUF_NAMESPACE_ID::internal::ParseNamedEnum( - UnitType_descriptor(), name, value); +ODBDESIGN_EXPORT extern const uint32_t UnitType_internal_data_[]; +constexpr UnitType UnitType_MIN = static_cast(0); +constexpr UnitType UnitType_MAX = static_cast(2); +constexpr int UnitType_ARRAYSIZE = 2 + 1; +ODBDESIGN_EXPORT const ::google::protobuf::EnumDescriptor* +UnitType_descriptor(); +template +const std::string& UnitType_Name(T value) { + static_assert(std::is_same::value || + std::is_integral::value, + "Incorrect type passed to UnitType_Name()."); + return UnitType_Name(static_cast(value)); +} +template <> +inline const std::string& UnitType_Name(UnitType value) { + return ::google::protobuf::internal::NameOfDenseEnum( + static_cast(value)); +} +inline bool UnitType_Parse(absl::string_view name, UnitType* value) { + return ::google::protobuf::internal::ParseNamedEnum( + UnitType_descriptor(), name, value); } + // =================================================================== + // =================================================================== + + // =================================================================== + #ifdef __GNUC__ - #pragma GCC diagnostic push - #pragma GCC diagnostic ignored "-Wstrict-aliasing" +#pragma GCC diagnostic push +#pragma GCC diagnostic ignored "-Wstrict-aliasing" #endif // __GNUC__ #ifdef __GNUC__ - #pragma GCC diagnostic pop +#pragma GCC diagnostic pop #endif // __GNUC__ // @@protoc_insertion_point(namespace_scope) - } // namespace Protobuf } // namespace Lib } // namespace Odb -PROTOBUF_NAMESPACE_OPEN -template <> struct is_proto_enum< ::Odb::Lib::Protobuf::BoardSide> : ::std::true_type {}; +namespace google { +namespace protobuf { + +template <> +struct is_proto_enum<::Odb::Lib::Protobuf::BoardSide> : std::true_type {}; template <> -inline const EnumDescriptor* GetEnumDescriptor< ::Odb::Lib::Protobuf::BoardSide>() { +inline const EnumDescriptor* GetEnumDescriptor<::Odb::Lib::Protobuf::BoardSide>() { return ::Odb::Lib::Protobuf::BoardSide_descriptor(); } -template <> struct is_proto_enum< ::Odb::Lib::Protobuf::LineShape> : ::std::true_type {}; template <> -inline const EnumDescriptor* GetEnumDescriptor< ::Odb::Lib::Protobuf::LineShape>() { +struct is_proto_enum<::Odb::Lib::Protobuf::LineShape> : std::true_type {}; +template <> +inline const EnumDescriptor* GetEnumDescriptor<::Odb::Lib::Protobuf::LineShape>() { return ::Odb::Lib::Protobuf::LineShape_descriptor(); } -template <> struct is_proto_enum< ::Odb::Lib::Protobuf::Polarity> : ::std::true_type {}; template <> -inline const EnumDescriptor* GetEnumDescriptor< ::Odb::Lib::Protobuf::Polarity>() { +struct is_proto_enum<::Odb::Lib::Protobuf::Polarity> : std::true_type {}; +template <> +inline const EnumDescriptor* GetEnumDescriptor<::Odb::Lib::Protobuf::Polarity>() { return ::Odb::Lib::Protobuf::Polarity_descriptor(); } -template <> struct is_proto_enum< ::Odb::Lib::Protobuf::UnitType> : ::std::true_type {}; template <> -inline const EnumDescriptor* GetEnumDescriptor< ::Odb::Lib::Protobuf::UnitType>() { +struct is_proto_enum<::Odb::Lib::Protobuf::UnitType> : std::true_type {}; +template <> +inline const EnumDescriptor* GetEnumDescriptor<::Odb::Lib::Protobuf::UnitType>() { return ::Odb::Lib::Protobuf::UnitType_descriptor(); } -PROTOBUF_NAMESPACE_CLOSE +} // namespace protobuf +} // namespace google // @@protoc_insertion_point(global_scope) -#include -#endif // GOOGLE_PROTOBUF_INCLUDED_GOOGLE_PROTOBUF_INCLUDED_enums_2eproto +#include "google/protobuf/port_undef.inc" + +#endif // enums_2eproto_2epb_2eh diff --git a/OdbDesignLib/ProtoBuf/featuresfile.pb.cc b/OdbDesignLib/ProtoBuf/featuresfile.pb.cc index ff9ab7a6..5fab2eb5 100644 --- a/OdbDesignLib/ProtoBuf/featuresfile.pb.cc +++ b/OdbDesignLib/ProtoBuf/featuresfile.pb.cc @@ -1,328 +1,386 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE // source: featuresfile.proto +// Protobuf C++ Version: 5.29.2 #include "featuresfile.pb.h" #include - -#include -#include -#include -#include -#include -#include -#include +#include +#include "google/protobuf/io/coded_stream.h" +#include "google/protobuf/generated_message_tctable_impl.h" +#include "google/protobuf/extension_set.h" +#include "google/protobuf/generated_message_util.h" +#include "google/protobuf/wire_format_lite.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) -#include +// Must be included last. +#include "google/protobuf/port_def.inc" PROTOBUF_PRAGMA_INIT_SEG - -namespace _pb = ::PROTOBUF_NAMESPACE_ID; -namespace _pbi = _pb::internal; - +namespace _pb = ::google::protobuf; +namespace _pbi = ::google::protobuf::internal; +namespace _fl = ::google::protobuf::internal::field_layout; namespace Odb { namespace Lib { namespace Protobuf { -PROTOBUF_CONSTEXPR FeaturesFile_FeatureRecord_AttributeLookupTableEntry_DoNotUse::FeaturesFile_FeatureRecord_AttributeLookupTableEntry_DoNotUse( - ::_pbi::ConstantInitialized) {} + template +PROTOBUF_CONSTEXPR FeaturesFile_FeatureRecord_AttributeLookupTableEntry_DoNotUse::FeaturesFile_FeatureRecord_AttributeLookupTableEntry_DoNotUse(::_pbi::ConstantInitialized) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : FeaturesFile_FeatureRecord_AttributeLookupTableEntry_DoNotUse::MapEntry(_class_data_.base()){} +#else // PROTOBUF_CUSTOM_VTABLE + : FeaturesFile_FeatureRecord_AttributeLookupTableEntry_DoNotUse::MapEntry() { +} +#endif // PROTOBUF_CUSTOM_VTABLE struct FeaturesFile_FeatureRecord_AttributeLookupTableEntry_DoNotUseDefaultTypeInternal { - PROTOBUF_CONSTEXPR FeaturesFile_FeatureRecord_AttributeLookupTableEntry_DoNotUseDefaultTypeInternal() - : _instance(::_pbi::ConstantInitialized{}) {} + PROTOBUF_CONSTEXPR FeaturesFile_FeatureRecord_AttributeLookupTableEntry_DoNotUseDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} ~FeaturesFile_FeatureRecord_AttributeLookupTableEntry_DoNotUseDefaultTypeInternal() {} union { FeaturesFile_FeatureRecord_AttributeLookupTableEntry_DoNotUse _instance; }; }; -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 FeaturesFile_FeatureRecord_AttributeLookupTableEntry_DoNotUseDefaultTypeInternal _FeaturesFile_FeatureRecord_AttributeLookupTableEntry_DoNotUse_default_instance_; -PROTOBUF_CONSTEXPR FeaturesFile_FeatureRecord::FeaturesFile_FeatureRecord( - ::_pbi::ConstantInitialized): _impl_{ - /*decltype(_impl_._has_bits_)*/{} - , /*decltype(_impl_._cached_size_)*/{} - , /*decltype(_impl_.contourpolygons_)*/{} - , /*decltype(_impl_.attributelookuptable_)*/{::_pbi::ConstantInitialized()} - , /*decltype(_impl_.font_)*/{&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}} - , /*decltype(_impl_.text_)*/{&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}} - , /*decltype(_impl_.value_)*/{&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}} - , /*decltype(_impl_.type_)*/0 - , /*decltype(_impl_.xs_)*/0 - , /*decltype(_impl_.ys_)*/0 - , /*decltype(_impl_.xe_)*/0 - , /*decltype(_impl_.ye_)*/0 - , /*decltype(_impl_.x_)*/0 - , /*decltype(_impl_.y_)*/0 - , /*decltype(_impl_.apt_def_)*/0 - , /*decltype(_impl_.apt_def_symbol_num_)*/0 - , /*decltype(_impl_.apt_def_resize_factor_)*/0 - , /*decltype(_impl_.xc_)*/0 - , /*decltype(_impl_.yc_)*/0 - , /*decltype(_impl_.cw_)*/false - , /*decltype(_impl_.xsize_)*/0 - , /*decltype(_impl_.ysize_)*/0 - , /*decltype(_impl_.width_factor_)*/0 - , /*decltype(_impl_.version_)*/0 - , /*decltype(_impl_.sym_num_)*/0 - , /*decltype(_impl_.polarity_)*/0 - , /*decltype(_impl_.dcode_)*/0 - , /*decltype(_impl_.atr_)*/0 - , /*decltype(_impl_.id_)*/0u - , /*decltype(_impl_.orient_def_)*/0 - , /*decltype(_impl_.orient_def_rotation_)*/0} {} -struct FeaturesFile_FeatureRecordDefaultTypeInternal { - PROTOBUF_CONSTEXPR FeaturesFile_FeatureRecordDefaultTypeInternal() - : _instance(::_pbi::ConstantInitialized{}) {} - ~FeaturesFile_FeatureRecordDefaultTypeInternal() {} - union { - FeaturesFile_FeatureRecord _instance; - }; -}; -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 FeaturesFile_FeatureRecordDefaultTypeInternal _FeaturesFile_FeatureRecord_default_instance_; -PROTOBUF_CONSTEXPR FeaturesFile_SymbolNamesByNameEntry_DoNotUse::FeaturesFile_SymbolNamesByNameEntry_DoNotUse( - ::_pbi::ConstantInitialized) {} + +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT ODBDESIGN_EXPORT + PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 FeaturesFile_FeatureRecord_AttributeLookupTableEntry_DoNotUseDefaultTypeInternal _FeaturesFile_FeatureRecord_AttributeLookupTableEntry_DoNotUse_default_instance_; + template +PROTOBUF_CONSTEXPR FeaturesFile_SymbolNamesByNameEntry_DoNotUse::FeaturesFile_SymbolNamesByNameEntry_DoNotUse(::_pbi::ConstantInitialized) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : FeaturesFile_SymbolNamesByNameEntry_DoNotUse::MapEntry(_class_data_.base()){} +#else // PROTOBUF_CUSTOM_VTABLE + : FeaturesFile_SymbolNamesByNameEntry_DoNotUse::MapEntry() { +} +#endif // PROTOBUF_CUSTOM_VTABLE struct FeaturesFile_SymbolNamesByNameEntry_DoNotUseDefaultTypeInternal { - PROTOBUF_CONSTEXPR FeaturesFile_SymbolNamesByNameEntry_DoNotUseDefaultTypeInternal() - : _instance(::_pbi::ConstantInitialized{}) {} + PROTOBUF_CONSTEXPR FeaturesFile_SymbolNamesByNameEntry_DoNotUseDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} ~FeaturesFile_SymbolNamesByNameEntry_DoNotUseDefaultTypeInternal() {} union { FeaturesFile_SymbolNamesByNameEntry_DoNotUse _instance; }; }; -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 FeaturesFile_SymbolNamesByNameEntry_DoNotUseDefaultTypeInternal _FeaturesFile_SymbolNamesByNameEntry_DoNotUse_default_instance_; -PROTOBUF_CONSTEXPR FeaturesFile::FeaturesFile( - ::_pbi::ConstantInitialized): _impl_{ - /*decltype(_impl_._has_bits_)*/{} - , /*decltype(_impl_._cached_size_)*/{} - , /*decltype(_impl_.featurerecords_)*/{} - , /*decltype(_impl_.symbolnamesbyname_)*/{::_pbi::ConstantInitialized()} - , /*decltype(_impl_.units_)*/{&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}} - , /*decltype(_impl_.path_)*/{&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}} - , /*decltype(_impl_.directory_)*/{&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}} - , /*decltype(_impl_.id_)*/0u - , /*decltype(_impl_.numfeatures_)*/0} {} + +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT ODBDESIGN_EXPORT + PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 FeaturesFile_SymbolNamesByNameEntry_DoNotUseDefaultTypeInternal _FeaturesFile_SymbolNamesByNameEntry_DoNotUse_default_instance_; + +inline constexpr FeaturesFile_FeatureRecord::Impl_::Impl_( + ::_pbi::ConstantInitialized) noexcept + : _cached_size_{0}, + contourpolygons_{}, + attributelookuptable_{}, + font_( + &::google::protobuf::internal::fixed_address_empty_string, + ::_pbi::ConstantInitialized()), + text_( + &::google::protobuf::internal::fixed_address_empty_string, + ::_pbi::ConstantInitialized()), + value_( + &::google::protobuf::internal::fixed_address_empty_string, + ::_pbi::ConstantInitialized()), + type_{static_cast< ::Odb::Lib::Protobuf::FeaturesFile_FeatureRecord_Type >(0)}, + xs_{0}, + ys_{0}, + xe_{0}, + ye_{0}, + x_{0}, + y_{0}, + apt_def_{0}, + apt_def_symbol_num_{0}, + apt_def_resize_factor_{0}, + xc_{0}, + yc_{0}, + cw_{false}, + xsize_{0}, + ysize_{0}, + width_factor_{0}, + version_{0}, + sym_num_{0}, + polarity_{static_cast< ::Odb::Lib::Protobuf::Polarity >(0)}, + dcode_{0}, + atr_{0}, + id_{0u}, + orient_def_{0}, + orient_def_rotation_{0} {} + +template +PROTOBUF_CONSTEXPR FeaturesFile_FeatureRecord::FeaturesFile_FeatureRecord(::_pbi::ConstantInitialized) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : ::google::protobuf::Message(_class_data_.base()), +#else // PROTOBUF_CUSTOM_VTABLE + : ::google::protobuf::Message(), +#endif // PROTOBUF_CUSTOM_VTABLE + _impl_(::_pbi::ConstantInitialized()) { +} +struct FeaturesFile_FeatureRecordDefaultTypeInternal { + PROTOBUF_CONSTEXPR FeaturesFile_FeatureRecordDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} + ~FeaturesFile_FeatureRecordDefaultTypeInternal() {} + union { + FeaturesFile_FeatureRecord _instance; + }; +}; + +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT ODBDESIGN_EXPORT + PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 FeaturesFile_FeatureRecordDefaultTypeInternal _FeaturesFile_FeatureRecord_default_instance_; + +inline constexpr FeaturesFile::Impl_::Impl_( + ::_pbi::ConstantInitialized) noexcept + : _cached_size_{0}, + featurerecords_{}, + symbolnamesbyname_{}, + units_( + &::google::protobuf::internal::fixed_address_empty_string, + ::_pbi::ConstantInitialized()), + path_( + &::google::protobuf::internal::fixed_address_empty_string, + ::_pbi::ConstantInitialized()), + directory_( + &::google::protobuf::internal::fixed_address_empty_string, + ::_pbi::ConstantInitialized()), + id_{0u}, + numfeatures_{0} {} + +template +PROTOBUF_CONSTEXPR FeaturesFile::FeaturesFile(::_pbi::ConstantInitialized) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : ::google::protobuf::Message(_class_data_.base()), +#else // PROTOBUF_CUSTOM_VTABLE + : ::google::protobuf::Message(), +#endif // PROTOBUF_CUSTOM_VTABLE + _impl_(::_pbi::ConstantInitialized()) { +} struct FeaturesFileDefaultTypeInternal { - PROTOBUF_CONSTEXPR FeaturesFileDefaultTypeInternal() - : _instance(::_pbi::ConstantInitialized{}) {} + PROTOBUF_CONSTEXPR FeaturesFileDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} ~FeaturesFileDefaultTypeInternal() {} union { FeaturesFile _instance; }; }; -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 FeaturesFileDefaultTypeInternal _FeaturesFile_default_instance_; + +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT ODBDESIGN_EXPORT + PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 FeaturesFileDefaultTypeInternal _FeaturesFile_default_instance_; } // namespace Protobuf } // namespace Lib } // namespace Odb -static ::_pb::Metadata file_level_metadata_featuresfile_2eproto[4]; static const ::_pb::EnumDescriptor* file_level_enum_descriptors_featuresfile_2eproto[1]; -static constexpr ::_pb::ServiceDescriptor const** file_level_service_descriptors_featuresfile_2eproto = nullptr; - -const uint32_t TableStruct_featuresfile_2eproto::offsets[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = { - PROTOBUF_FIELD_OFFSET(::Odb::Lib::Protobuf::FeaturesFile_FeatureRecord_AttributeLookupTableEntry_DoNotUse, _has_bits_), - PROTOBUF_FIELD_OFFSET(::Odb::Lib::Protobuf::FeaturesFile_FeatureRecord_AttributeLookupTableEntry_DoNotUse, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - ~0u, // no _inlined_string_donated_ - PROTOBUF_FIELD_OFFSET(::Odb::Lib::Protobuf::FeaturesFile_FeatureRecord_AttributeLookupTableEntry_DoNotUse, key_), - PROTOBUF_FIELD_OFFSET(::Odb::Lib::Protobuf::FeaturesFile_FeatureRecord_AttributeLookupTableEntry_DoNotUse, value_), - 0, - 1, - PROTOBUF_FIELD_OFFSET(::Odb::Lib::Protobuf::FeaturesFile_FeatureRecord, _impl_._has_bits_), - PROTOBUF_FIELD_OFFSET(::Odb::Lib::Protobuf::FeaturesFile_FeatureRecord, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - ~0u, // no _inlined_string_donated_ - PROTOBUF_FIELD_OFFSET(::Odb::Lib::Protobuf::FeaturesFile_FeatureRecord, _impl_.type_), - PROTOBUF_FIELD_OFFSET(::Odb::Lib::Protobuf::FeaturesFile_FeatureRecord, _impl_.xs_), - PROTOBUF_FIELD_OFFSET(::Odb::Lib::Protobuf::FeaturesFile_FeatureRecord, _impl_.ys_), - PROTOBUF_FIELD_OFFSET(::Odb::Lib::Protobuf::FeaturesFile_FeatureRecord, _impl_.xe_), - PROTOBUF_FIELD_OFFSET(::Odb::Lib::Protobuf::FeaturesFile_FeatureRecord, _impl_.ye_), - PROTOBUF_FIELD_OFFSET(::Odb::Lib::Protobuf::FeaturesFile_FeatureRecord, _impl_.x_), - PROTOBUF_FIELD_OFFSET(::Odb::Lib::Protobuf::FeaturesFile_FeatureRecord, _impl_.y_), - PROTOBUF_FIELD_OFFSET(::Odb::Lib::Protobuf::FeaturesFile_FeatureRecord, _impl_.apt_def_), - PROTOBUF_FIELD_OFFSET(::Odb::Lib::Protobuf::FeaturesFile_FeatureRecord, _impl_.apt_def_symbol_num_), - PROTOBUF_FIELD_OFFSET(::Odb::Lib::Protobuf::FeaturesFile_FeatureRecord, _impl_.apt_def_resize_factor_), - PROTOBUF_FIELD_OFFSET(::Odb::Lib::Protobuf::FeaturesFile_FeatureRecord, _impl_.xc_), - PROTOBUF_FIELD_OFFSET(::Odb::Lib::Protobuf::FeaturesFile_FeatureRecord, _impl_.yc_), - PROTOBUF_FIELD_OFFSET(::Odb::Lib::Protobuf::FeaturesFile_FeatureRecord, _impl_.cw_), - PROTOBUF_FIELD_OFFSET(::Odb::Lib::Protobuf::FeaturesFile_FeatureRecord, _impl_.font_), - PROTOBUF_FIELD_OFFSET(::Odb::Lib::Protobuf::FeaturesFile_FeatureRecord, _impl_.xsize_), - PROTOBUF_FIELD_OFFSET(::Odb::Lib::Protobuf::FeaturesFile_FeatureRecord, _impl_.ysize_), - PROTOBUF_FIELD_OFFSET(::Odb::Lib::Protobuf::FeaturesFile_FeatureRecord, _impl_.width_factor_), - PROTOBUF_FIELD_OFFSET(::Odb::Lib::Protobuf::FeaturesFile_FeatureRecord, _impl_.text_), - PROTOBUF_FIELD_OFFSET(::Odb::Lib::Protobuf::FeaturesFile_FeatureRecord, _impl_.version_), - PROTOBUF_FIELD_OFFSET(::Odb::Lib::Protobuf::FeaturesFile_FeatureRecord, _impl_.sym_num_), - PROTOBUF_FIELD_OFFSET(::Odb::Lib::Protobuf::FeaturesFile_FeatureRecord, _impl_.polarity_), - PROTOBUF_FIELD_OFFSET(::Odb::Lib::Protobuf::FeaturesFile_FeatureRecord, _impl_.dcode_), - PROTOBUF_FIELD_OFFSET(::Odb::Lib::Protobuf::FeaturesFile_FeatureRecord, _impl_.atr_), - PROTOBUF_FIELD_OFFSET(::Odb::Lib::Protobuf::FeaturesFile_FeatureRecord, _impl_.value_), - PROTOBUF_FIELD_OFFSET(::Odb::Lib::Protobuf::FeaturesFile_FeatureRecord, _impl_.id_), - PROTOBUF_FIELD_OFFSET(::Odb::Lib::Protobuf::FeaturesFile_FeatureRecord, _impl_.orient_def_), - PROTOBUF_FIELD_OFFSET(::Odb::Lib::Protobuf::FeaturesFile_FeatureRecord, _impl_.orient_def_rotation_), - PROTOBUF_FIELD_OFFSET(::Odb::Lib::Protobuf::FeaturesFile_FeatureRecord, _impl_.contourpolygons_), - PROTOBUF_FIELD_OFFSET(::Odb::Lib::Protobuf::FeaturesFile_FeatureRecord, _impl_.attributelookuptable_), - 3, - 4, - 5, - 6, - 7, - 8, - 9, - 10, - 11, - 12, - 13, - 14, - 15, - 0, - 16, - 17, - 18, - 1, - 19, - 20, - 21, - 22, - 23, - 2, - 24, - 25, - 26, - ~0u, - ~0u, - PROTOBUF_FIELD_OFFSET(::Odb::Lib::Protobuf::FeaturesFile_SymbolNamesByNameEntry_DoNotUse, _has_bits_), - PROTOBUF_FIELD_OFFSET(::Odb::Lib::Protobuf::FeaturesFile_SymbolNamesByNameEntry_DoNotUse, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - ~0u, // no _inlined_string_donated_ - PROTOBUF_FIELD_OFFSET(::Odb::Lib::Protobuf::FeaturesFile_SymbolNamesByNameEntry_DoNotUse, key_), - PROTOBUF_FIELD_OFFSET(::Odb::Lib::Protobuf::FeaturesFile_SymbolNamesByNameEntry_DoNotUse, value_), - 0, - 1, - PROTOBUF_FIELD_OFFSET(::Odb::Lib::Protobuf::FeaturesFile, _impl_._has_bits_), - PROTOBUF_FIELD_OFFSET(::Odb::Lib::Protobuf::FeaturesFile, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - ~0u, // no _inlined_string_donated_ - PROTOBUF_FIELD_OFFSET(::Odb::Lib::Protobuf::FeaturesFile, _impl_.units_), - PROTOBUF_FIELD_OFFSET(::Odb::Lib::Protobuf::FeaturesFile, _impl_.id_), - PROTOBUF_FIELD_OFFSET(::Odb::Lib::Protobuf::FeaturesFile, _impl_.path_), - PROTOBUF_FIELD_OFFSET(::Odb::Lib::Protobuf::FeaturesFile, _impl_.directory_), - PROTOBUF_FIELD_OFFSET(::Odb::Lib::Protobuf::FeaturesFile, _impl_.numfeatures_), - PROTOBUF_FIELD_OFFSET(::Odb::Lib::Protobuf::FeaturesFile, _impl_.featurerecords_), - PROTOBUF_FIELD_OFFSET(::Odb::Lib::Protobuf::FeaturesFile, _impl_.symbolnamesbyname_), - 0, - 3, - 1, - 2, - 4, - ~0u, - ~0u, -}; -static const ::_pbi::MigrationSchema schemas[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = { - { 0, 8, -1, sizeof(::Odb::Lib::Protobuf::FeaturesFile_FeatureRecord_AttributeLookupTableEntry_DoNotUse)}, - { 10, 45, -1, sizeof(::Odb::Lib::Protobuf::FeaturesFile_FeatureRecord)}, - { 74, 82, -1, sizeof(::Odb::Lib::Protobuf::FeaturesFile_SymbolNamesByNameEntry_DoNotUse)}, - { 84, 97, -1, sizeof(::Odb::Lib::Protobuf::FeaturesFile)}, +static constexpr const ::_pb::ServiceDescriptor** + file_level_service_descriptors_featuresfile_2eproto = nullptr; +const ::uint32_t + TableStruct_featuresfile_2eproto::offsets[] ABSL_ATTRIBUTE_SECTION_VARIABLE( + protodesc_cold) = { + PROTOBUF_FIELD_OFFSET(::Odb::Lib::Protobuf::FeaturesFile_FeatureRecord_AttributeLookupTableEntry_DoNotUse, _impl_._has_bits_), + PROTOBUF_FIELD_OFFSET(::Odb::Lib::Protobuf::FeaturesFile_FeatureRecord_AttributeLookupTableEntry_DoNotUse, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + ~0u, // no _split_ + ~0u, // no sizeof(Split) + PROTOBUF_FIELD_OFFSET(::Odb::Lib::Protobuf::FeaturesFile_FeatureRecord_AttributeLookupTableEntry_DoNotUse, _impl_.key_), + PROTOBUF_FIELD_OFFSET(::Odb::Lib::Protobuf::FeaturesFile_FeatureRecord_AttributeLookupTableEntry_DoNotUse, _impl_.value_), + 0, + 1, + PROTOBUF_FIELD_OFFSET(::Odb::Lib::Protobuf::FeaturesFile_FeatureRecord, _impl_._has_bits_), + PROTOBUF_FIELD_OFFSET(::Odb::Lib::Protobuf::FeaturesFile_FeatureRecord, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + ~0u, // no _split_ + ~0u, // no sizeof(Split) + PROTOBUF_FIELD_OFFSET(::Odb::Lib::Protobuf::FeaturesFile_FeatureRecord, _impl_.type_), + PROTOBUF_FIELD_OFFSET(::Odb::Lib::Protobuf::FeaturesFile_FeatureRecord, _impl_.xs_), + PROTOBUF_FIELD_OFFSET(::Odb::Lib::Protobuf::FeaturesFile_FeatureRecord, _impl_.ys_), + PROTOBUF_FIELD_OFFSET(::Odb::Lib::Protobuf::FeaturesFile_FeatureRecord, _impl_.xe_), + PROTOBUF_FIELD_OFFSET(::Odb::Lib::Protobuf::FeaturesFile_FeatureRecord, _impl_.ye_), + PROTOBUF_FIELD_OFFSET(::Odb::Lib::Protobuf::FeaturesFile_FeatureRecord, _impl_.x_), + PROTOBUF_FIELD_OFFSET(::Odb::Lib::Protobuf::FeaturesFile_FeatureRecord, _impl_.y_), + PROTOBUF_FIELD_OFFSET(::Odb::Lib::Protobuf::FeaturesFile_FeatureRecord, _impl_.apt_def_), + PROTOBUF_FIELD_OFFSET(::Odb::Lib::Protobuf::FeaturesFile_FeatureRecord, _impl_.apt_def_symbol_num_), + PROTOBUF_FIELD_OFFSET(::Odb::Lib::Protobuf::FeaturesFile_FeatureRecord, _impl_.apt_def_resize_factor_), + PROTOBUF_FIELD_OFFSET(::Odb::Lib::Protobuf::FeaturesFile_FeatureRecord, _impl_.xc_), + PROTOBUF_FIELD_OFFSET(::Odb::Lib::Protobuf::FeaturesFile_FeatureRecord, _impl_.yc_), + PROTOBUF_FIELD_OFFSET(::Odb::Lib::Protobuf::FeaturesFile_FeatureRecord, _impl_.cw_), + PROTOBUF_FIELD_OFFSET(::Odb::Lib::Protobuf::FeaturesFile_FeatureRecord, _impl_.font_), + PROTOBUF_FIELD_OFFSET(::Odb::Lib::Protobuf::FeaturesFile_FeatureRecord, _impl_.xsize_), + PROTOBUF_FIELD_OFFSET(::Odb::Lib::Protobuf::FeaturesFile_FeatureRecord, _impl_.ysize_), + PROTOBUF_FIELD_OFFSET(::Odb::Lib::Protobuf::FeaturesFile_FeatureRecord, _impl_.width_factor_), + PROTOBUF_FIELD_OFFSET(::Odb::Lib::Protobuf::FeaturesFile_FeatureRecord, _impl_.text_), + PROTOBUF_FIELD_OFFSET(::Odb::Lib::Protobuf::FeaturesFile_FeatureRecord, _impl_.version_), + PROTOBUF_FIELD_OFFSET(::Odb::Lib::Protobuf::FeaturesFile_FeatureRecord, _impl_.sym_num_), + PROTOBUF_FIELD_OFFSET(::Odb::Lib::Protobuf::FeaturesFile_FeatureRecord, _impl_.polarity_), + PROTOBUF_FIELD_OFFSET(::Odb::Lib::Protobuf::FeaturesFile_FeatureRecord, _impl_.dcode_), + PROTOBUF_FIELD_OFFSET(::Odb::Lib::Protobuf::FeaturesFile_FeatureRecord, _impl_.atr_), + PROTOBUF_FIELD_OFFSET(::Odb::Lib::Protobuf::FeaturesFile_FeatureRecord, _impl_.value_), + PROTOBUF_FIELD_OFFSET(::Odb::Lib::Protobuf::FeaturesFile_FeatureRecord, _impl_.id_), + PROTOBUF_FIELD_OFFSET(::Odb::Lib::Protobuf::FeaturesFile_FeatureRecord, _impl_.orient_def_), + PROTOBUF_FIELD_OFFSET(::Odb::Lib::Protobuf::FeaturesFile_FeatureRecord, _impl_.orient_def_rotation_), + PROTOBUF_FIELD_OFFSET(::Odb::Lib::Protobuf::FeaturesFile_FeatureRecord, _impl_.contourpolygons_), + PROTOBUF_FIELD_OFFSET(::Odb::Lib::Protobuf::FeaturesFile_FeatureRecord, _impl_.attributelookuptable_), + 3, + 4, + 5, + 6, + 7, + 8, + 9, + 10, + 11, + 12, + 13, + 14, + 15, + 0, + 16, + 17, + 18, + 1, + 19, + 20, + 21, + 22, + 23, + 2, + 24, + 25, + 26, + ~0u, + ~0u, + PROTOBUF_FIELD_OFFSET(::Odb::Lib::Protobuf::FeaturesFile_SymbolNamesByNameEntry_DoNotUse, _impl_._has_bits_), + PROTOBUF_FIELD_OFFSET(::Odb::Lib::Protobuf::FeaturesFile_SymbolNamesByNameEntry_DoNotUse, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + ~0u, // no _split_ + ~0u, // no sizeof(Split) + PROTOBUF_FIELD_OFFSET(::Odb::Lib::Protobuf::FeaturesFile_SymbolNamesByNameEntry_DoNotUse, _impl_.key_), + PROTOBUF_FIELD_OFFSET(::Odb::Lib::Protobuf::FeaturesFile_SymbolNamesByNameEntry_DoNotUse, _impl_.value_), + 0, + 1, + PROTOBUF_FIELD_OFFSET(::Odb::Lib::Protobuf::FeaturesFile, _impl_._has_bits_), + PROTOBUF_FIELD_OFFSET(::Odb::Lib::Protobuf::FeaturesFile, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + ~0u, // no _split_ + ~0u, // no sizeof(Split) + PROTOBUF_FIELD_OFFSET(::Odb::Lib::Protobuf::FeaturesFile, _impl_.units_), + PROTOBUF_FIELD_OFFSET(::Odb::Lib::Protobuf::FeaturesFile, _impl_.id_), + PROTOBUF_FIELD_OFFSET(::Odb::Lib::Protobuf::FeaturesFile, _impl_.path_), + PROTOBUF_FIELD_OFFSET(::Odb::Lib::Protobuf::FeaturesFile, _impl_.directory_), + PROTOBUF_FIELD_OFFSET(::Odb::Lib::Protobuf::FeaturesFile, _impl_.numfeatures_), + PROTOBUF_FIELD_OFFSET(::Odb::Lib::Protobuf::FeaturesFile, _impl_.featurerecords_), + PROTOBUF_FIELD_OFFSET(::Odb::Lib::Protobuf::FeaturesFile, _impl_.symbolnamesbyname_), + 0, + 3, + 1, + 2, + 4, + ~0u, + ~0u, }; +static const ::_pbi::MigrationSchema + schemas[] ABSL_ATTRIBUTE_SECTION_VARIABLE(protodesc_cold) = { + {0, 10, -1, sizeof(::Odb::Lib::Protobuf::FeaturesFile_FeatureRecord_AttributeLookupTableEntry_DoNotUse)}, + {12, 49, -1, sizeof(::Odb::Lib::Protobuf::FeaturesFile_FeatureRecord)}, + {78, 88, -1, sizeof(::Odb::Lib::Protobuf::FeaturesFile_SymbolNamesByNameEntry_DoNotUse)}, + {90, 105, -1, sizeof(::Odb::Lib::Protobuf::FeaturesFile)}, +}; static const ::_pb::Message* const file_default_instances[] = { - &::Odb::Lib::Protobuf::_FeaturesFile_FeatureRecord_AttributeLookupTableEntry_DoNotUse_default_instance_._instance, - &::Odb::Lib::Protobuf::_FeaturesFile_FeatureRecord_default_instance_._instance, - &::Odb::Lib::Protobuf::_FeaturesFile_SymbolNamesByNameEntry_DoNotUse_default_instance_._instance, - &::Odb::Lib::Protobuf::_FeaturesFile_default_instance_._instance, + &::Odb::Lib::Protobuf::_FeaturesFile_FeatureRecord_AttributeLookupTableEntry_DoNotUse_default_instance_._instance, + &::Odb::Lib::Protobuf::_FeaturesFile_FeatureRecord_default_instance_._instance, + &::Odb::Lib::Protobuf::_FeaturesFile_SymbolNamesByNameEntry_DoNotUse_default_instance_._instance, + &::Odb::Lib::Protobuf::_FeaturesFile_default_instance_._instance, }; - -const char descriptor_table_protodef_featuresfile_2eproto[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = - "\n\022featuresfile.proto\022\020Odb.Lib.Protobuf\032\014" - "common.proto\032\013enums.proto\032\020symbolname.pr" - "oto\"\207\r\n\014FeaturesFile\022\022\n\005units\030\001 \001(\tH\000\210\001\001" - "\022\017\n\002id\030\002 \001(\rH\001\210\001\001\022\021\n\004path\030\005 \001(\tH\002\210\001\001\022\026\n\t" - "directory\030\006 \001(\tH\003\210\001\001\022\030\n\013numFeatures\030\007 \001(" - "\005H\004\210\001\001\022D\n\016featureRecords\030\010 \003(\0132,.Odb.Lib" - ".Protobuf.FeaturesFile.FeatureRecord\022P\n\021" - "symbolNamesByName\030\t \003(\01325.Odb.Lib.Protob" - "uf.FeaturesFile.SymbolNamesByNameEntry\032\344" - "\t\n\rFeatureRecord\022D\n\004type\030\002 \001(\01621.Odb.Lib" - ".Protobuf.FeaturesFile.FeatureRecord.Typ" - "eH\000\210\001\001\022\017\n\002xs\030\003 \001(\002H\001\210\001\001\022\017\n\002ys\030\004 \001(\002H\002\210\001\001" - "\022\017\n\002xe\030\005 \001(\002H\003\210\001\001\022\017\n\002ye\030\006 \001(\002H\004\210\001\001\022\016\n\001x\030" - "\007 \001(\002H\005\210\001\001\022\016\n\001y\030\010 \001(\002H\006\210\001\001\022\024\n\007apt_def\030\t " - "\001(\005H\007\210\001\001\022\037\n\022apt_def_symbol_num\030\n \001(\005H\010\210\001" - "\001\022\"\n\025apt_def_resize_factor\030\013 \001(\002H\t\210\001\001\022\017\n" - "\002xc\030\014 \001(\002H\n\210\001\001\022\017\n\002yc\030\r \001(\002H\013\210\001\001\022\017\n\002cw\030\016 " - "\001(\010H\014\210\001\001\022\021\n\004font\030\017 \001(\tH\r\210\001\001\022\022\n\005xsize\030\020 \001" - "(\002H\016\210\001\001\022\022\n\005ysize\030\021 \001(\002H\017\210\001\001\022\031\n\014width_fac" - "tor\030\022 \001(\002H\020\210\001\001\022\021\n\004text\030\023 \001(\tH\021\210\001\001\022\024\n\007ver" - "sion\030\024 \001(\005H\022\210\001\001\022\024\n\007sym_num\030\025 \001(\005H\023\210\001\001\0221\n" - "\010polarity\030\026 \001(\0162\032.Odb.Lib.Protobuf.Polar" - "ityH\024\210\001\001\022\022\n\005dcode\030\027 \001(\005H\025\210\001\001\022\020\n\003atr\030\030 \001(" - "\005H\026\210\001\001\022\022\n\005value\030\031 \001(\tH\027\210\001\001\022\017\n\002id\030\032 \001(\rH\030" - "\210\001\001\022\027\n\norient_def\030\033 \001(\005H\031\210\001\001\022 \n\023orient_d" - "ef_rotation\030\034 \001(\002H\032\210\001\001\0229\n\017contourPolygon" - "s\030\001 \003(\0132 .Odb.Lib.Protobuf.ContourPolygo" - "n\022d\n\024attributeLookupTable\030\035 \003(\0132F.Odb.Li" - "b.Protobuf.FeaturesFile.FeatureRecord.At" - "tributeLookupTableEntry\032;\n\031AttributeLook" - "upTableEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(\t" - ":\0028\001\"F\n\004Type\022\007\n\003Arc\020\000\022\007\n\003Pad\020\001\022\013\n\007Surfac" - "e\020\002\022\013\n\007Barcode\020\003\022\010\n\004Text\020\004\022\010\n\004Line\020\005B\007\n\005" - "_typeB\005\n\003_xsB\005\n\003_ysB\005\n\003_xeB\005\n\003_yeB\004\n\002_xB" - "\004\n\002_yB\n\n\010_apt_defB\025\n\023_apt_def_symbol_num" - "B\030\n\026_apt_def_resize_factorB\005\n\003_xcB\005\n\003_yc" - "B\005\n\003_cwB\007\n\005_fontB\010\n\006_xsizeB\010\n\006_ysizeB\017\n\r" - "_width_factorB\007\n\005_textB\n\n\010_versionB\n\n\010_s" - "ym_numB\013\n\t_polarityB\010\n\006_dcodeB\006\n\004_atrB\010\n" - "\006_valueB\005\n\003_idB\r\n\013_orient_defB\026\n\024_orient" - "_def_rotation\032V\n\026SymbolNamesByNameEntry\022" - "\013\n\003key\030\001 \001(\t\022+\n\005value\030\002 \001(\0132\034.Odb.Lib.Pr" - "otobuf.SymbolName:\0028\001B\010\n\006_unitsB\005\n\003_idB\007" - "\n\005_pathB\014\n\n_directoryB\016\n\014_numFeaturesb\006p" - "roto3" - ; -static const ::_pbi::DescriptorTable* const descriptor_table_featuresfile_2eproto_deps[3] = { - &::descriptor_table_common_2eproto, - &::descriptor_table_enums_2eproto, - &::descriptor_table_symbolname_2eproto, +const char descriptor_table_protodef_featuresfile_2eproto[] ABSL_ATTRIBUTE_SECTION_VARIABLE( + protodesc_cold) = { + "\n\022featuresfile.proto\022\020Odb.Lib.Protobuf\032\014" + "common.proto\032\013enums.proto\032\020symbolname.pr" + "oto\"\207\r\n\014FeaturesFile\022\022\n\005units\030\001 \001(\tH\000\210\001\001" + "\022\017\n\002id\030\002 \001(\rH\001\210\001\001\022\021\n\004path\030\005 \001(\tH\002\210\001\001\022\026\n\t" + "directory\030\006 \001(\tH\003\210\001\001\022\030\n\013numFeatures\030\007 \001(" + "\005H\004\210\001\001\022D\n\016featureRecords\030\010 \003(\0132,.Odb.Lib" + ".Protobuf.FeaturesFile.FeatureRecord\022P\n\021" + "symbolNamesByName\030\t \003(\01325.Odb.Lib.Protob" + "uf.FeaturesFile.SymbolNamesByNameEntry\032\344" + "\t\n\rFeatureRecord\022D\n\004type\030\002 \001(\01621.Odb.Lib" + ".Protobuf.FeaturesFile.FeatureRecord.Typ" + "eH\000\210\001\001\022\017\n\002xs\030\003 \001(\002H\001\210\001\001\022\017\n\002ys\030\004 \001(\002H\002\210\001\001" + "\022\017\n\002xe\030\005 \001(\002H\003\210\001\001\022\017\n\002ye\030\006 \001(\002H\004\210\001\001\022\016\n\001x\030" + "\007 \001(\002H\005\210\001\001\022\016\n\001y\030\010 \001(\002H\006\210\001\001\022\024\n\007apt_def\030\t " + "\001(\005H\007\210\001\001\022\037\n\022apt_def_symbol_num\030\n \001(\005H\010\210\001" + "\001\022\"\n\025apt_def_resize_factor\030\013 \001(\002H\t\210\001\001\022\017\n" + "\002xc\030\014 \001(\002H\n\210\001\001\022\017\n\002yc\030\r \001(\002H\013\210\001\001\022\017\n\002cw\030\016 " + "\001(\010H\014\210\001\001\022\021\n\004font\030\017 \001(\tH\r\210\001\001\022\022\n\005xsize\030\020 \001" + "(\002H\016\210\001\001\022\022\n\005ysize\030\021 \001(\002H\017\210\001\001\022\031\n\014width_fac" + "tor\030\022 \001(\002H\020\210\001\001\022\021\n\004text\030\023 \001(\tH\021\210\001\001\022\024\n\007ver" + "sion\030\024 \001(\005H\022\210\001\001\022\024\n\007sym_num\030\025 \001(\005H\023\210\001\001\0221\n" + "\010polarity\030\026 \001(\0162\032.Odb.Lib.Protobuf.Polar" + "ityH\024\210\001\001\022\022\n\005dcode\030\027 \001(\005H\025\210\001\001\022\020\n\003atr\030\030 \001(" + "\005H\026\210\001\001\022\022\n\005value\030\031 \001(\tH\027\210\001\001\022\017\n\002id\030\032 \001(\rH\030" + "\210\001\001\022\027\n\norient_def\030\033 \001(\005H\031\210\001\001\022 \n\023orient_d" + "ef_rotation\030\034 \001(\002H\032\210\001\001\0229\n\017contourPolygon" + "s\030\001 \003(\0132 .Odb.Lib.Protobuf.ContourPolygo" + "n\022d\n\024attributeLookupTable\030\035 \003(\0132F.Odb.Li" + "b.Protobuf.FeaturesFile.FeatureRecord.At" + "tributeLookupTableEntry\032;\n\031AttributeLook" + "upTableEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(\t" + ":\0028\001\"F\n\004Type\022\007\n\003Arc\020\000\022\007\n\003Pad\020\001\022\013\n\007Surfac" + "e\020\002\022\013\n\007Barcode\020\003\022\010\n\004Text\020\004\022\010\n\004Line\020\005B\007\n\005" + "_typeB\005\n\003_xsB\005\n\003_ysB\005\n\003_xeB\005\n\003_yeB\004\n\002_xB" + "\004\n\002_yB\n\n\010_apt_defB\025\n\023_apt_def_symbol_num" + "B\030\n\026_apt_def_resize_factorB\005\n\003_xcB\005\n\003_yc" + "B\005\n\003_cwB\007\n\005_fontB\010\n\006_xsizeB\010\n\006_ysizeB\017\n\r" + "_width_factorB\007\n\005_textB\n\n\010_versionB\n\n\010_s" + "ym_numB\013\n\t_polarityB\010\n\006_dcodeB\006\n\004_atrB\010\n" + "\006_valueB\005\n\003_idB\r\n\013_orient_defB\026\n\024_orient" + "_def_rotation\032V\n\026SymbolNamesByNameEntry\022" + "\013\n\003key\030\001 \001(\t\022+\n\005value\030\002 \001(\0132\034.Odb.Lib.Pr" + "otobuf.SymbolName:\0028\001B\010\n\006_unitsB\005\n\003_idB\007" + "\n\005_pathB\014\n\n_directoryB\016\n\014_numFeaturesb\006p" + "roto3" +}; +static const ::_pbi::DescriptorTable* const descriptor_table_featuresfile_2eproto_deps[3] = + { + &::descriptor_table_common_2eproto, + &::descriptor_table_enums_2eproto, + &::descriptor_table_symbolname_2eproto, }; -static ::_pbi::once_flag descriptor_table_featuresfile_2eproto_once; -const ::_pbi::DescriptorTable descriptor_table_featuresfile_2eproto = { - false, false, 1765, descriptor_table_protodef_featuresfile_2eproto, +static ::absl::once_flag descriptor_table_featuresfile_2eproto_once; +PROTOBUF_CONSTINIT const ::_pbi::DescriptorTable descriptor_table_featuresfile_2eproto = { + false, + false, + 1765, + descriptor_table_protodef_featuresfile_2eproto, "featuresfile.proto", - &descriptor_table_featuresfile_2eproto_once, descriptor_table_featuresfile_2eproto_deps, 3, 4, - schemas, file_default_instances, TableStruct_featuresfile_2eproto::offsets, - file_level_metadata_featuresfile_2eproto, file_level_enum_descriptors_featuresfile_2eproto, + &descriptor_table_featuresfile_2eproto_once, + descriptor_table_featuresfile_2eproto_deps, + 3, + 4, + schemas, + file_default_instances, + TableStruct_featuresfile_2eproto::offsets, + file_level_enum_descriptors_featuresfile_2eproto, file_level_service_descriptors_featuresfile_2eproto, }; -PROTOBUF_ATTRIBUTE_WEAK const ::_pbi::DescriptorTable* descriptor_table_featuresfile_2eproto_getter() { - return &descriptor_table_featuresfile_2eproto; -} - -// Force running AddDescriptors() at dynamic initialization time. -PROTOBUF_ATTRIBUTE_INIT_PRIORITY2 static ::_pbi::AddDescriptorsRunner dynamic_init_dummy_featuresfile_2eproto(&descriptor_table_featuresfile_2eproto); namespace Odb { namespace Lib { namespace Protobuf { -const ::PROTOBUF_NAMESPACE_ID::EnumDescriptor* FeaturesFile_FeatureRecord_Type_descriptor() { - ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(&descriptor_table_featuresfile_2eproto); +const ::google::protobuf::EnumDescriptor* FeaturesFile_FeatureRecord_Type_descriptor() { + ::google::protobuf::internal::AssignDescriptors(&descriptor_table_featuresfile_2eproto); return file_level_enum_descriptors_featuresfile_2eproto[0]; } +PROTOBUF_CONSTINIT const uint32_t FeaturesFile_FeatureRecord_Type_internal_data_[] = { + 393216u, 0u, }; bool FeaturesFile_FeatureRecord_Type_IsValid(int value) { - switch (value) { - case 0: - case 1: - case 2: - case 3: - case 4: - case 5: - return true; - default: - return false; - } + return 0 <= value && value <= 5; } +#if (__cplusplus < 201703) && \ + (!defined(_MSC_VER) || (_MSC_VER >= 1900 && _MSC_VER < 1912)) -#if (__cplusplus < 201703) && (!defined(_MSC_VER) || (_MSC_VER >= 1900 && _MSC_VER < 1912)) constexpr FeaturesFile_FeatureRecord_Type FeaturesFile_FeatureRecord::Arc; constexpr FeaturesFile_FeatureRecord_Type FeaturesFile_FeatureRecord::Pad; constexpr FeaturesFile_FeatureRecord_Type FeaturesFile_FeatureRecord::Surface; @@ -332,272 +390,462 @@ constexpr FeaturesFile_FeatureRecord_Type FeaturesFile_FeatureRecord::Line; constexpr FeaturesFile_FeatureRecord_Type FeaturesFile_FeatureRecord::Type_MIN; constexpr FeaturesFile_FeatureRecord_Type FeaturesFile_FeatureRecord::Type_MAX; constexpr int FeaturesFile_FeatureRecord::Type_ARRAYSIZE; -#endif // (__cplusplus < 201703) && (!defined(_MSC_VER) || (_MSC_VER >= 1900 && _MSC_VER < 1912)) +#endif // (__cplusplus < 201703) && + // (!defined(_MSC_VER) || (_MSC_VER >= 1900 && _MSC_VER < 1912)) // =================================================================== -FeaturesFile_FeatureRecord_AttributeLookupTableEntry_DoNotUse::FeaturesFile_FeatureRecord_AttributeLookupTableEntry_DoNotUse() {} -FeaturesFile_FeatureRecord_AttributeLookupTableEntry_DoNotUse::FeaturesFile_FeatureRecord_AttributeLookupTableEntry_DoNotUse(::PROTOBUF_NAMESPACE_ID::Arena* arena) - : SuperType(arena) {} -void FeaturesFile_FeatureRecord_AttributeLookupTableEntry_DoNotUse::MergeFrom(const FeaturesFile_FeatureRecord_AttributeLookupTableEntry_DoNotUse& other) { - MergeFromInternal(other); -} -::PROTOBUF_NAMESPACE_ID::Metadata FeaturesFile_FeatureRecord_AttributeLookupTableEntry_DoNotUse::GetMetadata() const { - return ::_pbi::AssignDescriptors( - &descriptor_table_featuresfile_2eproto_getter, &descriptor_table_featuresfile_2eproto_once, - file_level_metadata_featuresfile_2eproto[0]); -} +#if defined(PROTOBUF_CUSTOM_VTABLE) + FeaturesFile_FeatureRecord_AttributeLookupTableEntry_DoNotUse::FeaturesFile_FeatureRecord_AttributeLookupTableEntry_DoNotUse() : SuperType(_class_data_.base()) {} + FeaturesFile_FeatureRecord_AttributeLookupTableEntry_DoNotUse::FeaturesFile_FeatureRecord_AttributeLookupTableEntry_DoNotUse(::google::protobuf::Arena* arena) + : SuperType(arena, _class_data_.base()) {} +#else // PROTOBUF_CUSTOM_VTABLE + FeaturesFile_FeatureRecord_AttributeLookupTableEntry_DoNotUse::FeaturesFile_FeatureRecord_AttributeLookupTableEntry_DoNotUse() : SuperType() {} + FeaturesFile_FeatureRecord_AttributeLookupTableEntry_DoNotUse::FeaturesFile_FeatureRecord_AttributeLookupTableEntry_DoNotUse(::google::protobuf::Arena* arena) : SuperType(arena) {} +#endif // PROTOBUF_CUSTOM_VTABLE + inline void* FeaturesFile_FeatureRecord_AttributeLookupTableEntry_DoNotUse::PlacementNew_(const void*, void* mem, + ::google::protobuf::Arena* arena) { + return ::new (mem) FeaturesFile_FeatureRecord_AttributeLookupTableEntry_DoNotUse(arena); + } + constexpr auto FeaturesFile_FeatureRecord_AttributeLookupTableEntry_DoNotUse::InternalNewImpl_() { + return ::google::protobuf::internal::MessageCreator::CopyInit(sizeof(FeaturesFile_FeatureRecord_AttributeLookupTableEntry_DoNotUse), + alignof(FeaturesFile_FeatureRecord_AttributeLookupTableEntry_DoNotUse)); + } + PROTOBUF_CONSTINIT + PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 + const ::google::protobuf::internal::ClassDataFull FeaturesFile_FeatureRecord_AttributeLookupTableEntry_DoNotUse::_class_data_ = { + ::google::protobuf::internal::ClassData{ + &_FeaturesFile_FeatureRecord_AttributeLookupTableEntry_DoNotUse_default_instance_._instance, + &_table_.header, + nullptr, // OnDemandRegisterArenaDtor + nullptr, // IsInitialized + &FeaturesFile_FeatureRecord_AttributeLookupTableEntry_DoNotUse::MergeImpl, + ::google::protobuf::Message::GetNewImpl(), + #if defined(PROTOBUF_CUSTOM_VTABLE) + &FeaturesFile_FeatureRecord_AttributeLookupTableEntry_DoNotUse::SharedDtor, + static_cast( + &FeaturesFile_FeatureRecord_AttributeLookupTableEntry_DoNotUse::ClearImpl), + ::google::protobuf::Message::ByteSizeLongImpl, ::google::protobuf::Message::_InternalSerializeImpl + , + #endif // PROTOBUF_CUSTOM_VTABLE + PROTOBUF_FIELD_OFFSET(FeaturesFile_FeatureRecord_AttributeLookupTableEntry_DoNotUse, _impl_._cached_size_), + false, + }, + &FeaturesFile_FeatureRecord_AttributeLookupTableEntry_DoNotUse::kDescriptorMethods, + &descriptor_table_featuresfile_2eproto, + nullptr, // tracker + }; + const ::google::protobuf::internal::ClassData* FeaturesFile_FeatureRecord_AttributeLookupTableEntry_DoNotUse::GetClassData() const { + ::google::protobuf::internal::PrefetchToLocalCache(&_class_data_); + ::google::protobuf::internal::PrefetchToLocalCache(_class_data_.tc_table); + return _class_data_.base(); + } +PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 +const ::_pbi::TcParseTable<1, 2, 0, 86, 2> FeaturesFile_FeatureRecord_AttributeLookupTableEntry_DoNotUse::_table_ = { + { + PROTOBUF_FIELD_OFFSET(FeaturesFile_FeatureRecord_AttributeLookupTableEntry_DoNotUse, _impl_._has_bits_), + 0, // no _extensions_ + 2, 8, // max_field_number, fast_idx_mask + offsetof(decltype(_table_), field_lookup_table), + 4294967292, // skipmap + offsetof(decltype(_table_), field_entries), + 2, // num_field_entries + 0, // num_aux_entries + offsetof(decltype(_table_), field_names), // no aux_entries + _class_data_.base(), + nullptr, // post_loop_handler + ::_pbi::TcParser::DiscardEverythingFallback, // fallback + #ifdef PROTOBUF_PREFETCH_PARSE_TABLE + ::_pbi::TcParser::GetTable<::Odb::Lib::Protobuf::FeaturesFile_FeatureRecord_AttributeLookupTableEntry_DoNotUse>(), // to_prefetch + #endif // PROTOBUF_PREFETCH_PARSE_TABLE + }, {{ + // string value = 2; + {::_pbi::TcParser::FastUS1, + {18, 63, 0, PROTOBUF_FIELD_OFFSET(FeaturesFile_FeatureRecord_AttributeLookupTableEntry_DoNotUse, _impl_.value_)}}, + // string key = 1; + {::_pbi::TcParser::FastUS1, + {10, 63, 0, PROTOBUF_FIELD_OFFSET(FeaturesFile_FeatureRecord_AttributeLookupTableEntry_DoNotUse, _impl_.key_)}}, + }}, {{ + 65535, 65535 + }}, {{ + // string key = 1; + {PROTOBUF_FIELD_OFFSET(FeaturesFile_FeatureRecord_AttributeLookupTableEntry_DoNotUse, _impl_.key_), -1, 0, + (0 | ::_fl::kFcSingular | ::_fl::kUtf8String | ::_fl::kRepAString)}, + // string value = 2; + {PROTOBUF_FIELD_OFFSET(FeaturesFile_FeatureRecord_AttributeLookupTableEntry_DoNotUse, _impl_.value_), -1, 0, + (0 | ::_fl::kFcSingular | ::_fl::kUtf8String | ::_fl::kRepAString)}, + }}, + // no aux_entries + {{ + "\105\3\5\0\0\0\0\0" + "Odb.Lib.Protobuf.FeaturesFile.FeatureRecord.AttributeLookupTableEntry" + "key" + "value" + }}, +}; // =================================================================== class FeaturesFile_FeatureRecord::_Internal { public: - using HasBits = decltype(std::declval()._impl_._has_bits_); - static void set_has_type(HasBits* has_bits) { - (*has_bits)[0] |= 8u; - } - static void set_has_xs(HasBits* has_bits) { - (*has_bits)[0] |= 16u; - } - static void set_has_ys(HasBits* has_bits) { - (*has_bits)[0] |= 32u; - } - static void set_has_xe(HasBits* has_bits) { - (*has_bits)[0] |= 64u; - } - static void set_has_ye(HasBits* has_bits) { - (*has_bits)[0] |= 128u; - } - static void set_has_x(HasBits* has_bits) { - (*has_bits)[0] |= 256u; - } - static void set_has_y(HasBits* has_bits) { - (*has_bits)[0] |= 512u; - } - static void set_has_apt_def(HasBits* has_bits) { - (*has_bits)[0] |= 1024u; - } - static void set_has_apt_def_symbol_num(HasBits* has_bits) { - (*has_bits)[0] |= 2048u; - } - static void set_has_apt_def_resize_factor(HasBits* has_bits) { - (*has_bits)[0] |= 4096u; - } - static void set_has_xc(HasBits* has_bits) { - (*has_bits)[0] |= 8192u; - } - static void set_has_yc(HasBits* has_bits) { - (*has_bits)[0] |= 16384u; - } - static void set_has_cw(HasBits* has_bits) { - (*has_bits)[0] |= 32768u; - } - static void set_has_font(HasBits* has_bits) { - (*has_bits)[0] |= 1u; - } - static void set_has_xsize(HasBits* has_bits) { - (*has_bits)[0] |= 65536u; - } - static void set_has_ysize(HasBits* has_bits) { - (*has_bits)[0] |= 131072u; - } - static void set_has_width_factor(HasBits* has_bits) { - (*has_bits)[0] |= 262144u; - } - static void set_has_text(HasBits* has_bits) { - (*has_bits)[0] |= 2u; - } - static void set_has_version(HasBits* has_bits) { - (*has_bits)[0] |= 524288u; - } - static void set_has_sym_num(HasBits* has_bits) { - (*has_bits)[0] |= 1048576u; - } - static void set_has_polarity(HasBits* has_bits) { - (*has_bits)[0] |= 2097152u; - } - static void set_has_dcode(HasBits* has_bits) { - (*has_bits)[0] |= 4194304u; - } - static void set_has_atr(HasBits* has_bits) { - (*has_bits)[0] |= 8388608u; - } - static void set_has_value(HasBits* has_bits) { - (*has_bits)[0] |= 4u; - } - static void set_has_id(HasBits* has_bits) { - (*has_bits)[0] |= 16777216u; - } - static void set_has_orient_def(HasBits* has_bits) { - (*has_bits)[0] |= 33554432u; - } - static void set_has_orient_def_rotation(HasBits* has_bits) { - (*has_bits)[0] |= 67108864u; - } + using HasBits = + decltype(std::declval()._impl_._has_bits_); + static constexpr ::int32_t kHasBitsOffset = + 8 * PROTOBUF_FIELD_OFFSET(FeaturesFile_FeatureRecord, _impl_._has_bits_); }; void FeaturesFile_FeatureRecord::clear_contourpolygons() { + ::google::protobuf::internal::TSanWrite(&_impl_); _impl_.contourpolygons_.Clear(); } -FeaturesFile_FeatureRecord::FeaturesFile_FeatureRecord(::PROTOBUF_NAMESPACE_ID::Arena* arena, - bool is_message_owned) - : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned) { - SharedCtor(arena, is_message_owned); - if (arena != nullptr && !is_message_owned) { - arena->OwnCustomDestructor(this, &FeaturesFile_FeatureRecord::ArenaDtor); - } +FeaturesFile_FeatureRecord::FeaturesFile_FeatureRecord(::google::protobuf::Arena* arena) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : ::google::protobuf::Message(arena, _class_data_.base()) { +#else // PROTOBUF_CUSTOM_VTABLE + : ::google::protobuf::Message(arena) { +#endif // PROTOBUF_CUSTOM_VTABLE + SharedCtor(arena); // @@protoc_insertion_point(arena_constructor:Odb.Lib.Protobuf.FeaturesFile.FeatureRecord) } -FeaturesFile_FeatureRecord::FeaturesFile_FeatureRecord(const FeaturesFile_FeatureRecord& from) - : ::PROTOBUF_NAMESPACE_ID::Message() { - FeaturesFile_FeatureRecord* const _this = this; (void)_this; - new (&_impl_) Impl_{ - decltype(_impl_._has_bits_){from._impl_._has_bits_} - , /*decltype(_impl_._cached_size_)*/{} - , decltype(_impl_.contourpolygons_){from._impl_.contourpolygons_} - , /*decltype(_impl_.attributelookuptable_)*/{} - , decltype(_impl_.font_){} - , decltype(_impl_.text_){} - , decltype(_impl_.value_){} - , decltype(_impl_.type_){} - , decltype(_impl_.xs_){} - , decltype(_impl_.ys_){} - , decltype(_impl_.xe_){} - , decltype(_impl_.ye_){} - , decltype(_impl_.x_){} - , decltype(_impl_.y_){} - , decltype(_impl_.apt_def_){} - , decltype(_impl_.apt_def_symbol_num_){} - , decltype(_impl_.apt_def_resize_factor_){} - , decltype(_impl_.xc_){} - , decltype(_impl_.yc_){} - , decltype(_impl_.cw_){} - , decltype(_impl_.xsize_){} - , decltype(_impl_.ysize_){} - , decltype(_impl_.width_factor_){} - , decltype(_impl_.version_){} - , decltype(_impl_.sym_num_){} - , decltype(_impl_.polarity_){} - , decltype(_impl_.dcode_){} - , decltype(_impl_.atr_){} - , decltype(_impl_.id_){} - , decltype(_impl_.orient_def_){} - , decltype(_impl_.orient_def_rotation_){}}; - - _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); - _this->_impl_.attributelookuptable_.MergeFrom(from._impl_.attributelookuptable_); - _impl_.font_.InitDefault(); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - _impl_.font_.Set("", GetArenaForAllocation()); - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (from._internal_has_font()) { - _this->_impl_.font_.Set(from._internal_font(), - _this->GetArenaForAllocation()); - } - _impl_.text_.InitDefault(); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - _impl_.text_.Set("", GetArenaForAllocation()); - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (from._internal_has_text()) { - _this->_impl_.text_.Set(from._internal_text(), - _this->GetArenaForAllocation()); - } - _impl_.value_.InitDefault(); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - _impl_.value_.Set("", GetArenaForAllocation()); - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (from._internal_has_value()) { - _this->_impl_.value_.Set(from._internal_value(), - _this->GetArenaForAllocation()); - } - ::memcpy(&_impl_.type_, &from._impl_.type_, - static_cast(reinterpret_cast(&_impl_.orient_def_rotation_) - - reinterpret_cast(&_impl_.type_)) + sizeof(_impl_.orient_def_rotation_)); +inline PROTOBUF_NDEBUG_INLINE FeaturesFile_FeatureRecord::Impl_::Impl_( + ::google::protobuf::internal::InternalVisibility visibility, ::google::protobuf::Arena* arena, + const Impl_& from, const ::Odb::Lib::Protobuf::FeaturesFile_FeatureRecord& from_msg) + : _has_bits_{from._has_bits_}, + _cached_size_{0}, + contourpolygons_{visibility, arena, from.contourpolygons_}, + attributelookuptable_{visibility, arena, from.attributelookuptable_}, + font_(arena, from.font_), + text_(arena, from.text_), + value_(arena, from.value_) {} + +FeaturesFile_FeatureRecord::FeaturesFile_FeatureRecord( + ::google::protobuf::Arena* arena, + const FeaturesFile_FeatureRecord& from) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : ::google::protobuf::Message(arena, _class_data_.base()) { +#else // PROTOBUF_CUSTOM_VTABLE + : ::google::protobuf::Message(arena) { +#endif // PROTOBUF_CUSTOM_VTABLE + FeaturesFile_FeatureRecord* const _this = this; + (void)_this; + _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( + from._internal_metadata_); + new (&_impl_) Impl_(internal_visibility(), arena, from._impl_, from); + ::memcpy(reinterpret_cast(&_impl_) + + offsetof(Impl_, type_), + reinterpret_cast(&from._impl_) + + offsetof(Impl_, type_), + offsetof(Impl_, orient_def_rotation_) - + offsetof(Impl_, type_) + + sizeof(Impl_::orient_def_rotation_)); + // @@protoc_insertion_point(copy_constructor:Odb.Lib.Protobuf.FeaturesFile.FeatureRecord) } - -inline void FeaturesFile_FeatureRecord::SharedCtor( - ::_pb::Arena* arena, bool is_message_owned) { - (void)arena; - (void)is_message_owned; - new (&_impl_) Impl_{ - decltype(_impl_._has_bits_){} - , /*decltype(_impl_._cached_size_)*/{} - , decltype(_impl_.contourpolygons_){arena} - , /*decltype(_impl_.attributelookuptable_)*/{::_pbi::ArenaInitialized(), arena} - , decltype(_impl_.font_){} - , decltype(_impl_.text_){} - , decltype(_impl_.value_){} - , decltype(_impl_.type_){0} - , decltype(_impl_.xs_){0} - , decltype(_impl_.ys_){0} - , decltype(_impl_.xe_){0} - , decltype(_impl_.ye_){0} - , decltype(_impl_.x_){0} - , decltype(_impl_.y_){0} - , decltype(_impl_.apt_def_){0} - , decltype(_impl_.apt_def_symbol_num_){0} - , decltype(_impl_.apt_def_resize_factor_){0} - , decltype(_impl_.xc_){0} - , decltype(_impl_.yc_){0} - , decltype(_impl_.cw_){false} - , decltype(_impl_.xsize_){0} - , decltype(_impl_.ysize_){0} - , decltype(_impl_.width_factor_){0} - , decltype(_impl_.version_){0} - , decltype(_impl_.sym_num_){0} - , decltype(_impl_.polarity_){0} - , decltype(_impl_.dcode_){0} - , decltype(_impl_.atr_){0} - , decltype(_impl_.id_){0u} - , decltype(_impl_.orient_def_){0} - , decltype(_impl_.orient_def_rotation_){0} - }; - _impl_.font_.InitDefault(); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - _impl_.font_.Set("", GetArenaForAllocation()); - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING - _impl_.text_.InitDefault(); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - _impl_.text_.Set("", GetArenaForAllocation()); - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING - _impl_.value_.InitDefault(); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - _impl_.value_.Set("", GetArenaForAllocation()); - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING +inline PROTOBUF_NDEBUG_INLINE FeaturesFile_FeatureRecord::Impl_::Impl_( + ::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* arena) + : _cached_size_{0}, + contourpolygons_{visibility, arena}, + attributelookuptable_{visibility, arena}, + font_(arena), + text_(arena), + value_(arena) {} + +inline void FeaturesFile_FeatureRecord::SharedCtor(::_pb::Arena* arena) { + new (&_impl_) Impl_(internal_visibility(), arena); + ::memset(reinterpret_cast(&_impl_) + + offsetof(Impl_, type_), + 0, + offsetof(Impl_, orient_def_rotation_) - + offsetof(Impl_, type_) + + sizeof(Impl_::orient_def_rotation_)); } - FeaturesFile_FeatureRecord::~FeaturesFile_FeatureRecord() { // @@protoc_insertion_point(destructor:Odb.Lib.Protobuf.FeaturesFile.FeatureRecord) - if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) { - (void)arena; - ArenaDtor(this); - return; - } - SharedDtor(); + SharedDtor(*this); } - -inline void FeaturesFile_FeatureRecord::SharedDtor() { - GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); - _impl_.contourpolygons_.~RepeatedPtrField(); - _impl_.attributelookuptable_.Destruct(); - _impl_.attributelookuptable_.~MapField(); - _impl_.font_.Destroy(); - _impl_.text_.Destroy(); - _impl_.value_.Destroy(); +inline void FeaturesFile_FeatureRecord::SharedDtor(MessageLite& self) { + FeaturesFile_FeatureRecord& this_ = static_cast(self); + this_._internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); + ABSL_DCHECK(this_.GetArena() == nullptr); + this_._impl_.font_.Destroy(); + this_._impl_.text_.Destroy(); + this_._impl_.value_.Destroy(); + this_._impl_.~Impl_(); } -void FeaturesFile_FeatureRecord::ArenaDtor(void* object) { - FeaturesFile_FeatureRecord* _this = reinterpret_cast< FeaturesFile_FeatureRecord* >(object); - _this->_impl_.attributelookuptable_.Destruct(); +inline void* FeaturesFile_FeatureRecord::PlacementNew_(const void*, void* mem, + ::google::protobuf::Arena* arena) { + return ::new (mem) FeaturesFile_FeatureRecord(arena); } -void FeaturesFile_FeatureRecord::SetCachedSize(int size) const { - _impl_._cached_size_.Set(size); +constexpr auto FeaturesFile_FeatureRecord::InternalNewImpl_() { + constexpr auto arena_bits = ::google::protobuf::internal::EncodePlacementArenaOffsets({ + PROTOBUF_FIELD_OFFSET(FeaturesFile_FeatureRecord, _impl_.contourpolygons_) + + decltype(FeaturesFile_FeatureRecord::_impl_.contourpolygons_):: + InternalGetArenaOffset( + ::google::protobuf::Message::internal_visibility()), + PROTOBUF_FIELD_OFFSET(FeaturesFile_FeatureRecord, _impl_.attributelookuptable_) + + decltype(FeaturesFile_FeatureRecord::_impl_.attributelookuptable_):: + InternalGetArenaOffset( + ::google::protobuf::Message::internal_visibility()), + PROTOBUF_FIELD_OFFSET(FeaturesFile_FeatureRecord, _impl_.attributelookuptable_) + + decltype(FeaturesFile_FeatureRecord::_impl_.attributelookuptable_):: + InternalGetArenaOffsetAlt( + ::google::protobuf::Message::internal_visibility()), + }); + if (arena_bits.has_value()) { + return ::google::protobuf::internal::MessageCreator::CopyInit( + sizeof(FeaturesFile_FeatureRecord), alignof(FeaturesFile_FeatureRecord), *arena_bits); + } else { + return ::google::protobuf::internal::MessageCreator(&FeaturesFile_FeatureRecord::PlacementNew_, + sizeof(FeaturesFile_FeatureRecord), + alignof(FeaturesFile_FeatureRecord)); + } } +PROTOBUF_CONSTINIT +PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 +const ::google::protobuf::internal::ClassDataFull FeaturesFile_FeatureRecord::_class_data_ = { + ::google::protobuf::internal::ClassData{ + &_FeaturesFile_FeatureRecord_default_instance_._instance, + &_table_.header, + nullptr, // OnDemandRegisterArenaDtor + nullptr, // IsInitialized + &FeaturesFile_FeatureRecord::MergeImpl, + ::google::protobuf::Message::GetNewImpl(), +#if defined(PROTOBUF_CUSTOM_VTABLE) + &FeaturesFile_FeatureRecord::SharedDtor, + ::google::protobuf::Message::GetClearImpl(), &FeaturesFile_FeatureRecord::ByteSizeLong, + &FeaturesFile_FeatureRecord::_InternalSerialize, +#endif // PROTOBUF_CUSTOM_VTABLE + PROTOBUF_FIELD_OFFSET(FeaturesFile_FeatureRecord, _impl_._cached_size_), + false, + }, + &FeaturesFile_FeatureRecord::kDescriptorMethods, + &descriptor_table_featuresfile_2eproto, + nullptr, // tracker +}; +const ::google::protobuf::internal::ClassData* FeaturesFile_FeatureRecord::GetClassData() const { + ::google::protobuf::internal::PrefetchToLocalCache(&_class_data_); + ::google::protobuf::internal::PrefetchToLocalCache(_class_data_.tc_table); + return _class_data_.base(); +} +PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 +const ::_pbi::TcParseTable<5, 29, 2, 109, 2> FeaturesFile_FeatureRecord::_table_ = { + { + PROTOBUF_FIELD_OFFSET(FeaturesFile_FeatureRecord, _impl_._has_bits_), + 0, // no _extensions_ + 29, 248, // max_field_number, fast_idx_mask + offsetof(decltype(_table_), field_lookup_table), + 3758096384, // skipmap + offsetof(decltype(_table_), field_entries), + 29, // num_field_entries + 2, // num_aux_entries + offsetof(decltype(_table_), aux_entries), + _class_data_.base(), + nullptr, // post_loop_handler + ::_pbi::TcParser::GenericFallback, // fallback + #ifdef PROTOBUF_PREFETCH_PARSE_TABLE + ::_pbi::TcParser::GetTable<::Odb::Lib::Protobuf::FeaturesFile_FeatureRecord>(), // to_prefetch + #endif // PROTOBUF_PREFETCH_PARSE_TABLE + }, {{ + {::_pbi::TcParser::MiniParse, {}}, + // repeated .Odb.Lib.Protobuf.ContourPolygon contourPolygons = 1; + {::_pbi::TcParser::FastMtR1, + {10, 63, 0, PROTOBUF_FIELD_OFFSET(FeaturesFile_FeatureRecord, _impl_.contourpolygons_)}}, + // optional .Odb.Lib.Protobuf.FeaturesFile.FeatureRecord.Type type = 2; + {::_pbi::TcParser::SingularVarintNoZag1<::uint32_t, offsetof(FeaturesFile_FeatureRecord, _impl_.type_), 3>(), + {16, 3, 0, PROTOBUF_FIELD_OFFSET(FeaturesFile_FeatureRecord, _impl_.type_)}}, + // optional float xs = 3; + {::_pbi::TcParser::FastF32S1, + {29, 4, 0, PROTOBUF_FIELD_OFFSET(FeaturesFile_FeatureRecord, _impl_.xs_)}}, + // optional float ys = 4; + {::_pbi::TcParser::FastF32S1, + {37, 5, 0, PROTOBUF_FIELD_OFFSET(FeaturesFile_FeatureRecord, _impl_.ys_)}}, + // optional float xe = 5; + {::_pbi::TcParser::FastF32S1, + {45, 6, 0, PROTOBUF_FIELD_OFFSET(FeaturesFile_FeatureRecord, _impl_.xe_)}}, + // optional float ye = 6; + {::_pbi::TcParser::FastF32S1, + {53, 7, 0, PROTOBUF_FIELD_OFFSET(FeaturesFile_FeatureRecord, _impl_.ye_)}}, + // optional float x = 7; + {::_pbi::TcParser::FastF32S1, + {61, 8, 0, PROTOBUF_FIELD_OFFSET(FeaturesFile_FeatureRecord, _impl_.x_)}}, + // optional float y = 8; + {::_pbi::TcParser::FastF32S1, + {69, 9, 0, PROTOBUF_FIELD_OFFSET(FeaturesFile_FeatureRecord, _impl_.y_)}}, + // optional int32 apt_def = 9; + {::_pbi::TcParser::SingularVarintNoZag1<::uint32_t, offsetof(FeaturesFile_FeatureRecord, _impl_.apt_def_), 10>(), + {72, 10, 0, PROTOBUF_FIELD_OFFSET(FeaturesFile_FeatureRecord, _impl_.apt_def_)}}, + // optional int32 apt_def_symbol_num = 10; + {::_pbi::TcParser::SingularVarintNoZag1<::uint32_t, offsetof(FeaturesFile_FeatureRecord, _impl_.apt_def_symbol_num_), 11>(), + {80, 11, 0, PROTOBUF_FIELD_OFFSET(FeaturesFile_FeatureRecord, _impl_.apt_def_symbol_num_)}}, + // optional float apt_def_resize_factor = 11; + {::_pbi::TcParser::FastF32S1, + {93, 12, 0, PROTOBUF_FIELD_OFFSET(FeaturesFile_FeatureRecord, _impl_.apt_def_resize_factor_)}}, + // optional float xc = 12; + {::_pbi::TcParser::FastF32S1, + {101, 13, 0, PROTOBUF_FIELD_OFFSET(FeaturesFile_FeatureRecord, _impl_.xc_)}}, + // optional float yc = 13; + {::_pbi::TcParser::FastF32S1, + {109, 14, 0, PROTOBUF_FIELD_OFFSET(FeaturesFile_FeatureRecord, _impl_.yc_)}}, + // optional bool cw = 14; + {::_pbi::TcParser::SingularVarintNoZag1(), + {112, 15, 0, PROTOBUF_FIELD_OFFSET(FeaturesFile_FeatureRecord, _impl_.cw_)}}, + // optional string font = 15; + {::_pbi::TcParser::FastUS1, + {122, 0, 0, PROTOBUF_FIELD_OFFSET(FeaturesFile_FeatureRecord, _impl_.font_)}}, + // optional float xsize = 16; + {::_pbi::TcParser::FastF32S2, + {389, 16, 0, PROTOBUF_FIELD_OFFSET(FeaturesFile_FeatureRecord, _impl_.xsize_)}}, + // optional float ysize = 17; + {::_pbi::TcParser::FastF32S2, + {397, 17, 0, PROTOBUF_FIELD_OFFSET(FeaturesFile_FeatureRecord, _impl_.ysize_)}}, + // optional float width_factor = 18; + {::_pbi::TcParser::FastF32S2, + {405, 18, 0, PROTOBUF_FIELD_OFFSET(FeaturesFile_FeatureRecord, _impl_.width_factor_)}}, + // optional string text = 19; + {::_pbi::TcParser::FastUS2, + {410, 1, 0, PROTOBUF_FIELD_OFFSET(FeaturesFile_FeatureRecord, _impl_.text_)}}, + // optional int32 version = 20; + {::_pbi::TcParser::FastV32S2, + {416, 19, 0, PROTOBUF_FIELD_OFFSET(FeaturesFile_FeatureRecord, _impl_.version_)}}, + // optional int32 sym_num = 21; + {::_pbi::TcParser::FastV32S2, + {424, 20, 0, PROTOBUF_FIELD_OFFSET(FeaturesFile_FeatureRecord, _impl_.sym_num_)}}, + // optional .Odb.Lib.Protobuf.Polarity polarity = 22; + {::_pbi::TcParser::FastV32S2, + {432, 21, 0, PROTOBUF_FIELD_OFFSET(FeaturesFile_FeatureRecord, _impl_.polarity_)}}, + // optional int32 dcode = 23; + {::_pbi::TcParser::FastV32S2, + {440, 22, 0, PROTOBUF_FIELD_OFFSET(FeaturesFile_FeatureRecord, _impl_.dcode_)}}, + // optional int32 atr = 24; + {::_pbi::TcParser::FastV32S2, + {448, 23, 0, PROTOBUF_FIELD_OFFSET(FeaturesFile_FeatureRecord, _impl_.atr_)}}, + // optional string value = 25; + {::_pbi::TcParser::FastUS2, + {458, 2, 0, PROTOBUF_FIELD_OFFSET(FeaturesFile_FeatureRecord, _impl_.value_)}}, + // optional uint32 id = 26; + {::_pbi::TcParser::FastV32S2, + {464, 24, 0, PROTOBUF_FIELD_OFFSET(FeaturesFile_FeatureRecord, _impl_.id_)}}, + // optional int32 orient_def = 27; + {::_pbi::TcParser::FastV32S2, + {472, 25, 0, PROTOBUF_FIELD_OFFSET(FeaturesFile_FeatureRecord, _impl_.orient_def_)}}, + // optional float orient_def_rotation = 28; + {::_pbi::TcParser::FastF32S2, + {485, 26, 0, PROTOBUF_FIELD_OFFSET(FeaturesFile_FeatureRecord, _impl_.orient_def_rotation_)}}, + {::_pbi::TcParser::MiniParse, {}}, + {::_pbi::TcParser::MiniParse, {}}, + {::_pbi::TcParser::MiniParse, {}}, + }}, {{ + 65535, 65535 + }}, {{ + // repeated .Odb.Lib.Protobuf.ContourPolygon contourPolygons = 1; + {PROTOBUF_FIELD_OFFSET(FeaturesFile_FeatureRecord, _impl_.contourpolygons_), -1, 0, + (0 | ::_fl::kFcRepeated | ::_fl::kMessage | ::_fl::kTvTable)}, + // optional .Odb.Lib.Protobuf.FeaturesFile.FeatureRecord.Type type = 2; + {PROTOBUF_FIELD_OFFSET(FeaturesFile_FeatureRecord, _impl_.type_), _Internal::kHasBitsOffset + 3, 0, + (0 | ::_fl::kFcOptional | ::_fl::kOpenEnum)}, + // optional float xs = 3; + {PROTOBUF_FIELD_OFFSET(FeaturesFile_FeatureRecord, _impl_.xs_), _Internal::kHasBitsOffset + 4, 0, + (0 | ::_fl::kFcOptional | ::_fl::kFloat)}, + // optional float ys = 4; + {PROTOBUF_FIELD_OFFSET(FeaturesFile_FeatureRecord, _impl_.ys_), _Internal::kHasBitsOffset + 5, 0, + (0 | ::_fl::kFcOptional | ::_fl::kFloat)}, + // optional float xe = 5; + {PROTOBUF_FIELD_OFFSET(FeaturesFile_FeatureRecord, _impl_.xe_), _Internal::kHasBitsOffset + 6, 0, + (0 | ::_fl::kFcOptional | ::_fl::kFloat)}, + // optional float ye = 6; + {PROTOBUF_FIELD_OFFSET(FeaturesFile_FeatureRecord, _impl_.ye_), _Internal::kHasBitsOffset + 7, 0, + (0 | ::_fl::kFcOptional | ::_fl::kFloat)}, + // optional float x = 7; + {PROTOBUF_FIELD_OFFSET(FeaturesFile_FeatureRecord, _impl_.x_), _Internal::kHasBitsOffset + 8, 0, + (0 | ::_fl::kFcOptional | ::_fl::kFloat)}, + // optional float y = 8; + {PROTOBUF_FIELD_OFFSET(FeaturesFile_FeatureRecord, _impl_.y_), _Internal::kHasBitsOffset + 9, 0, + (0 | ::_fl::kFcOptional | ::_fl::kFloat)}, + // optional int32 apt_def = 9; + {PROTOBUF_FIELD_OFFSET(FeaturesFile_FeatureRecord, _impl_.apt_def_), _Internal::kHasBitsOffset + 10, 0, + (0 | ::_fl::kFcOptional | ::_fl::kInt32)}, + // optional int32 apt_def_symbol_num = 10; + {PROTOBUF_FIELD_OFFSET(FeaturesFile_FeatureRecord, _impl_.apt_def_symbol_num_), _Internal::kHasBitsOffset + 11, 0, + (0 | ::_fl::kFcOptional | ::_fl::kInt32)}, + // optional float apt_def_resize_factor = 11; + {PROTOBUF_FIELD_OFFSET(FeaturesFile_FeatureRecord, _impl_.apt_def_resize_factor_), _Internal::kHasBitsOffset + 12, 0, + (0 | ::_fl::kFcOptional | ::_fl::kFloat)}, + // optional float xc = 12; + {PROTOBUF_FIELD_OFFSET(FeaturesFile_FeatureRecord, _impl_.xc_), _Internal::kHasBitsOffset + 13, 0, + (0 | ::_fl::kFcOptional | ::_fl::kFloat)}, + // optional float yc = 13; + {PROTOBUF_FIELD_OFFSET(FeaturesFile_FeatureRecord, _impl_.yc_), _Internal::kHasBitsOffset + 14, 0, + (0 | ::_fl::kFcOptional | ::_fl::kFloat)}, + // optional bool cw = 14; + {PROTOBUF_FIELD_OFFSET(FeaturesFile_FeatureRecord, _impl_.cw_), _Internal::kHasBitsOffset + 15, 0, + (0 | ::_fl::kFcOptional | ::_fl::kBool)}, + // optional string font = 15; + {PROTOBUF_FIELD_OFFSET(FeaturesFile_FeatureRecord, _impl_.font_), _Internal::kHasBitsOffset + 0, 0, + (0 | ::_fl::kFcOptional | ::_fl::kUtf8String | ::_fl::kRepAString)}, + // optional float xsize = 16; + {PROTOBUF_FIELD_OFFSET(FeaturesFile_FeatureRecord, _impl_.xsize_), _Internal::kHasBitsOffset + 16, 0, + (0 | ::_fl::kFcOptional | ::_fl::kFloat)}, + // optional float ysize = 17; + {PROTOBUF_FIELD_OFFSET(FeaturesFile_FeatureRecord, _impl_.ysize_), _Internal::kHasBitsOffset + 17, 0, + (0 | ::_fl::kFcOptional | ::_fl::kFloat)}, + // optional float width_factor = 18; + {PROTOBUF_FIELD_OFFSET(FeaturesFile_FeatureRecord, _impl_.width_factor_), _Internal::kHasBitsOffset + 18, 0, + (0 | ::_fl::kFcOptional | ::_fl::kFloat)}, + // optional string text = 19; + {PROTOBUF_FIELD_OFFSET(FeaturesFile_FeatureRecord, _impl_.text_), _Internal::kHasBitsOffset + 1, 0, + (0 | ::_fl::kFcOptional | ::_fl::kUtf8String | ::_fl::kRepAString)}, + // optional int32 version = 20; + {PROTOBUF_FIELD_OFFSET(FeaturesFile_FeatureRecord, _impl_.version_), _Internal::kHasBitsOffset + 19, 0, + (0 | ::_fl::kFcOptional | ::_fl::kInt32)}, + // optional int32 sym_num = 21; + {PROTOBUF_FIELD_OFFSET(FeaturesFile_FeatureRecord, _impl_.sym_num_), _Internal::kHasBitsOffset + 20, 0, + (0 | ::_fl::kFcOptional | ::_fl::kInt32)}, + // optional .Odb.Lib.Protobuf.Polarity polarity = 22; + {PROTOBUF_FIELD_OFFSET(FeaturesFile_FeatureRecord, _impl_.polarity_), _Internal::kHasBitsOffset + 21, 0, + (0 | ::_fl::kFcOptional | ::_fl::kOpenEnum)}, + // optional int32 dcode = 23; + {PROTOBUF_FIELD_OFFSET(FeaturesFile_FeatureRecord, _impl_.dcode_), _Internal::kHasBitsOffset + 22, 0, + (0 | ::_fl::kFcOptional | ::_fl::kInt32)}, + // optional int32 atr = 24; + {PROTOBUF_FIELD_OFFSET(FeaturesFile_FeatureRecord, _impl_.atr_), _Internal::kHasBitsOffset + 23, 0, + (0 | ::_fl::kFcOptional | ::_fl::kInt32)}, + // optional string value = 25; + {PROTOBUF_FIELD_OFFSET(FeaturesFile_FeatureRecord, _impl_.value_), _Internal::kHasBitsOffset + 2, 0, + (0 | ::_fl::kFcOptional | ::_fl::kUtf8String | ::_fl::kRepAString)}, + // optional uint32 id = 26; + {PROTOBUF_FIELD_OFFSET(FeaturesFile_FeatureRecord, _impl_.id_), _Internal::kHasBitsOffset + 24, 0, + (0 | ::_fl::kFcOptional | ::_fl::kUInt32)}, + // optional int32 orient_def = 27; + {PROTOBUF_FIELD_OFFSET(FeaturesFile_FeatureRecord, _impl_.orient_def_), _Internal::kHasBitsOffset + 25, 0, + (0 | ::_fl::kFcOptional | ::_fl::kInt32)}, + // optional float orient_def_rotation = 28; + {PROTOBUF_FIELD_OFFSET(FeaturesFile_FeatureRecord, _impl_.orient_def_rotation_), _Internal::kHasBitsOffset + 26, 0, + (0 | ::_fl::kFcOptional | ::_fl::kFloat)}, + // map attributeLookupTable = 29; + {PROTOBUF_FIELD_OFFSET(FeaturesFile_FeatureRecord, _impl_.attributelookuptable_), -1, 1, + (0 | ::_fl::kFcRepeated | ::_fl::kMap)}, + }}, {{ + {::_pbi::TcParser::GetTable<::Odb::Lib::Protobuf::ContourPolygon>()}, + {::_pbi::TcParser::GetMapAuxInfo< + decltype(FeaturesFile_FeatureRecord()._impl_.attributelookuptable_)>( + 1, 0, 0, 9, + 9)}, + }}, {{ + "\53\0\0\0\0\0\0\0\0\0\0\0\0\0\0\4\0\0\0\4\0\0\0\0\0\5\0\0\0\24\0\0" + "Odb.Lib.Protobuf.FeaturesFile.FeatureRecord" + "font" + "text" + "value" + "attributeLookupTable" + }}, +}; -void FeaturesFile_FeatureRecord::Clear() { +PROTOBUF_NOINLINE void FeaturesFile_FeatureRecord::Clear() { // @@protoc_insertion_point(message_clear_start:Odb.Lib.Protobuf.FeaturesFile.FeatureRecord) - uint32_t cached_has_bits = 0; + ::google::protobuf::internal::TSanWrite(&_impl_); + ::uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; @@ -616,767 +864,468 @@ void FeaturesFile_FeatureRecord::Clear() { } } if (cached_has_bits & 0x000000f8u) { - ::memset(&_impl_.type_, 0, static_cast( + ::memset(&_impl_.type_, 0, static_cast<::size_t>( reinterpret_cast(&_impl_.ye_) - reinterpret_cast(&_impl_.type_)) + sizeof(_impl_.ye_)); } if (cached_has_bits & 0x0000ff00u) { - ::memset(&_impl_.x_, 0, static_cast( + ::memset(&_impl_.x_, 0, static_cast<::size_t>( reinterpret_cast(&_impl_.cw_) - reinterpret_cast(&_impl_.x_)) + sizeof(_impl_.cw_)); } if (cached_has_bits & 0x00ff0000u) { - ::memset(&_impl_.xsize_, 0, static_cast( + ::memset(&_impl_.xsize_, 0, static_cast<::size_t>( reinterpret_cast(&_impl_.atr_) - reinterpret_cast(&_impl_.xsize_)) + sizeof(_impl_.atr_)); } if (cached_has_bits & 0x07000000u) { - ::memset(&_impl_.id_, 0, static_cast( + ::memset(&_impl_.id_, 0, static_cast<::size_t>( reinterpret_cast(&_impl_.orient_def_rotation_) - reinterpret_cast(&_impl_.id_)) + sizeof(_impl_.orient_def_rotation_)); } _impl_._has_bits_.Clear(); - _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); -} - -const char* FeaturesFile_FeatureRecord::_InternalParse(const char* ptr, ::_pbi::ParseContext* ctx) { -#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure - _Internal::HasBits has_bits{}; - while (!ctx->Done(&ptr)) { - uint32_t tag; - ptr = ::_pbi::ReadTag(ptr, &tag); - switch (tag >> 3) { - // repeated .Odb.Lib.Protobuf.ContourPolygon contourPolygons = 1; - case 1: - if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 10)) { - ptr -= 1; - do { - ptr += 1; - ptr = ctx->ParseMessage(_internal_add_contourpolygons(), ptr); - CHK_(ptr); - if (!ctx->DataAvailable(ptr)) break; - } while (::PROTOBUF_NAMESPACE_ID::internal::ExpectTag<10>(ptr)); - } else - goto handle_unusual; - continue; - // optional .Odb.Lib.Protobuf.FeaturesFile.FeatureRecord.Type type = 2; - case 2: - if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 16)) { - uint64_t val = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); - CHK_(ptr); - _internal_set_type(static_cast<::Odb::Lib::Protobuf::FeaturesFile_FeatureRecord_Type>(val)); - } else - goto handle_unusual; - continue; - // optional float xs = 3; - case 3: - if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 29)) { - _Internal::set_has_xs(&has_bits); - _impl_.xs_ = ::PROTOBUF_NAMESPACE_ID::internal::UnalignedLoad(ptr); - ptr += sizeof(float); - } else - goto handle_unusual; - continue; - // optional float ys = 4; - case 4: - if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 37)) { - _Internal::set_has_ys(&has_bits); - _impl_.ys_ = ::PROTOBUF_NAMESPACE_ID::internal::UnalignedLoad(ptr); - ptr += sizeof(float); - } else - goto handle_unusual; - continue; - // optional float xe = 5; - case 5: - if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 45)) { - _Internal::set_has_xe(&has_bits); - _impl_.xe_ = ::PROTOBUF_NAMESPACE_ID::internal::UnalignedLoad(ptr); - ptr += sizeof(float); - } else - goto handle_unusual; - continue; - // optional float ye = 6; - case 6: - if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 53)) { - _Internal::set_has_ye(&has_bits); - _impl_.ye_ = ::PROTOBUF_NAMESPACE_ID::internal::UnalignedLoad(ptr); - ptr += sizeof(float); - } else - goto handle_unusual; - continue; - // optional float x = 7; - case 7: - if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 61)) { - _Internal::set_has_x(&has_bits); - _impl_.x_ = ::PROTOBUF_NAMESPACE_ID::internal::UnalignedLoad(ptr); - ptr += sizeof(float); - } else - goto handle_unusual; - continue; - // optional float y = 8; - case 8: - if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 69)) { - _Internal::set_has_y(&has_bits); - _impl_.y_ = ::PROTOBUF_NAMESPACE_ID::internal::UnalignedLoad(ptr); - ptr += sizeof(float); - } else - goto handle_unusual; - continue; - // optional int32 apt_def = 9; - case 9: - if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 72)) { - _Internal::set_has_apt_def(&has_bits); - _impl_.apt_def_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr); - CHK_(ptr); - } else - goto handle_unusual; - continue; - // optional int32 apt_def_symbol_num = 10; - case 10: - if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 80)) { - _Internal::set_has_apt_def_symbol_num(&has_bits); - _impl_.apt_def_symbol_num_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr); - CHK_(ptr); - } else - goto handle_unusual; - continue; - // optional float apt_def_resize_factor = 11; - case 11: - if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 93)) { - _Internal::set_has_apt_def_resize_factor(&has_bits); - _impl_.apt_def_resize_factor_ = ::PROTOBUF_NAMESPACE_ID::internal::UnalignedLoad(ptr); - ptr += sizeof(float); - } else - goto handle_unusual; - continue; - // optional float xc = 12; - case 12: - if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 101)) { - _Internal::set_has_xc(&has_bits); - _impl_.xc_ = ::PROTOBUF_NAMESPACE_ID::internal::UnalignedLoad(ptr); - ptr += sizeof(float); - } else - goto handle_unusual; - continue; - // optional float yc = 13; - case 13: - if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 109)) { - _Internal::set_has_yc(&has_bits); - _impl_.yc_ = ::PROTOBUF_NAMESPACE_ID::internal::UnalignedLoad(ptr); - ptr += sizeof(float); - } else - goto handle_unusual; - continue; - // optional bool cw = 14; - case 14: - if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 112)) { - _Internal::set_has_cw(&has_bits); - _impl_.cw_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); - CHK_(ptr); - } else - goto handle_unusual; - continue; - // optional string font = 15; - case 15: - if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 122)) { - auto str = _internal_mutable_font(); - ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); - CHK_(ptr); - CHK_(::_pbi::VerifyUTF8(str, "Odb.Lib.Protobuf.FeaturesFile.FeatureRecord.font")); - } else - goto handle_unusual; - continue; - // optional float xsize = 16; - case 16: - if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 133)) { - _Internal::set_has_xsize(&has_bits); - _impl_.xsize_ = ::PROTOBUF_NAMESPACE_ID::internal::UnalignedLoad(ptr); - ptr += sizeof(float); - } else - goto handle_unusual; - continue; - // optional float ysize = 17; - case 17: - if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 141)) { - _Internal::set_has_ysize(&has_bits); - _impl_.ysize_ = ::PROTOBUF_NAMESPACE_ID::internal::UnalignedLoad(ptr); - ptr += sizeof(float); - } else - goto handle_unusual; - continue; - // optional float width_factor = 18; - case 18: - if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 149)) { - _Internal::set_has_width_factor(&has_bits); - _impl_.width_factor_ = ::PROTOBUF_NAMESPACE_ID::internal::UnalignedLoad(ptr); - ptr += sizeof(float); - } else - goto handle_unusual; - continue; - // optional string text = 19; - case 19: - if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 154)) { - auto str = _internal_mutable_text(); - ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); - CHK_(ptr); - CHK_(::_pbi::VerifyUTF8(str, "Odb.Lib.Protobuf.FeaturesFile.FeatureRecord.text")); - } else - goto handle_unusual; - continue; - // optional int32 version = 20; - case 20: - if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 160)) { - _Internal::set_has_version(&has_bits); - _impl_.version_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr); - CHK_(ptr); - } else - goto handle_unusual; - continue; - // optional int32 sym_num = 21; - case 21: - if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 168)) { - _Internal::set_has_sym_num(&has_bits); - _impl_.sym_num_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr); - CHK_(ptr); - } else - goto handle_unusual; - continue; - // optional .Odb.Lib.Protobuf.Polarity polarity = 22; - case 22: - if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 176)) { - uint64_t val = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); - CHK_(ptr); - _internal_set_polarity(static_cast<::Odb::Lib::Protobuf::Polarity>(val)); - } else - goto handle_unusual; - continue; - // optional int32 dcode = 23; - case 23: - if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 184)) { - _Internal::set_has_dcode(&has_bits); - _impl_.dcode_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr); - CHK_(ptr); - } else - goto handle_unusual; - continue; - // optional int32 atr = 24; - case 24: - if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 192)) { - _Internal::set_has_atr(&has_bits); - _impl_.atr_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr); - CHK_(ptr); - } else - goto handle_unusual; - continue; - // optional string value = 25; - case 25: - if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 202)) { - auto str = _internal_mutable_value(); - ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); - CHK_(ptr); - CHK_(::_pbi::VerifyUTF8(str, "Odb.Lib.Protobuf.FeaturesFile.FeatureRecord.value")); - } else - goto handle_unusual; - continue; - // optional uint32 id = 26; - case 26: - if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 208)) { - _Internal::set_has_id(&has_bits); - _impl_.id_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr); - CHK_(ptr); - } else - goto handle_unusual; - continue; - // optional int32 orient_def = 27; - case 27: - if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 216)) { - _Internal::set_has_orient_def(&has_bits); - _impl_.orient_def_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr); - CHK_(ptr); - } else - goto handle_unusual; - continue; - // optional float orient_def_rotation = 28; - case 28: - if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 229)) { - _Internal::set_has_orient_def_rotation(&has_bits); - _impl_.orient_def_rotation_ = ::PROTOBUF_NAMESPACE_ID::internal::UnalignedLoad(ptr); - ptr += sizeof(float); - } else - goto handle_unusual; - continue; - // map attributeLookupTable = 29; - case 29: - if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 234)) { - ptr -= 2; - do { - ptr += 2; - ptr = ctx->ParseMessage(&_impl_.attributelookuptable_, ptr); - CHK_(ptr); - if (!ctx->DataAvailable(ptr)) break; - } while (::PROTOBUF_NAMESPACE_ID::internal::ExpectTag<234>(ptr)); - } else - goto handle_unusual; - continue; - default: - goto handle_unusual; - } // switch - handle_unusual: - if ((tag == 0) || ((tag & 7) == 4)) { - CHK_(ptr); - ctx->SetLastTag(tag); - goto message_done; - } - ptr = UnknownFieldParse( - tag, - _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(), - ptr, ctx); - CHK_(ptr != nullptr); - } // while -message_done: - _impl_._has_bits_.Or(has_bits); - return ptr; -failure: - ptr = nullptr; - goto message_done; -#undef CHK_ + _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); } -uint8_t* FeaturesFile_FeatureRecord::_InternalSerialize( - uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { - // @@protoc_insertion_point(serialize_to_array_start:Odb.Lib.Protobuf.FeaturesFile.FeatureRecord) - uint32_t cached_has_bits = 0; - (void) cached_has_bits; - - // repeated .Odb.Lib.Protobuf.ContourPolygon contourPolygons = 1; - for (unsigned i = 0, - n = static_cast(this->_internal_contourpolygons_size()); i < n; i++) { - const auto& repfield = this->_internal_contourpolygons(i); - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: - InternalWriteMessage(1, repfield, repfield.GetCachedSize(), target, stream); - } - - // optional .Odb.Lib.Protobuf.FeaturesFile.FeatureRecord.Type type = 2; - if (_internal_has_type()) { - target = stream->EnsureSpace(target); - target = ::_pbi::WireFormatLite::WriteEnumToArray( - 2, this->_internal_type(), target); - } - - // optional float xs = 3; - if (_internal_has_xs()) { - target = stream->EnsureSpace(target); - target = ::_pbi::WireFormatLite::WriteFloatToArray(3, this->_internal_xs(), target); - } - - // optional float ys = 4; - if (_internal_has_ys()) { - target = stream->EnsureSpace(target); - target = ::_pbi::WireFormatLite::WriteFloatToArray(4, this->_internal_ys(), target); - } - - // optional float xe = 5; - if (_internal_has_xe()) { - target = stream->EnsureSpace(target); - target = ::_pbi::WireFormatLite::WriteFloatToArray(5, this->_internal_xe(), target); - } - - // optional float ye = 6; - if (_internal_has_ye()) { - target = stream->EnsureSpace(target); - target = ::_pbi::WireFormatLite::WriteFloatToArray(6, this->_internal_ye(), target); - } - - // optional float x = 7; - if (_internal_has_x()) { - target = stream->EnsureSpace(target); - target = ::_pbi::WireFormatLite::WriteFloatToArray(7, this->_internal_x(), target); - } - - // optional float y = 8; - if (_internal_has_y()) { - target = stream->EnsureSpace(target); - target = ::_pbi::WireFormatLite::WriteFloatToArray(8, this->_internal_y(), target); - } - - // optional int32 apt_def = 9; - if (_internal_has_apt_def()) { - target = stream->EnsureSpace(target); - target = ::_pbi::WireFormatLite::WriteInt32ToArray(9, this->_internal_apt_def(), target); - } - - // optional int32 apt_def_symbol_num = 10; - if (_internal_has_apt_def_symbol_num()) { - target = stream->EnsureSpace(target); - target = ::_pbi::WireFormatLite::WriteInt32ToArray(10, this->_internal_apt_def_symbol_num(), target); - } - - // optional float apt_def_resize_factor = 11; - if (_internal_has_apt_def_resize_factor()) { - target = stream->EnsureSpace(target); - target = ::_pbi::WireFormatLite::WriteFloatToArray(11, this->_internal_apt_def_resize_factor(), target); - } - - // optional float xc = 12; - if (_internal_has_xc()) { - target = stream->EnsureSpace(target); - target = ::_pbi::WireFormatLite::WriteFloatToArray(12, this->_internal_xc(), target); - } - - // optional float yc = 13; - if (_internal_has_yc()) { - target = stream->EnsureSpace(target); - target = ::_pbi::WireFormatLite::WriteFloatToArray(13, this->_internal_yc(), target); - } - - // optional bool cw = 14; - if (_internal_has_cw()) { - target = stream->EnsureSpace(target); - target = ::_pbi::WireFormatLite::WriteBoolToArray(14, this->_internal_cw(), target); - } - - // optional string font = 15; - if (_internal_has_font()) { - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( - this->_internal_font().data(), static_cast(this->_internal_font().length()), - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, - "Odb.Lib.Protobuf.FeaturesFile.FeatureRecord.font"); - target = stream->WriteStringMaybeAliased( - 15, this->_internal_font(), target); - } - - // optional float xsize = 16; - if (_internal_has_xsize()) { - target = stream->EnsureSpace(target); - target = ::_pbi::WireFormatLite::WriteFloatToArray(16, this->_internal_xsize(), target); - } - - // optional float ysize = 17; - if (_internal_has_ysize()) { - target = stream->EnsureSpace(target); - target = ::_pbi::WireFormatLite::WriteFloatToArray(17, this->_internal_ysize(), target); - } - - // optional float width_factor = 18; - if (_internal_has_width_factor()) { - target = stream->EnsureSpace(target); - target = ::_pbi::WireFormatLite::WriteFloatToArray(18, this->_internal_width_factor(), target); - } - - // optional string text = 19; - if (_internal_has_text()) { - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( - this->_internal_text().data(), static_cast(this->_internal_text().length()), - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, - "Odb.Lib.Protobuf.FeaturesFile.FeatureRecord.text"); - target = stream->WriteStringMaybeAliased( - 19, this->_internal_text(), target); - } - - // optional int32 version = 20; - if (_internal_has_version()) { - target = stream->EnsureSpace(target); - target = ::_pbi::WireFormatLite::WriteInt32ToArray(20, this->_internal_version(), target); - } - - // optional int32 sym_num = 21; - if (_internal_has_sym_num()) { - target = stream->EnsureSpace(target); - target = ::_pbi::WireFormatLite::WriteInt32ToArray(21, this->_internal_sym_num(), target); - } - - // optional .Odb.Lib.Protobuf.Polarity polarity = 22; - if (_internal_has_polarity()) { - target = stream->EnsureSpace(target); - target = ::_pbi::WireFormatLite::WriteEnumToArray( - 22, this->_internal_polarity(), target); - } - - // optional int32 dcode = 23; - if (_internal_has_dcode()) { - target = stream->EnsureSpace(target); - target = ::_pbi::WireFormatLite::WriteInt32ToArray(23, this->_internal_dcode(), target); - } - - // optional int32 atr = 24; - if (_internal_has_atr()) { - target = stream->EnsureSpace(target); - target = ::_pbi::WireFormatLite::WriteInt32ToArray(24, this->_internal_atr(), target); - } - - // optional string value = 25; - if (_internal_has_value()) { - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( - this->_internal_value().data(), static_cast(this->_internal_value().length()), - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, - "Odb.Lib.Protobuf.FeaturesFile.FeatureRecord.value"); - target = stream->WriteStringMaybeAliased( - 25, this->_internal_value(), target); - } - - // optional uint32 id = 26; - if (_internal_has_id()) { - target = stream->EnsureSpace(target); - target = ::_pbi::WireFormatLite::WriteUInt32ToArray(26, this->_internal_id(), target); - } - - // optional int32 orient_def = 27; - if (_internal_has_orient_def()) { - target = stream->EnsureSpace(target); - target = ::_pbi::WireFormatLite::WriteInt32ToArray(27, this->_internal_orient_def(), target); - } - - // optional float orient_def_rotation = 28; - if (_internal_has_orient_def_rotation()) { - target = stream->EnsureSpace(target); - target = ::_pbi::WireFormatLite::WriteFloatToArray(28, this->_internal_orient_def_rotation(), target); - } - - // map attributeLookupTable = 29; - if (!this->_internal_attributelookuptable().empty()) { - using MapType = ::_pb::Map; - using WireHelper = FeaturesFile_FeatureRecord_AttributeLookupTableEntry_DoNotUse::Funcs; - const auto& map_field = this->_internal_attributelookuptable(); - auto check_utf8 = [](const MapType::value_type& entry) { - (void)entry; - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( - entry.first.data(), static_cast(entry.first.length()), - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, - "Odb.Lib.Protobuf.FeaturesFile.FeatureRecord.AttributeLookupTableEntry.key"); - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( - entry.second.data(), static_cast(entry.second.length()), - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, - "Odb.Lib.Protobuf.FeaturesFile.FeatureRecord.AttributeLookupTableEntry.value"); - }; - - if (stream->IsSerializationDeterministic() && map_field.size() > 1) { - for (const auto& entry : ::_pbi::MapSorterPtr(map_field)) { - target = WireHelper::InternalSerialize(29, entry.first, entry.second, target, stream); - check_utf8(entry); - } - } else { - for (const auto& entry : map_field) { - target = WireHelper::InternalSerialize(29, entry.first, entry.second, target, stream); - check_utf8(entry); - } - } - } - - if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = ::_pbi::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:Odb.Lib.Protobuf.FeaturesFile.FeatureRecord) - return target; -} - -size_t FeaturesFile_FeatureRecord::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:Odb.Lib.Protobuf.FeaturesFile.FeatureRecord) - size_t total_size = 0; - - uint32_t cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - // repeated .Odb.Lib.Protobuf.ContourPolygon contourPolygons = 1; - total_size += 1UL * this->_internal_contourpolygons_size(); - for (const auto& msg : this->_impl_.contourpolygons_) { - total_size += - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(msg); - } - - // map attributeLookupTable = 29; - total_size += 2 * - ::PROTOBUF_NAMESPACE_ID::internal::FromIntSize(this->_internal_attributelookuptable_size()); - for (::PROTOBUF_NAMESPACE_ID::Map< std::string, std::string >::const_iterator - it = this->_internal_attributelookuptable().begin(); - it != this->_internal_attributelookuptable().end(); ++it) { - total_size += FeaturesFile_FeatureRecord_AttributeLookupTableEntry_DoNotUse::Funcs::ByteSizeLong(it->first, it->second); - } - - cached_has_bits = _impl_._has_bits_[0]; - if (cached_has_bits & 0x000000ffu) { - // optional string font = 15; - if (cached_has_bits & 0x00000001u) { - total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( - this->_internal_font()); - } - - // optional string text = 19; - if (cached_has_bits & 0x00000002u) { - total_size += 2 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( - this->_internal_text()); - } - - // optional string value = 25; - if (cached_has_bits & 0x00000004u) { - total_size += 2 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( - this->_internal_value()); - } - - // optional .Odb.Lib.Protobuf.FeaturesFile.FeatureRecord.Type type = 2; - if (cached_has_bits & 0x00000008u) { - total_size += 1 + - ::_pbi::WireFormatLite::EnumSize(this->_internal_type()); - } - - // optional float xs = 3; - if (cached_has_bits & 0x00000010u) { - total_size += 1 + 4; - } - - // optional float ys = 4; - if (cached_has_bits & 0x00000020u) { - total_size += 1 + 4; - } - - // optional float xe = 5; - if (cached_has_bits & 0x00000040u) { - total_size += 1 + 4; - } - - // optional float ye = 6; - if (cached_has_bits & 0x00000080u) { - total_size += 1 + 4; - } - - } - if (cached_has_bits & 0x0000ff00u) { - // optional float x = 7; - if (cached_has_bits & 0x00000100u) { - total_size += 1 + 4; - } - - // optional float y = 8; - if (cached_has_bits & 0x00000200u) { - total_size += 1 + 4; - } - - // optional int32 apt_def = 9; - if (cached_has_bits & 0x00000400u) { - total_size += ::_pbi::WireFormatLite::Int32SizePlusOne(this->_internal_apt_def()); - } - - // optional int32 apt_def_symbol_num = 10; - if (cached_has_bits & 0x00000800u) { - total_size += ::_pbi::WireFormatLite::Int32SizePlusOne(this->_internal_apt_def_symbol_num()); - } - - // optional float apt_def_resize_factor = 11; - if (cached_has_bits & 0x00001000u) { - total_size += 1 + 4; - } - - // optional float xc = 12; - if (cached_has_bits & 0x00002000u) { - total_size += 1 + 4; - } - - // optional float yc = 13; - if (cached_has_bits & 0x00004000u) { - total_size += 1 + 4; - } - - // optional bool cw = 14; - if (cached_has_bits & 0x00008000u) { - total_size += 1 + 1; - } - - } - if (cached_has_bits & 0x00ff0000u) { - // optional float xsize = 16; - if (cached_has_bits & 0x00010000u) { - total_size += 2 + 4; - } - - // optional float ysize = 17; - if (cached_has_bits & 0x00020000u) { - total_size += 2 + 4; - } - - // optional float width_factor = 18; - if (cached_has_bits & 0x00040000u) { - total_size += 2 + 4; - } - - // optional int32 version = 20; - if (cached_has_bits & 0x00080000u) { - total_size += 2 + - ::_pbi::WireFormatLite::Int32Size( - this->_internal_version()); - } - - // optional int32 sym_num = 21; - if (cached_has_bits & 0x00100000u) { - total_size += 2 + - ::_pbi::WireFormatLite::Int32Size( - this->_internal_sym_num()); - } - - // optional .Odb.Lib.Protobuf.Polarity polarity = 22; - if (cached_has_bits & 0x00200000u) { - total_size += 2 + - ::_pbi::WireFormatLite::EnumSize(this->_internal_polarity()); - } - - // optional int32 dcode = 23; - if (cached_has_bits & 0x00400000u) { - total_size += 2 + - ::_pbi::WireFormatLite::Int32Size( - this->_internal_dcode()); - } - - // optional int32 atr = 24; - if (cached_has_bits & 0x00800000u) { - total_size += 2 + - ::_pbi::WireFormatLite::Int32Size( - this->_internal_atr()); - } - - } - if (cached_has_bits & 0x07000000u) { - // optional uint32 id = 26; - if (cached_has_bits & 0x01000000u) { - total_size += 2 + - ::_pbi::WireFormatLite::UInt32Size( - this->_internal_id()); - } - - // optional int32 orient_def = 27; - if (cached_has_bits & 0x02000000u) { - total_size += 2 + - ::_pbi::WireFormatLite::Int32Size( - this->_internal_orient_def()); - } - - // optional float orient_def_rotation = 28; - if (cached_has_bits & 0x04000000u) { - total_size += 2 + 4; - } - - } - return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); -} - -const ::PROTOBUF_NAMESPACE_ID::Message::ClassData FeaturesFile_FeatureRecord::_class_data_ = { - ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSourceCheck, - FeaturesFile_FeatureRecord::MergeImpl -}; -const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*FeaturesFile_FeatureRecord::GetClassData() const { return &_class_data_; } - - -void FeaturesFile_FeatureRecord::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg) { +#if defined(PROTOBUF_CUSTOM_VTABLE) + ::uint8_t* FeaturesFile_FeatureRecord::_InternalSerialize( + const MessageLite& base, ::uint8_t* target, + ::google::protobuf::io::EpsCopyOutputStream* stream) { + const FeaturesFile_FeatureRecord& this_ = static_cast(base); +#else // PROTOBUF_CUSTOM_VTABLE + ::uint8_t* FeaturesFile_FeatureRecord::_InternalSerialize( + ::uint8_t* target, + ::google::protobuf::io::EpsCopyOutputStream* stream) const { + const FeaturesFile_FeatureRecord& this_ = *this; +#endif // PROTOBUF_CUSTOM_VTABLE + // @@protoc_insertion_point(serialize_to_array_start:Odb.Lib.Protobuf.FeaturesFile.FeatureRecord) + ::uint32_t cached_has_bits = 0; + (void)cached_has_bits; + + // repeated .Odb.Lib.Protobuf.ContourPolygon contourPolygons = 1; + for (unsigned i = 0, n = static_cast( + this_._internal_contourpolygons_size()); + i < n; i++) { + const auto& repfield = this_._internal_contourpolygons().Get(i); + target = + ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( + 1, repfield, repfield.GetCachedSize(), + target, stream); + } + + cached_has_bits = this_._impl_._has_bits_[0]; + // optional .Odb.Lib.Protobuf.FeaturesFile.FeatureRecord.Type type = 2; + if (cached_has_bits & 0x00000008u) { + target = stream->EnsureSpace(target); + target = ::_pbi::WireFormatLite::WriteEnumToArray( + 2, this_._internal_type(), target); + } + + // optional float xs = 3; + if (cached_has_bits & 0x00000010u) { + target = stream->EnsureSpace(target); + target = ::_pbi::WireFormatLite::WriteFloatToArray( + 3, this_._internal_xs(), target); + } + + // optional float ys = 4; + if (cached_has_bits & 0x00000020u) { + target = stream->EnsureSpace(target); + target = ::_pbi::WireFormatLite::WriteFloatToArray( + 4, this_._internal_ys(), target); + } + + // optional float xe = 5; + if (cached_has_bits & 0x00000040u) { + target = stream->EnsureSpace(target); + target = ::_pbi::WireFormatLite::WriteFloatToArray( + 5, this_._internal_xe(), target); + } + + // optional float ye = 6; + if (cached_has_bits & 0x00000080u) { + target = stream->EnsureSpace(target); + target = ::_pbi::WireFormatLite::WriteFloatToArray( + 6, this_._internal_ye(), target); + } + + // optional float x = 7; + if (cached_has_bits & 0x00000100u) { + target = stream->EnsureSpace(target); + target = ::_pbi::WireFormatLite::WriteFloatToArray( + 7, this_._internal_x(), target); + } + + // optional float y = 8; + if (cached_has_bits & 0x00000200u) { + target = stream->EnsureSpace(target); + target = ::_pbi::WireFormatLite::WriteFloatToArray( + 8, this_._internal_y(), target); + } + + // optional int32 apt_def = 9; + if (cached_has_bits & 0x00000400u) { + target = ::google::protobuf::internal::WireFormatLite:: + WriteInt32ToArrayWithField<9>( + stream, this_._internal_apt_def(), target); + } + + // optional int32 apt_def_symbol_num = 10; + if (cached_has_bits & 0x00000800u) { + target = ::google::protobuf::internal::WireFormatLite:: + WriteInt32ToArrayWithField<10>( + stream, this_._internal_apt_def_symbol_num(), target); + } + + // optional float apt_def_resize_factor = 11; + if (cached_has_bits & 0x00001000u) { + target = stream->EnsureSpace(target); + target = ::_pbi::WireFormatLite::WriteFloatToArray( + 11, this_._internal_apt_def_resize_factor(), target); + } + + // optional float xc = 12; + if (cached_has_bits & 0x00002000u) { + target = stream->EnsureSpace(target); + target = ::_pbi::WireFormatLite::WriteFloatToArray( + 12, this_._internal_xc(), target); + } + + // optional float yc = 13; + if (cached_has_bits & 0x00004000u) { + target = stream->EnsureSpace(target); + target = ::_pbi::WireFormatLite::WriteFloatToArray( + 13, this_._internal_yc(), target); + } + + // optional bool cw = 14; + if (cached_has_bits & 0x00008000u) { + target = stream->EnsureSpace(target); + target = ::_pbi::WireFormatLite::WriteBoolToArray( + 14, this_._internal_cw(), target); + } + + // optional string font = 15; + if (cached_has_bits & 0x00000001u) { + const std::string& _s = this_._internal_font(); + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + _s.data(), static_cast(_s.length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "Odb.Lib.Protobuf.FeaturesFile.FeatureRecord.font"); + target = stream->WriteStringMaybeAliased(15, _s, target); + } + + // optional float xsize = 16; + if (cached_has_bits & 0x00010000u) { + target = stream->EnsureSpace(target); + target = ::_pbi::WireFormatLite::WriteFloatToArray( + 16, this_._internal_xsize(), target); + } + + // optional float ysize = 17; + if (cached_has_bits & 0x00020000u) { + target = stream->EnsureSpace(target); + target = ::_pbi::WireFormatLite::WriteFloatToArray( + 17, this_._internal_ysize(), target); + } + + // optional float width_factor = 18; + if (cached_has_bits & 0x00040000u) { + target = stream->EnsureSpace(target); + target = ::_pbi::WireFormatLite::WriteFloatToArray( + 18, this_._internal_width_factor(), target); + } + + // optional string text = 19; + if (cached_has_bits & 0x00000002u) { + const std::string& _s = this_._internal_text(); + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + _s.data(), static_cast(_s.length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "Odb.Lib.Protobuf.FeaturesFile.FeatureRecord.text"); + target = stream->WriteStringMaybeAliased(19, _s, target); + } + + // optional int32 version = 20; + if (cached_has_bits & 0x00080000u) { + target = stream->EnsureSpace(target); + target = ::_pbi::WireFormatLite::WriteInt32ToArray( + 20, this_._internal_version(), target); + } + + // optional int32 sym_num = 21; + if (cached_has_bits & 0x00100000u) { + target = stream->EnsureSpace(target); + target = ::_pbi::WireFormatLite::WriteInt32ToArray( + 21, this_._internal_sym_num(), target); + } + + // optional .Odb.Lib.Protobuf.Polarity polarity = 22; + if (cached_has_bits & 0x00200000u) { + target = stream->EnsureSpace(target); + target = ::_pbi::WireFormatLite::WriteEnumToArray( + 22, this_._internal_polarity(), target); + } + + // optional int32 dcode = 23; + if (cached_has_bits & 0x00400000u) { + target = stream->EnsureSpace(target); + target = ::_pbi::WireFormatLite::WriteInt32ToArray( + 23, this_._internal_dcode(), target); + } + + // optional int32 atr = 24; + if (cached_has_bits & 0x00800000u) { + target = stream->EnsureSpace(target); + target = ::_pbi::WireFormatLite::WriteInt32ToArray( + 24, this_._internal_atr(), target); + } + + // optional string value = 25; + if (cached_has_bits & 0x00000004u) { + const std::string& _s = this_._internal_value(); + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + _s.data(), static_cast(_s.length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "Odb.Lib.Protobuf.FeaturesFile.FeatureRecord.value"); + target = stream->WriteStringMaybeAliased(25, _s, target); + } + + // optional uint32 id = 26; + if (cached_has_bits & 0x01000000u) { + target = stream->EnsureSpace(target); + target = ::_pbi::WireFormatLite::WriteUInt32ToArray( + 26, this_._internal_id(), target); + } + + // optional int32 orient_def = 27; + if (cached_has_bits & 0x02000000u) { + target = stream->EnsureSpace(target); + target = ::_pbi::WireFormatLite::WriteInt32ToArray( + 27, this_._internal_orient_def(), target); + } + + // optional float orient_def_rotation = 28; + if (cached_has_bits & 0x04000000u) { + target = stream->EnsureSpace(target); + target = ::_pbi::WireFormatLite::WriteFloatToArray( + 28, this_._internal_orient_def_rotation(), target); + } + + // map attributeLookupTable = 29; + if (!this_._internal_attributelookuptable().empty()) { + using MapType = ::google::protobuf::Map; + using WireHelper = _pbi::MapEntryFuncs; + const auto& field = this_._internal_attributelookuptable(); + + if (stream->IsSerializationDeterministic() && field.size() > 1) { + for (const auto& entry : ::google::protobuf::internal::MapSorterPtr(field)) { + target = WireHelper::InternalSerialize( + 29, entry.first, entry.second, target, stream); + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + entry.first.data(), static_cast(entry.first.length()), + ::google::protobuf::internal::WireFormatLite::SERIALIZE, "Odb.Lib.Protobuf.FeaturesFile.FeatureRecord.attributeLookupTable"); + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + entry.second.data(), static_cast(entry.second.length()), + ::google::protobuf::internal::WireFormatLite::SERIALIZE, "Odb.Lib.Protobuf.FeaturesFile.FeatureRecord.attributeLookupTable"); + } + } else { + for (const auto& entry : field) { + target = WireHelper::InternalSerialize( + 29, entry.first, entry.second, target, stream); + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + entry.first.data(), static_cast(entry.first.length()), + ::google::protobuf::internal::WireFormatLite::SERIALIZE, "Odb.Lib.Protobuf.FeaturesFile.FeatureRecord.attributeLookupTable"); + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + entry.second.data(), static_cast(entry.second.length()), + ::google::protobuf::internal::WireFormatLite::SERIALIZE, "Odb.Lib.Protobuf.FeaturesFile.FeatureRecord.attributeLookupTable"); + } + } + } + + if (PROTOBUF_PREDICT_FALSE(this_._internal_metadata_.have_unknown_fields())) { + target = + ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( + this_._internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); + } + // @@protoc_insertion_point(serialize_to_array_end:Odb.Lib.Protobuf.FeaturesFile.FeatureRecord) + return target; + } + +#if defined(PROTOBUF_CUSTOM_VTABLE) + ::size_t FeaturesFile_FeatureRecord::ByteSizeLong(const MessageLite& base) { + const FeaturesFile_FeatureRecord& this_ = static_cast(base); +#else // PROTOBUF_CUSTOM_VTABLE + ::size_t FeaturesFile_FeatureRecord::ByteSizeLong() const { + const FeaturesFile_FeatureRecord& this_ = *this; +#endif // PROTOBUF_CUSTOM_VTABLE + // @@protoc_insertion_point(message_byte_size_start:Odb.Lib.Protobuf.FeaturesFile.FeatureRecord) + ::size_t total_size = 0; + + ::uint32_t cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void)cached_has_bits; + + ::_pbi::Prefetch5LinesFrom7Lines(&this_); + { + // repeated .Odb.Lib.Protobuf.ContourPolygon contourPolygons = 1; + { + total_size += 1UL * this_._internal_contourpolygons_size(); + for (const auto& msg : this_._internal_contourpolygons()) { + total_size += ::google::protobuf::internal::WireFormatLite::MessageSize(msg); + } + } + // map attributeLookupTable = 29; + { + total_size += + 2 * ::google::protobuf::internal::FromIntSize(this_._internal_attributelookuptable_size()); + for (const auto& entry : this_._internal_attributelookuptable()) { + total_size += _pbi::MapEntryFuncs::ByteSizeLong(entry.first, entry.second); + } + } + } + cached_has_bits = this_._impl_._has_bits_[0]; + if (cached_has_bits & 0x000000ffu) { + // optional string font = 15; + if (cached_has_bits & 0x00000001u) { + total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize( + this_._internal_font()); + } + // optional string text = 19; + if (cached_has_bits & 0x00000002u) { + total_size += 2 + ::google::protobuf::internal::WireFormatLite::StringSize( + this_._internal_text()); + } + // optional string value = 25; + if (cached_has_bits & 0x00000004u) { + total_size += 2 + ::google::protobuf::internal::WireFormatLite::StringSize( + this_._internal_value()); + } + // optional .Odb.Lib.Protobuf.FeaturesFile.FeatureRecord.Type type = 2; + if (cached_has_bits & 0x00000008u) { + total_size += 1 + + ::_pbi::WireFormatLite::EnumSize(this_._internal_type()); + } + // optional float xs = 3; + if (cached_has_bits & 0x00000010u) { + total_size += 5; + } + // optional float ys = 4; + if (cached_has_bits & 0x00000020u) { + total_size += 5; + } + // optional float xe = 5; + if (cached_has_bits & 0x00000040u) { + total_size += 5; + } + // optional float ye = 6; + if (cached_has_bits & 0x00000080u) { + total_size += 5; + } + } + if (cached_has_bits & 0x0000ff00u) { + // optional float x = 7; + if (cached_has_bits & 0x00000100u) { + total_size += 5; + } + // optional float y = 8; + if (cached_has_bits & 0x00000200u) { + total_size += 5; + } + // optional int32 apt_def = 9; + if (cached_has_bits & 0x00000400u) { + total_size += ::_pbi::WireFormatLite::Int32SizePlusOne( + this_._internal_apt_def()); + } + // optional int32 apt_def_symbol_num = 10; + if (cached_has_bits & 0x00000800u) { + total_size += ::_pbi::WireFormatLite::Int32SizePlusOne( + this_._internal_apt_def_symbol_num()); + } + // optional float apt_def_resize_factor = 11; + if (cached_has_bits & 0x00001000u) { + total_size += 5; + } + // optional float xc = 12; + if (cached_has_bits & 0x00002000u) { + total_size += 5; + } + // optional float yc = 13; + if (cached_has_bits & 0x00004000u) { + total_size += 5; + } + // optional bool cw = 14; + if (cached_has_bits & 0x00008000u) { + total_size += 2; + } + } + if (cached_has_bits & 0x00ff0000u) { + // optional float xsize = 16; + if (cached_has_bits & 0x00010000u) { + total_size += 6; + } + // optional float ysize = 17; + if (cached_has_bits & 0x00020000u) { + total_size += 6; + } + // optional float width_factor = 18; + if (cached_has_bits & 0x00040000u) { + total_size += 6; + } + // optional int32 version = 20; + if (cached_has_bits & 0x00080000u) { + total_size += 2 + ::_pbi::WireFormatLite::Int32Size( + this_._internal_version()); + } + // optional int32 sym_num = 21; + if (cached_has_bits & 0x00100000u) { + total_size += 2 + ::_pbi::WireFormatLite::Int32Size( + this_._internal_sym_num()); + } + // optional .Odb.Lib.Protobuf.Polarity polarity = 22; + if (cached_has_bits & 0x00200000u) { + total_size += 2 + + ::_pbi::WireFormatLite::EnumSize(this_._internal_polarity()); + } + // optional int32 dcode = 23; + if (cached_has_bits & 0x00400000u) { + total_size += 2 + ::_pbi::WireFormatLite::Int32Size( + this_._internal_dcode()); + } + // optional int32 atr = 24; + if (cached_has_bits & 0x00800000u) { + total_size += 2 + ::_pbi::WireFormatLite::Int32Size( + this_._internal_atr()); + } + } + if (cached_has_bits & 0x07000000u) { + // optional uint32 id = 26; + if (cached_has_bits & 0x01000000u) { + total_size += 2 + ::_pbi::WireFormatLite::UInt32Size( + this_._internal_id()); + } + // optional int32 orient_def = 27; + if (cached_has_bits & 0x02000000u) { + total_size += 2 + ::_pbi::WireFormatLite::Int32Size( + this_._internal_orient_def()); + } + // optional float orient_def_rotation = 28; + if (cached_has_bits & 0x04000000u) { + total_size += 6; + } + } + return this_.MaybeComputeUnknownFieldsSize(total_size, + &this_._impl_._cached_size_); + } + +void FeaturesFile_FeatureRecord::MergeImpl(::google::protobuf::MessageLite& to_msg, const ::google::protobuf::MessageLite& from_msg) { auto* const _this = static_cast(&to_msg); auto& from = static_cast(from_msg); // @@protoc_insertion_point(class_specific_merge_from_start:Odb.Lib.Protobuf.FeaturesFile.FeatureRecord) - GOOGLE_DCHECK_NE(&from, _this); - uint32_t cached_has_bits = 0; + ABSL_DCHECK_NE(&from, _this); + ::uint32_t cached_has_bits = 0; (void) cached_has_bits; - _this->_impl_.contourpolygons_.MergeFrom(from._impl_.contourpolygons_); + _this->_internal_mutable_contourpolygons()->MergeFrom( + from._internal_contourpolygons()); _this->_impl_.attributelookuptable_.MergeFrom(from._impl_.attributelookuptable_); cached_has_bits = from._impl_._has_bits_[0]; if (cached_has_bits & 0x000000ffu) { @@ -1404,7 +1353,6 @@ void FeaturesFile_FeatureRecord::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_ if (cached_has_bits & 0x00000080u) { _this->_impl_.ye_ = from._impl_.ye_; } - _this->_impl_._has_bits_[0] |= cached_has_bits; } if (cached_has_bits & 0x0000ff00u) { if (cached_has_bits & 0x00000100u) { @@ -1431,7 +1379,6 @@ void FeaturesFile_FeatureRecord::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_ if (cached_has_bits & 0x00008000u) { _this->_impl_.cw_ = from._impl_.cw_; } - _this->_impl_._has_bits_[0] |= cached_has_bits; } if (cached_has_bits & 0x00ff0000u) { if (cached_has_bits & 0x00010000u) { @@ -1458,7 +1405,6 @@ void FeaturesFile_FeatureRecord::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_ if (cached_has_bits & 0x00800000u) { _this->_impl_.atr_ = from._impl_.atr_; } - _this->_impl_._has_bits_[0] |= cached_has_bits; } if (cached_has_bits & 0x07000000u) { if (cached_has_bits & 0x01000000u) { @@ -1470,9 +1416,9 @@ void FeaturesFile_FeatureRecord::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_ if (cached_has_bits & 0x04000000u) { _this->_impl_.orient_def_rotation_ = from._impl_.orient_def_rotation_; } - _this->_impl_._has_bits_[0] |= cached_has_bits; } - _this->_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); + _this->_impl_._has_bits_[0] |= cached_has_bits; + _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); } void FeaturesFile_FeatureRecord::CopyFrom(const FeaturesFile_FeatureRecord& from) { @@ -1482,31 +1428,19 @@ void FeaturesFile_FeatureRecord::CopyFrom(const FeaturesFile_FeatureRecord& from MergeFrom(from); } -bool FeaturesFile_FeatureRecord::IsInitialized() const { - return true; -} -void FeaturesFile_FeatureRecord::InternalSwap(FeaturesFile_FeatureRecord* other) { +void FeaturesFile_FeatureRecord::InternalSwap(FeaturesFile_FeatureRecord* PROTOBUF_RESTRICT other) { using std::swap; - auto* lhs_arena = GetArenaForAllocation(); - auto* rhs_arena = other->GetArenaForAllocation(); + auto* arena = GetArena(); + ABSL_DCHECK_EQ(arena, other->GetArena()); _internal_metadata_.InternalSwap(&other->_internal_metadata_); swap(_impl_._has_bits_[0], other->_impl_._has_bits_[0]); _impl_.contourpolygons_.InternalSwap(&other->_impl_.contourpolygons_); _impl_.attributelookuptable_.InternalSwap(&other->_impl_.attributelookuptable_); - ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( - &_impl_.font_, lhs_arena, - &other->_impl_.font_, rhs_arena - ); - ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( - &_impl_.text_, lhs_arena, - &other->_impl_.text_, rhs_arena - ); - ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( - &_impl_.value_, lhs_arena, - &other->_impl_.value_, rhs_arena - ); - ::PROTOBUF_NAMESPACE_ID::internal::memswap< + ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.font_, &other->_impl_.font_, arena); + ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.text_, &other->_impl_.text_, arena); + ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.value_, &other->_impl_.value_, arena); + ::google::protobuf::internal::memswap< PROTOBUF_FIELD_OFFSET(FeaturesFile_FeatureRecord, _impl_.orient_def_rotation_) + sizeof(FeaturesFile_FeatureRecord::_impl_.orient_def_rotation_) - PROTOBUF_FIELD_OFFSET(FeaturesFile_FeatureRecord, _impl_.type_)>( @@ -1514,166 +1448,328 @@ void FeaturesFile_FeatureRecord::InternalSwap(FeaturesFile_FeatureRecord* other) reinterpret_cast(&other->_impl_.type_)); } -::PROTOBUF_NAMESPACE_ID::Metadata FeaturesFile_FeatureRecord::GetMetadata() const { - return ::_pbi::AssignDescriptors( - &descriptor_table_featuresfile_2eproto_getter, &descriptor_table_featuresfile_2eproto_once, - file_level_metadata_featuresfile_2eproto[1]); +::google::protobuf::Metadata FeaturesFile_FeatureRecord::GetMetadata() const { + return ::google::protobuf::Message::GetMetadataImpl(GetClassData()->full()); } - // =================================================================== -FeaturesFile_SymbolNamesByNameEntry_DoNotUse::FeaturesFile_SymbolNamesByNameEntry_DoNotUse() {} -FeaturesFile_SymbolNamesByNameEntry_DoNotUse::FeaturesFile_SymbolNamesByNameEntry_DoNotUse(::PROTOBUF_NAMESPACE_ID::Arena* arena) - : SuperType(arena) {} -void FeaturesFile_SymbolNamesByNameEntry_DoNotUse::MergeFrom(const FeaturesFile_SymbolNamesByNameEntry_DoNotUse& other) { - MergeFromInternal(other); -} -::PROTOBUF_NAMESPACE_ID::Metadata FeaturesFile_SymbolNamesByNameEntry_DoNotUse::GetMetadata() const { - return ::_pbi::AssignDescriptors( - &descriptor_table_featuresfile_2eproto_getter, &descriptor_table_featuresfile_2eproto_once, - file_level_metadata_featuresfile_2eproto[2]); -} +#if defined(PROTOBUF_CUSTOM_VTABLE) + FeaturesFile_SymbolNamesByNameEntry_DoNotUse::FeaturesFile_SymbolNamesByNameEntry_DoNotUse() : SuperType(_class_data_.base()) {} + FeaturesFile_SymbolNamesByNameEntry_DoNotUse::FeaturesFile_SymbolNamesByNameEntry_DoNotUse(::google::protobuf::Arena* arena) + : SuperType(arena, _class_data_.base()) {} +#else // PROTOBUF_CUSTOM_VTABLE + FeaturesFile_SymbolNamesByNameEntry_DoNotUse::FeaturesFile_SymbolNamesByNameEntry_DoNotUse() : SuperType() {} + FeaturesFile_SymbolNamesByNameEntry_DoNotUse::FeaturesFile_SymbolNamesByNameEntry_DoNotUse(::google::protobuf::Arena* arena) : SuperType(arena) {} +#endif // PROTOBUF_CUSTOM_VTABLE + inline void* FeaturesFile_SymbolNamesByNameEntry_DoNotUse::PlacementNew_(const void*, void* mem, + ::google::protobuf::Arena* arena) { + return ::new (mem) FeaturesFile_SymbolNamesByNameEntry_DoNotUse(arena); + } + constexpr auto FeaturesFile_SymbolNamesByNameEntry_DoNotUse::InternalNewImpl_() { + return ::google::protobuf::internal::MessageCreator::CopyInit(sizeof(FeaturesFile_SymbolNamesByNameEntry_DoNotUse), + alignof(FeaturesFile_SymbolNamesByNameEntry_DoNotUse)); + } + PROTOBUF_CONSTINIT + PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 + const ::google::protobuf::internal::ClassDataFull FeaturesFile_SymbolNamesByNameEntry_DoNotUse::_class_data_ = { + ::google::protobuf::internal::ClassData{ + &_FeaturesFile_SymbolNamesByNameEntry_DoNotUse_default_instance_._instance, + &_table_.header, + nullptr, // OnDemandRegisterArenaDtor + nullptr, // IsInitialized + &FeaturesFile_SymbolNamesByNameEntry_DoNotUse::MergeImpl, + ::google::protobuf::Message::GetNewImpl(), + #if defined(PROTOBUF_CUSTOM_VTABLE) + &FeaturesFile_SymbolNamesByNameEntry_DoNotUse::SharedDtor, + static_cast( + &FeaturesFile_SymbolNamesByNameEntry_DoNotUse::ClearImpl), + ::google::protobuf::Message::ByteSizeLongImpl, ::google::protobuf::Message::_InternalSerializeImpl + , + #endif // PROTOBUF_CUSTOM_VTABLE + PROTOBUF_FIELD_OFFSET(FeaturesFile_SymbolNamesByNameEntry_DoNotUse, _impl_._cached_size_), + false, + }, + &FeaturesFile_SymbolNamesByNameEntry_DoNotUse::kDescriptorMethods, + &descriptor_table_featuresfile_2eproto, + nullptr, // tracker + }; + const ::google::protobuf::internal::ClassData* FeaturesFile_SymbolNamesByNameEntry_DoNotUse::GetClassData() const { + ::google::protobuf::internal::PrefetchToLocalCache(&_class_data_); + ::google::protobuf::internal::PrefetchToLocalCache(_class_data_.tc_table); + return _class_data_.base(); + } +PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 +const ::_pbi::TcParseTable<1, 2, 1, 64, 2> FeaturesFile_SymbolNamesByNameEntry_DoNotUse::_table_ = { + { + PROTOBUF_FIELD_OFFSET(FeaturesFile_SymbolNamesByNameEntry_DoNotUse, _impl_._has_bits_), + 0, // no _extensions_ + 2, 8, // max_field_number, fast_idx_mask + offsetof(decltype(_table_), field_lookup_table), + 4294967292, // skipmap + offsetof(decltype(_table_), field_entries), + 2, // num_field_entries + 1, // num_aux_entries + offsetof(decltype(_table_), aux_entries), + _class_data_.base(), + nullptr, // post_loop_handler + ::_pbi::TcParser::DiscardEverythingFallback, // fallback + #ifdef PROTOBUF_PREFETCH_PARSE_TABLE + ::_pbi::TcParser::GetTable<::Odb::Lib::Protobuf::FeaturesFile_SymbolNamesByNameEntry_DoNotUse>(), // to_prefetch + #endif // PROTOBUF_PREFETCH_PARSE_TABLE + }, {{ + // .Odb.Lib.Protobuf.SymbolName value = 2; + {::_pbi::TcParser::FastMtS1, + {18, 0, 0, PROTOBUF_FIELD_OFFSET(FeaturesFile_SymbolNamesByNameEntry_DoNotUse, _impl_.value_)}}, + // string key = 1; + {::_pbi::TcParser::FastUS1, + {10, 63, 0, PROTOBUF_FIELD_OFFSET(FeaturesFile_SymbolNamesByNameEntry_DoNotUse, _impl_.key_)}}, + }}, {{ + 65535, 65535 + }}, {{ + // string key = 1; + {PROTOBUF_FIELD_OFFSET(FeaturesFile_SymbolNamesByNameEntry_DoNotUse, _impl_.key_), -1, 0, + (0 | ::_fl::kFcSingular | ::_fl::kUtf8String | ::_fl::kRepAString)}, + // .Odb.Lib.Protobuf.SymbolName value = 2; + {PROTOBUF_FIELD_OFFSET(FeaturesFile_SymbolNamesByNameEntry_DoNotUse, _impl_.value_), _Internal::kHasBitsOffset + 0, 0, + (0 | ::_fl::kFcOptional | ::_fl::kMessage | ::_fl::kTvTable)}, + }}, {{ + {::_pbi::TcParser::GetTable<::Odb::Lib::Protobuf::SymbolName>()}, + }}, {{ + "\64\3\0\0\0\0\0\0" + "Odb.Lib.Protobuf.FeaturesFile.SymbolNamesByNameEntry" + "key" + }}, +}; // =================================================================== class FeaturesFile::_Internal { public: - using HasBits = decltype(std::declval()._impl_._has_bits_); - static void set_has_units(HasBits* has_bits) { - (*has_bits)[0] |= 1u; - } - static void set_has_id(HasBits* has_bits) { - (*has_bits)[0] |= 8u; - } - static void set_has_path(HasBits* has_bits) { - (*has_bits)[0] |= 2u; - } - static void set_has_directory(HasBits* has_bits) { - (*has_bits)[0] |= 4u; - } - static void set_has_numfeatures(HasBits* has_bits) { - (*has_bits)[0] |= 16u; - } + using HasBits = + decltype(std::declval()._impl_._has_bits_); + static constexpr ::int32_t kHasBitsOffset = + 8 * PROTOBUF_FIELD_OFFSET(FeaturesFile, _impl_._has_bits_); }; void FeaturesFile::clear_symbolnamesbyname() { + ::google::protobuf::internal::TSanWrite(&_impl_); _impl_.symbolnamesbyname_.Clear(); } -FeaturesFile::FeaturesFile(::PROTOBUF_NAMESPACE_ID::Arena* arena, - bool is_message_owned) - : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned) { - SharedCtor(arena, is_message_owned); - if (arena != nullptr && !is_message_owned) { - arena->OwnCustomDestructor(this, &FeaturesFile::ArenaDtor); - } +FeaturesFile::FeaturesFile(::google::protobuf::Arena* arena) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : ::google::protobuf::Message(arena, _class_data_.base()) { +#else // PROTOBUF_CUSTOM_VTABLE + : ::google::protobuf::Message(arena) { +#endif // PROTOBUF_CUSTOM_VTABLE + SharedCtor(arena); // @@protoc_insertion_point(arena_constructor:Odb.Lib.Protobuf.FeaturesFile) } -FeaturesFile::FeaturesFile(const FeaturesFile& from) - : ::PROTOBUF_NAMESPACE_ID::Message() { - FeaturesFile* const _this = this; (void)_this; - new (&_impl_) Impl_{ - decltype(_impl_._has_bits_){from._impl_._has_bits_} - , /*decltype(_impl_._cached_size_)*/{} - , decltype(_impl_.featurerecords_){from._impl_.featurerecords_} - , /*decltype(_impl_.symbolnamesbyname_)*/{} - , decltype(_impl_.units_){} - , decltype(_impl_.path_){} - , decltype(_impl_.directory_){} - , decltype(_impl_.id_){} - , decltype(_impl_.numfeatures_){}}; - - _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); - _this->_impl_.symbolnamesbyname_.MergeFrom(from._impl_.symbolnamesbyname_); - _impl_.units_.InitDefault(); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - _impl_.units_.Set("", GetArenaForAllocation()); - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (from._internal_has_units()) { - _this->_impl_.units_.Set(from._internal_units(), - _this->GetArenaForAllocation()); - } - _impl_.path_.InitDefault(); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - _impl_.path_.Set("", GetArenaForAllocation()); - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (from._internal_has_path()) { - _this->_impl_.path_.Set(from._internal_path(), - _this->GetArenaForAllocation()); - } - _impl_.directory_.InitDefault(); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - _impl_.directory_.Set("", GetArenaForAllocation()); - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (from._internal_has_directory()) { - _this->_impl_.directory_.Set(from._internal_directory(), - _this->GetArenaForAllocation()); - } - ::memcpy(&_impl_.id_, &from._impl_.id_, - static_cast(reinterpret_cast(&_impl_.numfeatures_) - - reinterpret_cast(&_impl_.id_)) + sizeof(_impl_.numfeatures_)); +inline PROTOBUF_NDEBUG_INLINE FeaturesFile::Impl_::Impl_( + ::google::protobuf::internal::InternalVisibility visibility, ::google::protobuf::Arena* arena, + const Impl_& from, const ::Odb::Lib::Protobuf::FeaturesFile& from_msg) + : _has_bits_{from._has_bits_}, + _cached_size_{0}, + featurerecords_{visibility, arena, from.featurerecords_}, + symbolnamesbyname_{visibility, arena, from.symbolnamesbyname_}, + units_(arena, from.units_), + path_(arena, from.path_), + directory_(arena, from.directory_) {} + +FeaturesFile::FeaturesFile( + ::google::protobuf::Arena* arena, + const FeaturesFile& from) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : ::google::protobuf::Message(arena, _class_data_.base()) { +#else // PROTOBUF_CUSTOM_VTABLE + : ::google::protobuf::Message(arena) { +#endif // PROTOBUF_CUSTOM_VTABLE + FeaturesFile* const _this = this; + (void)_this; + _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( + from._internal_metadata_); + new (&_impl_) Impl_(internal_visibility(), arena, from._impl_, from); + ::memcpy(reinterpret_cast(&_impl_) + + offsetof(Impl_, id_), + reinterpret_cast(&from._impl_) + + offsetof(Impl_, id_), + offsetof(Impl_, numfeatures_) - + offsetof(Impl_, id_) + + sizeof(Impl_::numfeatures_)); + // @@protoc_insertion_point(copy_constructor:Odb.Lib.Protobuf.FeaturesFile) } - -inline void FeaturesFile::SharedCtor( - ::_pb::Arena* arena, bool is_message_owned) { - (void)arena; - (void)is_message_owned; - new (&_impl_) Impl_{ - decltype(_impl_._has_bits_){} - , /*decltype(_impl_._cached_size_)*/{} - , decltype(_impl_.featurerecords_){arena} - , /*decltype(_impl_.symbolnamesbyname_)*/{::_pbi::ArenaInitialized(), arena} - , decltype(_impl_.units_){} - , decltype(_impl_.path_){} - , decltype(_impl_.directory_){} - , decltype(_impl_.id_){0u} - , decltype(_impl_.numfeatures_){0} - }; - _impl_.units_.InitDefault(); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - _impl_.units_.Set("", GetArenaForAllocation()); - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING - _impl_.path_.InitDefault(); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - _impl_.path_.Set("", GetArenaForAllocation()); - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING - _impl_.directory_.InitDefault(); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - _impl_.directory_.Set("", GetArenaForAllocation()); - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING +inline PROTOBUF_NDEBUG_INLINE FeaturesFile::Impl_::Impl_( + ::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* arena) + : _cached_size_{0}, + featurerecords_{visibility, arena}, + symbolnamesbyname_{visibility, arena}, + units_(arena), + path_(arena), + directory_(arena) {} + +inline void FeaturesFile::SharedCtor(::_pb::Arena* arena) { + new (&_impl_) Impl_(internal_visibility(), arena); + ::memset(reinterpret_cast(&_impl_) + + offsetof(Impl_, id_), + 0, + offsetof(Impl_, numfeatures_) - + offsetof(Impl_, id_) + + sizeof(Impl_::numfeatures_)); } - FeaturesFile::~FeaturesFile() { // @@protoc_insertion_point(destructor:Odb.Lib.Protobuf.FeaturesFile) - if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) { - (void)arena; - ArenaDtor(this); - return; - } - SharedDtor(); + SharedDtor(*this); } - -inline void FeaturesFile::SharedDtor() { - GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); - _impl_.featurerecords_.~RepeatedPtrField(); - _impl_.symbolnamesbyname_.Destruct(); - _impl_.symbolnamesbyname_.~MapField(); - _impl_.units_.Destroy(); - _impl_.path_.Destroy(); - _impl_.directory_.Destroy(); +inline void FeaturesFile::SharedDtor(MessageLite& self) { + FeaturesFile& this_ = static_cast(self); + this_._internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); + ABSL_DCHECK(this_.GetArena() == nullptr); + this_._impl_.units_.Destroy(); + this_._impl_.path_.Destroy(); + this_._impl_.directory_.Destroy(); + this_._impl_.~Impl_(); } -void FeaturesFile::ArenaDtor(void* object) { - FeaturesFile* _this = reinterpret_cast< FeaturesFile* >(object); - _this->_impl_.symbolnamesbyname_.Destruct(); +inline void* FeaturesFile::PlacementNew_(const void*, void* mem, + ::google::protobuf::Arena* arena) { + return ::new (mem) FeaturesFile(arena); } -void FeaturesFile::SetCachedSize(int size) const { - _impl_._cached_size_.Set(size); +constexpr auto FeaturesFile::InternalNewImpl_() { + constexpr auto arena_bits = ::google::protobuf::internal::EncodePlacementArenaOffsets({ + PROTOBUF_FIELD_OFFSET(FeaturesFile, _impl_.featurerecords_) + + decltype(FeaturesFile::_impl_.featurerecords_):: + InternalGetArenaOffset( + ::google::protobuf::Message::internal_visibility()), + PROTOBUF_FIELD_OFFSET(FeaturesFile, _impl_.symbolnamesbyname_) + + decltype(FeaturesFile::_impl_.symbolnamesbyname_):: + InternalGetArenaOffset( + ::google::protobuf::Message::internal_visibility()), + PROTOBUF_FIELD_OFFSET(FeaturesFile, _impl_.symbolnamesbyname_) + + decltype(FeaturesFile::_impl_.symbolnamesbyname_):: + InternalGetArenaOffsetAlt( + ::google::protobuf::Message::internal_visibility()), + }); + if (arena_bits.has_value()) { + return ::google::protobuf::internal::MessageCreator::CopyInit( + sizeof(FeaturesFile), alignof(FeaturesFile), *arena_bits); + } else { + return ::google::protobuf::internal::MessageCreator(&FeaturesFile::PlacementNew_, + sizeof(FeaturesFile), + alignof(FeaturesFile)); + } } +PROTOBUF_CONSTINIT +PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 +const ::google::protobuf::internal::ClassDataFull FeaturesFile::_class_data_ = { + ::google::protobuf::internal::ClassData{ + &_FeaturesFile_default_instance_._instance, + &_table_.header, + nullptr, // OnDemandRegisterArenaDtor + nullptr, // IsInitialized + &FeaturesFile::MergeImpl, + ::google::protobuf::Message::GetNewImpl(), +#if defined(PROTOBUF_CUSTOM_VTABLE) + &FeaturesFile::SharedDtor, + ::google::protobuf::Message::GetClearImpl(), &FeaturesFile::ByteSizeLong, + &FeaturesFile::_InternalSerialize, +#endif // PROTOBUF_CUSTOM_VTABLE + PROTOBUF_FIELD_OFFSET(FeaturesFile, _impl_._cached_size_), + false, + }, + &FeaturesFile::kDescriptorMethods, + &descriptor_table_featuresfile_2eproto, + nullptr, // tracker +}; +const ::google::protobuf::internal::ClassData* FeaturesFile::GetClassData() const { + ::google::protobuf::internal::PrefetchToLocalCache(&_class_data_); + ::google::protobuf::internal::PrefetchToLocalCache(_class_data_.tc_table); + return _class_data_.base(); +} +PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 +const ::_pbi::TcParseTable<3, 7, 3, 73, 2> FeaturesFile::_table_ = { + { + PROTOBUF_FIELD_OFFSET(FeaturesFile, _impl_._has_bits_), + 0, // no _extensions_ + 9, 56, // max_field_number, fast_idx_mask + offsetof(decltype(_table_), field_lookup_table), + 4294966796, // skipmap + offsetof(decltype(_table_), field_entries), + 7, // num_field_entries + 3, // num_aux_entries + offsetof(decltype(_table_), aux_entries), + _class_data_.base(), + nullptr, // post_loop_handler + ::_pbi::TcParser::GenericFallback, // fallback + #ifdef PROTOBUF_PREFETCH_PARSE_TABLE + ::_pbi::TcParser::GetTable<::Odb::Lib::Protobuf::FeaturesFile>(), // to_prefetch + #endif // PROTOBUF_PREFETCH_PARSE_TABLE + }, {{ + // repeated .Odb.Lib.Protobuf.FeaturesFile.FeatureRecord featureRecords = 8; + {::_pbi::TcParser::FastMtR1, + {66, 63, 0, PROTOBUF_FIELD_OFFSET(FeaturesFile, _impl_.featurerecords_)}}, + // optional string units = 1; + {::_pbi::TcParser::FastUS1, + {10, 0, 0, PROTOBUF_FIELD_OFFSET(FeaturesFile, _impl_.units_)}}, + // optional uint32 id = 2; + {::_pbi::TcParser::SingularVarintNoZag1<::uint32_t, offsetof(FeaturesFile, _impl_.id_), 3>(), + {16, 3, 0, PROTOBUF_FIELD_OFFSET(FeaturesFile, _impl_.id_)}}, + {::_pbi::TcParser::MiniParse, {}}, + {::_pbi::TcParser::MiniParse, {}}, + // optional string path = 5; + {::_pbi::TcParser::FastUS1, + {42, 1, 0, PROTOBUF_FIELD_OFFSET(FeaturesFile, _impl_.path_)}}, + // optional string directory = 6; + {::_pbi::TcParser::FastUS1, + {50, 2, 0, PROTOBUF_FIELD_OFFSET(FeaturesFile, _impl_.directory_)}}, + // optional int32 numFeatures = 7; + {::_pbi::TcParser::SingularVarintNoZag1<::uint32_t, offsetof(FeaturesFile, _impl_.numfeatures_), 4>(), + {56, 4, 0, PROTOBUF_FIELD_OFFSET(FeaturesFile, _impl_.numfeatures_)}}, + }}, {{ + 65535, 65535 + }}, {{ + // optional string units = 1; + {PROTOBUF_FIELD_OFFSET(FeaturesFile, _impl_.units_), _Internal::kHasBitsOffset + 0, 0, + (0 | ::_fl::kFcOptional | ::_fl::kUtf8String | ::_fl::kRepAString)}, + // optional uint32 id = 2; + {PROTOBUF_FIELD_OFFSET(FeaturesFile, _impl_.id_), _Internal::kHasBitsOffset + 3, 0, + (0 | ::_fl::kFcOptional | ::_fl::kUInt32)}, + // optional string path = 5; + {PROTOBUF_FIELD_OFFSET(FeaturesFile, _impl_.path_), _Internal::kHasBitsOffset + 1, 0, + (0 | ::_fl::kFcOptional | ::_fl::kUtf8String | ::_fl::kRepAString)}, + // optional string directory = 6; + {PROTOBUF_FIELD_OFFSET(FeaturesFile, _impl_.directory_), _Internal::kHasBitsOffset + 2, 0, + (0 | ::_fl::kFcOptional | ::_fl::kUtf8String | ::_fl::kRepAString)}, + // optional int32 numFeatures = 7; + {PROTOBUF_FIELD_OFFSET(FeaturesFile, _impl_.numfeatures_), _Internal::kHasBitsOffset + 4, 0, + (0 | ::_fl::kFcOptional | ::_fl::kInt32)}, + // repeated .Odb.Lib.Protobuf.FeaturesFile.FeatureRecord featureRecords = 8; + {PROTOBUF_FIELD_OFFSET(FeaturesFile, _impl_.featurerecords_), -1, 0, + (0 | ::_fl::kFcRepeated | ::_fl::kMessage | ::_fl::kTvTable)}, + // map symbolNamesByName = 9; + {PROTOBUF_FIELD_OFFSET(FeaturesFile, _impl_.symbolnamesbyname_), -1, 1, + (0 | ::_fl::kFcRepeated | ::_fl::kMap)}, + }}, {{ + {::_pbi::TcParser::GetTable<::Odb::Lib::Protobuf::FeaturesFile_FeatureRecord>()}, + {::_pbi::TcParser::GetMapAuxInfo< + decltype(FeaturesFile()._impl_.symbolnamesbyname_)>( + 1, 0, 0, 9, + 11)}, + {::_pbi::TcParser::GetTable<::Odb::Lib::Protobuf::SymbolName>()}, + }}, {{ + "\35\5\0\4\11\0\0\21" + "Odb.Lib.Protobuf.FeaturesFile" + "units" + "path" + "directory" + "symbolNamesByName" + }}, +}; -void FeaturesFile::Clear() { +PROTOBUF_NOINLINE void FeaturesFile::Clear() { // @@protoc_insertion_point(message_clear_start:Odb.Lib.Protobuf.FeaturesFile) - uint32_t cached_has_bits = 0; + ::google::protobuf::internal::TSanWrite(&_impl_); + ::uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; @@ -1692,286 +1788,191 @@ void FeaturesFile::Clear() { } } if (cached_has_bits & 0x00000018u) { - ::memset(&_impl_.id_, 0, static_cast( + ::memset(&_impl_.id_, 0, static_cast<::size_t>( reinterpret_cast(&_impl_.numfeatures_) - reinterpret_cast(&_impl_.id_)) + sizeof(_impl_.numfeatures_)); } _impl_._has_bits_.Clear(); - _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); -} - -const char* FeaturesFile::_InternalParse(const char* ptr, ::_pbi::ParseContext* ctx) { -#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure - _Internal::HasBits has_bits{}; - while (!ctx->Done(&ptr)) { - uint32_t tag; - ptr = ::_pbi::ReadTag(ptr, &tag); - switch (tag >> 3) { - // optional string units = 1; - case 1: - if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 10)) { - auto str = _internal_mutable_units(); - ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); - CHK_(ptr); - CHK_(::_pbi::VerifyUTF8(str, "Odb.Lib.Protobuf.FeaturesFile.units")); - } else - goto handle_unusual; - continue; - // optional uint32 id = 2; - case 2: - if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 16)) { - _Internal::set_has_id(&has_bits); - _impl_.id_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr); - CHK_(ptr); - } else - goto handle_unusual; - continue; - // optional string path = 5; - case 5: - if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 42)) { - auto str = _internal_mutable_path(); - ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); - CHK_(ptr); - CHK_(::_pbi::VerifyUTF8(str, "Odb.Lib.Protobuf.FeaturesFile.path")); - } else - goto handle_unusual; - continue; - // optional string directory = 6; - case 6: - if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 50)) { - auto str = _internal_mutable_directory(); - ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); - CHK_(ptr); - CHK_(::_pbi::VerifyUTF8(str, "Odb.Lib.Protobuf.FeaturesFile.directory")); - } else - goto handle_unusual; - continue; - // optional int32 numFeatures = 7; - case 7: - if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 56)) { - _Internal::set_has_numfeatures(&has_bits); - _impl_.numfeatures_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr); - CHK_(ptr); - } else - goto handle_unusual; - continue; - // repeated .Odb.Lib.Protobuf.FeaturesFile.FeatureRecord featureRecords = 8; - case 8: - if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 66)) { - ptr -= 1; - do { - ptr += 1; - ptr = ctx->ParseMessage(_internal_add_featurerecords(), ptr); - CHK_(ptr); - if (!ctx->DataAvailable(ptr)) break; - } while (::PROTOBUF_NAMESPACE_ID::internal::ExpectTag<66>(ptr)); - } else - goto handle_unusual; - continue; - // map symbolNamesByName = 9; - case 9: - if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 74)) { - ptr -= 1; - do { - ptr += 1; - ptr = ctx->ParseMessage(&_impl_.symbolnamesbyname_, ptr); - CHK_(ptr); - if (!ctx->DataAvailable(ptr)) break; - } while (::PROTOBUF_NAMESPACE_ID::internal::ExpectTag<74>(ptr)); - } else - goto handle_unusual; - continue; - default: - goto handle_unusual; - } // switch - handle_unusual: - if ((tag == 0) || ((tag & 7) == 4)) { - CHK_(ptr); - ctx->SetLastTag(tag); - goto message_done; - } - ptr = UnknownFieldParse( - tag, - _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(), - ptr, ctx); - CHK_(ptr != nullptr); - } // while -message_done: - _impl_._has_bits_.Or(has_bits); - return ptr; -failure: - ptr = nullptr; - goto message_done; -#undef CHK_ -} - -uint8_t* FeaturesFile::_InternalSerialize( - uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { - // @@protoc_insertion_point(serialize_to_array_start:Odb.Lib.Protobuf.FeaturesFile) - uint32_t cached_has_bits = 0; - (void) cached_has_bits; - - // optional string units = 1; - if (_internal_has_units()) { - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( - this->_internal_units().data(), static_cast(this->_internal_units().length()), - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, - "Odb.Lib.Protobuf.FeaturesFile.units"); - target = stream->WriteStringMaybeAliased( - 1, this->_internal_units(), target); - } - - // optional uint32 id = 2; - if (_internal_has_id()) { - target = stream->EnsureSpace(target); - target = ::_pbi::WireFormatLite::WriteUInt32ToArray(2, this->_internal_id(), target); - } - - // optional string path = 5; - if (_internal_has_path()) { - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( - this->_internal_path().data(), static_cast(this->_internal_path().length()), - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, - "Odb.Lib.Protobuf.FeaturesFile.path"); - target = stream->WriteStringMaybeAliased( - 5, this->_internal_path(), target); - } - - // optional string directory = 6; - if (_internal_has_directory()) { - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( - this->_internal_directory().data(), static_cast(this->_internal_directory().length()), - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, - "Odb.Lib.Protobuf.FeaturesFile.directory"); - target = stream->WriteStringMaybeAliased( - 6, this->_internal_directory(), target); - } - - // optional int32 numFeatures = 7; - if (_internal_has_numfeatures()) { - target = stream->EnsureSpace(target); - target = ::_pbi::WireFormatLite::WriteInt32ToArray(7, this->_internal_numfeatures(), target); - } - - // repeated .Odb.Lib.Protobuf.FeaturesFile.FeatureRecord featureRecords = 8; - for (unsigned i = 0, - n = static_cast(this->_internal_featurerecords_size()); i < n; i++) { - const auto& repfield = this->_internal_featurerecords(i); - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: - InternalWriteMessage(8, repfield, repfield.GetCachedSize(), target, stream); - } - - // map symbolNamesByName = 9; - if (!this->_internal_symbolnamesbyname().empty()) { - using MapType = ::_pb::Map; - using WireHelper = FeaturesFile_SymbolNamesByNameEntry_DoNotUse::Funcs; - const auto& map_field = this->_internal_symbolnamesbyname(); - auto check_utf8 = [](const MapType::value_type& entry) { - (void)entry; - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( - entry.first.data(), static_cast(entry.first.length()), - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, - "Odb.Lib.Protobuf.FeaturesFile.SymbolNamesByNameEntry.key"); - }; - - if (stream->IsSerializationDeterministic() && map_field.size() > 1) { - for (const auto& entry : ::_pbi::MapSorterPtr(map_field)) { - target = WireHelper::InternalSerialize(9, entry.first, entry.second, target, stream); - check_utf8(entry); - } - } else { - for (const auto& entry : map_field) { - target = WireHelper::InternalSerialize(9, entry.first, entry.second, target, stream); - check_utf8(entry); - } - } - } - - if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = ::_pbi::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:Odb.Lib.Protobuf.FeaturesFile) - return target; + _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); } -size_t FeaturesFile::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:Odb.Lib.Protobuf.FeaturesFile) - size_t total_size = 0; - - uint32_t cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - // repeated .Odb.Lib.Protobuf.FeaturesFile.FeatureRecord featureRecords = 8; - total_size += 1UL * this->_internal_featurerecords_size(); - for (const auto& msg : this->_impl_.featurerecords_) { - total_size += - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(msg); - } - - // map symbolNamesByName = 9; - total_size += 1 * - ::PROTOBUF_NAMESPACE_ID::internal::FromIntSize(this->_internal_symbolnamesbyname_size()); - for (::PROTOBUF_NAMESPACE_ID::Map< std::string, ::Odb::Lib::Protobuf::SymbolName >::const_iterator - it = this->_internal_symbolnamesbyname().begin(); - it != this->_internal_symbolnamesbyname().end(); ++it) { - total_size += FeaturesFile_SymbolNamesByNameEntry_DoNotUse::Funcs::ByteSizeLong(it->first, it->second); - } - - cached_has_bits = _impl_._has_bits_[0]; - if (cached_has_bits & 0x0000001fu) { - // optional string units = 1; - if (cached_has_bits & 0x00000001u) { - total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( - this->_internal_units()); - } - - // optional string path = 5; - if (cached_has_bits & 0x00000002u) { - total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( - this->_internal_path()); - } - - // optional string directory = 6; - if (cached_has_bits & 0x00000004u) { - total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( - this->_internal_directory()); - } - - // optional uint32 id = 2; - if (cached_has_bits & 0x00000008u) { - total_size += ::_pbi::WireFormatLite::UInt32SizePlusOne(this->_internal_id()); - } - - // optional int32 numFeatures = 7; - if (cached_has_bits & 0x00000010u) { - total_size += ::_pbi::WireFormatLite::Int32SizePlusOne(this->_internal_numfeatures()); - } - - } - return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); -} - -const ::PROTOBUF_NAMESPACE_ID::Message::ClassData FeaturesFile::_class_data_ = { - ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSourceCheck, - FeaturesFile::MergeImpl -}; -const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*FeaturesFile::GetClassData() const { return &_class_data_; } - - -void FeaturesFile::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg) { +#if defined(PROTOBUF_CUSTOM_VTABLE) + ::uint8_t* FeaturesFile::_InternalSerialize( + const MessageLite& base, ::uint8_t* target, + ::google::protobuf::io::EpsCopyOutputStream* stream) { + const FeaturesFile& this_ = static_cast(base); +#else // PROTOBUF_CUSTOM_VTABLE + ::uint8_t* FeaturesFile::_InternalSerialize( + ::uint8_t* target, + ::google::protobuf::io::EpsCopyOutputStream* stream) const { + const FeaturesFile& this_ = *this; +#endif // PROTOBUF_CUSTOM_VTABLE + // @@protoc_insertion_point(serialize_to_array_start:Odb.Lib.Protobuf.FeaturesFile) + ::uint32_t cached_has_bits = 0; + (void)cached_has_bits; + + cached_has_bits = this_._impl_._has_bits_[0]; + // optional string units = 1; + if (cached_has_bits & 0x00000001u) { + const std::string& _s = this_._internal_units(); + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + _s.data(), static_cast(_s.length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "Odb.Lib.Protobuf.FeaturesFile.units"); + target = stream->WriteStringMaybeAliased(1, _s, target); + } + + // optional uint32 id = 2; + if (cached_has_bits & 0x00000008u) { + target = stream->EnsureSpace(target); + target = ::_pbi::WireFormatLite::WriteUInt32ToArray( + 2, this_._internal_id(), target); + } + + // optional string path = 5; + if (cached_has_bits & 0x00000002u) { + const std::string& _s = this_._internal_path(); + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + _s.data(), static_cast(_s.length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "Odb.Lib.Protobuf.FeaturesFile.path"); + target = stream->WriteStringMaybeAliased(5, _s, target); + } + + // optional string directory = 6; + if (cached_has_bits & 0x00000004u) { + const std::string& _s = this_._internal_directory(); + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + _s.data(), static_cast(_s.length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "Odb.Lib.Protobuf.FeaturesFile.directory"); + target = stream->WriteStringMaybeAliased(6, _s, target); + } + + // optional int32 numFeatures = 7; + if (cached_has_bits & 0x00000010u) { + target = ::google::protobuf::internal::WireFormatLite:: + WriteInt32ToArrayWithField<7>( + stream, this_._internal_numfeatures(), target); + } + + // repeated .Odb.Lib.Protobuf.FeaturesFile.FeatureRecord featureRecords = 8; + for (unsigned i = 0, n = static_cast( + this_._internal_featurerecords_size()); + i < n; i++) { + const auto& repfield = this_._internal_featurerecords().Get(i); + target = + ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( + 8, repfield, repfield.GetCachedSize(), + target, stream); + } + + // map symbolNamesByName = 9; + if (!this_._internal_symbolnamesbyname().empty()) { + using MapType = ::google::protobuf::Map; + using WireHelper = _pbi::MapEntryFuncs; + const auto& field = this_._internal_symbolnamesbyname(); + + if (stream->IsSerializationDeterministic() && field.size() > 1) { + for (const auto& entry : ::google::protobuf::internal::MapSorterPtr(field)) { + target = WireHelper::InternalSerialize( + 9, entry.first, entry.second, target, stream); + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + entry.first.data(), static_cast(entry.first.length()), + ::google::protobuf::internal::WireFormatLite::SERIALIZE, "Odb.Lib.Protobuf.FeaturesFile.symbolNamesByName"); + } + } else { + for (const auto& entry : field) { + target = WireHelper::InternalSerialize( + 9, entry.first, entry.second, target, stream); + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + entry.first.data(), static_cast(entry.first.length()), + ::google::protobuf::internal::WireFormatLite::SERIALIZE, "Odb.Lib.Protobuf.FeaturesFile.symbolNamesByName"); + } + } + } + + if (PROTOBUF_PREDICT_FALSE(this_._internal_metadata_.have_unknown_fields())) { + target = + ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( + this_._internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); + } + // @@protoc_insertion_point(serialize_to_array_end:Odb.Lib.Protobuf.FeaturesFile) + return target; + } + +#if defined(PROTOBUF_CUSTOM_VTABLE) + ::size_t FeaturesFile::ByteSizeLong(const MessageLite& base) { + const FeaturesFile& this_ = static_cast(base); +#else // PROTOBUF_CUSTOM_VTABLE + ::size_t FeaturesFile::ByteSizeLong() const { + const FeaturesFile& this_ = *this; +#endif // PROTOBUF_CUSTOM_VTABLE + // @@protoc_insertion_point(message_byte_size_start:Odb.Lib.Protobuf.FeaturesFile) + ::size_t total_size = 0; + + ::uint32_t cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void)cached_has_bits; + + ::_pbi::Prefetch5LinesFrom7Lines(&this_); + { + // repeated .Odb.Lib.Protobuf.FeaturesFile.FeatureRecord featureRecords = 8; + { + total_size += 1UL * this_._internal_featurerecords_size(); + for (const auto& msg : this_._internal_featurerecords()) { + total_size += ::google::protobuf::internal::WireFormatLite::MessageSize(msg); + } + } + // map symbolNamesByName = 9; + { + total_size += + 1 * ::google::protobuf::internal::FromIntSize(this_._internal_symbolnamesbyname_size()); + for (const auto& entry : this_._internal_symbolnamesbyname()) { + total_size += _pbi::MapEntryFuncs::ByteSizeLong(entry.first, entry.second); + } + } + } + cached_has_bits = this_._impl_._has_bits_[0]; + if (cached_has_bits & 0x0000001fu) { + // optional string units = 1; + if (cached_has_bits & 0x00000001u) { + total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize( + this_._internal_units()); + } + // optional string path = 5; + if (cached_has_bits & 0x00000002u) { + total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize( + this_._internal_path()); + } + // optional string directory = 6; + if (cached_has_bits & 0x00000004u) { + total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize( + this_._internal_directory()); + } + // optional uint32 id = 2; + if (cached_has_bits & 0x00000008u) { + total_size += ::_pbi::WireFormatLite::UInt32SizePlusOne( + this_._internal_id()); + } + // optional int32 numFeatures = 7; + if (cached_has_bits & 0x00000010u) { + total_size += ::_pbi::WireFormatLite::Int32SizePlusOne( + this_._internal_numfeatures()); + } + } + return this_.MaybeComputeUnknownFieldsSize(total_size, + &this_._impl_._cached_size_); + } + +void FeaturesFile::MergeImpl(::google::protobuf::MessageLite& to_msg, const ::google::protobuf::MessageLite& from_msg) { auto* const _this = static_cast(&to_msg); auto& from = static_cast(from_msg); // @@protoc_insertion_point(class_specific_merge_from_start:Odb.Lib.Protobuf.FeaturesFile) - GOOGLE_DCHECK_NE(&from, _this); - uint32_t cached_has_bits = 0; + ABSL_DCHECK_NE(&from, _this); + ::uint32_t cached_has_bits = 0; (void) cached_has_bits; - _this->_impl_.featurerecords_.MergeFrom(from._impl_.featurerecords_); + _this->_internal_mutable_featurerecords()->MergeFrom( + from._internal_featurerecords()); _this->_impl_.symbolnamesbyname_.MergeFrom(from._impl_.symbolnamesbyname_); cached_has_bits = from._impl_._has_bits_[0]; if (cached_has_bits & 0x0000001fu) { @@ -1990,9 +1991,9 @@ void FeaturesFile::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::P if (cached_has_bits & 0x00000010u) { _this->_impl_.numfeatures_ = from._impl_.numfeatures_; } - _this->_impl_._has_bits_[0] |= cached_has_bits; } - _this->_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); + _this->_impl_._has_bits_[0] |= cached_has_bits; + _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); } void FeaturesFile::CopyFrom(const FeaturesFile& from) { @@ -2002,31 +2003,19 @@ void FeaturesFile::CopyFrom(const FeaturesFile& from) { MergeFrom(from); } -bool FeaturesFile::IsInitialized() const { - return true; -} -void FeaturesFile::InternalSwap(FeaturesFile* other) { +void FeaturesFile::InternalSwap(FeaturesFile* PROTOBUF_RESTRICT other) { using std::swap; - auto* lhs_arena = GetArenaForAllocation(); - auto* rhs_arena = other->GetArenaForAllocation(); + auto* arena = GetArena(); + ABSL_DCHECK_EQ(arena, other->GetArena()); _internal_metadata_.InternalSwap(&other->_internal_metadata_); swap(_impl_._has_bits_[0], other->_impl_._has_bits_[0]); _impl_.featurerecords_.InternalSwap(&other->_impl_.featurerecords_); _impl_.symbolnamesbyname_.InternalSwap(&other->_impl_.symbolnamesbyname_); - ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( - &_impl_.units_, lhs_arena, - &other->_impl_.units_, rhs_arena - ); - ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( - &_impl_.path_, lhs_arena, - &other->_impl_.path_, rhs_arena - ); - ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( - &_impl_.directory_, lhs_arena, - &other->_impl_.directory_, rhs_arena - ); - ::PROTOBUF_NAMESPACE_ID::internal::memswap< + ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.units_, &other->_impl_.units_, arena); + ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.path_, &other->_impl_.path_, arena); + ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.directory_, &other->_impl_.directory_, arena); + ::google::protobuf::internal::memswap< PROTOBUF_FIELD_OFFSET(FeaturesFile, _impl_.numfeatures_) + sizeof(FeaturesFile::_impl_.numfeatures_) - PROTOBUF_FIELD_OFFSET(FeaturesFile, _impl_.id_)>( @@ -2034,34 +2023,20 @@ void FeaturesFile::InternalSwap(FeaturesFile* other) { reinterpret_cast(&other->_impl_.id_)); } -::PROTOBUF_NAMESPACE_ID::Metadata FeaturesFile::GetMetadata() const { - return ::_pbi::AssignDescriptors( - &descriptor_table_featuresfile_2eproto_getter, &descriptor_table_featuresfile_2eproto_once, - file_level_metadata_featuresfile_2eproto[3]); +::google::protobuf::Metadata FeaturesFile::GetMetadata() const { + return ::google::protobuf::Message::GetMetadataImpl(GetClassData()->full()); } - // @@protoc_insertion_point(namespace_scope) } // namespace Protobuf } // namespace Lib } // namespace Odb -PROTOBUF_NAMESPACE_OPEN -template<> PROTOBUF_NOINLINE ::Odb::Lib::Protobuf::FeaturesFile_FeatureRecord_AttributeLookupTableEntry_DoNotUse* -Arena::CreateMaybeMessage< ::Odb::Lib::Protobuf::FeaturesFile_FeatureRecord_AttributeLookupTableEntry_DoNotUse >(Arena* arena) { - return Arena::CreateMessageInternal< ::Odb::Lib::Protobuf::FeaturesFile_FeatureRecord_AttributeLookupTableEntry_DoNotUse >(arena); -} -template<> PROTOBUF_NOINLINE ::Odb::Lib::Protobuf::FeaturesFile_FeatureRecord* -Arena::CreateMaybeMessage< ::Odb::Lib::Protobuf::FeaturesFile_FeatureRecord >(Arena* arena) { - return Arena::CreateMessageInternal< ::Odb::Lib::Protobuf::FeaturesFile_FeatureRecord >(arena); -} -template<> PROTOBUF_NOINLINE ::Odb::Lib::Protobuf::FeaturesFile_SymbolNamesByNameEntry_DoNotUse* -Arena::CreateMaybeMessage< ::Odb::Lib::Protobuf::FeaturesFile_SymbolNamesByNameEntry_DoNotUse >(Arena* arena) { - return Arena::CreateMessageInternal< ::Odb::Lib::Protobuf::FeaturesFile_SymbolNamesByNameEntry_DoNotUse >(arena); -} -template<> PROTOBUF_NOINLINE ::Odb::Lib::Protobuf::FeaturesFile* -Arena::CreateMaybeMessage< ::Odb::Lib::Protobuf::FeaturesFile >(Arena* arena) { - return Arena::CreateMessageInternal< ::Odb::Lib::Protobuf::FeaturesFile >(arena); -} -PROTOBUF_NAMESPACE_CLOSE - +namespace google { +namespace protobuf { +} // namespace protobuf +} // namespace google // @@protoc_insertion_point(global_scope) -#include +PROTOBUF_ATTRIBUTE_INIT_PRIORITY2 static ::std::false_type + _static_init2_ PROTOBUF_UNUSED = + (::_pbi::AddDescriptors(&descriptor_table_featuresfile_2eproto), + ::std::false_type{}); +#include "google/protobuf/port_undef.inc" diff --git a/OdbDesignLib/ProtoBuf/featuresfile.pb.h b/OdbDesignLib/ProtoBuf/featuresfile.pb.h index 1451b7db..1651c398 100644 --- a/OdbDesignLib/ProtoBuf/featuresfile.pb.h +++ b/OdbDesignLib/ProtoBuf/featuresfile.pb.h @@ -1,56 +1,63 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE // source: featuresfile.proto +// Protobuf C++ Version: 5.29.2 -#ifndef GOOGLE_PROTOBUF_INCLUDED_featuresfile_2eproto -#define GOOGLE_PROTOBUF_INCLUDED_featuresfile_2eproto +#ifndef featuresfile_2eproto_2epb_2eh +#define featuresfile_2eproto_2epb_2eh #include #include - -#include -#if PROTOBUF_VERSION < 3021000 -#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 3021012 < 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. +#include +#include + +#include "google/protobuf/runtime_version.h" +#if PROTOBUF_VERSION != 5029002 +#error "Protobuf C++ gencode is built with an incompatible version of" +#error "Protobuf C++ headers/runtime. See" +#error "https://protobuf.dev/support/cross-version-runtime-guarantee/#cpp" #endif - -#include -#include -#include -#include -#include -#include -#include -#include -#include // IWYU pragma: export -#include // IWYU pragma: export -#include // IWYU pragma: export -#include -#include -#include -#include +#include "google/protobuf/io/coded_stream.h" +#include "google/protobuf/arena.h" +#include "google/protobuf/arenastring.h" +#include "google/protobuf/generated_message_tctable_decl.h" +#include "google/protobuf/generated_message_util.h" +#include "google/protobuf/metadata_lite.h" +#include "google/protobuf/generated_message_reflection.h" +#include "google/protobuf/message.h" +#include "google/protobuf/message_lite.h" +#include "google/protobuf/repeated_field.h" // IWYU pragma: export +#include "google/protobuf/extension_set.h" // IWYU pragma: export +#include "google/protobuf/map.h" // IWYU pragma: export +#include "google/protobuf/map_entry.h" +#include "google/protobuf/map_field_inl.h" +#include "google/protobuf/generated_enum_reflection.h" +#include "google/protobuf/unknown_field_set.h" #include "common.pb.h" #include "enums.pb.h" #include "symbolname.pb.h" // @@protoc_insertion_point(includes) -#include + +// Must be included last. +#include "google/protobuf/port_def.inc" + #define PROTOBUF_INTERNAL_EXPORT_featuresfile_2eproto ODBDESIGN_EXPORT -PROTOBUF_NAMESPACE_OPEN + +namespace google { +namespace protobuf { namespace internal { -class AnyMetadata; +template +::absl::string_view GetAnyMessageName(); } // namespace internal -PROTOBUF_NAMESPACE_CLOSE +} // namespace protobuf +} // namespace google // Internal implementation detail -- do not use these members. struct ODBDESIGN_EXPORT TableStruct_featuresfile_2eproto { - static const uint32_t offsets[]; + static const ::uint32_t offsets[]; }; -ODBDESIGN_EXPORT extern const ::PROTOBUF_NAMESPACE_ID::internal::DescriptorTable descriptor_table_featuresfile_2eproto; +ODBDESIGN_EXPORT extern const ::google::protobuf::internal::DescriptorTable + descriptor_table_featuresfile_2eproto; namespace Odb { namespace Lib { namespace Protobuf { @@ -69,16 +76,14 @@ ODBDESIGN_EXPORT extern FeaturesFile_SymbolNamesByNameEntry_DoNotUseDefaultTypeI } // namespace Protobuf } // namespace Lib } // namespace Odb -PROTOBUF_NAMESPACE_OPEN -template<> ODBDESIGN_EXPORT ::Odb::Lib::Protobuf::FeaturesFile* Arena::CreateMaybeMessage<::Odb::Lib::Protobuf::FeaturesFile>(Arena*); -template<> ODBDESIGN_EXPORT ::Odb::Lib::Protobuf::FeaturesFile_FeatureRecord* Arena::CreateMaybeMessage<::Odb::Lib::Protobuf::FeaturesFile_FeatureRecord>(Arena*); -template<> ODBDESIGN_EXPORT ::Odb::Lib::Protobuf::FeaturesFile_FeatureRecord_AttributeLookupTableEntry_DoNotUse* Arena::CreateMaybeMessage<::Odb::Lib::Protobuf::FeaturesFile_FeatureRecord_AttributeLookupTableEntry_DoNotUse>(Arena*); -template<> ODBDESIGN_EXPORT ::Odb::Lib::Protobuf::FeaturesFile_SymbolNamesByNameEntry_DoNotUse* Arena::CreateMaybeMessage<::Odb::Lib::Protobuf::FeaturesFile_SymbolNamesByNameEntry_DoNotUse>(Arena*); -PROTOBUF_NAMESPACE_CLOSE +namespace google { +namespace protobuf { +} // namespace protobuf +} // namespace google + namespace Odb { namespace Lib { namespace Protobuf { - enum FeaturesFile_FeatureRecord_Type : int { FeaturesFile_FeatureRecord_Type_Arc = 0, FeaturesFile_FeatureRecord_Type_Pad = 1, @@ -86,82 +91,147 @@ enum FeaturesFile_FeatureRecord_Type : int { FeaturesFile_FeatureRecord_Type_Barcode = 3, FeaturesFile_FeatureRecord_Type_Text = 4, FeaturesFile_FeatureRecord_Type_Line = 5, - FeaturesFile_FeatureRecord_Type_FeaturesFile_FeatureRecord_Type_INT_MIN_SENTINEL_DO_NOT_USE_ = std::numeric_limits::min(), - FeaturesFile_FeatureRecord_Type_FeaturesFile_FeatureRecord_Type_INT_MAX_SENTINEL_DO_NOT_USE_ = std::numeric_limits::max() + FeaturesFile_FeatureRecord_Type_FeaturesFile_FeatureRecord_Type_INT_MIN_SENTINEL_DO_NOT_USE_ = + std::numeric_limits<::int32_t>::min(), + FeaturesFile_FeatureRecord_Type_FeaturesFile_FeatureRecord_Type_INT_MAX_SENTINEL_DO_NOT_USE_ = + std::numeric_limits<::int32_t>::max(), }; + ODBDESIGN_EXPORT bool FeaturesFile_FeatureRecord_Type_IsValid(int value); -constexpr FeaturesFile_FeatureRecord_Type FeaturesFile_FeatureRecord_Type_Type_MIN = FeaturesFile_FeatureRecord_Type_Arc; -constexpr FeaturesFile_FeatureRecord_Type FeaturesFile_FeatureRecord_Type_Type_MAX = FeaturesFile_FeatureRecord_Type_Line; -constexpr int FeaturesFile_FeatureRecord_Type_Type_ARRAYSIZE = FeaturesFile_FeatureRecord_Type_Type_MAX + 1; - -ODBDESIGN_EXPORT const ::PROTOBUF_NAMESPACE_ID::EnumDescriptor* FeaturesFile_FeatureRecord_Type_descriptor(); -template -inline const std::string& FeaturesFile_FeatureRecord_Type_Name(T enum_t_value) { - static_assert(::std::is_same::value || - ::std::is_integral::value, - "Incorrect type passed to function FeaturesFile_FeatureRecord_Type_Name."); - return ::PROTOBUF_NAMESPACE_ID::internal::NameOfEnum( - FeaturesFile_FeatureRecord_Type_descriptor(), enum_t_value); -} -inline bool FeaturesFile_FeatureRecord_Type_Parse( - ::PROTOBUF_NAMESPACE_ID::ConstStringParam name, FeaturesFile_FeatureRecord_Type* value) { - return ::PROTOBUF_NAMESPACE_ID::internal::ParseNamedEnum( - FeaturesFile_FeatureRecord_Type_descriptor(), name, value); +ODBDESIGN_EXPORT extern const uint32_t FeaturesFile_FeatureRecord_Type_internal_data_[]; +constexpr FeaturesFile_FeatureRecord_Type FeaturesFile_FeatureRecord_Type_Type_MIN = static_cast(0); +constexpr FeaturesFile_FeatureRecord_Type FeaturesFile_FeatureRecord_Type_Type_MAX = static_cast(5); +constexpr int FeaturesFile_FeatureRecord_Type_Type_ARRAYSIZE = 5 + 1; +ODBDESIGN_EXPORT const ::google::protobuf::EnumDescriptor* +FeaturesFile_FeatureRecord_Type_descriptor(); +template +const std::string& FeaturesFile_FeatureRecord_Type_Name(T value) { + static_assert(std::is_same::value || + std::is_integral::value, + "Incorrect type passed to Type_Name()."); + return FeaturesFile_FeatureRecord_Type_Name(static_cast(value)); +} +template <> +inline const std::string& FeaturesFile_FeatureRecord_Type_Name(FeaturesFile_FeatureRecord_Type value) { + return ::google::protobuf::internal::NameOfDenseEnum( + static_cast(value)); +} +inline bool FeaturesFile_FeatureRecord_Type_Parse(absl::string_view name, FeaturesFile_FeatureRecord_Type* value) { + return ::google::protobuf::internal::ParseNamedEnum( + FeaturesFile_FeatureRecord_Type_descriptor(), name, value); } + // =================================================================== -class FeaturesFile_FeatureRecord_AttributeLookupTableEntry_DoNotUse : public ::PROTOBUF_NAMESPACE_ID::internal::MapEntry { -public: - typedef ::PROTOBUF_NAMESPACE_ID::internal::MapEntry SuperType; + +// ------------------------------------------------------------------- + +class FeaturesFile_FeatureRecord_AttributeLookupTableEntry_DoNotUse final + : public ::google::protobuf::internal::MapEntry< + std::string, std::string, + ::google::protobuf::internal::WireFormatLite::TYPE_STRING, + ::google::protobuf::internal::WireFormatLite::TYPE_STRING> { + public: + using SuperType = ::google::protobuf::internal::MapEntry< + std::string, std::string, + ::google::protobuf::internal::WireFormatLite::TYPE_STRING, + ::google::protobuf::internal::WireFormatLite::TYPE_STRING>; FeaturesFile_FeatureRecord_AttributeLookupTableEntry_DoNotUse(); + template explicit PROTOBUF_CONSTEXPR FeaturesFile_FeatureRecord_AttributeLookupTableEntry_DoNotUse( - ::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); - explicit FeaturesFile_FeatureRecord_AttributeLookupTableEntry_DoNotUse(::PROTOBUF_NAMESPACE_ID::Arena* arena); - void MergeFrom(const FeaturesFile_FeatureRecord_AttributeLookupTableEntry_DoNotUse& other); - static const FeaturesFile_FeatureRecord_AttributeLookupTableEntry_DoNotUse* internal_default_instance() { return reinterpret_cast(&_FeaturesFile_FeatureRecord_AttributeLookupTableEntry_DoNotUse_default_instance_); } - static bool ValidateKey(std::string* s) { - return ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String(s->data(), static_cast(s->size()), ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::PARSE, "Odb.Lib.Protobuf.FeaturesFile.FeatureRecord.AttributeLookupTableEntry.key"); - } - static bool ValidateValue(std::string* s) { - return ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String(s->data(), static_cast(s->size()), ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::PARSE, "Odb.Lib.Protobuf.FeaturesFile.FeatureRecord.AttributeLookupTableEntry.value"); - } - using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; - ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; + ::google::protobuf::internal::ConstantInitialized); + explicit FeaturesFile_FeatureRecord_AttributeLookupTableEntry_DoNotUse(::google::protobuf::Arena* arena); + static const FeaturesFile_FeatureRecord_AttributeLookupTableEntry_DoNotUse* internal_default_instance() { + return reinterpret_cast( + &_FeaturesFile_FeatureRecord_AttributeLookupTableEntry_DoNotUse_default_instance_); + } + + + private: + friend class ::google::protobuf::MessageLite; friend struct ::TableStruct_featuresfile_2eproto; + + friend class ::google::protobuf::internal::TcParser; + static const ::google::protobuf::internal::TcParseTable< + 1, 2, 0, + 86, 2> + _table_; + + const ::google::protobuf::internal::ClassData* GetClassData() const PROTOBUF_FINAL; + static void* PlacementNew_(const void*, void* mem, + ::google::protobuf::Arena* arena); + static constexpr auto InternalNewImpl_(); + static const ::google::protobuf::internal::ClassDataFull _class_data_; }; +// ------------------------------------------------------------------- +class FeaturesFile_SymbolNamesByNameEntry_DoNotUse final + : public ::google::protobuf::internal::MapEntry< + std::string, ::google::protobuf::Message, + ::google::protobuf::internal::WireFormatLite::TYPE_STRING, + ::google::protobuf::internal::WireFormatLite::TYPE_MESSAGE> { + public: + using SuperType = ::google::protobuf::internal::MapEntry< + std::string, ::google::protobuf::Message, + ::google::protobuf::internal::WireFormatLite::TYPE_STRING, + ::google::protobuf::internal::WireFormatLite::TYPE_MESSAGE>; + FeaturesFile_SymbolNamesByNameEntry_DoNotUse(); + template + explicit PROTOBUF_CONSTEXPR FeaturesFile_SymbolNamesByNameEntry_DoNotUse( + ::google::protobuf::internal::ConstantInitialized); + explicit FeaturesFile_SymbolNamesByNameEntry_DoNotUse(::google::protobuf::Arena* arena); + static const FeaturesFile_SymbolNamesByNameEntry_DoNotUse* internal_default_instance() { + return reinterpret_cast( + &_FeaturesFile_SymbolNamesByNameEntry_DoNotUse_default_instance_); + } + + + private: + friend class ::google::protobuf::MessageLite; + friend struct ::TableStruct_featuresfile_2eproto; + + friend class ::google::protobuf::internal::TcParser; + static const ::google::protobuf::internal::TcParseTable< + 1, 2, 1, + 64, 2> + _table_; + + const ::google::protobuf::internal::ClassData* GetClassData() const PROTOBUF_FINAL; + static void* PlacementNew_(const void*, void* mem, + ::google::protobuf::Arena* arena); + static constexpr auto InternalNewImpl_(); + static const ::google::protobuf::internal::ClassDataFull _class_data_; +}; // ------------------------------------------------------------------- -class ODBDESIGN_EXPORT FeaturesFile_FeatureRecord final : - public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:Odb.Lib.Protobuf.FeaturesFile.FeatureRecord) */ { +class ODBDESIGN_EXPORT FeaturesFile_FeatureRecord final : public ::google::protobuf::Message +/* @@protoc_insertion_point(class_definition:Odb.Lib.Protobuf.FeaturesFile.FeatureRecord) */ { public: inline FeaturesFile_FeatureRecord() : FeaturesFile_FeatureRecord(nullptr) {} - ~FeaturesFile_FeatureRecord() override; - explicit PROTOBUF_CONSTEXPR FeaturesFile_FeatureRecord(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); + ~FeaturesFile_FeatureRecord() PROTOBUF_FINAL; - FeaturesFile_FeatureRecord(const FeaturesFile_FeatureRecord& from); - FeaturesFile_FeatureRecord(FeaturesFile_FeatureRecord&& from) noexcept - : FeaturesFile_FeatureRecord() { - *this = ::std::move(from); +#if defined(PROTOBUF_CUSTOM_VTABLE) + void operator delete(FeaturesFile_FeatureRecord* msg, std::destroying_delete_t) { + SharedDtor(*msg); + ::google::protobuf::internal::SizedDelete(msg, sizeof(FeaturesFile_FeatureRecord)); } +#endif + + template + explicit PROTOBUF_CONSTEXPR FeaturesFile_FeatureRecord( + ::google::protobuf::internal::ConstantInitialized); + inline FeaturesFile_FeatureRecord(const FeaturesFile_FeatureRecord& from) : FeaturesFile_FeatureRecord(nullptr, from) {} + inline FeaturesFile_FeatureRecord(FeaturesFile_FeatureRecord&& from) noexcept + : FeaturesFile_FeatureRecord(nullptr, std::move(from)) {} inline FeaturesFile_FeatureRecord& operator=(const FeaturesFile_FeatureRecord& from) { CopyFrom(from); return *this; } inline FeaturesFile_FeatureRecord& operator=(FeaturesFile_FeatureRecord&& from) noexcept { if (this == &from) return *this; - if (GetOwningArena() == from.GetOwningArena() - #ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetOwningArena() != nullptr - #endif // !PROTOBUF_FORCE_COPY_IN_MOVE - ) { + if (::google::protobuf::internal::CanMoveWithInternalSwap(GetArena(), from.GetArena())) { InternalSwap(&from); } else { CopyFrom(from); @@ -169,13 +239,22 @@ class ODBDESIGN_EXPORT FeaturesFile_FeatureRecord final : return *this; } - static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { + inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const + ABSL_ATTRIBUTE_LIFETIME_BOUND { + return _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance); + } + inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() + ABSL_ATTRIBUTE_LIFETIME_BOUND { + return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); + } + + static const ::google::protobuf::Descriptor* descriptor() { return GetDescriptor(); } - static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { + static const ::google::protobuf::Descriptor* GetDescriptor() { return default_instance().GetMetadata().descriptor; } - static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { + static const ::google::protobuf::Reflection* GetReflection() { return default_instance().GetMetadata().reflection; } static const FeaturesFile_FeatureRecord& default_instance() { @@ -183,122 +262,117 @@ class ODBDESIGN_EXPORT FeaturesFile_FeatureRecord final : } static inline const FeaturesFile_FeatureRecord* internal_default_instance() { return reinterpret_cast( - &_FeaturesFile_FeatureRecord_default_instance_); - } - static constexpr int kIndexInFileMessages = - 1; - - friend void swap(FeaturesFile_FeatureRecord& a, FeaturesFile_FeatureRecord& b) { - a.Swap(&b); + &_FeaturesFile_FeatureRecord_default_instance_); } + static constexpr int kIndexInFileMessages = 1; + friend void swap(FeaturesFile_FeatureRecord& a, FeaturesFile_FeatureRecord& b) { a.Swap(&b); } inline void Swap(FeaturesFile_FeatureRecord* other) { if (other == this) return; - #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetOwningArena() != nullptr && - GetOwningArena() == other->GetOwningArena()) { - #else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetOwningArena() == other->GetOwningArena()) { - #endif // !PROTOBUF_FORCE_COPY_IN_SWAP + if (::google::protobuf::internal::CanUseInternalSwap(GetArena(), other->GetArena())) { InternalSwap(other); } else { - ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); + ::google::protobuf::internal::GenericSwap(this, other); } } void UnsafeArenaSwap(FeaturesFile_FeatureRecord* other) { if (other == this) return; - GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); + ABSL_DCHECK(GetArena() == other->GetArena()); InternalSwap(other); } // implements Message ---------------------------------------------- - FeaturesFile_FeatureRecord* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); + FeaturesFile_FeatureRecord* New(::google::protobuf::Arena* arena = nullptr) const { + return ::google::protobuf::Message::DefaultConstruct(arena); } - using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; + using ::google::protobuf::Message::CopyFrom; void CopyFrom(const FeaturesFile_FeatureRecord& from); - using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; - void MergeFrom( const FeaturesFile_FeatureRecord& from) { - FeaturesFile_FeatureRecord::MergeImpl(*this, from); - } - private: - static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg); - public: - PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; - bool IsInitialized() const final; - - size_t ByteSizeLong() const final; - const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final; - uint8_t* _InternalSerialize( - uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const final { return _impl_._cached_size_.Get(); } + using ::google::protobuf::Message::MergeFrom; + void MergeFrom(const FeaturesFile_FeatureRecord& from) { FeaturesFile_FeatureRecord::MergeImpl(*this, from); } private: - void SharedCtor(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned); - void SharedDtor(); - void SetCachedSize(int size) const final; - void InternalSwap(FeaturesFile_FeatureRecord* other); + static void MergeImpl( + ::google::protobuf::MessageLite& to_msg, + const ::google::protobuf::MessageLite& from_msg); - private: - friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; - static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { - return "Odb.Lib.Protobuf.FeaturesFile.FeatureRecord"; + public: + bool IsInitialized() const { + return true; } - protected: - explicit FeaturesFile_FeatureRecord(::PROTOBUF_NAMESPACE_ID::Arena* arena, - bool is_message_owned = false); + ABSL_ATTRIBUTE_REINITIALIZES void Clear() PROTOBUF_FINAL; + #if defined(PROTOBUF_CUSTOM_VTABLE) private: - static void ArenaDtor(void* object); - public: + static ::size_t ByteSizeLong(const ::google::protobuf::MessageLite& msg); + static ::uint8_t* _InternalSerialize( + const MessageLite& msg, ::uint8_t* target, + ::google::protobuf::io::EpsCopyOutputStream* stream); - static const ClassData _class_data_; - const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final; + public: + ::size_t ByteSizeLong() const { return ByteSizeLong(*this); } + ::uint8_t* _InternalSerialize( + ::uint8_t* target, + ::google::protobuf::io::EpsCopyOutputStream* stream) const { + return _InternalSerialize(*this, target, stream); + } + #else // PROTOBUF_CUSTOM_VTABLE + ::size_t ByteSizeLong() const final; + ::uint8_t* _InternalSerialize( + ::uint8_t* target, + ::google::protobuf::io::EpsCopyOutputStream* stream) const final; + #endif // PROTOBUF_CUSTOM_VTABLE + int GetCachedSize() const { return _impl_._cached_size_.Get(); } - ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; + private: + void SharedCtor(::google::protobuf::Arena* arena); + static void SharedDtor(MessageLite& self); + void InternalSwap(FeaturesFile_FeatureRecord* other); + private: + template + friend ::absl::string_view( + ::google::protobuf::internal::GetAnyMessageName)(); + static ::absl::string_view FullMessageName() { return "Odb.Lib.Protobuf.FeaturesFile.FeatureRecord"; } + + protected: + explicit FeaturesFile_FeatureRecord(::google::protobuf::Arena* arena); + FeaturesFile_FeatureRecord(::google::protobuf::Arena* arena, const FeaturesFile_FeatureRecord& from); + FeaturesFile_FeatureRecord(::google::protobuf::Arena* arena, FeaturesFile_FeatureRecord&& from) noexcept + : FeaturesFile_FeatureRecord(arena) { + *this = ::std::move(from); + } + const ::google::protobuf::internal::ClassData* GetClassData() const PROTOBUF_FINAL; + static void* PlacementNew_(const void*, void* mem, + ::google::protobuf::Arena* arena); + static constexpr auto InternalNewImpl_(); + static const ::google::protobuf::internal::ClassDataFull _class_data_; + public: + ::google::protobuf::Metadata GetMetadata() const; // nested types ---------------------------------------------------- - - - typedef FeaturesFile_FeatureRecord_Type Type; - static constexpr Type Arc = - FeaturesFile_FeatureRecord_Type_Arc; - static constexpr Type Pad = - FeaturesFile_FeatureRecord_Type_Pad; - static constexpr Type Surface = - FeaturesFile_FeatureRecord_Type_Surface; - static constexpr Type Barcode = - FeaturesFile_FeatureRecord_Type_Barcode; - static constexpr Type Text = - FeaturesFile_FeatureRecord_Type_Text; - static constexpr Type Line = - FeaturesFile_FeatureRecord_Type_Line; + using Type = FeaturesFile_FeatureRecord_Type; + static constexpr Type Arc = FeaturesFile_FeatureRecord_Type_Arc; + static constexpr Type Pad = FeaturesFile_FeatureRecord_Type_Pad; + static constexpr Type Surface = FeaturesFile_FeatureRecord_Type_Surface; + static constexpr Type Barcode = FeaturesFile_FeatureRecord_Type_Barcode; + static constexpr Type Text = FeaturesFile_FeatureRecord_Type_Text; + static constexpr Type Line = FeaturesFile_FeatureRecord_Type_Line; static inline bool Type_IsValid(int value) { return FeaturesFile_FeatureRecord_Type_IsValid(value); } - static constexpr Type Type_MIN = - FeaturesFile_FeatureRecord_Type_Type_MIN; - static constexpr Type Type_MAX = - FeaturesFile_FeatureRecord_Type_Type_MAX; - static constexpr int Type_ARRAYSIZE = - FeaturesFile_FeatureRecord_Type_Type_ARRAYSIZE; - static inline const ::PROTOBUF_NAMESPACE_ID::EnumDescriptor* - Type_descriptor() { + static constexpr Type Type_MIN = FeaturesFile_FeatureRecord_Type_Type_MIN; + static constexpr Type Type_MAX = FeaturesFile_FeatureRecord_Type_Type_MAX; + static constexpr int Type_ARRAYSIZE = FeaturesFile_FeatureRecord_Type_Type_ARRAYSIZE; + static inline const ::google::protobuf::EnumDescriptor* Type_descriptor() { return FeaturesFile_FeatureRecord_Type_descriptor(); } - template - static inline const std::string& Type_Name(T enum_t_value) { - static_assert(::std::is_same::value || - ::std::is_integral::value, - "Incorrect type passed to function Type_Name."); - return FeaturesFile_FeatureRecord_Type_Name(enum_t_value); + template + static inline const std::string& Type_Name(T value) { + return FeaturesFile_FeatureRecord_Type_Name(value); } - static inline bool Type_Parse(::PROTOBUF_NAMESPACE_ID::ConstStringParam name, - Type* value) { + static inline bool Type_Parse(absl::string_view name, Type* value) { return FeaturesFile_FeatureRecord_Type_Parse(name, value); } // accessors ------------------------------------------------------- - enum : int { kContourPolygonsFieldNumber = 1, kAttributeLookupTableFieldNumber = 29, @@ -334,422 +408,382 @@ class ODBDESIGN_EXPORT FeaturesFile_FeatureRecord final : int contourpolygons_size() const; private: int _internal_contourpolygons_size() const; + public: - void clear_contourpolygons(); + void clear_contourpolygons() ; ::Odb::Lib::Protobuf::ContourPolygon* mutable_contourpolygons(int index); - ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::Odb::Lib::Protobuf::ContourPolygon >* - mutable_contourpolygons(); + ::google::protobuf::RepeatedPtrField<::Odb::Lib::Protobuf::ContourPolygon>* mutable_contourpolygons(); + private: - const ::Odb::Lib::Protobuf::ContourPolygon& _internal_contourpolygons(int index) const; - ::Odb::Lib::Protobuf::ContourPolygon* _internal_add_contourpolygons(); + const ::google::protobuf::RepeatedPtrField<::Odb::Lib::Protobuf::ContourPolygon>& _internal_contourpolygons() const; + ::google::protobuf::RepeatedPtrField<::Odb::Lib::Protobuf::ContourPolygon>* _internal_mutable_contourpolygons(); public: const ::Odb::Lib::Protobuf::ContourPolygon& contourpolygons(int index) const; ::Odb::Lib::Protobuf::ContourPolygon* add_contourpolygons(); - const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::Odb::Lib::Protobuf::ContourPolygon >& - contourpolygons() const; - + const ::google::protobuf::RepeatedPtrField<::Odb::Lib::Protobuf::ContourPolygon>& contourpolygons() const; // map attributeLookupTable = 29; int attributelookuptable_size() const; private: int _internal_attributelookuptable_size() const; + public: - void clear_attributelookuptable(); + void clear_attributelookuptable() ; + const ::google::protobuf::Map& attributelookuptable() const; + ::google::protobuf::Map* mutable_attributelookuptable(); + private: - const ::PROTOBUF_NAMESPACE_ID::Map< std::string, std::string >& - _internal_attributelookuptable() const; - ::PROTOBUF_NAMESPACE_ID::Map< std::string, std::string >* - _internal_mutable_attributelookuptable(); - public: - const ::PROTOBUF_NAMESPACE_ID::Map< std::string, std::string >& - attributelookuptable() const; - ::PROTOBUF_NAMESPACE_ID::Map< std::string, std::string >* - mutable_attributelookuptable(); + const ::google::protobuf::Map& _internal_attributelookuptable() const; + ::google::protobuf::Map* _internal_mutable_attributelookuptable(); + public: // optional string font = 15; bool has_font() const; - private: - bool _internal_has_font() const; - public: - void clear_font(); + void clear_font() ; const std::string& font() const; - template - void set_font(ArgT0&& arg0, ArgT... args); + template + void set_font(Arg_&& arg, Args_... args); std::string* mutable_font(); PROTOBUF_NODISCARD std::string* release_font(); - void set_allocated_font(std::string* font); + void set_allocated_font(std::string* value); + private: const std::string& _internal_font() const; - inline PROTOBUF_ALWAYS_INLINE void _internal_set_font(const std::string& value); + inline PROTOBUF_ALWAYS_INLINE void _internal_set_font( + const std::string& value); std::string* _internal_mutable_font(); - public: + public: // optional string text = 19; bool has_text() const; - private: - bool _internal_has_text() const; - public: - void clear_text(); + void clear_text() ; const std::string& text() const; - template - void set_text(ArgT0&& arg0, ArgT... args); + template + void set_text(Arg_&& arg, Args_... args); std::string* mutable_text(); PROTOBUF_NODISCARD std::string* release_text(); - void set_allocated_text(std::string* text); + void set_allocated_text(std::string* value); + private: const std::string& _internal_text() const; - inline PROTOBUF_ALWAYS_INLINE void _internal_set_text(const std::string& value); + inline PROTOBUF_ALWAYS_INLINE void _internal_set_text( + const std::string& value); std::string* _internal_mutable_text(); - public: + public: // optional string value = 25; bool has_value() const; - private: - bool _internal_has_value() const; - public: - void clear_value(); + void clear_value() ; const std::string& value() const; - template - void set_value(ArgT0&& arg0, ArgT... args); + template + void set_value(Arg_&& arg, Args_... args); std::string* mutable_value(); PROTOBUF_NODISCARD std::string* release_value(); void set_allocated_value(std::string* value); + private: const std::string& _internal_value() const; - inline PROTOBUF_ALWAYS_INLINE void _internal_set_value(const std::string& value); + inline PROTOBUF_ALWAYS_INLINE void _internal_set_value( + const std::string& value); std::string* _internal_mutable_value(); - public: + public: // optional .Odb.Lib.Protobuf.FeaturesFile.FeatureRecord.Type type = 2; bool has_type() const; - private: - bool _internal_has_type() const; - public: - void clear_type(); + void clear_type() ; ::Odb::Lib::Protobuf::FeaturesFile_FeatureRecord_Type type() const; void set_type(::Odb::Lib::Protobuf::FeaturesFile_FeatureRecord_Type value); + private: ::Odb::Lib::Protobuf::FeaturesFile_FeatureRecord_Type _internal_type() const; void _internal_set_type(::Odb::Lib::Protobuf::FeaturesFile_FeatureRecord_Type value); - public: + public: // optional float xs = 3; bool has_xs() const; - private: - bool _internal_has_xs() const; - public: - void clear_xs(); + void clear_xs() ; float xs() const; void set_xs(float value); + private: float _internal_xs() const; void _internal_set_xs(float value); - public: + public: // optional float ys = 4; bool has_ys() const; - private: - bool _internal_has_ys() const; - public: - void clear_ys(); + void clear_ys() ; float ys() const; void set_ys(float value); + private: float _internal_ys() const; void _internal_set_ys(float value); - public: + public: // optional float xe = 5; bool has_xe() const; - private: - bool _internal_has_xe() const; - public: - void clear_xe(); + void clear_xe() ; float xe() const; void set_xe(float value); + private: float _internal_xe() const; void _internal_set_xe(float value); - public: + public: // optional float ye = 6; bool has_ye() const; - private: - bool _internal_has_ye() const; - public: - void clear_ye(); + void clear_ye() ; float ye() const; void set_ye(float value); + private: float _internal_ye() const; void _internal_set_ye(float value); - public: + public: // optional float x = 7; bool has_x() const; - private: - bool _internal_has_x() const; - public: - void clear_x(); + void clear_x() ; float x() const; void set_x(float value); + private: float _internal_x() const; void _internal_set_x(float value); - public: + public: // optional float y = 8; bool has_y() const; - private: - bool _internal_has_y() const; - public: - void clear_y(); + void clear_y() ; float y() const; void set_y(float value); + private: float _internal_y() const; void _internal_set_y(float value); - public: + public: // optional int32 apt_def = 9; bool has_apt_def() const; + void clear_apt_def() ; + ::int32_t apt_def() const; + void set_apt_def(::int32_t value); + private: - bool _internal_has_apt_def() const; - public: - void clear_apt_def(); - int32_t apt_def() const; - void set_apt_def(int32_t value); - private: - int32_t _internal_apt_def() const; - void _internal_set_apt_def(int32_t value); - public: + ::int32_t _internal_apt_def() const; + void _internal_set_apt_def(::int32_t value); + public: // optional int32 apt_def_symbol_num = 10; bool has_apt_def_symbol_num() const; + void clear_apt_def_symbol_num() ; + ::int32_t apt_def_symbol_num() const; + void set_apt_def_symbol_num(::int32_t value); + private: - bool _internal_has_apt_def_symbol_num() const; - public: - void clear_apt_def_symbol_num(); - int32_t apt_def_symbol_num() const; - void set_apt_def_symbol_num(int32_t value); - private: - int32_t _internal_apt_def_symbol_num() const; - void _internal_set_apt_def_symbol_num(int32_t value); - public: + ::int32_t _internal_apt_def_symbol_num() const; + void _internal_set_apt_def_symbol_num(::int32_t value); + public: // optional float apt_def_resize_factor = 11; bool has_apt_def_resize_factor() const; - private: - bool _internal_has_apt_def_resize_factor() const; - public: - void clear_apt_def_resize_factor(); + void clear_apt_def_resize_factor() ; float apt_def_resize_factor() const; void set_apt_def_resize_factor(float value); + private: float _internal_apt_def_resize_factor() const; void _internal_set_apt_def_resize_factor(float value); - public: + public: // optional float xc = 12; bool has_xc() const; - private: - bool _internal_has_xc() const; - public: - void clear_xc(); + void clear_xc() ; float xc() const; void set_xc(float value); + private: float _internal_xc() const; void _internal_set_xc(float value); - public: + public: // optional float yc = 13; bool has_yc() const; - private: - bool _internal_has_yc() const; - public: - void clear_yc(); + void clear_yc() ; float yc() const; void set_yc(float value); + private: float _internal_yc() const; void _internal_set_yc(float value); - public: + public: // optional bool cw = 14; bool has_cw() const; - private: - bool _internal_has_cw() const; - public: - void clear_cw(); + void clear_cw() ; bool cw() const; void set_cw(bool value); + private: bool _internal_cw() const; void _internal_set_cw(bool value); - public: + public: // optional float xsize = 16; bool has_xsize() const; - private: - bool _internal_has_xsize() const; - public: - void clear_xsize(); + void clear_xsize() ; float xsize() const; void set_xsize(float value); + private: float _internal_xsize() const; void _internal_set_xsize(float value); - public: + public: // optional float ysize = 17; bool has_ysize() const; - private: - bool _internal_has_ysize() const; - public: - void clear_ysize(); + void clear_ysize() ; float ysize() const; void set_ysize(float value); + private: float _internal_ysize() const; void _internal_set_ysize(float value); - public: + public: // optional float width_factor = 18; bool has_width_factor() const; - private: - bool _internal_has_width_factor() const; - public: - void clear_width_factor(); + void clear_width_factor() ; float width_factor() const; void set_width_factor(float value); + private: float _internal_width_factor() const; void _internal_set_width_factor(float value); - public: + public: // optional int32 version = 20; bool has_version() const; + void clear_version() ; + ::int32_t version() const; + void set_version(::int32_t value); + private: - bool _internal_has_version() const; - public: - void clear_version(); - int32_t version() const; - void set_version(int32_t value); - private: - int32_t _internal_version() const; - void _internal_set_version(int32_t value); - public: + ::int32_t _internal_version() const; + void _internal_set_version(::int32_t value); + public: // optional int32 sym_num = 21; bool has_sym_num() const; + void clear_sym_num() ; + ::int32_t sym_num() const; + void set_sym_num(::int32_t value); + private: - bool _internal_has_sym_num() const; - public: - void clear_sym_num(); - int32_t sym_num() const; - void set_sym_num(int32_t value); - private: - int32_t _internal_sym_num() const; - void _internal_set_sym_num(int32_t value); - public: + ::int32_t _internal_sym_num() const; + void _internal_set_sym_num(::int32_t value); + public: // optional .Odb.Lib.Protobuf.Polarity polarity = 22; bool has_polarity() const; - private: - bool _internal_has_polarity() const; - public: - void clear_polarity(); + void clear_polarity() ; ::Odb::Lib::Protobuf::Polarity polarity() const; void set_polarity(::Odb::Lib::Protobuf::Polarity value); + private: ::Odb::Lib::Protobuf::Polarity _internal_polarity() const; void _internal_set_polarity(::Odb::Lib::Protobuf::Polarity value); - public: + public: // optional int32 dcode = 23; bool has_dcode() const; + void clear_dcode() ; + ::int32_t dcode() const; + void set_dcode(::int32_t value); + private: - bool _internal_has_dcode() const; - public: - void clear_dcode(); - int32_t dcode() const; - void set_dcode(int32_t value); - private: - int32_t _internal_dcode() const; - void _internal_set_dcode(int32_t value); - public: + ::int32_t _internal_dcode() const; + void _internal_set_dcode(::int32_t value); + public: // optional int32 atr = 24; bool has_atr() const; + void clear_atr() ; + ::int32_t atr() const; + void set_atr(::int32_t value); + private: - bool _internal_has_atr() const; - public: - void clear_atr(); - int32_t atr() const; - void set_atr(int32_t value); - private: - int32_t _internal_atr() const; - void _internal_set_atr(int32_t value); - public: + ::int32_t _internal_atr() const; + void _internal_set_atr(::int32_t value); + public: // optional uint32 id = 26; bool has_id() const; + void clear_id() ; + ::uint32_t id() const; + void set_id(::uint32_t value); + private: - bool _internal_has_id() const; - public: - void clear_id(); - uint32_t id() const; - void set_id(uint32_t value); - private: - uint32_t _internal_id() const; - void _internal_set_id(uint32_t value); - public: + ::uint32_t _internal_id() const; + void _internal_set_id(::uint32_t value); + public: // optional int32 orient_def = 27; bool has_orient_def() const; + void clear_orient_def() ; + ::int32_t orient_def() const; + void set_orient_def(::int32_t value); + private: - bool _internal_has_orient_def() const; - public: - void clear_orient_def(); - int32_t orient_def() const; - void set_orient_def(int32_t value); - private: - int32_t _internal_orient_def() const; - void _internal_set_orient_def(int32_t value); - public: + ::int32_t _internal_orient_def() const; + void _internal_set_orient_def(::int32_t value); + public: // optional float orient_def_rotation = 28; bool has_orient_def_rotation() const; - private: - bool _internal_has_orient_def_rotation() const; - public: - void clear_orient_def_rotation(); + void clear_orient_def_rotation() ; float orient_def_rotation() const; void set_orient_def_rotation(float value); + private: float _internal_orient_def_rotation() const; void _internal_set_orient_def_rotation(float value); - public: + public: // @@protoc_insertion_point(class_scope:Odb.Lib.Protobuf.FeaturesFile.FeatureRecord) private: class _Internal; - - template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; - typedef void InternalArenaConstructable_; - typedef void DestructorSkippable_; + friend class ::google::protobuf::internal::TcParser; + static const ::google::protobuf::internal::TcParseTable< + 5, 29, 2, + 109, 2> + _table_; + + friend class ::google::protobuf::MessageLite; + friend class ::google::protobuf::Arena; + template + friend class ::google::protobuf::Arena::InternalHelper; + using InternalArenaConstructable_ = void; + using DestructorSkippable_ = void; struct Impl_ { - ::PROTOBUF_NAMESPACE_ID::internal::HasBits<1> _has_bits_; - mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; - ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::Odb::Lib::Protobuf::ContourPolygon > contourpolygons_; - ::PROTOBUF_NAMESPACE_ID::internal::MapField< - FeaturesFile_FeatureRecord_AttributeLookupTableEntry_DoNotUse, - std::string, std::string, - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::TYPE_STRING, - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::TYPE_STRING> attributelookuptable_; - ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr font_; - ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr text_; - ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr value_; + inline explicit constexpr Impl_( + ::google::protobuf::internal::ConstantInitialized) noexcept; + inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* arena); + inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* arena, const Impl_& from, + const FeaturesFile_FeatureRecord& from_msg); + ::google::protobuf::internal::HasBits<1> _has_bits_; + ::google::protobuf::internal::CachedSize _cached_size_; + ::google::protobuf::RepeatedPtrField< ::Odb::Lib::Protobuf::ContourPolygon > contourpolygons_; + ::google::protobuf::internal::MapField + attributelookuptable_; + ::google::protobuf::internal::ArenaStringPtr font_; + ::google::protobuf::internal::ArenaStringPtr text_; + ::google::protobuf::internal::ArenaStringPtr value_; int type_; float xs_; float ys_; @@ -757,8 +791,8 @@ class ODBDESIGN_EXPORT FeaturesFile_FeatureRecord final : float ye_; float x_; float y_; - int32_t apt_def_; - int32_t apt_def_symbol_num_; + ::int32_t apt_def_; + ::int32_t apt_def_symbol_num_; float apt_def_resize_factor_; float xc_; float yc_; @@ -766,70 +800,48 @@ class ODBDESIGN_EXPORT FeaturesFile_FeatureRecord final : float xsize_; float ysize_; float width_factor_; - int32_t version_; - int32_t sym_num_; + ::int32_t version_; + ::int32_t sym_num_; int polarity_; - int32_t dcode_; - int32_t atr_; - uint32_t id_; - int32_t orient_def_; + ::int32_t dcode_; + ::int32_t atr_; + ::uint32_t id_; + ::int32_t orient_def_; float orient_def_rotation_; + PROTOBUF_TSAN_DECLARE_MEMBER }; union { Impl_ _impl_; }; friend struct ::TableStruct_featuresfile_2eproto; }; // ------------------------------------------------------------------- -class FeaturesFile_SymbolNamesByNameEntry_DoNotUse : public ::PROTOBUF_NAMESPACE_ID::internal::MapEntry { -public: - typedef ::PROTOBUF_NAMESPACE_ID::internal::MapEntry SuperType; - FeaturesFile_SymbolNamesByNameEntry_DoNotUse(); - explicit PROTOBUF_CONSTEXPR FeaturesFile_SymbolNamesByNameEntry_DoNotUse( - ::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); - explicit FeaturesFile_SymbolNamesByNameEntry_DoNotUse(::PROTOBUF_NAMESPACE_ID::Arena* arena); - void MergeFrom(const FeaturesFile_SymbolNamesByNameEntry_DoNotUse& other); - static const FeaturesFile_SymbolNamesByNameEntry_DoNotUse* internal_default_instance() { return reinterpret_cast(&_FeaturesFile_SymbolNamesByNameEntry_DoNotUse_default_instance_); } - static bool ValidateKey(std::string* s) { - return ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String(s->data(), static_cast(s->size()), ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::PARSE, "Odb.Lib.Protobuf.FeaturesFile.SymbolNamesByNameEntry.key"); - } - static bool ValidateValue(void*) { return true; } - using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; - ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; - friend struct ::TableStruct_featuresfile_2eproto; -}; - -// ------------------------------------------------------------------- - -class ODBDESIGN_EXPORT FeaturesFile final : - public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:Odb.Lib.Protobuf.FeaturesFile) */ { +class ODBDESIGN_EXPORT FeaturesFile final : public ::google::protobuf::Message +/* @@protoc_insertion_point(class_definition:Odb.Lib.Protobuf.FeaturesFile) */ { public: inline FeaturesFile() : FeaturesFile(nullptr) {} - ~FeaturesFile() override; - explicit PROTOBUF_CONSTEXPR FeaturesFile(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); + ~FeaturesFile() PROTOBUF_FINAL; - FeaturesFile(const FeaturesFile& from); - FeaturesFile(FeaturesFile&& from) noexcept - : FeaturesFile() { - *this = ::std::move(from); +#if defined(PROTOBUF_CUSTOM_VTABLE) + void operator delete(FeaturesFile* msg, std::destroying_delete_t) { + SharedDtor(*msg); + ::google::protobuf::internal::SizedDelete(msg, sizeof(FeaturesFile)); } +#endif + + template + explicit PROTOBUF_CONSTEXPR FeaturesFile( + ::google::protobuf::internal::ConstantInitialized); + inline FeaturesFile(const FeaturesFile& from) : FeaturesFile(nullptr, from) {} + inline FeaturesFile(FeaturesFile&& from) noexcept + : FeaturesFile(nullptr, std::move(from)) {} inline FeaturesFile& operator=(const FeaturesFile& from) { CopyFrom(from); return *this; } inline FeaturesFile& operator=(FeaturesFile&& from) noexcept { if (this == &from) return *this; - if (GetOwningArena() == from.GetOwningArena() - #ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetOwningArena() != nullptr - #endif // !PROTOBUF_FORCE_COPY_IN_MOVE - ) { + if (::google::protobuf::internal::CanMoveWithInternalSwap(GetArena(), from.GetArena())) { InternalSwap(&from); } else { CopyFrom(from); @@ -837,13 +849,22 @@ class ODBDESIGN_EXPORT FeaturesFile final : return *this; } - static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { + inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const + ABSL_ATTRIBUTE_LIFETIME_BOUND { + return _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance); + } + inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() + ABSL_ATTRIBUTE_LIFETIME_BOUND { + return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); + } + + static const ::google::protobuf::Descriptor* descriptor() { return GetDescriptor(); } - static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { + static const ::google::protobuf::Descriptor* GetDescriptor() { return default_instance().GetMetadata().descriptor; } - static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { + static const ::google::protobuf::Reflection* GetReflection() { return default_instance().GetMetadata().reflection; } static const FeaturesFile& default_instance() { @@ -851,85 +872,95 @@ class ODBDESIGN_EXPORT FeaturesFile final : } static inline const FeaturesFile* internal_default_instance() { return reinterpret_cast( - &_FeaturesFile_default_instance_); - } - static constexpr int kIndexInFileMessages = - 3; - - friend void swap(FeaturesFile& a, FeaturesFile& b) { - a.Swap(&b); + &_FeaturesFile_default_instance_); } + static constexpr int kIndexInFileMessages = 3; + friend void swap(FeaturesFile& a, FeaturesFile& b) { a.Swap(&b); } inline void Swap(FeaturesFile* other) { if (other == this) return; - #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetOwningArena() != nullptr && - GetOwningArena() == other->GetOwningArena()) { - #else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetOwningArena() == other->GetOwningArena()) { - #endif // !PROTOBUF_FORCE_COPY_IN_SWAP + if (::google::protobuf::internal::CanUseInternalSwap(GetArena(), other->GetArena())) { InternalSwap(other); } else { - ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); + ::google::protobuf::internal::GenericSwap(this, other); } } void UnsafeArenaSwap(FeaturesFile* other) { if (other == this) return; - GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); + ABSL_DCHECK(GetArena() == other->GetArena()); InternalSwap(other); } // implements Message ---------------------------------------------- - FeaturesFile* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); + FeaturesFile* New(::google::protobuf::Arena* arena = nullptr) const { + return ::google::protobuf::Message::DefaultConstruct(arena); } - using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; + using ::google::protobuf::Message::CopyFrom; void CopyFrom(const FeaturesFile& from); - using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; - void MergeFrom( const FeaturesFile& from) { - FeaturesFile::MergeImpl(*this, from); - } - private: - static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg); - public: - PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; - bool IsInitialized() const final; - - size_t ByteSizeLong() const final; - const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final; - uint8_t* _InternalSerialize( - uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const final { return _impl_._cached_size_.Get(); } + using ::google::protobuf::Message::MergeFrom; + void MergeFrom(const FeaturesFile& from) { FeaturesFile::MergeImpl(*this, from); } private: - void SharedCtor(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned); - void SharedDtor(); - void SetCachedSize(int size) const final; - void InternalSwap(FeaturesFile* other); + static void MergeImpl( + ::google::protobuf::MessageLite& to_msg, + const ::google::protobuf::MessageLite& from_msg); - private: - friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; - static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { - return "Odb.Lib.Protobuf.FeaturesFile"; + public: + bool IsInitialized() const { + return true; } - protected: - explicit FeaturesFile(::PROTOBUF_NAMESPACE_ID::Arena* arena, - bool is_message_owned = false); + ABSL_ATTRIBUTE_REINITIALIZES void Clear() PROTOBUF_FINAL; + #if defined(PROTOBUF_CUSTOM_VTABLE) private: - static void ArenaDtor(void* object); - public: + static ::size_t ByteSizeLong(const ::google::protobuf::MessageLite& msg); + static ::uint8_t* _InternalSerialize( + const MessageLite& msg, ::uint8_t* target, + ::google::protobuf::io::EpsCopyOutputStream* stream); - static const ClassData _class_data_; - const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final; + public: + ::size_t ByteSizeLong() const { return ByteSizeLong(*this); } + ::uint8_t* _InternalSerialize( + ::uint8_t* target, + ::google::protobuf::io::EpsCopyOutputStream* stream) const { + return _InternalSerialize(*this, target, stream); + } + #else // PROTOBUF_CUSTOM_VTABLE + ::size_t ByteSizeLong() const final; + ::uint8_t* _InternalSerialize( + ::uint8_t* target, + ::google::protobuf::io::EpsCopyOutputStream* stream) const final; + #endif // PROTOBUF_CUSTOM_VTABLE + int GetCachedSize() const { return _impl_._cached_size_.Get(); } - ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; + private: + void SharedCtor(::google::protobuf::Arena* arena); + static void SharedDtor(MessageLite& self); + void InternalSwap(FeaturesFile* other); + private: + template + friend ::absl::string_view( + ::google::protobuf::internal::GetAnyMessageName)(); + static ::absl::string_view FullMessageName() { return "Odb.Lib.Protobuf.FeaturesFile"; } + + protected: + explicit FeaturesFile(::google::protobuf::Arena* arena); + FeaturesFile(::google::protobuf::Arena* arena, const FeaturesFile& from); + FeaturesFile(::google::protobuf::Arena* arena, FeaturesFile&& from) noexcept + : FeaturesFile(arena) { + *this = ::std::move(from); + } + const ::google::protobuf::internal::ClassData* GetClassData() const PROTOBUF_FINAL; + static void* PlacementNew_(const void*, void* mem, + ::google::protobuf::Arena* arena); + static constexpr auto InternalNewImpl_(); + static const ::google::protobuf::internal::ClassDataFull _class_data_; + public: + ::google::protobuf::Metadata GetMetadata() const; // nested types ---------------------------------------------------- - - typedef FeaturesFile_FeatureRecord FeatureRecord; + using FeatureRecord = FeaturesFile_FeatureRecord; // accessors ------------------------------------------------------- - enum : int { kFeatureRecordsFieldNumber = 8, kSymbolNamesByNameFieldNumber = 9, @@ -943,1093 +974,1114 @@ class ODBDESIGN_EXPORT FeaturesFile final : int featurerecords_size() const; private: int _internal_featurerecords_size() const; + public: - void clear_featurerecords(); + void clear_featurerecords() ; ::Odb::Lib::Protobuf::FeaturesFile_FeatureRecord* mutable_featurerecords(int index); - ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::Odb::Lib::Protobuf::FeaturesFile_FeatureRecord >* - mutable_featurerecords(); + ::google::protobuf::RepeatedPtrField<::Odb::Lib::Protobuf::FeaturesFile_FeatureRecord>* mutable_featurerecords(); + private: - const ::Odb::Lib::Protobuf::FeaturesFile_FeatureRecord& _internal_featurerecords(int index) const; - ::Odb::Lib::Protobuf::FeaturesFile_FeatureRecord* _internal_add_featurerecords(); + const ::google::protobuf::RepeatedPtrField<::Odb::Lib::Protobuf::FeaturesFile_FeatureRecord>& _internal_featurerecords() const; + ::google::protobuf::RepeatedPtrField<::Odb::Lib::Protobuf::FeaturesFile_FeatureRecord>* _internal_mutable_featurerecords(); public: const ::Odb::Lib::Protobuf::FeaturesFile_FeatureRecord& featurerecords(int index) const; ::Odb::Lib::Protobuf::FeaturesFile_FeatureRecord* add_featurerecords(); - const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::Odb::Lib::Protobuf::FeaturesFile_FeatureRecord >& - featurerecords() const; - + const ::google::protobuf::RepeatedPtrField<::Odb::Lib::Protobuf::FeaturesFile_FeatureRecord>& featurerecords() const; // map symbolNamesByName = 9; int symbolnamesbyname_size() const; private: int _internal_symbolnamesbyname_size() const; + public: - void clear_symbolnamesbyname(); + void clear_symbolnamesbyname() ; + const ::google::protobuf::Map& symbolnamesbyname() const; + ::google::protobuf::Map* mutable_symbolnamesbyname(); + private: - const ::PROTOBUF_NAMESPACE_ID::Map< std::string, ::Odb::Lib::Protobuf::SymbolName >& - _internal_symbolnamesbyname() const; - ::PROTOBUF_NAMESPACE_ID::Map< std::string, ::Odb::Lib::Protobuf::SymbolName >* - _internal_mutable_symbolnamesbyname(); - public: - const ::PROTOBUF_NAMESPACE_ID::Map< std::string, ::Odb::Lib::Protobuf::SymbolName >& - symbolnamesbyname() const; - ::PROTOBUF_NAMESPACE_ID::Map< std::string, ::Odb::Lib::Protobuf::SymbolName >* - mutable_symbolnamesbyname(); + const ::google::protobuf::Map& _internal_symbolnamesbyname() const; + ::google::protobuf::Map* _internal_mutable_symbolnamesbyname(); + public: // optional string units = 1; bool has_units() const; - private: - bool _internal_has_units() const; - public: - void clear_units(); + void clear_units() ; const std::string& units() const; - template - void set_units(ArgT0&& arg0, ArgT... args); + template + void set_units(Arg_&& arg, Args_... args); std::string* mutable_units(); PROTOBUF_NODISCARD std::string* release_units(); - void set_allocated_units(std::string* units); + void set_allocated_units(std::string* value); + private: const std::string& _internal_units() const; - inline PROTOBUF_ALWAYS_INLINE void _internal_set_units(const std::string& value); + inline PROTOBUF_ALWAYS_INLINE void _internal_set_units( + const std::string& value); std::string* _internal_mutable_units(); - public: + public: // optional string path = 5; bool has_path() const; - private: - bool _internal_has_path() const; - public: - void clear_path(); + void clear_path() ; const std::string& path() const; - template - void set_path(ArgT0&& arg0, ArgT... args); + template + void set_path(Arg_&& arg, Args_... args); std::string* mutable_path(); PROTOBUF_NODISCARD std::string* release_path(); - void set_allocated_path(std::string* path); + void set_allocated_path(std::string* value); + private: const std::string& _internal_path() const; - inline PROTOBUF_ALWAYS_INLINE void _internal_set_path(const std::string& value); + inline PROTOBUF_ALWAYS_INLINE void _internal_set_path( + const std::string& value); std::string* _internal_mutable_path(); - public: + public: // optional string directory = 6; bool has_directory() const; - private: - bool _internal_has_directory() const; - public: - void clear_directory(); + void clear_directory() ; const std::string& directory() const; - template - void set_directory(ArgT0&& arg0, ArgT... args); + template + void set_directory(Arg_&& arg, Args_... args); std::string* mutable_directory(); PROTOBUF_NODISCARD std::string* release_directory(); - void set_allocated_directory(std::string* directory); + void set_allocated_directory(std::string* value); + private: const std::string& _internal_directory() const; - inline PROTOBUF_ALWAYS_INLINE void _internal_set_directory(const std::string& value); + inline PROTOBUF_ALWAYS_INLINE void _internal_set_directory( + const std::string& value); std::string* _internal_mutable_directory(); - public: + public: // optional uint32 id = 2; bool has_id() const; + void clear_id() ; + ::uint32_t id() const; + void set_id(::uint32_t value); + private: - bool _internal_has_id() const; - public: - void clear_id(); - uint32_t id() const; - void set_id(uint32_t value); - private: - uint32_t _internal_id() const; - void _internal_set_id(uint32_t value); - public: + ::uint32_t _internal_id() const; + void _internal_set_id(::uint32_t value); + public: // optional int32 numFeatures = 7; bool has_numfeatures() const; + void clear_numfeatures() ; + ::int32_t numfeatures() const; + void set_numfeatures(::int32_t value); + private: - bool _internal_has_numfeatures() const; - public: - void clear_numfeatures(); - int32_t numfeatures() const; - void set_numfeatures(int32_t value); - private: - int32_t _internal_numfeatures() const; - void _internal_set_numfeatures(int32_t value); - public: + ::int32_t _internal_numfeatures() const; + void _internal_set_numfeatures(::int32_t value); + public: // @@protoc_insertion_point(class_scope:Odb.Lib.Protobuf.FeaturesFile) private: class _Internal; - - template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; - typedef void InternalArenaConstructable_; - typedef void DestructorSkippable_; + friend class ::google::protobuf::internal::TcParser; + static const ::google::protobuf::internal::TcParseTable< + 3, 7, 3, + 73, 2> + _table_; + + friend class ::google::protobuf::MessageLite; + friend class ::google::protobuf::Arena; + template + friend class ::google::protobuf::Arena::InternalHelper; + using InternalArenaConstructable_ = void; + using DestructorSkippable_ = void; struct Impl_ { - ::PROTOBUF_NAMESPACE_ID::internal::HasBits<1> _has_bits_; - mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; - ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::Odb::Lib::Protobuf::FeaturesFile_FeatureRecord > featurerecords_; - ::PROTOBUF_NAMESPACE_ID::internal::MapField< - FeaturesFile_SymbolNamesByNameEntry_DoNotUse, - std::string, ::Odb::Lib::Protobuf::SymbolName, - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::TYPE_STRING, - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::TYPE_MESSAGE> symbolnamesbyname_; - ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr units_; - ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr path_; - ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr directory_; - uint32_t id_; - int32_t numfeatures_; + inline explicit constexpr Impl_( + ::google::protobuf::internal::ConstantInitialized) noexcept; + inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* arena); + inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* arena, const Impl_& from, + const FeaturesFile& from_msg); + ::google::protobuf::internal::HasBits<1> _has_bits_; + ::google::protobuf::internal::CachedSize _cached_size_; + ::google::protobuf::RepeatedPtrField< ::Odb::Lib::Protobuf::FeaturesFile_FeatureRecord > featurerecords_; + ::google::protobuf::internal::MapField + symbolnamesbyname_; + ::google::protobuf::internal::ArenaStringPtr units_; + ::google::protobuf::internal::ArenaStringPtr path_; + ::google::protobuf::internal::ArenaStringPtr directory_; + ::uint32_t id_; + ::int32_t numfeatures_; + PROTOBUF_TSAN_DECLARE_MEMBER }; union { Impl_ _impl_; }; friend struct ::TableStruct_featuresfile_2eproto; }; + // =================================================================== + + // =================================================================== + #ifdef __GNUC__ - #pragma GCC diagnostic push - #pragma GCC diagnostic ignored "-Wstrict-aliasing" +#pragma GCC diagnostic push +#pragma GCC diagnostic ignored "-Wstrict-aliasing" #endif // __GNUC__ // ------------------------------------------------------------------- +// ------------------------------------------------------------------- + // FeaturesFile_FeatureRecord // optional .Odb.Lib.Protobuf.FeaturesFile.FeatureRecord.Type type = 2; -inline bool FeaturesFile_FeatureRecord::_internal_has_type() const { +inline bool FeaturesFile_FeatureRecord::has_type() const { bool value = (_impl_._has_bits_[0] & 0x00000008u) != 0; return value; } -inline bool FeaturesFile_FeatureRecord::has_type() const { - return _internal_has_type(); -} inline void FeaturesFile_FeatureRecord::clear_type() { + ::google::protobuf::internal::TSanWrite(&_impl_); _impl_.type_ = 0; _impl_._has_bits_[0] &= ~0x00000008u; } -inline ::Odb::Lib::Protobuf::FeaturesFile_FeatureRecord_Type FeaturesFile_FeatureRecord::_internal_type() const { - return static_cast< ::Odb::Lib::Protobuf::FeaturesFile_FeatureRecord_Type >(_impl_.type_); -} inline ::Odb::Lib::Protobuf::FeaturesFile_FeatureRecord_Type FeaturesFile_FeatureRecord::type() const { // @@protoc_insertion_point(field_get:Odb.Lib.Protobuf.FeaturesFile.FeatureRecord.type) return _internal_type(); } -inline void FeaturesFile_FeatureRecord::_internal_set_type(::Odb::Lib::Protobuf::FeaturesFile_FeatureRecord_Type value) { - _impl_._has_bits_[0] |= 0x00000008u; - _impl_.type_ = value; -} inline void FeaturesFile_FeatureRecord::set_type(::Odb::Lib::Protobuf::FeaturesFile_FeatureRecord_Type value) { _internal_set_type(value); + _impl_._has_bits_[0] |= 0x00000008u; // @@protoc_insertion_point(field_set:Odb.Lib.Protobuf.FeaturesFile.FeatureRecord.type) } +inline ::Odb::Lib::Protobuf::FeaturesFile_FeatureRecord_Type FeaturesFile_FeatureRecord::_internal_type() const { + ::google::protobuf::internal::TSanRead(&_impl_); + return static_cast<::Odb::Lib::Protobuf::FeaturesFile_FeatureRecord_Type>(_impl_.type_); +} +inline void FeaturesFile_FeatureRecord::_internal_set_type(::Odb::Lib::Protobuf::FeaturesFile_FeatureRecord_Type value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.type_ = value; +} // optional float xs = 3; -inline bool FeaturesFile_FeatureRecord::_internal_has_xs() const { +inline bool FeaturesFile_FeatureRecord::has_xs() const { bool value = (_impl_._has_bits_[0] & 0x00000010u) != 0; return value; } -inline bool FeaturesFile_FeatureRecord::has_xs() const { - return _internal_has_xs(); -} inline void FeaturesFile_FeatureRecord::clear_xs() { + ::google::protobuf::internal::TSanWrite(&_impl_); _impl_.xs_ = 0; _impl_._has_bits_[0] &= ~0x00000010u; } -inline float FeaturesFile_FeatureRecord::_internal_xs() const { - return _impl_.xs_; -} inline float FeaturesFile_FeatureRecord::xs() const { // @@protoc_insertion_point(field_get:Odb.Lib.Protobuf.FeaturesFile.FeatureRecord.xs) return _internal_xs(); } -inline void FeaturesFile_FeatureRecord::_internal_set_xs(float value) { - _impl_._has_bits_[0] |= 0x00000010u; - _impl_.xs_ = value; -} inline void FeaturesFile_FeatureRecord::set_xs(float value) { _internal_set_xs(value); + _impl_._has_bits_[0] |= 0x00000010u; // @@protoc_insertion_point(field_set:Odb.Lib.Protobuf.FeaturesFile.FeatureRecord.xs) } +inline float FeaturesFile_FeatureRecord::_internal_xs() const { + ::google::protobuf::internal::TSanRead(&_impl_); + return _impl_.xs_; +} +inline void FeaturesFile_FeatureRecord::_internal_set_xs(float value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.xs_ = value; +} // optional float ys = 4; -inline bool FeaturesFile_FeatureRecord::_internal_has_ys() const { +inline bool FeaturesFile_FeatureRecord::has_ys() const { bool value = (_impl_._has_bits_[0] & 0x00000020u) != 0; return value; } -inline bool FeaturesFile_FeatureRecord::has_ys() const { - return _internal_has_ys(); -} inline void FeaturesFile_FeatureRecord::clear_ys() { + ::google::protobuf::internal::TSanWrite(&_impl_); _impl_.ys_ = 0; _impl_._has_bits_[0] &= ~0x00000020u; } -inline float FeaturesFile_FeatureRecord::_internal_ys() const { - return _impl_.ys_; -} inline float FeaturesFile_FeatureRecord::ys() const { // @@protoc_insertion_point(field_get:Odb.Lib.Protobuf.FeaturesFile.FeatureRecord.ys) return _internal_ys(); } -inline void FeaturesFile_FeatureRecord::_internal_set_ys(float value) { - _impl_._has_bits_[0] |= 0x00000020u; - _impl_.ys_ = value; -} inline void FeaturesFile_FeatureRecord::set_ys(float value) { _internal_set_ys(value); + _impl_._has_bits_[0] |= 0x00000020u; // @@protoc_insertion_point(field_set:Odb.Lib.Protobuf.FeaturesFile.FeatureRecord.ys) } +inline float FeaturesFile_FeatureRecord::_internal_ys() const { + ::google::protobuf::internal::TSanRead(&_impl_); + return _impl_.ys_; +} +inline void FeaturesFile_FeatureRecord::_internal_set_ys(float value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.ys_ = value; +} // optional float xe = 5; -inline bool FeaturesFile_FeatureRecord::_internal_has_xe() const { +inline bool FeaturesFile_FeatureRecord::has_xe() const { bool value = (_impl_._has_bits_[0] & 0x00000040u) != 0; return value; } -inline bool FeaturesFile_FeatureRecord::has_xe() const { - return _internal_has_xe(); -} inline void FeaturesFile_FeatureRecord::clear_xe() { + ::google::protobuf::internal::TSanWrite(&_impl_); _impl_.xe_ = 0; _impl_._has_bits_[0] &= ~0x00000040u; } -inline float FeaturesFile_FeatureRecord::_internal_xe() const { - return _impl_.xe_; -} inline float FeaturesFile_FeatureRecord::xe() const { // @@protoc_insertion_point(field_get:Odb.Lib.Protobuf.FeaturesFile.FeatureRecord.xe) return _internal_xe(); } -inline void FeaturesFile_FeatureRecord::_internal_set_xe(float value) { - _impl_._has_bits_[0] |= 0x00000040u; - _impl_.xe_ = value; -} inline void FeaturesFile_FeatureRecord::set_xe(float value) { _internal_set_xe(value); + _impl_._has_bits_[0] |= 0x00000040u; // @@protoc_insertion_point(field_set:Odb.Lib.Protobuf.FeaturesFile.FeatureRecord.xe) } +inline float FeaturesFile_FeatureRecord::_internal_xe() const { + ::google::protobuf::internal::TSanRead(&_impl_); + return _impl_.xe_; +} +inline void FeaturesFile_FeatureRecord::_internal_set_xe(float value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.xe_ = value; +} // optional float ye = 6; -inline bool FeaturesFile_FeatureRecord::_internal_has_ye() const { +inline bool FeaturesFile_FeatureRecord::has_ye() const { bool value = (_impl_._has_bits_[0] & 0x00000080u) != 0; return value; } -inline bool FeaturesFile_FeatureRecord::has_ye() const { - return _internal_has_ye(); -} inline void FeaturesFile_FeatureRecord::clear_ye() { + ::google::protobuf::internal::TSanWrite(&_impl_); _impl_.ye_ = 0; _impl_._has_bits_[0] &= ~0x00000080u; } -inline float FeaturesFile_FeatureRecord::_internal_ye() const { - return _impl_.ye_; -} inline float FeaturesFile_FeatureRecord::ye() const { // @@protoc_insertion_point(field_get:Odb.Lib.Protobuf.FeaturesFile.FeatureRecord.ye) return _internal_ye(); } -inline void FeaturesFile_FeatureRecord::_internal_set_ye(float value) { - _impl_._has_bits_[0] |= 0x00000080u; - _impl_.ye_ = value; -} inline void FeaturesFile_FeatureRecord::set_ye(float value) { _internal_set_ye(value); + _impl_._has_bits_[0] |= 0x00000080u; // @@protoc_insertion_point(field_set:Odb.Lib.Protobuf.FeaturesFile.FeatureRecord.ye) } +inline float FeaturesFile_FeatureRecord::_internal_ye() const { + ::google::protobuf::internal::TSanRead(&_impl_); + return _impl_.ye_; +} +inline void FeaturesFile_FeatureRecord::_internal_set_ye(float value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.ye_ = value; +} // optional float x = 7; -inline bool FeaturesFile_FeatureRecord::_internal_has_x() const { +inline bool FeaturesFile_FeatureRecord::has_x() const { bool value = (_impl_._has_bits_[0] & 0x00000100u) != 0; return value; } -inline bool FeaturesFile_FeatureRecord::has_x() const { - return _internal_has_x(); -} inline void FeaturesFile_FeatureRecord::clear_x() { + ::google::protobuf::internal::TSanWrite(&_impl_); _impl_.x_ = 0; _impl_._has_bits_[0] &= ~0x00000100u; } -inline float FeaturesFile_FeatureRecord::_internal_x() const { - return _impl_.x_; -} inline float FeaturesFile_FeatureRecord::x() const { // @@protoc_insertion_point(field_get:Odb.Lib.Protobuf.FeaturesFile.FeatureRecord.x) return _internal_x(); } -inline void FeaturesFile_FeatureRecord::_internal_set_x(float value) { - _impl_._has_bits_[0] |= 0x00000100u; - _impl_.x_ = value; -} inline void FeaturesFile_FeatureRecord::set_x(float value) { _internal_set_x(value); + _impl_._has_bits_[0] |= 0x00000100u; // @@protoc_insertion_point(field_set:Odb.Lib.Protobuf.FeaturesFile.FeatureRecord.x) } +inline float FeaturesFile_FeatureRecord::_internal_x() const { + ::google::protobuf::internal::TSanRead(&_impl_); + return _impl_.x_; +} +inline void FeaturesFile_FeatureRecord::_internal_set_x(float value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.x_ = value; +} // optional float y = 8; -inline bool FeaturesFile_FeatureRecord::_internal_has_y() const { +inline bool FeaturesFile_FeatureRecord::has_y() const { bool value = (_impl_._has_bits_[0] & 0x00000200u) != 0; return value; } -inline bool FeaturesFile_FeatureRecord::has_y() const { - return _internal_has_y(); -} inline void FeaturesFile_FeatureRecord::clear_y() { + ::google::protobuf::internal::TSanWrite(&_impl_); _impl_.y_ = 0; _impl_._has_bits_[0] &= ~0x00000200u; } -inline float FeaturesFile_FeatureRecord::_internal_y() const { - return _impl_.y_; -} inline float FeaturesFile_FeatureRecord::y() const { // @@protoc_insertion_point(field_get:Odb.Lib.Protobuf.FeaturesFile.FeatureRecord.y) return _internal_y(); } -inline void FeaturesFile_FeatureRecord::_internal_set_y(float value) { - _impl_._has_bits_[0] |= 0x00000200u; - _impl_.y_ = value; -} inline void FeaturesFile_FeatureRecord::set_y(float value) { _internal_set_y(value); + _impl_._has_bits_[0] |= 0x00000200u; // @@protoc_insertion_point(field_set:Odb.Lib.Protobuf.FeaturesFile.FeatureRecord.y) } +inline float FeaturesFile_FeatureRecord::_internal_y() const { + ::google::protobuf::internal::TSanRead(&_impl_); + return _impl_.y_; +} +inline void FeaturesFile_FeatureRecord::_internal_set_y(float value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.y_ = value; +} // optional int32 apt_def = 9; -inline bool FeaturesFile_FeatureRecord::_internal_has_apt_def() const { +inline bool FeaturesFile_FeatureRecord::has_apt_def() const { bool value = (_impl_._has_bits_[0] & 0x00000400u) != 0; return value; } -inline bool FeaturesFile_FeatureRecord::has_apt_def() const { - return _internal_has_apt_def(); -} inline void FeaturesFile_FeatureRecord::clear_apt_def() { + ::google::protobuf::internal::TSanWrite(&_impl_); _impl_.apt_def_ = 0; _impl_._has_bits_[0] &= ~0x00000400u; } -inline int32_t FeaturesFile_FeatureRecord::_internal_apt_def() const { - return _impl_.apt_def_; -} -inline int32_t FeaturesFile_FeatureRecord::apt_def() const { +inline ::int32_t FeaturesFile_FeatureRecord::apt_def() const { // @@protoc_insertion_point(field_get:Odb.Lib.Protobuf.FeaturesFile.FeatureRecord.apt_def) return _internal_apt_def(); } -inline void FeaturesFile_FeatureRecord::_internal_set_apt_def(int32_t value) { - _impl_._has_bits_[0] |= 0x00000400u; - _impl_.apt_def_ = value; -} -inline void FeaturesFile_FeatureRecord::set_apt_def(int32_t value) { +inline void FeaturesFile_FeatureRecord::set_apt_def(::int32_t value) { _internal_set_apt_def(value); + _impl_._has_bits_[0] |= 0x00000400u; // @@protoc_insertion_point(field_set:Odb.Lib.Protobuf.FeaturesFile.FeatureRecord.apt_def) } +inline ::int32_t FeaturesFile_FeatureRecord::_internal_apt_def() const { + ::google::protobuf::internal::TSanRead(&_impl_); + return _impl_.apt_def_; +} +inline void FeaturesFile_FeatureRecord::_internal_set_apt_def(::int32_t value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.apt_def_ = value; +} // optional int32 apt_def_symbol_num = 10; -inline bool FeaturesFile_FeatureRecord::_internal_has_apt_def_symbol_num() const { +inline bool FeaturesFile_FeatureRecord::has_apt_def_symbol_num() const { bool value = (_impl_._has_bits_[0] & 0x00000800u) != 0; return value; } -inline bool FeaturesFile_FeatureRecord::has_apt_def_symbol_num() const { - return _internal_has_apt_def_symbol_num(); -} inline void FeaturesFile_FeatureRecord::clear_apt_def_symbol_num() { + ::google::protobuf::internal::TSanWrite(&_impl_); _impl_.apt_def_symbol_num_ = 0; _impl_._has_bits_[0] &= ~0x00000800u; } -inline int32_t FeaturesFile_FeatureRecord::_internal_apt_def_symbol_num() const { - return _impl_.apt_def_symbol_num_; -} -inline int32_t FeaturesFile_FeatureRecord::apt_def_symbol_num() const { +inline ::int32_t FeaturesFile_FeatureRecord::apt_def_symbol_num() const { // @@protoc_insertion_point(field_get:Odb.Lib.Protobuf.FeaturesFile.FeatureRecord.apt_def_symbol_num) return _internal_apt_def_symbol_num(); } -inline void FeaturesFile_FeatureRecord::_internal_set_apt_def_symbol_num(int32_t value) { - _impl_._has_bits_[0] |= 0x00000800u; - _impl_.apt_def_symbol_num_ = value; -} -inline void FeaturesFile_FeatureRecord::set_apt_def_symbol_num(int32_t value) { +inline void FeaturesFile_FeatureRecord::set_apt_def_symbol_num(::int32_t value) { _internal_set_apt_def_symbol_num(value); + _impl_._has_bits_[0] |= 0x00000800u; // @@protoc_insertion_point(field_set:Odb.Lib.Protobuf.FeaturesFile.FeatureRecord.apt_def_symbol_num) } +inline ::int32_t FeaturesFile_FeatureRecord::_internal_apt_def_symbol_num() const { + ::google::protobuf::internal::TSanRead(&_impl_); + return _impl_.apt_def_symbol_num_; +} +inline void FeaturesFile_FeatureRecord::_internal_set_apt_def_symbol_num(::int32_t value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.apt_def_symbol_num_ = value; +} // optional float apt_def_resize_factor = 11; -inline bool FeaturesFile_FeatureRecord::_internal_has_apt_def_resize_factor() const { +inline bool FeaturesFile_FeatureRecord::has_apt_def_resize_factor() const { bool value = (_impl_._has_bits_[0] & 0x00001000u) != 0; return value; } -inline bool FeaturesFile_FeatureRecord::has_apt_def_resize_factor() const { - return _internal_has_apt_def_resize_factor(); -} inline void FeaturesFile_FeatureRecord::clear_apt_def_resize_factor() { + ::google::protobuf::internal::TSanWrite(&_impl_); _impl_.apt_def_resize_factor_ = 0; _impl_._has_bits_[0] &= ~0x00001000u; } -inline float FeaturesFile_FeatureRecord::_internal_apt_def_resize_factor() const { - return _impl_.apt_def_resize_factor_; -} inline float FeaturesFile_FeatureRecord::apt_def_resize_factor() const { // @@protoc_insertion_point(field_get:Odb.Lib.Protobuf.FeaturesFile.FeatureRecord.apt_def_resize_factor) return _internal_apt_def_resize_factor(); } -inline void FeaturesFile_FeatureRecord::_internal_set_apt_def_resize_factor(float value) { - _impl_._has_bits_[0] |= 0x00001000u; - _impl_.apt_def_resize_factor_ = value; -} inline void FeaturesFile_FeatureRecord::set_apt_def_resize_factor(float value) { _internal_set_apt_def_resize_factor(value); + _impl_._has_bits_[0] |= 0x00001000u; // @@protoc_insertion_point(field_set:Odb.Lib.Protobuf.FeaturesFile.FeatureRecord.apt_def_resize_factor) } +inline float FeaturesFile_FeatureRecord::_internal_apt_def_resize_factor() const { + ::google::protobuf::internal::TSanRead(&_impl_); + return _impl_.apt_def_resize_factor_; +} +inline void FeaturesFile_FeatureRecord::_internal_set_apt_def_resize_factor(float value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.apt_def_resize_factor_ = value; +} // optional float xc = 12; -inline bool FeaturesFile_FeatureRecord::_internal_has_xc() const { +inline bool FeaturesFile_FeatureRecord::has_xc() const { bool value = (_impl_._has_bits_[0] & 0x00002000u) != 0; return value; } -inline bool FeaturesFile_FeatureRecord::has_xc() const { - return _internal_has_xc(); -} inline void FeaturesFile_FeatureRecord::clear_xc() { + ::google::protobuf::internal::TSanWrite(&_impl_); _impl_.xc_ = 0; _impl_._has_bits_[0] &= ~0x00002000u; } -inline float FeaturesFile_FeatureRecord::_internal_xc() const { - return _impl_.xc_; -} inline float FeaturesFile_FeatureRecord::xc() const { // @@protoc_insertion_point(field_get:Odb.Lib.Protobuf.FeaturesFile.FeatureRecord.xc) return _internal_xc(); } -inline void FeaturesFile_FeatureRecord::_internal_set_xc(float value) { - _impl_._has_bits_[0] |= 0x00002000u; - _impl_.xc_ = value; -} inline void FeaturesFile_FeatureRecord::set_xc(float value) { _internal_set_xc(value); + _impl_._has_bits_[0] |= 0x00002000u; // @@protoc_insertion_point(field_set:Odb.Lib.Protobuf.FeaturesFile.FeatureRecord.xc) } +inline float FeaturesFile_FeatureRecord::_internal_xc() const { + ::google::protobuf::internal::TSanRead(&_impl_); + return _impl_.xc_; +} +inline void FeaturesFile_FeatureRecord::_internal_set_xc(float value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.xc_ = value; +} // optional float yc = 13; -inline bool FeaturesFile_FeatureRecord::_internal_has_yc() const { +inline bool FeaturesFile_FeatureRecord::has_yc() const { bool value = (_impl_._has_bits_[0] & 0x00004000u) != 0; return value; } -inline bool FeaturesFile_FeatureRecord::has_yc() const { - return _internal_has_yc(); -} inline void FeaturesFile_FeatureRecord::clear_yc() { + ::google::protobuf::internal::TSanWrite(&_impl_); _impl_.yc_ = 0; _impl_._has_bits_[0] &= ~0x00004000u; } -inline float FeaturesFile_FeatureRecord::_internal_yc() const { - return _impl_.yc_; -} inline float FeaturesFile_FeatureRecord::yc() const { // @@protoc_insertion_point(field_get:Odb.Lib.Protobuf.FeaturesFile.FeatureRecord.yc) return _internal_yc(); } -inline void FeaturesFile_FeatureRecord::_internal_set_yc(float value) { - _impl_._has_bits_[0] |= 0x00004000u; - _impl_.yc_ = value; -} inline void FeaturesFile_FeatureRecord::set_yc(float value) { _internal_set_yc(value); + _impl_._has_bits_[0] |= 0x00004000u; // @@protoc_insertion_point(field_set:Odb.Lib.Protobuf.FeaturesFile.FeatureRecord.yc) } +inline float FeaturesFile_FeatureRecord::_internal_yc() const { + ::google::protobuf::internal::TSanRead(&_impl_); + return _impl_.yc_; +} +inline void FeaturesFile_FeatureRecord::_internal_set_yc(float value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.yc_ = value; +} // optional bool cw = 14; -inline bool FeaturesFile_FeatureRecord::_internal_has_cw() const { +inline bool FeaturesFile_FeatureRecord::has_cw() const { bool value = (_impl_._has_bits_[0] & 0x00008000u) != 0; return value; } -inline bool FeaturesFile_FeatureRecord::has_cw() const { - return _internal_has_cw(); -} inline void FeaturesFile_FeatureRecord::clear_cw() { + ::google::protobuf::internal::TSanWrite(&_impl_); _impl_.cw_ = false; _impl_._has_bits_[0] &= ~0x00008000u; } -inline bool FeaturesFile_FeatureRecord::_internal_cw() const { - return _impl_.cw_; -} inline bool FeaturesFile_FeatureRecord::cw() const { // @@protoc_insertion_point(field_get:Odb.Lib.Protobuf.FeaturesFile.FeatureRecord.cw) return _internal_cw(); } -inline void FeaturesFile_FeatureRecord::_internal_set_cw(bool value) { - _impl_._has_bits_[0] |= 0x00008000u; - _impl_.cw_ = value; -} inline void FeaturesFile_FeatureRecord::set_cw(bool value) { _internal_set_cw(value); + _impl_._has_bits_[0] |= 0x00008000u; // @@protoc_insertion_point(field_set:Odb.Lib.Protobuf.FeaturesFile.FeatureRecord.cw) } +inline bool FeaturesFile_FeatureRecord::_internal_cw() const { + ::google::protobuf::internal::TSanRead(&_impl_); + return _impl_.cw_; +} +inline void FeaturesFile_FeatureRecord::_internal_set_cw(bool value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.cw_ = value; +} // optional string font = 15; -inline bool FeaturesFile_FeatureRecord::_internal_has_font() const { +inline bool FeaturesFile_FeatureRecord::has_font() const { bool value = (_impl_._has_bits_[0] & 0x00000001u) != 0; return value; } -inline bool FeaturesFile_FeatureRecord::has_font() const { - return _internal_has_font(); -} inline void FeaturesFile_FeatureRecord::clear_font() { + ::google::protobuf::internal::TSanWrite(&_impl_); _impl_.font_.ClearToEmpty(); _impl_._has_bits_[0] &= ~0x00000001u; } -inline const std::string& FeaturesFile_FeatureRecord::font() const { +inline const std::string& FeaturesFile_FeatureRecord::font() const + ABSL_ATTRIBUTE_LIFETIME_BOUND { // @@protoc_insertion_point(field_get:Odb.Lib.Protobuf.FeaturesFile.FeatureRecord.font) return _internal_font(); } -template -inline PROTOBUF_ALWAYS_INLINE -void FeaturesFile_FeatureRecord::set_font(ArgT0&& arg0, ArgT... args) { - _impl_._has_bits_[0] |= 0x00000001u; - _impl_.font_.Set(static_cast(arg0), args..., GetArenaForAllocation()); +template +inline PROTOBUF_ALWAYS_INLINE void FeaturesFile_FeatureRecord::set_font(Arg_&& arg, + Args_... args) { + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_._has_bits_[0] |= 0x00000001u; + _impl_.font_.Set(static_cast(arg), args..., GetArena()); // @@protoc_insertion_point(field_set:Odb.Lib.Protobuf.FeaturesFile.FeatureRecord.font) } -inline std::string* FeaturesFile_FeatureRecord::mutable_font() { +inline std::string* FeaturesFile_FeatureRecord::mutable_font() ABSL_ATTRIBUTE_LIFETIME_BOUND { std::string* _s = _internal_mutable_font(); // @@protoc_insertion_point(field_mutable:Odb.Lib.Protobuf.FeaturesFile.FeatureRecord.font) return _s; } inline const std::string& FeaturesFile_FeatureRecord::_internal_font() const { + ::google::protobuf::internal::TSanRead(&_impl_); return _impl_.font_.Get(); } inline void FeaturesFile_FeatureRecord::_internal_set_font(const std::string& value) { + ::google::protobuf::internal::TSanWrite(&_impl_); _impl_._has_bits_[0] |= 0x00000001u; - _impl_.font_.Set(value, GetArenaForAllocation()); + _impl_.font_.Set(value, GetArena()); } inline std::string* FeaturesFile_FeatureRecord::_internal_mutable_font() { + ::google::protobuf::internal::TSanWrite(&_impl_); _impl_._has_bits_[0] |= 0x00000001u; - return _impl_.font_.Mutable(GetArenaForAllocation()); + return _impl_.font_.Mutable( GetArena()); } inline std::string* FeaturesFile_FeatureRecord::release_font() { + ::google::protobuf::internal::TSanWrite(&_impl_); // @@protoc_insertion_point(field_release:Odb.Lib.Protobuf.FeaturesFile.FeatureRecord.font) - if (!_internal_has_font()) { + if ((_impl_._has_bits_[0] & 0x00000001u) == 0) { return nullptr; } _impl_._has_bits_[0] &= ~0x00000001u; - auto* p = _impl_.font_.Release(); -#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (_impl_.font_.IsDefault()) { - _impl_.font_.Set("", GetArenaForAllocation()); + auto* released = _impl_.font_.Release(); + if (::google::protobuf::internal::DebugHardenForceCopyDefaultString()) { + _impl_.font_.Set("", GetArena()); } -#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING - return p; + return released; } -inline void FeaturesFile_FeatureRecord::set_allocated_font(std::string* font) { - if (font != nullptr) { +inline void FeaturesFile_FeatureRecord::set_allocated_font(std::string* value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + if (value != nullptr) { _impl_._has_bits_[0] |= 0x00000001u; } else { _impl_._has_bits_[0] &= ~0x00000001u; } - _impl_.font_.SetAllocated(font, GetArenaForAllocation()); -#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (_impl_.font_.IsDefault()) { - _impl_.font_.Set("", GetArenaForAllocation()); + _impl_.font_.SetAllocated(value, GetArena()); + if (::google::protobuf::internal::DebugHardenForceCopyDefaultString() && _impl_.font_.IsDefault()) { + _impl_.font_.Set("", GetArena()); } -#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING // @@protoc_insertion_point(field_set_allocated:Odb.Lib.Protobuf.FeaturesFile.FeatureRecord.font) } // optional float xsize = 16; -inline bool FeaturesFile_FeatureRecord::_internal_has_xsize() const { +inline bool FeaturesFile_FeatureRecord::has_xsize() const { bool value = (_impl_._has_bits_[0] & 0x00010000u) != 0; return value; } -inline bool FeaturesFile_FeatureRecord::has_xsize() const { - return _internal_has_xsize(); -} inline void FeaturesFile_FeatureRecord::clear_xsize() { + ::google::protobuf::internal::TSanWrite(&_impl_); _impl_.xsize_ = 0; _impl_._has_bits_[0] &= ~0x00010000u; } -inline float FeaturesFile_FeatureRecord::_internal_xsize() const { - return _impl_.xsize_; -} inline float FeaturesFile_FeatureRecord::xsize() const { // @@protoc_insertion_point(field_get:Odb.Lib.Protobuf.FeaturesFile.FeatureRecord.xsize) return _internal_xsize(); } -inline void FeaturesFile_FeatureRecord::_internal_set_xsize(float value) { - _impl_._has_bits_[0] |= 0x00010000u; - _impl_.xsize_ = value; -} inline void FeaturesFile_FeatureRecord::set_xsize(float value) { _internal_set_xsize(value); + _impl_._has_bits_[0] |= 0x00010000u; // @@protoc_insertion_point(field_set:Odb.Lib.Protobuf.FeaturesFile.FeatureRecord.xsize) } +inline float FeaturesFile_FeatureRecord::_internal_xsize() const { + ::google::protobuf::internal::TSanRead(&_impl_); + return _impl_.xsize_; +} +inline void FeaturesFile_FeatureRecord::_internal_set_xsize(float value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.xsize_ = value; +} // optional float ysize = 17; -inline bool FeaturesFile_FeatureRecord::_internal_has_ysize() const { +inline bool FeaturesFile_FeatureRecord::has_ysize() const { bool value = (_impl_._has_bits_[0] & 0x00020000u) != 0; return value; } -inline bool FeaturesFile_FeatureRecord::has_ysize() const { - return _internal_has_ysize(); -} inline void FeaturesFile_FeatureRecord::clear_ysize() { + ::google::protobuf::internal::TSanWrite(&_impl_); _impl_.ysize_ = 0; _impl_._has_bits_[0] &= ~0x00020000u; } -inline float FeaturesFile_FeatureRecord::_internal_ysize() const { - return _impl_.ysize_; -} inline float FeaturesFile_FeatureRecord::ysize() const { // @@protoc_insertion_point(field_get:Odb.Lib.Protobuf.FeaturesFile.FeatureRecord.ysize) return _internal_ysize(); } -inline void FeaturesFile_FeatureRecord::_internal_set_ysize(float value) { - _impl_._has_bits_[0] |= 0x00020000u; - _impl_.ysize_ = value; -} inline void FeaturesFile_FeatureRecord::set_ysize(float value) { _internal_set_ysize(value); + _impl_._has_bits_[0] |= 0x00020000u; // @@protoc_insertion_point(field_set:Odb.Lib.Protobuf.FeaturesFile.FeatureRecord.ysize) } +inline float FeaturesFile_FeatureRecord::_internal_ysize() const { + ::google::protobuf::internal::TSanRead(&_impl_); + return _impl_.ysize_; +} +inline void FeaturesFile_FeatureRecord::_internal_set_ysize(float value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.ysize_ = value; +} // optional float width_factor = 18; -inline bool FeaturesFile_FeatureRecord::_internal_has_width_factor() const { +inline bool FeaturesFile_FeatureRecord::has_width_factor() const { bool value = (_impl_._has_bits_[0] & 0x00040000u) != 0; return value; } -inline bool FeaturesFile_FeatureRecord::has_width_factor() const { - return _internal_has_width_factor(); -} inline void FeaturesFile_FeatureRecord::clear_width_factor() { + ::google::protobuf::internal::TSanWrite(&_impl_); _impl_.width_factor_ = 0; _impl_._has_bits_[0] &= ~0x00040000u; } -inline float FeaturesFile_FeatureRecord::_internal_width_factor() const { - return _impl_.width_factor_; -} inline float FeaturesFile_FeatureRecord::width_factor() const { // @@protoc_insertion_point(field_get:Odb.Lib.Protobuf.FeaturesFile.FeatureRecord.width_factor) return _internal_width_factor(); } -inline void FeaturesFile_FeatureRecord::_internal_set_width_factor(float value) { - _impl_._has_bits_[0] |= 0x00040000u; - _impl_.width_factor_ = value; -} inline void FeaturesFile_FeatureRecord::set_width_factor(float value) { _internal_set_width_factor(value); + _impl_._has_bits_[0] |= 0x00040000u; // @@protoc_insertion_point(field_set:Odb.Lib.Protobuf.FeaturesFile.FeatureRecord.width_factor) } +inline float FeaturesFile_FeatureRecord::_internal_width_factor() const { + ::google::protobuf::internal::TSanRead(&_impl_); + return _impl_.width_factor_; +} +inline void FeaturesFile_FeatureRecord::_internal_set_width_factor(float value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.width_factor_ = value; +} // optional string text = 19; -inline bool FeaturesFile_FeatureRecord::_internal_has_text() const { +inline bool FeaturesFile_FeatureRecord::has_text() const { bool value = (_impl_._has_bits_[0] & 0x00000002u) != 0; return value; } -inline bool FeaturesFile_FeatureRecord::has_text() const { - return _internal_has_text(); -} inline void FeaturesFile_FeatureRecord::clear_text() { + ::google::protobuf::internal::TSanWrite(&_impl_); _impl_.text_.ClearToEmpty(); _impl_._has_bits_[0] &= ~0x00000002u; } -inline const std::string& FeaturesFile_FeatureRecord::text() const { +inline const std::string& FeaturesFile_FeatureRecord::text() const + ABSL_ATTRIBUTE_LIFETIME_BOUND { // @@protoc_insertion_point(field_get:Odb.Lib.Protobuf.FeaturesFile.FeatureRecord.text) return _internal_text(); } -template -inline PROTOBUF_ALWAYS_INLINE -void FeaturesFile_FeatureRecord::set_text(ArgT0&& arg0, ArgT... args) { - _impl_._has_bits_[0] |= 0x00000002u; - _impl_.text_.Set(static_cast(arg0), args..., GetArenaForAllocation()); +template +inline PROTOBUF_ALWAYS_INLINE void FeaturesFile_FeatureRecord::set_text(Arg_&& arg, + Args_... args) { + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_._has_bits_[0] |= 0x00000002u; + _impl_.text_.Set(static_cast(arg), args..., GetArena()); // @@protoc_insertion_point(field_set:Odb.Lib.Protobuf.FeaturesFile.FeatureRecord.text) } -inline std::string* FeaturesFile_FeatureRecord::mutable_text() { +inline std::string* FeaturesFile_FeatureRecord::mutable_text() ABSL_ATTRIBUTE_LIFETIME_BOUND { std::string* _s = _internal_mutable_text(); // @@protoc_insertion_point(field_mutable:Odb.Lib.Protobuf.FeaturesFile.FeatureRecord.text) return _s; } inline const std::string& FeaturesFile_FeatureRecord::_internal_text() const { + ::google::protobuf::internal::TSanRead(&_impl_); return _impl_.text_.Get(); } inline void FeaturesFile_FeatureRecord::_internal_set_text(const std::string& value) { + ::google::protobuf::internal::TSanWrite(&_impl_); _impl_._has_bits_[0] |= 0x00000002u; - _impl_.text_.Set(value, GetArenaForAllocation()); + _impl_.text_.Set(value, GetArena()); } inline std::string* FeaturesFile_FeatureRecord::_internal_mutable_text() { + ::google::protobuf::internal::TSanWrite(&_impl_); _impl_._has_bits_[0] |= 0x00000002u; - return _impl_.text_.Mutable(GetArenaForAllocation()); + return _impl_.text_.Mutable( GetArena()); } inline std::string* FeaturesFile_FeatureRecord::release_text() { + ::google::protobuf::internal::TSanWrite(&_impl_); // @@protoc_insertion_point(field_release:Odb.Lib.Protobuf.FeaturesFile.FeatureRecord.text) - if (!_internal_has_text()) { + if ((_impl_._has_bits_[0] & 0x00000002u) == 0) { return nullptr; } _impl_._has_bits_[0] &= ~0x00000002u; - auto* p = _impl_.text_.Release(); -#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (_impl_.text_.IsDefault()) { - _impl_.text_.Set("", GetArenaForAllocation()); + auto* released = _impl_.text_.Release(); + if (::google::protobuf::internal::DebugHardenForceCopyDefaultString()) { + _impl_.text_.Set("", GetArena()); } -#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING - return p; + return released; } -inline void FeaturesFile_FeatureRecord::set_allocated_text(std::string* text) { - if (text != nullptr) { +inline void FeaturesFile_FeatureRecord::set_allocated_text(std::string* value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + if (value != nullptr) { _impl_._has_bits_[0] |= 0x00000002u; } else { _impl_._has_bits_[0] &= ~0x00000002u; } - _impl_.text_.SetAllocated(text, GetArenaForAllocation()); -#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (_impl_.text_.IsDefault()) { - _impl_.text_.Set("", GetArenaForAllocation()); + _impl_.text_.SetAllocated(value, GetArena()); + if (::google::protobuf::internal::DebugHardenForceCopyDefaultString() && _impl_.text_.IsDefault()) { + _impl_.text_.Set("", GetArena()); } -#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING // @@protoc_insertion_point(field_set_allocated:Odb.Lib.Protobuf.FeaturesFile.FeatureRecord.text) } // optional int32 version = 20; -inline bool FeaturesFile_FeatureRecord::_internal_has_version() const { +inline bool FeaturesFile_FeatureRecord::has_version() const { bool value = (_impl_._has_bits_[0] & 0x00080000u) != 0; return value; } -inline bool FeaturesFile_FeatureRecord::has_version() const { - return _internal_has_version(); -} inline void FeaturesFile_FeatureRecord::clear_version() { + ::google::protobuf::internal::TSanWrite(&_impl_); _impl_.version_ = 0; _impl_._has_bits_[0] &= ~0x00080000u; } -inline int32_t FeaturesFile_FeatureRecord::_internal_version() const { - return _impl_.version_; -} -inline int32_t FeaturesFile_FeatureRecord::version() const { +inline ::int32_t FeaturesFile_FeatureRecord::version() const { // @@protoc_insertion_point(field_get:Odb.Lib.Protobuf.FeaturesFile.FeatureRecord.version) return _internal_version(); } -inline void FeaturesFile_FeatureRecord::_internal_set_version(int32_t value) { - _impl_._has_bits_[0] |= 0x00080000u; - _impl_.version_ = value; -} -inline void FeaturesFile_FeatureRecord::set_version(int32_t value) { +inline void FeaturesFile_FeatureRecord::set_version(::int32_t value) { _internal_set_version(value); + _impl_._has_bits_[0] |= 0x00080000u; // @@protoc_insertion_point(field_set:Odb.Lib.Protobuf.FeaturesFile.FeatureRecord.version) } +inline ::int32_t FeaturesFile_FeatureRecord::_internal_version() const { + ::google::protobuf::internal::TSanRead(&_impl_); + return _impl_.version_; +} +inline void FeaturesFile_FeatureRecord::_internal_set_version(::int32_t value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.version_ = value; +} // optional int32 sym_num = 21; -inline bool FeaturesFile_FeatureRecord::_internal_has_sym_num() const { +inline bool FeaturesFile_FeatureRecord::has_sym_num() const { bool value = (_impl_._has_bits_[0] & 0x00100000u) != 0; return value; } -inline bool FeaturesFile_FeatureRecord::has_sym_num() const { - return _internal_has_sym_num(); -} inline void FeaturesFile_FeatureRecord::clear_sym_num() { + ::google::protobuf::internal::TSanWrite(&_impl_); _impl_.sym_num_ = 0; _impl_._has_bits_[0] &= ~0x00100000u; } -inline int32_t FeaturesFile_FeatureRecord::_internal_sym_num() const { - return _impl_.sym_num_; -} -inline int32_t FeaturesFile_FeatureRecord::sym_num() const { +inline ::int32_t FeaturesFile_FeatureRecord::sym_num() const { // @@protoc_insertion_point(field_get:Odb.Lib.Protobuf.FeaturesFile.FeatureRecord.sym_num) return _internal_sym_num(); } -inline void FeaturesFile_FeatureRecord::_internal_set_sym_num(int32_t value) { - _impl_._has_bits_[0] |= 0x00100000u; - _impl_.sym_num_ = value; -} -inline void FeaturesFile_FeatureRecord::set_sym_num(int32_t value) { +inline void FeaturesFile_FeatureRecord::set_sym_num(::int32_t value) { _internal_set_sym_num(value); + _impl_._has_bits_[0] |= 0x00100000u; // @@protoc_insertion_point(field_set:Odb.Lib.Protobuf.FeaturesFile.FeatureRecord.sym_num) } +inline ::int32_t FeaturesFile_FeatureRecord::_internal_sym_num() const { + ::google::protobuf::internal::TSanRead(&_impl_); + return _impl_.sym_num_; +} +inline void FeaturesFile_FeatureRecord::_internal_set_sym_num(::int32_t value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.sym_num_ = value; +} // optional .Odb.Lib.Protobuf.Polarity polarity = 22; -inline bool FeaturesFile_FeatureRecord::_internal_has_polarity() const { +inline bool FeaturesFile_FeatureRecord::has_polarity() const { bool value = (_impl_._has_bits_[0] & 0x00200000u) != 0; return value; } -inline bool FeaturesFile_FeatureRecord::has_polarity() const { - return _internal_has_polarity(); -} inline void FeaturesFile_FeatureRecord::clear_polarity() { + ::google::protobuf::internal::TSanWrite(&_impl_); _impl_.polarity_ = 0; _impl_._has_bits_[0] &= ~0x00200000u; } -inline ::Odb::Lib::Protobuf::Polarity FeaturesFile_FeatureRecord::_internal_polarity() const { - return static_cast< ::Odb::Lib::Protobuf::Polarity >(_impl_.polarity_); -} inline ::Odb::Lib::Protobuf::Polarity FeaturesFile_FeatureRecord::polarity() const { // @@protoc_insertion_point(field_get:Odb.Lib.Protobuf.FeaturesFile.FeatureRecord.polarity) return _internal_polarity(); } -inline void FeaturesFile_FeatureRecord::_internal_set_polarity(::Odb::Lib::Protobuf::Polarity value) { - _impl_._has_bits_[0] |= 0x00200000u; - _impl_.polarity_ = value; -} inline void FeaturesFile_FeatureRecord::set_polarity(::Odb::Lib::Protobuf::Polarity value) { _internal_set_polarity(value); + _impl_._has_bits_[0] |= 0x00200000u; // @@protoc_insertion_point(field_set:Odb.Lib.Protobuf.FeaturesFile.FeatureRecord.polarity) } +inline ::Odb::Lib::Protobuf::Polarity FeaturesFile_FeatureRecord::_internal_polarity() const { + ::google::protobuf::internal::TSanRead(&_impl_); + return static_cast<::Odb::Lib::Protobuf::Polarity>(_impl_.polarity_); +} +inline void FeaturesFile_FeatureRecord::_internal_set_polarity(::Odb::Lib::Protobuf::Polarity value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.polarity_ = value; +} // optional int32 dcode = 23; -inline bool FeaturesFile_FeatureRecord::_internal_has_dcode() const { +inline bool FeaturesFile_FeatureRecord::has_dcode() const { bool value = (_impl_._has_bits_[0] & 0x00400000u) != 0; return value; } -inline bool FeaturesFile_FeatureRecord::has_dcode() const { - return _internal_has_dcode(); -} inline void FeaturesFile_FeatureRecord::clear_dcode() { + ::google::protobuf::internal::TSanWrite(&_impl_); _impl_.dcode_ = 0; _impl_._has_bits_[0] &= ~0x00400000u; } -inline int32_t FeaturesFile_FeatureRecord::_internal_dcode() const { - return _impl_.dcode_; -} -inline int32_t FeaturesFile_FeatureRecord::dcode() const { +inline ::int32_t FeaturesFile_FeatureRecord::dcode() const { // @@protoc_insertion_point(field_get:Odb.Lib.Protobuf.FeaturesFile.FeatureRecord.dcode) return _internal_dcode(); } -inline void FeaturesFile_FeatureRecord::_internal_set_dcode(int32_t value) { - _impl_._has_bits_[0] |= 0x00400000u; - _impl_.dcode_ = value; -} -inline void FeaturesFile_FeatureRecord::set_dcode(int32_t value) { +inline void FeaturesFile_FeatureRecord::set_dcode(::int32_t value) { _internal_set_dcode(value); + _impl_._has_bits_[0] |= 0x00400000u; // @@protoc_insertion_point(field_set:Odb.Lib.Protobuf.FeaturesFile.FeatureRecord.dcode) } +inline ::int32_t FeaturesFile_FeatureRecord::_internal_dcode() const { + ::google::protobuf::internal::TSanRead(&_impl_); + return _impl_.dcode_; +} +inline void FeaturesFile_FeatureRecord::_internal_set_dcode(::int32_t value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.dcode_ = value; +} // optional int32 atr = 24; -inline bool FeaturesFile_FeatureRecord::_internal_has_atr() const { +inline bool FeaturesFile_FeatureRecord::has_atr() const { bool value = (_impl_._has_bits_[0] & 0x00800000u) != 0; return value; } -inline bool FeaturesFile_FeatureRecord::has_atr() const { - return _internal_has_atr(); -} inline void FeaturesFile_FeatureRecord::clear_atr() { + ::google::protobuf::internal::TSanWrite(&_impl_); _impl_.atr_ = 0; _impl_._has_bits_[0] &= ~0x00800000u; } -inline int32_t FeaturesFile_FeatureRecord::_internal_atr() const { - return _impl_.atr_; -} -inline int32_t FeaturesFile_FeatureRecord::atr() const { +inline ::int32_t FeaturesFile_FeatureRecord::atr() const { // @@protoc_insertion_point(field_get:Odb.Lib.Protobuf.FeaturesFile.FeatureRecord.atr) return _internal_atr(); } -inline void FeaturesFile_FeatureRecord::_internal_set_atr(int32_t value) { - _impl_._has_bits_[0] |= 0x00800000u; - _impl_.atr_ = value; -} -inline void FeaturesFile_FeatureRecord::set_atr(int32_t value) { +inline void FeaturesFile_FeatureRecord::set_atr(::int32_t value) { _internal_set_atr(value); + _impl_._has_bits_[0] |= 0x00800000u; // @@protoc_insertion_point(field_set:Odb.Lib.Protobuf.FeaturesFile.FeatureRecord.atr) } +inline ::int32_t FeaturesFile_FeatureRecord::_internal_atr() const { + ::google::protobuf::internal::TSanRead(&_impl_); + return _impl_.atr_; +} +inline void FeaturesFile_FeatureRecord::_internal_set_atr(::int32_t value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.atr_ = value; +} // optional string value = 25; -inline bool FeaturesFile_FeatureRecord::_internal_has_value() const { +inline bool FeaturesFile_FeatureRecord::has_value() const { bool value = (_impl_._has_bits_[0] & 0x00000004u) != 0; return value; } -inline bool FeaturesFile_FeatureRecord::has_value() const { - return _internal_has_value(); -} inline void FeaturesFile_FeatureRecord::clear_value() { + ::google::protobuf::internal::TSanWrite(&_impl_); _impl_.value_.ClearToEmpty(); _impl_._has_bits_[0] &= ~0x00000004u; } -inline const std::string& FeaturesFile_FeatureRecord::value() const { +inline const std::string& FeaturesFile_FeatureRecord::value() const + ABSL_ATTRIBUTE_LIFETIME_BOUND { // @@protoc_insertion_point(field_get:Odb.Lib.Protobuf.FeaturesFile.FeatureRecord.value) return _internal_value(); } -template -inline PROTOBUF_ALWAYS_INLINE -void FeaturesFile_FeatureRecord::set_value(ArgT0&& arg0, ArgT... args) { - _impl_._has_bits_[0] |= 0x00000004u; - _impl_.value_.Set(static_cast(arg0), args..., GetArenaForAllocation()); +template +inline PROTOBUF_ALWAYS_INLINE void FeaturesFile_FeatureRecord::set_value(Arg_&& arg, + Args_... args) { + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_._has_bits_[0] |= 0x00000004u; + _impl_.value_.Set(static_cast(arg), args..., GetArena()); // @@protoc_insertion_point(field_set:Odb.Lib.Protobuf.FeaturesFile.FeatureRecord.value) } -inline std::string* FeaturesFile_FeatureRecord::mutable_value() { +inline std::string* FeaturesFile_FeatureRecord::mutable_value() ABSL_ATTRIBUTE_LIFETIME_BOUND { std::string* _s = _internal_mutable_value(); // @@protoc_insertion_point(field_mutable:Odb.Lib.Protobuf.FeaturesFile.FeatureRecord.value) return _s; } inline const std::string& FeaturesFile_FeatureRecord::_internal_value() const { + ::google::protobuf::internal::TSanRead(&_impl_); return _impl_.value_.Get(); } inline void FeaturesFile_FeatureRecord::_internal_set_value(const std::string& value) { + ::google::protobuf::internal::TSanWrite(&_impl_); _impl_._has_bits_[0] |= 0x00000004u; - _impl_.value_.Set(value, GetArenaForAllocation()); + _impl_.value_.Set(value, GetArena()); } inline std::string* FeaturesFile_FeatureRecord::_internal_mutable_value() { + ::google::protobuf::internal::TSanWrite(&_impl_); _impl_._has_bits_[0] |= 0x00000004u; - return _impl_.value_.Mutable(GetArenaForAllocation()); + return _impl_.value_.Mutable( GetArena()); } inline std::string* FeaturesFile_FeatureRecord::release_value() { + ::google::protobuf::internal::TSanWrite(&_impl_); // @@protoc_insertion_point(field_release:Odb.Lib.Protobuf.FeaturesFile.FeatureRecord.value) - if (!_internal_has_value()) { + if ((_impl_._has_bits_[0] & 0x00000004u) == 0) { return nullptr; } _impl_._has_bits_[0] &= ~0x00000004u; - auto* p = _impl_.value_.Release(); -#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (_impl_.value_.IsDefault()) { - _impl_.value_.Set("", GetArenaForAllocation()); + auto* released = _impl_.value_.Release(); + if (::google::protobuf::internal::DebugHardenForceCopyDefaultString()) { + _impl_.value_.Set("", GetArena()); } -#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING - return p; + return released; } inline void FeaturesFile_FeatureRecord::set_allocated_value(std::string* value) { + ::google::protobuf::internal::TSanWrite(&_impl_); if (value != nullptr) { _impl_._has_bits_[0] |= 0x00000004u; } else { _impl_._has_bits_[0] &= ~0x00000004u; } - _impl_.value_.SetAllocated(value, GetArenaForAllocation()); -#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (_impl_.value_.IsDefault()) { - _impl_.value_.Set("", GetArenaForAllocation()); + _impl_.value_.SetAllocated(value, GetArena()); + if (::google::protobuf::internal::DebugHardenForceCopyDefaultString() && _impl_.value_.IsDefault()) { + _impl_.value_.Set("", GetArena()); } -#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING // @@protoc_insertion_point(field_set_allocated:Odb.Lib.Protobuf.FeaturesFile.FeatureRecord.value) } // optional uint32 id = 26; -inline bool FeaturesFile_FeatureRecord::_internal_has_id() const { +inline bool FeaturesFile_FeatureRecord::has_id() const { bool value = (_impl_._has_bits_[0] & 0x01000000u) != 0; return value; } -inline bool FeaturesFile_FeatureRecord::has_id() const { - return _internal_has_id(); -} inline void FeaturesFile_FeatureRecord::clear_id() { + ::google::protobuf::internal::TSanWrite(&_impl_); _impl_.id_ = 0u; _impl_._has_bits_[0] &= ~0x01000000u; } -inline uint32_t FeaturesFile_FeatureRecord::_internal_id() const { - return _impl_.id_; -} -inline uint32_t FeaturesFile_FeatureRecord::id() const { +inline ::uint32_t FeaturesFile_FeatureRecord::id() const { // @@protoc_insertion_point(field_get:Odb.Lib.Protobuf.FeaturesFile.FeatureRecord.id) return _internal_id(); } -inline void FeaturesFile_FeatureRecord::_internal_set_id(uint32_t value) { - _impl_._has_bits_[0] |= 0x01000000u; - _impl_.id_ = value; -} -inline void FeaturesFile_FeatureRecord::set_id(uint32_t value) { +inline void FeaturesFile_FeatureRecord::set_id(::uint32_t value) { _internal_set_id(value); + _impl_._has_bits_[0] |= 0x01000000u; // @@protoc_insertion_point(field_set:Odb.Lib.Protobuf.FeaturesFile.FeatureRecord.id) } +inline ::uint32_t FeaturesFile_FeatureRecord::_internal_id() const { + ::google::protobuf::internal::TSanRead(&_impl_); + return _impl_.id_; +} +inline void FeaturesFile_FeatureRecord::_internal_set_id(::uint32_t value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.id_ = value; +} // optional int32 orient_def = 27; -inline bool FeaturesFile_FeatureRecord::_internal_has_orient_def() const { +inline bool FeaturesFile_FeatureRecord::has_orient_def() const { bool value = (_impl_._has_bits_[0] & 0x02000000u) != 0; return value; } -inline bool FeaturesFile_FeatureRecord::has_orient_def() const { - return _internal_has_orient_def(); -} inline void FeaturesFile_FeatureRecord::clear_orient_def() { + ::google::protobuf::internal::TSanWrite(&_impl_); _impl_.orient_def_ = 0; _impl_._has_bits_[0] &= ~0x02000000u; } -inline int32_t FeaturesFile_FeatureRecord::_internal_orient_def() const { - return _impl_.orient_def_; -} -inline int32_t FeaturesFile_FeatureRecord::orient_def() const { +inline ::int32_t FeaturesFile_FeatureRecord::orient_def() const { // @@protoc_insertion_point(field_get:Odb.Lib.Protobuf.FeaturesFile.FeatureRecord.orient_def) return _internal_orient_def(); } -inline void FeaturesFile_FeatureRecord::_internal_set_orient_def(int32_t value) { - _impl_._has_bits_[0] |= 0x02000000u; - _impl_.orient_def_ = value; -} -inline void FeaturesFile_FeatureRecord::set_orient_def(int32_t value) { +inline void FeaturesFile_FeatureRecord::set_orient_def(::int32_t value) { _internal_set_orient_def(value); + _impl_._has_bits_[0] |= 0x02000000u; // @@protoc_insertion_point(field_set:Odb.Lib.Protobuf.FeaturesFile.FeatureRecord.orient_def) } +inline ::int32_t FeaturesFile_FeatureRecord::_internal_orient_def() const { + ::google::protobuf::internal::TSanRead(&_impl_); + return _impl_.orient_def_; +} +inline void FeaturesFile_FeatureRecord::_internal_set_orient_def(::int32_t value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.orient_def_ = value; +} // optional float orient_def_rotation = 28; -inline bool FeaturesFile_FeatureRecord::_internal_has_orient_def_rotation() const { +inline bool FeaturesFile_FeatureRecord::has_orient_def_rotation() const { bool value = (_impl_._has_bits_[0] & 0x04000000u) != 0; return value; } -inline bool FeaturesFile_FeatureRecord::has_orient_def_rotation() const { - return _internal_has_orient_def_rotation(); -} inline void FeaturesFile_FeatureRecord::clear_orient_def_rotation() { + ::google::protobuf::internal::TSanWrite(&_impl_); _impl_.orient_def_rotation_ = 0; _impl_._has_bits_[0] &= ~0x04000000u; } -inline float FeaturesFile_FeatureRecord::_internal_orient_def_rotation() const { - return _impl_.orient_def_rotation_; -} inline float FeaturesFile_FeatureRecord::orient_def_rotation() const { // @@protoc_insertion_point(field_get:Odb.Lib.Protobuf.FeaturesFile.FeatureRecord.orient_def_rotation) return _internal_orient_def_rotation(); } -inline void FeaturesFile_FeatureRecord::_internal_set_orient_def_rotation(float value) { - _impl_._has_bits_[0] |= 0x04000000u; - _impl_.orient_def_rotation_ = value; -} inline void FeaturesFile_FeatureRecord::set_orient_def_rotation(float value) { _internal_set_orient_def_rotation(value); + _impl_._has_bits_[0] |= 0x04000000u; // @@protoc_insertion_point(field_set:Odb.Lib.Protobuf.FeaturesFile.FeatureRecord.orient_def_rotation) } +inline float FeaturesFile_FeatureRecord::_internal_orient_def_rotation() const { + ::google::protobuf::internal::TSanRead(&_impl_); + return _impl_.orient_def_rotation_; +} +inline void FeaturesFile_FeatureRecord::_internal_set_orient_def_rotation(float value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.orient_def_rotation_ = value; +} // repeated .Odb.Lib.Protobuf.ContourPolygon contourPolygons = 1; inline int FeaturesFile_FeatureRecord::_internal_contourpolygons_size() const { - return _impl_.contourpolygons_.size(); + return _internal_contourpolygons().size(); } inline int FeaturesFile_FeatureRecord::contourpolygons_size() const { return _internal_contourpolygons_size(); } -inline ::Odb::Lib::Protobuf::ContourPolygon* FeaturesFile_FeatureRecord::mutable_contourpolygons(int index) { +inline ::Odb::Lib::Protobuf::ContourPolygon* FeaturesFile_FeatureRecord::mutable_contourpolygons(int index) + ABSL_ATTRIBUTE_LIFETIME_BOUND { // @@protoc_insertion_point(field_mutable:Odb.Lib.Protobuf.FeaturesFile.FeatureRecord.contourPolygons) - return _impl_.contourpolygons_.Mutable(index); + return _internal_mutable_contourpolygons()->Mutable(index); } -inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::Odb::Lib::Protobuf::ContourPolygon >* -FeaturesFile_FeatureRecord::mutable_contourpolygons() { +inline ::google::protobuf::RepeatedPtrField<::Odb::Lib::Protobuf::ContourPolygon>* FeaturesFile_FeatureRecord::mutable_contourpolygons() + ABSL_ATTRIBUTE_LIFETIME_BOUND { // @@protoc_insertion_point(field_mutable_list:Odb.Lib.Protobuf.FeaturesFile.FeatureRecord.contourPolygons) - return &_impl_.contourpolygons_; + ::google::protobuf::internal::TSanWrite(&_impl_); + return _internal_mutable_contourpolygons(); } -inline const ::Odb::Lib::Protobuf::ContourPolygon& FeaturesFile_FeatureRecord::_internal_contourpolygons(int index) const { - return _impl_.contourpolygons_.Get(index); -} -inline const ::Odb::Lib::Protobuf::ContourPolygon& FeaturesFile_FeatureRecord::contourpolygons(int index) const { +inline const ::Odb::Lib::Protobuf::ContourPolygon& FeaturesFile_FeatureRecord::contourpolygons(int index) const + ABSL_ATTRIBUTE_LIFETIME_BOUND { // @@protoc_insertion_point(field_get:Odb.Lib.Protobuf.FeaturesFile.FeatureRecord.contourPolygons) - return _internal_contourpolygons(index); -} -inline ::Odb::Lib::Protobuf::ContourPolygon* FeaturesFile_FeatureRecord::_internal_add_contourpolygons() { - return _impl_.contourpolygons_.Add(); + return _internal_contourpolygons().Get(index); } -inline ::Odb::Lib::Protobuf::ContourPolygon* FeaturesFile_FeatureRecord::add_contourpolygons() { - ::Odb::Lib::Protobuf::ContourPolygon* _add = _internal_add_contourpolygons(); +inline ::Odb::Lib::Protobuf::ContourPolygon* FeaturesFile_FeatureRecord::add_contourpolygons() ABSL_ATTRIBUTE_LIFETIME_BOUND { + ::google::protobuf::internal::TSanWrite(&_impl_); + ::Odb::Lib::Protobuf::ContourPolygon* _add = _internal_mutable_contourpolygons()->Add(); // @@protoc_insertion_point(field_add:Odb.Lib.Protobuf.FeaturesFile.FeatureRecord.contourPolygons) return _add; } -inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::Odb::Lib::Protobuf::ContourPolygon >& -FeaturesFile_FeatureRecord::contourpolygons() const { +inline const ::google::protobuf::RepeatedPtrField<::Odb::Lib::Protobuf::ContourPolygon>& FeaturesFile_FeatureRecord::contourpolygons() const + ABSL_ATTRIBUTE_LIFETIME_BOUND { // @@protoc_insertion_point(field_list:Odb.Lib.Protobuf.FeaturesFile.FeatureRecord.contourPolygons) + return _internal_contourpolygons(); +} +inline const ::google::protobuf::RepeatedPtrField<::Odb::Lib::Protobuf::ContourPolygon>& +FeaturesFile_FeatureRecord::_internal_contourpolygons() const { + ::google::protobuf::internal::TSanRead(&_impl_); return _impl_.contourpolygons_; } +inline ::google::protobuf::RepeatedPtrField<::Odb::Lib::Protobuf::ContourPolygon>* +FeaturesFile_FeatureRecord::_internal_mutable_contourpolygons() { + ::google::protobuf::internal::TSanRead(&_impl_); + return &_impl_.contourpolygons_; +} // map attributeLookupTable = 29; inline int FeaturesFile_FeatureRecord::_internal_attributelookuptable_size() const { - return _impl_.attributelookuptable_.size(); + return _internal_attributelookuptable().size(); } inline int FeaturesFile_FeatureRecord::attributelookuptable_size() const { return _internal_attributelookuptable_size(); } inline void FeaturesFile_FeatureRecord::clear_attributelookuptable() { + ::google::protobuf::internal::TSanWrite(&_impl_); _impl_.attributelookuptable_.Clear(); } -inline const ::PROTOBUF_NAMESPACE_ID::Map< std::string, std::string >& -FeaturesFile_FeatureRecord::_internal_attributelookuptable() const { +inline const ::google::protobuf::Map& FeaturesFile_FeatureRecord::_internal_attributelookuptable() const { + ::google::protobuf::internal::TSanRead(&_impl_); return _impl_.attributelookuptable_.GetMap(); } -inline const ::PROTOBUF_NAMESPACE_ID::Map< std::string, std::string >& -FeaturesFile_FeatureRecord::attributelookuptable() const { +inline const ::google::protobuf::Map& FeaturesFile_FeatureRecord::attributelookuptable() const ABSL_ATTRIBUTE_LIFETIME_BOUND { // @@protoc_insertion_point(field_map:Odb.Lib.Protobuf.FeaturesFile.FeatureRecord.attributeLookupTable) return _internal_attributelookuptable(); } -inline ::PROTOBUF_NAMESPACE_ID::Map< std::string, std::string >* -FeaturesFile_FeatureRecord::_internal_mutable_attributelookuptable() { +inline ::google::protobuf::Map* FeaturesFile_FeatureRecord::_internal_mutable_attributelookuptable() { + ::google::protobuf::internal::TSanWrite(&_impl_); return _impl_.attributelookuptable_.MutableMap(); } -inline ::PROTOBUF_NAMESPACE_ID::Map< std::string, std::string >* -FeaturesFile_FeatureRecord::mutable_attributelookuptable() { +inline ::google::protobuf::Map* FeaturesFile_FeatureRecord::mutable_attributelookuptable() ABSL_ATTRIBUTE_LIFETIME_BOUND { // @@protoc_insertion_point(field_mutable_map:Odb.Lib.Protobuf.FeaturesFile.FeatureRecord.attributeLookupTable) return _internal_mutable_attributelookuptable(); } @@ -2041,358 +2093,366 @@ FeaturesFile_FeatureRecord::mutable_attributelookuptable() { // FeaturesFile // optional string units = 1; -inline bool FeaturesFile::_internal_has_units() const { +inline bool FeaturesFile::has_units() const { bool value = (_impl_._has_bits_[0] & 0x00000001u) != 0; return value; } -inline bool FeaturesFile::has_units() const { - return _internal_has_units(); -} inline void FeaturesFile::clear_units() { + ::google::protobuf::internal::TSanWrite(&_impl_); _impl_.units_.ClearToEmpty(); _impl_._has_bits_[0] &= ~0x00000001u; } -inline const std::string& FeaturesFile::units() const { +inline const std::string& FeaturesFile::units() const + ABSL_ATTRIBUTE_LIFETIME_BOUND { // @@protoc_insertion_point(field_get:Odb.Lib.Protobuf.FeaturesFile.units) return _internal_units(); } -template -inline PROTOBUF_ALWAYS_INLINE -void FeaturesFile::set_units(ArgT0&& arg0, ArgT... args) { - _impl_._has_bits_[0] |= 0x00000001u; - _impl_.units_.Set(static_cast(arg0), args..., GetArenaForAllocation()); +template +inline PROTOBUF_ALWAYS_INLINE void FeaturesFile::set_units(Arg_&& arg, + Args_... args) { + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_._has_bits_[0] |= 0x00000001u; + _impl_.units_.Set(static_cast(arg), args..., GetArena()); // @@protoc_insertion_point(field_set:Odb.Lib.Protobuf.FeaturesFile.units) } -inline std::string* FeaturesFile::mutable_units() { +inline std::string* FeaturesFile::mutable_units() ABSL_ATTRIBUTE_LIFETIME_BOUND { std::string* _s = _internal_mutable_units(); // @@protoc_insertion_point(field_mutable:Odb.Lib.Protobuf.FeaturesFile.units) return _s; } inline const std::string& FeaturesFile::_internal_units() const { + ::google::protobuf::internal::TSanRead(&_impl_); return _impl_.units_.Get(); } inline void FeaturesFile::_internal_set_units(const std::string& value) { + ::google::protobuf::internal::TSanWrite(&_impl_); _impl_._has_bits_[0] |= 0x00000001u; - _impl_.units_.Set(value, GetArenaForAllocation()); + _impl_.units_.Set(value, GetArena()); } inline std::string* FeaturesFile::_internal_mutable_units() { + ::google::protobuf::internal::TSanWrite(&_impl_); _impl_._has_bits_[0] |= 0x00000001u; - return _impl_.units_.Mutable(GetArenaForAllocation()); + return _impl_.units_.Mutable( GetArena()); } inline std::string* FeaturesFile::release_units() { + ::google::protobuf::internal::TSanWrite(&_impl_); // @@protoc_insertion_point(field_release:Odb.Lib.Protobuf.FeaturesFile.units) - if (!_internal_has_units()) { + if ((_impl_._has_bits_[0] & 0x00000001u) == 0) { return nullptr; } _impl_._has_bits_[0] &= ~0x00000001u; - auto* p = _impl_.units_.Release(); -#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (_impl_.units_.IsDefault()) { - _impl_.units_.Set("", GetArenaForAllocation()); + auto* released = _impl_.units_.Release(); + if (::google::protobuf::internal::DebugHardenForceCopyDefaultString()) { + _impl_.units_.Set("", GetArena()); } -#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING - return p; + return released; } -inline void FeaturesFile::set_allocated_units(std::string* units) { - if (units != nullptr) { +inline void FeaturesFile::set_allocated_units(std::string* value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + if (value != nullptr) { _impl_._has_bits_[0] |= 0x00000001u; } else { _impl_._has_bits_[0] &= ~0x00000001u; } - _impl_.units_.SetAllocated(units, GetArenaForAllocation()); -#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (_impl_.units_.IsDefault()) { - _impl_.units_.Set("", GetArenaForAllocation()); + _impl_.units_.SetAllocated(value, GetArena()); + if (::google::protobuf::internal::DebugHardenForceCopyDefaultString() && _impl_.units_.IsDefault()) { + _impl_.units_.Set("", GetArena()); } -#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING // @@protoc_insertion_point(field_set_allocated:Odb.Lib.Protobuf.FeaturesFile.units) } // optional uint32 id = 2; -inline bool FeaturesFile::_internal_has_id() const { +inline bool FeaturesFile::has_id() const { bool value = (_impl_._has_bits_[0] & 0x00000008u) != 0; return value; } -inline bool FeaturesFile::has_id() const { - return _internal_has_id(); -} inline void FeaturesFile::clear_id() { + ::google::protobuf::internal::TSanWrite(&_impl_); _impl_.id_ = 0u; _impl_._has_bits_[0] &= ~0x00000008u; } -inline uint32_t FeaturesFile::_internal_id() const { - return _impl_.id_; -} -inline uint32_t FeaturesFile::id() const { +inline ::uint32_t FeaturesFile::id() const { // @@protoc_insertion_point(field_get:Odb.Lib.Protobuf.FeaturesFile.id) return _internal_id(); } -inline void FeaturesFile::_internal_set_id(uint32_t value) { - _impl_._has_bits_[0] |= 0x00000008u; - _impl_.id_ = value; -} -inline void FeaturesFile::set_id(uint32_t value) { +inline void FeaturesFile::set_id(::uint32_t value) { _internal_set_id(value); + _impl_._has_bits_[0] |= 0x00000008u; // @@protoc_insertion_point(field_set:Odb.Lib.Protobuf.FeaturesFile.id) } +inline ::uint32_t FeaturesFile::_internal_id() const { + ::google::protobuf::internal::TSanRead(&_impl_); + return _impl_.id_; +} +inline void FeaturesFile::_internal_set_id(::uint32_t value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.id_ = value; +} // optional string path = 5; -inline bool FeaturesFile::_internal_has_path() const { +inline bool FeaturesFile::has_path() const { bool value = (_impl_._has_bits_[0] & 0x00000002u) != 0; return value; } -inline bool FeaturesFile::has_path() const { - return _internal_has_path(); -} inline void FeaturesFile::clear_path() { + ::google::protobuf::internal::TSanWrite(&_impl_); _impl_.path_.ClearToEmpty(); _impl_._has_bits_[0] &= ~0x00000002u; } -inline const std::string& FeaturesFile::path() const { +inline const std::string& FeaturesFile::path() const + ABSL_ATTRIBUTE_LIFETIME_BOUND { // @@protoc_insertion_point(field_get:Odb.Lib.Protobuf.FeaturesFile.path) return _internal_path(); } -template -inline PROTOBUF_ALWAYS_INLINE -void FeaturesFile::set_path(ArgT0&& arg0, ArgT... args) { - _impl_._has_bits_[0] |= 0x00000002u; - _impl_.path_.Set(static_cast(arg0), args..., GetArenaForAllocation()); +template +inline PROTOBUF_ALWAYS_INLINE void FeaturesFile::set_path(Arg_&& arg, + Args_... args) { + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_._has_bits_[0] |= 0x00000002u; + _impl_.path_.Set(static_cast(arg), args..., GetArena()); // @@protoc_insertion_point(field_set:Odb.Lib.Protobuf.FeaturesFile.path) } -inline std::string* FeaturesFile::mutable_path() { +inline std::string* FeaturesFile::mutable_path() ABSL_ATTRIBUTE_LIFETIME_BOUND { std::string* _s = _internal_mutable_path(); // @@protoc_insertion_point(field_mutable:Odb.Lib.Protobuf.FeaturesFile.path) return _s; } inline const std::string& FeaturesFile::_internal_path() const { + ::google::protobuf::internal::TSanRead(&_impl_); return _impl_.path_.Get(); } inline void FeaturesFile::_internal_set_path(const std::string& value) { + ::google::protobuf::internal::TSanWrite(&_impl_); _impl_._has_bits_[0] |= 0x00000002u; - _impl_.path_.Set(value, GetArenaForAllocation()); + _impl_.path_.Set(value, GetArena()); } inline std::string* FeaturesFile::_internal_mutable_path() { + ::google::protobuf::internal::TSanWrite(&_impl_); _impl_._has_bits_[0] |= 0x00000002u; - return _impl_.path_.Mutable(GetArenaForAllocation()); + return _impl_.path_.Mutable( GetArena()); } inline std::string* FeaturesFile::release_path() { + ::google::protobuf::internal::TSanWrite(&_impl_); // @@protoc_insertion_point(field_release:Odb.Lib.Protobuf.FeaturesFile.path) - if (!_internal_has_path()) { + if ((_impl_._has_bits_[0] & 0x00000002u) == 0) { return nullptr; } _impl_._has_bits_[0] &= ~0x00000002u; - auto* p = _impl_.path_.Release(); -#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (_impl_.path_.IsDefault()) { - _impl_.path_.Set("", GetArenaForAllocation()); + auto* released = _impl_.path_.Release(); + if (::google::protobuf::internal::DebugHardenForceCopyDefaultString()) { + _impl_.path_.Set("", GetArena()); } -#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING - return p; + return released; } -inline void FeaturesFile::set_allocated_path(std::string* path) { - if (path != nullptr) { +inline void FeaturesFile::set_allocated_path(std::string* value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + if (value != nullptr) { _impl_._has_bits_[0] |= 0x00000002u; } else { _impl_._has_bits_[0] &= ~0x00000002u; } - _impl_.path_.SetAllocated(path, GetArenaForAllocation()); -#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (_impl_.path_.IsDefault()) { - _impl_.path_.Set("", GetArenaForAllocation()); + _impl_.path_.SetAllocated(value, GetArena()); + if (::google::protobuf::internal::DebugHardenForceCopyDefaultString() && _impl_.path_.IsDefault()) { + _impl_.path_.Set("", GetArena()); } -#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING // @@protoc_insertion_point(field_set_allocated:Odb.Lib.Protobuf.FeaturesFile.path) } // optional string directory = 6; -inline bool FeaturesFile::_internal_has_directory() const { +inline bool FeaturesFile::has_directory() const { bool value = (_impl_._has_bits_[0] & 0x00000004u) != 0; return value; } -inline bool FeaturesFile::has_directory() const { - return _internal_has_directory(); -} inline void FeaturesFile::clear_directory() { + ::google::protobuf::internal::TSanWrite(&_impl_); _impl_.directory_.ClearToEmpty(); _impl_._has_bits_[0] &= ~0x00000004u; } -inline const std::string& FeaturesFile::directory() const { +inline const std::string& FeaturesFile::directory() const + ABSL_ATTRIBUTE_LIFETIME_BOUND { // @@protoc_insertion_point(field_get:Odb.Lib.Protobuf.FeaturesFile.directory) return _internal_directory(); } -template -inline PROTOBUF_ALWAYS_INLINE -void FeaturesFile::set_directory(ArgT0&& arg0, ArgT... args) { - _impl_._has_bits_[0] |= 0x00000004u; - _impl_.directory_.Set(static_cast(arg0), args..., GetArenaForAllocation()); +template +inline PROTOBUF_ALWAYS_INLINE void FeaturesFile::set_directory(Arg_&& arg, + Args_... args) { + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_._has_bits_[0] |= 0x00000004u; + _impl_.directory_.Set(static_cast(arg), args..., GetArena()); // @@protoc_insertion_point(field_set:Odb.Lib.Protobuf.FeaturesFile.directory) } -inline std::string* FeaturesFile::mutable_directory() { +inline std::string* FeaturesFile::mutable_directory() ABSL_ATTRIBUTE_LIFETIME_BOUND { std::string* _s = _internal_mutable_directory(); // @@protoc_insertion_point(field_mutable:Odb.Lib.Protobuf.FeaturesFile.directory) return _s; } inline const std::string& FeaturesFile::_internal_directory() const { + ::google::protobuf::internal::TSanRead(&_impl_); return _impl_.directory_.Get(); } inline void FeaturesFile::_internal_set_directory(const std::string& value) { + ::google::protobuf::internal::TSanWrite(&_impl_); _impl_._has_bits_[0] |= 0x00000004u; - _impl_.directory_.Set(value, GetArenaForAllocation()); + _impl_.directory_.Set(value, GetArena()); } inline std::string* FeaturesFile::_internal_mutable_directory() { + ::google::protobuf::internal::TSanWrite(&_impl_); _impl_._has_bits_[0] |= 0x00000004u; - return _impl_.directory_.Mutable(GetArenaForAllocation()); + return _impl_.directory_.Mutable( GetArena()); } inline std::string* FeaturesFile::release_directory() { + ::google::protobuf::internal::TSanWrite(&_impl_); // @@protoc_insertion_point(field_release:Odb.Lib.Protobuf.FeaturesFile.directory) - if (!_internal_has_directory()) { + if ((_impl_._has_bits_[0] & 0x00000004u) == 0) { return nullptr; } _impl_._has_bits_[0] &= ~0x00000004u; - auto* p = _impl_.directory_.Release(); -#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (_impl_.directory_.IsDefault()) { - _impl_.directory_.Set("", GetArenaForAllocation()); + auto* released = _impl_.directory_.Release(); + if (::google::protobuf::internal::DebugHardenForceCopyDefaultString()) { + _impl_.directory_.Set("", GetArena()); } -#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING - return p; + return released; } -inline void FeaturesFile::set_allocated_directory(std::string* directory) { - if (directory != nullptr) { +inline void FeaturesFile::set_allocated_directory(std::string* value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + if (value != nullptr) { _impl_._has_bits_[0] |= 0x00000004u; } else { _impl_._has_bits_[0] &= ~0x00000004u; } - _impl_.directory_.SetAllocated(directory, GetArenaForAllocation()); -#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (_impl_.directory_.IsDefault()) { - _impl_.directory_.Set("", GetArenaForAllocation()); + _impl_.directory_.SetAllocated(value, GetArena()); + if (::google::protobuf::internal::DebugHardenForceCopyDefaultString() && _impl_.directory_.IsDefault()) { + _impl_.directory_.Set("", GetArena()); } -#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING // @@protoc_insertion_point(field_set_allocated:Odb.Lib.Protobuf.FeaturesFile.directory) } // optional int32 numFeatures = 7; -inline bool FeaturesFile::_internal_has_numfeatures() const { +inline bool FeaturesFile::has_numfeatures() const { bool value = (_impl_._has_bits_[0] & 0x00000010u) != 0; return value; } -inline bool FeaturesFile::has_numfeatures() const { - return _internal_has_numfeatures(); -} inline void FeaturesFile::clear_numfeatures() { + ::google::protobuf::internal::TSanWrite(&_impl_); _impl_.numfeatures_ = 0; _impl_._has_bits_[0] &= ~0x00000010u; } -inline int32_t FeaturesFile::_internal_numfeatures() const { - return _impl_.numfeatures_; -} -inline int32_t FeaturesFile::numfeatures() const { +inline ::int32_t FeaturesFile::numfeatures() const { // @@protoc_insertion_point(field_get:Odb.Lib.Protobuf.FeaturesFile.numFeatures) return _internal_numfeatures(); } -inline void FeaturesFile::_internal_set_numfeatures(int32_t value) { - _impl_._has_bits_[0] |= 0x00000010u; - _impl_.numfeatures_ = value; -} -inline void FeaturesFile::set_numfeatures(int32_t value) { +inline void FeaturesFile::set_numfeatures(::int32_t value) { _internal_set_numfeatures(value); + _impl_._has_bits_[0] |= 0x00000010u; // @@protoc_insertion_point(field_set:Odb.Lib.Protobuf.FeaturesFile.numFeatures) } +inline ::int32_t FeaturesFile::_internal_numfeatures() const { + ::google::protobuf::internal::TSanRead(&_impl_); + return _impl_.numfeatures_; +} +inline void FeaturesFile::_internal_set_numfeatures(::int32_t value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.numfeatures_ = value; +} // repeated .Odb.Lib.Protobuf.FeaturesFile.FeatureRecord featureRecords = 8; inline int FeaturesFile::_internal_featurerecords_size() const { - return _impl_.featurerecords_.size(); + return _internal_featurerecords().size(); } inline int FeaturesFile::featurerecords_size() const { return _internal_featurerecords_size(); } inline void FeaturesFile::clear_featurerecords() { + ::google::protobuf::internal::TSanWrite(&_impl_); _impl_.featurerecords_.Clear(); } -inline ::Odb::Lib::Protobuf::FeaturesFile_FeatureRecord* FeaturesFile::mutable_featurerecords(int index) { +inline ::Odb::Lib::Protobuf::FeaturesFile_FeatureRecord* FeaturesFile::mutable_featurerecords(int index) + ABSL_ATTRIBUTE_LIFETIME_BOUND { // @@protoc_insertion_point(field_mutable:Odb.Lib.Protobuf.FeaturesFile.featureRecords) - return _impl_.featurerecords_.Mutable(index); + return _internal_mutable_featurerecords()->Mutable(index); } -inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::Odb::Lib::Protobuf::FeaturesFile_FeatureRecord >* -FeaturesFile::mutable_featurerecords() { +inline ::google::protobuf::RepeatedPtrField<::Odb::Lib::Protobuf::FeaturesFile_FeatureRecord>* FeaturesFile::mutable_featurerecords() + ABSL_ATTRIBUTE_LIFETIME_BOUND { // @@protoc_insertion_point(field_mutable_list:Odb.Lib.Protobuf.FeaturesFile.featureRecords) - return &_impl_.featurerecords_; -} -inline const ::Odb::Lib::Protobuf::FeaturesFile_FeatureRecord& FeaturesFile::_internal_featurerecords(int index) const { - return _impl_.featurerecords_.Get(index); + ::google::protobuf::internal::TSanWrite(&_impl_); + return _internal_mutable_featurerecords(); } -inline const ::Odb::Lib::Protobuf::FeaturesFile_FeatureRecord& FeaturesFile::featurerecords(int index) const { +inline const ::Odb::Lib::Protobuf::FeaturesFile_FeatureRecord& FeaturesFile::featurerecords(int index) const + ABSL_ATTRIBUTE_LIFETIME_BOUND { // @@protoc_insertion_point(field_get:Odb.Lib.Protobuf.FeaturesFile.featureRecords) - return _internal_featurerecords(index); + return _internal_featurerecords().Get(index); } -inline ::Odb::Lib::Protobuf::FeaturesFile_FeatureRecord* FeaturesFile::_internal_add_featurerecords() { - return _impl_.featurerecords_.Add(); -} -inline ::Odb::Lib::Protobuf::FeaturesFile_FeatureRecord* FeaturesFile::add_featurerecords() { - ::Odb::Lib::Protobuf::FeaturesFile_FeatureRecord* _add = _internal_add_featurerecords(); +inline ::Odb::Lib::Protobuf::FeaturesFile_FeatureRecord* FeaturesFile::add_featurerecords() ABSL_ATTRIBUTE_LIFETIME_BOUND { + ::google::protobuf::internal::TSanWrite(&_impl_); + ::Odb::Lib::Protobuf::FeaturesFile_FeatureRecord* _add = _internal_mutable_featurerecords()->Add(); // @@protoc_insertion_point(field_add:Odb.Lib.Protobuf.FeaturesFile.featureRecords) return _add; } -inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::Odb::Lib::Protobuf::FeaturesFile_FeatureRecord >& -FeaturesFile::featurerecords() const { +inline const ::google::protobuf::RepeatedPtrField<::Odb::Lib::Protobuf::FeaturesFile_FeatureRecord>& FeaturesFile::featurerecords() const + ABSL_ATTRIBUTE_LIFETIME_BOUND { // @@protoc_insertion_point(field_list:Odb.Lib.Protobuf.FeaturesFile.featureRecords) + return _internal_featurerecords(); +} +inline const ::google::protobuf::RepeatedPtrField<::Odb::Lib::Protobuf::FeaturesFile_FeatureRecord>& +FeaturesFile::_internal_featurerecords() const { + ::google::protobuf::internal::TSanRead(&_impl_); return _impl_.featurerecords_; } +inline ::google::protobuf::RepeatedPtrField<::Odb::Lib::Protobuf::FeaturesFile_FeatureRecord>* +FeaturesFile::_internal_mutable_featurerecords() { + ::google::protobuf::internal::TSanRead(&_impl_); + return &_impl_.featurerecords_; +} // map symbolNamesByName = 9; inline int FeaturesFile::_internal_symbolnamesbyname_size() const { - return _impl_.symbolnamesbyname_.size(); + return _internal_symbolnamesbyname().size(); } inline int FeaturesFile::symbolnamesbyname_size() const { return _internal_symbolnamesbyname_size(); } -inline const ::PROTOBUF_NAMESPACE_ID::Map< std::string, ::Odb::Lib::Protobuf::SymbolName >& -FeaturesFile::_internal_symbolnamesbyname() const { +inline const ::google::protobuf::Map& FeaturesFile::_internal_symbolnamesbyname() const { + ::google::protobuf::internal::TSanRead(&_impl_); return _impl_.symbolnamesbyname_.GetMap(); } -inline const ::PROTOBUF_NAMESPACE_ID::Map< std::string, ::Odb::Lib::Protobuf::SymbolName >& -FeaturesFile::symbolnamesbyname() const { +inline const ::google::protobuf::Map& FeaturesFile::symbolnamesbyname() const ABSL_ATTRIBUTE_LIFETIME_BOUND { // @@protoc_insertion_point(field_map:Odb.Lib.Protobuf.FeaturesFile.symbolNamesByName) return _internal_symbolnamesbyname(); } -inline ::PROTOBUF_NAMESPACE_ID::Map< std::string, ::Odb::Lib::Protobuf::SymbolName >* -FeaturesFile::_internal_mutable_symbolnamesbyname() { +inline ::google::protobuf::Map* FeaturesFile::_internal_mutable_symbolnamesbyname() { + ::google::protobuf::internal::TSanWrite(&_impl_); return _impl_.symbolnamesbyname_.MutableMap(); } -inline ::PROTOBUF_NAMESPACE_ID::Map< std::string, ::Odb::Lib::Protobuf::SymbolName >* -FeaturesFile::mutable_symbolnamesbyname() { +inline ::google::protobuf::Map* FeaturesFile::mutable_symbolnamesbyname() ABSL_ATTRIBUTE_LIFETIME_BOUND { // @@protoc_insertion_point(field_mutable_map:Odb.Lib.Protobuf.FeaturesFile.symbolNamesByName) return _internal_mutable_symbolnamesbyname(); } #ifdef __GNUC__ - #pragma GCC diagnostic pop +#pragma GCC diagnostic pop #endif // __GNUC__ -// ------------------------------------------------------------------- - -// ------------------------------------------------------------------- - -// ------------------------------------------------------------------- - // @@protoc_insertion_point(namespace_scope) - } // namespace Protobuf } // namespace Lib } // namespace Odb -PROTOBUF_NAMESPACE_OPEN -template <> struct is_proto_enum< ::Odb::Lib::Protobuf::FeaturesFile_FeatureRecord_Type> : ::std::true_type {}; +namespace google { +namespace protobuf { + template <> -inline const EnumDescriptor* GetEnumDescriptor< ::Odb::Lib::Protobuf::FeaturesFile_FeatureRecord_Type>() { +struct is_proto_enum<::Odb::Lib::Protobuf::FeaturesFile_FeatureRecord_Type> : std::true_type {}; +template <> +inline const EnumDescriptor* GetEnumDescriptor<::Odb::Lib::Protobuf::FeaturesFile_FeatureRecord_Type>() { return ::Odb::Lib::Protobuf::FeaturesFile_FeatureRecord_Type_descriptor(); } -PROTOBUF_NAMESPACE_CLOSE +} // namespace protobuf +} // namespace google // @@protoc_insertion_point(global_scope) -#include -#endif // GOOGLE_PROTOBUF_INCLUDED_GOOGLE_PROTOBUF_INCLUDED_featuresfile_2eproto +#include "google/protobuf/port_undef.inc" + +#endif // featuresfile_2eproto_2epb_2eh diff --git a/OdbDesignLib/ProtoBuf/filearchive.pb.cc b/OdbDesignLib/ProtoBuf/filearchive.pb.cc index 92c0add6..41fec8dc 100644 --- a/OdbDesignLib/ProtoBuf/filearchive.pb.cc +++ b/OdbDesignLib/ProtoBuf/filearchive.pb.cc @@ -1,402 +1,686 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE // source: filearchive.proto +// Protobuf C++ Version: 5.29.2 #include "filearchive.pb.h" #include - -#include -#include -#include -#include -#include -#include -#include +#include +#include "google/protobuf/io/coded_stream.h" +#include "google/protobuf/generated_message_tctable_impl.h" +#include "google/protobuf/extension_set.h" +#include "google/protobuf/generated_message_util.h" +#include "google/protobuf/wire_format_lite.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) -#include +// Must be included last. +#include "google/protobuf/port_def.inc" PROTOBUF_PRAGMA_INIT_SEG - -namespace _pb = ::PROTOBUF_NAMESPACE_ID; -namespace _pbi = _pb::internal; - +namespace _pb = ::google::protobuf; +namespace _pbi = ::google::protobuf::internal; +namespace _fl = ::google::protobuf::internal::field_layout; namespace Odb { namespace Lib { namespace Protobuf { -PROTOBUF_CONSTEXPR FileArchive_StepsByNameEntry_DoNotUse::FileArchive_StepsByNameEntry_DoNotUse( - ::_pbi::ConstantInitialized) {} -struct FileArchive_StepsByNameEntry_DoNotUseDefaultTypeInternal { - PROTOBUF_CONSTEXPR FileArchive_StepsByNameEntry_DoNotUseDefaultTypeInternal() - : _instance(::_pbi::ConstantInitialized{}) {} - ~FileArchive_StepsByNameEntry_DoNotUseDefaultTypeInternal() {} - union { - FileArchive_StepsByNameEntry_DoNotUse _instance; - }; -}; -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 FileArchive_StepsByNameEntry_DoNotUseDefaultTypeInternal _FileArchive_StepsByNameEntry_DoNotUse_default_instance_; -PROTOBUF_CONSTEXPR FileArchive_SymbolsDirectoriesByNameEntry_DoNotUse::FileArchive_SymbolsDirectoriesByNameEntry_DoNotUse( - ::_pbi::ConstantInitialized) {} + template +PROTOBUF_CONSTEXPR FileArchive_SymbolsDirectoriesByNameEntry_DoNotUse::FileArchive_SymbolsDirectoriesByNameEntry_DoNotUse(::_pbi::ConstantInitialized) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : FileArchive_SymbolsDirectoriesByNameEntry_DoNotUse::MapEntry(_class_data_.base()){} +#else // PROTOBUF_CUSTOM_VTABLE + : FileArchive_SymbolsDirectoriesByNameEntry_DoNotUse::MapEntry() { +} +#endif // PROTOBUF_CUSTOM_VTABLE struct FileArchive_SymbolsDirectoriesByNameEntry_DoNotUseDefaultTypeInternal { - PROTOBUF_CONSTEXPR FileArchive_SymbolsDirectoriesByNameEntry_DoNotUseDefaultTypeInternal() - : _instance(::_pbi::ConstantInitialized{}) {} + PROTOBUF_CONSTEXPR FileArchive_SymbolsDirectoriesByNameEntry_DoNotUseDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} ~FileArchive_SymbolsDirectoriesByNameEntry_DoNotUseDefaultTypeInternal() {} union { FileArchive_SymbolsDirectoriesByNameEntry_DoNotUse _instance; }; }; -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 FileArchive_SymbolsDirectoriesByNameEntry_DoNotUseDefaultTypeInternal _FileArchive_SymbolsDirectoriesByNameEntry_DoNotUse_default_instance_; -PROTOBUF_CONSTEXPR FileArchive::FileArchive( - ::_pbi::ConstantInitialized): _impl_{ - /*decltype(_impl_._has_bits_)*/{} - , /*decltype(_impl_._cached_size_)*/{} - , /*decltype(_impl_.stepsbyname_)*/{::_pbi::ConstantInitialized()} - , /*decltype(_impl_.symbolsdirectoriesbyname_)*/{::_pbi::ConstantInitialized()} - , /*decltype(_impl_.productname_)*/{&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}} - , /*decltype(_impl_.filename_)*/{&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}} - , /*decltype(_impl_.miscinfofile_)*/nullptr - , /*decltype(_impl_.matrixfile_)*/nullptr - , /*decltype(_impl_.standardfontsfile_)*/nullptr - , /*decltype(_impl_.miscattrlistfile_)*/nullptr} {} + +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT ODBDESIGN_EXPORT + PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 FileArchive_SymbolsDirectoriesByNameEntry_DoNotUseDefaultTypeInternal _FileArchive_SymbolsDirectoriesByNameEntry_DoNotUse_default_instance_; + template +PROTOBUF_CONSTEXPR FileArchive_StepsByNameEntry_DoNotUse::FileArchive_StepsByNameEntry_DoNotUse(::_pbi::ConstantInitialized) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : FileArchive_StepsByNameEntry_DoNotUse::MapEntry(_class_data_.base()){} +#else // PROTOBUF_CUSTOM_VTABLE + : FileArchive_StepsByNameEntry_DoNotUse::MapEntry() { +} +#endif // PROTOBUF_CUSTOM_VTABLE +struct FileArchive_StepsByNameEntry_DoNotUseDefaultTypeInternal { + PROTOBUF_CONSTEXPR FileArchive_StepsByNameEntry_DoNotUseDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} + ~FileArchive_StepsByNameEntry_DoNotUseDefaultTypeInternal() {} + union { + FileArchive_StepsByNameEntry_DoNotUse _instance; + }; +}; + +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT ODBDESIGN_EXPORT + PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 FileArchive_StepsByNameEntry_DoNotUseDefaultTypeInternal _FileArchive_StepsByNameEntry_DoNotUse_default_instance_; + +inline constexpr FileArchive::Impl_::Impl_( + ::_pbi::ConstantInitialized) noexcept + : _cached_size_{0}, + stepsbyname_{}, + symbolsdirectoriesbyname_{}, + productname_( + &::google::protobuf::internal::fixed_address_empty_string, + ::_pbi::ConstantInitialized()), + filename_( + &::google::protobuf::internal::fixed_address_empty_string, + ::_pbi::ConstantInitialized()), + miscinfofile_{nullptr}, + matrixfile_{nullptr}, + standardfontsfile_{nullptr}, + miscattrlistfile_{nullptr} {} + +template +PROTOBUF_CONSTEXPR FileArchive::FileArchive(::_pbi::ConstantInitialized) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : ::google::protobuf::Message(_class_data_.base()), +#else // PROTOBUF_CUSTOM_VTABLE + : ::google::protobuf::Message(), +#endif // PROTOBUF_CUSTOM_VTABLE + _impl_(::_pbi::ConstantInitialized()) { +} struct FileArchiveDefaultTypeInternal { - PROTOBUF_CONSTEXPR FileArchiveDefaultTypeInternal() - : _instance(::_pbi::ConstantInitialized{}) {} + PROTOBUF_CONSTEXPR FileArchiveDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} ~FileArchiveDefaultTypeInternal() {} union { FileArchive _instance; }; }; -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 FileArchiveDefaultTypeInternal _FileArchive_default_instance_; + +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT ODBDESIGN_EXPORT + PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 FileArchiveDefaultTypeInternal _FileArchive_default_instance_; } // namespace Protobuf } // namespace Lib } // namespace Odb -static ::_pb::Metadata file_level_metadata_filearchive_2eproto[3]; -static constexpr ::_pb::EnumDescriptor const** file_level_enum_descriptors_filearchive_2eproto = nullptr; -static constexpr ::_pb::ServiceDescriptor const** file_level_service_descriptors_filearchive_2eproto = nullptr; - -const uint32_t TableStruct_filearchive_2eproto::offsets[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = { - PROTOBUF_FIELD_OFFSET(::Odb::Lib::Protobuf::FileArchive_StepsByNameEntry_DoNotUse, _has_bits_), - PROTOBUF_FIELD_OFFSET(::Odb::Lib::Protobuf::FileArchive_StepsByNameEntry_DoNotUse, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - ~0u, // no _inlined_string_donated_ - PROTOBUF_FIELD_OFFSET(::Odb::Lib::Protobuf::FileArchive_StepsByNameEntry_DoNotUse, key_), - PROTOBUF_FIELD_OFFSET(::Odb::Lib::Protobuf::FileArchive_StepsByNameEntry_DoNotUse, value_), - 0, - 1, - PROTOBUF_FIELD_OFFSET(::Odb::Lib::Protobuf::FileArchive_SymbolsDirectoriesByNameEntry_DoNotUse, _has_bits_), - PROTOBUF_FIELD_OFFSET(::Odb::Lib::Protobuf::FileArchive_SymbolsDirectoriesByNameEntry_DoNotUse, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - ~0u, // no _inlined_string_donated_ - PROTOBUF_FIELD_OFFSET(::Odb::Lib::Protobuf::FileArchive_SymbolsDirectoriesByNameEntry_DoNotUse, key_), - PROTOBUF_FIELD_OFFSET(::Odb::Lib::Protobuf::FileArchive_SymbolsDirectoriesByNameEntry_DoNotUse, value_), - 0, - 1, - PROTOBUF_FIELD_OFFSET(::Odb::Lib::Protobuf::FileArchive, _impl_._has_bits_), - PROTOBUF_FIELD_OFFSET(::Odb::Lib::Protobuf::FileArchive, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - ~0u, // no _inlined_string_donated_ - PROTOBUF_FIELD_OFFSET(::Odb::Lib::Protobuf::FileArchive, _impl_.stepsbyname_), - PROTOBUF_FIELD_OFFSET(::Odb::Lib::Protobuf::FileArchive, _impl_.miscinfofile_), - PROTOBUF_FIELD_OFFSET(::Odb::Lib::Protobuf::FileArchive, _impl_.matrixfile_), - PROTOBUF_FIELD_OFFSET(::Odb::Lib::Protobuf::FileArchive, _impl_.standardfontsfile_), - PROTOBUF_FIELD_OFFSET(::Odb::Lib::Protobuf::FileArchive, _impl_.symbolsdirectoriesbyname_), - PROTOBUF_FIELD_OFFSET(::Odb::Lib::Protobuf::FileArchive, _impl_.miscattrlistfile_), - PROTOBUF_FIELD_OFFSET(::Odb::Lib::Protobuf::FileArchive, _impl_.productname_), - PROTOBUF_FIELD_OFFSET(::Odb::Lib::Protobuf::FileArchive, _impl_.filename_), - ~0u, - 2, - 3, - 4, - ~0u, - 5, - 0, - 1, -}; -static const ::_pbi::MigrationSchema schemas[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = { - { 0, 8, -1, sizeof(::Odb::Lib::Protobuf::FileArchive_StepsByNameEntry_DoNotUse)}, - { 10, 18, -1, sizeof(::Odb::Lib::Protobuf::FileArchive_SymbolsDirectoriesByNameEntry_DoNotUse)}, - { 20, 34, -1, sizeof(::Odb::Lib::Protobuf::FileArchive)}, +static constexpr const ::_pb::EnumDescriptor** + file_level_enum_descriptors_filearchive_2eproto = nullptr; +static constexpr const ::_pb::ServiceDescriptor** + file_level_service_descriptors_filearchive_2eproto = nullptr; +const ::uint32_t + TableStruct_filearchive_2eproto::offsets[] ABSL_ATTRIBUTE_SECTION_VARIABLE( + protodesc_cold) = { + PROTOBUF_FIELD_OFFSET(::Odb::Lib::Protobuf::FileArchive_StepsByNameEntry_DoNotUse, _impl_._has_bits_), + PROTOBUF_FIELD_OFFSET(::Odb::Lib::Protobuf::FileArchive_StepsByNameEntry_DoNotUse, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + ~0u, // no _split_ + ~0u, // no sizeof(Split) + PROTOBUF_FIELD_OFFSET(::Odb::Lib::Protobuf::FileArchive_StepsByNameEntry_DoNotUse, _impl_.key_), + PROTOBUF_FIELD_OFFSET(::Odb::Lib::Protobuf::FileArchive_StepsByNameEntry_DoNotUse, _impl_.value_), + 0, + 1, + PROTOBUF_FIELD_OFFSET(::Odb::Lib::Protobuf::FileArchive_SymbolsDirectoriesByNameEntry_DoNotUse, _impl_._has_bits_), + PROTOBUF_FIELD_OFFSET(::Odb::Lib::Protobuf::FileArchive_SymbolsDirectoriesByNameEntry_DoNotUse, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + ~0u, // no _split_ + ~0u, // no sizeof(Split) + PROTOBUF_FIELD_OFFSET(::Odb::Lib::Protobuf::FileArchive_SymbolsDirectoriesByNameEntry_DoNotUse, _impl_.key_), + PROTOBUF_FIELD_OFFSET(::Odb::Lib::Protobuf::FileArchive_SymbolsDirectoriesByNameEntry_DoNotUse, _impl_.value_), + 0, + 1, + PROTOBUF_FIELD_OFFSET(::Odb::Lib::Protobuf::FileArchive, _impl_._has_bits_), + PROTOBUF_FIELD_OFFSET(::Odb::Lib::Protobuf::FileArchive, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + ~0u, // no _split_ + ~0u, // no sizeof(Split) + PROTOBUF_FIELD_OFFSET(::Odb::Lib::Protobuf::FileArchive, _impl_.stepsbyname_), + PROTOBUF_FIELD_OFFSET(::Odb::Lib::Protobuf::FileArchive, _impl_.miscinfofile_), + PROTOBUF_FIELD_OFFSET(::Odb::Lib::Protobuf::FileArchive, _impl_.matrixfile_), + PROTOBUF_FIELD_OFFSET(::Odb::Lib::Protobuf::FileArchive, _impl_.standardfontsfile_), + PROTOBUF_FIELD_OFFSET(::Odb::Lib::Protobuf::FileArchive, _impl_.symbolsdirectoriesbyname_), + PROTOBUF_FIELD_OFFSET(::Odb::Lib::Protobuf::FileArchive, _impl_.miscattrlistfile_), + PROTOBUF_FIELD_OFFSET(::Odb::Lib::Protobuf::FileArchive, _impl_.productname_), + PROTOBUF_FIELD_OFFSET(::Odb::Lib::Protobuf::FileArchive, _impl_.filename_), + ~0u, + 2, + 3, + 4, + ~0u, + 5, + 0, + 1, }; +static const ::_pbi::MigrationSchema + schemas[] ABSL_ATTRIBUTE_SECTION_VARIABLE(protodesc_cold) = { + {0, 10, -1, sizeof(::Odb::Lib::Protobuf::FileArchive_StepsByNameEntry_DoNotUse)}, + {12, 22, -1, sizeof(::Odb::Lib::Protobuf::FileArchive_SymbolsDirectoriesByNameEntry_DoNotUse)}, + {24, 40, -1, sizeof(::Odb::Lib::Protobuf::FileArchive)}, +}; static const ::_pb::Message* const file_default_instances[] = { - &::Odb::Lib::Protobuf::_FileArchive_StepsByNameEntry_DoNotUse_default_instance_._instance, - &::Odb::Lib::Protobuf::_FileArchive_SymbolsDirectoriesByNameEntry_DoNotUse_default_instance_._instance, - &::Odb::Lib::Protobuf::_FileArchive_default_instance_._instance, + &::Odb::Lib::Protobuf::_FileArchive_StepsByNameEntry_DoNotUse_default_instance_._instance, + &::Odb::Lib::Protobuf::_FileArchive_SymbolsDirectoriesByNameEntry_DoNotUse_default_instance_._instance, + &::Odb::Lib::Protobuf::_FileArchive_default_instance_._instance, }; - -const char descriptor_table_protodef_filearchive_2eproto[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = - "\n\021filearchive.proto\022\020Odb.Lib.Protobuf\032\023s" - "tepdirectory.proto\032\022miscinfofile.proto\032\020" - "matrixfile.proto\032\027standardfontsfile.prot" - "o\032\026symbolsdirectory.proto\032\022attrlistfile." - "proto\"\372\005\n\013FileArchive\022C\n\013stepsByName\030\001 \003" - "(\0132..Odb.Lib.Protobuf.FileArchive.StepsB" - "yNameEntry\0229\n\014miscInfoFile\030\002 \001(\0132\036.Odb.L" - "ib.Protobuf.MiscInfoFileH\000\210\001\001\0225\n\nmatrixF" - "ile\030\003 \001(\0132\034.Odb.Lib.Protobuf.MatrixFileH" - "\001\210\001\001\022C\n\021standardFontsFile\030\004 \001(\0132#.Odb.Li" - "b.Protobuf.StandardFontsFileH\002\210\001\001\022]\n\030sym" - "bolsDirectoriesByName\030\005 \003(\0132;.Odb.Lib.Pr" - "otobuf.FileArchive.SymbolsDirectoriesByN" - "ameEntry\022=\n\020miscAttrListFile\030\006 \001(\0132\036.Odb" - ".Lib.Protobuf.AttrListFileH\003\210\001\001\022\030\n\013produ" - "ctName\030\007 \001(\tH\004\210\001\001\022\025\n\010fileName\030\010 \001(\tH\005\210\001\001" - "\032S\n\020StepsByNameEntry\022\013\n\003key\030\001 \001(\t\022.\n\005val" - "ue\030\002 \001(\0132\037.Odb.Lib.Protobuf.StepDirector" - "y:\0028\001\032c\n\035SymbolsDirectoriesByNameEntry\022\013" - "\n\003key\030\001 \001(\t\0221\n\005value\030\002 \001(\0132\".Odb.Lib.Pro" - "tobuf.SymbolsDirectory:\0028\001B\017\n\r_miscInfoF" - "ileB\r\n\013_matrixFileB\024\n\022_standardFontsFile" - "B\023\n\021_miscAttrListFileB\016\n\014_productNameB\013\n" - "\t_fileNameb\006proto3" - ; -static const ::_pbi::DescriptorTable* const descriptor_table_filearchive_2eproto_deps[6] = { - &::descriptor_table_attrlistfile_2eproto, - &::descriptor_table_matrixfile_2eproto, - &::descriptor_table_miscinfofile_2eproto, - &::descriptor_table_standardfontsfile_2eproto, - &::descriptor_table_stepdirectory_2eproto, - &::descriptor_table_symbolsdirectory_2eproto, +const char descriptor_table_protodef_filearchive_2eproto[] ABSL_ATTRIBUTE_SECTION_VARIABLE( + protodesc_cold) = { + "\n\021filearchive.proto\022\020Odb.Lib.Protobuf\032\023s" + "tepdirectory.proto\032\022miscinfofile.proto\032\020" + "matrixfile.proto\032\027standardfontsfile.prot" + "o\032\026symbolsdirectory.proto\032\022attrlistfile." + "proto\"\372\005\n\013FileArchive\022C\n\013stepsByName\030\001 \003" + "(\0132..Odb.Lib.Protobuf.FileArchive.StepsB" + "yNameEntry\0229\n\014miscInfoFile\030\002 \001(\0132\036.Odb.L" + "ib.Protobuf.MiscInfoFileH\000\210\001\001\0225\n\nmatrixF" + "ile\030\003 \001(\0132\034.Odb.Lib.Protobuf.MatrixFileH" + "\001\210\001\001\022C\n\021standardFontsFile\030\004 \001(\0132#.Odb.Li" + "b.Protobuf.StandardFontsFileH\002\210\001\001\022]\n\030sym" + "bolsDirectoriesByName\030\005 \003(\0132;.Odb.Lib.Pr" + "otobuf.FileArchive.SymbolsDirectoriesByN" + "ameEntry\022=\n\020miscAttrListFile\030\006 \001(\0132\036.Odb" + ".Lib.Protobuf.AttrListFileH\003\210\001\001\022\030\n\013produ" + "ctName\030\007 \001(\tH\004\210\001\001\022\025\n\010fileName\030\010 \001(\tH\005\210\001\001" + "\032S\n\020StepsByNameEntry\022\013\n\003key\030\001 \001(\t\022.\n\005val" + "ue\030\002 \001(\0132\037.Odb.Lib.Protobuf.StepDirector" + "y:\0028\001\032c\n\035SymbolsDirectoriesByNameEntry\022\013" + "\n\003key\030\001 \001(\t\0221\n\005value\030\002 \001(\0132\".Odb.Lib.Pro" + "tobuf.SymbolsDirectory:\0028\001B\017\n\r_miscInfoF" + "ileB\r\n\013_matrixFileB\024\n\022_standardFontsFile" + "B\023\n\021_miscAttrListFileB\016\n\014_productNameB\013\n" + "\t_fileNameb\006proto3" }; -static ::_pbi::once_flag descriptor_table_filearchive_2eproto_once; -const ::_pbi::DescriptorTable descriptor_table_filearchive_2eproto = { - false, false, 938, descriptor_table_protodef_filearchive_2eproto, +static const ::_pbi::DescriptorTable* const descriptor_table_filearchive_2eproto_deps[6] = + { + &::descriptor_table_attrlistfile_2eproto, + &::descriptor_table_matrixfile_2eproto, + &::descriptor_table_miscinfofile_2eproto, + &::descriptor_table_standardfontsfile_2eproto, + &::descriptor_table_stepdirectory_2eproto, + &::descriptor_table_symbolsdirectory_2eproto, +}; +static ::absl::once_flag descriptor_table_filearchive_2eproto_once; +PROTOBUF_CONSTINIT const ::_pbi::DescriptorTable descriptor_table_filearchive_2eproto = { + false, + false, + 938, + descriptor_table_protodef_filearchive_2eproto, "filearchive.proto", - &descriptor_table_filearchive_2eproto_once, descriptor_table_filearchive_2eproto_deps, 6, 3, - schemas, file_default_instances, TableStruct_filearchive_2eproto::offsets, - file_level_metadata_filearchive_2eproto, file_level_enum_descriptors_filearchive_2eproto, + &descriptor_table_filearchive_2eproto_once, + descriptor_table_filearchive_2eproto_deps, + 6, + 3, + schemas, + file_default_instances, + TableStruct_filearchive_2eproto::offsets, + file_level_enum_descriptors_filearchive_2eproto, file_level_service_descriptors_filearchive_2eproto, }; -PROTOBUF_ATTRIBUTE_WEAK const ::_pbi::DescriptorTable* descriptor_table_filearchive_2eproto_getter() { - return &descriptor_table_filearchive_2eproto; -} - -// Force running AddDescriptors() at dynamic initialization time. -PROTOBUF_ATTRIBUTE_INIT_PRIORITY2 static ::_pbi::AddDescriptorsRunner dynamic_init_dummy_filearchive_2eproto(&descriptor_table_filearchive_2eproto); namespace Odb { namespace Lib { namespace Protobuf { - // =================================================================== -FileArchive_StepsByNameEntry_DoNotUse::FileArchive_StepsByNameEntry_DoNotUse() {} -FileArchive_StepsByNameEntry_DoNotUse::FileArchive_StepsByNameEntry_DoNotUse(::PROTOBUF_NAMESPACE_ID::Arena* arena) - : SuperType(arena) {} -void FileArchive_StepsByNameEntry_DoNotUse::MergeFrom(const FileArchive_StepsByNameEntry_DoNotUse& other) { - MergeFromInternal(other); -} -::PROTOBUF_NAMESPACE_ID::Metadata FileArchive_StepsByNameEntry_DoNotUse::GetMetadata() const { - return ::_pbi::AssignDescriptors( - &descriptor_table_filearchive_2eproto_getter, &descriptor_table_filearchive_2eproto_once, - file_level_metadata_filearchive_2eproto[0]); -} +#if defined(PROTOBUF_CUSTOM_VTABLE) + FileArchive_StepsByNameEntry_DoNotUse::FileArchive_StepsByNameEntry_DoNotUse() : SuperType(_class_data_.base()) {} + FileArchive_StepsByNameEntry_DoNotUse::FileArchive_StepsByNameEntry_DoNotUse(::google::protobuf::Arena* arena) + : SuperType(arena, _class_data_.base()) {} +#else // PROTOBUF_CUSTOM_VTABLE + FileArchive_StepsByNameEntry_DoNotUse::FileArchive_StepsByNameEntry_DoNotUse() : SuperType() {} + FileArchive_StepsByNameEntry_DoNotUse::FileArchive_StepsByNameEntry_DoNotUse(::google::protobuf::Arena* arena) : SuperType(arena) {} +#endif // PROTOBUF_CUSTOM_VTABLE + inline void* FileArchive_StepsByNameEntry_DoNotUse::PlacementNew_(const void*, void* mem, + ::google::protobuf::Arena* arena) { + return ::new (mem) FileArchive_StepsByNameEntry_DoNotUse(arena); + } + constexpr auto FileArchive_StepsByNameEntry_DoNotUse::InternalNewImpl_() { + return ::google::protobuf::internal::MessageCreator::CopyInit(sizeof(FileArchive_StepsByNameEntry_DoNotUse), + alignof(FileArchive_StepsByNameEntry_DoNotUse)); + } + PROTOBUF_CONSTINIT + PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 + const ::google::protobuf::internal::ClassDataFull FileArchive_StepsByNameEntry_DoNotUse::_class_data_ = { + ::google::protobuf::internal::ClassData{ + &_FileArchive_StepsByNameEntry_DoNotUse_default_instance_._instance, + &_table_.header, + nullptr, // OnDemandRegisterArenaDtor + nullptr, // IsInitialized + &FileArchive_StepsByNameEntry_DoNotUse::MergeImpl, + ::google::protobuf::Message::GetNewImpl(), + #if defined(PROTOBUF_CUSTOM_VTABLE) + &FileArchive_StepsByNameEntry_DoNotUse::SharedDtor, + static_cast( + &FileArchive_StepsByNameEntry_DoNotUse::ClearImpl), + ::google::protobuf::Message::ByteSizeLongImpl, ::google::protobuf::Message::_InternalSerializeImpl + , + #endif // PROTOBUF_CUSTOM_VTABLE + PROTOBUF_FIELD_OFFSET(FileArchive_StepsByNameEntry_DoNotUse, _impl_._cached_size_), + false, + }, + &FileArchive_StepsByNameEntry_DoNotUse::kDescriptorMethods, + &descriptor_table_filearchive_2eproto, + nullptr, // tracker + }; + const ::google::protobuf::internal::ClassData* FileArchive_StepsByNameEntry_DoNotUse::GetClassData() const { + ::google::protobuf::internal::PrefetchToLocalCache(&_class_data_); + ::google::protobuf::internal::PrefetchToLocalCache(_class_data_.tc_table); + return _class_data_.base(); + } +PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 +const ::_pbi::TcParseTable<1, 2, 1, 57, 2> FileArchive_StepsByNameEntry_DoNotUse::_table_ = { + { + PROTOBUF_FIELD_OFFSET(FileArchive_StepsByNameEntry_DoNotUse, _impl_._has_bits_), + 0, // no _extensions_ + 2, 8, // max_field_number, fast_idx_mask + offsetof(decltype(_table_), field_lookup_table), + 4294967292, // skipmap + offsetof(decltype(_table_), field_entries), + 2, // num_field_entries + 1, // num_aux_entries + offsetof(decltype(_table_), aux_entries), + _class_data_.base(), + nullptr, // post_loop_handler + ::_pbi::TcParser::DiscardEverythingFallback, // fallback + #ifdef PROTOBUF_PREFETCH_PARSE_TABLE + ::_pbi::TcParser::GetTable<::Odb::Lib::Protobuf::FileArchive_StepsByNameEntry_DoNotUse>(), // to_prefetch + #endif // PROTOBUF_PREFETCH_PARSE_TABLE + }, {{ + // .Odb.Lib.Protobuf.StepDirectory value = 2; + {::_pbi::TcParser::FastMtS1, + {18, 0, 0, PROTOBUF_FIELD_OFFSET(FileArchive_StepsByNameEntry_DoNotUse, _impl_.value_)}}, + // string key = 1; + {::_pbi::TcParser::FastUS1, + {10, 63, 0, PROTOBUF_FIELD_OFFSET(FileArchive_StepsByNameEntry_DoNotUse, _impl_.key_)}}, + }}, {{ + 65535, 65535 + }}, {{ + // string key = 1; + {PROTOBUF_FIELD_OFFSET(FileArchive_StepsByNameEntry_DoNotUse, _impl_.key_), -1, 0, + (0 | ::_fl::kFcSingular | ::_fl::kUtf8String | ::_fl::kRepAString)}, + // .Odb.Lib.Protobuf.StepDirectory value = 2; + {PROTOBUF_FIELD_OFFSET(FileArchive_StepsByNameEntry_DoNotUse, _impl_.value_), _Internal::kHasBitsOffset + 0, 0, + (0 | ::_fl::kFcOptional | ::_fl::kMessage | ::_fl::kTvTable)}, + }}, {{ + {::_pbi::TcParser::GetTable<::Odb::Lib::Protobuf::StepDirectory>()}, + }}, {{ + "\55\3\0\0\0\0\0\0" + "Odb.Lib.Protobuf.FileArchive.StepsByNameEntry" + "key" + }}, +}; // =================================================================== -FileArchive_SymbolsDirectoriesByNameEntry_DoNotUse::FileArchive_SymbolsDirectoriesByNameEntry_DoNotUse() {} -FileArchive_SymbolsDirectoriesByNameEntry_DoNotUse::FileArchive_SymbolsDirectoriesByNameEntry_DoNotUse(::PROTOBUF_NAMESPACE_ID::Arena* arena) - : SuperType(arena) {} -void FileArchive_SymbolsDirectoriesByNameEntry_DoNotUse::MergeFrom(const FileArchive_SymbolsDirectoriesByNameEntry_DoNotUse& other) { - MergeFromInternal(other); -} -::PROTOBUF_NAMESPACE_ID::Metadata FileArchive_SymbolsDirectoriesByNameEntry_DoNotUse::GetMetadata() const { - return ::_pbi::AssignDescriptors( - &descriptor_table_filearchive_2eproto_getter, &descriptor_table_filearchive_2eproto_once, - file_level_metadata_filearchive_2eproto[1]); -} +#if defined(PROTOBUF_CUSTOM_VTABLE) + FileArchive_SymbolsDirectoriesByNameEntry_DoNotUse::FileArchive_SymbolsDirectoriesByNameEntry_DoNotUse() : SuperType(_class_data_.base()) {} + FileArchive_SymbolsDirectoriesByNameEntry_DoNotUse::FileArchive_SymbolsDirectoriesByNameEntry_DoNotUse(::google::protobuf::Arena* arena) + : SuperType(arena, _class_data_.base()) {} +#else // PROTOBUF_CUSTOM_VTABLE + FileArchive_SymbolsDirectoriesByNameEntry_DoNotUse::FileArchive_SymbolsDirectoriesByNameEntry_DoNotUse() : SuperType() {} + FileArchive_SymbolsDirectoriesByNameEntry_DoNotUse::FileArchive_SymbolsDirectoriesByNameEntry_DoNotUse(::google::protobuf::Arena* arena) : SuperType(arena) {} +#endif // PROTOBUF_CUSTOM_VTABLE + inline void* FileArchive_SymbolsDirectoriesByNameEntry_DoNotUse::PlacementNew_(const void*, void* mem, + ::google::protobuf::Arena* arena) { + return ::new (mem) FileArchive_SymbolsDirectoriesByNameEntry_DoNotUse(arena); + } + constexpr auto FileArchive_SymbolsDirectoriesByNameEntry_DoNotUse::InternalNewImpl_() { + return ::google::protobuf::internal::MessageCreator::CopyInit(sizeof(FileArchive_SymbolsDirectoriesByNameEntry_DoNotUse), + alignof(FileArchive_SymbolsDirectoriesByNameEntry_DoNotUse)); + } + PROTOBUF_CONSTINIT + PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 + const ::google::protobuf::internal::ClassDataFull FileArchive_SymbolsDirectoriesByNameEntry_DoNotUse::_class_data_ = { + ::google::protobuf::internal::ClassData{ + &_FileArchive_SymbolsDirectoriesByNameEntry_DoNotUse_default_instance_._instance, + &_table_.header, + nullptr, // OnDemandRegisterArenaDtor + nullptr, // IsInitialized + &FileArchive_SymbolsDirectoriesByNameEntry_DoNotUse::MergeImpl, + ::google::protobuf::Message::GetNewImpl(), + #if defined(PROTOBUF_CUSTOM_VTABLE) + &FileArchive_SymbolsDirectoriesByNameEntry_DoNotUse::SharedDtor, + static_cast( + &FileArchive_SymbolsDirectoriesByNameEntry_DoNotUse::ClearImpl), + ::google::protobuf::Message::ByteSizeLongImpl, ::google::protobuf::Message::_InternalSerializeImpl + , + #endif // PROTOBUF_CUSTOM_VTABLE + PROTOBUF_FIELD_OFFSET(FileArchive_SymbolsDirectoriesByNameEntry_DoNotUse, _impl_._cached_size_), + false, + }, + &FileArchive_SymbolsDirectoriesByNameEntry_DoNotUse::kDescriptorMethods, + &descriptor_table_filearchive_2eproto, + nullptr, // tracker + }; + const ::google::protobuf::internal::ClassData* FileArchive_SymbolsDirectoriesByNameEntry_DoNotUse::GetClassData() const { + ::google::protobuf::internal::PrefetchToLocalCache(&_class_data_); + ::google::protobuf::internal::PrefetchToLocalCache(_class_data_.tc_table); + return _class_data_.base(); + } +PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 +const ::_pbi::TcParseTable<1, 2, 1, 70, 2> FileArchive_SymbolsDirectoriesByNameEntry_DoNotUse::_table_ = { + { + PROTOBUF_FIELD_OFFSET(FileArchive_SymbolsDirectoriesByNameEntry_DoNotUse, _impl_._has_bits_), + 0, // no _extensions_ + 2, 8, // max_field_number, fast_idx_mask + offsetof(decltype(_table_), field_lookup_table), + 4294967292, // skipmap + offsetof(decltype(_table_), field_entries), + 2, // num_field_entries + 1, // num_aux_entries + offsetof(decltype(_table_), aux_entries), + _class_data_.base(), + nullptr, // post_loop_handler + ::_pbi::TcParser::DiscardEverythingFallback, // fallback + #ifdef PROTOBUF_PREFETCH_PARSE_TABLE + ::_pbi::TcParser::GetTable<::Odb::Lib::Protobuf::FileArchive_SymbolsDirectoriesByNameEntry_DoNotUse>(), // to_prefetch + #endif // PROTOBUF_PREFETCH_PARSE_TABLE + }, {{ + // .Odb.Lib.Protobuf.SymbolsDirectory value = 2; + {::_pbi::TcParser::FastMtS1, + {18, 0, 0, PROTOBUF_FIELD_OFFSET(FileArchive_SymbolsDirectoriesByNameEntry_DoNotUse, _impl_.value_)}}, + // string key = 1; + {::_pbi::TcParser::FastUS1, + {10, 63, 0, PROTOBUF_FIELD_OFFSET(FileArchive_SymbolsDirectoriesByNameEntry_DoNotUse, _impl_.key_)}}, + }}, {{ + 65535, 65535 + }}, {{ + // string key = 1; + {PROTOBUF_FIELD_OFFSET(FileArchive_SymbolsDirectoriesByNameEntry_DoNotUse, _impl_.key_), -1, 0, + (0 | ::_fl::kFcSingular | ::_fl::kUtf8String | ::_fl::kRepAString)}, + // .Odb.Lib.Protobuf.SymbolsDirectory value = 2; + {PROTOBUF_FIELD_OFFSET(FileArchive_SymbolsDirectoriesByNameEntry_DoNotUse, _impl_.value_), _Internal::kHasBitsOffset + 0, 0, + (0 | ::_fl::kFcOptional | ::_fl::kMessage | ::_fl::kTvTable)}, + }}, {{ + {::_pbi::TcParser::GetTable<::Odb::Lib::Protobuf::SymbolsDirectory>()}, + }}, {{ + "\72\3\0\0\0\0\0\0" + "Odb.Lib.Protobuf.FileArchive.SymbolsDirectoriesByNameEntry" + "key" + }}, +}; // =================================================================== class FileArchive::_Internal { public: - using HasBits = decltype(std::declval()._impl_._has_bits_); - static const ::Odb::Lib::Protobuf::MiscInfoFile& miscinfofile(const FileArchive* msg); - static void set_has_miscinfofile(HasBits* has_bits) { - (*has_bits)[0] |= 4u; - } - static const ::Odb::Lib::Protobuf::MatrixFile& matrixfile(const FileArchive* msg); - static void set_has_matrixfile(HasBits* has_bits) { - (*has_bits)[0] |= 8u; - } - static const ::Odb::Lib::Protobuf::StandardFontsFile& standardfontsfile(const FileArchive* msg); - static void set_has_standardfontsfile(HasBits* has_bits) { - (*has_bits)[0] |= 16u; - } - static const ::Odb::Lib::Protobuf::AttrListFile& miscattrlistfile(const FileArchive* msg); - static void set_has_miscattrlistfile(HasBits* has_bits) { - (*has_bits)[0] |= 32u; - } - static void set_has_productname(HasBits* has_bits) { - (*has_bits)[0] |= 1u; - } - static void set_has_filename(HasBits* has_bits) { - (*has_bits)[0] |= 2u; - } + using HasBits = + decltype(std::declval()._impl_._has_bits_); + static constexpr ::int32_t kHasBitsOffset = + 8 * PROTOBUF_FIELD_OFFSET(FileArchive, _impl_._has_bits_); }; -const ::Odb::Lib::Protobuf::MiscInfoFile& -FileArchive::_Internal::miscinfofile(const FileArchive* msg) { - return *msg->_impl_.miscinfofile_; -} -const ::Odb::Lib::Protobuf::MatrixFile& -FileArchive::_Internal::matrixfile(const FileArchive* msg) { - return *msg->_impl_.matrixfile_; -} -const ::Odb::Lib::Protobuf::StandardFontsFile& -FileArchive::_Internal::standardfontsfile(const FileArchive* msg) { - return *msg->_impl_.standardfontsfile_; -} -const ::Odb::Lib::Protobuf::AttrListFile& -FileArchive::_Internal::miscattrlistfile(const FileArchive* msg) { - return *msg->_impl_.miscattrlistfile_; -} void FileArchive::clear_stepsbyname() { + ::google::protobuf::internal::TSanWrite(&_impl_); _impl_.stepsbyname_.Clear(); } void FileArchive::clear_miscinfofile() { + ::google::protobuf::internal::TSanWrite(&_impl_); if (_impl_.miscinfofile_ != nullptr) _impl_.miscinfofile_->Clear(); _impl_._has_bits_[0] &= ~0x00000004u; } void FileArchive::clear_matrixfile() { + ::google::protobuf::internal::TSanWrite(&_impl_); if (_impl_.matrixfile_ != nullptr) _impl_.matrixfile_->Clear(); _impl_._has_bits_[0] &= ~0x00000008u; } void FileArchive::clear_standardfontsfile() { + ::google::protobuf::internal::TSanWrite(&_impl_); if (_impl_.standardfontsfile_ != nullptr) _impl_.standardfontsfile_->Clear(); _impl_._has_bits_[0] &= ~0x00000010u; } void FileArchive::clear_symbolsdirectoriesbyname() { + ::google::protobuf::internal::TSanWrite(&_impl_); _impl_.symbolsdirectoriesbyname_.Clear(); } void FileArchive::clear_miscattrlistfile() { + ::google::protobuf::internal::TSanWrite(&_impl_); if (_impl_.miscattrlistfile_ != nullptr) _impl_.miscattrlistfile_->Clear(); _impl_._has_bits_[0] &= ~0x00000020u; } -FileArchive::FileArchive(::PROTOBUF_NAMESPACE_ID::Arena* arena, - bool is_message_owned) - : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned) { - SharedCtor(arena, is_message_owned); - if (arena != nullptr && !is_message_owned) { - arena->OwnCustomDestructor(this, &FileArchive::ArenaDtor); - } +FileArchive::FileArchive(::google::protobuf::Arena* arena) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : ::google::protobuf::Message(arena, _class_data_.base()) { +#else // PROTOBUF_CUSTOM_VTABLE + : ::google::protobuf::Message(arena) { +#endif // PROTOBUF_CUSTOM_VTABLE + SharedCtor(arena); // @@protoc_insertion_point(arena_constructor:Odb.Lib.Protobuf.FileArchive) } -FileArchive::FileArchive(const FileArchive& from) - : ::PROTOBUF_NAMESPACE_ID::Message() { - FileArchive* const _this = this; (void)_this; - new (&_impl_) Impl_{ - decltype(_impl_._has_bits_){from._impl_._has_bits_} - , /*decltype(_impl_._cached_size_)*/{} - , /*decltype(_impl_.stepsbyname_)*/{} - , /*decltype(_impl_.symbolsdirectoriesbyname_)*/{} - , decltype(_impl_.productname_){} - , decltype(_impl_.filename_){} - , decltype(_impl_.miscinfofile_){nullptr} - , decltype(_impl_.matrixfile_){nullptr} - , decltype(_impl_.standardfontsfile_){nullptr} - , decltype(_impl_.miscattrlistfile_){nullptr}}; - - _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); - _this->_impl_.stepsbyname_.MergeFrom(from._impl_.stepsbyname_); - _this->_impl_.symbolsdirectoriesbyname_.MergeFrom(from._impl_.symbolsdirectoriesbyname_); - _impl_.productname_.InitDefault(); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - _impl_.productname_.Set("", GetArenaForAllocation()); - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (from._internal_has_productname()) { - _this->_impl_.productname_.Set(from._internal_productname(), - _this->GetArenaForAllocation()); - } - _impl_.filename_.InitDefault(); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - _impl_.filename_.Set("", GetArenaForAllocation()); - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (from._internal_has_filename()) { - _this->_impl_.filename_.Set(from._internal_filename(), - _this->GetArenaForAllocation()); - } - if (from._internal_has_miscinfofile()) { - _this->_impl_.miscinfofile_ = new ::Odb::Lib::Protobuf::MiscInfoFile(*from._impl_.miscinfofile_); - } - if (from._internal_has_matrixfile()) { - _this->_impl_.matrixfile_ = new ::Odb::Lib::Protobuf::MatrixFile(*from._impl_.matrixfile_); - } - if (from._internal_has_standardfontsfile()) { - _this->_impl_.standardfontsfile_ = new ::Odb::Lib::Protobuf::StandardFontsFile(*from._impl_.standardfontsfile_); - } - if (from._internal_has_miscattrlistfile()) { - _this->_impl_.miscattrlistfile_ = new ::Odb::Lib::Protobuf::AttrListFile(*from._impl_.miscattrlistfile_); - } +inline PROTOBUF_NDEBUG_INLINE FileArchive::Impl_::Impl_( + ::google::protobuf::internal::InternalVisibility visibility, ::google::protobuf::Arena* arena, + const Impl_& from, const ::Odb::Lib::Protobuf::FileArchive& from_msg) + : _has_bits_{from._has_bits_}, + _cached_size_{0}, + stepsbyname_{visibility, arena, from.stepsbyname_}, + symbolsdirectoriesbyname_{visibility, arena, from.symbolsdirectoriesbyname_}, + productname_(arena, from.productname_), + filename_(arena, from.filename_) {} + +FileArchive::FileArchive( + ::google::protobuf::Arena* arena, + const FileArchive& from) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : ::google::protobuf::Message(arena, _class_data_.base()) { +#else // PROTOBUF_CUSTOM_VTABLE + : ::google::protobuf::Message(arena) { +#endif // PROTOBUF_CUSTOM_VTABLE + FileArchive* const _this = this; + (void)_this; + _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( + from._internal_metadata_); + new (&_impl_) Impl_(internal_visibility(), arena, from._impl_, from); + ::uint32_t cached_has_bits = _impl_._has_bits_[0]; + _impl_.miscinfofile_ = (cached_has_bits & 0x00000004u) ? ::google::protobuf::Message::CopyConstruct<::Odb::Lib::Protobuf::MiscInfoFile>( + arena, *from._impl_.miscinfofile_) + : nullptr; + _impl_.matrixfile_ = (cached_has_bits & 0x00000008u) ? ::google::protobuf::Message::CopyConstruct<::Odb::Lib::Protobuf::MatrixFile>( + arena, *from._impl_.matrixfile_) + : nullptr; + _impl_.standardfontsfile_ = (cached_has_bits & 0x00000010u) ? ::google::protobuf::Message::CopyConstruct<::Odb::Lib::Protobuf::StandardFontsFile>( + arena, *from._impl_.standardfontsfile_) + : nullptr; + _impl_.miscattrlistfile_ = (cached_has_bits & 0x00000020u) ? ::google::protobuf::Message::CopyConstruct<::Odb::Lib::Protobuf::AttrListFile>( + arena, *from._impl_.miscattrlistfile_) + : nullptr; + // @@protoc_insertion_point(copy_constructor:Odb.Lib.Protobuf.FileArchive) } - -inline void FileArchive::SharedCtor( - ::_pb::Arena* arena, bool is_message_owned) { - (void)arena; - (void)is_message_owned; - new (&_impl_) Impl_{ - decltype(_impl_._has_bits_){} - , /*decltype(_impl_._cached_size_)*/{} - , /*decltype(_impl_.stepsbyname_)*/{::_pbi::ArenaInitialized(), arena} - , /*decltype(_impl_.symbolsdirectoriesbyname_)*/{::_pbi::ArenaInitialized(), arena} - , decltype(_impl_.productname_){} - , decltype(_impl_.filename_){} - , decltype(_impl_.miscinfofile_){nullptr} - , decltype(_impl_.matrixfile_){nullptr} - , decltype(_impl_.standardfontsfile_){nullptr} - , decltype(_impl_.miscattrlistfile_){nullptr} - }; - _impl_.productname_.InitDefault(); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - _impl_.productname_.Set("", GetArenaForAllocation()); - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING - _impl_.filename_.InitDefault(); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - _impl_.filename_.Set("", GetArenaForAllocation()); - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING +inline PROTOBUF_NDEBUG_INLINE FileArchive::Impl_::Impl_( + ::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* arena) + : _cached_size_{0}, + stepsbyname_{visibility, arena}, + symbolsdirectoriesbyname_{visibility, arena}, + productname_(arena), + filename_(arena) {} + +inline void FileArchive::SharedCtor(::_pb::Arena* arena) { + new (&_impl_) Impl_(internal_visibility(), arena); + ::memset(reinterpret_cast(&_impl_) + + offsetof(Impl_, miscinfofile_), + 0, + offsetof(Impl_, miscattrlistfile_) - + offsetof(Impl_, miscinfofile_) + + sizeof(Impl_::miscattrlistfile_)); } - FileArchive::~FileArchive() { // @@protoc_insertion_point(destructor:Odb.Lib.Protobuf.FileArchive) - if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) { - (void)arena; - ArenaDtor(this); - return; + SharedDtor(*this); +} +inline void FileArchive::SharedDtor(MessageLite& self) { + FileArchive& this_ = static_cast(self); + this_._internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); + ABSL_DCHECK(this_.GetArena() == nullptr); + this_._impl_.productname_.Destroy(); + this_._impl_.filename_.Destroy(); + delete this_._impl_.miscinfofile_; + delete this_._impl_.matrixfile_; + delete this_._impl_.standardfontsfile_; + delete this_._impl_.miscattrlistfile_; + this_._impl_.~Impl_(); +} + +inline void* FileArchive::PlacementNew_(const void*, void* mem, + ::google::protobuf::Arena* arena) { + return ::new (mem) FileArchive(arena); +} +constexpr auto FileArchive::InternalNewImpl_() { + constexpr auto arena_bits = ::google::protobuf::internal::EncodePlacementArenaOffsets({ + PROTOBUF_FIELD_OFFSET(FileArchive, _impl_.stepsbyname_) + + decltype(FileArchive::_impl_.stepsbyname_):: + InternalGetArenaOffset( + ::google::protobuf::Message::internal_visibility()), + PROTOBUF_FIELD_OFFSET(FileArchive, _impl_.stepsbyname_) + + decltype(FileArchive::_impl_.stepsbyname_):: + InternalGetArenaOffsetAlt( + ::google::protobuf::Message::internal_visibility()), + PROTOBUF_FIELD_OFFSET(FileArchive, _impl_.symbolsdirectoriesbyname_) + + decltype(FileArchive::_impl_.symbolsdirectoriesbyname_):: + InternalGetArenaOffset( + ::google::protobuf::Message::internal_visibility()), + PROTOBUF_FIELD_OFFSET(FileArchive, _impl_.symbolsdirectoriesbyname_) + + decltype(FileArchive::_impl_.symbolsdirectoriesbyname_):: + InternalGetArenaOffsetAlt( + ::google::protobuf::Message::internal_visibility()), + }); + if (arena_bits.has_value()) { + return ::google::protobuf::internal::MessageCreator::CopyInit( + sizeof(FileArchive), alignof(FileArchive), *arena_bits); + } else { + return ::google::protobuf::internal::MessageCreator(&FileArchive::PlacementNew_, + sizeof(FileArchive), + alignof(FileArchive)); } - SharedDtor(); -} - -inline void FileArchive::SharedDtor() { - GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); - _impl_.stepsbyname_.Destruct(); - _impl_.stepsbyname_.~MapField(); - _impl_.symbolsdirectoriesbyname_.Destruct(); - _impl_.symbolsdirectoriesbyname_.~MapField(); - _impl_.productname_.Destroy(); - _impl_.filename_.Destroy(); - if (this != internal_default_instance()) delete _impl_.miscinfofile_; - if (this != internal_default_instance()) delete _impl_.matrixfile_; - if (this != internal_default_instance()) delete _impl_.standardfontsfile_; - if (this != internal_default_instance()) delete _impl_.miscattrlistfile_; -} - -void FileArchive::ArenaDtor(void* object) { - FileArchive* _this = reinterpret_cast< FileArchive* >(object); - _this->_impl_.stepsbyname_.Destruct(); - _this->_impl_.symbolsdirectoriesbyname_.Destruct(); -} -void FileArchive::SetCachedSize(int size) const { - _impl_._cached_size_.Set(size); } +PROTOBUF_CONSTINIT +PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 +const ::google::protobuf::internal::ClassDataFull FileArchive::_class_data_ = { + ::google::protobuf::internal::ClassData{ + &_FileArchive_default_instance_._instance, + &_table_.header, + nullptr, // OnDemandRegisterArenaDtor + nullptr, // IsInitialized + &FileArchive::MergeImpl, + ::google::protobuf::Message::GetNewImpl(), +#if defined(PROTOBUF_CUSTOM_VTABLE) + &FileArchive::SharedDtor, + ::google::protobuf::Message::GetClearImpl(), &FileArchive::ByteSizeLong, + &FileArchive::_InternalSerialize, +#endif // PROTOBUF_CUSTOM_VTABLE + PROTOBUF_FIELD_OFFSET(FileArchive, _impl_._cached_size_), + false, + }, + &FileArchive::kDescriptorMethods, + &descriptor_table_filearchive_2eproto, + nullptr, // tracker +}; +const ::google::protobuf::internal::ClassData* FileArchive::GetClassData() const { + ::google::protobuf::internal::PrefetchToLocalCache(&_class_data_); + ::google::protobuf::internal::PrefetchToLocalCache(_class_data_.tc_table); + return _class_data_.base(); +} +PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 +const ::_pbi::TcParseTable<3, 8, 8, 99, 2> FileArchive::_table_ = { + { + PROTOBUF_FIELD_OFFSET(FileArchive, _impl_._has_bits_), + 0, // no _extensions_ + 8, 56, // max_field_number, fast_idx_mask + offsetof(decltype(_table_), field_lookup_table), + 4294967040, // skipmap + offsetof(decltype(_table_), field_entries), + 8, // num_field_entries + 8, // num_aux_entries + offsetof(decltype(_table_), aux_entries), + _class_data_.base(), + nullptr, // post_loop_handler + ::_pbi::TcParser::GenericFallback, // fallback + #ifdef PROTOBUF_PREFETCH_PARSE_TABLE + ::_pbi::TcParser::GetTable<::Odb::Lib::Protobuf::FileArchive>(), // to_prefetch + #endif // PROTOBUF_PREFETCH_PARSE_TABLE + }, {{ + // optional string fileName = 8; + {::_pbi::TcParser::FastUS1, + {66, 1, 0, PROTOBUF_FIELD_OFFSET(FileArchive, _impl_.filename_)}}, + {::_pbi::TcParser::MiniParse, {}}, + // optional .Odb.Lib.Protobuf.MiscInfoFile miscInfoFile = 2; + {::_pbi::TcParser::FastMtS1, + {18, 2, 0, PROTOBUF_FIELD_OFFSET(FileArchive, _impl_.miscinfofile_)}}, + // optional .Odb.Lib.Protobuf.MatrixFile matrixFile = 3; + {::_pbi::TcParser::FastMtS1, + {26, 3, 1, PROTOBUF_FIELD_OFFSET(FileArchive, _impl_.matrixfile_)}}, + // optional .Odb.Lib.Protobuf.StandardFontsFile standardFontsFile = 4; + {::_pbi::TcParser::FastMtS1, + {34, 4, 2, PROTOBUF_FIELD_OFFSET(FileArchive, _impl_.standardfontsfile_)}}, + {::_pbi::TcParser::MiniParse, {}}, + // optional .Odb.Lib.Protobuf.AttrListFile miscAttrListFile = 6; + {::_pbi::TcParser::FastMtS1, + {50, 5, 3, PROTOBUF_FIELD_OFFSET(FileArchive, _impl_.miscattrlistfile_)}}, + // optional string productName = 7; + {::_pbi::TcParser::FastUS1, + {58, 0, 0, PROTOBUF_FIELD_OFFSET(FileArchive, _impl_.productname_)}}, + }}, {{ + 65535, 65535 + }}, {{ + // map stepsByName = 1; + {PROTOBUF_FIELD_OFFSET(FileArchive, _impl_.stepsbyname_), -1, 4, + (0 | ::_fl::kFcRepeated | ::_fl::kMap)}, + // optional .Odb.Lib.Protobuf.MiscInfoFile miscInfoFile = 2; + {PROTOBUF_FIELD_OFFSET(FileArchive, _impl_.miscinfofile_), _Internal::kHasBitsOffset + 2, 0, + (0 | ::_fl::kFcOptional | ::_fl::kMessage | ::_fl::kTvTable)}, + // optional .Odb.Lib.Protobuf.MatrixFile matrixFile = 3; + {PROTOBUF_FIELD_OFFSET(FileArchive, _impl_.matrixfile_), _Internal::kHasBitsOffset + 3, 1, + (0 | ::_fl::kFcOptional | ::_fl::kMessage | ::_fl::kTvTable)}, + // optional .Odb.Lib.Protobuf.StandardFontsFile standardFontsFile = 4; + {PROTOBUF_FIELD_OFFSET(FileArchive, _impl_.standardfontsfile_), _Internal::kHasBitsOffset + 4, 2, + (0 | ::_fl::kFcOptional | ::_fl::kMessage | ::_fl::kTvTable)}, + // map symbolsDirectoriesByName = 5; + {PROTOBUF_FIELD_OFFSET(FileArchive, _impl_.symbolsdirectoriesbyname_), -1, 6, + (0 | ::_fl::kFcRepeated | ::_fl::kMap)}, + // optional .Odb.Lib.Protobuf.AttrListFile miscAttrListFile = 6; + {PROTOBUF_FIELD_OFFSET(FileArchive, _impl_.miscattrlistfile_), _Internal::kHasBitsOffset + 5, 3, + (0 | ::_fl::kFcOptional | ::_fl::kMessage | ::_fl::kTvTable)}, + // optional string productName = 7; + {PROTOBUF_FIELD_OFFSET(FileArchive, _impl_.productname_), _Internal::kHasBitsOffset + 0, 0, + (0 | ::_fl::kFcOptional | ::_fl::kUtf8String | ::_fl::kRepAString)}, + // optional string fileName = 8; + {PROTOBUF_FIELD_OFFSET(FileArchive, _impl_.filename_), _Internal::kHasBitsOffset + 1, 0, + (0 | ::_fl::kFcOptional | ::_fl::kUtf8String | ::_fl::kRepAString)}, + }}, {{ + {::_pbi::TcParser::GetTable<::Odb::Lib::Protobuf::MiscInfoFile>()}, + {::_pbi::TcParser::GetTable<::Odb::Lib::Protobuf::MatrixFile>()}, + {::_pbi::TcParser::GetTable<::Odb::Lib::Protobuf::StandardFontsFile>()}, + {::_pbi::TcParser::GetTable<::Odb::Lib::Protobuf::AttrListFile>()}, + {::_pbi::TcParser::GetMapAuxInfo< + decltype(FileArchive()._impl_.stepsbyname_)>( + 1, 0, 0, 9, + 11)}, + {::_pbi::TcParser::GetTable<::Odb::Lib::Protobuf::StepDirectory>()}, + {::_pbi::TcParser::GetMapAuxInfo< + decltype(FileArchive()._impl_.symbolsdirectoriesbyname_)>( + 1, 0, 0, 9, + 11)}, + {::_pbi::TcParser::GetTable<::Odb::Lib::Protobuf::SymbolsDirectory>()}, + }}, {{ + "\34\13\0\0\0\30\0\13\10\0\0\0\0\0\0\0" + "Odb.Lib.Protobuf.FileArchive" + "stepsByName" + "symbolsDirectoriesByName" + "productName" + "fileName" + }}, +}; -void FileArchive::Clear() { +PROTOBUF_NOINLINE void FileArchive::Clear() { // @@protoc_insertion_point(message_clear_start:Odb.Lib.Protobuf.FileArchive) - uint32_t cached_has_bits = 0; + ::google::protobuf::internal::TSanWrite(&_impl_); + ::uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; @@ -411,336 +695,230 @@ void FileArchive::Clear() { _impl_.filename_.ClearNonDefaultToEmpty(); } if (cached_has_bits & 0x00000004u) { - GOOGLE_DCHECK(_impl_.miscinfofile_ != nullptr); + ABSL_DCHECK(_impl_.miscinfofile_ != nullptr); _impl_.miscinfofile_->Clear(); } if (cached_has_bits & 0x00000008u) { - GOOGLE_DCHECK(_impl_.matrixfile_ != nullptr); + ABSL_DCHECK(_impl_.matrixfile_ != nullptr); _impl_.matrixfile_->Clear(); } if (cached_has_bits & 0x00000010u) { - GOOGLE_DCHECK(_impl_.standardfontsfile_ != nullptr); + ABSL_DCHECK(_impl_.standardfontsfile_ != nullptr); _impl_.standardfontsfile_->Clear(); } if (cached_has_bits & 0x00000020u) { - GOOGLE_DCHECK(_impl_.miscattrlistfile_ != nullptr); + ABSL_DCHECK(_impl_.miscattrlistfile_ != nullptr); _impl_.miscattrlistfile_->Clear(); } } _impl_._has_bits_.Clear(); - _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); -} - -const char* FileArchive::_InternalParse(const char* ptr, ::_pbi::ParseContext* ctx) { -#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure - _Internal::HasBits has_bits{}; - while (!ctx->Done(&ptr)) { - uint32_t tag; - ptr = ::_pbi::ReadTag(ptr, &tag); - switch (tag >> 3) { - // map stepsByName = 1; - case 1: - if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 10)) { - ptr -= 1; - do { - ptr += 1; - ptr = ctx->ParseMessage(&_impl_.stepsbyname_, ptr); - CHK_(ptr); - if (!ctx->DataAvailable(ptr)) break; - } while (::PROTOBUF_NAMESPACE_ID::internal::ExpectTag<10>(ptr)); - } else - goto handle_unusual; - continue; - // optional .Odb.Lib.Protobuf.MiscInfoFile miscInfoFile = 2; - case 2: - if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 18)) { - ptr = ctx->ParseMessage(_internal_mutable_miscinfofile(), ptr); - CHK_(ptr); - } else - goto handle_unusual; - continue; - // optional .Odb.Lib.Protobuf.MatrixFile matrixFile = 3; - case 3: - if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 26)) { - ptr = ctx->ParseMessage(_internal_mutable_matrixfile(), ptr); - CHK_(ptr); - } else - goto handle_unusual; - continue; - // optional .Odb.Lib.Protobuf.StandardFontsFile standardFontsFile = 4; - case 4: - if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 34)) { - ptr = ctx->ParseMessage(_internal_mutable_standardfontsfile(), ptr); - CHK_(ptr); - } else - goto handle_unusual; - continue; - // map symbolsDirectoriesByName = 5; - case 5: - if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 42)) { - ptr -= 1; - do { - ptr += 1; - ptr = ctx->ParseMessage(&_impl_.symbolsdirectoriesbyname_, ptr); - CHK_(ptr); - if (!ctx->DataAvailable(ptr)) break; - } while (::PROTOBUF_NAMESPACE_ID::internal::ExpectTag<42>(ptr)); - } else - goto handle_unusual; - continue; - // optional .Odb.Lib.Protobuf.AttrListFile miscAttrListFile = 6; - case 6: - if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 50)) { - ptr = ctx->ParseMessage(_internal_mutable_miscattrlistfile(), ptr); - CHK_(ptr); - } else - goto handle_unusual; - continue; - // optional string productName = 7; - case 7: - if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 58)) { - auto str = _internal_mutable_productname(); - ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); - CHK_(ptr); - CHK_(::_pbi::VerifyUTF8(str, "Odb.Lib.Protobuf.FileArchive.productName")); - } else - goto handle_unusual; - continue; - // optional string fileName = 8; - case 8: - if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 66)) { - auto str = _internal_mutable_filename(); - ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); - CHK_(ptr); - CHK_(::_pbi::VerifyUTF8(str, "Odb.Lib.Protobuf.FileArchive.fileName")); - } else - goto handle_unusual; - continue; - default: - goto handle_unusual; - } // switch - handle_unusual: - if ((tag == 0) || ((tag & 7) == 4)) { - CHK_(ptr); - ctx->SetLastTag(tag); - goto message_done; - } - ptr = UnknownFieldParse( - tag, - _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(), - ptr, ctx); - CHK_(ptr != nullptr); - } // while -message_done: - _impl_._has_bits_.Or(has_bits); - return ptr; -failure: - ptr = nullptr; - goto message_done; -#undef CHK_ -} - -uint8_t* FileArchive::_InternalSerialize( - uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { - // @@protoc_insertion_point(serialize_to_array_start:Odb.Lib.Protobuf.FileArchive) - uint32_t cached_has_bits = 0; - (void) cached_has_bits; - - // map stepsByName = 1; - if (!this->_internal_stepsbyname().empty()) { - using MapType = ::_pb::Map; - using WireHelper = FileArchive_StepsByNameEntry_DoNotUse::Funcs; - const auto& map_field = this->_internal_stepsbyname(); - auto check_utf8 = [](const MapType::value_type& entry) { - (void)entry; - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( - entry.first.data(), static_cast(entry.first.length()), - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, - "Odb.Lib.Protobuf.FileArchive.StepsByNameEntry.key"); - }; - - if (stream->IsSerializationDeterministic() && map_field.size() > 1) { - for (const auto& entry : ::_pbi::MapSorterPtr(map_field)) { - target = WireHelper::InternalSerialize(1, entry.first, entry.second, target, stream); - check_utf8(entry); - } - } else { - for (const auto& entry : map_field) { - target = WireHelper::InternalSerialize(1, entry.first, entry.second, target, stream); - check_utf8(entry); - } - } - } - - // optional .Odb.Lib.Protobuf.MiscInfoFile miscInfoFile = 2; - if (_internal_has_miscinfofile()) { - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: - InternalWriteMessage(2, _Internal::miscinfofile(this), - _Internal::miscinfofile(this).GetCachedSize(), target, stream); - } - - // optional .Odb.Lib.Protobuf.MatrixFile matrixFile = 3; - if (_internal_has_matrixfile()) { - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: - InternalWriteMessage(3, _Internal::matrixfile(this), - _Internal::matrixfile(this).GetCachedSize(), target, stream); - } - - // optional .Odb.Lib.Protobuf.StandardFontsFile standardFontsFile = 4; - if (_internal_has_standardfontsfile()) { - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: - InternalWriteMessage(4, _Internal::standardfontsfile(this), - _Internal::standardfontsfile(this).GetCachedSize(), target, stream); - } - - // map symbolsDirectoriesByName = 5; - if (!this->_internal_symbolsdirectoriesbyname().empty()) { - using MapType = ::_pb::Map; - using WireHelper = FileArchive_SymbolsDirectoriesByNameEntry_DoNotUse::Funcs; - const auto& map_field = this->_internal_symbolsdirectoriesbyname(); - auto check_utf8 = [](const MapType::value_type& entry) { - (void)entry; - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( - entry.first.data(), static_cast(entry.first.length()), - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, - "Odb.Lib.Protobuf.FileArchive.SymbolsDirectoriesByNameEntry.key"); - }; - - if (stream->IsSerializationDeterministic() && map_field.size() > 1) { - for (const auto& entry : ::_pbi::MapSorterPtr(map_field)) { - target = WireHelper::InternalSerialize(5, entry.first, entry.second, target, stream); - check_utf8(entry); - } - } else { - for (const auto& entry : map_field) { - target = WireHelper::InternalSerialize(5, entry.first, entry.second, target, stream); - check_utf8(entry); - } - } - } - - // optional .Odb.Lib.Protobuf.AttrListFile miscAttrListFile = 6; - if (_internal_has_miscattrlistfile()) { - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: - InternalWriteMessage(6, _Internal::miscattrlistfile(this), - _Internal::miscattrlistfile(this).GetCachedSize(), target, stream); - } - - // optional string productName = 7; - if (_internal_has_productname()) { - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( - this->_internal_productname().data(), static_cast(this->_internal_productname().length()), - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, - "Odb.Lib.Protobuf.FileArchive.productName"); - target = stream->WriteStringMaybeAliased( - 7, this->_internal_productname(), target); - } - - // optional string fileName = 8; - if (_internal_has_filename()) { - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( - this->_internal_filename().data(), static_cast(this->_internal_filename().length()), - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, - "Odb.Lib.Protobuf.FileArchive.fileName"); - target = stream->WriteStringMaybeAliased( - 8, this->_internal_filename(), target); - } - - if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = ::_pbi::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:Odb.Lib.Protobuf.FileArchive) - return target; -} - -size_t FileArchive::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:Odb.Lib.Protobuf.FileArchive) - size_t total_size = 0; - - uint32_t cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - // map stepsByName = 1; - total_size += 1 * - ::PROTOBUF_NAMESPACE_ID::internal::FromIntSize(this->_internal_stepsbyname_size()); - for (::PROTOBUF_NAMESPACE_ID::Map< std::string, ::Odb::Lib::Protobuf::StepDirectory >::const_iterator - it = this->_internal_stepsbyname().begin(); - it != this->_internal_stepsbyname().end(); ++it) { - total_size += FileArchive_StepsByNameEntry_DoNotUse::Funcs::ByteSizeLong(it->first, it->second); - } - - // map symbolsDirectoriesByName = 5; - total_size += 1 * - ::PROTOBUF_NAMESPACE_ID::internal::FromIntSize(this->_internal_symbolsdirectoriesbyname_size()); - for (::PROTOBUF_NAMESPACE_ID::Map< std::string, ::Odb::Lib::Protobuf::SymbolsDirectory >::const_iterator - it = this->_internal_symbolsdirectoriesbyname().begin(); - it != this->_internal_symbolsdirectoriesbyname().end(); ++it) { - total_size += FileArchive_SymbolsDirectoriesByNameEntry_DoNotUse::Funcs::ByteSizeLong(it->first, it->second); - } - - cached_has_bits = _impl_._has_bits_[0]; - if (cached_has_bits & 0x0000003fu) { - // optional string productName = 7; - if (cached_has_bits & 0x00000001u) { - total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( - this->_internal_productname()); - } - - // optional string fileName = 8; - if (cached_has_bits & 0x00000002u) { - total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( - this->_internal_filename()); - } - - // optional .Odb.Lib.Protobuf.MiscInfoFile miscInfoFile = 2; - if (cached_has_bits & 0x00000004u) { - total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( - *_impl_.miscinfofile_); - } - - // optional .Odb.Lib.Protobuf.MatrixFile matrixFile = 3; - if (cached_has_bits & 0x00000008u) { - total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( - *_impl_.matrixfile_); - } - - // optional .Odb.Lib.Protobuf.StandardFontsFile standardFontsFile = 4; - if (cached_has_bits & 0x00000010u) { - total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( - *_impl_.standardfontsfile_); - } - - // optional .Odb.Lib.Protobuf.AttrListFile miscAttrListFile = 6; - if (cached_has_bits & 0x00000020u) { - total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( - *_impl_.miscattrlistfile_); - } - - } - return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); -} - -const ::PROTOBUF_NAMESPACE_ID::Message::ClassData FileArchive::_class_data_ = { - ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSourceCheck, - FileArchive::MergeImpl -}; -const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*FileArchive::GetClassData() const { return &_class_data_; } - - -void FileArchive::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg) { + _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); +} + +#if defined(PROTOBUF_CUSTOM_VTABLE) + ::uint8_t* FileArchive::_InternalSerialize( + const MessageLite& base, ::uint8_t* target, + ::google::protobuf::io::EpsCopyOutputStream* stream) { + const FileArchive& this_ = static_cast(base); +#else // PROTOBUF_CUSTOM_VTABLE + ::uint8_t* FileArchive::_InternalSerialize( + ::uint8_t* target, + ::google::protobuf::io::EpsCopyOutputStream* stream) const { + const FileArchive& this_ = *this; +#endif // PROTOBUF_CUSTOM_VTABLE + // @@protoc_insertion_point(serialize_to_array_start:Odb.Lib.Protobuf.FileArchive) + ::uint32_t cached_has_bits = 0; + (void)cached_has_bits; + + // map stepsByName = 1; + if (!this_._internal_stepsbyname().empty()) { + using MapType = ::google::protobuf::Map; + using WireHelper = _pbi::MapEntryFuncs; + const auto& field = this_._internal_stepsbyname(); + + if (stream->IsSerializationDeterministic() && field.size() > 1) { + for (const auto& entry : ::google::protobuf::internal::MapSorterPtr(field)) { + target = WireHelper::InternalSerialize( + 1, entry.first, entry.second, target, stream); + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + entry.first.data(), static_cast(entry.first.length()), + ::google::protobuf::internal::WireFormatLite::SERIALIZE, "Odb.Lib.Protobuf.FileArchive.stepsByName"); + } + } else { + for (const auto& entry : field) { + target = WireHelper::InternalSerialize( + 1, entry.first, entry.second, target, stream); + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + entry.first.data(), static_cast(entry.first.length()), + ::google::protobuf::internal::WireFormatLite::SERIALIZE, "Odb.Lib.Protobuf.FileArchive.stepsByName"); + } + } + } + + cached_has_bits = this_._impl_._has_bits_[0]; + // optional .Odb.Lib.Protobuf.MiscInfoFile miscInfoFile = 2; + if (cached_has_bits & 0x00000004u) { + target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( + 2, *this_._impl_.miscinfofile_, this_._impl_.miscinfofile_->GetCachedSize(), target, + stream); + } + + // optional .Odb.Lib.Protobuf.MatrixFile matrixFile = 3; + if (cached_has_bits & 0x00000008u) { + target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( + 3, *this_._impl_.matrixfile_, this_._impl_.matrixfile_->GetCachedSize(), target, + stream); + } + + // optional .Odb.Lib.Protobuf.StandardFontsFile standardFontsFile = 4; + if (cached_has_bits & 0x00000010u) { + target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( + 4, *this_._impl_.standardfontsfile_, this_._impl_.standardfontsfile_->GetCachedSize(), target, + stream); + } + + // map symbolsDirectoriesByName = 5; + if (!this_._internal_symbolsdirectoriesbyname().empty()) { + using MapType = ::google::protobuf::Map; + using WireHelper = _pbi::MapEntryFuncs; + const auto& field = this_._internal_symbolsdirectoriesbyname(); + + if (stream->IsSerializationDeterministic() && field.size() > 1) { + for (const auto& entry : ::google::protobuf::internal::MapSorterPtr(field)) { + target = WireHelper::InternalSerialize( + 5, entry.first, entry.second, target, stream); + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + entry.first.data(), static_cast(entry.first.length()), + ::google::protobuf::internal::WireFormatLite::SERIALIZE, "Odb.Lib.Protobuf.FileArchive.symbolsDirectoriesByName"); + } + } else { + for (const auto& entry : field) { + target = WireHelper::InternalSerialize( + 5, entry.first, entry.second, target, stream); + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + entry.first.data(), static_cast(entry.first.length()), + ::google::protobuf::internal::WireFormatLite::SERIALIZE, "Odb.Lib.Protobuf.FileArchive.symbolsDirectoriesByName"); + } + } + } + + // optional .Odb.Lib.Protobuf.AttrListFile miscAttrListFile = 6; + if (cached_has_bits & 0x00000020u) { + target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( + 6, *this_._impl_.miscattrlistfile_, this_._impl_.miscattrlistfile_->GetCachedSize(), target, + stream); + } + + // optional string productName = 7; + if (cached_has_bits & 0x00000001u) { + const std::string& _s = this_._internal_productname(); + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + _s.data(), static_cast(_s.length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "Odb.Lib.Protobuf.FileArchive.productName"); + target = stream->WriteStringMaybeAliased(7, _s, target); + } + + // optional string fileName = 8; + if (cached_has_bits & 0x00000002u) { + const std::string& _s = this_._internal_filename(); + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + _s.data(), static_cast(_s.length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "Odb.Lib.Protobuf.FileArchive.fileName"); + target = stream->WriteStringMaybeAliased(8, _s, target); + } + + if (PROTOBUF_PREDICT_FALSE(this_._internal_metadata_.have_unknown_fields())) { + target = + ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( + this_._internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); + } + // @@protoc_insertion_point(serialize_to_array_end:Odb.Lib.Protobuf.FileArchive) + return target; + } + +#if defined(PROTOBUF_CUSTOM_VTABLE) + ::size_t FileArchive::ByteSizeLong(const MessageLite& base) { + const FileArchive& this_ = static_cast(base); +#else // PROTOBUF_CUSTOM_VTABLE + ::size_t FileArchive::ByteSizeLong() const { + const FileArchive& this_ = *this; +#endif // PROTOBUF_CUSTOM_VTABLE + // @@protoc_insertion_point(message_byte_size_start:Odb.Lib.Protobuf.FileArchive) + ::size_t total_size = 0; + + ::uint32_t cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void)cached_has_bits; + + ::_pbi::Prefetch5LinesFrom7Lines(&this_); + { + // map stepsByName = 1; + { + total_size += + 1 * ::google::protobuf::internal::FromIntSize(this_._internal_stepsbyname_size()); + for (const auto& entry : this_._internal_stepsbyname()) { + total_size += _pbi::MapEntryFuncs::ByteSizeLong(entry.first, entry.second); + } + } + // map symbolsDirectoriesByName = 5; + { + total_size += + 1 * ::google::protobuf::internal::FromIntSize(this_._internal_symbolsdirectoriesbyname_size()); + for (const auto& entry : this_._internal_symbolsdirectoriesbyname()) { + total_size += _pbi::MapEntryFuncs::ByteSizeLong(entry.first, entry.second); + } + } + } + cached_has_bits = this_._impl_._has_bits_[0]; + if (cached_has_bits & 0x0000003fu) { + // optional string productName = 7; + if (cached_has_bits & 0x00000001u) { + total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize( + this_._internal_productname()); + } + // optional string fileName = 8; + if (cached_has_bits & 0x00000002u) { + total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize( + this_._internal_filename()); + } + // optional .Odb.Lib.Protobuf.MiscInfoFile miscInfoFile = 2; + if (cached_has_bits & 0x00000004u) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::MessageSize(*this_._impl_.miscinfofile_); + } + // optional .Odb.Lib.Protobuf.MatrixFile matrixFile = 3; + if (cached_has_bits & 0x00000008u) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::MessageSize(*this_._impl_.matrixfile_); + } + // optional .Odb.Lib.Protobuf.StandardFontsFile standardFontsFile = 4; + if (cached_has_bits & 0x00000010u) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::MessageSize(*this_._impl_.standardfontsfile_); + } + // optional .Odb.Lib.Protobuf.AttrListFile miscAttrListFile = 6; + if (cached_has_bits & 0x00000020u) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::MessageSize(*this_._impl_.miscattrlistfile_); + } + } + return this_.MaybeComputeUnknownFieldsSize(total_size, + &this_._impl_._cached_size_); + } + +void FileArchive::MergeImpl(::google::protobuf::MessageLite& to_msg, const ::google::protobuf::MessageLite& from_msg) { auto* const _this = static_cast(&to_msg); auto& from = static_cast(from_msg); + ::google::protobuf::Arena* arena = _this->GetArena(); // @@protoc_insertion_point(class_specific_merge_from_start:Odb.Lib.Protobuf.FileArchive) - GOOGLE_DCHECK_NE(&from, _this); - uint32_t cached_has_bits = 0; + ABSL_DCHECK_NE(&from, _this); + ::uint32_t cached_has_bits = 0; (void) cached_has_bits; _this->_impl_.stepsbyname_.MergeFrom(from._impl_.stepsbyname_); @@ -754,23 +932,44 @@ void FileArchive::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PR _this->_internal_set_filename(from._internal_filename()); } if (cached_has_bits & 0x00000004u) { - _this->_internal_mutable_miscinfofile()->::Odb::Lib::Protobuf::MiscInfoFile::MergeFrom( - from._internal_miscinfofile()); + ABSL_DCHECK(from._impl_.miscinfofile_ != nullptr); + if (_this->_impl_.miscinfofile_ == nullptr) { + _this->_impl_.miscinfofile_ = + ::google::protobuf::Message::CopyConstruct<::Odb::Lib::Protobuf::MiscInfoFile>(arena, *from._impl_.miscinfofile_); + } else { + _this->_impl_.miscinfofile_->MergeFrom(*from._impl_.miscinfofile_); + } } if (cached_has_bits & 0x00000008u) { - _this->_internal_mutable_matrixfile()->::Odb::Lib::Protobuf::MatrixFile::MergeFrom( - from._internal_matrixfile()); + ABSL_DCHECK(from._impl_.matrixfile_ != nullptr); + if (_this->_impl_.matrixfile_ == nullptr) { + _this->_impl_.matrixfile_ = + ::google::protobuf::Message::CopyConstruct<::Odb::Lib::Protobuf::MatrixFile>(arena, *from._impl_.matrixfile_); + } else { + _this->_impl_.matrixfile_->MergeFrom(*from._impl_.matrixfile_); + } } if (cached_has_bits & 0x00000010u) { - _this->_internal_mutable_standardfontsfile()->::Odb::Lib::Protobuf::StandardFontsFile::MergeFrom( - from._internal_standardfontsfile()); + ABSL_DCHECK(from._impl_.standardfontsfile_ != nullptr); + if (_this->_impl_.standardfontsfile_ == nullptr) { + _this->_impl_.standardfontsfile_ = + ::google::protobuf::Message::CopyConstruct<::Odb::Lib::Protobuf::StandardFontsFile>(arena, *from._impl_.standardfontsfile_); + } else { + _this->_impl_.standardfontsfile_->MergeFrom(*from._impl_.standardfontsfile_); + } } if (cached_has_bits & 0x00000020u) { - _this->_internal_mutable_miscattrlistfile()->::Odb::Lib::Protobuf::AttrListFile::MergeFrom( - from._internal_miscattrlistfile()); + ABSL_DCHECK(from._impl_.miscattrlistfile_ != nullptr); + if (_this->_impl_.miscattrlistfile_ == nullptr) { + _this->_impl_.miscattrlistfile_ = + ::google::protobuf::Message::CopyConstruct<::Odb::Lib::Protobuf::AttrListFile>(arena, *from._impl_.miscattrlistfile_); + } else { + _this->_impl_.miscattrlistfile_->MergeFrom(*from._impl_.miscattrlistfile_); + } } } - _this->_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); + _this->_impl_._has_bits_[0] |= cached_has_bits; + _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); } void FileArchive::CopyFrom(const FileArchive& from) { @@ -780,27 +979,18 @@ void FileArchive::CopyFrom(const FileArchive& from) { MergeFrom(from); } -bool FileArchive::IsInitialized() const { - return true; -} -void FileArchive::InternalSwap(FileArchive* other) { +void FileArchive::InternalSwap(FileArchive* PROTOBUF_RESTRICT other) { using std::swap; - auto* lhs_arena = GetArenaForAllocation(); - auto* rhs_arena = other->GetArenaForAllocation(); + auto* arena = GetArena(); + ABSL_DCHECK_EQ(arena, other->GetArena()); _internal_metadata_.InternalSwap(&other->_internal_metadata_); swap(_impl_._has_bits_[0], other->_impl_._has_bits_[0]); _impl_.stepsbyname_.InternalSwap(&other->_impl_.stepsbyname_); _impl_.symbolsdirectoriesbyname_.InternalSwap(&other->_impl_.symbolsdirectoriesbyname_); - ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( - &_impl_.productname_, lhs_arena, - &other->_impl_.productname_, rhs_arena - ); - ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( - &_impl_.filename_, lhs_arena, - &other->_impl_.filename_, rhs_arena - ); - ::PROTOBUF_NAMESPACE_ID::internal::memswap< + ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.productname_, &other->_impl_.productname_, arena); + ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.filename_, &other->_impl_.filename_, arena); + ::google::protobuf::internal::memswap< PROTOBUF_FIELD_OFFSET(FileArchive, _impl_.miscattrlistfile_) + sizeof(FileArchive::_impl_.miscattrlistfile_) - PROTOBUF_FIELD_OFFSET(FileArchive, _impl_.miscinfofile_)>( @@ -808,30 +998,20 @@ void FileArchive::InternalSwap(FileArchive* other) { reinterpret_cast(&other->_impl_.miscinfofile_)); } -::PROTOBUF_NAMESPACE_ID::Metadata FileArchive::GetMetadata() const { - return ::_pbi::AssignDescriptors( - &descriptor_table_filearchive_2eproto_getter, &descriptor_table_filearchive_2eproto_once, - file_level_metadata_filearchive_2eproto[2]); +::google::protobuf::Metadata FileArchive::GetMetadata() const { + return ::google::protobuf::Message::GetMetadataImpl(GetClassData()->full()); } - // @@protoc_insertion_point(namespace_scope) } // namespace Protobuf } // namespace Lib } // namespace Odb -PROTOBUF_NAMESPACE_OPEN -template<> PROTOBUF_NOINLINE ::Odb::Lib::Protobuf::FileArchive_StepsByNameEntry_DoNotUse* -Arena::CreateMaybeMessage< ::Odb::Lib::Protobuf::FileArchive_StepsByNameEntry_DoNotUse >(Arena* arena) { - return Arena::CreateMessageInternal< ::Odb::Lib::Protobuf::FileArchive_StepsByNameEntry_DoNotUse >(arena); -} -template<> PROTOBUF_NOINLINE ::Odb::Lib::Protobuf::FileArchive_SymbolsDirectoriesByNameEntry_DoNotUse* -Arena::CreateMaybeMessage< ::Odb::Lib::Protobuf::FileArchive_SymbolsDirectoriesByNameEntry_DoNotUse >(Arena* arena) { - return Arena::CreateMessageInternal< ::Odb::Lib::Protobuf::FileArchive_SymbolsDirectoriesByNameEntry_DoNotUse >(arena); -} -template<> PROTOBUF_NOINLINE ::Odb::Lib::Protobuf::FileArchive* -Arena::CreateMaybeMessage< ::Odb::Lib::Protobuf::FileArchive >(Arena* arena) { - return Arena::CreateMessageInternal< ::Odb::Lib::Protobuf::FileArchive >(arena); -} -PROTOBUF_NAMESPACE_CLOSE - +namespace google { +namespace protobuf { +} // namespace protobuf +} // namespace google // @@protoc_insertion_point(global_scope) -#include +PROTOBUF_ATTRIBUTE_INIT_PRIORITY2 static ::std::false_type + _static_init2_ PROTOBUF_UNUSED = + (::_pbi::AddDescriptors(&descriptor_table_filearchive_2eproto), + ::std::false_type{}); +#include "google/protobuf/port_undef.inc" diff --git a/OdbDesignLib/ProtoBuf/filearchive.pb.h b/OdbDesignLib/ProtoBuf/filearchive.pb.h index 00ae10e1..377a4ef2 100644 --- a/OdbDesignLib/ProtoBuf/filearchive.pb.h +++ b/OdbDesignLib/ProtoBuf/filearchive.pb.h @@ -1,38 +1,37 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE // source: filearchive.proto +// Protobuf C++ Version: 5.29.2 -#ifndef GOOGLE_PROTOBUF_INCLUDED_filearchive_2eproto -#define GOOGLE_PROTOBUF_INCLUDED_filearchive_2eproto +#ifndef filearchive_2eproto_2epb_2eh +#define filearchive_2eproto_2epb_2eh #include #include +#include +#include -#include -#if PROTOBUF_VERSION < 3021000 -#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. +#include "google/protobuf/runtime_version.h" +#if PROTOBUF_VERSION != 5029002 +#error "Protobuf C++ gencode is built with an incompatible version of" +#error "Protobuf C++ headers/runtime. See" +#error "https://protobuf.dev/support/cross-version-runtime-guarantee/#cpp" #endif -#if 3021012 < 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 -#include -#include -#include -#include -#include -#include -#include -#include // IWYU pragma: export -#include // IWYU pragma: export -#include // IWYU pragma: export -#include -#include -#include +#include "google/protobuf/io/coded_stream.h" +#include "google/protobuf/arena.h" +#include "google/protobuf/arenastring.h" +#include "google/protobuf/generated_message_tctable_decl.h" +#include "google/protobuf/generated_message_util.h" +#include "google/protobuf/metadata_lite.h" +#include "google/protobuf/generated_message_reflection.h" +#include "google/protobuf/message.h" +#include "google/protobuf/message_lite.h" +#include "google/protobuf/repeated_field.h" // IWYU pragma: export +#include "google/protobuf/extension_set.h" // IWYU pragma: export +#include "google/protobuf/map.h" // IWYU pragma: export +#include "google/protobuf/map_entry.h" +#include "google/protobuf/map_field_inl.h" +#include "google/protobuf/unknown_field_set.h" #include "stepdirectory.pb.h" #include "miscinfofile.pb.h" #include "matrixfile.pb.h" @@ -40,19 +39,27 @@ #include "symbolsdirectory.pb.h" #include "attrlistfile.pb.h" // @@protoc_insertion_point(includes) -#include + +// Must be included last. +#include "google/protobuf/port_def.inc" + #define PROTOBUF_INTERNAL_EXPORT_filearchive_2eproto ODBDESIGN_EXPORT -PROTOBUF_NAMESPACE_OPEN + +namespace google { +namespace protobuf { namespace internal { -class AnyMetadata; +template +::absl::string_view GetAnyMessageName(); } // namespace internal -PROTOBUF_NAMESPACE_CLOSE +} // namespace protobuf +} // namespace google // Internal implementation detail -- do not use these members. struct ODBDESIGN_EXPORT TableStruct_filearchive_2eproto { - static const uint32_t offsets[]; + static const ::uint32_t offsets[]; }; -ODBDESIGN_EXPORT extern const ::PROTOBUF_NAMESPACE_ID::internal::DescriptorTable descriptor_table_filearchive_2eproto; +ODBDESIGN_EXPORT extern const ::google::protobuf::internal::DescriptorTable + descriptor_table_filearchive_2eproto; namespace Odb { namespace Lib { namespace Protobuf { @@ -68,93 +75,125 @@ ODBDESIGN_EXPORT extern FileArchive_SymbolsDirectoriesByNameEntry_DoNotUseDefaul } // namespace Protobuf } // namespace Lib } // namespace Odb -PROTOBUF_NAMESPACE_OPEN -template<> ODBDESIGN_EXPORT ::Odb::Lib::Protobuf::FileArchive* Arena::CreateMaybeMessage<::Odb::Lib::Protobuf::FileArchive>(Arena*); -template<> ODBDESIGN_EXPORT ::Odb::Lib::Protobuf::FileArchive_StepsByNameEntry_DoNotUse* Arena::CreateMaybeMessage<::Odb::Lib::Protobuf::FileArchive_StepsByNameEntry_DoNotUse>(Arena*); -template<> ODBDESIGN_EXPORT ::Odb::Lib::Protobuf::FileArchive_SymbolsDirectoriesByNameEntry_DoNotUse* Arena::CreateMaybeMessage<::Odb::Lib::Protobuf::FileArchive_SymbolsDirectoriesByNameEntry_DoNotUse>(Arena*); -PROTOBUF_NAMESPACE_CLOSE +namespace google { +namespace protobuf { +} // namespace protobuf +} // namespace google + namespace Odb { namespace Lib { namespace Protobuf { // =================================================================== -class FileArchive_StepsByNameEntry_DoNotUse : public ::PROTOBUF_NAMESPACE_ID::internal::MapEntry { -public: - typedef ::PROTOBUF_NAMESPACE_ID::internal::MapEntry SuperType; - FileArchive_StepsByNameEntry_DoNotUse(); - explicit PROTOBUF_CONSTEXPR FileArchive_StepsByNameEntry_DoNotUse( - ::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); - explicit FileArchive_StepsByNameEntry_DoNotUse(::PROTOBUF_NAMESPACE_ID::Arena* arena); - void MergeFrom(const FileArchive_StepsByNameEntry_DoNotUse& other); - static const FileArchive_StepsByNameEntry_DoNotUse* internal_default_instance() { return reinterpret_cast(&_FileArchive_StepsByNameEntry_DoNotUse_default_instance_); } - static bool ValidateKey(std::string* s) { - return ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String(s->data(), static_cast(s->size()), ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::PARSE, "Odb.Lib.Protobuf.FileArchive.StepsByNameEntry.key"); - } - static bool ValidateValue(void*) { return true; } - using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; - ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; - friend struct ::TableStruct_filearchive_2eproto; -}; // ------------------------------------------------------------------- -class FileArchive_SymbolsDirectoriesByNameEntry_DoNotUse : public ::PROTOBUF_NAMESPACE_ID::internal::MapEntry { -public: - typedef ::PROTOBUF_NAMESPACE_ID::internal::MapEntry SuperType; +class FileArchive_SymbolsDirectoriesByNameEntry_DoNotUse final + : public ::google::protobuf::internal::MapEntry< + std::string, ::google::protobuf::Message, + ::google::protobuf::internal::WireFormatLite::TYPE_STRING, + ::google::protobuf::internal::WireFormatLite::TYPE_MESSAGE> { + public: + using SuperType = ::google::protobuf::internal::MapEntry< + std::string, ::google::protobuf::Message, + ::google::protobuf::internal::WireFormatLite::TYPE_STRING, + ::google::protobuf::internal::WireFormatLite::TYPE_MESSAGE>; FileArchive_SymbolsDirectoriesByNameEntry_DoNotUse(); + template explicit PROTOBUF_CONSTEXPR FileArchive_SymbolsDirectoriesByNameEntry_DoNotUse( - ::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); - explicit FileArchive_SymbolsDirectoriesByNameEntry_DoNotUse(::PROTOBUF_NAMESPACE_ID::Arena* arena); - void MergeFrom(const FileArchive_SymbolsDirectoriesByNameEntry_DoNotUse& other); - static const FileArchive_SymbolsDirectoriesByNameEntry_DoNotUse* internal_default_instance() { return reinterpret_cast(&_FileArchive_SymbolsDirectoriesByNameEntry_DoNotUse_default_instance_); } - static bool ValidateKey(std::string* s) { - return ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String(s->data(), static_cast(s->size()), ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::PARSE, "Odb.Lib.Protobuf.FileArchive.SymbolsDirectoriesByNameEntry.key"); - } - static bool ValidateValue(void*) { return true; } - using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; - ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; + ::google::protobuf::internal::ConstantInitialized); + explicit FileArchive_SymbolsDirectoriesByNameEntry_DoNotUse(::google::protobuf::Arena* arena); + static const FileArchive_SymbolsDirectoriesByNameEntry_DoNotUse* internal_default_instance() { + return reinterpret_cast( + &_FileArchive_SymbolsDirectoriesByNameEntry_DoNotUse_default_instance_); + } + + + private: + friend class ::google::protobuf::MessageLite; friend struct ::TableStruct_filearchive_2eproto; + + friend class ::google::protobuf::internal::TcParser; + static const ::google::protobuf::internal::TcParseTable< + 1, 2, 1, + 70, 2> + _table_; + + const ::google::protobuf::internal::ClassData* GetClassData() const PROTOBUF_FINAL; + static void* PlacementNew_(const void*, void* mem, + ::google::protobuf::Arena* arena); + static constexpr auto InternalNewImpl_(); + static const ::google::protobuf::internal::ClassDataFull _class_data_; }; +// ------------------------------------------------------------------- + +class FileArchive_StepsByNameEntry_DoNotUse final + : public ::google::protobuf::internal::MapEntry< + std::string, ::google::protobuf::Message, + ::google::protobuf::internal::WireFormatLite::TYPE_STRING, + ::google::protobuf::internal::WireFormatLite::TYPE_MESSAGE> { + public: + using SuperType = ::google::protobuf::internal::MapEntry< + std::string, ::google::protobuf::Message, + ::google::protobuf::internal::WireFormatLite::TYPE_STRING, + ::google::protobuf::internal::WireFormatLite::TYPE_MESSAGE>; + FileArchive_StepsByNameEntry_DoNotUse(); + template + explicit PROTOBUF_CONSTEXPR FileArchive_StepsByNameEntry_DoNotUse( + ::google::protobuf::internal::ConstantInitialized); + explicit FileArchive_StepsByNameEntry_DoNotUse(::google::protobuf::Arena* arena); + static const FileArchive_StepsByNameEntry_DoNotUse* internal_default_instance() { + return reinterpret_cast( + &_FileArchive_StepsByNameEntry_DoNotUse_default_instance_); + } + + private: + friend class ::google::protobuf::MessageLite; + friend struct ::TableStruct_filearchive_2eproto; + + friend class ::google::protobuf::internal::TcParser; + static const ::google::protobuf::internal::TcParseTable< + 1, 2, 1, + 57, 2> + _table_; + + const ::google::protobuf::internal::ClassData* GetClassData() const PROTOBUF_FINAL; + static void* PlacementNew_(const void*, void* mem, + ::google::protobuf::Arena* arena); + static constexpr auto InternalNewImpl_(); + static const ::google::protobuf::internal::ClassDataFull _class_data_; +}; // ------------------------------------------------------------------- -class ODBDESIGN_EXPORT FileArchive final : - public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:Odb.Lib.Protobuf.FileArchive) */ { +class ODBDESIGN_EXPORT FileArchive final : public ::google::protobuf::Message +/* @@protoc_insertion_point(class_definition:Odb.Lib.Protobuf.FileArchive) */ { public: inline FileArchive() : FileArchive(nullptr) {} - ~FileArchive() override; - explicit PROTOBUF_CONSTEXPR FileArchive(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); + ~FileArchive() PROTOBUF_FINAL; - FileArchive(const FileArchive& from); - FileArchive(FileArchive&& from) noexcept - : FileArchive() { - *this = ::std::move(from); +#if defined(PROTOBUF_CUSTOM_VTABLE) + void operator delete(FileArchive* msg, std::destroying_delete_t) { + SharedDtor(*msg); + ::google::protobuf::internal::SizedDelete(msg, sizeof(FileArchive)); } +#endif + + template + explicit PROTOBUF_CONSTEXPR FileArchive( + ::google::protobuf::internal::ConstantInitialized); + inline FileArchive(const FileArchive& from) : FileArchive(nullptr, from) {} + inline FileArchive(FileArchive&& from) noexcept + : FileArchive(nullptr, std::move(from)) {} inline FileArchive& operator=(const FileArchive& from) { CopyFrom(from); return *this; } inline FileArchive& operator=(FileArchive&& from) noexcept { if (this == &from) return *this; - if (GetOwningArena() == from.GetOwningArena() - #ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetOwningArena() != nullptr - #endif // !PROTOBUF_FORCE_COPY_IN_MOVE - ) { + if (::google::protobuf::internal::CanMoveWithInternalSwap(GetArena(), from.GetArena())) { InternalSwap(&from); } else { CopyFrom(from); @@ -162,13 +201,22 @@ class ODBDESIGN_EXPORT FileArchive final : return *this; } - static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { + inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const + ABSL_ATTRIBUTE_LIFETIME_BOUND { + return _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance); + } + inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() + ABSL_ATTRIBUTE_LIFETIME_BOUND { + return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); + } + + static const ::google::protobuf::Descriptor* descriptor() { return GetDescriptor(); } - static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { + static const ::google::protobuf::Descriptor* GetDescriptor() { return default_instance().GetMetadata().descriptor; } - static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { + static const ::google::protobuf::Reflection* GetReflection() { return default_instance().GetMetadata().reflection; } static const FileArchive& default_instance() { @@ -176,84 +224,94 @@ class ODBDESIGN_EXPORT FileArchive final : } static inline const FileArchive* internal_default_instance() { return reinterpret_cast( - &_FileArchive_default_instance_); - } - static constexpr int kIndexInFileMessages = - 2; - - friend void swap(FileArchive& a, FileArchive& b) { - a.Swap(&b); + &_FileArchive_default_instance_); } + static constexpr int kIndexInFileMessages = 2; + friend void swap(FileArchive& a, FileArchive& b) { a.Swap(&b); } inline void Swap(FileArchive* other) { if (other == this) return; - #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetOwningArena() != nullptr && - GetOwningArena() == other->GetOwningArena()) { - #else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetOwningArena() == other->GetOwningArena()) { - #endif // !PROTOBUF_FORCE_COPY_IN_SWAP + if (::google::protobuf::internal::CanUseInternalSwap(GetArena(), other->GetArena())) { InternalSwap(other); } else { - ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); + ::google::protobuf::internal::GenericSwap(this, other); } } void UnsafeArenaSwap(FileArchive* other) { if (other == this) return; - GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); + ABSL_DCHECK(GetArena() == other->GetArena()); InternalSwap(other); } // implements Message ---------------------------------------------- - FileArchive* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); + FileArchive* New(::google::protobuf::Arena* arena = nullptr) const { + return ::google::protobuf::Message::DefaultConstruct(arena); } - using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; + using ::google::protobuf::Message::CopyFrom; void CopyFrom(const FileArchive& from); - using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; - void MergeFrom( const FileArchive& from) { - FileArchive::MergeImpl(*this, from); - } - private: - static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg); - public: - PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; - bool IsInitialized() const final; - - size_t ByteSizeLong() const final; - const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final; - uint8_t* _InternalSerialize( - uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const final { return _impl_._cached_size_.Get(); } + using ::google::protobuf::Message::MergeFrom; + void MergeFrom(const FileArchive& from) { FileArchive::MergeImpl(*this, from); } private: - void SharedCtor(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned); - void SharedDtor(); - void SetCachedSize(int size) const final; - void InternalSwap(FileArchive* other); + static void MergeImpl( + ::google::protobuf::MessageLite& to_msg, + const ::google::protobuf::MessageLite& from_msg); - private: - friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; - static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { - return "Odb.Lib.Protobuf.FileArchive"; + public: + bool IsInitialized() const { + return true; } - protected: - explicit FileArchive(::PROTOBUF_NAMESPACE_ID::Arena* arena, - bool is_message_owned = false); + ABSL_ATTRIBUTE_REINITIALIZES void Clear() PROTOBUF_FINAL; + #if defined(PROTOBUF_CUSTOM_VTABLE) private: - static void ArenaDtor(void* object); + static ::size_t ByteSizeLong(const ::google::protobuf::MessageLite& msg); + static ::uint8_t* _InternalSerialize( + const MessageLite& msg, ::uint8_t* target, + ::google::protobuf::io::EpsCopyOutputStream* stream); + public: + ::size_t ByteSizeLong() const { return ByteSizeLong(*this); } + ::uint8_t* _InternalSerialize( + ::uint8_t* target, + ::google::protobuf::io::EpsCopyOutputStream* stream) const { + return _InternalSerialize(*this, target, stream); + } + #else // PROTOBUF_CUSTOM_VTABLE + ::size_t ByteSizeLong() const final; + ::uint8_t* _InternalSerialize( + ::uint8_t* target, + ::google::protobuf::io::EpsCopyOutputStream* stream) const final; + #endif // PROTOBUF_CUSTOM_VTABLE + int GetCachedSize() const { return _impl_._cached_size_.Get(); } - static const ClassData _class_data_; - const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final; + private: + void SharedCtor(::google::protobuf::Arena* arena); + static void SharedDtor(MessageLite& self); + void InternalSwap(FileArchive* other); + private: + template + friend ::absl::string_view( + ::google::protobuf::internal::GetAnyMessageName)(); + static ::absl::string_view FullMessageName() { return "Odb.Lib.Protobuf.FileArchive"; } - ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; + protected: + explicit FileArchive(::google::protobuf::Arena* arena); + FileArchive(::google::protobuf::Arena* arena, const FileArchive& from); + FileArchive(::google::protobuf::Arena* arena, FileArchive&& from) noexcept + : FileArchive(arena) { + *this = ::std::move(from); + } + const ::google::protobuf::internal::ClassData* GetClassData() const PROTOBUF_FINAL; + static void* PlacementNew_(const void*, void* mem, + ::google::protobuf::Arena* arena); + static constexpr auto InternalNewImpl_(); + static const ::google::protobuf::internal::ClassDataFull _class_data_; + public: + ::google::protobuf::Metadata GetMetadata() const; // nested types ---------------------------------------------------- - // accessors ------------------------------------------------------- - enum : int { kStepsByNameFieldNumber = 1, kSymbolsDirectoriesByNameFieldNumber = 5, @@ -268,240 +326,237 @@ class ODBDESIGN_EXPORT FileArchive final : int stepsbyname_size() const; private: int _internal_stepsbyname_size() const; + public: - void clear_stepsbyname(); + void clear_stepsbyname() ; + const ::google::protobuf::Map& stepsbyname() const; + ::google::protobuf::Map* mutable_stepsbyname(); + private: - const ::PROTOBUF_NAMESPACE_ID::Map< std::string, ::Odb::Lib::Protobuf::StepDirectory >& - _internal_stepsbyname() const; - ::PROTOBUF_NAMESPACE_ID::Map< std::string, ::Odb::Lib::Protobuf::StepDirectory >* - _internal_mutable_stepsbyname(); - public: - const ::PROTOBUF_NAMESPACE_ID::Map< std::string, ::Odb::Lib::Protobuf::StepDirectory >& - stepsbyname() const; - ::PROTOBUF_NAMESPACE_ID::Map< std::string, ::Odb::Lib::Protobuf::StepDirectory >* - mutable_stepsbyname(); + const ::google::protobuf::Map& _internal_stepsbyname() const; + ::google::protobuf::Map* _internal_mutable_stepsbyname(); + public: // map symbolsDirectoriesByName = 5; int symbolsdirectoriesbyname_size() const; private: int _internal_symbolsdirectoriesbyname_size() const; + public: - void clear_symbolsdirectoriesbyname(); + void clear_symbolsdirectoriesbyname() ; + const ::google::protobuf::Map& symbolsdirectoriesbyname() const; + ::google::protobuf::Map* mutable_symbolsdirectoriesbyname(); + private: - const ::PROTOBUF_NAMESPACE_ID::Map< std::string, ::Odb::Lib::Protobuf::SymbolsDirectory >& - _internal_symbolsdirectoriesbyname() const; - ::PROTOBUF_NAMESPACE_ID::Map< std::string, ::Odb::Lib::Protobuf::SymbolsDirectory >* - _internal_mutable_symbolsdirectoriesbyname(); - public: - const ::PROTOBUF_NAMESPACE_ID::Map< std::string, ::Odb::Lib::Protobuf::SymbolsDirectory >& - symbolsdirectoriesbyname() const; - ::PROTOBUF_NAMESPACE_ID::Map< std::string, ::Odb::Lib::Protobuf::SymbolsDirectory >* - mutable_symbolsdirectoriesbyname(); + const ::google::protobuf::Map& _internal_symbolsdirectoriesbyname() const; + ::google::protobuf::Map* _internal_mutable_symbolsdirectoriesbyname(); + public: // optional string productName = 7; bool has_productname() const; - private: - bool _internal_has_productname() const; - public: - void clear_productname(); + void clear_productname() ; const std::string& productname() const; - template - void set_productname(ArgT0&& arg0, ArgT... args); + template + void set_productname(Arg_&& arg, Args_... args); std::string* mutable_productname(); PROTOBUF_NODISCARD std::string* release_productname(); - void set_allocated_productname(std::string* productname); + void set_allocated_productname(std::string* value); + private: const std::string& _internal_productname() const; - inline PROTOBUF_ALWAYS_INLINE void _internal_set_productname(const std::string& value); + inline PROTOBUF_ALWAYS_INLINE void _internal_set_productname( + const std::string& value); std::string* _internal_mutable_productname(); - public: + public: // optional string fileName = 8; bool has_filename() const; - private: - bool _internal_has_filename() const; - public: - void clear_filename(); + void clear_filename() ; const std::string& filename() const; - template - void set_filename(ArgT0&& arg0, ArgT... args); + template + void set_filename(Arg_&& arg, Args_... args); std::string* mutable_filename(); PROTOBUF_NODISCARD std::string* release_filename(); - void set_allocated_filename(std::string* filename); + void set_allocated_filename(std::string* value); + private: const std::string& _internal_filename() const; - inline PROTOBUF_ALWAYS_INLINE void _internal_set_filename(const std::string& value); + inline PROTOBUF_ALWAYS_INLINE void _internal_set_filename( + const std::string& value); std::string* _internal_mutable_filename(); - public: + public: // optional .Odb.Lib.Protobuf.MiscInfoFile miscInfoFile = 2; bool has_miscinfofile() const; - private: - bool _internal_has_miscinfofile() const; - public: - void clear_miscinfofile(); + void clear_miscinfofile() ; const ::Odb::Lib::Protobuf::MiscInfoFile& miscinfofile() const; PROTOBUF_NODISCARD ::Odb::Lib::Protobuf::MiscInfoFile* release_miscinfofile(); ::Odb::Lib::Protobuf::MiscInfoFile* mutable_miscinfofile(); - void set_allocated_miscinfofile(::Odb::Lib::Protobuf::MiscInfoFile* miscinfofile); + void set_allocated_miscinfofile(::Odb::Lib::Protobuf::MiscInfoFile* value); + void unsafe_arena_set_allocated_miscinfofile(::Odb::Lib::Protobuf::MiscInfoFile* value); + ::Odb::Lib::Protobuf::MiscInfoFile* unsafe_arena_release_miscinfofile(); + private: const ::Odb::Lib::Protobuf::MiscInfoFile& _internal_miscinfofile() const; ::Odb::Lib::Protobuf::MiscInfoFile* _internal_mutable_miscinfofile(); - public: - void unsafe_arena_set_allocated_miscinfofile( - ::Odb::Lib::Protobuf::MiscInfoFile* miscinfofile); - ::Odb::Lib::Protobuf::MiscInfoFile* unsafe_arena_release_miscinfofile(); + public: // optional .Odb.Lib.Protobuf.MatrixFile matrixFile = 3; bool has_matrixfile() const; - private: - bool _internal_has_matrixfile() const; - public: - void clear_matrixfile(); + void clear_matrixfile() ; const ::Odb::Lib::Protobuf::MatrixFile& matrixfile() const; PROTOBUF_NODISCARD ::Odb::Lib::Protobuf::MatrixFile* release_matrixfile(); ::Odb::Lib::Protobuf::MatrixFile* mutable_matrixfile(); - void set_allocated_matrixfile(::Odb::Lib::Protobuf::MatrixFile* matrixfile); + void set_allocated_matrixfile(::Odb::Lib::Protobuf::MatrixFile* value); + void unsafe_arena_set_allocated_matrixfile(::Odb::Lib::Protobuf::MatrixFile* value); + ::Odb::Lib::Protobuf::MatrixFile* unsafe_arena_release_matrixfile(); + private: const ::Odb::Lib::Protobuf::MatrixFile& _internal_matrixfile() const; ::Odb::Lib::Protobuf::MatrixFile* _internal_mutable_matrixfile(); - public: - void unsafe_arena_set_allocated_matrixfile( - ::Odb::Lib::Protobuf::MatrixFile* matrixfile); - ::Odb::Lib::Protobuf::MatrixFile* unsafe_arena_release_matrixfile(); + public: // optional .Odb.Lib.Protobuf.StandardFontsFile standardFontsFile = 4; bool has_standardfontsfile() const; - private: - bool _internal_has_standardfontsfile() const; - public: - void clear_standardfontsfile(); + void clear_standardfontsfile() ; const ::Odb::Lib::Protobuf::StandardFontsFile& standardfontsfile() const; PROTOBUF_NODISCARD ::Odb::Lib::Protobuf::StandardFontsFile* release_standardfontsfile(); ::Odb::Lib::Protobuf::StandardFontsFile* mutable_standardfontsfile(); - void set_allocated_standardfontsfile(::Odb::Lib::Protobuf::StandardFontsFile* standardfontsfile); + void set_allocated_standardfontsfile(::Odb::Lib::Protobuf::StandardFontsFile* value); + void unsafe_arena_set_allocated_standardfontsfile(::Odb::Lib::Protobuf::StandardFontsFile* value); + ::Odb::Lib::Protobuf::StandardFontsFile* unsafe_arena_release_standardfontsfile(); + private: const ::Odb::Lib::Protobuf::StandardFontsFile& _internal_standardfontsfile() const; ::Odb::Lib::Protobuf::StandardFontsFile* _internal_mutable_standardfontsfile(); - public: - void unsafe_arena_set_allocated_standardfontsfile( - ::Odb::Lib::Protobuf::StandardFontsFile* standardfontsfile); - ::Odb::Lib::Protobuf::StandardFontsFile* unsafe_arena_release_standardfontsfile(); + public: // optional .Odb.Lib.Protobuf.AttrListFile miscAttrListFile = 6; bool has_miscattrlistfile() const; - private: - bool _internal_has_miscattrlistfile() const; - public: - void clear_miscattrlistfile(); + void clear_miscattrlistfile() ; const ::Odb::Lib::Protobuf::AttrListFile& miscattrlistfile() const; PROTOBUF_NODISCARD ::Odb::Lib::Protobuf::AttrListFile* release_miscattrlistfile(); ::Odb::Lib::Protobuf::AttrListFile* mutable_miscattrlistfile(); - void set_allocated_miscattrlistfile(::Odb::Lib::Protobuf::AttrListFile* miscattrlistfile); + void set_allocated_miscattrlistfile(::Odb::Lib::Protobuf::AttrListFile* value); + void unsafe_arena_set_allocated_miscattrlistfile(::Odb::Lib::Protobuf::AttrListFile* value); + ::Odb::Lib::Protobuf::AttrListFile* unsafe_arena_release_miscattrlistfile(); + private: const ::Odb::Lib::Protobuf::AttrListFile& _internal_miscattrlistfile() const; ::Odb::Lib::Protobuf::AttrListFile* _internal_mutable_miscattrlistfile(); - public: - void unsafe_arena_set_allocated_miscattrlistfile( - ::Odb::Lib::Protobuf::AttrListFile* miscattrlistfile); - ::Odb::Lib::Protobuf::AttrListFile* unsafe_arena_release_miscattrlistfile(); + public: // @@protoc_insertion_point(class_scope:Odb.Lib.Protobuf.FileArchive) private: class _Internal; + friend class ::google::protobuf::internal::TcParser; + static const ::google::protobuf::internal::TcParseTable< + 3, 8, 8, + 99, 2> + _table_; - template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; - typedef void InternalArenaConstructable_; - typedef void DestructorSkippable_; + friend class ::google::protobuf::MessageLite; + friend class ::google::protobuf::Arena; + template + friend class ::google::protobuf::Arena::InternalHelper; + using InternalArenaConstructable_ = void; + using DestructorSkippable_ = void; struct Impl_ { - ::PROTOBUF_NAMESPACE_ID::internal::HasBits<1> _has_bits_; - mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; - ::PROTOBUF_NAMESPACE_ID::internal::MapField< - FileArchive_StepsByNameEntry_DoNotUse, - std::string, ::Odb::Lib::Protobuf::StepDirectory, - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::TYPE_STRING, - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::TYPE_MESSAGE> stepsbyname_; - ::PROTOBUF_NAMESPACE_ID::internal::MapField< - FileArchive_SymbolsDirectoriesByNameEntry_DoNotUse, - std::string, ::Odb::Lib::Protobuf::SymbolsDirectory, - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::TYPE_STRING, - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::TYPE_MESSAGE> symbolsdirectoriesbyname_; - ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr productname_; - ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr filename_; + inline explicit constexpr Impl_( + ::google::protobuf::internal::ConstantInitialized) noexcept; + inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* arena); + inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* arena, const Impl_& from, + const FileArchive& from_msg); + ::google::protobuf::internal::HasBits<1> _has_bits_; + ::google::protobuf::internal::CachedSize _cached_size_; + ::google::protobuf::internal::MapField + stepsbyname_; + ::google::protobuf::internal::MapField + symbolsdirectoriesbyname_; + ::google::protobuf::internal::ArenaStringPtr productname_; + ::google::protobuf::internal::ArenaStringPtr filename_; ::Odb::Lib::Protobuf::MiscInfoFile* miscinfofile_; ::Odb::Lib::Protobuf::MatrixFile* matrixfile_; ::Odb::Lib::Protobuf::StandardFontsFile* standardfontsfile_; ::Odb::Lib::Protobuf::AttrListFile* miscattrlistfile_; + PROTOBUF_TSAN_DECLARE_MEMBER }; union { Impl_ _impl_; }; friend struct ::TableStruct_filearchive_2eproto; }; + // =================================================================== + + // =================================================================== + #ifdef __GNUC__ - #pragma GCC diagnostic push - #pragma GCC diagnostic ignored "-Wstrict-aliasing" +#pragma GCC diagnostic push +#pragma GCC diagnostic ignored "-Wstrict-aliasing" #endif // __GNUC__ // ------------------------------------------------------------------- // ------------------------------------------------------------------- +// ------------------------------------------------------------------- + // FileArchive // map stepsByName = 1; inline int FileArchive::_internal_stepsbyname_size() const { - return _impl_.stepsbyname_.size(); + return _internal_stepsbyname().size(); } inline int FileArchive::stepsbyname_size() const { return _internal_stepsbyname_size(); } -inline const ::PROTOBUF_NAMESPACE_ID::Map< std::string, ::Odb::Lib::Protobuf::StepDirectory >& -FileArchive::_internal_stepsbyname() const { +inline const ::google::protobuf::Map& FileArchive::_internal_stepsbyname() const { + ::google::protobuf::internal::TSanRead(&_impl_); return _impl_.stepsbyname_.GetMap(); } -inline const ::PROTOBUF_NAMESPACE_ID::Map< std::string, ::Odb::Lib::Protobuf::StepDirectory >& -FileArchive::stepsbyname() const { +inline const ::google::protobuf::Map& FileArchive::stepsbyname() const ABSL_ATTRIBUTE_LIFETIME_BOUND { // @@protoc_insertion_point(field_map:Odb.Lib.Protobuf.FileArchive.stepsByName) return _internal_stepsbyname(); } -inline ::PROTOBUF_NAMESPACE_ID::Map< std::string, ::Odb::Lib::Protobuf::StepDirectory >* -FileArchive::_internal_mutable_stepsbyname() { +inline ::google::protobuf::Map* FileArchive::_internal_mutable_stepsbyname() { + ::google::protobuf::internal::TSanWrite(&_impl_); return _impl_.stepsbyname_.MutableMap(); } -inline ::PROTOBUF_NAMESPACE_ID::Map< std::string, ::Odb::Lib::Protobuf::StepDirectory >* -FileArchive::mutable_stepsbyname() { +inline ::google::protobuf::Map* FileArchive::mutable_stepsbyname() ABSL_ATTRIBUTE_LIFETIME_BOUND { // @@protoc_insertion_point(field_mutable_map:Odb.Lib.Protobuf.FileArchive.stepsByName) return _internal_mutable_stepsbyname(); } // optional .Odb.Lib.Protobuf.MiscInfoFile miscInfoFile = 2; -inline bool FileArchive::_internal_has_miscinfofile() const { +inline bool FileArchive::has_miscinfofile() const { bool value = (_impl_._has_bits_[0] & 0x00000004u) != 0; PROTOBUF_ASSUME(!value || _impl_.miscinfofile_ != nullptr); return value; } -inline bool FileArchive::has_miscinfofile() const { - return _internal_has_miscinfofile(); -} inline const ::Odb::Lib::Protobuf::MiscInfoFile& FileArchive::_internal_miscinfofile() const { + ::google::protobuf::internal::TSanRead(&_impl_); const ::Odb::Lib::Protobuf::MiscInfoFile* p = _impl_.miscinfofile_; - return p != nullptr ? *p : reinterpret_cast( - ::Odb::Lib::Protobuf::_MiscInfoFile_default_instance_); + return p != nullptr ? *p : reinterpret_cast(::Odb::Lib::Protobuf::_MiscInfoFile_default_instance_); } -inline const ::Odb::Lib::Protobuf::MiscInfoFile& FileArchive::miscinfofile() const { +inline const ::Odb::Lib::Protobuf::MiscInfoFile& FileArchive::miscinfofile() const ABSL_ATTRIBUTE_LIFETIME_BOUND { // @@protoc_insertion_point(field_get:Odb.Lib.Protobuf.FileArchive.miscInfoFile) return _internal_miscinfofile(); } -inline void FileArchive::unsafe_arena_set_allocated_miscinfofile( - ::Odb::Lib::Protobuf::MiscInfoFile* miscinfofile) { - if (GetArenaForAllocation() == nullptr) { - delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(_impl_.miscinfofile_); +inline void FileArchive::unsafe_arena_set_allocated_miscinfofile(::Odb::Lib::Protobuf::MiscInfoFile* value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + if (GetArena() == nullptr) { + delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.miscinfofile_); } - _impl_.miscinfofile_ = miscinfofile; - if (miscinfofile) { + _impl_.miscinfofile_ = reinterpret_cast<::Odb::Lib::Protobuf::MiscInfoFile*>(value); + if (value != nullptr) { _impl_._has_bits_[0] |= 0x00000004u; } else { _impl_._has_bits_[0] &= ~0x00000004u; @@ -509,86 +564,90 @@ inline void FileArchive::unsafe_arena_set_allocated_miscinfofile( // @@protoc_insertion_point(field_unsafe_arena_set_allocated:Odb.Lib.Protobuf.FileArchive.miscInfoFile) } inline ::Odb::Lib::Protobuf::MiscInfoFile* FileArchive::release_miscinfofile() { + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_._has_bits_[0] &= ~0x00000004u; - ::Odb::Lib::Protobuf::MiscInfoFile* temp = _impl_.miscinfofile_; + ::Odb::Lib::Protobuf::MiscInfoFile* released = _impl_.miscinfofile_; _impl_.miscinfofile_ = nullptr; -#ifdef PROTOBUF_FORCE_COPY_IN_RELEASE - auto* old = reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(temp); - temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); - if (GetArenaForAllocation() == nullptr) { delete old; } -#else // PROTOBUF_FORCE_COPY_IN_RELEASE - if (GetArenaForAllocation() != nullptr) { - temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); - } -#endif // !PROTOBUF_FORCE_COPY_IN_RELEASE - return temp; + if (::google::protobuf::internal::DebugHardenForceCopyInRelease()) { + auto* old = reinterpret_cast<::google::protobuf::MessageLite*>(released); + released = ::google::protobuf::internal::DuplicateIfNonNull(released); + if (GetArena() == nullptr) { + delete old; + } + } else { + if (GetArena() != nullptr) { + released = ::google::protobuf::internal::DuplicateIfNonNull(released); + } + } + return released; } inline ::Odb::Lib::Protobuf::MiscInfoFile* FileArchive::unsafe_arena_release_miscinfofile() { + ::google::protobuf::internal::TSanWrite(&_impl_); // @@protoc_insertion_point(field_release:Odb.Lib.Protobuf.FileArchive.miscInfoFile) + _impl_._has_bits_[0] &= ~0x00000004u; ::Odb::Lib::Protobuf::MiscInfoFile* temp = _impl_.miscinfofile_; _impl_.miscinfofile_ = nullptr; return temp; } inline ::Odb::Lib::Protobuf::MiscInfoFile* FileArchive::_internal_mutable_miscinfofile() { - _impl_._has_bits_[0] |= 0x00000004u; + ::google::protobuf::internal::TSanWrite(&_impl_); if (_impl_.miscinfofile_ == nullptr) { - auto* p = CreateMaybeMessage<::Odb::Lib::Protobuf::MiscInfoFile>(GetArenaForAllocation()); - _impl_.miscinfofile_ = p; + auto* p = ::google::protobuf::Message::DefaultConstruct<::Odb::Lib::Protobuf::MiscInfoFile>(GetArena()); + _impl_.miscinfofile_ = reinterpret_cast<::Odb::Lib::Protobuf::MiscInfoFile*>(p); } return _impl_.miscinfofile_; } -inline ::Odb::Lib::Protobuf::MiscInfoFile* FileArchive::mutable_miscinfofile() { +inline ::Odb::Lib::Protobuf::MiscInfoFile* FileArchive::mutable_miscinfofile() ABSL_ATTRIBUTE_LIFETIME_BOUND { + _impl_._has_bits_[0] |= 0x00000004u; ::Odb::Lib::Protobuf::MiscInfoFile* _msg = _internal_mutable_miscinfofile(); // @@protoc_insertion_point(field_mutable:Odb.Lib.Protobuf.FileArchive.miscInfoFile) return _msg; } -inline void FileArchive::set_allocated_miscinfofile(::Odb::Lib::Protobuf::MiscInfoFile* miscinfofile) { - ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); +inline void FileArchive::set_allocated_miscinfofile(::Odb::Lib::Protobuf::MiscInfoFile* value) { + ::google::protobuf::Arena* message_arena = GetArena(); + ::google::protobuf::internal::TSanWrite(&_impl_); if (message_arena == nullptr) { - delete reinterpret_cast< ::PROTOBUF_NAMESPACE_ID::MessageLite*>(_impl_.miscinfofile_); + delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.miscinfofile_); } - if (miscinfofile) { - ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = - ::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena( - reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(miscinfofile)); + + if (value != nullptr) { + ::google::protobuf::Arena* submessage_arena = reinterpret_cast<::google::protobuf::MessageLite*>(value)->GetArena(); if (message_arena != submessage_arena) { - miscinfofile = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( - message_arena, miscinfofile, submessage_arena); + value = ::google::protobuf::internal::GetOwnedMessage(message_arena, value, submessage_arena); } _impl_._has_bits_[0] |= 0x00000004u; } else { _impl_._has_bits_[0] &= ~0x00000004u; } - _impl_.miscinfofile_ = miscinfofile; + + _impl_.miscinfofile_ = reinterpret_cast<::Odb::Lib::Protobuf::MiscInfoFile*>(value); // @@protoc_insertion_point(field_set_allocated:Odb.Lib.Protobuf.FileArchive.miscInfoFile) } // optional .Odb.Lib.Protobuf.MatrixFile matrixFile = 3; -inline bool FileArchive::_internal_has_matrixfile() const { +inline bool FileArchive::has_matrixfile() const { bool value = (_impl_._has_bits_[0] & 0x00000008u) != 0; PROTOBUF_ASSUME(!value || _impl_.matrixfile_ != nullptr); return value; } -inline bool FileArchive::has_matrixfile() const { - return _internal_has_matrixfile(); -} inline const ::Odb::Lib::Protobuf::MatrixFile& FileArchive::_internal_matrixfile() const { + ::google::protobuf::internal::TSanRead(&_impl_); const ::Odb::Lib::Protobuf::MatrixFile* p = _impl_.matrixfile_; - return p != nullptr ? *p : reinterpret_cast( - ::Odb::Lib::Protobuf::_MatrixFile_default_instance_); + return p != nullptr ? *p : reinterpret_cast(::Odb::Lib::Protobuf::_MatrixFile_default_instance_); } -inline const ::Odb::Lib::Protobuf::MatrixFile& FileArchive::matrixfile() const { +inline const ::Odb::Lib::Protobuf::MatrixFile& FileArchive::matrixfile() const ABSL_ATTRIBUTE_LIFETIME_BOUND { // @@protoc_insertion_point(field_get:Odb.Lib.Protobuf.FileArchive.matrixFile) return _internal_matrixfile(); } -inline void FileArchive::unsafe_arena_set_allocated_matrixfile( - ::Odb::Lib::Protobuf::MatrixFile* matrixfile) { - if (GetArenaForAllocation() == nullptr) { - delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(_impl_.matrixfile_); +inline void FileArchive::unsafe_arena_set_allocated_matrixfile(::Odb::Lib::Protobuf::MatrixFile* value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + if (GetArena() == nullptr) { + delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.matrixfile_); } - _impl_.matrixfile_ = matrixfile; - if (matrixfile) { + _impl_.matrixfile_ = reinterpret_cast<::Odb::Lib::Protobuf::MatrixFile*>(value); + if (value != nullptr) { _impl_._has_bits_[0] |= 0x00000008u; } else { _impl_._has_bits_[0] &= ~0x00000008u; @@ -596,86 +655,90 @@ inline void FileArchive::unsafe_arena_set_allocated_matrixfile( // @@protoc_insertion_point(field_unsafe_arena_set_allocated:Odb.Lib.Protobuf.FileArchive.matrixFile) } inline ::Odb::Lib::Protobuf::MatrixFile* FileArchive::release_matrixfile() { + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_._has_bits_[0] &= ~0x00000008u; - ::Odb::Lib::Protobuf::MatrixFile* temp = _impl_.matrixfile_; + ::Odb::Lib::Protobuf::MatrixFile* released = _impl_.matrixfile_; _impl_.matrixfile_ = nullptr; -#ifdef PROTOBUF_FORCE_COPY_IN_RELEASE - auto* old = reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(temp); - temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); - if (GetArenaForAllocation() == nullptr) { delete old; } -#else // PROTOBUF_FORCE_COPY_IN_RELEASE - if (GetArenaForAllocation() != nullptr) { - temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); - } -#endif // !PROTOBUF_FORCE_COPY_IN_RELEASE - return temp; + if (::google::protobuf::internal::DebugHardenForceCopyInRelease()) { + auto* old = reinterpret_cast<::google::protobuf::MessageLite*>(released); + released = ::google::protobuf::internal::DuplicateIfNonNull(released); + if (GetArena() == nullptr) { + delete old; + } + } else { + if (GetArena() != nullptr) { + released = ::google::protobuf::internal::DuplicateIfNonNull(released); + } + } + return released; } inline ::Odb::Lib::Protobuf::MatrixFile* FileArchive::unsafe_arena_release_matrixfile() { + ::google::protobuf::internal::TSanWrite(&_impl_); // @@protoc_insertion_point(field_release:Odb.Lib.Protobuf.FileArchive.matrixFile) + _impl_._has_bits_[0] &= ~0x00000008u; ::Odb::Lib::Protobuf::MatrixFile* temp = _impl_.matrixfile_; _impl_.matrixfile_ = nullptr; return temp; } inline ::Odb::Lib::Protobuf::MatrixFile* FileArchive::_internal_mutable_matrixfile() { - _impl_._has_bits_[0] |= 0x00000008u; + ::google::protobuf::internal::TSanWrite(&_impl_); if (_impl_.matrixfile_ == nullptr) { - auto* p = CreateMaybeMessage<::Odb::Lib::Protobuf::MatrixFile>(GetArenaForAllocation()); - _impl_.matrixfile_ = p; + auto* p = ::google::protobuf::Message::DefaultConstruct<::Odb::Lib::Protobuf::MatrixFile>(GetArena()); + _impl_.matrixfile_ = reinterpret_cast<::Odb::Lib::Protobuf::MatrixFile*>(p); } return _impl_.matrixfile_; } -inline ::Odb::Lib::Protobuf::MatrixFile* FileArchive::mutable_matrixfile() { +inline ::Odb::Lib::Protobuf::MatrixFile* FileArchive::mutable_matrixfile() ABSL_ATTRIBUTE_LIFETIME_BOUND { + _impl_._has_bits_[0] |= 0x00000008u; ::Odb::Lib::Protobuf::MatrixFile* _msg = _internal_mutable_matrixfile(); // @@protoc_insertion_point(field_mutable:Odb.Lib.Protobuf.FileArchive.matrixFile) return _msg; } -inline void FileArchive::set_allocated_matrixfile(::Odb::Lib::Protobuf::MatrixFile* matrixfile) { - ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); +inline void FileArchive::set_allocated_matrixfile(::Odb::Lib::Protobuf::MatrixFile* value) { + ::google::protobuf::Arena* message_arena = GetArena(); + ::google::protobuf::internal::TSanWrite(&_impl_); if (message_arena == nullptr) { - delete reinterpret_cast< ::PROTOBUF_NAMESPACE_ID::MessageLite*>(_impl_.matrixfile_); + delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.matrixfile_); } - if (matrixfile) { - ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = - ::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena( - reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(matrixfile)); + + if (value != nullptr) { + ::google::protobuf::Arena* submessage_arena = reinterpret_cast<::google::protobuf::MessageLite*>(value)->GetArena(); if (message_arena != submessage_arena) { - matrixfile = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( - message_arena, matrixfile, submessage_arena); + value = ::google::protobuf::internal::GetOwnedMessage(message_arena, value, submessage_arena); } _impl_._has_bits_[0] |= 0x00000008u; } else { _impl_._has_bits_[0] &= ~0x00000008u; } - _impl_.matrixfile_ = matrixfile; + + _impl_.matrixfile_ = reinterpret_cast<::Odb::Lib::Protobuf::MatrixFile*>(value); // @@protoc_insertion_point(field_set_allocated:Odb.Lib.Protobuf.FileArchive.matrixFile) } // optional .Odb.Lib.Protobuf.StandardFontsFile standardFontsFile = 4; -inline bool FileArchive::_internal_has_standardfontsfile() const { +inline bool FileArchive::has_standardfontsfile() const { bool value = (_impl_._has_bits_[0] & 0x00000010u) != 0; PROTOBUF_ASSUME(!value || _impl_.standardfontsfile_ != nullptr); return value; } -inline bool FileArchive::has_standardfontsfile() const { - return _internal_has_standardfontsfile(); -} inline const ::Odb::Lib::Protobuf::StandardFontsFile& FileArchive::_internal_standardfontsfile() const { + ::google::protobuf::internal::TSanRead(&_impl_); const ::Odb::Lib::Protobuf::StandardFontsFile* p = _impl_.standardfontsfile_; - return p != nullptr ? *p : reinterpret_cast( - ::Odb::Lib::Protobuf::_StandardFontsFile_default_instance_); + return p != nullptr ? *p : reinterpret_cast(::Odb::Lib::Protobuf::_StandardFontsFile_default_instance_); } -inline const ::Odb::Lib::Protobuf::StandardFontsFile& FileArchive::standardfontsfile() const { +inline const ::Odb::Lib::Protobuf::StandardFontsFile& FileArchive::standardfontsfile() const ABSL_ATTRIBUTE_LIFETIME_BOUND { // @@protoc_insertion_point(field_get:Odb.Lib.Protobuf.FileArchive.standardFontsFile) return _internal_standardfontsfile(); } -inline void FileArchive::unsafe_arena_set_allocated_standardfontsfile( - ::Odb::Lib::Protobuf::StandardFontsFile* standardfontsfile) { - if (GetArenaForAllocation() == nullptr) { - delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(_impl_.standardfontsfile_); +inline void FileArchive::unsafe_arena_set_allocated_standardfontsfile(::Odb::Lib::Protobuf::StandardFontsFile* value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + if (GetArena() == nullptr) { + delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.standardfontsfile_); } - _impl_.standardfontsfile_ = standardfontsfile; - if (standardfontsfile) { + _impl_.standardfontsfile_ = reinterpret_cast<::Odb::Lib::Protobuf::StandardFontsFile*>(value); + if (value != nullptr) { _impl_._has_bits_[0] |= 0x00000010u; } else { _impl_._has_bits_[0] &= ~0x00000010u; @@ -683,112 +746,114 @@ inline void FileArchive::unsafe_arena_set_allocated_standardfontsfile( // @@protoc_insertion_point(field_unsafe_arena_set_allocated:Odb.Lib.Protobuf.FileArchive.standardFontsFile) } inline ::Odb::Lib::Protobuf::StandardFontsFile* FileArchive::release_standardfontsfile() { + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_._has_bits_[0] &= ~0x00000010u; - ::Odb::Lib::Protobuf::StandardFontsFile* temp = _impl_.standardfontsfile_; + ::Odb::Lib::Protobuf::StandardFontsFile* released = _impl_.standardfontsfile_; _impl_.standardfontsfile_ = nullptr; -#ifdef PROTOBUF_FORCE_COPY_IN_RELEASE - auto* old = reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(temp); - temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); - if (GetArenaForAllocation() == nullptr) { delete old; } -#else // PROTOBUF_FORCE_COPY_IN_RELEASE - if (GetArenaForAllocation() != nullptr) { - temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); - } -#endif // !PROTOBUF_FORCE_COPY_IN_RELEASE - return temp; + if (::google::protobuf::internal::DebugHardenForceCopyInRelease()) { + auto* old = reinterpret_cast<::google::protobuf::MessageLite*>(released); + released = ::google::protobuf::internal::DuplicateIfNonNull(released); + if (GetArena() == nullptr) { + delete old; + } + } else { + if (GetArena() != nullptr) { + released = ::google::protobuf::internal::DuplicateIfNonNull(released); + } + } + return released; } inline ::Odb::Lib::Protobuf::StandardFontsFile* FileArchive::unsafe_arena_release_standardfontsfile() { + ::google::protobuf::internal::TSanWrite(&_impl_); // @@protoc_insertion_point(field_release:Odb.Lib.Protobuf.FileArchive.standardFontsFile) + _impl_._has_bits_[0] &= ~0x00000010u; ::Odb::Lib::Protobuf::StandardFontsFile* temp = _impl_.standardfontsfile_; _impl_.standardfontsfile_ = nullptr; return temp; } inline ::Odb::Lib::Protobuf::StandardFontsFile* FileArchive::_internal_mutable_standardfontsfile() { - _impl_._has_bits_[0] |= 0x00000010u; + ::google::protobuf::internal::TSanWrite(&_impl_); if (_impl_.standardfontsfile_ == nullptr) { - auto* p = CreateMaybeMessage<::Odb::Lib::Protobuf::StandardFontsFile>(GetArenaForAllocation()); - _impl_.standardfontsfile_ = p; + auto* p = ::google::protobuf::Message::DefaultConstruct<::Odb::Lib::Protobuf::StandardFontsFile>(GetArena()); + _impl_.standardfontsfile_ = reinterpret_cast<::Odb::Lib::Protobuf::StandardFontsFile*>(p); } return _impl_.standardfontsfile_; } -inline ::Odb::Lib::Protobuf::StandardFontsFile* FileArchive::mutable_standardfontsfile() { +inline ::Odb::Lib::Protobuf::StandardFontsFile* FileArchive::mutable_standardfontsfile() ABSL_ATTRIBUTE_LIFETIME_BOUND { + _impl_._has_bits_[0] |= 0x00000010u; ::Odb::Lib::Protobuf::StandardFontsFile* _msg = _internal_mutable_standardfontsfile(); // @@protoc_insertion_point(field_mutable:Odb.Lib.Protobuf.FileArchive.standardFontsFile) return _msg; } -inline void FileArchive::set_allocated_standardfontsfile(::Odb::Lib::Protobuf::StandardFontsFile* standardfontsfile) { - ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); +inline void FileArchive::set_allocated_standardfontsfile(::Odb::Lib::Protobuf::StandardFontsFile* value) { + ::google::protobuf::Arena* message_arena = GetArena(); + ::google::protobuf::internal::TSanWrite(&_impl_); if (message_arena == nullptr) { - delete reinterpret_cast< ::PROTOBUF_NAMESPACE_ID::MessageLite*>(_impl_.standardfontsfile_); + delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.standardfontsfile_); } - if (standardfontsfile) { - ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = - ::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena( - reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(standardfontsfile)); + + if (value != nullptr) { + ::google::protobuf::Arena* submessage_arena = reinterpret_cast<::google::protobuf::MessageLite*>(value)->GetArena(); if (message_arena != submessage_arena) { - standardfontsfile = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( - message_arena, standardfontsfile, submessage_arena); + value = ::google::protobuf::internal::GetOwnedMessage(message_arena, value, submessage_arena); } _impl_._has_bits_[0] |= 0x00000010u; } else { _impl_._has_bits_[0] &= ~0x00000010u; } - _impl_.standardfontsfile_ = standardfontsfile; + + _impl_.standardfontsfile_ = reinterpret_cast<::Odb::Lib::Protobuf::StandardFontsFile*>(value); // @@protoc_insertion_point(field_set_allocated:Odb.Lib.Protobuf.FileArchive.standardFontsFile) } // map symbolsDirectoriesByName = 5; inline int FileArchive::_internal_symbolsdirectoriesbyname_size() const { - return _impl_.symbolsdirectoriesbyname_.size(); + return _internal_symbolsdirectoriesbyname().size(); } inline int FileArchive::symbolsdirectoriesbyname_size() const { return _internal_symbolsdirectoriesbyname_size(); } -inline const ::PROTOBUF_NAMESPACE_ID::Map< std::string, ::Odb::Lib::Protobuf::SymbolsDirectory >& -FileArchive::_internal_symbolsdirectoriesbyname() const { +inline const ::google::protobuf::Map& FileArchive::_internal_symbolsdirectoriesbyname() const { + ::google::protobuf::internal::TSanRead(&_impl_); return _impl_.symbolsdirectoriesbyname_.GetMap(); } -inline const ::PROTOBUF_NAMESPACE_ID::Map< std::string, ::Odb::Lib::Protobuf::SymbolsDirectory >& -FileArchive::symbolsdirectoriesbyname() const { +inline const ::google::protobuf::Map& FileArchive::symbolsdirectoriesbyname() const ABSL_ATTRIBUTE_LIFETIME_BOUND { // @@protoc_insertion_point(field_map:Odb.Lib.Protobuf.FileArchive.symbolsDirectoriesByName) return _internal_symbolsdirectoriesbyname(); } -inline ::PROTOBUF_NAMESPACE_ID::Map< std::string, ::Odb::Lib::Protobuf::SymbolsDirectory >* -FileArchive::_internal_mutable_symbolsdirectoriesbyname() { +inline ::google::protobuf::Map* FileArchive::_internal_mutable_symbolsdirectoriesbyname() { + ::google::protobuf::internal::TSanWrite(&_impl_); return _impl_.symbolsdirectoriesbyname_.MutableMap(); } -inline ::PROTOBUF_NAMESPACE_ID::Map< std::string, ::Odb::Lib::Protobuf::SymbolsDirectory >* -FileArchive::mutable_symbolsdirectoriesbyname() { +inline ::google::protobuf::Map* FileArchive::mutable_symbolsdirectoriesbyname() ABSL_ATTRIBUTE_LIFETIME_BOUND { // @@protoc_insertion_point(field_mutable_map:Odb.Lib.Protobuf.FileArchive.symbolsDirectoriesByName) return _internal_mutable_symbolsdirectoriesbyname(); } // optional .Odb.Lib.Protobuf.AttrListFile miscAttrListFile = 6; -inline bool FileArchive::_internal_has_miscattrlistfile() const { +inline bool FileArchive::has_miscattrlistfile() const { bool value = (_impl_._has_bits_[0] & 0x00000020u) != 0; PROTOBUF_ASSUME(!value || _impl_.miscattrlistfile_ != nullptr); return value; } -inline bool FileArchive::has_miscattrlistfile() const { - return _internal_has_miscattrlistfile(); -} inline const ::Odb::Lib::Protobuf::AttrListFile& FileArchive::_internal_miscattrlistfile() const { + ::google::protobuf::internal::TSanRead(&_impl_); const ::Odb::Lib::Protobuf::AttrListFile* p = _impl_.miscattrlistfile_; - return p != nullptr ? *p : reinterpret_cast( - ::Odb::Lib::Protobuf::_AttrListFile_default_instance_); + return p != nullptr ? *p : reinterpret_cast(::Odb::Lib::Protobuf::_AttrListFile_default_instance_); } -inline const ::Odb::Lib::Protobuf::AttrListFile& FileArchive::miscattrlistfile() const { +inline const ::Odb::Lib::Protobuf::AttrListFile& FileArchive::miscattrlistfile() const ABSL_ATTRIBUTE_LIFETIME_BOUND { // @@protoc_insertion_point(field_get:Odb.Lib.Protobuf.FileArchive.miscAttrListFile) return _internal_miscattrlistfile(); } -inline void FileArchive::unsafe_arena_set_allocated_miscattrlistfile( - ::Odb::Lib::Protobuf::AttrListFile* miscattrlistfile) { - if (GetArenaForAllocation() == nullptr) { - delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(_impl_.miscattrlistfile_); +inline void FileArchive::unsafe_arena_set_allocated_miscattrlistfile(::Odb::Lib::Protobuf::AttrListFile* value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + if (GetArena() == nullptr) { + delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.miscattrlistfile_); } - _impl_.miscattrlistfile_ = miscattrlistfile; - if (miscattrlistfile) { + _impl_.miscattrlistfile_ = reinterpret_cast<::Odb::Lib::Protobuf::AttrListFile*>(value); + if (value != nullptr) { _impl_._has_bits_[0] |= 0x00000020u; } else { _impl_._has_bits_[0] &= ~0x00000020u; @@ -796,212 +861,218 @@ inline void FileArchive::unsafe_arena_set_allocated_miscattrlistfile( // @@protoc_insertion_point(field_unsafe_arena_set_allocated:Odb.Lib.Protobuf.FileArchive.miscAttrListFile) } inline ::Odb::Lib::Protobuf::AttrListFile* FileArchive::release_miscattrlistfile() { + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_._has_bits_[0] &= ~0x00000020u; - ::Odb::Lib::Protobuf::AttrListFile* temp = _impl_.miscattrlistfile_; + ::Odb::Lib::Protobuf::AttrListFile* released = _impl_.miscattrlistfile_; _impl_.miscattrlistfile_ = nullptr; -#ifdef PROTOBUF_FORCE_COPY_IN_RELEASE - auto* old = reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(temp); - temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); - if (GetArenaForAllocation() == nullptr) { delete old; } -#else // PROTOBUF_FORCE_COPY_IN_RELEASE - if (GetArenaForAllocation() != nullptr) { - temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); - } -#endif // !PROTOBUF_FORCE_COPY_IN_RELEASE - return temp; + if (::google::protobuf::internal::DebugHardenForceCopyInRelease()) { + auto* old = reinterpret_cast<::google::protobuf::MessageLite*>(released); + released = ::google::protobuf::internal::DuplicateIfNonNull(released); + if (GetArena() == nullptr) { + delete old; + } + } else { + if (GetArena() != nullptr) { + released = ::google::protobuf::internal::DuplicateIfNonNull(released); + } + } + return released; } inline ::Odb::Lib::Protobuf::AttrListFile* FileArchive::unsafe_arena_release_miscattrlistfile() { + ::google::protobuf::internal::TSanWrite(&_impl_); // @@protoc_insertion_point(field_release:Odb.Lib.Protobuf.FileArchive.miscAttrListFile) + _impl_._has_bits_[0] &= ~0x00000020u; ::Odb::Lib::Protobuf::AttrListFile* temp = _impl_.miscattrlistfile_; _impl_.miscattrlistfile_ = nullptr; return temp; } inline ::Odb::Lib::Protobuf::AttrListFile* FileArchive::_internal_mutable_miscattrlistfile() { - _impl_._has_bits_[0] |= 0x00000020u; + ::google::protobuf::internal::TSanWrite(&_impl_); if (_impl_.miscattrlistfile_ == nullptr) { - auto* p = CreateMaybeMessage<::Odb::Lib::Protobuf::AttrListFile>(GetArenaForAllocation()); - _impl_.miscattrlistfile_ = p; + auto* p = ::google::protobuf::Message::DefaultConstruct<::Odb::Lib::Protobuf::AttrListFile>(GetArena()); + _impl_.miscattrlistfile_ = reinterpret_cast<::Odb::Lib::Protobuf::AttrListFile*>(p); } return _impl_.miscattrlistfile_; } -inline ::Odb::Lib::Protobuf::AttrListFile* FileArchive::mutable_miscattrlistfile() { +inline ::Odb::Lib::Protobuf::AttrListFile* FileArchive::mutable_miscattrlistfile() ABSL_ATTRIBUTE_LIFETIME_BOUND { + _impl_._has_bits_[0] |= 0x00000020u; ::Odb::Lib::Protobuf::AttrListFile* _msg = _internal_mutable_miscattrlistfile(); // @@protoc_insertion_point(field_mutable:Odb.Lib.Protobuf.FileArchive.miscAttrListFile) return _msg; } -inline void FileArchive::set_allocated_miscattrlistfile(::Odb::Lib::Protobuf::AttrListFile* miscattrlistfile) { - ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); +inline void FileArchive::set_allocated_miscattrlistfile(::Odb::Lib::Protobuf::AttrListFile* value) { + ::google::protobuf::Arena* message_arena = GetArena(); + ::google::protobuf::internal::TSanWrite(&_impl_); if (message_arena == nullptr) { - delete reinterpret_cast< ::PROTOBUF_NAMESPACE_ID::MessageLite*>(_impl_.miscattrlistfile_); + delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.miscattrlistfile_); } - if (miscattrlistfile) { - ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = - ::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena( - reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(miscattrlistfile)); + + if (value != nullptr) { + ::google::protobuf::Arena* submessage_arena = reinterpret_cast<::google::protobuf::MessageLite*>(value)->GetArena(); if (message_arena != submessage_arena) { - miscattrlistfile = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( - message_arena, miscattrlistfile, submessage_arena); + value = ::google::protobuf::internal::GetOwnedMessage(message_arena, value, submessage_arena); } _impl_._has_bits_[0] |= 0x00000020u; } else { _impl_._has_bits_[0] &= ~0x00000020u; } - _impl_.miscattrlistfile_ = miscattrlistfile; + + _impl_.miscattrlistfile_ = reinterpret_cast<::Odb::Lib::Protobuf::AttrListFile*>(value); // @@protoc_insertion_point(field_set_allocated:Odb.Lib.Protobuf.FileArchive.miscAttrListFile) } // optional string productName = 7; -inline bool FileArchive::_internal_has_productname() const { +inline bool FileArchive::has_productname() const { bool value = (_impl_._has_bits_[0] & 0x00000001u) != 0; return value; } -inline bool FileArchive::has_productname() const { - return _internal_has_productname(); -} inline void FileArchive::clear_productname() { + ::google::protobuf::internal::TSanWrite(&_impl_); _impl_.productname_.ClearToEmpty(); _impl_._has_bits_[0] &= ~0x00000001u; } -inline const std::string& FileArchive::productname() const { +inline const std::string& FileArchive::productname() const + ABSL_ATTRIBUTE_LIFETIME_BOUND { // @@protoc_insertion_point(field_get:Odb.Lib.Protobuf.FileArchive.productName) return _internal_productname(); } -template -inline PROTOBUF_ALWAYS_INLINE -void FileArchive::set_productname(ArgT0&& arg0, ArgT... args) { - _impl_._has_bits_[0] |= 0x00000001u; - _impl_.productname_.Set(static_cast(arg0), args..., GetArenaForAllocation()); +template +inline PROTOBUF_ALWAYS_INLINE void FileArchive::set_productname(Arg_&& arg, + Args_... args) { + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_._has_bits_[0] |= 0x00000001u; + _impl_.productname_.Set(static_cast(arg), args..., GetArena()); // @@protoc_insertion_point(field_set:Odb.Lib.Protobuf.FileArchive.productName) } -inline std::string* FileArchive::mutable_productname() { +inline std::string* FileArchive::mutable_productname() ABSL_ATTRIBUTE_LIFETIME_BOUND { std::string* _s = _internal_mutable_productname(); // @@protoc_insertion_point(field_mutable:Odb.Lib.Protobuf.FileArchive.productName) return _s; } inline const std::string& FileArchive::_internal_productname() const { + ::google::protobuf::internal::TSanRead(&_impl_); return _impl_.productname_.Get(); } inline void FileArchive::_internal_set_productname(const std::string& value) { + ::google::protobuf::internal::TSanWrite(&_impl_); _impl_._has_bits_[0] |= 0x00000001u; - _impl_.productname_.Set(value, GetArenaForAllocation()); + _impl_.productname_.Set(value, GetArena()); } inline std::string* FileArchive::_internal_mutable_productname() { + ::google::protobuf::internal::TSanWrite(&_impl_); _impl_._has_bits_[0] |= 0x00000001u; - return _impl_.productname_.Mutable(GetArenaForAllocation()); + return _impl_.productname_.Mutable( GetArena()); } inline std::string* FileArchive::release_productname() { + ::google::protobuf::internal::TSanWrite(&_impl_); // @@protoc_insertion_point(field_release:Odb.Lib.Protobuf.FileArchive.productName) - if (!_internal_has_productname()) { + if ((_impl_._has_bits_[0] & 0x00000001u) == 0) { return nullptr; } _impl_._has_bits_[0] &= ~0x00000001u; - auto* p = _impl_.productname_.Release(); -#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (_impl_.productname_.IsDefault()) { - _impl_.productname_.Set("", GetArenaForAllocation()); + auto* released = _impl_.productname_.Release(); + if (::google::protobuf::internal::DebugHardenForceCopyDefaultString()) { + _impl_.productname_.Set("", GetArena()); } -#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING - return p; + return released; } -inline void FileArchive::set_allocated_productname(std::string* productname) { - if (productname != nullptr) { +inline void FileArchive::set_allocated_productname(std::string* value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + if (value != nullptr) { _impl_._has_bits_[0] |= 0x00000001u; } else { _impl_._has_bits_[0] &= ~0x00000001u; } - _impl_.productname_.SetAllocated(productname, GetArenaForAllocation()); -#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (_impl_.productname_.IsDefault()) { - _impl_.productname_.Set("", GetArenaForAllocation()); + _impl_.productname_.SetAllocated(value, GetArena()); + if (::google::protobuf::internal::DebugHardenForceCopyDefaultString() && _impl_.productname_.IsDefault()) { + _impl_.productname_.Set("", GetArena()); } -#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING // @@protoc_insertion_point(field_set_allocated:Odb.Lib.Protobuf.FileArchive.productName) } // optional string fileName = 8; -inline bool FileArchive::_internal_has_filename() const { +inline bool FileArchive::has_filename() const { bool value = (_impl_._has_bits_[0] & 0x00000002u) != 0; return value; } -inline bool FileArchive::has_filename() const { - return _internal_has_filename(); -} inline void FileArchive::clear_filename() { + ::google::protobuf::internal::TSanWrite(&_impl_); _impl_.filename_.ClearToEmpty(); _impl_._has_bits_[0] &= ~0x00000002u; } -inline const std::string& FileArchive::filename() const { +inline const std::string& FileArchive::filename() const + ABSL_ATTRIBUTE_LIFETIME_BOUND { // @@protoc_insertion_point(field_get:Odb.Lib.Protobuf.FileArchive.fileName) return _internal_filename(); } -template -inline PROTOBUF_ALWAYS_INLINE -void FileArchive::set_filename(ArgT0&& arg0, ArgT... args) { - _impl_._has_bits_[0] |= 0x00000002u; - _impl_.filename_.Set(static_cast(arg0), args..., GetArenaForAllocation()); +template +inline PROTOBUF_ALWAYS_INLINE void FileArchive::set_filename(Arg_&& arg, + Args_... args) { + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_._has_bits_[0] |= 0x00000002u; + _impl_.filename_.Set(static_cast(arg), args..., GetArena()); // @@protoc_insertion_point(field_set:Odb.Lib.Protobuf.FileArchive.fileName) } -inline std::string* FileArchive::mutable_filename() { +inline std::string* FileArchive::mutable_filename() ABSL_ATTRIBUTE_LIFETIME_BOUND { std::string* _s = _internal_mutable_filename(); // @@protoc_insertion_point(field_mutable:Odb.Lib.Protobuf.FileArchive.fileName) return _s; } inline const std::string& FileArchive::_internal_filename() const { + ::google::protobuf::internal::TSanRead(&_impl_); return _impl_.filename_.Get(); } inline void FileArchive::_internal_set_filename(const std::string& value) { + ::google::protobuf::internal::TSanWrite(&_impl_); _impl_._has_bits_[0] |= 0x00000002u; - _impl_.filename_.Set(value, GetArenaForAllocation()); + _impl_.filename_.Set(value, GetArena()); } inline std::string* FileArchive::_internal_mutable_filename() { + ::google::protobuf::internal::TSanWrite(&_impl_); _impl_._has_bits_[0] |= 0x00000002u; - return _impl_.filename_.Mutable(GetArenaForAllocation()); + return _impl_.filename_.Mutable( GetArena()); } inline std::string* FileArchive::release_filename() { + ::google::protobuf::internal::TSanWrite(&_impl_); // @@protoc_insertion_point(field_release:Odb.Lib.Protobuf.FileArchive.fileName) - if (!_internal_has_filename()) { + if ((_impl_._has_bits_[0] & 0x00000002u) == 0) { return nullptr; } _impl_._has_bits_[0] &= ~0x00000002u; - auto* p = _impl_.filename_.Release(); -#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (_impl_.filename_.IsDefault()) { - _impl_.filename_.Set("", GetArenaForAllocation()); + auto* released = _impl_.filename_.Release(); + if (::google::protobuf::internal::DebugHardenForceCopyDefaultString()) { + _impl_.filename_.Set("", GetArena()); } -#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING - return p; + return released; } -inline void FileArchive::set_allocated_filename(std::string* filename) { - if (filename != nullptr) { +inline void FileArchive::set_allocated_filename(std::string* value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + if (value != nullptr) { _impl_._has_bits_[0] |= 0x00000002u; } else { _impl_._has_bits_[0] &= ~0x00000002u; } - _impl_.filename_.SetAllocated(filename, GetArenaForAllocation()); -#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (_impl_.filename_.IsDefault()) { - _impl_.filename_.Set("", GetArenaForAllocation()); + _impl_.filename_.SetAllocated(value, GetArena()); + if (::google::protobuf::internal::DebugHardenForceCopyDefaultString() && _impl_.filename_.IsDefault()) { + _impl_.filename_.Set("", GetArena()); } -#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING // @@protoc_insertion_point(field_set_allocated:Odb.Lib.Protobuf.FileArchive.fileName) } #ifdef __GNUC__ - #pragma GCC diagnostic pop +#pragma GCC diagnostic pop #endif // __GNUC__ -// ------------------------------------------------------------------- - -// ------------------------------------------------------------------- - // @@protoc_insertion_point(namespace_scope) - } // namespace Protobuf } // namespace Lib } // namespace Odb + // @@protoc_insertion_point(global_scope) -#include -#endif // GOOGLE_PROTOBUF_INCLUDED_GOOGLE_PROTOBUF_INCLUDED_filearchive_2eproto +#include "google/protobuf/port_undef.inc" + +#endif // filearchive_2eproto_2epb_2eh diff --git a/OdbDesignLib/ProtoBuf/layerdirectory.pb.cc b/OdbDesignLib/ProtoBuf/layerdirectory.pb.cc index bee0495b..02e2b232 100644 --- a/OdbDesignLib/ProtoBuf/layerdirectory.pb.cc +++ b/OdbDesignLib/ProtoBuf/layerdirectory.pb.cc @@ -1,260 +1,348 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE // source: layerdirectory.proto +// Protobuf C++ Version: 5.29.2 #include "layerdirectory.pb.h" #include - -#include -#include -#include -#include -#include -#include -#include +#include +#include "google/protobuf/io/coded_stream.h" +#include "google/protobuf/generated_message_tctable_impl.h" +#include "google/protobuf/extension_set.h" +#include "google/protobuf/generated_message_util.h" +#include "google/protobuf/wire_format_lite.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) -#include +// Must be included last. +#include "google/protobuf/port_def.inc" PROTOBUF_PRAGMA_INIT_SEG - -namespace _pb = ::PROTOBUF_NAMESPACE_ID; -namespace _pbi = _pb::internal; - +namespace _pb = ::google::protobuf; +namespace _pbi = ::google::protobuf::internal; +namespace _fl = ::google::protobuf::internal::field_layout; namespace Odb { namespace Lib { namespace Protobuf { -PROTOBUF_CONSTEXPR LayerDirectory::LayerDirectory( - ::_pbi::ConstantInitialized): _impl_{ - /*decltype(_impl_._has_bits_)*/{} - , /*decltype(_impl_._cached_size_)*/{} - , /*decltype(_impl_.name_)*/{&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}} - , /*decltype(_impl_.path_)*/{&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}} - , /*decltype(_impl_.components_)*/nullptr - , /*decltype(_impl_.attrlistfile_)*/nullptr - , /*decltype(_impl_.featurefile_)*/nullptr} {} + +inline constexpr LayerDirectory::Impl_::Impl_( + ::_pbi::ConstantInitialized) noexcept + : _cached_size_{0}, + name_( + &::google::protobuf::internal::fixed_address_empty_string, + ::_pbi::ConstantInitialized()), + path_( + &::google::protobuf::internal::fixed_address_empty_string, + ::_pbi::ConstantInitialized()), + components_{nullptr}, + attrlistfile_{nullptr}, + featurefile_{nullptr} {} + +template +PROTOBUF_CONSTEXPR LayerDirectory::LayerDirectory(::_pbi::ConstantInitialized) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : ::google::protobuf::Message(_class_data_.base()), +#else // PROTOBUF_CUSTOM_VTABLE + : ::google::protobuf::Message(), +#endif // PROTOBUF_CUSTOM_VTABLE + _impl_(::_pbi::ConstantInitialized()) { +} struct LayerDirectoryDefaultTypeInternal { - PROTOBUF_CONSTEXPR LayerDirectoryDefaultTypeInternal() - : _instance(::_pbi::ConstantInitialized{}) {} + PROTOBUF_CONSTEXPR LayerDirectoryDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} ~LayerDirectoryDefaultTypeInternal() {} union { LayerDirectory _instance; }; }; -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 LayerDirectoryDefaultTypeInternal _LayerDirectory_default_instance_; + +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT ODBDESIGN_EXPORT + PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 LayerDirectoryDefaultTypeInternal _LayerDirectory_default_instance_; } // namespace Protobuf } // namespace Lib } // namespace Odb -static ::_pb::Metadata file_level_metadata_layerdirectory_2eproto[1]; -static constexpr ::_pb::EnumDescriptor const** file_level_enum_descriptors_layerdirectory_2eproto = nullptr; -static constexpr ::_pb::ServiceDescriptor const** file_level_service_descriptors_layerdirectory_2eproto = nullptr; - -const uint32_t TableStruct_layerdirectory_2eproto::offsets[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = { - PROTOBUF_FIELD_OFFSET(::Odb::Lib::Protobuf::LayerDirectory, _impl_._has_bits_), - PROTOBUF_FIELD_OFFSET(::Odb::Lib::Protobuf::LayerDirectory, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - ~0u, // no _inlined_string_donated_ - PROTOBUF_FIELD_OFFSET(::Odb::Lib::Protobuf::LayerDirectory, _impl_.name_), - PROTOBUF_FIELD_OFFSET(::Odb::Lib::Protobuf::LayerDirectory, _impl_.path_), - PROTOBUF_FIELD_OFFSET(::Odb::Lib::Protobuf::LayerDirectory, _impl_.components_), - PROTOBUF_FIELD_OFFSET(::Odb::Lib::Protobuf::LayerDirectory, _impl_.attrlistfile_), - PROTOBUF_FIELD_OFFSET(::Odb::Lib::Protobuf::LayerDirectory, _impl_.featurefile_), - 0, - 1, - 2, - 3, - 4, -}; -static const ::_pbi::MigrationSchema schemas[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = { - { 0, 11, -1, sizeof(::Odb::Lib::Protobuf::LayerDirectory)}, +static constexpr const ::_pb::EnumDescriptor** + file_level_enum_descriptors_layerdirectory_2eproto = nullptr; +static constexpr const ::_pb::ServiceDescriptor** + file_level_service_descriptors_layerdirectory_2eproto = nullptr; +const ::uint32_t + TableStruct_layerdirectory_2eproto::offsets[] ABSL_ATTRIBUTE_SECTION_VARIABLE( + protodesc_cold) = { + PROTOBUF_FIELD_OFFSET(::Odb::Lib::Protobuf::LayerDirectory, _impl_._has_bits_), + PROTOBUF_FIELD_OFFSET(::Odb::Lib::Protobuf::LayerDirectory, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + ~0u, // no _split_ + ~0u, // no sizeof(Split) + PROTOBUF_FIELD_OFFSET(::Odb::Lib::Protobuf::LayerDirectory, _impl_.name_), + PROTOBUF_FIELD_OFFSET(::Odb::Lib::Protobuf::LayerDirectory, _impl_.path_), + PROTOBUF_FIELD_OFFSET(::Odb::Lib::Protobuf::LayerDirectory, _impl_.components_), + PROTOBUF_FIELD_OFFSET(::Odb::Lib::Protobuf::LayerDirectory, _impl_.attrlistfile_), + PROTOBUF_FIELD_OFFSET(::Odb::Lib::Protobuf::LayerDirectory, _impl_.featurefile_), + 0, + 1, + 2, + 3, + 4, }; +static const ::_pbi::MigrationSchema + schemas[] ABSL_ATTRIBUTE_SECTION_VARIABLE(protodesc_cold) = { + {0, 13, -1, sizeof(::Odb::Lib::Protobuf::LayerDirectory)}, +}; static const ::_pb::Message* const file_default_instances[] = { - &::Odb::Lib::Protobuf::_LayerDirectory_default_instance_._instance, + &::Odb::Lib::Protobuf::_LayerDirectory_default_instance_._instance, }; - -const char descriptor_table_protodef_layerdirectory_2eproto[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = - "\n\024layerdirectory.proto\022\020Odb.Lib.Protobuf" - "\032\024componentsfile.proto\032\022attrlistfile.pro" - "to\032\022featuresfile.proto\"\250\002\n\016LayerDirector" - "y\022\021\n\004name\030\001 \001(\tH\000\210\001\001\022\021\n\004path\030\002 \001(\tH\001\210\001\001\022" - "9\n\ncomponents\030\003 \001(\0132 .Odb.Lib.Protobuf.C" - "omponentsFileH\002\210\001\001\0229\n\014attrlistFile\030\004 \001(\013" - "2\036.Odb.Lib.Protobuf.AttrListFileH\003\210\001\001\0228\n" - "\013featureFile\030\005 \001(\0132\036.Odb.Lib.Protobuf.Fe" - "aturesFileH\004\210\001\001B\007\n\005_nameB\007\n\005_pathB\r\n\013_co" - "mponentsB\017\n\r_attrlistFileB\016\n\014_featureFil" - "eb\006proto3" - ; -static const ::_pbi::DescriptorTable* const descriptor_table_layerdirectory_2eproto_deps[3] = { - &::descriptor_table_attrlistfile_2eproto, - &::descriptor_table_componentsfile_2eproto, - &::descriptor_table_featuresfile_2eproto, +const char descriptor_table_protodef_layerdirectory_2eproto[] ABSL_ATTRIBUTE_SECTION_VARIABLE( + protodesc_cold) = { + "\n\024layerdirectory.proto\022\020Odb.Lib.Protobuf" + "\032\024componentsfile.proto\032\022attrlistfile.pro" + "to\032\022featuresfile.proto\"\250\002\n\016LayerDirector" + "y\022\021\n\004name\030\001 \001(\tH\000\210\001\001\022\021\n\004path\030\002 \001(\tH\001\210\001\001\022" + "9\n\ncomponents\030\003 \001(\0132 .Odb.Lib.Protobuf.C" + "omponentsFileH\002\210\001\001\0229\n\014attrlistFile\030\004 \001(\013" + "2\036.Odb.Lib.Protobuf.AttrListFileH\003\210\001\001\0228\n" + "\013featureFile\030\005 \001(\0132\036.Odb.Lib.Protobuf.Fe" + "aturesFileH\004\210\001\001B\007\n\005_nameB\007\n\005_pathB\r\n\013_co" + "mponentsB\017\n\r_attrlistFileB\016\n\014_featureFil" + "eb\006proto3" }; -static ::_pbi::once_flag descriptor_table_layerdirectory_2eproto_once; -const ::_pbi::DescriptorTable descriptor_table_layerdirectory_2eproto = { - false, false, 409, descriptor_table_protodef_layerdirectory_2eproto, +static const ::_pbi::DescriptorTable* const descriptor_table_layerdirectory_2eproto_deps[3] = + { + &::descriptor_table_attrlistfile_2eproto, + &::descriptor_table_componentsfile_2eproto, + &::descriptor_table_featuresfile_2eproto, +}; +static ::absl::once_flag descriptor_table_layerdirectory_2eproto_once; +PROTOBUF_CONSTINIT const ::_pbi::DescriptorTable descriptor_table_layerdirectory_2eproto = { + false, + false, + 409, + descriptor_table_protodef_layerdirectory_2eproto, "layerdirectory.proto", - &descriptor_table_layerdirectory_2eproto_once, descriptor_table_layerdirectory_2eproto_deps, 3, 1, - schemas, file_default_instances, TableStruct_layerdirectory_2eproto::offsets, - file_level_metadata_layerdirectory_2eproto, file_level_enum_descriptors_layerdirectory_2eproto, + &descriptor_table_layerdirectory_2eproto_once, + descriptor_table_layerdirectory_2eproto_deps, + 3, + 1, + schemas, + file_default_instances, + TableStruct_layerdirectory_2eproto::offsets, + file_level_enum_descriptors_layerdirectory_2eproto, file_level_service_descriptors_layerdirectory_2eproto, }; -PROTOBUF_ATTRIBUTE_WEAK const ::_pbi::DescriptorTable* descriptor_table_layerdirectory_2eproto_getter() { - return &descriptor_table_layerdirectory_2eproto; -} - -// Force running AddDescriptors() at dynamic initialization time. -PROTOBUF_ATTRIBUTE_INIT_PRIORITY2 static ::_pbi::AddDescriptorsRunner dynamic_init_dummy_layerdirectory_2eproto(&descriptor_table_layerdirectory_2eproto); namespace Odb { namespace Lib { namespace Protobuf { - // =================================================================== class LayerDirectory::_Internal { public: - using HasBits = decltype(std::declval()._impl_._has_bits_); - static void set_has_name(HasBits* has_bits) { - (*has_bits)[0] |= 1u; - } - static void set_has_path(HasBits* has_bits) { - (*has_bits)[0] |= 2u; - } - static const ::Odb::Lib::Protobuf::ComponentsFile& components(const LayerDirectory* msg); - static void set_has_components(HasBits* has_bits) { - (*has_bits)[0] |= 4u; - } - static const ::Odb::Lib::Protobuf::AttrListFile& attrlistfile(const LayerDirectory* msg); - static void set_has_attrlistfile(HasBits* has_bits) { - (*has_bits)[0] |= 8u; - } - static const ::Odb::Lib::Protobuf::FeaturesFile& featurefile(const LayerDirectory* msg); - static void set_has_featurefile(HasBits* has_bits) { - (*has_bits)[0] |= 16u; - } + using HasBits = + decltype(std::declval()._impl_._has_bits_); + static constexpr ::int32_t kHasBitsOffset = + 8 * PROTOBUF_FIELD_OFFSET(LayerDirectory, _impl_._has_bits_); }; -const ::Odb::Lib::Protobuf::ComponentsFile& -LayerDirectory::_Internal::components(const LayerDirectory* msg) { - return *msg->_impl_.components_; -} -const ::Odb::Lib::Protobuf::AttrListFile& -LayerDirectory::_Internal::attrlistfile(const LayerDirectory* msg) { - return *msg->_impl_.attrlistfile_; -} -const ::Odb::Lib::Protobuf::FeaturesFile& -LayerDirectory::_Internal::featurefile(const LayerDirectory* msg) { - return *msg->_impl_.featurefile_; -} void LayerDirectory::clear_components() { + ::google::protobuf::internal::TSanWrite(&_impl_); if (_impl_.components_ != nullptr) _impl_.components_->Clear(); _impl_._has_bits_[0] &= ~0x00000004u; } void LayerDirectory::clear_attrlistfile() { + ::google::protobuf::internal::TSanWrite(&_impl_); if (_impl_.attrlistfile_ != nullptr) _impl_.attrlistfile_->Clear(); _impl_._has_bits_[0] &= ~0x00000008u; } void LayerDirectory::clear_featurefile() { + ::google::protobuf::internal::TSanWrite(&_impl_); if (_impl_.featurefile_ != nullptr) _impl_.featurefile_->Clear(); _impl_._has_bits_[0] &= ~0x00000010u; } -LayerDirectory::LayerDirectory(::PROTOBUF_NAMESPACE_ID::Arena* arena, - bool is_message_owned) - : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned) { - SharedCtor(arena, is_message_owned); +LayerDirectory::LayerDirectory(::google::protobuf::Arena* arena) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : ::google::protobuf::Message(arena, _class_data_.base()) { +#else // PROTOBUF_CUSTOM_VTABLE + : ::google::protobuf::Message(arena) { +#endif // PROTOBUF_CUSTOM_VTABLE + SharedCtor(arena); // @@protoc_insertion_point(arena_constructor:Odb.Lib.Protobuf.LayerDirectory) } -LayerDirectory::LayerDirectory(const LayerDirectory& from) - : ::PROTOBUF_NAMESPACE_ID::Message() { - LayerDirectory* const _this = this; (void)_this; - new (&_impl_) Impl_{ - decltype(_impl_._has_bits_){from._impl_._has_bits_} - , /*decltype(_impl_._cached_size_)*/{} - , decltype(_impl_.name_){} - , decltype(_impl_.path_){} - , decltype(_impl_.components_){nullptr} - , decltype(_impl_.attrlistfile_){nullptr} - , decltype(_impl_.featurefile_){nullptr}}; +inline PROTOBUF_NDEBUG_INLINE LayerDirectory::Impl_::Impl_( + ::google::protobuf::internal::InternalVisibility visibility, ::google::protobuf::Arena* arena, + const Impl_& from, const ::Odb::Lib::Protobuf::LayerDirectory& from_msg) + : _has_bits_{from._has_bits_}, + _cached_size_{0}, + name_(arena, from.name_), + path_(arena, from.path_) {} + +LayerDirectory::LayerDirectory( + ::google::protobuf::Arena* arena, + const LayerDirectory& from) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : ::google::protobuf::Message(arena, _class_data_.base()) { +#else // PROTOBUF_CUSTOM_VTABLE + : ::google::protobuf::Message(arena) { +#endif // PROTOBUF_CUSTOM_VTABLE + LayerDirectory* const _this = this; + (void)_this; + _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( + from._internal_metadata_); + new (&_impl_) Impl_(internal_visibility(), arena, from._impl_, from); + ::uint32_t cached_has_bits = _impl_._has_bits_[0]; + _impl_.components_ = (cached_has_bits & 0x00000004u) ? ::google::protobuf::Message::CopyConstruct<::Odb::Lib::Protobuf::ComponentsFile>( + arena, *from._impl_.components_) + : nullptr; + _impl_.attrlistfile_ = (cached_has_bits & 0x00000008u) ? ::google::protobuf::Message::CopyConstruct<::Odb::Lib::Protobuf::AttrListFile>( + arena, *from._impl_.attrlistfile_) + : nullptr; + _impl_.featurefile_ = (cached_has_bits & 0x00000010u) ? ::google::protobuf::Message::CopyConstruct<::Odb::Lib::Protobuf::FeaturesFile>( + arena, *from._impl_.featurefile_) + : nullptr; - _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); - _impl_.name_.InitDefault(); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - _impl_.name_.Set("", GetArenaForAllocation()); - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (from._internal_has_name()) { - _this->_impl_.name_.Set(from._internal_name(), - _this->GetArenaForAllocation()); - } - _impl_.path_.InitDefault(); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - _impl_.path_.Set("", GetArenaForAllocation()); - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (from._internal_has_path()) { - _this->_impl_.path_.Set(from._internal_path(), - _this->GetArenaForAllocation()); - } - if (from._internal_has_components()) { - _this->_impl_.components_ = new ::Odb::Lib::Protobuf::ComponentsFile(*from._impl_.components_); - } - if (from._internal_has_attrlistfile()) { - _this->_impl_.attrlistfile_ = new ::Odb::Lib::Protobuf::AttrListFile(*from._impl_.attrlistfile_); - } - if (from._internal_has_featurefile()) { - _this->_impl_.featurefile_ = new ::Odb::Lib::Protobuf::FeaturesFile(*from._impl_.featurefile_); - } // @@protoc_insertion_point(copy_constructor:Odb.Lib.Protobuf.LayerDirectory) } - -inline void LayerDirectory::SharedCtor( - ::_pb::Arena* arena, bool is_message_owned) { - (void)arena; - (void)is_message_owned; - new (&_impl_) Impl_{ - decltype(_impl_._has_bits_){} - , /*decltype(_impl_._cached_size_)*/{} - , decltype(_impl_.name_){} - , decltype(_impl_.path_){} - , decltype(_impl_.components_){nullptr} - , decltype(_impl_.attrlistfile_){nullptr} - , decltype(_impl_.featurefile_){nullptr} - }; - _impl_.name_.InitDefault(); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - _impl_.name_.Set("", GetArenaForAllocation()); - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING - _impl_.path_.InitDefault(); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - _impl_.path_.Set("", GetArenaForAllocation()); - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING +inline PROTOBUF_NDEBUG_INLINE LayerDirectory::Impl_::Impl_( + ::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* arena) + : _cached_size_{0}, + name_(arena), + path_(arena) {} + +inline void LayerDirectory::SharedCtor(::_pb::Arena* arena) { + new (&_impl_) Impl_(internal_visibility(), arena); + ::memset(reinterpret_cast(&_impl_) + + offsetof(Impl_, components_), + 0, + offsetof(Impl_, featurefile_) - + offsetof(Impl_, components_) + + sizeof(Impl_::featurefile_)); } - LayerDirectory::~LayerDirectory() { // @@protoc_insertion_point(destructor:Odb.Lib.Protobuf.LayerDirectory) - if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) { - (void)arena; - return; - } - SharedDtor(); + SharedDtor(*this); } - -inline void LayerDirectory::SharedDtor() { - GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); - _impl_.name_.Destroy(); - _impl_.path_.Destroy(); - if (this != internal_default_instance()) delete _impl_.components_; - if (this != internal_default_instance()) delete _impl_.attrlistfile_; - if (this != internal_default_instance()) delete _impl_.featurefile_; +inline void LayerDirectory::SharedDtor(MessageLite& self) { + LayerDirectory& this_ = static_cast(self); + this_._internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); + ABSL_DCHECK(this_.GetArena() == nullptr); + this_._impl_.name_.Destroy(); + this_._impl_.path_.Destroy(); + delete this_._impl_.components_; + delete this_._impl_.attrlistfile_; + delete this_._impl_.featurefile_; + this_._impl_.~Impl_(); } -void LayerDirectory::SetCachedSize(int size) const { - _impl_._cached_size_.Set(size); +inline void* LayerDirectory::PlacementNew_(const void*, void* mem, + ::google::protobuf::Arena* arena) { + return ::new (mem) LayerDirectory(arena); } +constexpr auto LayerDirectory::InternalNewImpl_() { + return ::google::protobuf::internal::MessageCreator::CopyInit(sizeof(LayerDirectory), + alignof(LayerDirectory)); +} +PROTOBUF_CONSTINIT +PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 +const ::google::protobuf::internal::ClassDataFull LayerDirectory::_class_data_ = { + ::google::protobuf::internal::ClassData{ + &_LayerDirectory_default_instance_._instance, + &_table_.header, + nullptr, // OnDemandRegisterArenaDtor + nullptr, // IsInitialized + &LayerDirectory::MergeImpl, + ::google::protobuf::Message::GetNewImpl(), +#if defined(PROTOBUF_CUSTOM_VTABLE) + &LayerDirectory::SharedDtor, + ::google::protobuf::Message::GetClearImpl(), &LayerDirectory::ByteSizeLong, + &LayerDirectory::_InternalSerialize, +#endif // PROTOBUF_CUSTOM_VTABLE + PROTOBUF_FIELD_OFFSET(LayerDirectory, _impl_._cached_size_), + false, + }, + &LayerDirectory::kDescriptorMethods, + &descriptor_table_layerdirectory_2eproto, + nullptr, // tracker +}; +const ::google::protobuf::internal::ClassData* LayerDirectory::GetClassData() const { + ::google::protobuf::internal::PrefetchToLocalCache(&_class_data_); + ::google::protobuf::internal::PrefetchToLocalCache(_class_data_.tc_table); + return _class_data_.base(); +} +PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 +const ::_pbi::TcParseTable<3, 5, 3, 48, 2> LayerDirectory::_table_ = { + { + PROTOBUF_FIELD_OFFSET(LayerDirectory, _impl_._has_bits_), + 0, // no _extensions_ + 5, 56, // max_field_number, fast_idx_mask + offsetof(decltype(_table_), field_lookup_table), + 4294967264, // skipmap + offsetof(decltype(_table_), field_entries), + 5, // num_field_entries + 3, // num_aux_entries + offsetof(decltype(_table_), aux_entries), + _class_data_.base(), + nullptr, // post_loop_handler + ::_pbi::TcParser::GenericFallback, // fallback + #ifdef PROTOBUF_PREFETCH_PARSE_TABLE + ::_pbi::TcParser::GetTable<::Odb::Lib::Protobuf::LayerDirectory>(), // to_prefetch + #endif // PROTOBUF_PREFETCH_PARSE_TABLE + }, {{ + {::_pbi::TcParser::MiniParse, {}}, + // optional string name = 1; + {::_pbi::TcParser::FastUS1, + {10, 0, 0, PROTOBUF_FIELD_OFFSET(LayerDirectory, _impl_.name_)}}, + // optional string path = 2; + {::_pbi::TcParser::FastUS1, + {18, 1, 0, PROTOBUF_FIELD_OFFSET(LayerDirectory, _impl_.path_)}}, + // optional .Odb.Lib.Protobuf.ComponentsFile components = 3; + {::_pbi::TcParser::FastMtS1, + {26, 2, 0, PROTOBUF_FIELD_OFFSET(LayerDirectory, _impl_.components_)}}, + // optional .Odb.Lib.Protobuf.AttrListFile attrlistFile = 4; + {::_pbi::TcParser::FastMtS1, + {34, 3, 1, PROTOBUF_FIELD_OFFSET(LayerDirectory, _impl_.attrlistfile_)}}, + // optional .Odb.Lib.Protobuf.FeaturesFile featureFile = 5; + {::_pbi::TcParser::FastMtS1, + {42, 4, 2, PROTOBUF_FIELD_OFFSET(LayerDirectory, _impl_.featurefile_)}}, + {::_pbi::TcParser::MiniParse, {}}, + {::_pbi::TcParser::MiniParse, {}}, + }}, {{ + 65535, 65535 + }}, {{ + // optional string name = 1; + {PROTOBUF_FIELD_OFFSET(LayerDirectory, _impl_.name_), _Internal::kHasBitsOffset + 0, 0, + (0 | ::_fl::kFcOptional | ::_fl::kUtf8String | ::_fl::kRepAString)}, + // optional string path = 2; + {PROTOBUF_FIELD_OFFSET(LayerDirectory, _impl_.path_), _Internal::kHasBitsOffset + 1, 0, + (0 | ::_fl::kFcOptional | ::_fl::kUtf8String | ::_fl::kRepAString)}, + // optional .Odb.Lib.Protobuf.ComponentsFile components = 3; + {PROTOBUF_FIELD_OFFSET(LayerDirectory, _impl_.components_), _Internal::kHasBitsOffset + 2, 0, + (0 | ::_fl::kFcOptional | ::_fl::kMessage | ::_fl::kTvTable)}, + // optional .Odb.Lib.Protobuf.AttrListFile attrlistFile = 4; + {PROTOBUF_FIELD_OFFSET(LayerDirectory, _impl_.attrlistfile_), _Internal::kHasBitsOffset + 3, 1, + (0 | ::_fl::kFcOptional | ::_fl::kMessage | ::_fl::kTvTable)}, + // optional .Odb.Lib.Protobuf.FeaturesFile featureFile = 5; + {PROTOBUF_FIELD_OFFSET(LayerDirectory, _impl_.featurefile_), _Internal::kHasBitsOffset + 4, 2, + (0 | ::_fl::kFcOptional | ::_fl::kMessage | ::_fl::kTvTable)}, + }}, {{ + {::_pbi::TcParser::GetTable<::Odb::Lib::Protobuf::ComponentsFile>()}, + {::_pbi::TcParser::GetTable<::Odb::Lib::Protobuf::AttrListFile>()}, + {::_pbi::TcParser::GetTable<::Odb::Lib::Protobuf::FeaturesFile>()}, + }}, {{ + "\37\4\4\0\0\0\0\0" + "Odb.Lib.Protobuf.LayerDirectory" + "name" + "path" + }}, +}; -void LayerDirectory::Clear() { +PROTOBUF_NOINLINE void LayerDirectory::Clear() { // @@protoc_insertion_point(message_clear_start:Odb.Lib.Protobuf.LayerDirectory) - uint32_t cached_has_bits = 0; + ::google::protobuf::internal::TSanWrite(&_impl_); + ::uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; @@ -267,214 +355,138 @@ void LayerDirectory::Clear() { _impl_.path_.ClearNonDefaultToEmpty(); } if (cached_has_bits & 0x00000004u) { - GOOGLE_DCHECK(_impl_.components_ != nullptr); + ABSL_DCHECK(_impl_.components_ != nullptr); _impl_.components_->Clear(); } if (cached_has_bits & 0x00000008u) { - GOOGLE_DCHECK(_impl_.attrlistfile_ != nullptr); + ABSL_DCHECK(_impl_.attrlistfile_ != nullptr); _impl_.attrlistfile_->Clear(); } if (cached_has_bits & 0x00000010u) { - GOOGLE_DCHECK(_impl_.featurefile_ != nullptr); + ABSL_DCHECK(_impl_.featurefile_ != nullptr); _impl_.featurefile_->Clear(); } } _impl_._has_bits_.Clear(); - _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); -} - -const char* LayerDirectory::_InternalParse(const char* ptr, ::_pbi::ParseContext* ctx) { -#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure - _Internal::HasBits has_bits{}; - while (!ctx->Done(&ptr)) { - uint32_t tag; - ptr = ::_pbi::ReadTag(ptr, &tag); - switch (tag >> 3) { - // optional string name = 1; - case 1: - if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 10)) { - auto str = _internal_mutable_name(); - ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); - CHK_(ptr); - CHK_(::_pbi::VerifyUTF8(str, "Odb.Lib.Protobuf.LayerDirectory.name")); - } else - goto handle_unusual; - continue; - // optional string path = 2; - case 2: - if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 18)) { - auto str = _internal_mutable_path(); - ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); - CHK_(ptr); - CHK_(::_pbi::VerifyUTF8(str, "Odb.Lib.Protobuf.LayerDirectory.path")); - } else - goto handle_unusual; - continue; - // optional .Odb.Lib.Protobuf.ComponentsFile components = 3; - case 3: - if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 26)) { - ptr = ctx->ParseMessage(_internal_mutable_components(), ptr); - CHK_(ptr); - } else - goto handle_unusual; - continue; - // optional .Odb.Lib.Protobuf.AttrListFile attrlistFile = 4; - case 4: - if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 34)) { - ptr = ctx->ParseMessage(_internal_mutable_attrlistfile(), ptr); - CHK_(ptr); - } else - goto handle_unusual; - continue; - // optional .Odb.Lib.Protobuf.FeaturesFile featureFile = 5; - case 5: - if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 42)) { - ptr = ctx->ParseMessage(_internal_mutable_featurefile(), ptr); - CHK_(ptr); - } else - goto handle_unusual; - continue; - default: - goto handle_unusual; - } // switch - handle_unusual: - if ((tag == 0) || ((tag & 7) == 4)) { - CHK_(ptr); - ctx->SetLastTag(tag); - goto message_done; - } - ptr = UnknownFieldParse( - tag, - _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(), - ptr, ctx); - CHK_(ptr != nullptr); - } // while -message_done: - _impl_._has_bits_.Or(has_bits); - return ptr; -failure: - ptr = nullptr; - goto message_done; -#undef CHK_ -} - -uint8_t* LayerDirectory::_InternalSerialize( - uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { - // @@protoc_insertion_point(serialize_to_array_start:Odb.Lib.Protobuf.LayerDirectory) - uint32_t cached_has_bits = 0; - (void) cached_has_bits; - - // optional string name = 1; - if (_internal_has_name()) { - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( - this->_internal_name().data(), static_cast(this->_internal_name().length()), - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, - "Odb.Lib.Protobuf.LayerDirectory.name"); - target = stream->WriteStringMaybeAliased( - 1, this->_internal_name(), target); - } - - // optional string path = 2; - if (_internal_has_path()) { - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( - this->_internal_path().data(), static_cast(this->_internal_path().length()), - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, - "Odb.Lib.Protobuf.LayerDirectory.path"); - target = stream->WriteStringMaybeAliased( - 2, this->_internal_path(), target); - } - - // optional .Odb.Lib.Protobuf.ComponentsFile components = 3; - if (_internal_has_components()) { - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: - InternalWriteMessage(3, _Internal::components(this), - _Internal::components(this).GetCachedSize(), target, stream); - } - - // optional .Odb.Lib.Protobuf.AttrListFile attrlistFile = 4; - if (_internal_has_attrlistfile()) { - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: - InternalWriteMessage(4, _Internal::attrlistfile(this), - _Internal::attrlistfile(this).GetCachedSize(), target, stream); - } - - // optional .Odb.Lib.Protobuf.FeaturesFile featureFile = 5; - if (_internal_has_featurefile()) { - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: - InternalWriteMessage(5, _Internal::featurefile(this), - _Internal::featurefile(this).GetCachedSize(), target, stream); - } - - if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = ::_pbi::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:Odb.Lib.Protobuf.LayerDirectory) - return target; -} - -size_t LayerDirectory::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:Odb.Lib.Protobuf.LayerDirectory) - size_t total_size = 0; - - uint32_t cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - cached_has_bits = _impl_._has_bits_[0]; - if (cached_has_bits & 0x0000001fu) { - // optional string name = 1; - if (cached_has_bits & 0x00000001u) { - total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( - this->_internal_name()); - } - - // optional string path = 2; - if (cached_has_bits & 0x00000002u) { - total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( - this->_internal_path()); - } - - // optional .Odb.Lib.Protobuf.ComponentsFile components = 3; - if (cached_has_bits & 0x00000004u) { - total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( - *_impl_.components_); - } - - // optional .Odb.Lib.Protobuf.AttrListFile attrlistFile = 4; - if (cached_has_bits & 0x00000008u) { - total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( - *_impl_.attrlistfile_); - } - - // optional .Odb.Lib.Protobuf.FeaturesFile featureFile = 5; - if (cached_has_bits & 0x00000010u) { - total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( - *_impl_.featurefile_); - } - - } - return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); + _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); } -const ::PROTOBUF_NAMESPACE_ID::Message::ClassData LayerDirectory::_class_data_ = { - ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSourceCheck, - LayerDirectory::MergeImpl -}; -const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*LayerDirectory::GetClassData() const { return &_class_data_; } - - -void LayerDirectory::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg) { +#if defined(PROTOBUF_CUSTOM_VTABLE) + ::uint8_t* LayerDirectory::_InternalSerialize( + const MessageLite& base, ::uint8_t* target, + ::google::protobuf::io::EpsCopyOutputStream* stream) { + const LayerDirectory& this_ = static_cast(base); +#else // PROTOBUF_CUSTOM_VTABLE + ::uint8_t* LayerDirectory::_InternalSerialize( + ::uint8_t* target, + ::google::protobuf::io::EpsCopyOutputStream* stream) const { + const LayerDirectory& this_ = *this; +#endif // PROTOBUF_CUSTOM_VTABLE + // @@protoc_insertion_point(serialize_to_array_start:Odb.Lib.Protobuf.LayerDirectory) + ::uint32_t cached_has_bits = 0; + (void)cached_has_bits; + + cached_has_bits = this_._impl_._has_bits_[0]; + // optional string name = 1; + if (cached_has_bits & 0x00000001u) { + const std::string& _s = this_._internal_name(); + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + _s.data(), static_cast(_s.length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "Odb.Lib.Protobuf.LayerDirectory.name"); + target = stream->WriteStringMaybeAliased(1, _s, target); + } + + // optional string path = 2; + if (cached_has_bits & 0x00000002u) { + const std::string& _s = this_._internal_path(); + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + _s.data(), static_cast(_s.length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "Odb.Lib.Protobuf.LayerDirectory.path"); + target = stream->WriteStringMaybeAliased(2, _s, target); + } + + // optional .Odb.Lib.Protobuf.ComponentsFile components = 3; + if (cached_has_bits & 0x00000004u) { + target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( + 3, *this_._impl_.components_, this_._impl_.components_->GetCachedSize(), target, + stream); + } + + // optional .Odb.Lib.Protobuf.AttrListFile attrlistFile = 4; + if (cached_has_bits & 0x00000008u) { + target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( + 4, *this_._impl_.attrlistfile_, this_._impl_.attrlistfile_->GetCachedSize(), target, + stream); + } + + // optional .Odb.Lib.Protobuf.FeaturesFile featureFile = 5; + if (cached_has_bits & 0x00000010u) { + target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( + 5, *this_._impl_.featurefile_, this_._impl_.featurefile_->GetCachedSize(), target, + stream); + } + + if (PROTOBUF_PREDICT_FALSE(this_._internal_metadata_.have_unknown_fields())) { + target = + ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( + this_._internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); + } + // @@protoc_insertion_point(serialize_to_array_end:Odb.Lib.Protobuf.LayerDirectory) + return target; + } + +#if defined(PROTOBUF_CUSTOM_VTABLE) + ::size_t LayerDirectory::ByteSizeLong(const MessageLite& base) { + const LayerDirectory& this_ = static_cast(base); +#else // PROTOBUF_CUSTOM_VTABLE + ::size_t LayerDirectory::ByteSizeLong() const { + const LayerDirectory& this_ = *this; +#endif // PROTOBUF_CUSTOM_VTABLE + // @@protoc_insertion_point(message_byte_size_start:Odb.Lib.Protobuf.LayerDirectory) + ::size_t total_size = 0; + + ::uint32_t cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void)cached_has_bits; + + ::_pbi::Prefetch5LinesFrom7Lines(&this_); + cached_has_bits = this_._impl_._has_bits_[0]; + if (cached_has_bits & 0x0000001fu) { + // optional string name = 1; + if (cached_has_bits & 0x00000001u) { + total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize( + this_._internal_name()); + } + // optional string path = 2; + if (cached_has_bits & 0x00000002u) { + total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize( + this_._internal_path()); + } + // optional .Odb.Lib.Protobuf.ComponentsFile components = 3; + if (cached_has_bits & 0x00000004u) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::MessageSize(*this_._impl_.components_); + } + // optional .Odb.Lib.Protobuf.AttrListFile attrlistFile = 4; + if (cached_has_bits & 0x00000008u) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::MessageSize(*this_._impl_.attrlistfile_); + } + // optional .Odb.Lib.Protobuf.FeaturesFile featureFile = 5; + if (cached_has_bits & 0x00000010u) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::MessageSize(*this_._impl_.featurefile_); + } + } + return this_.MaybeComputeUnknownFieldsSize(total_size, + &this_._impl_._cached_size_); + } + +void LayerDirectory::MergeImpl(::google::protobuf::MessageLite& to_msg, const ::google::protobuf::MessageLite& from_msg) { auto* const _this = static_cast(&to_msg); auto& from = static_cast(from_msg); + ::google::protobuf::Arena* arena = _this->GetArena(); // @@protoc_insertion_point(class_specific_merge_from_start:Odb.Lib.Protobuf.LayerDirectory) - GOOGLE_DCHECK_NE(&from, _this); - uint32_t cached_has_bits = 0; + ABSL_DCHECK_NE(&from, _this); + ::uint32_t cached_has_bits = 0; (void) cached_has_bits; cached_has_bits = from._impl_._has_bits_[0]; @@ -486,19 +498,35 @@ void LayerDirectory::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const : _this->_internal_set_path(from._internal_path()); } if (cached_has_bits & 0x00000004u) { - _this->_internal_mutable_components()->::Odb::Lib::Protobuf::ComponentsFile::MergeFrom( - from._internal_components()); + ABSL_DCHECK(from._impl_.components_ != nullptr); + if (_this->_impl_.components_ == nullptr) { + _this->_impl_.components_ = + ::google::protobuf::Message::CopyConstruct<::Odb::Lib::Protobuf::ComponentsFile>(arena, *from._impl_.components_); + } else { + _this->_impl_.components_->MergeFrom(*from._impl_.components_); + } } if (cached_has_bits & 0x00000008u) { - _this->_internal_mutable_attrlistfile()->::Odb::Lib::Protobuf::AttrListFile::MergeFrom( - from._internal_attrlistfile()); + ABSL_DCHECK(from._impl_.attrlistfile_ != nullptr); + if (_this->_impl_.attrlistfile_ == nullptr) { + _this->_impl_.attrlistfile_ = + ::google::protobuf::Message::CopyConstruct<::Odb::Lib::Protobuf::AttrListFile>(arena, *from._impl_.attrlistfile_); + } else { + _this->_impl_.attrlistfile_->MergeFrom(*from._impl_.attrlistfile_); + } } if (cached_has_bits & 0x00000010u) { - _this->_internal_mutable_featurefile()->::Odb::Lib::Protobuf::FeaturesFile::MergeFrom( - from._internal_featurefile()); + ABSL_DCHECK(from._impl_.featurefile_ != nullptr); + if (_this->_impl_.featurefile_ == nullptr) { + _this->_impl_.featurefile_ = + ::google::protobuf::Message::CopyConstruct<::Odb::Lib::Protobuf::FeaturesFile>(arena, *from._impl_.featurefile_); + } else { + _this->_impl_.featurefile_->MergeFrom(*from._impl_.featurefile_); + } } } - _this->_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); + _this->_impl_._has_bits_[0] |= cached_has_bits; + _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); } void LayerDirectory::CopyFrom(const LayerDirectory& from) { @@ -508,25 +536,16 @@ void LayerDirectory::CopyFrom(const LayerDirectory& from) { MergeFrom(from); } -bool LayerDirectory::IsInitialized() const { - return true; -} -void LayerDirectory::InternalSwap(LayerDirectory* other) { +void LayerDirectory::InternalSwap(LayerDirectory* PROTOBUF_RESTRICT other) { using std::swap; - auto* lhs_arena = GetArenaForAllocation(); - auto* rhs_arena = other->GetArenaForAllocation(); + auto* arena = GetArena(); + ABSL_DCHECK_EQ(arena, other->GetArena()); _internal_metadata_.InternalSwap(&other->_internal_metadata_); swap(_impl_._has_bits_[0], other->_impl_._has_bits_[0]); - ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( - &_impl_.name_, lhs_arena, - &other->_impl_.name_, rhs_arena - ); - ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( - &_impl_.path_, lhs_arena, - &other->_impl_.path_, rhs_arena - ); - ::PROTOBUF_NAMESPACE_ID::internal::memswap< + ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.name_, &other->_impl_.name_, arena); + ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.path_, &other->_impl_.path_, arena); + ::google::protobuf::internal::memswap< PROTOBUF_FIELD_OFFSET(LayerDirectory, _impl_.featurefile_) + sizeof(LayerDirectory::_impl_.featurefile_) - PROTOBUF_FIELD_OFFSET(LayerDirectory, _impl_.components_)>( @@ -534,22 +553,20 @@ void LayerDirectory::InternalSwap(LayerDirectory* other) { reinterpret_cast(&other->_impl_.components_)); } -::PROTOBUF_NAMESPACE_ID::Metadata LayerDirectory::GetMetadata() const { - return ::_pbi::AssignDescriptors( - &descriptor_table_layerdirectory_2eproto_getter, &descriptor_table_layerdirectory_2eproto_once, - file_level_metadata_layerdirectory_2eproto[0]); +::google::protobuf::Metadata LayerDirectory::GetMetadata() const { + return ::google::protobuf::Message::GetMetadataImpl(GetClassData()->full()); } - // @@protoc_insertion_point(namespace_scope) } // namespace Protobuf } // namespace Lib } // namespace Odb -PROTOBUF_NAMESPACE_OPEN -template<> PROTOBUF_NOINLINE ::Odb::Lib::Protobuf::LayerDirectory* -Arena::CreateMaybeMessage< ::Odb::Lib::Protobuf::LayerDirectory >(Arena* arena) { - return Arena::CreateMessageInternal< ::Odb::Lib::Protobuf::LayerDirectory >(arena); -} -PROTOBUF_NAMESPACE_CLOSE - +namespace google { +namespace protobuf { +} // namespace protobuf +} // namespace google // @@protoc_insertion_point(global_scope) -#include +PROTOBUF_ATTRIBUTE_INIT_PRIORITY2 static ::std::false_type + _static_init2_ PROTOBUF_UNUSED = + (::_pbi::AddDescriptors(&descriptor_table_layerdirectory_2eproto), + ::std::false_type{}); +#include "google/protobuf/port_undef.inc" diff --git a/OdbDesignLib/ProtoBuf/layerdirectory.pb.h b/OdbDesignLib/ProtoBuf/layerdirectory.pb.h index e42bf802..f121cc9a 100644 --- a/OdbDesignLib/ProtoBuf/layerdirectory.pb.h +++ b/OdbDesignLib/ProtoBuf/layerdirectory.pb.h @@ -1,52 +1,59 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE // source: layerdirectory.proto +// Protobuf C++ Version: 5.29.2 -#ifndef GOOGLE_PROTOBUF_INCLUDED_layerdirectory_2eproto -#define GOOGLE_PROTOBUF_INCLUDED_layerdirectory_2eproto +#ifndef layerdirectory_2eproto_2epb_2eh +#define layerdirectory_2eproto_2epb_2eh #include #include - -#include -#if PROTOBUF_VERSION < 3021000 -#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 3021012 < 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. +#include +#include + +#include "google/protobuf/runtime_version.h" +#if PROTOBUF_VERSION != 5029002 +#error "Protobuf C++ gencode is built with an incompatible version of" +#error "Protobuf C++ headers/runtime. See" +#error "https://protobuf.dev/support/cross-version-runtime-guarantee/#cpp" #endif - -#include -#include -#include -#include -#include -#include -#include -#include -#include // IWYU pragma: export -#include // IWYU pragma: export -#include +#include "google/protobuf/io/coded_stream.h" +#include "google/protobuf/arena.h" +#include "google/protobuf/arenastring.h" +#include "google/protobuf/generated_message_tctable_decl.h" +#include "google/protobuf/generated_message_util.h" +#include "google/protobuf/metadata_lite.h" +#include "google/protobuf/generated_message_reflection.h" +#include "google/protobuf/message.h" +#include "google/protobuf/message_lite.h" +#include "google/protobuf/repeated_field.h" // IWYU pragma: export +#include "google/protobuf/extension_set.h" // IWYU pragma: export +#include "google/protobuf/unknown_field_set.h" #include "componentsfile.pb.h" #include "attrlistfile.pb.h" #include "featuresfile.pb.h" // @@protoc_insertion_point(includes) -#include + +// Must be included last. +#include "google/protobuf/port_def.inc" + #define PROTOBUF_INTERNAL_EXPORT_layerdirectory_2eproto ODBDESIGN_EXPORT -PROTOBUF_NAMESPACE_OPEN + +namespace google { +namespace protobuf { namespace internal { -class AnyMetadata; +template +::absl::string_view GetAnyMessageName(); } // namespace internal -PROTOBUF_NAMESPACE_CLOSE +} // namespace protobuf +} // namespace google // Internal implementation detail -- do not use these members. struct ODBDESIGN_EXPORT TableStruct_layerdirectory_2eproto { - static const uint32_t offsets[]; + static const ::uint32_t offsets[]; }; -ODBDESIGN_EXPORT extern const ::PROTOBUF_NAMESPACE_ID::internal::DescriptorTable descriptor_table_layerdirectory_2eproto; +ODBDESIGN_EXPORT extern const ::google::protobuf::internal::DescriptorTable + descriptor_table_layerdirectory_2eproto; namespace Odb { namespace Lib { namespace Protobuf { @@ -56,39 +63,47 @@ ODBDESIGN_EXPORT extern LayerDirectoryDefaultTypeInternal _LayerDirectory_defaul } // namespace Protobuf } // namespace Lib } // namespace Odb -PROTOBUF_NAMESPACE_OPEN -template<> ODBDESIGN_EXPORT ::Odb::Lib::Protobuf::LayerDirectory* Arena::CreateMaybeMessage<::Odb::Lib::Protobuf::LayerDirectory>(Arena*); -PROTOBUF_NAMESPACE_CLOSE +namespace google { +namespace protobuf { +} // namespace protobuf +} // namespace google + namespace Odb { namespace Lib { namespace Protobuf { // =================================================================== -class ODBDESIGN_EXPORT LayerDirectory final : - public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:Odb.Lib.Protobuf.LayerDirectory) */ { + +// ------------------------------------------------------------------- + +class ODBDESIGN_EXPORT LayerDirectory final : public ::google::protobuf::Message +/* @@protoc_insertion_point(class_definition:Odb.Lib.Protobuf.LayerDirectory) */ { public: inline LayerDirectory() : LayerDirectory(nullptr) {} - ~LayerDirectory() override; - explicit PROTOBUF_CONSTEXPR LayerDirectory(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); + ~LayerDirectory() PROTOBUF_FINAL; - LayerDirectory(const LayerDirectory& from); - LayerDirectory(LayerDirectory&& from) noexcept - : LayerDirectory() { - *this = ::std::move(from); +#if defined(PROTOBUF_CUSTOM_VTABLE) + void operator delete(LayerDirectory* msg, std::destroying_delete_t) { + SharedDtor(*msg); + ::google::protobuf::internal::SizedDelete(msg, sizeof(LayerDirectory)); } +#endif + + template + explicit PROTOBUF_CONSTEXPR LayerDirectory( + ::google::protobuf::internal::ConstantInitialized); + inline LayerDirectory(const LayerDirectory& from) : LayerDirectory(nullptr, from) {} + inline LayerDirectory(LayerDirectory&& from) noexcept + : LayerDirectory(nullptr, std::move(from)) {} inline LayerDirectory& operator=(const LayerDirectory& from) { CopyFrom(from); return *this; } inline LayerDirectory& operator=(LayerDirectory&& from) noexcept { if (this == &from) return *this; - if (GetOwningArena() == from.GetOwningArena() - #ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetOwningArena() != nullptr - #endif // !PROTOBUF_FORCE_COPY_IN_MOVE - ) { + if (::google::protobuf::internal::CanMoveWithInternalSwap(GetArena(), from.GetArena())) { InternalSwap(&from); } else { CopyFrom(from); @@ -96,13 +111,22 @@ class ODBDESIGN_EXPORT LayerDirectory final : return *this; } - static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { + inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const + ABSL_ATTRIBUTE_LIFETIME_BOUND { + return _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance); + } + inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() + ABSL_ATTRIBUTE_LIFETIME_BOUND { + return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); + } + + static const ::google::protobuf::Descriptor* descriptor() { return GetDescriptor(); } - static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { + static const ::google::protobuf::Descriptor* GetDescriptor() { return default_instance().GetMetadata().descriptor; } - static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { + static const ::google::protobuf::Reflection* GetReflection() { return default_instance().GetMetadata().reflection; } static const LayerDirectory& default_instance() { @@ -110,81 +134,94 @@ class ODBDESIGN_EXPORT LayerDirectory final : } static inline const LayerDirectory* internal_default_instance() { return reinterpret_cast( - &_LayerDirectory_default_instance_); - } - static constexpr int kIndexInFileMessages = - 0; - - friend void swap(LayerDirectory& a, LayerDirectory& b) { - a.Swap(&b); + &_LayerDirectory_default_instance_); } + static constexpr int kIndexInFileMessages = 0; + friend void swap(LayerDirectory& a, LayerDirectory& b) { a.Swap(&b); } inline void Swap(LayerDirectory* other) { if (other == this) return; - #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetOwningArena() != nullptr && - GetOwningArena() == other->GetOwningArena()) { - #else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetOwningArena() == other->GetOwningArena()) { - #endif // !PROTOBUF_FORCE_COPY_IN_SWAP + if (::google::protobuf::internal::CanUseInternalSwap(GetArena(), other->GetArena())) { InternalSwap(other); } else { - ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); + ::google::protobuf::internal::GenericSwap(this, other); } } void UnsafeArenaSwap(LayerDirectory* other) { if (other == this) return; - GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); + ABSL_DCHECK(GetArena() == other->GetArena()); InternalSwap(other); } // implements Message ---------------------------------------------- - LayerDirectory* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); + LayerDirectory* New(::google::protobuf::Arena* arena = nullptr) const { + return ::google::protobuf::Message::DefaultConstruct(arena); } - using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; + using ::google::protobuf::Message::CopyFrom; void CopyFrom(const LayerDirectory& from); - using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; - void MergeFrom( const LayerDirectory& from) { - LayerDirectory::MergeImpl(*this, from); - } + using ::google::protobuf::Message::MergeFrom; + void MergeFrom(const LayerDirectory& from) { LayerDirectory::MergeImpl(*this, from); } + private: - static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg); + static void MergeImpl( + ::google::protobuf::MessageLite& to_msg, + const ::google::protobuf::MessageLite& from_msg); + public: - PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; - bool IsInitialized() const final; + bool IsInitialized() const { + return true; + } + ABSL_ATTRIBUTE_REINITIALIZES void Clear() PROTOBUF_FINAL; + #if defined(PROTOBUF_CUSTOM_VTABLE) + private: + static ::size_t ByteSizeLong(const ::google::protobuf::MessageLite& msg); + static ::uint8_t* _InternalSerialize( + const MessageLite& msg, ::uint8_t* target, + ::google::protobuf::io::EpsCopyOutputStream* stream); - size_t ByteSizeLong() const final; - const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final; - uint8_t* _InternalSerialize( - uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const final { return _impl_._cached_size_.Get(); } + public: + ::size_t ByteSizeLong() const { return ByteSizeLong(*this); } + ::uint8_t* _InternalSerialize( + ::uint8_t* target, + ::google::protobuf::io::EpsCopyOutputStream* stream) const { + return _InternalSerialize(*this, target, stream); + } + #else // PROTOBUF_CUSTOM_VTABLE + ::size_t ByteSizeLong() const final; + ::uint8_t* _InternalSerialize( + ::uint8_t* target, + ::google::protobuf::io::EpsCopyOutputStream* stream) const final; + #endif // PROTOBUF_CUSTOM_VTABLE + int GetCachedSize() const { return _impl_._cached_size_.Get(); } private: - void SharedCtor(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned); - void SharedDtor(); - void SetCachedSize(int size) const final; + void SharedCtor(::google::protobuf::Arena* arena); + static void SharedDtor(MessageLite& self); void InternalSwap(LayerDirectory* other); - - private: - friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; - static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { - return "Odb.Lib.Protobuf.LayerDirectory"; + private: + template + friend ::absl::string_view( + ::google::protobuf::internal::GetAnyMessageName)(); + static ::absl::string_view FullMessageName() { return "Odb.Lib.Protobuf.LayerDirectory"; } + + protected: + explicit LayerDirectory(::google::protobuf::Arena* arena); + LayerDirectory(::google::protobuf::Arena* arena, const LayerDirectory& from); + LayerDirectory(::google::protobuf::Arena* arena, LayerDirectory&& from) noexcept + : LayerDirectory(arena) { + *this = ::std::move(from); } - protected: - explicit LayerDirectory(::PROTOBUF_NAMESPACE_ID::Arena* arena, - bool is_message_owned = false); - public: - - static const ClassData _class_data_; - const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final; - - ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; + const ::google::protobuf::internal::ClassData* GetClassData() const PROTOBUF_FINAL; + static void* PlacementNew_(const void*, void* mem, + ::google::protobuf::Arena* arena); + static constexpr auto InternalNewImpl_(); + static const ::google::protobuf::internal::ClassDataFull _class_data_; + public: + ::google::protobuf::Metadata GetMetadata() const; // nested types ---------------------------------------------------- // accessors ------------------------------------------------------- - enum : int { kNameFieldNumber = 1, kPathFieldNumber = 2, @@ -194,285 +231,295 @@ class ODBDESIGN_EXPORT LayerDirectory final : }; // optional string name = 1; bool has_name() const; - private: - bool _internal_has_name() const; - public: - void clear_name(); + void clear_name() ; const std::string& name() const; - template - void set_name(ArgT0&& arg0, ArgT... args); + template + void set_name(Arg_&& arg, Args_... args); std::string* mutable_name(); PROTOBUF_NODISCARD std::string* release_name(); - void set_allocated_name(std::string* name); + void set_allocated_name(std::string* value); + private: const std::string& _internal_name() const; - inline PROTOBUF_ALWAYS_INLINE void _internal_set_name(const std::string& value); + inline PROTOBUF_ALWAYS_INLINE void _internal_set_name( + const std::string& value); std::string* _internal_mutable_name(); - public: + public: // optional string path = 2; bool has_path() const; - private: - bool _internal_has_path() const; - public: - void clear_path(); + void clear_path() ; const std::string& path() const; - template - void set_path(ArgT0&& arg0, ArgT... args); + template + void set_path(Arg_&& arg, Args_... args); std::string* mutable_path(); PROTOBUF_NODISCARD std::string* release_path(); - void set_allocated_path(std::string* path); + void set_allocated_path(std::string* value); + private: const std::string& _internal_path() const; - inline PROTOBUF_ALWAYS_INLINE void _internal_set_path(const std::string& value); + inline PROTOBUF_ALWAYS_INLINE void _internal_set_path( + const std::string& value); std::string* _internal_mutable_path(); - public: + public: // optional .Odb.Lib.Protobuf.ComponentsFile components = 3; bool has_components() const; - private: - bool _internal_has_components() const; - public: - void clear_components(); + void clear_components() ; const ::Odb::Lib::Protobuf::ComponentsFile& components() const; PROTOBUF_NODISCARD ::Odb::Lib::Protobuf::ComponentsFile* release_components(); ::Odb::Lib::Protobuf::ComponentsFile* mutable_components(); - void set_allocated_components(::Odb::Lib::Protobuf::ComponentsFile* components); + void set_allocated_components(::Odb::Lib::Protobuf::ComponentsFile* value); + void unsafe_arena_set_allocated_components(::Odb::Lib::Protobuf::ComponentsFile* value); + ::Odb::Lib::Protobuf::ComponentsFile* unsafe_arena_release_components(); + private: const ::Odb::Lib::Protobuf::ComponentsFile& _internal_components() const; ::Odb::Lib::Protobuf::ComponentsFile* _internal_mutable_components(); - public: - void unsafe_arena_set_allocated_components( - ::Odb::Lib::Protobuf::ComponentsFile* components); - ::Odb::Lib::Protobuf::ComponentsFile* unsafe_arena_release_components(); + public: // optional .Odb.Lib.Protobuf.AttrListFile attrlistFile = 4; bool has_attrlistfile() const; - private: - bool _internal_has_attrlistfile() const; - public: - void clear_attrlistfile(); + void clear_attrlistfile() ; const ::Odb::Lib::Protobuf::AttrListFile& attrlistfile() const; PROTOBUF_NODISCARD ::Odb::Lib::Protobuf::AttrListFile* release_attrlistfile(); ::Odb::Lib::Protobuf::AttrListFile* mutable_attrlistfile(); - void set_allocated_attrlistfile(::Odb::Lib::Protobuf::AttrListFile* attrlistfile); + void set_allocated_attrlistfile(::Odb::Lib::Protobuf::AttrListFile* value); + void unsafe_arena_set_allocated_attrlistfile(::Odb::Lib::Protobuf::AttrListFile* value); + ::Odb::Lib::Protobuf::AttrListFile* unsafe_arena_release_attrlistfile(); + private: const ::Odb::Lib::Protobuf::AttrListFile& _internal_attrlistfile() const; ::Odb::Lib::Protobuf::AttrListFile* _internal_mutable_attrlistfile(); - public: - void unsafe_arena_set_allocated_attrlistfile( - ::Odb::Lib::Protobuf::AttrListFile* attrlistfile); - ::Odb::Lib::Protobuf::AttrListFile* unsafe_arena_release_attrlistfile(); + public: // optional .Odb.Lib.Protobuf.FeaturesFile featureFile = 5; bool has_featurefile() const; - private: - bool _internal_has_featurefile() const; - public: - void clear_featurefile(); + void clear_featurefile() ; const ::Odb::Lib::Protobuf::FeaturesFile& featurefile() const; PROTOBUF_NODISCARD ::Odb::Lib::Protobuf::FeaturesFile* release_featurefile(); ::Odb::Lib::Protobuf::FeaturesFile* mutable_featurefile(); - void set_allocated_featurefile(::Odb::Lib::Protobuf::FeaturesFile* featurefile); + void set_allocated_featurefile(::Odb::Lib::Protobuf::FeaturesFile* value); + void unsafe_arena_set_allocated_featurefile(::Odb::Lib::Protobuf::FeaturesFile* value); + ::Odb::Lib::Protobuf::FeaturesFile* unsafe_arena_release_featurefile(); + private: const ::Odb::Lib::Protobuf::FeaturesFile& _internal_featurefile() const; ::Odb::Lib::Protobuf::FeaturesFile* _internal_mutable_featurefile(); - public: - void unsafe_arena_set_allocated_featurefile( - ::Odb::Lib::Protobuf::FeaturesFile* featurefile); - ::Odb::Lib::Protobuf::FeaturesFile* unsafe_arena_release_featurefile(); + public: // @@protoc_insertion_point(class_scope:Odb.Lib.Protobuf.LayerDirectory) private: class _Internal; - - template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; - typedef void InternalArenaConstructable_; - typedef void DestructorSkippable_; + friend class ::google::protobuf::internal::TcParser; + static const ::google::protobuf::internal::TcParseTable< + 3, 5, 3, + 48, 2> + _table_; + + friend class ::google::protobuf::MessageLite; + friend class ::google::protobuf::Arena; + template + friend class ::google::protobuf::Arena::InternalHelper; + using InternalArenaConstructable_ = void; + using DestructorSkippable_ = void; struct Impl_ { - ::PROTOBUF_NAMESPACE_ID::internal::HasBits<1> _has_bits_; - mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; - ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr name_; - ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr path_; + inline explicit constexpr Impl_( + ::google::protobuf::internal::ConstantInitialized) noexcept; + inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* arena); + inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* arena, const Impl_& from, + const LayerDirectory& from_msg); + ::google::protobuf::internal::HasBits<1> _has_bits_; + ::google::protobuf::internal::CachedSize _cached_size_; + ::google::protobuf::internal::ArenaStringPtr name_; + ::google::protobuf::internal::ArenaStringPtr path_; ::Odb::Lib::Protobuf::ComponentsFile* components_; ::Odb::Lib::Protobuf::AttrListFile* attrlistfile_; ::Odb::Lib::Protobuf::FeaturesFile* featurefile_; + PROTOBUF_TSAN_DECLARE_MEMBER }; union { Impl_ _impl_; }; friend struct ::TableStruct_layerdirectory_2eproto; }; + // =================================================================== + + // =================================================================== + #ifdef __GNUC__ - #pragma GCC diagnostic push - #pragma GCC diagnostic ignored "-Wstrict-aliasing" +#pragma GCC diagnostic push +#pragma GCC diagnostic ignored "-Wstrict-aliasing" #endif // __GNUC__ +// ------------------------------------------------------------------- + // LayerDirectory // optional string name = 1; -inline bool LayerDirectory::_internal_has_name() const { +inline bool LayerDirectory::has_name() const { bool value = (_impl_._has_bits_[0] & 0x00000001u) != 0; return value; } -inline bool LayerDirectory::has_name() const { - return _internal_has_name(); -} inline void LayerDirectory::clear_name() { + ::google::protobuf::internal::TSanWrite(&_impl_); _impl_.name_.ClearToEmpty(); _impl_._has_bits_[0] &= ~0x00000001u; } -inline const std::string& LayerDirectory::name() const { +inline const std::string& LayerDirectory::name() const + ABSL_ATTRIBUTE_LIFETIME_BOUND { // @@protoc_insertion_point(field_get:Odb.Lib.Protobuf.LayerDirectory.name) return _internal_name(); } -template -inline PROTOBUF_ALWAYS_INLINE -void LayerDirectory::set_name(ArgT0&& arg0, ArgT... args) { - _impl_._has_bits_[0] |= 0x00000001u; - _impl_.name_.Set(static_cast(arg0), args..., GetArenaForAllocation()); +template +inline PROTOBUF_ALWAYS_INLINE void LayerDirectory::set_name(Arg_&& arg, + Args_... args) { + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_._has_bits_[0] |= 0x00000001u; + _impl_.name_.Set(static_cast(arg), args..., GetArena()); // @@protoc_insertion_point(field_set:Odb.Lib.Protobuf.LayerDirectory.name) } -inline std::string* LayerDirectory::mutable_name() { +inline std::string* LayerDirectory::mutable_name() ABSL_ATTRIBUTE_LIFETIME_BOUND { std::string* _s = _internal_mutable_name(); // @@protoc_insertion_point(field_mutable:Odb.Lib.Protobuf.LayerDirectory.name) return _s; } inline const std::string& LayerDirectory::_internal_name() const { + ::google::protobuf::internal::TSanRead(&_impl_); return _impl_.name_.Get(); } inline void LayerDirectory::_internal_set_name(const std::string& value) { + ::google::protobuf::internal::TSanWrite(&_impl_); _impl_._has_bits_[0] |= 0x00000001u; - _impl_.name_.Set(value, GetArenaForAllocation()); + _impl_.name_.Set(value, GetArena()); } inline std::string* LayerDirectory::_internal_mutable_name() { + ::google::protobuf::internal::TSanWrite(&_impl_); _impl_._has_bits_[0] |= 0x00000001u; - return _impl_.name_.Mutable(GetArenaForAllocation()); + return _impl_.name_.Mutable( GetArena()); } inline std::string* LayerDirectory::release_name() { + ::google::protobuf::internal::TSanWrite(&_impl_); // @@protoc_insertion_point(field_release:Odb.Lib.Protobuf.LayerDirectory.name) - if (!_internal_has_name()) { + if ((_impl_._has_bits_[0] & 0x00000001u) == 0) { return nullptr; } _impl_._has_bits_[0] &= ~0x00000001u; - auto* p = _impl_.name_.Release(); -#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (_impl_.name_.IsDefault()) { - _impl_.name_.Set("", GetArenaForAllocation()); + auto* released = _impl_.name_.Release(); + if (::google::protobuf::internal::DebugHardenForceCopyDefaultString()) { + _impl_.name_.Set("", GetArena()); } -#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING - return p; + return released; } -inline void LayerDirectory::set_allocated_name(std::string* name) { - if (name != nullptr) { +inline void LayerDirectory::set_allocated_name(std::string* value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + if (value != nullptr) { _impl_._has_bits_[0] |= 0x00000001u; } else { _impl_._has_bits_[0] &= ~0x00000001u; } - _impl_.name_.SetAllocated(name, GetArenaForAllocation()); -#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (_impl_.name_.IsDefault()) { - _impl_.name_.Set("", GetArenaForAllocation()); + _impl_.name_.SetAllocated(value, GetArena()); + if (::google::protobuf::internal::DebugHardenForceCopyDefaultString() && _impl_.name_.IsDefault()) { + _impl_.name_.Set("", GetArena()); } -#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING // @@protoc_insertion_point(field_set_allocated:Odb.Lib.Protobuf.LayerDirectory.name) } // optional string path = 2; -inline bool LayerDirectory::_internal_has_path() const { +inline bool LayerDirectory::has_path() const { bool value = (_impl_._has_bits_[0] & 0x00000002u) != 0; return value; } -inline bool LayerDirectory::has_path() const { - return _internal_has_path(); -} inline void LayerDirectory::clear_path() { + ::google::protobuf::internal::TSanWrite(&_impl_); _impl_.path_.ClearToEmpty(); _impl_._has_bits_[0] &= ~0x00000002u; } -inline const std::string& LayerDirectory::path() const { +inline const std::string& LayerDirectory::path() const + ABSL_ATTRIBUTE_LIFETIME_BOUND { // @@protoc_insertion_point(field_get:Odb.Lib.Protobuf.LayerDirectory.path) return _internal_path(); } -template -inline PROTOBUF_ALWAYS_INLINE -void LayerDirectory::set_path(ArgT0&& arg0, ArgT... args) { - _impl_._has_bits_[0] |= 0x00000002u; - _impl_.path_.Set(static_cast(arg0), args..., GetArenaForAllocation()); +template +inline PROTOBUF_ALWAYS_INLINE void LayerDirectory::set_path(Arg_&& arg, + Args_... args) { + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_._has_bits_[0] |= 0x00000002u; + _impl_.path_.Set(static_cast(arg), args..., GetArena()); // @@protoc_insertion_point(field_set:Odb.Lib.Protobuf.LayerDirectory.path) } -inline std::string* LayerDirectory::mutable_path() { +inline std::string* LayerDirectory::mutable_path() ABSL_ATTRIBUTE_LIFETIME_BOUND { std::string* _s = _internal_mutable_path(); // @@protoc_insertion_point(field_mutable:Odb.Lib.Protobuf.LayerDirectory.path) return _s; } inline const std::string& LayerDirectory::_internal_path() const { + ::google::protobuf::internal::TSanRead(&_impl_); return _impl_.path_.Get(); } inline void LayerDirectory::_internal_set_path(const std::string& value) { + ::google::protobuf::internal::TSanWrite(&_impl_); _impl_._has_bits_[0] |= 0x00000002u; - _impl_.path_.Set(value, GetArenaForAllocation()); + _impl_.path_.Set(value, GetArena()); } inline std::string* LayerDirectory::_internal_mutable_path() { + ::google::protobuf::internal::TSanWrite(&_impl_); _impl_._has_bits_[0] |= 0x00000002u; - return _impl_.path_.Mutable(GetArenaForAllocation()); + return _impl_.path_.Mutable( GetArena()); } inline std::string* LayerDirectory::release_path() { + ::google::protobuf::internal::TSanWrite(&_impl_); // @@protoc_insertion_point(field_release:Odb.Lib.Protobuf.LayerDirectory.path) - if (!_internal_has_path()) { + if ((_impl_._has_bits_[0] & 0x00000002u) == 0) { return nullptr; } _impl_._has_bits_[0] &= ~0x00000002u; - auto* p = _impl_.path_.Release(); -#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (_impl_.path_.IsDefault()) { - _impl_.path_.Set("", GetArenaForAllocation()); + auto* released = _impl_.path_.Release(); + if (::google::protobuf::internal::DebugHardenForceCopyDefaultString()) { + _impl_.path_.Set("", GetArena()); } -#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING - return p; + return released; } -inline void LayerDirectory::set_allocated_path(std::string* path) { - if (path != nullptr) { +inline void LayerDirectory::set_allocated_path(std::string* value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + if (value != nullptr) { _impl_._has_bits_[0] |= 0x00000002u; } else { _impl_._has_bits_[0] &= ~0x00000002u; } - _impl_.path_.SetAllocated(path, GetArenaForAllocation()); -#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (_impl_.path_.IsDefault()) { - _impl_.path_.Set("", GetArenaForAllocation()); + _impl_.path_.SetAllocated(value, GetArena()); + if (::google::protobuf::internal::DebugHardenForceCopyDefaultString() && _impl_.path_.IsDefault()) { + _impl_.path_.Set("", GetArena()); } -#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING // @@protoc_insertion_point(field_set_allocated:Odb.Lib.Protobuf.LayerDirectory.path) } // optional .Odb.Lib.Protobuf.ComponentsFile components = 3; -inline bool LayerDirectory::_internal_has_components() const { +inline bool LayerDirectory::has_components() const { bool value = (_impl_._has_bits_[0] & 0x00000004u) != 0; PROTOBUF_ASSUME(!value || _impl_.components_ != nullptr); return value; } -inline bool LayerDirectory::has_components() const { - return _internal_has_components(); -} inline const ::Odb::Lib::Protobuf::ComponentsFile& LayerDirectory::_internal_components() const { + ::google::protobuf::internal::TSanRead(&_impl_); const ::Odb::Lib::Protobuf::ComponentsFile* p = _impl_.components_; - return p != nullptr ? *p : reinterpret_cast( - ::Odb::Lib::Protobuf::_ComponentsFile_default_instance_); + return p != nullptr ? *p : reinterpret_cast(::Odb::Lib::Protobuf::_ComponentsFile_default_instance_); } -inline const ::Odb::Lib::Protobuf::ComponentsFile& LayerDirectory::components() const { +inline const ::Odb::Lib::Protobuf::ComponentsFile& LayerDirectory::components() const ABSL_ATTRIBUTE_LIFETIME_BOUND { // @@protoc_insertion_point(field_get:Odb.Lib.Protobuf.LayerDirectory.components) return _internal_components(); } -inline void LayerDirectory::unsafe_arena_set_allocated_components( - ::Odb::Lib::Protobuf::ComponentsFile* components) { - if (GetArenaForAllocation() == nullptr) { - delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(_impl_.components_); +inline void LayerDirectory::unsafe_arena_set_allocated_components(::Odb::Lib::Protobuf::ComponentsFile* value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + if (GetArena() == nullptr) { + delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.components_); } - _impl_.components_ = components; - if (components) { + _impl_.components_ = reinterpret_cast<::Odb::Lib::Protobuf::ComponentsFile*>(value); + if (value != nullptr) { _impl_._has_bits_[0] |= 0x00000004u; } else { _impl_._has_bits_[0] &= ~0x00000004u; @@ -480,86 +527,90 @@ inline void LayerDirectory::unsafe_arena_set_allocated_components( // @@protoc_insertion_point(field_unsafe_arena_set_allocated:Odb.Lib.Protobuf.LayerDirectory.components) } inline ::Odb::Lib::Protobuf::ComponentsFile* LayerDirectory::release_components() { + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_._has_bits_[0] &= ~0x00000004u; - ::Odb::Lib::Protobuf::ComponentsFile* temp = _impl_.components_; + ::Odb::Lib::Protobuf::ComponentsFile* released = _impl_.components_; _impl_.components_ = nullptr; -#ifdef PROTOBUF_FORCE_COPY_IN_RELEASE - auto* old = reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(temp); - temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); - if (GetArenaForAllocation() == nullptr) { delete old; } -#else // PROTOBUF_FORCE_COPY_IN_RELEASE - if (GetArenaForAllocation() != nullptr) { - temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); - } -#endif // !PROTOBUF_FORCE_COPY_IN_RELEASE - return temp; + if (::google::protobuf::internal::DebugHardenForceCopyInRelease()) { + auto* old = reinterpret_cast<::google::protobuf::MessageLite*>(released); + released = ::google::protobuf::internal::DuplicateIfNonNull(released); + if (GetArena() == nullptr) { + delete old; + } + } else { + if (GetArena() != nullptr) { + released = ::google::protobuf::internal::DuplicateIfNonNull(released); + } + } + return released; } inline ::Odb::Lib::Protobuf::ComponentsFile* LayerDirectory::unsafe_arena_release_components() { + ::google::protobuf::internal::TSanWrite(&_impl_); // @@protoc_insertion_point(field_release:Odb.Lib.Protobuf.LayerDirectory.components) + _impl_._has_bits_[0] &= ~0x00000004u; ::Odb::Lib::Protobuf::ComponentsFile* temp = _impl_.components_; _impl_.components_ = nullptr; return temp; } inline ::Odb::Lib::Protobuf::ComponentsFile* LayerDirectory::_internal_mutable_components() { - _impl_._has_bits_[0] |= 0x00000004u; + ::google::protobuf::internal::TSanWrite(&_impl_); if (_impl_.components_ == nullptr) { - auto* p = CreateMaybeMessage<::Odb::Lib::Protobuf::ComponentsFile>(GetArenaForAllocation()); - _impl_.components_ = p; + auto* p = ::google::protobuf::Message::DefaultConstruct<::Odb::Lib::Protobuf::ComponentsFile>(GetArena()); + _impl_.components_ = reinterpret_cast<::Odb::Lib::Protobuf::ComponentsFile*>(p); } return _impl_.components_; } -inline ::Odb::Lib::Protobuf::ComponentsFile* LayerDirectory::mutable_components() { +inline ::Odb::Lib::Protobuf::ComponentsFile* LayerDirectory::mutable_components() ABSL_ATTRIBUTE_LIFETIME_BOUND { + _impl_._has_bits_[0] |= 0x00000004u; ::Odb::Lib::Protobuf::ComponentsFile* _msg = _internal_mutable_components(); // @@protoc_insertion_point(field_mutable:Odb.Lib.Protobuf.LayerDirectory.components) return _msg; } -inline void LayerDirectory::set_allocated_components(::Odb::Lib::Protobuf::ComponentsFile* components) { - ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); +inline void LayerDirectory::set_allocated_components(::Odb::Lib::Protobuf::ComponentsFile* value) { + ::google::protobuf::Arena* message_arena = GetArena(); + ::google::protobuf::internal::TSanWrite(&_impl_); if (message_arena == nullptr) { - delete reinterpret_cast< ::PROTOBUF_NAMESPACE_ID::MessageLite*>(_impl_.components_); + delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.components_); } - if (components) { - ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = - ::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena( - reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(components)); + + if (value != nullptr) { + ::google::protobuf::Arena* submessage_arena = reinterpret_cast<::google::protobuf::MessageLite*>(value)->GetArena(); if (message_arena != submessage_arena) { - components = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( - message_arena, components, submessage_arena); + value = ::google::protobuf::internal::GetOwnedMessage(message_arena, value, submessage_arena); } _impl_._has_bits_[0] |= 0x00000004u; } else { _impl_._has_bits_[0] &= ~0x00000004u; } - _impl_.components_ = components; + + _impl_.components_ = reinterpret_cast<::Odb::Lib::Protobuf::ComponentsFile*>(value); // @@protoc_insertion_point(field_set_allocated:Odb.Lib.Protobuf.LayerDirectory.components) } // optional .Odb.Lib.Protobuf.AttrListFile attrlistFile = 4; -inline bool LayerDirectory::_internal_has_attrlistfile() const { +inline bool LayerDirectory::has_attrlistfile() const { bool value = (_impl_._has_bits_[0] & 0x00000008u) != 0; PROTOBUF_ASSUME(!value || _impl_.attrlistfile_ != nullptr); return value; } -inline bool LayerDirectory::has_attrlistfile() const { - return _internal_has_attrlistfile(); -} inline const ::Odb::Lib::Protobuf::AttrListFile& LayerDirectory::_internal_attrlistfile() const { + ::google::protobuf::internal::TSanRead(&_impl_); const ::Odb::Lib::Protobuf::AttrListFile* p = _impl_.attrlistfile_; - return p != nullptr ? *p : reinterpret_cast( - ::Odb::Lib::Protobuf::_AttrListFile_default_instance_); + return p != nullptr ? *p : reinterpret_cast(::Odb::Lib::Protobuf::_AttrListFile_default_instance_); } -inline const ::Odb::Lib::Protobuf::AttrListFile& LayerDirectory::attrlistfile() const { +inline const ::Odb::Lib::Protobuf::AttrListFile& LayerDirectory::attrlistfile() const ABSL_ATTRIBUTE_LIFETIME_BOUND { // @@protoc_insertion_point(field_get:Odb.Lib.Protobuf.LayerDirectory.attrlistFile) return _internal_attrlistfile(); } -inline void LayerDirectory::unsafe_arena_set_allocated_attrlistfile( - ::Odb::Lib::Protobuf::AttrListFile* attrlistfile) { - if (GetArenaForAllocation() == nullptr) { - delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(_impl_.attrlistfile_); +inline void LayerDirectory::unsafe_arena_set_allocated_attrlistfile(::Odb::Lib::Protobuf::AttrListFile* value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + if (GetArena() == nullptr) { + delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.attrlistfile_); } - _impl_.attrlistfile_ = attrlistfile; - if (attrlistfile) { + _impl_.attrlistfile_ = reinterpret_cast<::Odb::Lib::Protobuf::AttrListFile*>(value); + if (value != nullptr) { _impl_._has_bits_[0] |= 0x00000008u; } else { _impl_._has_bits_[0] &= ~0x00000008u; @@ -567,86 +618,90 @@ inline void LayerDirectory::unsafe_arena_set_allocated_attrlistfile( // @@protoc_insertion_point(field_unsafe_arena_set_allocated:Odb.Lib.Protobuf.LayerDirectory.attrlistFile) } inline ::Odb::Lib::Protobuf::AttrListFile* LayerDirectory::release_attrlistfile() { + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_._has_bits_[0] &= ~0x00000008u; - ::Odb::Lib::Protobuf::AttrListFile* temp = _impl_.attrlistfile_; + ::Odb::Lib::Protobuf::AttrListFile* released = _impl_.attrlistfile_; _impl_.attrlistfile_ = nullptr; -#ifdef PROTOBUF_FORCE_COPY_IN_RELEASE - auto* old = reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(temp); - temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); - if (GetArenaForAllocation() == nullptr) { delete old; } -#else // PROTOBUF_FORCE_COPY_IN_RELEASE - if (GetArenaForAllocation() != nullptr) { - temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); - } -#endif // !PROTOBUF_FORCE_COPY_IN_RELEASE - return temp; + if (::google::protobuf::internal::DebugHardenForceCopyInRelease()) { + auto* old = reinterpret_cast<::google::protobuf::MessageLite*>(released); + released = ::google::protobuf::internal::DuplicateIfNonNull(released); + if (GetArena() == nullptr) { + delete old; + } + } else { + if (GetArena() != nullptr) { + released = ::google::protobuf::internal::DuplicateIfNonNull(released); + } + } + return released; } inline ::Odb::Lib::Protobuf::AttrListFile* LayerDirectory::unsafe_arena_release_attrlistfile() { + ::google::protobuf::internal::TSanWrite(&_impl_); // @@protoc_insertion_point(field_release:Odb.Lib.Protobuf.LayerDirectory.attrlistFile) + _impl_._has_bits_[0] &= ~0x00000008u; ::Odb::Lib::Protobuf::AttrListFile* temp = _impl_.attrlistfile_; _impl_.attrlistfile_ = nullptr; return temp; } inline ::Odb::Lib::Protobuf::AttrListFile* LayerDirectory::_internal_mutable_attrlistfile() { - _impl_._has_bits_[0] |= 0x00000008u; + ::google::protobuf::internal::TSanWrite(&_impl_); if (_impl_.attrlistfile_ == nullptr) { - auto* p = CreateMaybeMessage<::Odb::Lib::Protobuf::AttrListFile>(GetArenaForAllocation()); - _impl_.attrlistfile_ = p; + auto* p = ::google::protobuf::Message::DefaultConstruct<::Odb::Lib::Protobuf::AttrListFile>(GetArena()); + _impl_.attrlistfile_ = reinterpret_cast<::Odb::Lib::Protobuf::AttrListFile*>(p); } return _impl_.attrlistfile_; } -inline ::Odb::Lib::Protobuf::AttrListFile* LayerDirectory::mutable_attrlistfile() { +inline ::Odb::Lib::Protobuf::AttrListFile* LayerDirectory::mutable_attrlistfile() ABSL_ATTRIBUTE_LIFETIME_BOUND { + _impl_._has_bits_[0] |= 0x00000008u; ::Odb::Lib::Protobuf::AttrListFile* _msg = _internal_mutable_attrlistfile(); // @@protoc_insertion_point(field_mutable:Odb.Lib.Protobuf.LayerDirectory.attrlistFile) return _msg; } -inline void LayerDirectory::set_allocated_attrlistfile(::Odb::Lib::Protobuf::AttrListFile* attrlistfile) { - ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); +inline void LayerDirectory::set_allocated_attrlistfile(::Odb::Lib::Protobuf::AttrListFile* value) { + ::google::protobuf::Arena* message_arena = GetArena(); + ::google::protobuf::internal::TSanWrite(&_impl_); if (message_arena == nullptr) { - delete reinterpret_cast< ::PROTOBUF_NAMESPACE_ID::MessageLite*>(_impl_.attrlistfile_); + delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.attrlistfile_); } - if (attrlistfile) { - ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = - ::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena( - reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(attrlistfile)); + + if (value != nullptr) { + ::google::protobuf::Arena* submessage_arena = reinterpret_cast<::google::protobuf::MessageLite*>(value)->GetArena(); if (message_arena != submessage_arena) { - attrlistfile = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( - message_arena, attrlistfile, submessage_arena); + value = ::google::protobuf::internal::GetOwnedMessage(message_arena, value, submessage_arena); } _impl_._has_bits_[0] |= 0x00000008u; } else { _impl_._has_bits_[0] &= ~0x00000008u; } - _impl_.attrlistfile_ = attrlistfile; + + _impl_.attrlistfile_ = reinterpret_cast<::Odb::Lib::Protobuf::AttrListFile*>(value); // @@protoc_insertion_point(field_set_allocated:Odb.Lib.Protobuf.LayerDirectory.attrlistFile) } // optional .Odb.Lib.Protobuf.FeaturesFile featureFile = 5; -inline bool LayerDirectory::_internal_has_featurefile() const { +inline bool LayerDirectory::has_featurefile() const { bool value = (_impl_._has_bits_[0] & 0x00000010u) != 0; PROTOBUF_ASSUME(!value || _impl_.featurefile_ != nullptr); return value; } -inline bool LayerDirectory::has_featurefile() const { - return _internal_has_featurefile(); -} inline const ::Odb::Lib::Protobuf::FeaturesFile& LayerDirectory::_internal_featurefile() const { + ::google::protobuf::internal::TSanRead(&_impl_); const ::Odb::Lib::Protobuf::FeaturesFile* p = _impl_.featurefile_; - return p != nullptr ? *p : reinterpret_cast( - ::Odb::Lib::Protobuf::_FeaturesFile_default_instance_); + return p != nullptr ? *p : reinterpret_cast(::Odb::Lib::Protobuf::_FeaturesFile_default_instance_); } -inline const ::Odb::Lib::Protobuf::FeaturesFile& LayerDirectory::featurefile() const { +inline const ::Odb::Lib::Protobuf::FeaturesFile& LayerDirectory::featurefile() const ABSL_ATTRIBUTE_LIFETIME_BOUND { // @@protoc_insertion_point(field_get:Odb.Lib.Protobuf.LayerDirectory.featureFile) return _internal_featurefile(); } -inline void LayerDirectory::unsafe_arena_set_allocated_featurefile( - ::Odb::Lib::Protobuf::FeaturesFile* featurefile) { - if (GetArenaForAllocation() == nullptr) { - delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(_impl_.featurefile_); +inline void LayerDirectory::unsafe_arena_set_allocated_featurefile(::Odb::Lib::Protobuf::FeaturesFile* value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + if (GetArena() == nullptr) { + delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.featurefile_); } - _impl_.featurefile_ = featurefile; - if (featurefile) { + _impl_.featurefile_ = reinterpret_cast<::Odb::Lib::Protobuf::FeaturesFile*>(value); + if (value != nullptr) { _impl_._has_bits_[0] |= 0x00000010u; } else { _impl_._has_bits_[0] &= ~0x00000010u; @@ -654,72 +709,80 @@ inline void LayerDirectory::unsafe_arena_set_allocated_featurefile( // @@protoc_insertion_point(field_unsafe_arena_set_allocated:Odb.Lib.Protobuf.LayerDirectory.featureFile) } inline ::Odb::Lib::Protobuf::FeaturesFile* LayerDirectory::release_featurefile() { + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_._has_bits_[0] &= ~0x00000010u; - ::Odb::Lib::Protobuf::FeaturesFile* temp = _impl_.featurefile_; + ::Odb::Lib::Protobuf::FeaturesFile* released = _impl_.featurefile_; _impl_.featurefile_ = nullptr; -#ifdef PROTOBUF_FORCE_COPY_IN_RELEASE - auto* old = reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(temp); - temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); - if (GetArenaForAllocation() == nullptr) { delete old; } -#else // PROTOBUF_FORCE_COPY_IN_RELEASE - if (GetArenaForAllocation() != nullptr) { - temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); - } -#endif // !PROTOBUF_FORCE_COPY_IN_RELEASE - return temp; + if (::google::protobuf::internal::DebugHardenForceCopyInRelease()) { + auto* old = reinterpret_cast<::google::protobuf::MessageLite*>(released); + released = ::google::protobuf::internal::DuplicateIfNonNull(released); + if (GetArena() == nullptr) { + delete old; + } + } else { + if (GetArena() != nullptr) { + released = ::google::protobuf::internal::DuplicateIfNonNull(released); + } + } + return released; } inline ::Odb::Lib::Protobuf::FeaturesFile* LayerDirectory::unsafe_arena_release_featurefile() { + ::google::protobuf::internal::TSanWrite(&_impl_); // @@protoc_insertion_point(field_release:Odb.Lib.Protobuf.LayerDirectory.featureFile) + _impl_._has_bits_[0] &= ~0x00000010u; ::Odb::Lib::Protobuf::FeaturesFile* temp = _impl_.featurefile_; _impl_.featurefile_ = nullptr; return temp; } inline ::Odb::Lib::Protobuf::FeaturesFile* LayerDirectory::_internal_mutable_featurefile() { - _impl_._has_bits_[0] |= 0x00000010u; + ::google::protobuf::internal::TSanWrite(&_impl_); if (_impl_.featurefile_ == nullptr) { - auto* p = CreateMaybeMessage<::Odb::Lib::Protobuf::FeaturesFile>(GetArenaForAllocation()); - _impl_.featurefile_ = p; + auto* p = ::google::protobuf::Message::DefaultConstruct<::Odb::Lib::Protobuf::FeaturesFile>(GetArena()); + _impl_.featurefile_ = reinterpret_cast<::Odb::Lib::Protobuf::FeaturesFile*>(p); } return _impl_.featurefile_; } -inline ::Odb::Lib::Protobuf::FeaturesFile* LayerDirectory::mutable_featurefile() { +inline ::Odb::Lib::Protobuf::FeaturesFile* LayerDirectory::mutable_featurefile() ABSL_ATTRIBUTE_LIFETIME_BOUND { + _impl_._has_bits_[0] |= 0x00000010u; ::Odb::Lib::Protobuf::FeaturesFile* _msg = _internal_mutable_featurefile(); // @@protoc_insertion_point(field_mutable:Odb.Lib.Protobuf.LayerDirectory.featureFile) return _msg; } -inline void LayerDirectory::set_allocated_featurefile(::Odb::Lib::Protobuf::FeaturesFile* featurefile) { - ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); +inline void LayerDirectory::set_allocated_featurefile(::Odb::Lib::Protobuf::FeaturesFile* value) { + ::google::protobuf::Arena* message_arena = GetArena(); + ::google::protobuf::internal::TSanWrite(&_impl_); if (message_arena == nullptr) { - delete reinterpret_cast< ::PROTOBUF_NAMESPACE_ID::MessageLite*>(_impl_.featurefile_); + delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.featurefile_); } - if (featurefile) { - ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = - ::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena( - reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(featurefile)); + + if (value != nullptr) { + ::google::protobuf::Arena* submessage_arena = reinterpret_cast<::google::protobuf::MessageLite*>(value)->GetArena(); if (message_arena != submessage_arena) { - featurefile = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( - message_arena, featurefile, submessage_arena); + value = ::google::protobuf::internal::GetOwnedMessage(message_arena, value, submessage_arena); } _impl_._has_bits_[0] |= 0x00000010u; } else { _impl_._has_bits_[0] &= ~0x00000010u; } - _impl_.featurefile_ = featurefile; + + _impl_.featurefile_ = reinterpret_cast<::Odb::Lib::Protobuf::FeaturesFile*>(value); // @@protoc_insertion_point(field_set_allocated:Odb.Lib.Protobuf.LayerDirectory.featureFile) } #ifdef __GNUC__ - #pragma GCC diagnostic pop +#pragma GCC diagnostic pop #endif // __GNUC__ // @@protoc_insertion_point(namespace_scope) - } // namespace Protobuf } // namespace Lib } // namespace Odb + // @@protoc_insertion_point(global_scope) -#include -#endif // GOOGLE_PROTOBUF_INCLUDED_GOOGLE_PROTOBUF_INCLUDED_layerdirectory_2eproto +#include "google/protobuf/port_undef.inc" + +#endif // layerdirectory_2eproto_2epb_2eh diff --git a/OdbDesignLib/ProtoBuf/matrixfile.pb.cc b/OdbDesignLib/ProtoBuf/matrixfile.pb.cc index a43f7f0b..749b25e0 100644 --- a/OdbDesignLib/ProtoBuf/matrixfile.pb.cc +++ b/OdbDesignLib/ProtoBuf/matrixfile.pb.cc @@ -1,221 +1,272 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE // source: matrixfile.proto +// Protobuf C++ Version: 5.29.2 #include "matrixfile.pb.h" #include - -#include -#include -#include -#include -#include -#include -#include +#include +#include "google/protobuf/io/coded_stream.h" +#include "google/protobuf/generated_message_tctable_impl.h" +#include "google/protobuf/extension_set.h" +#include "google/protobuf/generated_message_util.h" +#include "google/protobuf/wire_format_lite.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) -#include +// Must be included last. +#include "google/protobuf/port_def.inc" PROTOBUF_PRAGMA_INIT_SEG - -namespace _pb = ::PROTOBUF_NAMESPACE_ID; -namespace _pbi = _pb::internal; - +namespace _pb = ::google::protobuf; +namespace _pbi = ::google::protobuf::internal; +namespace _fl = ::google::protobuf::internal::field_layout; namespace Odb { namespace Lib { namespace Protobuf { -PROTOBUF_CONSTEXPR MatrixFile_StepRecord::MatrixFile_StepRecord( - ::_pbi::ConstantInitialized): _impl_{ - /*decltype(_impl_.name_)*/{&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}} - , /*decltype(_impl_.column_)*/0u - , /*decltype(_impl_.id_)*/0u - , /*decltype(_impl_._cached_size_)*/{}} {} + +inline constexpr MatrixFile_StepRecord::Impl_::Impl_( + ::_pbi::ConstantInitialized) noexcept + : name_( + &::google::protobuf::internal::fixed_address_empty_string, + ::_pbi::ConstantInitialized()), + column_{0u}, + id_{0u}, + _cached_size_{0} {} + +template +PROTOBUF_CONSTEXPR MatrixFile_StepRecord::MatrixFile_StepRecord(::_pbi::ConstantInitialized) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : ::google::protobuf::Message(_class_data_.base()), +#else // PROTOBUF_CUSTOM_VTABLE + : ::google::protobuf::Message(), +#endif // PROTOBUF_CUSTOM_VTABLE + _impl_(::_pbi::ConstantInitialized()) { +} struct MatrixFile_StepRecordDefaultTypeInternal { - PROTOBUF_CONSTEXPR MatrixFile_StepRecordDefaultTypeInternal() - : _instance(::_pbi::ConstantInitialized{}) {} + PROTOBUF_CONSTEXPR MatrixFile_StepRecordDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} ~MatrixFile_StepRecordDefaultTypeInternal() {} union { MatrixFile_StepRecord _instance; }; }; -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 MatrixFile_StepRecordDefaultTypeInternal _MatrixFile_StepRecord_default_instance_; -PROTOBUF_CONSTEXPR MatrixFile_LayerRecord::MatrixFile_LayerRecord( - ::_pbi::ConstantInitialized): _impl_{ - /*decltype(_impl_.name_)*/{&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}} - , /*decltype(_impl_.dielectricname_)*/{&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}} - , /*decltype(_impl_.startname_)*/{&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}} - , /*decltype(_impl_.endname_)*/{&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}} - , /*decltype(_impl_.oldname_)*/{&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}} - , /*decltype(_impl_.addtype_)*/{&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}} - , /*decltype(_impl_.row_)*/0u - , /*decltype(_impl_.context_)*/0 - , /*decltype(_impl_.type_)*/0 - , /*decltype(_impl_.polarity_)*/0 - , /*decltype(_impl_.dielectrictype_)*/0 - , /*decltype(_impl_.form_)*/0 - , /*decltype(_impl_.cutop_)*/0u - , /*decltype(_impl_.cubottom_)*/0u - , /*decltype(_impl_.ref_)*/0u - , /*decltype(_impl_.id_)*/0u - , /*decltype(_impl_._cached_size_)*/{}} {} + +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT ODBDESIGN_EXPORT + PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 MatrixFile_StepRecordDefaultTypeInternal _MatrixFile_StepRecord_default_instance_; + +inline constexpr MatrixFile_LayerRecord::Impl_::Impl_( + ::_pbi::ConstantInitialized) noexcept + : name_( + &::google::protobuf::internal::fixed_address_empty_string, + ::_pbi::ConstantInitialized()), + dielectricname_( + &::google::protobuf::internal::fixed_address_empty_string, + ::_pbi::ConstantInitialized()), + startname_( + &::google::protobuf::internal::fixed_address_empty_string, + ::_pbi::ConstantInitialized()), + endname_( + &::google::protobuf::internal::fixed_address_empty_string, + ::_pbi::ConstantInitialized()), + oldname_( + &::google::protobuf::internal::fixed_address_empty_string, + ::_pbi::ConstantInitialized()), + addtype_( + &::google::protobuf::internal::fixed_address_empty_string, + ::_pbi::ConstantInitialized()), + row_{0u}, + context_{static_cast< ::Odb::Lib::Protobuf::MatrixFile_LayerRecord_Context >(0)}, + type_{static_cast< ::Odb::Lib::Protobuf::MatrixFile_LayerRecord_Type >(0)}, + polarity_{static_cast< ::Odb::Lib::Protobuf::Polarity >(0)}, + dielectrictype_{static_cast< ::Odb::Lib::Protobuf::MatrixFile_LayerRecord_DielectricType >(0)}, + form_{static_cast< ::Odb::Lib::Protobuf::MatrixFile_LayerRecord_Form >(0)}, + cutop_{0u}, + cubottom_{0u}, + ref_{0u}, + id_{0u}, + _cached_size_{0} {} + +template +PROTOBUF_CONSTEXPR MatrixFile_LayerRecord::MatrixFile_LayerRecord(::_pbi::ConstantInitialized) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : ::google::protobuf::Message(_class_data_.base()), +#else // PROTOBUF_CUSTOM_VTABLE + : ::google::protobuf::Message(), +#endif // PROTOBUF_CUSTOM_VTABLE + _impl_(::_pbi::ConstantInitialized()) { +} struct MatrixFile_LayerRecordDefaultTypeInternal { - PROTOBUF_CONSTEXPR MatrixFile_LayerRecordDefaultTypeInternal() - : _instance(::_pbi::ConstantInitialized{}) {} + PROTOBUF_CONSTEXPR MatrixFile_LayerRecordDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} ~MatrixFile_LayerRecordDefaultTypeInternal() {} union { MatrixFile_LayerRecord _instance; }; }; -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 MatrixFile_LayerRecordDefaultTypeInternal _MatrixFile_LayerRecord_default_instance_; -PROTOBUF_CONSTEXPR MatrixFile::MatrixFile( - ::_pbi::ConstantInitialized): _impl_{ - /*decltype(_impl_.steps_)*/{} - , /*decltype(_impl_.layers_)*/{} - , /*decltype(_impl_._cached_size_)*/{}} {} + +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT ODBDESIGN_EXPORT + PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 MatrixFile_LayerRecordDefaultTypeInternal _MatrixFile_LayerRecord_default_instance_; + +inline constexpr MatrixFile::Impl_::Impl_( + ::_pbi::ConstantInitialized) noexcept + : steps_{}, + layers_{}, + _cached_size_{0} {} + +template +PROTOBUF_CONSTEXPR MatrixFile::MatrixFile(::_pbi::ConstantInitialized) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : ::google::protobuf::Message(_class_data_.base()), +#else // PROTOBUF_CUSTOM_VTABLE + : ::google::protobuf::Message(), +#endif // PROTOBUF_CUSTOM_VTABLE + _impl_(::_pbi::ConstantInitialized()) { +} struct MatrixFileDefaultTypeInternal { - PROTOBUF_CONSTEXPR MatrixFileDefaultTypeInternal() - : _instance(::_pbi::ConstantInitialized{}) {} + PROTOBUF_CONSTEXPR MatrixFileDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} ~MatrixFileDefaultTypeInternal() {} union { MatrixFile _instance; }; }; -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 MatrixFileDefaultTypeInternal _MatrixFile_default_instance_; + +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT ODBDESIGN_EXPORT + PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 MatrixFileDefaultTypeInternal _MatrixFile_default_instance_; } // namespace Protobuf } // namespace Lib } // namespace Odb -static ::_pb::Metadata file_level_metadata_matrixfile_2eproto[3]; static const ::_pb::EnumDescriptor* file_level_enum_descriptors_matrixfile_2eproto[4]; -static constexpr ::_pb::ServiceDescriptor const** file_level_service_descriptors_matrixfile_2eproto = nullptr; - -const uint32_t TableStruct_matrixfile_2eproto::offsets[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = { - ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::Odb::Lib::Protobuf::MatrixFile_StepRecord, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - ~0u, // no _inlined_string_donated_ - PROTOBUF_FIELD_OFFSET(::Odb::Lib::Protobuf::MatrixFile_StepRecord, _impl_.column_), - PROTOBUF_FIELD_OFFSET(::Odb::Lib::Protobuf::MatrixFile_StepRecord, _impl_.id_), - PROTOBUF_FIELD_OFFSET(::Odb::Lib::Protobuf::MatrixFile_StepRecord, _impl_.name_), - ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::Odb::Lib::Protobuf::MatrixFile_LayerRecord, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - ~0u, // no _inlined_string_donated_ - PROTOBUF_FIELD_OFFSET(::Odb::Lib::Protobuf::MatrixFile_LayerRecord, _impl_.row_), - PROTOBUF_FIELD_OFFSET(::Odb::Lib::Protobuf::MatrixFile_LayerRecord, _impl_.context_), - PROTOBUF_FIELD_OFFSET(::Odb::Lib::Protobuf::MatrixFile_LayerRecord, _impl_.type_), - PROTOBUF_FIELD_OFFSET(::Odb::Lib::Protobuf::MatrixFile_LayerRecord, _impl_.name_), - PROTOBUF_FIELD_OFFSET(::Odb::Lib::Protobuf::MatrixFile_LayerRecord, _impl_.polarity_), - PROTOBUF_FIELD_OFFSET(::Odb::Lib::Protobuf::MatrixFile_LayerRecord, _impl_.dielectrictype_), - PROTOBUF_FIELD_OFFSET(::Odb::Lib::Protobuf::MatrixFile_LayerRecord, _impl_.dielectricname_), - PROTOBUF_FIELD_OFFSET(::Odb::Lib::Protobuf::MatrixFile_LayerRecord, _impl_.form_), - PROTOBUF_FIELD_OFFSET(::Odb::Lib::Protobuf::MatrixFile_LayerRecord, _impl_.cutop_), - PROTOBUF_FIELD_OFFSET(::Odb::Lib::Protobuf::MatrixFile_LayerRecord, _impl_.cubottom_), - PROTOBUF_FIELD_OFFSET(::Odb::Lib::Protobuf::MatrixFile_LayerRecord, _impl_.ref_), - PROTOBUF_FIELD_OFFSET(::Odb::Lib::Protobuf::MatrixFile_LayerRecord, _impl_.startname_), - PROTOBUF_FIELD_OFFSET(::Odb::Lib::Protobuf::MatrixFile_LayerRecord, _impl_.endname_), - PROTOBUF_FIELD_OFFSET(::Odb::Lib::Protobuf::MatrixFile_LayerRecord, _impl_.oldname_), - PROTOBUF_FIELD_OFFSET(::Odb::Lib::Protobuf::MatrixFile_LayerRecord, _impl_.addtype_), - PROTOBUF_FIELD_OFFSET(::Odb::Lib::Protobuf::MatrixFile_LayerRecord, _impl_.id_), - ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::Odb::Lib::Protobuf::MatrixFile, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - ~0u, // no _inlined_string_donated_ - PROTOBUF_FIELD_OFFSET(::Odb::Lib::Protobuf::MatrixFile, _impl_.steps_), - PROTOBUF_FIELD_OFFSET(::Odb::Lib::Protobuf::MatrixFile, _impl_.layers_), -}; -static const ::_pbi::MigrationSchema schemas[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = { - { 0, -1, -1, sizeof(::Odb::Lib::Protobuf::MatrixFile_StepRecord)}, - { 9, -1, -1, sizeof(::Odb::Lib::Protobuf::MatrixFile_LayerRecord)}, - { 31, -1, -1, sizeof(::Odb::Lib::Protobuf::MatrixFile)}, +static constexpr const ::_pb::ServiceDescriptor** + file_level_service_descriptors_matrixfile_2eproto = nullptr; +const ::uint32_t + TableStruct_matrixfile_2eproto::offsets[] ABSL_ATTRIBUTE_SECTION_VARIABLE( + protodesc_cold) = { + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::Odb::Lib::Protobuf::MatrixFile_StepRecord, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + ~0u, // no _split_ + ~0u, // no sizeof(Split) + PROTOBUF_FIELD_OFFSET(::Odb::Lib::Protobuf::MatrixFile_StepRecord, _impl_.column_), + PROTOBUF_FIELD_OFFSET(::Odb::Lib::Protobuf::MatrixFile_StepRecord, _impl_.id_), + PROTOBUF_FIELD_OFFSET(::Odb::Lib::Protobuf::MatrixFile_StepRecord, _impl_.name_), + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::Odb::Lib::Protobuf::MatrixFile_LayerRecord, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + ~0u, // no _split_ + ~0u, // no sizeof(Split) + PROTOBUF_FIELD_OFFSET(::Odb::Lib::Protobuf::MatrixFile_LayerRecord, _impl_.row_), + PROTOBUF_FIELD_OFFSET(::Odb::Lib::Protobuf::MatrixFile_LayerRecord, _impl_.context_), + PROTOBUF_FIELD_OFFSET(::Odb::Lib::Protobuf::MatrixFile_LayerRecord, _impl_.type_), + PROTOBUF_FIELD_OFFSET(::Odb::Lib::Protobuf::MatrixFile_LayerRecord, _impl_.name_), + PROTOBUF_FIELD_OFFSET(::Odb::Lib::Protobuf::MatrixFile_LayerRecord, _impl_.polarity_), + PROTOBUF_FIELD_OFFSET(::Odb::Lib::Protobuf::MatrixFile_LayerRecord, _impl_.dielectrictype_), + PROTOBUF_FIELD_OFFSET(::Odb::Lib::Protobuf::MatrixFile_LayerRecord, _impl_.dielectricname_), + PROTOBUF_FIELD_OFFSET(::Odb::Lib::Protobuf::MatrixFile_LayerRecord, _impl_.form_), + PROTOBUF_FIELD_OFFSET(::Odb::Lib::Protobuf::MatrixFile_LayerRecord, _impl_.cutop_), + PROTOBUF_FIELD_OFFSET(::Odb::Lib::Protobuf::MatrixFile_LayerRecord, _impl_.cubottom_), + PROTOBUF_FIELD_OFFSET(::Odb::Lib::Protobuf::MatrixFile_LayerRecord, _impl_.ref_), + PROTOBUF_FIELD_OFFSET(::Odb::Lib::Protobuf::MatrixFile_LayerRecord, _impl_.startname_), + PROTOBUF_FIELD_OFFSET(::Odb::Lib::Protobuf::MatrixFile_LayerRecord, _impl_.endname_), + PROTOBUF_FIELD_OFFSET(::Odb::Lib::Protobuf::MatrixFile_LayerRecord, _impl_.oldname_), + PROTOBUF_FIELD_OFFSET(::Odb::Lib::Protobuf::MatrixFile_LayerRecord, _impl_.addtype_), + PROTOBUF_FIELD_OFFSET(::Odb::Lib::Protobuf::MatrixFile_LayerRecord, _impl_.id_), + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::Odb::Lib::Protobuf::MatrixFile, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + ~0u, // no _split_ + ~0u, // no sizeof(Split) + PROTOBUF_FIELD_OFFSET(::Odb::Lib::Protobuf::MatrixFile, _impl_.steps_), + PROTOBUF_FIELD_OFFSET(::Odb::Lib::Protobuf::MatrixFile, _impl_.layers_), }; +static const ::_pbi::MigrationSchema + schemas[] ABSL_ATTRIBUTE_SECTION_VARIABLE(protodesc_cold) = { + {0, -1, -1, sizeof(::Odb::Lib::Protobuf::MatrixFile_StepRecord)}, + {11, -1, -1, sizeof(::Odb::Lib::Protobuf::MatrixFile_LayerRecord)}, + {35, -1, -1, sizeof(::Odb::Lib::Protobuf::MatrixFile)}, +}; static const ::_pb::Message* const file_default_instances[] = { - &::Odb::Lib::Protobuf::_MatrixFile_StepRecord_default_instance_._instance, - &::Odb::Lib::Protobuf::_MatrixFile_LayerRecord_default_instance_._instance, - &::Odb::Lib::Protobuf::_MatrixFile_default_instance_._instance, + &::Odb::Lib::Protobuf::_MatrixFile_StepRecord_default_instance_._instance, + &::Odb::Lib::Protobuf::_MatrixFile_LayerRecord_default_instance_._instance, + &::Odb::Lib::Protobuf::_MatrixFile_default_instance_._instance, }; - -const char descriptor_table_protodef_matrixfile_2eproto[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = - "\n\020matrixfile.proto\022\020Odb.Lib.Protobuf\032\013en" - "ums.proto\"\350\007\n\nMatrixFile\0226\n\005steps\030\001 \003(\0132" - "\'.Odb.Lib.Protobuf.MatrixFile.StepRecord" - "\0228\n\006layers\030\002 \003(\0132(.Odb.Lib.Protobuf.Matr" - "ixFile.LayerRecord\0326\n\nStepRecord\022\016\n\006colu" - "mn\030\001 \001(\r\022\n\n\002id\030\002 \001(\r\022\014\n\004name\030\003 \001(\t\032\257\006\n\013L" - "ayerRecord\022\013\n\003row\030\001 \001(\r\022A\n\007context\030\002 \001(\016" - "20.Odb.Lib.Protobuf.MatrixFile.LayerReco" - "rd.Context\022;\n\004type\030\003 \001(\0162-.Odb.Lib.Proto" - "buf.MatrixFile.LayerRecord.Type\022\014\n\004name\030" - "\004 \001(\t\022,\n\010polarity\030\005 \001(\0162\032.Odb.Lib.Protob" - "uf.Polarity\022O\n\016dielectricType\030\006 \001(\01627.Od" - "b.Lib.Protobuf.MatrixFile.LayerRecord.Di" - "electricType\022\026\n\016dielectricName\030\007 \001(\t\022;\n\004" - "form\030\010 \001(\0162-.Odb.Lib.Protobuf.MatrixFile" - ".LayerRecord.Form\022\r\n\005cuTop\030\t \001(\r\022\020\n\010cuBo" - "ttom\030\n \001(\r\022\013\n\003ref\030\013 \001(\r\022\021\n\tstartName\030\014 \001" - "(\t\022\017\n\007endName\030\r \001(\t\022\017\n\007oldName\030\016 \001(\t\022\017\n\007" - "addType\030\017 \001(\t\022\n\n\002id\030\021 \001(\r\"\300\001\n\004Type\022\n\n\006Si" - "gnal\020\000\022\017\n\013PowerGround\020\001\022\016\n\nDielectric\020\002\022" - "\t\n\005Mixed\020\003\022\016\n\nSolderMask\020\004\022\017\n\013SolderPast" - "e\020\005\022\016\n\nSilkScreen\020\006\022\t\n\005Drill\020\007\022\010\n\004Rout\020\010" - "\022\014\n\010Document\020\t\022\r\n\tComponent\020\n\022\010\n\004Mask\020\013\022" - "\023\n\017ConductivePaste\020\014\"\036\n\007Context\022\t\n\005Board" - "\020\000\022\010\n\004Misc\020\001\"1\n\016DielectricType\022\010\n\004None\020\000" - "\022\013\n\007Prepreg\020\001\022\010\n\004Core\020\002\"\033\n\004Form\022\t\n\005Rigid" - "\020\000\022\010\n\004Flex\020\001b\006proto3" - ; -static const ::_pbi::DescriptorTable* const descriptor_table_matrixfile_2eproto_deps[1] = { - &::descriptor_table_enums_2eproto, +const char descriptor_table_protodef_matrixfile_2eproto[] ABSL_ATTRIBUTE_SECTION_VARIABLE( + protodesc_cold) = { + "\n\020matrixfile.proto\022\020Odb.Lib.Protobuf\032\013en" + "ums.proto\"\350\007\n\nMatrixFile\0226\n\005steps\030\001 \003(\0132" + "\'.Odb.Lib.Protobuf.MatrixFile.StepRecord" + "\0228\n\006layers\030\002 \003(\0132(.Odb.Lib.Protobuf.Matr" + "ixFile.LayerRecord\0326\n\nStepRecord\022\016\n\006colu" + "mn\030\001 \001(\r\022\n\n\002id\030\002 \001(\r\022\014\n\004name\030\003 \001(\t\032\257\006\n\013L" + "ayerRecord\022\013\n\003row\030\001 \001(\r\022A\n\007context\030\002 \001(\016" + "20.Odb.Lib.Protobuf.MatrixFile.LayerReco" + "rd.Context\022;\n\004type\030\003 \001(\0162-.Odb.Lib.Proto" + "buf.MatrixFile.LayerRecord.Type\022\014\n\004name\030" + "\004 \001(\t\022,\n\010polarity\030\005 \001(\0162\032.Odb.Lib.Protob" + "uf.Polarity\022O\n\016dielectricType\030\006 \001(\01627.Od" + "b.Lib.Protobuf.MatrixFile.LayerRecord.Di" + "electricType\022\026\n\016dielectricName\030\007 \001(\t\022;\n\004" + "form\030\010 \001(\0162-.Odb.Lib.Protobuf.MatrixFile" + ".LayerRecord.Form\022\r\n\005cuTop\030\t \001(\r\022\020\n\010cuBo" + "ttom\030\n \001(\r\022\013\n\003ref\030\013 \001(\r\022\021\n\tstartName\030\014 \001" + "(\t\022\017\n\007endName\030\r \001(\t\022\017\n\007oldName\030\016 \001(\t\022\017\n\007" + "addType\030\017 \001(\t\022\n\n\002id\030\021 \001(\r\"\300\001\n\004Type\022\n\n\006Si" + "gnal\020\000\022\017\n\013PowerGround\020\001\022\016\n\nDielectric\020\002\022" + "\t\n\005Mixed\020\003\022\016\n\nSolderMask\020\004\022\017\n\013SolderPast" + "e\020\005\022\016\n\nSilkScreen\020\006\022\t\n\005Drill\020\007\022\010\n\004Rout\020\010" + "\022\014\n\010Document\020\t\022\r\n\tComponent\020\n\022\010\n\004Mask\020\013\022" + "\023\n\017ConductivePaste\020\014\"\036\n\007Context\022\t\n\005Board" + "\020\000\022\010\n\004Misc\020\001\"1\n\016DielectricType\022\010\n\004None\020\000" + "\022\013\n\007Prepreg\020\001\022\010\n\004Core\020\002\"\033\n\004Form\022\t\n\005Rigid" + "\020\000\022\010\n\004Flex\020\001b\006proto3" +}; +static const ::_pbi::DescriptorTable* const descriptor_table_matrixfile_2eproto_deps[1] = + { + &::descriptor_table_enums_2eproto, }; -static ::_pbi::once_flag descriptor_table_matrixfile_2eproto_once; -const ::_pbi::DescriptorTable descriptor_table_matrixfile_2eproto = { - false, false, 1060, descriptor_table_protodef_matrixfile_2eproto, +static ::absl::once_flag descriptor_table_matrixfile_2eproto_once; +PROTOBUF_CONSTINIT const ::_pbi::DescriptorTable descriptor_table_matrixfile_2eproto = { + false, + false, + 1060, + descriptor_table_protodef_matrixfile_2eproto, "matrixfile.proto", - &descriptor_table_matrixfile_2eproto_once, descriptor_table_matrixfile_2eproto_deps, 1, 3, - schemas, file_default_instances, TableStruct_matrixfile_2eproto::offsets, - file_level_metadata_matrixfile_2eproto, file_level_enum_descriptors_matrixfile_2eproto, + &descriptor_table_matrixfile_2eproto_once, + descriptor_table_matrixfile_2eproto_deps, + 1, + 3, + schemas, + file_default_instances, + TableStruct_matrixfile_2eproto::offsets, + file_level_enum_descriptors_matrixfile_2eproto, file_level_service_descriptors_matrixfile_2eproto, }; -PROTOBUF_ATTRIBUTE_WEAK const ::_pbi::DescriptorTable* descriptor_table_matrixfile_2eproto_getter() { - return &descriptor_table_matrixfile_2eproto; -} - -// Force running AddDescriptors() at dynamic initialization time. -PROTOBUF_ATTRIBUTE_INIT_PRIORITY2 static ::_pbi::AddDescriptorsRunner dynamic_init_dummy_matrixfile_2eproto(&descriptor_table_matrixfile_2eproto); namespace Odb { namespace Lib { namespace Protobuf { -const ::PROTOBUF_NAMESPACE_ID::EnumDescriptor* MatrixFile_LayerRecord_Type_descriptor() { - ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(&descriptor_table_matrixfile_2eproto); +const ::google::protobuf::EnumDescriptor* MatrixFile_LayerRecord_Type_descriptor() { + ::google::protobuf::internal::AssignDescriptors(&descriptor_table_matrixfile_2eproto); return file_level_enum_descriptors_matrixfile_2eproto[0]; } +PROTOBUF_CONSTINIT const uint32_t MatrixFile_LayerRecord_Type_internal_data_[] = { + 851968u, 0u, }; bool MatrixFile_LayerRecord_Type_IsValid(int value) { - switch (value) { - case 0: - case 1: - case 2: - case 3: - case 4: - case 5: - case 6: - case 7: - case 8: - case 9: - case 10: - case 11: - case 12: - return true; - default: - return false; - } + return 0 <= value && value <= 12; } +#if (__cplusplus < 201703) && \ + (!defined(_MSC_VER) || (_MSC_VER >= 1900 && _MSC_VER < 1912)) -#if (__cplusplus < 201703) && (!defined(_MSC_VER) || (_MSC_VER >= 1900 && _MSC_VER < 1912)) constexpr MatrixFile_LayerRecord_Type MatrixFile_LayerRecord::Signal; constexpr MatrixFile_LayerRecord_Type MatrixFile_LayerRecord::PowerGround; constexpr MatrixFile_LayerRecord_Type MatrixFile_LayerRecord::Dielectric; @@ -232,300 +283,340 @@ constexpr MatrixFile_LayerRecord_Type MatrixFile_LayerRecord::ConductivePaste; constexpr MatrixFile_LayerRecord_Type MatrixFile_LayerRecord::Type_MIN; constexpr MatrixFile_LayerRecord_Type MatrixFile_LayerRecord::Type_MAX; constexpr int MatrixFile_LayerRecord::Type_ARRAYSIZE; -#endif // (__cplusplus < 201703) && (!defined(_MSC_VER) || (_MSC_VER >= 1900 && _MSC_VER < 1912)) -const ::PROTOBUF_NAMESPACE_ID::EnumDescriptor* MatrixFile_LayerRecord_Context_descriptor() { - ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(&descriptor_table_matrixfile_2eproto); + +#endif // (__cplusplus < 201703) && + // (!defined(_MSC_VER) || (_MSC_VER >= 1900 && _MSC_VER < 1912)) +const ::google::protobuf::EnumDescriptor* MatrixFile_LayerRecord_Context_descriptor() { + ::google::protobuf::internal::AssignDescriptors(&descriptor_table_matrixfile_2eproto); return file_level_enum_descriptors_matrixfile_2eproto[1]; } +PROTOBUF_CONSTINIT const uint32_t MatrixFile_LayerRecord_Context_internal_data_[] = { + 131072u, 0u, }; bool MatrixFile_LayerRecord_Context_IsValid(int value) { - switch (value) { - case 0: - case 1: - return true; - default: - return false; - } + return 0 <= value && value <= 1; } +#if (__cplusplus < 201703) && \ + (!defined(_MSC_VER) || (_MSC_VER >= 1900 && _MSC_VER < 1912)) -#if (__cplusplus < 201703) && (!defined(_MSC_VER) || (_MSC_VER >= 1900 && _MSC_VER < 1912)) constexpr MatrixFile_LayerRecord_Context MatrixFile_LayerRecord::Board; constexpr MatrixFile_LayerRecord_Context MatrixFile_LayerRecord::Misc; constexpr MatrixFile_LayerRecord_Context MatrixFile_LayerRecord::Context_MIN; constexpr MatrixFile_LayerRecord_Context MatrixFile_LayerRecord::Context_MAX; constexpr int MatrixFile_LayerRecord::Context_ARRAYSIZE; -#endif // (__cplusplus < 201703) && (!defined(_MSC_VER) || (_MSC_VER >= 1900 && _MSC_VER < 1912)) -const ::PROTOBUF_NAMESPACE_ID::EnumDescriptor* MatrixFile_LayerRecord_DielectricType_descriptor() { - ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(&descriptor_table_matrixfile_2eproto); + +#endif // (__cplusplus < 201703) && + // (!defined(_MSC_VER) || (_MSC_VER >= 1900 && _MSC_VER < 1912)) +const ::google::protobuf::EnumDescriptor* MatrixFile_LayerRecord_DielectricType_descriptor() { + ::google::protobuf::internal::AssignDescriptors(&descriptor_table_matrixfile_2eproto); return file_level_enum_descriptors_matrixfile_2eproto[2]; } +PROTOBUF_CONSTINIT const uint32_t MatrixFile_LayerRecord_DielectricType_internal_data_[] = { + 196608u, 0u, }; bool MatrixFile_LayerRecord_DielectricType_IsValid(int value) { - switch (value) { - case 0: - case 1: - case 2: - return true; - default: - return false; - } + return 0 <= value && value <= 2; } +#if (__cplusplus < 201703) && \ + (!defined(_MSC_VER) || (_MSC_VER >= 1900 && _MSC_VER < 1912)) -#if (__cplusplus < 201703) && (!defined(_MSC_VER) || (_MSC_VER >= 1900 && _MSC_VER < 1912)) constexpr MatrixFile_LayerRecord_DielectricType MatrixFile_LayerRecord::None; constexpr MatrixFile_LayerRecord_DielectricType MatrixFile_LayerRecord::Prepreg; constexpr MatrixFile_LayerRecord_DielectricType MatrixFile_LayerRecord::Core; constexpr MatrixFile_LayerRecord_DielectricType MatrixFile_LayerRecord::DielectricType_MIN; constexpr MatrixFile_LayerRecord_DielectricType MatrixFile_LayerRecord::DielectricType_MAX; constexpr int MatrixFile_LayerRecord::DielectricType_ARRAYSIZE; -#endif // (__cplusplus < 201703) && (!defined(_MSC_VER) || (_MSC_VER >= 1900 && _MSC_VER < 1912)) -const ::PROTOBUF_NAMESPACE_ID::EnumDescriptor* MatrixFile_LayerRecord_Form_descriptor() { - ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(&descriptor_table_matrixfile_2eproto); + +#endif // (__cplusplus < 201703) && + // (!defined(_MSC_VER) || (_MSC_VER >= 1900 && _MSC_VER < 1912)) +const ::google::protobuf::EnumDescriptor* MatrixFile_LayerRecord_Form_descriptor() { + ::google::protobuf::internal::AssignDescriptors(&descriptor_table_matrixfile_2eproto); return file_level_enum_descriptors_matrixfile_2eproto[3]; } +PROTOBUF_CONSTINIT const uint32_t MatrixFile_LayerRecord_Form_internal_data_[] = { + 131072u, 0u, }; bool MatrixFile_LayerRecord_Form_IsValid(int value) { - switch (value) { - case 0: - case 1: - return true; - default: - return false; - } + return 0 <= value && value <= 1; } +#if (__cplusplus < 201703) && \ + (!defined(_MSC_VER) || (_MSC_VER >= 1900 && _MSC_VER < 1912)) -#if (__cplusplus < 201703) && (!defined(_MSC_VER) || (_MSC_VER >= 1900 && _MSC_VER < 1912)) constexpr MatrixFile_LayerRecord_Form MatrixFile_LayerRecord::Rigid; constexpr MatrixFile_LayerRecord_Form MatrixFile_LayerRecord::Flex; constexpr MatrixFile_LayerRecord_Form MatrixFile_LayerRecord::Form_MIN; constexpr MatrixFile_LayerRecord_Form MatrixFile_LayerRecord::Form_MAX; constexpr int MatrixFile_LayerRecord::Form_ARRAYSIZE; -#endif // (__cplusplus < 201703) && (!defined(_MSC_VER) || (_MSC_VER >= 1900 && _MSC_VER < 1912)) +#endif // (__cplusplus < 201703) && + // (!defined(_MSC_VER) || (_MSC_VER >= 1900 && _MSC_VER < 1912)) // =================================================================== class MatrixFile_StepRecord::_Internal { public: }; -MatrixFile_StepRecord::MatrixFile_StepRecord(::PROTOBUF_NAMESPACE_ID::Arena* arena, - bool is_message_owned) - : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned) { - SharedCtor(arena, is_message_owned); +MatrixFile_StepRecord::MatrixFile_StepRecord(::google::protobuf::Arena* arena) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : ::google::protobuf::Message(arena, _class_data_.base()) { +#else // PROTOBUF_CUSTOM_VTABLE + : ::google::protobuf::Message(arena) { +#endif // PROTOBUF_CUSTOM_VTABLE + SharedCtor(arena); // @@protoc_insertion_point(arena_constructor:Odb.Lib.Protobuf.MatrixFile.StepRecord) } -MatrixFile_StepRecord::MatrixFile_StepRecord(const MatrixFile_StepRecord& from) - : ::PROTOBUF_NAMESPACE_ID::Message() { - MatrixFile_StepRecord* const _this = this; (void)_this; - new (&_impl_) Impl_{ - decltype(_impl_.name_){} - , decltype(_impl_.column_){} - , decltype(_impl_.id_){} - , /*decltype(_impl_._cached_size_)*/{}}; - - _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); - _impl_.name_.InitDefault(); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - _impl_.name_.Set("", GetArenaForAllocation()); - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (!from._internal_name().empty()) { - _this->_impl_.name_.Set(from._internal_name(), - _this->GetArenaForAllocation()); - } - ::memcpy(&_impl_.column_, &from._impl_.column_, - static_cast(reinterpret_cast(&_impl_.id_) - - reinterpret_cast(&_impl_.column_)) + sizeof(_impl_.id_)); +inline PROTOBUF_NDEBUG_INLINE MatrixFile_StepRecord::Impl_::Impl_( + ::google::protobuf::internal::InternalVisibility visibility, ::google::protobuf::Arena* arena, + const Impl_& from, const ::Odb::Lib::Protobuf::MatrixFile_StepRecord& from_msg) + : name_(arena, from.name_), + _cached_size_{0} {} + +MatrixFile_StepRecord::MatrixFile_StepRecord( + ::google::protobuf::Arena* arena, + const MatrixFile_StepRecord& from) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : ::google::protobuf::Message(arena, _class_data_.base()) { +#else // PROTOBUF_CUSTOM_VTABLE + : ::google::protobuf::Message(arena) { +#endif // PROTOBUF_CUSTOM_VTABLE + MatrixFile_StepRecord* const _this = this; + (void)_this; + _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( + from._internal_metadata_); + new (&_impl_) Impl_(internal_visibility(), arena, from._impl_, from); + ::memcpy(reinterpret_cast(&_impl_) + + offsetof(Impl_, column_), + reinterpret_cast(&from._impl_) + + offsetof(Impl_, column_), + offsetof(Impl_, id_) - + offsetof(Impl_, column_) + + sizeof(Impl_::id_)); + // @@protoc_insertion_point(copy_constructor:Odb.Lib.Protobuf.MatrixFile.StepRecord) } - -inline void MatrixFile_StepRecord::SharedCtor( - ::_pb::Arena* arena, bool is_message_owned) { - (void)arena; - (void)is_message_owned; - new (&_impl_) Impl_{ - decltype(_impl_.name_){} - , decltype(_impl_.column_){0u} - , decltype(_impl_.id_){0u} - , /*decltype(_impl_._cached_size_)*/{} - }; - _impl_.name_.InitDefault(); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - _impl_.name_.Set("", GetArenaForAllocation()); - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING +inline PROTOBUF_NDEBUG_INLINE MatrixFile_StepRecord::Impl_::Impl_( + ::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* arena) + : name_(arena), + _cached_size_{0} {} + +inline void MatrixFile_StepRecord::SharedCtor(::_pb::Arena* arena) { + new (&_impl_) Impl_(internal_visibility(), arena); + ::memset(reinterpret_cast(&_impl_) + + offsetof(Impl_, column_), + 0, + offsetof(Impl_, id_) - + offsetof(Impl_, column_) + + sizeof(Impl_::id_)); } - MatrixFile_StepRecord::~MatrixFile_StepRecord() { // @@protoc_insertion_point(destructor:Odb.Lib.Protobuf.MatrixFile.StepRecord) - if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) { - (void)arena; - return; - } - SharedDtor(); + SharedDtor(*this); } - -inline void MatrixFile_StepRecord::SharedDtor() { - GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); - _impl_.name_.Destroy(); +inline void MatrixFile_StepRecord::SharedDtor(MessageLite& self) { + MatrixFile_StepRecord& this_ = static_cast(self); + this_._internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); + ABSL_DCHECK(this_.GetArena() == nullptr); + this_._impl_.name_.Destroy(); + this_._impl_.~Impl_(); } -void MatrixFile_StepRecord::SetCachedSize(int size) const { - _impl_._cached_size_.Set(size); +inline void* MatrixFile_StepRecord::PlacementNew_(const void*, void* mem, + ::google::protobuf::Arena* arena) { + return ::new (mem) MatrixFile_StepRecord(arena); +} +constexpr auto MatrixFile_StepRecord::InternalNewImpl_() { + return ::google::protobuf::internal::MessageCreator::CopyInit(sizeof(MatrixFile_StepRecord), + alignof(MatrixFile_StepRecord)); +} +PROTOBUF_CONSTINIT +PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 +const ::google::protobuf::internal::ClassDataFull MatrixFile_StepRecord::_class_data_ = { + ::google::protobuf::internal::ClassData{ + &_MatrixFile_StepRecord_default_instance_._instance, + &_table_.header, + nullptr, // OnDemandRegisterArenaDtor + nullptr, // IsInitialized + &MatrixFile_StepRecord::MergeImpl, + ::google::protobuf::Message::GetNewImpl(), +#if defined(PROTOBUF_CUSTOM_VTABLE) + &MatrixFile_StepRecord::SharedDtor, + ::google::protobuf::Message::GetClearImpl(), &MatrixFile_StepRecord::ByteSizeLong, + &MatrixFile_StepRecord::_InternalSerialize, +#endif // PROTOBUF_CUSTOM_VTABLE + PROTOBUF_FIELD_OFFSET(MatrixFile_StepRecord, _impl_._cached_size_), + false, + }, + &MatrixFile_StepRecord::kDescriptorMethods, + &descriptor_table_matrixfile_2eproto, + nullptr, // tracker +}; +const ::google::protobuf::internal::ClassData* MatrixFile_StepRecord::GetClassData() const { + ::google::protobuf::internal::PrefetchToLocalCache(&_class_data_); + ::google::protobuf::internal::PrefetchToLocalCache(_class_data_.tc_table); + return _class_data_.base(); } +PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 +const ::_pbi::TcParseTable<2, 3, 0, 51, 2> MatrixFile_StepRecord::_table_ = { + { + 0, // no _has_bits_ + 0, // no _extensions_ + 3, 24, // max_field_number, fast_idx_mask + offsetof(decltype(_table_), field_lookup_table), + 4294967288, // skipmap + offsetof(decltype(_table_), field_entries), + 3, // num_field_entries + 0, // num_aux_entries + offsetof(decltype(_table_), field_names), // no aux_entries + _class_data_.base(), + nullptr, // post_loop_handler + ::_pbi::TcParser::GenericFallback, // fallback + #ifdef PROTOBUF_PREFETCH_PARSE_TABLE + ::_pbi::TcParser::GetTable<::Odb::Lib::Protobuf::MatrixFile_StepRecord>(), // to_prefetch + #endif // PROTOBUF_PREFETCH_PARSE_TABLE + }, {{ + {::_pbi::TcParser::MiniParse, {}}, + // uint32 column = 1; + {::_pbi::TcParser::SingularVarintNoZag1<::uint32_t, offsetof(MatrixFile_StepRecord, _impl_.column_), 63>(), + {8, 63, 0, PROTOBUF_FIELD_OFFSET(MatrixFile_StepRecord, _impl_.column_)}}, + // uint32 id = 2; + {::_pbi::TcParser::SingularVarintNoZag1<::uint32_t, offsetof(MatrixFile_StepRecord, _impl_.id_), 63>(), + {16, 63, 0, PROTOBUF_FIELD_OFFSET(MatrixFile_StepRecord, _impl_.id_)}}, + // string name = 3; + {::_pbi::TcParser::FastUS1, + {26, 63, 0, PROTOBUF_FIELD_OFFSET(MatrixFile_StepRecord, _impl_.name_)}}, + }}, {{ + 65535, 65535 + }}, {{ + // uint32 column = 1; + {PROTOBUF_FIELD_OFFSET(MatrixFile_StepRecord, _impl_.column_), 0, 0, + (0 | ::_fl::kFcSingular | ::_fl::kUInt32)}, + // uint32 id = 2; + {PROTOBUF_FIELD_OFFSET(MatrixFile_StepRecord, _impl_.id_), 0, 0, + (0 | ::_fl::kFcSingular | ::_fl::kUInt32)}, + // string name = 3; + {PROTOBUF_FIELD_OFFSET(MatrixFile_StepRecord, _impl_.name_), 0, 0, + (0 | ::_fl::kFcSingular | ::_fl::kUtf8String | ::_fl::kRepAString)}, + }}, + // no aux_entries + {{ + "\46\0\0\4\0\0\0\0" + "Odb.Lib.Protobuf.MatrixFile.StepRecord" + "name" + }}, +}; -void MatrixFile_StepRecord::Clear() { +PROTOBUF_NOINLINE void MatrixFile_StepRecord::Clear() { // @@protoc_insertion_point(message_clear_start:Odb.Lib.Protobuf.MatrixFile.StepRecord) - uint32_t cached_has_bits = 0; + ::google::protobuf::internal::TSanWrite(&_impl_); + ::uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; _impl_.name_.ClearToEmpty(); - ::memset(&_impl_.column_, 0, static_cast( + ::memset(&_impl_.column_, 0, static_cast<::size_t>( reinterpret_cast(&_impl_.id_) - reinterpret_cast(&_impl_.column_)) + sizeof(_impl_.id_)); - _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); -} - -const char* MatrixFile_StepRecord::_InternalParse(const char* ptr, ::_pbi::ParseContext* ctx) { -#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure - while (!ctx->Done(&ptr)) { - uint32_t tag; - ptr = ::_pbi::ReadTag(ptr, &tag); - switch (tag >> 3) { - // uint32 column = 1; - case 1: - if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 8)) { - _impl_.column_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr); - CHK_(ptr); - } else - goto handle_unusual; - continue; - // uint32 id = 2; - case 2: - if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 16)) { - _impl_.id_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr); - CHK_(ptr); - } else - goto handle_unusual; - continue; - // string name = 3; - case 3: - if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 26)) { - auto str = _internal_mutable_name(); - ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); - CHK_(ptr); - CHK_(::_pbi::VerifyUTF8(str, "Odb.Lib.Protobuf.MatrixFile.StepRecord.name")); - } else - goto handle_unusual; - continue; - default: - goto handle_unusual; - } // switch - handle_unusual: - if ((tag == 0) || ((tag & 7) == 4)) { - CHK_(ptr); - ctx->SetLastTag(tag); - goto message_done; - } - ptr = UnknownFieldParse( - tag, - _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(), - ptr, ctx); - CHK_(ptr != nullptr); - } // while -message_done: - return ptr; -failure: - ptr = nullptr; - goto message_done; -#undef CHK_ -} - -uint8_t* MatrixFile_StepRecord::_InternalSerialize( - uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { - // @@protoc_insertion_point(serialize_to_array_start:Odb.Lib.Protobuf.MatrixFile.StepRecord) - uint32_t cached_has_bits = 0; - (void) cached_has_bits; - - // uint32 column = 1; - if (this->_internal_column() != 0) { - target = stream->EnsureSpace(target); - target = ::_pbi::WireFormatLite::WriteUInt32ToArray(1, this->_internal_column(), target); - } - - // uint32 id = 2; - if (this->_internal_id() != 0) { - target = stream->EnsureSpace(target); - target = ::_pbi::WireFormatLite::WriteUInt32ToArray(2, this->_internal_id(), target); - } - - // string name = 3; - 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, - "Odb.Lib.Protobuf.MatrixFile.StepRecord.name"); - target = stream->WriteStringMaybeAliased( - 3, this->_internal_name(), target); - } - - if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = ::_pbi::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:Odb.Lib.Protobuf.MatrixFile.StepRecord) - return target; + _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); } -size_t MatrixFile_StepRecord::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:Odb.Lib.Protobuf.MatrixFile.StepRecord) - size_t total_size = 0; - - uint32_t cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - // string name = 3; - if (!this->_internal_name().empty()) { - total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( - this->_internal_name()); - } - - // uint32 column = 1; - if (this->_internal_column() != 0) { - total_size += ::_pbi::WireFormatLite::UInt32SizePlusOne(this->_internal_column()); - } - - // uint32 id = 2; - if (this->_internal_id() != 0) { - total_size += ::_pbi::WireFormatLite::UInt32SizePlusOne(this->_internal_id()); - } - - return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); -} - -const ::PROTOBUF_NAMESPACE_ID::Message::ClassData MatrixFile_StepRecord::_class_data_ = { - ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSourceCheck, - MatrixFile_StepRecord::MergeImpl -}; -const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*MatrixFile_StepRecord::GetClassData() const { return &_class_data_; } - - -void MatrixFile_StepRecord::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg) { +#if defined(PROTOBUF_CUSTOM_VTABLE) + ::uint8_t* MatrixFile_StepRecord::_InternalSerialize( + const MessageLite& base, ::uint8_t* target, + ::google::protobuf::io::EpsCopyOutputStream* stream) { + const MatrixFile_StepRecord& this_ = static_cast(base); +#else // PROTOBUF_CUSTOM_VTABLE + ::uint8_t* MatrixFile_StepRecord::_InternalSerialize( + ::uint8_t* target, + ::google::protobuf::io::EpsCopyOutputStream* stream) const { + const MatrixFile_StepRecord& this_ = *this; +#endif // PROTOBUF_CUSTOM_VTABLE + // @@protoc_insertion_point(serialize_to_array_start:Odb.Lib.Protobuf.MatrixFile.StepRecord) + ::uint32_t cached_has_bits = 0; + (void)cached_has_bits; + + // uint32 column = 1; + if (this_._internal_column() != 0) { + target = stream->EnsureSpace(target); + target = ::_pbi::WireFormatLite::WriteUInt32ToArray( + 1, this_._internal_column(), target); + } + + // uint32 id = 2; + if (this_._internal_id() != 0) { + target = stream->EnsureSpace(target); + target = ::_pbi::WireFormatLite::WriteUInt32ToArray( + 2, this_._internal_id(), target); + } + + // string name = 3; + if (!this_._internal_name().empty()) { + const std::string& _s = this_._internal_name(); + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + _s.data(), static_cast(_s.length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "Odb.Lib.Protobuf.MatrixFile.StepRecord.name"); + target = stream->WriteStringMaybeAliased(3, _s, target); + } + + if (PROTOBUF_PREDICT_FALSE(this_._internal_metadata_.have_unknown_fields())) { + target = + ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( + this_._internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); + } + // @@protoc_insertion_point(serialize_to_array_end:Odb.Lib.Protobuf.MatrixFile.StepRecord) + return target; + } + +#if defined(PROTOBUF_CUSTOM_VTABLE) + ::size_t MatrixFile_StepRecord::ByteSizeLong(const MessageLite& base) { + const MatrixFile_StepRecord& this_ = static_cast(base); +#else // PROTOBUF_CUSTOM_VTABLE + ::size_t MatrixFile_StepRecord::ByteSizeLong() const { + const MatrixFile_StepRecord& this_ = *this; +#endif // PROTOBUF_CUSTOM_VTABLE + // @@protoc_insertion_point(message_byte_size_start:Odb.Lib.Protobuf.MatrixFile.StepRecord) + ::size_t total_size = 0; + + ::uint32_t cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void)cached_has_bits; + + ::_pbi::Prefetch5LinesFrom7Lines(&this_); + { + // string name = 3; + if (!this_._internal_name().empty()) { + total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize( + this_._internal_name()); + } + // uint32 column = 1; + if (this_._internal_column() != 0) { + total_size += ::_pbi::WireFormatLite::UInt32SizePlusOne( + this_._internal_column()); + } + // uint32 id = 2; + if (this_._internal_id() != 0) { + total_size += ::_pbi::WireFormatLite::UInt32SizePlusOne( + this_._internal_id()); + } + } + return this_.MaybeComputeUnknownFieldsSize(total_size, + &this_._impl_._cached_size_); + } + +void MatrixFile_StepRecord::MergeImpl(::google::protobuf::MessageLite& to_msg, const ::google::protobuf::MessageLite& from_msg) { auto* const _this = static_cast(&to_msg); auto& from = static_cast(from_msg); // @@protoc_insertion_point(class_specific_merge_from_start:Odb.Lib.Protobuf.MatrixFile.StepRecord) - GOOGLE_DCHECK_NE(&from, _this); - uint32_t cached_has_bits = 0; + ABSL_DCHECK_NE(&from, _this); + ::uint32_t cached_has_bits = 0; (void) cached_has_bits; if (!from._internal_name().empty()) { _this->_internal_set_name(from._internal_name()); } if (from._internal_column() != 0) { - _this->_internal_set_column(from._internal_column()); + _this->_impl_.column_ = from._impl_.column_; } if (from._internal_id() != 0) { - _this->_internal_set_id(from._internal_id()); + _this->_impl_.id_ = from._impl_.id_; } - _this->_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); + _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); } void MatrixFile_StepRecord::CopyFrom(const MatrixFile_StepRecord& from) { @@ -535,20 +626,14 @@ void MatrixFile_StepRecord::CopyFrom(const MatrixFile_StepRecord& from) { MergeFrom(from); } -bool MatrixFile_StepRecord::IsInitialized() const { - return true; -} -void MatrixFile_StepRecord::InternalSwap(MatrixFile_StepRecord* other) { +void MatrixFile_StepRecord::InternalSwap(MatrixFile_StepRecord* PROTOBUF_RESTRICT other) { using std::swap; - auto* lhs_arena = GetArenaForAllocation(); - auto* rhs_arena = other->GetArenaForAllocation(); + auto* arena = GetArena(); + ABSL_DCHECK_EQ(arena, other->GetArena()); _internal_metadata_.InternalSwap(&other->_internal_metadata_); - ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( - &_impl_.name_, lhs_arena, - &other->_impl_.name_, rhs_arena - ); - ::PROTOBUF_NAMESPACE_ID::internal::memswap< + ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.name_, &other->_impl_.name_, arena); + ::google::protobuf::internal::memswap< PROTOBUF_FIELD_OFFSET(MatrixFile_StepRecord, _impl_.id_) + sizeof(MatrixFile_StepRecord::_impl_.id_) - PROTOBUF_FIELD_OFFSET(MatrixFile_StepRecord, _impl_.column_)>( @@ -556,176 +641,282 @@ void MatrixFile_StepRecord::InternalSwap(MatrixFile_StepRecord* other) { reinterpret_cast(&other->_impl_.column_)); } -::PROTOBUF_NAMESPACE_ID::Metadata MatrixFile_StepRecord::GetMetadata() const { - return ::_pbi::AssignDescriptors( - &descriptor_table_matrixfile_2eproto_getter, &descriptor_table_matrixfile_2eproto_once, - file_level_metadata_matrixfile_2eproto[0]); +::google::protobuf::Metadata MatrixFile_StepRecord::GetMetadata() const { + return ::google::protobuf::Message::GetMetadataImpl(GetClassData()->full()); } - // =================================================================== class MatrixFile_LayerRecord::_Internal { public: }; -MatrixFile_LayerRecord::MatrixFile_LayerRecord(::PROTOBUF_NAMESPACE_ID::Arena* arena, - bool is_message_owned) - : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned) { - SharedCtor(arena, is_message_owned); +MatrixFile_LayerRecord::MatrixFile_LayerRecord(::google::protobuf::Arena* arena) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : ::google::protobuf::Message(arena, _class_data_.base()) { +#else // PROTOBUF_CUSTOM_VTABLE + : ::google::protobuf::Message(arena) { +#endif // PROTOBUF_CUSTOM_VTABLE + SharedCtor(arena); // @@protoc_insertion_point(arena_constructor:Odb.Lib.Protobuf.MatrixFile.LayerRecord) } -MatrixFile_LayerRecord::MatrixFile_LayerRecord(const MatrixFile_LayerRecord& from) - : ::PROTOBUF_NAMESPACE_ID::Message() { - MatrixFile_LayerRecord* const _this = this; (void)_this; - new (&_impl_) Impl_{ - decltype(_impl_.name_){} - , decltype(_impl_.dielectricname_){} - , decltype(_impl_.startname_){} - , decltype(_impl_.endname_){} - , decltype(_impl_.oldname_){} - , decltype(_impl_.addtype_){} - , decltype(_impl_.row_){} - , decltype(_impl_.context_){} - , decltype(_impl_.type_){} - , decltype(_impl_.polarity_){} - , decltype(_impl_.dielectrictype_){} - , decltype(_impl_.form_){} - , decltype(_impl_.cutop_){} - , decltype(_impl_.cubottom_){} - , decltype(_impl_.ref_){} - , decltype(_impl_.id_){} - , /*decltype(_impl_._cached_size_)*/{}}; - - _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); - _impl_.name_.InitDefault(); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - _impl_.name_.Set("", GetArenaForAllocation()); - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (!from._internal_name().empty()) { - _this->_impl_.name_.Set(from._internal_name(), - _this->GetArenaForAllocation()); - } - _impl_.dielectricname_.InitDefault(); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - _impl_.dielectricname_.Set("", GetArenaForAllocation()); - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (!from._internal_dielectricname().empty()) { - _this->_impl_.dielectricname_.Set(from._internal_dielectricname(), - _this->GetArenaForAllocation()); - } - _impl_.startname_.InitDefault(); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - _impl_.startname_.Set("", GetArenaForAllocation()); - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (!from._internal_startname().empty()) { - _this->_impl_.startname_.Set(from._internal_startname(), - _this->GetArenaForAllocation()); - } - _impl_.endname_.InitDefault(); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - _impl_.endname_.Set("", GetArenaForAllocation()); - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (!from._internal_endname().empty()) { - _this->_impl_.endname_.Set(from._internal_endname(), - _this->GetArenaForAllocation()); - } - _impl_.oldname_.InitDefault(); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - _impl_.oldname_.Set("", GetArenaForAllocation()); - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (!from._internal_oldname().empty()) { - _this->_impl_.oldname_.Set(from._internal_oldname(), - _this->GetArenaForAllocation()); - } - _impl_.addtype_.InitDefault(); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - _impl_.addtype_.Set("", GetArenaForAllocation()); - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (!from._internal_addtype().empty()) { - _this->_impl_.addtype_.Set(from._internal_addtype(), - _this->GetArenaForAllocation()); - } - ::memcpy(&_impl_.row_, &from._impl_.row_, - static_cast(reinterpret_cast(&_impl_.id_) - - reinterpret_cast(&_impl_.row_)) + sizeof(_impl_.id_)); +inline PROTOBUF_NDEBUG_INLINE MatrixFile_LayerRecord::Impl_::Impl_( + ::google::protobuf::internal::InternalVisibility visibility, ::google::protobuf::Arena* arena, + const Impl_& from, const ::Odb::Lib::Protobuf::MatrixFile_LayerRecord& from_msg) + : name_(arena, from.name_), + dielectricname_(arena, from.dielectricname_), + startname_(arena, from.startname_), + endname_(arena, from.endname_), + oldname_(arena, from.oldname_), + addtype_(arena, from.addtype_), + _cached_size_{0} {} + +MatrixFile_LayerRecord::MatrixFile_LayerRecord( + ::google::protobuf::Arena* arena, + const MatrixFile_LayerRecord& from) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : ::google::protobuf::Message(arena, _class_data_.base()) { +#else // PROTOBUF_CUSTOM_VTABLE + : ::google::protobuf::Message(arena) { +#endif // PROTOBUF_CUSTOM_VTABLE + MatrixFile_LayerRecord* const _this = this; + (void)_this; + _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( + from._internal_metadata_); + new (&_impl_) Impl_(internal_visibility(), arena, from._impl_, from); + ::memcpy(reinterpret_cast(&_impl_) + + offsetof(Impl_, row_), + reinterpret_cast(&from._impl_) + + offsetof(Impl_, row_), + offsetof(Impl_, id_) - + offsetof(Impl_, row_) + + sizeof(Impl_::id_)); + // @@protoc_insertion_point(copy_constructor:Odb.Lib.Protobuf.MatrixFile.LayerRecord) } - -inline void MatrixFile_LayerRecord::SharedCtor( - ::_pb::Arena* arena, bool is_message_owned) { - (void)arena; - (void)is_message_owned; - new (&_impl_) Impl_{ - decltype(_impl_.name_){} - , decltype(_impl_.dielectricname_){} - , decltype(_impl_.startname_){} - , decltype(_impl_.endname_){} - , decltype(_impl_.oldname_){} - , decltype(_impl_.addtype_){} - , decltype(_impl_.row_){0u} - , decltype(_impl_.context_){0} - , decltype(_impl_.type_){0} - , decltype(_impl_.polarity_){0} - , decltype(_impl_.dielectrictype_){0} - , decltype(_impl_.form_){0} - , decltype(_impl_.cutop_){0u} - , decltype(_impl_.cubottom_){0u} - , decltype(_impl_.ref_){0u} - , decltype(_impl_.id_){0u} - , /*decltype(_impl_._cached_size_)*/{} - }; - _impl_.name_.InitDefault(); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - _impl_.name_.Set("", GetArenaForAllocation()); - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING - _impl_.dielectricname_.InitDefault(); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - _impl_.dielectricname_.Set("", GetArenaForAllocation()); - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING - _impl_.startname_.InitDefault(); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - _impl_.startname_.Set("", GetArenaForAllocation()); - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING - _impl_.endname_.InitDefault(); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - _impl_.endname_.Set("", GetArenaForAllocation()); - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING - _impl_.oldname_.InitDefault(); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - _impl_.oldname_.Set("", GetArenaForAllocation()); - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING - _impl_.addtype_.InitDefault(); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - _impl_.addtype_.Set("", GetArenaForAllocation()); - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING +inline PROTOBUF_NDEBUG_INLINE MatrixFile_LayerRecord::Impl_::Impl_( + ::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* arena) + : name_(arena), + dielectricname_(arena), + startname_(arena), + endname_(arena), + oldname_(arena), + addtype_(arena), + _cached_size_{0} {} + +inline void MatrixFile_LayerRecord::SharedCtor(::_pb::Arena* arena) { + new (&_impl_) Impl_(internal_visibility(), arena); + ::memset(reinterpret_cast(&_impl_) + + offsetof(Impl_, row_), + 0, + offsetof(Impl_, id_) - + offsetof(Impl_, row_) + + sizeof(Impl_::id_)); } - MatrixFile_LayerRecord::~MatrixFile_LayerRecord() { // @@protoc_insertion_point(destructor:Odb.Lib.Protobuf.MatrixFile.LayerRecord) - if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) { - (void)arena; - return; - } - SharedDtor(); + SharedDtor(*this); } - -inline void MatrixFile_LayerRecord::SharedDtor() { - GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); - _impl_.name_.Destroy(); - _impl_.dielectricname_.Destroy(); - _impl_.startname_.Destroy(); - _impl_.endname_.Destroy(); - _impl_.oldname_.Destroy(); - _impl_.addtype_.Destroy(); +inline void MatrixFile_LayerRecord::SharedDtor(MessageLite& self) { + MatrixFile_LayerRecord& this_ = static_cast(self); + this_._internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); + ABSL_DCHECK(this_.GetArena() == nullptr); + this_._impl_.name_.Destroy(); + this_._impl_.dielectricname_.Destroy(); + this_._impl_.startname_.Destroy(); + this_._impl_.endname_.Destroy(); + this_._impl_.oldname_.Destroy(); + this_._impl_.addtype_.Destroy(); + this_._impl_.~Impl_(); } -void MatrixFile_LayerRecord::SetCachedSize(int size) const { - _impl_._cached_size_.Set(size); +inline void* MatrixFile_LayerRecord::PlacementNew_(const void*, void* mem, + ::google::protobuf::Arena* arena) { + return ::new (mem) MatrixFile_LayerRecord(arena); +} +constexpr auto MatrixFile_LayerRecord::InternalNewImpl_() { + return ::google::protobuf::internal::MessageCreator::CopyInit(sizeof(MatrixFile_LayerRecord), + alignof(MatrixFile_LayerRecord)); +} +PROTOBUF_CONSTINIT +PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 +const ::google::protobuf::internal::ClassDataFull MatrixFile_LayerRecord::_class_data_ = { + ::google::protobuf::internal::ClassData{ + &_MatrixFile_LayerRecord_default_instance_._instance, + &_table_.header, + nullptr, // OnDemandRegisterArenaDtor + nullptr, // IsInitialized + &MatrixFile_LayerRecord::MergeImpl, + ::google::protobuf::Message::GetNewImpl(), +#if defined(PROTOBUF_CUSTOM_VTABLE) + &MatrixFile_LayerRecord::SharedDtor, + ::google::protobuf::Message::GetClearImpl(), &MatrixFile_LayerRecord::ByteSizeLong, + &MatrixFile_LayerRecord::_InternalSerialize, +#endif // PROTOBUF_CUSTOM_VTABLE + PROTOBUF_FIELD_OFFSET(MatrixFile_LayerRecord, _impl_._cached_size_), + false, + }, + &MatrixFile_LayerRecord::kDescriptorMethods, + &descriptor_table_matrixfile_2eproto, + nullptr, // tracker +}; +const ::google::protobuf::internal::ClassData* MatrixFile_LayerRecord::GetClassData() const { + ::google::protobuf::internal::PrefetchToLocalCache(&_class_data_); + ::google::protobuf::internal::PrefetchToLocalCache(_class_data_.tc_table); + return _class_data_.base(); } +PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 +const ::_pbi::TcParseTable<5, 16, 0, 112, 2> MatrixFile_LayerRecord::_table_ = { + { + 0, // no _has_bits_ + 0, // no _extensions_ + 17, 248, // max_field_number, fast_idx_mask + offsetof(decltype(_table_), field_lookup_table), + 4294868992, // skipmap + offsetof(decltype(_table_), field_entries), + 16, // num_field_entries + 0, // num_aux_entries + offsetof(decltype(_table_), field_names), // no aux_entries + _class_data_.base(), + nullptr, // post_loop_handler + ::_pbi::TcParser::GenericFallback, // fallback + #ifdef PROTOBUF_PREFETCH_PARSE_TABLE + ::_pbi::TcParser::GetTable<::Odb::Lib::Protobuf::MatrixFile_LayerRecord>(), // to_prefetch + #endif // PROTOBUF_PREFETCH_PARSE_TABLE + }, {{ + {::_pbi::TcParser::MiniParse, {}}, + // uint32 row = 1; + {::_pbi::TcParser::SingularVarintNoZag1<::uint32_t, offsetof(MatrixFile_LayerRecord, _impl_.row_), 63>(), + {8, 63, 0, PROTOBUF_FIELD_OFFSET(MatrixFile_LayerRecord, _impl_.row_)}}, + // .Odb.Lib.Protobuf.MatrixFile.LayerRecord.Context context = 2; + {::_pbi::TcParser::SingularVarintNoZag1<::uint32_t, offsetof(MatrixFile_LayerRecord, _impl_.context_), 63>(), + {16, 63, 0, PROTOBUF_FIELD_OFFSET(MatrixFile_LayerRecord, _impl_.context_)}}, + // .Odb.Lib.Protobuf.MatrixFile.LayerRecord.Type type = 3; + {::_pbi::TcParser::SingularVarintNoZag1<::uint32_t, offsetof(MatrixFile_LayerRecord, _impl_.type_), 63>(), + {24, 63, 0, PROTOBUF_FIELD_OFFSET(MatrixFile_LayerRecord, _impl_.type_)}}, + // string name = 4; + {::_pbi::TcParser::FastUS1, + {34, 63, 0, PROTOBUF_FIELD_OFFSET(MatrixFile_LayerRecord, _impl_.name_)}}, + // .Odb.Lib.Protobuf.Polarity polarity = 5; + {::_pbi::TcParser::SingularVarintNoZag1<::uint32_t, offsetof(MatrixFile_LayerRecord, _impl_.polarity_), 63>(), + {40, 63, 0, PROTOBUF_FIELD_OFFSET(MatrixFile_LayerRecord, _impl_.polarity_)}}, + // .Odb.Lib.Protobuf.MatrixFile.LayerRecord.DielectricType dielectricType = 6; + {::_pbi::TcParser::SingularVarintNoZag1<::uint32_t, offsetof(MatrixFile_LayerRecord, _impl_.dielectrictype_), 63>(), + {48, 63, 0, PROTOBUF_FIELD_OFFSET(MatrixFile_LayerRecord, _impl_.dielectrictype_)}}, + // string dielectricName = 7; + {::_pbi::TcParser::FastUS1, + {58, 63, 0, PROTOBUF_FIELD_OFFSET(MatrixFile_LayerRecord, _impl_.dielectricname_)}}, + // .Odb.Lib.Protobuf.MatrixFile.LayerRecord.Form form = 8; + {::_pbi::TcParser::SingularVarintNoZag1<::uint32_t, offsetof(MatrixFile_LayerRecord, _impl_.form_), 63>(), + {64, 63, 0, PROTOBUF_FIELD_OFFSET(MatrixFile_LayerRecord, _impl_.form_)}}, + // uint32 cuTop = 9; + {::_pbi::TcParser::SingularVarintNoZag1<::uint32_t, offsetof(MatrixFile_LayerRecord, _impl_.cutop_), 63>(), + {72, 63, 0, PROTOBUF_FIELD_OFFSET(MatrixFile_LayerRecord, _impl_.cutop_)}}, + // uint32 cuBottom = 10; + {::_pbi::TcParser::SingularVarintNoZag1<::uint32_t, offsetof(MatrixFile_LayerRecord, _impl_.cubottom_), 63>(), + {80, 63, 0, PROTOBUF_FIELD_OFFSET(MatrixFile_LayerRecord, _impl_.cubottom_)}}, + // uint32 ref = 11; + {::_pbi::TcParser::SingularVarintNoZag1<::uint32_t, offsetof(MatrixFile_LayerRecord, _impl_.ref_), 63>(), + {88, 63, 0, PROTOBUF_FIELD_OFFSET(MatrixFile_LayerRecord, _impl_.ref_)}}, + // string startName = 12; + {::_pbi::TcParser::FastUS1, + {98, 63, 0, PROTOBUF_FIELD_OFFSET(MatrixFile_LayerRecord, _impl_.startname_)}}, + // string endName = 13; + {::_pbi::TcParser::FastUS1, + {106, 63, 0, PROTOBUF_FIELD_OFFSET(MatrixFile_LayerRecord, _impl_.endname_)}}, + // string oldName = 14; + {::_pbi::TcParser::FastUS1, + {114, 63, 0, PROTOBUF_FIELD_OFFSET(MatrixFile_LayerRecord, _impl_.oldname_)}}, + // string addType = 15; + {::_pbi::TcParser::FastUS1, + {122, 63, 0, PROTOBUF_FIELD_OFFSET(MatrixFile_LayerRecord, _impl_.addtype_)}}, + {::_pbi::TcParser::MiniParse, {}}, + // uint32 id = 17; + {::_pbi::TcParser::FastV32S2, + {392, 63, 0, PROTOBUF_FIELD_OFFSET(MatrixFile_LayerRecord, _impl_.id_)}}, + {::_pbi::TcParser::MiniParse, {}}, + {::_pbi::TcParser::MiniParse, {}}, + {::_pbi::TcParser::MiniParse, {}}, + {::_pbi::TcParser::MiniParse, {}}, + {::_pbi::TcParser::MiniParse, {}}, + {::_pbi::TcParser::MiniParse, {}}, + {::_pbi::TcParser::MiniParse, {}}, + {::_pbi::TcParser::MiniParse, {}}, + {::_pbi::TcParser::MiniParse, {}}, + {::_pbi::TcParser::MiniParse, {}}, + {::_pbi::TcParser::MiniParse, {}}, + {::_pbi::TcParser::MiniParse, {}}, + {::_pbi::TcParser::MiniParse, {}}, + {::_pbi::TcParser::MiniParse, {}}, + }}, {{ + 65535, 65535 + }}, {{ + // uint32 row = 1; + {PROTOBUF_FIELD_OFFSET(MatrixFile_LayerRecord, _impl_.row_), 0, 0, + (0 | ::_fl::kFcSingular | ::_fl::kUInt32)}, + // .Odb.Lib.Protobuf.MatrixFile.LayerRecord.Context context = 2; + {PROTOBUF_FIELD_OFFSET(MatrixFile_LayerRecord, _impl_.context_), 0, 0, + (0 | ::_fl::kFcSingular | ::_fl::kOpenEnum)}, + // .Odb.Lib.Protobuf.MatrixFile.LayerRecord.Type type = 3; + {PROTOBUF_FIELD_OFFSET(MatrixFile_LayerRecord, _impl_.type_), 0, 0, + (0 | ::_fl::kFcSingular | ::_fl::kOpenEnum)}, + // string name = 4; + {PROTOBUF_FIELD_OFFSET(MatrixFile_LayerRecord, _impl_.name_), 0, 0, + (0 | ::_fl::kFcSingular | ::_fl::kUtf8String | ::_fl::kRepAString)}, + // .Odb.Lib.Protobuf.Polarity polarity = 5; + {PROTOBUF_FIELD_OFFSET(MatrixFile_LayerRecord, _impl_.polarity_), 0, 0, + (0 | ::_fl::kFcSingular | ::_fl::kOpenEnum)}, + // .Odb.Lib.Protobuf.MatrixFile.LayerRecord.DielectricType dielectricType = 6; + {PROTOBUF_FIELD_OFFSET(MatrixFile_LayerRecord, _impl_.dielectrictype_), 0, 0, + (0 | ::_fl::kFcSingular | ::_fl::kOpenEnum)}, + // string dielectricName = 7; + {PROTOBUF_FIELD_OFFSET(MatrixFile_LayerRecord, _impl_.dielectricname_), 0, 0, + (0 | ::_fl::kFcSingular | ::_fl::kUtf8String | ::_fl::kRepAString)}, + // .Odb.Lib.Protobuf.MatrixFile.LayerRecord.Form form = 8; + {PROTOBUF_FIELD_OFFSET(MatrixFile_LayerRecord, _impl_.form_), 0, 0, + (0 | ::_fl::kFcSingular | ::_fl::kOpenEnum)}, + // uint32 cuTop = 9; + {PROTOBUF_FIELD_OFFSET(MatrixFile_LayerRecord, _impl_.cutop_), 0, 0, + (0 | ::_fl::kFcSingular | ::_fl::kUInt32)}, + // uint32 cuBottom = 10; + {PROTOBUF_FIELD_OFFSET(MatrixFile_LayerRecord, _impl_.cubottom_), 0, 0, + (0 | ::_fl::kFcSingular | ::_fl::kUInt32)}, + // uint32 ref = 11; + {PROTOBUF_FIELD_OFFSET(MatrixFile_LayerRecord, _impl_.ref_), 0, 0, + (0 | ::_fl::kFcSingular | ::_fl::kUInt32)}, + // string startName = 12; + {PROTOBUF_FIELD_OFFSET(MatrixFile_LayerRecord, _impl_.startname_), 0, 0, + (0 | ::_fl::kFcSingular | ::_fl::kUtf8String | ::_fl::kRepAString)}, + // string endName = 13; + {PROTOBUF_FIELD_OFFSET(MatrixFile_LayerRecord, _impl_.endname_), 0, 0, + (0 | ::_fl::kFcSingular | ::_fl::kUtf8String | ::_fl::kRepAString)}, + // string oldName = 14; + {PROTOBUF_FIELD_OFFSET(MatrixFile_LayerRecord, _impl_.oldname_), 0, 0, + (0 | ::_fl::kFcSingular | ::_fl::kUtf8String | ::_fl::kRepAString)}, + // string addType = 15; + {PROTOBUF_FIELD_OFFSET(MatrixFile_LayerRecord, _impl_.addtype_), 0, 0, + (0 | ::_fl::kFcSingular | ::_fl::kUtf8String | ::_fl::kRepAString)}, + // uint32 id = 17; + {PROTOBUF_FIELD_OFFSET(MatrixFile_LayerRecord, _impl_.id_), 0, 0, + (0 | ::_fl::kFcSingular | ::_fl::kUInt32)}, + }}, + // no aux_entries + {{ + "\47\0\0\0\4\0\0\16\0\0\0\0\11\7\7\7\0\0\0\0\0\0\0\0" + "Odb.Lib.Protobuf.MatrixFile.LayerRecord" + "name" + "dielectricName" + "startName" + "endName" + "oldName" + "addType" + }}, +}; -void MatrixFile_LayerRecord::Clear() { +PROTOBUF_NOINLINE void MatrixFile_LayerRecord::Clear() { // @@protoc_insertion_point(message_clear_start:Odb.Lib.Protobuf.MatrixFile.LayerRecord) - uint32_t cached_has_bits = 0; + ::google::protobuf::internal::TSanWrite(&_impl_); + ::uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; @@ -735,448 +926,261 @@ void MatrixFile_LayerRecord::Clear() { _impl_.endname_.ClearToEmpty(); _impl_.oldname_.ClearToEmpty(); _impl_.addtype_.ClearToEmpty(); - ::memset(&_impl_.row_, 0, static_cast( + ::memset(&_impl_.row_, 0, static_cast<::size_t>( reinterpret_cast(&_impl_.id_) - reinterpret_cast(&_impl_.row_)) + sizeof(_impl_.id_)); - _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); -} - -const char* MatrixFile_LayerRecord::_InternalParse(const char* ptr, ::_pbi::ParseContext* ctx) { -#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure - while (!ctx->Done(&ptr)) { - uint32_t tag; - ptr = ::_pbi::ReadTag(ptr, &tag); - switch (tag >> 3) { - // uint32 row = 1; - case 1: - if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 8)) { - _impl_.row_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr); - CHK_(ptr); - } else - goto handle_unusual; - continue; - // .Odb.Lib.Protobuf.MatrixFile.LayerRecord.Context context = 2; - case 2: - if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 16)) { - uint64_t val = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); - CHK_(ptr); - _internal_set_context(static_cast<::Odb::Lib::Protobuf::MatrixFile_LayerRecord_Context>(val)); - } else - goto handle_unusual; - continue; - // .Odb.Lib.Protobuf.MatrixFile.LayerRecord.Type type = 3; - case 3: - if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 24)) { - uint64_t val = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); - CHK_(ptr); - _internal_set_type(static_cast<::Odb::Lib::Protobuf::MatrixFile_LayerRecord_Type>(val)); - } else - goto handle_unusual; - continue; - // string name = 4; - case 4: - if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 34)) { - auto str = _internal_mutable_name(); - ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); - CHK_(ptr); - CHK_(::_pbi::VerifyUTF8(str, "Odb.Lib.Protobuf.MatrixFile.LayerRecord.name")); - } else - goto handle_unusual; - continue; - // .Odb.Lib.Protobuf.Polarity polarity = 5; - case 5: - if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 40)) { - uint64_t val = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); - CHK_(ptr); - _internal_set_polarity(static_cast<::Odb::Lib::Protobuf::Polarity>(val)); - } else - goto handle_unusual; - continue; - // .Odb.Lib.Protobuf.MatrixFile.LayerRecord.DielectricType dielectricType = 6; - case 6: - if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 48)) { - uint64_t val = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); - CHK_(ptr); - _internal_set_dielectrictype(static_cast<::Odb::Lib::Protobuf::MatrixFile_LayerRecord_DielectricType>(val)); - } else - goto handle_unusual; - continue; - // string dielectricName = 7; - case 7: - if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 58)) { - auto str = _internal_mutable_dielectricname(); - ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); - CHK_(ptr); - CHK_(::_pbi::VerifyUTF8(str, "Odb.Lib.Protobuf.MatrixFile.LayerRecord.dielectricName")); - } else - goto handle_unusual; - continue; - // .Odb.Lib.Protobuf.MatrixFile.LayerRecord.Form form = 8; - case 8: - if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 64)) { - uint64_t val = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); - CHK_(ptr); - _internal_set_form(static_cast<::Odb::Lib::Protobuf::MatrixFile_LayerRecord_Form>(val)); - } else - goto handle_unusual; - continue; - // uint32 cuTop = 9; - case 9: - if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 72)) { - _impl_.cutop_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr); - CHK_(ptr); - } else - goto handle_unusual; - continue; - // uint32 cuBottom = 10; - case 10: - if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 80)) { - _impl_.cubottom_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr); - CHK_(ptr); - } else - goto handle_unusual; - continue; - // uint32 ref = 11; - case 11: - if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 88)) { - _impl_.ref_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr); - CHK_(ptr); - } else - goto handle_unusual; - continue; - // string startName = 12; - case 12: - if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 98)) { - auto str = _internal_mutable_startname(); - ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); - CHK_(ptr); - CHK_(::_pbi::VerifyUTF8(str, "Odb.Lib.Protobuf.MatrixFile.LayerRecord.startName")); - } else - goto handle_unusual; - continue; - // string endName = 13; - case 13: - if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 106)) { - auto str = _internal_mutable_endname(); - ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); - CHK_(ptr); - CHK_(::_pbi::VerifyUTF8(str, "Odb.Lib.Protobuf.MatrixFile.LayerRecord.endName")); - } else - goto handle_unusual; - continue; - // string oldName = 14; - case 14: - if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 114)) { - auto str = _internal_mutable_oldname(); - ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); - CHK_(ptr); - CHK_(::_pbi::VerifyUTF8(str, "Odb.Lib.Protobuf.MatrixFile.LayerRecord.oldName")); - } else - goto handle_unusual; - continue; - // string addType = 15; - case 15: - if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 122)) { - auto str = _internal_mutable_addtype(); - ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); - CHK_(ptr); - CHK_(::_pbi::VerifyUTF8(str, "Odb.Lib.Protobuf.MatrixFile.LayerRecord.addType")); - } else - goto handle_unusual; - continue; - // uint32 id = 17; - case 17: - if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 136)) { - _impl_.id_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr); - CHK_(ptr); - } else - goto handle_unusual; - continue; - default: - goto handle_unusual; - } // switch - handle_unusual: - if ((tag == 0) || ((tag & 7) == 4)) { - CHK_(ptr); - ctx->SetLastTag(tag); - goto message_done; - } - ptr = UnknownFieldParse( - tag, - _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(), - ptr, ctx); - CHK_(ptr != nullptr); - } // while -message_done: - return ptr; -failure: - ptr = nullptr; - goto message_done; -#undef CHK_ -} - -uint8_t* MatrixFile_LayerRecord::_InternalSerialize( - uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { - // @@protoc_insertion_point(serialize_to_array_start:Odb.Lib.Protobuf.MatrixFile.LayerRecord) - uint32_t cached_has_bits = 0; - (void) cached_has_bits; - - // uint32 row = 1; - if (this->_internal_row() != 0) { - target = stream->EnsureSpace(target); - target = ::_pbi::WireFormatLite::WriteUInt32ToArray(1, this->_internal_row(), target); - } - - // .Odb.Lib.Protobuf.MatrixFile.LayerRecord.Context context = 2; - if (this->_internal_context() != 0) { - target = stream->EnsureSpace(target); - target = ::_pbi::WireFormatLite::WriteEnumToArray( - 2, this->_internal_context(), target); - } - - // .Odb.Lib.Protobuf.MatrixFile.LayerRecord.Type type = 3; - if (this->_internal_type() != 0) { - target = stream->EnsureSpace(target); - target = ::_pbi::WireFormatLite::WriteEnumToArray( - 3, this->_internal_type(), target); - } - - // string name = 4; - 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, - "Odb.Lib.Protobuf.MatrixFile.LayerRecord.name"); - target = stream->WriteStringMaybeAliased( - 4, this->_internal_name(), target); - } - - // .Odb.Lib.Protobuf.Polarity polarity = 5; - if (this->_internal_polarity() != 0) { - target = stream->EnsureSpace(target); - target = ::_pbi::WireFormatLite::WriteEnumToArray( - 5, this->_internal_polarity(), target); - } - - // .Odb.Lib.Protobuf.MatrixFile.LayerRecord.DielectricType dielectricType = 6; - if (this->_internal_dielectrictype() != 0) { - target = stream->EnsureSpace(target); - target = ::_pbi::WireFormatLite::WriteEnumToArray( - 6, this->_internal_dielectrictype(), target); - } - - // string dielectricName = 7; - if (!this->_internal_dielectricname().empty()) { - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( - this->_internal_dielectricname().data(), static_cast(this->_internal_dielectricname().length()), - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, - "Odb.Lib.Protobuf.MatrixFile.LayerRecord.dielectricName"); - target = stream->WriteStringMaybeAliased( - 7, this->_internal_dielectricname(), target); - } - - // .Odb.Lib.Protobuf.MatrixFile.LayerRecord.Form form = 8; - if (this->_internal_form() != 0) { - target = stream->EnsureSpace(target); - target = ::_pbi::WireFormatLite::WriteEnumToArray( - 8, this->_internal_form(), target); - } - - // uint32 cuTop = 9; - if (this->_internal_cutop() != 0) { - target = stream->EnsureSpace(target); - target = ::_pbi::WireFormatLite::WriteUInt32ToArray(9, this->_internal_cutop(), target); - } - - // uint32 cuBottom = 10; - if (this->_internal_cubottom() != 0) { - target = stream->EnsureSpace(target); - target = ::_pbi::WireFormatLite::WriteUInt32ToArray(10, this->_internal_cubottom(), target); - } - - // uint32 ref = 11; - if (this->_internal_ref() != 0) { - target = stream->EnsureSpace(target); - target = ::_pbi::WireFormatLite::WriteUInt32ToArray(11, this->_internal_ref(), target); - } - - // string startName = 12; - if (!this->_internal_startname().empty()) { - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( - this->_internal_startname().data(), static_cast(this->_internal_startname().length()), - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, - "Odb.Lib.Protobuf.MatrixFile.LayerRecord.startName"); - target = stream->WriteStringMaybeAliased( - 12, this->_internal_startname(), target); - } - - // string endName = 13; - if (!this->_internal_endname().empty()) { - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( - this->_internal_endname().data(), static_cast(this->_internal_endname().length()), - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, - "Odb.Lib.Protobuf.MatrixFile.LayerRecord.endName"); - target = stream->WriteStringMaybeAliased( - 13, this->_internal_endname(), target); - } - - // string oldName = 14; - if (!this->_internal_oldname().empty()) { - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( - this->_internal_oldname().data(), static_cast(this->_internal_oldname().length()), - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, - "Odb.Lib.Protobuf.MatrixFile.LayerRecord.oldName"); - target = stream->WriteStringMaybeAliased( - 14, this->_internal_oldname(), target); - } - - // string addType = 15; - if (!this->_internal_addtype().empty()) { - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( - this->_internal_addtype().data(), static_cast(this->_internal_addtype().length()), - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, - "Odb.Lib.Protobuf.MatrixFile.LayerRecord.addType"); - target = stream->WriteStringMaybeAliased( - 15, this->_internal_addtype(), target); - } - - // uint32 id = 17; - if (this->_internal_id() != 0) { - target = stream->EnsureSpace(target); - target = ::_pbi::WireFormatLite::WriteUInt32ToArray(17, this->_internal_id(), target); - } - - if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = ::_pbi::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:Odb.Lib.Protobuf.MatrixFile.LayerRecord) - return target; + _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); } -size_t MatrixFile_LayerRecord::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:Odb.Lib.Protobuf.MatrixFile.LayerRecord) - size_t total_size = 0; - - uint32_t cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - // string name = 4; - if (!this->_internal_name().empty()) { - total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( - this->_internal_name()); - } - - // string dielectricName = 7; - if (!this->_internal_dielectricname().empty()) { - total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( - this->_internal_dielectricname()); - } - - // string startName = 12; - if (!this->_internal_startname().empty()) { - total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( - this->_internal_startname()); - } - - // string endName = 13; - if (!this->_internal_endname().empty()) { - total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( - this->_internal_endname()); - } - - // string oldName = 14; - if (!this->_internal_oldname().empty()) { - total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( - this->_internal_oldname()); - } - - // string addType = 15; - if (!this->_internal_addtype().empty()) { - total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( - this->_internal_addtype()); - } - - // uint32 row = 1; - if (this->_internal_row() != 0) { - total_size += ::_pbi::WireFormatLite::UInt32SizePlusOne(this->_internal_row()); - } - - // .Odb.Lib.Protobuf.MatrixFile.LayerRecord.Context context = 2; - if (this->_internal_context() != 0) { - total_size += 1 + - ::_pbi::WireFormatLite::EnumSize(this->_internal_context()); - } - - // .Odb.Lib.Protobuf.MatrixFile.LayerRecord.Type type = 3; - if (this->_internal_type() != 0) { - total_size += 1 + - ::_pbi::WireFormatLite::EnumSize(this->_internal_type()); - } - - // .Odb.Lib.Protobuf.Polarity polarity = 5; - if (this->_internal_polarity() != 0) { - total_size += 1 + - ::_pbi::WireFormatLite::EnumSize(this->_internal_polarity()); - } - - // .Odb.Lib.Protobuf.MatrixFile.LayerRecord.DielectricType dielectricType = 6; - if (this->_internal_dielectrictype() != 0) { - total_size += 1 + - ::_pbi::WireFormatLite::EnumSize(this->_internal_dielectrictype()); - } - - // .Odb.Lib.Protobuf.MatrixFile.LayerRecord.Form form = 8; - if (this->_internal_form() != 0) { - total_size += 1 + - ::_pbi::WireFormatLite::EnumSize(this->_internal_form()); - } - - // uint32 cuTop = 9; - if (this->_internal_cutop() != 0) { - total_size += ::_pbi::WireFormatLite::UInt32SizePlusOne(this->_internal_cutop()); - } - - // uint32 cuBottom = 10; - if (this->_internal_cubottom() != 0) { - total_size += ::_pbi::WireFormatLite::UInt32SizePlusOne(this->_internal_cubottom()); - } - - // uint32 ref = 11; - if (this->_internal_ref() != 0) { - total_size += ::_pbi::WireFormatLite::UInt32SizePlusOne(this->_internal_ref()); - } - - // uint32 id = 17; - if (this->_internal_id() != 0) { - total_size += 2 + - ::_pbi::WireFormatLite::UInt32Size( - this->_internal_id()); - } - - return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); -} - -const ::PROTOBUF_NAMESPACE_ID::Message::ClassData MatrixFile_LayerRecord::_class_data_ = { - ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSourceCheck, - MatrixFile_LayerRecord::MergeImpl -}; -const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*MatrixFile_LayerRecord::GetClassData() const { return &_class_data_; } - - -void MatrixFile_LayerRecord::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg) { +#if defined(PROTOBUF_CUSTOM_VTABLE) + ::uint8_t* MatrixFile_LayerRecord::_InternalSerialize( + const MessageLite& base, ::uint8_t* target, + ::google::protobuf::io::EpsCopyOutputStream* stream) { + const MatrixFile_LayerRecord& this_ = static_cast(base); +#else // PROTOBUF_CUSTOM_VTABLE + ::uint8_t* MatrixFile_LayerRecord::_InternalSerialize( + ::uint8_t* target, + ::google::protobuf::io::EpsCopyOutputStream* stream) const { + const MatrixFile_LayerRecord& this_ = *this; +#endif // PROTOBUF_CUSTOM_VTABLE + // @@protoc_insertion_point(serialize_to_array_start:Odb.Lib.Protobuf.MatrixFile.LayerRecord) + ::uint32_t cached_has_bits = 0; + (void)cached_has_bits; + + // uint32 row = 1; + if (this_._internal_row() != 0) { + target = stream->EnsureSpace(target); + target = ::_pbi::WireFormatLite::WriteUInt32ToArray( + 1, this_._internal_row(), target); + } + + // .Odb.Lib.Protobuf.MatrixFile.LayerRecord.Context context = 2; + if (this_._internal_context() != 0) { + target = stream->EnsureSpace(target); + target = ::_pbi::WireFormatLite::WriteEnumToArray( + 2, this_._internal_context(), target); + } + + // .Odb.Lib.Protobuf.MatrixFile.LayerRecord.Type type = 3; + if (this_._internal_type() != 0) { + target = stream->EnsureSpace(target); + target = ::_pbi::WireFormatLite::WriteEnumToArray( + 3, this_._internal_type(), target); + } + + // string name = 4; + if (!this_._internal_name().empty()) { + const std::string& _s = this_._internal_name(); + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + _s.data(), static_cast(_s.length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "Odb.Lib.Protobuf.MatrixFile.LayerRecord.name"); + target = stream->WriteStringMaybeAliased(4, _s, target); + } + + // .Odb.Lib.Protobuf.Polarity polarity = 5; + if (this_._internal_polarity() != 0) { + target = stream->EnsureSpace(target); + target = ::_pbi::WireFormatLite::WriteEnumToArray( + 5, this_._internal_polarity(), target); + } + + // .Odb.Lib.Protobuf.MatrixFile.LayerRecord.DielectricType dielectricType = 6; + if (this_._internal_dielectrictype() != 0) { + target = stream->EnsureSpace(target); + target = ::_pbi::WireFormatLite::WriteEnumToArray( + 6, this_._internal_dielectrictype(), target); + } + + // string dielectricName = 7; + if (!this_._internal_dielectricname().empty()) { + const std::string& _s = this_._internal_dielectricname(); + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + _s.data(), static_cast(_s.length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "Odb.Lib.Protobuf.MatrixFile.LayerRecord.dielectricName"); + target = stream->WriteStringMaybeAliased(7, _s, target); + } + + // .Odb.Lib.Protobuf.MatrixFile.LayerRecord.Form form = 8; + if (this_._internal_form() != 0) { + target = stream->EnsureSpace(target); + target = ::_pbi::WireFormatLite::WriteEnumToArray( + 8, this_._internal_form(), target); + } + + // uint32 cuTop = 9; + if (this_._internal_cutop() != 0) { + target = stream->EnsureSpace(target); + target = ::_pbi::WireFormatLite::WriteUInt32ToArray( + 9, this_._internal_cutop(), target); + } + + // uint32 cuBottom = 10; + if (this_._internal_cubottom() != 0) { + target = stream->EnsureSpace(target); + target = ::_pbi::WireFormatLite::WriteUInt32ToArray( + 10, this_._internal_cubottom(), target); + } + + // uint32 ref = 11; + if (this_._internal_ref() != 0) { + target = stream->EnsureSpace(target); + target = ::_pbi::WireFormatLite::WriteUInt32ToArray( + 11, this_._internal_ref(), target); + } + + // string startName = 12; + if (!this_._internal_startname().empty()) { + const std::string& _s = this_._internal_startname(); + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + _s.data(), static_cast(_s.length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "Odb.Lib.Protobuf.MatrixFile.LayerRecord.startName"); + target = stream->WriteStringMaybeAliased(12, _s, target); + } + + // string endName = 13; + if (!this_._internal_endname().empty()) { + const std::string& _s = this_._internal_endname(); + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + _s.data(), static_cast(_s.length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "Odb.Lib.Protobuf.MatrixFile.LayerRecord.endName"); + target = stream->WriteStringMaybeAliased(13, _s, target); + } + + // string oldName = 14; + if (!this_._internal_oldname().empty()) { + const std::string& _s = this_._internal_oldname(); + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + _s.data(), static_cast(_s.length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "Odb.Lib.Protobuf.MatrixFile.LayerRecord.oldName"); + target = stream->WriteStringMaybeAliased(14, _s, target); + } + + // string addType = 15; + if (!this_._internal_addtype().empty()) { + const std::string& _s = this_._internal_addtype(); + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + _s.data(), static_cast(_s.length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "Odb.Lib.Protobuf.MatrixFile.LayerRecord.addType"); + target = stream->WriteStringMaybeAliased(15, _s, target); + } + + // uint32 id = 17; + if (this_._internal_id() != 0) { + target = stream->EnsureSpace(target); + target = ::_pbi::WireFormatLite::WriteUInt32ToArray( + 17, this_._internal_id(), target); + } + + if (PROTOBUF_PREDICT_FALSE(this_._internal_metadata_.have_unknown_fields())) { + target = + ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( + this_._internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); + } + // @@protoc_insertion_point(serialize_to_array_end:Odb.Lib.Protobuf.MatrixFile.LayerRecord) + return target; + } + +#if defined(PROTOBUF_CUSTOM_VTABLE) + ::size_t MatrixFile_LayerRecord::ByteSizeLong(const MessageLite& base) { + const MatrixFile_LayerRecord& this_ = static_cast(base); +#else // PROTOBUF_CUSTOM_VTABLE + ::size_t MatrixFile_LayerRecord::ByteSizeLong() const { + const MatrixFile_LayerRecord& this_ = *this; +#endif // PROTOBUF_CUSTOM_VTABLE + // @@protoc_insertion_point(message_byte_size_start:Odb.Lib.Protobuf.MatrixFile.LayerRecord) + ::size_t total_size = 0; + + ::uint32_t cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void)cached_has_bits; + + ::_pbi::Prefetch5LinesFrom7Lines(&this_); + { + // string name = 4; + if (!this_._internal_name().empty()) { + total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize( + this_._internal_name()); + } + // string dielectricName = 7; + if (!this_._internal_dielectricname().empty()) { + total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize( + this_._internal_dielectricname()); + } + // string startName = 12; + if (!this_._internal_startname().empty()) { + total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize( + this_._internal_startname()); + } + // string endName = 13; + if (!this_._internal_endname().empty()) { + total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize( + this_._internal_endname()); + } + // string oldName = 14; + if (!this_._internal_oldname().empty()) { + total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize( + this_._internal_oldname()); + } + // string addType = 15; + if (!this_._internal_addtype().empty()) { + total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize( + this_._internal_addtype()); + } + // uint32 row = 1; + if (this_._internal_row() != 0) { + total_size += ::_pbi::WireFormatLite::UInt32SizePlusOne( + this_._internal_row()); + } + // .Odb.Lib.Protobuf.MatrixFile.LayerRecord.Context context = 2; + if (this_._internal_context() != 0) { + total_size += 1 + + ::_pbi::WireFormatLite::EnumSize(this_._internal_context()); + } + // .Odb.Lib.Protobuf.MatrixFile.LayerRecord.Type type = 3; + if (this_._internal_type() != 0) { + total_size += 1 + + ::_pbi::WireFormatLite::EnumSize(this_._internal_type()); + } + // .Odb.Lib.Protobuf.Polarity polarity = 5; + if (this_._internal_polarity() != 0) { + total_size += 1 + + ::_pbi::WireFormatLite::EnumSize(this_._internal_polarity()); + } + // .Odb.Lib.Protobuf.MatrixFile.LayerRecord.DielectricType dielectricType = 6; + if (this_._internal_dielectrictype() != 0) { + total_size += 1 + + ::_pbi::WireFormatLite::EnumSize(this_._internal_dielectrictype()); + } + // .Odb.Lib.Protobuf.MatrixFile.LayerRecord.Form form = 8; + if (this_._internal_form() != 0) { + total_size += 1 + + ::_pbi::WireFormatLite::EnumSize(this_._internal_form()); + } + // uint32 cuTop = 9; + if (this_._internal_cutop() != 0) { + total_size += ::_pbi::WireFormatLite::UInt32SizePlusOne( + this_._internal_cutop()); + } + // uint32 cuBottom = 10; + if (this_._internal_cubottom() != 0) { + total_size += ::_pbi::WireFormatLite::UInt32SizePlusOne( + this_._internal_cubottom()); + } + // uint32 ref = 11; + if (this_._internal_ref() != 0) { + total_size += ::_pbi::WireFormatLite::UInt32SizePlusOne( + this_._internal_ref()); + } + // uint32 id = 17; + if (this_._internal_id() != 0) { + total_size += 2 + ::_pbi::WireFormatLite::UInt32Size( + this_._internal_id()); + } + } + return this_.MaybeComputeUnknownFieldsSize(total_size, + &this_._impl_._cached_size_); + } + +void MatrixFile_LayerRecord::MergeImpl(::google::protobuf::MessageLite& to_msg, const ::google::protobuf::MessageLite& from_msg) { auto* const _this = static_cast(&to_msg); auto& from = static_cast(from_msg); // @@protoc_insertion_point(class_specific_merge_from_start:Odb.Lib.Protobuf.MatrixFile.LayerRecord) - GOOGLE_DCHECK_NE(&from, _this); - uint32_t cached_has_bits = 0; + ABSL_DCHECK_NE(&from, _this); + ::uint32_t cached_has_bits = 0; (void) cached_has_bits; if (!from._internal_name().empty()) { @@ -1198,36 +1202,36 @@ void MatrixFile_LayerRecord::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, _this->_internal_set_addtype(from._internal_addtype()); } if (from._internal_row() != 0) { - _this->_internal_set_row(from._internal_row()); + _this->_impl_.row_ = from._impl_.row_; } if (from._internal_context() != 0) { - _this->_internal_set_context(from._internal_context()); + _this->_impl_.context_ = from._impl_.context_; } if (from._internal_type() != 0) { - _this->_internal_set_type(from._internal_type()); + _this->_impl_.type_ = from._impl_.type_; } if (from._internal_polarity() != 0) { - _this->_internal_set_polarity(from._internal_polarity()); + _this->_impl_.polarity_ = from._impl_.polarity_; } if (from._internal_dielectrictype() != 0) { - _this->_internal_set_dielectrictype(from._internal_dielectrictype()); + _this->_impl_.dielectrictype_ = from._impl_.dielectrictype_; } if (from._internal_form() != 0) { - _this->_internal_set_form(from._internal_form()); + _this->_impl_.form_ = from._impl_.form_; } if (from._internal_cutop() != 0) { - _this->_internal_set_cutop(from._internal_cutop()); + _this->_impl_.cutop_ = from._impl_.cutop_; } if (from._internal_cubottom() != 0) { - _this->_internal_set_cubottom(from._internal_cubottom()); + _this->_impl_.cubottom_ = from._impl_.cubottom_; } if (from._internal_ref() != 0) { - _this->_internal_set_ref(from._internal_ref()); + _this->_impl_.ref_ = from._impl_.ref_; } if (from._internal_id() != 0) { - _this->_internal_set_id(from._internal_id()); + _this->_impl_.id_ = from._impl_.id_; } - _this->_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); + _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); } void MatrixFile_LayerRecord::CopyFrom(const MatrixFile_LayerRecord& from) { @@ -1237,40 +1241,19 @@ void MatrixFile_LayerRecord::CopyFrom(const MatrixFile_LayerRecord& from) { MergeFrom(from); } -bool MatrixFile_LayerRecord::IsInitialized() const { - return true; -} -void MatrixFile_LayerRecord::InternalSwap(MatrixFile_LayerRecord* other) { +void MatrixFile_LayerRecord::InternalSwap(MatrixFile_LayerRecord* PROTOBUF_RESTRICT other) { using std::swap; - auto* lhs_arena = GetArenaForAllocation(); - auto* rhs_arena = other->GetArenaForAllocation(); + auto* arena = GetArena(); + ABSL_DCHECK_EQ(arena, other->GetArena()); _internal_metadata_.InternalSwap(&other->_internal_metadata_); - ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( - &_impl_.name_, lhs_arena, - &other->_impl_.name_, rhs_arena - ); - ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( - &_impl_.dielectricname_, lhs_arena, - &other->_impl_.dielectricname_, rhs_arena - ); - ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( - &_impl_.startname_, lhs_arena, - &other->_impl_.startname_, rhs_arena - ); - ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( - &_impl_.endname_, lhs_arena, - &other->_impl_.endname_, rhs_arena - ); - ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( - &_impl_.oldname_, lhs_arena, - &other->_impl_.oldname_, rhs_arena - ); - ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( - &_impl_.addtype_, lhs_arena, - &other->_impl_.addtype_, rhs_arena - ); - ::PROTOBUF_NAMESPACE_ID::internal::memswap< + ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.name_, &other->_impl_.name_, arena); + ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.dielectricname_, &other->_impl_.dielectricname_, arena); + ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.startname_, &other->_impl_.startname_, arena); + ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.endname_, &other->_impl_.endname_, arena); + ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.oldname_, &other->_impl_.oldname_, arena); + ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.addtype_, &other->_impl_.addtype_, arena); + ::google::protobuf::internal::memswap< PROTOBUF_FIELD_OFFSET(MatrixFile_LayerRecord, _impl_.id_) + sizeof(MatrixFile_LayerRecord::_impl_.id_) - PROTOBUF_FIELD_OFFSET(MatrixFile_LayerRecord, _impl_.row_)>( @@ -1278,205 +1261,266 @@ void MatrixFile_LayerRecord::InternalSwap(MatrixFile_LayerRecord* other) { reinterpret_cast(&other->_impl_.row_)); } -::PROTOBUF_NAMESPACE_ID::Metadata MatrixFile_LayerRecord::GetMetadata() const { - return ::_pbi::AssignDescriptors( - &descriptor_table_matrixfile_2eproto_getter, &descriptor_table_matrixfile_2eproto_once, - file_level_metadata_matrixfile_2eproto[1]); +::google::protobuf::Metadata MatrixFile_LayerRecord::GetMetadata() const { + return ::google::protobuf::Message::GetMetadataImpl(GetClassData()->full()); } - // =================================================================== class MatrixFile::_Internal { public: }; -MatrixFile::MatrixFile(::PROTOBUF_NAMESPACE_ID::Arena* arena, - bool is_message_owned) - : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned) { - SharedCtor(arena, is_message_owned); +MatrixFile::MatrixFile(::google::protobuf::Arena* arena) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : ::google::protobuf::Message(arena, _class_data_.base()) { +#else // PROTOBUF_CUSTOM_VTABLE + : ::google::protobuf::Message(arena) { +#endif // PROTOBUF_CUSTOM_VTABLE + SharedCtor(arena); // @@protoc_insertion_point(arena_constructor:Odb.Lib.Protobuf.MatrixFile) } -MatrixFile::MatrixFile(const MatrixFile& from) - : ::PROTOBUF_NAMESPACE_ID::Message() { - MatrixFile* const _this = this; (void)_this; - new (&_impl_) Impl_{ - decltype(_impl_.steps_){from._impl_.steps_} - , decltype(_impl_.layers_){from._impl_.layers_} - , /*decltype(_impl_._cached_size_)*/{}}; - - _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); +inline PROTOBUF_NDEBUG_INLINE MatrixFile::Impl_::Impl_( + ::google::protobuf::internal::InternalVisibility visibility, ::google::protobuf::Arena* arena, + const Impl_& from, const ::Odb::Lib::Protobuf::MatrixFile& from_msg) + : steps_{visibility, arena, from.steps_}, + layers_{visibility, arena, from.layers_}, + _cached_size_{0} {} + +MatrixFile::MatrixFile( + ::google::protobuf::Arena* arena, + const MatrixFile& from) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : ::google::protobuf::Message(arena, _class_data_.base()) { +#else // PROTOBUF_CUSTOM_VTABLE + : ::google::protobuf::Message(arena) { +#endif // PROTOBUF_CUSTOM_VTABLE + MatrixFile* const _this = this; + (void)_this; + _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( + from._internal_metadata_); + new (&_impl_) Impl_(internal_visibility(), arena, from._impl_, from); + // @@protoc_insertion_point(copy_constructor:Odb.Lib.Protobuf.MatrixFile) } - -inline void MatrixFile::SharedCtor( - ::_pb::Arena* arena, bool is_message_owned) { - (void)arena; - (void)is_message_owned; - new (&_impl_) Impl_{ - decltype(_impl_.steps_){arena} - , decltype(_impl_.layers_){arena} - , /*decltype(_impl_._cached_size_)*/{} - }; +inline PROTOBUF_NDEBUG_INLINE MatrixFile::Impl_::Impl_( + ::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* arena) + : steps_{visibility, arena}, + layers_{visibility, arena}, + _cached_size_{0} {} + +inline void MatrixFile::SharedCtor(::_pb::Arena* arena) { + new (&_impl_) Impl_(internal_visibility(), arena); } - MatrixFile::~MatrixFile() { // @@protoc_insertion_point(destructor:Odb.Lib.Protobuf.MatrixFile) - if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) { - (void)arena; - return; - } - SharedDtor(); + SharedDtor(*this); } - -inline void MatrixFile::SharedDtor() { - GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); - _impl_.steps_.~RepeatedPtrField(); - _impl_.layers_.~RepeatedPtrField(); +inline void MatrixFile::SharedDtor(MessageLite& self) { + MatrixFile& this_ = static_cast(self); + this_._internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); + ABSL_DCHECK(this_.GetArena() == nullptr); + this_._impl_.~Impl_(); } -void MatrixFile::SetCachedSize(int size) const { - _impl_._cached_size_.Set(size); +inline void* MatrixFile::PlacementNew_(const void*, void* mem, + ::google::protobuf::Arena* arena) { + return ::new (mem) MatrixFile(arena); } +constexpr auto MatrixFile::InternalNewImpl_() { + constexpr auto arena_bits = ::google::protobuf::internal::EncodePlacementArenaOffsets({ + PROTOBUF_FIELD_OFFSET(MatrixFile, _impl_.steps_) + + decltype(MatrixFile::_impl_.steps_):: + InternalGetArenaOffset( + ::google::protobuf::Message::internal_visibility()), + PROTOBUF_FIELD_OFFSET(MatrixFile, _impl_.layers_) + + decltype(MatrixFile::_impl_.layers_):: + InternalGetArenaOffset( + ::google::protobuf::Message::internal_visibility()), + }); + if (arena_bits.has_value()) { + return ::google::protobuf::internal::MessageCreator::ZeroInit( + sizeof(MatrixFile), alignof(MatrixFile), *arena_bits); + } else { + return ::google::protobuf::internal::MessageCreator(&MatrixFile::PlacementNew_, + sizeof(MatrixFile), + alignof(MatrixFile)); + } +} +PROTOBUF_CONSTINIT +PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 +const ::google::protobuf::internal::ClassDataFull MatrixFile::_class_data_ = { + ::google::protobuf::internal::ClassData{ + &_MatrixFile_default_instance_._instance, + &_table_.header, + nullptr, // OnDemandRegisterArenaDtor + nullptr, // IsInitialized + &MatrixFile::MergeImpl, + ::google::protobuf::Message::GetNewImpl(), +#if defined(PROTOBUF_CUSTOM_VTABLE) + &MatrixFile::SharedDtor, + ::google::protobuf::Message::GetClearImpl(), &MatrixFile::ByteSizeLong, + &MatrixFile::_InternalSerialize, +#endif // PROTOBUF_CUSTOM_VTABLE + PROTOBUF_FIELD_OFFSET(MatrixFile, _impl_._cached_size_), + false, + }, + &MatrixFile::kDescriptorMethods, + &descriptor_table_matrixfile_2eproto, + nullptr, // tracker +}; +const ::google::protobuf::internal::ClassData* MatrixFile::GetClassData() const { + ::google::protobuf::internal::PrefetchToLocalCache(&_class_data_); + ::google::protobuf::internal::PrefetchToLocalCache(_class_data_.tc_table); + return _class_data_.base(); +} +PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 +const ::_pbi::TcParseTable<1, 2, 2, 0, 2> MatrixFile::_table_ = { + { + 0, // no _has_bits_ + 0, // no _extensions_ + 2, 8, // max_field_number, fast_idx_mask + offsetof(decltype(_table_), field_lookup_table), + 4294967292, // skipmap + offsetof(decltype(_table_), field_entries), + 2, // num_field_entries + 2, // num_aux_entries + offsetof(decltype(_table_), aux_entries), + _class_data_.base(), + nullptr, // post_loop_handler + ::_pbi::TcParser::GenericFallback, // fallback + #ifdef PROTOBUF_PREFETCH_PARSE_TABLE + ::_pbi::TcParser::GetTable<::Odb::Lib::Protobuf::MatrixFile>(), // to_prefetch + #endif // PROTOBUF_PREFETCH_PARSE_TABLE + }, {{ + // repeated .Odb.Lib.Protobuf.MatrixFile.LayerRecord layers = 2; + {::_pbi::TcParser::FastMtR1, + {18, 63, 1, PROTOBUF_FIELD_OFFSET(MatrixFile, _impl_.layers_)}}, + // repeated .Odb.Lib.Protobuf.MatrixFile.StepRecord steps = 1; + {::_pbi::TcParser::FastMtR1, + {10, 63, 0, PROTOBUF_FIELD_OFFSET(MatrixFile, _impl_.steps_)}}, + }}, {{ + 65535, 65535 + }}, {{ + // repeated .Odb.Lib.Protobuf.MatrixFile.StepRecord steps = 1; + {PROTOBUF_FIELD_OFFSET(MatrixFile, _impl_.steps_), 0, 0, + (0 | ::_fl::kFcRepeated | ::_fl::kMessage | ::_fl::kTvTable)}, + // repeated .Odb.Lib.Protobuf.MatrixFile.LayerRecord layers = 2; + {PROTOBUF_FIELD_OFFSET(MatrixFile, _impl_.layers_), 0, 1, + (0 | ::_fl::kFcRepeated | ::_fl::kMessage | ::_fl::kTvTable)}, + }}, {{ + {::_pbi::TcParser::GetTable<::Odb::Lib::Protobuf::MatrixFile_StepRecord>()}, + {::_pbi::TcParser::GetTable<::Odb::Lib::Protobuf::MatrixFile_LayerRecord>()}, + }}, {{ + }}, +}; -void MatrixFile::Clear() { +PROTOBUF_NOINLINE void MatrixFile::Clear() { // @@protoc_insertion_point(message_clear_start:Odb.Lib.Protobuf.MatrixFile) - uint32_t cached_has_bits = 0; + ::google::protobuf::internal::TSanWrite(&_impl_); + ::uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; _impl_.steps_.Clear(); _impl_.layers_.Clear(); - _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); -} - -const char* MatrixFile::_InternalParse(const char* ptr, ::_pbi::ParseContext* ctx) { -#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure - while (!ctx->Done(&ptr)) { - uint32_t tag; - ptr = ::_pbi::ReadTag(ptr, &tag); - switch (tag >> 3) { - // repeated .Odb.Lib.Protobuf.MatrixFile.StepRecord steps = 1; - case 1: - if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 10)) { - ptr -= 1; - do { - ptr += 1; - ptr = ctx->ParseMessage(_internal_add_steps(), ptr); - CHK_(ptr); - if (!ctx->DataAvailable(ptr)) break; - } while (::PROTOBUF_NAMESPACE_ID::internal::ExpectTag<10>(ptr)); - } else - goto handle_unusual; - continue; - // repeated .Odb.Lib.Protobuf.MatrixFile.LayerRecord layers = 2; - case 2: - if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 18)) { - ptr -= 1; - do { - ptr += 1; - ptr = ctx->ParseMessage(_internal_add_layers(), ptr); - CHK_(ptr); - if (!ctx->DataAvailable(ptr)) break; - } while (::PROTOBUF_NAMESPACE_ID::internal::ExpectTag<18>(ptr)); - } else - goto handle_unusual; - continue; - default: - goto handle_unusual; - } // switch - handle_unusual: - if ((tag == 0) || ((tag & 7) == 4)) { - CHK_(ptr); - ctx->SetLastTag(tag); - goto message_done; - } - ptr = UnknownFieldParse( - tag, - _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(), - ptr, ctx); - CHK_(ptr != nullptr); - } // while -message_done: - return ptr; -failure: - ptr = nullptr; - goto message_done; -#undef CHK_ -} - -uint8_t* MatrixFile::_InternalSerialize( - uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { - // @@protoc_insertion_point(serialize_to_array_start:Odb.Lib.Protobuf.MatrixFile) - uint32_t cached_has_bits = 0; - (void) cached_has_bits; - - // repeated .Odb.Lib.Protobuf.MatrixFile.StepRecord steps = 1; - for (unsigned i = 0, - n = static_cast(this->_internal_steps_size()); i < n; i++) { - const auto& repfield = this->_internal_steps(i); - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: - InternalWriteMessage(1, repfield, repfield.GetCachedSize(), target, stream); - } - - // repeated .Odb.Lib.Protobuf.MatrixFile.LayerRecord layers = 2; - for (unsigned i = 0, - n = static_cast(this->_internal_layers_size()); i < n; i++) { - const auto& repfield = this->_internal_layers(i); - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: - InternalWriteMessage(2, repfield, repfield.GetCachedSize(), target, stream); - } - - if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = ::_pbi::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:Odb.Lib.Protobuf.MatrixFile) - return target; -} - -size_t MatrixFile::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:Odb.Lib.Protobuf.MatrixFile) - size_t total_size = 0; - - uint32_t cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - // repeated .Odb.Lib.Protobuf.MatrixFile.StepRecord steps = 1; - total_size += 1UL * this->_internal_steps_size(); - for (const auto& msg : this->_impl_.steps_) { - total_size += - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(msg); - } - - // repeated .Odb.Lib.Protobuf.MatrixFile.LayerRecord layers = 2; - total_size += 1UL * this->_internal_layers_size(); - for (const auto& msg : this->_impl_.layers_) { - total_size += - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(msg); - } - - return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); + _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); } -const ::PROTOBUF_NAMESPACE_ID::Message::ClassData MatrixFile::_class_data_ = { - ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSourceCheck, - MatrixFile::MergeImpl -}; -const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*MatrixFile::GetClassData() const { return &_class_data_; } - - -void MatrixFile::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg) { +#if defined(PROTOBUF_CUSTOM_VTABLE) + ::uint8_t* MatrixFile::_InternalSerialize( + const MessageLite& base, ::uint8_t* target, + ::google::protobuf::io::EpsCopyOutputStream* stream) { + const MatrixFile& this_ = static_cast(base); +#else // PROTOBUF_CUSTOM_VTABLE + ::uint8_t* MatrixFile::_InternalSerialize( + ::uint8_t* target, + ::google::protobuf::io::EpsCopyOutputStream* stream) const { + const MatrixFile& this_ = *this; +#endif // PROTOBUF_CUSTOM_VTABLE + // @@protoc_insertion_point(serialize_to_array_start:Odb.Lib.Protobuf.MatrixFile) + ::uint32_t cached_has_bits = 0; + (void)cached_has_bits; + + // repeated .Odb.Lib.Protobuf.MatrixFile.StepRecord steps = 1; + for (unsigned i = 0, n = static_cast( + this_._internal_steps_size()); + i < n; i++) { + const auto& repfield = this_._internal_steps().Get(i); + target = + ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( + 1, repfield, repfield.GetCachedSize(), + target, stream); + } + + // repeated .Odb.Lib.Protobuf.MatrixFile.LayerRecord layers = 2; + for (unsigned i = 0, n = static_cast( + this_._internal_layers_size()); + i < n; i++) { + const auto& repfield = this_._internal_layers().Get(i); + target = + ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( + 2, repfield, repfield.GetCachedSize(), + target, stream); + } + + if (PROTOBUF_PREDICT_FALSE(this_._internal_metadata_.have_unknown_fields())) { + target = + ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( + this_._internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); + } + // @@protoc_insertion_point(serialize_to_array_end:Odb.Lib.Protobuf.MatrixFile) + return target; + } + +#if defined(PROTOBUF_CUSTOM_VTABLE) + ::size_t MatrixFile::ByteSizeLong(const MessageLite& base) { + const MatrixFile& this_ = static_cast(base); +#else // PROTOBUF_CUSTOM_VTABLE + ::size_t MatrixFile::ByteSizeLong() const { + const MatrixFile& this_ = *this; +#endif // PROTOBUF_CUSTOM_VTABLE + // @@protoc_insertion_point(message_byte_size_start:Odb.Lib.Protobuf.MatrixFile) + ::size_t total_size = 0; + + ::uint32_t cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void)cached_has_bits; + + ::_pbi::Prefetch5LinesFrom7Lines(&this_); + { + // repeated .Odb.Lib.Protobuf.MatrixFile.StepRecord steps = 1; + { + total_size += 1UL * this_._internal_steps_size(); + for (const auto& msg : this_._internal_steps()) { + total_size += ::google::protobuf::internal::WireFormatLite::MessageSize(msg); + } + } + // repeated .Odb.Lib.Protobuf.MatrixFile.LayerRecord layers = 2; + { + total_size += 1UL * this_._internal_layers_size(); + for (const auto& msg : this_._internal_layers()) { + total_size += ::google::protobuf::internal::WireFormatLite::MessageSize(msg); + } + } + } + return this_.MaybeComputeUnknownFieldsSize(total_size, + &this_._impl_._cached_size_); + } + +void MatrixFile::MergeImpl(::google::protobuf::MessageLite& to_msg, const ::google::protobuf::MessageLite& from_msg) { auto* const _this = static_cast(&to_msg); auto& from = static_cast(from_msg); // @@protoc_insertion_point(class_specific_merge_from_start:Odb.Lib.Protobuf.MatrixFile) - GOOGLE_DCHECK_NE(&from, _this); - uint32_t cached_has_bits = 0; + ABSL_DCHECK_NE(&from, _this); + ::uint32_t cached_has_bits = 0; (void) cached_has_bits; - _this->_impl_.steps_.MergeFrom(from._impl_.steps_); - _this->_impl_.layers_.MergeFrom(from._impl_.layers_); - _this->_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); + _this->_internal_mutable_steps()->MergeFrom( + from._internal_steps()); + _this->_internal_mutable_layers()->MergeFrom( + from._internal_layers()); + _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); } void MatrixFile::CopyFrom(const MatrixFile& from) { @@ -1486,41 +1530,28 @@ void MatrixFile::CopyFrom(const MatrixFile& from) { MergeFrom(from); } -bool MatrixFile::IsInitialized() const { - return true; -} -void MatrixFile::InternalSwap(MatrixFile* other) { +void MatrixFile::InternalSwap(MatrixFile* PROTOBUF_RESTRICT other) { using std::swap; _internal_metadata_.InternalSwap(&other->_internal_metadata_); _impl_.steps_.InternalSwap(&other->_impl_.steps_); _impl_.layers_.InternalSwap(&other->_impl_.layers_); } -::PROTOBUF_NAMESPACE_ID::Metadata MatrixFile::GetMetadata() const { - return ::_pbi::AssignDescriptors( - &descriptor_table_matrixfile_2eproto_getter, &descriptor_table_matrixfile_2eproto_once, - file_level_metadata_matrixfile_2eproto[2]); +::google::protobuf::Metadata MatrixFile::GetMetadata() const { + return ::google::protobuf::Message::GetMetadataImpl(GetClassData()->full()); } - // @@protoc_insertion_point(namespace_scope) } // namespace Protobuf } // namespace Lib } // namespace Odb -PROTOBUF_NAMESPACE_OPEN -template<> PROTOBUF_NOINLINE ::Odb::Lib::Protobuf::MatrixFile_StepRecord* -Arena::CreateMaybeMessage< ::Odb::Lib::Protobuf::MatrixFile_StepRecord >(Arena* arena) { - return Arena::CreateMessageInternal< ::Odb::Lib::Protobuf::MatrixFile_StepRecord >(arena); -} -template<> PROTOBUF_NOINLINE ::Odb::Lib::Protobuf::MatrixFile_LayerRecord* -Arena::CreateMaybeMessage< ::Odb::Lib::Protobuf::MatrixFile_LayerRecord >(Arena* arena) { - return Arena::CreateMessageInternal< ::Odb::Lib::Protobuf::MatrixFile_LayerRecord >(arena); -} -template<> PROTOBUF_NOINLINE ::Odb::Lib::Protobuf::MatrixFile* -Arena::CreateMaybeMessage< ::Odb::Lib::Protobuf::MatrixFile >(Arena* arena) { - return Arena::CreateMessageInternal< ::Odb::Lib::Protobuf::MatrixFile >(arena); -} -PROTOBUF_NAMESPACE_CLOSE - +namespace google { +namespace protobuf { +} // namespace protobuf +} // namespace google // @@protoc_insertion_point(global_scope) -#include +PROTOBUF_ATTRIBUTE_INIT_PRIORITY2 static ::std::false_type + _static_init2_ PROTOBUF_UNUSED = + (::_pbi::AddDescriptors(&descriptor_table_matrixfile_2eproto), + ::std::false_type{}); +#include "google/protobuf/port_undef.inc" diff --git a/OdbDesignLib/ProtoBuf/matrixfile.pb.h b/OdbDesignLib/ProtoBuf/matrixfile.pb.h index d6d87a76..c2b72e00 100644 --- a/OdbDesignLib/ProtoBuf/matrixfile.pb.h +++ b/OdbDesignLib/ProtoBuf/matrixfile.pb.h @@ -1,51 +1,58 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE // source: matrixfile.proto +// Protobuf C++ Version: 5.29.2 -#ifndef GOOGLE_PROTOBUF_INCLUDED_matrixfile_2eproto -#define GOOGLE_PROTOBUF_INCLUDED_matrixfile_2eproto +#ifndef matrixfile_2eproto_2epb_2eh +#define matrixfile_2eproto_2epb_2eh #include #include - -#include -#if PROTOBUF_VERSION < 3021000 -#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 3021012 < 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. +#include +#include + +#include "google/protobuf/runtime_version.h" +#if PROTOBUF_VERSION != 5029002 +#error "Protobuf C++ gencode is built with an incompatible version of" +#error "Protobuf C++ headers/runtime. See" +#error "https://protobuf.dev/support/cross-version-runtime-guarantee/#cpp" #endif - -#include -#include -#include -#include -#include -#include -#include -#include -#include // IWYU pragma: export -#include // IWYU pragma: export -#include -#include +#include "google/protobuf/io/coded_stream.h" +#include "google/protobuf/arena.h" +#include "google/protobuf/arenastring.h" +#include "google/protobuf/generated_message_tctable_decl.h" +#include "google/protobuf/generated_message_util.h" +#include "google/protobuf/metadata_lite.h" +#include "google/protobuf/generated_message_reflection.h" +#include "google/protobuf/message.h" +#include "google/protobuf/message_lite.h" +#include "google/protobuf/repeated_field.h" // IWYU pragma: export +#include "google/protobuf/extension_set.h" // IWYU pragma: export +#include "google/protobuf/generated_enum_reflection.h" +#include "google/protobuf/unknown_field_set.h" #include "enums.pb.h" // @@protoc_insertion_point(includes) -#include + +// Must be included last. +#include "google/protobuf/port_def.inc" + #define PROTOBUF_INTERNAL_EXPORT_matrixfile_2eproto ODBDESIGN_EXPORT -PROTOBUF_NAMESPACE_OPEN + +namespace google { +namespace protobuf { namespace internal { -class AnyMetadata; +template +::absl::string_view GetAnyMessageName(); } // namespace internal -PROTOBUF_NAMESPACE_CLOSE +} // namespace protobuf +} // namespace google // Internal implementation detail -- do not use these members. struct ODBDESIGN_EXPORT TableStruct_matrixfile_2eproto { - static const uint32_t offsets[]; + static const ::uint32_t offsets[]; }; -ODBDESIGN_EXPORT extern const ::PROTOBUF_NAMESPACE_ID::internal::DescriptorTable descriptor_table_matrixfile_2eproto; +ODBDESIGN_EXPORT extern const ::google::protobuf::internal::DescriptorTable + descriptor_table_matrixfile_2eproto; namespace Odb { namespace Lib { namespace Protobuf { @@ -61,15 +68,14 @@ ODBDESIGN_EXPORT extern MatrixFile_StepRecordDefaultTypeInternal _MatrixFile_Ste } // namespace Protobuf } // namespace Lib } // namespace Odb -PROTOBUF_NAMESPACE_OPEN -template<> ODBDESIGN_EXPORT ::Odb::Lib::Protobuf::MatrixFile* Arena::CreateMaybeMessage<::Odb::Lib::Protobuf::MatrixFile>(Arena*); -template<> ODBDESIGN_EXPORT ::Odb::Lib::Protobuf::MatrixFile_LayerRecord* Arena::CreateMaybeMessage<::Odb::Lib::Protobuf::MatrixFile_LayerRecord>(Arena*); -template<> ODBDESIGN_EXPORT ::Odb::Lib::Protobuf::MatrixFile_StepRecord* Arena::CreateMaybeMessage<::Odb::Lib::Protobuf::MatrixFile_StepRecord>(Arena*); -PROTOBUF_NAMESPACE_CLOSE +namespace google { +namespace protobuf { +} // namespace protobuf +} // namespace google + namespace Odb { namespace Lib { namespace Protobuf { - enum MatrixFile_LayerRecord_Type : int { MatrixFile_LayerRecord_Type_Signal = 0, MatrixFile_LayerRecord_Type_PowerGround = 1, @@ -84,130 +90,169 @@ enum MatrixFile_LayerRecord_Type : int { MatrixFile_LayerRecord_Type_Component = 10, MatrixFile_LayerRecord_Type_Mask = 11, MatrixFile_LayerRecord_Type_ConductivePaste = 12, - MatrixFile_LayerRecord_Type_MatrixFile_LayerRecord_Type_INT_MIN_SENTINEL_DO_NOT_USE_ = std::numeric_limits::min(), - MatrixFile_LayerRecord_Type_MatrixFile_LayerRecord_Type_INT_MAX_SENTINEL_DO_NOT_USE_ = std::numeric_limits::max() + MatrixFile_LayerRecord_Type_MatrixFile_LayerRecord_Type_INT_MIN_SENTINEL_DO_NOT_USE_ = + std::numeric_limits<::int32_t>::min(), + MatrixFile_LayerRecord_Type_MatrixFile_LayerRecord_Type_INT_MAX_SENTINEL_DO_NOT_USE_ = + std::numeric_limits<::int32_t>::max(), }; + ODBDESIGN_EXPORT bool MatrixFile_LayerRecord_Type_IsValid(int value); -constexpr MatrixFile_LayerRecord_Type MatrixFile_LayerRecord_Type_Type_MIN = MatrixFile_LayerRecord_Type_Signal; -constexpr MatrixFile_LayerRecord_Type MatrixFile_LayerRecord_Type_Type_MAX = MatrixFile_LayerRecord_Type_ConductivePaste; -constexpr int MatrixFile_LayerRecord_Type_Type_ARRAYSIZE = MatrixFile_LayerRecord_Type_Type_MAX + 1; - -ODBDESIGN_EXPORT const ::PROTOBUF_NAMESPACE_ID::EnumDescriptor* MatrixFile_LayerRecord_Type_descriptor(); -template -inline const std::string& MatrixFile_LayerRecord_Type_Name(T enum_t_value) { - static_assert(::std::is_same::value || - ::std::is_integral::value, - "Incorrect type passed to function MatrixFile_LayerRecord_Type_Name."); - return ::PROTOBUF_NAMESPACE_ID::internal::NameOfEnum( - MatrixFile_LayerRecord_Type_descriptor(), enum_t_value); -} -inline bool MatrixFile_LayerRecord_Type_Parse( - ::PROTOBUF_NAMESPACE_ID::ConstStringParam name, MatrixFile_LayerRecord_Type* value) { - return ::PROTOBUF_NAMESPACE_ID::internal::ParseNamedEnum( - MatrixFile_LayerRecord_Type_descriptor(), name, value); +ODBDESIGN_EXPORT extern const uint32_t MatrixFile_LayerRecord_Type_internal_data_[]; +constexpr MatrixFile_LayerRecord_Type MatrixFile_LayerRecord_Type_Type_MIN = static_cast(0); +constexpr MatrixFile_LayerRecord_Type MatrixFile_LayerRecord_Type_Type_MAX = static_cast(12); +constexpr int MatrixFile_LayerRecord_Type_Type_ARRAYSIZE = 12 + 1; +ODBDESIGN_EXPORT const ::google::protobuf::EnumDescriptor* +MatrixFile_LayerRecord_Type_descriptor(); +template +const std::string& MatrixFile_LayerRecord_Type_Name(T value) { + static_assert(std::is_same::value || + std::is_integral::value, + "Incorrect type passed to Type_Name()."); + return MatrixFile_LayerRecord_Type_Name(static_cast(value)); +} +template <> +inline const std::string& MatrixFile_LayerRecord_Type_Name(MatrixFile_LayerRecord_Type value) { + return ::google::protobuf::internal::NameOfDenseEnum( + static_cast(value)); +} +inline bool MatrixFile_LayerRecord_Type_Parse(absl::string_view name, MatrixFile_LayerRecord_Type* value) { + return ::google::protobuf::internal::ParseNamedEnum( + MatrixFile_LayerRecord_Type_descriptor(), name, value); } enum MatrixFile_LayerRecord_Context : int { MatrixFile_LayerRecord_Context_Board = 0, MatrixFile_LayerRecord_Context_Misc = 1, - MatrixFile_LayerRecord_Context_MatrixFile_LayerRecord_Context_INT_MIN_SENTINEL_DO_NOT_USE_ = std::numeric_limits::min(), - MatrixFile_LayerRecord_Context_MatrixFile_LayerRecord_Context_INT_MAX_SENTINEL_DO_NOT_USE_ = std::numeric_limits::max() + MatrixFile_LayerRecord_Context_MatrixFile_LayerRecord_Context_INT_MIN_SENTINEL_DO_NOT_USE_ = + std::numeric_limits<::int32_t>::min(), + MatrixFile_LayerRecord_Context_MatrixFile_LayerRecord_Context_INT_MAX_SENTINEL_DO_NOT_USE_ = + std::numeric_limits<::int32_t>::max(), }; + ODBDESIGN_EXPORT bool MatrixFile_LayerRecord_Context_IsValid(int value); -constexpr MatrixFile_LayerRecord_Context MatrixFile_LayerRecord_Context_Context_MIN = MatrixFile_LayerRecord_Context_Board; -constexpr MatrixFile_LayerRecord_Context MatrixFile_LayerRecord_Context_Context_MAX = MatrixFile_LayerRecord_Context_Misc; -constexpr int MatrixFile_LayerRecord_Context_Context_ARRAYSIZE = MatrixFile_LayerRecord_Context_Context_MAX + 1; - -ODBDESIGN_EXPORT const ::PROTOBUF_NAMESPACE_ID::EnumDescriptor* MatrixFile_LayerRecord_Context_descriptor(); -template -inline const std::string& MatrixFile_LayerRecord_Context_Name(T enum_t_value) { - static_assert(::std::is_same::value || - ::std::is_integral::value, - "Incorrect type passed to function MatrixFile_LayerRecord_Context_Name."); - return ::PROTOBUF_NAMESPACE_ID::internal::NameOfEnum( - MatrixFile_LayerRecord_Context_descriptor(), enum_t_value); -} -inline bool MatrixFile_LayerRecord_Context_Parse( - ::PROTOBUF_NAMESPACE_ID::ConstStringParam name, MatrixFile_LayerRecord_Context* value) { - return ::PROTOBUF_NAMESPACE_ID::internal::ParseNamedEnum( - MatrixFile_LayerRecord_Context_descriptor(), name, value); +ODBDESIGN_EXPORT extern const uint32_t MatrixFile_LayerRecord_Context_internal_data_[]; +constexpr MatrixFile_LayerRecord_Context MatrixFile_LayerRecord_Context_Context_MIN = static_cast(0); +constexpr MatrixFile_LayerRecord_Context MatrixFile_LayerRecord_Context_Context_MAX = static_cast(1); +constexpr int MatrixFile_LayerRecord_Context_Context_ARRAYSIZE = 1 + 1; +ODBDESIGN_EXPORT const ::google::protobuf::EnumDescriptor* +MatrixFile_LayerRecord_Context_descriptor(); +template +const std::string& MatrixFile_LayerRecord_Context_Name(T value) { + static_assert(std::is_same::value || + std::is_integral::value, + "Incorrect type passed to Context_Name()."); + return MatrixFile_LayerRecord_Context_Name(static_cast(value)); +} +template <> +inline const std::string& MatrixFile_LayerRecord_Context_Name(MatrixFile_LayerRecord_Context value) { + return ::google::protobuf::internal::NameOfDenseEnum( + static_cast(value)); +} +inline bool MatrixFile_LayerRecord_Context_Parse(absl::string_view name, MatrixFile_LayerRecord_Context* value) { + return ::google::protobuf::internal::ParseNamedEnum( + MatrixFile_LayerRecord_Context_descriptor(), name, value); } enum MatrixFile_LayerRecord_DielectricType : int { MatrixFile_LayerRecord_DielectricType_None = 0, MatrixFile_LayerRecord_DielectricType_Prepreg = 1, MatrixFile_LayerRecord_DielectricType_Core = 2, - MatrixFile_LayerRecord_DielectricType_MatrixFile_LayerRecord_DielectricType_INT_MIN_SENTINEL_DO_NOT_USE_ = std::numeric_limits::min(), - MatrixFile_LayerRecord_DielectricType_MatrixFile_LayerRecord_DielectricType_INT_MAX_SENTINEL_DO_NOT_USE_ = std::numeric_limits::max() + MatrixFile_LayerRecord_DielectricType_MatrixFile_LayerRecord_DielectricType_INT_MIN_SENTINEL_DO_NOT_USE_ = + std::numeric_limits<::int32_t>::min(), + MatrixFile_LayerRecord_DielectricType_MatrixFile_LayerRecord_DielectricType_INT_MAX_SENTINEL_DO_NOT_USE_ = + std::numeric_limits<::int32_t>::max(), }; + ODBDESIGN_EXPORT bool MatrixFile_LayerRecord_DielectricType_IsValid(int value); -constexpr MatrixFile_LayerRecord_DielectricType MatrixFile_LayerRecord_DielectricType_DielectricType_MIN = MatrixFile_LayerRecord_DielectricType_None; -constexpr MatrixFile_LayerRecord_DielectricType MatrixFile_LayerRecord_DielectricType_DielectricType_MAX = MatrixFile_LayerRecord_DielectricType_Core; -constexpr int MatrixFile_LayerRecord_DielectricType_DielectricType_ARRAYSIZE = MatrixFile_LayerRecord_DielectricType_DielectricType_MAX + 1; - -ODBDESIGN_EXPORT const ::PROTOBUF_NAMESPACE_ID::EnumDescriptor* MatrixFile_LayerRecord_DielectricType_descriptor(); -template -inline const std::string& MatrixFile_LayerRecord_DielectricType_Name(T enum_t_value) { - static_assert(::std::is_same::value || - ::std::is_integral::value, - "Incorrect type passed to function MatrixFile_LayerRecord_DielectricType_Name."); - return ::PROTOBUF_NAMESPACE_ID::internal::NameOfEnum( - MatrixFile_LayerRecord_DielectricType_descriptor(), enum_t_value); -} -inline bool MatrixFile_LayerRecord_DielectricType_Parse( - ::PROTOBUF_NAMESPACE_ID::ConstStringParam name, MatrixFile_LayerRecord_DielectricType* value) { - return ::PROTOBUF_NAMESPACE_ID::internal::ParseNamedEnum( - MatrixFile_LayerRecord_DielectricType_descriptor(), name, value); +ODBDESIGN_EXPORT extern const uint32_t MatrixFile_LayerRecord_DielectricType_internal_data_[]; +constexpr MatrixFile_LayerRecord_DielectricType MatrixFile_LayerRecord_DielectricType_DielectricType_MIN = static_cast(0); +constexpr MatrixFile_LayerRecord_DielectricType MatrixFile_LayerRecord_DielectricType_DielectricType_MAX = static_cast(2); +constexpr int MatrixFile_LayerRecord_DielectricType_DielectricType_ARRAYSIZE = 2 + 1; +ODBDESIGN_EXPORT const ::google::protobuf::EnumDescriptor* +MatrixFile_LayerRecord_DielectricType_descriptor(); +template +const std::string& MatrixFile_LayerRecord_DielectricType_Name(T value) { + static_assert(std::is_same::value || + std::is_integral::value, + "Incorrect type passed to DielectricType_Name()."); + return MatrixFile_LayerRecord_DielectricType_Name(static_cast(value)); +} +template <> +inline const std::string& MatrixFile_LayerRecord_DielectricType_Name(MatrixFile_LayerRecord_DielectricType value) { + return ::google::protobuf::internal::NameOfDenseEnum( + static_cast(value)); +} +inline bool MatrixFile_LayerRecord_DielectricType_Parse(absl::string_view name, MatrixFile_LayerRecord_DielectricType* value) { + return ::google::protobuf::internal::ParseNamedEnum( + MatrixFile_LayerRecord_DielectricType_descriptor(), name, value); } enum MatrixFile_LayerRecord_Form : int { MatrixFile_LayerRecord_Form_Rigid = 0, MatrixFile_LayerRecord_Form_Flex = 1, - MatrixFile_LayerRecord_Form_MatrixFile_LayerRecord_Form_INT_MIN_SENTINEL_DO_NOT_USE_ = std::numeric_limits::min(), - MatrixFile_LayerRecord_Form_MatrixFile_LayerRecord_Form_INT_MAX_SENTINEL_DO_NOT_USE_ = std::numeric_limits::max() + MatrixFile_LayerRecord_Form_MatrixFile_LayerRecord_Form_INT_MIN_SENTINEL_DO_NOT_USE_ = + std::numeric_limits<::int32_t>::min(), + MatrixFile_LayerRecord_Form_MatrixFile_LayerRecord_Form_INT_MAX_SENTINEL_DO_NOT_USE_ = + std::numeric_limits<::int32_t>::max(), }; + ODBDESIGN_EXPORT bool MatrixFile_LayerRecord_Form_IsValid(int value); -constexpr MatrixFile_LayerRecord_Form MatrixFile_LayerRecord_Form_Form_MIN = MatrixFile_LayerRecord_Form_Rigid; -constexpr MatrixFile_LayerRecord_Form MatrixFile_LayerRecord_Form_Form_MAX = MatrixFile_LayerRecord_Form_Flex; -constexpr int MatrixFile_LayerRecord_Form_Form_ARRAYSIZE = MatrixFile_LayerRecord_Form_Form_MAX + 1; - -ODBDESIGN_EXPORT const ::PROTOBUF_NAMESPACE_ID::EnumDescriptor* MatrixFile_LayerRecord_Form_descriptor(); -template -inline const std::string& MatrixFile_LayerRecord_Form_Name(T enum_t_value) { - static_assert(::std::is_same::value || - ::std::is_integral::value, - "Incorrect type passed to function MatrixFile_LayerRecord_Form_Name."); - return ::PROTOBUF_NAMESPACE_ID::internal::NameOfEnum( - MatrixFile_LayerRecord_Form_descriptor(), enum_t_value); -} -inline bool MatrixFile_LayerRecord_Form_Parse( - ::PROTOBUF_NAMESPACE_ID::ConstStringParam name, MatrixFile_LayerRecord_Form* value) { - return ::PROTOBUF_NAMESPACE_ID::internal::ParseNamedEnum( - MatrixFile_LayerRecord_Form_descriptor(), name, value); +ODBDESIGN_EXPORT extern const uint32_t MatrixFile_LayerRecord_Form_internal_data_[]; +constexpr MatrixFile_LayerRecord_Form MatrixFile_LayerRecord_Form_Form_MIN = static_cast(0); +constexpr MatrixFile_LayerRecord_Form MatrixFile_LayerRecord_Form_Form_MAX = static_cast(1); +constexpr int MatrixFile_LayerRecord_Form_Form_ARRAYSIZE = 1 + 1; +ODBDESIGN_EXPORT const ::google::protobuf::EnumDescriptor* +MatrixFile_LayerRecord_Form_descriptor(); +template +const std::string& MatrixFile_LayerRecord_Form_Name(T value) { + static_assert(std::is_same::value || + std::is_integral::value, + "Incorrect type passed to Form_Name()."); + return MatrixFile_LayerRecord_Form_Name(static_cast(value)); +} +template <> +inline const std::string& MatrixFile_LayerRecord_Form_Name(MatrixFile_LayerRecord_Form value) { + return ::google::protobuf::internal::NameOfDenseEnum( + static_cast(value)); } +inline bool MatrixFile_LayerRecord_Form_Parse(absl::string_view name, MatrixFile_LayerRecord_Form* value) { + return ::google::protobuf::internal::ParseNamedEnum( + MatrixFile_LayerRecord_Form_descriptor(), name, value); +} + // =================================================================== -class ODBDESIGN_EXPORT MatrixFile_StepRecord final : - public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:Odb.Lib.Protobuf.MatrixFile.StepRecord) */ { + +// ------------------------------------------------------------------- + +class ODBDESIGN_EXPORT MatrixFile_StepRecord final : public ::google::protobuf::Message +/* @@protoc_insertion_point(class_definition:Odb.Lib.Protobuf.MatrixFile.StepRecord) */ { public: inline MatrixFile_StepRecord() : MatrixFile_StepRecord(nullptr) {} - ~MatrixFile_StepRecord() override; - explicit PROTOBUF_CONSTEXPR MatrixFile_StepRecord(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); + ~MatrixFile_StepRecord() PROTOBUF_FINAL; - MatrixFile_StepRecord(const MatrixFile_StepRecord& from); - MatrixFile_StepRecord(MatrixFile_StepRecord&& from) noexcept - : MatrixFile_StepRecord() { - *this = ::std::move(from); +#if defined(PROTOBUF_CUSTOM_VTABLE) + void operator delete(MatrixFile_StepRecord* msg, std::destroying_delete_t) { + SharedDtor(*msg); + ::google::protobuf::internal::SizedDelete(msg, sizeof(MatrixFile_StepRecord)); } +#endif + template + explicit PROTOBUF_CONSTEXPR MatrixFile_StepRecord( + ::google::protobuf::internal::ConstantInitialized); + + inline MatrixFile_StepRecord(const MatrixFile_StepRecord& from) : MatrixFile_StepRecord(nullptr, from) {} + inline MatrixFile_StepRecord(MatrixFile_StepRecord&& from) noexcept + : MatrixFile_StepRecord(nullptr, std::move(from)) {} inline MatrixFile_StepRecord& operator=(const MatrixFile_StepRecord& from) { CopyFrom(from); return *this; } inline MatrixFile_StepRecord& operator=(MatrixFile_StepRecord&& from) noexcept { if (this == &from) return *this; - if (GetOwningArena() == from.GetOwningArena() - #ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetOwningArena() != nullptr - #endif // !PROTOBUF_FORCE_COPY_IN_MOVE - ) { + if (::google::protobuf::internal::CanMoveWithInternalSwap(GetArena(), from.GetArena())) { InternalSwap(&from); } else { CopyFrom(from); @@ -215,13 +260,22 @@ class ODBDESIGN_EXPORT MatrixFile_StepRecord final : return *this; } - static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { + inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const + ABSL_ATTRIBUTE_LIFETIME_BOUND { + return _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance); + } + inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() + ABSL_ATTRIBUTE_LIFETIME_BOUND { + return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); + } + + static const ::google::protobuf::Descriptor* descriptor() { return GetDescriptor(); } - static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { + static const ::google::protobuf::Descriptor* GetDescriptor() { return default_instance().GetMetadata().descriptor; } - static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { + static const ::google::protobuf::Reflection* GetReflection() { return default_instance().GetMetadata().reflection; } static const MatrixFile_StepRecord& default_instance() { @@ -229,160 +283,196 @@ class ODBDESIGN_EXPORT MatrixFile_StepRecord final : } static inline const MatrixFile_StepRecord* internal_default_instance() { return reinterpret_cast( - &_MatrixFile_StepRecord_default_instance_); - } - static constexpr int kIndexInFileMessages = - 0; - - friend void swap(MatrixFile_StepRecord& a, MatrixFile_StepRecord& b) { - a.Swap(&b); + &_MatrixFile_StepRecord_default_instance_); } + static constexpr int kIndexInFileMessages = 0; + friend void swap(MatrixFile_StepRecord& a, MatrixFile_StepRecord& b) { a.Swap(&b); } inline void Swap(MatrixFile_StepRecord* other) { if (other == this) return; - #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetOwningArena() != nullptr && - GetOwningArena() == other->GetOwningArena()) { - #else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetOwningArena() == other->GetOwningArena()) { - #endif // !PROTOBUF_FORCE_COPY_IN_SWAP + if (::google::protobuf::internal::CanUseInternalSwap(GetArena(), other->GetArena())) { InternalSwap(other); } else { - ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); + ::google::protobuf::internal::GenericSwap(this, other); } } void UnsafeArenaSwap(MatrixFile_StepRecord* other) { if (other == this) return; - GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); + ABSL_DCHECK(GetArena() == other->GetArena()); InternalSwap(other); } // implements Message ---------------------------------------------- - MatrixFile_StepRecord* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); + MatrixFile_StepRecord* New(::google::protobuf::Arena* arena = nullptr) const { + return ::google::protobuf::Message::DefaultConstruct(arena); } - using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; + using ::google::protobuf::Message::CopyFrom; void CopyFrom(const MatrixFile_StepRecord& from); - using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; - void MergeFrom( const MatrixFile_StepRecord& from) { - MatrixFile_StepRecord::MergeImpl(*this, from); - } + using ::google::protobuf::Message::MergeFrom; + void MergeFrom(const MatrixFile_StepRecord& from) { MatrixFile_StepRecord::MergeImpl(*this, from); } + private: - static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg); + static void MergeImpl( + ::google::protobuf::MessageLite& to_msg, + const ::google::protobuf::MessageLite& from_msg); + public: - PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; - bool IsInitialized() const final; + bool IsInitialized() const { + return true; + } + ABSL_ATTRIBUTE_REINITIALIZES void Clear() PROTOBUF_FINAL; + #if defined(PROTOBUF_CUSTOM_VTABLE) + private: + static ::size_t ByteSizeLong(const ::google::protobuf::MessageLite& msg); + static ::uint8_t* _InternalSerialize( + const MessageLite& msg, ::uint8_t* target, + ::google::protobuf::io::EpsCopyOutputStream* stream); - size_t ByteSizeLong() const final; - const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final; - uint8_t* _InternalSerialize( - uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const final { return _impl_._cached_size_.Get(); } + public: + ::size_t ByteSizeLong() const { return ByteSizeLong(*this); } + ::uint8_t* _InternalSerialize( + ::uint8_t* target, + ::google::protobuf::io::EpsCopyOutputStream* stream) const { + return _InternalSerialize(*this, target, stream); + } + #else // PROTOBUF_CUSTOM_VTABLE + ::size_t ByteSizeLong() const final; + ::uint8_t* _InternalSerialize( + ::uint8_t* target, + ::google::protobuf::io::EpsCopyOutputStream* stream) const final; + #endif // PROTOBUF_CUSTOM_VTABLE + int GetCachedSize() const { return _impl_._cached_size_.Get(); } private: - void SharedCtor(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned); - void SharedDtor(); - void SetCachedSize(int size) const final; + void SharedCtor(::google::protobuf::Arena* arena); + static void SharedDtor(MessageLite& self); void InternalSwap(MatrixFile_StepRecord* other); - - private: - friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; - static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { - return "Odb.Lib.Protobuf.MatrixFile.StepRecord"; + private: + template + friend ::absl::string_view( + ::google::protobuf::internal::GetAnyMessageName)(); + static ::absl::string_view FullMessageName() { return "Odb.Lib.Protobuf.MatrixFile.StepRecord"; } + + protected: + explicit MatrixFile_StepRecord(::google::protobuf::Arena* arena); + MatrixFile_StepRecord(::google::protobuf::Arena* arena, const MatrixFile_StepRecord& from); + MatrixFile_StepRecord(::google::protobuf::Arena* arena, MatrixFile_StepRecord&& from) noexcept + : MatrixFile_StepRecord(arena) { + *this = ::std::move(from); } - protected: - explicit MatrixFile_StepRecord(::PROTOBUF_NAMESPACE_ID::Arena* arena, - bool is_message_owned = false); - public: - - static const ClassData _class_data_; - const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final; - - ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; + const ::google::protobuf::internal::ClassData* GetClassData() const PROTOBUF_FINAL; + static void* PlacementNew_(const void*, void* mem, + ::google::protobuf::Arena* arena); + static constexpr auto InternalNewImpl_(); + static const ::google::protobuf::internal::ClassDataFull _class_data_; + public: + ::google::protobuf::Metadata GetMetadata() const; // nested types ---------------------------------------------------- // accessors ------------------------------------------------------- - enum : int { kNameFieldNumber = 3, kColumnFieldNumber = 1, kIdFieldNumber = 2, }; // string name = 3; - void clear_name(); + void clear_name() ; const std::string& name() const; - template - void set_name(ArgT0&& arg0, ArgT... args); + template + void set_name(Arg_&& arg, Args_... args); std::string* mutable_name(); PROTOBUF_NODISCARD std::string* release_name(); - void set_allocated_name(std::string* name); + void set_allocated_name(std::string* value); + private: const std::string& _internal_name() const; - inline PROTOBUF_ALWAYS_INLINE void _internal_set_name(const std::string& value); + inline PROTOBUF_ALWAYS_INLINE void _internal_set_name( + const std::string& value); std::string* _internal_mutable_name(); - public: + public: // uint32 column = 1; - void clear_column(); - uint32_t column() const; - void set_column(uint32_t value); + void clear_column() ; + ::uint32_t column() const; + void set_column(::uint32_t value); + private: - uint32_t _internal_column() const; - void _internal_set_column(uint32_t value); - public: + ::uint32_t _internal_column() const; + void _internal_set_column(::uint32_t value); + public: // uint32 id = 2; - void clear_id(); - uint32_t id() const; - void set_id(uint32_t value); + void clear_id() ; + ::uint32_t id() const; + void set_id(::uint32_t value); + private: - uint32_t _internal_id() const; - void _internal_set_id(uint32_t value); - public: + ::uint32_t _internal_id() const; + void _internal_set_id(::uint32_t value); + public: // @@protoc_insertion_point(class_scope:Odb.Lib.Protobuf.MatrixFile.StepRecord) private: class _Internal; - - template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; - typedef void InternalArenaConstructable_; - typedef void DestructorSkippable_; + friend class ::google::protobuf::internal::TcParser; + static const ::google::protobuf::internal::TcParseTable< + 2, 3, 0, + 51, 2> + _table_; + + friend class ::google::protobuf::MessageLite; + friend class ::google::protobuf::Arena; + template + friend class ::google::protobuf::Arena::InternalHelper; + using InternalArenaConstructable_ = void; + using DestructorSkippable_ = void; struct Impl_ { - ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr name_; - uint32_t column_; - uint32_t id_; - mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; + inline explicit constexpr Impl_( + ::google::protobuf::internal::ConstantInitialized) noexcept; + inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* arena); + inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* arena, const Impl_& from, + const MatrixFile_StepRecord& from_msg); + ::google::protobuf::internal::ArenaStringPtr name_; + ::uint32_t column_; + ::uint32_t id_; + ::google::protobuf::internal::CachedSize _cached_size_; + PROTOBUF_TSAN_DECLARE_MEMBER }; union { Impl_ _impl_; }; friend struct ::TableStruct_matrixfile_2eproto; }; // ------------------------------------------------------------------- -class ODBDESIGN_EXPORT MatrixFile_LayerRecord final : - public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:Odb.Lib.Protobuf.MatrixFile.LayerRecord) */ { +class ODBDESIGN_EXPORT MatrixFile_LayerRecord final : public ::google::protobuf::Message +/* @@protoc_insertion_point(class_definition:Odb.Lib.Protobuf.MatrixFile.LayerRecord) */ { public: inline MatrixFile_LayerRecord() : MatrixFile_LayerRecord(nullptr) {} - ~MatrixFile_LayerRecord() override; - explicit PROTOBUF_CONSTEXPR MatrixFile_LayerRecord(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); + ~MatrixFile_LayerRecord() PROTOBUF_FINAL; - MatrixFile_LayerRecord(const MatrixFile_LayerRecord& from); - MatrixFile_LayerRecord(MatrixFile_LayerRecord&& from) noexcept - : MatrixFile_LayerRecord() { - *this = ::std::move(from); +#if defined(PROTOBUF_CUSTOM_VTABLE) + void operator delete(MatrixFile_LayerRecord* msg, std::destroying_delete_t) { + SharedDtor(*msg); + ::google::protobuf::internal::SizedDelete(msg, sizeof(MatrixFile_LayerRecord)); } +#endif + + template + explicit PROTOBUF_CONSTEXPR MatrixFile_LayerRecord( + ::google::protobuf::internal::ConstantInitialized); + inline MatrixFile_LayerRecord(const MatrixFile_LayerRecord& from) : MatrixFile_LayerRecord(nullptr, from) {} + inline MatrixFile_LayerRecord(MatrixFile_LayerRecord&& from) noexcept + : MatrixFile_LayerRecord(nullptr, std::move(from)) {} inline MatrixFile_LayerRecord& operator=(const MatrixFile_LayerRecord& from) { CopyFrom(from); return *this; } inline MatrixFile_LayerRecord& operator=(MatrixFile_LayerRecord&& from) noexcept { if (this == &from) return *this; - if (GetOwningArena() == from.GetOwningArena() - #ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetOwningArena() != nullptr - #endif // !PROTOBUF_FORCE_COPY_IN_MOVE - ) { + if (::google::protobuf::internal::CanMoveWithInternalSwap(GetArena(), from.GetArena())) { InternalSwap(&from); } else { CopyFrom(from); @@ -390,13 +480,22 @@ class ODBDESIGN_EXPORT MatrixFile_LayerRecord final : return *this; } - static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { + inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const + ABSL_ATTRIBUTE_LIFETIME_BOUND { + return _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance); + } + inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() + ABSL_ATTRIBUTE_LIFETIME_BOUND { + return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); + } + + static const ::google::protobuf::Descriptor* descriptor() { return GetDescriptor(); } - static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { + static const ::google::protobuf::Descriptor* GetDescriptor() { return default_instance().GetMetadata().descriptor; } - static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { + static const ::google::protobuf::Reflection* GetReflection() { return default_instance().GetMetadata().reflection; } static const MatrixFile_LayerRecord& default_instance() { @@ -404,225 +503,182 @@ class ODBDESIGN_EXPORT MatrixFile_LayerRecord final : } static inline const MatrixFile_LayerRecord* internal_default_instance() { return reinterpret_cast( - &_MatrixFile_LayerRecord_default_instance_); - } - static constexpr int kIndexInFileMessages = - 1; - - friend void swap(MatrixFile_LayerRecord& a, MatrixFile_LayerRecord& b) { - a.Swap(&b); + &_MatrixFile_LayerRecord_default_instance_); } + static constexpr int kIndexInFileMessages = 1; + friend void swap(MatrixFile_LayerRecord& a, MatrixFile_LayerRecord& b) { a.Swap(&b); } inline void Swap(MatrixFile_LayerRecord* other) { if (other == this) return; - #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetOwningArena() != nullptr && - GetOwningArena() == other->GetOwningArena()) { - #else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetOwningArena() == other->GetOwningArena()) { - #endif // !PROTOBUF_FORCE_COPY_IN_SWAP + if (::google::protobuf::internal::CanUseInternalSwap(GetArena(), other->GetArena())) { InternalSwap(other); } else { - ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); + ::google::protobuf::internal::GenericSwap(this, other); } } void UnsafeArenaSwap(MatrixFile_LayerRecord* other) { if (other == this) return; - GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); + ABSL_DCHECK(GetArena() == other->GetArena()); InternalSwap(other); } // implements Message ---------------------------------------------- - MatrixFile_LayerRecord* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); + MatrixFile_LayerRecord* New(::google::protobuf::Arena* arena = nullptr) const { + return ::google::protobuf::Message::DefaultConstruct(arena); } - using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; + using ::google::protobuf::Message::CopyFrom; void CopyFrom(const MatrixFile_LayerRecord& from); - using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; - void MergeFrom( const MatrixFile_LayerRecord& from) { - MatrixFile_LayerRecord::MergeImpl(*this, from); - } + using ::google::protobuf::Message::MergeFrom; + void MergeFrom(const MatrixFile_LayerRecord& from) { MatrixFile_LayerRecord::MergeImpl(*this, from); } + private: - static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg); + static void MergeImpl( + ::google::protobuf::MessageLite& to_msg, + const ::google::protobuf::MessageLite& from_msg); + public: - PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; - bool IsInitialized() const final; + bool IsInitialized() const { + return true; + } + ABSL_ATTRIBUTE_REINITIALIZES void Clear() PROTOBUF_FINAL; + #if defined(PROTOBUF_CUSTOM_VTABLE) + private: + static ::size_t ByteSizeLong(const ::google::protobuf::MessageLite& msg); + static ::uint8_t* _InternalSerialize( + const MessageLite& msg, ::uint8_t* target, + ::google::protobuf::io::EpsCopyOutputStream* stream); - size_t ByteSizeLong() const final; - const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final; - uint8_t* _InternalSerialize( - uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const final { return _impl_._cached_size_.Get(); } + public: + ::size_t ByteSizeLong() const { return ByteSizeLong(*this); } + ::uint8_t* _InternalSerialize( + ::uint8_t* target, + ::google::protobuf::io::EpsCopyOutputStream* stream) const { + return _InternalSerialize(*this, target, stream); + } + #else // PROTOBUF_CUSTOM_VTABLE + ::size_t ByteSizeLong() const final; + ::uint8_t* _InternalSerialize( + ::uint8_t* target, + ::google::protobuf::io::EpsCopyOutputStream* stream) const final; + #endif // PROTOBUF_CUSTOM_VTABLE + int GetCachedSize() const { return _impl_._cached_size_.Get(); } private: - void SharedCtor(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned); - void SharedDtor(); - void SetCachedSize(int size) const final; + void SharedCtor(::google::protobuf::Arena* arena); + static void SharedDtor(MessageLite& self); void InternalSwap(MatrixFile_LayerRecord* other); - - private: - friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; - static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { - return "Odb.Lib.Protobuf.MatrixFile.LayerRecord"; + private: + template + friend ::absl::string_view( + ::google::protobuf::internal::GetAnyMessageName)(); + static ::absl::string_view FullMessageName() { return "Odb.Lib.Protobuf.MatrixFile.LayerRecord"; } + + protected: + explicit MatrixFile_LayerRecord(::google::protobuf::Arena* arena); + MatrixFile_LayerRecord(::google::protobuf::Arena* arena, const MatrixFile_LayerRecord& from); + MatrixFile_LayerRecord(::google::protobuf::Arena* arena, MatrixFile_LayerRecord&& from) noexcept + : MatrixFile_LayerRecord(arena) { + *this = ::std::move(from); } - protected: - explicit MatrixFile_LayerRecord(::PROTOBUF_NAMESPACE_ID::Arena* arena, - bool is_message_owned = false); - public: - - static const ClassData _class_data_; - const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final; - - ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; + const ::google::protobuf::internal::ClassData* GetClassData() const PROTOBUF_FINAL; + static void* PlacementNew_(const void*, void* mem, + ::google::protobuf::Arena* arena); + static constexpr auto InternalNewImpl_(); + static const ::google::protobuf::internal::ClassDataFull _class_data_; + public: + ::google::protobuf::Metadata GetMetadata() const; // nested types ---------------------------------------------------- - - typedef MatrixFile_LayerRecord_Type Type; - static constexpr Type Signal = - MatrixFile_LayerRecord_Type_Signal; - static constexpr Type PowerGround = - MatrixFile_LayerRecord_Type_PowerGround; - static constexpr Type Dielectric = - MatrixFile_LayerRecord_Type_Dielectric; - static constexpr Type Mixed = - MatrixFile_LayerRecord_Type_Mixed; - static constexpr Type SolderMask = - MatrixFile_LayerRecord_Type_SolderMask; - static constexpr Type SolderPaste = - MatrixFile_LayerRecord_Type_SolderPaste; - static constexpr Type SilkScreen = - MatrixFile_LayerRecord_Type_SilkScreen; - static constexpr Type Drill = - MatrixFile_LayerRecord_Type_Drill; - static constexpr Type Rout = - MatrixFile_LayerRecord_Type_Rout; - static constexpr Type Document = - MatrixFile_LayerRecord_Type_Document; - static constexpr Type Component = - MatrixFile_LayerRecord_Type_Component; - static constexpr Type Mask = - MatrixFile_LayerRecord_Type_Mask; - static constexpr Type ConductivePaste = - MatrixFile_LayerRecord_Type_ConductivePaste; + using Type = MatrixFile_LayerRecord_Type; + static constexpr Type Signal = MatrixFile_LayerRecord_Type_Signal; + static constexpr Type PowerGround = MatrixFile_LayerRecord_Type_PowerGround; + static constexpr Type Dielectric = MatrixFile_LayerRecord_Type_Dielectric; + static constexpr Type Mixed = MatrixFile_LayerRecord_Type_Mixed; + static constexpr Type SolderMask = MatrixFile_LayerRecord_Type_SolderMask; + static constexpr Type SolderPaste = MatrixFile_LayerRecord_Type_SolderPaste; + static constexpr Type SilkScreen = MatrixFile_LayerRecord_Type_SilkScreen; + static constexpr Type Drill = MatrixFile_LayerRecord_Type_Drill; + static constexpr Type Rout = MatrixFile_LayerRecord_Type_Rout; + static constexpr Type Document = MatrixFile_LayerRecord_Type_Document; + static constexpr Type Component = MatrixFile_LayerRecord_Type_Component; + static constexpr Type Mask = MatrixFile_LayerRecord_Type_Mask; + static constexpr Type ConductivePaste = MatrixFile_LayerRecord_Type_ConductivePaste; static inline bool Type_IsValid(int value) { return MatrixFile_LayerRecord_Type_IsValid(value); } - static constexpr Type Type_MIN = - MatrixFile_LayerRecord_Type_Type_MIN; - static constexpr Type Type_MAX = - MatrixFile_LayerRecord_Type_Type_MAX; - static constexpr int Type_ARRAYSIZE = - MatrixFile_LayerRecord_Type_Type_ARRAYSIZE; - static inline const ::PROTOBUF_NAMESPACE_ID::EnumDescriptor* - Type_descriptor() { + static constexpr Type Type_MIN = MatrixFile_LayerRecord_Type_Type_MIN; + static constexpr Type Type_MAX = MatrixFile_LayerRecord_Type_Type_MAX; + static constexpr int Type_ARRAYSIZE = MatrixFile_LayerRecord_Type_Type_ARRAYSIZE; + static inline const ::google::protobuf::EnumDescriptor* Type_descriptor() { return MatrixFile_LayerRecord_Type_descriptor(); } - template - static inline const std::string& Type_Name(T enum_t_value) { - static_assert(::std::is_same::value || - ::std::is_integral::value, - "Incorrect type passed to function Type_Name."); - return MatrixFile_LayerRecord_Type_Name(enum_t_value); + template + static inline const std::string& Type_Name(T value) { + return MatrixFile_LayerRecord_Type_Name(value); } - static inline bool Type_Parse(::PROTOBUF_NAMESPACE_ID::ConstStringParam name, - Type* value) { + static inline bool Type_Parse(absl::string_view name, Type* value) { return MatrixFile_LayerRecord_Type_Parse(name, value); } - - typedef MatrixFile_LayerRecord_Context Context; - static constexpr Context Board = - MatrixFile_LayerRecord_Context_Board; - static constexpr Context Misc = - MatrixFile_LayerRecord_Context_Misc; + using Context = MatrixFile_LayerRecord_Context; + static constexpr Context Board = MatrixFile_LayerRecord_Context_Board; + static constexpr Context Misc = MatrixFile_LayerRecord_Context_Misc; static inline bool Context_IsValid(int value) { return MatrixFile_LayerRecord_Context_IsValid(value); } - static constexpr Context Context_MIN = - MatrixFile_LayerRecord_Context_Context_MIN; - static constexpr Context Context_MAX = - MatrixFile_LayerRecord_Context_Context_MAX; - static constexpr int Context_ARRAYSIZE = - MatrixFile_LayerRecord_Context_Context_ARRAYSIZE; - static inline const ::PROTOBUF_NAMESPACE_ID::EnumDescriptor* - Context_descriptor() { + static constexpr Context Context_MIN = MatrixFile_LayerRecord_Context_Context_MIN; + static constexpr Context Context_MAX = MatrixFile_LayerRecord_Context_Context_MAX; + static constexpr int Context_ARRAYSIZE = MatrixFile_LayerRecord_Context_Context_ARRAYSIZE; + static inline const ::google::protobuf::EnumDescriptor* Context_descriptor() { return MatrixFile_LayerRecord_Context_descriptor(); } - template - static inline const std::string& Context_Name(T enum_t_value) { - static_assert(::std::is_same::value || - ::std::is_integral::value, - "Incorrect type passed to function Context_Name."); - return MatrixFile_LayerRecord_Context_Name(enum_t_value); + template + static inline const std::string& Context_Name(T value) { + return MatrixFile_LayerRecord_Context_Name(value); } - static inline bool Context_Parse(::PROTOBUF_NAMESPACE_ID::ConstStringParam name, - Context* value) { + static inline bool Context_Parse(absl::string_view name, Context* value) { return MatrixFile_LayerRecord_Context_Parse(name, value); } - - typedef MatrixFile_LayerRecord_DielectricType DielectricType; - static constexpr DielectricType None = - MatrixFile_LayerRecord_DielectricType_None; - static constexpr DielectricType Prepreg = - MatrixFile_LayerRecord_DielectricType_Prepreg; - static constexpr DielectricType Core = - MatrixFile_LayerRecord_DielectricType_Core; + using DielectricType = MatrixFile_LayerRecord_DielectricType; + static constexpr DielectricType None = MatrixFile_LayerRecord_DielectricType_None; + static constexpr DielectricType Prepreg = MatrixFile_LayerRecord_DielectricType_Prepreg; + static constexpr DielectricType Core = MatrixFile_LayerRecord_DielectricType_Core; static inline bool DielectricType_IsValid(int value) { return MatrixFile_LayerRecord_DielectricType_IsValid(value); } - static constexpr DielectricType DielectricType_MIN = - MatrixFile_LayerRecord_DielectricType_DielectricType_MIN; - static constexpr DielectricType DielectricType_MAX = - MatrixFile_LayerRecord_DielectricType_DielectricType_MAX; - static constexpr int DielectricType_ARRAYSIZE = - MatrixFile_LayerRecord_DielectricType_DielectricType_ARRAYSIZE; - static inline const ::PROTOBUF_NAMESPACE_ID::EnumDescriptor* - DielectricType_descriptor() { + static constexpr DielectricType DielectricType_MIN = MatrixFile_LayerRecord_DielectricType_DielectricType_MIN; + static constexpr DielectricType DielectricType_MAX = MatrixFile_LayerRecord_DielectricType_DielectricType_MAX; + static constexpr int DielectricType_ARRAYSIZE = MatrixFile_LayerRecord_DielectricType_DielectricType_ARRAYSIZE; + static inline const ::google::protobuf::EnumDescriptor* DielectricType_descriptor() { return MatrixFile_LayerRecord_DielectricType_descriptor(); } - template - static inline const std::string& DielectricType_Name(T enum_t_value) { - static_assert(::std::is_same::value || - ::std::is_integral::value, - "Incorrect type passed to function DielectricType_Name."); - return MatrixFile_LayerRecord_DielectricType_Name(enum_t_value); + template + static inline const std::string& DielectricType_Name(T value) { + return MatrixFile_LayerRecord_DielectricType_Name(value); } - static inline bool DielectricType_Parse(::PROTOBUF_NAMESPACE_ID::ConstStringParam name, - DielectricType* value) { + static inline bool DielectricType_Parse(absl::string_view name, DielectricType* value) { return MatrixFile_LayerRecord_DielectricType_Parse(name, value); } - - typedef MatrixFile_LayerRecord_Form Form; - static constexpr Form Rigid = - MatrixFile_LayerRecord_Form_Rigid; - static constexpr Form Flex = - MatrixFile_LayerRecord_Form_Flex; + using Form = MatrixFile_LayerRecord_Form; + static constexpr Form Rigid = MatrixFile_LayerRecord_Form_Rigid; + static constexpr Form Flex = MatrixFile_LayerRecord_Form_Flex; static inline bool Form_IsValid(int value) { return MatrixFile_LayerRecord_Form_IsValid(value); } - static constexpr Form Form_MIN = - MatrixFile_LayerRecord_Form_Form_MIN; - static constexpr Form Form_MAX = - MatrixFile_LayerRecord_Form_Form_MAX; - static constexpr int Form_ARRAYSIZE = - MatrixFile_LayerRecord_Form_Form_ARRAYSIZE; - static inline const ::PROTOBUF_NAMESPACE_ID::EnumDescriptor* - Form_descriptor() { + static constexpr Form Form_MIN = MatrixFile_LayerRecord_Form_Form_MIN; + static constexpr Form Form_MAX = MatrixFile_LayerRecord_Form_Form_MAX; + static constexpr int Form_ARRAYSIZE = MatrixFile_LayerRecord_Form_Form_ARRAYSIZE; + static inline const ::google::protobuf::EnumDescriptor* Form_descriptor() { return MatrixFile_LayerRecord_Form_descriptor(); } - template - static inline const std::string& Form_Name(T enum_t_value) { - static_assert(::std::is_same::value || - ::std::is_integral::value, - "Incorrect type passed to function Form_Name."); - return MatrixFile_LayerRecord_Form_Name(enum_t_value); + template + static inline const std::string& Form_Name(T value) { + return MatrixFile_LayerRecord_Form_Name(value); } - static inline bool Form_Parse(::PROTOBUF_NAMESPACE_ID::ConstStringParam name, - Form* value) { + static inline bool Form_Parse(absl::string_view name, Form* value) { return MatrixFile_LayerRecord_Form_Parse(name, value); } // accessors ------------------------------------------------------- - enum : int { kNameFieldNumber = 4, kDielectricNameFieldNumber = 7, @@ -642,234 +698,275 @@ class ODBDESIGN_EXPORT MatrixFile_LayerRecord final : kIdFieldNumber = 17, }; // string name = 4; - void clear_name(); + void clear_name() ; const std::string& name() const; - template - void set_name(ArgT0&& arg0, ArgT... args); + template + void set_name(Arg_&& arg, Args_... args); std::string* mutable_name(); PROTOBUF_NODISCARD std::string* release_name(); - void set_allocated_name(std::string* name); + void set_allocated_name(std::string* value); + private: const std::string& _internal_name() const; - inline PROTOBUF_ALWAYS_INLINE void _internal_set_name(const std::string& value); + inline PROTOBUF_ALWAYS_INLINE void _internal_set_name( + const std::string& value); std::string* _internal_mutable_name(); - public: + public: // string dielectricName = 7; - void clear_dielectricname(); + void clear_dielectricname() ; const std::string& dielectricname() const; - template - void set_dielectricname(ArgT0&& arg0, ArgT... args); + template + void set_dielectricname(Arg_&& arg, Args_... args); std::string* mutable_dielectricname(); PROTOBUF_NODISCARD std::string* release_dielectricname(); - void set_allocated_dielectricname(std::string* dielectricname); + void set_allocated_dielectricname(std::string* value); + private: const std::string& _internal_dielectricname() const; - inline PROTOBUF_ALWAYS_INLINE void _internal_set_dielectricname(const std::string& value); + inline PROTOBUF_ALWAYS_INLINE void _internal_set_dielectricname( + const std::string& value); std::string* _internal_mutable_dielectricname(); - public: + public: // string startName = 12; - void clear_startname(); + void clear_startname() ; const std::string& startname() const; - template - void set_startname(ArgT0&& arg0, ArgT... args); + template + void set_startname(Arg_&& arg, Args_... args); std::string* mutable_startname(); PROTOBUF_NODISCARD std::string* release_startname(); - void set_allocated_startname(std::string* startname); + void set_allocated_startname(std::string* value); + private: const std::string& _internal_startname() const; - inline PROTOBUF_ALWAYS_INLINE void _internal_set_startname(const std::string& value); + inline PROTOBUF_ALWAYS_INLINE void _internal_set_startname( + const std::string& value); std::string* _internal_mutable_startname(); - public: + public: // string endName = 13; - void clear_endname(); + void clear_endname() ; const std::string& endname() const; - template - void set_endname(ArgT0&& arg0, ArgT... args); + template + void set_endname(Arg_&& arg, Args_... args); std::string* mutable_endname(); PROTOBUF_NODISCARD std::string* release_endname(); - void set_allocated_endname(std::string* endname); + void set_allocated_endname(std::string* value); + private: const std::string& _internal_endname() const; - inline PROTOBUF_ALWAYS_INLINE void _internal_set_endname(const std::string& value); + inline PROTOBUF_ALWAYS_INLINE void _internal_set_endname( + const std::string& value); std::string* _internal_mutable_endname(); - public: + public: // string oldName = 14; - void clear_oldname(); + void clear_oldname() ; const std::string& oldname() const; - template - void set_oldname(ArgT0&& arg0, ArgT... args); + template + void set_oldname(Arg_&& arg, Args_... args); std::string* mutable_oldname(); PROTOBUF_NODISCARD std::string* release_oldname(); - void set_allocated_oldname(std::string* oldname); + void set_allocated_oldname(std::string* value); + private: const std::string& _internal_oldname() const; - inline PROTOBUF_ALWAYS_INLINE void _internal_set_oldname(const std::string& value); + inline PROTOBUF_ALWAYS_INLINE void _internal_set_oldname( + const std::string& value); std::string* _internal_mutable_oldname(); - public: + public: // string addType = 15; - void clear_addtype(); + void clear_addtype() ; const std::string& addtype() const; - template - void set_addtype(ArgT0&& arg0, ArgT... args); + template + void set_addtype(Arg_&& arg, Args_... args); std::string* mutable_addtype(); PROTOBUF_NODISCARD std::string* release_addtype(); - void set_allocated_addtype(std::string* addtype); + void set_allocated_addtype(std::string* value); + private: const std::string& _internal_addtype() const; - inline PROTOBUF_ALWAYS_INLINE void _internal_set_addtype(const std::string& value); + inline PROTOBUF_ALWAYS_INLINE void _internal_set_addtype( + const std::string& value); std::string* _internal_mutable_addtype(); - public: + public: // uint32 row = 1; - void clear_row(); - uint32_t row() const; - void set_row(uint32_t value); + void clear_row() ; + ::uint32_t row() const; + void set_row(::uint32_t value); + private: - uint32_t _internal_row() const; - void _internal_set_row(uint32_t value); - public: + ::uint32_t _internal_row() const; + void _internal_set_row(::uint32_t value); + public: // .Odb.Lib.Protobuf.MatrixFile.LayerRecord.Context context = 2; - void clear_context(); + void clear_context() ; ::Odb::Lib::Protobuf::MatrixFile_LayerRecord_Context context() const; void set_context(::Odb::Lib::Protobuf::MatrixFile_LayerRecord_Context value); + private: ::Odb::Lib::Protobuf::MatrixFile_LayerRecord_Context _internal_context() const; void _internal_set_context(::Odb::Lib::Protobuf::MatrixFile_LayerRecord_Context value); - public: + public: // .Odb.Lib.Protobuf.MatrixFile.LayerRecord.Type type = 3; - void clear_type(); + void clear_type() ; ::Odb::Lib::Protobuf::MatrixFile_LayerRecord_Type type() const; void set_type(::Odb::Lib::Protobuf::MatrixFile_LayerRecord_Type value); + private: ::Odb::Lib::Protobuf::MatrixFile_LayerRecord_Type _internal_type() const; void _internal_set_type(::Odb::Lib::Protobuf::MatrixFile_LayerRecord_Type value); - public: + public: // .Odb.Lib.Protobuf.Polarity polarity = 5; - void clear_polarity(); + void clear_polarity() ; ::Odb::Lib::Protobuf::Polarity polarity() const; void set_polarity(::Odb::Lib::Protobuf::Polarity value); + private: ::Odb::Lib::Protobuf::Polarity _internal_polarity() const; void _internal_set_polarity(::Odb::Lib::Protobuf::Polarity value); - public: + public: // .Odb.Lib.Protobuf.MatrixFile.LayerRecord.DielectricType dielectricType = 6; - void clear_dielectrictype(); + void clear_dielectrictype() ; ::Odb::Lib::Protobuf::MatrixFile_LayerRecord_DielectricType dielectrictype() const; void set_dielectrictype(::Odb::Lib::Protobuf::MatrixFile_LayerRecord_DielectricType value); + private: ::Odb::Lib::Protobuf::MatrixFile_LayerRecord_DielectricType _internal_dielectrictype() const; void _internal_set_dielectrictype(::Odb::Lib::Protobuf::MatrixFile_LayerRecord_DielectricType value); - public: + public: // .Odb.Lib.Protobuf.MatrixFile.LayerRecord.Form form = 8; - void clear_form(); + void clear_form() ; ::Odb::Lib::Protobuf::MatrixFile_LayerRecord_Form form() const; void set_form(::Odb::Lib::Protobuf::MatrixFile_LayerRecord_Form value); + private: ::Odb::Lib::Protobuf::MatrixFile_LayerRecord_Form _internal_form() const; void _internal_set_form(::Odb::Lib::Protobuf::MatrixFile_LayerRecord_Form value); - public: + public: // uint32 cuTop = 9; - void clear_cutop(); - uint32_t cutop() const; - void set_cutop(uint32_t value); + void clear_cutop() ; + ::uint32_t cutop() const; + void set_cutop(::uint32_t value); + private: - uint32_t _internal_cutop() const; - void _internal_set_cutop(uint32_t value); - public: + ::uint32_t _internal_cutop() const; + void _internal_set_cutop(::uint32_t value); + public: // uint32 cuBottom = 10; - void clear_cubottom(); - uint32_t cubottom() const; - void set_cubottom(uint32_t value); + void clear_cubottom() ; + ::uint32_t cubottom() const; + void set_cubottom(::uint32_t value); + private: - uint32_t _internal_cubottom() const; - void _internal_set_cubottom(uint32_t value); - public: + ::uint32_t _internal_cubottom() const; + void _internal_set_cubottom(::uint32_t value); + public: // uint32 ref = 11; - void clear_ref(); - uint32_t ref() const; - void set_ref(uint32_t value); + void clear_ref() ; + ::uint32_t ref() const; + void set_ref(::uint32_t value); + private: - uint32_t _internal_ref() const; - void _internal_set_ref(uint32_t value); - public: + ::uint32_t _internal_ref() const; + void _internal_set_ref(::uint32_t value); + public: // uint32 id = 17; - void clear_id(); - uint32_t id() const; - void set_id(uint32_t value); + void clear_id() ; + ::uint32_t id() const; + void set_id(::uint32_t value); + private: - uint32_t _internal_id() const; - void _internal_set_id(uint32_t value); - public: + ::uint32_t _internal_id() const; + void _internal_set_id(::uint32_t value); + public: // @@protoc_insertion_point(class_scope:Odb.Lib.Protobuf.MatrixFile.LayerRecord) private: class _Internal; - - template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; - typedef void InternalArenaConstructable_; - typedef void DestructorSkippable_; + friend class ::google::protobuf::internal::TcParser; + static const ::google::protobuf::internal::TcParseTable< + 5, 16, 0, + 112, 2> + _table_; + + friend class ::google::protobuf::MessageLite; + friend class ::google::protobuf::Arena; + template + friend class ::google::protobuf::Arena::InternalHelper; + using InternalArenaConstructable_ = void; + using DestructorSkippable_ = void; struct Impl_ { - ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr name_; - ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr dielectricname_; - ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr startname_; - ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr endname_; - ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr oldname_; - ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr addtype_; - uint32_t row_; + inline explicit constexpr Impl_( + ::google::protobuf::internal::ConstantInitialized) noexcept; + inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* arena); + inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* arena, const Impl_& from, + const MatrixFile_LayerRecord& from_msg); + ::google::protobuf::internal::ArenaStringPtr name_; + ::google::protobuf::internal::ArenaStringPtr dielectricname_; + ::google::protobuf::internal::ArenaStringPtr startname_; + ::google::protobuf::internal::ArenaStringPtr endname_; + ::google::protobuf::internal::ArenaStringPtr oldname_; + ::google::protobuf::internal::ArenaStringPtr addtype_; + ::uint32_t row_; int context_; int type_; int polarity_; int dielectrictype_; int form_; - uint32_t cutop_; - uint32_t cubottom_; - uint32_t ref_; - uint32_t id_; - mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; + ::uint32_t cutop_; + ::uint32_t cubottom_; + ::uint32_t ref_; + ::uint32_t id_; + ::google::protobuf::internal::CachedSize _cached_size_; + PROTOBUF_TSAN_DECLARE_MEMBER }; union { Impl_ _impl_; }; friend struct ::TableStruct_matrixfile_2eproto; }; // ------------------------------------------------------------------- -class ODBDESIGN_EXPORT MatrixFile final : - public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:Odb.Lib.Protobuf.MatrixFile) */ { +class ODBDESIGN_EXPORT MatrixFile final : public ::google::protobuf::Message +/* @@protoc_insertion_point(class_definition:Odb.Lib.Protobuf.MatrixFile) */ { public: inline MatrixFile() : MatrixFile(nullptr) {} - ~MatrixFile() override; - explicit PROTOBUF_CONSTEXPR MatrixFile(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); + ~MatrixFile() PROTOBUF_FINAL; - MatrixFile(const MatrixFile& from); - MatrixFile(MatrixFile&& from) noexcept - : MatrixFile() { - *this = ::std::move(from); +#if defined(PROTOBUF_CUSTOM_VTABLE) + void operator delete(MatrixFile* msg, std::destroying_delete_t) { + SharedDtor(*msg); + ::google::protobuf::internal::SizedDelete(msg, sizeof(MatrixFile)); } +#endif + template + explicit PROTOBUF_CONSTEXPR MatrixFile( + ::google::protobuf::internal::ConstantInitialized); + + inline MatrixFile(const MatrixFile& from) : MatrixFile(nullptr, from) {} + inline MatrixFile(MatrixFile&& from) noexcept + : MatrixFile(nullptr, std::move(from)) {} inline MatrixFile& operator=(const MatrixFile& from) { CopyFrom(from); return *this; } inline MatrixFile& operator=(MatrixFile&& from) noexcept { if (this == &from) return *this; - if (GetOwningArena() == from.GetOwningArena() - #ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetOwningArena() != nullptr - #endif // !PROTOBUF_FORCE_COPY_IN_MOVE - ) { + if (::google::protobuf::internal::CanMoveWithInternalSwap(GetArena(), from.GetArena())) { InternalSwap(&from); } else { CopyFrom(from); @@ -877,13 +974,22 @@ class ODBDESIGN_EXPORT MatrixFile final : return *this; } - static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { + inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const + ABSL_ATTRIBUTE_LIFETIME_BOUND { + return _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance); + } + inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() + ABSL_ATTRIBUTE_LIFETIME_BOUND { + return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); + } + + static const ::google::protobuf::Descriptor* descriptor() { return GetDescriptor(); } - static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { + static const ::google::protobuf::Descriptor* GetDescriptor() { return default_instance().GetMetadata().descriptor; } - static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { + static const ::google::protobuf::Reflection* GetReflection() { return default_instance().GetMetadata().reflection; } static const MatrixFile& default_instance() { @@ -891,84 +997,96 @@ class ODBDESIGN_EXPORT MatrixFile final : } static inline const MatrixFile* internal_default_instance() { return reinterpret_cast( - &_MatrixFile_default_instance_); - } - static constexpr int kIndexInFileMessages = - 2; - - friend void swap(MatrixFile& a, MatrixFile& b) { - a.Swap(&b); + &_MatrixFile_default_instance_); } + static constexpr int kIndexInFileMessages = 2; + friend void swap(MatrixFile& a, MatrixFile& b) { a.Swap(&b); } inline void Swap(MatrixFile* other) { if (other == this) return; - #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetOwningArena() != nullptr && - GetOwningArena() == other->GetOwningArena()) { - #else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetOwningArena() == other->GetOwningArena()) { - #endif // !PROTOBUF_FORCE_COPY_IN_SWAP + if (::google::protobuf::internal::CanUseInternalSwap(GetArena(), other->GetArena())) { InternalSwap(other); } else { - ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); + ::google::protobuf::internal::GenericSwap(this, other); } } void UnsafeArenaSwap(MatrixFile* other) { if (other == this) return; - GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); + ABSL_DCHECK(GetArena() == other->GetArena()); InternalSwap(other); } // implements Message ---------------------------------------------- - MatrixFile* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); + MatrixFile* New(::google::protobuf::Arena* arena = nullptr) const { + return ::google::protobuf::Message::DefaultConstruct(arena); } - using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; + using ::google::protobuf::Message::CopyFrom; void CopyFrom(const MatrixFile& from); - using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; - void MergeFrom( const MatrixFile& from) { - MatrixFile::MergeImpl(*this, from); - } + using ::google::protobuf::Message::MergeFrom; + void MergeFrom(const MatrixFile& from) { MatrixFile::MergeImpl(*this, from); } + private: - static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg); + static void MergeImpl( + ::google::protobuf::MessageLite& to_msg, + const ::google::protobuf::MessageLite& from_msg); + public: - PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; - bool IsInitialized() const final; + bool IsInitialized() const { + return true; + } + ABSL_ATTRIBUTE_REINITIALIZES void Clear() PROTOBUF_FINAL; + #if defined(PROTOBUF_CUSTOM_VTABLE) + private: + static ::size_t ByteSizeLong(const ::google::protobuf::MessageLite& msg); + static ::uint8_t* _InternalSerialize( + const MessageLite& msg, ::uint8_t* target, + ::google::protobuf::io::EpsCopyOutputStream* stream); - size_t ByteSizeLong() const final; - const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final; - uint8_t* _InternalSerialize( - uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const final { return _impl_._cached_size_.Get(); } + public: + ::size_t ByteSizeLong() const { return ByteSizeLong(*this); } + ::uint8_t* _InternalSerialize( + ::uint8_t* target, + ::google::protobuf::io::EpsCopyOutputStream* stream) const { + return _InternalSerialize(*this, target, stream); + } + #else // PROTOBUF_CUSTOM_VTABLE + ::size_t ByteSizeLong() const final; + ::uint8_t* _InternalSerialize( + ::uint8_t* target, + ::google::protobuf::io::EpsCopyOutputStream* stream) const final; + #endif // PROTOBUF_CUSTOM_VTABLE + int GetCachedSize() const { return _impl_._cached_size_.Get(); } private: - void SharedCtor(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned); - void SharedDtor(); - void SetCachedSize(int size) const final; + void SharedCtor(::google::protobuf::Arena* arena); + static void SharedDtor(MessageLite& self); void InternalSwap(MatrixFile* other); - - private: - friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; - static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { - return "Odb.Lib.Protobuf.MatrixFile"; + private: + template + friend ::absl::string_view( + ::google::protobuf::internal::GetAnyMessageName)(); + static ::absl::string_view FullMessageName() { return "Odb.Lib.Protobuf.MatrixFile"; } + + protected: + explicit MatrixFile(::google::protobuf::Arena* arena); + MatrixFile(::google::protobuf::Arena* arena, const MatrixFile& from); + MatrixFile(::google::protobuf::Arena* arena, MatrixFile&& from) noexcept + : MatrixFile(arena) { + *this = ::std::move(from); } - protected: - explicit MatrixFile(::PROTOBUF_NAMESPACE_ID::Arena* arena, - bool is_message_owned = false); - public: - - static const ClassData _class_data_; - const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final; - - ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; + const ::google::protobuf::internal::ClassData* GetClassData() const PROTOBUF_FINAL; + static void* PlacementNew_(const void*, void* mem, + ::google::protobuf::Arena* arena); + static constexpr auto InternalNewImpl_(); + static const ::google::protobuf::internal::ClassDataFull _class_data_; + public: + ::google::protobuf::Metadata GetMetadata() const; // nested types ---------------------------------------------------- - - typedef MatrixFile_StepRecord StepRecord; - typedef MatrixFile_LayerRecord LayerRecord; + using StepRecord = MatrixFile_StepRecord; + using LayerRecord = MatrixFile_LayerRecord; // accessors ------------------------------------------------------- - enum : int { kStepsFieldNumber = 1, kLayersFieldNumber = 2, @@ -977,151 +1095,173 @@ class ODBDESIGN_EXPORT MatrixFile final : int steps_size() const; private: int _internal_steps_size() const; + public: - void clear_steps(); + void clear_steps() ; ::Odb::Lib::Protobuf::MatrixFile_StepRecord* mutable_steps(int index); - ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::Odb::Lib::Protobuf::MatrixFile_StepRecord >* - mutable_steps(); + ::google::protobuf::RepeatedPtrField<::Odb::Lib::Protobuf::MatrixFile_StepRecord>* mutable_steps(); + private: - const ::Odb::Lib::Protobuf::MatrixFile_StepRecord& _internal_steps(int index) const; - ::Odb::Lib::Protobuf::MatrixFile_StepRecord* _internal_add_steps(); + const ::google::protobuf::RepeatedPtrField<::Odb::Lib::Protobuf::MatrixFile_StepRecord>& _internal_steps() const; + ::google::protobuf::RepeatedPtrField<::Odb::Lib::Protobuf::MatrixFile_StepRecord>* _internal_mutable_steps(); public: const ::Odb::Lib::Protobuf::MatrixFile_StepRecord& steps(int index) const; ::Odb::Lib::Protobuf::MatrixFile_StepRecord* add_steps(); - const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::Odb::Lib::Protobuf::MatrixFile_StepRecord >& - steps() const; - + const ::google::protobuf::RepeatedPtrField<::Odb::Lib::Protobuf::MatrixFile_StepRecord>& steps() const; // repeated .Odb.Lib.Protobuf.MatrixFile.LayerRecord layers = 2; int layers_size() const; private: int _internal_layers_size() const; + public: - void clear_layers(); + void clear_layers() ; ::Odb::Lib::Protobuf::MatrixFile_LayerRecord* mutable_layers(int index); - ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::Odb::Lib::Protobuf::MatrixFile_LayerRecord >* - mutable_layers(); + ::google::protobuf::RepeatedPtrField<::Odb::Lib::Protobuf::MatrixFile_LayerRecord>* mutable_layers(); + private: - const ::Odb::Lib::Protobuf::MatrixFile_LayerRecord& _internal_layers(int index) const; - ::Odb::Lib::Protobuf::MatrixFile_LayerRecord* _internal_add_layers(); + const ::google::protobuf::RepeatedPtrField<::Odb::Lib::Protobuf::MatrixFile_LayerRecord>& _internal_layers() const; + ::google::protobuf::RepeatedPtrField<::Odb::Lib::Protobuf::MatrixFile_LayerRecord>* _internal_mutable_layers(); public: const ::Odb::Lib::Protobuf::MatrixFile_LayerRecord& layers(int index) const; ::Odb::Lib::Protobuf::MatrixFile_LayerRecord* add_layers(); - const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::Odb::Lib::Protobuf::MatrixFile_LayerRecord >& - layers() const; - + const ::google::protobuf::RepeatedPtrField<::Odb::Lib::Protobuf::MatrixFile_LayerRecord>& layers() const; // @@protoc_insertion_point(class_scope:Odb.Lib.Protobuf.MatrixFile) private: class _Internal; - - template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; - typedef void InternalArenaConstructable_; - typedef void DestructorSkippable_; + friend class ::google::protobuf::internal::TcParser; + static const ::google::protobuf::internal::TcParseTable< + 1, 2, 2, + 0, 2> + _table_; + + friend class ::google::protobuf::MessageLite; + friend class ::google::protobuf::Arena; + template + friend class ::google::protobuf::Arena::InternalHelper; + using InternalArenaConstructable_ = void; + using DestructorSkippable_ = void; struct Impl_ { - ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::Odb::Lib::Protobuf::MatrixFile_StepRecord > steps_; - ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::Odb::Lib::Protobuf::MatrixFile_LayerRecord > layers_; - mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; + inline explicit constexpr Impl_( + ::google::protobuf::internal::ConstantInitialized) noexcept; + inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* arena); + inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* arena, const Impl_& from, + const MatrixFile& from_msg); + ::google::protobuf::RepeatedPtrField< ::Odb::Lib::Protobuf::MatrixFile_StepRecord > steps_; + ::google::protobuf::RepeatedPtrField< ::Odb::Lib::Protobuf::MatrixFile_LayerRecord > layers_; + ::google::protobuf::internal::CachedSize _cached_size_; + PROTOBUF_TSAN_DECLARE_MEMBER }; union { Impl_ _impl_; }; friend struct ::TableStruct_matrixfile_2eproto; }; + // =================================================================== + + // =================================================================== + #ifdef __GNUC__ - #pragma GCC diagnostic push - #pragma GCC diagnostic ignored "-Wstrict-aliasing" +#pragma GCC diagnostic push +#pragma GCC diagnostic ignored "-Wstrict-aliasing" #endif // __GNUC__ +// ------------------------------------------------------------------- + // MatrixFile_StepRecord // uint32 column = 1; inline void MatrixFile_StepRecord::clear_column() { + ::google::protobuf::internal::TSanWrite(&_impl_); _impl_.column_ = 0u; } -inline uint32_t MatrixFile_StepRecord::_internal_column() const { - return _impl_.column_; -} -inline uint32_t MatrixFile_StepRecord::column() const { +inline ::uint32_t MatrixFile_StepRecord::column() const { // @@protoc_insertion_point(field_get:Odb.Lib.Protobuf.MatrixFile.StepRecord.column) return _internal_column(); } -inline void MatrixFile_StepRecord::_internal_set_column(uint32_t value) { - - _impl_.column_ = value; -} -inline void MatrixFile_StepRecord::set_column(uint32_t value) { +inline void MatrixFile_StepRecord::set_column(::uint32_t value) { _internal_set_column(value); // @@protoc_insertion_point(field_set:Odb.Lib.Protobuf.MatrixFile.StepRecord.column) } +inline ::uint32_t MatrixFile_StepRecord::_internal_column() const { + ::google::protobuf::internal::TSanRead(&_impl_); + return _impl_.column_; +} +inline void MatrixFile_StepRecord::_internal_set_column(::uint32_t value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.column_ = value; +} // uint32 id = 2; inline void MatrixFile_StepRecord::clear_id() { + ::google::protobuf::internal::TSanWrite(&_impl_); _impl_.id_ = 0u; } -inline uint32_t MatrixFile_StepRecord::_internal_id() const { - return _impl_.id_; -} -inline uint32_t MatrixFile_StepRecord::id() const { +inline ::uint32_t MatrixFile_StepRecord::id() const { // @@protoc_insertion_point(field_get:Odb.Lib.Protobuf.MatrixFile.StepRecord.id) return _internal_id(); } -inline void MatrixFile_StepRecord::_internal_set_id(uint32_t value) { - - _impl_.id_ = value; -} -inline void MatrixFile_StepRecord::set_id(uint32_t value) { +inline void MatrixFile_StepRecord::set_id(::uint32_t value) { _internal_set_id(value); // @@protoc_insertion_point(field_set:Odb.Lib.Protobuf.MatrixFile.StepRecord.id) } +inline ::uint32_t MatrixFile_StepRecord::_internal_id() const { + ::google::protobuf::internal::TSanRead(&_impl_); + return _impl_.id_; +} +inline void MatrixFile_StepRecord::_internal_set_id(::uint32_t value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.id_ = value; +} // string name = 3; inline void MatrixFile_StepRecord::clear_name() { + ::google::protobuf::internal::TSanWrite(&_impl_); _impl_.name_.ClearToEmpty(); } -inline const std::string& MatrixFile_StepRecord::name() const { +inline const std::string& MatrixFile_StepRecord::name() const + ABSL_ATTRIBUTE_LIFETIME_BOUND { // @@protoc_insertion_point(field_get:Odb.Lib.Protobuf.MatrixFile.StepRecord.name) return _internal_name(); } -template -inline PROTOBUF_ALWAYS_INLINE -void MatrixFile_StepRecord::set_name(ArgT0&& arg0, ArgT... args) { - - _impl_.name_.Set(static_cast(arg0), args..., GetArenaForAllocation()); +template +inline PROTOBUF_ALWAYS_INLINE void MatrixFile_StepRecord::set_name(Arg_&& arg, + Args_... args) { + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.name_.Set(static_cast(arg), args..., GetArena()); // @@protoc_insertion_point(field_set:Odb.Lib.Protobuf.MatrixFile.StepRecord.name) } -inline std::string* MatrixFile_StepRecord::mutable_name() { +inline std::string* MatrixFile_StepRecord::mutable_name() ABSL_ATTRIBUTE_LIFETIME_BOUND { std::string* _s = _internal_mutable_name(); // @@protoc_insertion_point(field_mutable:Odb.Lib.Protobuf.MatrixFile.StepRecord.name) return _s; } inline const std::string& MatrixFile_StepRecord::_internal_name() const { + ::google::protobuf::internal::TSanRead(&_impl_); return _impl_.name_.Get(); } inline void MatrixFile_StepRecord::_internal_set_name(const std::string& value) { - - _impl_.name_.Set(value, GetArenaForAllocation()); + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.name_.Set(value, GetArena()); } inline std::string* MatrixFile_StepRecord::_internal_mutable_name() { - - return _impl_.name_.Mutable(GetArenaForAllocation()); + ::google::protobuf::internal::TSanWrite(&_impl_); + return _impl_.name_.Mutable( GetArena()); } inline std::string* MatrixFile_StepRecord::release_name() { + ::google::protobuf::internal::TSanWrite(&_impl_); // @@protoc_insertion_point(field_release:Odb.Lib.Protobuf.MatrixFile.StepRecord.name) return _impl_.name_.Release(); } -inline void MatrixFile_StepRecord::set_allocated_name(std::string* name) { - if (name != nullptr) { - - } else { - +inline void MatrixFile_StepRecord::set_allocated_name(std::string* value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.name_.SetAllocated(value, GetArena()); + if (::google::protobuf::internal::DebugHardenForceCopyDefaultString() && _impl_.name_.IsDefault()) { + _impl_.name_.Set("", GetArena()); } - _impl_.name_.SetAllocated(name, GetArenaForAllocation()); -#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (_impl_.name_.IsDefault()) { - _impl_.name_.Set("", GetArenaForAllocation()); - } -#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING // @@protoc_insertion_point(field_set_allocated:Odb.Lib.Protobuf.MatrixFile.StepRecord.name) } @@ -1131,503 +1271,511 @@ inline void MatrixFile_StepRecord::set_allocated_name(std::string* name) { // uint32 row = 1; inline void MatrixFile_LayerRecord::clear_row() { + ::google::protobuf::internal::TSanWrite(&_impl_); _impl_.row_ = 0u; } -inline uint32_t MatrixFile_LayerRecord::_internal_row() const { - return _impl_.row_; -} -inline uint32_t MatrixFile_LayerRecord::row() const { +inline ::uint32_t MatrixFile_LayerRecord::row() const { // @@protoc_insertion_point(field_get:Odb.Lib.Protobuf.MatrixFile.LayerRecord.row) return _internal_row(); } -inline void MatrixFile_LayerRecord::_internal_set_row(uint32_t value) { - - _impl_.row_ = value; -} -inline void MatrixFile_LayerRecord::set_row(uint32_t value) { +inline void MatrixFile_LayerRecord::set_row(::uint32_t value) { _internal_set_row(value); // @@protoc_insertion_point(field_set:Odb.Lib.Protobuf.MatrixFile.LayerRecord.row) } +inline ::uint32_t MatrixFile_LayerRecord::_internal_row() const { + ::google::protobuf::internal::TSanRead(&_impl_); + return _impl_.row_; +} +inline void MatrixFile_LayerRecord::_internal_set_row(::uint32_t value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.row_ = value; +} // .Odb.Lib.Protobuf.MatrixFile.LayerRecord.Context context = 2; inline void MatrixFile_LayerRecord::clear_context() { + ::google::protobuf::internal::TSanWrite(&_impl_); _impl_.context_ = 0; } -inline ::Odb::Lib::Protobuf::MatrixFile_LayerRecord_Context MatrixFile_LayerRecord::_internal_context() const { - return static_cast< ::Odb::Lib::Protobuf::MatrixFile_LayerRecord_Context >(_impl_.context_); -} inline ::Odb::Lib::Protobuf::MatrixFile_LayerRecord_Context MatrixFile_LayerRecord::context() const { // @@protoc_insertion_point(field_get:Odb.Lib.Protobuf.MatrixFile.LayerRecord.context) return _internal_context(); } -inline void MatrixFile_LayerRecord::_internal_set_context(::Odb::Lib::Protobuf::MatrixFile_LayerRecord_Context value) { - - _impl_.context_ = value; -} inline void MatrixFile_LayerRecord::set_context(::Odb::Lib::Protobuf::MatrixFile_LayerRecord_Context value) { _internal_set_context(value); // @@protoc_insertion_point(field_set:Odb.Lib.Protobuf.MatrixFile.LayerRecord.context) } +inline ::Odb::Lib::Protobuf::MatrixFile_LayerRecord_Context MatrixFile_LayerRecord::_internal_context() const { + ::google::protobuf::internal::TSanRead(&_impl_); + return static_cast<::Odb::Lib::Protobuf::MatrixFile_LayerRecord_Context>(_impl_.context_); +} +inline void MatrixFile_LayerRecord::_internal_set_context(::Odb::Lib::Protobuf::MatrixFile_LayerRecord_Context value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.context_ = value; +} // .Odb.Lib.Protobuf.MatrixFile.LayerRecord.Type type = 3; inline void MatrixFile_LayerRecord::clear_type() { + ::google::protobuf::internal::TSanWrite(&_impl_); _impl_.type_ = 0; } -inline ::Odb::Lib::Protobuf::MatrixFile_LayerRecord_Type MatrixFile_LayerRecord::_internal_type() const { - return static_cast< ::Odb::Lib::Protobuf::MatrixFile_LayerRecord_Type >(_impl_.type_); -} inline ::Odb::Lib::Protobuf::MatrixFile_LayerRecord_Type MatrixFile_LayerRecord::type() const { // @@protoc_insertion_point(field_get:Odb.Lib.Protobuf.MatrixFile.LayerRecord.type) return _internal_type(); } -inline void MatrixFile_LayerRecord::_internal_set_type(::Odb::Lib::Protobuf::MatrixFile_LayerRecord_Type value) { - - _impl_.type_ = value; -} inline void MatrixFile_LayerRecord::set_type(::Odb::Lib::Protobuf::MatrixFile_LayerRecord_Type value) { _internal_set_type(value); // @@protoc_insertion_point(field_set:Odb.Lib.Protobuf.MatrixFile.LayerRecord.type) } +inline ::Odb::Lib::Protobuf::MatrixFile_LayerRecord_Type MatrixFile_LayerRecord::_internal_type() const { + ::google::protobuf::internal::TSanRead(&_impl_); + return static_cast<::Odb::Lib::Protobuf::MatrixFile_LayerRecord_Type>(_impl_.type_); +} +inline void MatrixFile_LayerRecord::_internal_set_type(::Odb::Lib::Protobuf::MatrixFile_LayerRecord_Type value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.type_ = value; +} // string name = 4; inline void MatrixFile_LayerRecord::clear_name() { + ::google::protobuf::internal::TSanWrite(&_impl_); _impl_.name_.ClearToEmpty(); } -inline const std::string& MatrixFile_LayerRecord::name() const { +inline const std::string& MatrixFile_LayerRecord::name() const + ABSL_ATTRIBUTE_LIFETIME_BOUND { // @@protoc_insertion_point(field_get:Odb.Lib.Protobuf.MatrixFile.LayerRecord.name) return _internal_name(); } -template -inline PROTOBUF_ALWAYS_INLINE -void MatrixFile_LayerRecord::set_name(ArgT0&& arg0, ArgT... args) { - - _impl_.name_.Set(static_cast(arg0), args..., GetArenaForAllocation()); +template +inline PROTOBUF_ALWAYS_INLINE void MatrixFile_LayerRecord::set_name(Arg_&& arg, + Args_... args) { + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.name_.Set(static_cast(arg), args..., GetArena()); // @@protoc_insertion_point(field_set:Odb.Lib.Protobuf.MatrixFile.LayerRecord.name) } -inline std::string* MatrixFile_LayerRecord::mutable_name() { +inline std::string* MatrixFile_LayerRecord::mutable_name() ABSL_ATTRIBUTE_LIFETIME_BOUND { std::string* _s = _internal_mutable_name(); // @@protoc_insertion_point(field_mutable:Odb.Lib.Protobuf.MatrixFile.LayerRecord.name) return _s; } inline const std::string& MatrixFile_LayerRecord::_internal_name() const { + ::google::protobuf::internal::TSanRead(&_impl_); return _impl_.name_.Get(); } inline void MatrixFile_LayerRecord::_internal_set_name(const std::string& value) { - - _impl_.name_.Set(value, GetArenaForAllocation()); + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.name_.Set(value, GetArena()); } inline std::string* MatrixFile_LayerRecord::_internal_mutable_name() { - - return _impl_.name_.Mutable(GetArenaForAllocation()); + ::google::protobuf::internal::TSanWrite(&_impl_); + return _impl_.name_.Mutable( GetArena()); } inline std::string* MatrixFile_LayerRecord::release_name() { + ::google::protobuf::internal::TSanWrite(&_impl_); // @@protoc_insertion_point(field_release:Odb.Lib.Protobuf.MatrixFile.LayerRecord.name) return _impl_.name_.Release(); } -inline void MatrixFile_LayerRecord::set_allocated_name(std::string* name) { - if (name != nullptr) { - - } else { - +inline void MatrixFile_LayerRecord::set_allocated_name(std::string* value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.name_.SetAllocated(value, GetArena()); + if (::google::protobuf::internal::DebugHardenForceCopyDefaultString() && _impl_.name_.IsDefault()) { + _impl_.name_.Set("", GetArena()); } - _impl_.name_.SetAllocated(name, GetArenaForAllocation()); -#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (_impl_.name_.IsDefault()) { - _impl_.name_.Set("", GetArenaForAllocation()); - } -#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING // @@protoc_insertion_point(field_set_allocated:Odb.Lib.Protobuf.MatrixFile.LayerRecord.name) } // .Odb.Lib.Protobuf.Polarity polarity = 5; inline void MatrixFile_LayerRecord::clear_polarity() { + ::google::protobuf::internal::TSanWrite(&_impl_); _impl_.polarity_ = 0; } -inline ::Odb::Lib::Protobuf::Polarity MatrixFile_LayerRecord::_internal_polarity() const { - return static_cast< ::Odb::Lib::Protobuf::Polarity >(_impl_.polarity_); -} inline ::Odb::Lib::Protobuf::Polarity MatrixFile_LayerRecord::polarity() const { // @@protoc_insertion_point(field_get:Odb.Lib.Protobuf.MatrixFile.LayerRecord.polarity) return _internal_polarity(); } -inline void MatrixFile_LayerRecord::_internal_set_polarity(::Odb::Lib::Protobuf::Polarity value) { - - _impl_.polarity_ = value; -} inline void MatrixFile_LayerRecord::set_polarity(::Odb::Lib::Protobuf::Polarity value) { _internal_set_polarity(value); // @@protoc_insertion_point(field_set:Odb.Lib.Protobuf.MatrixFile.LayerRecord.polarity) } +inline ::Odb::Lib::Protobuf::Polarity MatrixFile_LayerRecord::_internal_polarity() const { + ::google::protobuf::internal::TSanRead(&_impl_); + return static_cast<::Odb::Lib::Protobuf::Polarity>(_impl_.polarity_); +} +inline void MatrixFile_LayerRecord::_internal_set_polarity(::Odb::Lib::Protobuf::Polarity value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.polarity_ = value; +} // .Odb.Lib.Protobuf.MatrixFile.LayerRecord.DielectricType dielectricType = 6; inline void MatrixFile_LayerRecord::clear_dielectrictype() { + ::google::protobuf::internal::TSanWrite(&_impl_); _impl_.dielectrictype_ = 0; } -inline ::Odb::Lib::Protobuf::MatrixFile_LayerRecord_DielectricType MatrixFile_LayerRecord::_internal_dielectrictype() const { - return static_cast< ::Odb::Lib::Protobuf::MatrixFile_LayerRecord_DielectricType >(_impl_.dielectrictype_); -} inline ::Odb::Lib::Protobuf::MatrixFile_LayerRecord_DielectricType MatrixFile_LayerRecord::dielectrictype() const { // @@protoc_insertion_point(field_get:Odb.Lib.Protobuf.MatrixFile.LayerRecord.dielectricType) return _internal_dielectrictype(); } -inline void MatrixFile_LayerRecord::_internal_set_dielectrictype(::Odb::Lib::Protobuf::MatrixFile_LayerRecord_DielectricType value) { - - _impl_.dielectrictype_ = value; -} inline void MatrixFile_LayerRecord::set_dielectrictype(::Odb::Lib::Protobuf::MatrixFile_LayerRecord_DielectricType value) { _internal_set_dielectrictype(value); // @@protoc_insertion_point(field_set:Odb.Lib.Protobuf.MatrixFile.LayerRecord.dielectricType) } +inline ::Odb::Lib::Protobuf::MatrixFile_LayerRecord_DielectricType MatrixFile_LayerRecord::_internal_dielectrictype() const { + ::google::protobuf::internal::TSanRead(&_impl_); + return static_cast<::Odb::Lib::Protobuf::MatrixFile_LayerRecord_DielectricType>(_impl_.dielectrictype_); +} +inline void MatrixFile_LayerRecord::_internal_set_dielectrictype(::Odb::Lib::Protobuf::MatrixFile_LayerRecord_DielectricType value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.dielectrictype_ = value; +} // string dielectricName = 7; inline void MatrixFile_LayerRecord::clear_dielectricname() { + ::google::protobuf::internal::TSanWrite(&_impl_); _impl_.dielectricname_.ClearToEmpty(); } -inline const std::string& MatrixFile_LayerRecord::dielectricname() const { +inline const std::string& MatrixFile_LayerRecord::dielectricname() const + ABSL_ATTRIBUTE_LIFETIME_BOUND { // @@protoc_insertion_point(field_get:Odb.Lib.Protobuf.MatrixFile.LayerRecord.dielectricName) return _internal_dielectricname(); } -template -inline PROTOBUF_ALWAYS_INLINE -void MatrixFile_LayerRecord::set_dielectricname(ArgT0&& arg0, ArgT... args) { - - _impl_.dielectricname_.Set(static_cast(arg0), args..., GetArenaForAllocation()); +template +inline PROTOBUF_ALWAYS_INLINE void MatrixFile_LayerRecord::set_dielectricname(Arg_&& arg, + Args_... args) { + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.dielectricname_.Set(static_cast(arg), args..., GetArena()); // @@protoc_insertion_point(field_set:Odb.Lib.Protobuf.MatrixFile.LayerRecord.dielectricName) } -inline std::string* MatrixFile_LayerRecord::mutable_dielectricname() { +inline std::string* MatrixFile_LayerRecord::mutable_dielectricname() ABSL_ATTRIBUTE_LIFETIME_BOUND { std::string* _s = _internal_mutable_dielectricname(); // @@protoc_insertion_point(field_mutable:Odb.Lib.Protobuf.MatrixFile.LayerRecord.dielectricName) return _s; } inline const std::string& MatrixFile_LayerRecord::_internal_dielectricname() const { + ::google::protobuf::internal::TSanRead(&_impl_); return _impl_.dielectricname_.Get(); } inline void MatrixFile_LayerRecord::_internal_set_dielectricname(const std::string& value) { - - _impl_.dielectricname_.Set(value, GetArenaForAllocation()); + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.dielectricname_.Set(value, GetArena()); } inline std::string* MatrixFile_LayerRecord::_internal_mutable_dielectricname() { - - return _impl_.dielectricname_.Mutable(GetArenaForAllocation()); + ::google::protobuf::internal::TSanWrite(&_impl_); + return _impl_.dielectricname_.Mutable( GetArena()); } inline std::string* MatrixFile_LayerRecord::release_dielectricname() { + ::google::protobuf::internal::TSanWrite(&_impl_); // @@protoc_insertion_point(field_release:Odb.Lib.Protobuf.MatrixFile.LayerRecord.dielectricName) return _impl_.dielectricname_.Release(); } -inline void MatrixFile_LayerRecord::set_allocated_dielectricname(std::string* dielectricname) { - if (dielectricname != nullptr) { - - } else { - - } - _impl_.dielectricname_.SetAllocated(dielectricname, GetArenaForAllocation()); -#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (_impl_.dielectricname_.IsDefault()) { - _impl_.dielectricname_.Set("", GetArenaForAllocation()); +inline void MatrixFile_LayerRecord::set_allocated_dielectricname(std::string* value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.dielectricname_.SetAllocated(value, GetArena()); + if (::google::protobuf::internal::DebugHardenForceCopyDefaultString() && _impl_.dielectricname_.IsDefault()) { + _impl_.dielectricname_.Set("", GetArena()); } -#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING // @@protoc_insertion_point(field_set_allocated:Odb.Lib.Protobuf.MatrixFile.LayerRecord.dielectricName) } // .Odb.Lib.Protobuf.MatrixFile.LayerRecord.Form form = 8; inline void MatrixFile_LayerRecord::clear_form() { + ::google::protobuf::internal::TSanWrite(&_impl_); _impl_.form_ = 0; } -inline ::Odb::Lib::Protobuf::MatrixFile_LayerRecord_Form MatrixFile_LayerRecord::_internal_form() const { - return static_cast< ::Odb::Lib::Protobuf::MatrixFile_LayerRecord_Form >(_impl_.form_); -} inline ::Odb::Lib::Protobuf::MatrixFile_LayerRecord_Form MatrixFile_LayerRecord::form() const { // @@protoc_insertion_point(field_get:Odb.Lib.Protobuf.MatrixFile.LayerRecord.form) return _internal_form(); } -inline void MatrixFile_LayerRecord::_internal_set_form(::Odb::Lib::Protobuf::MatrixFile_LayerRecord_Form value) { - - _impl_.form_ = value; -} inline void MatrixFile_LayerRecord::set_form(::Odb::Lib::Protobuf::MatrixFile_LayerRecord_Form value) { _internal_set_form(value); // @@protoc_insertion_point(field_set:Odb.Lib.Protobuf.MatrixFile.LayerRecord.form) } +inline ::Odb::Lib::Protobuf::MatrixFile_LayerRecord_Form MatrixFile_LayerRecord::_internal_form() const { + ::google::protobuf::internal::TSanRead(&_impl_); + return static_cast<::Odb::Lib::Protobuf::MatrixFile_LayerRecord_Form>(_impl_.form_); +} +inline void MatrixFile_LayerRecord::_internal_set_form(::Odb::Lib::Protobuf::MatrixFile_LayerRecord_Form value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.form_ = value; +} // uint32 cuTop = 9; inline void MatrixFile_LayerRecord::clear_cutop() { + ::google::protobuf::internal::TSanWrite(&_impl_); _impl_.cutop_ = 0u; } -inline uint32_t MatrixFile_LayerRecord::_internal_cutop() const { - return _impl_.cutop_; -} -inline uint32_t MatrixFile_LayerRecord::cutop() const { +inline ::uint32_t MatrixFile_LayerRecord::cutop() const { // @@protoc_insertion_point(field_get:Odb.Lib.Protobuf.MatrixFile.LayerRecord.cuTop) return _internal_cutop(); } -inline void MatrixFile_LayerRecord::_internal_set_cutop(uint32_t value) { - - _impl_.cutop_ = value; -} -inline void MatrixFile_LayerRecord::set_cutop(uint32_t value) { +inline void MatrixFile_LayerRecord::set_cutop(::uint32_t value) { _internal_set_cutop(value); // @@protoc_insertion_point(field_set:Odb.Lib.Protobuf.MatrixFile.LayerRecord.cuTop) } +inline ::uint32_t MatrixFile_LayerRecord::_internal_cutop() const { + ::google::protobuf::internal::TSanRead(&_impl_); + return _impl_.cutop_; +} +inline void MatrixFile_LayerRecord::_internal_set_cutop(::uint32_t value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.cutop_ = value; +} // uint32 cuBottom = 10; inline void MatrixFile_LayerRecord::clear_cubottom() { + ::google::protobuf::internal::TSanWrite(&_impl_); _impl_.cubottom_ = 0u; } -inline uint32_t MatrixFile_LayerRecord::_internal_cubottom() const { - return _impl_.cubottom_; -} -inline uint32_t MatrixFile_LayerRecord::cubottom() const { +inline ::uint32_t MatrixFile_LayerRecord::cubottom() const { // @@protoc_insertion_point(field_get:Odb.Lib.Protobuf.MatrixFile.LayerRecord.cuBottom) return _internal_cubottom(); } -inline void MatrixFile_LayerRecord::_internal_set_cubottom(uint32_t value) { - - _impl_.cubottom_ = value; -} -inline void MatrixFile_LayerRecord::set_cubottom(uint32_t value) { +inline void MatrixFile_LayerRecord::set_cubottom(::uint32_t value) { _internal_set_cubottom(value); // @@protoc_insertion_point(field_set:Odb.Lib.Protobuf.MatrixFile.LayerRecord.cuBottom) } +inline ::uint32_t MatrixFile_LayerRecord::_internal_cubottom() const { + ::google::protobuf::internal::TSanRead(&_impl_); + return _impl_.cubottom_; +} +inline void MatrixFile_LayerRecord::_internal_set_cubottom(::uint32_t value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.cubottom_ = value; +} // uint32 ref = 11; inline void MatrixFile_LayerRecord::clear_ref() { + ::google::protobuf::internal::TSanWrite(&_impl_); _impl_.ref_ = 0u; } -inline uint32_t MatrixFile_LayerRecord::_internal_ref() const { - return _impl_.ref_; -} -inline uint32_t MatrixFile_LayerRecord::ref() const { +inline ::uint32_t MatrixFile_LayerRecord::ref() const { // @@protoc_insertion_point(field_get:Odb.Lib.Protobuf.MatrixFile.LayerRecord.ref) return _internal_ref(); } -inline void MatrixFile_LayerRecord::_internal_set_ref(uint32_t value) { - - _impl_.ref_ = value; -} -inline void MatrixFile_LayerRecord::set_ref(uint32_t value) { +inline void MatrixFile_LayerRecord::set_ref(::uint32_t value) { _internal_set_ref(value); // @@protoc_insertion_point(field_set:Odb.Lib.Protobuf.MatrixFile.LayerRecord.ref) } +inline ::uint32_t MatrixFile_LayerRecord::_internal_ref() const { + ::google::protobuf::internal::TSanRead(&_impl_); + return _impl_.ref_; +} +inline void MatrixFile_LayerRecord::_internal_set_ref(::uint32_t value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.ref_ = value; +} // string startName = 12; inline void MatrixFile_LayerRecord::clear_startname() { + ::google::protobuf::internal::TSanWrite(&_impl_); _impl_.startname_.ClearToEmpty(); } -inline const std::string& MatrixFile_LayerRecord::startname() const { +inline const std::string& MatrixFile_LayerRecord::startname() const + ABSL_ATTRIBUTE_LIFETIME_BOUND { // @@protoc_insertion_point(field_get:Odb.Lib.Protobuf.MatrixFile.LayerRecord.startName) return _internal_startname(); } -template -inline PROTOBUF_ALWAYS_INLINE -void MatrixFile_LayerRecord::set_startname(ArgT0&& arg0, ArgT... args) { - - _impl_.startname_.Set(static_cast(arg0), args..., GetArenaForAllocation()); +template +inline PROTOBUF_ALWAYS_INLINE void MatrixFile_LayerRecord::set_startname(Arg_&& arg, + Args_... args) { + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.startname_.Set(static_cast(arg), args..., GetArena()); // @@protoc_insertion_point(field_set:Odb.Lib.Protobuf.MatrixFile.LayerRecord.startName) } -inline std::string* MatrixFile_LayerRecord::mutable_startname() { +inline std::string* MatrixFile_LayerRecord::mutable_startname() ABSL_ATTRIBUTE_LIFETIME_BOUND { std::string* _s = _internal_mutable_startname(); // @@protoc_insertion_point(field_mutable:Odb.Lib.Protobuf.MatrixFile.LayerRecord.startName) return _s; } inline const std::string& MatrixFile_LayerRecord::_internal_startname() const { + ::google::protobuf::internal::TSanRead(&_impl_); return _impl_.startname_.Get(); } inline void MatrixFile_LayerRecord::_internal_set_startname(const std::string& value) { - - _impl_.startname_.Set(value, GetArenaForAllocation()); + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.startname_.Set(value, GetArena()); } inline std::string* MatrixFile_LayerRecord::_internal_mutable_startname() { - - return _impl_.startname_.Mutable(GetArenaForAllocation()); + ::google::protobuf::internal::TSanWrite(&_impl_); + return _impl_.startname_.Mutable( GetArena()); } inline std::string* MatrixFile_LayerRecord::release_startname() { + ::google::protobuf::internal::TSanWrite(&_impl_); // @@protoc_insertion_point(field_release:Odb.Lib.Protobuf.MatrixFile.LayerRecord.startName) return _impl_.startname_.Release(); } -inline void MatrixFile_LayerRecord::set_allocated_startname(std::string* startname) { - if (startname != nullptr) { - - } else { - +inline void MatrixFile_LayerRecord::set_allocated_startname(std::string* value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.startname_.SetAllocated(value, GetArena()); + if (::google::protobuf::internal::DebugHardenForceCopyDefaultString() && _impl_.startname_.IsDefault()) { + _impl_.startname_.Set("", GetArena()); } - _impl_.startname_.SetAllocated(startname, GetArenaForAllocation()); -#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (_impl_.startname_.IsDefault()) { - _impl_.startname_.Set("", GetArenaForAllocation()); - } -#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING // @@protoc_insertion_point(field_set_allocated:Odb.Lib.Protobuf.MatrixFile.LayerRecord.startName) } // string endName = 13; inline void MatrixFile_LayerRecord::clear_endname() { + ::google::protobuf::internal::TSanWrite(&_impl_); _impl_.endname_.ClearToEmpty(); } -inline const std::string& MatrixFile_LayerRecord::endname() const { +inline const std::string& MatrixFile_LayerRecord::endname() const + ABSL_ATTRIBUTE_LIFETIME_BOUND { // @@protoc_insertion_point(field_get:Odb.Lib.Protobuf.MatrixFile.LayerRecord.endName) return _internal_endname(); } -template -inline PROTOBUF_ALWAYS_INLINE -void MatrixFile_LayerRecord::set_endname(ArgT0&& arg0, ArgT... args) { - - _impl_.endname_.Set(static_cast(arg0), args..., GetArenaForAllocation()); +template +inline PROTOBUF_ALWAYS_INLINE void MatrixFile_LayerRecord::set_endname(Arg_&& arg, + Args_... args) { + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.endname_.Set(static_cast(arg), args..., GetArena()); // @@protoc_insertion_point(field_set:Odb.Lib.Protobuf.MatrixFile.LayerRecord.endName) } -inline std::string* MatrixFile_LayerRecord::mutable_endname() { +inline std::string* MatrixFile_LayerRecord::mutable_endname() ABSL_ATTRIBUTE_LIFETIME_BOUND { std::string* _s = _internal_mutable_endname(); // @@protoc_insertion_point(field_mutable:Odb.Lib.Protobuf.MatrixFile.LayerRecord.endName) return _s; } inline const std::string& MatrixFile_LayerRecord::_internal_endname() const { + ::google::protobuf::internal::TSanRead(&_impl_); return _impl_.endname_.Get(); } inline void MatrixFile_LayerRecord::_internal_set_endname(const std::string& value) { - - _impl_.endname_.Set(value, GetArenaForAllocation()); + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.endname_.Set(value, GetArena()); } inline std::string* MatrixFile_LayerRecord::_internal_mutable_endname() { - - return _impl_.endname_.Mutable(GetArenaForAllocation()); + ::google::protobuf::internal::TSanWrite(&_impl_); + return _impl_.endname_.Mutable( GetArena()); } inline std::string* MatrixFile_LayerRecord::release_endname() { + ::google::protobuf::internal::TSanWrite(&_impl_); // @@protoc_insertion_point(field_release:Odb.Lib.Protobuf.MatrixFile.LayerRecord.endName) return _impl_.endname_.Release(); } -inline void MatrixFile_LayerRecord::set_allocated_endname(std::string* endname) { - if (endname != nullptr) { - - } else { - - } - _impl_.endname_.SetAllocated(endname, GetArenaForAllocation()); -#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (_impl_.endname_.IsDefault()) { - _impl_.endname_.Set("", GetArenaForAllocation()); +inline void MatrixFile_LayerRecord::set_allocated_endname(std::string* value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.endname_.SetAllocated(value, GetArena()); + if (::google::protobuf::internal::DebugHardenForceCopyDefaultString() && _impl_.endname_.IsDefault()) { + _impl_.endname_.Set("", GetArena()); } -#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING // @@protoc_insertion_point(field_set_allocated:Odb.Lib.Protobuf.MatrixFile.LayerRecord.endName) } // string oldName = 14; inline void MatrixFile_LayerRecord::clear_oldname() { + ::google::protobuf::internal::TSanWrite(&_impl_); _impl_.oldname_.ClearToEmpty(); } -inline const std::string& MatrixFile_LayerRecord::oldname() const { +inline const std::string& MatrixFile_LayerRecord::oldname() const + ABSL_ATTRIBUTE_LIFETIME_BOUND { // @@protoc_insertion_point(field_get:Odb.Lib.Protobuf.MatrixFile.LayerRecord.oldName) return _internal_oldname(); } -template -inline PROTOBUF_ALWAYS_INLINE -void MatrixFile_LayerRecord::set_oldname(ArgT0&& arg0, ArgT... args) { - - _impl_.oldname_.Set(static_cast(arg0), args..., GetArenaForAllocation()); +template +inline PROTOBUF_ALWAYS_INLINE void MatrixFile_LayerRecord::set_oldname(Arg_&& arg, + Args_... args) { + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.oldname_.Set(static_cast(arg), args..., GetArena()); // @@protoc_insertion_point(field_set:Odb.Lib.Protobuf.MatrixFile.LayerRecord.oldName) } -inline std::string* MatrixFile_LayerRecord::mutable_oldname() { +inline std::string* MatrixFile_LayerRecord::mutable_oldname() ABSL_ATTRIBUTE_LIFETIME_BOUND { std::string* _s = _internal_mutable_oldname(); // @@protoc_insertion_point(field_mutable:Odb.Lib.Protobuf.MatrixFile.LayerRecord.oldName) return _s; } inline const std::string& MatrixFile_LayerRecord::_internal_oldname() const { + ::google::protobuf::internal::TSanRead(&_impl_); return _impl_.oldname_.Get(); } inline void MatrixFile_LayerRecord::_internal_set_oldname(const std::string& value) { - - _impl_.oldname_.Set(value, GetArenaForAllocation()); + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.oldname_.Set(value, GetArena()); } inline std::string* MatrixFile_LayerRecord::_internal_mutable_oldname() { - - return _impl_.oldname_.Mutable(GetArenaForAllocation()); + ::google::protobuf::internal::TSanWrite(&_impl_); + return _impl_.oldname_.Mutable( GetArena()); } inline std::string* MatrixFile_LayerRecord::release_oldname() { + ::google::protobuf::internal::TSanWrite(&_impl_); // @@protoc_insertion_point(field_release:Odb.Lib.Protobuf.MatrixFile.LayerRecord.oldName) return _impl_.oldname_.Release(); } -inline void MatrixFile_LayerRecord::set_allocated_oldname(std::string* oldname) { - if (oldname != nullptr) { - - } else { - +inline void MatrixFile_LayerRecord::set_allocated_oldname(std::string* value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.oldname_.SetAllocated(value, GetArena()); + if (::google::protobuf::internal::DebugHardenForceCopyDefaultString() && _impl_.oldname_.IsDefault()) { + _impl_.oldname_.Set("", GetArena()); } - _impl_.oldname_.SetAllocated(oldname, GetArenaForAllocation()); -#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (_impl_.oldname_.IsDefault()) { - _impl_.oldname_.Set("", GetArenaForAllocation()); - } -#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING // @@protoc_insertion_point(field_set_allocated:Odb.Lib.Protobuf.MatrixFile.LayerRecord.oldName) } // string addType = 15; inline void MatrixFile_LayerRecord::clear_addtype() { + ::google::protobuf::internal::TSanWrite(&_impl_); _impl_.addtype_.ClearToEmpty(); } -inline const std::string& MatrixFile_LayerRecord::addtype() const { +inline const std::string& MatrixFile_LayerRecord::addtype() const + ABSL_ATTRIBUTE_LIFETIME_BOUND { // @@protoc_insertion_point(field_get:Odb.Lib.Protobuf.MatrixFile.LayerRecord.addType) return _internal_addtype(); } -template -inline PROTOBUF_ALWAYS_INLINE -void MatrixFile_LayerRecord::set_addtype(ArgT0&& arg0, ArgT... args) { - - _impl_.addtype_.Set(static_cast(arg0), args..., GetArenaForAllocation()); +template +inline PROTOBUF_ALWAYS_INLINE void MatrixFile_LayerRecord::set_addtype(Arg_&& arg, + Args_... args) { + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.addtype_.Set(static_cast(arg), args..., GetArena()); // @@protoc_insertion_point(field_set:Odb.Lib.Protobuf.MatrixFile.LayerRecord.addType) } -inline std::string* MatrixFile_LayerRecord::mutable_addtype() { +inline std::string* MatrixFile_LayerRecord::mutable_addtype() ABSL_ATTRIBUTE_LIFETIME_BOUND { std::string* _s = _internal_mutable_addtype(); // @@protoc_insertion_point(field_mutable:Odb.Lib.Protobuf.MatrixFile.LayerRecord.addType) return _s; } inline const std::string& MatrixFile_LayerRecord::_internal_addtype() const { + ::google::protobuf::internal::TSanRead(&_impl_); return _impl_.addtype_.Get(); } inline void MatrixFile_LayerRecord::_internal_set_addtype(const std::string& value) { - - _impl_.addtype_.Set(value, GetArenaForAllocation()); + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.addtype_.Set(value, GetArena()); } inline std::string* MatrixFile_LayerRecord::_internal_mutable_addtype() { - - return _impl_.addtype_.Mutable(GetArenaForAllocation()); + ::google::protobuf::internal::TSanWrite(&_impl_); + return _impl_.addtype_.Mutable( GetArena()); } inline std::string* MatrixFile_LayerRecord::release_addtype() { + ::google::protobuf::internal::TSanWrite(&_impl_); // @@protoc_insertion_point(field_release:Odb.Lib.Protobuf.MatrixFile.LayerRecord.addType) return _impl_.addtype_.Release(); } -inline void MatrixFile_LayerRecord::set_allocated_addtype(std::string* addtype) { - if (addtype != nullptr) { - - } else { - - } - _impl_.addtype_.SetAllocated(addtype, GetArenaForAllocation()); -#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (_impl_.addtype_.IsDefault()) { - _impl_.addtype_.Set("", GetArenaForAllocation()); +inline void MatrixFile_LayerRecord::set_allocated_addtype(std::string* value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.addtype_.SetAllocated(value, GetArena()); + if (::google::protobuf::internal::DebugHardenForceCopyDefaultString() && _impl_.addtype_.IsDefault()) { + _impl_.addtype_.Set("", GetArena()); } -#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING // @@protoc_insertion_point(field_set_allocated:Odb.Lib.Protobuf.MatrixFile.LayerRecord.addType) } // uint32 id = 17; inline void MatrixFile_LayerRecord::clear_id() { + ::google::protobuf::internal::TSanWrite(&_impl_); _impl_.id_ = 0u; } -inline uint32_t MatrixFile_LayerRecord::_internal_id() const { - return _impl_.id_; -} -inline uint32_t MatrixFile_LayerRecord::id() const { +inline ::uint32_t MatrixFile_LayerRecord::id() const { // @@protoc_insertion_point(field_get:Odb.Lib.Protobuf.MatrixFile.LayerRecord.id) return _internal_id(); } -inline void MatrixFile_LayerRecord::_internal_set_id(uint32_t value) { - - _impl_.id_ = value; -} -inline void MatrixFile_LayerRecord::set_id(uint32_t value) { +inline void MatrixFile_LayerRecord::set_id(::uint32_t value) { _internal_set_id(value); // @@protoc_insertion_point(field_set:Odb.Lib.Protobuf.MatrixFile.LayerRecord.id) } +inline ::uint32_t MatrixFile_LayerRecord::_internal_id() const { + ::google::protobuf::internal::TSanRead(&_impl_); + return _impl_.id_; +} +inline void MatrixFile_LayerRecord::_internal_set_id(::uint32_t value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.id_ = value; +} // ------------------------------------------------------------------- @@ -1635,124 +1783,145 @@ inline void MatrixFile_LayerRecord::set_id(uint32_t value) { // repeated .Odb.Lib.Protobuf.MatrixFile.StepRecord steps = 1; inline int MatrixFile::_internal_steps_size() const { - return _impl_.steps_.size(); + return _internal_steps().size(); } inline int MatrixFile::steps_size() const { return _internal_steps_size(); } inline void MatrixFile::clear_steps() { + ::google::protobuf::internal::TSanWrite(&_impl_); _impl_.steps_.Clear(); } -inline ::Odb::Lib::Protobuf::MatrixFile_StepRecord* MatrixFile::mutable_steps(int index) { +inline ::Odb::Lib::Protobuf::MatrixFile_StepRecord* MatrixFile::mutable_steps(int index) + ABSL_ATTRIBUTE_LIFETIME_BOUND { // @@protoc_insertion_point(field_mutable:Odb.Lib.Protobuf.MatrixFile.steps) - return _impl_.steps_.Mutable(index); + return _internal_mutable_steps()->Mutable(index); } -inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::Odb::Lib::Protobuf::MatrixFile_StepRecord >* -MatrixFile::mutable_steps() { +inline ::google::protobuf::RepeatedPtrField<::Odb::Lib::Protobuf::MatrixFile_StepRecord>* MatrixFile::mutable_steps() + ABSL_ATTRIBUTE_LIFETIME_BOUND { // @@protoc_insertion_point(field_mutable_list:Odb.Lib.Protobuf.MatrixFile.steps) - return &_impl_.steps_; -} -inline const ::Odb::Lib::Protobuf::MatrixFile_StepRecord& MatrixFile::_internal_steps(int index) const { - return _impl_.steps_.Get(index); + ::google::protobuf::internal::TSanWrite(&_impl_); + return _internal_mutable_steps(); } -inline const ::Odb::Lib::Protobuf::MatrixFile_StepRecord& MatrixFile::steps(int index) const { +inline const ::Odb::Lib::Protobuf::MatrixFile_StepRecord& MatrixFile::steps(int index) const + ABSL_ATTRIBUTE_LIFETIME_BOUND { // @@protoc_insertion_point(field_get:Odb.Lib.Protobuf.MatrixFile.steps) - return _internal_steps(index); + return _internal_steps().Get(index); } -inline ::Odb::Lib::Protobuf::MatrixFile_StepRecord* MatrixFile::_internal_add_steps() { - return _impl_.steps_.Add(); -} -inline ::Odb::Lib::Protobuf::MatrixFile_StepRecord* MatrixFile::add_steps() { - ::Odb::Lib::Protobuf::MatrixFile_StepRecord* _add = _internal_add_steps(); +inline ::Odb::Lib::Protobuf::MatrixFile_StepRecord* MatrixFile::add_steps() ABSL_ATTRIBUTE_LIFETIME_BOUND { + ::google::protobuf::internal::TSanWrite(&_impl_); + ::Odb::Lib::Protobuf::MatrixFile_StepRecord* _add = _internal_mutable_steps()->Add(); // @@protoc_insertion_point(field_add:Odb.Lib.Protobuf.MatrixFile.steps) return _add; } -inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::Odb::Lib::Protobuf::MatrixFile_StepRecord >& -MatrixFile::steps() const { +inline const ::google::protobuf::RepeatedPtrField<::Odb::Lib::Protobuf::MatrixFile_StepRecord>& MatrixFile::steps() const + ABSL_ATTRIBUTE_LIFETIME_BOUND { // @@protoc_insertion_point(field_list:Odb.Lib.Protobuf.MatrixFile.steps) + return _internal_steps(); +} +inline const ::google::protobuf::RepeatedPtrField<::Odb::Lib::Protobuf::MatrixFile_StepRecord>& +MatrixFile::_internal_steps() const { + ::google::protobuf::internal::TSanRead(&_impl_); return _impl_.steps_; } +inline ::google::protobuf::RepeatedPtrField<::Odb::Lib::Protobuf::MatrixFile_StepRecord>* +MatrixFile::_internal_mutable_steps() { + ::google::protobuf::internal::TSanRead(&_impl_); + return &_impl_.steps_; +} // repeated .Odb.Lib.Protobuf.MatrixFile.LayerRecord layers = 2; inline int MatrixFile::_internal_layers_size() const { - return _impl_.layers_.size(); + return _internal_layers().size(); } inline int MatrixFile::layers_size() const { return _internal_layers_size(); } inline void MatrixFile::clear_layers() { + ::google::protobuf::internal::TSanWrite(&_impl_); _impl_.layers_.Clear(); } -inline ::Odb::Lib::Protobuf::MatrixFile_LayerRecord* MatrixFile::mutable_layers(int index) { +inline ::Odb::Lib::Protobuf::MatrixFile_LayerRecord* MatrixFile::mutable_layers(int index) + ABSL_ATTRIBUTE_LIFETIME_BOUND { // @@protoc_insertion_point(field_mutable:Odb.Lib.Protobuf.MatrixFile.layers) - return _impl_.layers_.Mutable(index); + return _internal_mutable_layers()->Mutable(index); } -inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::Odb::Lib::Protobuf::MatrixFile_LayerRecord >* -MatrixFile::mutable_layers() { +inline ::google::protobuf::RepeatedPtrField<::Odb::Lib::Protobuf::MatrixFile_LayerRecord>* MatrixFile::mutable_layers() + ABSL_ATTRIBUTE_LIFETIME_BOUND { // @@protoc_insertion_point(field_mutable_list:Odb.Lib.Protobuf.MatrixFile.layers) - return &_impl_.layers_; + ::google::protobuf::internal::TSanWrite(&_impl_); + return _internal_mutable_layers(); } -inline const ::Odb::Lib::Protobuf::MatrixFile_LayerRecord& MatrixFile::_internal_layers(int index) const { - return _impl_.layers_.Get(index); -} -inline const ::Odb::Lib::Protobuf::MatrixFile_LayerRecord& MatrixFile::layers(int index) const { +inline const ::Odb::Lib::Protobuf::MatrixFile_LayerRecord& MatrixFile::layers(int index) const + ABSL_ATTRIBUTE_LIFETIME_BOUND { // @@protoc_insertion_point(field_get:Odb.Lib.Protobuf.MatrixFile.layers) - return _internal_layers(index); -} -inline ::Odb::Lib::Protobuf::MatrixFile_LayerRecord* MatrixFile::_internal_add_layers() { - return _impl_.layers_.Add(); + return _internal_layers().Get(index); } -inline ::Odb::Lib::Protobuf::MatrixFile_LayerRecord* MatrixFile::add_layers() { - ::Odb::Lib::Protobuf::MatrixFile_LayerRecord* _add = _internal_add_layers(); +inline ::Odb::Lib::Protobuf::MatrixFile_LayerRecord* MatrixFile::add_layers() ABSL_ATTRIBUTE_LIFETIME_BOUND { + ::google::protobuf::internal::TSanWrite(&_impl_); + ::Odb::Lib::Protobuf::MatrixFile_LayerRecord* _add = _internal_mutable_layers()->Add(); // @@protoc_insertion_point(field_add:Odb.Lib.Protobuf.MatrixFile.layers) return _add; } -inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::Odb::Lib::Protobuf::MatrixFile_LayerRecord >& -MatrixFile::layers() const { +inline const ::google::protobuf::RepeatedPtrField<::Odb::Lib::Protobuf::MatrixFile_LayerRecord>& MatrixFile::layers() const + ABSL_ATTRIBUTE_LIFETIME_BOUND { // @@protoc_insertion_point(field_list:Odb.Lib.Protobuf.MatrixFile.layers) + return _internal_layers(); +} +inline const ::google::protobuf::RepeatedPtrField<::Odb::Lib::Protobuf::MatrixFile_LayerRecord>& +MatrixFile::_internal_layers() const { + ::google::protobuf::internal::TSanRead(&_impl_); return _impl_.layers_; } +inline ::google::protobuf::RepeatedPtrField<::Odb::Lib::Protobuf::MatrixFile_LayerRecord>* +MatrixFile::_internal_mutable_layers() { + ::google::protobuf::internal::TSanRead(&_impl_); + return &_impl_.layers_; +} #ifdef __GNUC__ - #pragma GCC diagnostic pop +#pragma GCC diagnostic pop #endif // __GNUC__ -// ------------------------------------------------------------------- - -// ------------------------------------------------------------------- - // @@protoc_insertion_point(namespace_scope) - } // namespace Protobuf } // namespace Lib } // namespace Odb -PROTOBUF_NAMESPACE_OPEN -template <> struct is_proto_enum< ::Odb::Lib::Protobuf::MatrixFile_LayerRecord_Type> : ::std::true_type {}; +namespace google { +namespace protobuf { + +template <> +struct is_proto_enum<::Odb::Lib::Protobuf::MatrixFile_LayerRecord_Type> : std::true_type {}; template <> -inline const EnumDescriptor* GetEnumDescriptor< ::Odb::Lib::Protobuf::MatrixFile_LayerRecord_Type>() { +inline const EnumDescriptor* GetEnumDescriptor<::Odb::Lib::Protobuf::MatrixFile_LayerRecord_Type>() { return ::Odb::Lib::Protobuf::MatrixFile_LayerRecord_Type_descriptor(); } -template <> struct is_proto_enum< ::Odb::Lib::Protobuf::MatrixFile_LayerRecord_Context> : ::std::true_type {}; template <> -inline const EnumDescriptor* GetEnumDescriptor< ::Odb::Lib::Protobuf::MatrixFile_LayerRecord_Context>() { +struct is_proto_enum<::Odb::Lib::Protobuf::MatrixFile_LayerRecord_Context> : std::true_type {}; +template <> +inline const EnumDescriptor* GetEnumDescriptor<::Odb::Lib::Protobuf::MatrixFile_LayerRecord_Context>() { return ::Odb::Lib::Protobuf::MatrixFile_LayerRecord_Context_descriptor(); } -template <> struct is_proto_enum< ::Odb::Lib::Protobuf::MatrixFile_LayerRecord_DielectricType> : ::std::true_type {}; template <> -inline const EnumDescriptor* GetEnumDescriptor< ::Odb::Lib::Protobuf::MatrixFile_LayerRecord_DielectricType>() { +struct is_proto_enum<::Odb::Lib::Protobuf::MatrixFile_LayerRecord_DielectricType> : std::true_type {}; +template <> +inline const EnumDescriptor* GetEnumDescriptor<::Odb::Lib::Protobuf::MatrixFile_LayerRecord_DielectricType>() { return ::Odb::Lib::Protobuf::MatrixFile_LayerRecord_DielectricType_descriptor(); } -template <> struct is_proto_enum< ::Odb::Lib::Protobuf::MatrixFile_LayerRecord_Form> : ::std::true_type {}; template <> -inline const EnumDescriptor* GetEnumDescriptor< ::Odb::Lib::Protobuf::MatrixFile_LayerRecord_Form>() { +struct is_proto_enum<::Odb::Lib::Protobuf::MatrixFile_LayerRecord_Form> : std::true_type {}; +template <> +inline const EnumDescriptor* GetEnumDescriptor<::Odb::Lib::Protobuf::MatrixFile_LayerRecord_Form>() { return ::Odb::Lib::Protobuf::MatrixFile_LayerRecord_Form_descriptor(); } -PROTOBUF_NAMESPACE_CLOSE +} // namespace protobuf +} // namespace google // @@protoc_insertion_point(global_scope) -#include -#endif // GOOGLE_PROTOBUF_INCLUDED_GOOGLE_PROTOBUF_INCLUDED_matrixfile_2eproto +#include "google/protobuf/port_undef.inc" + +#endif // matrixfile_2eproto_2epb_2eh diff --git a/OdbDesignLib/ProtoBuf/miscinfofile.pb.cc b/OdbDesignLib/ProtoBuf/miscinfofile.pb.cc index a244d0bc..20673768 100644 --- a/OdbDesignLib/ProtoBuf/miscinfofile.pb.cc +++ b/OdbDesignLib/ProtoBuf/miscinfofile.pb.cc @@ -1,377 +1,434 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE // source: miscinfofile.proto +// Protobuf C++ Version: 5.29.2 #include "miscinfofile.pb.h" #include - -#include -#include -#include -#include -#include -#include -#include +#include +#include "google/protobuf/io/coded_stream.h" +#include "google/protobuf/generated_message_tctable_impl.h" +#include "google/protobuf/extension_set.h" +#include "google/protobuf/generated_message_util.h" +#include "google/protobuf/wire_format_lite.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) -#include +// Must be included last. +#include "google/protobuf/port_def.inc" PROTOBUF_PRAGMA_INIT_SEG - -namespace _pb = ::PROTOBUF_NAMESPACE_ID; -namespace _pbi = _pb::internal; - +namespace _pb = ::google::protobuf; +namespace _pbi = ::google::protobuf::internal; +namespace _fl = ::google::protobuf::internal::field_layout; namespace Odb { namespace Lib { namespace Protobuf { -PROTOBUF_CONSTEXPR MiscInfoFile::MiscInfoFile( - ::_pbi::ConstantInitialized): _impl_{ - /*decltype(_impl_._has_bits_)*/{} - , /*decltype(_impl_._cached_size_)*/{} - , /*decltype(_impl_.productmodelname_)*/{&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}} - , /*decltype(_impl_.jobname_)*/{&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}} - , /*decltype(_impl_.odbversionmajor_)*/{&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}} - , /*decltype(_impl_.odbversionminor_)*/{&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}} - , /*decltype(_impl_.odbsource_)*/{&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}} - , /*decltype(_impl_.saveapp_)*/{&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}} - , /*decltype(_impl_.saveuser_)*/{&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}} - , /*decltype(_impl_.units_)*/{&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}} - , /*decltype(_impl_.creationdatedate_)*/nullptr - , /*decltype(_impl_.savedate_)*/nullptr - , /*decltype(_impl_.maxuniqueid_)*/0u} {} + +inline constexpr MiscInfoFile::Impl_::Impl_( + ::_pbi::ConstantInitialized) noexcept + : _cached_size_{0}, + productmodelname_( + &::google::protobuf::internal::fixed_address_empty_string, + ::_pbi::ConstantInitialized()), + jobname_( + &::google::protobuf::internal::fixed_address_empty_string, + ::_pbi::ConstantInitialized()), + odbversionmajor_( + &::google::protobuf::internal::fixed_address_empty_string, + ::_pbi::ConstantInitialized()), + odbversionminor_( + &::google::protobuf::internal::fixed_address_empty_string, + ::_pbi::ConstantInitialized()), + odbsource_( + &::google::protobuf::internal::fixed_address_empty_string, + ::_pbi::ConstantInitialized()), + saveapp_( + &::google::protobuf::internal::fixed_address_empty_string, + ::_pbi::ConstantInitialized()), + saveuser_( + &::google::protobuf::internal::fixed_address_empty_string, + ::_pbi::ConstantInitialized()), + units_( + &::google::protobuf::internal::fixed_address_empty_string, + ::_pbi::ConstantInitialized()), + creationdatedate_{nullptr}, + savedate_{nullptr}, + maxuniqueid_{0u} {} + +template +PROTOBUF_CONSTEXPR MiscInfoFile::MiscInfoFile(::_pbi::ConstantInitialized) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : ::google::protobuf::Message(_class_data_.base()), +#else // PROTOBUF_CUSTOM_VTABLE + : ::google::protobuf::Message(), +#endif // PROTOBUF_CUSTOM_VTABLE + _impl_(::_pbi::ConstantInitialized()) { +} struct MiscInfoFileDefaultTypeInternal { - PROTOBUF_CONSTEXPR MiscInfoFileDefaultTypeInternal() - : _instance(::_pbi::ConstantInitialized{}) {} + PROTOBUF_CONSTEXPR MiscInfoFileDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} ~MiscInfoFileDefaultTypeInternal() {} union { MiscInfoFile _instance; }; }; -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 MiscInfoFileDefaultTypeInternal _MiscInfoFile_default_instance_; + +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT ODBDESIGN_EXPORT + PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 MiscInfoFileDefaultTypeInternal _MiscInfoFile_default_instance_; } // namespace Protobuf } // namespace Lib } // namespace Odb -static ::_pb::Metadata file_level_metadata_miscinfofile_2eproto[1]; -static constexpr ::_pb::EnumDescriptor const** file_level_enum_descriptors_miscinfofile_2eproto = nullptr; -static constexpr ::_pb::ServiceDescriptor const** file_level_service_descriptors_miscinfofile_2eproto = nullptr; - -const uint32_t TableStruct_miscinfofile_2eproto::offsets[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = { - PROTOBUF_FIELD_OFFSET(::Odb::Lib::Protobuf::MiscInfoFile, _impl_._has_bits_), - PROTOBUF_FIELD_OFFSET(::Odb::Lib::Protobuf::MiscInfoFile, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - ~0u, // no _inlined_string_donated_ - PROTOBUF_FIELD_OFFSET(::Odb::Lib::Protobuf::MiscInfoFile, _impl_.productmodelname_), - PROTOBUF_FIELD_OFFSET(::Odb::Lib::Protobuf::MiscInfoFile, _impl_.jobname_), - PROTOBUF_FIELD_OFFSET(::Odb::Lib::Protobuf::MiscInfoFile, _impl_.odbversionmajor_), - PROTOBUF_FIELD_OFFSET(::Odb::Lib::Protobuf::MiscInfoFile, _impl_.odbversionminor_), - PROTOBUF_FIELD_OFFSET(::Odb::Lib::Protobuf::MiscInfoFile, _impl_.odbsource_), - PROTOBUF_FIELD_OFFSET(::Odb::Lib::Protobuf::MiscInfoFile, _impl_.creationdatedate_), - PROTOBUF_FIELD_OFFSET(::Odb::Lib::Protobuf::MiscInfoFile, _impl_.savedate_), - PROTOBUF_FIELD_OFFSET(::Odb::Lib::Protobuf::MiscInfoFile, _impl_.saveapp_), - PROTOBUF_FIELD_OFFSET(::Odb::Lib::Protobuf::MiscInfoFile, _impl_.saveuser_), - PROTOBUF_FIELD_OFFSET(::Odb::Lib::Protobuf::MiscInfoFile, _impl_.units_), - PROTOBUF_FIELD_OFFSET(::Odb::Lib::Protobuf::MiscInfoFile, _impl_.maxuniqueid_), - 0, - 1, - 2, - 3, - 4, - 8, - 9, - 5, - 6, - 7, - 10, -}; -static const ::_pbi::MigrationSchema schemas[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = { - { 0, 17, -1, sizeof(::Odb::Lib::Protobuf::MiscInfoFile)}, +static constexpr const ::_pb::EnumDescriptor** + file_level_enum_descriptors_miscinfofile_2eproto = nullptr; +static constexpr const ::_pb::ServiceDescriptor** + file_level_service_descriptors_miscinfofile_2eproto = nullptr; +const ::uint32_t + TableStruct_miscinfofile_2eproto::offsets[] ABSL_ATTRIBUTE_SECTION_VARIABLE( + protodesc_cold) = { + PROTOBUF_FIELD_OFFSET(::Odb::Lib::Protobuf::MiscInfoFile, _impl_._has_bits_), + PROTOBUF_FIELD_OFFSET(::Odb::Lib::Protobuf::MiscInfoFile, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + ~0u, // no _split_ + ~0u, // no sizeof(Split) + PROTOBUF_FIELD_OFFSET(::Odb::Lib::Protobuf::MiscInfoFile, _impl_.productmodelname_), + PROTOBUF_FIELD_OFFSET(::Odb::Lib::Protobuf::MiscInfoFile, _impl_.jobname_), + PROTOBUF_FIELD_OFFSET(::Odb::Lib::Protobuf::MiscInfoFile, _impl_.odbversionmajor_), + PROTOBUF_FIELD_OFFSET(::Odb::Lib::Protobuf::MiscInfoFile, _impl_.odbversionminor_), + PROTOBUF_FIELD_OFFSET(::Odb::Lib::Protobuf::MiscInfoFile, _impl_.odbsource_), + PROTOBUF_FIELD_OFFSET(::Odb::Lib::Protobuf::MiscInfoFile, _impl_.creationdatedate_), + PROTOBUF_FIELD_OFFSET(::Odb::Lib::Protobuf::MiscInfoFile, _impl_.savedate_), + PROTOBUF_FIELD_OFFSET(::Odb::Lib::Protobuf::MiscInfoFile, _impl_.saveapp_), + PROTOBUF_FIELD_OFFSET(::Odb::Lib::Protobuf::MiscInfoFile, _impl_.saveuser_), + PROTOBUF_FIELD_OFFSET(::Odb::Lib::Protobuf::MiscInfoFile, _impl_.units_), + PROTOBUF_FIELD_OFFSET(::Odb::Lib::Protobuf::MiscInfoFile, _impl_.maxuniqueid_), + 0, + 1, + 2, + 3, + 4, + 8, + 9, + 5, + 6, + 7, + 10, }; +static const ::_pbi::MigrationSchema + schemas[] ABSL_ATTRIBUTE_SECTION_VARIABLE(protodesc_cold) = { + {0, 19, -1, sizeof(::Odb::Lib::Protobuf::MiscInfoFile)}, +}; static const ::_pb::Message* const file_default_instances[] = { - &::Odb::Lib::Protobuf::_MiscInfoFile_default_instance_._instance, + &::Odb::Lib::Protobuf::_MiscInfoFile_default_instance_._instance, }; - -const char descriptor_table_protodef_miscinfofile_2eproto[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = - "\n\022miscinfofile.proto\022\020Odb.Lib.Protobuf\032\037" - "google/protobuf/timestamp.proto\"\214\004\n\014Misc" - "InfoFile\022\035\n\020productModelName\030\001 \001(\tH\000\210\001\001\022" - "\024\n\007jobName\030\002 \001(\tH\001\210\001\001\022\034\n\017odbVersionMajor" - "\030\003 \001(\tH\002\210\001\001\022\034\n\017odbVersionMinor\030\004 \001(\tH\003\210\001" - "\001\022\026\n\todbSource\030\005 \001(\tH\004\210\001\001\0229\n\020creationDat" - "eDate\030\006 \001(\0132\032.google.protobuf.TimestampH" - "\005\210\001\001\0221\n\010saveDate\030\007 \001(\0132\032.google.protobuf" - ".TimestampH\006\210\001\001\022\024\n\007saveApp\030\010 \001(\tH\007\210\001\001\022\025\n" - "\010saveUser\030\t \001(\tH\010\210\001\001\022\022\n\005units\030\n \001(\tH\t\210\001\001" - "\022\030\n\013maxUniqueId\030\013 \001(\rH\n\210\001\001B\023\n\021_productMo" - "delNameB\n\n\010_jobNameB\022\n\020_odbVersionMajorB" - "\022\n\020_odbVersionMinorB\014\n\n_odbSourceB\023\n\021_cr" - "eationDateDateB\013\n\t_saveDateB\n\n\010_saveAppB" - "\013\n\t_saveUserB\010\n\006_unitsB\016\n\014_maxUniqueIdb\006" - "proto3" - ; -static const ::_pbi::DescriptorTable* const descriptor_table_miscinfofile_2eproto_deps[1] = { - &::descriptor_table_google_2fprotobuf_2ftimestamp_2eproto, +const char descriptor_table_protodef_miscinfofile_2eproto[] ABSL_ATTRIBUTE_SECTION_VARIABLE( + protodesc_cold) = { + "\n\022miscinfofile.proto\022\020Odb.Lib.Protobuf\032\037" + "google/protobuf/timestamp.proto\"\214\004\n\014Misc" + "InfoFile\022\035\n\020productModelName\030\001 \001(\tH\000\210\001\001\022" + "\024\n\007jobName\030\002 \001(\tH\001\210\001\001\022\034\n\017odbVersionMajor" + "\030\003 \001(\tH\002\210\001\001\022\034\n\017odbVersionMinor\030\004 \001(\tH\003\210\001" + "\001\022\026\n\todbSource\030\005 \001(\tH\004\210\001\001\0229\n\020creationDat" + "eDate\030\006 \001(\0132\032.google.protobuf.TimestampH" + "\005\210\001\001\0221\n\010saveDate\030\007 \001(\0132\032.google.protobuf" + ".TimestampH\006\210\001\001\022\024\n\007saveApp\030\010 \001(\tH\007\210\001\001\022\025\n" + "\010saveUser\030\t \001(\tH\010\210\001\001\022\022\n\005units\030\n \001(\tH\t\210\001\001" + "\022\030\n\013maxUniqueId\030\013 \001(\rH\n\210\001\001B\023\n\021_productMo" + "delNameB\n\n\010_jobNameB\022\n\020_odbVersionMajorB" + "\022\n\020_odbVersionMinorB\014\n\n_odbSourceB\023\n\021_cr" + "eationDateDateB\013\n\t_saveDateB\n\n\010_saveAppB" + "\013\n\t_saveUserB\010\n\006_unitsB\016\n\014_maxUniqueIdb\006" + "proto3" +}; +static const ::_pbi::DescriptorTable* const descriptor_table_miscinfofile_2eproto_deps[1] = + { + &::descriptor_table_google_2fprotobuf_2ftimestamp_2eproto, }; -static ::_pbi::once_flag descriptor_table_miscinfofile_2eproto_once; -const ::_pbi::DescriptorTable descriptor_table_miscinfofile_2eproto = { - false, false, 606, descriptor_table_protodef_miscinfofile_2eproto, +static ::absl::once_flag descriptor_table_miscinfofile_2eproto_once; +PROTOBUF_CONSTINIT const ::_pbi::DescriptorTable descriptor_table_miscinfofile_2eproto = { + false, + false, + 606, + descriptor_table_protodef_miscinfofile_2eproto, "miscinfofile.proto", - &descriptor_table_miscinfofile_2eproto_once, descriptor_table_miscinfofile_2eproto_deps, 1, 1, - schemas, file_default_instances, TableStruct_miscinfofile_2eproto::offsets, - file_level_metadata_miscinfofile_2eproto, file_level_enum_descriptors_miscinfofile_2eproto, + &descriptor_table_miscinfofile_2eproto_once, + descriptor_table_miscinfofile_2eproto_deps, + 1, + 1, + schemas, + file_default_instances, + TableStruct_miscinfofile_2eproto::offsets, + file_level_enum_descriptors_miscinfofile_2eproto, file_level_service_descriptors_miscinfofile_2eproto, }; -PROTOBUF_ATTRIBUTE_WEAK const ::_pbi::DescriptorTable* descriptor_table_miscinfofile_2eproto_getter() { - return &descriptor_table_miscinfofile_2eproto; -} - -// Force running AddDescriptors() at dynamic initialization time. -PROTOBUF_ATTRIBUTE_INIT_PRIORITY2 static ::_pbi::AddDescriptorsRunner dynamic_init_dummy_miscinfofile_2eproto(&descriptor_table_miscinfofile_2eproto); namespace Odb { namespace Lib { namespace Protobuf { - // =================================================================== class MiscInfoFile::_Internal { public: - using HasBits = decltype(std::declval()._impl_._has_bits_); - static void set_has_productmodelname(HasBits* has_bits) { - (*has_bits)[0] |= 1u; - } - static void set_has_jobname(HasBits* has_bits) { - (*has_bits)[0] |= 2u; - } - static void set_has_odbversionmajor(HasBits* has_bits) { - (*has_bits)[0] |= 4u; - } - static void set_has_odbversionminor(HasBits* has_bits) { - (*has_bits)[0] |= 8u; - } - static void set_has_odbsource(HasBits* has_bits) { - (*has_bits)[0] |= 16u; - } - static const ::PROTOBUF_NAMESPACE_ID::Timestamp& creationdatedate(const MiscInfoFile* msg); - static void set_has_creationdatedate(HasBits* has_bits) { - (*has_bits)[0] |= 256u; - } - static const ::PROTOBUF_NAMESPACE_ID::Timestamp& savedate(const MiscInfoFile* msg); - static void set_has_savedate(HasBits* has_bits) { - (*has_bits)[0] |= 512u; - } - static void set_has_saveapp(HasBits* has_bits) { - (*has_bits)[0] |= 32u; - } - static void set_has_saveuser(HasBits* has_bits) { - (*has_bits)[0] |= 64u; - } - static void set_has_units(HasBits* has_bits) { - (*has_bits)[0] |= 128u; - } - static void set_has_maxuniqueid(HasBits* has_bits) { - (*has_bits)[0] |= 1024u; - } + using HasBits = + decltype(std::declval()._impl_._has_bits_); + static constexpr ::int32_t kHasBitsOffset = + 8 * PROTOBUF_FIELD_OFFSET(MiscInfoFile, _impl_._has_bits_); }; -const ::PROTOBUF_NAMESPACE_ID::Timestamp& -MiscInfoFile::_Internal::creationdatedate(const MiscInfoFile* msg) { - return *msg->_impl_.creationdatedate_; -} -const ::PROTOBUF_NAMESPACE_ID::Timestamp& -MiscInfoFile::_Internal::savedate(const MiscInfoFile* msg) { - return *msg->_impl_.savedate_; -} void MiscInfoFile::clear_creationdatedate() { + ::google::protobuf::internal::TSanWrite(&_impl_); if (_impl_.creationdatedate_ != nullptr) _impl_.creationdatedate_->Clear(); _impl_._has_bits_[0] &= ~0x00000100u; } void MiscInfoFile::clear_savedate() { + ::google::protobuf::internal::TSanWrite(&_impl_); if (_impl_.savedate_ != nullptr) _impl_.savedate_->Clear(); _impl_._has_bits_[0] &= ~0x00000200u; } -MiscInfoFile::MiscInfoFile(::PROTOBUF_NAMESPACE_ID::Arena* arena, - bool is_message_owned) - : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned) { - SharedCtor(arena, is_message_owned); +MiscInfoFile::MiscInfoFile(::google::protobuf::Arena* arena) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : ::google::protobuf::Message(arena, _class_data_.base()) { +#else // PROTOBUF_CUSTOM_VTABLE + : ::google::protobuf::Message(arena) { +#endif // PROTOBUF_CUSTOM_VTABLE + SharedCtor(arena); // @@protoc_insertion_point(arena_constructor:Odb.Lib.Protobuf.MiscInfoFile) } -MiscInfoFile::MiscInfoFile(const MiscInfoFile& from) - : ::PROTOBUF_NAMESPACE_ID::Message() { - MiscInfoFile* const _this = this; (void)_this; - new (&_impl_) Impl_{ - decltype(_impl_._has_bits_){from._impl_._has_bits_} - , /*decltype(_impl_._cached_size_)*/{} - , decltype(_impl_.productmodelname_){} - , decltype(_impl_.jobname_){} - , decltype(_impl_.odbversionmajor_){} - , decltype(_impl_.odbversionminor_){} - , decltype(_impl_.odbsource_){} - , decltype(_impl_.saveapp_){} - , decltype(_impl_.saveuser_){} - , decltype(_impl_.units_){} - , decltype(_impl_.creationdatedate_){nullptr} - , decltype(_impl_.savedate_){nullptr} - , decltype(_impl_.maxuniqueid_){}}; - - _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); - _impl_.productmodelname_.InitDefault(); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - _impl_.productmodelname_.Set("", GetArenaForAllocation()); - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (from._internal_has_productmodelname()) { - _this->_impl_.productmodelname_.Set(from._internal_productmodelname(), - _this->GetArenaForAllocation()); - } - _impl_.jobname_.InitDefault(); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - _impl_.jobname_.Set("", GetArenaForAllocation()); - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (from._internal_has_jobname()) { - _this->_impl_.jobname_.Set(from._internal_jobname(), - _this->GetArenaForAllocation()); - } - _impl_.odbversionmajor_.InitDefault(); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - _impl_.odbversionmajor_.Set("", GetArenaForAllocation()); - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (from._internal_has_odbversionmajor()) { - _this->_impl_.odbversionmajor_.Set(from._internal_odbversionmajor(), - _this->GetArenaForAllocation()); - } - _impl_.odbversionminor_.InitDefault(); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - _impl_.odbversionminor_.Set("", GetArenaForAllocation()); - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (from._internal_has_odbversionminor()) { - _this->_impl_.odbversionminor_.Set(from._internal_odbversionminor(), - _this->GetArenaForAllocation()); - } - _impl_.odbsource_.InitDefault(); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - _impl_.odbsource_.Set("", GetArenaForAllocation()); - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (from._internal_has_odbsource()) { - _this->_impl_.odbsource_.Set(from._internal_odbsource(), - _this->GetArenaForAllocation()); - } - _impl_.saveapp_.InitDefault(); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - _impl_.saveapp_.Set("", GetArenaForAllocation()); - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (from._internal_has_saveapp()) { - _this->_impl_.saveapp_.Set(from._internal_saveapp(), - _this->GetArenaForAllocation()); - } - _impl_.saveuser_.InitDefault(); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - _impl_.saveuser_.Set("", GetArenaForAllocation()); - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (from._internal_has_saveuser()) { - _this->_impl_.saveuser_.Set(from._internal_saveuser(), - _this->GetArenaForAllocation()); - } - _impl_.units_.InitDefault(); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - _impl_.units_.Set("", GetArenaForAllocation()); - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (from._internal_has_units()) { - _this->_impl_.units_.Set(from._internal_units(), - _this->GetArenaForAllocation()); - } - if (from._internal_has_creationdatedate()) { - _this->_impl_.creationdatedate_ = new ::PROTOBUF_NAMESPACE_ID::Timestamp(*from._impl_.creationdatedate_); - } - if (from._internal_has_savedate()) { - _this->_impl_.savedate_ = new ::PROTOBUF_NAMESPACE_ID::Timestamp(*from._impl_.savedate_); - } - _this->_impl_.maxuniqueid_ = from._impl_.maxuniqueid_; +inline PROTOBUF_NDEBUG_INLINE MiscInfoFile::Impl_::Impl_( + ::google::protobuf::internal::InternalVisibility visibility, ::google::protobuf::Arena* arena, + const Impl_& from, const ::Odb::Lib::Protobuf::MiscInfoFile& from_msg) + : _has_bits_{from._has_bits_}, + _cached_size_{0}, + productmodelname_(arena, from.productmodelname_), + jobname_(arena, from.jobname_), + odbversionmajor_(arena, from.odbversionmajor_), + odbversionminor_(arena, from.odbversionminor_), + odbsource_(arena, from.odbsource_), + saveapp_(arena, from.saveapp_), + saveuser_(arena, from.saveuser_), + units_(arena, from.units_) {} + +MiscInfoFile::MiscInfoFile( + ::google::protobuf::Arena* arena, + const MiscInfoFile& from) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : ::google::protobuf::Message(arena, _class_data_.base()) { +#else // PROTOBUF_CUSTOM_VTABLE + : ::google::protobuf::Message(arena) { +#endif // PROTOBUF_CUSTOM_VTABLE + MiscInfoFile* const _this = this; + (void)_this; + _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( + from._internal_metadata_); + new (&_impl_) Impl_(internal_visibility(), arena, from._impl_, from); + ::uint32_t cached_has_bits = _impl_._has_bits_[0]; + _impl_.creationdatedate_ = (cached_has_bits & 0x00000100u) ? ::google::protobuf::Message::CopyConstruct<::google::protobuf::Timestamp>( + arena, *from._impl_.creationdatedate_) + : nullptr; + _impl_.savedate_ = (cached_has_bits & 0x00000200u) ? ::google::protobuf::Message::CopyConstruct<::google::protobuf::Timestamp>( + arena, *from._impl_.savedate_) + : nullptr; + _impl_.maxuniqueid_ = from._impl_.maxuniqueid_; + // @@protoc_insertion_point(copy_constructor:Odb.Lib.Protobuf.MiscInfoFile) } - -inline void MiscInfoFile::SharedCtor( - ::_pb::Arena* arena, bool is_message_owned) { - (void)arena; - (void)is_message_owned; - new (&_impl_) Impl_{ - decltype(_impl_._has_bits_){} - , /*decltype(_impl_._cached_size_)*/{} - , decltype(_impl_.productmodelname_){} - , decltype(_impl_.jobname_){} - , decltype(_impl_.odbversionmajor_){} - , decltype(_impl_.odbversionminor_){} - , decltype(_impl_.odbsource_){} - , decltype(_impl_.saveapp_){} - , decltype(_impl_.saveuser_){} - , decltype(_impl_.units_){} - , decltype(_impl_.creationdatedate_){nullptr} - , decltype(_impl_.savedate_){nullptr} - , decltype(_impl_.maxuniqueid_){0u} - }; - _impl_.productmodelname_.InitDefault(); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - _impl_.productmodelname_.Set("", GetArenaForAllocation()); - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING - _impl_.jobname_.InitDefault(); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - _impl_.jobname_.Set("", GetArenaForAllocation()); - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING - _impl_.odbversionmajor_.InitDefault(); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - _impl_.odbversionmajor_.Set("", GetArenaForAllocation()); - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING - _impl_.odbversionminor_.InitDefault(); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - _impl_.odbversionminor_.Set("", GetArenaForAllocation()); - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING - _impl_.odbsource_.InitDefault(); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - _impl_.odbsource_.Set("", GetArenaForAllocation()); - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING - _impl_.saveapp_.InitDefault(); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - _impl_.saveapp_.Set("", GetArenaForAllocation()); - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING - _impl_.saveuser_.InitDefault(); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - _impl_.saveuser_.Set("", GetArenaForAllocation()); - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING - _impl_.units_.InitDefault(); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - _impl_.units_.Set("", GetArenaForAllocation()); - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING +inline PROTOBUF_NDEBUG_INLINE MiscInfoFile::Impl_::Impl_( + ::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* arena) + : _cached_size_{0}, + productmodelname_(arena), + jobname_(arena), + odbversionmajor_(arena), + odbversionminor_(arena), + odbsource_(arena), + saveapp_(arena), + saveuser_(arena), + units_(arena) {} + +inline void MiscInfoFile::SharedCtor(::_pb::Arena* arena) { + new (&_impl_) Impl_(internal_visibility(), arena); + ::memset(reinterpret_cast(&_impl_) + + offsetof(Impl_, creationdatedate_), + 0, + offsetof(Impl_, maxuniqueid_) - + offsetof(Impl_, creationdatedate_) + + sizeof(Impl_::maxuniqueid_)); } - MiscInfoFile::~MiscInfoFile() { // @@protoc_insertion_point(destructor:Odb.Lib.Protobuf.MiscInfoFile) - if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) { - (void)arena; - return; - } - SharedDtor(); + SharedDtor(*this); } - -inline void MiscInfoFile::SharedDtor() { - GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); - _impl_.productmodelname_.Destroy(); - _impl_.jobname_.Destroy(); - _impl_.odbversionmajor_.Destroy(); - _impl_.odbversionminor_.Destroy(); - _impl_.odbsource_.Destroy(); - _impl_.saveapp_.Destroy(); - _impl_.saveuser_.Destroy(); - _impl_.units_.Destroy(); - if (this != internal_default_instance()) delete _impl_.creationdatedate_; - if (this != internal_default_instance()) delete _impl_.savedate_; +inline void MiscInfoFile::SharedDtor(MessageLite& self) { + MiscInfoFile& this_ = static_cast(self); + this_._internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); + ABSL_DCHECK(this_.GetArena() == nullptr); + this_._impl_.productmodelname_.Destroy(); + this_._impl_.jobname_.Destroy(); + this_._impl_.odbversionmajor_.Destroy(); + this_._impl_.odbversionminor_.Destroy(); + this_._impl_.odbsource_.Destroy(); + this_._impl_.saveapp_.Destroy(); + this_._impl_.saveuser_.Destroy(); + this_._impl_.units_.Destroy(); + delete this_._impl_.creationdatedate_; + delete this_._impl_.savedate_; + this_._impl_.~Impl_(); } -void MiscInfoFile::SetCachedSize(int size) const { - _impl_._cached_size_.Set(size); +inline void* MiscInfoFile::PlacementNew_(const void*, void* mem, + ::google::protobuf::Arena* arena) { + return ::new (mem) MiscInfoFile(arena); +} +constexpr auto MiscInfoFile::InternalNewImpl_() { + return ::google::protobuf::internal::MessageCreator::CopyInit(sizeof(MiscInfoFile), + alignof(MiscInfoFile)); +} +PROTOBUF_CONSTINIT +PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 +const ::google::protobuf::internal::ClassDataFull MiscInfoFile::_class_data_ = { + ::google::protobuf::internal::ClassData{ + &_MiscInfoFile_default_instance_._instance, + &_table_.header, + nullptr, // OnDemandRegisterArenaDtor + nullptr, // IsInitialized + &MiscInfoFile::MergeImpl, + ::google::protobuf::Message::GetNewImpl(), +#if defined(PROTOBUF_CUSTOM_VTABLE) + &MiscInfoFile::SharedDtor, + ::google::protobuf::Message::GetClearImpl(), &MiscInfoFile::ByteSizeLong, + &MiscInfoFile::_InternalSerialize, +#endif // PROTOBUF_CUSTOM_VTABLE + PROTOBUF_FIELD_OFFSET(MiscInfoFile, _impl_._cached_size_), + false, + }, + &MiscInfoFile::kDescriptorMethods, + &descriptor_table_miscinfofile_2eproto, + nullptr, // tracker +}; +const ::google::protobuf::internal::ClassData* MiscInfoFile::GetClassData() const { + ::google::protobuf::internal::PrefetchToLocalCache(&_class_data_); + ::google::protobuf::internal::PrefetchToLocalCache(_class_data_.tc_table); + return _class_data_.base(); } +PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 +const ::_pbi::TcParseTable<4, 11, 2, 128, 2> MiscInfoFile::_table_ = { + { + PROTOBUF_FIELD_OFFSET(MiscInfoFile, _impl_._has_bits_), + 0, // no _extensions_ + 11, 120, // max_field_number, fast_idx_mask + offsetof(decltype(_table_), field_lookup_table), + 4294965248, // skipmap + offsetof(decltype(_table_), field_entries), + 11, // num_field_entries + 2, // num_aux_entries + offsetof(decltype(_table_), aux_entries), + _class_data_.base(), + nullptr, // post_loop_handler + ::_pbi::TcParser::GenericFallback, // fallback + #ifdef PROTOBUF_PREFETCH_PARSE_TABLE + ::_pbi::TcParser::GetTable<::Odb::Lib::Protobuf::MiscInfoFile>(), // to_prefetch + #endif // PROTOBUF_PREFETCH_PARSE_TABLE + }, {{ + {::_pbi::TcParser::MiniParse, {}}, + // optional string productModelName = 1; + {::_pbi::TcParser::FastUS1, + {10, 0, 0, PROTOBUF_FIELD_OFFSET(MiscInfoFile, _impl_.productmodelname_)}}, + // optional string jobName = 2; + {::_pbi::TcParser::FastUS1, + {18, 1, 0, PROTOBUF_FIELD_OFFSET(MiscInfoFile, _impl_.jobname_)}}, + // optional string odbVersionMajor = 3; + {::_pbi::TcParser::FastUS1, + {26, 2, 0, PROTOBUF_FIELD_OFFSET(MiscInfoFile, _impl_.odbversionmajor_)}}, + // optional string odbVersionMinor = 4; + {::_pbi::TcParser::FastUS1, + {34, 3, 0, PROTOBUF_FIELD_OFFSET(MiscInfoFile, _impl_.odbversionminor_)}}, + // optional string odbSource = 5; + {::_pbi::TcParser::FastUS1, + {42, 4, 0, PROTOBUF_FIELD_OFFSET(MiscInfoFile, _impl_.odbsource_)}}, + // optional .google.protobuf.Timestamp creationDateDate = 6; + {::_pbi::TcParser::FastMtS1, + {50, 8, 0, PROTOBUF_FIELD_OFFSET(MiscInfoFile, _impl_.creationdatedate_)}}, + // optional .google.protobuf.Timestamp saveDate = 7; + {::_pbi::TcParser::FastMtS1, + {58, 9, 1, PROTOBUF_FIELD_OFFSET(MiscInfoFile, _impl_.savedate_)}}, + // optional string saveApp = 8; + {::_pbi::TcParser::FastUS1, + {66, 5, 0, PROTOBUF_FIELD_OFFSET(MiscInfoFile, _impl_.saveapp_)}}, + // optional string saveUser = 9; + {::_pbi::TcParser::FastUS1, + {74, 6, 0, PROTOBUF_FIELD_OFFSET(MiscInfoFile, _impl_.saveuser_)}}, + // optional string units = 10; + {::_pbi::TcParser::FastUS1, + {82, 7, 0, PROTOBUF_FIELD_OFFSET(MiscInfoFile, _impl_.units_)}}, + // optional uint32 maxUniqueId = 11; + {::_pbi::TcParser::SingularVarintNoZag1<::uint32_t, offsetof(MiscInfoFile, _impl_.maxuniqueid_), 10>(), + {88, 10, 0, PROTOBUF_FIELD_OFFSET(MiscInfoFile, _impl_.maxuniqueid_)}}, + {::_pbi::TcParser::MiniParse, {}}, + {::_pbi::TcParser::MiniParse, {}}, + {::_pbi::TcParser::MiniParse, {}}, + {::_pbi::TcParser::MiniParse, {}}, + }}, {{ + 65535, 65535 + }}, {{ + // optional string productModelName = 1; + {PROTOBUF_FIELD_OFFSET(MiscInfoFile, _impl_.productmodelname_), _Internal::kHasBitsOffset + 0, 0, + (0 | ::_fl::kFcOptional | ::_fl::kUtf8String | ::_fl::kRepAString)}, + // optional string jobName = 2; + {PROTOBUF_FIELD_OFFSET(MiscInfoFile, _impl_.jobname_), _Internal::kHasBitsOffset + 1, 0, + (0 | ::_fl::kFcOptional | ::_fl::kUtf8String | ::_fl::kRepAString)}, + // optional string odbVersionMajor = 3; + {PROTOBUF_FIELD_OFFSET(MiscInfoFile, _impl_.odbversionmajor_), _Internal::kHasBitsOffset + 2, 0, + (0 | ::_fl::kFcOptional | ::_fl::kUtf8String | ::_fl::kRepAString)}, + // optional string odbVersionMinor = 4; + {PROTOBUF_FIELD_OFFSET(MiscInfoFile, _impl_.odbversionminor_), _Internal::kHasBitsOffset + 3, 0, + (0 | ::_fl::kFcOptional | ::_fl::kUtf8String | ::_fl::kRepAString)}, + // optional string odbSource = 5; + {PROTOBUF_FIELD_OFFSET(MiscInfoFile, _impl_.odbsource_), _Internal::kHasBitsOffset + 4, 0, + (0 | ::_fl::kFcOptional | ::_fl::kUtf8String | ::_fl::kRepAString)}, + // optional .google.protobuf.Timestamp creationDateDate = 6; + {PROTOBUF_FIELD_OFFSET(MiscInfoFile, _impl_.creationdatedate_), _Internal::kHasBitsOffset + 8, 0, + (0 | ::_fl::kFcOptional | ::_fl::kMessage | ::_fl::kTvTable)}, + // optional .google.protobuf.Timestamp saveDate = 7; + {PROTOBUF_FIELD_OFFSET(MiscInfoFile, _impl_.savedate_), _Internal::kHasBitsOffset + 9, 1, + (0 | ::_fl::kFcOptional | ::_fl::kMessage | ::_fl::kTvTable)}, + // optional string saveApp = 8; + {PROTOBUF_FIELD_OFFSET(MiscInfoFile, _impl_.saveapp_), _Internal::kHasBitsOffset + 5, 0, + (0 | ::_fl::kFcOptional | ::_fl::kUtf8String | ::_fl::kRepAString)}, + // optional string saveUser = 9; + {PROTOBUF_FIELD_OFFSET(MiscInfoFile, _impl_.saveuser_), _Internal::kHasBitsOffset + 6, 0, + (0 | ::_fl::kFcOptional | ::_fl::kUtf8String | ::_fl::kRepAString)}, + // optional string units = 10; + {PROTOBUF_FIELD_OFFSET(MiscInfoFile, _impl_.units_), _Internal::kHasBitsOffset + 7, 0, + (0 | ::_fl::kFcOptional | ::_fl::kUtf8String | ::_fl::kRepAString)}, + // optional uint32 maxUniqueId = 11; + {PROTOBUF_FIELD_OFFSET(MiscInfoFile, _impl_.maxuniqueid_), _Internal::kHasBitsOffset + 10, 0, + (0 | ::_fl::kFcOptional | ::_fl::kUInt32)}, + }}, {{ + {::_pbi::TcParser::GetTable<::google::protobuf::Timestamp>()}, + {::_pbi::TcParser::GetTable<::google::protobuf::Timestamp>()}, + }}, {{ + "\35\20\7\17\17\11\0\0\7\10\5\0\0\0\0\0" + "Odb.Lib.Protobuf.MiscInfoFile" + "productModelName" + "jobName" + "odbVersionMajor" + "odbVersionMinor" + "odbSource" + "saveApp" + "saveUser" + "units" + }}, +}; -void MiscInfoFile::Clear() { +PROTOBUF_NOINLINE void MiscInfoFile::Clear() { // @@protoc_insertion_point(message_clear_start:Odb.Lib.Protobuf.MiscInfoFile) - uint32_t cached_has_bits = 0; + ::google::protobuf::internal::TSanWrite(&_impl_); + ::uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; @@ -404,373 +461,215 @@ void MiscInfoFile::Clear() { } if (cached_has_bits & 0x00000300u) { if (cached_has_bits & 0x00000100u) { - GOOGLE_DCHECK(_impl_.creationdatedate_ != nullptr); + ABSL_DCHECK(_impl_.creationdatedate_ != nullptr); _impl_.creationdatedate_->Clear(); } if (cached_has_bits & 0x00000200u) { - GOOGLE_DCHECK(_impl_.savedate_ != nullptr); + ABSL_DCHECK(_impl_.savedate_ != nullptr); _impl_.savedate_->Clear(); } } _impl_.maxuniqueid_ = 0u; _impl_._has_bits_.Clear(); - _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); -} - -const char* MiscInfoFile::_InternalParse(const char* ptr, ::_pbi::ParseContext* ctx) { -#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure - _Internal::HasBits has_bits{}; - while (!ctx->Done(&ptr)) { - uint32_t tag; - ptr = ::_pbi::ReadTag(ptr, &tag); - switch (tag >> 3) { - // optional string productModelName = 1; - case 1: - if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 10)) { - auto str = _internal_mutable_productmodelname(); - ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); - CHK_(ptr); - CHK_(::_pbi::VerifyUTF8(str, "Odb.Lib.Protobuf.MiscInfoFile.productModelName")); - } else - goto handle_unusual; - continue; - // optional string jobName = 2; - case 2: - if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 18)) { - auto str = _internal_mutable_jobname(); - ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); - CHK_(ptr); - CHK_(::_pbi::VerifyUTF8(str, "Odb.Lib.Protobuf.MiscInfoFile.jobName")); - } else - goto handle_unusual; - continue; - // optional string odbVersionMajor = 3; - case 3: - if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 26)) { - auto str = _internal_mutable_odbversionmajor(); - ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); - CHK_(ptr); - CHK_(::_pbi::VerifyUTF8(str, "Odb.Lib.Protobuf.MiscInfoFile.odbVersionMajor")); - } else - goto handle_unusual; - continue; - // optional string odbVersionMinor = 4; - case 4: - if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 34)) { - auto str = _internal_mutable_odbversionminor(); - ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); - CHK_(ptr); - CHK_(::_pbi::VerifyUTF8(str, "Odb.Lib.Protobuf.MiscInfoFile.odbVersionMinor")); - } else - goto handle_unusual; - continue; - // optional string odbSource = 5; - case 5: - if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 42)) { - auto str = _internal_mutable_odbsource(); - ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); - CHK_(ptr); - CHK_(::_pbi::VerifyUTF8(str, "Odb.Lib.Protobuf.MiscInfoFile.odbSource")); - } else - goto handle_unusual; - continue; - // optional .google.protobuf.Timestamp creationDateDate = 6; - case 6: - if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 50)) { - ptr = ctx->ParseMessage(_internal_mutable_creationdatedate(), ptr); - CHK_(ptr); - } else - goto handle_unusual; - continue; - // optional .google.protobuf.Timestamp saveDate = 7; - case 7: - if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 58)) { - ptr = ctx->ParseMessage(_internal_mutable_savedate(), ptr); - CHK_(ptr); - } else - goto handle_unusual; - continue; - // optional string saveApp = 8; - case 8: - if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 66)) { - auto str = _internal_mutable_saveapp(); - ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); - CHK_(ptr); - CHK_(::_pbi::VerifyUTF8(str, "Odb.Lib.Protobuf.MiscInfoFile.saveApp")); - } else - goto handle_unusual; - continue; - // optional string saveUser = 9; - case 9: - if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 74)) { - auto str = _internal_mutable_saveuser(); - ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); - CHK_(ptr); - CHK_(::_pbi::VerifyUTF8(str, "Odb.Lib.Protobuf.MiscInfoFile.saveUser")); - } else - goto handle_unusual; - continue; - // optional string units = 10; - case 10: - if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 82)) { - auto str = _internal_mutable_units(); - ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); - CHK_(ptr); - CHK_(::_pbi::VerifyUTF8(str, "Odb.Lib.Protobuf.MiscInfoFile.units")); - } else - goto handle_unusual; - continue; - // optional uint32 maxUniqueId = 11; - case 11: - if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 88)) { - _Internal::set_has_maxuniqueid(&has_bits); - _impl_.maxuniqueid_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr); - CHK_(ptr); - } else - goto handle_unusual; - continue; - default: - goto handle_unusual; - } // switch - handle_unusual: - if ((tag == 0) || ((tag & 7) == 4)) { - CHK_(ptr); - ctx->SetLastTag(tag); - goto message_done; - } - ptr = UnknownFieldParse( - tag, - _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(), - ptr, ctx); - CHK_(ptr != nullptr); - } // while -message_done: - _impl_._has_bits_.Or(has_bits); - return ptr; -failure: - ptr = nullptr; - goto message_done; -#undef CHK_ -} - -uint8_t* MiscInfoFile::_InternalSerialize( - uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { - // @@protoc_insertion_point(serialize_to_array_start:Odb.Lib.Protobuf.MiscInfoFile) - uint32_t cached_has_bits = 0; - (void) cached_has_bits; - - // optional string productModelName = 1; - if (_internal_has_productmodelname()) { - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( - this->_internal_productmodelname().data(), static_cast(this->_internal_productmodelname().length()), - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, - "Odb.Lib.Protobuf.MiscInfoFile.productModelName"); - target = stream->WriteStringMaybeAliased( - 1, this->_internal_productmodelname(), target); - } - - // optional string jobName = 2; - if (_internal_has_jobname()) { - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( - this->_internal_jobname().data(), static_cast(this->_internal_jobname().length()), - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, - "Odb.Lib.Protobuf.MiscInfoFile.jobName"); - target = stream->WriteStringMaybeAliased( - 2, this->_internal_jobname(), target); - } - - // optional string odbVersionMajor = 3; - if (_internal_has_odbversionmajor()) { - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( - this->_internal_odbversionmajor().data(), static_cast(this->_internal_odbversionmajor().length()), - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, - "Odb.Lib.Protobuf.MiscInfoFile.odbVersionMajor"); - target = stream->WriteStringMaybeAliased( - 3, this->_internal_odbversionmajor(), target); - } - - // optional string odbVersionMinor = 4; - if (_internal_has_odbversionminor()) { - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( - this->_internal_odbversionminor().data(), static_cast(this->_internal_odbversionminor().length()), - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, - "Odb.Lib.Protobuf.MiscInfoFile.odbVersionMinor"); - target = stream->WriteStringMaybeAliased( - 4, this->_internal_odbversionminor(), target); - } - - // optional string odbSource = 5; - if (_internal_has_odbsource()) { - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( - this->_internal_odbsource().data(), static_cast(this->_internal_odbsource().length()), - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, - "Odb.Lib.Protobuf.MiscInfoFile.odbSource"); - target = stream->WriteStringMaybeAliased( - 5, this->_internal_odbsource(), target); - } - - // optional .google.protobuf.Timestamp creationDateDate = 6; - if (_internal_has_creationdatedate()) { - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: - InternalWriteMessage(6, _Internal::creationdatedate(this), - _Internal::creationdatedate(this).GetCachedSize(), target, stream); - } - - // optional .google.protobuf.Timestamp saveDate = 7; - if (_internal_has_savedate()) { - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: - InternalWriteMessage(7, _Internal::savedate(this), - _Internal::savedate(this).GetCachedSize(), target, stream); - } - - // optional string saveApp = 8; - if (_internal_has_saveapp()) { - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( - this->_internal_saveapp().data(), static_cast(this->_internal_saveapp().length()), - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, - "Odb.Lib.Protobuf.MiscInfoFile.saveApp"); - target = stream->WriteStringMaybeAliased( - 8, this->_internal_saveapp(), target); - } - - // optional string saveUser = 9; - if (_internal_has_saveuser()) { - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( - this->_internal_saveuser().data(), static_cast(this->_internal_saveuser().length()), - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, - "Odb.Lib.Protobuf.MiscInfoFile.saveUser"); - target = stream->WriteStringMaybeAliased( - 9, this->_internal_saveuser(), target); - } - - // optional string units = 10; - if (_internal_has_units()) { - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( - this->_internal_units().data(), static_cast(this->_internal_units().length()), - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, - "Odb.Lib.Protobuf.MiscInfoFile.units"); - target = stream->WriteStringMaybeAliased( - 10, this->_internal_units(), target); - } - - // optional uint32 maxUniqueId = 11; - if (_internal_has_maxuniqueid()) { - target = stream->EnsureSpace(target); - target = ::_pbi::WireFormatLite::WriteUInt32ToArray(11, this->_internal_maxuniqueid(), target); - } - - if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = ::_pbi::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:Odb.Lib.Protobuf.MiscInfoFile) - return target; -} - -size_t MiscInfoFile::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:Odb.Lib.Protobuf.MiscInfoFile) - size_t total_size = 0; - - uint32_t cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - cached_has_bits = _impl_._has_bits_[0]; - if (cached_has_bits & 0x000000ffu) { - // optional string productModelName = 1; - if (cached_has_bits & 0x00000001u) { - total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( - this->_internal_productmodelname()); - } - - // optional string jobName = 2; - if (cached_has_bits & 0x00000002u) { - total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( - this->_internal_jobname()); - } - - // optional string odbVersionMajor = 3; - if (cached_has_bits & 0x00000004u) { - total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( - this->_internal_odbversionmajor()); - } - - // optional string odbVersionMinor = 4; - if (cached_has_bits & 0x00000008u) { - total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( - this->_internal_odbversionminor()); - } - - // optional string odbSource = 5; - if (cached_has_bits & 0x00000010u) { - total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( - this->_internal_odbsource()); - } - - // optional string saveApp = 8; - if (cached_has_bits & 0x00000020u) { - total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( - this->_internal_saveapp()); - } - - // optional string saveUser = 9; - if (cached_has_bits & 0x00000040u) { - total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( - this->_internal_saveuser()); - } - - // optional string units = 10; - if (cached_has_bits & 0x00000080u) { - total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( - this->_internal_units()); - } - - } - if (cached_has_bits & 0x00000700u) { - // optional .google.protobuf.Timestamp creationDateDate = 6; - if (cached_has_bits & 0x00000100u) { - total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( - *_impl_.creationdatedate_); - } - - // optional .google.protobuf.Timestamp saveDate = 7; - if (cached_has_bits & 0x00000200u) { - total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( - *_impl_.savedate_); - } - - // optional uint32 maxUniqueId = 11; - if (cached_has_bits & 0x00000400u) { - total_size += ::_pbi::WireFormatLite::UInt32SizePlusOne(this->_internal_maxuniqueid()); - } - - } - return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); + _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); } -const ::PROTOBUF_NAMESPACE_ID::Message::ClassData MiscInfoFile::_class_data_ = { - ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSourceCheck, - MiscInfoFile::MergeImpl -}; -const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*MiscInfoFile::GetClassData() const { return &_class_data_; } - - -void MiscInfoFile::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg) { +#if defined(PROTOBUF_CUSTOM_VTABLE) + ::uint8_t* MiscInfoFile::_InternalSerialize( + const MessageLite& base, ::uint8_t* target, + ::google::protobuf::io::EpsCopyOutputStream* stream) { + const MiscInfoFile& this_ = static_cast(base); +#else // PROTOBUF_CUSTOM_VTABLE + ::uint8_t* MiscInfoFile::_InternalSerialize( + ::uint8_t* target, + ::google::protobuf::io::EpsCopyOutputStream* stream) const { + const MiscInfoFile& this_ = *this; +#endif // PROTOBUF_CUSTOM_VTABLE + // @@protoc_insertion_point(serialize_to_array_start:Odb.Lib.Protobuf.MiscInfoFile) + ::uint32_t cached_has_bits = 0; + (void)cached_has_bits; + + cached_has_bits = this_._impl_._has_bits_[0]; + // optional string productModelName = 1; + if (cached_has_bits & 0x00000001u) { + const std::string& _s = this_._internal_productmodelname(); + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + _s.data(), static_cast(_s.length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "Odb.Lib.Protobuf.MiscInfoFile.productModelName"); + target = stream->WriteStringMaybeAliased(1, _s, target); + } + + // optional string jobName = 2; + if (cached_has_bits & 0x00000002u) { + const std::string& _s = this_._internal_jobname(); + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + _s.data(), static_cast(_s.length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "Odb.Lib.Protobuf.MiscInfoFile.jobName"); + target = stream->WriteStringMaybeAliased(2, _s, target); + } + + // optional string odbVersionMajor = 3; + if (cached_has_bits & 0x00000004u) { + const std::string& _s = this_._internal_odbversionmajor(); + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + _s.data(), static_cast(_s.length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "Odb.Lib.Protobuf.MiscInfoFile.odbVersionMajor"); + target = stream->WriteStringMaybeAliased(3, _s, target); + } + + // optional string odbVersionMinor = 4; + if (cached_has_bits & 0x00000008u) { + const std::string& _s = this_._internal_odbversionminor(); + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + _s.data(), static_cast(_s.length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "Odb.Lib.Protobuf.MiscInfoFile.odbVersionMinor"); + target = stream->WriteStringMaybeAliased(4, _s, target); + } + + // optional string odbSource = 5; + if (cached_has_bits & 0x00000010u) { + const std::string& _s = this_._internal_odbsource(); + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + _s.data(), static_cast(_s.length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "Odb.Lib.Protobuf.MiscInfoFile.odbSource"); + target = stream->WriteStringMaybeAliased(5, _s, target); + } + + // optional .google.protobuf.Timestamp creationDateDate = 6; + if (cached_has_bits & 0x00000100u) { + target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( + 6, *this_._impl_.creationdatedate_, this_._impl_.creationdatedate_->GetCachedSize(), target, + stream); + } + + // optional .google.protobuf.Timestamp saveDate = 7; + if (cached_has_bits & 0x00000200u) { + target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( + 7, *this_._impl_.savedate_, this_._impl_.savedate_->GetCachedSize(), target, + stream); + } + + // optional string saveApp = 8; + if (cached_has_bits & 0x00000020u) { + const std::string& _s = this_._internal_saveapp(); + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + _s.data(), static_cast(_s.length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "Odb.Lib.Protobuf.MiscInfoFile.saveApp"); + target = stream->WriteStringMaybeAliased(8, _s, target); + } + + // optional string saveUser = 9; + if (cached_has_bits & 0x00000040u) { + const std::string& _s = this_._internal_saveuser(); + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + _s.data(), static_cast(_s.length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "Odb.Lib.Protobuf.MiscInfoFile.saveUser"); + target = stream->WriteStringMaybeAliased(9, _s, target); + } + + // optional string units = 10; + if (cached_has_bits & 0x00000080u) { + const std::string& _s = this_._internal_units(); + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + _s.data(), static_cast(_s.length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "Odb.Lib.Protobuf.MiscInfoFile.units"); + target = stream->WriteStringMaybeAliased(10, _s, target); + } + + // optional uint32 maxUniqueId = 11; + if (cached_has_bits & 0x00000400u) { + target = stream->EnsureSpace(target); + target = ::_pbi::WireFormatLite::WriteUInt32ToArray( + 11, this_._internal_maxuniqueid(), target); + } + + if (PROTOBUF_PREDICT_FALSE(this_._internal_metadata_.have_unknown_fields())) { + target = + ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( + this_._internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); + } + // @@protoc_insertion_point(serialize_to_array_end:Odb.Lib.Protobuf.MiscInfoFile) + return target; + } + +#if defined(PROTOBUF_CUSTOM_VTABLE) + ::size_t MiscInfoFile::ByteSizeLong(const MessageLite& base) { + const MiscInfoFile& this_ = static_cast(base); +#else // PROTOBUF_CUSTOM_VTABLE + ::size_t MiscInfoFile::ByteSizeLong() const { + const MiscInfoFile& this_ = *this; +#endif // PROTOBUF_CUSTOM_VTABLE + // @@protoc_insertion_point(message_byte_size_start:Odb.Lib.Protobuf.MiscInfoFile) + ::size_t total_size = 0; + + ::uint32_t cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void)cached_has_bits; + + ::_pbi::Prefetch5LinesFrom7Lines(&this_); + cached_has_bits = this_._impl_._has_bits_[0]; + if (cached_has_bits & 0x000000ffu) { + // optional string productModelName = 1; + if (cached_has_bits & 0x00000001u) { + total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize( + this_._internal_productmodelname()); + } + // optional string jobName = 2; + if (cached_has_bits & 0x00000002u) { + total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize( + this_._internal_jobname()); + } + // optional string odbVersionMajor = 3; + if (cached_has_bits & 0x00000004u) { + total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize( + this_._internal_odbversionmajor()); + } + // optional string odbVersionMinor = 4; + if (cached_has_bits & 0x00000008u) { + total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize( + this_._internal_odbversionminor()); + } + // optional string odbSource = 5; + if (cached_has_bits & 0x00000010u) { + total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize( + this_._internal_odbsource()); + } + // optional string saveApp = 8; + if (cached_has_bits & 0x00000020u) { + total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize( + this_._internal_saveapp()); + } + // optional string saveUser = 9; + if (cached_has_bits & 0x00000040u) { + total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize( + this_._internal_saveuser()); + } + // optional string units = 10; + if (cached_has_bits & 0x00000080u) { + total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize( + this_._internal_units()); + } + } + if (cached_has_bits & 0x00000700u) { + // optional .google.protobuf.Timestamp creationDateDate = 6; + if (cached_has_bits & 0x00000100u) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::MessageSize(*this_._impl_.creationdatedate_); + } + // optional .google.protobuf.Timestamp saveDate = 7; + if (cached_has_bits & 0x00000200u) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::MessageSize(*this_._impl_.savedate_); + } + // optional uint32 maxUniqueId = 11; + if (cached_has_bits & 0x00000400u) { + total_size += ::_pbi::WireFormatLite::UInt32SizePlusOne( + this_._internal_maxuniqueid()); + } + } + return this_.MaybeComputeUnknownFieldsSize(total_size, + &this_._impl_._cached_size_); + } + +void MiscInfoFile::MergeImpl(::google::protobuf::MessageLite& to_msg, const ::google::protobuf::MessageLite& from_msg) { auto* const _this = static_cast(&to_msg); auto& from = static_cast(from_msg); + ::google::protobuf::Arena* arena = _this->GetArena(); // @@protoc_insertion_point(class_specific_merge_from_start:Odb.Lib.Protobuf.MiscInfoFile) - GOOGLE_DCHECK_NE(&from, _this); - uint32_t cached_has_bits = 0; + ABSL_DCHECK_NE(&from, _this); + ::uint32_t cached_has_bits = 0; (void) cached_has_bits; cached_has_bits = from._impl_._has_bits_[0]; @@ -802,19 +701,29 @@ void MiscInfoFile::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::P } if (cached_has_bits & 0x00000700u) { if (cached_has_bits & 0x00000100u) { - _this->_internal_mutable_creationdatedate()->::PROTOBUF_NAMESPACE_ID::Timestamp::MergeFrom( - from._internal_creationdatedate()); + ABSL_DCHECK(from._impl_.creationdatedate_ != nullptr); + if (_this->_impl_.creationdatedate_ == nullptr) { + _this->_impl_.creationdatedate_ = + ::google::protobuf::Message::CopyConstruct<::google::protobuf::Timestamp>(arena, *from._impl_.creationdatedate_); + } else { + _this->_impl_.creationdatedate_->MergeFrom(*from._impl_.creationdatedate_); + } } if (cached_has_bits & 0x00000200u) { - _this->_internal_mutable_savedate()->::PROTOBUF_NAMESPACE_ID::Timestamp::MergeFrom( - from._internal_savedate()); + ABSL_DCHECK(from._impl_.savedate_ != nullptr); + if (_this->_impl_.savedate_ == nullptr) { + _this->_impl_.savedate_ = + ::google::protobuf::Message::CopyConstruct<::google::protobuf::Timestamp>(arena, *from._impl_.savedate_); + } else { + _this->_impl_.savedate_->MergeFrom(*from._impl_.savedate_); + } } if (cached_has_bits & 0x00000400u) { _this->_impl_.maxuniqueid_ = from._impl_.maxuniqueid_; } - _this->_impl_._has_bits_[0] |= cached_has_bits; } - _this->_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); + _this->_impl_._has_bits_[0] |= cached_has_bits; + _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); } void MiscInfoFile::CopyFrom(const MiscInfoFile& from) { @@ -824,49 +733,22 @@ void MiscInfoFile::CopyFrom(const MiscInfoFile& from) { MergeFrom(from); } -bool MiscInfoFile::IsInitialized() const { - return true; -} -void MiscInfoFile::InternalSwap(MiscInfoFile* other) { +void MiscInfoFile::InternalSwap(MiscInfoFile* PROTOBUF_RESTRICT other) { using std::swap; - auto* lhs_arena = GetArenaForAllocation(); - auto* rhs_arena = other->GetArenaForAllocation(); + auto* arena = GetArena(); + ABSL_DCHECK_EQ(arena, other->GetArena()); _internal_metadata_.InternalSwap(&other->_internal_metadata_); swap(_impl_._has_bits_[0], other->_impl_._has_bits_[0]); - ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( - &_impl_.productmodelname_, lhs_arena, - &other->_impl_.productmodelname_, rhs_arena - ); - ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( - &_impl_.jobname_, lhs_arena, - &other->_impl_.jobname_, rhs_arena - ); - ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( - &_impl_.odbversionmajor_, lhs_arena, - &other->_impl_.odbversionmajor_, rhs_arena - ); - ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( - &_impl_.odbversionminor_, lhs_arena, - &other->_impl_.odbversionminor_, rhs_arena - ); - ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( - &_impl_.odbsource_, lhs_arena, - &other->_impl_.odbsource_, rhs_arena - ); - ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( - &_impl_.saveapp_, lhs_arena, - &other->_impl_.saveapp_, rhs_arena - ); - ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( - &_impl_.saveuser_, lhs_arena, - &other->_impl_.saveuser_, rhs_arena - ); - ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( - &_impl_.units_, lhs_arena, - &other->_impl_.units_, rhs_arena - ); - ::PROTOBUF_NAMESPACE_ID::internal::memswap< + ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.productmodelname_, &other->_impl_.productmodelname_, arena); + ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.jobname_, &other->_impl_.jobname_, arena); + ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.odbversionmajor_, &other->_impl_.odbversionmajor_, arena); + ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.odbversionminor_, &other->_impl_.odbversionminor_, arena); + ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.odbsource_, &other->_impl_.odbsource_, arena); + ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.saveapp_, &other->_impl_.saveapp_, arena); + ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.saveuser_, &other->_impl_.saveuser_, arena); + ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.units_, &other->_impl_.units_, arena); + ::google::protobuf::internal::memswap< PROTOBUF_FIELD_OFFSET(MiscInfoFile, _impl_.maxuniqueid_) + sizeof(MiscInfoFile::_impl_.maxuniqueid_) - PROTOBUF_FIELD_OFFSET(MiscInfoFile, _impl_.creationdatedate_)>( @@ -874,22 +756,20 @@ void MiscInfoFile::InternalSwap(MiscInfoFile* other) { reinterpret_cast(&other->_impl_.creationdatedate_)); } -::PROTOBUF_NAMESPACE_ID::Metadata MiscInfoFile::GetMetadata() const { - return ::_pbi::AssignDescriptors( - &descriptor_table_miscinfofile_2eproto_getter, &descriptor_table_miscinfofile_2eproto_once, - file_level_metadata_miscinfofile_2eproto[0]); +::google::protobuf::Metadata MiscInfoFile::GetMetadata() const { + return ::google::protobuf::Message::GetMetadataImpl(GetClassData()->full()); } - // @@protoc_insertion_point(namespace_scope) } // namespace Protobuf } // namespace Lib } // namespace Odb -PROTOBUF_NAMESPACE_OPEN -template<> PROTOBUF_NOINLINE ::Odb::Lib::Protobuf::MiscInfoFile* -Arena::CreateMaybeMessage< ::Odb::Lib::Protobuf::MiscInfoFile >(Arena* arena) { - return Arena::CreateMessageInternal< ::Odb::Lib::Protobuf::MiscInfoFile >(arena); -} -PROTOBUF_NAMESPACE_CLOSE - +namespace google { +namespace protobuf { +} // namespace protobuf +} // namespace google // @@protoc_insertion_point(global_scope) -#include +PROTOBUF_ATTRIBUTE_INIT_PRIORITY2 static ::std::false_type + _static_init2_ PROTOBUF_UNUSED = + (::_pbi::AddDescriptors(&descriptor_table_miscinfofile_2eproto), + ::std::false_type{}); +#include "google/protobuf/port_undef.inc" diff --git a/OdbDesignLib/ProtoBuf/miscinfofile.pb.h b/OdbDesignLib/ProtoBuf/miscinfofile.pb.h index 9ea58109..3620ea76 100644 --- a/OdbDesignLib/ProtoBuf/miscinfofile.pb.h +++ b/OdbDesignLib/ProtoBuf/miscinfofile.pb.h @@ -1,50 +1,57 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE // source: miscinfofile.proto +// Protobuf C++ Version: 5.29.2 -#ifndef GOOGLE_PROTOBUF_INCLUDED_miscinfofile_2eproto -#define GOOGLE_PROTOBUF_INCLUDED_miscinfofile_2eproto +#ifndef miscinfofile_2eproto_2epb_2eh +#define miscinfofile_2eproto_2epb_2eh #include #include +#include +#include -#include -#if PROTOBUF_VERSION < 3021000 -#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. +#include "google/protobuf/runtime_version.h" +#if PROTOBUF_VERSION != 5029002 +#error "Protobuf C++ gencode is built with an incompatible version of" +#error "Protobuf C++ headers/runtime. See" +#error "https://protobuf.dev/support/cross-version-runtime-guarantee/#cpp" #endif -#if 3021012 < 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 -#include -#include -#include -#include -#include -#include -#include -#include // IWYU pragma: export -#include // IWYU pragma: export -#include -#include +#include "google/protobuf/io/coded_stream.h" +#include "google/protobuf/arena.h" +#include "google/protobuf/arenastring.h" +#include "google/protobuf/generated_message_tctable_decl.h" +#include "google/protobuf/generated_message_util.h" +#include "google/protobuf/metadata_lite.h" +#include "google/protobuf/generated_message_reflection.h" +#include "google/protobuf/message.h" +#include "google/protobuf/message_lite.h" +#include "google/protobuf/repeated_field.h" // IWYU pragma: export +#include "google/protobuf/extension_set.h" // IWYU pragma: export +#include "google/protobuf/unknown_field_set.h" +#include "google/protobuf/timestamp.pb.h" // @@protoc_insertion_point(includes) -#include + +// Must be included last. +#include "google/protobuf/port_def.inc" + #define PROTOBUF_INTERNAL_EXPORT_miscinfofile_2eproto ODBDESIGN_EXPORT -PROTOBUF_NAMESPACE_OPEN + +namespace google { +namespace protobuf { namespace internal { -class AnyMetadata; +template +::absl::string_view GetAnyMessageName(); } // namespace internal -PROTOBUF_NAMESPACE_CLOSE +} // namespace protobuf +} // namespace google // Internal implementation detail -- do not use these members. struct ODBDESIGN_EXPORT TableStruct_miscinfofile_2eproto { - static const uint32_t offsets[]; + static const ::uint32_t offsets[]; }; -ODBDESIGN_EXPORT extern const ::PROTOBUF_NAMESPACE_ID::internal::DescriptorTable descriptor_table_miscinfofile_2eproto; +ODBDESIGN_EXPORT extern const ::google::protobuf::internal::DescriptorTable + descriptor_table_miscinfofile_2eproto; namespace Odb { namespace Lib { namespace Protobuf { @@ -54,39 +61,47 @@ ODBDESIGN_EXPORT extern MiscInfoFileDefaultTypeInternal _MiscInfoFile_default_in } // namespace Protobuf } // namespace Lib } // namespace Odb -PROTOBUF_NAMESPACE_OPEN -template<> ODBDESIGN_EXPORT ::Odb::Lib::Protobuf::MiscInfoFile* Arena::CreateMaybeMessage<::Odb::Lib::Protobuf::MiscInfoFile>(Arena*); -PROTOBUF_NAMESPACE_CLOSE +namespace google { +namespace protobuf { +} // namespace protobuf +} // namespace google + namespace Odb { namespace Lib { namespace Protobuf { // =================================================================== -class ODBDESIGN_EXPORT MiscInfoFile final : - public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:Odb.Lib.Protobuf.MiscInfoFile) */ { + +// ------------------------------------------------------------------- + +class ODBDESIGN_EXPORT MiscInfoFile final : public ::google::protobuf::Message +/* @@protoc_insertion_point(class_definition:Odb.Lib.Protobuf.MiscInfoFile) */ { public: inline MiscInfoFile() : MiscInfoFile(nullptr) {} - ~MiscInfoFile() override; - explicit PROTOBUF_CONSTEXPR MiscInfoFile(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); + ~MiscInfoFile() PROTOBUF_FINAL; - MiscInfoFile(const MiscInfoFile& from); - MiscInfoFile(MiscInfoFile&& from) noexcept - : MiscInfoFile() { - *this = ::std::move(from); +#if defined(PROTOBUF_CUSTOM_VTABLE) + void operator delete(MiscInfoFile* msg, std::destroying_delete_t) { + SharedDtor(*msg); + ::google::protobuf::internal::SizedDelete(msg, sizeof(MiscInfoFile)); } +#endif + + template + explicit PROTOBUF_CONSTEXPR MiscInfoFile( + ::google::protobuf::internal::ConstantInitialized); + inline MiscInfoFile(const MiscInfoFile& from) : MiscInfoFile(nullptr, from) {} + inline MiscInfoFile(MiscInfoFile&& from) noexcept + : MiscInfoFile(nullptr, std::move(from)) {} inline MiscInfoFile& operator=(const MiscInfoFile& from) { CopyFrom(from); return *this; } inline MiscInfoFile& operator=(MiscInfoFile&& from) noexcept { if (this == &from) return *this; - if (GetOwningArena() == from.GetOwningArena() - #ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetOwningArena() != nullptr - #endif // !PROTOBUF_FORCE_COPY_IN_MOVE - ) { + if (::google::protobuf::internal::CanMoveWithInternalSwap(GetArena(), from.GetArena())) { InternalSwap(&from); } else { CopyFrom(from); @@ -94,13 +109,22 @@ class ODBDESIGN_EXPORT MiscInfoFile final : return *this; } - static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { + inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const + ABSL_ATTRIBUTE_LIFETIME_BOUND { + return _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance); + } + inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() + ABSL_ATTRIBUTE_LIFETIME_BOUND { + return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); + } + + static const ::google::protobuf::Descriptor* descriptor() { return GetDescriptor(); } - static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { + static const ::google::protobuf::Descriptor* GetDescriptor() { return default_instance().GetMetadata().descriptor; } - static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { + static const ::google::protobuf::Reflection* GetReflection() { return default_instance().GetMetadata().reflection; } static const MiscInfoFile& default_instance() { @@ -108,81 +132,94 @@ class ODBDESIGN_EXPORT MiscInfoFile final : } static inline const MiscInfoFile* internal_default_instance() { return reinterpret_cast( - &_MiscInfoFile_default_instance_); - } - static constexpr int kIndexInFileMessages = - 0; - - friend void swap(MiscInfoFile& a, MiscInfoFile& b) { - a.Swap(&b); + &_MiscInfoFile_default_instance_); } + static constexpr int kIndexInFileMessages = 0; + friend void swap(MiscInfoFile& a, MiscInfoFile& b) { a.Swap(&b); } inline void Swap(MiscInfoFile* other) { if (other == this) return; - #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetOwningArena() != nullptr && - GetOwningArena() == other->GetOwningArena()) { - #else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetOwningArena() == other->GetOwningArena()) { - #endif // !PROTOBUF_FORCE_COPY_IN_SWAP + if (::google::protobuf::internal::CanUseInternalSwap(GetArena(), other->GetArena())) { InternalSwap(other); } else { - ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); + ::google::protobuf::internal::GenericSwap(this, other); } } void UnsafeArenaSwap(MiscInfoFile* other) { if (other == this) return; - GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); + ABSL_DCHECK(GetArena() == other->GetArena()); InternalSwap(other); } // implements Message ---------------------------------------------- - MiscInfoFile* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); + MiscInfoFile* New(::google::protobuf::Arena* arena = nullptr) const { + return ::google::protobuf::Message::DefaultConstruct(arena); } - using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; + using ::google::protobuf::Message::CopyFrom; void CopyFrom(const MiscInfoFile& from); - using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; - void MergeFrom( const MiscInfoFile& from) { - MiscInfoFile::MergeImpl(*this, from); - } + using ::google::protobuf::Message::MergeFrom; + void MergeFrom(const MiscInfoFile& from) { MiscInfoFile::MergeImpl(*this, from); } + private: - static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg); + static void MergeImpl( + ::google::protobuf::MessageLite& to_msg, + const ::google::protobuf::MessageLite& from_msg); + public: - PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; - bool IsInitialized() const final; + bool IsInitialized() const { + return true; + } + ABSL_ATTRIBUTE_REINITIALIZES void Clear() PROTOBUF_FINAL; + #if defined(PROTOBUF_CUSTOM_VTABLE) + private: + static ::size_t ByteSizeLong(const ::google::protobuf::MessageLite& msg); + static ::uint8_t* _InternalSerialize( + const MessageLite& msg, ::uint8_t* target, + ::google::protobuf::io::EpsCopyOutputStream* stream); - size_t ByteSizeLong() const final; - const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final; - uint8_t* _InternalSerialize( - uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const final { return _impl_._cached_size_.Get(); } + public: + ::size_t ByteSizeLong() const { return ByteSizeLong(*this); } + ::uint8_t* _InternalSerialize( + ::uint8_t* target, + ::google::protobuf::io::EpsCopyOutputStream* stream) const { + return _InternalSerialize(*this, target, stream); + } + #else // PROTOBUF_CUSTOM_VTABLE + ::size_t ByteSizeLong() const final; + ::uint8_t* _InternalSerialize( + ::uint8_t* target, + ::google::protobuf::io::EpsCopyOutputStream* stream) const final; + #endif // PROTOBUF_CUSTOM_VTABLE + int GetCachedSize() const { return _impl_._cached_size_.Get(); } private: - void SharedCtor(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned); - void SharedDtor(); - void SetCachedSize(int size) const final; + void SharedCtor(::google::protobuf::Arena* arena); + static void SharedDtor(MessageLite& self); void InternalSwap(MiscInfoFile* other); + private: + template + friend ::absl::string_view( + ::google::protobuf::internal::GetAnyMessageName)(); + static ::absl::string_view FullMessageName() { return "Odb.Lib.Protobuf.MiscInfoFile"; } - private: - friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; - static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { - return "Odb.Lib.Protobuf.MiscInfoFile"; + protected: + explicit MiscInfoFile(::google::protobuf::Arena* arena); + MiscInfoFile(::google::protobuf::Arena* arena, const MiscInfoFile& from); + MiscInfoFile(::google::protobuf::Arena* arena, MiscInfoFile&& from) noexcept + : MiscInfoFile(arena) { + *this = ::std::move(from); } - protected: - explicit MiscInfoFile(::PROTOBUF_NAMESPACE_ID::Arena* arena, - bool is_message_owned = false); - public: - - static const ClassData _class_data_; - const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final; - - ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; + const ::google::protobuf::internal::ClassData* GetClassData() const PROTOBUF_FINAL; + static void* PlacementNew_(const void*, void* mem, + ::google::protobuf::Arena* arena); + static constexpr auto InternalNewImpl_(); + static const ::google::protobuf::internal::ClassDataFull _class_data_; + public: + ::google::protobuf::Metadata GetMetadata() const; // nested types ---------------------------------------------------- // accessors ------------------------------------------------------- - enum : int { kProductModelNameFieldNumber = 1, kJobNameFieldNumber = 2, @@ -198,990 +235,1013 @@ class ODBDESIGN_EXPORT MiscInfoFile final : }; // optional string productModelName = 1; bool has_productmodelname() const; - private: - bool _internal_has_productmodelname() const; - public: - void clear_productmodelname(); + void clear_productmodelname() ; const std::string& productmodelname() const; - template - void set_productmodelname(ArgT0&& arg0, ArgT... args); + template + void set_productmodelname(Arg_&& arg, Args_... args); std::string* mutable_productmodelname(); PROTOBUF_NODISCARD std::string* release_productmodelname(); - void set_allocated_productmodelname(std::string* productmodelname); + void set_allocated_productmodelname(std::string* value); + private: const std::string& _internal_productmodelname() const; - inline PROTOBUF_ALWAYS_INLINE void _internal_set_productmodelname(const std::string& value); + inline PROTOBUF_ALWAYS_INLINE void _internal_set_productmodelname( + const std::string& value); std::string* _internal_mutable_productmodelname(); - public: + public: // optional string jobName = 2; bool has_jobname() const; - private: - bool _internal_has_jobname() const; - public: - void clear_jobname(); + void clear_jobname() ; const std::string& jobname() const; - template - void set_jobname(ArgT0&& arg0, ArgT... args); + template + void set_jobname(Arg_&& arg, Args_... args); std::string* mutable_jobname(); PROTOBUF_NODISCARD std::string* release_jobname(); - void set_allocated_jobname(std::string* jobname); + void set_allocated_jobname(std::string* value); + private: const std::string& _internal_jobname() const; - inline PROTOBUF_ALWAYS_INLINE void _internal_set_jobname(const std::string& value); + inline PROTOBUF_ALWAYS_INLINE void _internal_set_jobname( + const std::string& value); std::string* _internal_mutable_jobname(); - public: + public: // optional string odbVersionMajor = 3; bool has_odbversionmajor() const; - private: - bool _internal_has_odbversionmajor() const; - public: - void clear_odbversionmajor(); + void clear_odbversionmajor() ; const std::string& odbversionmajor() const; - template - void set_odbversionmajor(ArgT0&& arg0, ArgT... args); + template + void set_odbversionmajor(Arg_&& arg, Args_... args); std::string* mutable_odbversionmajor(); PROTOBUF_NODISCARD std::string* release_odbversionmajor(); - void set_allocated_odbversionmajor(std::string* odbversionmajor); + void set_allocated_odbversionmajor(std::string* value); + private: const std::string& _internal_odbversionmajor() const; - inline PROTOBUF_ALWAYS_INLINE void _internal_set_odbversionmajor(const std::string& value); + inline PROTOBUF_ALWAYS_INLINE void _internal_set_odbversionmajor( + const std::string& value); std::string* _internal_mutable_odbversionmajor(); - public: + public: // optional string odbVersionMinor = 4; bool has_odbversionminor() const; - private: - bool _internal_has_odbversionminor() const; - public: - void clear_odbversionminor(); + void clear_odbversionminor() ; const std::string& odbversionminor() const; - template - void set_odbversionminor(ArgT0&& arg0, ArgT... args); + template + void set_odbversionminor(Arg_&& arg, Args_... args); std::string* mutable_odbversionminor(); PROTOBUF_NODISCARD std::string* release_odbversionminor(); - void set_allocated_odbversionminor(std::string* odbversionminor); + void set_allocated_odbversionminor(std::string* value); + private: const std::string& _internal_odbversionminor() const; - inline PROTOBUF_ALWAYS_INLINE void _internal_set_odbversionminor(const std::string& value); + inline PROTOBUF_ALWAYS_INLINE void _internal_set_odbversionminor( + const std::string& value); std::string* _internal_mutable_odbversionminor(); - public: + public: // optional string odbSource = 5; bool has_odbsource() const; - private: - bool _internal_has_odbsource() const; - public: - void clear_odbsource(); + void clear_odbsource() ; const std::string& odbsource() const; - template - void set_odbsource(ArgT0&& arg0, ArgT... args); + template + void set_odbsource(Arg_&& arg, Args_... args); std::string* mutable_odbsource(); PROTOBUF_NODISCARD std::string* release_odbsource(); - void set_allocated_odbsource(std::string* odbsource); + void set_allocated_odbsource(std::string* value); + private: const std::string& _internal_odbsource() const; - inline PROTOBUF_ALWAYS_INLINE void _internal_set_odbsource(const std::string& value); + inline PROTOBUF_ALWAYS_INLINE void _internal_set_odbsource( + const std::string& value); std::string* _internal_mutable_odbsource(); - public: + public: // optional string saveApp = 8; bool has_saveapp() const; - private: - bool _internal_has_saveapp() const; - public: - void clear_saveapp(); + void clear_saveapp() ; const std::string& saveapp() const; - template - void set_saveapp(ArgT0&& arg0, ArgT... args); + template + void set_saveapp(Arg_&& arg, Args_... args); std::string* mutable_saveapp(); PROTOBUF_NODISCARD std::string* release_saveapp(); - void set_allocated_saveapp(std::string* saveapp); + void set_allocated_saveapp(std::string* value); + private: const std::string& _internal_saveapp() const; - inline PROTOBUF_ALWAYS_INLINE void _internal_set_saveapp(const std::string& value); + inline PROTOBUF_ALWAYS_INLINE void _internal_set_saveapp( + const std::string& value); std::string* _internal_mutable_saveapp(); - public: + public: // optional string saveUser = 9; bool has_saveuser() const; - private: - bool _internal_has_saveuser() const; - public: - void clear_saveuser(); + void clear_saveuser() ; const std::string& saveuser() const; - template - void set_saveuser(ArgT0&& arg0, ArgT... args); + template + void set_saveuser(Arg_&& arg, Args_... args); std::string* mutable_saveuser(); PROTOBUF_NODISCARD std::string* release_saveuser(); - void set_allocated_saveuser(std::string* saveuser); + void set_allocated_saveuser(std::string* value); + private: const std::string& _internal_saveuser() const; - inline PROTOBUF_ALWAYS_INLINE void _internal_set_saveuser(const std::string& value); + inline PROTOBUF_ALWAYS_INLINE void _internal_set_saveuser( + const std::string& value); std::string* _internal_mutable_saveuser(); - public: + public: // optional string units = 10; bool has_units() const; - private: - bool _internal_has_units() const; - public: - void clear_units(); + void clear_units() ; const std::string& units() const; - template - void set_units(ArgT0&& arg0, ArgT... args); + template + void set_units(Arg_&& arg, Args_... args); std::string* mutable_units(); PROTOBUF_NODISCARD std::string* release_units(); - void set_allocated_units(std::string* units); + void set_allocated_units(std::string* value); + private: const std::string& _internal_units() const; - inline PROTOBUF_ALWAYS_INLINE void _internal_set_units(const std::string& value); + inline PROTOBUF_ALWAYS_INLINE void _internal_set_units( + const std::string& value); std::string* _internal_mutable_units(); - public: + public: // optional .google.protobuf.Timestamp creationDateDate = 6; bool has_creationdatedate() const; + void clear_creationdatedate() ; + const ::google::protobuf::Timestamp& creationdatedate() const; + PROTOBUF_NODISCARD ::google::protobuf::Timestamp* release_creationdatedate(); + ::google::protobuf::Timestamp* mutable_creationdatedate(); + void set_allocated_creationdatedate(::google::protobuf::Timestamp* value); + void unsafe_arena_set_allocated_creationdatedate(::google::protobuf::Timestamp* value); + ::google::protobuf::Timestamp* unsafe_arena_release_creationdatedate(); + private: - bool _internal_has_creationdatedate() const; - public: - void clear_creationdatedate(); - const ::PROTOBUF_NAMESPACE_ID::Timestamp& creationdatedate() const; - PROTOBUF_NODISCARD ::PROTOBUF_NAMESPACE_ID::Timestamp* release_creationdatedate(); - ::PROTOBUF_NAMESPACE_ID::Timestamp* mutable_creationdatedate(); - void set_allocated_creationdatedate(::PROTOBUF_NAMESPACE_ID::Timestamp* creationdatedate); - private: - const ::PROTOBUF_NAMESPACE_ID::Timestamp& _internal_creationdatedate() const; - ::PROTOBUF_NAMESPACE_ID::Timestamp* _internal_mutable_creationdatedate(); - public: - void unsafe_arena_set_allocated_creationdatedate( - ::PROTOBUF_NAMESPACE_ID::Timestamp* creationdatedate); - ::PROTOBUF_NAMESPACE_ID::Timestamp* unsafe_arena_release_creationdatedate(); + const ::google::protobuf::Timestamp& _internal_creationdatedate() const; + ::google::protobuf::Timestamp* _internal_mutable_creationdatedate(); + public: // optional .google.protobuf.Timestamp saveDate = 7; bool has_savedate() const; + void clear_savedate() ; + const ::google::protobuf::Timestamp& savedate() const; + PROTOBUF_NODISCARD ::google::protobuf::Timestamp* release_savedate(); + ::google::protobuf::Timestamp* mutable_savedate(); + void set_allocated_savedate(::google::protobuf::Timestamp* value); + void unsafe_arena_set_allocated_savedate(::google::protobuf::Timestamp* value); + ::google::protobuf::Timestamp* unsafe_arena_release_savedate(); + private: - bool _internal_has_savedate() const; - public: - void clear_savedate(); - const ::PROTOBUF_NAMESPACE_ID::Timestamp& savedate() const; - PROTOBUF_NODISCARD ::PROTOBUF_NAMESPACE_ID::Timestamp* release_savedate(); - ::PROTOBUF_NAMESPACE_ID::Timestamp* mutable_savedate(); - void set_allocated_savedate(::PROTOBUF_NAMESPACE_ID::Timestamp* savedate); - private: - const ::PROTOBUF_NAMESPACE_ID::Timestamp& _internal_savedate() const; - ::PROTOBUF_NAMESPACE_ID::Timestamp* _internal_mutable_savedate(); - public: - void unsafe_arena_set_allocated_savedate( - ::PROTOBUF_NAMESPACE_ID::Timestamp* savedate); - ::PROTOBUF_NAMESPACE_ID::Timestamp* unsafe_arena_release_savedate(); + const ::google::protobuf::Timestamp& _internal_savedate() const; + ::google::protobuf::Timestamp* _internal_mutable_savedate(); + public: // optional uint32 maxUniqueId = 11; bool has_maxuniqueid() const; + void clear_maxuniqueid() ; + ::uint32_t maxuniqueid() const; + void set_maxuniqueid(::uint32_t value); + private: - bool _internal_has_maxuniqueid() const; - public: - void clear_maxuniqueid(); - uint32_t maxuniqueid() const; - void set_maxuniqueid(uint32_t value); - private: - uint32_t _internal_maxuniqueid() const; - void _internal_set_maxuniqueid(uint32_t value); - public: + ::uint32_t _internal_maxuniqueid() const; + void _internal_set_maxuniqueid(::uint32_t value); + public: // @@protoc_insertion_point(class_scope:Odb.Lib.Protobuf.MiscInfoFile) private: class _Internal; + friend class ::google::protobuf::internal::TcParser; + static const ::google::protobuf::internal::TcParseTable< + 4, 11, 2, + 128, 2> + _table_; - template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; - typedef void InternalArenaConstructable_; - typedef void DestructorSkippable_; + friend class ::google::protobuf::MessageLite; + friend class ::google::protobuf::Arena; + template + friend class ::google::protobuf::Arena::InternalHelper; + using InternalArenaConstructable_ = void; + using DestructorSkippable_ = void; struct Impl_ { - ::PROTOBUF_NAMESPACE_ID::internal::HasBits<1> _has_bits_; - mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; - ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr productmodelname_; - ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr jobname_; - ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr odbversionmajor_; - ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr odbversionminor_; - ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr odbsource_; - ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr saveapp_; - ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr saveuser_; - ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr units_; - ::PROTOBUF_NAMESPACE_ID::Timestamp* creationdatedate_; - ::PROTOBUF_NAMESPACE_ID::Timestamp* savedate_; - uint32_t maxuniqueid_; + inline explicit constexpr Impl_( + ::google::protobuf::internal::ConstantInitialized) noexcept; + inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* arena); + inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* arena, const Impl_& from, + const MiscInfoFile& from_msg); + ::google::protobuf::internal::HasBits<1> _has_bits_; + ::google::protobuf::internal::CachedSize _cached_size_; + ::google::protobuf::internal::ArenaStringPtr productmodelname_; + ::google::protobuf::internal::ArenaStringPtr jobname_; + ::google::protobuf::internal::ArenaStringPtr odbversionmajor_; + ::google::protobuf::internal::ArenaStringPtr odbversionminor_; + ::google::protobuf::internal::ArenaStringPtr odbsource_; + ::google::protobuf::internal::ArenaStringPtr saveapp_; + ::google::protobuf::internal::ArenaStringPtr saveuser_; + ::google::protobuf::internal::ArenaStringPtr units_; + ::google::protobuf::Timestamp* creationdatedate_; + ::google::protobuf::Timestamp* savedate_; + ::uint32_t maxuniqueid_; + PROTOBUF_TSAN_DECLARE_MEMBER }; union { Impl_ _impl_; }; friend struct ::TableStruct_miscinfofile_2eproto; }; + // =================================================================== + + // =================================================================== + #ifdef __GNUC__ - #pragma GCC diagnostic push - #pragma GCC diagnostic ignored "-Wstrict-aliasing" +#pragma GCC diagnostic push +#pragma GCC diagnostic ignored "-Wstrict-aliasing" #endif // __GNUC__ +// ------------------------------------------------------------------- + // MiscInfoFile // optional string productModelName = 1; -inline bool MiscInfoFile::_internal_has_productmodelname() const { +inline bool MiscInfoFile::has_productmodelname() const { bool value = (_impl_._has_bits_[0] & 0x00000001u) != 0; return value; } -inline bool MiscInfoFile::has_productmodelname() const { - return _internal_has_productmodelname(); -} inline void MiscInfoFile::clear_productmodelname() { + ::google::protobuf::internal::TSanWrite(&_impl_); _impl_.productmodelname_.ClearToEmpty(); _impl_._has_bits_[0] &= ~0x00000001u; } -inline const std::string& MiscInfoFile::productmodelname() const { +inline const std::string& MiscInfoFile::productmodelname() const + ABSL_ATTRIBUTE_LIFETIME_BOUND { // @@protoc_insertion_point(field_get:Odb.Lib.Protobuf.MiscInfoFile.productModelName) return _internal_productmodelname(); } -template -inline PROTOBUF_ALWAYS_INLINE -void MiscInfoFile::set_productmodelname(ArgT0&& arg0, ArgT... args) { - _impl_._has_bits_[0] |= 0x00000001u; - _impl_.productmodelname_.Set(static_cast(arg0), args..., GetArenaForAllocation()); +template +inline PROTOBUF_ALWAYS_INLINE void MiscInfoFile::set_productmodelname(Arg_&& arg, + Args_... args) { + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_._has_bits_[0] |= 0x00000001u; + _impl_.productmodelname_.Set(static_cast(arg), args..., GetArena()); // @@protoc_insertion_point(field_set:Odb.Lib.Protobuf.MiscInfoFile.productModelName) } -inline std::string* MiscInfoFile::mutable_productmodelname() { +inline std::string* MiscInfoFile::mutable_productmodelname() ABSL_ATTRIBUTE_LIFETIME_BOUND { std::string* _s = _internal_mutable_productmodelname(); // @@protoc_insertion_point(field_mutable:Odb.Lib.Protobuf.MiscInfoFile.productModelName) return _s; } inline const std::string& MiscInfoFile::_internal_productmodelname() const { + ::google::protobuf::internal::TSanRead(&_impl_); return _impl_.productmodelname_.Get(); } inline void MiscInfoFile::_internal_set_productmodelname(const std::string& value) { + ::google::protobuf::internal::TSanWrite(&_impl_); _impl_._has_bits_[0] |= 0x00000001u; - _impl_.productmodelname_.Set(value, GetArenaForAllocation()); + _impl_.productmodelname_.Set(value, GetArena()); } inline std::string* MiscInfoFile::_internal_mutable_productmodelname() { + ::google::protobuf::internal::TSanWrite(&_impl_); _impl_._has_bits_[0] |= 0x00000001u; - return _impl_.productmodelname_.Mutable(GetArenaForAllocation()); + return _impl_.productmodelname_.Mutable( GetArena()); } inline std::string* MiscInfoFile::release_productmodelname() { + ::google::protobuf::internal::TSanWrite(&_impl_); // @@protoc_insertion_point(field_release:Odb.Lib.Protobuf.MiscInfoFile.productModelName) - if (!_internal_has_productmodelname()) { + if ((_impl_._has_bits_[0] & 0x00000001u) == 0) { return nullptr; } _impl_._has_bits_[0] &= ~0x00000001u; - auto* p = _impl_.productmodelname_.Release(); -#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (_impl_.productmodelname_.IsDefault()) { - _impl_.productmodelname_.Set("", GetArenaForAllocation()); + auto* released = _impl_.productmodelname_.Release(); + if (::google::protobuf::internal::DebugHardenForceCopyDefaultString()) { + _impl_.productmodelname_.Set("", GetArena()); } -#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING - return p; + return released; } -inline void MiscInfoFile::set_allocated_productmodelname(std::string* productmodelname) { - if (productmodelname != nullptr) { +inline void MiscInfoFile::set_allocated_productmodelname(std::string* value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + if (value != nullptr) { _impl_._has_bits_[0] |= 0x00000001u; } else { _impl_._has_bits_[0] &= ~0x00000001u; } - _impl_.productmodelname_.SetAllocated(productmodelname, GetArenaForAllocation()); -#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (_impl_.productmodelname_.IsDefault()) { - _impl_.productmodelname_.Set("", GetArenaForAllocation()); + _impl_.productmodelname_.SetAllocated(value, GetArena()); + if (::google::protobuf::internal::DebugHardenForceCopyDefaultString() && _impl_.productmodelname_.IsDefault()) { + _impl_.productmodelname_.Set("", GetArena()); } -#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING // @@protoc_insertion_point(field_set_allocated:Odb.Lib.Protobuf.MiscInfoFile.productModelName) } // optional string jobName = 2; -inline bool MiscInfoFile::_internal_has_jobname() const { +inline bool MiscInfoFile::has_jobname() const { bool value = (_impl_._has_bits_[0] & 0x00000002u) != 0; return value; } -inline bool MiscInfoFile::has_jobname() const { - return _internal_has_jobname(); -} inline void MiscInfoFile::clear_jobname() { + ::google::protobuf::internal::TSanWrite(&_impl_); _impl_.jobname_.ClearToEmpty(); _impl_._has_bits_[0] &= ~0x00000002u; } -inline const std::string& MiscInfoFile::jobname() const { +inline const std::string& MiscInfoFile::jobname() const + ABSL_ATTRIBUTE_LIFETIME_BOUND { // @@protoc_insertion_point(field_get:Odb.Lib.Protobuf.MiscInfoFile.jobName) return _internal_jobname(); } -template -inline PROTOBUF_ALWAYS_INLINE -void MiscInfoFile::set_jobname(ArgT0&& arg0, ArgT... args) { - _impl_._has_bits_[0] |= 0x00000002u; - _impl_.jobname_.Set(static_cast(arg0), args..., GetArenaForAllocation()); +template +inline PROTOBUF_ALWAYS_INLINE void MiscInfoFile::set_jobname(Arg_&& arg, + Args_... args) { + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_._has_bits_[0] |= 0x00000002u; + _impl_.jobname_.Set(static_cast(arg), args..., GetArena()); // @@protoc_insertion_point(field_set:Odb.Lib.Protobuf.MiscInfoFile.jobName) } -inline std::string* MiscInfoFile::mutable_jobname() { +inline std::string* MiscInfoFile::mutable_jobname() ABSL_ATTRIBUTE_LIFETIME_BOUND { std::string* _s = _internal_mutable_jobname(); // @@protoc_insertion_point(field_mutable:Odb.Lib.Protobuf.MiscInfoFile.jobName) return _s; } inline const std::string& MiscInfoFile::_internal_jobname() const { + ::google::protobuf::internal::TSanRead(&_impl_); return _impl_.jobname_.Get(); } inline void MiscInfoFile::_internal_set_jobname(const std::string& value) { + ::google::protobuf::internal::TSanWrite(&_impl_); _impl_._has_bits_[0] |= 0x00000002u; - _impl_.jobname_.Set(value, GetArenaForAllocation()); + _impl_.jobname_.Set(value, GetArena()); } inline std::string* MiscInfoFile::_internal_mutable_jobname() { + ::google::protobuf::internal::TSanWrite(&_impl_); _impl_._has_bits_[0] |= 0x00000002u; - return _impl_.jobname_.Mutable(GetArenaForAllocation()); + return _impl_.jobname_.Mutable( GetArena()); } inline std::string* MiscInfoFile::release_jobname() { + ::google::protobuf::internal::TSanWrite(&_impl_); // @@protoc_insertion_point(field_release:Odb.Lib.Protobuf.MiscInfoFile.jobName) - if (!_internal_has_jobname()) { + if ((_impl_._has_bits_[0] & 0x00000002u) == 0) { return nullptr; } _impl_._has_bits_[0] &= ~0x00000002u; - auto* p = _impl_.jobname_.Release(); -#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (_impl_.jobname_.IsDefault()) { - _impl_.jobname_.Set("", GetArenaForAllocation()); + auto* released = _impl_.jobname_.Release(); + if (::google::protobuf::internal::DebugHardenForceCopyDefaultString()) { + _impl_.jobname_.Set("", GetArena()); } -#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING - return p; + return released; } -inline void MiscInfoFile::set_allocated_jobname(std::string* jobname) { - if (jobname != nullptr) { +inline void MiscInfoFile::set_allocated_jobname(std::string* value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + if (value != nullptr) { _impl_._has_bits_[0] |= 0x00000002u; } else { _impl_._has_bits_[0] &= ~0x00000002u; } - _impl_.jobname_.SetAllocated(jobname, GetArenaForAllocation()); -#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (_impl_.jobname_.IsDefault()) { - _impl_.jobname_.Set("", GetArenaForAllocation()); + _impl_.jobname_.SetAllocated(value, GetArena()); + if (::google::protobuf::internal::DebugHardenForceCopyDefaultString() && _impl_.jobname_.IsDefault()) { + _impl_.jobname_.Set("", GetArena()); } -#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING // @@protoc_insertion_point(field_set_allocated:Odb.Lib.Protobuf.MiscInfoFile.jobName) } // optional string odbVersionMajor = 3; -inline bool MiscInfoFile::_internal_has_odbversionmajor() const { +inline bool MiscInfoFile::has_odbversionmajor() const { bool value = (_impl_._has_bits_[0] & 0x00000004u) != 0; return value; } -inline bool MiscInfoFile::has_odbversionmajor() const { - return _internal_has_odbversionmajor(); -} inline void MiscInfoFile::clear_odbversionmajor() { + ::google::protobuf::internal::TSanWrite(&_impl_); _impl_.odbversionmajor_.ClearToEmpty(); _impl_._has_bits_[0] &= ~0x00000004u; } -inline const std::string& MiscInfoFile::odbversionmajor() const { +inline const std::string& MiscInfoFile::odbversionmajor() const + ABSL_ATTRIBUTE_LIFETIME_BOUND { // @@protoc_insertion_point(field_get:Odb.Lib.Protobuf.MiscInfoFile.odbVersionMajor) return _internal_odbversionmajor(); } -template -inline PROTOBUF_ALWAYS_INLINE -void MiscInfoFile::set_odbversionmajor(ArgT0&& arg0, ArgT... args) { - _impl_._has_bits_[0] |= 0x00000004u; - _impl_.odbversionmajor_.Set(static_cast(arg0), args..., GetArenaForAllocation()); +template +inline PROTOBUF_ALWAYS_INLINE void MiscInfoFile::set_odbversionmajor(Arg_&& arg, + Args_... args) { + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_._has_bits_[0] |= 0x00000004u; + _impl_.odbversionmajor_.Set(static_cast(arg), args..., GetArena()); // @@protoc_insertion_point(field_set:Odb.Lib.Protobuf.MiscInfoFile.odbVersionMajor) } -inline std::string* MiscInfoFile::mutable_odbversionmajor() { +inline std::string* MiscInfoFile::mutable_odbversionmajor() ABSL_ATTRIBUTE_LIFETIME_BOUND { std::string* _s = _internal_mutable_odbversionmajor(); // @@protoc_insertion_point(field_mutable:Odb.Lib.Protobuf.MiscInfoFile.odbVersionMajor) return _s; } inline const std::string& MiscInfoFile::_internal_odbversionmajor() const { + ::google::protobuf::internal::TSanRead(&_impl_); return _impl_.odbversionmajor_.Get(); } inline void MiscInfoFile::_internal_set_odbversionmajor(const std::string& value) { + ::google::protobuf::internal::TSanWrite(&_impl_); _impl_._has_bits_[0] |= 0x00000004u; - _impl_.odbversionmajor_.Set(value, GetArenaForAllocation()); + _impl_.odbversionmajor_.Set(value, GetArena()); } inline std::string* MiscInfoFile::_internal_mutable_odbversionmajor() { + ::google::protobuf::internal::TSanWrite(&_impl_); _impl_._has_bits_[0] |= 0x00000004u; - return _impl_.odbversionmajor_.Mutable(GetArenaForAllocation()); + return _impl_.odbversionmajor_.Mutable( GetArena()); } inline std::string* MiscInfoFile::release_odbversionmajor() { + ::google::protobuf::internal::TSanWrite(&_impl_); // @@protoc_insertion_point(field_release:Odb.Lib.Protobuf.MiscInfoFile.odbVersionMajor) - if (!_internal_has_odbversionmajor()) { + if ((_impl_._has_bits_[0] & 0x00000004u) == 0) { return nullptr; } _impl_._has_bits_[0] &= ~0x00000004u; - auto* p = _impl_.odbversionmajor_.Release(); -#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (_impl_.odbversionmajor_.IsDefault()) { - _impl_.odbversionmajor_.Set("", GetArenaForAllocation()); + auto* released = _impl_.odbversionmajor_.Release(); + if (::google::protobuf::internal::DebugHardenForceCopyDefaultString()) { + _impl_.odbversionmajor_.Set("", GetArena()); } -#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING - return p; + return released; } -inline void MiscInfoFile::set_allocated_odbversionmajor(std::string* odbversionmajor) { - if (odbversionmajor != nullptr) { +inline void MiscInfoFile::set_allocated_odbversionmajor(std::string* value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + if (value != nullptr) { _impl_._has_bits_[0] |= 0x00000004u; } else { _impl_._has_bits_[0] &= ~0x00000004u; } - _impl_.odbversionmajor_.SetAllocated(odbversionmajor, GetArenaForAllocation()); -#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (_impl_.odbversionmajor_.IsDefault()) { - _impl_.odbversionmajor_.Set("", GetArenaForAllocation()); + _impl_.odbversionmajor_.SetAllocated(value, GetArena()); + if (::google::protobuf::internal::DebugHardenForceCopyDefaultString() && _impl_.odbversionmajor_.IsDefault()) { + _impl_.odbversionmajor_.Set("", GetArena()); } -#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING // @@protoc_insertion_point(field_set_allocated:Odb.Lib.Protobuf.MiscInfoFile.odbVersionMajor) } // optional string odbVersionMinor = 4; -inline bool MiscInfoFile::_internal_has_odbversionminor() const { +inline bool MiscInfoFile::has_odbversionminor() const { bool value = (_impl_._has_bits_[0] & 0x00000008u) != 0; return value; } -inline bool MiscInfoFile::has_odbversionminor() const { - return _internal_has_odbversionminor(); -} inline void MiscInfoFile::clear_odbversionminor() { + ::google::protobuf::internal::TSanWrite(&_impl_); _impl_.odbversionminor_.ClearToEmpty(); _impl_._has_bits_[0] &= ~0x00000008u; } -inline const std::string& MiscInfoFile::odbversionminor() const { +inline const std::string& MiscInfoFile::odbversionminor() const + ABSL_ATTRIBUTE_LIFETIME_BOUND { // @@protoc_insertion_point(field_get:Odb.Lib.Protobuf.MiscInfoFile.odbVersionMinor) return _internal_odbversionminor(); } -template -inline PROTOBUF_ALWAYS_INLINE -void MiscInfoFile::set_odbversionminor(ArgT0&& arg0, ArgT... args) { - _impl_._has_bits_[0] |= 0x00000008u; - _impl_.odbversionminor_.Set(static_cast(arg0), args..., GetArenaForAllocation()); +template +inline PROTOBUF_ALWAYS_INLINE void MiscInfoFile::set_odbversionminor(Arg_&& arg, + Args_... args) { + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_._has_bits_[0] |= 0x00000008u; + _impl_.odbversionminor_.Set(static_cast(arg), args..., GetArena()); // @@protoc_insertion_point(field_set:Odb.Lib.Protobuf.MiscInfoFile.odbVersionMinor) } -inline std::string* MiscInfoFile::mutable_odbversionminor() { +inline std::string* MiscInfoFile::mutable_odbversionminor() ABSL_ATTRIBUTE_LIFETIME_BOUND { std::string* _s = _internal_mutable_odbversionminor(); // @@protoc_insertion_point(field_mutable:Odb.Lib.Protobuf.MiscInfoFile.odbVersionMinor) return _s; } inline const std::string& MiscInfoFile::_internal_odbversionminor() const { + ::google::protobuf::internal::TSanRead(&_impl_); return _impl_.odbversionminor_.Get(); } inline void MiscInfoFile::_internal_set_odbversionminor(const std::string& value) { + ::google::protobuf::internal::TSanWrite(&_impl_); _impl_._has_bits_[0] |= 0x00000008u; - _impl_.odbversionminor_.Set(value, GetArenaForAllocation()); + _impl_.odbversionminor_.Set(value, GetArena()); } inline std::string* MiscInfoFile::_internal_mutable_odbversionminor() { + ::google::protobuf::internal::TSanWrite(&_impl_); _impl_._has_bits_[0] |= 0x00000008u; - return _impl_.odbversionminor_.Mutable(GetArenaForAllocation()); + return _impl_.odbversionminor_.Mutable( GetArena()); } inline std::string* MiscInfoFile::release_odbversionminor() { + ::google::protobuf::internal::TSanWrite(&_impl_); // @@protoc_insertion_point(field_release:Odb.Lib.Protobuf.MiscInfoFile.odbVersionMinor) - if (!_internal_has_odbversionminor()) { + if ((_impl_._has_bits_[0] & 0x00000008u) == 0) { return nullptr; } _impl_._has_bits_[0] &= ~0x00000008u; - auto* p = _impl_.odbversionminor_.Release(); -#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (_impl_.odbversionminor_.IsDefault()) { - _impl_.odbversionminor_.Set("", GetArenaForAllocation()); + auto* released = _impl_.odbversionminor_.Release(); + if (::google::protobuf::internal::DebugHardenForceCopyDefaultString()) { + _impl_.odbversionminor_.Set("", GetArena()); } -#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING - return p; + return released; } -inline void MiscInfoFile::set_allocated_odbversionminor(std::string* odbversionminor) { - if (odbversionminor != nullptr) { +inline void MiscInfoFile::set_allocated_odbversionminor(std::string* value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + if (value != nullptr) { _impl_._has_bits_[0] |= 0x00000008u; } else { _impl_._has_bits_[0] &= ~0x00000008u; } - _impl_.odbversionminor_.SetAllocated(odbversionminor, GetArenaForAllocation()); -#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (_impl_.odbversionminor_.IsDefault()) { - _impl_.odbversionminor_.Set("", GetArenaForAllocation()); + _impl_.odbversionminor_.SetAllocated(value, GetArena()); + if (::google::protobuf::internal::DebugHardenForceCopyDefaultString() && _impl_.odbversionminor_.IsDefault()) { + _impl_.odbversionminor_.Set("", GetArena()); } -#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING // @@protoc_insertion_point(field_set_allocated:Odb.Lib.Protobuf.MiscInfoFile.odbVersionMinor) } // optional string odbSource = 5; -inline bool MiscInfoFile::_internal_has_odbsource() const { +inline bool MiscInfoFile::has_odbsource() const { bool value = (_impl_._has_bits_[0] & 0x00000010u) != 0; return value; } -inline bool MiscInfoFile::has_odbsource() const { - return _internal_has_odbsource(); -} inline void MiscInfoFile::clear_odbsource() { + ::google::protobuf::internal::TSanWrite(&_impl_); _impl_.odbsource_.ClearToEmpty(); _impl_._has_bits_[0] &= ~0x00000010u; } -inline const std::string& MiscInfoFile::odbsource() const { +inline const std::string& MiscInfoFile::odbsource() const + ABSL_ATTRIBUTE_LIFETIME_BOUND { // @@protoc_insertion_point(field_get:Odb.Lib.Protobuf.MiscInfoFile.odbSource) return _internal_odbsource(); } -template -inline PROTOBUF_ALWAYS_INLINE -void MiscInfoFile::set_odbsource(ArgT0&& arg0, ArgT... args) { - _impl_._has_bits_[0] |= 0x00000010u; - _impl_.odbsource_.Set(static_cast(arg0), args..., GetArenaForAllocation()); +template +inline PROTOBUF_ALWAYS_INLINE void MiscInfoFile::set_odbsource(Arg_&& arg, + Args_... args) { + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_._has_bits_[0] |= 0x00000010u; + _impl_.odbsource_.Set(static_cast(arg), args..., GetArena()); // @@protoc_insertion_point(field_set:Odb.Lib.Protobuf.MiscInfoFile.odbSource) } -inline std::string* MiscInfoFile::mutable_odbsource() { +inline std::string* MiscInfoFile::mutable_odbsource() ABSL_ATTRIBUTE_LIFETIME_BOUND { std::string* _s = _internal_mutable_odbsource(); // @@protoc_insertion_point(field_mutable:Odb.Lib.Protobuf.MiscInfoFile.odbSource) return _s; } inline const std::string& MiscInfoFile::_internal_odbsource() const { + ::google::protobuf::internal::TSanRead(&_impl_); return _impl_.odbsource_.Get(); } inline void MiscInfoFile::_internal_set_odbsource(const std::string& value) { + ::google::protobuf::internal::TSanWrite(&_impl_); _impl_._has_bits_[0] |= 0x00000010u; - _impl_.odbsource_.Set(value, GetArenaForAllocation()); + _impl_.odbsource_.Set(value, GetArena()); } inline std::string* MiscInfoFile::_internal_mutable_odbsource() { + ::google::protobuf::internal::TSanWrite(&_impl_); _impl_._has_bits_[0] |= 0x00000010u; - return _impl_.odbsource_.Mutable(GetArenaForAllocation()); + return _impl_.odbsource_.Mutable( GetArena()); } inline std::string* MiscInfoFile::release_odbsource() { + ::google::protobuf::internal::TSanWrite(&_impl_); // @@protoc_insertion_point(field_release:Odb.Lib.Protobuf.MiscInfoFile.odbSource) - if (!_internal_has_odbsource()) { + if ((_impl_._has_bits_[0] & 0x00000010u) == 0) { return nullptr; } _impl_._has_bits_[0] &= ~0x00000010u; - auto* p = _impl_.odbsource_.Release(); -#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (_impl_.odbsource_.IsDefault()) { - _impl_.odbsource_.Set("", GetArenaForAllocation()); + auto* released = _impl_.odbsource_.Release(); + if (::google::protobuf::internal::DebugHardenForceCopyDefaultString()) { + _impl_.odbsource_.Set("", GetArena()); } -#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING - return p; + return released; } -inline void MiscInfoFile::set_allocated_odbsource(std::string* odbsource) { - if (odbsource != nullptr) { +inline void MiscInfoFile::set_allocated_odbsource(std::string* value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + if (value != nullptr) { _impl_._has_bits_[0] |= 0x00000010u; } else { _impl_._has_bits_[0] &= ~0x00000010u; } - _impl_.odbsource_.SetAllocated(odbsource, GetArenaForAllocation()); -#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (_impl_.odbsource_.IsDefault()) { - _impl_.odbsource_.Set("", GetArenaForAllocation()); + _impl_.odbsource_.SetAllocated(value, GetArena()); + if (::google::protobuf::internal::DebugHardenForceCopyDefaultString() && _impl_.odbsource_.IsDefault()) { + _impl_.odbsource_.Set("", GetArena()); } -#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING // @@protoc_insertion_point(field_set_allocated:Odb.Lib.Protobuf.MiscInfoFile.odbSource) } // optional .google.protobuf.Timestamp creationDateDate = 6; -inline bool MiscInfoFile::_internal_has_creationdatedate() const { +inline bool MiscInfoFile::has_creationdatedate() const { bool value = (_impl_._has_bits_[0] & 0x00000100u) != 0; PROTOBUF_ASSUME(!value || _impl_.creationdatedate_ != nullptr); return value; } -inline bool MiscInfoFile::has_creationdatedate() const { - return _internal_has_creationdatedate(); -} -inline const ::PROTOBUF_NAMESPACE_ID::Timestamp& MiscInfoFile::_internal_creationdatedate() const { - const ::PROTOBUF_NAMESPACE_ID::Timestamp* p = _impl_.creationdatedate_; - return p != nullptr ? *p : reinterpret_cast( - ::PROTOBUF_NAMESPACE_ID::_Timestamp_default_instance_); +inline const ::google::protobuf::Timestamp& MiscInfoFile::_internal_creationdatedate() const { + ::google::protobuf::internal::TSanRead(&_impl_); + const ::google::protobuf::Timestamp* p = _impl_.creationdatedate_; + return p != nullptr ? *p : reinterpret_cast(::google::protobuf::_Timestamp_default_instance_); } -inline const ::PROTOBUF_NAMESPACE_ID::Timestamp& MiscInfoFile::creationdatedate() const { +inline const ::google::protobuf::Timestamp& MiscInfoFile::creationdatedate() const ABSL_ATTRIBUTE_LIFETIME_BOUND { // @@protoc_insertion_point(field_get:Odb.Lib.Protobuf.MiscInfoFile.creationDateDate) return _internal_creationdatedate(); } -inline void MiscInfoFile::unsafe_arena_set_allocated_creationdatedate( - ::PROTOBUF_NAMESPACE_ID::Timestamp* creationdatedate) { - if (GetArenaForAllocation() == nullptr) { - delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(_impl_.creationdatedate_); +inline void MiscInfoFile::unsafe_arena_set_allocated_creationdatedate(::google::protobuf::Timestamp* value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + if (GetArena() == nullptr) { + delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.creationdatedate_); } - _impl_.creationdatedate_ = creationdatedate; - if (creationdatedate) { + _impl_.creationdatedate_ = reinterpret_cast<::google::protobuf::Timestamp*>(value); + if (value != nullptr) { _impl_._has_bits_[0] |= 0x00000100u; } else { _impl_._has_bits_[0] &= ~0x00000100u; } // @@protoc_insertion_point(field_unsafe_arena_set_allocated:Odb.Lib.Protobuf.MiscInfoFile.creationDateDate) } -inline ::PROTOBUF_NAMESPACE_ID::Timestamp* MiscInfoFile::release_creationdatedate() { +inline ::google::protobuf::Timestamp* MiscInfoFile::release_creationdatedate() { + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_._has_bits_[0] &= ~0x00000100u; - ::PROTOBUF_NAMESPACE_ID::Timestamp* temp = _impl_.creationdatedate_; + ::google::protobuf::Timestamp* released = _impl_.creationdatedate_; _impl_.creationdatedate_ = nullptr; -#ifdef PROTOBUF_FORCE_COPY_IN_RELEASE - auto* old = reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(temp); - temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); - if (GetArenaForAllocation() == nullptr) { delete old; } -#else // PROTOBUF_FORCE_COPY_IN_RELEASE - if (GetArenaForAllocation() != nullptr) { - temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); + if (::google::protobuf::internal::DebugHardenForceCopyInRelease()) { + auto* old = reinterpret_cast<::google::protobuf::MessageLite*>(released); + released = ::google::protobuf::internal::DuplicateIfNonNull(released); + if (GetArena() == nullptr) { + delete old; + } + } else { + if (GetArena() != nullptr) { + released = ::google::protobuf::internal::DuplicateIfNonNull(released); + } } -#endif // !PROTOBUF_FORCE_COPY_IN_RELEASE - return temp; + return released; } -inline ::PROTOBUF_NAMESPACE_ID::Timestamp* MiscInfoFile::unsafe_arena_release_creationdatedate() { +inline ::google::protobuf::Timestamp* MiscInfoFile::unsafe_arena_release_creationdatedate() { + ::google::protobuf::internal::TSanWrite(&_impl_); // @@protoc_insertion_point(field_release:Odb.Lib.Protobuf.MiscInfoFile.creationDateDate) + _impl_._has_bits_[0] &= ~0x00000100u; - ::PROTOBUF_NAMESPACE_ID::Timestamp* temp = _impl_.creationdatedate_; + ::google::protobuf::Timestamp* temp = _impl_.creationdatedate_; _impl_.creationdatedate_ = nullptr; return temp; } -inline ::PROTOBUF_NAMESPACE_ID::Timestamp* MiscInfoFile::_internal_mutable_creationdatedate() { - _impl_._has_bits_[0] |= 0x00000100u; +inline ::google::protobuf::Timestamp* MiscInfoFile::_internal_mutable_creationdatedate() { + ::google::protobuf::internal::TSanWrite(&_impl_); if (_impl_.creationdatedate_ == nullptr) { - auto* p = CreateMaybeMessage<::PROTOBUF_NAMESPACE_ID::Timestamp>(GetArenaForAllocation()); - _impl_.creationdatedate_ = p; + auto* p = ::google::protobuf::Message::DefaultConstruct<::google::protobuf::Timestamp>(GetArena()); + _impl_.creationdatedate_ = reinterpret_cast<::google::protobuf::Timestamp*>(p); } return _impl_.creationdatedate_; } -inline ::PROTOBUF_NAMESPACE_ID::Timestamp* MiscInfoFile::mutable_creationdatedate() { - ::PROTOBUF_NAMESPACE_ID::Timestamp* _msg = _internal_mutable_creationdatedate(); +inline ::google::protobuf::Timestamp* MiscInfoFile::mutable_creationdatedate() ABSL_ATTRIBUTE_LIFETIME_BOUND { + _impl_._has_bits_[0] |= 0x00000100u; + ::google::protobuf::Timestamp* _msg = _internal_mutable_creationdatedate(); // @@protoc_insertion_point(field_mutable:Odb.Lib.Protobuf.MiscInfoFile.creationDateDate) return _msg; } -inline void MiscInfoFile::set_allocated_creationdatedate(::PROTOBUF_NAMESPACE_ID::Timestamp* creationdatedate) { - ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); +inline void MiscInfoFile::set_allocated_creationdatedate(::google::protobuf::Timestamp* value) { + ::google::protobuf::Arena* message_arena = GetArena(); + ::google::protobuf::internal::TSanWrite(&_impl_); if (message_arena == nullptr) { - delete reinterpret_cast< ::PROTOBUF_NAMESPACE_ID::MessageLite*>(_impl_.creationdatedate_); + delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.creationdatedate_); } - if (creationdatedate) { - ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = - ::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena( - reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(creationdatedate)); + + if (value != nullptr) { + ::google::protobuf::Arena* submessage_arena = reinterpret_cast<::google::protobuf::MessageLite*>(value)->GetArena(); if (message_arena != submessage_arena) { - creationdatedate = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( - message_arena, creationdatedate, submessage_arena); + value = ::google::protobuf::internal::GetOwnedMessage(message_arena, value, submessage_arena); } _impl_._has_bits_[0] |= 0x00000100u; } else { _impl_._has_bits_[0] &= ~0x00000100u; } - _impl_.creationdatedate_ = creationdatedate; + + _impl_.creationdatedate_ = reinterpret_cast<::google::protobuf::Timestamp*>(value); // @@protoc_insertion_point(field_set_allocated:Odb.Lib.Protobuf.MiscInfoFile.creationDateDate) } // optional .google.protobuf.Timestamp saveDate = 7; -inline bool MiscInfoFile::_internal_has_savedate() const { +inline bool MiscInfoFile::has_savedate() const { bool value = (_impl_._has_bits_[0] & 0x00000200u) != 0; PROTOBUF_ASSUME(!value || _impl_.savedate_ != nullptr); return value; } -inline bool MiscInfoFile::has_savedate() const { - return _internal_has_savedate(); -} -inline const ::PROTOBUF_NAMESPACE_ID::Timestamp& MiscInfoFile::_internal_savedate() const { - const ::PROTOBUF_NAMESPACE_ID::Timestamp* p = _impl_.savedate_; - return p != nullptr ? *p : reinterpret_cast( - ::PROTOBUF_NAMESPACE_ID::_Timestamp_default_instance_); +inline const ::google::protobuf::Timestamp& MiscInfoFile::_internal_savedate() const { + ::google::protobuf::internal::TSanRead(&_impl_); + const ::google::protobuf::Timestamp* p = _impl_.savedate_; + return p != nullptr ? *p : reinterpret_cast(::google::protobuf::_Timestamp_default_instance_); } -inline const ::PROTOBUF_NAMESPACE_ID::Timestamp& MiscInfoFile::savedate() const { +inline const ::google::protobuf::Timestamp& MiscInfoFile::savedate() const ABSL_ATTRIBUTE_LIFETIME_BOUND { // @@protoc_insertion_point(field_get:Odb.Lib.Protobuf.MiscInfoFile.saveDate) return _internal_savedate(); } -inline void MiscInfoFile::unsafe_arena_set_allocated_savedate( - ::PROTOBUF_NAMESPACE_ID::Timestamp* savedate) { - if (GetArenaForAllocation() == nullptr) { - delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(_impl_.savedate_); +inline void MiscInfoFile::unsafe_arena_set_allocated_savedate(::google::protobuf::Timestamp* value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + if (GetArena() == nullptr) { + delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.savedate_); } - _impl_.savedate_ = savedate; - if (savedate) { + _impl_.savedate_ = reinterpret_cast<::google::protobuf::Timestamp*>(value); + if (value != nullptr) { _impl_._has_bits_[0] |= 0x00000200u; } else { _impl_._has_bits_[0] &= ~0x00000200u; } // @@protoc_insertion_point(field_unsafe_arena_set_allocated:Odb.Lib.Protobuf.MiscInfoFile.saveDate) } -inline ::PROTOBUF_NAMESPACE_ID::Timestamp* MiscInfoFile::release_savedate() { +inline ::google::protobuf::Timestamp* MiscInfoFile::release_savedate() { + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_._has_bits_[0] &= ~0x00000200u; - ::PROTOBUF_NAMESPACE_ID::Timestamp* temp = _impl_.savedate_; + ::google::protobuf::Timestamp* released = _impl_.savedate_; _impl_.savedate_ = nullptr; -#ifdef PROTOBUF_FORCE_COPY_IN_RELEASE - auto* old = reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(temp); - temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); - if (GetArenaForAllocation() == nullptr) { delete old; } -#else // PROTOBUF_FORCE_COPY_IN_RELEASE - if (GetArenaForAllocation() != nullptr) { - temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); + if (::google::protobuf::internal::DebugHardenForceCopyInRelease()) { + auto* old = reinterpret_cast<::google::protobuf::MessageLite*>(released); + released = ::google::protobuf::internal::DuplicateIfNonNull(released); + if (GetArena() == nullptr) { + delete old; + } + } else { + if (GetArena() != nullptr) { + released = ::google::protobuf::internal::DuplicateIfNonNull(released); + } } -#endif // !PROTOBUF_FORCE_COPY_IN_RELEASE - return temp; + return released; } -inline ::PROTOBUF_NAMESPACE_ID::Timestamp* MiscInfoFile::unsafe_arena_release_savedate() { +inline ::google::protobuf::Timestamp* MiscInfoFile::unsafe_arena_release_savedate() { + ::google::protobuf::internal::TSanWrite(&_impl_); // @@protoc_insertion_point(field_release:Odb.Lib.Protobuf.MiscInfoFile.saveDate) + _impl_._has_bits_[0] &= ~0x00000200u; - ::PROTOBUF_NAMESPACE_ID::Timestamp* temp = _impl_.savedate_; + ::google::protobuf::Timestamp* temp = _impl_.savedate_; _impl_.savedate_ = nullptr; return temp; } -inline ::PROTOBUF_NAMESPACE_ID::Timestamp* MiscInfoFile::_internal_mutable_savedate() { - _impl_._has_bits_[0] |= 0x00000200u; +inline ::google::protobuf::Timestamp* MiscInfoFile::_internal_mutable_savedate() { + ::google::protobuf::internal::TSanWrite(&_impl_); if (_impl_.savedate_ == nullptr) { - auto* p = CreateMaybeMessage<::PROTOBUF_NAMESPACE_ID::Timestamp>(GetArenaForAllocation()); - _impl_.savedate_ = p; + auto* p = ::google::protobuf::Message::DefaultConstruct<::google::protobuf::Timestamp>(GetArena()); + _impl_.savedate_ = reinterpret_cast<::google::protobuf::Timestamp*>(p); } return _impl_.savedate_; } -inline ::PROTOBUF_NAMESPACE_ID::Timestamp* MiscInfoFile::mutable_savedate() { - ::PROTOBUF_NAMESPACE_ID::Timestamp* _msg = _internal_mutable_savedate(); +inline ::google::protobuf::Timestamp* MiscInfoFile::mutable_savedate() ABSL_ATTRIBUTE_LIFETIME_BOUND { + _impl_._has_bits_[0] |= 0x00000200u; + ::google::protobuf::Timestamp* _msg = _internal_mutable_savedate(); // @@protoc_insertion_point(field_mutable:Odb.Lib.Protobuf.MiscInfoFile.saveDate) return _msg; } -inline void MiscInfoFile::set_allocated_savedate(::PROTOBUF_NAMESPACE_ID::Timestamp* savedate) { - ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); +inline void MiscInfoFile::set_allocated_savedate(::google::protobuf::Timestamp* value) { + ::google::protobuf::Arena* message_arena = GetArena(); + ::google::protobuf::internal::TSanWrite(&_impl_); if (message_arena == nullptr) { - delete reinterpret_cast< ::PROTOBUF_NAMESPACE_ID::MessageLite*>(_impl_.savedate_); + delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.savedate_); } - if (savedate) { - ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = - ::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena( - reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(savedate)); + + if (value != nullptr) { + ::google::protobuf::Arena* submessage_arena = reinterpret_cast<::google::protobuf::MessageLite*>(value)->GetArena(); if (message_arena != submessage_arena) { - savedate = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( - message_arena, savedate, submessage_arena); + value = ::google::protobuf::internal::GetOwnedMessage(message_arena, value, submessage_arena); } _impl_._has_bits_[0] |= 0x00000200u; } else { _impl_._has_bits_[0] &= ~0x00000200u; } - _impl_.savedate_ = savedate; + + _impl_.savedate_ = reinterpret_cast<::google::protobuf::Timestamp*>(value); // @@protoc_insertion_point(field_set_allocated:Odb.Lib.Protobuf.MiscInfoFile.saveDate) } // optional string saveApp = 8; -inline bool MiscInfoFile::_internal_has_saveapp() const { +inline bool MiscInfoFile::has_saveapp() const { bool value = (_impl_._has_bits_[0] & 0x00000020u) != 0; return value; } -inline bool MiscInfoFile::has_saveapp() const { - return _internal_has_saveapp(); -} inline void MiscInfoFile::clear_saveapp() { + ::google::protobuf::internal::TSanWrite(&_impl_); _impl_.saveapp_.ClearToEmpty(); _impl_._has_bits_[0] &= ~0x00000020u; } -inline const std::string& MiscInfoFile::saveapp() const { +inline const std::string& MiscInfoFile::saveapp() const + ABSL_ATTRIBUTE_LIFETIME_BOUND { // @@protoc_insertion_point(field_get:Odb.Lib.Protobuf.MiscInfoFile.saveApp) return _internal_saveapp(); } -template -inline PROTOBUF_ALWAYS_INLINE -void MiscInfoFile::set_saveapp(ArgT0&& arg0, ArgT... args) { - _impl_._has_bits_[0] |= 0x00000020u; - _impl_.saveapp_.Set(static_cast(arg0), args..., GetArenaForAllocation()); +template +inline PROTOBUF_ALWAYS_INLINE void MiscInfoFile::set_saveapp(Arg_&& arg, + Args_... args) { + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_._has_bits_[0] |= 0x00000020u; + _impl_.saveapp_.Set(static_cast(arg), args..., GetArena()); // @@protoc_insertion_point(field_set:Odb.Lib.Protobuf.MiscInfoFile.saveApp) } -inline std::string* MiscInfoFile::mutable_saveapp() { +inline std::string* MiscInfoFile::mutable_saveapp() ABSL_ATTRIBUTE_LIFETIME_BOUND { std::string* _s = _internal_mutable_saveapp(); // @@protoc_insertion_point(field_mutable:Odb.Lib.Protobuf.MiscInfoFile.saveApp) return _s; } inline const std::string& MiscInfoFile::_internal_saveapp() const { + ::google::protobuf::internal::TSanRead(&_impl_); return _impl_.saveapp_.Get(); } inline void MiscInfoFile::_internal_set_saveapp(const std::string& value) { + ::google::protobuf::internal::TSanWrite(&_impl_); _impl_._has_bits_[0] |= 0x00000020u; - _impl_.saveapp_.Set(value, GetArenaForAllocation()); + _impl_.saveapp_.Set(value, GetArena()); } inline std::string* MiscInfoFile::_internal_mutable_saveapp() { + ::google::protobuf::internal::TSanWrite(&_impl_); _impl_._has_bits_[0] |= 0x00000020u; - return _impl_.saveapp_.Mutable(GetArenaForAllocation()); + return _impl_.saveapp_.Mutable( GetArena()); } inline std::string* MiscInfoFile::release_saveapp() { + ::google::protobuf::internal::TSanWrite(&_impl_); // @@protoc_insertion_point(field_release:Odb.Lib.Protobuf.MiscInfoFile.saveApp) - if (!_internal_has_saveapp()) { + if ((_impl_._has_bits_[0] & 0x00000020u) == 0) { return nullptr; } _impl_._has_bits_[0] &= ~0x00000020u; - auto* p = _impl_.saveapp_.Release(); -#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (_impl_.saveapp_.IsDefault()) { - _impl_.saveapp_.Set("", GetArenaForAllocation()); + auto* released = _impl_.saveapp_.Release(); + if (::google::protobuf::internal::DebugHardenForceCopyDefaultString()) { + _impl_.saveapp_.Set("", GetArena()); } -#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING - return p; + return released; } -inline void MiscInfoFile::set_allocated_saveapp(std::string* saveapp) { - if (saveapp != nullptr) { +inline void MiscInfoFile::set_allocated_saveapp(std::string* value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + if (value != nullptr) { _impl_._has_bits_[0] |= 0x00000020u; } else { _impl_._has_bits_[0] &= ~0x00000020u; } - _impl_.saveapp_.SetAllocated(saveapp, GetArenaForAllocation()); -#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (_impl_.saveapp_.IsDefault()) { - _impl_.saveapp_.Set("", GetArenaForAllocation()); + _impl_.saveapp_.SetAllocated(value, GetArena()); + if (::google::protobuf::internal::DebugHardenForceCopyDefaultString() && _impl_.saveapp_.IsDefault()) { + _impl_.saveapp_.Set("", GetArena()); } -#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING // @@protoc_insertion_point(field_set_allocated:Odb.Lib.Protobuf.MiscInfoFile.saveApp) } // optional string saveUser = 9; -inline bool MiscInfoFile::_internal_has_saveuser() const { +inline bool MiscInfoFile::has_saveuser() const { bool value = (_impl_._has_bits_[0] & 0x00000040u) != 0; return value; } -inline bool MiscInfoFile::has_saveuser() const { - return _internal_has_saveuser(); -} inline void MiscInfoFile::clear_saveuser() { + ::google::protobuf::internal::TSanWrite(&_impl_); _impl_.saveuser_.ClearToEmpty(); _impl_._has_bits_[0] &= ~0x00000040u; } -inline const std::string& MiscInfoFile::saveuser() const { +inline const std::string& MiscInfoFile::saveuser() const + ABSL_ATTRIBUTE_LIFETIME_BOUND { // @@protoc_insertion_point(field_get:Odb.Lib.Protobuf.MiscInfoFile.saveUser) return _internal_saveuser(); } -template -inline PROTOBUF_ALWAYS_INLINE -void MiscInfoFile::set_saveuser(ArgT0&& arg0, ArgT... args) { - _impl_._has_bits_[0] |= 0x00000040u; - _impl_.saveuser_.Set(static_cast(arg0), args..., GetArenaForAllocation()); +template +inline PROTOBUF_ALWAYS_INLINE void MiscInfoFile::set_saveuser(Arg_&& arg, + Args_... args) { + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_._has_bits_[0] |= 0x00000040u; + _impl_.saveuser_.Set(static_cast(arg), args..., GetArena()); // @@protoc_insertion_point(field_set:Odb.Lib.Protobuf.MiscInfoFile.saveUser) } -inline std::string* MiscInfoFile::mutable_saveuser() { +inline std::string* MiscInfoFile::mutable_saveuser() ABSL_ATTRIBUTE_LIFETIME_BOUND { std::string* _s = _internal_mutable_saveuser(); // @@protoc_insertion_point(field_mutable:Odb.Lib.Protobuf.MiscInfoFile.saveUser) return _s; } inline const std::string& MiscInfoFile::_internal_saveuser() const { + ::google::protobuf::internal::TSanRead(&_impl_); return _impl_.saveuser_.Get(); } inline void MiscInfoFile::_internal_set_saveuser(const std::string& value) { + ::google::protobuf::internal::TSanWrite(&_impl_); _impl_._has_bits_[0] |= 0x00000040u; - _impl_.saveuser_.Set(value, GetArenaForAllocation()); + _impl_.saveuser_.Set(value, GetArena()); } inline std::string* MiscInfoFile::_internal_mutable_saveuser() { + ::google::protobuf::internal::TSanWrite(&_impl_); _impl_._has_bits_[0] |= 0x00000040u; - return _impl_.saveuser_.Mutable(GetArenaForAllocation()); + return _impl_.saveuser_.Mutable( GetArena()); } inline std::string* MiscInfoFile::release_saveuser() { + ::google::protobuf::internal::TSanWrite(&_impl_); // @@protoc_insertion_point(field_release:Odb.Lib.Protobuf.MiscInfoFile.saveUser) - if (!_internal_has_saveuser()) { + if ((_impl_._has_bits_[0] & 0x00000040u) == 0) { return nullptr; } _impl_._has_bits_[0] &= ~0x00000040u; - auto* p = _impl_.saveuser_.Release(); -#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (_impl_.saveuser_.IsDefault()) { - _impl_.saveuser_.Set("", GetArenaForAllocation()); + auto* released = _impl_.saveuser_.Release(); + if (::google::protobuf::internal::DebugHardenForceCopyDefaultString()) { + _impl_.saveuser_.Set("", GetArena()); } -#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING - return p; + return released; } -inline void MiscInfoFile::set_allocated_saveuser(std::string* saveuser) { - if (saveuser != nullptr) { +inline void MiscInfoFile::set_allocated_saveuser(std::string* value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + if (value != nullptr) { _impl_._has_bits_[0] |= 0x00000040u; } else { _impl_._has_bits_[0] &= ~0x00000040u; } - _impl_.saveuser_.SetAllocated(saveuser, GetArenaForAllocation()); -#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (_impl_.saveuser_.IsDefault()) { - _impl_.saveuser_.Set("", GetArenaForAllocation()); + _impl_.saveuser_.SetAllocated(value, GetArena()); + if (::google::protobuf::internal::DebugHardenForceCopyDefaultString() && _impl_.saveuser_.IsDefault()) { + _impl_.saveuser_.Set("", GetArena()); } -#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING // @@protoc_insertion_point(field_set_allocated:Odb.Lib.Protobuf.MiscInfoFile.saveUser) } // optional string units = 10; -inline bool MiscInfoFile::_internal_has_units() const { +inline bool MiscInfoFile::has_units() const { bool value = (_impl_._has_bits_[0] & 0x00000080u) != 0; return value; } -inline bool MiscInfoFile::has_units() const { - return _internal_has_units(); -} inline void MiscInfoFile::clear_units() { + ::google::protobuf::internal::TSanWrite(&_impl_); _impl_.units_.ClearToEmpty(); _impl_._has_bits_[0] &= ~0x00000080u; } -inline const std::string& MiscInfoFile::units() const { +inline const std::string& MiscInfoFile::units() const + ABSL_ATTRIBUTE_LIFETIME_BOUND { // @@protoc_insertion_point(field_get:Odb.Lib.Protobuf.MiscInfoFile.units) return _internal_units(); } -template -inline PROTOBUF_ALWAYS_INLINE -void MiscInfoFile::set_units(ArgT0&& arg0, ArgT... args) { - _impl_._has_bits_[0] |= 0x00000080u; - _impl_.units_.Set(static_cast(arg0), args..., GetArenaForAllocation()); +template +inline PROTOBUF_ALWAYS_INLINE void MiscInfoFile::set_units(Arg_&& arg, + Args_... args) { + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_._has_bits_[0] |= 0x00000080u; + _impl_.units_.Set(static_cast(arg), args..., GetArena()); // @@protoc_insertion_point(field_set:Odb.Lib.Protobuf.MiscInfoFile.units) } -inline std::string* MiscInfoFile::mutable_units() { +inline std::string* MiscInfoFile::mutable_units() ABSL_ATTRIBUTE_LIFETIME_BOUND { std::string* _s = _internal_mutable_units(); // @@protoc_insertion_point(field_mutable:Odb.Lib.Protobuf.MiscInfoFile.units) return _s; } inline const std::string& MiscInfoFile::_internal_units() const { + ::google::protobuf::internal::TSanRead(&_impl_); return _impl_.units_.Get(); } inline void MiscInfoFile::_internal_set_units(const std::string& value) { + ::google::protobuf::internal::TSanWrite(&_impl_); _impl_._has_bits_[0] |= 0x00000080u; - _impl_.units_.Set(value, GetArenaForAllocation()); + _impl_.units_.Set(value, GetArena()); } inline std::string* MiscInfoFile::_internal_mutable_units() { + ::google::protobuf::internal::TSanWrite(&_impl_); _impl_._has_bits_[0] |= 0x00000080u; - return _impl_.units_.Mutable(GetArenaForAllocation()); + return _impl_.units_.Mutable( GetArena()); } inline std::string* MiscInfoFile::release_units() { + ::google::protobuf::internal::TSanWrite(&_impl_); // @@protoc_insertion_point(field_release:Odb.Lib.Protobuf.MiscInfoFile.units) - if (!_internal_has_units()) { + if ((_impl_._has_bits_[0] & 0x00000080u) == 0) { return nullptr; } _impl_._has_bits_[0] &= ~0x00000080u; - auto* p = _impl_.units_.Release(); -#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (_impl_.units_.IsDefault()) { - _impl_.units_.Set("", GetArenaForAllocation()); + auto* released = _impl_.units_.Release(); + if (::google::protobuf::internal::DebugHardenForceCopyDefaultString()) { + _impl_.units_.Set("", GetArena()); } -#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING - return p; + return released; } -inline void MiscInfoFile::set_allocated_units(std::string* units) { - if (units != nullptr) { +inline void MiscInfoFile::set_allocated_units(std::string* value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + if (value != nullptr) { _impl_._has_bits_[0] |= 0x00000080u; } else { _impl_._has_bits_[0] &= ~0x00000080u; } - _impl_.units_.SetAllocated(units, GetArenaForAllocation()); -#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (_impl_.units_.IsDefault()) { - _impl_.units_.Set("", GetArenaForAllocation()); + _impl_.units_.SetAllocated(value, GetArena()); + if (::google::protobuf::internal::DebugHardenForceCopyDefaultString() && _impl_.units_.IsDefault()) { + _impl_.units_.Set("", GetArena()); } -#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING // @@protoc_insertion_point(field_set_allocated:Odb.Lib.Protobuf.MiscInfoFile.units) } // optional uint32 maxUniqueId = 11; -inline bool MiscInfoFile::_internal_has_maxuniqueid() const { +inline bool MiscInfoFile::has_maxuniqueid() const { bool value = (_impl_._has_bits_[0] & 0x00000400u) != 0; return value; } -inline bool MiscInfoFile::has_maxuniqueid() const { - return _internal_has_maxuniqueid(); -} inline void MiscInfoFile::clear_maxuniqueid() { + ::google::protobuf::internal::TSanWrite(&_impl_); _impl_.maxuniqueid_ = 0u; _impl_._has_bits_[0] &= ~0x00000400u; } -inline uint32_t MiscInfoFile::_internal_maxuniqueid() const { - return _impl_.maxuniqueid_; -} -inline uint32_t MiscInfoFile::maxuniqueid() const { +inline ::uint32_t MiscInfoFile::maxuniqueid() const { // @@protoc_insertion_point(field_get:Odb.Lib.Protobuf.MiscInfoFile.maxUniqueId) return _internal_maxuniqueid(); } -inline void MiscInfoFile::_internal_set_maxuniqueid(uint32_t value) { - _impl_._has_bits_[0] |= 0x00000400u; - _impl_.maxuniqueid_ = value; -} -inline void MiscInfoFile::set_maxuniqueid(uint32_t value) { +inline void MiscInfoFile::set_maxuniqueid(::uint32_t value) { _internal_set_maxuniqueid(value); + _impl_._has_bits_[0] |= 0x00000400u; // @@protoc_insertion_point(field_set:Odb.Lib.Protobuf.MiscInfoFile.maxUniqueId) } +inline ::uint32_t MiscInfoFile::_internal_maxuniqueid() const { + ::google::protobuf::internal::TSanRead(&_impl_); + return _impl_.maxuniqueid_; +} +inline void MiscInfoFile::_internal_set_maxuniqueid(::uint32_t value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.maxuniqueid_ = value; +} #ifdef __GNUC__ - #pragma GCC diagnostic pop +#pragma GCC diagnostic pop #endif // __GNUC__ // @@protoc_insertion_point(namespace_scope) - } // namespace Protobuf } // namespace Lib } // namespace Odb + // @@protoc_insertion_point(global_scope) -#include -#endif // GOOGLE_PROTOBUF_INCLUDED_GOOGLE_PROTOBUF_INCLUDED_miscinfofile_2eproto +#include "google/protobuf/port_undef.inc" + +#endif // miscinfofile_2eproto_2epb_2eh diff --git a/OdbDesignLib/ProtoBuf/net.pb.cc b/OdbDesignLib/ProtoBuf/net.pb.cc index afbf4a1d..038c7891 100644 --- a/OdbDesignLib/ProtoBuf/net.pb.cc +++ b/OdbDesignLib/ProtoBuf/net.pb.cc @@ -1,190 +1,302 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE // source: net.proto +// Protobuf C++ Version: 5.29.2 #include "net.pb.h" #include - -#include -#include -#include -#include -#include -#include -#include +#include +#include "google/protobuf/io/coded_stream.h" +#include "google/protobuf/generated_message_tctable_impl.h" +#include "google/protobuf/extension_set.h" +#include "google/protobuf/generated_message_util.h" +#include "google/protobuf/wire_format_lite.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) -#include +// Must be included last. +#include "google/protobuf/port_def.inc" PROTOBUF_PRAGMA_INIT_SEG - -namespace _pb = ::PROTOBUF_NAMESPACE_ID; -namespace _pbi = _pb::internal; - +namespace _pb = ::google::protobuf; +namespace _pbi = ::google::protobuf::internal; +namespace _fl = ::google::protobuf::internal::field_layout; namespace Odb { namespace Lib { namespace Protobuf { namespace ProductModel { -PROTOBUF_CONSTEXPR Net::Net( - ::_pbi::ConstantInitialized): _impl_{ - /*decltype(_impl_._has_bits_)*/{} - , /*decltype(_impl_._cached_size_)*/{} - , /*decltype(_impl_.pinconnections_)*/{} - , /*decltype(_impl_.name_)*/{&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}} - , /*decltype(_impl_.index_)*/0u} {} + +inline constexpr Net::Impl_::Impl_( + ::_pbi::ConstantInitialized) noexcept + : _cached_size_{0}, + pinconnections_{}, + name_( + &::google::protobuf::internal::fixed_address_empty_string, + ::_pbi::ConstantInitialized()), + index_{0u} {} + +template +PROTOBUF_CONSTEXPR Net::Net(::_pbi::ConstantInitialized) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : ::google::protobuf::Message(_class_data_.base()), +#else // PROTOBUF_CUSTOM_VTABLE + : ::google::protobuf::Message(), +#endif // PROTOBUF_CUSTOM_VTABLE + _impl_(::_pbi::ConstantInitialized()) { +} struct NetDefaultTypeInternal { - PROTOBUF_CONSTEXPR NetDefaultTypeInternal() - : _instance(::_pbi::ConstantInitialized{}) {} + PROTOBUF_CONSTEXPR NetDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} ~NetDefaultTypeInternal() {} union { Net _instance; }; }; -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 NetDefaultTypeInternal _Net_default_instance_; + +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT ODBDESIGN_EXPORT + PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 NetDefaultTypeInternal _Net_default_instance_; } // namespace ProductModel } // namespace Protobuf } // namespace Lib } // namespace Odb -static ::_pb::Metadata file_level_metadata_net_2eproto[1]; -static constexpr ::_pb::EnumDescriptor const** file_level_enum_descriptors_net_2eproto = nullptr; -static constexpr ::_pb::ServiceDescriptor const** file_level_service_descriptors_net_2eproto = nullptr; - -const uint32_t TableStruct_net_2eproto::offsets[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = { - PROTOBUF_FIELD_OFFSET(::Odb::Lib::Protobuf::ProductModel::Net, _impl_._has_bits_), - PROTOBUF_FIELD_OFFSET(::Odb::Lib::Protobuf::ProductModel::Net, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - ~0u, // no _inlined_string_donated_ - PROTOBUF_FIELD_OFFSET(::Odb::Lib::Protobuf::ProductModel::Net, _impl_.name_), - PROTOBUF_FIELD_OFFSET(::Odb::Lib::Protobuf::ProductModel::Net, _impl_.pinconnections_), - PROTOBUF_FIELD_OFFSET(::Odb::Lib::Protobuf::ProductModel::Net, _impl_.index_), - 0, - ~0u, - 1, -}; -static const ::_pbi::MigrationSchema schemas[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = { - { 0, 9, -1, sizeof(::Odb::Lib::Protobuf::ProductModel::Net)}, +static constexpr const ::_pb::EnumDescriptor** + file_level_enum_descriptors_net_2eproto = nullptr; +static constexpr const ::_pb::ServiceDescriptor** + file_level_service_descriptors_net_2eproto = nullptr; +const ::uint32_t + TableStruct_net_2eproto::offsets[] ABSL_ATTRIBUTE_SECTION_VARIABLE( + protodesc_cold) = { + PROTOBUF_FIELD_OFFSET(::Odb::Lib::Protobuf::ProductModel::Net, _impl_._has_bits_), + PROTOBUF_FIELD_OFFSET(::Odb::Lib::Protobuf::ProductModel::Net, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + ~0u, // no _split_ + ~0u, // no sizeof(Split) + PROTOBUF_FIELD_OFFSET(::Odb::Lib::Protobuf::ProductModel::Net, _impl_.name_), + PROTOBUF_FIELD_OFFSET(::Odb::Lib::Protobuf::ProductModel::Net, _impl_.pinconnections_), + PROTOBUF_FIELD_OFFSET(::Odb::Lib::Protobuf::ProductModel::Net, _impl_.index_), + 0, + ~0u, + 1, }; +static const ::_pbi::MigrationSchema + schemas[] ABSL_ATTRIBUTE_SECTION_VARIABLE(protodesc_cold) = { + {0, 11, -1, sizeof(::Odb::Lib::Protobuf::ProductModel::Net)}, +}; static const ::_pb::Message* const file_default_instances[] = { - &::Odb::Lib::Protobuf::ProductModel::_Net_default_instance_._instance, + &::Odb::Lib::Protobuf::ProductModel::_Net_default_instance_._instance, }; - -const char descriptor_table_protodef_net_2eproto[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = - "\n\tnet.proto\022\035Odb.Lib.Protobuf.ProductMod" - "el\032\023pinconnection.proto\"\205\001\n\003Net\022\021\n\004name\030" - "\001 \001(\tH\000\210\001\001\022D\n\016pinConnections\030\002 \003(\0132,.Odb" - ".Lib.Protobuf.ProductModel.PinConnection" - "\022\022\n\005index\030\003 \001(\rH\001\210\001\001B\007\n\005_nameB\010\n\006_indexb" - "\006proto3" - ; -static const ::_pbi::DescriptorTable* const descriptor_table_net_2eproto_deps[1] = { - &::descriptor_table_pinconnection_2eproto, +const char descriptor_table_protodef_net_2eproto[] ABSL_ATTRIBUTE_SECTION_VARIABLE( + protodesc_cold) = { + "\n\tnet.proto\022\035Odb.Lib.Protobuf.ProductMod" + "el\032\023pinconnection.proto\"\205\001\n\003Net\022\021\n\004name\030" + "\001 \001(\tH\000\210\001\001\022D\n\016pinConnections\030\002 \003(\0132,.Odb" + ".Lib.Protobuf.ProductModel.PinConnection" + "\022\022\n\005index\030\003 \001(\rH\001\210\001\001B\007\n\005_nameB\010\n\006_indexb" + "\006proto3" +}; +static const ::_pbi::DescriptorTable* const descriptor_table_net_2eproto_deps[1] = + { + &::descriptor_table_pinconnection_2eproto, }; -static ::_pbi::once_flag descriptor_table_net_2eproto_once; -const ::_pbi::DescriptorTable descriptor_table_net_2eproto = { - false, false, 207, descriptor_table_protodef_net_2eproto, +static ::absl::once_flag descriptor_table_net_2eproto_once; +PROTOBUF_CONSTINIT const ::_pbi::DescriptorTable descriptor_table_net_2eproto = { + false, + false, + 207, + descriptor_table_protodef_net_2eproto, "net.proto", - &descriptor_table_net_2eproto_once, descriptor_table_net_2eproto_deps, 1, 1, - schemas, file_default_instances, TableStruct_net_2eproto::offsets, - file_level_metadata_net_2eproto, file_level_enum_descriptors_net_2eproto, + &descriptor_table_net_2eproto_once, + descriptor_table_net_2eproto_deps, + 1, + 1, + schemas, + file_default_instances, + TableStruct_net_2eproto::offsets, + file_level_enum_descriptors_net_2eproto, file_level_service_descriptors_net_2eproto, }; -PROTOBUF_ATTRIBUTE_WEAK const ::_pbi::DescriptorTable* descriptor_table_net_2eproto_getter() { - return &descriptor_table_net_2eproto; -} - -// Force running AddDescriptors() at dynamic initialization time. -PROTOBUF_ATTRIBUTE_INIT_PRIORITY2 static ::_pbi::AddDescriptorsRunner dynamic_init_dummy_net_2eproto(&descriptor_table_net_2eproto); namespace Odb { namespace Lib { namespace Protobuf { namespace ProductModel { - // =================================================================== class Net::_Internal { public: - using HasBits = decltype(std::declval()._impl_._has_bits_); - static void set_has_name(HasBits* has_bits) { - (*has_bits)[0] |= 1u; - } - static void set_has_index(HasBits* has_bits) { - (*has_bits)[0] |= 2u; - } + using HasBits = + decltype(std::declval()._impl_._has_bits_); + static constexpr ::int32_t kHasBitsOffset = + 8 * PROTOBUF_FIELD_OFFSET(Net, _impl_._has_bits_); }; void Net::clear_pinconnections() { + ::google::protobuf::internal::TSanWrite(&_impl_); _impl_.pinconnections_.Clear(); } -Net::Net(::PROTOBUF_NAMESPACE_ID::Arena* arena, - bool is_message_owned) - : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned) { - SharedCtor(arena, is_message_owned); +Net::Net(::google::protobuf::Arena* arena) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : ::google::protobuf::Message(arena, _class_data_.base()) { +#else // PROTOBUF_CUSTOM_VTABLE + : ::google::protobuf::Message(arena) { +#endif // PROTOBUF_CUSTOM_VTABLE + SharedCtor(arena); // @@protoc_insertion_point(arena_constructor:Odb.Lib.Protobuf.ProductModel.Net) } -Net::Net(const Net& from) - : ::PROTOBUF_NAMESPACE_ID::Message() { - Net* const _this = this; (void)_this; - new (&_impl_) Impl_{ - decltype(_impl_._has_bits_){from._impl_._has_bits_} - , /*decltype(_impl_._cached_size_)*/{} - , decltype(_impl_.pinconnections_){from._impl_.pinconnections_} - , decltype(_impl_.name_){} - , decltype(_impl_.index_){}}; +inline PROTOBUF_NDEBUG_INLINE Net::Impl_::Impl_( + ::google::protobuf::internal::InternalVisibility visibility, ::google::protobuf::Arena* arena, + const Impl_& from, const ::Odb::Lib::Protobuf::ProductModel::Net& from_msg) + : _has_bits_{from._has_bits_}, + _cached_size_{0}, + pinconnections_{visibility, arena, from.pinconnections_}, + name_(arena, from.name_) {} + +Net::Net( + ::google::protobuf::Arena* arena, + const Net& from) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : ::google::protobuf::Message(arena, _class_data_.base()) { +#else // PROTOBUF_CUSTOM_VTABLE + : ::google::protobuf::Message(arena) { +#endif // PROTOBUF_CUSTOM_VTABLE + Net* const _this = this; + (void)_this; + _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( + from._internal_metadata_); + new (&_impl_) Impl_(internal_visibility(), arena, from._impl_, from); + _impl_.index_ = from._impl_.index_; - _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); - _impl_.name_.InitDefault(); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - _impl_.name_.Set("", GetArenaForAllocation()); - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (from._internal_has_name()) { - _this->_impl_.name_.Set(from._internal_name(), - _this->GetArenaForAllocation()); - } - _this->_impl_.index_ = from._impl_.index_; // @@protoc_insertion_point(copy_constructor:Odb.Lib.Protobuf.ProductModel.Net) } - -inline void Net::SharedCtor( - ::_pb::Arena* arena, bool is_message_owned) { - (void)arena; - (void)is_message_owned; - new (&_impl_) Impl_{ - decltype(_impl_._has_bits_){} - , /*decltype(_impl_._cached_size_)*/{} - , decltype(_impl_.pinconnections_){arena} - , decltype(_impl_.name_){} - , decltype(_impl_.index_){0u} - }; - _impl_.name_.InitDefault(); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - _impl_.name_.Set("", GetArenaForAllocation()); - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING +inline PROTOBUF_NDEBUG_INLINE Net::Impl_::Impl_( + ::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* arena) + : _cached_size_{0}, + pinconnections_{visibility, arena}, + name_(arena) {} + +inline void Net::SharedCtor(::_pb::Arena* arena) { + new (&_impl_) Impl_(internal_visibility(), arena); + _impl_.index_ = {}; } - Net::~Net() { // @@protoc_insertion_point(destructor:Odb.Lib.Protobuf.ProductModel.Net) - if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) { - (void)arena; - return; - } - SharedDtor(); + SharedDtor(*this); } - -inline void Net::SharedDtor() { - GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); - _impl_.pinconnections_.~RepeatedPtrField(); - _impl_.name_.Destroy(); +inline void Net::SharedDtor(MessageLite& self) { + Net& this_ = static_cast(self); + this_._internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); + ABSL_DCHECK(this_.GetArena() == nullptr); + this_._impl_.name_.Destroy(); + this_._impl_.~Impl_(); } -void Net::SetCachedSize(int size) const { - _impl_._cached_size_.Set(size); +inline void* Net::PlacementNew_(const void*, void* mem, + ::google::protobuf::Arena* arena) { + return ::new (mem) Net(arena); } +constexpr auto Net::InternalNewImpl_() { + constexpr auto arena_bits = ::google::protobuf::internal::EncodePlacementArenaOffsets({ + PROTOBUF_FIELD_OFFSET(Net, _impl_.pinconnections_) + + decltype(Net::_impl_.pinconnections_):: + InternalGetArenaOffset( + ::google::protobuf::Message::internal_visibility()), + }); + if (arena_bits.has_value()) { + return ::google::protobuf::internal::MessageCreator::CopyInit( + sizeof(Net), alignof(Net), *arena_bits); + } else { + return ::google::protobuf::internal::MessageCreator(&Net::PlacementNew_, + sizeof(Net), + alignof(Net)); + } +} +PROTOBUF_CONSTINIT +PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 +const ::google::protobuf::internal::ClassDataFull Net::_class_data_ = { + ::google::protobuf::internal::ClassData{ + &_Net_default_instance_._instance, + &_table_.header, + nullptr, // OnDemandRegisterArenaDtor + nullptr, // IsInitialized + &Net::MergeImpl, + ::google::protobuf::Message::GetNewImpl(), +#if defined(PROTOBUF_CUSTOM_VTABLE) + &Net::SharedDtor, + ::google::protobuf::Message::GetClearImpl(), &Net::ByteSizeLong, + &Net::_InternalSerialize, +#endif // PROTOBUF_CUSTOM_VTABLE + PROTOBUF_FIELD_OFFSET(Net, _impl_._cached_size_), + false, + }, + &Net::kDescriptorMethods, + &descriptor_table_net_2eproto, + nullptr, // tracker +}; +const ::google::protobuf::internal::ClassData* Net::GetClassData() const { + ::google::protobuf::internal::PrefetchToLocalCache(&_class_data_); + ::google::protobuf::internal::PrefetchToLocalCache(_class_data_.tc_table); + return _class_data_.base(); +} +PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 +const ::_pbi::TcParseTable<2, 3, 1, 46, 2> Net::_table_ = { + { + PROTOBUF_FIELD_OFFSET(Net, _impl_._has_bits_), + 0, // no _extensions_ + 3, 24, // max_field_number, fast_idx_mask + offsetof(decltype(_table_), field_lookup_table), + 4294967288, // skipmap + offsetof(decltype(_table_), field_entries), + 3, // num_field_entries + 1, // num_aux_entries + offsetof(decltype(_table_), aux_entries), + _class_data_.base(), + nullptr, // post_loop_handler + ::_pbi::TcParser::GenericFallback, // fallback + #ifdef PROTOBUF_PREFETCH_PARSE_TABLE + ::_pbi::TcParser::GetTable<::Odb::Lib::Protobuf::ProductModel::Net>(), // to_prefetch + #endif // PROTOBUF_PREFETCH_PARSE_TABLE + }, {{ + {::_pbi::TcParser::MiniParse, {}}, + // optional string name = 1; + {::_pbi::TcParser::FastUS1, + {10, 0, 0, PROTOBUF_FIELD_OFFSET(Net, _impl_.name_)}}, + // repeated .Odb.Lib.Protobuf.ProductModel.PinConnection pinConnections = 2; + {::_pbi::TcParser::FastMtR1, + {18, 63, 0, PROTOBUF_FIELD_OFFSET(Net, _impl_.pinconnections_)}}, + // optional uint32 index = 3; + {::_pbi::TcParser::SingularVarintNoZag1<::uint32_t, offsetof(Net, _impl_.index_), 1>(), + {24, 1, 0, PROTOBUF_FIELD_OFFSET(Net, _impl_.index_)}}, + }}, {{ + 65535, 65535 + }}, {{ + // optional string name = 1; + {PROTOBUF_FIELD_OFFSET(Net, _impl_.name_), _Internal::kHasBitsOffset + 0, 0, + (0 | ::_fl::kFcOptional | ::_fl::kUtf8String | ::_fl::kRepAString)}, + // repeated .Odb.Lib.Protobuf.ProductModel.PinConnection pinConnections = 2; + {PROTOBUF_FIELD_OFFSET(Net, _impl_.pinconnections_), -1, 0, + (0 | ::_fl::kFcRepeated | ::_fl::kMessage | ::_fl::kTvTable)}, + // optional uint32 index = 3; + {PROTOBUF_FIELD_OFFSET(Net, _impl_.index_), _Internal::kHasBitsOffset + 1, 0, + (0 | ::_fl::kFcOptional | ::_fl::kUInt32)}, + }}, {{ + {::_pbi::TcParser::GetTable<::Odb::Lib::Protobuf::ProductModel::PinConnection>()}, + }}, {{ + "\41\4\0\0\0\0\0\0" + "Odb.Lib.Protobuf.ProductModel.Net" + "name" + }}, +}; -void Net::Clear() { +PROTOBUF_NOINLINE void Net::Clear() { // @@protoc_insertion_point(message_clear_start:Odb.Lib.Protobuf.ProductModel.Net) - uint32_t cached_has_bits = 0; + ::google::protobuf::internal::TSanWrite(&_impl_); + ::uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; @@ -195,159 +307,111 @@ void Net::Clear() { } _impl_.index_ = 0u; _impl_._has_bits_.Clear(); - _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); + _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); } -const char* Net::_InternalParse(const char* ptr, ::_pbi::ParseContext* ctx) { -#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure - _Internal::HasBits has_bits{}; - while (!ctx->Done(&ptr)) { - uint32_t tag; - ptr = ::_pbi::ReadTag(ptr, &tag); - switch (tag >> 3) { - // optional string name = 1; - case 1: - if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 10)) { - auto str = _internal_mutable_name(); - ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); - CHK_(ptr); - CHK_(::_pbi::VerifyUTF8(str, "Odb.Lib.Protobuf.ProductModel.Net.name")); - } else - goto handle_unusual; - continue; - // repeated .Odb.Lib.Protobuf.ProductModel.PinConnection pinConnections = 2; - case 2: - if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 18)) { - ptr -= 1; - do { - ptr += 1; - ptr = ctx->ParseMessage(_internal_add_pinconnections(), ptr); - CHK_(ptr); - if (!ctx->DataAvailable(ptr)) break; - } while (::PROTOBUF_NAMESPACE_ID::internal::ExpectTag<18>(ptr)); - } else - goto handle_unusual; - continue; - // optional uint32 index = 3; - case 3: - if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 24)) { - _Internal::set_has_index(&has_bits); - _impl_.index_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr); - CHK_(ptr); - } else - goto handle_unusual; - continue; - default: - goto handle_unusual; - } // switch - handle_unusual: - if ((tag == 0) || ((tag & 7) == 4)) { - CHK_(ptr); - ctx->SetLastTag(tag); - goto message_done; - } - ptr = UnknownFieldParse( - tag, - _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(), - ptr, ctx); - CHK_(ptr != nullptr); - } // while -message_done: - _impl_._has_bits_.Or(has_bits); - return ptr; -failure: - ptr = nullptr; - goto message_done; -#undef CHK_ -} - -uint8_t* Net::_InternalSerialize( - uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { - // @@protoc_insertion_point(serialize_to_array_start:Odb.Lib.Protobuf.ProductModel.Net) - uint32_t cached_has_bits = 0; - (void) cached_has_bits; - - // optional string name = 1; - if (_internal_has_name()) { - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( - this->_internal_name().data(), static_cast(this->_internal_name().length()), - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, - "Odb.Lib.Protobuf.ProductModel.Net.name"); - target = stream->WriteStringMaybeAliased( - 1, this->_internal_name(), target); - } - - // repeated .Odb.Lib.Protobuf.ProductModel.PinConnection pinConnections = 2; - for (unsigned i = 0, - n = static_cast(this->_internal_pinconnections_size()); i < n; i++) { - const auto& repfield = this->_internal_pinconnections(i); - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: - InternalWriteMessage(2, repfield, repfield.GetCachedSize(), target, stream); - } - - // optional uint32 index = 3; - if (_internal_has_index()) { - target = stream->EnsureSpace(target); - target = ::_pbi::WireFormatLite::WriteUInt32ToArray(3, this->_internal_index(), target); - } - - if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = ::_pbi::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:Odb.Lib.Protobuf.ProductModel.Net) - return target; -} - -size_t Net::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:Odb.Lib.Protobuf.ProductModel.Net) - size_t total_size = 0; - - uint32_t cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - // repeated .Odb.Lib.Protobuf.ProductModel.PinConnection pinConnections = 2; - total_size += 1UL * this->_internal_pinconnections_size(); - for (const auto& msg : this->_impl_.pinconnections_) { - total_size += - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(msg); - } - - cached_has_bits = _impl_._has_bits_[0]; - if (cached_has_bits & 0x00000003u) { - // optional string name = 1; - if (cached_has_bits & 0x00000001u) { - total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( - this->_internal_name()); - } - - // optional uint32 index = 3; - if (cached_has_bits & 0x00000002u) { - total_size += ::_pbi::WireFormatLite::UInt32SizePlusOne(this->_internal_index()); - } - - } - return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); -} - -const ::PROTOBUF_NAMESPACE_ID::Message::ClassData Net::_class_data_ = { - ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSourceCheck, - Net::MergeImpl -}; -const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*Net::GetClassData() const { return &_class_data_; } - - -void Net::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg) { +#if defined(PROTOBUF_CUSTOM_VTABLE) + ::uint8_t* Net::_InternalSerialize( + const MessageLite& base, ::uint8_t* target, + ::google::protobuf::io::EpsCopyOutputStream* stream) { + const Net& this_ = static_cast(base); +#else // PROTOBUF_CUSTOM_VTABLE + ::uint8_t* Net::_InternalSerialize( + ::uint8_t* target, + ::google::protobuf::io::EpsCopyOutputStream* stream) const { + const Net& this_ = *this; +#endif // PROTOBUF_CUSTOM_VTABLE + // @@protoc_insertion_point(serialize_to_array_start:Odb.Lib.Protobuf.ProductModel.Net) + ::uint32_t cached_has_bits = 0; + (void)cached_has_bits; + + cached_has_bits = this_._impl_._has_bits_[0]; + // optional string name = 1; + if (cached_has_bits & 0x00000001u) { + const std::string& _s = this_._internal_name(); + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + _s.data(), static_cast(_s.length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "Odb.Lib.Protobuf.ProductModel.Net.name"); + target = stream->WriteStringMaybeAliased(1, _s, target); + } + + // repeated .Odb.Lib.Protobuf.ProductModel.PinConnection pinConnections = 2; + for (unsigned i = 0, n = static_cast( + this_._internal_pinconnections_size()); + i < n; i++) { + const auto& repfield = this_._internal_pinconnections().Get(i); + target = + ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( + 2, repfield, repfield.GetCachedSize(), + target, stream); + } + + // optional uint32 index = 3; + if (cached_has_bits & 0x00000002u) { + target = stream->EnsureSpace(target); + target = ::_pbi::WireFormatLite::WriteUInt32ToArray( + 3, this_._internal_index(), target); + } + + if (PROTOBUF_PREDICT_FALSE(this_._internal_metadata_.have_unknown_fields())) { + target = + ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( + this_._internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); + } + // @@protoc_insertion_point(serialize_to_array_end:Odb.Lib.Protobuf.ProductModel.Net) + return target; + } + +#if defined(PROTOBUF_CUSTOM_VTABLE) + ::size_t Net::ByteSizeLong(const MessageLite& base) { + const Net& this_ = static_cast(base); +#else // PROTOBUF_CUSTOM_VTABLE + ::size_t Net::ByteSizeLong() const { + const Net& this_ = *this; +#endif // PROTOBUF_CUSTOM_VTABLE + // @@protoc_insertion_point(message_byte_size_start:Odb.Lib.Protobuf.ProductModel.Net) + ::size_t total_size = 0; + + ::uint32_t cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void)cached_has_bits; + + ::_pbi::Prefetch5LinesFrom7Lines(&this_); + { + // repeated .Odb.Lib.Protobuf.ProductModel.PinConnection pinConnections = 2; + { + total_size += 1UL * this_._internal_pinconnections_size(); + for (const auto& msg : this_._internal_pinconnections()) { + total_size += ::google::protobuf::internal::WireFormatLite::MessageSize(msg); + } + } + } + cached_has_bits = this_._impl_._has_bits_[0]; + if (cached_has_bits & 0x00000003u) { + // optional string name = 1; + if (cached_has_bits & 0x00000001u) { + total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize( + this_._internal_name()); + } + // optional uint32 index = 3; + if (cached_has_bits & 0x00000002u) { + total_size += ::_pbi::WireFormatLite::UInt32SizePlusOne( + this_._internal_index()); + } + } + return this_.MaybeComputeUnknownFieldsSize(total_size, + &this_._impl_._cached_size_); + } + +void Net::MergeImpl(::google::protobuf::MessageLite& to_msg, const ::google::protobuf::MessageLite& from_msg) { auto* const _this = static_cast(&to_msg); auto& from = static_cast(from_msg); // @@protoc_insertion_point(class_specific_merge_from_start:Odb.Lib.Protobuf.ProductModel.Net) - GOOGLE_DCHECK_NE(&from, _this); - uint32_t cached_has_bits = 0; + ABSL_DCHECK_NE(&from, _this); + ::uint32_t cached_has_bits = 0; (void) cached_has_bits; - _this->_impl_.pinconnections_.MergeFrom(from._impl_.pinconnections_); + _this->_internal_mutable_pinconnections()->MergeFrom( + from._internal_pinconnections()); cached_has_bits = from._impl_._has_bits_[0]; if (cached_has_bits & 0x00000003u) { if (cached_has_bits & 0x00000001u) { @@ -356,9 +420,9 @@ void Net::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_N if (cached_has_bits & 0x00000002u) { _this->_impl_.index_ = from._impl_.index_; } - _this->_impl_._has_bits_[0] |= cached_has_bits; } - _this->_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); + _this->_impl_._has_bits_[0] |= cached_has_bits; + _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); } void Net::CopyFrom(const Net& from) { @@ -368,41 +432,33 @@ void Net::CopyFrom(const Net& from) { MergeFrom(from); } -bool Net::IsInitialized() const { - return true; -} -void Net::InternalSwap(Net* other) { +void Net::InternalSwap(Net* PROTOBUF_RESTRICT other) { using std::swap; - auto* lhs_arena = GetArenaForAllocation(); - auto* rhs_arena = other->GetArenaForAllocation(); + auto* arena = GetArena(); + ABSL_DCHECK_EQ(arena, other->GetArena()); _internal_metadata_.InternalSwap(&other->_internal_metadata_); swap(_impl_._has_bits_[0], other->_impl_._has_bits_[0]); _impl_.pinconnections_.InternalSwap(&other->_impl_.pinconnections_); - ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( - &_impl_.name_, lhs_arena, - &other->_impl_.name_, rhs_arena - ); - swap(_impl_.index_, other->_impl_.index_); + ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.name_, &other->_impl_.name_, arena); + swap(_impl_.index_, other->_impl_.index_); } -::PROTOBUF_NAMESPACE_ID::Metadata Net::GetMetadata() const { - return ::_pbi::AssignDescriptors( - &descriptor_table_net_2eproto_getter, &descriptor_table_net_2eproto_once, - file_level_metadata_net_2eproto[0]); +::google::protobuf::Metadata Net::GetMetadata() const { + return ::google::protobuf::Message::GetMetadataImpl(GetClassData()->full()); } - // @@protoc_insertion_point(namespace_scope) } // namespace ProductModel } // namespace Protobuf } // namespace Lib } // namespace Odb -PROTOBUF_NAMESPACE_OPEN -template<> PROTOBUF_NOINLINE ::Odb::Lib::Protobuf::ProductModel::Net* -Arena::CreateMaybeMessage< ::Odb::Lib::Protobuf::ProductModel::Net >(Arena* arena) { - return Arena::CreateMessageInternal< ::Odb::Lib::Protobuf::ProductModel::Net >(arena); -} -PROTOBUF_NAMESPACE_CLOSE - +namespace google { +namespace protobuf { +} // namespace protobuf +} // namespace google // @@protoc_insertion_point(global_scope) -#include +PROTOBUF_ATTRIBUTE_INIT_PRIORITY2 static ::std::false_type + _static_init2_ PROTOBUF_UNUSED = + (::_pbi::AddDescriptors(&descriptor_table_net_2eproto), + ::std::false_type{}); +#include "google/protobuf/port_undef.inc" diff --git a/OdbDesignLib/ProtoBuf/net.pb.h b/OdbDesignLib/ProtoBuf/net.pb.h index bdae66f9..d94a942b 100644 --- a/OdbDesignLib/ProtoBuf/net.pb.h +++ b/OdbDesignLib/ProtoBuf/net.pb.h @@ -1,50 +1,57 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE // source: net.proto +// Protobuf C++ Version: 5.29.2 -#ifndef GOOGLE_PROTOBUF_INCLUDED_net_2eproto -#define GOOGLE_PROTOBUF_INCLUDED_net_2eproto +#ifndef net_2eproto_2epb_2eh +#define net_2eproto_2epb_2eh #include #include - -#include -#if PROTOBUF_VERSION < 3021000 -#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 3021012 < 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. +#include +#include + +#include "google/protobuf/runtime_version.h" +#if PROTOBUF_VERSION != 5029002 +#error "Protobuf C++ gencode is built with an incompatible version of" +#error "Protobuf C++ headers/runtime. See" +#error "https://protobuf.dev/support/cross-version-runtime-guarantee/#cpp" #endif - -#include -#include -#include -#include -#include -#include -#include -#include -#include // IWYU pragma: export -#include // IWYU pragma: export -#include +#include "google/protobuf/io/coded_stream.h" +#include "google/protobuf/arena.h" +#include "google/protobuf/arenastring.h" +#include "google/protobuf/generated_message_tctable_decl.h" +#include "google/protobuf/generated_message_util.h" +#include "google/protobuf/metadata_lite.h" +#include "google/protobuf/generated_message_reflection.h" +#include "google/protobuf/message.h" +#include "google/protobuf/message_lite.h" +#include "google/protobuf/repeated_field.h" // IWYU pragma: export +#include "google/protobuf/extension_set.h" // IWYU pragma: export +#include "google/protobuf/unknown_field_set.h" #include "pinconnection.pb.h" // @@protoc_insertion_point(includes) -#include + +// Must be included last. +#include "google/protobuf/port_def.inc" + #define PROTOBUF_INTERNAL_EXPORT_net_2eproto ODBDESIGN_EXPORT -PROTOBUF_NAMESPACE_OPEN + +namespace google { +namespace protobuf { namespace internal { -class AnyMetadata; +template +::absl::string_view GetAnyMessageName(); } // namespace internal -PROTOBUF_NAMESPACE_CLOSE +} // namespace protobuf +} // namespace google // Internal implementation detail -- do not use these members. struct ODBDESIGN_EXPORT TableStruct_net_2eproto { - static const uint32_t offsets[]; + static const ::uint32_t offsets[]; }; -ODBDESIGN_EXPORT extern const ::PROTOBUF_NAMESPACE_ID::internal::DescriptorTable descriptor_table_net_2eproto; +ODBDESIGN_EXPORT extern const ::google::protobuf::internal::DescriptorTable + descriptor_table_net_2eproto; namespace Odb { namespace Lib { namespace Protobuf { @@ -56,9 +63,11 @@ ODBDESIGN_EXPORT extern NetDefaultTypeInternal _Net_default_instance_; } // namespace Protobuf } // namespace Lib } // namespace Odb -PROTOBUF_NAMESPACE_OPEN -template<> ODBDESIGN_EXPORT ::Odb::Lib::Protobuf::ProductModel::Net* Arena::CreateMaybeMessage<::Odb::Lib::Protobuf::ProductModel::Net>(Arena*); -PROTOBUF_NAMESPACE_CLOSE +namespace google { +namespace protobuf { +} // namespace protobuf +} // namespace google + namespace Odb { namespace Lib { namespace Protobuf { @@ -66,30 +75,36 @@ namespace ProductModel { // =================================================================== -class ODBDESIGN_EXPORT Net final : - public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:Odb.Lib.Protobuf.ProductModel.Net) */ { + +// ------------------------------------------------------------------- + +class ODBDESIGN_EXPORT Net final : public ::google::protobuf::Message +/* @@protoc_insertion_point(class_definition:Odb.Lib.Protobuf.ProductModel.Net) */ { public: inline Net() : Net(nullptr) {} - ~Net() override; - explicit PROTOBUF_CONSTEXPR Net(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); + ~Net() PROTOBUF_FINAL; - Net(const Net& from); - Net(Net&& from) noexcept - : Net() { - *this = ::std::move(from); +#if defined(PROTOBUF_CUSTOM_VTABLE) + void operator delete(Net* msg, std::destroying_delete_t) { + SharedDtor(*msg); + ::google::protobuf::internal::SizedDelete(msg, sizeof(Net)); } +#endif + + template + explicit PROTOBUF_CONSTEXPR Net( + ::google::protobuf::internal::ConstantInitialized); + inline Net(const Net& from) : Net(nullptr, from) {} + inline Net(Net&& from) noexcept + : Net(nullptr, std::move(from)) {} inline Net& operator=(const Net& from) { CopyFrom(from); return *this; } inline Net& operator=(Net&& from) noexcept { if (this == &from) return *this; - if (GetOwningArena() == from.GetOwningArena() - #ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetOwningArena() != nullptr - #endif // !PROTOBUF_FORCE_COPY_IN_MOVE - ) { + if (::google::protobuf::internal::CanMoveWithInternalSwap(GetArena(), from.GetArena())) { InternalSwap(&from); } else { CopyFrom(from); @@ -97,13 +112,22 @@ class ODBDESIGN_EXPORT Net final : return *this; } - static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { + inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const + ABSL_ATTRIBUTE_LIFETIME_BOUND { + return _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance); + } + inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() + ABSL_ATTRIBUTE_LIFETIME_BOUND { + return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); + } + + static const ::google::protobuf::Descriptor* descriptor() { return GetDescriptor(); } - static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { + static const ::google::protobuf::Descriptor* GetDescriptor() { return default_instance().GetMetadata().descriptor; } - static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { + static const ::google::protobuf::Reflection* GetReflection() { return default_instance().GetMetadata().reflection; } static const Net& default_instance() { @@ -111,81 +135,94 @@ class ODBDESIGN_EXPORT Net final : } static inline const Net* internal_default_instance() { return reinterpret_cast( - &_Net_default_instance_); - } - static constexpr int kIndexInFileMessages = - 0; - - friend void swap(Net& a, Net& b) { - a.Swap(&b); + &_Net_default_instance_); } + static constexpr int kIndexInFileMessages = 0; + friend void swap(Net& a, Net& b) { a.Swap(&b); } inline void Swap(Net* other) { if (other == this) return; - #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetOwningArena() != nullptr && - GetOwningArena() == other->GetOwningArena()) { - #else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetOwningArena() == other->GetOwningArena()) { - #endif // !PROTOBUF_FORCE_COPY_IN_SWAP + if (::google::protobuf::internal::CanUseInternalSwap(GetArena(), other->GetArena())) { InternalSwap(other); } else { - ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); + ::google::protobuf::internal::GenericSwap(this, other); } } void UnsafeArenaSwap(Net* other) { if (other == this) return; - GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); + ABSL_DCHECK(GetArena() == other->GetArena()); InternalSwap(other); } // implements Message ---------------------------------------------- - Net* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); + Net* New(::google::protobuf::Arena* arena = nullptr) const { + return ::google::protobuf::Message::DefaultConstruct(arena); } - using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; + using ::google::protobuf::Message::CopyFrom; void CopyFrom(const Net& from); - using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; - void MergeFrom( const Net& from) { - Net::MergeImpl(*this, from); - } + using ::google::protobuf::Message::MergeFrom; + void MergeFrom(const Net& from) { Net::MergeImpl(*this, from); } + private: - static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg); + static void MergeImpl( + ::google::protobuf::MessageLite& to_msg, + const ::google::protobuf::MessageLite& from_msg); + public: - PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; - bool IsInitialized() const final; + bool IsInitialized() const { + return true; + } + ABSL_ATTRIBUTE_REINITIALIZES void Clear() PROTOBUF_FINAL; + #if defined(PROTOBUF_CUSTOM_VTABLE) + private: + static ::size_t ByteSizeLong(const ::google::protobuf::MessageLite& msg); + static ::uint8_t* _InternalSerialize( + const MessageLite& msg, ::uint8_t* target, + ::google::protobuf::io::EpsCopyOutputStream* stream); - size_t ByteSizeLong() const final; - const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final; - uint8_t* _InternalSerialize( - uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const final { return _impl_._cached_size_.Get(); } + public: + ::size_t ByteSizeLong() const { return ByteSizeLong(*this); } + ::uint8_t* _InternalSerialize( + ::uint8_t* target, + ::google::protobuf::io::EpsCopyOutputStream* stream) const { + return _InternalSerialize(*this, target, stream); + } + #else // PROTOBUF_CUSTOM_VTABLE + ::size_t ByteSizeLong() const final; + ::uint8_t* _InternalSerialize( + ::uint8_t* target, + ::google::protobuf::io::EpsCopyOutputStream* stream) const final; + #endif // PROTOBUF_CUSTOM_VTABLE + int GetCachedSize() const { return _impl_._cached_size_.Get(); } private: - void SharedCtor(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned); - void SharedDtor(); - void SetCachedSize(int size) const final; + void SharedCtor(::google::protobuf::Arena* arena); + static void SharedDtor(MessageLite& self); void InternalSwap(Net* other); - - private: - friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; - static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { - return "Odb.Lib.Protobuf.ProductModel.Net"; + private: + template + friend ::absl::string_view( + ::google::protobuf::internal::GetAnyMessageName)(); + static ::absl::string_view FullMessageName() { return "Odb.Lib.Protobuf.ProductModel.Net"; } + + protected: + explicit Net(::google::protobuf::Arena* arena); + Net(::google::protobuf::Arena* arena, const Net& from); + Net(::google::protobuf::Arena* arena, Net&& from) noexcept + : Net(arena) { + *this = ::std::move(from); } - protected: - explicit Net(::PROTOBUF_NAMESPACE_ID::Arena* arena, - bool is_message_owned = false); - public: - - static const ClassData _class_data_; - const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final; - - ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; + const ::google::protobuf::internal::ClassData* GetClassData() const PROTOBUF_FINAL; + static void* PlacementNew_(const void*, void* mem, + ::google::protobuf::Arena* arena); + static constexpr auto InternalNewImpl_(); + static const ::google::protobuf::internal::ClassDataFull _class_data_; + public: + ::google::protobuf::Metadata GetMetadata() const; // nested types ---------------------------------------------------- // accessors ------------------------------------------------------- - enum : int { kPinConnectionsFieldNumber = 2, kNameFieldNumber = 1, @@ -195,224 +232,252 @@ class ODBDESIGN_EXPORT Net final : int pinconnections_size() const; private: int _internal_pinconnections_size() const; + public: - void clear_pinconnections(); + void clear_pinconnections() ; ::Odb::Lib::Protobuf::ProductModel::PinConnection* mutable_pinconnections(int index); - ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::Odb::Lib::Protobuf::ProductModel::PinConnection >* - mutable_pinconnections(); + ::google::protobuf::RepeatedPtrField<::Odb::Lib::Protobuf::ProductModel::PinConnection>* mutable_pinconnections(); + private: - const ::Odb::Lib::Protobuf::ProductModel::PinConnection& _internal_pinconnections(int index) const; - ::Odb::Lib::Protobuf::ProductModel::PinConnection* _internal_add_pinconnections(); + const ::google::protobuf::RepeatedPtrField<::Odb::Lib::Protobuf::ProductModel::PinConnection>& _internal_pinconnections() const; + ::google::protobuf::RepeatedPtrField<::Odb::Lib::Protobuf::ProductModel::PinConnection>* _internal_mutable_pinconnections(); public: const ::Odb::Lib::Protobuf::ProductModel::PinConnection& pinconnections(int index) const; ::Odb::Lib::Protobuf::ProductModel::PinConnection* add_pinconnections(); - const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::Odb::Lib::Protobuf::ProductModel::PinConnection >& - pinconnections() const; - + const ::google::protobuf::RepeatedPtrField<::Odb::Lib::Protobuf::ProductModel::PinConnection>& pinconnections() const; // optional string name = 1; bool has_name() const; - private: - bool _internal_has_name() const; - public: - void clear_name(); + void clear_name() ; const std::string& name() const; - template - void set_name(ArgT0&& arg0, ArgT... args); + template + void set_name(Arg_&& arg, Args_... args); std::string* mutable_name(); PROTOBUF_NODISCARD std::string* release_name(); - void set_allocated_name(std::string* name); + void set_allocated_name(std::string* value); + private: const std::string& _internal_name() const; - inline PROTOBUF_ALWAYS_INLINE void _internal_set_name(const std::string& value); + inline PROTOBUF_ALWAYS_INLINE void _internal_set_name( + const std::string& value); std::string* _internal_mutable_name(); - public: + public: // optional uint32 index = 3; bool has_index() const; + void clear_index() ; + ::uint32_t index() const; + void set_index(::uint32_t value); + private: - bool _internal_has_index() const; - public: - void clear_index(); - uint32_t index() const; - void set_index(uint32_t value); - private: - uint32_t _internal_index() const; - void _internal_set_index(uint32_t value); - public: + ::uint32_t _internal_index() const; + void _internal_set_index(::uint32_t value); + public: // @@protoc_insertion_point(class_scope:Odb.Lib.Protobuf.ProductModel.Net) private: class _Internal; - - template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; - typedef void InternalArenaConstructable_; - typedef void DestructorSkippable_; + friend class ::google::protobuf::internal::TcParser; + static const ::google::protobuf::internal::TcParseTable< + 2, 3, 1, + 46, 2> + _table_; + + friend class ::google::protobuf::MessageLite; + friend class ::google::protobuf::Arena; + template + friend class ::google::protobuf::Arena::InternalHelper; + using InternalArenaConstructable_ = void; + using DestructorSkippable_ = void; struct Impl_ { - ::PROTOBUF_NAMESPACE_ID::internal::HasBits<1> _has_bits_; - mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; - ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::Odb::Lib::Protobuf::ProductModel::PinConnection > pinconnections_; - ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr name_; - uint32_t index_; + inline explicit constexpr Impl_( + ::google::protobuf::internal::ConstantInitialized) noexcept; + inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* arena); + inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* arena, const Impl_& from, + const Net& from_msg); + ::google::protobuf::internal::HasBits<1> _has_bits_; + ::google::protobuf::internal::CachedSize _cached_size_; + ::google::protobuf::RepeatedPtrField< ::Odb::Lib::Protobuf::ProductModel::PinConnection > pinconnections_; + ::google::protobuf::internal::ArenaStringPtr name_; + ::uint32_t index_; + PROTOBUF_TSAN_DECLARE_MEMBER }; union { Impl_ _impl_; }; friend struct ::TableStruct_net_2eproto; }; + // =================================================================== + + // =================================================================== + #ifdef __GNUC__ - #pragma GCC diagnostic push - #pragma GCC diagnostic ignored "-Wstrict-aliasing" +#pragma GCC diagnostic push +#pragma GCC diagnostic ignored "-Wstrict-aliasing" #endif // __GNUC__ +// ------------------------------------------------------------------- + // Net // optional string name = 1; -inline bool Net::_internal_has_name() const { +inline bool Net::has_name() const { bool value = (_impl_._has_bits_[0] & 0x00000001u) != 0; return value; } -inline bool Net::has_name() const { - return _internal_has_name(); -} inline void Net::clear_name() { + ::google::protobuf::internal::TSanWrite(&_impl_); _impl_.name_.ClearToEmpty(); _impl_._has_bits_[0] &= ~0x00000001u; } -inline const std::string& Net::name() const { +inline const std::string& Net::name() const + ABSL_ATTRIBUTE_LIFETIME_BOUND { // @@protoc_insertion_point(field_get:Odb.Lib.Protobuf.ProductModel.Net.name) return _internal_name(); } -template -inline PROTOBUF_ALWAYS_INLINE -void Net::set_name(ArgT0&& arg0, ArgT... args) { - _impl_._has_bits_[0] |= 0x00000001u; - _impl_.name_.Set(static_cast(arg0), args..., GetArenaForAllocation()); +template +inline PROTOBUF_ALWAYS_INLINE void Net::set_name(Arg_&& arg, + Args_... args) { + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_._has_bits_[0] |= 0x00000001u; + _impl_.name_.Set(static_cast(arg), args..., GetArena()); // @@protoc_insertion_point(field_set:Odb.Lib.Protobuf.ProductModel.Net.name) } -inline std::string* Net::mutable_name() { +inline std::string* Net::mutable_name() ABSL_ATTRIBUTE_LIFETIME_BOUND { std::string* _s = _internal_mutable_name(); // @@protoc_insertion_point(field_mutable:Odb.Lib.Protobuf.ProductModel.Net.name) return _s; } inline const std::string& Net::_internal_name() const { + ::google::protobuf::internal::TSanRead(&_impl_); return _impl_.name_.Get(); } inline void Net::_internal_set_name(const std::string& value) { + ::google::protobuf::internal::TSanWrite(&_impl_); _impl_._has_bits_[0] |= 0x00000001u; - _impl_.name_.Set(value, GetArenaForAllocation()); + _impl_.name_.Set(value, GetArena()); } inline std::string* Net::_internal_mutable_name() { + ::google::protobuf::internal::TSanWrite(&_impl_); _impl_._has_bits_[0] |= 0x00000001u; - return _impl_.name_.Mutable(GetArenaForAllocation()); + return _impl_.name_.Mutable( GetArena()); } inline std::string* Net::release_name() { + ::google::protobuf::internal::TSanWrite(&_impl_); // @@protoc_insertion_point(field_release:Odb.Lib.Protobuf.ProductModel.Net.name) - if (!_internal_has_name()) { + if ((_impl_._has_bits_[0] & 0x00000001u) == 0) { return nullptr; } _impl_._has_bits_[0] &= ~0x00000001u; - auto* p = _impl_.name_.Release(); -#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (_impl_.name_.IsDefault()) { - _impl_.name_.Set("", GetArenaForAllocation()); + auto* released = _impl_.name_.Release(); + if (::google::protobuf::internal::DebugHardenForceCopyDefaultString()) { + _impl_.name_.Set("", GetArena()); } -#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING - return p; + return released; } -inline void Net::set_allocated_name(std::string* name) { - if (name != nullptr) { +inline void Net::set_allocated_name(std::string* value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + if (value != nullptr) { _impl_._has_bits_[0] |= 0x00000001u; } else { _impl_._has_bits_[0] &= ~0x00000001u; } - _impl_.name_.SetAllocated(name, GetArenaForAllocation()); -#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (_impl_.name_.IsDefault()) { - _impl_.name_.Set("", GetArenaForAllocation()); + _impl_.name_.SetAllocated(value, GetArena()); + if (::google::protobuf::internal::DebugHardenForceCopyDefaultString() && _impl_.name_.IsDefault()) { + _impl_.name_.Set("", GetArena()); } -#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING // @@protoc_insertion_point(field_set_allocated:Odb.Lib.Protobuf.ProductModel.Net.name) } // repeated .Odb.Lib.Protobuf.ProductModel.PinConnection pinConnections = 2; inline int Net::_internal_pinconnections_size() const { - return _impl_.pinconnections_.size(); + return _internal_pinconnections().size(); } inline int Net::pinconnections_size() const { return _internal_pinconnections_size(); } -inline ::Odb::Lib::Protobuf::ProductModel::PinConnection* Net::mutable_pinconnections(int index) { +inline ::Odb::Lib::Protobuf::ProductModel::PinConnection* Net::mutable_pinconnections(int index) + ABSL_ATTRIBUTE_LIFETIME_BOUND { // @@protoc_insertion_point(field_mutable:Odb.Lib.Protobuf.ProductModel.Net.pinConnections) - return _impl_.pinconnections_.Mutable(index); + return _internal_mutable_pinconnections()->Mutable(index); } -inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::Odb::Lib::Protobuf::ProductModel::PinConnection >* -Net::mutable_pinconnections() { +inline ::google::protobuf::RepeatedPtrField<::Odb::Lib::Protobuf::ProductModel::PinConnection>* Net::mutable_pinconnections() + ABSL_ATTRIBUTE_LIFETIME_BOUND { // @@protoc_insertion_point(field_mutable_list:Odb.Lib.Protobuf.ProductModel.Net.pinConnections) - return &_impl_.pinconnections_; + ::google::protobuf::internal::TSanWrite(&_impl_); + return _internal_mutable_pinconnections(); } -inline const ::Odb::Lib::Protobuf::ProductModel::PinConnection& Net::_internal_pinconnections(int index) const { - return _impl_.pinconnections_.Get(index); -} -inline const ::Odb::Lib::Protobuf::ProductModel::PinConnection& Net::pinconnections(int index) const { +inline const ::Odb::Lib::Protobuf::ProductModel::PinConnection& Net::pinconnections(int index) const + ABSL_ATTRIBUTE_LIFETIME_BOUND { // @@protoc_insertion_point(field_get:Odb.Lib.Protobuf.ProductModel.Net.pinConnections) - return _internal_pinconnections(index); -} -inline ::Odb::Lib::Protobuf::ProductModel::PinConnection* Net::_internal_add_pinconnections() { - return _impl_.pinconnections_.Add(); + return _internal_pinconnections().Get(index); } -inline ::Odb::Lib::Protobuf::ProductModel::PinConnection* Net::add_pinconnections() { - ::Odb::Lib::Protobuf::ProductModel::PinConnection* _add = _internal_add_pinconnections(); +inline ::Odb::Lib::Protobuf::ProductModel::PinConnection* Net::add_pinconnections() ABSL_ATTRIBUTE_LIFETIME_BOUND { + ::google::protobuf::internal::TSanWrite(&_impl_); + ::Odb::Lib::Protobuf::ProductModel::PinConnection* _add = _internal_mutable_pinconnections()->Add(); // @@protoc_insertion_point(field_add:Odb.Lib.Protobuf.ProductModel.Net.pinConnections) return _add; } -inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::Odb::Lib::Protobuf::ProductModel::PinConnection >& -Net::pinconnections() const { +inline const ::google::protobuf::RepeatedPtrField<::Odb::Lib::Protobuf::ProductModel::PinConnection>& Net::pinconnections() const + ABSL_ATTRIBUTE_LIFETIME_BOUND { // @@protoc_insertion_point(field_list:Odb.Lib.Protobuf.ProductModel.Net.pinConnections) + return _internal_pinconnections(); +} +inline const ::google::protobuf::RepeatedPtrField<::Odb::Lib::Protobuf::ProductModel::PinConnection>& +Net::_internal_pinconnections() const { + ::google::protobuf::internal::TSanRead(&_impl_); return _impl_.pinconnections_; } +inline ::google::protobuf::RepeatedPtrField<::Odb::Lib::Protobuf::ProductModel::PinConnection>* +Net::_internal_mutable_pinconnections() { + ::google::protobuf::internal::TSanRead(&_impl_); + return &_impl_.pinconnections_; +} // optional uint32 index = 3; -inline bool Net::_internal_has_index() const { +inline bool Net::has_index() const { bool value = (_impl_._has_bits_[0] & 0x00000002u) != 0; return value; } -inline bool Net::has_index() const { - return _internal_has_index(); -} inline void Net::clear_index() { + ::google::protobuf::internal::TSanWrite(&_impl_); _impl_.index_ = 0u; _impl_._has_bits_[0] &= ~0x00000002u; } -inline uint32_t Net::_internal_index() const { - return _impl_.index_; -} -inline uint32_t Net::index() const { +inline ::uint32_t Net::index() const { // @@protoc_insertion_point(field_get:Odb.Lib.Protobuf.ProductModel.Net.index) return _internal_index(); } -inline void Net::_internal_set_index(uint32_t value) { - _impl_._has_bits_[0] |= 0x00000002u; - _impl_.index_ = value; -} -inline void Net::set_index(uint32_t value) { +inline void Net::set_index(::uint32_t value) { _internal_set_index(value); + _impl_._has_bits_[0] |= 0x00000002u; // @@protoc_insertion_point(field_set:Odb.Lib.Protobuf.ProductModel.Net.index) } +inline ::uint32_t Net::_internal_index() const { + ::google::protobuf::internal::TSanRead(&_impl_); + return _impl_.index_; +} +inline void Net::_internal_set_index(::uint32_t value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.index_ = value; +} #ifdef __GNUC__ - #pragma GCC diagnostic pop +#pragma GCC diagnostic pop #endif // __GNUC__ // @@protoc_insertion_point(namespace_scope) - } // namespace ProductModel } // namespace Protobuf } // namespace Lib } // namespace Odb + // @@protoc_insertion_point(global_scope) -#include -#endif // GOOGLE_PROTOBUF_INCLUDED_GOOGLE_PROTOBUF_INCLUDED_net_2eproto +#include "google/protobuf/port_undef.inc" + +#endif // net_2eproto_2epb_2eh diff --git a/OdbDesignLib/ProtoBuf/netlistfile.pb.cc b/OdbDesignLib/ProtoBuf/netlistfile.pb.cc index a968f0de..8f887d25 100644 --- a/OdbDesignLib/ProtoBuf/netlistfile.pb.cc +++ b/OdbDesignLib/ProtoBuf/netlistfile.pb.cc @@ -1,284 +1,349 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE // source: netlistfile.proto +// Protobuf C++ Version: 5.29.2 #include "netlistfile.pb.h" #include - -#include -#include -#include -#include -#include -#include -#include +#include +#include "google/protobuf/io/coded_stream.h" +#include "google/protobuf/generated_message_tctable_impl.h" +#include "google/protobuf/extension_set.h" +#include "google/protobuf/generated_message_util.h" +#include "google/protobuf/wire_format_lite.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) -#include +// Must be included last. +#include "google/protobuf/port_def.inc" PROTOBUF_PRAGMA_INIT_SEG - -namespace _pb = ::PROTOBUF_NAMESPACE_ID; -namespace _pbi = _pb::internal; - +namespace _pb = ::google::protobuf; +namespace _pbi = ::google::protobuf::internal; +namespace _fl = ::google::protobuf::internal::field_layout; namespace Odb { namespace Lib { namespace Protobuf { -PROTOBUF_CONSTEXPR NetlistFile_NetRecord::NetlistFile_NetRecord( - ::_pbi::ConstantInitialized): _impl_{ - /*decltype(_impl_._has_bits_)*/{} - , /*decltype(_impl_._cached_size_)*/{} - , /*decltype(_impl_.netname_)*/{&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}} - , /*decltype(_impl_.serialnumber_)*/0u} {} + +inline constexpr NetlistFile_NetRecord::Impl_::Impl_( + ::_pbi::ConstantInitialized) noexcept + : _cached_size_{0}, + netname_( + &::google::protobuf::internal::fixed_address_empty_string, + ::_pbi::ConstantInitialized()), + serialnumber_{0u} {} + +template +PROTOBUF_CONSTEXPR NetlistFile_NetRecord::NetlistFile_NetRecord(::_pbi::ConstantInitialized) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : ::google::protobuf::Message(_class_data_.base()), +#else // PROTOBUF_CUSTOM_VTABLE + : ::google::protobuf::Message(), +#endif // PROTOBUF_CUSTOM_VTABLE + _impl_(::_pbi::ConstantInitialized()) { +} struct NetlistFile_NetRecordDefaultTypeInternal { - PROTOBUF_CONSTEXPR NetlistFile_NetRecordDefaultTypeInternal() - : _instance(::_pbi::ConstantInitialized{}) {} + PROTOBUF_CONSTEXPR NetlistFile_NetRecordDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} ~NetlistFile_NetRecordDefaultTypeInternal() {} union { NetlistFile_NetRecord _instance; }; }; -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 NetlistFile_NetRecordDefaultTypeInternal _NetlistFile_NetRecord_default_instance_; -PROTOBUF_CONSTEXPR NetlistFile_NetPointRecord::NetlistFile_NetPointRecord( - ::_pbi::ConstantInitialized): _impl_{ - /*decltype(_impl_._has_bits_)*/{} - , /*decltype(_impl_._cached_size_)*/{} - , /*decltype(_impl_.epoint_)*/{&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}} - , /*decltype(_impl_.exp_)*/{&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}} - , /*decltype(_impl_.testexecutionside_)*/{&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}} - , /*decltype(_impl_.netnumber_)*/0u - , /*decltype(_impl_.radius_)*/0 - , /*decltype(_impl_.x_)*/0 - , /*decltype(_impl_.y_)*/0 - , /*decltype(_impl_.side_)*/0 - , /*decltype(_impl_.width_)*/0 - , /*decltype(_impl_.height_)*/0 - , /*decltype(_impl_.commentpoint_)*/false - , /*decltype(_impl_.staggeredx_)*/0 - , /*decltype(_impl_.staggeredy_)*/0 - , /*decltype(_impl_.staggeredradius_)*/0 - , /*decltype(_impl_.viapoint_)*/0 - , /*decltype(_impl_.fiducialpoint_)*/0 - , /*decltype(_impl_.testpoint_)*/0} {} + +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT ODBDESIGN_EXPORT + PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 NetlistFile_NetRecordDefaultTypeInternal _NetlistFile_NetRecord_default_instance_; + +inline constexpr NetlistFile_NetPointRecord::Impl_::Impl_( + ::_pbi::ConstantInitialized) noexcept + : _cached_size_{0}, + epoint_( + &::google::protobuf::internal::fixed_address_empty_string, + ::_pbi::ConstantInitialized()), + exp_( + &::google::protobuf::internal::fixed_address_empty_string, + ::_pbi::ConstantInitialized()), + testexecutionside_( + &::google::protobuf::internal::fixed_address_empty_string, + ::_pbi::ConstantInitialized()), + netnumber_{0u}, + radius_{0}, + x_{0}, + y_{0}, + side_{static_cast< ::Odb::Lib::Protobuf::NetlistFile_NetPointRecord_AccessSide >(0)}, + width_{0}, + height_{0}, + commentpoint_{false}, + staggeredx_{0}, + staggeredy_{0}, + staggeredradius_{0}, + viapoint_{0}, + fiducialpoint_{0}, + testpoint_{0} {} + +template +PROTOBUF_CONSTEXPR NetlistFile_NetPointRecord::NetlistFile_NetPointRecord(::_pbi::ConstantInitialized) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : ::google::protobuf::Message(_class_data_.base()), +#else // PROTOBUF_CUSTOM_VTABLE + : ::google::protobuf::Message(), +#endif // PROTOBUF_CUSTOM_VTABLE + _impl_(::_pbi::ConstantInitialized()) { +} struct NetlistFile_NetPointRecordDefaultTypeInternal { - PROTOBUF_CONSTEXPR NetlistFile_NetPointRecordDefaultTypeInternal() - : _instance(::_pbi::ConstantInitialized{}) {} + PROTOBUF_CONSTEXPR NetlistFile_NetPointRecordDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} ~NetlistFile_NetPointRecordDefaultTypeInternal() {} union { NetlistFile_NetPointRecord _instance; }; }; -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 NetlistFile_NetPointRecordDefaultTypeInternal _NetlistFile_NetPointRecord_default_instance_; -PROTOBUF_CONSTEXPR NetlistFile_NetRecordsByNameEntry_DoNotUse::NetlistFile_NetRecordsByNameEntry_DoNotUse( - ::_pbi::ConstantInitialized) {} + +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT ODBDESIGN_EXPORT + PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 NetlistFile_NetPointRecordDefaultTypeInternal _NetlistFile_NetPointRecord_default_instance_; + template +PROTOBUF_CONSTEXPR NetlistFile_NetRecordsByNameEntry_DoNotUse::NetlistFile_NetRecordsByNameEntry_DoNotUse(::_pbi::ConstantInitialized) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : NetlistFile_NetRecordsByNameEntry_DoNotUse::MapEntry(_class_data_.base()){} +#else // PROTOBUF_CUSTOM_VTABLE + : NetlistFile_NetRecordsByNameEntry_DoNotUse::MapEntry() { +} +#endif // PROTOBUF_CUSTOM_VTABLE struct NetlistFile_NetRecordsByNameEntry_DoNotUseDefaultTypeInternal { - PROTOBUF_CONSTEXPR NetlistFile_NetRecordsByNameEntry_DoNotUseDefaultTypeInternal() - : _instance(::_pbi::ConstantInitialized{}) {} + PROTOBUF_CONSTEXPR NetlistFile_NetRecordsByNameEntry_DoNotUseDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} ~NetlistFile_NetRecordsByNameEntry_DoNotUseDefaultTypeInternal() {} union { NetlistFile_NetRecordsByNameEntry_DoNotUse _instance; }; }; -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 NetlistFile_NetRecordsByNameEntry_DoNotUseDefaultTypeInternal _NetlistFile_NetRecordsByNameEntry_DoNotUse_default_instance_; -PROTOBUF_CONSTEXPR NetlistFile::NetlistFile( - ::_pbi::ConstantInitialized): _impl_{ - /*decltype(_impl_._has_bits_)*/{} - , /*decltype(_impl_._cached_size_)*/{} - , /*decltype(_impl_.netrecordss_)*/{} - , /*decltype(_impl_.netrecordsbyname_)*/{::_pbi::ConstantInitialized()} - , /*decltype(_impl_.netpointrecords_)*/{} - , /*decltype(_impl_.path_)*/{&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}} - , /*decltype(_impl_.name_)*/{&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}} - , /*decltype(_impl_.units_)*/{&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}} - , /*decltype(_impl_.optimized_)*/false - , /*decltype(_impl_.staggered_)*/0} {} + +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT ODBDESIGN_EXPORT + PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 NetlistFile_NetRecordsByNameEntry_DoNotUseDefaultTypeInternal _NetlistFile_NetRecordsByNameEntry_DoNotUse_default_instance_; + +inline constexpr NetlistFile::Impl_::Impl_( + ::_pbi::ConstantInitialized) noexcept + : _cached_size_{0}, + netrecordss_{}, + netrecordsbyname_{}, + netpointrecords_{}, + path_( + &::google::protobuf::internal::fixed_address_empty_string, + ::_pbi::ConstantInitialized()), + name_( + &::google::protobuf::internal::fixed_address_empty_string, + ::_pbi::ConstantInitialized()), + units_( + &::google::protobuf::internal::fixed_address_empty_string, + ::_pbi::ConstantInitialized()), + optimized_{false}, + staggered_{static_cast< ::Odb::Lib::Protobuf::NetlistFile_Staggered >(0)} {} + +template +PROTOBUF_CONSTEXPR NetlistFile::NetlistFile(::_pbi::ConstantInitialized) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : ::google::protobuf::Message(_class_data_.base()), +#else // PROTOBUF_CUSTOM_VTABLE + : ::google::protobuf::Message(), +#endif // PROTOBUF_CUSTOM_VTABLE + _impl_(::_pbi::ConstantInitialized()) { +} struct NetlistFileDefaultTypeInternal { - PROTOBUF_CONSTEXPR NetlistFileDefaultTypeInternal() - : _instance(::_pbi::ConstantInitialized{}) {} + PROTOBUF_CONSTEXPR NetlistFileDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} ~NetlistFileDefaultTypeInternal() {} union { NetlistFile _instance; }; }; -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 NetlistFileDefaultTypeInternal _NetlistFile_default_instance_; + +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT ODBDESIGN_EXPORT + PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 NetlistFileDefaultTypeInternal _NetlistFile_default_instance_; } // namespace Protobuf } // namespace Lib } // namespace Odb -static ::_pb::Metadata file_level_metadata_netlistfile_2eproto[4]; static const ::_pb::EnumDescriptor* file_level_enum_descriptors_netlistfile_2eproto[2]; -static constexpr ::_pb::ServiceDescriptor const** file_level_service_descriptors_netlistfile_2eproto = nullptr; - -const uint32_t TableStruct_netlistfile_2eproto::offsets[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = { - PROTOBUF_FIELD_OFFSET(::Odb::Lib::Protobuf::NetlistFile_NetRecord, _impl_._has_bits_), - PROTOBUF_FIELD_OFFSET(::Odb::Lib::Protobuf::NetlistFile_NetRecord, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - ~0u, // no _inlined_string_donated_ - PROTOBUF_FIELD_OFFSET(::Odb::Lib::Protobuf::NetlistFile_NetRecord, _impl_.serialnumber_), - PROTOBUF_FIELD_OFFSET(::Odb::Lib::Protobuf::NetlistFile_NetRecord, _impl_.netname_), - 1, - 0, - PROTOBUF_FIELD_OFFSET(::Odb::Lib::Protobuf::NetlistFile_NetPointRecord, _impl_._has_bits_), - PROTOBUF_FIELD_OFFSET(::Odb::Lib::Protobuf::NetlistFile_NetPointRecord, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - ~0u, // no _inlined_string_donated_ - PROTOBUF_FIELD_OFFSET(::Odb::Lib::Protobuf::NetlistFile_NetPointRecord, _impl_.netnumber_), - PROTOBUF_FIELD_OFFSET(::Odb::Lib::Protobuf::NetlistFile_NetPointRecord, _impl_.radius_), - PROTOBUF_FIELD_OFFSET(::Odb::Lib::Protobuf::NetlistFile_NetPointRecord, _impl_.x_), - PROTOBUF_FIELD_OFFSET(::Odb::Lib::Protobuf::NetlistFile_NetPointRecord, _impl_.y_), - PROTOBUF_FIELD_OFFSET(::Odb::Lib::Protobuf::NetlistFile_NetPointRecord, _impl_.side_), - PROTOBUF_FIELD_OFFSET(::Odb::Lib::Protobuf::NetlistFile_NetPointRecord, _impl_.width_), - PROTOBUF_FIELD_OFFSET(::Odb::Lib::Protobuf::NetlistFile_NetPointRecord, _impl_.height_), - PROTOBUF_FIELD_OFFSET(::Odb::Lib::Protobuf::NetlistFile_NetPointRecord, _impl_.epoint_), - PROTOBUF_FIELD_OFFSET(::Odb::Lib::Protobuf::NetlistFile_NetPointRecord, _impl_.exp_), - PROTOBUF_FIELD_OFFSET(::Odb::Lib::Protobuf::NetlistFile_NetPointRecord, _impl_.commentpoint_), - PROTOBUF_FIELD_OFFSET(::Odb::Lib::Protobuf::NetlistFile_NetPointRecord, _impl_.staggeredx_), - PROTOBUF_FIELD_OFFSET(::Odb::Lib::Protobuf::NetlistFile_NetPointRecord, _impl_.staggeredy_), - PROTOBUF_FIELD_OFFSET(::Odb::Lib::Protobuf::NetlistFile_NetPointRecord, _impl_.staggeredradius_), - PROTOBUF_FIELD_OFFSET(::Odb::Lib::Protobuf::NetlistFile_NetPointRecord, _impl_.viapoint_), - PROTOBUF_FIELD_OFFSET(::Odb::Lib::Protobuf::NetlistFile_NetPointRecord, _impl_.fiducialpoint_), - PROTOBUF_FIELD_OFFSET(::Odb::Lib::Protobuf::NetlistFile_NetPointRecord, _impl_.testpoint_), - PROTOBUF_FIELD_OFFSET(::Odb::Lib::Protobuf::NetlistFile_NetPointRecord, _impl_.testexecutionside_), - 3, - 4, - 5, - 6, - 7, - 8, - 9, - 0, - 1, - 10, - 11, - 12, - 13, - 14, - 15, - 16, - 2, - PROTOBUF_FIELD_OFFSET(::Odb::Lib::Protobuf::NetlistFile_NetRecordsByNameEntry_DoNotUse, _has_bits_), - PROTOBUF_FIELD_OFFSET(::Odb::Lib::Protobuf::NetlistFile_NetRecordsByNameEntry_DoNotUse, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - ~0u, // no _inlined_string_donated_ - PROTOBUF_FIELD_OFFSET(::Odb::Lib::Protobuf::NetlistFile_NetRecordsByNameEntry_DoNotUse, key_), - PROTOBUF_FIELD_OFFSET(::Odb::Lib::Protobuf::NetlistFile_NetRecordsByNameEntry_DoNotUse, value_), - 0, - 1, - PROTOBUF_FIELD_OFFSET(::Odb::Lib::Protobuf::NetlistFile, _impl_._has_bits_), - PROTOBUF_FIELD_OFFSET(::Odb::Lib::Protobuf::NetlistFile, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - ~0u, // no _inlined_string_donated_ - PROTOBUF_FIELD_OFFSET(::Odb::Lib::Protobuf::NetlistFile, _impl_.path_), - PROTOBUF_FIELD_OFFSET(::Odb::Lib::Protobuf::NetlistFile, _impl_.name_), - PROTOBUF_FIELD_OFFSET(::Odb::Lib::Protobuf::NetlistFile, _impl_.units_), - PROTOBUF_FIELD_OFFSET(::Odb::Lib::Protobuf::NetlistFile, _impl_.optimized_), - PROTOBUF_FIELD_OFFSET(::Odb::Lib::Protobuf::NetlistFile, _impl_.staggered_), - PROTOBUF_FIELD_OFFSET(::Odb::Lib::Protobuf::NetlistFile, _impl_.netrecordss_), - PROTOBUF_FIELD_OFFSET(::Odb::Lib::Protobuf::NetlistFile, _impl_.netrecordsbyname_), - PROTOBUF_FIELD_OFFSET(::Odb::Lib::Protobuf::NetlistFile, _impl_.netpointrecords_), - 0, - 1, - 2, - 3, - 4, - ~0u, - ~0u, - ~0u, -}; -static const ::_pbi::MigrationSchema schemas[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = { - { 0, 8, -1, sizeof(::Odb::Lib::Protobuf::NetlistFile_NetRecord)}, - { 10, 33, -1, sizeof(::Odb::Lib::Protobuf::NetlistFile_NetPointRecord)}, - { 50, 58, -1, sizeof(::Odb::Lib::Protobuf::NetlistFile_NetRecordsByNameEntry_DoNotUse)}, - { 60, 74, -1, sizeof(::Odb::Lib::Protobuf::NetlistFile)}, +static constexpr const ::_pb::ServiceDescriptor** + file_level_service_descriptors_netlistfile_2eproto = nullptr; +const ::uint32_t + TableStruct_netlistfile_2eproto::offsets[] ABSL_ATTRIBUTE_SECTION_VARIABLE( + protodesc_cold) = { + PROTOBUF_FIELD_OFFSET(::Odb::Lib::Protobuf::NetlistFile_NetRecord, _impl_._has_bits_), + PROTOBUF_FIELD_OFFSET(::Odb::Lib::Protobuf::NetlistFile_NetRecord, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + ~0u, // no _split_ + ~0u, // no sizeof(Split) + PROTOBUF_FIELD_OFFSET(::Odb::Lib::Protobuf::NetlistFile_NetRecord, _impl_.serialnumber_), + PROTOBUF_FIELD_OFFSET(::Odb::Lib::Protobuf::NetlistFile_NetRecord, _impl_.netname_), + 1, + 0, + PROTOBUF_FIELD_OFFSET(::Odb::Lib::Protobuf::NetlistFile_NetPointRecord, _impl_._has_bits_), + PROTOBUF_FIELD_OFFSET(::Odb::Lib::Protobuf::NetlistFile_NetPointRecord, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + ~0u, // no _split_ + ~0u, // no sizeof(Split) + PROTOBUF_FIELD_OFFSET(::Odb::Lib::Protobuf::NetlistFile_NetPointRecord, _impl_.netnumber_), + PROTOBUF_FIELD_OFFSET(::Odb::Lib::Protobuf::NetlistFile_NetPointRecord, _impl_.radius_), + PROTOBUF_FIELD_OFFSET(::Odb::Lib::Protobuf::NetlistFile_NetPointRecord, _impl_.x_), + PROTOBUF_FIELD_OFFSET(::Odb::Lib::Protobuf::NetlistFile_NetPointRecord, _impl_.y_), + PROTOBUF_FIELD_OFFSET(::Odb::Lib::Protobuf::NetlistFile_NetPointRecord, _impl_.side_), + PROTOBUF_FIELD_OFFSET(::Odb::Lib::Protobuf::NetlistFile_NetPointRecord, _impl_.width_), + PROTOBUF_FIELD_OFFSET(::Odb::Lib::Protobuf::NetlistFile_NetPointRecord, _impl_.height_), + PROTOBUF_FIELD_OFFSET(::Odb::Lib::Protobuf::NetlistFile_NetPointRecord, _impl_.epoint_), + PROTOBUF_FIELD_OFFSET(::Odb::Lib::Protobuf::NetlistFile_NetPointRecord, _impl_.exp_), + PROTOBUF_FIELD_OFFSET(::Odb::Lib::Protobuf::NetlistFile_NetPointRecord, _impl_.commentpoint_), + PROTOBUF_FIELD_OFFSET(::Odb::Lib::Protobuf::NetlistFile_NetPointRecord, _impl_.staggeredx_), + PROTOBUF_FIELD_OFFSET(::Odb::Lib::Protobuf::NetlistFile_NetPointRecord, _impl_.staggeredy_), + PROTOBUF_FIELD_OFFSET(::Odb::Lib::Protobuf::NetlistFile_NetPointRecord, _impl_.staggeredradius_), + PROTOBUF_FIELD_OFFSET(::Odb::Lib::Protobuf::NetlistFile_NetPointRecord, _impl_.viapoint_), + PROTOBUF_FIELD_OFFSET(::Odb::Lib::Protobuf::NetlistFile_NetPointRecord, _impl_.fiducialpoint_), + PROTOBUF_FIELD_OFFSET(::Odb::Lib::Protobuf::NetlistFile_NetPointRecord, _impl_.testpoint_), + PROTOBUF_FIELD_OFFSET(::Odb::Lib::Protobuf::NetlistFile_NetPointRecord, _impl_.testexecutionside_), + 3, + 4, + 5, + 6, + 7, + 8, + 9, + 0, + 1, + 10, + 11, + 12, + 13, + 14, + 15, + 16, + 2, + PROTOBUF_FIELD_OFFSET(::Odb::Lib::Protobuf::NetlistFile_NetRecordsByNameEntry_DoNotUse, _impl_._has_bits_), + PROTOBUF_FIELD_OFFSET(::Odb::Lib::Protobuf::NetlistFile_NetRecordsByNameEntry_DoNotUse, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + ~0u, // no _split_ + ~0u, // no sizeof(Split) + PROTOBUF_FIELD_OFFSET(::Odb::Lib::Protobuf::NetlistFile_NetRecordsByNameEntry_DoNotUse, _impl_.key_), + PROTOBUF_FIELD_OFFSET(::Odb::Lib::Protobuf::NetlistFile_NetRecordsByNameEntry_DoNotUse, _impl_.value_), + 0, + 1, + PROTOBUF_FIELD_OFFSET(::Odb::Lib::Protobuf::NetlistFile, _impl_._has_bits_), + PROTOBUF_FIELD_OFFSET(::Odb::Lib::Protobuf::NetlistFile, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + ~0u, // no _split_ + ~0u, // no sizeof(Split) + PROTOBUF_FIELD_OFFSET(::Odb::Lib::Protobuf::NetlistFile, _impl_.path_), + PROTOBUF_FIELD_OFFSET(::Odb::Lib::Protobuf::NetlistFile, _impl_.name_), + PROTOBUF_FIELD_OFFSET(::Odb::Lib::Protobuf::NetlistFile, _impl_.units_), + PROTOBUF_FIELD_OFFSET(::Odb::Lib::Protobuf::NetlistFile, _impl_.optimized_), + PROTOBUF_FIELD_OFFSET(::Odb::Lib::Protobuf::NetlistFile, _impl_.staggered_), + PROTOBUF_FIELD_OFFSET(::Odb::Lib::Protobuf::NetlistFile, _impl_.netrecordss_), + PROTOBUF_FIELD_OFFSET(::Odb::Lib::Protobuf::NetlistFile, _impl_.netrecordsbyname_), + PROTOBUF_FIELD_OFFSET(::Odb::Lib::Protobuf::NetlistFile, _impl_.netpointrecords_), + 0, + 1, + 2, + 3, + 4, + ~0u, + ~0u, + ~0u, }; +static const ::_pbi::MigrationSchema + schemas[] ABSL_ATTRIBUTE_SECTION_VARIABLE(protodesc_cold) = { + {0, 10, -1, sizeof(::Odb::Lib::Protobuf::NetlistFile_NetRecord)}, + {12, 37, -1, sizeof(::Odb::Lib::Protobuf::NetlistFile_NetPointRecord)}, + {54, 64, -1, sizeof(::Odb::Lib::Protobuf::NetlistFile_NetRecordsByNameEntry_DoNotUse)}, + {66, 82, -1, sizeof(::Odb::Lib::Protobuf::NetlistFile)}, +}; static const ::_pb::Message* const file_default_instances[] = { - &::Odb::Lib::Protobuf::_NetlistFile_NetRecord_default_instance_._instance, - &::Odb::Lib::Protobuf::_NetlistFile_NetPointRecord_default_instance_._instance, - &::Odb::Lib::Protobuf::_NetlistFile_NetRecordsByNameEntry_DoNotUse_default_instance_._instance, - &::Odb::Lib::Protobuf::_NetlistFile_default_instance_._instance, + &::Odb::Lib::Protobuf::_NetlistFile_NetRecord_default_instance_._instance, + &::Odb::Lib::Protobuf::_NetlistFile_NetPointRecord_default_instance_._instance, + &::Odb::Lib::Protobuf::_NetlistFile_NetRecordsByNameEntry_DoNotUse_default_instance_._instance, + &::Odb::Lib::Protobuf::_NetlistFile_default_instance_._instance, }; - -const char descriptor_table_protodef_netlistfile_2eproto[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = - "\n\021netlistfile.proto\022\020Odb.Lib.Protobuf\"\370\n" - "\n\013NetlistFile\022\021\n\004path\030\001 \001(\tH\000\210\001\001\022\021\n\004name" - "\030\002 \001(\tH\001\210\001\001\022\022\n\005units\030\003 \001(\tH\002\210\001\001\022\026\n\toptim" - "ized\030\004 \001(\010H\003\210\001\001\022\?\n\tstaggered\030\005 \001(\0162\'.Odb" - ".Lib.Protobuf.NetlistFile.StaggeredH\004\210\001\001" - "\022<\n\013netRecordss\030\006 \003(\0132\'.Odb.Lib.Protobuf" - ".NetlistFile.NetRecord\022M\n\020netRecordsByNa" - "me\030\007 \003(\01323.Odb.Lib.Protobuf.NetlistFile." - "NetRecordsByNameEntry\022E\n\017netPointRecords" - "\030\010 \003(\0132,.Odb.Lib.Protobuf.NetlistFile.Ne" - "tPointRecord\032Y\n\tNetRecord\022\031\n\014serialNumbe" - "r\030\001 \001(\rH\000\210\001\001\022\024\n\007netName\030\002 \001(\tH\001\210\001\001B\017\n\r_s" - "erialNumberB\n\n\010_netName\032\341\005\n\016NetPointReco" - "rd\022\026\n\tnetNumber\030\001 \001(\rH\000\210\001\001\022\023\n\006radius\030\002 \001" - "(\002H\001\210\001\001\022\016\n\001x\030\003 \001(\002H\002\210\001\001\022\016\n\001y\030\004 \001(\002H\003\210\001\001\022" - "J\n\004side\030\005 \001(\01627.Odb.Lib.Protobuf.Netlist" - "File.NetPointRecord.AccessSideH\004\210\001\001\022\022\n\005w" - "idth\030\006 \001(\002H\005\210\001\001\022\023\n\006height\030\007 \001(\002H\006\210\001\001\022\023\n\006" - "epoint\030\010 \001(\tH\007\210\001\001\022\020\n\003exp\030\t \001(\tH\010\210\001\001\022\031\n\014c" - "ommentPoint\030\n \001(\010H\t\210\001\001\022\027\n\nstaggeredX\030\013 \001" - "(\002H\n\210\001\001\022\027\n\nstaggeredY\030\014 \001(\002H\013\210\001\001\022\034\n\017stag" - "geredRadius\030\r \001(\002H\014\210\001\001\022\025\n\010viaPoint\030\016 \001(\002" - "H\r\210\001\001\022\032\n\rfiducialPoint\030\017 \001(\002H\016\210\001\001\022\026\n\ttes" - "tPoint\030\020 \001(\002H\017\210\001\001\022\036\n\021testExecutionSide\030\021" - " \001(\tH\020\210\001\001\"4\n\nAccessSide\022\007\n\003Top\020\000\022\010\n\004Down" - "\020\001\022\010\n\004Both\020\002\022\t\n\005Inner\020\003B\014\n\n_netNumberB\t\n" - "\007_radiusB\004\n\002_xB\004\n\002_yB\007\n\005_sideB\010\n\006_widthB" - "\t\n\007_heightB\t\n\007_epointB\006\n\004_expB\017\n\r_commen" - "tPointB\r\n\013_staggeredXB\r\n\013_staggeredYB\022\n\020" - "_staggeredRadiusB\013\n\t_viaPointB\020\n\016_fiduci" - "alPointB\014\n\n_testPointB\024\n\022_testExecutionS" - "ide\032`\n\025NetRecordsByNameEntry\022\013\n\003key\030\001 \001(" - "\t\0226\n\005value\030\002 \001(\0132\'.Odb.Lib.Protobuf.Netl" - "istFile.NetRecord:\0028\001\")\n\tStaggered\022\007\n\003Ye" - "s\020\000\022\006\n\002No\020\001\022\013\n\007Unknown\020\002B\007\n\005_pathB\007\n\005_na" - "meB\010\n\006_unitsB\014\n\n_optimizedB\014\n\n_staggered" - "b\006proto3" - ; -static ::_pbi::once_flag descriptor_table_netlistfile_2eproto_once; -const ::_pbi::DescriptorTable descriptor_table_netlistfile_2eproto = { - false, false, 1448, descriptor_table_protodef_netlistfile_2eproto, +const char descriptor_table_protodef_netlistfile_2eproto[] ABSL_ATTRIBUTE_SECTION_VARIABLE( + protodesc_cold) = { + "\n\021netlistfile.proto\022\020Odb.Lib.Protobuf\"\370\n" + "\n\013NetlistFile\022\021\n\004path\030\001 \001(\tH\000\210\001\001\022\021\n\004name" + "\030\002 \001(\tH\001\210\001\001\022\022\n\005units\030\003 \001(\tH\002\210\001\001\022\026\n\toptim" + "ized\030\004 \001(\010H\003\210\001\001\022\?\n\tstaggered\030\005 \001(\0162\'.Odb" + ".Lib.Protobuf.NetlistFile.StaggeredH\004\210\001\001" + "\022<\n\013netRecordss\030\006 \003(\0132\'.Odb.Lib.Protobuf" + ".NetlistFile.NetRecord\022M\n\020netRecordsByNa" + "me\030\007 \003(\01323.Odb.Lib.Protobuf.NetlistFile." + "NetRecordsByNameEntry\022E\n\017netPointRecords" + "\030\010 \003(\0132,.Odb.Lib.Protobuf.NetlistFile.Ne" + "tPointRecord\032Y\n\tNetRecord\022\031\n\014serialNumbe" + "r\030\001 \001(\rH\000\210\001\001\022\024\n\007netName\030\002 \001(\tH\001\210\001\001B\017\n\r_s" + "erialNumberB\n\n\010_netName\032\341\005\n\016NetPointReco" + "rd\022\026\n\tnetNumber\030\001 \001(\rH\000\210\001\001\022\023\n\006radius\030\002 \001" + "(\002H\001\210\001\001\022\016\n\001x\030\003 \001(\002H\002\210\001\001\022\016\n\001y\030\004 \001(\002H\003\210\001\001\022" + "J\n\004side\030\005 \001(\01627.Odb.Lib.Protobuf.Netlist" + "File.NetPointRecord.AccessSideH\004\210\001\001\022\022\n\005w" + "idth\030\006 \001(\002H\005\210\001\001\022\023\n\006height\030\007 \001(\002H\006\210\001\001\022\023\n\006" + "epoint\030\010 \001(\tH\007\210\001\001\022\020\n\003exp\030\t \001(\tH\010\210\001\001\022\031\n\014c" + "ommentPoint\030\n \001(\010H\t\210\001\001\022\027\n\nstaggeredX\030\013 \001" + "(\002H\n\210\001\001\022\027\n\nstaggeredY\030\014 \001(\002H\013\210\001\001\022\034\n\017stag" + "geredRadius\030\r \001(\002H\014\210\001\001\022\025\n\010viaPoint\030\016 \001(\002" + "H\r\210\001\001\022\032\n\rfiducialPoint\030\017 \001(\002H\016\210\001\001\022\026\n\ttes" + "tPoint\030\020 \001(\002H\017\210\001\001\022\036\n\021testExecutionSide\030\021" + " \001(\tH\020\210\001\001\"4\n\nAccessSide\022\007\n\003Top\020\000\022\010\n\004Down" + "\020\001\022\010\n\004Both\020\002\022\t\n\005Inner\020\003B\014\n\n_netNumberB\t\n" + "\007_radiusB\004\n\002_xB\004\n\002_yB\007\n\005_sideB\010\n\006_widthB" + "\t\n\007_heightB\t\n\007_epointB\006\n\004_expB\017\n\r_commen" + "tPointB\r\n\013_staggeredXB\r\n\013_staggeredYB\022\n\020" + "_staggeredRadiusB\013\n\t_viaPointB\020\n\016_fiduci" + "alPointB\014\n\n_testPointB\024\n\022_testExecutionS" + "ide\032`\n\025NetRecordsByNameEntry\022\013\n\003key\030\001 \001(" + "\t\0226\n\005value\030\002 \001(\0132\'.Odb.Lib.Protobuf.Netl" + "istFile.NetRecord:\0028\001\")\n\tStaggered\022\007\n\003Ye" + "s\020\000\022\006\n\002No\020\001\022\013\n\007Unknown\020\002B\007\n\005_pathB\007\n\005_na" + "meB\010\n\006_unitsB\014\n\n_optimizedB\014\n\n_staggered" + "b\006proto3" +}; +static ::absl::once_flag descriptor_table_netlistfile_2eproto_once; +PROTOBUF_CONSTINIT const ::_pbi::DescriptorTable descriptor_table_netlistfile_2eproto = { + false, + false, + 1448, + descriptor_table_protodef_netlistfile_2eproto, "netlistfile.proto", - &descriptor_table_netlistfile_2eproto_once, nullptr, 0, 4, - schemas, file_default_instances, TableStruct_netlistfile_2eproto::offsets, - file_level_metadata_netlistfile_2eproto, file_level_enum_descriptors_netlistfile_2eproto, + &descriptor_table_netlistfile_2eproto_once, + nullptr, + 0, + 4, + schemas, + file_default_instances, + TableStruct_netlistfile_2eproto::offsets, + file_level_enum_descriptors_netlistfile_2eproto, file_level_service_descriptors_netlistfile_2eproto, }; -PROTOBUF_ATTRIBUTE_WEAK const ::_pbi::DescriptorTable* descriptor_table_netlistfile_2eproto_getter() { - return &descriptor_table_netlistfile_2eproto; -} - -// Force running AddDescriptors() at dynamic initialization time. -PROTOBUF_ATTRIBUTE_INIT_PRIORITY2 static ::_pbi::AddDescriptorsRunner dynamic_init_dummy_netlistfile_2eproto(&descriptor_table_netlistfile_2eproto); namespace Odb { namespace Lib { namespace Protobuf { -const ::PROTOBUF_NAMESPACE_ID::EnumDescriptor* NetlistFile_NetPointRecord_AccessSide_descriptor() { - ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(&descriptor_table_netlistfile_2eproto); +const ::google::protobuf::EnumDescriptor* NetlistFile_NetPointRecord_AccessSide_descriptor() { + ::google::protobuf::internal::AssignDescriptors(&descriptor_table_netlistfile_2eproto); return file_level_enum_descriptors_netlistfile_2eproto[0]; } +PROTOBUF_CONSTINIT const uint32_t NetlistFile_NetPointRecord_AccessSide_internal_data_[] = { + 262144u, 0u, }; bool NetlistFile_NetPointRecord_AccessSide_IsValid(int value) { - switch (value) { - case 0: - case 1: - case 2: - case 3: - return true; - default: - return false; - } + return 0 <= value && value <= 3; } +#if (__cplusplus < 201703) && \ + (!defined(_MSC_VER) || (_MSC_VER >= 1900 && _MSC_VER < 1912)) -#if (__cplusplus < 201703) && (!defined(_MSC_VER) || (_MSC_VER >= 1900 && _MSC_VER < 1912)) constexpr NetlistFile_NetPointRecord_AccessSide NetlistFile_NetPointRecord::Top; constexpr NetlistFile_NetPointRecord_AccessSide NetlistFile_NetPointRecord::Down; constexpr NetlistFile_NetPointRecord_AccessSide NetlistFile_NetPointRecord::Both; @@ -286,109 +351,177 @@ constexpr NetlistFile_NetPointRecord_AccessSide NetlistFile_NetPointRecord::Inne constexpr NetlistFile_NetPointRecord_AccessSide NetlistFile_NetPointRecord::AccessSide_MIN; constexpr NetlistFile_NetPointRecord_AccessSide NetlistFile_NetPointRecord::AccessSide_MAX; constexpr int NetlistFile_NetPointRecord::AccessSide_ARRAYSIZE; -#endif // (__cplusplus < 201703) && (!defined(_MSC_VER) || (_MSC_VER >= 1900 && _MSC_VER < 1912)) -const ::PROTOBUF_NAMESPACE_ID::EnumDescriptor* NetlistFile_Staggered_descriptor() { - ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(&descriptor_table_netlistfile_2eproto); + +#endif // (__cplusplus < 201703) && + // (!defined(_MSC_VER) || (_MSC_VER >= 1900 && _MSC_VER < 1912)) +const ::google::protobuf::EnumDescriptor* NetlistFile_Staggered_descriptor() { + ::google::protobuf::internal::AssignDescriptors(&descriptor_table_netlistfile_2eproto); return file_level_enum_descriptors_netlistfile_2eproto[1]; } +PROTOBUF_CONSTINIT const uint32_t NetlistFile_Staggered_internal_data_[] = { + 196608u, 0u, }; bool NetlistFile_Staggered_IsValid(int value) { - switch (value) { - case 0: - case 1: - case 2: - return true; - default: - return false; - } + return 0 <= value && value <= 2; } +#if (__cplusplus < 201703) && \ + (!defined(_MSC_VER) || (_MSC_VER >= 1900 && _MSC_VER < 1912)) -#if (__cplusplus < 201703) && (!defined(_MSC_VER) || (_MSC_VER >= 1900 && _MSC_VER < 1912)) constexpr NetlistFile_Staggered NetlistFile::Yes; constexpr NetlistFile_Staggered NetlistFile::No; constexpr NetlistFile_Staggered NetlistFile::Unknown; constexpr NetlistFile_Staggered NetlistFile::Staggered_MIN; constexpr NetlistFile_Staggered NetlistFile::Staggered_MAX; constexpr int NetlistFile::Staggered_ARRAYSIZE; -#endif // (__cplusplus < 201703) && (!defined(_MSC_VER) || (_MSC_VER >= 1900 && _MSC_VER < 1912)) +#endif // (__cplusplus < 201703) && + // (!defined(_MSC_VER) || (_MSC_VER >= 1900 && _MSC_VER < 1912)) // =================================================================== class NetlistFile_NetRecord::_Internal { public: - using HasBits = decltype(std::declval()._impl_._has_bits_); - static void set_has_serialnumber(HasBits* has_bits) { - (*has_bits)[0] |= 2u; - } - static void set_has_netname(HasBits* has_bits) { - (*has_bits)[0] |= 1u; - } + using HasBits = + decltype(std::declval()._impl_._has_bits_); + static constexpr ::int32_t kHasBitsOffset = + 8 * PROTOBUF_FIELD_OFFSET(NetlistFile_NetRecord, _impl_._has_bits_); }; -NetlistFile_NetRecord::NetlistFile_NetRecord(::PROTOBUF_NAMESPACE_ID::Arena* arena, - bool is_message_owned) - : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned) { - SharedCtor(arena, is_message_owned); +NetlistFile_NetRecord::NetlistFile_NetRecord(::google::protobuf::Arena* arena) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : ::google::protobuf::Message(arena, _class_data_.base()) { +#else // PROTOBUF_CUSTOM_VTABLE + : ::google::protobuf::Message(arena) { +#endif // PROTOBUF_CUSTOM_VTABLE + SharedCtor(arena); // @@protoc_insertion_point(arena_constructor:Odb.Lib.Protobuf.NetlistFile.NetRecord) } -NetlistFile_NetRecord::NetlistFile_NetRecord(const NetlistFile_NetRecord& from) - : ::PROTOBUF_NAMESPACE_ID::Message() { - NetlistFile_NetRecord* const _this = this; (void)_this; - new (&_impl_) Impl_{ - decltype(_impl_._has_bits_){from._impl_._has_bits_} - , /*decltype(_impl_._cached_size_)*/{} - , decltype(_impl_.netname_){} - , decltype(_impl_.serialnumber_){}}; - - _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); - _impl_.netname_.InitDefault(); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - _impl_.netname_.Set("", GetArenaForAllocation()); - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (from._internal_has_netname()) { - _this->_impl_.netname_.Set(from._internal_netname(), - _this->GetArenaForAllocation()); - } - _this->_impl_.serialnumber_ = from._impl_.serialnumber_; +inline PROTOBUF_NDEBUG_INLINE NetlistFile_NetRecord::Impl_::Impl_( + ::google::protobuf::internal::InternalVisibility visibility, ::google::protobuf::Arena* arena, + const Impl_& from, const ::Odb::Lib::Protobuf::NetlistFile_NetRecord& from_msg) + : _has_bits_{from._has_bits_}, + _cached_size_{0}, + netname_(arena, from.netname_) {} + +NetlistFile_NetRecord::NetlistFile_NetRecord( + ::google::protobuf::Arena* arena, + const NetlistFile_NetRecord& from) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : ::google::protobuf::Message(arena, _class_data_.base()) { +#else // PROTOBUF_CUSTOM_VTABLE + : ::google::protobuf::Message(arena) { +#endif // PROTOBUF_CUSTOM_VTABLE + NetlistFile_NetRecord* const _this = this; + (void)_this; + _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( + from._internal_metadata_); + new (&_impl_) Impl_(internal_visibility(), arena, from._impl_, from); + _impl_.serialnumber_ = from._impl_.serialnumber_; + // @@protoc_insertion_point(copy_constructor:Odb.Lib.Protobuf.NetlistFile.NetRecord) } - -inline void NetlistFile_NetRecord::SharedCtor( - ::_pb::Arena* arena, bool is_message_owned) { - (void)arena; - (void)is_message_owned; - new (&_impl_) Impl_{ - decltype(_impl_._has_bits_){} - , /*decltype(_impl_._cached_size_)*/{} - , decltype(_impl_.netname_){} - , decltype(_impl_.serialnumber_){0u} - }; - _impl_.netname_.InitDefault(); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - _impl_.netname_.Set("", GetArenaForAllocation()); - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING +inline PROTOBUF_NDEBUG_INLINE NetlistFile_NetRecord::Impl_::Impl_( + ::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* arena) + : _cached_size_{0}, + netname_(arena) {} + +inline void NetlistFile_NetRecord::SharedCtor(::_pb::Arena* arena) { + new (&_impl_) Impl_(internal_visibility(), arena); + _impl_.serialnumber_ = {}; } - NetlistFile_NetRecord::~NetlistFile_NetRecord() { // @@protoc_insertion_point(destructor:Odb.Lib.Protobuf.NetlistFile.NetRecord) - if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) { - (void)arena; - return; - } - SharedDtor(); + SharedDtor(*this); } - -inline void NetlistFile_NetRecord::SharedDtor() { - GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); - _impl_.netname_.Destroy(); +inline void NetlistFile_NetRecord::SharedDtor(MessageLite& self) { + NetlistFile_NetRecord& this_ = static_cast(self); + this_._internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); + ABSL_DCHECK(this_.GetArena() == nullptr); + this_._impl_.netname_.Destroy(); + this_._impl_.~Impl_(); } -void NetlistFile_NetRecord::SetCachedSize(int size) const { - _impl_._cached_size_.Set(size); +inline void* NetlistFile_NetRecord::PlacementNew_(const void*, void* mem, + ::google::protobuf::Arena* arena) { + return ::new (mem) NetlistFile_NetRecord(arena); +} +constexpr auto NetlistFile_NetRecord::InternalNewImpl_() { + return ::google::protobuf::internal::MessageCreator::CopyInit(sizeof(NetlistFile_NetRecord), + alignof(NetlistFile_NetRecord)); +} +PROTOBUF_CONSTINIT +PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 +const ::google::protobuf::internal::ClassDataFull NetlistFile_NetRecord::_class_data_ = { + ::google::protobuf::internal::ClassData{ + &_NetlistFile_NetRecord_default_instance_._instance, + &_table_.header, + nullptr, // OnDemandRegisterArenaDtor + nullptr, // IsInitialized + &NetlistFile_NetRecord::MergeImpl, + ::google::protobuf::Message::GetNewImpl(), +#if defined(PROTOBUF_CUSTOM_VTABLE) + &NetlistFile_NetRecord::SharedDtor, + ::google::protobuf::Message::GetClearImpl(), &NetlistFile_NetRecord::ByteSizeLong, + &NetlistFile_NetRecord::_InternalSerialize, +#endif // PROTOBUF_CUSTOM_VTABLE + PROTOBUF_FIELD_OFFSET(NetlistFile_NetRecord, _impl_._cached_size_), + false, + }, + &NetlistFile_NetRecord::kDescriptorMethods, + &descriptor_table_netlistfile_2eproto, + nullptr, // tracker +}; +const ::google::protobuf::internal::ClassData* NetlistFile_NetRecord::GetClassData() const { + ::google::protobuf::internal::PrefetchToLocalCache(&_class_data_); + ::google::protobuf::internal::PrefetchToLocalCache(_class_data_.tc_table); + return _class_data_.base(); } +PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 +const ::_pbi::TcParseTable<1, 2, 0, 54, 2> NetlistFile_NetRecord::_table_ = { + { + PROTOBUF_FIELD_OFFSET(NetlistFile_NetRecord, _impl_._has_bits_), + 0, // no _extensions_ + 2, 8, // max_field_number, fast_idx_mask + offsetof(decltype(_table_), field_lookup_table), + 4294967292, // skipmap + offsetof(decltype(_table_), field_entries), + 2, // num_field_entries + 0, // num_aux_entries + offsetof(decltype(_table_), field_names), // no aux_entries + _class_data_.base(), + nullptr, // post_loop_handler + ::_pbi::TcParser::GenericFallback, // fallback + #ifdef PROTOBUF_PREFETCH_PARSE_TABLE + ::_pbi::TcParser::GetTable<::Odb::Lib::Protobuf::NetlistFile_NetRecord>(), // to_prefetch + #endif // PROTOBUF_PREFETCH_PARSE_TABLE + }, {{ + // optional string netName = 2; + {::_pbi::TcParser::FastUS1, + {18, 0, 0, PROTOBUF_FIELD_OFFSET(NetlistFile_NetRecord, _impl_.netname_)}}, + // optional uint32 serialNumber = 1; + {::_pbi::TcParser::SingularVarintNoZag1<::uint32_t, offsetof(NetlistFile_NetRecord, _impl_.serialnumber_), 1>(), + {8, 1, 0, PROTOBUF_FIELD_OFFSET(NetlistFile_NetRecord, _impl_.serialnumber_)}}, + }}, {{ + 65535, 65535 + }}, {{ + // optional uint32 serialNumber = 1; + {PROTOBUF_FIELD_OFFSET(NetlistFile_NetRecord, _impl_.serialnumber_), _Internal::kHasBitsOffset + 1, 0, + (0 | ::_fl::kFcOptional | ::_fl::kUInt32)}, + // optional string netName = 2; + {PROTOBUF_FIELD_OFFSET(NetlistFile_NetRecord, _impl_.netname_), _Internal::kHasBitsOffset + 0, 0, + (0 | ::_fl::kFcOptional | ::_fl::kUtf8String | ::_fl::kRepAString)}, + }}, + // no aux_entries + {{ + "\46\0\7\0\0\0\0\0" + "Odb.Lib.Protobuf.NetlistFile.NetRecord" + "netName" + }}, +}; -void NetlistFile_NetRecord::Clear() { +PROTOBUF_NOINLINE void NetlistFile_NetRecord::Clear() { // @@protoc_insertion_point(message_clear_start:Odb.Lib.Protobuf.NetlistFile.NetRecord) - uint32_t cached_has_bits = 0; + ::google::protobuf::internal::TSanWrite(&_impl_); + ::uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; @@ -398,128 +531,87 @@ void NetlistFile_NetRecord::Clear() { } _impl_.serialnumber_ = 0u; _impl_._has_bits_.Clear(); - _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); -} - -const char* NetlistFile_NetRecord::_InternalParse(const char* ptr, ::_pbi::ParseContext* ctx) { -#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure - _Internal::HasBits has_bits{}; - while (!ctx->Done(&ptr)) { - uint32_t tag; - ptr = ::_pbi::ReadTag(ptr, &tag); - switch (tag >> 3) { - // optional uint32 serialNumber = 1; - case 1: - if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 8)) { - _Internal::set_has_serialnumber(&has_bits); - _impl_.serialnumber_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr); - CHK_(ptr); - } else - goto handle_unusual; - continue; - // optional string netName = 2; - case 2: - if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 18)) { - auto str = _internal_mutable_netname(); - ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); - CHK_(ptr); - CHK_(::_pbi::VerifyUTF8(str, "Odb.Lib.Protobuf.NetlistFile.NetRecord.netName")); - } else - goto handle_unusual; - continue; - default: - goto handle_unusual; - } // switch - handle_unusual: - if ((tag == 0) || ((tag & 7) == 4)) { - CHK_(ptr); - ctx->SetLastTag(tag); - goto message_done; - } - ptr = UnknownFieldParse( - tag, - _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(), - ptr, ctx); - CHK_(ptr != nullptr); - } // while -message_done: - _impl_._has_bits_.Or(has_bits); - return ptr; -failure: - ptr = nullptr; - goto message_done; -#undef CHK_ + _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); } -uint8_t* NetlistFile_NetRecord::_InternalSerialize( - uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { - // @@protoc_insertion_point(serialize_to_array_start:Odb.Lib.Protobuf.NetlistFile.NetRecord) - uint32_t cached_has_bits = 0; - (void) cached_has_bits; - - // optional uint32 serialNumber = 1; - if (_internal_has_serialnumber()) { - target = stream->EnsureSpace(target); - target = ::_pbi::WireFormatLite::WriteUInt32ToArray(1, this->_internal_serialnumber(), target); - } - - // optional string netName = 2; - if (_internal_has_netname()) { - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( - this->_internal_netname().data(), static_cast(this->_internal_netname().length()), - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, - "Odb.Lib.Protobuf.NetlistFile.NetRecord.netName"); - target = stream->WriteStringMaybeAliased( - 2, this->_internal_netname(), target); - } - - if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = ::_pbi::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:Odb.Lib.Protobuf.NetlistFile.NetRecord) - return target; -} - -size_t NetlistFile_NetRecord::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:Odb.Lib.Protobuf.NetlistFile.NetRecord) - size_t total_size = 0; - - uint32_t cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - cached_has_bits = _impl_._has_bits_[0]; - if (cached_has_bits & 0x00000003u) { - // optional string netName = 2; - if (cached_has_bits & 0x00000001u) { - total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( - this->_internal_netname()); - } - - // optional uint32 serialNumber = 1; - if (cached_has_bits & 0x00000002u) { - total_size += ::_pbi::WireFormatLite::UInt32SizePlusOne(this->_internal_serialnumber()); - } - - } - return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); -} - -const ::PROTOBUF_NAMESPACE_ID::Message::ClassData NetlistFile_NetRecord::_class_data_ = { - ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSourceCheck, - NetlistFile_NetRecord::MergeImpl -}; -const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*NetlistFile_NetRecord::GetClassData() const { return &_class_data_; } - - -void NetlistFile_NetRecord::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg) { +#if defined(PROTOBUF_CUSTOM_VTABLE) + ::uint8_t* NetlistFile_NetRecord::_InternalSerialize( + const MessageLite& base, ::uint8_t* target, + ::google::protobuf::io::EpsCopyOutputStream* stream) { + const NetlistFile_NetRecord& this_ = static_cast(base); +#else // PROTOBUF_CUSTOM_VTABLE + ::uint8_t* NetlistFile_NetRecord::_InternalSerialize( + ::uint8_t* target, + ::google::protobuf::io::EpsCopyOutputStream* stream) const { + const NetlistFile_NetRecord& this_ = *this; +#endif // PROTOBUF_CUSTOM_VTABLE + // @@protoc_insertion_point(serialize_to_array_start:Odb.Lib.Protobuf.NetlistFile.NetRecord) + ::uint32_t cached_has_bits = 0; + (void)cached_has_bits; + + cached_has_bits = this_._impl_._has_bits_[0]; + // optional uint32 serialNumber = 1; + if (cached_has_bits & 0x00000002u) { + target = stream->EnsureSpace(target); + target = ::_pbi::WireFormatLite::WriteUInt32ToArray( + 1, this_._internal_serialnumber(), target); + } + + // optional string netName = 2; + if (cached_has_bits & 0x00000001u) { + const std::string& _s = this_._internal_netname(); + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + _s.data(), static_cast(_s.length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "Odb.Lib.Protobuf.NetlistFile.NetRecord.netName"); + target = stream->WriteStringMaybeAliased(2, _s, target); + } + + if (PROTOBUF_PREDICT_FALSE(this_._internal_metadata_.have_unknown_fields())) { + target = + ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( + this_._internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); + } + // @@protoc_insertion_point(serialize_to_array_end:Odb.Lib.Protobuf.NetlistFile.NetRecord) + return target; + } + +#if defined(PROTOBUF_CUSTOM_VTABLE) + ::size_t NetlistFile_NetRecord::ByteSizeLong(const MessageLite& base) { + const NetlistFile_NetRecord& this_ = static_cast(base); +#else // PROTOBUF_CUSTOM_VTABLE + ::size_t NetlistFile_NetRecord::ByteSizeLong() const { + const NetlistFile_NetRecord& this_ = *this; +#endif // PROTOBUF_CUSTOM_VTABLE + // @@protoc_insertion_point(message_byte_size_start:Odb.Lib.Protobuf.NetlistFile.NetRecord) + ::size_t total_size = 0; + + ::uint32_t cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void)cached_has_bits; + + ::_pbi::Prefetch5LinesFrom7Lines(&this_); + cached_has_bits = this_._impl_._has_bits_[0]; + if (cached_has_bits & 0x00000003u) { + // optional string netName = 2; + if (cached_has_bits & 0x00000001u) { + total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize( + this_._internal_netname()); + } + // optional uint32 serialNumber = 1; + if (cached_has_bits & 0x00000002u) { + total_size += ::_pbi::WireFormatLite::UInt32SizePlusOne( + this_._internal_serialnumber()); + } + } + return this_.MaybeComputeUnknownFieldsSize(total_size, + &this_._impl_._cached_size_); + } + +void NetlistFile_NetRecord::MergeImpl(::google::protobuf::MessageLite& to_msg, const ::google::protobuf::MessageLite& from_msg) { auto* const _this = static_cast(&to_msg); auto& from = static_cast(from_msg); // @@protoc_insertion_point(class_specific_merge_from_start:Odb.Lib.Protobuf.NetlistFile.NetRecord) - GOOGLE_DCHECK_NE(&from, _this); - uint32_t cached_has_bits = 0; + ABSL_DCHECK_NE(&from, _this); + ::uint32_t cached_has_bits = 0; (void) cached_has_bits; cached_has_bits = from._impl_._has_bits_[0]; @@ -530,9 +622,9 @@ void NetlistFile_NetRecord::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, if (cached_has_bits & 0x00000002u) { _this->_impl_.serialnumber_ = from._impl_.serialnumber_; } - _this->_impl_._has_bits_[0] |= cached_has_bits; } - _this->_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); + _this->_impl_._has_bits_[0] |= cached_has_bits; + _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); } void NetlistFile_NetRecord::CopyFrom(const NetlistFile_NetRecord& from) { @@ -542,210 +634,291 @@ void NetlistFile_NetRecord::CopyFrom(const NetlistFile_NetRecord& from) { MergeFrom(from); } -bool NetlistFile_NetRecord::IsInitialized() const { - return true; -} -void NetlistFile_NetRecord::InternalSwap(NetlistFile_NetRecord* other) { +void NetlistFile_NetRecord::InternalSwap(NetlistFile_NetRecord* PROTOBUF_RESTRICT other) { using std::swap; - auto* lhs_arena = GetArenaForAllocation(); - auto* rhs_arena = other->GetArenaForAllocation(); + auto* arena = GetArena(); + ABSL_DCHECK_EQ(arena, other->GetArena()); _internal_metadata_.InternalSwap(&other->_internal_metadata_); swap(_impl_._has_bits_[0], other->_impl_._has_bits_[0]); - ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( - &_impl_.netname_, lhs_arena, - &other->_impl_.netname_, rhs_arena - ); - swap(_impl_.serialnumber_, other->_impl_.serialnumber_); + ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.netname_, &other->_impl_.netname_, arena); + swap(_impl_.serialnumber_, other->_impl_.serialnumber_); } -::PROTOBUF_NAMESPACE_ID::Metadata NetlistFile_NetRecord::GetMetadata() const { - return ::_pbi::AssignDescriptors( - &descriptor_table_netlistfile_2eproto_getter, &descriptor_table_netlistfile_2eproto_once, - file_level_metadata_netlistfile_2eproto[0]); +::google::protobuf::Metadata NetlistFile_NetRecord::GetMetadata() const { + return ::google::protobuf::Message::GetMetadataImpl(GetClassData()->full()); } - // =================================================================== class NetlistFile_NetPointRecord::_Internal { public: - using HasBits = decltype(std::declval()._impl_._has_bits_); - static void set_has_netnumber(HasBits* has_bits) { - (*has_bits)[0] |= 8u; - } - static void set_has_radius(HasBits* has_bits) { - (*has_bits)[0] |= 16u; - } - static void set_has_x(HasBits* has_bits) { - (*has_bits)[0] |= 32u; - } - static void set_has_y(HasBits* has_bits) { - (*has_bits)[0] |= 64u; - } - static void set_has_side(HasBits* has_bits) { - (*has_bits)[0] |= 128u; - } - static void set_has_width(HasBits* has_bits) { - (*has_bits)[0] |= 256u; - } - static void set_has_height(HasBits* has_bits) { - (*has_bits)[0] |= 512u; - } - static void set_has_epoint(HasBits* has_bits) { - (*has_bits)[0] |= 1u; - } - static void set_has_exp(HasBits* has_bits) { - (*has_bits)[0] |= 2u; - } - static void set_has_commentpoint(HasBits* has_bits) { - (*has_bits)[0] |= 1024u; - } - static void set_has_staggeredx(HasBits* has_bits) { - (*has_bits)[0] |= 2048u; - } - static void set_has_staggeredy(HasBits* has_bits) { - (*has_bits)[0] |= 4096u; - } - static void set_has_staggeredradius(HasBits* has_bits) { - (*has_bits)[0] |= 8192u; - } - static void set_has_viapoint(HasBits* has_bits) { - (*has_bits)[0] |= 16384u; - } - static void set_has_fiducialpoint(HasBits* has_bits) { - (*has_bits)[0] |= 32768u; - } - static void set_has_testpoint(HasBits* has_bits) { - (*has_bits)[0] |= 65536u; - } - static void set_has_testexecutionside(HasBits* has_bits) { - (*has_bits)[0] |= 4u; - } + using HasBits = + decltype(std::declval()._impl_._has_bits_); + static constexpr ::int32_t kHasBitsOffset = + 8 * PROTOBUF_FIELD_OFFSET(NetlistFile_NetPointRecord, _impl_._has_bits_); }; -NetlistFile_NetPointRecord::NetlistFile_NetPointRecord(::PROTOBUF_NAMESPACE_ID::Arena* arena, - bool is_message_owned) - : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned) { - SharedCtor(arena, is_message_owned); +NetlistFile_NetPointRecord::NetlistFile_NetPointRecord(::google::protobuf::Arena* arena) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : ::google::protobuf::Message(arena, _class_data_.base()) { +#else // PROTOBUF_CUSTOM_VTABLE + : ::google::protobuf::Message(arena) { +#endif // PROTOBUF_CUSTOM_VTABLE + SharedCtor(arena); // @@protoc_insertion_point(arena_constructor:Odb.Lib.Protobuf.NetlistFile.NetPointRecord) } -NetlistFile_NetPointRecord::NetlistFile_NetPointRecord(const NetlistFile_NetPointRecord& from) - : ::PROTOBUF_NAMESPACE_ID::Message() { - NetlistFile_NetPointRecord* const _this = this; (void)_this; - new (&_impl_) Impl_{ - decltype(_impl_._has_bits_){from._impl_._has_bits_} - , /*decltype(_impl_._cached_size_)*/{} - , decltype(_impl_.epoint_){} - , decltype(_impl_.exp_){} - , decltype(_impl_.testexecutionside_){} - , decltype(_impl_.netnumber_){} - , decltype(_impl_.radius_){} - , decltype(_impl_.x_){} - , decltype(_impl_.y_){} - , decltype(_impl_.side_){} - , decltype(_impl_.width_){} - , decltype(_impl_.height_){} - , decltype(_impl_.commentpoint_){} - , decltype(_impl_.staggeredx_){} - , decltype(_impl_.staggeredy_){} - , decltype(_impl_.staggeredradius_){} - , decltype(_impl_.viapoint_){} - , decltype(_impl_.fiducialpoint_){} - , decltype(_impl_.testpoint_){}}; - - _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); - _impl_.epoint_.InitDefault(); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - _impl_.epoint_.Set("", GetArenaForAllocation()); - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (from._internal_has_epoint()) { - _this->_impl_.epoint_.Set(from._internal_epoint(), - _this->GetArenaForAllocation()); - } - _impl_.exp_.InitDefault(); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - _impl_.exp_.Set("", GetArenaForAllocation()); - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (from._internal_has_exp()) { - _this->_impl_.exp_.Set(from._internal_exp(), - _this->GetArenaForAllocation()); - } - _impl_.testexecutionside_.InitDefault(); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - _impl_.testexecutionside_.Set("", GetArenaForAllocation()); - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (from._internal_has_testexecutionside()) { - _this->_impl_.testexecutionside_.Set(from._internal_testexecutionside(), - _this->GetArenaForAllocation()); - } - ::memcpy(&_impl_.netnumber_, &from._impl_.netnumber_, - static_cast(reinterpret_cast(&_impl_.testpoint_) - - reinterpret_cast(&_impl_.netnumber_)) + sizeof(_impl_.testpoint_)); +inline PROTOBUF_NDEBUG_INLINE NetlistFile_NetPointRecord::Impl_::Impl_( + ::google::protobuf::internal::InternalVisibility visibility, ::google::protobuf::Arena* arena, + const Impl_& from, const ::Odb::Lib::Protobuf::NetlistFile_NetPointRecord& from_msg) + : _has_bits_{from._has_bits_}, + _cached_size_{0}, + epoint_(arena, from.epoint_), + exp_(arena, from.exp_), + testexecutionside_(arena, from.testexecutionside_) {} + +NetlistFile_NetPointRecord::NetlistFile_NetPointRecord( + ::google::protobuf::Arena* arena, + const NetlistFile_NetPointRecord& from) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : ::google::protobuf::Message(arena, _class_data_.base()) { +#else // PROTOBUF_CUSTOM_VTABLE + : ::google::protobuf::Message(arena) { +#endif // PROTOBUF_CUSTOM_VTABLE + NetlistFile_NetPointRecord* const _this = this; + (void)_this; + _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( + from._internal_metadata_); + new (&_impl_) Impl_(internal_visibility(), arena, from._impl_, from); + ::memcpy(reinterpret_cast(&_impl_) + + offsetof(Impl_, netnumber_), + reinterpret_cast(&from._impl_) + + offsetof(Impl_, netnumber_), + offsetof(Impl_, testpoint_) - + offsetof(Impl_, netnumber_) + + sizeof(Impl_::testpoint_)); + // @@protoc_insertion_point(copy_constructor:Odb.Lib.Protobuf.NetlistFile.NetPointRecord) } - -inline void NetlistFile_NetPointRecord::SharedCtor( - ::_pb::Arena* arena, bool is_message_owned) { - (void)arena; - (void)is_message_owned; - new (&_impl_) Impl_{ - decltype(_impl_._has_bits_){} - , /*decltype(_impl_._cached_size_)*/{} - , decltype(_impl_.epoint_){} - , decltype(_impl_.exp_){} - , decltype(_impl_.testexecutionside_){} - , decltype(_impl_.netnumber_){0u} - , decltype(_impl_.radius_){0} - , decltype(_impl_.x_){0} - , decltype(_impl_.y_){0} - , decltype(_impl_.side_){0} - , decltype(_impl_.width_){0} - , decltype(_impl_.height_){0} - , decltype(_impl_.commentpoint_){false} - , decltype(_impl_.staggeredx_){0} - , decltype(_impl_.staggeredy_){0} - , decltype(_impl_.staggeredradius_){0} - , decltype(_impl_.viapoint_){0} - , decltype(_impl_.fiducialpoint_){0} - , decltype(_impl_.testpoint_){0} - }; - _impl_.epoint_.InitDefault(); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - _impl_.epoint_.Set("", GetArenaForAllocation()); - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING - _impl_.exp_.InitDefault(); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - _impl_.exp_.Set("", GetArenaForAllocation()); - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING - _impl_.testexecutionside_.InitDefault(); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - _impl_.testexecutionside_.Set("", GetArenaForAllocation()); - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING +inline PROTOBUF_NDEBUG_INLINE NetlistFile_NetPointRecord::Impl_::Impl_( + ::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* arena) + : _cached_size_{0}, + epoint_(arena), + exp_(arena), + testexecutionside_(arena) {} + +inline void NetlistFile_NetPointRecord::SharedCtor(::_pb::Arena* arena) { + new (&_impl_) Impl_(internal_visibility(), arena); + ::memset(reinterpret_cast(&_impl_) + + offsetof(Impl_, netnumber_), + 0, + offsetof(Impl_, testpoint_) - + offsetof(Impl_, netnumber_) + + sizeof(Impl_::testpoint_)); } - NetlistFile_NetPointRecord::~NetlistFile_NetPointRecord() { // @@protoc_insertion_point(destructor:Odb.Lib.Protobuf.NetlistFile.NetPointRecord) - if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) { - (void)arena; - return; - } - SharedDtor(); + SharedDtor(*this); } - -inline void NetlistFile_NetPointRecord::SharedDtor() { - GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); - _impl_.epoint_.Destroy(); - _impl_.exp_.Destroy(); - _impl_.testexecutionside_.Destroy(); +inline void NetlistFile_NetPointRecord::SharedDtor(MessageLite& self) { + NetlistFile_NetPointRecord& this_ = static_cast(self); + this_._internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); + ABSL_DCHECK(this_.GetArena() == nullptr); + this_._impl_.epoint_.Destroy(); + this_._impl_.exp_.Destroy(); + this_._impl_.testexecutionside_.Destroy(); + this_._impl_.~Impl_(); } -void NetlistFile_NetPointRecord::SetCachedSize(int size) const { - _impl_._cached_size_.Set(size); +inline void* NetlistFile_NetPointRecord::PlacementNew_(const void*, void* mem, + ::google::protobuf::Arena* arena) { + return ::new (mem) NetlistFile_NetPointRecord(arena); +} +constexpr auto NetlistFile_NetPointRecord::InternalNewImpl_() { + return ::google::protobuf::internal::MessageCreator::CopyInit(sizeof(NetlistFile_NetPointRecord), + alignof(NetlistFile_NetPointRecord)); +} +PROTOBUF_CONSTINIT +PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 +const ::google::protobuf::internal::ClassDataFull NetlistFile_NetPointRecord::_class_data_ = { + ::google::protobuf::internal::ClassData{ + &_NetlistFile_NetPointRecord_default_instance_._instance, + &_table_.header, + nullptr, // OnDemandRegisterArenaDtor + nullptr, // IsInitialized + &NetlistFile_NetPointRecord::MergeImpl, + ::google::protobuf::Message::GetNewImpl(), +#if defined(PROTOBUF_CUSTOM_VTABLE) + &NetlistFile_NetPointRecord::SharedDtor, + ::google::protobuf::Message::GetClearImpl(), &NetlistFile_NetPointRecord::ByteSizeLong, + &NetlistFile_NetPointRecord::_InternalSerialize, +#endif // PROTOBUF_CUSTOM_VTABLE + PROTOBUF_FIELD_OFFSET(NetlistFile_NetPointRecord, _impl_._cached_size_), + false, + }, + &NetlistFile_NetPointRecord::kDescriptorMethods, + &descriptor_table_netlistfile_2eproto, + nullptr, // tracker +}; +const ::google::protobuf::internal::ClassData* NetlistFile_NetPointRecord::GetClassData() const { + ::google::protobuf::internal::PrefetchToLocalCache(&_class_data_); + ::google::protobuf::internal::PrefetchToLocalCache(_class_data_.tc_table); + return _class_data_.base(); } +PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 +const ::_pbi::TcParseTable<5, 17, 0, 94, 2> NetlistFile_NetPointRecord::_table_ = { + { + PROTOBUF_FIELD_OFFSET(NetlistFile_NetPointRecord, _impl_._has_bits_), + 0, // no _extensions_ + 17, 248, // max_field_number, fast_idx_mask + offsetof(decltype(_table_), field_lookup_table), + 4294836224, // skipmap + offsetof(decltype(_table_), field_entries), + 17, // num_field_entries + 0, // num_aux_entries + offsetof(decltype(_table_), field_names), // no aux_entries + _class_data_.base(), + nullptr, // post_loop_handler + ::_pbi::TcParser::GenericFallback, // fallback + #ifdef PROTOBUF_PREFETCH_PARSE_TABLE + ::_pbi::TcParser::GetTable<::Odb::Lib::Protobuf::NetlistFile_NetPointRecord>(), // to_prefetch + #endif // PROTOBUF_PREFETCH_PARSE_TABLE + }, {{ + {::_pbi::TcParser::MiniParse, {}}, + // optional uint32 netNumber = 1; + {::_pbi::TcParser::SingularVarintNoZag1<::uint32_t, offsetof(NetlistFile_NetPointRecord, _impl_.netnumber_), 3>(), + {8, 3, 0, PROTOBUF_FIELD_OFFSET(NetlistFile_NetPointRecord, _impl_.netnumber_)}}, + // optional float radius = 2; + {::_pbi::TcParser::FastF32S1, + {21, 4, 0, PROTOBUF_FIELD_OFFSET(NetlistFile_NetPointRecord, _impl_.radius_)}}, + // optional float x = 3; + {::_pbi::TcParser::FastF32S1, + {29, 5, 0, PROTOBUF_FIELD_OFFSET(NetlistFile_NetPointRecord, _impl_.x_)}}, + // optional float y = 4; + {::_pbi::TcParser::FastF32S1, + {37, 6, 0, PROTOBUF_FIELD_OFFSET(NetlistFile_NetPointRecord, _impl_.y_)}}, + // optional .Odb.Lib.Protobuf.NetlistFile.NetPointRecord.AccessSide side = 5; + {::_pbi::TcParser::SingularVarintNoZag1<::uint32_t, offsetof(NetlistFile_NetPointRecord, _impl_.side_), 7>(), + {40, 7, 0, PROTOBUF_FIELD_OFFSET(NetlistFile_NetPointRecord, _impl_.side_)}}, + // optional float width = 6; + {::_pbi::TcParser::FastF32S1, + {53, 8, 0, PROTOBUF_FIELD_OFFSET(NetlistFile_NetPointRecord, _impl_.width_)}}, + // optional float height = 7; + {::_pbi::TcParser::FastF32S1, + {61, 9, 0, PROTOBUF_FIELD_OFFSET(NetlistFile_NetPointRecord, _impl_.height_)}}, + // optional string epoint = 8; + {::_pbi::TcParser::FastUS1, + {66, 0, 0, PROTOBUF_FIELD_OFFSET(NetlistFile_NetPointRecord, _impl_.epoint_)}}, + // optional string exp = 9; + {::_pbi::TcParser::FastUS1, + {74, 1, 0, PROTOBUF_FIELD_OFFSET(NetlistFile_NetPointRecord, _impl_.exp_)}}, + // optional bool commentPoint = 10; + {::_pbi::TcParser::SingularVarintNoZag1(), + {80, 10, 0, PROTOBUF_FIELD_OFFSET(NetlistFile_NetPointRecord, _impl_.commentpoint_)}}, + // optional float staggeredX = 11; + {::_pbi::TcParser::FastF32S1, + {93, 11, 0, PROTOBUF_FIELD_OFFSET(NetlistFile_NetPointRecord, _impl_.staggeredx_)}}, + // optional float staggeredY = 12; + {::_pbi::TcParser::FastF32S1, + {101, 12, 0, PROTOBUF_FIELD_OFFSET(NetlistFile_NetPointRecord, _impl_.staggeredy_)}}, + // optional float staggeredRadius = 13; + {::_pbi::TcParser::FastF32S1, + {109, 13, 0, PROTOBUF_FIELD_OFFSET(NetlistFile_NetPointRecord, _impl_.staggeredradius_)}}, + // optional float viaPoint = 14; + {::_pbi::TcParser::FastF32S1, + {117, 14, 0, PROTOBUF_FIELD_OFFSET(NetlistFile_NetPointRecord, _impl_.viapoint_)}}, + // optional float fiducialPoint = 15; + {::_pbi::TcParser::FastF32S1, + {125, 15, 0, PROTOBUF_FIELD_OFFSET(NetlistFile_NetPointRecord, _impl_.fiducialpoint_)}}, + // optional float testPoint = 16; + {::_pbi::TcParser::FastF32S2, + {389, 16, 0, PROTOBUF_FIELD_OFFSET(NetlistFile_NetPointRecord, _impl_.testpoint_)}}, + // optional string testExecutionSide = 17; + {::_pbi::TcParser::FastUS2, + {394, 2, 0, PROTOBUF_FIELD_OFFSET(NetlistFile_NetPointRecord, _impl_.testexecutionside_)}}, + {::_pbi::TcParser::MiniParse, {}}, + {::_pbi::TcParser::MiniParse, {}}, + {::_pbi::TcParser::MiniParse, {}}, + {::_pbi::TcParser::MiniParse, {}}, + {::_pbi::TcParser::MiniParse, {}}, + {::_pbi::TcParser::MiniParse, {}}, + {::_pbi::TcParser::MiniParse, {}}, + {::_pbi::TcParser::MiniParse, {}}, + {::_pbi::TcParser::MiniParse, {}}, + {::_pbi::TcParser::MiniParse, {}}, + {::_pbi::TcParser::MiniParse, {}}, + {::_pbi::TcParser::MiniParse, {}}, + {::_pbi::TcParser::MiniParse, {}}, + {::_pbi::TcParser::MiniParse, {}}, + }}, {{ + 65535, 65535 + }}, {{ + // optional uint32 netNumber = 1; + {PROTOBUF_FIELD_OFFSET(NetlistFile_NetPointRecord, _impl_.netnumber_), _Internal::kHasBitsOffset + 3, 0, + (0 | ::_fl::kFcOptional | ::_fl::kUInt32)}, + // optional float radius = 2; + {PROTOBUF_FIELD_OFFSET(NetlistFile_NetPointRecord, _impl_.radius_), _Internal::kHasBitsOffset + 4, 0, + (0 | ::_fl::kFcOptional | ::_fl::kFloat)}, + // optional float x = 3; + {PROTOBUF_FIELD_OFFSET(NetlistFile_NetPointRecord, _impl_.x_), _Internal::kHasBitsOffset + 5, 0, + (0 | ::_fl::kFcOptional | ::_fl::kFloat)}, + // optional float y = 4; + {PROTOBUF_FIELD_OFFSET(NetlistFile_NetPointRecord, _impl_.y_), _Internal::kHasBitsOffset + 6, 0, + (0 | ::_fl::kFcOptional | ::_fl::kFloat)}, + // optional .Odb.Lib.Protobuf.NetlistFile.NetPointRecord.AccessSide side = 5; + {PROTOBUF_FIELD_OFFSET(NetlistFile_NetPointRecord, _impl_.side_), _Internal::kHasBitsOffset + 7, 0, + (0 | ::_fl::kFcOptional | ::_fl::kOpenEnum)}, + // optional float width = 6; + {PROTOBUF_FIELD_OFFSET(NetlistFile_NetPointRecord, _impl_.width_), _Internal::kHasBitsOffset + 8, 0, + (0 | ::_fl::kFcOptional | ::_fl::kFloat)}, + // optional float height = 7; + {PROTOBUF_FIELD_OFFSET(NetlistFile_NetPointRecord, _impl_.height_), _Internal::kHasBitsOffset + 9, 0, + (0 | ::_fl::kFcOptional | ::_fl::kFloat)}, + // optional string epoint = 8; + {PROTOBUF_FIELD_OFFSET(NetlistFile_NetPointRecord, _impl_.epoint_), _Internal::kHasBitsOffset + 0, 0, + (0 | ::_fl::kFcOptional | ::_fl::kUtf8String | ::_fl::kRepAString)}, + // optional string exp = 9; + {PROTOBUF_FIELD_OFFSET(NetlistFile_NetPointRecord, _impl_.exp_), _Internal::kHasBitsOffset + 1, 0, + (0 | ::_fl::kFcOptional | ::_fl::kUtf8String | ::_fl::kRepAString)}, + // optional bool commentPoint = 10; + {PROTOBUF_FIELD_OFFSET(NetlistFile_NetPointRecord, _impl_.commentpoint_), _Internal::kHasBitsOffset + 10, 0, + (0 | ::_fl::kFcOptional | ::_fl::kBool)}, + // optional float staggeredX = 11; + {PROTOBUF_FIELD_OFFSET(NetlistFile_NetPointRecord, _impl_.staggeredx_), _Internal::kHasBitsOffset + 11, 0, + (0 | ::_fl::kFcOptional | ::_fl::kFloat)}, + // optional float staggeredY = 12; + {PROTOBUF_FIELD_OFFSET(NetlistFile_NetPointRecord, _impl_.staggeredy_), _Internal::kHasBitsOffset + 12, 0, + (0 | ::_fl::kFcOptional | ::_fl::kFloat)}, + // optional float staggeredRadius = 13; + {PROTOBUF_FIELD_OFFSET(NetlistFile_NetPointRecord, _impl_.staggeredradius_), _Internal::kHasBitsOffset + 13, 0, + (0 | ::_fl::kFcOptional | ::_fl::kFloat)}, + // optional float viaPoint = 14; + {PROTOBUF_FIELD_OFFSET(NetlistFile_NetPointRecord, _impl_.viapoint_), _Internal::kHasBitsOffset + 14, 0, + (0 | ::_fl::kFcOptional | ::_fl::kFloat)}, + // optional float fiducialPoint = 15; + {PROTOBUF_FIELD_OFFSET(NetlistFile_NetPointRecord, _impl_.fiducialpoint_), _Internal::kHasBitsOffset + 15, 0, + (0 | ::_fl::kFcOptional | ::_fl::kFloat)}, + // optional float testPoint = 16; + {PROTOBUF_FIELD_OFFSET(NetlistFile_NetPointRecord, _impl_.testpoint_), _Internal::kHasBitsOffset + 16, 0, + (0 | ::_fl::kFcOptional | ::_fl::kFloat)}, + // optional string testExecutionSide = 17; + {PROTOBUF_FIELD_OFFSET(NetlistFile_NetPointRecord, _impl_.testexecutionside_), _Internal::kHasBitsOffset + 2, 0, + (0 | ::_fl::kFcOptional | ::_fl::kUtf8String | ::_fl::kRepAString)}, + }}, + // no aux_entries + {{ + "\53\0\0\0\0\0\0\0\6\3\0\0\0\0\0\0\0\21\0\0\0\0\0\0" + "Odb.Lib.Protobuf.NetlistFile.NetPointRecord" + "epoint" + "exp" + "testExecutionSide" + }}, +}; -void NetlistFile_NetPointRecord::Clear() { +PROTOBUF_NOINLINE void NetlistFile_NetPointRecord::Clear() { // @@protoc_insertion_point(message_clear_start:Odb.Lib.Protobuf.NetlistFile.NetPointRecord) - uint32_t cached_has_bits = 0; + ::google::protobuf::internal::TSanWrite(&_impl_); + ::uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; @@ -762,457 +935,272 @@ void NetlistFile_NetPointRecord::Clear() { } } if (cached_has_bits & 0x000000f8u) { - ::memset(&_impl_.netnumber_, 0, static_cast( + ::memset(&_impl_.netnumber_, 0, static_cast<::size_t>( reinterpret_cast(&_impl_.side_) - reinterpret_cast(&_impl_.netnumber_)) + sizeof(_impl_.side_)); } if (cached_has_bits & 0x0000ff00u) { - ::memset(&_impl_.width_, 0, static_cast( + ::memset(&_impl_.width_, 0, static_cast<::size_t>( reinterpret_cast(&_impl_.fiducialpoint_) - reinterpret_cast(&_impl_.width_)) + sizeof(_impl_.fiducialpoint_)); } _impl_.testpoint_ = 0; _impl_._has_bits_.Clear(); - _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); -} - -const char* NetlistFile_NetPointRecord::_InternalParse(const char* ptr, ::_pbi::ParseContext* ctx) { -#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure - _Internal::HasBits has_bits{}; - while (!ctx->Done(&ptr)) { - uint32_t tag; - ptr = ::_pbi::ReadTag(ptr, &tag); - switch (tag >> 3) { - // optional uint32 netNumber = 1; - case 1: - if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 8)) { - _Internal::set_has_netnumber(&has_bits); - _impl_.netnumber_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr); - CHK_(ptr); - } else - goto handle_unusual; - continue; - // optional float radius = 2; - case 2: - if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 21)) { - _Internal::set_has_radius(&has_bits); - _impl_.radius_ = ::PROTOBUF_NAMESPACE_ID::internal::UnalignedLoad(ptr); - ptr += sizeof(float); - } else - goto handle_unusual; - continue; - // optional float x = 3; - case 3: - if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 29)) { - _Internal::set_has_x(&has_bits); - _impl_.x_ = ::PROTOBUF_NAMESPACE_ID::internal::UnalignedLoad(ptr); - ptr += sizeof(float); - } else - goto handle_unusual; - continue; - // optional float y = 4; - case 4: - if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 37)) { - _Internal::set_has_y(&has_bits); - _impl_.y_ = ::PROTOBUF_NAMESPACE_ID::internal::UnalignedLoad(ptr); - ptr += sizeof(float); - } else - goto handle_unusual; - continue; - // optional .Odb.Lib.Protobuf.NetlistFile.NetPointRecord.AccessSide side = 5; - case 5: - if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 40)) { - uint64_t val = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); - CHK_(ptr); - _internal_set_side(static_cast<::Odb::Lib::Protobuf::NetlistFile_NetPointRecord_AccessSide>(val)); - } else - goto handle_unusual; - continue; - // optional float width = 6; - case 6: - if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 53)) { - _Internal::set_has_width(&has_bits); - _impl_.width_ = ::PROTOBUF_NAMESPACE_ID::internal::UnalignedLoad(ptr); - ptr += sizeof(float); - } else - goto handle_unusual; - continue; - // optional float height = 7; - case 7: - if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 61)) { - _Internal::set_has_height(&has_bits); - _impl_.height_ = ::PROTOBUF_NAMESPACE_ID::internal::UnalignedLoad(ptr); - ptr += sizeof(float); - } else - goto handle_unusual; - continue; - // optional string epoint = 8; - case 8: - if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 66)) { - auto str = _internal_mutable_epoint(); - ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); - CHK_(ptr); - CHK_(::_pbi::VerifyUTF8(str, "Odb.Lib.Protobuf.NetlistFile.NetPointRecord.epoint")); - } else - goto handle_unusual; - continue; - // optional string exp = 9; - case 9: - if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 74)) { - auto str = _internal_mutable_exp(); - ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); - CHK_(ptr); - CHK_(::_pbi::VerifyUTF8(str, "Odb.Lib.Protobuf.NetlistFile.NetPointRecord.exp")); - } else - goto handle_unusual; - continue; - // optional bool commentPoint = 10; - case 10: - if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 80)) { - _Internal::set_has_commentpoint(&has_bits); - _impl_.commentpoint_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); - CHK_(ptr); - } else - goto handle_unusual; - continue; - // optional float staggeredX = 11; - case 11: - if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 93)) { - _Internal::set_has_staggeredx(&has_bits); - _impl_.staggeredx_ = ::PROTOBUF_NAMESPACE_ID::internal::UnalignedLoad(ptr); - ptr += sizeof(float); - } else - goto handle_unusual; - continue; - // optional float staggeredY = 12; - case 12: - if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 101)) { - _Internal::set_has_staggeredy(&has_bits); - _impl_.staggeredy_ = ::PROTOBUF_NAMESPACE_ID::internal::UnalignedLoad(ptr); - ptr += sizeof(float); - } else - goto handle_unusual; - continue; - // optional float staggeredRadius = 13; - case 13: - if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 109)) { - _Internal::set_has_staggeredradius(&has_bits); - _impl_.staggeredradius_ = ::PROTOBUF_NAMESPACE_ID::internal::UnalignedLoad(ptr); - ptr += sizeof(float); - } else - goto handle_unusual; - continue; - // optional float viaPoint = 14; - case 14: - if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 117)) { - _Internal::set_has_viapoint(&has_bits); - _impl_.viapoint_ = ::PROTOBUF_NAMESPACE_ID::internal::UnalignedLoad(ptr); - ptr += sizeof(float); - } else - goto handle_unusual; - continue; - // optional float fiducialPoint = 15; - case 15: - if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 125)) { - _Internal::set_has_fiducialpoint(&has_bits); - _impl_.fiducialpoint_ = ::PROTOBUF_NAMESPACE_ID::internal::UnalignedLoad(ptr); - ptr += sizeof(float); - } else - goto handle_unusual; - continue; - // optional float testPoint = 16; - case 16: - if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 133)) { - _Internal::set_has_testpoint(&has_bits); - _impl_.testpoint_ = ::PROTOBUF_NAMESPACE_ID::internal::UnalignedLoad(ptr); - ptr += sizeof(float); - } else - goto handle_unusual; - continue; - // optional string testExecutionSide = 17; - case 17: - if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 138)) { - auto str = _internal_mutable_testexecutionside(); - ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); - CHK_(ptr); - CHK_(::_pbi::VerifyUTF8(str, "Odb.Lib.Protobuf.NetlistFile.NetPointRecord.testExecutionSide")); - } else - goto handle_unusual; - continue; - default: - goto handle_unusual; - } // switch - handle_unusual: - if ((tag == 0) || ((tag & 7) == 4)) { - CHK_(ptr); - ctx->SetLastTag(tag); - goto message_done; - } - ptr = UnknownFieldParse( - tag, - _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(), - ptr, ctx); - CHK_(ptr != nullptr); - } // while -message_done: - _impl_._has_bits_.Or(has_bits); - return ptr; -failure: - ptr = nullptr; - goto message_done; -#undef CHK_ -} - -uint8_t* NetlistFile_NetPointRecord::_InternalSerialize( - uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { - // @@protoc_insertion_point(serialize_to_array_start:Odb.Lib.Protobuf.NetlistFile.NetPointRecord) - uint32_t cached_has_bits = 0; - (void) cached_has_bits; - - // optional uint32 netNumber = 1; - if (_internal_has_netnumber()) { - target = stream->EnsureSpace(target); - target = ::_pbi::WireFormatLite::WriteUInt32ToArray(1, this->_internal_netnumber(), target); - } - - // optional float radius = 2; - if (_internal_has_radius()) { - target = stream->EnsureSpace(target); - target = ::_pbi::WireFormatLite::WriteFloatToArray(2, this->_internal_radius(), target); - } - - // optional float x = 3; - if (_internal_has_x()) { - target = stream->EnsureSpace(target); - target = ::_pbi::WireFormatLite::WriteFloatToArray(3, this->_internal_x(), target); - } - - // optional float y = 4; - if (_internal_has_y()) { - target = stream->EnsureSpace(target); - target = ::_pbi::WireFormatLite::WriteFloatToArray(4, this->_internal_y(), target); - } - - // optional .Odb.Lib.Protobuf.NetlistFile.NetPointRecord.AccessSide side = 5; - if (_internal_has_side()) { - target = stream->EnsureSpace(target); - target = ::_pbi::WireFormatLite::WriteEnumToArray( - 5, this->_internal_side(), target); - } - - // optional float width = 6; - if (_internal_has_width()) { - target = stream->EnsureSpace(target); - target = ::_pbi::WireFormatLite::WriteFloatToArray(6, this->_internal_width(), target); - } - - // optional float height = 7; - if (_internal_has_height()) { - target = stream->EnsureSpace(target); - target = ::_pbi::WireFormatLite::WriteFloatToArray(7, this->_internal_height(), target); - } - - // optional string epoint = 8; - if (_internal_has_epoint()) { - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( - this->_internal_epoint().data(), static_cast(this->_internal_epoint().length()), - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, - "Odb.Lib.Protobuf.NetlistFile.NetPointRecord.epoint"); - target = stream->WriteStringMaybeAliased( - 8, this->_internal_epoint(), target); - } - - // optional string exp = 9; - if (_internal_has_exp()) { - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( - this->_internal_exp().data(), static_cast(this->_internal_exp().length()), - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, - "Odb.Lib.Protobuf.NetlistFile.NetPointRecord.exp"); - target = stream->WriteStringMaybeAliased( - 9, this->_internal_exp(), target); - } - - // optional bool commentPoint = 10; - if (_internal_has_commentpoint()) { - target = stream->EnsureSpace(target); - target = ::_pbi::WireFormatLite::WriteBoolToArray(10, this->_internal_commentpoint(), target); - } - - // optional float staggeredX = 11; - if (_internal_has_staggeredx()) { - target = stream->EnsureSpace(target); - target = ::_pbi::WireFormatLite::WriteFloatToArray(11, this->_internal_staggeredx(), target); - } - - // optional float staggeredY = 12; - if (_internal_has_staggeredy()) { - target = stream->EnsureSpace(target); - target = ::_pbi::WireFormatLite::WriteFloatToArray(12, this->_internal_staggeredy(), target); - } - - // optional float staggeredRadius = 13; - if (_internal_has_staggeredradius()) { - target = stream->EnsureSpace(target); - target = ::_pbi::WireFormatLite::WriteFloatToArray(13, this->_internal_staggeredradius(), target); - } - - // optional float viaPoint = 14; - if (_internal_has_viapoint()) { - target = stream->EnsureSpace(target); - target = ::_pbi::WireFormatLite::WriteFloatToArray(14, this->_internal_viapoint(), target); - } - - // optional float fiducialPoint = 15; - if (_internal_has_fiducialpoint()) { - target = stream->EnsureSpace(target); - target = ::_pbi::WireFormatLite::WriteFloatToArray(15, this->_internal_fiducialpoint(), target); - } - - // optional float testPoint = 16; - if (_internal_has_testpoint()) { - target = stream->EnsureSpace(target); - target = ::_pbi::WireFormatLite::WriteFloatToArray(16, this->_internal_testpoint(), target); - } - - // optional string testExecutionSide = 17; - if (_internal_has_testexecutionside()) { - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( - this->_internal_testexecutionside().data(), static_cast(this->_internal_testexecutionside().length()), - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, - "Odb.Lib.Protobuf.NetlistFile.NetPointRecord.testExecutionSide"); - target = stream->WriteStringMaybeAliased( - 17, this->_internal_testexecutionside(), target); - } - - if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = ::_pbi::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:Odb.Lib.Protobuf.NetlistFile.NetPointRecord) - return target; -} - -size_t NetlistFile_NetPointRecord::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:Odb.Lib.Protobuf.NetlistFile.NetPointRecord) - size_t total_size = 0; - - uint32_t cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - cached_has_bits = _impl_._has_bits_[0]; - if (cached_has_bits & 0x000000ffu) { - // optional string epoint = 8; - if (cached_has_bits & 0x00000001u) { - total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( - this->_internal_epoint()); - } - - // optional string exp = 9; - if (cached_has_bits & 0x00000002u) { - total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( - this->_internal_exp()); - } - - // optional string testExecutionSide = 17; - if (cached_has_bits & 0x00000004u) { - total_size += 2 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( - this->_internal_testexecutionside()); - } - - // optional uint32 netNumber = 1; - if (cached_has_bits & 0x00000008u) { - total_size += ::_pbi::WireFormatLite::UInt32SizePlusOne(this->_internal_netnumber()); - } - - // optional float radius = 2; - if (cached_has_bits & 0x00000010u) { - total_size += 1 + 4; - } - - // optional float x = 3; - if (cached_has_bits & 0x00000020u) { - total_size += 1 + 4; - } - - // optional float y = 4; - if (cached_has_bits & 0x00000040u) { - total_size += 1 + 4; - } - - // optional .Odb.Lib.Protobuf.NetlistFile.NetPointRecord.AccessSide side = 5; - if (cached_has_bits & 0x00000080u) { - total_size += 1 + - ::_pbi::WireFormatLite::EnumSize(this->_internal_side()); - } - - } - if (cached_has_bits & 0x0000ff00u) { - // optional float width = 6; - if (cached_has_bits & 0x00000100u) { - total_size += 1 + 4; - } - - // optional float height = 7; - if (cached_has_bits & 0x00000200u) { - total_size += 1 + 4; - } - - // optional bool commentPoint = 10; - if (cached_has_bits & 0x00000400u) { - total_size += 1 + 1; - } - - // optional float staggeredX = 11; - if (cached_has_bits & 0x00000800u) { - total_size += 1 + 4; - } - - // optional float staggeredY = 12; - if (cached_has_bits & 0x00001000u) { - total_size += 1 + 4; - } - - // optional float staggeredRadius = 13; - if (cached_has_bits & 0x00002000u) { - total_size += 1 + 4; - } - - // optional float viaPoint = 14; - if (cached_has_bits & 0x00004000u) { - total_size += 1 + 4; - } - - // optional float fiducialPoint = 15; - if (cached_has_bits & 0x00008000u) { - total_size += 1 + 4; - } - - } - // optional float testPoint = 16; - if (cached_has_bits & 0x00010000u) { - total_size += 2 + 4; - } - - return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); + _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); } -const ::PROTOBUF_NAMESPACE_ID::Message::ClassData NetlistFile_NetPointRecord::_class_data_ = { - ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSourceCheck, - NetlistFile_NetPointRecord::MergeImpl -}; -const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*NetlistFile_NetPointRecord::GetClassData() const { return &_class_data_; } - - -void NetlistFile_NetPointRecord::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg) { +#if defined(PROTOBUF_CUSTOM_VTABLE) + ::uint8_t* NetlistFile_NetPointRecord::_InternalSerialize( + const MessageLite& base, ::uint8_t* target, + ::google::protobuf::io::EpsCopyOutputStream* stream) { + const NetlistFile_NetPointRecord& this_ = static_cast(base); +#else // PROTOBUF_CUSTOM_VTABLE + ::uint8_t* NetlistFile_NetPointRecord::_InternalSerialize( + ::uint8_t* target, + ::google::protobuf::io::EpsCopyOutputStream* stream) const { + const NetlistFile_NetPointRecord& this_ = *this; +#endif // PROTOBUF_CUSTOM_VTABLE + // @@protoc_insertion_point(serialize_to_array_start:Odb.Lib.Protobuf.NetlistFile.NetPointRecord) + ::uint32_t cached_has_bits = 0; + (void)cached_has_bits; + + cached_has_bits = this_._impl_._has_bits_[0]; + // optional uint32 netNumber = 1; + if (cached_has_bits & 0x00000008u) { + target = stream->EnsureSpace(target); + target = ::_pbi::WireFormatLite::WriteUInt32ToArray( + 1, this_._internal_netnumber(), target); + } + + // optional float radius = 2; + if (cached_has_bits & 0x00000010u) { + target = stream->EnsureSpace(target); + target = ::_pbi::WireFormatLite::WriteFloatToArray( + 2, this_._internal_radius(), target); + } + + // optional float x = 3; + if (cached_has_bits & 0x00000020u) { + target = stream->EnsureSpace(target); + target = ::_pbi::WireFormatLite::WriteFloatToArray( + 3, this_._internal_x(), target); + } + + // optional float y = 4; + if (cached_has_bits & 0x00000040u) { + target = stream->EnsureSpace(target); + target = ::_pbi::WireFormatLite::WriteFloatToArray( + 4, this_._internal_y(), target); + } + + // optional .Odb.Lib.Protobuf.NetlistFile.NetPointRecord.AccessSide side = 5; + if (cached_has_bits & 0x00000080u) { + target = stream->EnsureSpace(target); + target = ::_pbi::WireFormatLite::WriteEnumToArray( + 5, this_._internal_side(), target); + } + + // optional float width = 6; + if (cached_has_bits & 0x00000100u) { + target = stream->EnsureSpace(target); + target = ::_pbi::WireFormatLite::WriteFloatToArray( + 6, this_._internal_width(), target); + } + + // optional float height = 7; + if (cached_has_bits & 0x00000200u) { + target = stream->EnsureSpace(target); + target = ::_pbi::WireFormatLite::WriteFloatToArray( + 7, this_._internal_height(), target); + } + + // optional string epoint = 8; + if (cached_has_bits & 0x00000001u) { + const std::string& _s = this_._internal_epoint(); + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + _s.data(), static_cast(_s.length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "Odb.Lib.Protobuf.NetlistFile.NetPointRecord.epoint"); + target = stream->WriteStringMaybeAliased(8, _s, target); + } + + // optional string exp = 9; + if (cached_has_bits & 0x00000002u) { + const std::string& _s = this_._internal_exp(); + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + _s.data(), static_cast(_s.length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "Odb.Lib.Protobuf.NetlistFile.NetPointRecord.exp"); + target = stream->WriteStringMaybeAliased(9, _s, target); + } + + // optional bool commentPoint = 10; + if (cached_has_bits & 0x00000400u) { + target = stream->EnsureSpace(target); + target = ::_pbi::WireFormatLite::WriteBoolToArray( + 10, this_._internal_commentpoint(), target); + } + + // optional float staggeredX = 11; + if (cached_has_bits & 0x00000800u) { + target = stream->EnsureSpace(target); + target = ::_pbi::WireFormatLite::WriteFloatToArray( + 11, this_._internal_staggeredx(), target); + } + + // optional float staggeredY = 12; + if (cached_has_bits & 0x00001000u) { + target = stream->EnsureSpace(target); + target = ::_pbi::WireFormatLite::WriteFloatToArray( + 12, this_._internal_staggeredy(), target); + } + + // optional float staggeredRadius = 13; + if (cached_has_bits & 0x00002000u) { + target = stream->EnsureSpace(target); + target = ::_pbi::WireFormatLite::WriteFloatToArray( + 13, this_._internal_staggeredradius(), target); + } + + // optional float viaPoint = 14; + if (cached_has_bits & 0x00004000u) { + target = stream->EnsureSpace(target); + target = ::_pbi::WireFormatLite::WriteFloatToArray( + 14, this_._internal_viapoint(), target); + } + + // optional float fiducialPoint = 15; + if (cached_has_bits & 0x00008000u) { + target = stream->EnsureSpace(target); + target = ::_pbi::WireFormatLite::WriteFloatToArray( + 15, this_._internal_fiducialpoint(), target); + } + + // optional float testPoint = 16; + if (cached_has_bits & 0x00010000u) { + target = stream->EnsureSpace(target); + target = ::_pbi::WireFormatLite::WriteFloatToArray( + 16, this_._internal_testpoint(), target); + } + + // optional string testExecutionSide = 17; + if (cached_has_bits & 0x00000004u) { + const std::string& _s = this_._internal_testexecutionside(); + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + _s.data(), static_cast(_s.length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "Odb.Lib.Protobuf.NetlistFile.NetPointRecord.testExecutionSide"); + target = stream->WriteStringMaybeAliased(17, _s, target); + } + + if (PROTOBUF_PREDICT_FALSE(this_._internal_metadata_.have_unknown_fields())) { + target = + ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( + this_._internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); + } + // @@protoc_insertion_point(serialize_to_array_end:Odb.Lib.Protobuf.NetlistFile.NetPointRecord) + return target; + } + +#if defined(PROTOBUF_CUSTOM_VTABLE) + ::size_t NetlistFile_NetPointRecord::ByteSizeLong(const MessageLite& base) { + const NetlistFile_NetPointRecord& this_ = static_cast(base); +#else // PROTOBUF_CUSTOM_VTABLE + ::size_t NetlistFile_NetPointRecord::ByteSizeLong() const { + const NetlistFile_NetPointRecord& this_ = *this; +#endif // PROTOBUF_CUSTOM_VTABLE + // @@protoc_insertion_point(message_byte_size_start:Odb.Lib.Protobuf.NetlistFile.NetPointRecord) + ::size_t total_size = 0; + + ::uint32_t cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void)cached_has_bits; + + ::_pbi::Prefetch5LinesFrom7Lines(&this_); + cached_has_bits = this_._impl_._has_bits_[0]; + if (cached_has_bits & 0x000000ffu) { + // optional string epoint = 8; + if (cached_has_bits & 0x00000001u) { + total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize( + this_._internal_epoint()); + } + // optional string exp = 9; + if (cached_has_bits & 0x00000002u) { + total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize( + this_._internal_exp()); + } + // optional string testExecutionSide = 17; + if (cached_has_bits & 0x00000004u) { + total_size += 2 + ::google::protobuf::internal::WireFormatLite::StringSize( + this_._internal_testexecutionside()); + } + // optional uint32 netNumber = 1; + if (cached_has_bits & 0x00000008u) { + total_size += ::_pbi::WireFormatLite::UInt32SizePlusOne( + this_._internal_netnumber()); + } + // optional float radius = 2; + if (cached_has_bits & 0x00000010u) { + total_size += 5; + } + // optional float x = 3; + if (cached_has_bits & 0x00000020u) { + total_size += 5; + } + // optional float y = 4; + if (cached_has_bits & 0x00000040u) { + total_size += 5; + } + // optional .Odb.Lib.Protobuf.NetlistFile.NetPointRecord.AccessSide side = 5; + if (cached_has_bits & 0x00000080u) { + total_size += 1 + + ::_pbi::WireFormatLite::EnumSize(this_._internal_side()); + } + } + if (cached_has_bits & 0x0000ff00u) { + // optional float width = 6; + if (cached_has_bits & 0x00000100u) { + total_size += 5; + } + // optional float height = 7; + if (cached_has_bits & 0x00000200u) { + total_size += 5; + } + // optional bool commentPoint = 10; + if (cached_has_bits & 0x00000400u) { + total_size += 2; + } + // optional float staggeredX = 11; + if (cached_has_bits & 0x00000800u) { + total_size += 5; + } + // optional float staggeredY = 12; + if (cached_has_bits & 0x00001000u) { + total_size += 5; + } + // optional float staggeredRadius = 13; + if (cached_has_bits & 0x00002000u) { + total_size += 5; + } + // optional float viaPoint = 14; + if (cached_has_bits & 0x00004000u) { + total_size += 5; + } + // optional float fiducialPoint = 15; + if (cached_has_bits & 0x00008000u) { + total_size += 5; + } + } + { + // optional float testPoint = 16; + if (cached_has_bits & 0x00010000u) { + total_size += 6; + } + } + return this_.MaybeComputeUnknownFieldsSize(total_size, + &this_._impl_._cached_size_); + } + +void NetlistFile_NetPointRecord::MergeImpl(::google::protobuf::MessageLite& to_msg, const ::google::protobuf::MessageLite& from_msg) { auto* const _this = static_cast(&to_msg); auto& from = static_cast(from_msg); // @@protoc_insertion_point(class_specific_merge_from_start:Odb.Lib.Protobuf.NetlistFile.NetPointRecord) - GOOGLE_DCHECK_NE(&from, _this); - uint32_t cached_has_bits = 0; + ABSL_DCHECK_NE(&from, _this); + ::uint32_t cached_has_bits = 0; (void) cached_has_bits; cached_has_bits = from._impl_._has_bits_[0]; @@ -1241,7 +1229,6 @@ void NetlistFile_NetPointRecord::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_ if (cached_has_bits & 0x00000080u) { _this->_impl_.side_ = from._impl_.side_; } - _this->_impl_._has_bits_[0] |= cached_has_bits; } if (cached_has_bits & 0x0000ff00u) { if (cached_has_bits & 0x00000100u) { @@ -1268,12 +1255,12 @@ void NetlistFile_NetPointRecord::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_ if (cached_has_bits & 0x00008000u) { _this->_impl_.fiducialpoint_ = from._impl_.fiducialpoint_; } - _this->_impl_._has_bits_[0] |= cached_has_bits; } if (cached_has_bits & 0x00010000u) { - _this->_internal_set_testpoint(from._internal_testpoint()); + _this->_impl_.testpoint_ = from._impl_.testpoint_; } - _this->_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); + _this->_impl_._has_bits_[0] |= cached_has_bits; + _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); } void NetlistFile_NetPointRecord::CopyFrom(const NetlistFile_NetPointRecord& from) { @@ -1283,29 +1270,17 @@ void NetlistFile_NetPointRecord::CopyFrom(const NetlistFile_NetPointRecord& from MergeFrom(from); } -bool NetlistFile_NetPointRecord::IsInitialized() const { - return true; -} -void NetlistFile_NetPointRecord::InternalSwap(NetlistFile_NetPointRecord* other) { +void NetlistFile_NetPointRecord::InternalSwap(NetlistFile_NetPointRecord* PROTOBUF_RESTRICT other) { using std::swap; - auto* lhs_arena = GetArenaForAllocation(); - auto* rhs_arena = other->GetArenaForAllocation(); + auto* arena = GetArena(); + ABSL_DCHECK_EQ(arena, other->GetArena()); _internal_metadata_.InternalSwap(&other->_internal_metadata_); swap(_impl_._has_bits_[0], other->_impl_._has_bits_[0]); - ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( - &_impl_.epoint_, lhs_arena, - &other->_impl_.epoint_, rhs_arena - ); - ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( - &_impl_.exp_, lhs_arena, - &other->_impl_.exp_, rhs_arena - ); - ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( - &_impl_.testexecutionside_, lhs_arena, - &other->_impl_.testexecutionside_, rhs_arena - ); - ::PROTOBUF_NAMESPACE_ID::internal::memswap< + ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.epoint_, &other->_impl_.epoint_, arena); + ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.exp_, &other->_impl_.exp_, arena); + ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.testexecutionside_, &other->_impl_.testexecutionside_, arena); + ::google::protobuf::internal::memswap< PROTOBUF_FIELD_OFFSET(NetlistFile_NetPointRecord, _impl_.testpoint_) + sizeof(NetlistFile_NetPointRecord::_impl_.testpoint_) - PROTOBUF_FIELD_OFFSET(NetlistFile_NetPointRecord, _impl_.netnumber_)>( @@ -1313,166 +1288,336 @@ void NetlistFile_NetPointRecord::InternalSwap(NetlistFile_NetPointRecord* other) reinterpret_cast(&other->_impl_.netnumber_)); } -::PROTOBUF_NAMESPACE_ID::Metadata NetlistFile_NetPointRecord::GetMetadata() const { - return ::_pbi::AssignDescriptors( - &descriptor_table_netlistfile_2eproto_getter, &descriptor_table_netlistfile_2eproto_once, - file_level_metadata_netlistfile_2eproto[1]); +::google::protobuf::Metadata NetlistFile_NetPointRecord::GetMetadata() const { + return ::google::protobuf::Message::GetMetadataImpl(GetClassData()->full()); } - // =================================================================== -NetlistFile_NetRecordsByNameEntry_DoNotUse::NetlistFile_NetRecordsByNameEntry_DoNotUse() {} -NetlistFile_NetRecordsByNameEntry_DoNotUse::NetlistFile_NetRecordsByNameEntry_DoNotUse(::PROTOBUF_NAMESPACE_ID::Arena* arena) - : SuperType(arena) {} -void NetlistFile_NetRecordsByNameEntry_DoNotUse::MergeFrom(const NetlistFile_NetRecordsByNameEntry_DoNotUse& other) { - MergeFromInternal(other); -} -::PROTOBUF_NAMESPACE_ID::Metadata NetlistFile_NetRecordsByNameEntry_DoNotUse::GetMetadata() const { - return ::_pbi::AssignDescriptors( - &descriptor_table_netlistfile_2eproto_getter, &descriptor_table_netlistfile_2eproto_once, - file_level_metadata_netlistfile_2eproto[2]); -} +#if defined(PROTOBUF_CUSTOM_VTABLE) + NetlistFile_NetRecordsByNameEntry_DoNotUse::NetlistFile_NetRecordsByNameEntry_DoNotUse() : SuperType(_class_data_.base()) {} + NetlistFile_NetRecordsByNameEntry_DoNotUse::NetlistFile_NetRecordsByNameEntry_DoNotUse(::google::protobuf::Arena* arena) + : SuperType(arena, _class_data_.base()) {} +#else // PROTOBUF_CUSTOM_VTABLE + NetlistFile_NetRecordsByNameEntry_DoNotUse::NetlistFile_NetRecordsByNameEntry_DoNotUse() : SuperType() {} + NetlistFile_NetRecordsByNameEntry_DoNotUse::NetlistFile_NetRecordsByNameEntry_DoNotUse(::google::protobuf::Arena* arena) : SuperType(arena) {} +#endif // PROTOBUF_CUSTOM_VTABLE + inline void* NetlistFile_NetRecordsByNameEntry_DoNotUse::PlacementNew_(const void*, void* mem, + ::google::protobuf::Arena* arena) { + return ::new (mem) NetlistFile_NetRecordsByNameEntry_DoNotUse(arena); + } + constexpr auto NetlistFile_NetRecordsByNameEntry_DoNotUse::InternalNewImpl_() { + return ::google::protobuf::internal::MessageCreator::CopyInit(sizeof(NetlistFile_NetRecordsByNameEntry_DoNotUse), + alignof(NetlistFile_NetRecordsByNameEntry_DoNotUse)); + } + PROTOBUF_CONSTINIT + PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 + const ::google::protobuf::internal::ClassDataFull NetlistFile_NetRecordsByNameEntry_DoNotUse::_class_data_ = { + ::google::protobuf::internal::ClassData{ + &_NetlistFile_NetRecordsByNameEntry_DoNotUse_default_instance_._instance, + &_table_.header, + nullptr, // OnDemandRegisterArenaDtor + nullptr, // IsInitialized + &NetlistFile_NetRecordsByNameEntry_DoNotUse::MergeImpl, + ::google::protobuf::Message::GetNewImpl(), + #if defined(PROTOBUF_CUSTOM_VTABLE) + &NetlistFile_NetRecordsByNameEntry_DoNotUse::SharedDtor, + static_cast( + &NetlistFile_NetRecordsByNameEntry_DoNotUse::ClearImpl), + ::google::protobuf::Message::ByteSizeLongImpl, ::google::protobuf::Message::_InternalSerializeImpl + , + #endif // PROTOBUF_CUSTOM_VTABLE + PROTOBUF_FIELD_OFFSET(NetlistFile_NetRecordsByNameEntry_DoNotUse, _impl_._cached_size_), + false, + }, + &NetlistFile_NetRecordsByNameEntry_DoNotUse::kDescriptorMethods, + &descriptor_table_netlistfile_2eproto, + nullptr, // tracker + }; + const ::google::protobuf::internal::ClassData* NetlistFile_NetRecordsByNameEntry_DoNotUse::GetClassData() const { + ::google::protobuf::internal::PrefetchToLocalCache(&_class_data_); + ::google::protobuf::internal::PrefetchToLocalCache(_class_data_.tc_table); + return _class_data_.base(); + } +PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 +const ::_pbi::TcParseTable<1, 2, 1, 62, 2> NetlistFile_NetRecordsByNameEntry_DoNotUse::_table_ = { + { + PROTOBUF_FIELD_OFFSET(NetlistFile_NetRecordsByNameEntry_DoNotUse, _impl_._has_bits_), + 0, // no _extensions_ + 2, 8, // max_field_number, fast_idx_mask + offsetof(decltype(_table_), field_lookup_table), + 4294967292, // skipmap + offsetof(decltype(_table_), field_entries), + 2, // num_field_entries + 1, // num_aux_entries + offsetof(decltype(_table_), aux_entries), + _class_data_.base(), + nullptr, // post_loop_handler + ::_pbi::TcParser::DiscardEverythingFallback, // fallback + #ifdef PROTOBUF_PREFETCH_PARSE_TABLE + ::_pbi::TcParser::GetTable<::Odb::Lib::Protobuf::NetlistFile_NetRecordsByNameEntry_DoNotUse>(), // to_prefetch + #endif // PROTOBUF_PREFETCH_PARSE_TABLE + }, {{ + // .Odb.Lib.Protobuf.NetlistFile.NetRecord value = 2; + {::_pbi::TcParser::FastMtS1, + {18, 0, 0, PROTOBUF_FIELD_OFFSET(NetlistFile_NetRecordsByNameEntry_DoNotUse, _impl_.value_)}}, + // string key = 1; + {::_pbi::TcParser::FastUS1, + {10, 63, 0, PROTOBUF_FIELD_OFFSET(NetlistFile_NetRecordsByNameEntry_DoNotUse, _impl_.key_)}}, + }}, {{ + 65535, 65535 + }}, {{ + // string key = 1; + {PROTOBUF_FIELD_OFFSET(NetlistFile_NetRecordsByNameEntry_DoNotUse, _impl_.key_), -1, 0, + (0 | ::_fl::kFcSingular | ::_fl::kUtf8String | ::_fl::kRepAString)}, + // .Odb.Lib.Protobuf.NetlistFile.NetRecord value = 2; + {PROTOBUF_FIELD_OFFSET(NetlistFile_NetRecordsByNameEntry_DoNotUse, _impl_.value_), _Internal::kHasBitsOffset + 0, 0, + (0 | ::_fl::kFcOptional | ::_fl::kMessage | ::_fl::kTvTable)}, + }}, {{ + {::_pbi::TcParser::GetTable<::Odb::Lib::Protobuf::NetlistFile_NetRecord>()}, + }}, {{ + "\62\3\0\0\0\0\0\0" + "Odb.Lib.Protobuf.NetlistFile.NetRecordsByNameEntry" + "key" + }}, +}; // =================================================================== class NetlistFile::_Internal { public: - using HasBits = decltype(std::declval()._impl_._has_bits_); - static void set_has_path(HasBits* has_bits) { - (*has_bits)[0] |= 1u; - } - static void set_has_name(HasBits* has_bits) { - (*has_bits)[0] |= 2u; - } - static void set_has_units(HasBits* has_bits) { - (*has_bits)[0] |= 4u; - } - static void set_has_optimized(HasBits* has_bits) { - (*has_bits)[0] |= 8u; - } - static void set_has_staggered(HasBits* has_bits) { - (*has_bits)[0] |= 16u; - } + using HasBits = + decltype(std::declval()._impl_._has_bits_); + static constexpr ::int32_t kHasBitsOffset = + 8 * PROTOBUF_FIELD_OFFSET(NetlistFile, _impl_._has_bits_); }; -NetlistFile::NetlistFile(::PROTOBUF_NAMESPACE_ID::Arena* arena, - bool is_message_owned) - : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned) { - SharedCtor(arena, is_message_owned); - if (arena != nullptr && !is_message_owned) { - arena->OwnCustomDestructor(this, &NetlistFile::ArenaDtor); - } +NetlistFile::NetlistFile(::google::protobuf::Arena* arena) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : ::google::protobuf::Message(arena, _class_data_.base()) { +#else // PROTOBUF_CUSTOM_VTABLE + : ::google::protobuf::Message(arena) { +#endif // PROTOBUF_CUSTOM_VTABLE + SharedCtor(arena); // @@protoc_insertion_point(arena_constructor:Odb.Lib.Protobuf.NetlistFile) } -NetlistFile::NetlistFile(const NetlistFile& from) - : ::PROTOBUF_NAMESPACE_ID::Message() { - NetlistFile* const _this = this; (void)_this; - new (&_impl_) Impl_{ - decltype(_impl_._has_bits_){from._impl_._has_bits_} - , /*decltype(_impl_._cached_size_)*/{} - , decltype(_impl_.netrecordss_){from._impl_.netrecordss_} - , /*decltype(_impl_.netrecordsbyname_)*/{} - , decltype(_impl_.netpointrecords_){from._impl_.netpointrecords_} - , decltype(_impl_.path_){} - , decltype(_impl_.name_){} - , decltype(_impl_.units_){} - , decltype(_impl_.optimized_){} - , decltype(_impl_.staggered_){}}; - - _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); - _this->_impl_.netrecordsbyname_.MergeFrom(from._impl_.netrecordsbyname_); - _impl_.path_.InitDefault(); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - _impl_.path_.Set("", GetArenaForAllocation()); - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (from._internal_has_path()) { - _this->_impl_.path_.Set(from._internal_path(), - _this->GetArenaForAllocation()); - } - _impl_.name_.InitDefault(); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - _impl_.name_.Set("", GetArenaForAllocation()); - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (from._internal_has_name()) { - _this->_impl_.name_.Set(from._internal_name(), - _this->GetArenaForAllocation()); - } - _impl_.units_.InitDefault(); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - _impl_.units_.Set("", GetArenaForAllocation()); - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (from._internal_has_units()) { - _this->_impl_.units_.Set(from._internal_units(), - _this->GetArenaForAllocation()); - } - ::memcpy(&_impl_.optimized_, &from._impl_.optimized_, - static_cast(reinterpret_cast(&_impl_.staggered_) - - reinterpret_cast(&_impl_.optimized_)) + sizeof(_impl_.staggered_)); +inline PROTOBUF_NDEBUG_INLINE NetlistFile::Impl_::Impl_( + ::google::protobuf::internal::InternalVisibility visibility, ::google::protobuf::Arena* arena, + const Impl_& from, const ::Odb::Lib::Protobuf::NetlistFile& from_msg) + : _has_bits_{from._has_bits_}, + _cached_size_{0}, + netrecordss_{visibility, arena, from.netrecordss_}, + netrecordsbyname_{visibility, arena, from.netrecordsbyname_}, + netpointrecords_{visibility, arena, from.netpointrecords_}, + path_(arena, from.path_), + name_(arena, from.name_), + units_(arena, from.units_) {} + +NetlistFile::NetlistFile( + ::google::protobuf::Arena* arena, + const NetlistFile& from) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : ::google::protobuf::Message(arena, _class_data_.base()) { +#else // PROTOBUF_CUSTOM_VTABLE + : ::google::protobuf::Message(arena) { +#endif // PROTOBUF_CUSTOM_VTABLE + NetlistFile* const _this = this; + (void)_this; + _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( + from._internal_metadata_); + new (&_impl_) Impl_(internal_visibility(), arena, from._impl_, from); + ::memcpy(reinterpret_cast(&_impl_) + + offsetof(Impl_, optimized_), + reinterpret_cast(&from._impl_) + + offsetof(Impl_, optimized_), + offsetof(Impl_, staggered_) - + offsetof(Impl_, optimized_) + + sizeof(Impl_::staggered_)); + // @@protoc_insertion_point(copy_constructor:Odb.Lib.Protobuf.NetlistFile) } - -inline void NetlistFile::SharedCtor( - ::_pb::Arena* arena, bool is_message_owned) { - (void)arena; - (void)is_message_owned; - new (&_impl_) Impl_{ - decltype(_impl_._has_bits_){} - , /*decltype(_impl_._cached_size_)*/{} - , decltype(_impl_.netrecordss_){arena} - , /*decltype(_impl_.netrecordsbyname_)*/{::_pbi::ArenaInitialized(), arena} - , decltype(_impl_.netpointrecords_){arena} - , decltype(_impl_.path_){} - , decltype(_impl_.name_){} - , decltype(_impl_.units_){} - , decltype(_impl_.optimized_){false} - , decltype(_impl_.staggered_){0} - }; - _impl_.path_.InitDefault(); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - _impl_.path_.Set("", GetArenaForAllocation()); - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING - _impl_.name_.InitDefault(); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - _impl_.name_.Set("", GetArenaForAllocation()); - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING - _impl_.units_.InitDefault(); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - _impl_.units_.Set("", GetArenaForAllocation()); - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING +inline PROTOBUF_NDEBUG_INLINE NetlistFile::Impl_::Impl_( + ::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* arena) + : _cached_size_{0}, + netrecordss_{visibility, arena}, + netrecordsbyname_{visibility, arena}, + netpointrecords_{visibility, arena}, + path_(arena), + name_(arena), + units_(arena) {} + +inline void NetlistFile::SharedCtor(::_pb::Arena* arena) { + new (&_impl_) Impl_(internal_visibility(), arena); + ::memset(reinterpret_cast(&_impl_) + + offsetof(Impl_, optimized_), + 0, + offsetof(Impl_, staggered_) - + offsetof(Impl_, optimized_) + + sizeof(Impl_::staggered_)); } - NetlistFile::~NetlistFile() { // @@protoc_insertion_point(destructor:Odb.Lib.Protobuf.NetlistFile) - if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) { - (void)arena; - ArenaDtor(this); - return; - } - SharedDtor(); + SharedDtor(*this); } - -inline void NetlistFile::SharedDtor() { - GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); - _impl_.netrecordss_.~RepeatedPtrField(); - _impl_.netrecordsbyname_.Destruct(); - _impl_.netrecordsbyname_.~MapField(); - _impl_.netpointrecords_.~RepeatedPtrField(); - _impl_.path_.Destroy(); - _impl_.name_.Destroy(); - _impl_.units_.Destroy(); +inline void NetlistFile::SharedDtor(MessageLite& self) { + NetlistFile& this_ = static_cast(self); + this_._internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); + ABSL_DCHECK(this_.GetArena() == nullptr); + this_._impl_.path_.Destroy(); + this_._impl_.name_.Destroy(); + this_._impl_.units_.Destroy(); + this_._impl_.~Impl_(); } -void NetlistFile::ArenaDtor(void* object) { - NetlistFile* _this = reinterpret_cast< NetlistFile* >(object); - _this->_impl_.netrecordsbyname_.Destruct(); +inline void* NetlistFile::PlacementNew_(const void*, void* mem, + ::google::protobuf::Arena* arena) { + return ::new (mem) NetlistFile(arena); } -void NetlistFile::SetCachedSize(int size) const { - _impl_._cached_size_.Set(size); +constexpr auto NetlistFile::InternalNewImpl_() { + constexpr auto arena_bits = ::google::protobuf::internal::EncodePlacementArenaOffsets({ + PROTOBUF_FIELD_OFFSET(NetlistFile, _impl_.netrecordss_) + + decltype(NetlistFile::_impl_.netrecordss_):: + InternalGetArenaOffset( + ::google::protobuf::Message::internal_visibility()), + PROTOBUF_FIELD_OFFSET(NetlistFile, _impl_.netrecordsbyname_) + + decltype(NetlistFile::_impl_.netrecordsbyname_):: + InternalGetArenaOffset( + ::google::protobuf::Message::internal_visibility()), + PROTOBUF_FIELD_OFFSET(NetlistFile, _impl_.netrecordsbyname_) + + decltype(NetlistFile::_impl_.netrecordsbyname_):: + InternalGetArenaOffsetAlt( + ::google::protobuf::Message::internal_visibility()), + PROTOBUF_FIELD_OFFSET(NetlistFile, _impl_.netpointrecords_) + + decltype(NetlistFile::_impl_.netpointrecords_):: + InternalGetArenaOffset( + ::google::protobuf::Message::internal_visibility()), + }); + if (arena_bits.has_value()) { + return ::google::protobuf::internal::MessageCreator::CopyInit( + sizeof(NetlistFile), alignof(NetlistFile), *arena_bits); + } else { + return ::google::protobuf::internal::MessageCreator(&NetlistFile::PlacementNew_, + sizeof(NetlistFile), + alignof(NetlistFile)); + } +} +PROTOBUF_CONSTINIT +PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 +const ::google::protobuf::internal::ClassDataFull NetlistFile::_class_data_ = { + ::google::protobuf::internal::ClassData{ + &_NetlistFile_default_instance_._instance, + &_table_.header, + nullptr, // OnDemandRegisterArenaDtor + nullptr, // IsInitialized + &NetlistFile::MergeImpl, + ::google::protobuf::Message::GetNewImpl(), +#if defined(PROTOBUF_CUSTOM_VTABLE) + &NetlistFile::SharedDtor, + ::google::protobuf::Message::GetClearImpl(), &NetlistFile::ByteSizeLong, + &NetlistFile::_InternalSerialize, +#endif // PROTOBUF_CUSTOM_VTABLE + PROTOBUF_FIELD_OFFSET(NetlistFile, _impl_._cached_size_), + false, + }, + &NetlistFile::kDescriptorMethods, + &descriptor_table_netlistfile_2eproto, + nullptr, // tracker +}; +const ::google::protobuf::internal::ClassData* NetlistFile::GetClassData() const { + ::google::protobuf::internal::PrefetchToLocalCache(&_class_data_); + ::google::protobuf::internal::PrefetchToLocalCache(_class_data_.tc_table); + return _class_data_.base(); } +PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 +const ::_pbi::TcParseTable<3, 8, 4, 74, 2> NetlistFile::_table_ = { + { + PROTOBUF_FIELD_OFFSET(NetlistFile, _impl_._has_bits_), + 0, // no _extensions_ + 8, 56, // max_field_number, fast_idx_mask + offsetof(decltype(_table_), field_lookup_table), + 4294967040, // skipmap + offsetof(decltype(_table_), field_entries), + 8, // num_field_entries + 4, // num_aux_entries + offsetof(decltype(_table_), aux_entries), + _class_data_.base(), + nullptr, // post_loop_handler + ::_pbi::TcParser::GenericFallback, // fallback + #ifdef PROTOBUF_PREFETCH_PARSE_TABLE + ::_pbi::TcParser::GetTable<::Odb::Lib::Protobuf::NetlistFile>(), // to_prefetch + #endif // PROTOBUF_PREFETCH_PARSE_TABLE + }, {{ + // repeated .Odb.Lib.Protobuf.NetlistFile.NetPointRecord netPointRecords = 8; + {::_pbi::TcParser::FastMtR1, + {66, 63, 1, PROTOBUF_FIELD_OFFSET(NetlistFile, _impl_.netpointrecords_)}}, + // optional string path = 1; + {::_pbi::TcParser::FastUS1, + {10, 0, 0, PROTOBUF_FIELD_OFFSET(NetlistFile, _impl_.path_)}}, + // optional string name = 2; + {::_pbi::TcParser::FastUS1, + {18, 1, 0, PROTOBUF_FIELD_OFFSET(NetlistFile, _impl_.name_)}}, + // optional string units = 3; + {::_pbi::TcParser::FastUS1, + {26, 2, 0, PROTOBUF_FIELD_OFFSET(NetlistFile, _impl_.units_)}}, + // optional bool optimized = 4; + {::_pbi::TcParser::SingularVarintNoZag1(), + {32, 3, 0, PROTOBUF_FIELD_OFFSET(NetlistFile, _impl_.optimized_)}}, + // optional .Odb.Lib.Protobuf.NetlistFile.Staggered staggered = 5; + {::_pbi::TcParser::SingularVarintNoZag1<::uint32_t, offsetof(NetlistFile, _impl_.staggered_), 4>(), + {40, 4, 0, PROTOBUF_FIELD_OFFSET(NetlistFile, _impl_.staggered_)}}, + // repeated .Odb.Lib.Protobuf.NetlistFile.NetRecord netRecordss = 6; + {::_pbi::TcParser::FastMtR1, + {50, 63, 0, PROTOBUF_FIELD_OFFSET(NetlistFile, _impl_.netrecordss_)}}, + {::_pbi::TcParser::MiniParse, {}}, + }}, {{ + 65535, 65535 + }}, {{ + // optional string path = 1; + {PROTOBUF_FIELD_OFFSET(NetlistFile, _impl_.path_), _Internal::kHasBitsOffset + 0, 0, + (0 | ::_fl::kFcOptional | ::_fl::kUtf8String | ::_fl::kRepAString)}, + // optional string name = 2; + {PROTOBUF_FIELD_OFFSET(NetlistFile, _impl_.name_), _Internal::kHasBitsOffset + 1, 0, + (0 | ::_fl::kFcOptional | ::_fl::kUtf8String | ::_fl::kRepAString)}, + // optional string units = 3; + {PROTOBUF_FIELD_OFFSET(NetlistFile, _impl_.units_), _Internal::kHasBitsOffset + 2, 0, + (0 | ::_fl::kFcOptional | ::_fl::kUtf8String | ::_fl::kRepAString)}, + // optional bool optimized = 4; + {PROTOBUF_FIELD_OFFSET(NetlistFile, _impl_.optimized_), _Internal::kHasBitsOffset + 3, 0, + (0 | ::_fl::kFcOptional | ::_fl::kBool)}, + // optional .Odb.Lib.Protobuf.NetlistFile.Staggered staggered = 5; + {PROTOBUF_FIELD_OFFSET(NetlistFile, _impl_.staggered_), _Internal::kHasBitsOffset + 4, 0, + (0 | ::_fl::kFcOptional | ::_fl::kOpenEnum)}, + // repeated .Odb.Lib.Protobuf.NetlistFile.NetRecord netRecordss = 6; + {PROTOBUF_FIELD_OFFSET(NetlistFile, _impl_.netrecordss_), -1, 0, + (0 | ::_fl::kFcRepeated | ::_fl::kMessage | ::_fl::kTvTable)}, + // map netRecordsByName = 7; + {PROTOBUF_FIELD_OFFSET(NetlistFile, _impl_.netrecordsbyname_), -1, 2, + (0 | ::_fl::kFcRepeated | ::_fl::kMap)}, + // repeated .Odb.Lib.Protobuf.NetlistFile.NetPointRecord netPointRecords = 8; + {PROTOBUF_FIELD_OFFSET(NetlistFile, _impl_.netpointrecords_), -1, 1, + (0 | ::_fl::kFcRepeated | ::_fl::kMessage | ::_fl::kTvTable)}, + }}, {{ + {::_pbi::TcParser::GetTable<::Odb::Lib::Protobuf::NetlistFile_NetRecord>()}, + {::_pbi::TcParser::GetTable<::Odb::Lib::Protobuf::NetlistFile_NetPointRecord>()}, + {::_pbi::TcParser::GetMapAuxInfo< + decltype(NetlistFile()._impl_.netrecordsbyname_)>( + 1, 0, 0, 9, + 11)}, + {::_pbi::TcParser::GetTable<::Odb::Lib::Protobuf::NetlistFile_NetRecord>()}, + }}, {{ + "\34\4\4\5\0\0\0\20\0\0\0\0\0\0\0\0" + "Odb.Lib.Protobuf.NetlistFile" + "path" + "name" + "units" + "netRecordsByName" + }}, +}; -void NetlistFile::Clear() { +PROTOBUF_NOINLINE void NetlistFile::Clear() { // @@protoc_insertion_point(message_clear_start:Odb.Lib.Protobuf.NetlistFile) - uint32_t cached_has_bits = 0; + ::google::protobuf::internal::TSanWrite(&_impl_); + ::uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; @@ -1492,318 +1637,211 @@ void NetlistFile::Clear() { } } if (cached_has_bits & 0x00000018u) { - ::memset(&_impl_.optimized_, 0, static_cast( + ::memset(&_impl_.optimized_, 0, static_cast<::size_t>( reinterpret_cast(&_impl_.staggered_) - reinterpret_cast(&_impl_.optimized_)) + sizeof(_impl_.staggered_)); } _impl_._has_bits_.Clear(); - _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); -} - -const char* NetlistFile::_InternalParse(const char* ptr, ::_pbi::ParseContext* ctx) { -#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure - _Internal::HasBits has_bits{}; - while (!ctx->Done(&ptr)) { - uint32_t tag; - ptr = ::_pbi::ReadTag(ptr, &tag); - switch (tag >> 3) { - // optional string path = 1; - case 1: - if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 10)) { - auto str = _internal_mutable_path(); - ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); - CHK_(ptr); - CHK_(::_pbi::VerifyUTF8(str, "Odb.Lib.Protobuf.NetlistFile.path")); - } else - goto handle_unusual; - continue; - // optional string name = 2; - case 2: - if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 18)) { - auto str = _internal_mutable_name(); - ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); - CHK_(ptr); - CHK_(::_pbi::VerifyUTF8(str, "Odb.Lib.Protobuf.NetlistFile.name")); - } else - goto handle_unusual; - continue; - // optional string units = 3; - case 3: - if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 26)) { - auto str = _internal_mutable_units(); - ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); - CHK_(ptr); - CHK_(::_pbi::VerifyUTF8(str, "Odb.Lib.Protobuf.NetlistFile.units")); - } else - goto handle_unusual; - continue; - // optional bool optimized = 4; - case 4: - if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 32)) { - _Internal::set_has_optimized(&has_bits); - _impl_.optimized_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); - CHK_(ptr); - } else - goto handle_unusual; - continue; - // optional .Odb.Lib.Protobuf.NetlistFile.Staggered staggered = 5; - case 5: - if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 40)) { - uint64_t val = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); - CHK_(ptr); - _internal_set_staggered(static_cast<::Odb::Lib::Protobuf::NetlistFile_Staggered>(val)); - } else - goto handle_unusual; - continue; - // repeated .Odb.Lib.Protobuf.NetlistFile.NetRecord netRecordss = 6; - case 6: - if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 50)) { - ptr -= 1; - do { - ptr += 1; - ptr = ctx->ParseMessage(_internal_add_netrecordss(), ptr); - CHK_(ptr); - if (!ctx->DataAvailable(ptr)) break; - } while (::PROTOBUF_NAMESPACE_ID::internal::ExpectTag<50>(ptr)); - } else - goto handle_unusual; - continue; - // map netRecordsByName = 7; - case 7: - if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 58)) { - ptr -= 1; - do { - ptr += 1; - ptr = ctx->ParseMessage(&_impl_.netrecordsbyname_, ptr); - CHK_(ptr); - if (!ctx->DataAvailable(ptr)) break; - } while (::PROTOBUF_NAMESPACE_ID::internal::ExpectTag<58>(ptr)); - } else - goto handle_unusual; - continue; - // repeated .Odb.Lib.Protobuf.NetlistFile.NetPointRecord netPointRecords = 8; - case 8: - if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 66)) { - ptr -= 1; - do { - ptr += 1; - ptr = ctx->ParseMessage(_internal_add_netpointrecords(), ptr); - CHK_(ptr); - if (!ctx->DataAvailable(ptr)) break; - } while (::PROTOBUF_NAMESPACE_ID::internal::ExpectTag<66>(ptr)); - } else - goto handle_unusual; - continue; - default: - goto handle_unusual; - } // switch - handle_unusual: - if ((tag == 0) || ((tag & 7) == 4)) { - CHK_(ptr); - ctx->SetLastTag(tag); - goto message_done; - } - ptr = UnknownFieldParse( - tag, - _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(), - ptr, ctx); - CHK_(ptr != nullptr); - } // while -message_done: - _impl_._has_bits_.Or(has_bits); - return ptr; -failure: - ptr = nullptr; - goto message_done; -#undef CHK_ -} - -uint8_t* NetlistFile::_InternalSerialize( - uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { - // @@protoc_insertion_point(serialize_to_array_start:Odb.Lib.Protobuf.NetlistFile) - uint32_t cached_has_bits = 0; - (void) cached_has_bits; - - // optional string path = 1; - if (_internal_has_path()) { - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( - this->_internal_path().data(), static_cast(this->_internal_path().length()), - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, - "Odb.Lib.Protobuf.NetlistFile.path"); - target = stream->WriteStringMaybeAliased( - 1, this->_internal_path(), target); - } - - // optional string name = 2; - if (_internal_has_name()) { - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( - this->_internal_name().data(), static_cast(this->_internal_name().length()), - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, - "Odb.Lib.Protobuf.NetlistFile.name"); - target = stream->WriteStringMaybeAliased( - 2, this->_internal_name(), target); - } - - // optional string units = 3; - if (_internal_has_units()) { - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( - this->_internal_units().data(), static_cast(this->_internal_units().length()), - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, - "Odb.Lib.Protobuf.NetlistFile.units"); - target = stream->WriteStringMaybeAliased( - 3, this->_internal_units(), target); - } - - // optional bool optimized = 4; - if (_internal_has_optimized()) { - target = stream->EnsureSpace(target); - target = ::_pbi::WireFormatLite::WriteBoolToArray(4, this->_internal_optimized(), target); - } - - // optional .Odb.Lib.Protobuf.NetlistFile.Staggered staggered = 5; - if (_internal_has_staggered()) { - target = stream->EnsureSpace(target); - target = ::_pbi::WireFormatLite::WriteEnumToArray( - 5, this->_internal_staggered(), target); - } - - // repeated .Odb.Lib.Protobuf.NetlistFile.NetRecord netRecordss = 6; - for (unsigned i = 0, - n = static_cast(this->_internal_netrecordss_size()); i < n; i++) { - const auto& repfield = this->_internal_netrecordss(i); - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: - InternalWriteMessage(6, repfield, repfield.GetCachedSize(), target, stream); - } - - // map netRecordsByName = 7; - if (!this->_internal_netrecordsbyname().empty()) { - using MapType = ::_pb::Map; - using WireHelper = NetlistFile_NetRecordsByNameEntry_DoNotUse::Funcs; - const auto& map_field = this->_internal_netrecordsbyname(); - auto check_utf8 = [](const MapType::value_type& entry) { - (void)entry; - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( - entry.first.data(), static_cast(entry.first.length()), - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, - "Odb.Lib.Protobuf.NetlistFile.NetRecordsByNameEntry.key"); - }; - - if (stream->IsSerializationDeterministic() && map_field.size() > 1) { - for (const auto& entry : ::_pbi::MapSorterPtr(map_field)) { - target = WireHelper::InternalSerialize(7, entry.first, entry.second, target, stream); - check_utf8(entry); - } - } else { - for (const auto& entry : map_field) { - target = WireHelper::InternalSerialize(7, entry.first, entry.second, target, stream); - check_utf8(entry); - } - } - } - - // repeated .Odb.Lib.Protobuf.NetlistFile.NetPointRecord netPointRecords = 8; - for (unsigned i = 0, - n = static_cast(this->_internal_netpointrecords_size()); i < n; i++) { - const auto& repfield = this->_internal_netpointrecords(i); - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: - InternalWriteMessage(8, repfield, repfield.GetCachedSize(), target, stream); - } - - if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = ::_pbi::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:Odb.Lib.Protobuf.NetlistFile) - return target; + _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); } -size_t NetlistFile::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:Odb.Lib.Protobuf.NetlistFile) - size_t total_size = 0; - - uint32_t cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - // repeated .Odb.Lib.Protobuf.NetlistFile.NetRecord netRecordss = 6; - total_size += 1UL * this->_internal_netrecordss_size(); - for (const auto& msg : this->_impl_.netrecordss_) { - total_size += - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(msg); - } - - // map netRecordsByName = 7; - total_size += 1 * - ::PROTOBUF_NAMESPACE_ID::internal::FromIntSize(this->_internal_netrecordsbyname_size()); - for (::PROTOBUF_NAMESPACE_ID::Map< std::string, ::Odb::Lib::Protobuf::NetlistFile_NetRecord >::const_iterator - it = this->_internal_netrecordsbyname().begin(); - it != this->_internal_netrecordsbyname().end(); ++it) { - total_size += NetlistFile_NetRecordsByNameEntry_DoNotUse::Funcs::ByteSizeLong(it->first, it->second); - } - - // repeated .Odb.Lib.Protobuf.NetlistFile.NetPointRecord netPointRecords = 8; - total_size += 1UL * this->_internal_netpointrecords_size(); - for (const auto& msg : this->_impl_.netpointrecords_) { - total_size += - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(msg); - } - - cached_has_bits = _impl_._has_bits_[0]; - if (cached_has_bits & 0x0000001fu) { - // optional string path = 1; - if (cached_has_bits & 0x00000001u) { - total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( - this->_internal_path()); - } - - // optional string name = 2; - if (cached_has_bits & 0x00000002u) { - total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( - this->_internal_name()); - } - - // optional string units = 3; - if (cached_has_bits & 0x00000004u) { - total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( - this->_internal_units()); - } - - // optional bool optimized = 4; - if (cached_has_bits & 0x00000008u) { - total_size += 1 + 1; - } - - // optional .Odb.Lib.Protobuf.NetlistFile.Staggered staggered = 5; - if (cached_has_bits & 0x00000010u) { - total_size += 1 + - ::_pbi::WireFormatLite::EnumSize(this->_internal_staggered()); - } - - } - return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); -} - -const ::PROTOBUF_NAMESPACE_ID::Message::ClassData NetlistFile::_class_data_ = { - ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSourceCheck, - NetlistFile::MergeImpl -}; -const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*NetlistFile::GetClassData() const { return &_class_data_; } - - -void NetlistFile::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg) { +#if defined(PROTOBUF_CUSTOM_VTABLE) + ::uint8_t* NetlistFile::_InternalSerialize( + const MessageLite& base, ::uint8_t* target, + ::google::protobuf::io::EpsCopyOutputStream* stream) { + const NetlistFile& this_ = static_cast(base); +#else // PROTOBUF_CUSTOM_VTABLE + ::uint8_t* NetlistFile::_InternalSerialize( + ::uint8_t* target, + ::google::protobuf::io::EpsCopyOutputStream* stream) const { + const NetlistFile& this_ = *this; +#endif // PROTOBUF_CUSTOM_VTABLE + // @@protoc_insertion_point(serialize_to_array_start:Odb.Lib.Protobuf.NetlistFile) + ::uint32_t cached_has_bits = 0; + (void)cached_has_bits; + + cached_has_bits = this_._impl_._has_bits_[0]; + // optional string path = 1; + if (cached_has_bits & 0x00000001u) { + const std::string& _s = this_._internal_path(); + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + _s.data(), static_cast(_s.length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "Odb.Lib.Protobuf.NetlistFile.path"); + target = stream->WriteStringMaybeAliased(1, _s, target); + } + + // optional string name = 2; + if (cached_has_bits & 0x00000002u) { + const std::string& _s = this_._internal_name(); + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + _s.data(), static_cast(_s.length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "Odb.Lib.Protobuf.NetlistFile.name"); + target = stream->WriteStringMaybeAliased(2, _s, target); + } + + // optional string units = 3; + if (cached_has_bits & 0x00000004u) { + const std::string& _s = this_._internal_units(); + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + _s.data(), static_cast(_s.length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "Odb.Lib.Protobuf.NetlistFile.units"); + target = stream->WriteStringMaybeAliased(3, _s, target); + } + + // optional bool optimized = 4; + if (cached_has_bits & 0x00000008u) { + target = stream->EnsureSpace(target); + target = ::_pbi::WireFormatLite::WriteBoolToArray( + 4, this_._internal_optimized(), target); + } + + // optional .Odb.Lib.Protobuf.NetlistFile.Staggered staggered = 5; + if (cached_has_bits & 0x00000010u) { + target = stream->EnsureSpace(target); + target = ::_pbi::WireFormatLite::WriteEnumToArray( + 5, this_._internal_staggered(), target); + } + + // repeated .Odb.Lib.Protobuf.NetlistFile.NetRecord netRecordss = 6; + for (unsigned i = 0, n = static_cast( + this_._internal_netrecordss_size()); + i < n; i++) { + const auto& repfield = this_._internal_netrecordss().Get(i); + target = + ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( + 6, repfield, repfield.GetCachedSize(), + target, stream); + } + + // map netRecordsByName = 7; + if (!this_._internal_netrecordsbyname().empty()) { + using MapType = ::google::protobuf::Map; + using WireHelper = _pbi::MapEntryFuncs; + const auto& field = this_._internal_netrecordsbyname(); + + if (stream->IsSerializationDeterministic() && field.size() > 1) { + for (const auto& entry : ::google::protobuf::internal::MapSorterPtr(field)) { + target = WireHelper::InternalSerialize( + 7, entry.first, entry.second, target, stream); + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + entry.first.data(), static_cast(entry.first.length()), + ::google::protobuf::internal::WireFormatLite::SERIALIZE, "Odb.Lib.Protobuf.NetlistFile.netRecordsByName"); + } + } else { + for (const auto& entry : field) { + target = WireHelper::InternalSerialize( + 7, entry.first, entry.second, target, stream); + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + entry.first.data(), static_cast(entry.first.length()), + ::google::protobuf::internal::WireFormatLite::SERIALIZE, "Odb.Lib.Protobuf.NetlistFile.netRecordsByName"); + } + } + } + + // repeated .Odb.Lib.Protobuf.NetlistFile.NetPointRecord netPointRecords = 8; + for (unsigned i = 0, n = static_cast( + this_._internal_netpointrecords_size()); + i < n; i++) { + const auto& repfield = this_._internal_netpointrecords().Get(i); + target = + ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( + 8, repfield, repfield.GetCachedSize(), + target, stream); + } + + if (PROTOBUF_PREDICT_FALSE(this_._internal_metadata_.have_unknown_fields())) { + target = + ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( + this_._internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); + } + // @@protoc_insertion_point(serialize_to_array_end:Odb.Lib.Protobuf.NetlistFile) + return target; + } + +#if defined(PROTOBUF_CUSTOM_VTABLE) + ::size_t NetlistFile::ByteSizeLong(const MessageLite& base) { + const NetlistFile& this_ = static_cast(base); +#else // PROTOBUF_CUSTOM_VTABLE + ::size_t NetlistFile::ByteSizeLong() const { + const NetlistFile& this_ = *this; +#endif // PROTOBUF_CUSTOM_VTABLE + // @@protoc_insertion_point(message_byte_size_start:Odb.Lib.Protobuf.NetlistFile) + ::size_t total_size = 0; + + ::uint32_t cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void)cached_has_bits; + + ::_pbi::Prefetch5LinesFrom7Lines(&this_); + { + // repeated .Odb.Lib.Protobuf.NetlistFile.NetRecord netRecordss = 6; + { + total_size += 1UL * this_._internal_netrecordss_size(); + for (const auto& msg : this_._internal_netrecordss()) { + total_size += ::google::protobuf::internal::WireFormatLite::MessageSize(msg); + } + } + // map netRecordsByName = 7; + { + total_size += + 1 * ::google::protobuf::internal::FromIntSize(this_._internal_netrecordsbyname_size()); + for (const auto& entry : this_._internal_netrecordsbyname()) { + total_size += _pbi::MapEntryFuncs::ByteSizeLong(entry.first, entry.second); + } + } + // repeated .Odb.Lib.Protobuf.NetlistFile.NetPointRecord netPointRecords = 8; + { + total_size += 1UL * this_._internal_netpointrecords_size(); + for (const auto& msg : this_._internal_netpointrecords()) { + total_size += ::google::protobuf::internal::WireFormatLite::MessageSize(msg); + } + } + } + cached_has_bits = this_._impl_._has_bits_[0]; + if (cached_has_bits & 0x0000001fu) { + // optional string path = 1; + if (cached_has_bits & 0x00000001u) { + total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize( + this_._internal_path()); + } + // optional string name = 2; + if (cached_has_bits & 0x00000002u) { + total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize( + this_._internal_name()); + } + // optional string units = 3; + if (cached_has_bits & 0x00000004u) { + total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize( + this_._internal_units()); + } + // optional bool optimized = 4; + if (cached_has_bits & 0x00000008u) { + total_size += 2; + } + // optional .Odb.Lib.Protobuf.NetlistFile.Staggered staggered = 5; + if (cached_has_bits & 0x00000010u) { + total_size += 1 + + ::_pbi::WireFormatLite::EnumSize(this_._internal_staggered()); + } + } + return this_.MaybeComputeUnknownFieldsSize(total_size, + &this_._impl_._cached_size_); + } + +void NetlistFile::MergeImpl(::google::protobuf::MessageLite& to_msg, const ::google::protobuf::MessageLite& from_msg) { auto* const _this = static_cast(&to_msg); auto& from = static_cast(from_msg); // @@protoc_insertion_point(class_specific_merge_from_start:Odb.Lib.Protobuf.NetlistFile) - GOOGLE_DCHECK_NE(&from, _this); - uint32_t cached_has_bits = 0; + ABSL_DCHECK_NE(&from, _this); + ::uint32_t cached_has_bits = 0; (void) cached_has_bits; - _this->_impl_.netrecordss_.MergeFrom(from._impl_.netrecordss_); + _this->_internal_mutable_netrecordss()->MergeFrom( + from._internal_netrecordss()); _this->_impl_.netrecordsbyname_.MergeFrom(from._impl_.netrecordsbyname_); - _this->_impl_.netpointrecords_.MergeFrom(from._impl_.netpointrecords_); + _this->_internal_mutable_netpointrecords()->MergeFrom( + from._internal_netpointrecords()); cached_has_bits = from._impl_._has_bits_[0]; if (cached_has_bits & 0x0000001fu) { if (cached_has_bits & 0x00000001u) { @@ -1821,9 +1859,9 @@ void NetlistFile::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PR if (cached_has_bits & 0x00000010u) { _this->_impl_.staggered_ = from._impl_.staggered_; } - _this->_impl_._has_bits_[0] |= cached_has_bits; } - _this->_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); + _this->_impl_._has_bits_[0] |= cached_has_bits; + _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); } void NetlistFile::CopyFrom(const NetlistFile& from) { @@ -1833,32 +1871,20 @@ void NetlistFile::CopyFrom(const NetlistFile& from) { MergeFrom(from); } -bool NetlistFile::IsInitialized() const { - return true; -} -void NetlistFile::InternalSwap(NetlistFile* other) { +void NetlistFile::InternalSwap(NetlistFile* PROTOBUF_RESTRICT other) { using std::swap; - auto* lhs_arena = GetArenaForAllocation(); - auto* rhs_arena = other->GetArenaForAllocation(); + auto* arena = GetArena(); + ABSL_DCHECK_EQ(arena, other->GetArena()); _internal_metadata_.InternalSwap(&other->_internal_metadata_); swap(_impl_._has_bits_[0], other->_impl_._has_bits_[0]); _impl_.netrecordss_.InternalSwap(&other->_impl_.netrecordss_); _impl_.netrecordsbyname_.InternalSwap(&other->_impl_.netrecordsbyname_); _impl_.netpointrecords_.InternalSwap(&other->_impl_.netpointrecords_); - ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( - &_impl_.path_, lhs_arena, - &other->_impl_.path_, rhs_arena - ); - ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( - &_impl_.name_, lhs_arena, - &other->_impl_.name_, rhs_arena - ); - ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( - &_impl_.units_, lhs_arena, - &other->_impl_.units_, rhs_arena - ); - ::PROTOBUF_NAMESPACE_ID::internal::memswap< + ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.path_, &other->_impl_.path_, arena); + ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.name_, &other->_impl_.name_, arena); + ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.units_, &other->_impl_.units_, arena); + ::google::protobuf::internal::memswap< PROTOBUF_FIELD_OFFSET(NetlistFile, _impl_.staggered_) + sizeof(NetlistFile::_impl_.staggered_) - PROTOBUF_FIELD_OFFSET(NetlistFile, _impl_.optimized_)>( @@ -1866,34 +1892,20 @@ void NetlistFile::InternalSwap(NetlistFile* other) { reinterpret_cast(&other->_impl_.optimized_)); } -::PROTOBUF_NAMESPACE_ID::Metadata NetlistFile::GetMetadata() const { - return ::_pbi::AssignDescriptors( - &descriptor_table_netlistfile_2eproto_getter, &descriptor_table_netlistfile_2eproto_once, - file_level_metadata_netlistfile_2eproto[3]); +::google::protobuf::Metadata NetlistFile::GetMetadata() const { + return ::google::protobuf::Message::GetMetadataImpl(GetClassData()->full()); } - // @@protoc_insertion_point(namespace_scope) } // namespace Protobuf } // namespace Lib } // namespace Odb -PROTOBUF_NAMESPACE_OPEN -template<> PROTOBUF_NOINLINE ::Odb::Lib::Protobuf::NetlistFile_NetRecord* -Arena::CreateMaybeMessage< ::Odb::Lib::Protobuf::NetlistFile_NetRecord >(Arena* arena) { - return Arena::CreateMessageInternal< ::Odb::Lib::Protobuf::NetlistFile_NetRecord >(arena); -} -template<> PROTOBUF_NOINLINE ::Odb::Lib::Protobuf::NetlistFile_NetPointRecord* -Arena::CreateMaybeMessage< ::Odb::Lib::Protobuf::NetlistFile_NetPointRecord >(Arena* arena) { - return Arena::CreateMessageInternal< ::Odb::Lib::Protobuf::NetlistFile_NetPointRecord >(arena); -} -template<> PROTOBUF_NOINLINE ::Odb::Lib::Protobuf::NetlistFile_NetRecordsByNameEntry_DoNotUse* -Arena::CreateMaybeMessage< ::Odb::Lib::Protobuf::NetlistFile_NetRecordsByNameEntry_DoNotUse >(Arena* arena) { - return Arena::CreateMessageInternal< ::Odb::Lib::Protobuf::NetlistFile_NetRecordsByNameEntry_DoNotUse >(arena); -} -template<> PROTOBUF_NOINLINE ::Odb::Lib::Protobuf::NetlistFile* -Arena::CreateMaybeMessage< ::Odb::Lib::Protobuf::NetlistFile >(Arena* arena) { - return Arena::CreateMessageInternal< ::Odb::Lib::Protobuf::NetlistFile >(arena); -} -PROTOBUF_NAMESPACE_CLOSE - +namespace google { +namespace protobuf { +} // namespace protobuf +} // namespace google // @@protoc_insertion_point(global_scope) -#include +PROTOBUF_ATTRIBUTE_INIT_PRIORITY2 static ::std::false_type + _static_init2_ PROTOBUF_UNUSED = + (::_pbi::AddDescriptors(&descriptor_table_netlistfile_2eproto), + ::std::false_type{}); +#include "google/protobuf/port_undef.inc" diff --git a/OdbDesignLib/ProtoBuf/netlistfile.pb.h b/OdbDesignLib/ProtoBuf/netlistfile.pb.h index a227babe..07d94919 100644 --- a/OdbDesignLib/ProtoBuf/netlistfile.pb.h +++ b/OdbDesignLib/ProtoBuf/netlistfile.pb.h @@ -1,53 +1,60 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE // source: netlistfile.proto +// Protobuf C++ Version: 5.29.2 -#ifndef GOOGLE_PROTOBUF_INCLUDED_netlistfile_2eproto -#define GOOGLE_PROTOBUF_INCLUDED_netlistfile_2eproto +#ifndef netlistfile_2eproto_2epb_2eh +#define netlistfile_2eproto_2epb_2eh #include #include - -#include -#if PROTOBUF_VERSION < 3021000 -#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 3021012 < 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. +#include +#include + +#include "google/protobuf/runtime_version.h" +#if PROTOBUF_VERSION != 5029002 +#error "Protobuf C++ gencode is built with an incompatible version of" +#error "Protobuf C++ headers/runtime. See" +#error "https://protobuf.dev/support/cross-version-runtime-guarantee/#cpp" #endif - -#include -#include -#include -#include -#include -#include -#include -#include -#include // IWYU pragma: export -#include // IWYU pragma: export -#include // IWYU pragma: export -#include -#include -#include -#include +#include "google/protobuf/io/coded_stream.h" +#include "google/protobuf/arena.h" +#include "google/protobuf/arenastring.h" +#include "google/protobuf/generated_message_tctable_decl.h" +#include "google/protobuf/generated_message_util.h" +#include "google/protobuf/metadata_lite.h" +#include "google/protobuf/generated_message_reflection.h" +#include "google/protobuf/message.h" +#include "google/protobuf/message_lite.h" +#include "google/protobuf/repeated_field.h" // IWYU pragma: export +#include "google/protobuf/extension_set.h" // IWYU pragma: export +#include "google/protobuf/map.h" // IWYU pragma: export +#include "google/protobuf/map_entry.h" +#include "google/protobuf/map_field_inl.h" +#include "google/protobuf/generated_enum_reflection.h" +#include "google/protobuf/unknown_field_set.h" // @@protoc_insertion_point(includes) -#include + +// Must be included last. +#include "google/protobuf/port_def.inc" + #define PROTOBUF_INTERNAL_EXPORT_netlistfile_2eproto ODBDESIGN_EXPORT -PROTOBUF_NAMESPACE_OPEN + +namespace google { +namespace protobuf { namespace internal { -class AnyMetadata; +template +::absl::string_view GetAnyMessageName(); } // namespace internal -PROTOBUF_NAMESPACE_CLOSE +} // namespace protobuf +} // namespace google // Internal implementation detail -- do not use these members. struct ODBDESIGN_EXPORT TableStruct_netlistfile_2eproto { - static const uint32_t offsets[]; + static const ::uint32_t offsets[]; }; -ODBDESIGN_EXPORT extern const ::PROTOBUF_NAMESPACE_ID::internal::DescriptorTable descriptor_table_netlistfile_2eproto; +ODBDESIGN_EXPORT extern const ::google::protobuf::internal::DescriptorTable + descriptor_table_netlistfile_2eproto; namespace Odb { namespace Lib { namespace Protobuf { @@ -66,95 +73,116 @@ ODBDESIGN_EXPORT extern NetlistFile_NetRecordsByNameEntry_DoNotUseDefaultTypeInt } // namespace Protobuf } // namespace Lib } // namespace Odb -PROTOBUF_NAMESPACE_OPEN -template<> ODBDESIGN_EXPORT ::Odb::Lib::Protobuf::NetlistFile* Arena::CreateMaybeMessage<::Odb::Lib::Protobuf::NetlistFile>(Arena*); -template<> ODBDESIGN_EXPORT ::Odb::Lib::Protobuf::NetlistFile_NetPointRecord* Arena::CreateMaybeMessage<::Odb::Lib::Protobuf::NetlistFile_NetPointRecord>(Arena*); -template<> ODBDESIGN_EXPORT ::Odb::Lib::Protobuf::NetlistFile_NetRecord* Arena::CreateMaybeMessage<::Odb::Lib::Protobuf::NetlistFile_NetRecord>(Arena*); -template<> ODBDESIGN_EXPORT ::Odb::Lib::Protobuf::NetlistFile_NetRecordsByNameEntry_DoNotUse* Arena::CreateMaybeMessage<::Odb::Lib::Protobuf::NetlistFile_NetRecordsByNameEntry_DoNotUse>(Arena*); -PROTOBUF_NAMESPACE_CLOSE +namespace google { +namespace protobuf { +} // namespace protobuf +} // namespace google + namespace Odb { namespace Lib { namespace Protobuf { - enum NetlistFile_NetPointRecord_AccessSide : int { NetlistFile_NetPointRecord_AccessSide_Top = 0, NetlistFile_NetPointRecord_AccessSide_Down = 1, NetlistFile_NetPointRecord_AccessSide_Both = 2, NetlistFile_NetPointRecord_AccessSide_Inner = 3, - NetlistFile_NetPointRecord_AccessSide_NetlistFile_NetPointRecord_AccessSide_INT_MIN_SENTINEL_DO_NOT_USE_ = std::numeric_limits::min(), - NetlistFile_NetPointRecord_AccessSide_NetlistFile_NetPointRecord_AccessSide_INT_MAX_SENTINEL_DO_NOT_USE_ = std::numeric_limits::max() + NetlistFile_NetPointRecord_AccessSide_NetlistFile_NetPointRecord_AccessSide_INT_MIN_SENTINEL_DO_NOT_USE_ = + std::numeric_limits<::int32_t>::min(), + NetlistFile_NetPointRecord_AccessSide_NetlistFile_NetPointRecord_AccessSide_INT_MAX_SENTINEL_DO_NOT_USE_ = + std::numeric_limits<::int32_t>::max(), }; + ODBDESIGN_EXPORT bool NetlistFile_NetPointRecord_AccessSide_IsValid(int value); -constexpr NetlistFile_NetPointRecord_AccessSide NetlistFile_NetPointRecord_AccessSide_AccessSide_MIN = NetlistFile_NetPointRecord_AccessSide_Top; -constexpr NetlistFile_NetPointRecord_AccessSide NetlistFile_NetPointRecord_AccessSide_AccessSide_MAX = NetlistFile_NetPointRecord_AccessSide_Inner; -constexpr int NetlistFile_NetPointRecord_AccessSide_AccessSide_ARRAYSIZE = NetlistFile_NetPointRecord_AccessSide_AccessSide_MAX + 1; - -ODBDESIGN_EXPORT const ::PROTOBUF_NAMESPACE_ID::EnumDescriptor* NetlistFile_NetPointRecord_AccessSide_descriptor(); -template -inline const std::string& NetlistFile_NetPointRecord_AccessSide_Name(T enum_t_value) { - static_assert(::std::is_same::value || - ::std::is_integral::value, - "Incorrect type passed to function NetlistFile_NetPointRecord_AccessSide_Name."); - return ::PROTOBUF_NAMESPACE_ID::internal::NameOfEnum( - NetlistFile_NetPointRecord_AccessSide_descriptor(), enum_t_value); -} -inline bool NetlistFile_NetPointRecord_AccessSide_Parse( - ::PROTOBUF_NAMESPACE_ID::ConstStringParam name, NetlistFile_NetPointRecord_AccessSide* value) { - return ::PROTOBUF_NAMESPACE_ID::internal::ParseNamedEnum( - NetlistFile_NetPointRecord_AccessSide_descriptor(), name, value); +ODBDESIGN_EXPORT extern const uint32_t NetlistFile_NetPointRecord_AccessSide_internal_data_[]; +constexpr NetlistFile_NetPointRecord_AccessSide NetlistFile_NetPointRecord_AccessSide_AccessSide_MIN = static_cast(0); +constexpr NetlistFile_NetPointRecord_AccessSide NetlistFile_NetPointRecord_AccessSide_AccessSide_MAX = static_cast(3); +constexpr int NetlistFile_NetPointRecord_AccessSide_AccessSide_ARRAYSIZE = 3 + 1; +ODBDESIGN_EXPORT const ::google::protobuf::EnumDescriptor* +NetlistFile_NetPointRecord_AccessSide_descriptor(); +template +const std::string& NetlistFile_NetPointRecord_AccessSide_Name(T value) { + static_assert(std::is_same::value || + std::is_integral::value, + "Incorrect type passed to AccessSide_Name()."); + return NetlistFile_NetPointRecord_AccessSide_Name(static_cast(value)); +} +template <> +inline const std::string& NetlistFile_NetPointRecord_AccessSide_Name(NetlistFile_NetPointRecord_AccessSide value) { + return ::google::protobuf::internal::NameOfDenseEnum( + static_cast(value)); +} +inline bool NetlistFile_NetPointRecord_AccessSide_Parse(absl::string_view name, NetlistFile_NetPointRecord_AccessSide* value) { + return ::google::protobuf::internal::ParseNamedEnum( + NetlistFile_NetPointRecord_AccessSide_descriptor(), name, value); } enum NetlistFile_Staggered : int { NetlistFile_Staggered_Yes = 0, NetlistFile_Staggered_No = 1, NetlistFile_Staggered_Unknown = 2, - NetlistFile_Staggered_NetlistFile_Staggered_INT_MIN_SENTINEL_DO_NOT_USE_ = std::numeric_limits::min(), - NetlistFile_Staggered_NetlistFile_Staggered_INT_MAX_SENTINEL_DO_NOT_USE_ = std::numeric_limits::max() + NetlistFile_Staggered_NetlistFile_Staggered_INT_MIN_SENTINEL_DO_NOT_USE_ = + std::numeric_limits<::int32_t>::min(), + NetlistFile_Staggered_NetlistFile_Staggered_INT_MAX_SENTINEL_DO_NOT_USE_ = + std::numeric_limits<::int32_t>::max(), }; + ODBDESIGN_EXPORT bool NetlistFile_Staggered_IsValid(int value); -constexpr NetlistFile_Staggered NetlistFile_Staggered_Staggered_MIN = NetlistFile_Staggered_Yes; -constexpr NetlistFile_Staggered NetlistFile_Staggered_Staggered_MAX = NetlistFile_Staggered_Unknown; -constexpr int NetlistFile_Staggered_Staggered_ARRAYSIZE = NetlistFile_Staggered_Staggered_MAX + 1; - -ODBDESIGN_EXPORT const ::PROTOBUF_NAMESPACE_ID::EnumDescriptor* NetlistFile_Staggered_descriptor(); -template -inline const std::string& NetlistFile_Staggered_Name(T enum_t_value) { - static_assert(::std::is_same::value || - ::std::is_integral::value, - "Incorrect type passed to function NetlistFile_Staggered_Name."); - return ::PROTOBUF_NAMESPACE_ID::internal::NameOfEnum( - NetlistFile_Staggered_descriptor(), enum_t_value); -} -inline bool NetlistFile_Staggered_Parse( - ::PROTOBUF_NAMESPACE_ID::ConstStringParam name, NetlistFile_Staggered* value) { - return ::PROTOBUF_NAMESPACE_ID::internal::ParseNamedEnum( - NetlistFile_Staggered_descriptor(), name, value); +ODBDESIGN_EXPORT extern const uint32_t NetlistFile_Staggered_internal_data_[]; +constexpr NetlistFile_Staggered NetlistFile_Staggered_Staggered_MIN = static_cast(0); +constexpr NetlistFile_Staggered NetlistFile_Staggered_Staggered_MAX = static_cast(2); +constexpr int NetlistFile_Staggered_Staggered_ARRAYSIZE = 2 + 1; +ODBDESIGN_EXPORT const ::google::protobuf::EnumDescriptor* +NetlistFile_Staggered_descriptor(); +template +const std::string& NetlistFile_Staggered_Name(T value) { + static_assert(std::is_same::value || + std::is_integral::value, + "Incorrect type passed to Staggered_Name()."); + return NetlistFile_Staggered_Name(static_cast(value)); +} +template <> +inline const std::string& NetlistFile_Staggered_Name(NetlistFile_Staggered value) { + return ::google::protobuf::internal::NameOfDenseEnum( + static_cast(value)); +} +inline bool NetlistFile_Staggered_Parse(absl::string_view name, NetlistFile_Staggered* value) { + return ::google::protobuf::internal::ParseNamedEnum( + NetlistFile_Staggered_descriptor(), name, value); } + // =================================================================== -class ODBDESIGN_EXPORT NetlistFile_NetRecord final : - public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:Odb.Lib.Protobuf.NetlistFile.NetRecord) */ { + +// ------------------------------------------------------------------- + +class ODBDESIGN_EXPORT NetlistFile_NetRecord final : public ::google::protobuf::Message +/* @@protoc_insertion_point(class_definition:Odb.Lib.Protobuf.NetlistFile.NetRecord) */ { public: inline NetlistFile_NetRecord() : NetlistFile_NetRecord(nullptr) {} - ~NetlistFile_NetRecord() override; - explicit PROTOBUF_CONSTEXPR NetlistFile_NetRecord(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); + ~NetlistFile_NetRecord() PROTOBUF_FINAL; - NetlistFile_NetRecord(const NetlistFile_NetRecord& from); - NetlistFile_NetRecord(NetlistFile_NetRecord&& from) noexcept - : NetlistFile_NetRecord() { - *this = ::std::move(from); +#if defined(PROTOBUF_CUSTOM_VTABLE) + void operator delete(NetlistFile_NetRecord* msg, std::destroying_delete_t) { + SharedDtor(*msg); + ::google::protobuf::internal::SizedDelete(msg, sizeof(NetlistFile_NetRecord)); } +#endif + template + explicit PROTOBUF_CONSTEXPR NetlistFile_NetRecord( + ::google::protobuf::internal::ConstantInitialized); + + inline NetlistFile_NetRecord(const NetlistFile_NetRecord& from) : NetlistFile_NetRecord(nullptr, from) {} + inline NetlistFile_NetRecord(NetlistFile_NetRecord&& from) noexcept + : NetlistFile_NetRecord(nullptr, std::move(from)) {} inline NetlistFile_NetRecord& operator=(const NetlistFile_NetRecord& from) { CopyFrom(from); return *this; } inline NetlistFile_NetRecord& operator=(NetlistFile_NetRecord&& from) noexcept { if (this == &from) return *this; - if (GetOwningArena() == from.GetOwningArena() - #ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetOwningArena() != nullptr - #endif // !PROTOBUF_FORCE_COPY_IN_MOVE - ) { + if (::google::protobuf::internal::CanMoveWithInternalSwap(GetArena(), from.GetArena())) { InternalSwap(&from); } else { CopyFrom(from); @@ -162,13 +190,22 @@ class ODBDESIGN_EXPORT NetlistFile_NetRecord final : return *this; } - static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { + inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const + ABSL_ATTRIBUTE_LIFETIME_BOUND { + return _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance); + } + inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() + ABSL_ATTRIBUTE_LIFETIME_BOUND { + return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); + } + + static const ::google::protobuf::Descriptor* descriptor() { return GetDescriptor(); } - static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { + static const ::google::protobuf::Descriptor* GetDescriptor() { return default_instance().GetMetadata().descriptor; } - static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { + static const ::google::protobuf::Reflection* GetReflection() { return default_instance().GetMetadata().reflection; } static const NetlistFile_NetRecord& default_instance() { @@ -176,158 +213,187 @@ class ODBDESIGN_EXPORT NetlistFile_NetRecord final : } static inline const NetlistFile_NetRecord* internal_default_instance() { return reinterpret_cast( - &_NetlistFile_NetRecord_default_instance_); - } - static constexpr int kIndexInFileMessages = - 0; - - friend void swap(NetlistFile_NetRecord& a, NetlistFile_NetRecord& b) { - a.Swap(&b); + &_NetlistFile_NetRecord_default_instance_); } + static constexpr int kIndexInFileMessages = 0; + friend void swap(NetlistFile_NetRecord& a, NetlistFile_NetRecord& b) { a.Swap(&b); } inline void Swap(NetlistFile_NetRecord* other) { if (other == this) return; - #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetOwningArena() != nullptr && - GetOwningArena() == other->GetOwningArena()) { - #else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetOwningArena() == other->GetOwningArena()) { - #endif // !PROTOBUF_FORCE_COPY_IN_SWAP + if (::google::protobuf::internal::CanUseInternalSwap(GetArena(), other->GetArena())) { InternalSwap(other); } else { - ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); + ::google::protobuf::internal::GenericSwap(this, other); } } void UnsafeArenaSwap(NetlistFile_NetRecord* other) { if (other == this) return; - GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); + ABSL_DCHECK(GetArena() == other->GetArena()); InternalSwap(other); } // implements Message ---------------------------------------------- - NetlistFile_NetRecord* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); + NetlistFile_NetRecord* New(::google::protobuf::Arena* arena = nullptr) const { + return ::google::protobuf::Message::DefaultConstruct(arena); } - using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; + using ::google::protobuf::Message::CopyFrom; void CopyFrom(const NetlistFile_NetRecord& from); - using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; - void MergeFrom( const NetlistFile_NetRecord& from) { - NetlistFile_NetRecord::MergeImpl(*this, from); - } - private: - static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg); - public: - PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; - bool IsInitialized() const final; - - size_t ByteSizeLong() const final; - const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final; - uint8_t* _InternalSerialize( - uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const final { return _impl_._cached_size_.Get(); } + using ::google::protobuf::Message::MergeFrom; + void MergeFrom(const NetlistFile_NetRecord& from) { NetlistFile_NetRecord::MergeImpl(*this, from); } private: - void SharedCtor(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned); - void SharedDtor(); - void SetCachedSize(int size) const final; - void InternalSwap(NetlistFile_NetRecord* other); + static void MergeImpl( + ::google::protobuf::MessageLite& to_msg, + const ::google::protobuf::MessageLite& from_msg); - private: - friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; - static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { - return "Odb.Lib.Protobuf.NetlistFile.NetRecord"; - } - protected: - explicit NetlistFile_NetRecord(::PROTOBUF_NAMESPACE_ID::Arena* arena, - bool is_message_owned = false); public: + bool IsInitialized() const { + return true; + } + ABSL_ATTRIBUTE_REINITIALIZES void Clear() PROTOBUF_FINAL; + #if defined(PROTOBUF_CUSTOM_VTABLE) + private: + static ::size_t ByteSizeLong(const ::google::protobuf::MessageLite& msg); + static ::uint8_t* _InternalSerialize( + const MessageLite& msg, ::uint8_t* target, + ::google::protobuf::io::EpsCopyOutputStream* stream); - static const ClassData _class_data_; - const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final; - - ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; + public: + ::size_t ByteSizeLong() const { return ByteSizeLong(*this); } + ::uint8_t* _InternalSerialize( + ::uint8_t* target, + ::google::protobuf::io::EpsCopyOutputStream* stream) const { + return _InternalSerialize(*this, target, stream); + } + #else // PROTOBUF_CUSTOM_VTABLE + ::size_t ByteSizeLong() const final; + ::uint8_t* _InternalSerialize( + ::uint8_t* target, + ::google::protobuf::io::EpsCopyOutputStream* stream) const final; + #endif // PROTOBUF_CUSTOM_VTABLE + int GetCachedSize() const { return _impl_._cached_size_.Get(); } + + private: + void SharedCtor(::google::protobuf::Arena* arena); + static void SharedDtor(MessageLite& self); + void InternalSwap(NetlistFile_NetRecord* other); + private: + template + friend ::absl::string_view( + ::google::protobuf::internal::GetAnyMessageName)(); + static ::absl::string_view FullMessageName() { return "Odb.Lib.Protobuf.NetlistFile.NetRecord"; } + + protected: + explicit NetlistFile_NetRecord(::google::protobuf::Arena* arena); + NetlistFile_NetRecord(::google::protobuf::Arena* arena, const NetlistFile_NetRecord& from); + NetlistFile_NetRecord(::google::protobuf::Arena* arena, NetlistFile_NetRecord&& from) noexcept + : NetlistFile_NetRecord(arena) { + *this = ::std::move(from); + } + const ::google::protobuf::internal::ClassData* GetClassData() const PROTOBUF_FINAL; + static void* PlacementNew_(const void*, void* mem, + ::google::protobuf::Arena* arena); + static constexpr auto InternalNewImpl_(); + static const ::google::protobuf::internal::ClassDataFull _class_data_; + public: + ::google::protobuf::Metadata GetMetadata() const; // nested types ---------------------------------------------------- // accessors ------------------------------------------------------- - enum : int { kNetNameFieldNumber = 2, kSerialNumberFieldNumber = 1, }; // optional string netName = 2; bool has_netname() const; - private: - bool _internal_has_netname() const; - public: - void clear_netname(); + void clear_netname() ; const std::string& netname() const; - template - void set_netname(ArgT0&& arg0, ArgT... args); + template + void set_netname(Arg_&& arg, Args_... args); std::string* mutable_netname(); PROTOBUF_NODISCARD std::string* release_netname(); - void set_allocated_netname(std::string* netname); + void set_allocated_netname(std::string* value); + private: const std::string& _internal_netname() const; - inline PROTOBUF_ALWAYS_INLINE void _internal_set_netname(const std::string& value); + inline PROTOBUF_ALWAYS_INLINE void _internal_set_netname( + const std::string& value); std::string* _internal_mutable_netname(); - public: + public: // optional uint32 serialNumber = 1; bool has_serialnumber() const; + void clear_serialnumber() ; + ::uint32_t serialnumber() const; + void set_serialnumber(::uint32_t value); + private: - bool _internal_has_serialnumber() const; - public: - void clear_serialnumber(); - uint32_t serialnumber() const; - void set_serialnumber(uint32_t value); - private: - uint32_t _internal_serialnumber() const; - void _internal_set_serialnumber(uint32_t value); - public: + ::uint32_t _internal_serialnumber() const; + void _internal_set_serialnumber(::uint32_t value); + public: // @@protoc_insertion_point(class_scope:Odb.Lib.Protobuf.NetlistFile.NetRecord) private: class _Internal; - - template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; - typedef void InternalArenaConstructable_; - typedef void DestructorSkippable_; + friend class ::google::protobuf::internal::TcParser; + static const ::google::protobuf::internal::TcParseTable< + 1, 2, 0, + 54, 2> + _table_; + + friend class ::google::protobuf::MessageLite; + friend class ::google::protobuf::Arena; + template + friend class ::google::protobuf::Arena::InternalHelper; + using InternalArenaConstructable_ = void; + using DestructorSkippable_ = void; struct Impl_ { - ::PROTOBUF_NAMESPACE_ID::internal::HasBits<1> _has_bits_; - mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; - ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr netname_; - uint32_t serialnumber_; + inline explicit constexpr Impl_( + ::google::protobuf::internal::ConstantInitialized) noexcept; + inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* arena); + inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* arena, const Impl_& from, + const NetlistFile_NetRecord& from_msg); + ::google::protobuf::internal::HasBits<1> _has_bits_; + ::google::protobuf::internal::CachedSize _cached_size_; + ::google::protobuf::internal::ArenaStringPtr netname_; + ::uint32_t serialnumber_; + PROTOBUF_TSAN_DECLARE_MEMBER }; union { Impl_ _impl_; }; friend struct ::TableStruct_netlistfile_2eproto; }; // ------------------------------------------------------------------- -class ODBDESIGN_EXPORT NetlistFile_NetPointRecord final : - public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:Odb.Lib.Protobuf.NetlistFile.NetPointRecord) */ { +class ODBDESIGN_EXPORT NetlistFile_NetPointRecord final : public ::google::protobuf::Message +/* @@protoc_insertion_point(class_definition:Odb.Lib.Protobuf.NetlistFile.NetPointRecord) */ { public: inline NetlistFile_NetPointRecord() : NetlistFile_NetPointRecord(nullptr) {} - ~NetlistFile_NetPointRecord() override; - explicit PROTOBUF_CONSTEXPR NetlistFile_NetPointRecord(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); + ~NetlistFile_NetPointRecord() PROTOBUF_FINAL; - NetlistFile_NetPointRecord(const NetlistFile_NetPointRecord& from); - NetlistFile_NetPointRecord(NetlistFile_NetPointRecord&& from) noexcept - : NetlistFile_NetPointRecord() { - *this = ::std::move(from); +#if defined(PROTOBUF_CUSTOM_VTABLE) + void operator delete(NetlistFile_NetPointRecord* msg, std::destroying_delete_t) { + SharedDtor(*msg); + ::google::protobuf::internal::SizedDelete(msg, sizeof(NetlistFile_NetPointRecord)); } +#endif + template + explicit PROTOBUF_CONSTEXPR NetlistFile_NetPointRecord( + ::google::protobuf::internal::ConstantInitialized); + + inline NetlistFile_NetPointRecord(const NetlistFile_NetPointRecord& from) : NetlistFile_NetPointRecord(nullptr, from) {} + inline NetlistFile_NetPointRecord(NetlistFile_NetPointRecord&& from) noexcept + : NetlistFile_NetPointRecord(nullptr, std::move(from)) {} inline NetlistFile_NetPointRecord& operator=(const NetlistFile_NetPointRecord& from) { CopyFrom(from); return *this; } inline NetlistFile_NetPointRecord& operator=(NetlistFile_NetPointRecord&& from) noexcept { if (this == &from) return *this; - if (GetOwningArena() == from.GetOwningArena() - #ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetOwningArena() != nullptr - #endif // !PROTOBUF_FORCE_COPY_IN_MOVE - ) { + if (::google::protobuf::internal::CanMoveWithInternalSwap(GetArena(), from.GetArena())) { InternalSwap(&from); } else { CopyFrom(from); @@ -335,13 +401,22 @@ class ODBDESIGN_EXPORT NetlistFile_NetPointRecord final : return *this; } - static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { + inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const + ABSL_ATTRIBUTE_LIFETIME_BOUND { + return _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance); + } + inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() + ABSL_ATTRIBUTE_LIFETIME_BOUND { + return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); + } + + static const ::google::protobuf::Descriptor* descriptor() { return GetDescriptor(); } - static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { + static const ::google::protobuf::Descriptor* GetDescriptor() { return default_instance().GetMetadata().descriptor; } - static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { + static const ::google::protobuf::Reflection* GetReflection() { return default_instance().GetMetadata().reflection; } static const NetlistFile_NetPointRecord& default_instance() { @@ -349,115 +424,115 @@ class ODBDESIGN_EXPORT NetlistFile_NetPointRecord final : } static inline const NetlistFile_NetPointRecord* internal_default_instance() { return reinterpret_cast( - &_NetlistFile_NetPointRecord_default_instance_); - } - static constexpr int kIndexInFileMessages = - 1; - - friend void swap(NetlistFile_NetPointRecord& a, NetlistFile_NetPointRecord& b) { - a.Swap(&b); + &_NetlistFile_NetPointRecord_default_instance_); } + static constexpr int kIndexInFileMessages = 1; + friend void swap(NetlistFile_NetPointRecord& a, NetlistFile_NetPointRecord& b) { a.Swap(&b); } inline void Swap(NetlistFile_NetPointRecord* other) { if (other == this) return; - #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetOwningArena() != nullptr && - GetOwningArena() == other->GetOwningArena()) { - #else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetOwningArena() == other->GetOwningArena()) { - #endif // !PROTOBUF_FORCE_COPY_IN_SWAP + if (::google::protobuf::internal::CanUseInternalSwap(GetArena(), other->GetArena())) { InternalSwap(other); } else { - ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); + ::google::protobuf::internal::GenericSwap(this, other); } } void UnsafeArenaSwap(NetlistFile_NetPointRecord* other) { if (other == this) return; - GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); + ABSL_DCHECK(GetArena() == other->GetArena()); InternalSwap(other); } // implements Message ---------------------------------------------- - NetlistFile_NetPointRecord* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); + NetlistFile_NetPointRecord* New(::google::protobuf::Arena* arena = nullptr) const { + return ::google::protobuf::Message::DefaultConstruct(arena); } - using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; + using ::google::protobuf::Message::CopyFrom; void CopyFrom(const NetlistFile_NetPointRecord& from); - using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; - void MergeFrom( const NetlistFile_NetPointRecord& from) { - NetlistFile_NetPointRecord::MergeImpl(*this, from); - } - private: - static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg); - public: - PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; - bool IsInitialized() const final; - - size_t ByteSizeLong() const final; - const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final; - uint8_t* _InternalSerialize( - uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const final { return _impl_._cached_size_.Get(); } + using ::google::protobuf::Message::MergeFrom; + void MergeFrom(const NetlistFile_NetPointRecord& from) { NetlistFile_NetPointRecord::MergeImpl(*this, from); } private: - void SharedCtor(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned); - void SharedDtor(); - void SetCachedSize(int size) const final; - void InternalSwap(NetlistFile_NetPointRecord* other); + static void MergeImpl( + ::google::protobuf::MessageLite& to_msg, + const ::google::protobuf::MessageLite& from_msg); - private: - friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; - static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { - return "Odb.Lib.Protobuf.NetlistFile.NetPointRecord"; - } - protected: - explicit NetlistFile_NetPointRecord(::PROTOBUF_NAMESPACE_ID::Arena* arena, - bool is_message_owned = false); public: + bool IsInitialized() const { + return true; + } + ABSL_ATTRIBUTE_REINITIALIZES void Clear() PROTOBUF_FINAL; + #if defined(PROTOBUF_CUSTOM_VTABLE) + private: + static ::size_t ByteSizeLong(const ::google::protobuf::MessageLite& msg); + static ::uint8_t* _InternalSerialize( + const MessageLite& msg, ::uint8_t* target, + ::google::protobuf::io::EpsCopyOutputStream* stream); - static const ClassData _class_data_; - const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final; - - ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; + public: + ::size_t ByteSizeLong() const { return ByteSizeLong(*this); } + ::uint8_t* _InternalSerialize( + ::uint8_t* target, + ::google::protobuf::io::EpsCopyOutputStream* stream) const { + return _InternalSerialize(*this, target, stream); + } + #else // PROTOBUF_CUSTOM_VTABLE + ::size_t ByteSizeLong() const final; + ::uint8_t* _InternalSerialize( + ::uint8_t* target, + ::google::protobuf::io::EpsCopyOutputStream* stream) const final; + #endif // PROTOBUF_CUSTOM_VTABLE + int GetCachedSize() const { return _impl_._cached_size_.Get(); } + + private: + void SharedCtor(::google::protobuf::Arena* arena); + static void SharedDtor(MessageLite& self); + void InternalSwap(NetlistFile_NetPointRecord* other); + private: + template + friend ::absl::string_view( + ::google::protobuf::internal::GetAnyMessageName)(); + static ::absl::string_view FullMessageName() { return "Odb.Lib.Protobuf.NetlistFile.NetPointRecord"; } + + protected: + explicit NetlistFile_NetPointRecord(::google::protobuf::Arena* arena); + NetlistFile_NetPointRecord(::google::protobuf::Arena* arena, const NetlistFile_NetPointRecord& from); + NetlistFile_NetPointRecord(::google::protobuf::Arena* arena, NetlistFile_NetPointRecord&& from) noexcept + : NetlistFile_NetPointRecord(arena) { + *this = ::std::move(from); + } + const ::google::protobuf::internal::ClassData* GetClassData() const PROTOBUF_FINAL; + static void* PlacementNew_(const void*, void* mem, + ::google::protobuf::Arena* arena); + static constexpr auto InternalNewImpl_(); + static const ::google::protobuf::internal::ClassDataFull _class_data_; + public: + ::google::protobuf::Metadata GetMetadata() const; // nested types ---------------------------------------------------- - - typedef NetlistFile_NetPointRecord_AccessSide AccessSide; - static constexpr AccessSide Top = - NetlistFile_NetPointRecord_AccessSide_Top; - static constexpr AccessSide Down = - NetlistFile_NetPointRecord_AccessSide_Down; - static constexpr AccessSide Both = - NetlistFile_NetPointRecord_AccessSide_Both; - static constexpr AccessSide Inner = - NetlistFile_NetPointRecord_AccessSide_Inner; + using AccessSide = NetlistFile_NetPointRecord_AccessSide; + static constexpr AccessSide Top = NetlistFile_NetPointRecord_AccessSide_Top; + static constexpr AccessSide Down = NetlistFile_NetPointRecord_AccessSide_Down; + static constexpr AccessSide Both = NetlistFile_NetPointRecord_AccessSide_Both; + static constexpr AccessSide Inner = NetlistFile_NetPointRecord_AccessSide_Inner; static inline bool AccessSide_IsValid(int value) { return NetlistFile_NetPointRecord_AccessSide_IsValid(value); } - static constexpr AccessSide AccessSide_MIN = - NetlistFile_NetPointRecord_AccessSide_AccessSide_MIN; - static constexpr AccessSide AccessSide_MAX = - NetlistFile_NetPointRecord_AccessSide_AccessSide_MAX; - static constexpr int AccessSide_ARRAYSIZE = - NetlistFile_NetPointRecord_AccessSide_AccessSide_ARRAYSIZE; - static inline const ::PROTOBUF_NAMESPACE_ID::EnumDescriptor* - AccessSide_descriptor() { + static constexpr AccessSide AccessSide_MIN = NetlistFile_NetPointRecord_AccessSide_AccessSide_MIN; + static constexpr AccessSide AccessSide_MAX = NetlistFile_NetPointRecord_AccessSide_AccessSide_MAX; + static constexpr int AccessSide_ARRAYSIZE = NetlistFile_NetPointRecord_AccessSide_AccessSide_ARRAYSIZE; + static inline const ::google::protobuf::EnumDescriptor* AccessSide_descriptor() { return NetlistFile_NetPointRecord_AccessSide_descriptor(); } - template - static inline const std::string& AccessSide_Name(T enum_t_value) { - static_assert(::std::is_same::value || - ::std::is_integral::value, - "Incorrect type passed to function AccessSide_Name."); - return NetlistFile_NetPointRecord_AccessSide_Name(enum_t_value); + template + static inline const std::string& AccessSide_Name(T value) { + return NetlistFile_NetPointRecord_AccessSide_Name(value); } - static inline bool AccessSide_Parse(::PROTOBUF_NAMESPACE_ID::ConstStringParam name, - AccessSide* value) { + static inline bool AccessSide_Parse(absl::string_view name, AccessSide* value) { return NetlistFile_NetPointRecord_AccessSide_Parse(name, value); } // accessors ------------------------------------------------------- - enum : int { kEpointFieldNumber = 8, kExpFieldNumber = 9, @@ -479,254 +554,238 @@ class ODBDESIGN_EXPORT NetlistFile_NetPointRecord final : }; // optional string epoint = 8; bool has_epoint() const; - private: - bool _internal_has_epoint() const; - public: - void clear_epoint(); + void clear_epoint() ; const std::string& epoint() const; - template - void set_epoint(ArgT0&& arg0, ArgT... args); + template + void set_epoint(Arg_&& arg, Args_... args); std::string* mutable_epoint(); PROTOBUF_NODISCARD std::string* release_epoint(); - void set_allocated_epoint(std::string* epoint); + void set_allocated_epoint(std::string* value); + private: const std::string& _internal_epoint() const; - inline PROTOBUF_ALWAYS_INLINE void _internal_set_epoint(const std::string& value); + inline PROTOBUF_ALWAYS_INLINE void _internal_set_epoint( + const std::string& value); std::string* _internal_mutable_epoint(); - public: + public: // optional string exp = 9; bool has_exp() const; - private: - bool _internal_has_exp() const; - public: - void clear_exp(); + void clear_exp() ; const std::string& exp() const; - template - void set_exp(ArgT0&& arg0, ArgT... args); + template + void set_exp(Arg_&& arg, Args_... args); std::string* mutable_exp(); PROTOBUF_NODISCARD std::string* release_exp(); - void set_allocated_exp(std::string* exp); + void set_allocated_exp(std::string* value); + private: const std::string& _internal_exp() const; - inline PROTOBUF_ALWAYS_INLINE void _internal_set_exp(const std::string& value); + inline PROTOBUF_ALWAYS_INLINE void _internal_set_exp( + const std::string& value); std::string* _internal_mutable_exp(); - public: + public: // optional string testExecutionSide = 17; bool has_testexecutionside() const; - private: - bool _internal_has_testexecutionside() const; - public: - void clear_testexecutionside(); + void clear_testexecutionside() ; const std::string& testexecutionside() const; - template - void set_testexecutionside(ArgT0&& arg0, ArgT... args); + template + void set_testexecutionside(Arg_&& arg, Args_... args); std::string* mutable_testexecutionside(); PROTOBUF_NODISCARD std::string* release_testexecutionside(); - void set_allocated_testexecutionside(std::string* testexecutionside); + void set_allocated_testexecutionside(std::string* value); + private: const std::string& _internal_testexecutionside() const; - inline PROTOBUF_ALWAYS_INLINE void _internal_set_testexecutionside(const std::string& value); + inline PROTOBUF_ALWAYS_INLINE void _internal_set_testexecutionside( + const std::string& value); std::string* _internal_mutable_testexecutionside(); - public: + public: // optional uint32 netNumber = 1; bool has_netnumber() const; + void clear_netnumber() ; + ::uint32_t netnumber() const; + void set_netnumber(::uint32_t value); + private: - bool _internal_has_netnumber() const; - public: - void clear_netnumber(); - uint32_t netnumber() const; - void set_netnumber(uint32_t value); - private: - uint32_t _internal_netnumber() const; - void _internal_set_netnumber(uint32_t value); - public: + ::uint32_t _internal_netnumber() const; + void _internal_set_netnumber(::uint32_t value); + public: // optional float radius = 2; bool has_radius() const; - private: - bool _internal_has_radius() const; - public: - void clear_radius(); + void clear_radius() ; float radius() const; void set_radius(float value); + private: float _internal_radius() const; void _internal_set_radius(float value); - public: + public: // optional float x = 3; bool has_x() const; - private: - bool _internal_has_x() const; - public: - void clear_x(); + void clear_x() ; float x() const; void set_x(float value); + private: float _internal_x() const; void _internal_set_x(float value); - public: + public: // optional float y = 4; bool has_y() const; - private: - bool _internal_has_y() const; - public: - void clear_y(); + void clear_y() ; float y() const; void set_y(float value); + private: float _internal_y() const; void _internal_set_y(float value); - public: + public: // optional .Odb.Lib.Protobuf.NetlistFile.NetPointRecord.AccessSide side = 5; bool has_side() const; - private: - bool _internal_has_side() const; - public: - void clear_side(); + void clear_side() ; ::Odb::Lib::Protobuf::NetlistFile_NetPointRecord_AccessSide side() const; void set_side(::Odb::Lib::Protobuf::NetlistFile_NetPointRecord_AccessSide value); + private: ::Odb::Lib::Protobuf::NetlistFile_NetPointRecord_AccessSide _internal_side() const; void _internal_set_side(::Odb::Lib::Protobuf::NetlistFile_NetPointRecord_AccessSide value); - public: + public: // optional float width = 6; bool has_width() const; - private: - bool _internal_has_width() const; - public: - void clear_width(); + void clear_width() ; float width() const; void set_width(float value); + private: float _internal_width() const; void _internal_set_width(float value); - public: + public: // optional float height = 7; bool has_height() const; - private: - bool _internal_has_height() const; - public: - void clear_height(); + void clear_height() ; float height() const; void set_height(float value); + private: float _internal_height() const; void _internal_set_height(float value); - public: + public: // optional bool commentPoint = 10; bool has_commentpoint() const; - private: - bool _internal_has_commentpoint() const; - public: - void clear_commentpoint(); + void clear_commentpoint() ; bool commentpoint() const; void set_commentpoint(bool value); + private: bool _internal_commentpoint() const; void _internal_set_commentpoint(bool value); - public: + public: // optional float staggeredX = 11; bool has_staggeredx() const; - private: - bool _internal_has_staggeredx() const; - public: - void clear_staggeredx(); + void clear_staggeredx() ; float staggeredx() const; void set_staggeredx(float value); + private: float _internal_staggeredx() const; void _internal_set_staggeredx(float value); - public: + public: // optional float staggeredY = 12; bool has_staggeredy() const; - private: - bool _internal_has_staggeredy() const; - public: - void clear_staggeredy(); + void clear_staggeredy() ; float staggeredy() const; void set_staggeredy(float value); + private: float _internal_staggeredy() const; void _internal_set_staggeredy(float value); - public: + public: // optional float staggeredRadius = 13; bool has_staggeredradius() const; - private: - bool _internal_has_staggeredradius() const; - public: - void clear_staggeredradius(); + void clear_staggeredradius() ; float staggeredradius() const; void set_staggeredradius(float value); + private: float _internal_staggeredradius() const; void _internal_set_staggeredradius(float value); - public: + public: // optional float viaPoint = 14; bool has_viapoint() const; - private: - bool _internal_has_viapoint() const; - public: - void clear_viapoint(); + void clear_viapoint() ; float viapoint() const; void set_viapoint(float value); + private: float _internal_viapoint() const; void _internal_set_viapoint(float value); - public: + public: // optional float fiducialPoint = 15; bool has_fiducialpoint() const; - private: - bool _internal_has_fiducialpoint() const; - public: - void clear_fiducialpoint(); + void clear_fiducialpoint() ; float fiducialpoint() const; void set_fiducialpoint(float value); + private: float _internal_fiducialpoint() const; void _internal_set_fiducialpoint(float value); - public: + public: // optional float testPoint = 16; bool has_testpoint() const; - private: - bool _internal_has_testpoint() const; - public: - void clear_testpoint(); + void clear_testpoint() ; float testpoint() const; void set_testpoint(float value); + private: float _internal_testpoint() const; void _internal_set_testpoint(float value); - public: + public: // @@protoc_insertion_point(class_scope:Odb.Lib.Protobuf.NetlistFile.NetPointRecord) private: class _Internal; - - template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; - typedef void InternalArenaConstructable_; - typedef void DestructorSkippable_; + friend class ::google::protobuf::internal::TcParser; + static const ::google::protobuf::internal::TcParseTable< + 5, 17, 0, + 94, 2> + _table_; + + friend class ::google::protobuf::MessageLite; + friend class ::google::protobuf::Arena; + template + friend class ::google::protobuf::Arena::InternalHelper; + using InternalArenaConstructable_ = void; + using DestructorSkippable_ = void; struct Impl_ { - ::PROTOBUF_NAMESPACE_ID::internal::HasBits<1> _has_bits_; - mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; - ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr epoint_; - ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr exp_; - ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr testexecutionside_; - uint32_t netnumber_; + inline explicit constexpr Impl_( + ::google::protobuf::internal::ConstantInitialized) noexcept; + inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* arena); + inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* arena, const Impl_& from, + const NetlistFile_NetPointRecord& from_msg); + ::google::protobuf::internal::HasBits<1> _has_bits_; + ::google::protobuf::internal::CachedSize _cached_size_; + ::google::protobuf::internal::ArenaStringPtr epoint_; + ::google::protobuf::internal::ArenaStringPtr exp_; + ::google::protobuf::internal::ArenaStringPtr testexecutionside_; + ::uint32_t netnumber_; float radius_; float x_; float y_; @@ -740,62 +799,79 @@ class ODBDESIGN_EXPORT NetlistFile_NetPointRecord final : float viapoint_; float fiducialpoint_; float testpoint_; + PROTOBUF_TSAN_DECLARE_MEMBER }; union { Impl_ _impl_; }; friend struct ::TableStruct_netlistfile_2eproto; }; // ------------------------------------------------------------------- -class NetlistFile_NetRecordsByNameEntry_DoNotUse : public ::PROTOBUF_NAMESPACE_ID::internal::MapEntry { -public: - typedef ::PROTOBUF_NAMESPACE_ID::internal::MapEntry SuperType; +class NetlistFile_NetRecordsByNameEntry_DoNotUse final + : public ::google::protobuf::internal::MapEntry< + std::string, ::google::protobuf::Message, + ::google::protobuf::internal::WireFormatLite::TYPE_STRING, + ::google::protobuf::internal::WireFormatLite::TYPE_MESSAGE> { + public: + using SuperType = ::google::protobuf::internal::MapEntry< + std::string, ::google::protobuf::Message, + ::google::protobuf::internal::WireFormatLite::TYPE_STRING, + ::google::protobuf::internal::WireFormatLite::TYPE_MESSAGE>; NetlistFile_NetRecordsByNameEntry_DoNotUse(); + template explicit PROTOBUF_CONSTEXPR NetlistFile_NetRecordsByNameEntry_DoNotUse( - ::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); - explicit NetlistFile_NetRecordsByNameEntry_DoNotUse(::PROTOBUF_NAMESPACE_ID::Arena* arena); - void MergeFrom(const NetlistFile_NetRecordsByNameEntry_DoNotUse& other); - static const NetlistFile_NetRecordsByNameEntry_DoNotUse* internal_default_instance() { return reinterpret_cast(&_NetlistFile_NetRecordsByNameEntry_DoNotUse_default_instance_); } - static bool ValidateKey(std::string* s) { - return ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String(s->data(), static_cast(s->size()), ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::PARSE, "Odb.Lib.Protobuf.NetlistFile.NetRecordsByNameEntry.key"); - } - static bool ValidateValue(void*) { return true; } - using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; - ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; + ::google::protobuf::internal::ConstantInitialized); + explicit NetlistFile_NetRecordsByNameEntry_DoNotUse(::google::protobuf::Arena* arena); + static const NetlistFile_NetRecordsByNameEntry_DoNotUse* internal_default_instance() { + return reinterpret_cast( + &_NetlistFile_NetRecordsByNameEntry_DoNotUse_default_instance_); + } + + + private: + friend class ::google::protobuf::MessageLite; friend struct ::TableStruct_netlistfile_2eproto; -}; + friend class ::google::protobuf::internal::TcParser; + static const ::google::protobuf::internal::TcParseTable< + 1, 2, 1, + 62, 2> + _table_; + + const ::google::protobuf::internal::ClassData* GetClassData() const PROTOBUF_FINAL; + static void* PlacementNew_(const void*, void* mem, + ::google::protobuf::Arena* arena); + static constexpr auto InternalNewImpl_(); + static const ::google::protobuf::internal::ClassDataFull _class_data_; +}; // ------------------------------------------------------------------- -class ODBDESIGN_EXPORT NetlistFile final : - public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:Odb.Lib.Protobuf.NetlistFile) */ { +class ODBDESIGN_EXPORT NetlistFile final : public ::google::protobuf::Message +/* @@protoc_insertion_point(class_definition:Odb.Lib.Protobuf.NetlistFile) */ { public: inline NetlistFile() : NetlistFile(nullptr) {} - ~NetlistFile() override; - explicit PROTOBUF_CONSTEXPR NetlistFile(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); + ~NetlistFile() PROTOBUF_FINAL; - NetlistFile(const NetlistFile& from); - NetlistFile(NetlistFile&& from) noexcept - : NetlistFile() { - *this = ::std::move(from); +#if defined(PROTOBUF_CUSTOM_VTABLE) + void operator delete(NetlistFile* msg, std::destroying_delete_t) { + SharedDtor(*msg); + ::google::protobuf::internal::SizedDelete(msg, sizeof(NetlistFile)); } +#endif + + template + explicit PROTOBUF_CONSTEXPR NetlistFile( + ::google::protobuf::internal::ConstantInitialized); + inline NetlistFile(const NetlistFile& from) : NetlistFile(nullptr, from) {} + inline NetlistFile(NetlistFile&& from) noexcept + : NetlistFile(nullptr, std::move(from)) {} inline NetlistFile& operator=(const NetlistFile& from) { CopyFrom(from); return *this; } inline NetlistFile& operator=(NetlistFile&& from) noexcept { if (this == &from) return *this; - if (GetOwningArena() == from.GetOwningArena() - #ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetOwningArena() != nullptr - #endif // !PROTOBUF_FORCE_COPY_IN_MOVE - ) { + if (::google::protobuf::internal::CanMoveWithInternalSwap(GetArena(), from.GetArena())) { InternalSwap(&from); } else { CopyFrom(from); @@ -803,13 +879,22 @@ class ODBDESIGN_EXPORT NetlistFile final : return *this; } - static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { + inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const + ABSL_ATTRIBUTE_LIFETIME_BOUND { + return _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance); + } + inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() + ABSL_ATTRIBUTE_LIFETIME_BOUND { + return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); + } + + static const ::google::protobuf::Descriptor* descriptor() { return GetDescriptor(); } - static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { + static const ::google::protobuf::Descriptor* GetDescriptor() { return default_instance().GetMetadata().descriptor; } - static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { + static const ::google::protobuf::Reflection* GetReflection() { return default_instance().GetMetadata().reflection; } static const NetlistFile& default_instance() { @@ -817,118 +902,116 @@ class ODBDESIGN_EXPORT NetlistFile final : } static inline const NetlistFile* internal_default_instance() { return reinterpret_cast( - &_NetlistFile_default_instance_); - } - static constexpr int kIndexInFileMessages = - 3; - - friend void swap(NetlistFile& a, NetlistFile& b) { - a.Swap(&b); + &_NetlistFile_default_instance_); } + static constexpr int kIndexInFileMessages = 3; + friend void swap(NetlistFile& a, NetlistFile& b) { a.Swap(&b); } inline void Swap(NetlistFile* other) { if (other == this) return; - #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetOwningArena() != nullptr && - GetOwningArena() == other->GetOwningArena()) { - #else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetOwningArena() == other->GetOwningArena()) { - #endif // !PROTOBUF_FORCE_COPY_IN_SWAP + if (::google::protobuf::internal::CanUseInternalSwap(GetArena(), other->GetArena())) { InternalSwap(other); } else { - ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); + ::google::protobuf::internal::GenericSwap(this, other); } } void UnsafeArenaSwap(NetlistFile* other) { if (other == this) return; - GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); + ABSL_DCHECK(GetArena() == other->GetArena()); InternalSwap(other); } // implements Message ---------------------------------------------- - NetlistFile* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); + NetlistFile* New(::google::protobuf::Arena* arena = nullptr) const { + return ::google::protobuf::Message::DefaultConstruct(arena); } - using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; + using ::google::protobuf::Message::CopyFrom; void CopyFrom(const NetlistFile& from); - using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; - void MergeFrom( const NetlistFile& from) { - NetlistFile::MergeImpl(*this, from); - } - private: - static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg); - public: - PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; - bool IsInitialized() const final; - - size_t ByteSizeLong() const final; - const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final; - uint8_t* _InternalSerialize( - uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const final { return _impl_._cached_size_.Get(); } + using ::google::protobuf::Message::MergeFrom; + void MergeFrom(const NetlistFile& from) { NetlistFile::MergeImpl(*this, from); } private: - void SharedCtor(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned); - void SharedDtor(); - void SetCachedSize(int size) const final; - void InternalSwap(NetlistFile* other); + static void MergeImpl( + ::google::protobuf::MessageLite& to_msg, + const ::google::protobuf::MessageLite& from_msg); - private: - friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; - static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { - return "Odb.Lib.Protobuf.NetlistFile"; + public: + bool IsInitialized() const { + return true; } - protected: - explicit NetlistFile(::PROTOBUF_NAMESPACE_ID::Arena* arena, - bool is_message_owned = false); + ABSL_ATTRIBUTE_REINITIALIZES void Clear() PROTOBUF_FINAL; + #if defined(PROTOBUF_CUSTOM_VTABLE) private: - static void ArenaDtor(void* object); - public: - - static const ClassData _class_data_; - const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final; + static ::size_t ByteSizeLong(const ::google::protobuf::MessageLite& msg); + static ::uint8_t* _InternalSerialize( + const MessageLite& msg, ::uint8_t* target, + ::google::protobuf::io::EpsCopyOutputStream* stream); - ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; + public: + ::size_t ByteSizeLong() const { return ByteSizeLong(*this); } + ::uint8_t* _InternalSerialize( + ::uint8_t* target, + ::google::protobuf::io::EpsCopyOutputStream* stream) const { + return _InternalSerialize(*this, target, stream); + } + #else // PROTOBUF_CUSTOM_VTABLE + ::size_t ByteSizeLong() const final; + ::uint8_t* _InternalSerialize( + ::uint8_t* target, + ::google::protobuf::io::EpsCopyOutputStream* stream) const final; + #endif // PROTOBUF_CUSTOM_VTABLE + int GetCachedSize() const { return _impl_._cached_size_.Get(); } + + private: + void SharedCtor(::google::protobuf::Arena* arena); + static void SharedDtor(MessageLite& self); + void InternalSwap(NetlistFile* other); + private: + template + friend ::absl::string_view( + ::google::protobuf::internal::GetAnyMessageName)(); + static ::absl::string_view FullMessageName() { return "Odb.Lib.Protobuf.NetlistFile"; } + + protected: + explicit NetlistFile(::google::protobuf::Arena* arena); + NetlistFile(::google::protobuf::Arena* arena, const NetlistFile& from); + NetlistFile(::google::protobuf::Arena* arena, NetlistFile&& from) noexcept + : NetlistFile(arena) { + *this = ::std::move(from); + } + const ::google::protobuf::internal::ClassData* GetClassData() const PROTOBUF_FINAL; + static void* PlacementNew_(const void*, void* mem, + ::google::protobuf::Arena* arena); + static constexpr auto InternalNewImpl_(); + static const ::google::protobuf::internal::ClassDataFull _class_data_; + public: + ::google::protobuf::Metadata GetMetadata() const; // nested types ---------------------------------------------------- - - typedef NetlistFile_NetRecord NetRecord; - typedef NetlistFile_NetPointRecord NetPointRecord; - - typedef NetlistFile_Staggered Staggered; - static constexpr Staggered Yes = - NetlistFile_Staggered_Yes; - static constexpr Staggered No = - NetlistFile_Staggered_No; - static constexpr Staggered Unknown = - NetlistFile_Staggered_Unknown; + using NetRecord = NetlistFile_NetRecord; + using NetPointRecord = NetlistFile_NetPointRecord; + using Staggered = NetlistFile_Staggered; + static constexpr Staggered Yes = NetlistFile_Staggered_Yes; + static constexpr Staggered No = NetlistFile_Staggered_No; + static constexpr Staggered Unknown = NetlistFile_Staggered_Unknown; static inline bool Staggered_IsValid(int value) { return NetlistFile_Staggered_IsValid(value); } - static constexpr Staggered Staggered_MIN = - NetlistFile_Staggered_Staggered_MIN; - static constexpr Staggered Staggered_MAX = - NetlistFile_Staggered_Staggered_MAX; - static constexpr int Staggered_ARRAYSIZE = - NetlistFile_Staggered_Staggered_ARRAYSIZE; - static inline const ::PROTOBUF_NAMESPACE_ID::EnumDescriptor* - Staggered_descriptor() { + static constexpr Staggered Staggered_MIN = NetlistFile_Staggered_Staggered_MIN; + static constexpr Staggered Staggered_MAX = NetlistFile_Staggered_Staggered_MAX; + static constexpr int Staggered_ARRAYSIZE = NetlistFile_Staggered_Staggered_ARRAYSIZE; + static inline const ::google::protobuf::EnumDescriptor* Staggered_descriptor() { return NetlistFile_Staggered_descriptor(); } - template - static inline const std::string& Staggered_Name(T enum_t_value) { - static_assert(::std::is_same::value || - ::std::is_integral::value, - "Incorrect type passed to function Staggered_Name."); - return NetlistFile_Staggered_Name(enum_t_value); + template + static inline const std::string& Staggered_Name(T value) { + return NetlistFile_Staggered_Name(value); } - static inline bool Staggered_Parse(::PROTOBUF_NAMESPACE_ID::ConstStringParam name, - Staggered* value) { + static inline bool Staggered_Parse(absl::string_view name, Staggered* value) { return NetlistFile_Staggered_Parse(name, value); } // accessors ------------------------------------------------------- - enum : int { kNetRecordssFieldNumber = 6, kNetRecordsByNameFieldNumber = 7, @@ -943,265 +1026,276 @@ class ODBDESIGN_EXPORT NetlistFile final : int netrecordss_size() const; private: int _internal_netrecordss_size() const; + public: - void clear_netrecordss(); + void clear_netrecordss() ; ::Odb::Lib::Protobuf::NetlistFile_NetRecord* mutable_netrecordss(int index); - ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::Odb::Lib::Protobuf::NetlistFile_NetRecord >* - mutable_netrecordss(); + ::google::protobuf::RepeatedPtrField<::Odb::Lib::Protobuf::NetlistFile_NetRecord>* mutable_netrecordss(); + private: - const ::Odb::Lib::Protobuf::NetlistFile_NetRecord& _internal_netrecordss(int index) const; - ::Odb::Lib::Protobuf::NetlistFile_NetRecord* _internal_add_netrecordss(); + const ::google::protobuf::RepeatedPtrField<::Odb::Lib::Protobuf::NetlistFile_NetRecord>& _internal_netrecordss() const; + ::google::protobuf::RepeatedPtrField<::Odb::Lib::Protobuf::NetlistFile_NetRecord>* _internal_mutable_netrecordss(); public: const ::Odb::Lib::Protobuf::NetlistFile_NetRecord& netrecordss(int index) const; ::Odb::Lib::Protobuf::NetlistFile_NetRecord* add_netrecordss(); - const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::Odb::Lib::Protobuf::NetlistFile_NetRecord >& - netrecordss() const; - + const ::google::protobuf::RepeatedPtrField<::Odb::Lib::Protobuf::NetlistFile_NetRecord>& netrecordss() const; // map netRecordsByName = 7; int netrecordsbyname_size() const; private: int _internal_netrecordsbyname_size() const; + public: - void clear_netrecordsbyname(); + void clear_netrecordsbyname() ; + const ::google::protobuf::Map& netrecordsbyname() const; + ::google::protobuf::Map* mutable_netrecordsbyname(); + private: - const ::PROTOBUF_NAMESPACE_ID::Map< std::string, ::Odb::Lib::Protobuf::NetlistFile_NetRecord >& - _internal_netrecordsbyname() const; - ::PROTOBUF_NAMESPACE_ID::Map< std::string, ::Odb::Lib::Protobuf::NetlistFile_NetRecord >* - _internal_mutable_netrecordsbyname(); - public: - const ::PROTOBUF_NAMESPACE_ID::Map< std::string, ::Odb::Lib::Protobuf::NetlistFile_NetRecord >& - netrecordsbyname() const; - ::PROTOBUF_NAMESPACE_ID::Map< std::string, ::Odb::Lib::Protobuf::NetlistFile_NetRecord >* - mutable_netrecordsbyname(); + const ::google::protobuf::Map& _internal_netrecordsbyname() const; + ::google::protobuf::Map* _internal_mutable_netrecordsbyname(); + public: // repeated .Odb.Lib.Protobuf.NetlistFile.NetPointRecord netPointRecords = 8; int netpointrecords_size() const; private: int _internal_netpointrecords_size() const; + public: - void clear_netpointrecords(); + void clear_netpointrecords() ; ::Odb::Lib::Protobuf::NetlistFile_NetPointRecord* mutable_netpointrecords(int index); - ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::Odb::Lib::Protobuf::NetlistFile_NetPointRecord >* - mutable_netpointrecords(); + ::google::protobuf::RepeatedPtrField<::Odb::Lib::Protobuf::NetlistFile_NetPointRecord>* mutable_netpointrecords(); + private: - const ::Odb::Lib::Protobuf::NetlistFile_NetPointRecord& _internal_netpointrecords(int index) const; - ::Odb::Lib::Protobuf::NetlistFile_NetPointRecord* _internal_add_netpointrecords(); + const ::google::protobuf::RepeatedPtrField<::Odb::Lib::Protobuf::NetlistFile_NetPointRecord>& _internal_netpointrecords() const; + ::google::protobuf::RepeatedPtrField<::Odb::Lib::Protobuf::NetlistFile_NetPointRecord>* _internal_mutable_netpointrecords(); public: const ::Odb::Lib::Protobuf::NetlistFile_NetPointRecord& netpointrecords(int index) const; ::Odb::Lib::Protobuf::NetlistFile_NetPointRecord* add_netpointrecords(); - const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::Odb::Lib::Protobuf::NetlistFile_NetPointRecord >& - netpointrecords() const; - + const ::google::protobuf::RepeatedPtrField<::Odb::Lib::Protobuf::NetlistFile_NetPointRecord>& netpointrecords() const; // optional string path = 1; bool has_path() const; - private: - bool _internal_has_path() const; - public: - void clear_path(); + void clear_path() ; const std::string& path() const; - template - void set_path(ArgT0&& arg0, ArgT... args); + template + void set_path(Arg_&& arg, Args_... args); std::string* mutable_path(); PROTOBUF_NODISCARD std::string* release_path(); - void set_allocated_path(std::string* path); + void set_allocated_path(std::string* value); + private: const std::string& _internal_path() const; - inline PROTOBUF_ALWAYS_INLINE void _internal_set_path(const std::string& value); + inline PROTOBUF_ALWAYS_INLINE void _internal_set_path( + const std::string& value); std::string* _internal_mutable_path(); - public: + public: // optional string name = 2; bool has_name() const; - private: - bool _internal_has_name() const; - public: - void clear_name(); + void clear_name() ; const std::string& name() const; - template - void set_name(ArgT0&& arg0, ArgT... args); + template + void set_name(Arg_&& arg, Args_... args); std::string* mutable_name(); PROTOBUF_NODISCARD std::string* release_name(); - void set_allocated_name(std::string* name); + void set_allocated_name(std::string* value); + private: const std::string& _internal_name() const; - inline PROTOBUF_ALWAYS_INLINE void _internal_set_name(const std::string& value); + inline PROTOBUF_ALWAYS_INLINE void _internal_set_name( + const std::string& value); std::string* _internal_mutable_name(); - public: + public: // optional string units = 3; bool has_units() const; - private: - bool _internal_has_units() const; - public: - void clear_units(); + void clear_units() ; const std::string& units() const; - template - void set_units(ArgT0&& arg0, ArgT... args); + template + void set_units(Arg_&& arg, Args_... args); std::string* mutable_units(); PROTOBUF_NODISCARD std::string* release_units(); - void set_allocated_units(std::string* units); + void set_allocated_units(std::string* value); + private: const std::string& _internal_units() const; - inline PROTOBUF_ALWAYS_INLINE void _internal_set_units(const std::string& value); + inline PROTOBUF_ALWAYS_INLINE void _internal_set_units( + const std::string& value); std::string* _internal_mutable_units(); - public: + public: // optional bool optimized = 4; bool has_optimized() const; - private: - bool _internal_has_optimized() const; - public: - void clear_optimized(); + void clear_optimized() ; bool optimized() const; void set_optimized(bool value); + private: bool _internal_optimized() const; void _internal_set_optimized(bool value); - public: + public: // optional .Odb.Lib.Protobuf.NetlistFile.Staggered staggered = 5; bool has_staggered() const; - private: - bool _internal_has_staggered() const; - public: - void clear_staggered(); + void clear_staggered() ; ::Odb::Lib::Protobuf::NetlistFile_Staggered staggered() const; void set_staggered(::Odb::Lib::Protobuf::NetlistFile_Staggered value); + private: ::Odb::Lib::Protobuf::NetlistFile_Staggered _internal_staggered() const; void _internal_set_staggered(::Odb::Lib::Protobuf::NetlistFile_Staggered value); - public: + public: // @@protoc_insertion_point(class_scope:Odb.Lib.Protobuf.NetlistFile) private: class _Internal; - - template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; - typedef void InternalArenaConstructable_; - typedef void DestructorSkippable_; + friend class ::google::protobuf::internal::TcParser; + static const ::google::protobuf::internal::TcParseTable< + 3, 8, 4, + 74, 2> + _table_; + + friend class ::google::protobuf::MessageLite; + friend class ::google::protobuf::Arena; + template + friend class ::google::protobuf::Arena::InternalHelper; + using InternalArenaConstructable_ = void; + using DestructorSkippable_ = void; struct Impl_ { - ::PROTOBUF_NAMESPACE_ID::internal::HasBits<1> _has_bits_; - mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; - ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::Odb::Lib::Protobuf::NetlistFile_NetRecord > netrecordss_; - ::PROTOBUF_NAMESPACE_ID::internal::MapField< - NetlistFile_NetRecordsByNameEntry_DoNotUse, - std::string, ::Odb::Lib::Protobuf::NetlistFile_NetRecord, - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::TYPE_STRING, - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::TYPE_MESSAGE> netrecordsbyname_; - ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::Odb::Lib::Protobuf::NetlistFile_NetPointRecord > netpointrecords_; - ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr path_; - ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr name_; - ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr units_; + inline explicit constexpr Impl_( + ::google::protobuf::internal::ConstantInitialized) noexcept; + inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* arena); + inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* arena, const Impl_& from, + const NetlistFile& from_msg); + ::google::protobuf::internal::HasBits<1> _has_bits_; + ::google::protobuf::internal::CachedSize _cached_size_; + ::google::protobuf::RepeatedPtrField< ::Odb::Lib::Protobuf::NetlistFile_NetRecord > netrecordss_; + ::google::protobuf::internal::MapField + netrecordsbyname_; + ::google::protobuf::RepeatedPtrField< ::Odb::Lib::Protobuf::NetlistFile_NetPointRecord > netpointrecords_; + ::google::protobuf::internal::ArenaStringPtr path_; + ::google::protobuf::internal::ArenaStringPtr name_; + ::google::protobuf::internal::ArenaStringPtr units_; bool optimized_; int staggered_; + PROTOBUF_TSAN_DECLARE_MEMBER }; union { Impl_ _impl_; }; friend struct ::TableStruct_netlistfile_2eproto; }; + // =================================================================== + + // =================================================================== + #ifdef __GNUC__ - #pragma GCC diagnostic push - #pragma GCC diagnostic ignored "-Wstrict-aliasing" +#pragma GCC diagnostic push +#pragma GCC diagnostic ignored "-Wstrict-aliasing" #endif // __GNUC__ +// ------------------------------------------------------------------- + // NetlistFile_NetRecord // optional uint32 serialNumber = 1; -inline bool NetlistFile_NetRecord::_internal_has_serialnumber() const { +inline bool NetlistFile_NetRecord::has_serialnumber() const { bool value = (_impl_._has_bits_[0] & 0x00000002u) != 0; return value; } -inline bool NetlistFile_NetRecord::has_serialnumber() const { - return _internal_has_serialnumber(); -} inline void NetlistFile_NetRecord::clear_serialnumber() { + ::google::protobuf::internal::TSanWrite(&_impl_); _impl_.serialnumber_ = 0u; _impl_._has_bits_[0] &= ~0x00000002u; } -inline uint32_t NetlistFile_NetRecord::_internal_serialnumber() const { - return _impl_.serialnumber_; -} -inline uint32_t NetlistFile_NetRecord::serialnumber() const { +inline ::uint32_t NetlistFile_NetRecord::serialnumber() const { // @@protoc_insertion_point(field_get:Odb.Lib.Protobuf.NetlistFile.NetRecord.serialNumber) return _internal_serialnumber(); } -inline void NetlistFile_NetRecord::_internal_set_serialnumber(uint32_t value) { - _impl_._has_bits_[0] |= 0x00000002u; - _impl_.serialnumber_ = value; -} -inline void NetlistFile_NetRecord::set_serialnumber(uint32_t value) { +inline void NetlistFile_NetRecord::set_serialnumber(::uint32_t value) { _internal_set_serialnumber(value); + _impl_._has_bits_[0] |= 0x00000002u; // @@protoc_insertion_point(field_set:Odb.Lib.Protobuf.NetlistFile.NetRecord.serialNumber) } +inline ::uint32_t NetlistFile_NetRecord::_internal_serialnumber() const { + ::google::protobuf::internal::TSanRead(&_impl_); + return _impl_.serialnumber_; +} +inline void NetlistFile_NetRecord::_internal_set_serialnumber(::uint32_t value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.serialnumber_ = value; +} // optional string netName = 2; -inline bool NetlistFile_NetRecord::_internal_has_netname() const { +inline bool NetlistFile_NetRecord::has_netname() const { bool value = (_impl_._has_bits_[0] & 0x00000001u) != 0; return value; } -inline bool NetlistFile_NetRecord::has_netname() const { - return _internal_has_netname(); -} inline void NetlistFile_NetRecord::clear_netname() { + ::google::protobuf::internal::TSanWrite(&_impl_); _impl_.netname_.ClearToEmpty(); _impl_._has_bits_[0] &= ~0x00000001u; } -inline const std::string& NetlistFile_NetRecord::netname() const { +inline const std::string& NetlistFile_NetRecord::netname() const + ABSL_ATTRIBUTE_LIFETIME_BOUND { // @@protoc_insertion_point(field_get:Odb.Lib.Protobuf.NetlistFile.NetRecord.netName) return _internal_netname(); } -template -inline PROTOBUF_ALWAYS_INLINE -void NetlistFile_NetRecord::set_netname(ArgT0&& arg0, ArgT... args) { - _impl_._has_bits_[0] |= 0x00000001u; - _impl_.netname_.Set(static_cast(arg0), args..., GetArenaForAllocation()); +template +inline PROTOBUF_ALWAYS_INLINE void NetlistFile_NetRecord::set_netname(Arg_&& arg, + Args_... args) { + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_._has_bits_[0] |= 0x00000001u; + _impl_.netname_.Set(static_cast(arg), args..., GetArena()); // @@protoc_insertion_point(field_set:Odb.Lib.Protobuf.NetlistFile.NetRecord.netName) } -inline std::string* NetlistFile_NetRecord::mutable_netname() { +inline std::string* NetlistFile_NetRecord::mutable_netname() ABSL_ATTRIBUTE_LIFETIME_BOUND { std::string* _s = _internal_mutable_netname(); // @@protoc_insertion_point(field_mutable:Odb.Lib.Protobuf.NetlistFile.NetRecord.netName) return _s; } inline const std::string& NetlistFile_NetRecord::_internal_netname() const { + ::google::protobuf::internal::TSanRead(&_impl_); return _impl_.netname_.Get(); } inline void NetlistFile_NetRecord::_internal_set_netname(const std::string& value) { + ::google::protobuf::internal::TSanWrite(&_impl_); _impl_._has_bits_[0] |= 0x00000001u; - _impl_.netname_.Set(value, GetArenaForAllocation()); + _impl_.netname_.Set(value, GetArena()); } inline std::string* NetlistFile_NetRecord::_internal_mutable_netname() { + ::google::protobuf::internal::TSanWrite(&_impl_); _impl_._has_bits_[0] |= 0x00000001u; - return _impl_.netname_.Mutable(GetArenaForAllocation()); + return _impl_.netname_.Mutable( GetArena()); } inline std::string* NetlistFile_NetRecord::release_netname() { + ::google::protobuf::internal::TSanWrite(&_impl_); // @@protoc_insertion_point(field_release:Odb.Lib.Protobuf.NetlistFile.NetRecord.netName) - if (!_internal_has_netname()) { + if ((_impl_._has_bits_[0] & 0x00000001u) == 0) { return nullptr; } _impl_._has_bits_[0] &= ~0x00000001u; - auto* p = _impl_.netname_.Release(); -#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (_impl_.netname_.IsDefault()) { - _impl_.netname_.Set("", GetArenaForAllocation()); + auto* released = _impl_.netname_.Release(); + if (::google::protobuf::internal::DebugHardenForceCopyDefaultString()) { + _impl_.netname_.Set("", GetArena()); } -#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING - return p; + return released; } -inline void NetlistFile_NetRecord::set_allocated_netname(std::string* netname) { - if (netname != nullptr) { +inline void NetlistFile_NetRecord::set_allocated_netname(std::string* value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + if (value != nullptr) { _impl_._has_bits_[0] |= 0x00000001u; } else { _impl_._has_bits_[0] &= ~0x00000001u; } - _impl_.netname_.SetAllocated(netname, GetArenaForAllocation()); -#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (_impl_.netname_.IsDefault()) { - _impl_.netname_.Set("", GetArenaForAllocation()); + _impl_.netname_.SetAllocated(value, GetArena()); + if (::google::protobuf::internal::DebugHardenForceCopyDefaultString() && _impl_.netname_.IsDefault()) { + _impl_.netname_.Set("", GetArena()); } -#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING // @@protoc_insertion_point(field_set_allocated:Odb.Lib.Protobuf.NetlistFile.NetRecord.netName) } @@ -1210,598 +1304,601 @@ inline void NetlistFile_NetRecord::set_allocated_netname(std::string* netname) { // NetlistFile_NetPointRecord // optional uint32 netNumber = 1; -inline bool NetlistFile_NetPointRecord::_internal_has_netnumber() const { +inline bool NetlistFile_NetPointRecord::has_netnumber() const { bool value = (_impl_._has_bits_[0] & 0x00000008u) != 0; return value; } -inline bool NetlistFile_NetPointRecord::has_netnumber() const { - return _internal_has_netnumber(); -} inline void NetlistFile_NetPointRecord::clear_netnumber() { + ::google::protobuf::internal::TSanWrite(&_impl_); _impl_.netnumber_ = 0u; _impl_._has_bits_[0] &= ~0x00000008u; } -inline uint32_t NetlistFile_NetPointRecord::_internal_netnumber() const { - return _impl_.netnumber_; -} -inline uint32_t NetlistFile_NetPointRecord::netnumber() const { +inline ::uint32_t NetlistFile_NetPointRecord::netnumber() const { // @@protoc_insertion_point(field_get:Odb.Lib.Protobuf.NetlistFile.NetPointRecord.netNumber) return _internal_netnumber(); } -inline void NetlistFile_NetPointRecord::_internal_set_netnumber(uint32_t value) { - _impl_._has_bits_[0] |= 0x00000008u; - _impl_.netnumber_ = value; -} -inline void NetlistFile_NetPointRecord::set_netnumber(uint32_t value) { +inline void NetlistFile_NetPointRecord::set_netnumber(::uint32_t value) { _internal_set_netnumber(value); + _impl_._has_bits_[0] |= 0x00000008u; // @@protoc_insertion_point(field_set:Odb.Lib.Protobuf.NetlistFile.NetPointRecord.netNumber) } +inline ::uint32_t NetlistFile_NetPointRecord::_internal_netnumber() const { + ::google::protobuf::internal::TSanRead(&_impl_); + return _impl_.netnumber_; +} +inline void NetlistFile_NetPointRecord::_internal_set_netnumber(::uint32_t value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.netnumber_ = value; +} // optional float radius = 2; -inline bool NetlistFile_NetPointRecord::_internal_has_radius() const { +inline bool NetlistFile_NetPointRecord::has_radius() const { bool value = (_impl_._has_bits_[0] & 0x00000010u) != 0; return value; } -inline bool NetlistFile_NetPointRecord::has_radius() const { - return _internal_has_radius(); -} inline void NetlistFile_NetPointRecord::clear_radius() { + ::google::protobuf::internal::TSanWrite(&_impl_); _impl_.radius_ = 0; _impl_._has_bits_[0] &= ~0x00000010u; } -inline float NetlistFile_NetPointRecord::_internal_radius() const { - return _impl_.radius_; -} inline float NetlistFile_NetPointRecord::radius() const { // @@protoc_insertion_point(field_get:Odb.Lib.Protobuf.NetlistFile.NetPointRecord.radius) return _internal_radius(); } -inline void NetlistFile_NetPointRecord::_internal_set_radius(float value) { - _impl_._has_bits_[0] |= 0x00000010u; - _impl_.radius_ = value; -} inline void NetlistFile_NetPointRecord::set_radius(float value) { _internal_set_radius(value); + _impl_._has_bits_[0] |= 0x00000010u; // @@protoc_insertion_point(field_set:Odb.Lib.Protobuf.NetlistFile.NetPointRecord.radius) } +inline float NetlistFile_NetPointRecord::_internal_radius() const { + ::google::protobuf::internal::TSanRead(&_impl_); + return _impl_.radius_; +} +inline void NetlistFile_NetPointRecord::_internal_set_radius(float value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.radius_ = value; +} // optional float x = 3; -inline bool NetlistFile_NetPointRecord::_internal_has_x() const { +inline bool NetlistFile_NetPointRecord::has_x() const { bool value = (_impl_._has_bits_[0] & 0x00000020u) != 0; return value; } -inline bool NetlistFile_NetPointRecord::has_x() const { - return _internal_has_x(); -} inline void NetlistFile_NetPointRecord::clear_x() { + ::google::protobuf::internal::TSanWrite(&_impl_); _impl_.x_ = 0; _impl_._has_bits_[0] &= ~0x00000020u; } -inline float NetlistFile_NetPointRecord::_internal_x() const { - return _impl_.x_; -} inline float NetlistFile_NetPointRecord::x() const { // @@protoc_insertion_point(field_get:Odb.Lib.Protobuf.NetlistFile.NetPointRecord.x) return _internal_x(); } -inline void NetlistFile_NetPointRecord::_internal_set_x(float value) { - _impl_._has_bits_[0] |= 0x00000020u; - _impl_.x_ = value; -} inline void NetlistFile_NetPointRecord::set_x(float value) { _internal_set_x(value); + _impl_._has_bits_[0] |= 0x00000020u; // @@protoc_insertion_point(field_set:Odb.Lib.Protobuf.NetlistFile.NetPointRecord.x) } +inline float NetlistFile_NetPointRecord::_internal_x() const { + ::google::protobuf::internal::TSanRead(&_impl_); + return _impl_.x_; +} +inline void NetlistFile_NetPointRecord::_internal_set_x(float value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.x_ = value; +} // optional float y = 4; -inline bool NetlistFile_NetPointRecord::_internal_has_y() const { +inline bool NetlistFile_NetPointRecord::has_y() const { bool value = (_impl_._has_bits_[0] & 0x00000040u) != 0; return value; } -inline bool NetlistFile_NetPointRecord::has_y() const { - return _internal_has_y(); -} inline void NetlistFile_NetPointRecord::clear_y() { + ::google::protobuf::internal::TSanWrite(&_impl_); _impl_.y_ = 0; _impl_._has_bits_[0] &= ~0x00000040u; } -inline float NetlistFile_NetPointRecord::_internal_y() const { - return _impl_.y_; -} inline float NetlistFile_NetPointRecord::y() const { // @@protoc_insertion_point(field_get:Odb.Lib.Protobuf.NetlistFile.NetPointRecord.y) return _internal_y(); } -inline void NetlistFile_NetPointRecord::_internal_set_y(float value) { - _impl_._has_bits_[0] |= 0x00000040u; - _impl_.y_ = value; -} inline void NetlistFile_NetPointRecord::set_y(float value) { _internal_set_y(value); + _impl_._has_bits_[0] |= 0x00000040u; // @@protoc_insertion_point(field_set:Odb.Lib.Protobuf.NetlistFile.NetPointRecord.y) } +inline float NetlistFile_NetPointRecord::_internal_y() const { + ::google::protobuf::internal::TSanRead(&_impl_); + return _impl_.y_; +} +inline void NetlistFile_NetPointRecord::_internal_set_y(float value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.y_ = value; +} // optional .Odb.Lib.Protobuf.NetlistFile.NetPointRecord.AccessSide side = 5; -inline bool NetlistFile_NetPointRecord::_internal_has_side() const { +inline bool NetlistFile_NetPointRecord::has_side() const { bool value = (_impl_._has_bits_[0] & 0x00000080u) != 0; return value; } -inline bool NetlistFile_NetPointRecord::has_side() const { - return _internal_has_side(); -} inline void NetlistFile_NetPointRecord::clear_side() { + ::google::protobuf::internal::TSanWrite(&_impl_); _impl_.side_ = 0; _impl_._has_bits_[0] &= ~0x00000080u; } -inline ::Odb::Lib::Protobuf::NetlistFile_NetPointRecord_AccessSide NetlistFile_NetPointRecord::_internal_side() const { - return static_cast< ::Odb::Lib::Protobuf::NetlistFile_NetPointRecord_AccessSide >(_impl_.side_); -} inline ::Odb::Lib::Protobuf::NetlistFile_NetPointRecord_AccessSide NetlistFile_NetPointRecord::side() const { // @@protoc_insertion_point(field_get:Odb.Lib.Protobuf.NetlistFile.NetPointRecord.side) return _internal_side(); } -inline void NetlistFile_NetPointRecord::_internal_set_side(::Odb::Lib::Protobuf::NetlistFile_NetPointRecord_AccessSide value) { - _impl_._has_bits_[0] |= 0x00000080u; - _impl_.side_ = value; -} inline void NetlistFile_NetPointRecord::set_side(::Odb::Lib::Protobuf::NetlistFile_NetPointRecord_AccessSide value) { _internal_set_side(value); + _impl_._has_bits_[0] |= 0x00000080u; // @@protoc_insertion_point(field_set:Odb.Lib.Protobuf.NetlistFile.NetPointRecord.side) } +inline ::Odb::Lib::Protobuf::NetlistFile_NetPointRecord_AccessSide NetlistFile_NetPointRecord::_internal_side() const { + ::google::protobuf::internal::TSanRead(&_impl_); + return static_cast<::Odb::Lib::Protobuf::NetlistFile_NetPointRecord_AccessSide>(_impl_.side_); +} +inline void NetlistFile_NetPointRecord::_internal_set_side(::Odb::Lib::Protobuf::NetlistFile_NetPointRecord_AccessSide value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.side_ = value; +} // optional float width = 6; -inline bool NetlistFile_NetPointRecord::_internal_has_width() const { +inline bool NetlistFile_NetPointRecord::has_width() const { bool value = (_impl_._has_bits_[0] & 0x00000100u) != 0; return value; } -inline bool NetlistFile_NetPointRecord::has_width() const { - return _internal_has_width(); -} inline void NetlistFile_NetPointRecord::clear_width() { + ::google::protobuf::internal::TSanWrite(&_impl_); _impl_.width_ = 0; _impl_._has_bits_[0] &= ~0x00000100u; } -inline float NetlistFile_NetPointRecord::_internal_width() const { - return _impl_.width_; -} inline float NetlistFile_NetPointRecord::width() const { // @@protoc_insertion_point(field_get:Odb.Lib.Protobuf.NetlistFile.NetPointRecord.width) return _internal_width(); } -inline void NetlistFile_NetPointRecord::_internal_set_width(float value) { - _impl_._has_bits_[0] |= 0x00000100u; - _impl_.width_ = value; -} inline void NetlistFile_NetPointRecord::set_width(float value) { _internal_set_width(value); + _impl_._has_bits_[0] |= 0x00000100u; // @@protoc_insertion_point(field_set:Odb.Lib.Protobuf.NetlistFile.NetPointRecord.width) } +inline float NetlistFile_NetPointRecord::_internal_width() const { + ::google::protobuf::internal::TSanRead(&_impl_); + return _impl_.width_; +} +inline void NetlistFile_NetPointRecord::_internal_set_width(float value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.width_ = value; +} // optional float height = 7; -inline bool NetlistFile_NetPointRecord::_internal_has_height() const { +inline bool NetlistFile_NetPointRecord::has_height() const { bool value = (_impl_._has_bits_[0] & 0x00000200u) != 0; return value; } -inline bool NetlistFile_NetPointRecord::has_height() const { - return _internal_has_height(); -} inline void NetlistFile_NetPointRecord::clear_height() { + ::google::protobuf::internal::TSanWrite(&_impl_); _impl_.height_ = 0; _impl_._has_bits_[0] &= ~0x00000200u; } -inline float NetlistFile_NetPointRecord::_internal_height() const { - return _impl_.height_; -} inline float NetlistFile_NetPointRecord::height() const { // @@protoc_insertion_point(field_get:Odb.Lib.Protobuf.NetlistFile.NetPointRecord.height) return _internal_height(); } -inline void NetlistFile_NetPointRecord::_internal_set_height(float value) { - _impl_._has_bits_[0] |= 0x00000200u; - _impl_.height_ = value; -} inline void NetlistFile_NetPointRecord::set_height(float value) { _internal_set_height(value); + _impl_._has_bits_[0] |= 0x00000200u; // @@protoc_insertion_point(field_set:Odb.Lib.Protobuf.NetlistFile.NetPointRecord.height) } +inline float NetlistFile_NetPointRecord::_internal_height() const { + ::google::protobuf::internal::TSanRead(&_impl_); + return _impl_.height_; +} +inline void NetlistFile_NetPointRecord::_internal_set_height(float value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.height_ = value; +} // optional string epoint = 8; -inline bool NetlistFile_NetPointRecord::_internal_has_epoint() const { +inline bool NetlistFile_NetPointRecord::has_epoint() const { bool value = (_impl_._has_bits_[0] & 0x00000001u) != 0; return value; } -inline bool NetlistFile_NetPointRecord::has_epoint() const { - return _internal_has_epoint(); -} inline void NetlistFile_NetPointRecord::clear_epoint() { + ::google::protobuf::internal::TSanWrite(&_impl_); _impl_.epoint_.ClearToEmpty(); _impl_._has_bits_[0] &= ~0x00000001u; } -inline const std::string& NetlistFile_NetPointRecord::epoint() const { +inline const std::string& NetlistFile_NetPointRecord::epoint() const + ABSL_ATTRIBUTE_LIFETIME_BOUND { // @@protoc_insertion_point(field_get:Odb.Lib.Protobuf.NetlistFile.NetPointRecord.epoint) return _internal_epoint(); } -template -inline PROTOBUF_ALWAYS_INLINE -void NetlistFile_NetPointRecord::set_epoint(ArgT0&& arg0, ArgT... args) { - _impl_._has_bits_[0] |= 0x00000001u; - _impl_.epoint_.Set(static_cast(arg0), args..., GetArenaForAllocation()); +template +inline PROTOBUF_ALWAYS_INLINE void NetlistFile_NetPointRecord::set_epoint(Arg_&& arg, + Args_... args) { + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_._has_bits_[0] |= 0x00000001u; + _impl_.epoint_.Set(static_cast(arg), args..., GetArena()); // @@protoc_insertion_point(field_set:Odb.Lib.Protobuf.NetlistFile.NetPointRecord.epoint) } -inline std::string* NetlistFile_NetPointRecord::mutable_epoint() { +inline std::string* NetlistFile_NetPointRecord::mutable_epoint() ABSL_ATTRIBUTE_LIFETIME_BOUND { std::string* _s = _internal_mutable_epoint(); // @@protoc_insertion_point(field_mutable:Odb.Lib.Protobuf.NetlistFile.NetPointRecord.epoint) return _s; } inline const std::string& NetlistFile_NetPointRecord::_internal_epoint() const { + ::google::protobuf::internal::TSanRead(&_impl_); return _impl_.epoint_.Get(); } inline void NetlistFile_NetPointRecord::_internal_set_epoint(const std::string& value) { + ::google::protobuf::internal::TSanWrite(&_impl_); _impl_._has_bits_[0] |= 0x00000001u; - _impl_.epoint_.Set(value, GetArenaForAllocation()); + _impl_.epoint_.Set(value, GetArena()); } inline std::string* NetlistFile_NetPointRecord::_internal_mutable_epoint() { + ::google::protobuf::internal::TSanWrite(&_impl_); _impl_._has_bits_[0] |= 0x00000001u; - return _impl_.epoint_.Mutable(GetArenaForAllocation()); + return _impl_.epoint_.Mutable( GetArena()); } inline std::string* NetlistFile_NetPointRecord::release_epoint() { + ::google::protobuf::internal::TSanWrite(&_impl_); // @@protoc_insertion_point(field_release:Odb.Lib.Protobuf.NetlistFile.NetPointRecord.epoint) - if (!_internal_has_epoint()) { + if ((_impl_._has_bits_[0] & 0x00000001u) == 0) { return nullptr; } _impl_._has_bits_[0] &= ~0x00000001u; - auto* p = _impl_.epoint_.Release(); -#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (_impl_.epoint_.IsDefault()) { - _impl_.epoint_.Set("", GetArenaForAllocation()); + auto* released = _impl_.epoint_.Release(); + if (::google::protobuf::internal::DebugHardenForceCopyDefaultString()) { + _impl_.epoint_.Set("", GetArena()); } -#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING - return p; + return released; } -inline void NetlistFile_NetPointRecord::set_allocated_epoint(std::string* epoint) { - if (epoint != nullptr) { +inline void NetlistFile_NetPointRecord::set_allocated_epoint(std::string* value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + if (value != nullptr) { _impl_._has_bits_[0] |= 0x00000001u; } else { _impl_._has_bits_[0] &= ~0x00000001u; } - _impl_.epoint_.SetAllocated(epoint, GetArenaForAllocation()); -#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (_impl_.epoint_.IsDefault()) { - _impl_.epoint_.Set("", GetArenaForAllocation()); + _impl_.epoint_.SetAllocated(value, GetArena()); + if (::google::protobuf::internal::DebugHardenForceCopyDefaultString() && _impl_.epoint_.IsDefault()) { + _impl_.epoint_.Set("", GetArena()); } -#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING // @@protoc_insertion_point(field_set_allocated:Odb.Lib.Protobuf.NetlistFile.NetPointRecord.epoint) } // optional string exp = 9; -inline bool NetlistFile_NetPointRecord::_internal_has_exp() const { +inline bool NetlistFile_NetPointRecord::has_exp() const { bool value = (_impl_._has_bits_[0] & 0x00000002u) != 0; return value; } -inline bool NetlistFile_NetPointRecord::has_exp() const { - return _internal_has_exp(); -} inline void NetlistFile_NetPointRecord::clear_exp() { + ::google::protobuf::internal::TSanWrite(&_impl_); _impl_.exp_.ClearToEmpty(); _impl_._has_bits_[0] &= ~0x00000002u; } -inline const std::string& NetlistFile_NetPointRecord::exp() const { +inline const std::string& NetlistFile_NetPointRecord::exp() const + ABSL_ATTRIBUTE_LIFETIME_BOUND { // @@protoc_insertion_point(field_get:Odb.Lib.Protobuf.NetlistFile.NetPointRecord.exp) return _internal_exp(); } -template -inline PROTOBUF_ALWAYS_INLINE -void NetlistFile_NetPointRecord::set_exp(ArgT0&& arg0, ArgT... args) { - _impl_._has_bits_[0] |= 0x00000002u; - _impl_.exp_.Set(static_cast(arg0), args..., GetArenaForAllocation()); +template +inline PROTOBUF_ALWAYS_INLINE void NetlistFile_NetPointRecord::set_exp(Arg_&& arg, + Args_... args) { + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_._has_bits_[0] |= 0x00000002u; + _impl_.exp_.Set(static_cast(arg), args..., GetArena()); // @@protoc_insertion_point(field_set:Odb.Lib.Protobuf.NetlistFile.NetPointRecord.exp) } -inline std::string* NetlistFile_NetPointRecord::mutable_exp() { +inline std::string* NetlistFile_NetPointRecord::mutable_exp() ABSL_ATTRIBUTE_LIFETIME_BOUND { std::string* _s = _internal_mutable_exp(); // @@protoc_insertion_point(field_mutable:Odb.Lib.Protobuf.NetlistFile.NetPointRecord.exp) return _s; } inline const std::string& NetlistFile_NetPointRecord::_internal_exp() const { + ::google::protobuf::internal::TSanRead(&_impl_); return _impl_.exp_.Get(); } inline void NetlistFile_NetPointRecord::_internal_set_exp(const std::string& value) { + ::google::protobuf::internal::TSanWrite(&_impl_); _impl_._has_bits_[0] |= 0x00000002u; - _impl_.exp_.Set(value, GetArenaForAllocation()); + _impl_.exp_.Set(value, GetArena()); } inline std::string* NetlistFile_NetPointRecord::_internal_mutable_exp() { + ::google::protobuf::internal::TSanWrite(&_impl_); _impl_._has_bits_[0] |= 0x00000002u; - return _impl_.exp_.Mutable(GetArenaForAllocation()); + return _impl_.exp_.Mutable( GetArena()); } inline std::string* NetlistFile_NetPointRecord::release_exp() { + ::google::protobuf::internal::TSanWrite(&_impl_); // @@protoc_insertion_point(field_release:Odb.Lib.Protobuf.NetlistFile.NetPointRecord.exp) - if (!_internal_has_exp()) { + if ((_impl_._has_bits_[0] & 0x00000002u) == 0) { return nullptr; } _impl_._has_bits_[0] &= ~0x00000002u; - auto* p = _impl_.exp_.Release(); -#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (_impl_.exp_.IsDefault()) { - _impl_.exp_.Set("", GetArenaForAllocation()); + auto* released = _impl_.exp_.Release(); + if (::google::protobuf::internal::DebugHardenForceCopyDefaultString()) { + _impl_.exp_.Set("", GetArena()); } -#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING - return p; + return released; } -inline void NetlistFile_NetPointRecord::set_allocated_exp(std::string* exp) { - if (exp != nullptr) { +inline void NetlistFile_NetPointRecord::set_allocated_exp(std::string* value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + if (value != nullptr) { _impl_._has_bits_[0] |= 0x00000002u; } else { _impl_._has_bits_[0] &= ~0x00000002u; } - _impl_.exp_.SetAllocated(exp, GetArenaForAllocation()); -#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (_impl_.exp_.IsDefault()) { - _impl_.exp_.Set("", GetArenaForAllocation()); + _impl_.exp_.SetAllocated(value, GetArena()); + if (::google::protobuf::internal::DebugHardenForceCopyDefaultString() && _impl_.exp_.IsDefault()) { + _impl_.exp_.Set("", GetArena()); } -#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING // @@protoc_insertion_point(field_set_allocated:Odb.Lib.Protobuf.NetlistFile.NetPointRecord.exp) } // optional bool commentPoint = 10; -inline bool NetlistFile_NetPointRecord::_internal_has_commentpoint() const { +inline bool NetlistFile_NetPointRecord::has_commentpoint() const { bool value = (_impl_._has_bits_[0] & 0x00000400u) != 0; return value; } -inline bool NetlistFile_NetPointRecord::has_commentpoint() const { - return _internal_has_commentpoint(); -} inline void NetlistFile_NetPointRecord::clear_commentpoint() { + ::google::protobuf::internal::TSanWrite(&_impl_); _impl_.commentpoint_ = false; _impl_._has_bits_[0] &= ~0x00000400u; } -inline bool NetlistFile_NetPointRecord::_internal_commentpoint() const { - return _impl_.commentpoint_; -} inline bool NetlistFile_NetPointRecord::commentpoint() const { // @@protoc_insertion_point(field_get:Odb.Lib.Protobuf.NetlistFile.NetPointRecord.commentPoint) return _internal_commentpoint(); } -inline void NetlistFile_NetPointRecord::_internal_set_commentpoint(bool value) { - _impl_._has_bits_[0] |= 0x00000400u; - _impl_.commentpoint_ = value; -} inline void NetlistFile_NetPointRecord::set_commentpoint(bool value) { _internal_set_commentpoint(value); + _impl_._has_bits_[0] |= 0x00000400u; // @@protoc_insertion_point(field_set:Odb.Lib.Protobuf.NetlistFile.NetPointRecord.commentPoint) } +inline bool NetlistFile_NetPointRecord::_internal_commentpoint() const { + ::google::protobuf::internal::TSanRead(&_impl_); + return _impl_.commentpoint_; +} +inline void NetlistFile_NetPointRecord::_internal_set_commentpoint(bool value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.commentpoint_ = value; +} // optional float staggeredX = 11; -inline bool NetlistFile_NetPointRecord::_internal_has_staggeredx() const { +inline bool NetlistFile_NetPointRecord::has_staggeredx() const { bool value = (_impl_._has_bits_[0] & 0x00000800u) != 0; return value; } -inline bool NetlistFile_NetPointRecord::has_staggeredx() const { - return _internal_has_staggeredx(); -} inline void NetlistFile_NetPointRecord::clear_staggeredx() { + ::google::protobuf::internal::TSanWrite(&_impl_); _impl_.staggeredx_ = 0; _impl_._has_bits_[0] &= ~0x00000800u; } -inline float NetlistFile_NetPointRecord::_internal_staggeredx() const { - return _impl_.staggeredx_; -} inline float NetlistFile_NetPointRecord::staggeredx() const { // @@protoc_insertion_point(field_get:Odb.Lib.Protobuf.NetlistFile.NetPointRecord.staggeredX) return _internal_staggeredx(); } -inline void NetlistFile_NetPointRecord::_internal_set_staggeredx(float value) { - _impl_._has_bits_[0] |= 0x00000800u; - _impl_.staggeredx_ = value; -} inline void NetlistFile_NetPointRecord::set_staggeredx(float value) { _internal_set_staggeredx(value); + _impl_._has_bits_[0] |= 0x00000800u; // @@protoc_insertion_point(field_set:Odb.Lib.Protobuf.NetlistFile.NetPointRecord.staggeredX) } +inline float NetlistFile_NetPointRecord::_internal_staggeredx() const { + ::google::protobuf::internal::TSanRead(&_impl_); + return _impl_.staggeredx_; +} +inline void NetlistFile_NetPointRecord::_internal_set_staggeredx(float value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.staggeredx_ = value; +} // optional float staggeredY = 12; -inline bool NetlistFile_NetPointRecord::_internal_has_staggeredy() const { +inline bool NetlistFile_NetPointRecord::has_staggeredy() const { bool value = (_impl_._has_bits_[0] & 0x00001000u) != 0; return value; } -inline bool NetlistFile_NetPointRecord::has_staggeredy() const { - return _internal_has_staggeredy(); -} inline void NetlistFile_NetPointRecord::clear_staggeredy() { + ::google::protobuf::internal::TSanWrite(&_impl_); _impl_.staggeredy_ = 0; _impl_._has_bits_[0] &= ~0x00001000u; } -inline float NetlistFile_NetPointRecord::_internal_staggeredy() const { - return _impl_.staggeredy_; -} inline float NetlistFile_NetPointRecord::staggeredy() const { // @@protoc_insertion_point(field_get:Odb.Lib.Protobuf.NetlistFile.NetPointRecord.staggeredY) return _internal_staggeredy(); } -inline void NetlistFile_NetPointRecord::_internal_set_staggeredy(float value) { - _impl_._has_bits_[0] |= 0x00001000u; - _impl_.staggeredy_ = value; -} inline void NetlistFile_NetPointRecord::set_staggeredy(float value) { _internal_set_staggeredy(value); + _impl_._has_bits_[0] |= 0x00001000u; // @@protoc_insertion_point(field_set:Odb.Lib.Protobuf.NetlistFile.NetPointRecord.staggeredY) } +inline float NetlistFile_NetPointRecord::_internal_staggeredy() const { + ::google::protobuf::internal::TSanRead(&_impl_); + return _impl_.staggeredy_; +} +inline void NetlistFile_NetPointRecord::_internal_set_staggeredy(float value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.staggeredy_ = value; +} // optional float staggeredRadius = 13; -inline bool NetlistFile_NetPointRecord::_internal_has_staggeredradius() const { +inline bool NetlistFile_NetPointRecord::has_staggeredradius() const { bool value = (_impl_._has_bits_[0] & 0x00002000u) != 0; return value; } -inline bool NetlistFile_NetPointRecord::has_staggeredradius() const { - return _internal_has_staggeredradius(); -} inline void NetlistFile_NetPointRecord::clear_staggeredradius() { + ::google::protobuf::internal::TSanWrite(&_impl_); _impl_.staggeredradius_ = 0; _impl_._has_bits_[0] &= ~0x00002000u; } -inline float NetlistFile_NetPointRecord::_internal_staggeredradius() const { - return _impl_.staggeredradius_; -} inline float NetlistFile_NetPointRecord::staggeredradius() const { // @@protoc_insertion_point(field_get:Odb.Lib.Protobuf.NetlistFile.NetPointRecord.staggeredRadius) return _internal_staggeredradius(); } -inline void NetlistFile_NetPointRecord::_internal_set_staggeredradius(float value) { - _impl_._has_bits_[0] |= 0x00002000u; - _impl_.staggeredradius_ = value; -} inline void NetlistFile_NetPointRecord::set_staggeredradius(float value) { _internal_set_staggeredradius(value); + _impl_._has_bits_[0] |= 0x00002000u; // @@protoc_insertion_point(field_set:Odb.Lib.Protobuf.NetlistFile.NetPointRecord.staggeredRadius) } +inline float NetlistFile_NetPointRecord::_internal_staggeredradius() const { + ::google::protobuf::internal::TSanRead(&_impl_); + return _impl_.staggeredradius_; +} +inline void NetlistFile_NetPointRecord::_internal_set_staggeredradius(float value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.staggeredradius_ = value; +} // optional float viaPoint = 14; -inline bool NetlistFile_NetPointRecord::_internal_has_viapoint() const { +inline bool NetlistFile_NetPointRecord::has_viapoint() const { bool value = (_impl_._has_bits_[0] & 0x00004000u) != 0; return value; } -inline bool NetlistFile_NetPointRecord::has_viapoint() const { - return _internal_has_viapoint(); -} inline void NetlistFile_NetPointRecord::clear_viapoint() { + ::google::protobuf::internal::TSanWrite(&_impl_); _impl_.viapoint_ = 0; _impl_._has_bits_[0] &= ~0x00004000u; } -inline float NetlistFile_NetPointRecord::_internal_viapoint() const { - return _impl_.viapoint_; -} inline float NetlistFile_NetPointRecord::viapoint() const { // @@protoc_insertion_point(field_get:Odb.Lib.Protobuf.NetlistFile.NetPointRecord.viaPoint) return _internal_viapoint(); } -inline void NetlistFile_NetPointRecord::_internal_set_viapoint(float value) { - _impl_._has_bits_[0] |= 0x00004000u; - _impl_.viapoint_ = value; -} inline void NetlistFile_NetPointRecord::set_viapoint(float value) { _internal_set_viapoint(value); + _impl_._has_bits_[0] |= 0x00004000u; // @@protoc_insertion_point(field_set:Odb.Lib.Protobuf.NetlistFile.NetPointRecord.viaPoint) } +inline float NetlistFile_NetPointRecord::_internal_viapoint() const { + ::google::protobuf::internal::TSanRead(&_impl_); + return _impl_.viapoint_; +} +inline void NetlistFile_NetPointRecord::_internal_set_viapoint(float value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.viapoint_ = value; +} // optional float fiducialPoint = 15; -inline bool NetlistFile_NetPointRecord::_internal_has_fiducialpoint() const { +inline bool NetlistFile_NetPointRecord::has_fiducialpoint() const { bool value = (_impl_._has_bits_[0] & 0x00008000u) != 0; return value; } -inline bool NetlistFile_NetPointRecord::has_fiducialpoint() const { - return _internal_has_fiducialpoint(); -} inline void NetlistFile_NetPointRecord::clear_fiducialpoint() { + ::google::protobuf::internal::TSanWrite(&_impl_); _impl_.fiducialpoint_ = 0; _impl_._has_bits_[0] &= ~0x00008000u; } -inline float NetlistFile_NetPointRecord::_internal_fiducialpoint() const { - return _impl_.fiducialpoint_; -} inline float NetlistFile_NetPointRecord::fiducialpoint() const { // @@protoc_insertion_point(field_get:Odb.Lib.Protobuf.NetlistFile.NetPointRecord.fiducialPoint) return _internal_fiducialpoint(); } -inline void NetlistFile_NetPointRecord::_internal_set_fiducialpoint(float value) { - _impl_._has_bits_[0] |= 0x00008000u; - _impl_.fiducialpoint_ = value; -} inline void NetlistFile_NetPointRecord::set_fiducialpoint(float value) { _internal_set_fiducialpoint(value); + _impl_._has_bits_[0] |= 0x00008000u; // @@protoc_insertion_point(field_set:Odb.Lib.Protobuf.NetlistFile.NetPointRecord.fiducialPoint) } +inline float NetlistFile_NetPointRecord::_internal_fiducialpoint() const { + ::google::protobuf::internal::TSanRead(&_impl_); + return _impl_.fiducialpoint_; +} +inline void NetlistFile_NetPointRecord::_internal_set_fiducialpoint(float value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.fiducialpoint_ = value; +} // optional float testPoint = 16; -inline bool NetlistFile_NetPointRecord::_internal_has_testpoint() const { +inline bool NetlistFile_NetPointRecord::has_testpoint() const { bool value = (_impl_._has_bits_[0] & 0x00010000u) != 0; return value; } -inline bool NetlistFile_NetPointRecord::has_testpoint() const { - return _internal_has_testpoint(); -} inline void NetlistFile_NetPointRecord::clear_testpoint() { + ::google::protobuf::internal::TSanWrite(&_impl_); _impl_.testpoint_ = 0; _impl_._has_bits_[0] &= ~0x00010000u; } -inline float NetlistFile_NetPointRecord::_internal_testpoint() const { - return _impl_.testpoint_; -} inline float NetlistFile_NetPointRecord::testpoint() const { // @@protoc_insertion_point(field_get:Odb.Lib.Protobuf.NetlistFile.NetPointRecord.testPoint) return _internal_testpoint(); } -inline void NetlistFile_NetPointRecord::_internal_set_testpoint(float value) { - _impl_._has_bits_[0] |= 0x00010000u; - _impl_.testpoint_ = value; -} inline void NetlistFile_NetPointRecord::set_testpoint(float value) { _internal_set_testpoint(value); + _impl_._has_bits_[0] |= 0x00010000u; // @@protoc_insertion_point(field_set:Odb.Lib.Protobuf.NetlistFile.NetPointRecord.testPoint) } +inline float NetlistFile_NetPointRecord::_internal_testpoint() const { + ::google::protobuf::internal::TSanRead(&_impl_); + return _impl_.testpoint_; +} +inline void NetlistFile_NetPointRecord::_internal_set_testpoint(float value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.testpoint_ = value; +} // optional string testExecutionSide = 17; -inline bool NetlistFile_NetPointRecord::_internal_has_testexecutionside() const { +inline bool NetlistFile_NetPointRecord::has_testexecutionside() const { bool value = (_impl_._has_bits_[0] & 0x00000004u) != 0; return value; } -inline bool NetlistFile_NetPointRecord::has_testexecutionside() const { - return _internal_has_testexecutionside(); -} inline void NetlistFile_NetPointRecord::clear_testexecutionside() { + ::google::protobuf::internal::TSanWrite(&_impl_); _impl_.testexecutionside_.ClearToEmpty(); _impl_._has_bits_[0] &= ~0x00000004u; } -inline const std::string& NetlistFile_NetPointRecord::testexecutionside() const { +inline const std::string& NetlistFile_NetPointRecord::testexecutionside() const + ABSL_ATTRIBUTE_LIFETIME_BOUND { // @@protoc_insertion_point(field_get:Odb.Lib.Protobuf.NetlistFile.NetPointRecord.testExecutionSide) return _internal_testexecutionside(); } -template -inline PROTOBUF_ALWAYS_INLINE -void NetlistFile_NetPointRecord::set_testexecutionside(ArgT0&& arg0, ArgT... args) { - _impl_._has_bits_[0] |= 0x00000004u; - _impl_.testexecutionside_.Set(static_cast(arg0), args..., GetArenaForAllocation()); +template +inline PROTOBUF_ALWAYS_INLINE void NetlistFile_NetPointRecord::set_testexecutionside(Arg_&& arg, + Args_... args) { + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_._has_bits_[0] |= 0x00000004u; + _impl_.testexecutionside_.Set(static_cast(arg), args..., GetArena()); // @@protoc_insertion_point(field_set:Odb.Lib.Protobuf.NetlistFile.NetPointRecord.testExecutionSide) } -inline std::string* NetlistFile_NetPointRecord::mutable_testexecutionside() { +inline std::string* NetlistFile_NetPointRecord::mutable_testexecutionside() ABSL_ATTRIBUTE_LIFETIME_BOUND { std::string* _s = _internal_mutable_testexecutionside(); // @@protoc_insertion_point(field_mutable:Odb.Lib.Protobuf.NetlistFile.NetPointRecord.testExecutionSide) return _s; } inline const std::string& NetlistFile_NetPointRecord::_internal_testexecutionside() const { + ::google::protobuf::internal::TSanRead(&_impl_); return _impl_.testexecutionside_.Get(); } inline void NetlistFile_NetPointRecord::_internal_set_testexecutionside(const std::string& value) { + ::google::protobuf::internal::TSanWrite(&_impl_); _impl_._has_bits_[0] |= 0x00000004u; - _impl_.testexecutionside_.Set(value, GetArenaForAllocation()); + _impl_.testexecutionside_.Set(value, GetArena()); } inline std::string* NetlistFile_NetPointRecord::_internal_mutable_testexecutionside() { + ::google::protobuf::internal::TSanWrite(&_impl_); _impl_._has_bits_[0] |= 0x00000004u; - return _impl_.testexecutionside_.Mutable(GetArenaForAllocation()); + return _impl_.testexecutionside_.Mutable( GetArena()); } inline std::string* NetlistFile_NetPointRecord::release_testexecutionside() { + ::google::protobuf::internal::TSanWrite(&_impl_); // @@protoc_insertion_point(field_release:Odb.Lib.Protobuf.NetlistFile.NetPointRecord.testExecutionSide) - if (!_internal_has_testexecutionside()) { + if ((_impl_._has_bits_[0] & 0x00000004u) == 0) { return nullptr; } _impl_._has_bits_[0] &= ~0x00000004u; - auto* p = _impl_.testexecutionside_.Release(); -#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (_impl_.testexecutionside_.IsDefault()) { - _impl_.testexecutionside_.Set("", GetArenaForAllocation()); + auto* released = _impl_.testexecutionside_.Release(); + if (::google::protobuf::internal::DebugHardenForceCopyDefaultString()) { + _impl_.testexecutionside_.Set("", GetArena()); } -#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING - return p; + return released; } -inline void NetlistFile_NetPointRecord::set_allocated_testexecutionside(std::string* testexecutionside) { - if (testexecutionside != nullptr) { +inline void NetlistFile_NetPointRecord::set_allocated_testexecutionside(std::string* value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + if (value != nullptr) { _impl_._has_bits_[0] |= 0x00000004u; } else { _impl_._has_bits_[0] &= ~0x00000004u; } - _impl_.testexecutionside_.SetAllocated(testexecutionside, GetArenaForAllocation()); -#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (_impl_.testexecutionside_.IsDefault()) { - _impl_.testexecutionside_.Set("", GetArenaForAllocation()); + _impl_.testexecutionside_.SetAllocated(value, GetArena()); + if (::google::protobuf::internal::DebugHardenForceCopyDefaultString() && _impl_.testexecutionside_.IsDefault()) { + _impl_.testexecutionside_.Set("", GetArena()); } -#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING // @@protoc_insertion_point(field_set_allocated:Odb.Lib.Protobuf.NetlistFile.NetPointRecord.testExecutionSide) } @@ -1812,406 +1909,425 @@ inline void NetlistFile_NetPointRecord::set_allocated_testexecutionside(std::str // NetlistFile // optional string path = 1; -inline bool NetlistFile::_internal_has_path() const { +inline bool NetlistFile::has_path() const { bool value = (_impl_._has_bits_[0] & 0x00000001u) != 0; return value; } -inline bool NetlistFile::has_path() const { - return _internal_has_path(); -} inline void NetlistFile::clear_path() { + ::google::protobuf::internal::TSanWrite(&_impl_); _impl_.path_.ClearToEmpty(); _impl_._has_bits_[0] &= ~0x00000001u; } -inline const std::string& NetlistFile::path() const { +inline const std::string& NetlistFile::path() const + ABSL_ATTRIBUTE_LIFETIME_BOUND { // @@protoc_insertion_point(field_get:Odb.Lib.Protobuf.NetlistFile.path) return _internal_path(); } -template -inline PROTOBUF_ALWAYS_INLINE -void NetlistFile::set_path(ArgT0&& arg0, ArgT... args) { - _impl_._has_bits_[0] |= 0x00000001u; - _impl_.path_.Set(static_cast(arg0), args..., GetArenaForAllocation()); +template +inline PROTOBUF_ALWAYS_INLINE void NetlistFile::set_path(Arg_&& arg, + Args_... args) { + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_._has_bits_[0] |= 0x00000001u; + _impl_.path_.Set(static_cast(arg), args..., GetArena()); // @@protoc_insertion_point(field_set:Odb.Lib.Protobuf.NetlistFile.path) } -inline std::string* NetlistFile::mutable_path() { +inline std::string* NetlistFile::mutable_path() ABSL_ATTRIBUTE_LIFETIME_BOUND { std::string* _s = _internal_mutable_path(); // @@protoc_insertion_point(field_mutable:Odb.Lib.Protobuf.NetlistFile.path) return _s; } inline const std::string& NetlistFile::_internal_path() const { + ::google::protobuf::internal::TSanRead(&_impl_); return _impl_.path_.Get(); } inline void NetlistFile::_internal_set_path(const std::string& value) { + ::google::protobuf::internal::TSanWrite(&_impl_); _impl_._has_bits_[0] |= 0x00000001u; - _impl_.path_.Set(value, GetArenaForAllocation()); + _impl_.path_.Set(value, GetArena()); } inline std::string* NetlistFile::_internal_mutable_path() { + ::google::protobuf::internal::TSanWrite(&_impl_); _impl_._has_bits_[0] |= 0x00000001u; - return _impl_.path_.Mutable(GetArenaForAllocation()); + return _impl_.path_.Mutable( GetArena()); } inline std::string* NetlistFile::release_path() { + ::google::protobuf::internal::TSanWrite(&_impl_); // @@protoc_insertion_point(field_release:Odb.Lib.Protobuf.NetlistFile.path) - if (!_internal_has_path()) { + if ((_impl_._has_bits_[0] & 0x00000001u) == 0) { return nullptr; } _impl_._has_bits_[0] &= ~0x00000001u; - auto* p = _impl_.path_.Release(); -#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (_impl_.path_.IsDefault()) { - _impl_.path_.Set("", GetArenaForAllocation()); + auto* released = _impl_.path_.Release(); + if (::google::protobuf::internal::DebugHardenForceCopyDefaultString()) { + _impl_.path_.Set("", GetArena()); } -#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING - return p; + return released; } -inline void NetlistFile::set_allocated_path(std::string* path) { - if (path != nullptr) { +inline void NetlistFile::set_allocated_path(std::string* value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + if (value != nullptr) { _impl_._has_bits_[0] |= 0x00000001u; } else { _impl_._has_bits_[0] &= ~0x00000001u; } - _impl_.path_.SetAllocated(path, GetArenaForAllocation()); -#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (_impl_.path_.IsDefault()) { - _impl_.path_.Set("", GetArenaForAllocation()); + _impl_.path_.SetAllocated(value, GetArena()); + if (::google::protobuf::internal::DebugHardenForceCopyDefaultString() && _impl_.path_.IsDefault()) { + _impl_.path_.Set("", GetArena()); } -#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING // @@protoc_insertion_point(field_set_allocated:Odb.Lib.Protobuf.NetlistFile.path) } // optional string name = 2; -inline bool NetlistFile::_internal_has_name() const { +inline bool NetlistFile::has_name() const { bool value = (_impl_._has_bits_[0] & 0x00000002u) != 0; return value; } -inline bool NetlistFile::has_name() const { - return _internal_has_name(); -} inline void NetlistFile::clear_name() { + ::google::protobuf::internal::TSanWrite(&_impl_); _impl_.name_.ClearToEmpty(); _impl_._has_bits_[0] &= ~0x00000002u; } -inline const std::string& NetlistFile::name() const { +inline const std::string& NetlistFile::name() const + ABSL_ATTRIBUTE_LIFETIME_BOUND { // @@protoc_insertion_point(field_get:Odb.Lib.Protobuf.NetlistFile.name) return _internal_name(); } -template -inline PROTOBUF_ALWAYS_INLINE -void NetlistFile::set_name(ArgT0&& arg0, ArgT... args) { - _impl_._has_bits_[0] |= 0x00000002u; - _impl_.name_.Set(static_cast(arg0), args..., GetArenaForAllocation()); +template +inline PROTOBUF_ALWAYS_INLINE void NetlistFile::set_name(Arg_&& arg, + Args_... args) { + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_._has_bits_[0] |= 0x00000002u; + _impl_.name_.Set(static_cast(arg), args..., GetArena()); // @@protoc_insertion_point(field_set:Odb.Lib.Protobuf.NetlistFile.name) } -inline std::string* NetlistFile::mutable_name() { +inline std::string* NetlistFile::mutable_name() ABSL_ATTRIBUTE_LIFETIME_BOUND { std::string* _s = _internal_mutable_name(); // @@protoc_insertion_point(field_mutable:Odb.Lib.Protobuf.NetlistFile.name) return _s; } inline const std::string& NetlistFile::_internal_name() const { + ::google::protobuf::internal::TSanRead(&_impl_); return _impl_.name_.Get(); } inline void NetlistFile::_internal_set_name(const std::string& value) { + ::google::protobuf::internal::TSanWrite(&_impl_); _impl_._has_bits_[0] |= 0x00000002u; - _impl_.name_.Set(value, GetArenaForAllocation()); + _impl_.name_.Set(value, GetArena()); } inline std::string* NetlistFile::_internal_mutable_name() { + ::google::protobuf::internal::TSanWrite(&_impl_); _impl_._has_bits_[0] |= 0x00000002u; - return _impl_.name_.Mutable(GetArenaForAllocation()); + return _impl_.name_.Mutable( GetArena()); } inline std::string* NetlistFile::release_name() { + ::google::protobuf::internal::TSanWrite(&_impl_); // @@protoc_insertion_point(field_release:Odb.Lib.Protobuf.NetlistFile.name) - if (!_internal_has_name()) { + if ((_impl_._has_bits_[0] & 0x00000002u) == 0) { return nullptr; } _impl_._has_bits_[0] &= ~0x00000002u; - auto* p = _impl_.name_.Release(); -#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (_impl_.name_.IsDefault()) { - _impl_.name_.Set("", GetArenaForAllocation()); + auto* released = _impl_.name_.Release(); + if (::google::protobuf::internal::DebugHardenForceCopyDefaultString()) { + _impl_.name_.Set("", GetArena()); } -#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING - return p; + return released; } -inline void NetlistFile::set_allocated_name(std::string* name) { - if (name != nullptr) { +inline void NetlistFile::set_allocated_name(std::string* value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + if (value != nullptr) { _impl_._has_bits_[0] |= 0x00000002u; } else { _impl_._has_bits_[0] &= ~0x00000002u; } - _impl_.name_.SetAllocated(name, GetArenaForAllocation()); -#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (_impl_.name_.IsDefault()) { - _impl_.name_.Set("", GetArenaForAllocation()); + _impl_.name_.SetAllocated(value, GetArena()); + if (::google::protobuf::internal::DebugHardenForceCopyDefaultString() && _impl_.name_.IsDefault()) { + _impl_.name_.Set("", GetArena()); } -#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING // @@protoc_insertion_point(field_set_allocated:Odb.Lib.Protobuf.NetlistFile.name) } // optional string units = 3; -inline bool NetlistFile::_internal_has_units() const { +inline bool NetlistFile::has_units() const { bool value = (_impl_._has_bits_[0] & 0x00000004u) != 0; return value; } -inline bool NetlistFile::has_units() const { - return _internal_has_units(); -} inline void NetlistFile::clear_units() { + ::google::protobuf::internal::TSanWrite(&_impl_); _impl_.units_.ClearToEmpty(); _impl_._has_bits_[0] &= ~0x00000004u; } -inline const std::string& NetlistFile::units() const { +inline const std::string& NetlistFile::units() const + ABSL_ATTRIBUTE_LIFETIME_BOUND { // @@protoc_insertion_point(field_get:Odb.Lib.Protobuf.NetlistFile.units) return _internal_units(); } -template -inline PROTOBUF_ALWAYS_INLINE -void NetlistFile::set_units(ArgT0&& arg0, ArgT... args) { - _impl_._has_bits_[0] |= 0x00000004u; - _impl_.units_.Set(static_cast(arg0), args..., GetArenaForAllocation()); +template +inline PROTOBUF_ALWAYS_INLINE void NetlistFile::set_units(Arg_&& arg, + Args_... args) { + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_._has_bits_[0] |= 0x00000004u; + _impl_.units_.Set(static_cast(arg), args..., GetArena()); // @@protoc_insertion_point(field_set:Odb.Lib.Protobuf.NetlistFile.units) } -inline std::string* NetlistFile::mutable_units() { +inline std::string* NetlistFile::mutable_units() ABSL_ATTRIBUTE_LIFETIME_BOUND { std::string* _s = _internal_mutable_units(); // @@protoc_insertion_point(field_mutable:Odb.Lib.Protobuf.NetlistFile.units) return _s; } inline const std::string& NetlistFile::_internal_units() const { + ::google::protobuf::internal::TSanRead(&_impl_); return _impl_.units_.Get(); } inline void NetlistFile::_internal_set_units(const std::string& value) { + ::google::protobuf::internal::TSanWrite(&_impl_); _impl_._has_bits_[0] |= 0x00000004u; - _impl_.units_.Set(value, GetArenaForAllocation()); + _impl_.units_.Set(value, GetArena()); } inline std::string* NetlistFile::_internal_mutable_units() { + ::google::protobuf::internal::TSanWrite(&_impl_); _impl_._has_bits_[0] |= 0x00000004u; - return _impl_.units_.Mutable(GetArenaForAllocation()); + return _impl_.units_.Mutable( GetArena()); } inline std::string* NetlistFile::release_units() { + ::google::protobuf::internal::TSanWrite(&_impl_); // @@protoc_insertion_point(field_release:Odb.Lib.Protobuf.NetlistFile.units) - if (!_internal_has_units()) { + if ((_impl_._has_bits_[0] & 0x00000004u) == 0) { return nullptr; } _impl_._has_bits_[0] &= ~0x00000004u; - auto* p = _impl_.units_.Release(); -#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (_impl_.units_.IsDefault()) { - _impl_.units_.Set("", GetArenaForAllocation()); + auto* released = _impl_.units_.Release(); + if (::google::protobuf::internal::DebugHardenForceCopyDefaultString()) { + _impl_.units_.Set("", GetArena()); } -#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING - return p; + return released; } -inline void NetlistFile::set_allocated_units(std::string* units) { - if (units != nullptr) { +inline void NetlistFile::set_allocated_units(std::string* value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + if (value != nullptr) { _impl_._has_bits_[0] |= 0x00000004u; } else { _impl_._has_bits_[0] &= ~0x00000004u; } - _impl_.units_.SetAllocated(units, GetArenaForAllocation()); -#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (_impl_.units_.IsDefault()) { - _impl_.units_.Set("", GetArenaForAllocation()); + _impl_.units_.SetAllocated(value, GetArena()); + if (::google::protobuf::internal::DebugHardenForceCopyDefaultString() && _impl_.units_.IsDefault()) { + _impl_.units_.Set("", GetArena()); } -#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING // @@protoc_insertion_point(field_set_allocated:Odb.Lib.Protobuf.NetlistFile.units) } // optional bool optimized = 4; -inline bool NetlistFile::_internal_has_optimized() const { +inline bool NetlistFile::has_optimized() const { bool value = (_impl_._has_bits_[0] & 0x00000008u) != 0; return value; } -inline bool NetlistFile::has_optimized() const { - return _internal_has_optimized(); -} inline void NetlistFile::clear_optimized() { + ::google::protobuf::internal::TSanWrite(&_impl_); _impl_.optimized_ = false; _impl_._has_bits_[0] &= ~0x00000008u; } -inline bool NetlistFile::_internal_optimized() const { - return _impl_.optimized_; -} inline bool NetlistFile::optimized() const { // @@protoc_insertion_point(field_get:Odb.Lib.Protobuf.NetlistFile.optimized) return _internal_optimized(); } -inline void NetlistFile::_internal_set_optimized(bool value) { - _impl_._has_bits_[0] |= 0x00000008u; - _impl_.optimized_ = value; -} inline void NetlistFile::set_optimized(bool value) { _internal_set_optimized(value); + _impl_._has_bits_[0] |= 0x00000008u; // @@protoc_insertion_point(field_set:Odb.Lib.Protobuf.NetlistFile.optimized) } +inline bool NetlistFile::_internal_optimized() const { + ::google::protobuf::internal::TSanRead(&_impl_); + return _impl_.optimized_; +} +inline void NetlistFile::_internal_set_optimized(bool value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.optimized_ = value; +} // optional .Odb.Lib.Protobuf.NetlistFile.Staggered staggered = 5; -inline bool NetlistFile::_internal_has_staggered() const { +inline bool NetlistFile::has_staggered() const { bool value = (_impl_._has_bits_[0] & 0x00000010u) != 0; return value; } -inline bool NetlistFile::has_staggered() const { - return _internal_has_staggered(); -} inline void NetlistFile::clear_staggered() { + ::google::protobuf::internal::TSanWrite(&_impl_); _impl_.staggered_ = 0; _impl_._has_bits_[0] &= ~0x00000010u; } -inline ::Odb::Lib::Protobuf::NetlistFile_Staggered NetlistFile::_internal_staggered() const { - return static_cast< ::Odb::Lib::Protobuf::NetlistFile_Staggered >(_impl_.staggered_); -} inline ::Odb::Lib::Protobuf::NetlistFile_Staggered NetlistFile::staggered() const { // @@protoc_insertion_point(field_get:Odb.Lib.Protobuf.NetlistFile.staggered) return _internal_staggered(); } -inline void NetlistFile::_internal_set_staggered(::Odb::Lib::Protobuf::NetlistFile_Staggered value) { - _impl_._has_bits_[0] |= 0x00000010u; - _impl_.staggered_ = value; -} inline void NetlistFile::set_staggered(::Odb::Lib::Protobuf::NetlistFile_Staggered value) { _internal_set_staggered(value); + _impl_._has_bits_[0] |= 0x00000010u; // @@protoc_insertion_point(field_set:Odb.Lib.Protobuf.NetlistFile.staggered) } +inline ::Odb::Lib::Protobuf::NetlistFile_Staggered NetlistFile::_internal_staggered() const { + ::google::protobuf::internal::TSanRead(&_impl_); + return static_cast<::Odb::Lib::Protobuf::NetlistFile_Staggered>(_impl_.staggered_); +} +inline void NetlistFile::_internal_set_staggered(::Odb::Lib::Protobuf::NetlistFile_Staggered value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.staggered_ = value; +} // repeated .Odb.Lib.Protobuf.NetlistFile.NetRecord netRecordss = 6; inline int NetlistFile::_internal_netrecordss_size() const { - return _impl_.netrecordss_.size(); + return _internal_netrecordss().size(); } inline int NetlistFile::netrecordss_size() const { return _internal_netrecordss_size(); } inline void NetlistFile::clear_netrecordss() { + ::google::protobuf::internal::TSanWrite(&_impl_); _impl_.netrecordss_.Clear(); } -inline ::Odb::Lib::Protobuf::NetlistFile_NetRecord* NetlistFile::mutable_netrecordss(int index) { +inline ::Odb::Lib::Protobuf::NetlistFile_NetRecord* NetlistFile::mutable_netrecordss(int index) + ABSL_ATTRIBUTE_LIFETIME_BOUND { // @@protoc_insertion_point(field_mutable:Odb.Lib.Protobuf.NetlistFile.netRecordss) - return _impl_.netrecordss_.Mutable(index); + return _internal_mutable_netrecordss()->Mutable(index); } -inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::Odb::Lib::Protobuf::NetlistFile_NetRecord >* -NetlistFile::mutable_netrecordss() { +inline ::google::protobuf::RepeatedPtrField<::Odb::Lib::Protobuf::NetlistFile_NetRecord>* NetlistFile::mutable_netrecordss() + ABSL_ATTRIBUTE_LIFETIME_BOUND { // @@protoc_insertion_point(field_mutable_list:Odb.Lib.Protobuf.NetlistFile.netRecordss) - return &_impl_.netrecordss_; -} -inline const ::Odb::Lib::Protobuf::NetlistFile_NetRecord& NetlistFile::_internal_netrecordss(int index) const { - return _impl_.netrecordss_.Get(index); + ::google::protobuf::internal::TSanWrite(&_impl_); + return _internal_mutable_netrecordss(); } -inline const ::Odb::Lib::Protobuf::NetlistFile_NetRecord& NetlistFile::netrecordss(int index) const { +inline const ::Odb::Lib::Protobuf::NetlistFile_NetRecord& NetlistFile::netrecordss(int index) const + ABSL_ATTRIBUTE_LIFETIME_BOUND { // @@protoc_insertion_point(field_get:Odb.Lib.Protobuf.NetlistFile.netRecordss) - return _internal_netrecordss(index); + return _internal_netrecordss().Get(index); } -inline ::Odb::Lib::Protobuf::NetlistFile_NetRecord* NetlistFile::_internal_add_netrecordss() { - return _impl_.netrecordss_.Add(); -} -inline ::Odb::Lib::Protobuf::NetlistFile_NetRecord* NetlistFile::add_netrecordss() { - ::Odb::Lib::Protobuf::NetlistFile_NetRecord* _add = _internal_add_netrecordss(); +inline ::Odb::Lib::Protobuf::NetlistFile_NetRecord* NetlistFile::add_netrecordss() ABSL_ATTRIBUTE_LIFETIME_BOUND { + ::google::protobuf::internal::TSanWrite(&_impl_); + ::Odb::Lib::Protobuf::NetlistFile_NetRecord* _add = _internal_mutable_netrecordss()->Add(); // @@protoc_insertion_point(field_add:Odb.Lib.Protobuf.NetlistFile.netRecordss) return _add; } -inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::Odb::Lib::Protobuf::NetlistFile_NetRecord >& -NetlistFile::netrecordss() const { +inline const ::google::protobuf::RepeatedPtrField<::Odb::Lib::Protobuf::NetlistFile_NetRecord>& NetlistFile::netrecordss() const + ABSL_ATTRIBUTE_LIFETIME_BOUND { // @@protoc_insertion_point(field_list:Odb.Lib.Protobuf.NetlistFile.netRecordss) + return _internal_netrecordss(); +} +inline const ::google::protobuf::RepeatedPtrField<::Odb::Lib::Protobuf::NetlistFile_NetRecord>& +NetlistFile::_internal_netrecordss() const { + ::google::protobuf::internal::TSanRead(&_impl_); return _impl_.netrecordss_; } +inline ::google::protobuf::RepeatedPtrField<::Odb::Lib::Protobuf::NetlistFile_NetRecord>* +NetlistFile::_internal_mutable_netrecordss() { + ::google::protobuf::internal::TSanRead(&_impl_); + return &_impl_.netrecordss_; +} // map netRecordsByName = 7; inline int NetlistFile::_internal_netrecordsbyname_size() const { - return _impl_.netrecordsbyname_.size(); + return _internal_netrecordsbyname().size(); } inline int NetlistFile::netrecordsbyname_size() const { return _internal_netrecordsbyname_size(); } inline void NetlistFile::clear_netrecordsbyname() { + ::google::protobuf::internal::TSanWrite(&_impl_); _impl_.netrecordsbyname_.Clear(); } -inline const ::PROTOBUF_NAMESPACE_ID::Map< std::string, ::Odb::Lib::Protobuf::NetlistFile_NetRecord >& -NetlistFile::_internal_netrecordsbyname() const { +inline const ::google::protobuf::Map& NetlistFile::_internal_netrecordsbyname() const { + ::google::protobuf::internal::TSanRead(&_impl_); return _impl_.netrecordsbyname_.GetMap(); } -inline const ::PROTOBUF_NAMESPACE_ID::Map< std::string, ::Odb::Lib::Protobuf::NetlistFile_NetRecord >& -NetlistFile::netrecordsbyname() const { +inline const ::google::protobuf::Map& NetlistFile::netrecordsbyname() const ABSL_ATTRIBUTE_LIFETIME_BOUND { // @@protoc_insertion_point(field_map:Odb.Lib.Protobuf.NetlistFile.netRecordsByName) return _internal_netrecordsbyname(); } -inline ::PROTOBUF_NAMESPACE_ID::Map< std::string, ::Odb::Lib::Protobuf::NetlistFile_NetRecord >* -NetlistFile::_internal_mutable_netrecordsbyname() { +inline ::google::protobuf::Map* NetlistFile::_internal_mutable_netrecordsbyname() { + ::google::protobuf::internal::TSanWrite(&_impl_); return _impl_.netrecordsbyname_.MutableMap(); } -inline ::PROTOBUF_NAMESPACE_ID::Map< std::string, ::Odb::Lib::Protobuf::NetlistFile_NetRecord >* -NetlistFile::mutable_netrecordsbyname() { +inline ::google::protobuf::Map* NetlistFile::mutable_netrecordsbyname() ABSL_ATTRIBUTE_LIFETIME_BOUND { // @@protoc_insertion_point(field_mutable_map:Odb.Lib.Protobuf.NetlistFile.netRecordsByName) return _internal_mutable_netrecordsbyname(); } // repeated .Odb.Lib.Protobuf.NetlistFile.NetPointRecord netPointRecords = 8; inline int NetlistFile::_internal_netpointrecords_size() const { - return _impl_.netpointrecords_.size(); + return _internal_netpointrecords().size(); } inline int NetlistFile::netpointrecords_size() const { return _internal_netpointrecords_size(); } inline void NetlistFile::clear_netpointrecords() { + ::google::protobuf::internal::TSanWrite(&_impl_); _impl_.netpointrecords_.Clear(); } -inline ::Odb::Lib::Protobuf::NetlistFile_NetPointRecord* NetlistFile::mutable_netpointrecords(int index) { +inline ::Odb::Lib::Protobuf::NetlistFile_NetPointRecord* NetlistFile::mutable_netpointrecords(int index) + ABSL_ATTRIBUTE_LIFETIME_BOUND { // @@protoc_insertion_point(field_mutable:Odb.Lib.Protobuf.NetlistFile.netPointRecords) - return _impl_.netpointrecords_.Mutable(index); + return _internal_mutable_netpointrecords()->Mutable(index); } -inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::Odb::Lib::Protobuf::NetlistFile_NetPointRecord >* -NetlistFile::mutable_netpointrecords() { +inline ::google::protobuf::RepeatedPtrField<::Odb::Lib::Protobuf::NetlistFile_NetPointRecord>* NetlistFile::mutable_netpointrecords() + ABSL_ATTRIBUTE_LIFETIME_BOUND { // @@protoc_insertion_point(field_mutable_list:Odb.Lib.Protobuf.NetlistFile.netPointRecords) - return &_impl_.netpointrecords_; + ::google::protobuf::internal::TSanWrite(&_impl_); + return _internal_mutable_netpointrecords(); } -inline const ::Odb::Lib::Protobuf::NetlistFile_NetPointRecord& NetlistFile::_internal_netpointrecords(int index) const { - return _impl_.netpointrecords_.Get(index); -} -inline const ::Odb::Lib::Protobuf::NetlistFile_NetPointRecord& NetlistFile::netpointrecords(int index) const { +inline const ::Odb::Lib::Protobuf::NetlistFile_NetPointRecord& NetlistFile::netpointrecords(int index) const + ABSL_ATTRIBUTE_LIFETIME_BOUND { // @@protoc_insertion_point(field_get:Odb.Lib.Protobuf.NetlistFile.netPointRecords) - return _internal_netpointrecords(index); -} -inline ::Odb::Lib::Protobuf::NetlistFile_NetPointRecord* NetlistFile::_internal_add_netpointrecords() { - return _impl_.netpointrecords_.Add(); + return _internal_netpointrecords().Get(index); } -inline ::Odb::Lib::Protobuf::NetlistFile_NetPointRecord* NetlistFile::add_netpointrecords() { - ::Odb::Lib::Protobuf::NetlistFile_NetPointRecord* _add = _internal_add_netpointrecords(); +inline ::Odb::Lib::Protobuf::NetlistFile_NetPointRecord* NetlistFile::add_netpointrecords() ABSL_ATTRIBUTE_LIFETIME_BOUND { + ::google::protobuf::internal::TSanWrite(&_impl_); + ::Odb::Lib::Protobuf::NetlistFile_NetPointRecord* _add = _internal_mutable_netpointrecords()->Add(); // @@protoc_insertion_point(field_add:Odb.Lib.Protobuf.NetlistFile.netPointRecords) return _add; } -inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::Odb::Lib::Protobuf::NetlistFile_NetPointRecord >& -NetlistFile::netpointrecords() const { +inline const ::google::protobuf::RepeatedPtrField<::Odb::Lib::Protobuf::NetlistFile_NetPointRecord>& NetlistFile::netpointrecords() const + ABSL_ATTRIBUTE_LIFETIME_BOUND { // @@protoc_insertion_point(field_list:Odb.Lib.Protobuf.NetlistFile.netPointRecords) + return _internal_netpointrecords(); +} +inline const ::google::protobuf::RepeatedPtrField<::Odb::Lib::Protobuf::NetlistFile_NetPointRecord>& +NetlistFile::_internal_netpointrecords() const { + ::google::protobuf::internal::TSanRead(&_impl_); return _impl_.netpointrecords_; } +inline ::google::protobuf::RepeatedPtrField<::Odb::Lib::Protobuf::NetlistFile_NetPointRecord>* +NetlistFile::_internal_mutable_netpointrecords() { + ::google::protobuf::internal::TSanRead(&_impl_); + return &_impl_.netpointrecords_; +} #ifdef __GNUC__ - #pragma GCC diagnostic pop +#pragma GCC diagnostic pop #endif // __GNUC__ -// ------------------------------------------------------------------- - -// ------------------------------------------------------------------- - -// ------------------------------------------------------------------- - // @@protoc_insertion_point(namespace_scope) - } // namespace Protobuf } // namespace Lib } // namespace Odb -PROTOBUF_NAMESPACE_OPEN -template <> struct is_proto_enum< ::Odb::Lib::Protobuf::NetlistFile_NetPointRecord_AccessSide> : ::std::true_type {}; +namespace google { +namespace protobuf { + +template <> +struct is_proto_enum<::Odb::Lib::Protobuf::NetlistFile_NetPointRecord_AccessSide> : std::true_type {}; template <> -inline const EnumDescriptor* GetEnumDescriptor< ::Odb::Lib::Protobuf::NetlistFile_NetPointRecord_AccessSide>() { +inline const EnumDescriptor* GetEnumDescriptor<::Odb::Lib::Protobuf::NetlistFile_NetPointRecord_AccessSide>() { return ::Odb::Lib::Protobuf::NetlistFile_NetPointRecord_AccessSide_descriptor(); } -template <> struct is_proto_enum< ::Odb::Lib::Protobuf::NetlistFile_Staggered> : ::std::true_type {}; template <> -inline const EnumDescriptor* GetEnumDescriptor< ::Odb::Lib::Protobuf::NetlistFile_Staggered>() { +struct is_proto_enum<::Odb::Lib::Protobuf::NetlistFile_Staggered> : std::true_type {}; +template <> +inline const EnumDescriptor* GetEnumDescriptor<::Odb::Lib::Protobuf::NetlistFile_Staggered>() { return ::Odb::Lib::Protobuf::NetlistFile_Staggered_descriptor(); } -PROTOBUF_NAMESPACE_CLOSE +} // namespace protobuf +} // namespace google // @@protoc_insertion_point(global_scope) -#include -#endif // GOOGLE_PROTOBUF_INCLUDED_GOOGLE_PROTOBUF_INCLUDED_netlistfile_2eproto +#include "google/protobuf/port_undef.inc" + +#endif // netlistfile_2eproto_2epb_2eh diff --git a/OdbDesignLib/ProtoBuf/package.pb.cc b/OdbDesignLib/ProtoBuf/package.pb.cc index 44e2d54b..54aae7d7 100644 --- a/OdbDesignLib/ProtoBuf/package.pb.cc +++ b/OdbDesignLib/ProtoBuf/package.pb.cc @@ -1,249 +1,453 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE // source: package.proto +// Protobuf C++ Version: 5.29.2 #include "package.pb.h" #include - -#include -#include -#include -#include -#include -#include -#include +#include +#include "google/protobuf/io/coded_stream.h" +#include "google/protobuf/generated_message_tctable_impl.h" +#include "google/protobuf/extension_set.h" +#include "google/protobuf/generated_message_util.h" +#include "google/protobuf/wire_format_lite.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) -#include +// Must be included last. +#include "google/protobuf/port_def.inc" PROTOBUF_PRAGMA_INIT_SEG - -namespace _pb = ::PROTOBUF_NAMESPACE_ID; -namespace _pbi = _pb::internal; - +namespace _pb = ::google::protobuf; +namespace _pbi = ::google::protobuf::internal; +namespace _fl = ::google::protobuf::internal::field_layout; namespace Odb { namespace Lib { namespace Protobuf { namespace ProductModel { -PROTOBUF_CONSTEXPR Package_PinsByNameEntry_DoNotUse::Package_PinsByNameEntry_DoNotUse( - ::_pbi::ConstantInitialized) {} + template +PROTOBUF_CONSTEXPR Package_PinsByNameEntry_DoNotUse::Package_PinsByNameEntry_DoNotUse(::_pbi::ConstantInitialized) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : Package_PinsByNameEntry_DoNotUse::MapEntry(_class_data_.base()){} +#else // PROTOBUF_CUSTOM_VTABLE + : Package_PinsByNameEntry_DoNotUse::MapEntry() { +} +#endif // PROTOBUF_CUSTOM_VTABLE struct Package_PinsByNameEntry_DoNotUseDefaultTypeInternal { - PROTOBUF_CONSTEXPR Package_PinsByNameEntry_DoNotUseDefaultTypeInternal() - : _instance(::_pbi::ConstantInitialized{}) {} + PROTOBUF_CONSTEXPR Package_PinsByNameEntry_DoNotUseDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} ~Package_PinsByNameEntry_DoNotUseDefaultTypeInternal() {} union { Package_PinsByNameEntry_DoNotUse _instance; }; }; -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 Package_PinsByNameEntry_DoNotUseDefaultTypeInternal _Package_PinsByNameEntry_DoNotUse_default_instance_; -PROTOBUF_CONSTEXPR Package::Package( - ::_pbi::ConstantInitialized): _impl_{ - /*decltype(_impl_._has_bits_)*/{} - , /*decltype(_impl_._cached_size_)*/{} - , /*decltype(_impl_.pins_)*/{} - , /*decltype(_impl_.pinsbyname_)*/{::_pbi::ConstantInitialized()} - , /*decltype(_impl_.name_)*/{&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}} - , /*decltype(_impl_.index_)*/0u} {} + +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT ODBDESIGN_EXPORT + PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 Package_PinsByNameEntry_DoNotUseDefaultTypeInternal _Package_PinsByNameEntry_DoNotUse_default_instance_; + +inline constexpr Package::Impl_::Impl_( + ::_pbi::ConstantInitialized) noexcept + : _cached_size_{0}, + pins_{}, + pinsbyname_{}, + name_( + &::google::protobuf::internal::fixed_address_empty_string, + ::_pbi::ConstantInitialized()), + index_{0u} {} + +template +PROTOBUF_CONSTEXPR Package::Package(::_pbi::ConstantInitialized) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : ::google::protobuf::Message(_class_data_.base()), +#else // PROTOBUF_CUSTOM_VTABLE + : ::google::protobuf::Message(), +#endif // PROTOBUF_CUSTOM_VTABLE + _impl_(::_pbi::ConstantInitialized()) { +} struct PackageDefaultTypeInternal { - PROTOBUF_CONSTEXPR PackageDefaultTypeInternal() - : _instance(::_pbi::ConstantInitialized{}) {} + PROTOBUF_CONSTEXPR PackageDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} ~PackageDefaultTypeInternal() {} union { Package _instance; }; }; -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 PackageDefaultTypeInternal _Package_default_instance_; + +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT ODBDESIGN_EXPORT + PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 PackageDefaultTypeInternal _Package_default_instance_; } // namespace ProductModel } // namespace Protobuf } // namespace Lib } // namespace Odb -static ::_pb::Metadata file_level_metadata_package_2eproto[2]; -static constexpr ::_pb::EnumDescriptor const** file_level_enum_descriptors_package_2eproto = nullptr; -static constexpr ::_pb::ServiceDescriptor const** file_level_service_descriptors_package_2eproto = nullptr; - -const uint32_t TableStruct_package_2eproto::offsets[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = { - PROTOBUF_FIELD_OFFSET(::Odb::Lib::Protobuf::ProductModel::Package_PinsByNameEntry_DoNotUse, _has_bits_), - PROTOBUF_FIELD_OFFSET(::Odb::Lib::Protobuf::ProductModel::Package_PinsByNameEntry_DoNotUse, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - ~0u, // no _inlined_string_donated_ - PROTOBUF_FIELD_OFFSET(::Odb::Lib::Protobuf::ProductModel::Package_PinsByNameEntry_DoNotUse, key_), - PROTOBUF_FIELD_OFFSET(::Odb::Lib::Protobuf::ProductModel::Package_PinsByNameEntry_DoNotUse, value_), - 0, - 1, - PROTOBUF_FIELD_OFFSET(::Odb::Lib::Protobuf::ProductModel::Package, _impl_._has_bits_), - PROTOBUF_FIELD_OFFSET(::Odb::Lib::Protobuf::ProductModel::Package, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - ~0u, // no _inlined_string_donated_ - PROTOBUF_FIELD_OFFSET(::Odb::Lib::Protobuf::ProductModel::Package, _impl_.name_), - PROTOBUF_FIELD_OFFSET(::Odb::Lib::Protobuf::ProductModel::Package, _impl_.pins_), - PROTOBUF_FIELD_OFFSET(::Odb::Lib::Protobuf::ProductModel::Package, _impl_.pinsbyname_), - PROTOBUF_FIELD_OFFSET(::Odb::Lib::Protobuf::ProductModel::Package, _impl_.index_), - 0, - ~0u, - ~0u, - 1, -}; -static const ::_pbi::MigrationSchema schemas[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = { - { 0, 8, -1, sizeof(::Odb::Lib::Protobuf::ProductModel::Package_PinsByNameEntry_DoNotUse)}, - { 10, 20, -1, sizeof(::Odb::Lib::Protobuf::ProductModel::Package)}, +static constexpr const ::_pb::EnumDescriptor** + file_level_enum_descriptors_package_2eproto = nullptr; +static constexpr const ::_pb::ServiceDescriptor** + file_level_service_descriptors_package_2eproto = nullptr; +const ::uint32_t + TableStruct_package_2eproto::offsets[] ABSL_ATTRIBUTE_SECTION_VARIABLE( + protodesc_cold) = { + PROTOBUF_FIELD_OFFSET(::Odb::Lib::Protobuf::ProductModel::Package_PinsByNameEntry_DoNotUse, _impl_._has_bits_), + PROTOBUF_FIELD_OFFSET(::Odb::Lib::Protobuf::ProductModel::Package_PinsByNameEntry_DoNotUse, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + ~0u, // no _split_ + ~0u, // no sizeof(Split) + PROTOBUF_FIELD_OFFSET(::Odb::Lib::Protobuf::ProductModel::Package_PinsByNameEntry_DoNotUse, _impl_.key_), + PROTOBUF_FIELD_OFFSET(::Odb::Lib::Protobuf::ProductModel::Package_PinsByNameEntry_DoNotUse, _impl_.value_), + 0, + 1, + PROTOBUF_FIELD_OFFSET(::Odb::Lib::Protobuf::ProductModel::Package, _impl_._has_bits_), + PROTOBUF_FIELD_OFFSET(::Odb::Lib::Protobuf::ProductModel::Package, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + ~0u, // no _split_ + ~0u, // no sizeof(Split) + PROTOBUF_FIELD_OFFSET(::Odb::Lib::Protobuf::ProductModel::Package, _impl_.name_), + PROTOBUF_FIELD_OFFSET(::Odb::Lib::Protobuf::ProductModel::Package, _impl_.pins_), + PROTOBUF_FIELD_OFFSET(::Odb::Lib::Protobuf::ProductModel::Package, _impl_.pinsbyname_), + PROTOBUF_FIELD_OFFSET(::Odb::Lib::Protobuf::ProductModel::Package, _impl_.index_), + 0, + ~0u, + ~0u, + 1, }; +static const ::_pbi::MigrationSchema + schemas[] ABSL_ATTRIBUTE_SECTION_VARIABLE(protodesc_cold) = { + {0, 10, -1, sizeof(::Odb::Lib::Protobuf::ProductModel::Package_PinsByNameEntry_DoNotUse)}, + {12, 24, -1, sizeof(::Odb::Lib::Protobuf::ProductModel::Package)}, +}; static const ::_pb::Message* const file_default_instances[] = { - &::Odb::Lib::Protobuf::ProductModel::_Package_PinsByNameEntry_DoNotUse_default_instance_._instance, - &::Odb::Lib::Protobuf::ProductModel::_Package_default_instance_._instance, + &::Odb::Lib::Protobuf::ProductModel::_Package_PinsByNameEntry_DoNotUse_default_instance_._instance, + &::Odb::Lib::Protobuf::ProductModel::_Package_default_instance_._instance, }; - -const char descriptor_table_protodef_package_2eproto[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = - "\n\rpackage.proto\022\035Odb.Lib.Protobuf.Produc" - "tModel\032\tpin.proto\"\230\002\n\007Package\022\021\n\004name\030\001 " - "\001(\tH\000\210\001\001\0220\n\004pins\030\002 \003(\0132\".Odb.Lib.Protobu" - "f.ProductModel.Pin\022J\n\npinsByName\030\003 \003(\01326" - ".Odb.Lib.Protobuf.ProductModel.Package.P" - "insByNameEntry\022\022\n\005index\030\004 \001(\rH\001\210\001\001\032U\n\017Pi" - "nsByNameEntry\022\013\n\003key\030\001 \001(\t\0221\n\005value\030\002 \001(" - "\0132\".Odb.Lib.Protobuf.ProductModel.Pin:\0028" - "\001B\007\n\005_nameB\010\n\006_indexb\006proto3" - ; -static const ::_pbi::DescriptorTable* const descriptor_table_package_2eproto_deps[1] = { - &::descriptor_table_pin_2eproto, +const char descriptor_table_protodef_package_2eproto[] ABSL_ATTRIBUTE_SECTION_VARIABLE( + protodesc_cold) = { + "\n\rpackage.proto\022\035Odb.Lib.Protobuf.Produc" + "tModel\032\tpin.proto\"\230\002\n\007Package\022\021\n\004name\030\001 " + "\001(\tH\000\210\001\001\0220\n\004pins\030\002 \003(\0132\".Odb.Lib.Protobu" + "f.ProductModel.Pin\022J\n\npinsByName\030\003 \003(\01326" + ".Odb.Lib.Protobuf.ProductModel.Package.P" + "insByNameEntry\022\022\n\005index\030\004 \001(\rH\001\210\001\001\032U\n\017Pi" + "nsByNameEntry\022\013\n\003key\030\001 \001(\t\0221\n\005value\030\002 \001(" + "\0132\".Odb.Lib.Protobuf.ProductModel.Pin:\0028" + "\001B\007\n\005_nameB\010\n\006_indexb\006proto3" +}; +static const ::_pbi::DescriptorTable* const descriptor_table_package_2eproto_deps[1] = + { + &::descriptor_table_pin_2eproto, }; -static ::_pbi::once_flag descriptor_table_package_2eproto_once; -const ::_pbi::DescriptorTable descriptor_table_package_2eproto = { - false, false, 348, descriptor_table_protodef_package_2eproto, +static ::absl::once_flag descriptor_table_package_2eproto_once; +PROTOBUF_CONSTINIT const ::_pbi::DescriptorTable descriptor_table_package_2eproto = { + false, + false, + 348, + descriptor_table_protodef_package_2eproto, "package.proto", - &descriptor_table_package_2eproto_once, descriptor_table_package_2eproto_deps, 1, 2, - schemas, file_default_instances, TableStruct_package_2eproto::offsets, - file_level_metadata_package_2eproto, file_level_enum_descriptors_package_2eproto, + &descriptor_table_package_2eproto_once, + descriptor_table_package_2eproto_deps, + 1, + 2, + schemas, + file_default_instances, + TableStruct_package_2eproto::offsets, + file_level_enum_descriptors_package_2eproto, file_level_service_descriptors_package_2eproto, }; -PROTOBUF_ATTRIBUTE_WEAK const ::_pbi::DescriptorTable* descriptor_table_package_2eproto_getter() { - return &descriptor_table_package_2eproto; -} - -// Force running AddDescriptors() at dynamic initialization time. -PROTOBUF_ATTRIBUTE_INIT_PRIORITY2 static ::_pbi::AddDescriptorsRunner dynamic_init_dummy_package_2eproto(&descriptor_table_package_2eproto); namespace Odb { namespace Lib { namespace Protobuf { namespace ProductModel { - // =================================================================== -Package_PinsByNameEntry_DoNotUse::Package_PinsByNameEntry_DoNotUse() {} -Package_PinsByNameEntry_DoNotUse::Package_PinsByNameEntry_DoNotUse(::PROTOBUF_NAMESPACE_ID::Arena* arena) - : SuperType(arena) {} -void Package_PinsByNameEntry_DoNotUse::MergeFrom(const Package_PinsByNameEntry_DoNotUse& other) { - MergeFromInternal(other); -} -::PROTOBUF_NAMESPACE_ID::Metadata Package_PinsByNameEntry_DoNotUse::GetMetadata() const { - return ::_pbi::AssignDescriptors( - &descriptor_table_package_2eproto_getter, &descriptor_table_package_2eproto_once, - file_level_metadata_package_2eproto[0]); -} +#if defined(PROTOBUF_CUSTOM_VTABLE) + Package_PinsByNameEntry_DoNotUse::Package_PinsByNameEntry_DoNotUse() : SuperType(_class_data_.base()) {} + Package_PinsByNameEntry_DoNotUse::Package_PinsByNameEntry_DoNotUse(::google::protobuf::Arena* arena) + : SuperType(arena, _class_data_.base()) {} +#else // PROTOBUF_CUSTOM_VTABLE + Package_PinsByNameEntry_DoNotUse::Package_PinsByNameEntry_DoNotUse() : SuperType() {} + Package_PinsByNameEntry_DoNotUse::Package_PinsByNameEntry_DoNotUse(::google::protobuf::Arena* arena) : SuperType(arena) {} +#endif // PROTOBUF_CUSTOM_VTABLE + inline void* Package_PinsByNameEntry_DoNotUse::PlacementNew_(const void*, void* mem, + ::google::protobuf::Arena* arena) { + return ::new (mem) Package_PinsByNameEntry_DoNotUse(arena); + } + constexpr auto Package_PinsByNameEntry_DoNotUse::InternalNewImpl_() { + return ::google::protobuf::internal::MessageCreator::CopyInit(sizeof(Package_PinsByNameEntry_DoNotUse), + alignof(Package_PinsByNameEntry_DoNotUse)); + } + PROTOBUF_CONSTINIT + PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 + const ::google::protobuf::internal::ClassDataFull Package_PinsByNameEntry_DoNotUse::_class_data_ = { + ::google::protobuf::internal::ClassData{ + &_Package_PinsByNameEntry_DoNotUse_default_instance_._instance, + &_table_.header, + nullptr, // OnDemandRegisterArenaDtor + nullptr, // IsInitialized + &Package_PinsByNameEntry_DoNotUse::MergeImpl, + ::google::protobuf::Message::GetNewImpl(), + #if defined(PROTOBUF_CUSTOM_VTABLE) + &Package_PinsByNameEntry_DoNotUse::SharedDtor, + static_cast( + &Package_PinsByNameEntry_DoNotUse::ClearImpl), + ::google::protobuf::Message::ByteSizeLongImpl, ::google::protobuf::Message::_InternalSerializeImpl + , + #endif // PROTOBUF_CUSTOM_VTABLE + PROTOBUF_FIELD_OFFSET(Package_PinsByNameEntry_DoNotUse, _impl_._cached_size_), + false, + }, + &Package_PinsByNameEntry_DoNotUse::kDescriptorMethods, + &descriptor_table_package_2eproto, + nullptr, // tracker + }; + const ::google::protobuf::internal::ClassData* Package_PinsByNameEntry_DoNotUse::GetClassData() const { + ::google::protobuf::internal::PrefetchToLocalCache(&_class_data_); + ::google::protobuf::internal::PrefetchToLocalCache(_class_data_.tc_table); + return _class_data_.base(); + } +PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 +const ::_pbi::TcParseTable<1, 2, 1, 65, 2> Package_PinsByNameEntry_DoNotUse::_table_ = { + { + PROTOBUF_FIELD_OFFSET(Package_PinsByNameEntry_DoNotUse, _impl_._has_bits_), + 0, // no _extensions_ + 2, 8, // max_field_number, fast_idx_mask + offsetof(decltype(_table_), field_lookup_table), + 4294967292, // skipmap + offsetof(decltype(_table_), field_entries), + 2, // num_field_entries + 1, // num_aux_entries + offsetof(decltype(_table_), aux_entries), + _class_data_.base(), + nullptr, // post_loop_handler + ::_pbi::TcParser::DiscardEverythingFallback, // fallback + #ifdef PROTOBUF_PREFETCH_PARSE_TABLE + ::_pbi::TcParser::GetTable<::Odb::Lib::Protobuf::ProductModel::Package_PinsByNameEntry_DoNotUse>(), // to_prefetch + #endif // PROTOBUF_PREFETCH_PARSE_TABLE + }, {{ + // .Odb.Lib.Protobuf.ProductModel.Pin value = 2; + {::_pbi::TcParser::FastMtS1, + {18, 0, 0, PROTOBUF_FIELD_OFFSET(Package_PinsByNameEntry_DoNotUse, _impl_.value_)}}, + // string key = 1; + {::_pbi::TcParser::FastUS1, + {10, 63, 0, PROTOBUF_FIELD_OFFSET(Package_PinsByNameEntry_DoNotUse, _impl_.key_)}}, + }}, {{ + 65535, 65535 + }}, {{ + // string key = 1; + {PROTOBUF_FIELD_OFFSET(Package_PinsByNameEntry_DoNotUse, _impl_.key_), -1, 0, + (0 | ::_fl::kFcSingular | ::_fl::kUtf8String | ::_fl::kRepAString)}, + // .Odb.Lib.Protobuf.ProductModel.Pin value = 2; + {PROTOBUF_FIELD_OFFSET(Package_PinsByNameEntry_DoNotUse, _impl_.value_), _Internal::kHasBitsOffset + 0, 0, + (0 | ::_fl::kFcOptional | ::_fl::kMessage | ::_fl::kTvTable)}, + }}, {{ + {::_pbi::TcParser::GetTable<::Odb::Lib::Protobuf::ProductModel::Pin>()}, + }}, {{ + "\65\3\0\0\0\0\0\0" + "Odb.Lib.Protobuf.ProductModel.Package.PinsByNameEntry" + "key" + }}, +}; // =================================================================== class Package::_Internal { public: - using HasBits = decltype(std::declval()._impl_._has_bits_); - static void set_has_name(HasBits* has_bits) { - (*has_bits)[0] |= 1u; - } - static void set_has_index(HasBits* has_bits) { - (*has_bits)[0] |= 2u; - } + using HasBits = + decltype(std::declval()._impl_._has_bits_); + static constexpr ::int32_t kHasBitsOffset = + 8 * PROTOBUF_FIELD_OFFSET(Package, _impl_._has_bits_); }; void Package::clear_pins() { + ::google::protobuf::internal::TSanWrite(&_impl_); _impl_.pins_.Clear(); } void Package::clear_pinsbyname() { + ::google::protobuf::internal::TSanWrite(&_impl_); _impl_.pinsbyname_.Clear(); } -Package::Package(::PROTOBUF_NAMESPACE_ID::Arena* arena, - bool is_message_owned) - : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned) { - SharedCtor(arena, is_message_owned); - if (arena != nullptr && !is_message_owned) { - arena->OwnCustomDestructor(this, &Package::ArenaDtor); - } +Package::Package(::google::protobuf::Arena* arena) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : ::google::protobuf::Message(arena, _class_data_.base()) { +#else // PROTOBUF_CUSTOM_VTABLE + : ::google::protobuf::Message(arena) { +#endif // PROTOBUF_CUSTOM_VTABLE + SharedCtor(arena); // @@protoc_insertion_point(arena_constructor:Odb.Lib.Protobuf.ProductModel.Package) } -Package::Package(const Package& from) - : ::PROTOBUF_NAMESPACE_ID::Message() { - Package* const _this = this; (void)_this; - new (&_impl_) Impl_{ - decltype(_impl_._has_bits_){from._impl_._has_bits_} - , /*decltype(_impl_._cached_size_)*/{} - , decltype(_impl_.pins_){from._impl_.pins_} - , /*decltype(_impl_.pinsbyname_)*/{} - , decltype(_impl_.name_){} - , decltype(_impl_.index_){}}; - - _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); - _this->_impl_.pinsbyname_.MergeFrom(from._impl_.pinsbyname_); - _impl_.name_.InitDefault(); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - _impl_.name_.Set("", GetArenaForAllocation()); - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (from._internal_has_name()) { - _this->_impl_.name_.Set(from._internal_name(), - _this->GetArenaForAllocation()); - } - _this->_impl_.index_ = from._impl_.index_; +inline PROTOBUF_NDEBUG_INLINE Package::Impl_::Impl_( + ::google::protobuf::internal::InternalVisibility visibility, ::google::protobuf::Arena* arena, + const Impl_& from, const ::Odb::Lib::Protobuf::ProductModel::Package& from_msg) + : _has_bits_{from._has_bits_}, + _cached_size_{0}, + pins_{visibility, arena, from.pins_}, + pinsbyname_{visibility, arena, from.pinsbyname_}, + name_(arena, from.name_) {} + +Package::Package( + ::google::protobuf::Arena* arena, + const Package& from) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : ::google::protobuf::Message(arena, _class_data_.base()) { +#else // PROTOBUF_CUSTOM_VTABLE + : ::google::protobuf::Message(arena) { +#endif // PROTOBUF_CUSTOM_VTABLE + Package* const _this = this; + (void)_this; + _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( + from._internal_metadata_); + new (&_impl_) Impl_(internal_visibility(), arena, from._impl_, from); + _impl_.index_ = from._impl_.index_; + // @@protoc_insertion_point(copy_constructor:Odb.Lib.Protobuf.ProductModel.Package) } - -inline void Package::SharedCtor( - ::_pb::Arena* arena, bool is_message_owned) { - (void)arena; - (void)is_message_owned; - new (&_impl_) Impl_{ - decltype(_impl_._has_bits_){} - , /*decltype(_impl_._cached_size_)*/{} - , decltype(_impl_.pins_){arena} - , /*decltype(_impl_.pinsbyname_)*/{::_pbi::ArenaInitialized(), arena} - , decltype(_impl_.name_){} - , decltype(_impl_.index_){0u} - }; - _impl_.name_.InitDefault(); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - _impl_.name_.Set("", GetArenaForAllocation()); - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING +inline PROTOBUF_NDEBUG_INLINE Package::Impl_::Impl_( + ::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* arena) + : _cached_size_{0}, + pins_{visibility, arena}, + pinsbyname_{visibility, arena}, + name_(arena) {} + +inline void Package::SharedCtor(::_pb::Arena* arena) { + new (&_impl_) Impl_(internal_visibility(), arena); + _impl_.index_ = {}; } - Package::~Package() { // @@protoc_insertion_point(destructor:Odb.Lib.Protobuf.ProductModel.Package) - if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) { - (void)arena; - ArenaDtor(this); - return; - } - SharedDtor(); + SharedDtor(*this); } - -inline void Package::SharedDtor() { - GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); - _impl_.pins_.~RepeatedPtrField(); - _impl_.pinsbyname_.Destruct(); - _impl_.pinsbyname_.~MapField(); - _impl_.name_.Destroy(); +inline void Package::SharedDtor(MessageLite& self) { + Package& this_ = static_cast(self); + this_._internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); + ABSL_DCHECK(this_.GetArena() == nullptr); + this_._impl_.name_.Destroy(); + this_._impl_.~Impl_(); } -void Package::ArenaDtor(void* object) { - Package* _this = reinterpret_cast< Package* >(object); - _this->_impl_.pinsbyname_.Destruct(); +inline void* Package::PlacementNew_(const void*, void* mem, + ::google::protobuf::Arena* arena) { + return ::new (mem) Package(arena); } -void Package::SetCachedSize(int size) const { - _impl_._cached_size_.Set(size); +constexpr auto Package::InternalNewImpl_() { + constexpr auto arena_bits = ::google::protobuf::internal::EncodePlacementArenaOffsets({ + PROTOBUF_FIELD_OFFSET(Package, _impl_.pins_) + + decltype(Package::_impl_.pins_):: + InternalGetArenaOffset( + ::google::protobuf::Message::internal_visibility()), + PROTOBUF_FIELD_OFFSET(Package, _impl_.pinsbyname_) + + decltype(Package::_impl_.pinsbyname_):: + InternalGetArenaOffset( + ::google::protobuf::Message::internal_visibility()), + PROTOBUF_FIELD_OFFSET(Package, _impl_.pinsbyname_) + + decltype(Package::_impl_.pinsbyname_):: + InternalGetArenaOffsetAlt( + ::google::protobuf::Message::internal_visibility()), + }); + if (arena_bits.has_value()) { + return ::google::protobuf::internal::MessageCreator::CopyInit( + sizeof(Package), alignof(Package), *arena_bits); + } else { + return ::google::protobuf::internal::MessageCreator(&Package::PlacementNew_, + sizeof(Package), + alignof(Package)); + } +} +PROTOBUF_CONSTINIT +PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 +const ::google::protobuf::internal::ClassDataFull Package::_class_data_ = { + ::google::protobuf::internal::ClassData{ + &_Package_default_instance_._instance, + &_table_.header, + nullptr, // OnDemandRegisterArenaDtor + nullptr, // IsInitialized + &Package::MergeImpl, + ::google::protobuf::Message::GetNewImpl(), +#if defined(PROTOBUF_CUSTOM_VTABLE) + &Package::SharedDtor, + ::google::protobuf::Message::GetClearImpl(), &Package::ByteSizeLong, + &Package::_InternalSerialize, +#endif // PROTOBUF_CUSTOM_VTABLE + PROTOBUF_FIELD_OFFSET(Package, _impl_._cached_size_), + false, + }, + &Package::kDescriptorMethods, + &descriptor_table_package_2eproto, + nullptr, // tracker +}; +const ::google::protobuf::internal::ClassData* Package::GetClassData() const { + ::google::protobuf::internal::PrefetchToLocalCache(&_class_data_); + ::google::protobuf::internal::PrefetchToLocalCache(_class_data_.tc_table); + return _class_data_.base(); } +PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 +const ::_pbi::TcParseTable<2, 4, 3, 60, 2> Package::_table_ = { + { + PROTOBUF_FIELD_OFFSET(Package, _impl_._has_bits_), + 0, // no _extensions_ + 4, 24, // max_field_number, fast_idx_mask + offsetof(decltype(_table_), field_lookup_table), + 4294967280, // skipmap + offsetof(decltype(_table_), field_entries), + 4, // num_field_entries + 3, // num_aux_entries + offsetof(decltype(_table_), aux_entries), + _class_data_.base(), + nullptr, // post_loop_handler + ::_pbi::TcParser::GenericFallback, // fallback + #ifdef PROTOBUF_PREFETCH_PARSE_TABLE + ::_pbi::TcParser::GetTable<::Odb::Lib::Protobuf::ProductModel::Package>(), // to_prefetch + #endif // PROTOBUF_PREFETCH_PARSE_TABLE + }, {{ + // optional uint32 index = 4; + {::_pbi::TcParser::SingularVarintNoZag1<::uint32_t, offsetof(Package, _impl_.index_), 1>(), + {32, 1, 0, PROTOBUF_FIELD_OFFSET(Package, _impl_.index_)}}, + // optional string name = 1; + {::_pbi::TcParser::FastUS1, + {10, 0, 0, PROTOBUF_FIELD_OFFSET(Package, _impl_.name_)}}, + // repeated .Odb.Lib.Protobuf.ProductModel.Pin pins = 2; + {::_pbi::TcParser::FastMtR1, + {18, 63, 0, PROTOBUF_FIELD_OFFSET(Package, _impl_.pins_)}}, + {::_pbi::TcParser::MiniParse, {}}, + }}, {{ + 65535, 65535 + }}, {{ + // optional string name = 1; + {PROTOBUF_FIELD_OFFSET(Package, _impl_.name_), _Internal::kHasBitsOffset + 0, 0, + (0 | ::_fl::kFcOptional | ::_fl::kUtf8String | ::_fl::kRepAString)}, + // repeated .Odb.Lib.Protobuf.ProductModel.Pin pins = 2; + {PROTOBUF_FIELD_OFFSET(Package, _impl_.pins_), -1, 0, + (0 | ::_fl::kFcRepeated | ::_fl::kMessage | ::_fl::kTvTable)}, + // map pinsByName = 3; + {PROTOBUF_FIELD_OFFSET(Package, _impl_.pinsbyname_), -1, 1, + (0 | ::_fl::kFcRepeated | ::_fl::kMap)}, + // optional uint32 index = 4; + {PROTOBUF_FIELD_OFFSET(Package, _impl_.index_), _Internal::kHasBitsOffset + 1, 0, + (0 | ::_fl::kFcOptional | ::_fl::kUInt32)}, + }}, {{ + {::_pbi::TcParser::GetTable<::Odb::Lib::Protobuf::ProductModel::Pin>()}, + {::_pbi::TcParser::GetMapAuxInfo< + decltype(Package()._impl_.pinsbyname_)>( + 1, 0, 0, 9, + 11)}, + {::_pbi::TcParser::GetTable<::Odb::Lib::Protobuf::ProductModel::Pin>()}, + }}, {{ + "\45\4\0\12\0\0\0\0" + "Odb.Lib.Protobuf.ProductModel.Package" + "name" + "pinsByName" + }}, +}; -void Package::Clear() { +PROTOBUF_NOINLINE void Package::Clear() { // @@protoc_insertion_point(message_clear_start:Odb.Lib.Protobuf.ProductModel.Package) - uint32_t cached_has_bits = 0; + ::google::protobuf::internal::TSanWrite(&_impl_); + ::uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; @@ -255,207 +459,148 @@ void Package::Clear() { } _impl_.index_ = 0u; _impl_._has_bits_.Clear(); - _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); -} - -const char* Package::_InternalParse(const char* ptr, ::_pbi::ParseContext* ctx) { -#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure - _Internal::HasBits has_bits{}; - while (!ctx->Done(&ptr)) { - uint32_t tag; - ptr = ::_pbi::ReadTag(ptr, &tag); - switch (tag >> 3) { - // optional string name = 1; - case 1: - if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 10)) { - auto str = _internal_mutable_name(); - ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); - CHK_(ptr); - CHK_(::_pbi::VerifyUTF8(str, "Odb.Lib.Protobuf.ProductModel.Package.name")); - } else - goto handle_unusual; - continue; - // repeated .Odb.Lib.Protobuf.ProductModel.Pin pins = 2; - case 2: - if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 18)) { - ptr -= 1; - do { - ptr += 1; - ptr = ctx->ParseMessage(_internal_add_pins(), ptr); - CHK_(ptr); - if (!ctx->DataAvailable(ptr)) break; - } while (::PROTOBUF_NAMESPACE_ID::internal::ExpectTag<18>(ptr)); - } else - goto handle_unusual; - continue; - // map pinsByName = 3; - case 3: - if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 26)) { - ptr -= 1; - do { - ptr += 1; - ptr = ctx->ParseMessage(&_impl_.pinsbyname_, ptr); - CHK_(ptr); - if (!ctx->DataAvailable(ptr)) break; - } while (::PROTOBUF_NAMESPACE_ID::internal::ExpectTag<26>(ptr)); - } else - goto handle_unusual; - continue; - // optional uint32 index = 4; - case 4: - if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 32)) { - _Internal::set_has_index(&has_bits); - _impl_.index_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr); - CHK_(ptr); - } else - goto handle_unusual; - continue; - default: - goto handle_unusual; - } // switch - handle_unusual: - if ((tag == 0) || ((tag & 7) == 4)) { - CHK_(ptr); - ctx->SetLastTag(tag); - goto message_done; - } - ptr = UnknownFieldParse( - tag, - _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(), - ptr, ctx); - CHK_(ptr != nullptr); - } // while -message_done: - _impl_._has_bits_.Or(has_bits); - return ptr; -failure: - ptr = nullptr; - goto message_done; -#undef CHK_ -} - -uint8_t* Package::_InternalSerialize( - uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { - // @@protoc_insertion_point(serialize_to_array_start:Odb.Lib.Protobuf.ProductModel.Package) - uint32_t cached_has_bits = 0; - (void) cached_has_bits; - - // optional string name = 1; - if (_internal_has_name()) { - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( - this->_internal_name().data(), static_cast(this->_internal_name().length()), - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, - "Odb.Lib.Protobuf.ProductModel.Package.name"); - target = stream->WriteStringMaybeAliased( - 1, this->_internal_name(), target); - } - - // repeated .Odb.Lib.Protobuf.ProductModel.Pin pins = 2; - for (unsigned i = 0, - n = static_cast(this->_internal_pins_size()); i < n; i++) { - const auto& repfield = this->_internal_pins(i); - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: - InternalWriteMessage(2, repfield, repfield.GetCachedSize(), target, stream); - } - - // map pinsByName = 3; - if (!this->_internal_pinsbyname().empty()) { - using MapType = ::_pb::Map; - using WireHelper = Package_PinsByNameEntry_DoNotUse::Funcs; - const auto& map_field = this->_internal_pinsbyname(); - auto check_utf8 = [](const MapType::value_type& entry) { - (void)entry; - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( - entry.first.data(), static_cast(entry.first.length()), - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, - "Odb.Lib.Protobuf.ProductModel.Package.PinsByNameEntry.key"); - }; - - if (stream->IsSerializationDeterministic() && map_field.size() > 1) { - for (const auto& entry : ::_pbi::MapSorterPtr(map_field)) { - target = WireHelper::InternalSerialize(3, entry.first, entry.second, target, stream); - check_utf8(entry); - } - } else { - for (const auto& entry : map_field) { - target = WireHelper::InternalSerialize(3, entry.first, entry.second, target, stream); - check_utf8(entry); - } - } - } - - // optional uint32 index = 4; - if (_internal_has_index()) { - target = stream->EnsureSpace(target); - target = ::_pbi::WireFormatLite::WriteUInt32ToArray(4, this->_internal_index(), target); - } - - if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = ::_pbi::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:Odb.Lib.Protobuf.ProductModel.Package) - return target; + _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); } -size_t Package::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:Odb.Lib.Protobuf.ProductModel.Package) - size_t total_size = 0; - - uint32_t cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - // repeated .Odb.Lib.Protobuf.ProductModel.Pin pins = 2; - total_size += 1UL * this->_internal_pins_size(); - for (const auto& msg : this->_impl_.pins_) { - total_size += - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(msg); - } - - // map pinsByName = 3; - total_size += 1 * - ::PROTOBUF_NAMESPACE_ID::internal::FromIntSize(this->_internal_pinsbyname_size()); - for (::PROTOBUF_NAMESPACE_ID::Map< std::string, ::Odb::Lib::Protobuf::ProductModel::Pin >::const_iterator - it = this->_internal_pinsbyname().begin(); - it != this->_internal_pinsbyname().end(); ++it) { - total_size += Package_PinsByNameEntry_DoNotUse::Funcs::ByteSizeLong(it->first, it->second); - } - - cached_has_bits = _impl_._has_bits_[0]; - if (cached_has_bits & 0x00000003u) { - // optional string name = 1; - if (cached_has_bits & 0x00000001u) { - total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( - this->_internal_name()); - } - - // optional uint32 index = 4; - if (cached_has_bits & 0x00000002u) { - total_size += ::_pbi::WireFormatLite::UInt32SizePlusOne(this->_internal_index()); - } - - } - return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); -} - -const ::PROTOBUF_NAMESPACE_ID::Message::ClassData Package::_class_data_ = { - ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSourceCheck, - Package::MergeImpl -}; -const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*Package::GetClassData() const { return &_class_data_; } - - -void Package::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg) { +#if defined(PROTOBUF_CUSTOM_VTABLE) + ::uint8_t* Package::_InternalSerialize( + const MessageLite& base, ::uint8_t* target, + ::google::protobuf::io::EpsCopyOutputStream* stream) { + const Package& this_ = static_cast(base); +#else // PROTOBUF_CUSTOM_VTABLE + ::uint8_t* Package::_InternalSerialize( + ::uint8_t* target, + ::google::protobuf::io::EpsCopyOutputStream* stream) const { + const Package& this_ = *this; +#endif // PROTOBUF_CUSTOM_VTABLE + // @@protoc_insertion_point(serialize_to_array_start:Odb.Lib.Protobuf.ProductModel.Package) + ::uint32_t cached_has_bits = 0; + (void)cached_has_bits; + + cached_has_bits = this_._impl_._has_bits_[0]; + // optional string name = 1; + if (cached_has_bits & 0x00000001u) { + const std::string& _s = this_._internal_name(); + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + _s.data(), static_cast(_s.length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "Odb.Lib.Protobuf.ProductModel.Package.name"); + target = stream->WriteStringMaybeAliased(1, _s, target); + } + + // repeated .Odb.Lib.Protobuf.ProductModel.Pin pins = 2; + for (unsigned i = 0, n = static_cast( + this_._internal_pins_size()); + i < n; i++) { + const auto& repfield = this_._internal_pins().Get(i); + target = + ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( + 2, repfield, repfield.GetCachedSize(), + target, stream); + } + + // map pinsByName = 3; + if (!this_._internal_pinsbyname().empty()) { + using MapType = ::google::protobuf::Map; + using WireHelper = _pbi::MapEntryFuncs; + const auto& field = this_._internal_pinsbyname(); + + if (stream->IsSerializationDeterministic() && field.size() > 1) { + for (const auto& entry : ::google::protobuf::internal::MapSorterPtr(field)) { + target = WireHelper::InternalSerialize( + 3, entry.first, entry.second, target, stream); + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + entry.first.data(), static_cast(entry.first.length()), + ::google::protobuf::internal::WireFormatLite::SERIALIZE, "Odb.Lib.Protobuf.ProductModel.Package.pinsByName"); + } + } else { + for (const auto& entry : field) { + target = WireHelper::InternalSerialize( + 3, entry.first, entry.second, target, stream); + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + entry.first.data(), static_cast(entry.first.length()), + ::google::protobuf::internal::WireFormatLite::SERIALIZE, "Odb.Lib.Protobuf.ProductModel.Package.pinsByName"); + } + } + } + + // optional uint32 index = 4; + if (cached_has_bits & 0x00000002u) { + target = stream->EnsureSpace(target); + target = ::_pbi::WireFormatLite::WriteUInt32ToArray( + 4, this_._internal_index(), target); + } + + if (PROTOBUF_PREDICT_FALSE(this_._internal_metadata_.have_unknown_fields())) { + target = + ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( + this_._internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); + } + // @@protoc_insertion_point(serialize_to_array_end:Odb.Lib.Protobuf.ProductModel.Package) + return target; + } + +#if defined(PROTOBUF_CUSTOM_VTABLE) + ::size_t Package::ByteSizeLong(const MessageLite& base) { + const Package& this_ = static_cast(base); +#else // PROTOBUF_CUSTOM_VTABLE + ::size_t Package::ByteSizeLong() const { + const Package& this_ = *this; +#endif // PROTOBUF_CUSTOM_VTABLE + // @@protoc_insertion_point(message_byte_size_start:Odb.Lib.Protobuf.ProductModel.Package) + ::size_t total_size = 0; + + ::uint32_t cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void)cached_has_bits; + + ::_pbi::Prefetch5LinesFrom7Lines(&this_); + { + // repeated .Odb.Lib.Protobuf.ProductModel.Pin pins = 2; + { + total_size += 1UL * this_._internal_pins_size(); + for (const auto& msg : this_._internal_pins()) { + total_size += ::google::protobuf::internal::WireFormatLite::MessageSize(msg); + } + } + // map pinsByName = 3; + { + total_size += + 1 * ::google::protobuf::internal::FromIntSize(this_._internal_pinsbyname_size()); + for (const auto& entry : this_._internal_pinsbyname()) { + total_size += _pbi::MapEntryFuncs::ByteSizeLong(entry.first, entry.second); + } + } + } + cached_has_bits = this_._impl_._has_bits_[0]; + if (cached_has_bits & 0x00000003u) { + // optional string name = 1; + if (cached_has_bits & 0x00000001u) { + total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize( + this_._internal_name()); + } + // optional uint32 index = 4; + if (cached_has_bits & 0x00000002u) { + total_size += ::_pbi::WireFormatLite::UInt32SizePlusOne( + this_._internal_index()); + } + } + return this_.MaybeComputeUnknownFieldsSize(total_size, + &this_._impl_._cached_size_); + } + +void Package::MergeImpl(::google::protobuf::MessageLite& to_msg, const ::google::protobuf::MessageLite& from_msg) { auto* const _this = static_cast(&to_msg); auto& from = static_cast(from_msg); // @@protoc_insertion_point(class_specific_merge_from_start:Odb.Lib.Protobuf.ProductModel.Package) - GOOGLE_DCHECK_NE(&from, _this); - uint32_t cached_has_bits = 0; + ABSL_DCHECK_NE(&from, _this); + ::uint32_t cached_has_bits = 0; (void) cached_has_bits; - _this->_impl_.pins_.MergeFrom(from._impl_.pins_); + _this->_internal_mutable_pins()->MergeFrom( + from._internal_pins()); _this->_impl_.pinsbyname_.MergeFrom(from._impl_.pinsbyname_); cached_has_bits = from._impl_._has_bits_[0]; if (cached_has_bits & 0x00000003u) { @@ -465,9 +610,9 @@ void Package::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOB if (cached_has_bits & 0x00000002u) { _this->_impl_.index_ = from._impl_.index_; } - _this->_impl_._has_bits_[0] |= cached_has_bits; } - _this->_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); + _this->_impl_._has_bits_[0] |= cached_has_bits; + _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); } void Package::CopyFrom(const Package& from) { @@ -477,46 +622,34 @@ void Package::CopyFrom(const Package& from) { MergeFrom(from); } -bool Package::IsInitialized() const { - return true; -} -void Package::InternalSwap(Package* other) { +void Package::InternalSwap(Package* PROTOBUF_RESTRICT other) { using std::swap; - auto* lhs_arena = GetArenaForAllocation(); - auto* rhs_arena = other->GetArenaForAllocation(); + auto* arena = GetArena(); + ABSL_DCHECK_EQ(arena, other->GetArena()); _internal_metadata_.InternalSwap(&other->_internal_metadata_); swap(_impl_._has_bits_[0], other->_impl_._has_bits_[0]); _impl_.pins_.InternalSwap(&other->_impl_.pins_); _impl_.pinsbyname_.InternalSwap(&other->_impl_.pinsbyname_); - ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( - &_impl_.name_, lhs_arena, - &other->_impl_.name_, rhs_arena - ); - swap(_impl_.index_, other->_impl_.index_); + ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.name_, &other->_impl_.name_, arena); + swap(_impl_.index_, other->_impl_.index_); } -::PROTOBUF_NAMESPACE_ID::Metadata Package::GetMetadata() const { - return ::_pbi::AssignDescriptors( - &descriptor_table_package_2eproto_getter, &descriptor_table_package_2eproto_once, - file_level_metadata_package_2eproto[1]); +::google::protobuf::Metadata Package::GetMetadata() const { + return ::google::protobuf::Message::GetMetadataImpl(GetClassData()->full()); } - // @@protoc_insertion_point(namespace_scope) } // namespace ProductModel } // namespace Protobuf } // namespace Lib } // namespace Odb -PROTOBUF_NAMESPACE_OPEN -template<> PROTOBUF_NOINLINE ::Odb::Lib::Protobuf::ProductModel::Package_PinsByNameEntry_DoNotUse* -Arena::CreateMaybeMessage< ::Odb::Lib::Protobuf::ProductModel::Package_PinsByNameEntry_DoNotUse >(Arena* arena) { - return Arena::CreateMessageInternal< ::Odb::Lib::Protobuf::ProductModel::Package_PinsByNameEntry_DoNotUse >(arena); -} -template<> PROTOBUF_NOINLINE ::Odb::Lib::Protobuf::ProductModel::Package* -Arena::CreateMaybeMessage< ::Odb::Lib::Protobuf::ProductModel::Package >(Arena* arena) { - return Arena::CreateMessageInternal< ::Odb::Lib::Protobuf::ProductModel::Package >(arena); -} -PROTOBUF_NAMESPACE_CLOSE - +namespace google { +namespace protobuf { +} // namespace protobuf +} // namespace google // @@protoc_insertion_point(global_scope) -#include +PROTOBUF_ATTRIBUTE_INIT_PRIORITY2 static ::std::false_type + _static_init2_ PROTOBUF_UNUSED = + (::_pbi::AddDescriptors(&descriptor_table_package_2eproto), + ::std::false_type{}); +#include "google/protobuf/port_undef.inc" diff --git a/OdbDesignLib/ProtoBuf/package.pb.h b/OdbDesignLib/ProtoBuf/package.pb.h index 494e9915..560cbcc8 100644 --- a/OdbDesignLib/ProtoBuf/package.pb.h +++ b/OdbDesignLib/ProtoBuf/package.pb.h @@ -1,53 +1,60 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE // source: package.proto +// Protobuf C++ Version: 5.29.2 -#ifndef GOOGLE_PROTOBUF_INCLUDED_package_2eproto -#define GOOGLE_PROTOBUF_INCLUDED_package_2eproto +#ifndef package_2eproto_2epb_2eh +#define package_2eproto_2epb_2eh #include #include - -#include -#if PROTOBUF_VERSION < 3021000 -#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 3021012 < 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. +#include +#include + +#include "google/protobuf/runtime_version.h" +#if PROTOBUF_VERSION != 5029002 +#error "Protobuf C++ gencode is built with an incompatible version of" +#error "Protobuf C++ headers/runtime. See" +#error "https://protobuf.dev/support/cross-version-runtime-guarantee/#cpp" #endif - -#include -#include -#include -#include -#include -#include -#include -#include -#include // IWYU pragma: export -#include // IWYU pragma: export -#include // IWYU pragma: export -#include -#include -#include +#include "google/protobuf/io/coded_stream.h" +#include "google/protobuf/arena.h" +#include "google/protobuf/arenastring.h" +#include "google/protobuf/generated_message_tctable_decl.h" +#include "google/protobuf/generated_message_util.h" +#include "google/protobuf/metadata_lite.h" +#include "google/protobuf/generated_message_reflection.h" +#include "google/protobuf/message.h" +#include "google/protobuf/message_lite.h" +#include "google/protobuf/repeated_field.h" // IWYU pragma: export +#include "google/protobuf/extension_set.h" // IWYU pragma: export +#include "google/protobuf/map.h" // IWYU pragma: export +#include "google/protobuf/map_entry.h" +#include "google/protobuf/map_field_inl.h" +#include "google/protobuf/unknown_field_set.h" #include "pin.pb.h" // @@protoc_insertion_point(includes) -#include + +// Must be included last. +#include "google/protobuf/port_def.inc" + #define PROTOBUF_INTERNAL_EXPORT_package_2eproto ODBDESIGN_EXPORT -PROTOBUF_NAMESPACE_OPEN + +namespace google { +namespace protobuf { namespace internal { -class AnyMetadata; +template +::absl::string_view GetAnyMessageName(); } // namespace internal -PROTOBUF_NAMESPACE_CLOSE +} // namespace protobuf +} // namespace google // Internal implementation detail -- do not use these members. struct ODBDESIGN_EXPORT TableStruct_package_2eproto { - static const uint32_t offsets[]; + static const ::uint32_t offsets[]; }; -ODBDESIGN_EXPORT extern const ::PROTOBUF_NAMESPACE_ID::internal::DescriptorTable descriptor_table_package_2eproto; +ODBDESIGN_EXPORT extern const ::google::protobuf::internal::DescriptorTable + descriptor_table_package_2eproto; namespace Odb { namespace Lib { namespace Protobuf { @@ -62,10 +69,11 @@ ODBDESIGN_EXPORT extern Package_PinsByNameEntry_DoNotUseDefaultTypeInternal _Pac } // namespace Protobuf } // namespace Lib } // namespace Odb -PROTOBUF_NAMESPACE_OPEN -template<> ODBDESIGN_EXPORT ::Odb::Lib::Protobuf::ProductModel::Package* Arena::CreateMaybeMessage<::Odb::Lib::Protobuf::ProductModel::Package>(Arena*); -template<> ODBDESIGN_EXPORT ::Odb::Lib::Protobuf::ProductModel::Package_PinsByNameEntry_DoNotUse* Arena::CreateMaybeMessage<::Odb::Lib::Protobuf::ProductModel::Package_PinsByNameEntry_DoNotUse>(Arena*); -PROTOBUF_NAMESPACE_CLOSE +namespace google { +namespace protobuf { +} // namespace protobuf +} // namespace google + namespace Odb { namespace Lib { namespace Protobuf { @@ -73,56 +81,75 @@ namespace ProductModel { // =================================================================== -class Package_PinsByNameEntry_DoNotUse : public ::PROTOBUF_NAMESPACE_ID::internal::MapEntry { -public: - typedef ::PROTOBUF_NAMESPACE_ID::internal::MapEntry SuperType; + +// ------------------------------------------------------------------- + +class Package_PinsByNameEntry_DoNotUse final + : public ::google::protobuf::internal::MapEntry< + std::string, ::google::protobuf::Message, + ::google::protobuf::internal::WireFormatLite::TYPE_STRING, + ::google::protobuf::internal::WireFormatLite::TYPE_MESSAGE> { + public: + using SuperType = ::google::protobuf::internal::MapEntry< + std::string, ::google::protobuf::Message, + ::google::protobuf::internal::WireFormatLite::TYPE_STRING, + ::google::protobuf::internal::WireFormatLite::TYPE_MESSAGE>; Package_PinsByNameEntry_DoNotUse(); + template explicit PROTOBUF_CONSTEXPR Package_PinsByNameEntry_DoNotUse( - ::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); - explicit Package_PinsByNameEntry_DoNotUse(::PROTOBUF_NAMESPACE_ID::Arena* arena); - void MergeFrom(const Package_PinsByNameEntry_DoNotUse& other); - static const Package_PinsByNameEntry_DoNotUse* internal_default_instance() { return reinterpret_cast(&_Package_PinsByNameEntry_DoNotUse_default_instance_); } - static bool ValidateKey(std::string* s) { - return ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String(s->data(), static_cast(s->size()), ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::PARSE, "Odb.Lib.Protobuf.ProductModel.Package.PinsByNameEntry.key"); - } - static bool ValidateValue(void*) { return true; } - using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; - ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; + ::google::protobuf::internal::ConstantInitialized); + explicit Package_PinsByNameEntry_DoNotUse(::google::protobuf::Arena* arena); + static const Package_PinsByNameEntry_DoNotUse* internal_default_instance() { + return reinterpret_cast( + &_Package_PinsByNameEntry_DoNotUse_default_instance_); + } + + + private: + friend class ::google::protobuf::MessageLite; friend struct ::TableStruct_package_2eproto; -}; + friend class ::google::protobuf::internal::TcParser; + static const ::google::protobuf::internal::TcParseTable< + 1, 2, 1, + 65, 2> + _table_; + + const ::google::protobuf::internal::ClassData* GetClassData() const PROTOBUF_FINAL; + static void* PlacementNew_(const void*, void* mem, + ::google::protobuf::Arena* arena); + static constexpr auto InternalNewImpl_(); + static const ::google::protobuf::internal::ClassDataFull _class_data_; +}; // ------------------------------------------------------------------- -class ODBDESIGN_EXPORT Package final : - public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:Odb.Lib.Protobuf.ProductModel.Package) */ { +class ODBDESIGN_EXPORT Package final : public ::google::protobuf::Message +/* @@protoc_insertion_point(class_definition:Odb.Lib.Protobuf.ProductModel.Package) */ { public: inline Package() : Package(nullptr) {} - ~Package() override; - explicit PROTOBUF_CONSTEXPR Package(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); + ~Package() PROTOBUF_FINAL; - Package(const Package& from); - Package(Package&& from) noexcept - : Package() { - *this = ::std::move(from); +#if defined(PROTOBUF_CUSTOM_VTABLE) + void operator delete(Package* msg, std::destroying_delete_t) { + SharedDtor(*msg); + ::google::protobuf::internal::SizedDelete(msg, sizeof(Package)); } +#endif + + template + explicit PROTOBUF_CONSTEXPR Package( + ::google::protobuf::internal::ConstantInitialized); + inline Package(const Package& from) : Package(nullptr, from) {} + inline Package(Package&& from) noexcept + : Package(nullptr, std::move(from)) {} inline Package& operator=(const Package& from) { CopyFrom(from); return *this; } inline Package& operator=(Package&& from) noexcept { if (this == &from) return *this; - if (GetOwningArena() == from.GetOwningArena() - #ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetOwningArena() != nullptr - #endif // !PROTOBUF_FORCE_COPY_IN_MOVE - ) { + if (::google::protobuf::internal::CanMoveWithInternalSwap(GetArena(), from.GetArena())) { InternalSwap(&from); } else { CopyFrom(from); @@ -130,13 +157,22 @@ class ODBDESIGN_EXPORT Package final : return *this; } - static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { + inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const + ABSL_ATTRIBUTE_LIFETIME_BOUND { + return _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance); + } + inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() + ABSL_ATTRIBUTE_LIFETIME_BOUND { + return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); + } + + static const ::google::protobuf::Descriptor* descriptor() { return GetDescriptor(); } - static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { + static const ::google::protobuf::Descriptor* GetDescriptor() { return default_instance().GetMetadata().descriptor; } - static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { + static const ::google::protobuf::Reflection* GetReflection() { return default_instance().GetMetadata().reflection; } static const Package& default_instance() { @@ -144,84 +180,94 @@ class ODBDESIGN_EXPORT Package final : } static inline const Package* internal_default_instance() { return reinterpret_cast( - &_Package_default_instance_); - } - static constexpr int kIndexInFileMessages = - 1; - - friend void swap(Package& a, Package& b) { - a.Swap(&b); + &_Package_default_instance_); } + static constexpr int kIndexInFileMessages = 1; + friend void swap(Package& a, Package& b) { a.Swap(&b); } inline void Swap(Package* other) { if (other == this) return; - #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetOwningArena() != nullptr && - GetOwningArena() == other->GetOwningArena()) { - #else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetOwningArena() == other->GetOwningArena()) { - #endif // !PROTOBUF_FORCE_COPY_IN_SWAP + if (::google::protobuf::internal::CanUseInternalSwap(GetArena(), other->GetArena())) { InternalSwap(other); } else { - ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); + ::google::protobuf::internal::GenericSwap(this, other); } } void UnsafeArenaSwap(Package* other) { if (other == this) return; - GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); + ABSL_DCHECK(GetArena() == other->GetArena()); InternalSwap(other); } // implements Message ---------------------------------------------- - Package* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); + Package* New(::google::protobuf::Arena* arena = nullptr) const { + return ::google::protobuf::Message::DefaultConstruct(arena); } - using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; + using ::google::protobuf::Message::CopyFrom; void CopyFrom(const Package& from); - using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; - void MergeFrom( const Package& from) { - Package::MergeImpl(*this, from); - } - private: - static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg); - public: - PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; - bool IsInitialized() const final; - - size_t ByteSizeLong() const final; - const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final; - uint8_t* _InternalSerialize( - uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const final { return _impl_._cached_size_.Get(); } + using ::google::protobuf::Message::MergeFrom; + void MergeFrom(const Package& from) { Package::MergeImpl(*this, from); } private: - void SharedCtor(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned); - void SharedDtor(); - void SetCachedSize(int size) const final; - void InternalSwap(Package* other); + static void MergeImpl( + ::google::protobuf::MessageLite& to_msg, + const ::google::protobuf::MessageLite& from_msg); - private: - friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; - static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { - return "Odb.Lib.Protobuf.ProductModel.Package"; + public: + bool IsInitialized() const { + return true; } - protected: - explicit Package(::PROTOBUF_NAMESPACE_ID::Arena* arena, - bool is_message_owned = false); + ABSL_ATTRIBUTE_REINITIALIZES void Clear() PROTOBUF_FINAL; + #if defined(PROTOBUF_CUSTOM_VTABLE) private: - static void ArenaDtor(void* object); - public: + static ::size_t ByteSizeLong(const ::google::protobuf::MessageLite& msg); + static ::uint8_t* _InternalSerialize( + const MessageLite& msg, ::uint8_t* target, + ::google::protobuf::io::EpsCopyOutputStream* stream); - static const ClassData _class_data_; - const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final; + public: + ::size_t ByteSizeLong() const { return ByteSizeLong(*this); } + ::uint8_t* _InternalSerialize( + ::uint8_t* target, + ::google::protobuf::io::EpsCopyOutputStream* stream) const { + return _InternalSerialize(*this, target, stream); + } + #else // PROTOBUF_CUSTOM_VTABLE + ::size_t ByteSizeLong() const final; + ::uint8_t* _InternalSerialize( + ::uint8_t* target, + ::google::protobuf::io::EpsCopyOutputStream* stream) const final; + #endif // PROTOBUF_CUSTOM_VTABLE + int GetCachedSize() const { return _impl_._cached_size_.Get(); } - ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; + private: + void SharedCtor(::google::protobuf::Arena* arena); + static void SharedDtor(MessageLite& self); + void InternalSwap(Package* other); + private: + template + friend ::absl::string_view( + ::google::protobuf::internal::GetAnyMessageName)(); + static ::absl::string_view FullMessageName() { return "Odb.Lib.Protobuf.ProductModel.Package"; } + + protected: + explicit Package(::google::protobuf::Arena* arena); + Package(::google::protobuf::Arena* arena, const Package& from); + Package(::google::protobuf::Arena* arena, Package&& from) noexcept + : Package(arena) { + *this = ::std::move(from); + } + const ::google::protobuf::internal::ClassData* GetClassData() const PROTOBUF_FINAL; + static void* PlacementNew_(const void*, void* mem, + ::google::protobuf::Arena* arena); + static constexpr auto InternalNewImpl_(); + static const ::google::protobuf::internal::ClassDataFull _class_data_; + public: + ::google::protobuf::Metadata GetMetadata() const; // nested types ---------------------------------------------------- - // accessors ------------------------------------------------------- - enum : int { kPinsFieldNumber = 2, kPinsByNameFieldNumber = 3, @@ -232,276 +278,297 @@ class ODBDESIGN_EXPORT Package final : int pins_size() const; private: int _internal_pins_size() const; + public: - void clear_pins(); + void clear_pins() ; ::Odb::Lib::Protobuf::ProductModel::Pin* mutable_pins(int index); - ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::Odb::Lib::Protobuf::ProductModel::Pin >* - mutable_pins(); + ::google::protobuf::RepeatedPtrField<::Odb::Lib::Protobuf::ProductModel::Pin>* mutable_pins(); + private: - const ::Odb::Lib::Protobuf::ProductModel::Pin& _internal_pins(int index) const; - ::Odb::Lib::Protobuf::ProductModel::Pin* _internal_add_pins(); + const ::google::protobuf::RepeatedPtrField<::Odb::Lib::Protobuf::ProductModel::Pin>& _internal_pins() const; + ::google::protobuf::RepeatedPtrField<::Odb::Lib::Protobuf::ProductModel::Pin>* _internal_mutable_pins(); public: const ::Odb::Lib::Protobuf::ProductModel::Pin& pins(int index) const; ::Odb::Lib::Protobuf::ProductModel::Pin* add_pins(); - const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::Odb::Lib::Protobuf::ProductModel::Pin >& - pins() const; - + const ::google::protobuf::RepeatedPtrField<::Odb::Lib::Protobuf::ProductModel::Pin>& pins() const; // map pinsByName = 3; int pinsbyname_size() const; private: int _internal_pinsbyname_size() const; + public: - void clear_pinsbyname(); + void clear_pinsbyname() ; + const ::google::protobuf::Map& pinsbyname() const; + ::google::protobuf::Map* mutable_pinsbyname(); + private: - const ::PROTOBUF_NAMESPACE_ID::Map< std::string, ::Odb::Lib::Protobuf::ProductModel::Pin >& - _internal_pinsbyname() const; - ::PROTOBUF_NAMESPACE_ID::Map< std::string, ::Odb::Lib::Protobuf::ProductModel::Pin >* - _internal_mutable_pinsbyname(); - public: - const ::PROTOBUF_NAMESPACE_ID::Map< std::string, ::Odb::Lib::Protobuf::ProductModel::Pin >& - pinsbyname() const; - ::PROTOBUF_NAMESPACE_ID::Map< std::string, ::Odb::Lib::Protobuf::ProductModel::Pin >* - mutable_pinsbyname(); + const ::google::protobuf::Map& _internal_pinsbyname() const; + ::google::protobuf::Map* _internal_mutable_pinsbyname(); + public: // optional string name = 1; bool has_name() const; - private: - bool _internal_has_name() const; - public: - void clear_name(); + void clear_name() ; const std::string& name() const; - template - void set_name(ArgT0&& arg0, ArgT... args); + template + void set_name(Arg_&& arg, Args_... args); std::string* mutable_name(); PROTOBUF_NODISCARD std::string* release_name(); - void set_allocated_name(std::string* name); + void set_allocated_name(std::string* value); + private: const std::string& _internal_name() const; - inline PROTOBUF_ALWAYS_INLINE void _internal_set_name(const std::string& value); + inline PROTOBUF_ALWAYS_INLINE void _internal_set_name( + const std::string& value); std::string* _internal_mutable_name(); - public: + public: // optional uint32 index = 4; bool has_index() const; + void clear_index() ; + ::uint32_t index() const; + void set_index(::uint32_t value); + private: - bool _internal_has_index() const; - public: - void clear_index(); - uint32_t index() const; - void set_index(uint32_t value); - private: - uint32_t _internal_index() const; - void _internal_set_index(uint32_t value); - public: + ::uint32_t _internal_index() const; + void _internal_set_index(::uint32_t value); + public: // @@protoc_insertion_point(class_scope:Odb.Lib.Protobuf.ProductModel.Package) private: class _Internal; - - template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; - typedef void InternalArenaConstructable_; - typedef void DestructorSkippable_; + friend class ::google::protobuf::internal::TcParser; + static const ::google::protobuf::internal::TcParseTable< + 2, 4, 3, + 60, 2> + _table_; + + friend class ::google::protobuf::MessageLite; + friend class ::google::protobuf::Arena; + template + friend class ::google::protobuf::Arena::InternalHelper; + using InternalArenaConstructable_ = void; + using DestructorSkippable_ = void; struct Impl_ { - ::PROTOBUF_NAMESPACE_ID::internal::HasBits<1> _has_bits_; - mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; - ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::Odb::Lib::Protobuf::ProductModel::Pin > pins_; - ::PROTOBUF_NAMESPACE_ID::internal::MapField< - Package_PinsByNameEntry_DoNotUse, - std::string, ::Odb::Lib::Protobuf::ProductModel::Pin, - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::TYPE_STRING, - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::TYPE_MESSAGE> pinsbyname_; - ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr name_; - uint32_t index_; + inline explicit constexpr Impl_( + ::google::protobuf::internal::ConstantInitialized) noexcept; + inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* arena); + inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* arena, const Impl_& from, + const Package& from_msg); + ::google::protobuf::internal::HasBits<1> _has_bits_; + ::google::protobuf::internal::CachedSize _cached_size_; + ::google::protobuf::RepeatedPtrField< ::Odb::Lib::Protobuf::ProductModel::Pin > pins_; + ::google::protobuf::internal::MapField + pinsbyname_; + ::google::protobuf::internal::ArenaStringPtr name_; + ::uint32_t index_; + PROTOBUF_TSAN_DECLARE_MEMBER }; union { Impl_ _impl_; }; friend struct ::TableStruct_package_2eproto; }; + // =================================================================== + + // =================================================================== + #ifdef __GNUC__ - #pragma GCC diagnostic push - #pragma GCC diagnostic ignored "-Wstrict-aliasing" +#pragma GCC diagnostic push +#pragma GCC diagnostic ignored "-Wstrict-aliasing" #endif // __GNUC__ // ------------------------------------------------------------------- +// ------------------------------------------------------------------- + // Package // optional string name = 1; -inline bool Package::_internal_has_name() const { +inline bool Package::has_name() const { bool value = (_impl_._has_bits_[0] & 0x00000001u) != 0; return value; } -inline bool Package::has_name() const { - return _internal_has_name(); -} inline void Package::clear_name() { + ::google::protobuf::internal::TSanWrite(&_impl_); _impl_.name_.ClearToEmpty(); _impl_._has_bits_[0] &= ~0x00000001u; } -inline const std::string& Package::name() const { +inline const std::string& Package::name() const + ABSL_ATTRIBUTE_LIFETIME_BOUND { // @@protoc_insertion_point(field_get:Odb.Lib.Protobuf.ProductModel.Package.name) return _internal_name(); } -template -inline PROTOBUF_ALWAYS_INLINE -void Package::set_name(ArgT0&& arg0, ArgT... args) { - _impl_._has_bits_[0] |= 0x00000001u; - _impl_.name_.Set(static_cast(arg0), args..., GetArenaForAllocation()); +template +inline PROTOBUF_ALWAYS_INLINE void Package::set_name(Arg_&& arg, + Args_... args) { + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_._has_bits_[0] |= 0x00000001u; + _impl_.name_.Set(static_cast(arg), args..., GetArena()); // @@protoc_insertion_point(field_set:Odb.Lib.Protobuf.ProductModel.Package.name) } -inline std::string* Package::mutable_name() { +inline std::string* Package::mutable_name() ABSL_ATTRIBUTE_LIFETIME_BOUND { std::string* _s = _internal_mutable_name(); // @@protoc_insertion_point(field_mutable:Odb.Lib.Protobuf.ProductModel.Package.name) return _s; } inline const std::string& Package::_internal_name() const { + ::google::protobuf::internal::TSanRead(&_impl_); return _impl_.name_.Get(); } inline void Package::_internal_set_name(const std::string& value) { + ::google::protobuf::internal::TSanWrite(&_impl_); _impl_._has_bits_[0] |= 0x00000001u; - _impl_.name_.Set(value, GetArenaForAllocation()); + _impl_.name_.Set(value, GetArena()); } inline std::string* Package::_internal_mutable_name() { + ::google::protobuf::internal::TSanWrite(&_impl_); _impl_._has_bits_[0] |= 0x00000001u; - return _impl_.name_.Mutable(GetArenaForAllocation()); + return _impl_.name_.Mutable( GetArena()); } inline std::string* Package::release_name() { + ::google::protobuf::internal::TSanWrite(&_impl_); // @@protoc_insertion_point(field_release:Odb.Lib.Protobuf.ProductModel.Package.name) - if (!_internal_has_name()) { + if ((_impl_._has_bits_[0] & 0x00000001u) == 0) { return nullptr; } _impl_._has_bits_[0] &= ~0x00000001u; - auto* p = _impl_.name_.Release(); -#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (_impl_.name_.IsDefault()) { - _impl_.name_.Set("", GetArenaForAllocation()); + auto* released = _impl_.name_.Release(); + if (::google::protobuf::internal::DebugHardenForceCopyDefaultString()) { + _impl_.name_.Set("", GetArena()); } -#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING - return p; + return released; } -inline void Package::set_allocated_name(std::string* name) { - if (name != nullptr) { +inline void Package::set_allocated_name(std::string* value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + if (value != nullptr) { _impl_._has_bits_[0] |= 0x00000001u; } else { _impl_._has_bits_[0] &= ~0x00000001u; } - _impl_.name_.SetAllocated(name, GetArenaForAllocation()); -#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (_impl_.name_.IsDefault()) { - _impl_.name_.Set("", GetArenaForAllocation()); + _impl_.name_.SetAllocated(value, GetArena()); + if (::google::protobuf::internal::DebugHardenForceCopyDefaultString() && _impl_.name_.IsDefault()) { + _impl_.name_.Set("", GetArena()); } -#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING // @@protoc_insertion_point(field_set_allocated:Odb.Lib.Protobuf.ProductModel.Package.name) } // repeated .Odb.Lib.Protobuf.ProductModel.Pin pins = 2; inline int Package::_internal_pins_size() const { - return _impl_.pins_.size(); + return _internal_pins().size(); } inline int Package::pins_size() const { return _internal_pins_size(); } -inline ::Odb::Lib::Protobuf::ProductModel::Pin* Package::mutable_pins(int index) { +inline ::Odb::Lib::Protobuf::ProductModel::Pin* Package::mutable_pins(int index) + ABSL_ATTRIBUTE_LIFETIME_BOUND { // @@protoc_insertion_point(field_mutable:Odb.Lib.Protobuf.ProductModel.Package.pins) - return _impl_.pins_.Mutable(index); + return _internal_mutable_pins()->Mutable(index); } -inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::Odb::Lib::Protobuf::ProductModel::Pin >* -Package::mutable_pins() { +inline ::google::protobuf::RepeatedPtrField<::Odb::Lib::Protobuf::ProductModel::Pin>* Package::mutable_pins() + ABSL_ATTRIBUTE_LIFETIME_BOUND { // @@protoc_insertion_point(field_mutable_list:Odb.Lib.Protobuf.ProductModel.Package.pins) - return &_impl_.pins_; + ::google::protobuf::internal::TSanWrite(&_impl_); + return _internal_mutable_pins(); } -inline const ::Odb::Lib::Protobuf::ProductModel::Pin& Package::_internal_pins(int index) const { - return _impl_.pins_.Get(index); -} -inline const ::Odb::Lib::Protobuf::ProductModel::Pin& Package::pins(int index) const { +inline const ::Odb::Lib::Protobuf::ProductModel::Pin& Package::pins(int index) const + ABSL_ATTRIBUTE_LIFETIME_BOUND { // @@protoc_insertion_point(field_get:Odb.Lib.Protobuf.ProductModel.Package.pins) - return _internal_pins(index); -} -inline ::Odb::Lib::Protobuf::ProductModel::Pin* Package::_internal_add_pins() { - return _impl_.pins_.Add(); + return _internal_pins().Get(index); } -inline ::Odb::Lib::Protobuf::ProductModel::Pin* Package::add_pins() { - ::Odb::Lib::Protobuf::ProductModel::Pin* _add = _internal_add_pins(); +inline ::Odb::Lib::Protobuf::ProductModel::Pin* Package::add_pins() ABSL_ATTRIBUTE_LIFETIME_BOUND { + ::google::protobuf::internal::TSanWrite(&_impl_); + ::Odb::Lib::Protobuf::ProductModel::Pin* _add = _internal_mutable_pins()->Add(); // @@protoc_insertion_point(field_add:Odb.Lib.Protobuf.ProductModel.Package.pins) return _add; } -inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::Odb::Lib::Protobuf::ProductModel::Pin >& -Package::pins() const { +inline const ::google::protobuf::RepeatedPtrField<::Odb::Lib::Protobuf::ProductModel::Pin>& Package::pins() const + ABSL_ATTRIBUTE_LIFETIME_BOUND { // @@protoc_insertion_point(field_list:Odb.Lib.Protobuf.ProductModel.Package.pins) + return _internal_pins(); +} +inline const ::google::protobuf::RepeatedPtrField<::Odb::Lib::Protobuf::ProductModel::Pin>& +Package::_internal_pins() const { + ::google::protobuf::internal::TSanRead(&_impl_); return _impl_.pins_; } +inline ::google::protobuf::RepeatedPtrField<::Odb::Lib::Protobuf::ProductModel::Pin>* +Package::_internal_mutable_pins() { + ::google::protobuf::internal::TSanRead(&_impl_); + return &_impl_.pins_; +} // map pinsByName = 3; inline int Package::_internal_pinsbyname_size() const { - return _impl_.pinsbyname_.size(); + return _internal_pinsbyname().size(); } inline int Package::pinsbyname_size() const { return _internal_pinsbyname_size(); } -inline const ::PROTOBUF_NAMESPACE_ID::Map< std::string, ::Odb::Lib::Protobuf::ProductModel::Pin >& -Package::_internal_pinsbyname() const { +inline const ::google::protobuf::Map& Package::_internal_pinsbyname() const { + ::google::protobuf::internal::TSanRead(&_impl_); return _impl_.pinsbyname_.GetMap(); } -inline const ::PROTOBUF_NAMESPACE_ID::Map< std::string, ::Odb::Lib::Protobuf::ProductModel::Pin >& -Package::pinsbyname() const { +inline const ::google::protobuf::Map& Package::pinsbyname() const ABSL_ATTRIBUTE_LIFETIME_BOUND { // @@protoc_insertion_point(field_map:Odb.Lib.Protobuf.ProductModel.Package.pinsByName) return _internal_pinsbyname(); } -inline ::PROTOBUF_NAMESPACE_ID::Map< std::string, ::Odb::Lib::Protobuf::ProductModel::Pin >* -Package::_internal_mutable_pinsbyname() { +inline ::google::protobuf::Map* Package::_internal_mutable_pinsbyname() { + ::google::protobuf::internal::TSanWrite(&_impl_); return _impl_.pinsbyname_.MutableMap(); } -inline ::PROTOBUF_NAMESPACE_ID::Map< std::string, ::Odb::Lib::Protobuf::ProductModel::Pin >* -Package::mutable_pinsbyname() { +inline ::google::protobuf::Map* Package::mutable_pinsbyname() ABSL_ATTRIBUTE_LIFETIME_BOUND { // @@protoc_insertion_point(field_mutable_map:Odb.Lib.Protobuf.ProductModel.Package.pinsByName) return _internal_mutable_pinsbyname(); } // optional uint32 index = 4; -inline bool Package::_internal_has_index() const { +inline bool Package::has_index() const { bool value = (_impl_._has_bits_[0] & 0x00000002u) != 0; return value; } -inline bool Package::has_index() const { - return _internal_has_index(); -} inline void Package::clear_index() { + ::google::protobuf::internal::TSanWrite(&_impl_); _impl_.index_ = 0u; _impl_._has_bits_[0] &= ~0x00000002u; } -inline uint32_t Package::_internal_index() const { - return _impl_.index_; -} -inline uint32_t Package::index() const { +inline ::uint32_t Package::index() const { // @@protoc_insertion_point(field_get:Odb.Lib.Protobuf.ProductModel.Package.index) return _internal_index(); } -inline void Package::_internal_set_index(uint32_t value) { - _impl_._has_bits_[0] |= 0x00000002u; - _impl_.index_ = value; -} -inline void Package::set_index(uint32_t value) { +inline void Package::set_index(::uint32_t value) { _internal_set_index(value); + _impl_._has_bits_[0] |= 0x00000002u; // @@protoc_insertion_point(field_set:Odb.Lib.Protobuf.ProductModel.Package.index) } +inline ::uint32_t Package::_internal_index() const { + ::google::protobuf::internal::TSanRead(&_impl_); + return _impl_.index_; +} +inline void Package::_internal_set_index(::uint32_t value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.index_ = value; +} #ifdef __GNUC__ - #pragma GCC diagnostic pop +#pragma GCC diagnostic pop #endif // __GNUC__ -// ------------------------------------------------------------------- - // @@protoc_insertion_point(namespace_scope) - } // namespace ProductModel } // namespace Protobuf } // namespace Lib } // namespace Odb + // @@protoc_insertion_point(global_scope) -#include -#endif // GOOGLE_PROTOBUF_INCLUDED_GOOGLE_PROTOBUF_INCLUDED_package_2eproto +#include "google/protobuf/port_undef.inc" + +#endif // package_2eproto_2epb_2eh diff --git a/OdbDesignLib/ProtoBuf/part.pb.cc b/OdbDesignLib/ProtoBuf/part.pb.cc index ac767b34..f0c21d20 100644 --- a/OdbDesignLib/ProtoBuf/part.pb.cc +++ b/OdbDesignLib/ProtoBuf/part.pb.cc @@ -1,166 +1,256 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE // source: part.proto +// Protobuf C++ Version: 5.29.2 #include "part.pb.h" #include - -#include -#include -#include -#include -#include -#include -#include +#include +#include "google/protobuf/io/coded_stream.h" +#include "google/protobuf/generated_message_tctable_impl.h" +#include "google/protobuf/extension_set.h" +#include "google/protobuf/generated_message_util.h" +#include "google/protobuf/wire_format_lite.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) -#include +// Must be included last. +#include "google/protobuf/port_def.inc" PROTOBUF_PRAGMA_INIT_SEG - -namespace _pb = ::PROTOBUF_NAMESPACE_ID; -namespace _pbi = _pb::internal; - +namespace _pb = ::google::protobuf; +namespace _pbi = ::google::protobuf::internal; +namespace _fl = ::google::protobuf::internal::field_layout; namespace Odb { namespace Lib { namespace Protobuf { namespace ProductModel { -PROTOBUF_CONSTEXPR Part::Part( - ::_pbi::ConstantInitialized): _impl_{ - /*decltype(_impl_._has_bits_)*/{} - , /*decltype(_impl_._cached_size_)*/{} - , /*decltype(_impl_.name_)*/{&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}}} {} + +inline constexpr Part::Impl_::Impl_( + ::_pbi::ConstantInitialized) noexcept + : _cached_size_{0}, + name_( + &::google::protobuf::internal::fixed_address_empty_string, + ::_pbi::ConstantInitialized()) {} + +template +PROTOBUF_CONSTEXPR Part::Part(::_pbi::ConstantInitialized) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : ::google::protobuf::Message(_class_data_.base()), +#else // PROTOBUF_CUSTOM_VTABLE + : ::google::protobuf::Message(), +#endif // PROTOBUF_CUSTOM_VTABLE + _impl_(::_pbi::ConstantInitialized()) { +} struct PartDefaultTypeInternal { - PROTOBUF_CONSTEXPR PartDefaultTypeInternal() - : _instance(::_pbi::ConstantInitialized{}) {} + PROTOBUF_CONSTEXPR PartDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} ~PartDefaultTypeInternal() {} union { Part _instance; }; }; -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 PartDefaultTypeInternal _Part_default_instance_; + +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT ODBDESIGN_EXPORT + PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 PartDefaultTypeInternal _Part_default_instance_; } // namespace ProductModel } // namespace Protobuf } // namespace Lib } // namespace Odb -static ::_pb::Metadata file_level_metadata_part_2eproto[1]; -static constexpr ::_pb::EnumDescriptor const** file_level_enum_descriptors_part_2eproto = nullptr; -static constexpr ::_pb::ServiceDescriptor const** file_level_service_descriptors_part_2eproto = nullptr; - -const uint32_t TableStruct_part_2eproto::offsets[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = { - PROTOBUF_FIELD_OFFSET(::Odb::Lib::Protobuf::ProductModel::Part, _impl_._has_bits_), - PROTOBUF_FIELD_OFFSET(::Odb::Lib::Protobuf::ProductModel::Part, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - ~0u, // no _inlined_string_donated_ - PROTOBUF_FIELD_OFFSET(::Odb::Lib::Protobuf::ProductModel::Part, _impl_.name_), - 0, -}; -static const ::_pbi::MigrationSchema schemas[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = { - { 0, 7, -1, sizeof(::Odb::Lib::Protobuf::ProductModel::Part)}, +static constexpr const ::_pb::EnumDescriptor** + file_level_enum_descriptors_part_2eproto = nullptr; +static constexpr const ::_pb::ServiceDescriptor** + file_level_service_descriptors_part_2eproto = nullptr; +const ::uint32_t + TableStruct_part_2eproto::offsets[] ABSL_ATTRIBUTE_SECTION_VARIABLE( + protodesc_cold) = { + PROTOBUF_FIELD_OFFSET(::Odb::Lib::Protobuf::ProductModel::Part, _impl_._has_bits_), + PROTOBUF_FIELD_OFFSET(::Odb::Lib::Protobuf::ProductModel::Part, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + ~0u, // no _split_ + ~0u, // no sizeof(Split) + PROTOBUF_FIELD_OFFSET(::Odb::Lib::Protobuf::ProductModel::Part, _impl_.name_), + 0, }; +static const ::_pbi::MigrationSchema + schemas[] ABSL_ATTRIBUTE_SECTION_VARIABLE(protodesc_cold) = { + {0, 9, -1, sizeof(::Odb::Lib::Protobuf::ProductModel::Part)}, +}; static const ::_pb::Message* const file_default_instances[] = { - &::Odb::Lib::Protobuf::ProductModel::_Part_default_instance_._instance, + &::Odb::Lib::Protobuf::ProductModel::_Part_default_instance_._instance, }; - -const char descriptor_table_protodef_part_2eproto[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = - "\n\npart.proto\022\035Odb.Lib.Protobuf.ProductMo" - "del\"\"\n\004Part\022\021\n\004name\030\001 \001(\tH\000\210\001\001B\007\n\005_nameb" - "\006proto3" - ; -static ::_pbi::once_flag descriptor_table_part_2eproto_once; -const ::_pbi::DescriptorTable descriptor_table_part_2eproto = { - false, false, 87, descriptor_table_protodef_part_2eproto, +const char descriptor_table_protodef_part_2eproto[] ABSL_ATTRIBUTE_SECTION_VARIABLE( + protodesc_cold) = { + "\n\npart.proto\022\035Odb.Lib.Protobuf.ProductMo" + "del\"\"\n\004Part\022\021\n\004name\030\001 \001(\tH\000\210\001\001B\007\n\005_nameb" + "\006proto3" +}; +static ::absl::once_flag descriptor_table_part_2eproto_once; +PROTOBUF_CONSTINIT const ::_pbi::DescriptorTable descriptor_table_part_2eproto = { + false, + false, + 87, + descriptor_table_protodef_part_2eproto, "part.proto", - &descriptor_table_part_2eproto_once, nullptr, 0, 1, - schemas, file_default_instances, TableStruct_part_2eproto::offsets, - file_level_metadata_part_2eproto, file_level_enum_descriptors_part_2eproto, + &descriptor_table_part_2eproto_once, + nullptr, + 0, + 1, + schemas, + file_default_instances, + TableStruct_part_2eproto::offsets, + file_level_enum_descriptors_part_2eproto, file_level_service_descriptors_part_2eproto, }; -PROTOBUF_ATTRIBUTE_WEAK const ::_pbi::DescriptorTable* descriptor_table_part_2eproto_getter() { - return &descriptor_table_part_2eproto; -} - -// Force running AddDescriptors() at dynamic initialization time. -PROTOBUF_ATTRIBUTE_INIT_PRIORITY2 static ::_pbi::AddDescriptorsRunner dynamic_init_dummy_part_2eproto(&descriptor_table_part_2eproto); namespace Odb { namespace Lib { namespace Protobuf { namespace ProductModel { - // =================================================================== class Part::_Internal { public: - using HasBits = decltype(std::declval()._impl_._has_bits_); - static void set_has_name(HasBits* has_bits) { - (*has_bits)[0] |= 1u; - } + using HasBits = + decltype(std::declval()._impl_._has_bits_); + static constexpr ::int32_t kHasBitsOffset = + 8 * PROTOBUF_FIELD_OFFSET(Part, _impl_._has_bits_); }; -Part::Part(::PROTOBUF_NAMESPACE_ID::Arena* arena, - bool is_message_owned) - : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned) { - SharedCtor(arena, is_message_owned); +Part::Part(::google::protobuf::Arena* arena) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : ::google::protobuf::Message(arena, _class_data_.base()) { +#else // PROTOBUF_CUSTOM_VTABLE + : ::google::protobuf::Message(arena) { +#endif // PROTOBUF_CUSTOM_VTABLE + SharedCtor(arena); // @@protoc_insertion_point(arena_constructor:Odb.Lib.Protobuf.ProductModel.Part) } -Part::Part(const Part& from) - : ::PROTOBUF_NAMESPACE_ID::Message() { - Part* const _this = this; (void)_this; - new (&_impl_) Impl_{ - decltype(_impl_._has_bits_){from._impl_._has_bits_} - , /*decltype(_impl_._cached_size_)*/{} - , decltype(_impl_.name_){}}; +inline PROTOBUF_NDEBUG_INLINE Part::Impl_::Impl_( + ::google::protobuf::internal::InternalVisibility visibility, ::google::protobuf::Arena* arena, + const Impl_& from, const ::Odb::Lib::Protobuf::ProductModel::Part& from_msg) + : _has_bits_{from._has_bits_}, + _cached_size_{0}, + name_(arena, from.name_) {} + +Part::Part( + ::google::protobuf::Arena* arena, + const Part& from) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : ::google::protobuf::Message(arena, _class_data_.base()) { +#else // PROTOBUF_CUSTOM_VTABLE + : ::google::protobuf::Message(arena) { +#endif // PROTOBUF_CUSTOM_VTABLE + Part* const _this = this; + (void)_this; + _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( + from._internal_metadata_); + new (&_impl_) Impl_(internal_visibility(), arena, from._impl_, from); - _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); - _impl_.name_.InitDefault(); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - _impl_.name_.Set("", GetArenaForAllocation()); - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (from._internal_has_name()) { - _this->_impl_.name_.Set(from._internal_name(), - _this->GetArenaForAllocation()); - } // @@protoc_insertion_point(copy_constructor:Odb.Lib.Protobuf.ProductModel.Part) } - -inline void Part::SharedCtor( - ::_pb::Arena* arena, bool is_message_owned) { - (void)arena; - (void)is_message_owned; - new (&_impl_) Impl_{ - decltype(_impl_._has_bits_){} - , /*decltype(_impl_._cached_size_)*/{} - , decltype(_impl_.name_){} - }; - _impl_.name_.InitDefault(); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - _impl_.name_.Set("", GetArenaForAllocation()); - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING +inline PROTOBUF_NDEBUG_INLINE Part::Impl_::Impl_( + ::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* arena) + : _cached_size_{0}, + name_(arena) {} + +inline void Part::SharedCtor(::_pb::Arena* arena) { + new (&_impl_) Impl_(internal_visibility(), arena); } - Part::~Part() { // @@protoc_insertion_point(destructor:Odb.Lib.Protobuf.ProductModel.Part) - if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) { - (void)arena; - return; - } - SharedDtor(); + SharedDtor(*this); } - -inline void Part::SharedDtor() { - GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); - _impl_.name_.Destroy(); +inline void Part::SharedDtor(MessageLite& self) { + Part& this_ = static_cast(self); + this_._internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); + ABSL_DCHECK(this_.GetArena() == nullptr); + this_._impl_.name_.Destroy(); + this_._impl_.~Impl_(); } -void Part::SetCachedSize(int size) const { - _impl_._cached_size_.Set(size); +inline void* Part::PlacementNew_(const void*, void* mem, + ::google::protobuf::Arena* arena) { + return ::new (mem) Part(arena); +} +constexpr auto Part::InternalNewImpl_() { + return ::google::protobuf::internal::MessageCreator::CopyInit(sizeof(Part), + alignof(Part)); +} +PROTOBUF_CONSTINIT +PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 +const ::google::protobuf::internal::ClassDataFull Part::_class_data_ = { + ::google::protobuf::internal::ClassData{ + &_Part_default_instance_._instance, + &_table_.header, + nullptr, // OnDemandRegisterArenaDtor + nullptr, // IsInitialized + &Part::MergeImpl, + ::google::protobuf::Message::GetNewImpl(), +#if defined(PROTOBUF_CUSTOM_VTABLE) + &Part::SharedDtor, + ::google::protobuf::Message::GetClearImpl(), &Part::ByteSizeLong, + &Part::_InternalSerialize, +#endif // PROTOBUF_CUSTOM_VTABLE + PROTOBUF_FIELD_OFFSET(Part, _impl_._cached_size_), + false, + }, + &Part::kDescriptorMethods, + &descriptor_table_part_2eproto, + nullptr, // tracker +}; +const ::google::protobuf::internal::ClassData* Part::GetClassData() const { + ::google::protobuf::internal::PrefetchToLocalCache(&_class_data_); + ::google::protobuf::internal::PrefetchToLocalCache(_class_data_.tc_table); + return _class_data_.base(); } +PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 +const ::_pbi::TcParseTable<0, 1, 0, 47, 2> Part::_table_ = { + { + PROTOBUF_FIELD_OFFSET(Part, _impl_._has_bits_), + 0, // no _extensions_ + 1, 0, // max_field_number, fast_idx_mask + offsetof(decltype(_table_), field_lookup_table), + 4294967294, // skipmap + offsetof(decltype(_table_), field_entries), + 1, // num_field_entries + 0, // num_aux_entries + offsetof(decltype(_table_), field_names), // no aux_entries + _class_data_.base(), + nullptr, // post_loop_handler + ::_pbi::TcParser::GenericFallback, // fallback + #ifdef PROTOBUF_PREFETCH_PARSE_TABLE + ::_pbi::TcParser::GetTable<::Odb::Lib::Protobuf::ProductModel::Part>(), // to_prefetch + #endif // PROTOBUF_PREFETCH_PARSE_TABLE + }, {{ + // optional string name = 1; + {::_pbi::TcParser::FastUS1, + {10, 0, 0, PROTOBUF_FIELD_OFFSET(Part, _impl_.name_)}}, + }}, {{ + 65535, 65535 + }}, {{ + // optional string name = 1; + {PROTOBUF_FIELD_OFFSET(Part, _impl_.name_), _Internal::kHasBitsOffset + 0, 0, + (0 | ::_fl::kFcOptional | ::_fl::kUtf8String | ::_fl::kRepAString)}, + }}, + // no aux_entries + {{ + "\42\4\0\0\0\0\0\0" + "Odb.Lib.Protobuf.ProductModel.Part" + "name" + }}, +}; -void Part::Clear() { +PROTOBUF_NOINLINE void Part::Clear() { // @@protoc_insertion_point(message_clear_start:Odb.Lib.Protobuf.ProductModel.Part) - uint32_t cached_has_bits = 0; + ::google::protobuf::internal::TSanWrite(&_impl_); + ::uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; @@ -169,112 +259,82 @@ void Part::Clear() { _impl_.name_.ClearNonDefaultToEmpty(); } _impl_._has_bits_.Clear(); - _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); -} - -const char* Part::_InternalParse(const char* ptr, ::_pbi::ParseContext* ctx) { -#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure - _Internal::HasBits has_bits{}; - while (!ctx->Done(&ptr)) { - uint32_t tag; - ptr = ::_pbi::ReadTag(ptr, &tag); - switch (tag >> 3) { - // optional string name = 1; - case 1: - if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 10)) { - auto str = _internal_mutable_name(); - ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); - CHK_(ptr); - CHK_(::_pbi::VerifyUTF8(str, "Odb.Lib.Protobuf.ProductModel.Part.name")); - } else - goto handle_unusual; - continue; - default: - goto handle_unusual; - } // switch - handle_unusual: - if ((tag == 0) || ((tag & 7) == 4)) { - CHK_(ptr); - ctx->SetLastTag(tag); - goto message_done; - } - ptr = UnknownFieldParse( - tag, - _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(), - ptr, ctx); - CHK_(ptr != nullptr); - } // while -message_done: - _impl_._has_bits_.Or(has_bits); - return ptr; -failure: - ptr = nullptr; - goto message_done; -#undef CHK_ -} - -uint8_t* Part::_InternalSerialize( - uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { - // @@protoc_insertion_point(serialize_to_array_start:Odb.Lib.Protobuf.ProductModel.Part) - uint32_t cached_has_bits = 0; - (void) cached_has_bits; - - // optional string name = 1; - if (_internal_has_name()) { - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( - this->_internal_name().data(), static_cast(this->_internal_name().length()), - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, - "Odb.Lib.Protobuf.ProductModel.Part.name"); - target = stream->WriteStringMaybeAliased( - 1, this->_internal_name(), target); - } - - if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = ::_pbi::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:Odb.Lib.Protobuf.ProductModel.Part) - return target; -} - -size_t Part::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:Odb.Lib.Protobuf.ProductModel.Part) - size_t total_size = 0; - - uint32_t cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - // optional string name = 1; - cached_has_bits = _impl_._has_bits_[0]; - if (cached_has_bits & 0x00000001u) { - total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( - this->_internal_name()); - } - - return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); + _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); } -const ::PROTOBUF_NAMESPACE_ID::Message::ClassData Part::_class_data_ = { - ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSourceCheck, - Part::MergeImpl -}; -const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*Part::GetClassData() const { return &_class_data_; } - - -void Part::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg) { +#if defined(PROTOBUF_CUSTOM_VTABLE) + ::uint8_t* Part::_InternalSerialize( + const MessageLite& base, ::uint8_t* target, + ::google::protobuf::io::EpsCopyOutputStream* stream) { + const Part& this_ = static_cast(base); +#else // PROTOBUF_CUSTOM_VTABLE + ::uint8_t* Part::_InternalSerialize( + ::uint8_t* target, + ::google::protobuf::io::EpsCopyOutputStream* stream) const { + const Part& this_ = *this; +#endif // PROTOBUF_CUSTOM_VTABLE + // @@protoc_insertion_point(serialize_to_array_start:Odb.Lib.Protobuf.ProductModel.Part) + ::uint32_t cached_has_bits = 0; + (void)cached_has_bits; + + cached_has_bits = this_._impl_._has_bits_[0]; + // optional string name = 1; + if (cached_has_bits & 0x00000001u) { + const std::string& _s = this_._internal_name(); + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + _s.data(), static_cast(_s.length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "Odb.Lib.Protobuf.ProductModel.Part.name"); + target = stream->WriteStringMaybeAliased(1, _s, target); + } + + if (PROTOBUF_PREDICT_FALSE(this_._internal_metadata_.have_unknown_fields())) { + target = + ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( + this_._internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); + } + // @@protoc_insertion_point(serialize_to_array_end:Odb.Lib.Protobuf.ProductModel.Part) + return target; + } + +#if defined(PROTOBUF_CUSTOM_VTABLE) + ::size_t Part::ByteSizeLong(const MessageLite& base) { + const Part& this_ = static_cast(base); +#else // PROTOBUF_CUSTOM_VTABLE + ::size_t Part::ByteSizeLong() const { + const Part& this_ = *this; +#endif // PROTOBUF_CUSTOM_VTABLE + // @@protoc_insertion_point(message_byte_size_start:Odb.Lib.Protobuf.ProductModel.Part) + ::size_t total_size = 0; + + ::uint32_t cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void)cached_has_bits; + + { + // optional string name = 1; + cached_has_bits = this_._impl_._has_bits_[0]; + if (cached_has_bits & 0x00000001u) { + total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize( + this_._internal_name()); + } + } + return this_.MaybeComputeUnknownFieldsSize(total_size, + &this_._impl_._cached_size_); + } + +void Part::MergeImpl(::google::protobuf::MessageLite& to_msg, const ::google::protobuf::MessageLite& from_msg) { auto* const _this = static_cast(&to_msg); auto& from = static_cast(from_msg); // @@protoc_insertion_point(class_specific_merge_from_start:Odb.Lib.Protobuf.ProductModel.Part) - GOOGLE_DCHECK_NE(&from, _this); - uint32_t cached_has_bits = 0; + ABSL_DCHECK_NE(&from, _this); + ::uint32_t cached_has_bits = 0; (void) cached_has_bits; - if (from._internal_has_name()) { + cached_has_bits = from._impl_._has_bits_[0]; + if (cached_has_bits & 0x00000001u) { _this->_internal_set_name(from._internal_name()); } - _this->_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); + _this->_impl_._has_bits_[0] |= cached_has_bits; + _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); } void Part::CopyFrom(const Part& from) { @@ -284,39 +344,31 @@ void Part::CopyFrom(const Part& from) { MergeFrom(from); } -bool Part::IsInitialized() const { - return true; -} -void Part::InternalSwap(Part* other) { +void Part::InternalSwap(Part* PROTOBUF_RESTRICT other) { using std::swap; - auto* lhs_arena = GetArenaForAllocation(); - auto* rhs_arena = other->GetArenaForAllocation(); + auto* arena = GetArena(); + ABSL_DCHECK_EQ(arena, other->GetArena()); _internal_metadata_.InternalSwap(&other->_internal_metadata_); swap(_impl_._has_bits_[0], other->_impl_._has_bits_[0]); - ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( - &_impl_.name_, lhs_arena, - &other->_impl_.name_, rhs_arena - ); + ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.name_, &other->_impl_.name_, arena); } -::PROTOBUF_NAMESPACE_ID::Metadata Part::GetMetadata() const { - return ::_pbi::AssignDescriptors( - &descriptor_table_part_2eproto_getter, &descriptor_table_part_2eproto_once, - file_level_metadata_part_2eproto[0]); +::google::protobuf::Metadata Part::GetMetadata() const { + return ::google::protobuf::Message::GetMetadataImpl(GetClassData()->full()); } - // @@protoc_insertion_point(namespace_scope) } // namespace ProductModel } // namespace Protobuf } // namespace Lib } // namespace Odb -PROTOBUF_NAMESPACE_OPEN -template<> PROTOBUF_NOINLINE ::Odb::Lib::Protobuf::ProductModel::Part* -Arena::CreateMaybeMessage< ::Odb::Lib::Protobuf::ProductModel::Part >(Arena* arena) { - return Arena::CreateMessageInternal< ::Odb::Lib::Protobuf::ProductModel::Part >(arena); -} -PROTOBUF_NAMESPACE_CLOSE - +namespace google { +namespace protobuf { +} // namespace protobuf +} // namespace google // @@protoc_insertion_point(global_scope) -#include +PROTOBUF_ATTRIBUTE_INIT_PRIORITY2 static ::std::false_type + _static_init2_ PROTOBUF_UNUSED = + (::_pbi::AddDescriptors(&descriptor_table_part_2eproto), + ::std::false_type{}); +#include "google/protobuf/port_undef.inc" diff --git a/OdbDesignLib/ProtoBuf/part.pb.h b/OdbDesignLib/ProtoBuf/part.pb.h index 633d57a6..191ff81a 100644 --- a/OdbDesignLib/ProtoBuf/part.pb.h +++ b/OdbDesignLib/ProtoBuf/part.pb.h @@ -1,49 +1,56 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE // source: part.proto +// Protobuf C++ Version: 5.29.2 -#ifndef GOOGLE_PROTOBUF_INCLUDED_part_2eproto -#define GOOGLE_PROTOBUF_INCLUDED_part_2eproto +#ifndef part_2eproto_2epb_2eh +#define part_2eproto_2epb_2eh #include #include - -#include -#if PROTOBUF_VERSION < 3021000 -#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 3021012 < 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. +#include +#include + +#include "google/protobuf/runtime_version.h" +#if PROTOBUF_VERSION != 5029002 +#error "Protobuf C++ gencode is built with an incompatible version of" +#error "Protobuf C++ headers/runtime. See" +#error "https://protobuf.dev/support/cross-version-runtime-guarantee/#cpp" #endif - -#include -#include -#include -#include -#include -#include -#include -#include -#include // IWYU pragma: export -#include // IWYU pragma: export -#include +#include "google/protobuf/io/coded_stream.h" +#include "google/protobuf/arena.h" +#include "google/protobuf/arenastring.h" +#include "google/protobuf/generated_message_tctable_decl.h" +#include "google/protobuf/generated_message_util.h" +#include "google/protobuf/metadata_lite.h" +#include "google/protobuf/generated_message_reflection.h" +#include "google/protobuf/message.h" +#include "google/protobuf/message_lite.h" +#include "google/protobuf/repeated_field.h" // IWYU pragma: export +#include "google/protobuf/extension_set.h" // IWYU pragma: export +#include "google/protobuf/unknown_field_set.h" // @@protoc_insertion_point(includes) -#include + +// Must be included last. +#include "google/protobuf/port_def.inc" + #define PROTOBUF_INTERNAL_EXPORT_part_2eproto ODBDESIGN_EXPORT -PROTOBUF_NAMESPACE_OPEN + +namespace google { +namespace protobuf { namespace internal { -class AnyMetadata; +template +::absl::string_view GetAnyMessageName(); } // namespace internal -PROTOBUF_NAMESPACE_CLOSE +} // namespace protobuf +} // namespace google // Internal implementation detail -- do not use these members. struct ODBDESIGN_EXPORT TableStruct_part_2eproto { - static const uint32_t offsets[]; + static const ::uint32_t offsets[]; }; -ODBDESIGN_EXPORT extern const ::PROTOBUF_NAMESPACE_ID::internal::DescriptorTable descriptor_table_part_2eproto; +ODBDESIGN_EXPORT extern const ::google::protobuf::internal::DescriptorTable + descriptor_table_part_2eproto; namespace Odb { namespace Lib { namespace Protobuf { @@ -55,9 +62,11 @@ ODBDESIGN_EXPORT extern PartDefaultTypeInternal _Part_default_instance_; } // namespace Protobuf } // namespace Lib } // namespace Odb -PROTOBUF_NAMESPACE_OPEN -template<> ODBDESIGN_EXPORT ::Odb::Lib::Protobuf::ProductModel::Part* Arena::CreateMaybeMessage<::Odb::Lib::Protobuf::ProductModel::Part>(Arena*); -PROTOBUF_NAMESPACE_CLOSE +namespace google { +namespace protobuf { +} // namespace protobuf +} // namespace google + namespace Odb { namespace Lib { namespace Protobuf { @@ -65,30 +74,36 @@ namespace ProductModel { // =================================================================== -class ODBDESIGN_EXPORT Part final : - public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:Odb.Lib.Protobuf.ProductModel.Part) */ { + +// ------------------------------------------------------------------- + +class ODBDESIGN_EXPORT Part final : public ::google::protobuf::Message +/* @@protoc_insertion_point(class_definition:Odb.Lib.Protobuf.ProductModel.Part) */ { public: inline Part() : Part(nullptr) {} - ~Part() override; - explicit PROTOBUF_CONSTEXPR Part(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); + ~Part() PROTOBUF_FINAL; - Part(const Part& from); - Part(Part&& from) noexcept - : Part() { - *this = ::std::move(from); +#if defined(PROTOBUF_CUSTOM_VTABLE) + void operator delete(Part* msg, std::destroying_delete_t) { + SharedDtor(*msg); + ::google::protobuf::internal::SizedDelete(msg, sizeof(Part)); } +#endif + + template + explicit PROTOBUF_CONSTEXPR Part( + ::google::protobuf::internal::ConstantInitialized); + inline Part(const Part& from) : Part(nullptr, from) {} + inline Part(Part&& from) noexcept + : Part(nullptr, std::move(from)) {} inline Part& operator=(const Part& from) { CopyFrom(from); return *this; } inline Part& operator=(Part&& from) noexcept { if (this == &from) return *this; - if (GetOwningArena() == from.GetOwningArena() - #ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetOwningArena() != nullptr - #endif // !PROTOBUF_FORCE_COPY_IN_MOVE - ) { + if (::google::protobuf::internal::CanMoveWithInternalSwap(GetArena(), from.GetArena())) { InternalSwap(&from); } else { CopyFrom(from); @@ -96,13 +111,22 @@ class ODBDESIGN_EXPORT Part final : return *this; } - static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { + inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const + ABSL_ATTRIBUTE_LIFETIME_BOUND { + return _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance); + } + inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() + ABSL_ATTRIBUTE_LIFETIME_BOUND { + return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); + } + + static const ::google::protobuf::Descriptor* descriptor() { return GetDescriptor(); } - static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { + static const ::google::protobuf::Descriptor* GetDescriptor() { return default_instance().GetMetadata().descriptor; } - static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { + static const ::google::protobuf::Reflection* GetReflection() { return default_instance().GetMetadata().reflection; } static const Part& default_instance() { @@ -110,208 +134,244 @@ class ODBDESIGN_EXPORT Part final : } static inline const Part* internal_default_instance() { return reinterpret_cast( - &_Part_default_instance_); - } - static constexpr int kIndexInFileMessages = - 0; - - friend void swap(Part& a, Part& b) { - a.Swap(&b); + &_Part_default_instance_); } + static constexpr int kIndexInFileMessages = 0; + friend void swap(Part& a, Part& b) { a.Swap(&b); } inline void Swap(Part* other) { if (other == this) return; - #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetOwningArena() != nullptr && - GetOwningArena() == other->GetOwningArena()) { - #else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetOwningArena() == other->GetOwningArena()) { - #endif // !PROTOBUF_FORCE_COPY_IN_SWAP + if (::google::protobuf::internal::CanUseInternalSwap(GetArena(), other->GetArena())) { InternalSwap(other); } else { - ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); + ::google::protobuf::internal::GenericSwap(this, other); } } void UnsafeArenaSwap(Part* other) { if (other == this) return; - GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); + ABSL_DCHECK(GetArena() == other->GetArena()); InternalSwap(other); } // implements Message ---------------------------------------------- - Part* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); + Part* New(::google::protobuf::Arena* arena = nullptr) const { + return ::google::protobuf::Message::DefaultConstruct(arena); } - using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; + using ::google::protobuf::Message::CopyFrom; void CopyFrom(const Part& from); - using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; - void MergeFrom( const Part& from) { - Part::MergeImpl(*this, from); - } + using ::google::protobuf::Message::MergeFrom; + void MergeFrom(const Part& from) { Part::MergeImpl(*this, from); } + private: - static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg); + static void MergeImpl( + ::google::protobuf::MessageLite& to_msg, + const ::google::protobuf::MessageLite& from_msg); + public: - PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; - bool IsInitialized() const final; + bool IsInitialized() const { + return true; + } + ABSL_ATTRIBUTE_REINITIALIZES void Clear() PROTOBUF_FINAL; + #if defined(PROTOBUF_CUSTOM_VTABLE) + private: + static ::size_t ByteSizeLong(const ::google::protobuf::MessageLite& msg); + static ::uint8_t* _InternalSerialize( + const MessageLite& msg, ::uint8_t* target, + ::google::protobuf::io::EpsCopyOutputStream* stream); - size_t ByteSizeLong() const final; - const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final; - uint8_t* _InternalSerialize( - uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const final { return _impl_._cached_size_.Get(); } + public: + ::size_t ByteSizeLong() const { return ByteSizeLong(*this); } + ::uint8_t* _InternalSerialize( + ::uint8_t* target, + ::google::protobuf::io::EpsCopyOutputStream* stream) const { + return _InternalSerialize(*this, target, stream); + } + #else // PROTOBUF_CUSTOM_VTABLE + ::size_t ByteSizeLong() const final; + ::uint8_t* _InternalSerialize( + ::uint8_t* target, + ::google::protobuf::io::EpsCopyOutputStream* stream) const final; + #endif // PROTOBUF_CUSTOM_VTABLE + int GetCachedSize() const { return _impl_._cached_size_.Get(); } private: - void SharedCtor(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned); - void SharedDtor(); - void SetCachedSize(int size) const final; + void SharedCtor(::google::protobuf::Arena* arena); + static void SharedDtor(MessageLite& self); void InternalSwap(Part* other); - - private: - friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; - static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { - return "Odb.Lib.Protobuf.ProductModel.Part"; + private: + template + friend ::absl::string_view( + ::google::protobuf::internal::GetAnyMessageName)(); + static ::absl::string_view FullMessageName() { return "Odb.Lib.Protobuf.ProductModel.Part"; } + + protected: + explicit Part(::google::protobuf::Arena* arena); + Part(::google::protobuf::Arena* arena, const Part& from); + Part(::google::protobuf::Arena* arena, Part&& from) noexcept + : Part(arena) { + *this = ::std::move(from); } - protected: - explicit Part(::PROTOBUF_NAMESPACE_ID::Arena* arena, - bool is_message_owned = false); - public: - - static const ClassData _class_data_; - const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final; - - ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; + const ::google::protobuf::internal::ClassData* GetClassData() const PROTOBUF_FINAL; + static void* PlacementNew_(const void*, void* mem, + ::google::protobuf::Arena* arena); + static constexpr auto InternalNewImpl_(); + static const ::google::protobuf::internal::ClassDataFull _class_data_; + public: + ::google::protobuf::Metadata GetMetadata() const; // nested types ---------------------------------------------------- // accessors ------------------------------------------------------- - enum : int { kNameFieldNumber = 1, }; // optional string name = 1; bool has_name() const; - private: - bool _internal_has_name() const; - public: - void clear_name(); + void clear_name() ; const std::string& name() const; - template - void set_name(ArgT0&& arg0, ArgT... args); + template + void set_name(Arg_&& arg, Args_... args); std::string* mutable_name(); PROTOBUF_NODISCARD std::string* release_name(); - void set_allocated_name(std::string* name); + void set_allocated_name(std::string* value); + private: const std::string& _internal_name() const; - inline PROTOBUF_ALWAYS_INLINE void _internal_set_name(const std::string& value); + inline PROTOBUF_ALWAYS_INLINE void _internal_set_name( + const std::string& value); std::string* _internal_mutable_name(); - public: + public: // @@protoc_insertion_point(class_scope:Odb.Lib.Protobuf.ProductModel.Part) private: class _Internal; - - template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; - typedef void InternalArenaConstructable_; - typedef void DestructorSkippable_; + friend class ::google::protobuf::internal::TcParser; + static const ::google::protobuf::internal::TcParseTable< + 0, 1, 0, + 47, 2> + _table_; + + friend class ::google::protobuf::MessageLite; + friend class ::google::protobuf::Arena; + template + friend class ::google::protobuf::Arena::InternalHelper; + using InternalArenaConstructable_ = void; + using DestructorSkippable_ = void; struct Impl_ { - ::PROTOBUF_NAMESPACE_ID::internal::HasBits<1> _has_bits_; - mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; - ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr name_; + inline explicit constexpr Impl_( + ::google::protobuf::internal::ConstantInitialized) noexcept; + inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* arena); + inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* arena, const Impl_& from, + const Part& from_msg); + ::google::protobuf::internal::HasBits<1> _has_bits_; + ::google::protobuf::internal::CachedSize _cached_size_; + ::google::protobuf::internal::ArenaStringPtr name_; + PROTOBUF_TSAN_DECLARE_MEMBER }; union { Impl_ _impl_; }; friend struct ::TableStruct_part_2eproto; }; + // =================================================================== + + // =================================================================== + #ifdef __GNUC__ - #pragma GCC diagnostic push - #pragma GCC diagnostic ignored "-Wstrict-aliasing" +#pragma GCC diagnostic push +#pragma GCC diagnostic ignored "-Wstrict-aliasing" #endif // __GNUC__ +// ------------------------------------------------------------------- + // Part // optional string name = 1; -inline bool Part::_internal_has_name() const { +inline bool Part::has_name() const { bool value = (_impl_._has_bits_[0] & 0x00000001u) != 0; return value; } -inline bool Part::has_name() const { - return _internal_has_name(); -} inline void Part::clear_name() { + ::google::protobuf::internal::TSanWrite(&_impl_); _impl_.name_.ClearToEmpty(); _impl_._has_bits_[0] &= ~0x00000001u; } -inline const std::string& Part::name() const { +inline const std::string& Part::name() const + ABSL_ATTRIBUTE_LIFETIME_BOUND { // @@protoc_insertion_point(field_get:Odb.Lib.Protobuf.ProductModel.Part.name) return _internal_name(); } -template -inline PROTOBUF_ALWAYS_INLINE -void Part::set_name(ArgT0&& arg0, ArgT... args) { - _impl_._has_bits_[0] |= 0x00000001u; - _impl_.name_.Set(static_cast(arg0), args..., GetArenaForAllocation()); +template +inline PROTOBUF_ALWAYS_INLINE void Part::set_name(Arg_&& arg, + Args_... args) { + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_._has_bits_[0] |= 0x00000001u; + _impl_.name_.Set(static_cast(arg), args..., GetArena()); // @@protoc_insertion_point(field_set:Odb.Lib.Protobuf.ProductModel.Part.name) } -inline std::string* Part::mutable_name() { +inline std::string* Part::mutable_name() ABSL_ATTRIBUTE_LIFETIME_BOUND { std::string* _s = _internal_mutable_name(); // @@protoc_insertion_point(field_mutable:Odb.Lib.Protobuf.ProductModel.Part.name) return _s; } inline const std::string& Part::_internal_name() const { + ::google::protobuf::internal::TSanRead(&_impl_); return _impl_.name_.Get(); } inline void Part::_internal_set_name(const std::string& value) { + ::google::protobuf::internal::TSanWrite(&_impl_); _impl_._has_bits_[0] |= 0x00000001u; - _impl_.name_.Set(value, GetArenaForAllocation()); + _impl_.name_.Set(value, GetArena()); } inline std::string* Part::_internal_mutable_name() { + ::google::protobuf::internal::TSanWrite(&_impl_); _impl_._has_bits_[0] |= 0x00000001u; - return _impl_.name_.Mutable(GetArenaForAllocation()); + return _impl_.name_.Mutable( GetArena()); } inline std::string* Part::release_name() { + ::google::protobuf::internal::TSanWrite(&_impl_); // @@protoc_insertion_point(field_release:Odb.Lib.Protobuf.ProductModel.Part.name) - if (!_internal_has_name()) { + if ((_impl_._has_bits_[0] & 0x00000001u) == 0) { return nullptr; } _impl_._has_bits_[0] &= ~0x00000001u; - auto* p = _impl_.name_.Release(); -#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (_impl_.name_.IsDefault()) { - _impl_.name_.Set("", GetArenaForAllocation()); + auto* released = _impl_.name_.Release(); + if (::google::protobuf::internal::DebugHardenForceCopyDefaultString()) { + _impl_.name_.Set("", GetArena()); } -#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING - return p; + return released; } -inline void Part::set_allocated_name(std::string* name) { - if (name != nullptr) { +inline void Part::set_allocated_name(std::string* value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + if (value != nullptr) { _impl_._has_bits_[0] |= 0x00000001u; } else { _impl_._has_bits_[0] &= ~0x00000001u; } - _impl_.name_.SetAllocated(name, GetArenaForAllocation()); -#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (_impl_.name_.IsDefault()) { - _impl_.name_.Set("", GetArenaForAllocation()); + _impl_.name_.SetAllocated(value, GetArena()); + if (::google::protobuf::internal::DebugHardenForceCopyDefaultString() && _impl_.name_.IsDefault()) { + _impl_.name_.Set("", GetArena()); } -#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING // @@protoc_insertion_point(field_set_allocated:Odb.Lib.Protobuf.ProductModel.Part.name) } #ifdef __GNUC__ - #pragma GCC diagnostic pop +#pragma GCC diagnostic pop #endif // __GNUC__ // @@protoc_insertion_point(namespace_scope) - } // namespace ProductModel } // namespace Protobuf } // namespace Lib } // namespace Odb + // @@protoc_insertion_point(global_scope) -#include -#endif // GOOGLE_PROTOBUF_INCLUDED_GOOGLE_PROTOBUF_INCLUDED_part_2eproto +#include "google/protobuf/port_undef.inc" + +#endif // part_2eproto_2epb_2eh diff --git a/OdbDesignLib/ProtoBuf/pin.pb.cc b/OdbDesignLib/ProtoBuf/pin.pb.cc index a51df15d..a244b3af 100644 --- a/OdbDesignLib/ProtoBuf/pin.pb.cc +++ b/OdbDesignLib/ProtoBuf/pin.pb.cc @@ -1,175 +1,267 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE // source: pin.proto +// Protobuf C++ Version: 5.29.2 #include "pin.pb.h" #include - -#include -#include -#include -#include -#include -#include -#include +#include +#include "google/protobuf/io/coded_stream.h" +#include "google/protobuf/generated_message_tctable_impl.h" +#include "google/protobuf/extension_set.h" +#include "google/protobuf/generated_message_util.h" +#include "google/protobuf/wire_format_lite.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) -#include +// Must be included last. +#include "google/protobuf/port_def.inc" PROTOBUF_PRAGMA_INIT_SEG - -namespace _pb = ::PROTOBUF_NAMESPACE_ID; -namespace _pbi = _pb::internal; - +namespace _pb = ::google::protobuf; +namespace _pbi = ::google::protobuf::internal; +namespace _fl = ::google::protobuf::internal::field_layout; namespace Odb { namespace Lib { namespace Protobuf { namespace ProductModel { -PROTOBUF_CONSTEXPR Pin::Pin( - ::_pbi::ConstantInitialized): _impl_{ - /*decltype(_impl_._has_bits_)*/{} - , /*decltype(_impl_._cached_size_)*/{} - , /*decltype(_impl_.name_)*/{&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}} - , /*decltype(_impl_.index_)*/0u} {} + +inline constexpr Pin::Impl_::Impl_( + ::_pbi::ConstantInitialized) noexcept + : _cached_size_{0}, + name_( + &::google::protobuf::internal::fixed_address_empty_string, + ::_pbi::ConstantInitialized()), + index_{0u} {} + +template +PROTOBUF_CONSTEXPR Pin::Pin(::_pbi::ConstantInitialized) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : ::google::protobuf::Message(_class_data_.base()), +#else // PROTOBUF_CUSTOM_VTABLE + : ::google::protobuf::Message(), +#endif // PROTOBUF_CUSTOM_VTABLE + _impl_(::_pbi::ConstantInitialized()) { +} struct PinDefaultTypeInternal { - PROTOBUF_CONSTEXPR PinDefaultTypeInternal() - : _instance(::_pbi::ConstantInitialized{}) {} + PROTOBUF_CONSTEXPR PinDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} ~PinDefaultTypeInternal() {} union { Pin _instance; }; }; -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 PinDefaultTypeInternal _Pin_default_instance_; + +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT ODBDESIGN_EXPORT + PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 PinDefaultTypeInternal _Pin_default_instance_; } // namespace ProductModel } // namespace Protobuf } // namespace Lib } // namespace Odb -static ::_pb::Metadata file_level_metadata_pin_2eproto[1]; -static constexpr ::_pb::EnumDescriptor const** file_level_enum_descriptors_pin_2eproto = nullptr; -static constexpr ::_pb::ServiceDescriptor const** file_level_service_descriptors_pin_2eproto = nullptr; - -const uint32_t TableStruct_pin_2eproto::offsets[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = { - PROTOBUF_FIELD_OFFSET(::Odb::Lib::Protobuf::ProductModel::Pin, _impl_._has_bits_), - PROTOBUF_FIELD_OFFSET(::Odb::Lib::Protobuf::ProductModel::Pin, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - ~0u, // no _inlined_string_donated_ - PROTOBUF_FIELD_OFFSET(::Odb::Lib::Protobuf::ProductModel::Pin, _impl_.name_), - PROTOBUF_FIELD_OFFSET(::Odb::Lib::Protobuf::ProductModel::Pin, _impl_.index_), - 0, - 1, -}; -static const ::_pbi::MigrationSchema schemas[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = { - { 0, 8, -1, sizeof(::Odb::Lib::Protobuf::ProductModel::Pin)}, +static constexpr const ::_pb::EnumDescriptor** + file_level_enum_descriptors_pin_2eproto = nullptr; +static constexpr const ::_pb::ServiceDescriptor** + file_level_service_descriptors_pin_2eproto = nullptr; +const ::uint32_t + TableStruct_pin_2eproto::offsets[] ABSL_ATTRIBUTE_SECTION_VARIABLE( + protodesc_cold) = { + PROTOBUF_FIELD_OFFSET(::Odb::Lib::Protobuf::ProductModel::Pin, _impl_._has_bits_), + PROTOBUF_FIELD_OFFSET(::Odb::Lib::Protobuf::ProductModel::Pin, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + ~0u, // no _split_ + ~0u, // no sizeof(Split) + PROTOBUF_FIELD_OFFSET(::Odb::Lib::Protobuf::ProductModel::Pin, _impl_.name_), + PROTOBUF_FIELD_OFFSET(::Odb::Lib::Protobuf::ProductModel::Pin, _impl_.index_), + 0, + 1, }; +static const ::_pbi::MigrationSchema + schemas[] ABSL_ATTRIBUTE_SECTION_VARIABLE(protodesc_cold) = { + {0, 10, -1, sizeof(::Odb::Lib::Protobuf::ProductModel::Pin)}, +}; static const ::_pb::Message* const file_default_instances[] = { - &::Odb::Lib::Protobuf::ProductModel::_Pin_default_instance_._instance, + &::Odb::Lib::Protobuf::ProductModel::_Pin_default_instance_._instance, }; - -const char descriptor_table_protodef_pin_2eproto[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = - "\n\tpin.proto\022\035Odb.Lib.Protobuf.ProductMod" - "el\"\?\n\003Pin\022\021\n\004name\030\001 \001(\tH\000\210\001\001\022\022\n\005index\030\002 " - "\001(\rH\001\210\001\001B\007\n\005_nameB\010\n\006_indexb\006proto3" - ; -static ::_pbi::once_flag descriptor_table_pin_2eproto_once; -const ::_pbi::DescriptorTable descriptor_table_pin_2eproto = { - false, false, 115, descriptor_table_protodef_pin_2eproto, +const char descriptor_table_protodef_pin_2eproto[] ABSL_ATTRIBUTE_SECTION_VARIABLE( + protodesc_cold) = { + "\n\tpin.proto\022\035Odb.Lib.Protobuf.ProductMod" + "el\"\?\n\003Pin\022\021\n\004name\030\001 \001(\tH\000\210\001\001\022\022\n\005index\030\002 " + "\001(\rH\001\210\001\001B\007\n\005_nameB\010\n\006_indexb\006proto3" +}; +static ::absl::once_flag descriptor_table_pin_2eproto_once; +PROTOBUF_CONSTINIT const ::_pbi::DescriptorTable descriptor_table_pin_2eproto = { + false, + false, + 115, + descriptor_table_protodef_pin_2eproto, "pin.proto", - &descriptor_table_pin_2eproto_once, nullptr, 0, 1, - schemas, file_default_instances, TableStruct_pin_2eproto::offsets, - file_level_metadata_pin_2eproto, file_level_enum_descriptors_pin_2eproto, + &descriptor_table_pin_2eproto_once, + nullptr, + 0, + 1, + schemas, + file_default_instances, + TableStruct_pin_2eproto::offsets, + file_level_enum_descriptors_pin_2eproto, file_level_service_descriptors_pin_2eproto, }; -PROTOBUF_ATTRIBUTE_WEAK const ::_pbi::DescriptorTable* descriptor_table_pin_2eproto_getter() { - return &descriptor_table_pin_2eproto; -} - -// Force running AddDescriptors() at dynamic initialization time. -PROTOBUF_ATTRIBUTE_INIT_PRIORITY2 static ::_pbi::AddDescriptorsRunner dynamic_init_dummy_pin_2eproto(&descriptor_table_pin_2eproto); namespace Odb { namespace Lib { namespace Protobuf { namespace ProductModel { - // =================================================================== class Pin::_Internal { public: - using HasBits = decltype(std::declval()._impl_._has_bits_); - static void set_has_name(HasBits* has_bits) { - (*has_bits)[0] |= 1u; - } - static void set_has_index(HasBits* has_bits) { - (*has_bits)[0] |= 2u; - } + using HasBits = + decltype(std::declval()._impl_._has_bits_); + static constexpr ::int32_t kHasBitsOffset = + 8 * PROTOBUF_FIELD_OFFSET(Pin, _impl_._has_bits_); }; -Pin::Pin(::PROTOBUF_NAMESPACE_ID::Arena* arena, - bool is_message_owned) - : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned) { - SharedCtor(arena, is_message_owned); +Pin::Pin(::google::protobuf::Arena* arena) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : ::google::protobuf::Message(arena, _class_data_.base()) { +#else // PROTOBUF_CUSTOM_VTABLE + : ::google::protobuf::Message(arena) { +#endif // PROTOBUF_CUSTOM_VTABLE + SharedCtor(arena); // @@protoc_insertion_point(arena_constructor:Odb.Lib.Protobuf.ProductModel.Pin) } -Pin::Pin(const Pin& from) - : ::PROTOBUF_NAMESPACE_ID::Message() { - Pin* const _this = this; (void)_this; - new (&_impl_) Impl_{ - decltype(_impl_._has_bits_){from._impl_._has_bits_} - , /*decltype(_impl_._cached_size_)*/{} - , decltype(_impl_.name_){} - , decltype(_impl_.index_){}}; +inline PROTOBUF_NDEBUG_INLINE Pin::Impl_::Impl_( + ::google::protobuf::internal::InternalVisibility visibility, ::google::protobuf::Arena* arena, + const Impl_& from, const ::Odb::Lib::Protobuf::ProductModel::Pin& from_msg) + : _has_bits_{from._has_bits_}, + _cached_size_{0}, + name_(arena, from.name_) {} + +Pin::Pin( + ::google::protobuf::Arena* arena, + const Pin& from) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : ::google::protobuf::Message(arena, _class_data_.base()) { +#else // PROTOBUF_CUSTOM_VTABLE + : ::google::protobuf::Message(arena) { +#endif // PROTOBUF_CUSTOM_VTABLE + Pin* const _this = this; + (void)_this; + _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( + from._internal_metadata_); + new (&_impl_) Impl_(internal_visibility(), arena, from._impl_, from); + _impl_.index_ = from._impl_.index_; - _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); - _impl_.name_.InitDefault(); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - _impl_.name_.Set("", GetArenaForAllocation()); - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (from._internal_has_name()) { - _this->_impl_.name_.Set(from._internal_name(), - _this->GetArenaForAllocation()); - } - _this->_impl_.index_ = from._impl_.index_; // @@protoc_insertion_point(copy_constructor:Odb.Lib.Protobuf.ProductModel.Pin) } - -inline void Pin::SharedCtor( - ::_pb::Arena* arena, bool is_message_owned) { - (void)arena; - (void)is_message_owned; - new (&_impl_) Impl_{ - decltype(_impl_._has_bits_){} - , /*decltype(_impl_._cached_size_)*/{} - , decltype(_impl_.name_){} - , decltype(_impl_.index_){0u} - }; - _impl_.name_.InitDefault(); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - _impl_.name_.Set("", GetArenaForAllocation()); - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING +inline PROTOBUF_NDEBUG_INLINE Pin::Impl_::Impl_( + ::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* arena) + : _cached_size_{0}, + name_(arena) {} + +inline void Pin::SharedCtor(::_pb::Arena* arena) { + new (&_impl_) Impl_(internal_visibility(), arena); + _impl_.index_ = {}; } - Pin::~Pin() { // @@protoc_insertion_point(destructor:Odb.Lib.Protobuf.ProductModel.Pin) - if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) { - (void)arena; - return; - } - SharedDtor(); + SharedDtor(*this); } - -inline void Pin::SharedDtor() { - GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); - _impl_.name_.Destroy(); +inline void Pin::SharedDtor(MessageLite& self) { + Pin& this_ = static_cast(self); + this_._internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); + ABSL_DCHECK(this_.GetArena() == nullptr); + this_._impl_.name_.Destroy(); + this_._impl_.~Impl_(); } -void Pin::SetCachedSize(int size) const { - _impl_._cached_size_.Set(size); +inline void* Pin::PlacementNew_(const void*, void* mem, + ::google::protobuf::Arena* arena) { + return ::new (mem) Pin(arena); +} +constexpr auto Pin::InternalNewImpl_() { + return ::google::protobuf::internal::MessageCreator::CopyInit(sizeof(Pin), + alignof(Pin)); +} +PROTOBUF_CONSTINIT +PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 +const ::google::protobuf::internal::ClassDataFull Pin::_class_data_ = { + ::google::protobuf::internal::ClassData{ + &_Pin_default_instance_._instance, + &_table_.header, + nullptr, // OnDemandRegisterArenaDtor + nullptr, // IsInitialized + &Pin::MergeImpl, + ::google::protobuf::Message::GetNewImpl(), +#if defined(PROTOBUF_CUSTOM_VTABLE) + &Pin::SharedDtor, + ::google::protobuf::Message::GetClearImpl(), &Pin::ByteSizeLong, + &Pin::_InternalSerialize, +#endif // PROTOBUF_CUSTOM_VTABLE + PROTOBUF_FIELD_OFFSET(Pin, _impl_._cached_size_), + false, + }, + &Pin::kDescriptorMethods, + &descriptor_table_pin_2eproto, + nullptr, // tracker +}; +const ::google::protobuf::internal::ClassData* Pin::GetClassData() const { + ::google::protobuf::internal::PrefetchToLocalCache(&_class_data_); + ::google::protobuf::internal::PrefetchToLocalCache(_class_data_.tc_table); + return _class_data_.base(); } +PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 +const ::_pbi::TcParseTable<1, 2, 0, 46, 2> Pin::_table_ = { + { + PROTOBUF_FIELD_OFFSET(Pin, _impl_._has_bits_), + 0, // no _extensions_ + 2, 8, // max_field_number, fast_idx_mask + offsetof(decltype(_table_), field_lookup_table), + 4294967292, // skipmap + offsetof(decltype(_table_), field_entries), + 2, // num_field_entries + 0, // num_aux_entries + offsetof(decltype(_table_), field_names), // no aux_entries + _class_data_.base(), + nullptr, // post_loop_handler + ::_pbi::TcParser::GenericFallback, // fallback + #ifdef PROTOBUF_PREFETCH_PARSE_TABLE + ::_pbi::TcParser::GetTable<::Odb::Lib::Protobuf::ProductModel::Pin>(), // to_prefetch + #endif // PROTOBUF_PREFETCH_PARSE_TABLE + }, {{ + // optional uint32 index = 2; + {::_pbi::TcParser::SingularVarintNoZag1<::uint32_t, offsetof(Pin, _impl_.index_), 1>(), + {16, 1, 0, PROTOBUF_FIELD_OFFSET(Pin, _impl_.index_)}}, + // optional string name = 1; + {::_pbi::TcParser::FastUS1, + {10, 0, 0, PROTOBUF_FIELD_OFFSET(Pin, _impl_.name_)}}, + }}, {{ + 65535, 65535 + }}, {{ + // optional string name = 1; + {PROTOBUF_FIELD_OFFSET(Pin, _impl_.name_), _Internal::kHasBitsOffset + 0, 0, + (0 | ::_fl::kFcOptional | ::_fl::kUtf8String | ::_fl::kRepAString)}, + // optional uint32 index = 2; + {PROTOBUF_FIELD_OFFSET(Pin, _impl_.index_), _Internal::kHasBitsOffset + 1, 0, + (0 | ::_fl::kFcOptional | ::_fl::kUInt32)}, + }}, + // no aux_entries + {{ + "\41\4\0\0\0\0\0\0" + "Odb.Lib.Protobuf.ProductModel.Pin" + "name" + }}, +}; -void Pin::Clear() { +PROTOBUF_NOINLINE void Pin::Clear() { // @@protoc_insertion_point(message_clear_start:Odb.Lib.Protobuf.ProductModel.Pin) - uint32_t cached_has_bits = 0; + ::google::protobuf::internal::TSanWrite(&_impl_); + ::uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; @@ -179,128 +271,87 @@ void Pin::Clear() { } _impl_.index_ = 0u; _impl_._has_bits_.Clear(); - _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); -} - -const char* Pin::_InternalParse(const char* ptr, ::_pbi::ParseContext* ctx) { -#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure - _Internal::HasBits has_bits{}; - while (!ctx->Done(&ptr)) { - uint32_t tag; - ptr = ::_pbi::ReadTag(ptr, &tag); - switch (tag >> 3) { - // optional string name = 1; - case 1: - if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 10)) { - auto str = _internal_mutable_name(); - ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); - CHK_(ptr); - CHK_(::_pbi::VerifyUTF8(str, "Odb.Lib.Protobuf.ProductModel.Pin.name")); - } else - goto handle_unusual; - continue; - // optional uint32 index = 2; - case 2: - if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 16)) { - _Internal::set_has_index(&has_bits); - _impl_.index_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr); - CHK_(ptr); - } else - goto handle_unusual; - continue; - default: - goto handle_unusual; - } // switch - handle_unusual: - if ((tag == 0) || ((tag & 7) == 4)) { - CHK_(ptr); - ctx->SetLastTag(tag); - goto message_done; - } - ptr = UnknownFieldParse( - tag, - _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(), - ptr, ctx); - CHK_(ptr != nullptr); - } // while -message_done: - _impl_._has_bits_.Or(has_bits); - return ptr; -failure: - ptr = nullptr; - goto message_done; -#undef CHK_ + _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); } -uint8_t* Pin::_InternalSerialize( - uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { - // @@protoc_insertion_point(serialize_to_array_start:Odb.Lib.Protobuf.ProductModel.Pin) - uint32_t cached_has_bits = 0; - (void) cached_has_bits; - - // optional string name = 1; - if (_internal_has_name()) { - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( - this->_internal_name().data(), static_cast(this->_internal_name().length()), - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, - "Odb.Lib.Protobuf.ProductModel.Pin.name"); - target = stream->WriteStringMaybeAliased( - 1, this->_internal_name(), target); - } - - // optional uint32 index = 2; - if (_internal_has_index()) { - target = stream->EnsureSpace(target); - target = ::_pbi::WireFormatLite::WriteUInt32ToArray(2, this->_internal_index(), target); - } - - if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = ::_pbi::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:Odb.Lib.Protobuf.ProductModel.Pin) - return target; -} - -size_t Pin::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:Odb.Lib.Protobuf.ProductModel.Pin) - size_t total_size = 0; - - uint32_t cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - cached_has_bits = _impl_._has_bits_[0]; - if (cached_has_bits & 0x00000003u) { - // optional string name = 1; - if (cached_has_bits & 0x00000001u) { - total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( - this->_internal_name()); - } - - // optional uint32 index = 2; - if (cached_has_bits & 0x00000002u) { - total_size += ::_pbi::WireFormatLite::UInt32SizePlusOne(this->_internal_index()); - } - - } - return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); -} - -const ::PROTOBUF_NAMESPACE_ID::Message::ClassData Pin::_class_data_ = { - ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSourceCheck, - Pin::MergeImpl -}; -const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*Pin::GetClassData() const { return &_class_data_; } - - -void Pin::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg) { +#if defined(PROTOBUF_CUSTOM_VTABLE) + ::uint8_t* Pin::_InternalSerialize( + const MessageLite& base, ::uint8_t* target, + ::google::protobuf::io::EpsCopyOutputStream* stream) { + const Pin& this_ = static_cast(base); +#else // PROTOBUF_CUSTOM_VTABLE + ::uint8_t* Pin::_InternalSerialize( + ::uint8_t* target, + ::google::protobuf::io::EpsCopyOutputStream* stream) const { + const Pin& this_ = *this; +#endif // PROTOBUF_CUSTOM_VTABLE + // @@protoc_insertion_point(serialize_to_array_start:Odb.Lib.Protobuf.ProductModel.Pin) + ::uint32_t cached_has_bits = 0; + (void)cached_has_bits; + + cached_has_bits = this_._impl_._has_bits_[0]; + // optional string name = 1; + if (cached_has_bits & 0x00000001u) { + const std::string& _s = this_._internal_name(); + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + _s.data(), static_cast(_s.length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "Odb.Lib.Protobuf.ProductModel.Pin.name"); + target = stream->WriteStringMaybeAliased(1, _s, target); + } + + // optional uint32 index = 2; + if (cached_has_bits & 0x00000002u) { + target = stream->EnsureSpace(target); + target = ::_pbi::WireFormatLite::WriteUInt32ToArray( + 2, this_._internal_index(), target); + } + + if (PROTOBUF_PREDICT_FALSE(this_._internal_metadata_.have_unknown_fields())) { + target = + ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( + this_._internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); + } + // @@protoc_insertion_point(serialize_to_array_end:Odb.Lib.Protobuf.ProductModel.Pin) + return target; + } + +#if defined(PROTOBUF_CUSTOM_VTABLE) + ::size_t Pin::ByteSizeLong(const MessageLite& base) { + const Pin& this_ = static_cast(base); +#else // PROTOBUF_CUSTOM_VTABLE + ::size_t Pin::ByteSizeLong() const { + const Pin& this_ = *this; +#endif // PROTOBUF_CUSTOM_VTABLE + // @@protoc_insertion_point(message_byte_size_start:Odb.Lib.Protobuf.ProductModel.Pin) + ::size_t total_size = 0; + + ::uint32_t cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void)cached_has_bits; + + ::_pbi::Prefetch5LinesFrom7Lines(&this_); + cached_has_bits = this_._impl_._has_bits_[0]; + if (cached_has_bits & 0x00000003u) { + // optional string name = 1; + if (cached_has_bits & 0x00000001u) { + total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize( + this_._internal_name()); + } + // optional uint32 index = 2; + if (cached_has_bits & 0x00000002u) { + total_size += ::_pbi::WireFormatLite::UInt32SizePlusOne( + this_._internal_index()); + } + } + return this_.MaybeComputeUnknownFieldsSize(total_size, + &this_._impl_._cached_size_); + } + +void Pin::MergeImpl(::google::protobuf::MessageLite& to_msg, const ::google::protobuf::MessageLite& from_msg) { auto* const _this = static_cast(&to_msg); auto& from = static_cast(from_msg); // @@protoc_insertion_point(class_specific_merge_from_start:Odb.Lib.Protobuf.ProductModel.Pin) - GOOGLE_DCHECK_NE(&from, _this); - uint32_t cached_has_bits = 0; + ABSL_DCHECK_NE(&from, _this); + ::uint32_t cached_has_bits = 0; (void) cached_has_bits; cached_has_bits = from._impl_._has_bits_[0]; @@ -311,9 +362,9 @@ void Pin::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_N if (cached_has_bits & 0x00000002u) { _this->_impl_.index_ = from._impl_.index_; } - _this->_impl_._has_bits_[0] |= cached_has_bits; } - _this->_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); + _this->_impl_._has_bits_[0] |= cached_has_bits; + _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); } void Pin::CopyFrom(const Pin& from) { @@ -323,40 +374,32 @@ void Pin::CopyFrom(const Pin& from) { MergeFrom(from); } -bool Pin::IsInitialized() const { - return true; -} -void Pin::InternalSwap(Pin* other) { +void Pin::InternalSwap(Pin* PROTOBUF_RESTRICT other) { using std::swap; - auto* lhs_arena = GetArenaForAllocation(); - auto* rhs_arena = other->GetArenaForAllocation(); + auto* arena = GetArena(); + ABSL_DCHECK_EQ(arena, other->GetArena()); _internal_metadata_.InternalSwap(&other->_internal_metadata_); swap(_impl_._has_bits_[0], other->_impl_._has_bits_[0]); - ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( - &_impl_.name_, lhs_arena, - &other->_impl_.name_, rhs_arena - ); - swap(_impl_.index_, other->_impl_.index_); + ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.name_, &other->_impl_.name_, arena); + swap(_impl_.index_, other->_impl_.index_); } -::PROTOBUF_NAMESPACE_ID::Metadata Pin::GetMetadata() const { - return ::_pbi::AssignDescriptors( - &descriptor_table_pin_2eproto_getter, &descriptor_table_pin_2eproto_once, - file_level_metadata_pin_2eproto[0]); +::google::protobuf::Metadata Pin::GetMetadata() const { + return ::google::protobuf::Message::GetMetadataImpl(GetClassData()->full()); } - // @@protoc_insertion_point(namespace_scope) } // namespace ProductModel } // namespace Protobuf } // namespace Lib } // namespace Odb -PROTOBUF_NAMESPACE_OPEN -template<> PROTOBUF_NOINLINE ::Odb::Lib::Protobuf::ProductModel::Pin* -Arena::CreateMaybeMessage< ::Odb::Lib::Protobuf::ProductModel::Pin >(Arena* arena) { - return Arena::CreateMessageInternal< ::Odb::Lib::Protobuf::ProductModel::Pin >(arena); -} -PROTOBUF_NAMESPACE_CLOSE - +namespace google { +namespace protobuf { +} // namespace protobuf +} // namespace google // @@protoc_insertion_point(global_scope) -#include +PROTOBUF_ATTRIBUTE_INIT_PRIORITY2 static ::std::false_type + _static_init2_ PROTOBUF_UNUSED = + (::_pbi::AddDescriptors(&descriptor_table_pin_2eproto), + ::std::false_type{}); +#include "google/protobuf/port_undef.inc" diff --git a/OdbDesignLib/ProtoBuf/pin.pb.h b/OdbDesignLib/ProtoBuf/pin.pb.h index 6378d5c7..801c3abe 100644 --- a/OdbDesignLib/ProtoBuf/pin.pb.h +++ b/OdbDesignLib/ProtoBuf/pin.pb.h @@ -1,49 +1,56 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE // source: pin.proto +// Protobuf C++ Version: 5.29.2 -#ifndef GOOGLE_PROTOBUF_INCLUDED_pin_2eproto -#define GOOGLE_PROTOBUF_INCLUDED_pin_2eproto +#ifndef pin_2eproto_2epb_2eh +#define pin_2eproto_2epb_2eh #include #include - -#include -#if PROTOBUF_VERSION < 3021000 -#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 3021012 < 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. +#include +#include + +#include "google/protobuf/runtime_version.h" +#if PROTOBUF_VERSION != 5029002 +#error "Protobuf C++ gencode is built with an incompatible version of" +#error "Protobuf C++ headers/runtime. See" +#error "https://protobuf.dev/support/cross-version-runtime-guarantee/#cpp" #endif - -#include -#include -#include -#include -#include -#include -#include -#include -#include // IWYU pragma: export -#include // IWYU pragma: export -#include +#include "google/protobuf/io/coded_stream.h" +#include "google/protobuf/arena.h" +#include "google/protobuf/arenastring.h" +#include "google/protobuf/generated_message_tctable_decl.h" +#include "google/protobuf/generated_message_util.h" +#include "google/protobuf/metadata_lite.h" +#include "google/protobuf/generated_message_reflection.h" +#include "google/protobuf/message.h" +#include "google/protobuf/message_lite.h" +#include "google/protobuf/repeated_field.h" // IWYU pragma: export +#include "google/protobuf/extension_set.h" // IWYU pragma: export +#include "google/protobuf/unknown_field_set.h" // @@protoc_insertion_point(includes) -#include + +// Must be included last. +#include "google/protobuf/port_def.inc" + #define PROTOBUF_INTERNAL_EXPORT_pin_2eproto ODBDESIGN_EXPORT -PROTOBUF_NAMESPACE_OPEN + +namespace google { +namespace protobuf { namespace internal { -class AnyMetadata; +template +::absl::string_view GetAnyMessageName(); } // namespace internal -PROTOBUF_NAMESPACE_CLOSE +} // namespace protobuf +} // namespace google // Internal implementation detail -- do not use these members. struct ODBDESIGN_EXPORT TableStruct_pin_2eproto { - static const uint32_t offsets[]; + static const ::uint32_t offsets[]; }; -ODBDESIGN_EXPORT extern const ::PROTOBUF_NAMESPACE_ID::internal::DescriptorTable descriptor_table_pin_2eproto; +ODBDESIGN_EXPORT extern const ::google::protobuf::internal::DescriptorTable + descriptor_table_pin_2eproto; namespace Odb { namespace Lib { namespace Protobuf { @@ -55,9 +62,11 @@ ODBDESIGN_EXPORT extern PinDefaultTypeInternal _Pin_default_instance_; } // namespace Protobuf } // namespace Lib } // namespace Odb -PROTOBUF_NAMESPACE_OPEN -template<> ODBDESIGN_EXPORT ::Odb::Lib::Protobuf::ProductModel::Pin* Arena::CreateMaybeMessage<::Odb::Lib::Protobuf::ProductModel::Pin>(Arena*); -PROTOBUF_NAMESPACE_CLOSE +namespace google { +namespace protobuf { +} // namespace protobuf +} // namespace google + namespace Odb { namespace Lib { namespace Protobuf { @@ -65,30 +74,36 @@ namespace ProductModel { // =================================================================== -class ODBDESIGN_EXPORT Pin final : - public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:Odb.Lib.Protobuf.ProductModel.Pin) */ { + +// ------------------------------------------------------------------- + +class ODBDESIGN_EXPORT Pin final : public ::google::protobuf::Message +/* @@protoc_insertion_point(class_definition:Odb.Lib.Protobuf.ProductModel.Pin) */ { public: inline Pin() : Pin(nullptr) {} - ~Pin() override; - explicit PROTOBUF_CONSTEXPR Pin(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); + ~Pin() PROTOBUF_FINAL; - Pin(const Pin& from); - Pin(Pin&& from) noexcept - : Pin() { - *this = ::std::move(from); +#if defined(PROTOBUF_CUSTOM_VTABLE) + void operator delete(Pin* msg, std::destroying_delete_t) { + SharedDtor(*msg); + ::google::protobuf::internal::SizedDelete(msg, sizeof(Pin)); } +#endif + + template + explicit PROTOBUF_CONSTEXPR Pin( + ::google::protobuf::internal::ConstantInitialized); + inline Pin(const Pin& from) : Pin(nullptr, from) {} + inline Pin(Pin&& from) noexcept + : Pin(nullptr, std::move(from)) {} inline Pin& operator=(const Pin& from) { CopyFrom(from); return *this; } inline Pin& operator=(Pin&& from) noexcept { if (this == &from) return *this; - if (GetOwningArena() == from.GetOwningArena() - #ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetOwningArena() != nullptr - #endif // !PROTOBUF_FORCE_COPY_IN_MOVE - ) { + if (::google::protobuf::internal::CanMoveWithInternalSwap(GetArena(), from.GetArena())) { InternalSwap(&from); } else { CopyFrom(from); @@ -96,13 +111,22 @@ class ODBDESIGN_EXPORT Pin final : return *this; } - static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { + inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const + ABSL_ATTRIBUTE_LIFETIME_BOUND { + return _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance); + } + inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() + ABSL_ATTRIBUTE_LIFETIME_BOUND { + return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); + } + + static const ::google::protobuf::Descriptor* descriptor() { return GetDescriptor(); } - static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { + static const ::google::protobuf::Descriptor* GetDescriptor() { return default_instance().GetMetadata().descriptor; } - static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { + static const ::google::protobuf::Reflection* GetReflection() { return default_instance().GetMetadata().reflection; } static const Pin& default_instance() { @@ -110,251 +134,285 @@ class ODBDESIGN_EXPORT Pin final : } static inline const Pin* internal_default_instance() { return reinterpret_cast( - &_Pin_default_instance_); - } - static constexpr int kIndexInFileMessages = - 0; - - friend void swap(Pin& a, Pin& b) { - a.Swap(&b); + &_Pin_default_instance_); } + static constexpr int kIndexInFileMessages = 0; + friend void swap(Pin& a, Pin& b) { a.Swap(&b); } inline void Swap(Pin* other) { if (other == this) return; - #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetOwningArena() != nullptr && - GetOwningArena() == other->GetOwningArena()) { - #else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetOwningArena() == other->GetOwningArena()) { - #endif // !PROTOBUF_FORCE_COPY_IN_SWAP + if (::google::protobuf::internal::CanUseInternalSwap(GetArena(), other->GetArena())) { InternalSwap(other); } else { - ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); + ::google::protobuf::internal::GenericSwap(this, other); } } void UnsafeArenaSwap(Pin* other) { if (other == this) return; - GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); + ABSL_DCHECK(GetArena() == other->GetArena()); InternalSwap(other); } // implements Message ---------------------------------------------- - Pin* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); + Pin* New(::google::protobuf::Arena* arena = nullptr) const { + return ::google::protobuf::Message::DefaultConstruct(arena); } - using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; + using ::google::protobuf::Message::CopyFrom; void CopyFrom(const Pin& from); - using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; - void MergeFrom( const Pin& from) { - Pin::MergeImpl(*this, from); - } + using ::google::protobuf::Message::MergeFrom; + void MergeFrom(const Pin& from) { Pin::MergeImpl(*this, from); } + private: - static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg); + static void MergeImpl( + ::google::protobuf::MessageLite& to_msg, + const ::google::protobuf::MessageLite& from_msg); + public: - PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; - bool IsInitialized() const final; + bool IsInitialized() const { + return true; + } + ABSL_ATTRIBUTE_REINITIALIZES void Clear() PROTOBUF_FINAL; + #if defined(PROTOBUF_CUSTOM_VTABLE) + private: + static ::size_t ByteSizeLong(const ::google::protobuf::MessageLite& msg); + static ::uint8_t* _InternalSerialize( + const MessageLite& msg, ::uint8_t* target, + ::google::protobuf::io::EpsCopyOutputStream* stream); - size_t ByteSizeLong() const final; - const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final; - uint8_t* _InternalSerialize( - uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const final { return _impl_._cached_size_.Get(); } + public: + ::size_t ByteSizeLong() const { return ByteSizeLong(*this); } + ::uint8_t* _InternalSerialize( + ::uint8_t* target, + ::google::protobuf::io::EpsCopyOutputStream* stream) const { + return _InternalSerialize(*this, target, stream); + } + #else // PROTOBUF_CUSTOM_VTABLE + ::size_t ByteSizeLong() const final; + ::uint8_t* _InternalSerialize( + ::uint8_t* target, + ::google::protobuf::io::EpsCopyOutputStream* stream) const final; + #endif // PROTOBUF_CUSTOM_VTABLE + int GetCachedSize() const { return _impl_._cached_size_.Get(); } private: - void SharedCtor(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned); - void SharedDtor(); - void SetCachedSize(int size) const final; + void SharedCtor(::google::protobuf::Arena* arena); + static void SharedDtor(MessageLite& self); void InternalSwap(Pin* other); - - private: - friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; - static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { - return "Odb.Lib.Protobuf.ProductModel.Pin"; + private: + template + friend ::absl::string_view( + ::google::protobuf::internal::GetAnyMessageName)(); + static ::absl::string_view FullMessageName() { return "Odb.Lib.Protobuf.ProductModel.Pin"; } + + protected: + explicit Pin(::google::protobuf::Arena* arena); + Pin(::google::protobuf::Arena* arena, const Pin& from); + Pin(::google::protobuf::Arena* arena, Pin&& from) noexcept + : Pin(arena) { + *this = ::std::move(from); } - protected: - explicit Pin(::PROTOBUF_NAMESPACE_ID::Arena* arena, - bool is_message_owned = false); - public: - - static const ClassData _class_data_; - const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final; - - ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; + const ::google::protobuf::internal::ClassData* GetClassData() const PROTOBUF_FINAL; + static void* PlacementNew_(const void*, void* mem, + ::google::protobuf::Arena* arena); + static constexpr auto InternalNewImpl_(); + static const ::google::protobuf::internal::ClassDataFull _class_data_; + public: + ::google::protobuf::Metadata GetMetadata() const; // nested types ---------------------------------------------------- // accessors ------------------------------------------------------- - enum : int { kNameFieldNumber = 1, kIndexFieldNumber = 2, }; // optional string name = 1; bool has_name() const; - private: - bool _internal_has_name() const; - public: - void clear_name(); + void clear_name() ; const std::string& name() const; - template - void set_name(ArgT0&& arg0, ArgT... args); + template + void set_name(Arg_&& arg, Args_... args); std::string* mutable_name(); PROTOBUF_NODISCARD std::string* release_name(); - void set_allocated_name(std::string* name); + void set_allocated_name(std::string* value); + private: const std::string& _internal_name() const; - inline PROTOBUF_ALWAYS_INLINE void _internal_set_name(const std::string& value); + inline PROTOBUF_ALWAYS_INLINE void _internal_set_name( + const std::string& value); std::string* _internal_mutable_name(); - public: + public: // optional uint32 index = 2; bool has_index() const; + void clear_index() ; + ::uint32_t index() const; + void set_index(::uint32_t value); + private: - bool _internal_has_index() const; - public: - void clear_index(); - uint32_t index() const; - void set_index(uint32_t value); - private: - uint32_t _internal_index() const; - void _internal_set_index(uint32_t value); - public: + ::uint32_t _internal_index() const; + void _internal_set_index(::uint32_t value); + public: // @@protoc_insertion_point(class_scope:Odb.Lib.Protobuf.ProductModel.Pin) private: class _Internal; - - template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; - typedef void InternalArenaConstructable_; - typedef void DestructorSkippable_; + friend class ::google::protobuf::internal::TcParser; + static const ::google::protobuf::internal::TcParseTable< + 1, 2, 0, + 46, 2> + _table_; + + friend class ::google::protobuf::MessageLite; + friend class ::google::protobuf::Arena; + template + friend class ::google::protobuf::Arena::InternalHelper; + using InternalArenaConstructable_ = void; + using DestructorSkippable_ = void; struct Impl_ { - ::PROTOBUF_NAMESPACE_ID::internal::HasBits<1> _has_bits_; - mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; - ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr name_; - uint32_t index_; + inline explicit constexpr Impl_( + ::google::protobuf::internal::ConstantInitialized) noexcept; + inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* arena); + inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* arena, const Impl_& from, + const Pin& from_msg); + ::google::protobuf::internal::HasBits<1> _has_bits_; + ::google::protobuf::internal::CachedSize _cached_size_; + ::google::protobuf::internal::ArenaStringPtr name_; + ::uint32_t index_; + PROTOBUF_TSAN_DECLARE_MEMBER }; union { Impl_ _impl_; }; friend struct ::TableStruct_pin_2eproto; }; + // =================================================================== + + // =================================================================== + #ifdef __GNUC__ - #pragma GCC diagnostic push - #pragma GCC diagnostic ignored "-Wstrict-aliasing" +#pragma GCC diagnostic push +#pragma GCC diagnostic ignored "-Wstrict-aliasing" #endif // __GNUC__ +// ------------------------------------------------------------------- + // Pin // optional string name = 1; -inline bool Pin::_internal_has_name() const { +inline bool Pin::has_name() const { bool value = (_impl_._has_bits_[0] & 0x00000001u) != 0; return value; } -inline bool Pin::has_name() const { - return _internal_has_name(); -} inline void Pin::clear_name() { + ::google::protobuf::internal::TSanWrite(&_impl_); _impl_.name_.ClearToEmpty(); _impl_._has_bits_[0] &= ~0x00000001u; } -inline const std::string& Pin::name() const { +inline const std::string& Pin::name() const + ABSL_ATTRIBUTE_LIFETIME_BOUND { // @@protoc_insertion_point(field_get:Odb.Lib.Protobuf.ProductModel.Pin.name) return _internal_name(); } -template -inline PROTOBUF_ALWAYS_INLINE -void Pin::set_name(ArgT0&& arg0, ArgT... args) { - _impl_._has_bits_[0] |= 0x00000001u; - _impl_.name_.Set(static_cast(arg0), args..., GetArenaForAllocation()); +template +inline PROTOBUF_ALWAYS_INLINE void Pin::set_name(Arg_&& arg, + Args_... args) { + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_._has_bits_[0] |= 0x00000001u; + _impl_.name_.Set(static_cast(arg), args..., GetArena()); // @@protoc_insertion_point(field_set:Odb.Lib.Protobuf.ProductModel.Pin.name) } -inline std::string* Pin::mutable_name() { +inline std::string* Pin::mutable_name() ABSL_ATTRIBUTE_LIFETIME_BOUND { std::string* _s = _internal_mutable_name(); // @@protoc_insertion_point(field_mutable:Odb.Lib.Protobuf.ProductModel.Pin.name) return _s; } inline const std::string& Pin::_internal_name() const { + ::google::protobuf::internal::TSanRead(&_impl_); return _impl_.name_.Get(); } inline void Pin::_internal_set_name(const std::string& value) { + ::google::protobuf::internal::TSanWrite(&_impl_); _impl_._has_bits_[0] |= 0x00000001u; - _impl_.name_.Set(value, GetArenaForAllocation()); + _impl_.name_.Set(value, GetArena()); } inline std::string* Pin::_internal_mutable_name() { + ::google::protobuf::internal::TSanWrite(&_impl_); _impl_._has_bits_[0] |= 0x00000001u; - return _impl_.name_.Mutable(GetArenaForAllocation()); + return _impl_.name_.Mutable( GetArena()); } inline std::string* Pin::release_name() { + ::google::protobuf::internal::TSanWrite(&_impl_); // @@protoc_insertion_point(field_release:Odb.Lib.Protobuf.ProductModel.Pin.name) - if (!_internal_has_name()) { + if ((_impl_._has_bits_[0] & 0x00000001u) == 0) { return nullptr; } _impl_._has_bits_[0] &= ~0x00000001u; - auto* p = _impl_.name_.Release(); -#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (_impl_.name_.IsDefault()) { - _impl_.name_.Set("", GetArenaForAllocation()); + auto* released = _impl_.name_.Release(); + if (::google::protobuf::internal::DebugHardenForceCopyDefaultString()) { + _impl_.name_.Set("", GetArena()); } -#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING - return p; + return released; } -inline void Pin::set_allocated_name(std::string* name) { - if (name != nullptr) { +inline void Pin::set_allocated_name(std::string* value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + if (value != nullptr) { _impl_._has_bits_[0] |= 0x00000001u; } else { _impl_._has_bits_[0] &= ~0x00000001u; } - _impl_.name_.SetAllocated(name, GetArenaForAllocation()); -#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (_impl_.name_.IsDefault()) { - _impl_.name_.Set("", GetArenaForAllocation()); + _impl_.name_.SetAllocated(value, GetArena()); + if (::google::protobuf::internal::DebugHardenForceCopyDefaultString() && _impl_.name_.IsDefault()) { + _impl_.name_.Set("", GetArena()); } -#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING // @@protoc_insertion_point(field_set_allocated:Odb.Lib.Protobuf.ProductModel.Pin.name) } // optional uint32 index = 2; -inline bool Pin::_internal_has_index() const { +inline bool Pin::has_index() const { bool value = (_impl_._has_bits_[0] & 0x00000002u) != 0; return value; } -inline bool Pin::has_index() const { - return _internal_has_index(); -} inline void Pin::clear_index() { + ::google::protobuf::internal::TSanWrite(&_impl_); _impl_.index_ = 0u; _impl_._has_bits_[0] &= ~0x00000002u; } -inline uint32_t Pin::_internal_index() const { - return _impl_.index_; -} -inline uint32_t Pin::index() const { +inline ::uint32_t Pin::index() const { // @@protoc_insertion_point(field_get:Odb.Lib.Protobuf.ProductModel.Pin.index) return _internal_index(); } -inline void Pin::_internal_set_index(uint32_t value) { - _impl_._has_bits_[0] |= 0x00000002u; - _impl_.index_ = value; -} -inline void Pin::set_index(uint32_t value) { +inline void Pin::set_index(::uint32_t value) { _internal_set_index(value); + _impl_._has_bits_[0] |= 0x00000002u; // @@protoc_insertion_point(field_set:Odb.Lib.Protobuf.ProductModel.Pin.index) } +inline ::uint32_t Pin::_internal_index() const { + ::google::protobuf::internal::TSanRead(&_impl_); + return _impl_.index_; +} +inline void Pin::_internal_set_index(::uint32_t value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.index_ = value; +} #ifdef __GNUC__ - #pragma GCC diagnostic pop +#pragma GCC diagnostic pop #endif // __GNUC__ // @@protoc_insertion_point(namespace_scope) - } // namespace ProductModel } // namespace Protobuf } // namespace Lib } // namespace Odb + // @@protoc_insertion_point(global_scope) -#include -#endif // GOOGLE_PROTOBUF_INCLUDED_GOOGLE_PROTOBUF_INCLUDED_pin_2eproto +#include "google/protobuf/port_undef.inc" + +#endif // pin_2eproto_2epb_2eh diff --git a/OdbDesignLib/ProtoBuf/pinconnection.pb.cc b/OdbDesignLib/ProtoBuf/pinconnection.pb.cc index f9f91d6a..a589ea85 100644 --- a/OdbDesignLib/ProtoBuf/pinconnection.pb.cc +++ b/OdbDesignLib/ProtoBuf/pinconnection.pb.cc @@ -1,216 +1,310 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE // source: pinconnection.proto +// Protobuf C++ Version: 5.29.2 #include "pinconnection.pb.h" #include - -#include -#include -#include -#include -#include -#include -#include +#include +#include "google/protobuf/io/coded_stream.h" +#include "google/protobuf/generated_message_tctable_impl.h" +#include "google/protobuf/extension_set.h" +#include "google/protobuf/generated_message_util.h" +#include "google/protobuf/wire_format_lite.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) -#include +// Must be included last. +#include "google/protobuf/port_def.inc" PROTOBUF_PRAGMA_INIT_SEG - -namespace _pb = ::PROTOBUF_NAMESPACE_ID; -namespace _pbi = _pb::internal; - +namespace _pb = ::google::protobuf; +namespace _pbi = ::google::protobuf::internal; +namespace _fl = ::google::protobuf::internal::field_layout; namespace Odb { namespace Lib { namespace Protobuf { namespace ProductModel { -PROTOBUF_CONSTEXPR PinConnection::PinConnection( - ::_pbi::ConstantInitialized): _impl_{ - /*decltype(_impl_._has_bits_)*/{} - , /*decltype(_impl_._cached_size_)*/{} - , /*decltype(_impl_.name_)*/{&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}} - , /*decltype(_impl_.component_)*/nullptr - , /*decltype(_impl_.pin_)*/nullptr} {} + +inline constexpr PinConnection::Impl_::Impl_( + ::_pbi::ConstantInitialized) noexcept + : _cached_size_{0}, + name_( + &::google::protobuf::internal::fixed_address_empty_string, + ::_pbi::ConstantInitialized()), + component_{nullptr}, + pin_{nullptr} {} + +template +PROTOBUF_CONSTEXPR PinConnection::PinConnection(::_pbi::ConstantInitialized) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : ::google::protobuf::Message(_class_data_.base()), +#else // PROTOBUF_CUSTOM_VTABLE + : ::google::protobuf::Message(), +#endif // PROTOBUF_CUSTOM_VTABLE + _impl_(::_pbi::ConstantInitialized()) { +} struct PinConnectionDefaultTypeInternal { - PROTOBUF_CONSTEXPR PinConnectionDefaultTypeInternal() - : _instance(::_pbi::ConstantInitialized{}) {} + PROTOBUF_CONSTEXPR PinConnectionDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} ~PinConnectionDefaultTypeInternal() {} union { PinConnection _instance; }; }; -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 PinConnectionDefaultTypeInternal _PinConnection_default_instance_; + +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT ODBDESIGN_EXPORT + PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 PinConnectionDefaultTypeInternal _PinConnection_default_instance_; } // namespace ProductModel } // namespace Protobuf } // namespace Lib } // namespace Odb -static ::_pb::Metadata file_level_metadata_pinconnection_2eproto[1]; -static constexpr ::_pb::EnumDescriptor const** file_level_enum_descriptors_pinconnection_2eproto = nullptr; -static constexpr ::_pb::ServiceDescriptor const** file_level_service_descriptors_pinconnection_2eproto = nullptr; - -const uint32_t TableStruct_pinconnection_2eproto::offsets[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = { - PROTOBUF_FIELD_OFFSET(::Odb::Lib::Protobuf::ProductModel::PinConnection, _impl_._has_bits_), - PROTOBUF_FIELD_OFFSET(::Odb::Lib::Protobuf::ProductModel::PinConnection, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - ~0u, // no _inlined_string_donated_ - PROTOBUF_FIELD_OFFSET(::Odb::Lib::Protobuf::ProductModel::PinConnection, _impl_.name_), - PROTOBUF_FIELD_OFFSET(::Odb::Lib::Protobuf::ProductModel::PinConnection, _impl_.component_), - PROTOBUF_FIELD_OFFSET(::Odb::Lib::Protobuf::ProductModel::PinConnection, _impl_.pin_), - 0, - 1, - 2, -}; -static const ::_pbi::MigrationSchema schemas[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = { - { 0, 9, -1, sizeof(::Odb::Lib::Protobuf::ProductModel::PinConnection)}, +static constexpr const ::_pb::EnumDescriptor** + file_level_enum_descriptors_pinconnection_2eproto = nullptr; +static constexpr const ::_pb::ServiceDescriptor** + file_level_service_descriptors_pinconnection_2eproto = nullptr; +const ::uint32_t + TableStruct_pinconnection_2eproto::offsets[] ABSL_ATTRIBUTE_SECTION_VARIABLE( + protodesc_cold) = { + PROTOBUF_FIELD_OFFSET(::Odb::Lib::Protobuf::ProductModel::PinConnection, _impl_._has_bits_), + PROTOBUF_FIELD_OFFSET(::Odb::Lib::Protobuf::ProductModel::PinConnection, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + ~0u, // no _split_ + ~0u, // no sizeof(Split) + PROTOBUF_FIELD_OFFSET(::Odb::Lib::Protobuf::ProductModel::PinConnection, _impl_.name_), + PROTOBUF_FIELD_OFFSET(::Odb::Lib::Protobuf::ProductModel::PinConnection, _impl_.component_), + PROTOBUF_FIELD_OFFSET(::Odb::Lib::Protobuf::ProductModel::PinConnection, _impl_.pin_), + 0, + 1, + 2, }; +static const ::_pbi::MigrationSchema + schemas[] ABSL_ATTRIBUTE_SECTION_VARIABLE(protodesc_cold) = { + {0, 11, -1, sizeof(::Odb::Lib::Protobuf::ProductModel::PinConnection)}, +}; static const ::_pb::Message* const file_default_instances[] = { - &::Odb::Lib::Protobuf::ProductModel::_PinConnection_default_instance_._instance, + &::Odb::Lib::Protobuf::ProductModel::_PinConnection_default_instance_._instance, }; - -const char descriptor_table_protodef_pinconnection_2eproto[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = - "\n\023pinconnection.proto\022\035Odb.Lib.Protobuf." - "ProductModel\032\017component.proto\032\tpin.proto" - "\"\271\001\n\rPinConnection\022\021\n\004name\030\001 \001(\tH\000\210\001\001\022@\n" - "\tcomponent\030\002 \001(\0132(.Odb.Lib.Protobuf.Prod" - "uctModel.ComponentH\001\210\001\001\0224\n\003pin\030\003 \001(\0132\".O" - "db.Lib.Protobuf.ProductModel.PinH\002\210\001\001B\007\n" - "\005_nameB\014\n\n_componentB\006\n\004_pinb\006proto3" - ; -static const ::_pbi::DescriptorTable* const descriptor_table_pinconnection_2eproto_deps[2] = { - &::descriptor_table_component_2eproto, - &::descriptor_table_pin_2eproto, +const char descriptor_table_protodef_pinconnection_2eproto[] ABSL_ATTRIBUTE_SECTION_VARIABLE( + protodesc_cold) = { + "\n\023pinconnection.proto\022\035Odb.Lib.Protobuf." + "ProductModel\032\017component.proto\032\tpin.proto" + "\"\271\001\n\rPinConnection\022\021\n\004name\030\001 \001(\tH\000\210\001\001\022@\n" + "\tcomponent\030\002 \001(\0132(.Odb.Lib.Protobuf.Prod" + "uctModel.ComponentH\001\210\001\001\0224\n\003pin\030\003 \001(\0132\".O" + "db.Lib.Protobuf.ProductModel.PinH\002\210\001\001B\007\n" + "\005_nameB\014\n\n_componentB\006\n\004_pinb\006proto3" }; -static ::_pbi::once_flag descriptor_table_pinconnection_2eproto_once; -const ::_pbi::DescriptorTable descriptor_table_pinconnection_2eproto = { - false, false, 276, descriptor_table_protodef_pinconnection_2eproto, +static const ::_pbi::DescriptorTable* const descriptor_table_pinconnection_2eproto_deps[2] = + { + &::descriptor_table_component_2eproto, + &::descriptor_table_pin_2eproto, +}; +static ::absl::once_flag descriptor_table_pinconnection_2eproto_once; +PROTOBUF_CONSTINIT const ::_pbi::DescriptorTable descriptor_table_pinconnection_2eproto = { + false, + false, + 276, + descriptor_table_protodef_pinconnection_2eproto, "pinconnection.proto", - &descriptor_table_pinconnection_2eproto_once, descriptor_table_pinconnection_2eproto_deps, 2, 1, - schemas, file_default_instances, TableStruct_pinconnection_2eproto::offsets, - file_level_metadata_pinconnection_2eproto, file_level_enum_descriptors_pinconnection_2eproto, + &descriptor_table_pinconnection_2eproto_once, + descriptor_table_pinconnection_2eproto_deps, + 2, + 1, + schemas, + file_default_instances, + TableStruct_pinconnection_2eproto::offsets, + file_level_enum_descriptors_pinconnection_2eproto, file_level_service_descriptors_pinconnection_2eproto, }; -PROTOBUF_ATTRIBUTE_WEAK const ::_pbi::DescriptorTable* descriptor_table_pinconnection_2eproto_getter() { - return &descriptor_table_pinconnection_2eproto; -} - -// Force running AddDescriptors() at dynamic initialization time. -PROTOBUF_ATTRIBUTE_INIT_PRIORITY2 static ::_pbi::AddDescriptorsRunner dynamic_init_dummy_pinconnection_2eproto(&descriptor_table_pinconnection_2eproto); namespace Odb { namespace Lib { namespace Protobuf { namespace ProductModel { - // =================================================================== class PinConnection::_Internal { public: - using HasBits = decltype(std::declval()._impl_._has_bits_); - static void set_has_name(HasBits* has_bits) { - (*has_bits)[0] |= 1u; - } - static const ::Odb::Lib::Protobuf::ProductModel::Component& component(const PinConnection* msg); - static void set_has_component(HasBits* has_bits) { - (*has_bits)[0] |= 2u; - } - static const ::Odb::Lib::Protobuf::ProductModel::Pin& pin(const PinConnection* msg); - static void set_has_pin(HasBits* has_bits) { - (*has_bits)[0] |= 4u; - } + using HasBits = + decltype(std::declval()._impl_._has_bits_); + static constexpr ::int32_t kHasBitsOffset = + 8 * PROTOBUF_FIELD_OFFSET(PinConnection, _impl_._has_bits_); }; -const ::Odb::Lib::Protobuf::ProductModel::Component& -PinConnection::_Internal::component(const PinConnection* msg) { - return *msg->_impl_.component_; -} -const ::Odb::Lib::Protobuf::ProductModel::Pin& -PinConnection::_Internal::pin(const PinConnection* msg) { - return *msg->_impl_.pin_; -} void PinConnection::clear_component() { + ::google::protobuf::internal::TSanWrite(&_impl_); if (_impl_.component_ != nullptr) _impl_.component_->Clear(); _impl_._has_bits_[0] &= ~0x00000002u; } void PinConnection::clear_pin() { + ::google::protobuf::internal::TSanWrite(&_impl_); if (_impl_.pin_ != nullptr) _impl_.pin_->Clear(); _impl_._has_bits_[0] &= ~0x00000004u; } -PinConnection::PinConnection(::PROTOBUF_NAMESPACE_ID::Arena* arena, - bool is_message_owned) - : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned) { - SharedCtor(arena, is_message_owned); +PinConnection::PinConnection(::google::protobuf::Arena* arena) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : ::google::protobuf::Message(arena, _class_data_.base()) { +#else // PROTOBUF_CUSTOM_VTABLE + : ::google::protobuf::Message(arena) { +#endif // PROTOBUF_CUSTOM_VTABLE + SharedCtor(arena); // @@protoc_insertion_point(arena_constructor:Odb.Lib.Protobuf.ProductModel.PinConnection) } -PinConnection::PinConnection(const PinConnection& from) - : ::PROTOBUF_NAMESPACE_ID::Message() { - PinConnection* const _this = this; (void)_this; - new (&_impl_) Impl_{ - decltype(_impl_._has_bits_){from._impl_._has_bits_} - , /*decltype(_impl_._cached_size_)*/{} - , decltype(_impl_.name_){} - , decltype(_impl_.component_){nullptr} - , decltype(_impl_.pin_){nullptr}}; +inline PROTOBUF_NDEBUG_INLINE PinConnection::Impl_::Impl_( + ::google::protobuf::internal::InternalVisibility visibility, ::google::protobuf::Arena* arena, + const Impl_& from, const ::Odb::Lib::Protobuf::ProductModel::PinConnection& from_msg) + : _has_bits_{from._has_bits_}, + _cached_size_{0}, + name_(arena, from.name_) {} + +PinConnection::PinConnection( + ::google::protobuf::Arena* arena, + const PinConnection& from) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : ::google::protobuf::Message(arena, _class_data_.base()) { +#else // PROTOBUF_CUSTOM_VTABLE + : ::google::protobuf::Message(arena) { +#endif // PROTOBUF_CUSTOM_VTABLE + PinConnection* const _this = this; + (void)_this; + _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( + from._internal_metadata_); + new (&_impl_) Impl_(internal_visibility(), arena, from._impl_, from); + ::uint32_t cached_has_bits = _impl_._has_bits_[0]; + _impl_.component_ = (cached_has_bits & 0x00000002u) ? ::google::protobuf::Message::CopyConstruct<::Odb::Lib::Protobuf::ProductModel::Component>( + arena, *from._impl_.component_) + : nullptr; + _impl_.pin_ = (cached_has_bits & 0x00000004u) ? ::google::protobuf::Message::CopyConstruct<::Odb::Lib::Protobuf::ProductModel::Pin>( + arena, *from._impl_.pin_) + : nullptr; - _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); - _impl_.name_.InitDefault(); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - _impl_.name_.Set("", GetArenaForAllocation()); - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (from._internal_has_name()) { - _this->_impl_.name_.Set(from._internal_name(), - _this->GetArenaForAllocation()); - } - if (from._internal_has_component()) { - _this->_impl_.component_ = new ::Odb::Lib::Protobuf::ProductModel::Component(*from._impl_.component_); - } - if (from._internal_has_pin()) { - _this->_impl_.pin_ = new ::Odb::Lib::Protobuf::ProductModel::Pin(*from._impl_.pin_); - } // @@protoc_insertion_point(copy_constructor:Odb.Lib.Protobuf.ProductModel.PinConnection) } - -inline void PinConnection::SharedCtor( - ::_pb::Arena* arena, bool is_message_owned) { - (void)arena; - (void)is_message_owned; - new (&_impl_) Impl_{ - decltype(_impl_._has_bits_){} - , /*decltype(_impl_._cached_size_)*/{} - , decltype(_impl_.name_){} - , decltype(_impl_.component_){nullptr} - , decltype(_impl_.pin_){nullptr} - }; - _impl_.name_.InitDefault(); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - _impl_.name_.Set("", GetArenaForAllocation()); - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING +inline PROTOBUF_NDEBUG_INLINE PinConnection::Impl_::Impl_( + ::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* arena) + : _cached_size_{0}, + name_(arena) {} + +inline void PinConnection::SharedCtor(::_pb::Arena* arena) { + new (&_impl_) Impl_(internal_visibility(), arena); + ::memset(reinterpret_cast(&_impl_) + + offsetof(Impl_, component_), + 0, + offsetof(Impl_, pin_) - + offsetof(Impl_, component_) + + sizeof(Impl_::pin_)); } - PinConnection::~PinConnection() { // @@protoc_insertion_point(destructor:Odb.Lib.Protobuf.ProductModel.PinConnection) - if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) { - (void)arena; - return; - } - SharedDtor(); + SharedDtor(*this); } - -inline void PinConnection::SharedDtor() { - GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); - _impl_.name_.Destroy(); - if (this != internal_default_instance()) delete _impl_.component_; - if (this != internal_default_instance()) delete _impl_.pin_; +inline void PinConnection::SharedDtor(MessageLite& self) { + PinConnection& this_ = static_cast(self); + this_._internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); + ABSL_DCHECK(this_.GetArena() == nullptr); + this_._impl_.name_.Destroy(); + delete this_._impl_.component_; + delete this_._impl_.pin_; + this_._impl_.~Impl_(); } -void PinConnection::SetCachedSize(int size) const { - _impl_._cached_size_.Set(size); +inline void* PinConnection::PlacementNew_(const void*, void* mem, + ::google::protobuf::Arena* arena) { + return ::new (mem) PinConnection(arena); +} +constexpr auto PinConnection::InternalNewImpl_() { + return ::google::protobuf::internal::MessageCreator::CopyInit(sizeof(PinConnection), + alignof(PinConnection)); +} +PROTOBUF_CONSTINIT +PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 +const ::google::protobuf::internal::ClassDataFull PinConnection::_class_data_ = { + ::google::protobuf::internal::ClassData{ + &_PinConnection_default_instance_._instance, + &_table_.header, + nullptr, // OnDemandRegisterArenaDtor + nullptr, // IsInitialized + &PinConnection::MergeImpl, + ::google::protobuf::Message::GetNewImpl(), +#if defined(PROTOBUF_CUSTOM_VTABLE) + &PinConnection::SharedDtor, + ::google::protobuf::Message::GetClearImpl(), &PinConnection::ByteSizeLong, + &PinConnection::_InternalSerialize, +#endif // PROTOBUF_CUSTOM_VTABLE + PROTOBUF_FIELD_OFFSET(PinConnection, _impl_._cached_size_), + false, + }, + &PinConnection::kDescriptorMethods, + &descriptor_table_pinconnection_2eproto, + nullptr, // tracker +}; +const ::google::protobuf::internal::ClassData* PinConnection::GetClassData() const { + ::google::protobuf::internal::PrefetchToLocalCache(&_class_data_); + ::google::protobuf::internal::PrefetchToLocalCache(_class_data_.tc_table); + return _class_data_.base(); } +PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 +const ::_pbi::TcParseTable<2, 3, 2, 56, 2> PinConnection::_table_ = { + { + PROTOBUF_FIELD_OFFSET(PinConnection, _impl_._has_bits_), + 0, // no _extensions_ + 3, 24, // max_field_number, fast_idx_mask + offsetof(decltype(_table_), field_lookup_table), + 4294967288, // skipmap + offsetof(decltype(_table_), field_entries), + 3, // num_field_entries + 2, // num_aux_entries + offsetof(decltype(_table_), aux_entries), + _class_data_.base(), + nullptr, // post_loop_handler + ::_pbi::TcParser::GenericFallback, // fallback + #ifdef PROTOBUF_PREFETCH_PARSE_TABLE + ::_pbi::TcParser::GetTable<::Odb::Lib::Protobuf::ProductModel::PinConnection>(), // to_prefetch + #endif // PROTOBUF_PREFETCH_PARSE_TABLE + }, {{ + {::_pbi::TcParser::MiniParse, {}}, + // optional string name = 1; + {::_pbi::TcParser::FastUS1, + {10, 0, 0, PROTOBUF_FIELD_OFFSET(PinConnection, _impl_.name_)}}, + // optional .Odb.Lib.Protobuf.ProductModel.Component component = 2; + {::_pbi::TcParser::FastMtS1, + {18, 1, 0, PROTOBUF_FIELD_OFFSET(PinConnection, _impl_.component_)}}, + // optional .Odb.Lib.Protobuf.ProductModel.Pin pin = 3; + {::_pbi::TcParser::FastMtS1, + {26, 2, 1, PROTOBUF_FIELD_OFFSET(PinConnection, _impl_.pin_)}}, + }}, {{ + 65535, 65535 + }}, {{ + // optional string name = 1; + {PROTOBUF_FIELD_OFFSET(PinConnection, _impl_.name_), _Internal::kHasBitsOffset + 0, 0, + (0 | ::_fl::kFcOptional | ::_fl::kUtf8String | ::_fl::kRepAString)}, + // optional .Odb.Lib.Protobuf.ProductModel.Component component = 2; + {PROTOBUF_FIELD_OFFSET(PinConnection, _impl_.component_), _Internal::kHasBitsOffset + 1, 0, + (0 | ::_fl::kFcOptional | ::_fl::kMessage | ::_fl::kTvTable)}, + // optional .Odb.Lib.Protobuf.ProductModel.Pin pin = 3; + {PROTOBUF_FIELD_OFFSET(PinConnection, _impl_.pin_), _Internal::kHasBitsOffset + 2, 1, + (0 | ::_fl::kFcOptional | ::_fl::kMessage | ::_fl::kTvTable)}, + }}, {{ + {::_pbi::TcParser::GetTable<::Odb::Lib::Protobuf::ProductModel::Component>()}, + {::_pbi::TcParser::GetTable<::Odb::Lib::Protobuf::ProductModel::Pin>()}, + }}, {{ + "\53\4\0\0\0\0\0\0" + "Odb.Lib.Protobuf.ProductModel.PinConnection" + "name" + }}, +}; -void PinConnection::Clear() { +PROTOBUF_NOINLINE void PinConnection::Clear() { // @@protoc_insertion_point(message_clear_start:Odb.Lib.Protobuf.ProductModel.PinConnection) - uint32_t cached_has_bits = 0; + ::google::protobuf::internal::TSanWrite(&_impl_); + ::uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; @@ -220,161 +314,109 @@ void PinConnection::Clear() { _impl_.name_.ClearNonDefaultToEmpty(); } if (cached_has_bits & 0x00000002u) { - GOOGLE_DCHECK(_impl_.component_ != nullptr); + ABSL_DCHECK(_impl_.component_ != nullptr); _impl_.component_->Clear(); } if (cached_has_bits & 0x00000004u) { - GOOGLE_DCHECK(_impl_.pin_ != nullptr); + ABSL_DCHECK(_impl_.pin_ != nullptr); _impl_.pin_->Clear(); } } _impl_._has_bits_.Clear(); - _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); -} - -const char* PinConnection::_InternalParse(const char* ptr, ::_pbi::ParseContext* ctx) { -#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure - _Internal::HasBits has_bits{}; - while (!ctx->Done(&ptr)) { - uint32_t tag; - ptr = ::_pbi::ReadTag(ptr, &tag); - switch (tag >> 3) { - // optional string name = 1; - case 1: - if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 10)) { - auto str = _internal_mutable_name(); - ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); - CHK_(ptr); - CHK_(::_pbi::VerifyUTF8(str, "Odb.Lib.Protobuf.ProductModel.PinConnection.name")); - } else - goto handle_unusual; - continue; - // optional .Odb.Lib.Protobuf.ProductModel.Component component = 2; - case 2: - if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 18)) { - ptr = ctx->ParseMessage(_internal_mutable_component(), ptr); - CHK_(ptr); - } else - goto handle_unusual; - continue; - // optional .Odb.Lib.Protobuf.ProductModel.Pin pin = 3; - case 3: - if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 26)) { - ptr = ctx->ParseMessage(_internal_mutable_pin(), ptr); - CHK_(ptr); - } else - goto handle_unusual; - continue; - default: - goto handle_unusual; - } // switch - handle_unusual: - if ((tag == 0) || ((tag & 7) == 4)) { - CHK_(ptr); - ctx->SetLastTag(tag); - goto message_done; - } - ptr = UnknownFieldParse( - tag, - _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(), - ptr, ctx); - CHK_(ptr != nullptr); - } // while -message_done: - _impl_._has_bits_.Or(has_bits); - return ptr; -failure: - ptr = nullptr; - goto message_done; -#undef CHK_ + _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); } -uint8_t* PinConnection::_InternalSerialize( - uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { - // @@protoc_insertion_point(serialize_to_array_start:Odb.Lib.Protobuf.ProductModel.PinConnection) - uint32_t cached_has_bits = 0; - (void) cached_has_bits; - - // optional string name = 1; - if (_internal_has_name()) { - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( - this->_internal_name().data(), static_cast(this->_internal_name().length()), - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, - "Odb.Lib.Protobuf.ProductModel.PinConnection.name"); - target = stream->WriteStringMaybeAliased( - 1, this->_internal_name(), target); - } - - // optional .Odb.Lib.Protobuf.ProductModel.Component component = 2; - if (_internal_has_component()) { - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: - InternalWriteMessage(2, _Internal::component(this), - _Internal::component(this).GetCachedSize(), target, stream); - } - - // optional .Odb.Lib.Protobuf.ProductModel.Pin pin = 3; - if (_internal_has_pin()) { - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: - InternalWriteMessage(3, _Internal::pin(this), - _Internal::pin(this).GetCachedSize(), target, stream); - } - - if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = ::_pbi::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:Odb.Lib.Protobuf.ProductModel.PinConnection) - return target; -} - -size_t PinConnection::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:Odb.Lib.Protobuf.ProductModel.PinConnection) - size_t total_size = 0; - - uint32_t cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - cached_has_bits = _impl_._has_bits_[0]; - if (cached_has_bits & 0x00000007u) { - // optional string name = 1; - if (cached_has_bits & 0x00000001u) { - total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( - this->_internal_name()); - } - - // optional .Odb.Lib.Protobuf.ProductModel.Component component = 2; - if (cached_has_bits & 0x00000002u) { - total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( - *_impl_.component_); - } - - // optional .Odb.Lib.Protobuf.ProductModel.Pin pin = 3; - if (cached_has_bits & 0x00000004u) { - total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( - *_impl_.pin_); - } - - } - return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); -} - -const ::PROTOBUF_NAMESPACE_ID::Message::ClassData PinConnection::_class_data_ = { - ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSourceCheck, - PinConnection::MergeImpl -}; -const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*PinConnection::GetClassData() const { return &_class_data_; } - - -void PinConnection::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg) { +#if defined(PROTOBUF_CUSTOM_VTABLE) + ::uint8_t* PinConnection::_InternalSerialize( + const MessageLite& base, ::uint8_t* target, + ::google::protobuf::io::EpsCopyOutputStream* stream) { + const PinConnection& this_ = static_cast(base); +#else // PROTOBUF_CUSTOM_VTABLE + ::uint8_t* PinConnection::_InternalSerialize( + ::uint8_t* target, + ::google::protobuf::io::EpsCopyOutputStream* stream) const { + const PinConnection& this_ = *this; +#endif // PROTOBUF_CUSTOM_VTABLE + // @@protoc_insertion_point(serialize_to_array_start:Odb.Lib.Protobuf.ProductModel.PinConnection) + ::uint32_t cached_has_bits = 0; + (void)cached_has_bits; + + cached_has_bits = this_._impl_._has_bits_[0]; + // optional string name = 1; + if (cached_has_bits & 0x00000001u) { + const std::string& _s = this_._internal_name(); + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + _s.data(), static_cast(_s.length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "Odb.Lib.Protobuf.ProductModel.PinConnection.name"); + target = stream->WriteStringMaybeAliased(1, _s, target); + } + + // optional .Odb.Lib.Protobuf.ProductModel.Component component = 2; + if (cached_has_bits & 0x00000002u) { + target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( + 2, *this_._impl_.component_, this_._impl_.component_->GetCachedSize(), target, + stream); + } + + // optional .Odb.Lib.Protobuf.ProductModel.Pin pin = 3; + if (cached_has_bits & 0x00000004u) { + target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( + 3, *this_._impl_.pin_, this_._impl_.pin_->GetCachedSize(), target, + stream); + } + + if (PROTOBUF_PREDICT_FALSE(this_._internal_metadata_.have_unknown_fields())) { + target = + ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( + this_._internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); + } + // @@protoc_insertion_point(serialize_to_array_end:Odb.Lib.Protobuf.ProductModel.PinConnection) + return target; + } + +#if defined(PROTOBUF_CUSTOM_VTABLE) + ::size_t PinConnection::ByteSizeLong(const MessageLite& base) { + const PinConnection& this_ = static_cast(base); +#else // PROTOBUF_CUSTOM_VTABLE + ::size_t PinConnection::ByteSizeLong() const { + const PinConnection& this_ = *this; +#endif // PROTOBUF_CUSTOM_VTABLE + // @@protoc_insertion_point(message_byte_size_start:Odb.Lib.Protobuf.ProductModel.PinConnection) + ::size_t total_size = 0; + + ::uint32_t cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void)cached_has_bits; + + ::_pbi::Prefetch5LinesFrom7Lines(&this_); + cached_has_bits = this_._impl_._has_bits_[0]; + if (cached_has_bits & 0x00000007u) { + // optional string name = 1; + if (cached_has_bits & 0x00000001u) { + total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize( + this_._internal_name()); + } + // optional .Odb.Lib.Protobuf.ProductModel.Component component = 2; + if (cached_has_bits & 0x00000002u) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::MessageSize(*this_._impl_.component_); + } + // optional .Odb.Lib.Protobuf.ProductModel.Pin pin = 3; + if (cached_has_bits & 0x00000004u) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::MessageSize(*this_._impl_.pin_); + } + } + return this_.MaybeComputeUnknownFieldsSize(total_size, + &this_._impl_._cached_size_); + } + +void PinConnection::MergeImpl(::google::protobuf::MessageLite& to_msg, const ::google::protobuf::MessageLite& from_msg) { auto* const _this = static_cast(&to_msg); auto& from = static_cast(from_msg); + ::google::protobuf::Arena* arena = _this->GetArena(); // @@protoc_insertion_point(class_specific_merge_from_start:Odb.Lib.Protobuf.ProductModel.PinConnection) - GOOGLE_DCHECK_NE(&from, _this); - uint32_t cached_has_bits = 0; + ABSL_DCHECK_NE(&from, _this); + ::uint32_t cached_has_bits = 0; (void) cached_has_bits; cached_has_bits = from._impl_._has_bits_[0]; @@ -383,15 +425,26 @@ void PinConnection::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const :: _this->_internal_set_name(from._internal_name()); } if (cached_has_bits & 0x00000002u) { - _this->_internal_mutable_component()->::Odb::Lib::Protobuf::ProductModel::Component::MergeFrom( - from._internal_component()); + ABSL_DCHECK(from._impl_.component_ != nullptr); + if (_this->_impl_.component_ == nullptr) { + _this->_impl_.component_ = + ::google::protobuf::Message::CopyConstruct<::Odb::Lib::Protobuf::ProductModel::Component>(arena, *from._impl_.component_); + } else { + _this->_impl_.component_->MergeFrom(*from._impl_.component_); + } } if (cached_has_bits & 0x00000004u) { - _this->_internal_mutable_pin()->::Odb::Lib::Protobuf::ProductModel::Pin::MergeFrom( - from._internal_pin()); + ABSL_DCHECK(from._impl_.pin_ != nullptr); + if (_this->_impl_.pin_ == nullptr) { + _this->_impl_.pin_ = + ::google::protobuf::Message::CopyConstruct<::Odb::Lib::Protobuf::ProductModel::Pin>(arena, *from._impl_.pin_); + } else { + _this->_impl_.pin_->MergeFrom(*from._impl_.pin_); + } } } - _this->_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); + _this->_impl_._has_bits_[0] |= cached_has_bits; + _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); } void PinConnection::CopyFrom(const PinConnection& from) { @@ -401,21 +454,15 @@ void PinConnection::CopyFrom(const PinConnection& from) { MergeFrom(from); } -bool PinConnection::IsInitialized() const { - return true; -} -void PinConnection::InternalSwap(PinConnection* other) { +void PinConnection::InternalSwap(PinConnection* PROTOBUF_RESTRICT other) { using std::swap; - auto* lhs_arena = GetArenaForAllocation(); - auto* rhs_arena = other->GetArenaForAllocation(); + auto* arena = GetArena(); + ABSL_DCHECK_EQ(arena, other->GetArena()); _internal_metadata_.InternalSwap(&other->_internal_metadata_); swap(_impl_._has_bits_[0], other->_impl_._has_bits_[0]); - ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( - &_impl_.name_, lhs_arena, - &other->_impl_.name_, rhs_arena - ); - ::PROTOBUF_NAMESPACE_ID::internal::memswap< + ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.name_, &other->_impl_.name_, arena); + ::google::protobuf::internal::memswap< PROTOBUF_FIELD_OFFSET(PinConnection, _impl_.pin_) + sizeof(PinConnection::_impl_.pin_) - PROTOBUF_FIELD_OFFSET(PinConnection, _impl_.component_)>( @@ -423,23 +470,21 @@ void PinConnection::InternalSwap(PinConnection* other) { reinterpret_cast(&other->_impl_.component_)); } -::PROTOBUF_NAMESPACE_ID::Metadata PinConnection::GetMetadata() const { - return ::_pbi::AssignDescriptors( - &descriptor_table_pinconnection_2eproto_getter, &descriptor_table_pinconnection_2eproto_once, - file_level_metadata_pinconnection_2eproto[0]); +::google::protobuf::Metadata PinConnection::GetMetadata() const { + return ::google::protobuf::Message::GetMetadataImpl(GetClassData()->full()); } - // @@protoc_insertion_point(namespace_scope) } // namespace ProductModel } // namespace Protobuf } // namespace Lib } // namespace Odb -PROTOBUF_NAMESPACE_OPEN -template<> PROTOBUF_NOINLINE ::Odb::Lib::Protobuf::ProductModel::PinConnection* -Arena::CreateMaybeMessage< ::Odb::Lib::Protobuf::ProductModel::PinConnection >(Arena* arena) { - return Arena::CreateMessageInternal< ::Odb::Lib::Protobuf::ProductModel::PinConnection >(arena); -} -PROTOBUF_NAMESPACE_CLOSE - +namespace google { +namespace protobuf { +} // namespace protobuf +} // namespace google // @@protoc_insertion_point(global_scope) -#include +PROTOBUF_ATTRIBUTE_INIT_PRIORITY2 static ::std::false_type + _static_init2_ PROTOBUF_UNUSED = + (::_pbi::AddDescriptors(&descriptor_table_pinconnection_2eproto), + ::std::false_type{}); +#include "google/protobuf/port_undef.inc" diff --git a/OdbDesignLib/ProtoBuf/pinconnection.pb.h b/OdbDesignLib/ProtoBuf/pinconnection.pb.h index c169e473..9ca63882 100644 --- a/OdbDesignLib/ProtoBuf/pinconnection.pb.h +++ b/OdbDesignLib/ProtoBuf/pinconnection.pb.h @@ -1,51 +1,58 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE // source: pinconnection.proto +// Protobuf C++ Version: 5.29.2 -#ifndef GOOGLE_PROTOBUF_INCLUDED_pinconnection_2eproto -#define GOOGLE_PROTOBUF_INCLUDED_pinconnection_2eproto +#ifndef pinconnection_2eproto_2epb_2eh +#define pinconnection_2eproto_2epb_2eh #include #include - -#include -#if PROTOBUF_VERSION < 3021000 -#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 3021012 < 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. +#include +#include + +#include "google/protobuf/runtime_version.h" +#if PROTOBUF_VERSION != 5029002 +#error "Protobuf C++ gencode is built with an incompatible version of" +#error "Protobuf C++ headers/runtime. See" +#error "https://protobuf.dev/support/cross-version-runtime-guarantee/#cpp" #endif - -#include -#include -#include -#include -#include -#include -#include -#include -#include // IWYU pragma: export -#include // IWYU pragma: export -#include +#include "google/protobuf/io/coded_stream.h" +#include "google/protobuf/arena.h" +#include "google/protobuf/arenastring.h" +#include "google/protobuf/generated_message_tctable_decl.h" +#include "google/protobuf/generated_message_util.h" +#include "google/protobuf/metadata_lite.h" +#include "google/protobuf/generated_message_reflection.h" +#include "google/protobuf/message.h" +#include "google/protobuf/message_lite.h" +#include "google/protobuf/repeated_field.h" // IWYU pragma: export +#include "google/protobuf/extension_set.h" // IWYU pragma: export +#include "google/protobuf/unknown_field_set.h" #include "component.pb.h" #include "pin.pb.h" // @@protoc_insertion_point(includes) -#include + +// Must be included last. +#include "google/protobuf/port_def.inc" + #define PROTOBUF_INTERNAL_EXPORT_pinconnection_2eproto ODBDESIGN_EXPORT -PROTOBUF_NAMESPACE_OPEN + +namespace google { +namespace protobuf { namespace internal { -class AnyMetadata; +template +::absl::string_view GetAnyMessageName(); } // namespace internal -PROTOBUF_NAMESPACE_CLOSE +} // namespace protobuf +} // namespace google // Internal implementation detail -- do not use these members. struct ODBDESIGN_EXPORT TableStruct_pinconnection_2eproto { - static const uint32_t offsets[]; + static const ::uint32_t offsets[]; }; -ODBDESIGN_EXPORT extern const ::PROTOBUF_NAMESPACE_ID::internal::DescriptorTable descriptor_table_pinconnection_2eproto; +ODBDESIGN_EXPORT extern const ::google::protobuf::internal::DescriptorTable + descriptor_table_pinconnection_2eproto; namespace Odb { namespace Lib { namespace Protobuf { @@ -57,9 +64,11 @@ ODBDESIGN_EXPORT extern PinConnectionDefaultTypeInternal _PinConnection_default_ } // namespace Protobuf } // namespace Lib } // namespace Odb -PROTOBUF_NAMESPACE_OPEN -template<> ODBDESIGN_EXPORT ::Odb::Lib::Protobuf::ProductModel::PinConnection* Arena::CreateMaybeMessage<::Odb::Lib::Protobuf::ProductModel::PinConnection>(Arena*); -PROTOBUF_NAMESPACE_CLOSE +namespace google { +namespace protobuf { +} // namespace protobuf +} // namespace google + namespace Odb { namespace Lib { namespace Protobuf { @@ -67,30 +76,36 @@ namespace ProductModel { // =================================================================== -class ODBDESIGN_EXPORT PinConnection final : - public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:Odb.Lib.Protobuf.ProductModel.PinConnection) */ { + +// ------------------------------------------------------------------- + +class ODBDESIGN_EXPORT PinConnection final : public ::google::protobuf::Message +/* @@protoc_insertion_point(class_definition:Odb.Lib.Protobuf.ProductModel.PinConnection) */ { public: inline PinConnection() : PinConnection(nullptr) {} - ~PinConnection() override; - explicit PROTOBUF_CONSTEXPR PinConnection(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); + ~PinConnection() PROTOBUF_FINAL; - PinConnection(const PinConnection& from); - PinConnection(PinConnection&& from) noexcept - : PinConnection() { - *this = ::std::move(from); +#if defined(PROTOBUF_CUSTOM_VTABLE) + void operator delete(PinConnection* msg, std::destroying_delete_t) { + SharedDtor(*msg); + ::google::protobuf::internal::SizedDelete(msg, sizeof(PinConnection)); } +#endif + + template + explicit PROTOBUF_CONSTEXPR PinConnection( + ::google::protobuf::internal::ConstantInitialized); + inline PinConnection(const PinConnection& from) : PinConnection(nullptr, from) {} + inline PinConnection(PinConnection&& from) noexcept + : PinConnection(nullptr, std::move(from)) {} inline PinConnection& operator=(const PinConnection& from) { CopyFrom(from); return *this; } inline PinConnection& operator=(PinConnection&& from) noexcept { if (this == &from) return *this; - if (GetOwningArena() == from.GetOwningArena() - #ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetOwningArena() != nullptr - #endif // !PROTOBUF_FORCE_COPY_IN_MOVE - ) { + if (::google::protobuf::internal::CanMoveWithInternalSwap(GetArena(), from.GetArena())) { InternalSwap(&from); } else { CopyFrom(from); @@ -98,13 +113,22 @@ class ODBDESIGN_EXPORT PinConnection final : return *this; } - static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { + inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const + ABSL_ATTRIBUTE_LIFETIME_BOUND { + return _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance); + } + inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() + ABSL_ATTRIBUTE_LIFETIME_BOUND { + return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); + } + + static const ::google::protobuf::Descriptor* descriptor() { return GetDescriptor(); } - static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { + static const ::google::protobuf::Descriptor* GetDescriptor() { return default_instance().GetMetadata().descriptor; } - static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { + static const ::google::protobuf::Reflection* GetReflection() { return default_instance().GetMetadata().reflection; } static const PinConnection& default_instance() { @@ -112,81 +136,94 @@ class ODBDESIGN_EXPORT PinConnection final : } static inline const PinConnection* internal_default_instance() { return reinterpret_cast( - &_PinConnection_default_instance_); - } - static constexpr int kIndexInFileMessages = - 0; - - friend void swap(PinConnection& a, PinConnection& b) { - a.Swap(&b); + &_PinConnection_default_instance_); } + static constexpr int kIndexInFileMessages = 0; + friend void swap(PinConnection& a, PinConnection& b) { a.Swap(&b); } inline void Swap(PinConnection* other) { if (other == this) return; - #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetOwningArena() != nullptr && - GetOwningArena() == other->GetOwningArena()) { - #else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetOwningArena() == other->GetOwningArena()) { - #endif // !PROTOBUF_FORCE_COPY_IN_SWAP + if (::google::protobuf::internal::CanUseInternalSwap(GetArena(), other->GetArena())) { InternalSwap(other); } else { - ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); + ::google::protobuf::internal::GenericSwap(this, other); } } void UnsafeArenaSwap(PinConnection* other) { if (other == this) return; - GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); + ABSL_DCHECK(GetArena() == other->GetArena()); InternalSwap(other); } // implements Message ---------------------------------------------- - PinConnection* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); + PinConnection* New(::google::protobuf::Arena* arena = nullptr) const { + return ::google::protobuf::Message::DefaultConstruct(arena); } - using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; + using ::google::protobuf::Message::CopyFrom; void CopyFrom(const PinConnection& from); - using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; - void MergeFrom( const PinConnection& from) { - PinConnection::MergeImpl(*this, from); - } + using ::google::protobuf::Message::MergeFrom; + void MergeFrom(const PinConnection& from) { PinConnection::MergeImpl(*this, from); } + private: - static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg); + static void MergeImpl( + ::google::protobuf::MessageLite& to_msg, + const ::google::protobuf::MessageLite& from_msg); + public: - PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; - bool IsInitialized() const final; + bool IsInitialized() const { + return true; + } + ABSL_ATTRIBUTE_REINITIALIZES void Clear() PROTOBUF_FINAL; + #if defined(PROTOBUF_CUSTOM_VTABLE) + private: + static ::size_t ByteSizeLong(const ::google::protobuf::MessageLite& msg); + static ::uint8_t* _InternalSerialize( + const MessageLite& msg, ::uint8_t* target, + ::google::protobuf::io::EpsCopyOutputStream* stream); - size_t ByteSizeLong() const final; - const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final; - uint8_t* _InternalSerialize( - uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const final { return _impl_._cached_size_.Get(); } + public: + ::size_t ByteSizeLong() const { return ByteSizeLong(*this); } + ::uint8_t* _InternalSerialize( + ::uint8_t* target, + ::google::protobuf::io::EpsCopyOutputStream* stream) const { + return _InternalSerialize(*this, target, stream); + } + #else // PROTOBUF_CUSTOM_VTABLE + ::size_t ByteSizeLong() const final; + ::uint8_t* _InternalSerialize( + ::uint8_t* target, + ::google::protobuf::io::EpsCopyOutputStream* stream) const final; + #endif // PROTOBUF_CUSTOM_VTABLE + int GetCachedSize() const { return _impl_._cached_size_.Get(); } private: - void SharedCtor(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned); - void SharedDtor(); - void SetCachedSize(int size) const final; + void SharedCtor(::google::protobuf::Arena* arena); + static void SharedDtor(MessageLite& self); void InternalSwap(PinConnection* other); - - private: - friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; - static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { - return "Odb.Lib.Protobuf.ProductModel.PinConnection"; + private: + template + friend ::absl::string_view( + ::google::protobuf::internal::GetAnyMessageName)(); + static ::absl::string_view FullMessageName() { return "Odb.Lib.Protobuf.ProductModel.PinConnection"; } + + protected: + explicit PinConnection(::google::protobuf::Arena* arena); + PinConnection(::google::protobuf::Arena* arena, const PinConnection& from); + PinConnection(::google::protobuf::Arena* arena, PinConnection&& from) noexcept + : PinConnection(arena) { + *this = ::std::move(from); } - protected: - explicit PinConnection(::PROTOBUF_NAMESPACE_ID::Arena* arena, - bool is_message_owned = false); - public: - - static const ClassData _class_data_; - const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final; - - ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; + const ::google::protobuf::internal::ClassData* GetClassData() const PROTOBUF_FINAL; + static void* PlacementNew_(const void*, void* mem, + ::google::protobuf::Arena* arena); + static constexpr auto InternalNewImpl_(); + static const ::google::protobuf::internal::ClassDataFull _class_data_; + public: + ::google::protobuf::Metadata GetMetadata() const; // nested types ---------------------------------------------------- // accessors ------------------------------------------------------- - enum : int { kNameFieldNumber = 1, kComponentFieldNumber = 2, @@ -194,179 +231,192 @@ class ODBDESIGN_EXPORT PinConnection final : }; // optional string name = 1; bool has_name() const; - private: - bool _internal_has_name() const; - public: - void clear_name(); + void clear_name() ; const std::string& name() const; - template - void set_name(ArgT0&& arg0, ArgT... args); + template + void set_name(Arg_&& arg, Args_... args); std::string* mutable_name(); PROTOBUF_NODISCARD std::string* release_name(); - void set_allocated_name(std::string* name); + void set_allocated_name(std::string* value); + private: const std::string& _internal_name() const; - inline PROTOBUF_ALWAYS_INLINE void _internal_set_name(const std::string& value); + inline PROTOBUF_ALWAYS_INLINE void _internal_set_name( + const std::string& value); std::string* _internal_mutable_name(); - public: + public: // optional .Odb.Lib.Protobuf.ProductModel.Component component = 2; bool has_component() const; - private: - bool _internal_has_component() const; - public: - void clear_component(); + void clear_component() ; const ::Odb::Lib::Protobuf::ProductModel::Component& component() const; PROTOBUF_NODISCARD ::Odb::Lib::Protobuf::ProductModel::Component* release_component(); ::Odb::Lib::Protobuf::ProductModel::Component* mutable_component(); - void set_allocated_component(::Odb::Lib::Protobuf::ProductModel::Component* component); + void set_allocated_component(::Odb::Lib::Protobuf::ProductModel::Component* value); + void unsafe_arena_set_allocated_component(::Odb::Lib::Protobuf::ProductModel::Component* value); + ::Odb::Lib::Protobuf::ProductModel::Component* unsafe_arena_release_component(); + private: const ::Odb::Lib::Protobuf::ProductModel::Component& _internal_component() const; ::Odb::Lib::Protobuf::ProductModel::Component* _internal_mutable_component(); - public: - void unsafe_arena_set_allocated_component( - ::Odb::Lib::Protobuf::ProductModel::Component* component); - ::Odb::Lib::Protobuf::ProductModel::Component* unsafe_arena_release_component(); + public: // optional .Odb.Lib.Protobuf.ProductModel.Pin pin = 3; bool has_pin() const; - private: - bool _internal_has_pin() const; - public: - void clear_pin(); + void clear_pin() ; const ::Odb::Lib::Protobuf::ProductModel::Pin& pin() const; PROTOBUF_NODISCARD ::Odb::Lib::Protobuf::ProductModel::Pin* release_pin(); ::Odb::Lib::Protobuf::ProductModel::Pin* mutable_pin(); - void set_allocated_pin(::Odb::Lib::Protobuf::ProductModel::Pin* pin); + void set_allocated_pin(::Odb::Lib::Protobuf::ProductModel::Pin* value); + void unsafe_arena_set_allocated_pin(::Odb::Lib::Protobuf::ProductModel::Pin* value); + ::Odb::Lib::Protobuf::ProductModel::Pin* unsafe_arena_release_pin(); + private: const ::Odb::Lib::Protobuf::ProductModel::Pin& _internal_pin() const; ::Odb::Lib::Protobuf::ProductModel::Pin* _internal_mutable_pin(); - public: - void unsafe_arena_set_allocated_pin( - ::Odb::Lib::Protobuf::ProductModel::Pin* pin); - ::Odb::Lib::Protobuf::ProductModel::Pin* unsafe_arena_release_pin(); + public: // @@protoc_insertion_point(class_scope:Odb.Lib.Protobuf.ProductModel.PinConnection) private: class _Internal; - - template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; - typedef void InternalArenaConstructable_; - typedef void DestructorSkippable_; + friend class ::google::protobuf::internal::TcParser; + static const ::google::protobuf::internal::TcParseTable< + 2, 3, 2, + 56, 2> + _table_; + + friend class ::google::protobuf::MessageLite; + friend class ::google::protobuf::Arena; + template + friend class ::google::protobuf::Arena::InternalHelper; + using InternalArenaConstructable_ = void; + using DestructorSkippable_ = void; struct Impl_ { - ::PROTOBUF_NAMESPACE_ID::internal::HasBits<1> _has_bits_; - mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; - ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr name_; + inline explicit constexpr Impl_( + ::google::protobuf::internal::ConstantInitialized) noexcept; + inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* arena); + inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* arena, const Impl_& from, + const PinConnection& from_msg); + ::google::protobuf::internal::HasBits<1> _has_bits_; + ::google::protobuf::internal::CachedSize _cached_size_; + ::google::protobuf::internal::ArenaStringPtr name_; ::Odb::Lib::Protobuf::ProductModel::Component* component_; ::Odb::Lib::Protobuf::ProductModel::Pin* pin_; + PROTOBUF_TSAN_DECLARE_MEMBER }; union { Impl_ _impl_; }; friend struct ::TableStruct_pinconnection_2eproto; }; + // =================================================================== + + // =================================================================== + #ifdef __GNUC__ - #pragma GCC diagnostic push - #pragma GCC diagnostic ignored "-Wstrict-aliasing" +#pragma GCC diagnostic push +#pragma GCC diagnostic ignored "-Wstrict-aliasing" #endif // __GNUC__ +// ------------------------------------------------------------------- + // PinConnection // optional string name = 1; -inline bool PinConnection::_internal_has_name() const { +inline bool PinConnection::has_name() const { bool value = (_impl_._has_bits_[0] & 0x00000001u) != 0; return value; } -inline bool PinConnection::has_name() const { - return _internal_has_name(); -} inline void PinConnection::clear_name() { + ::google::protobuf::internal::TSanWrite(&_impl_); _impl_.name_.ClearToEmpty(); _impl_._has_bits_[0] &= ~0x00000001u; } -inline const std::string& PinConnection::name() const { +inline const std::string& PinConnection::name() const + ABSL_ATTRIBUTE_LIFETIME_BOUND { // @@protoc_insertion_point(field_get:Odb.Lib.Protobuf.ProductModel.PinConnection.name) return _internal_name(); } -template -inline PROTOBUF_ALWAYS_INLINE -void PinConnection::set_name(ArgT0&& arg0, ArgT... args) { - _impl_._has_bits_[0] |= 0x00000001u; - _impl_.name_.Set(static_cast(arg0), args..., GetArenaForAllocation()); +template +inline PROTOBUF_ALWAYS_INLINE void PinConnection::set_name(Arg_&& arg, + Args_... args) { + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_._has_bits_[0] |= 0x00000001u; + _impl_.name_.Set(static_cast(arg), args..., GetArena()); // @@protoc_insertion_point(field_set:Odb.Lib.Protobuf.ProductModel.PinConnection.name) } -inline std::string* PinConnection::mutable_name() { +inline std::string* PinConnection::mutable_name() ABSL_ATTRIBUTE_LIFETIME_BOUND { std::string* _s = _internal_mutable_name(); // @@protoc_insertion_point(field_mutable:Odb.Lib.Protobuf.ProductModel.PinConnection.name) return _s; } inline const std::string& PinConnection::_internal_name() const { + ::google::protobuf::internal::TSanRead(&_impl_); return _impl_.name_.Get(); } inline void PinConnection::_internal_set_name(const std::string& value) { + ::google::protobuf::internal::TSanWrite(&_impl_); _impl_._has_bits_[0] |= 0x00000001u; - _impl_.name_.Set(value, GetArenaForAllocation()); + _impl_.name_.Set(value, GetArena()); } inline std::string* PinConnection::_internal_mutable_name() { + ::google::protobuf::internal::TSanWrite(&_impl_); _impl_._has_bits_[0] |= 0x00000001u; - return _impl_.name_.Mutable(GetArenaForAllocation()); + return _impl_.name_.Mutable( GetArena()); } inline std::string* PinConnection::release_name() { + ::google::protobuf::internal::TSanWrite(&_impl_); // @@protoc_insertion_point(field_release:Odb.Lib.Protobuf.ProductModel.PinConnection.name) - if (!_internal_has_name()) { + if ((_impl_._has_bits_[0] & 0x00000001u) == 0) { return nullptr; } _impl_._has_bits_[0] &= ~0x00000001u; - auto* p = _impl_.name_.Release(); -#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (_impl_.name_.IsDefault()) { - _impl_.name_.Set("", GetArenaForAllocation()); + auto* released = _impl_.name_.Release(); + if (::google::protobuf::internal::DebugHardenForceCopyDefaultString()) { + _impl_.name_.Set("", GetArena()); } -#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING - return p; + return released; } -inline void PinConnection::set_allocated_name(std::string* name) { - if (name != nullptr) { +inline void PinConnection::set_allocated_name(std::string* value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + if (value != nullptr) { _impl_._has_bits_[0] |= 0x00000001u; } else { _impl_._has_bits_[0] &= ~0x00000001u; } - _impl_.name_.SetAllocated(name, GetArenaForAllocation()); -#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (_impl_.name_.IsDefault()) { - _impl_.name_.Set("", GetArenaForAllocation()); + _impl_.name_.SetAllocated(value, GetArena()); + if (::google::protobuf::internal::DebugHardenForceCopyDefaultString() && _impl_.name_.IsDefault()) { + _impl_.name_.Set("", GetArena()); } -#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING // @@protoc_insertion_point(field_set_allocated:Odb.Lib.Protobuf.ProductModel.PinConnection.name) } // optional .Odb.Lib.Protobuf.ProductModel.Component component = 2; -inline bool PinConnection::_internal_has_component() const { +inline bool PinConnection::has_component() const { bool value = (_impl_._has_bits_[0] & 0x00000002u) != 0; PROTOBUF_ASSUME(!value || _impl_.component_ != nullptr); return value; } -inline bool PinConnection::has_component() const { - return _internal_has_component(); -} inline const ::Odb::Lib::Protobuf::ProductModel::Component& PinConnection::_internal_component() const { + ::google::protobuf::internal::TSanRead(&_impl_); const ::Odb::Lib::Protobuf::ProductModel::Component* p = _impl_.component_; - return p != nullptr ? *p : reinterpret_cast( - ::Odb::Lib::Protobuf::ProductModel::_Component_default_instance_); + return p != nullptr ? *p : reinterpret_cast(::Odb::Lib::Protobuf::ProductModel::_Component_default_instance_); } -inline const ::Odb::Lib::Protobuf::ProductModel::Component& PinConnection::component() const { +inline const ::Odb::Lib::Protobuf::ProductModel::Component& PinConnection::component() const ABSL_ATTRIBUTE_LIFETIME_BOUND { // @@protoc_insertion_point(field_get:Odb.Lib.Protobuf.ProductModel.PinConnection.component) return _internal_component(); } -inline void PinConnection::unsafe_arena_set_allocated_component( - ::Odb::Lib::Protobuf::ProductModel::Component* component) { - if (GetArenaForAllocation() == nullptr) { - delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(_impl_.component_); +inline void PinConnection::unsafe_arena_set_allocated_component(::Odb::Lib::Protobuf::ProductModel::Component* value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + if (GetArena() == nullptr) { + delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.component_); } - _impl_.component_ = component; - if (component) { + _impl_.component_ = reinterpret_cast<::Odb::Lib::Protobuf::ProductModel::Component*>(value); + if (value != nullptr) { _impl_._has_bits_[0] |= 0x00000002u; } else { _impl_._has_bits_[0] &= ~0x00000002u; @@ -374,86 +424,90 @@ inline void PinConnection::unsafe_arena_set_allocated_component( // @@protoc_insertion_point(field_unsafe_arena_set_allocated:Odb.Lib.Protobuf.ProductModel.PinConnection.component) } inline ::Odb::Lib::Protobuf::ProductModel::Component* PinConnection::release_component() { + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_._has_bits_[0] &= ~0x00000002u; - ::Odb::Lib::Protobuf::ProductModel::Component* temp = _impl_.component_; + ::Odb::Lib::Protobuf::ProductModel::Component* released = _impl_.component_; _impl_.component_ = nullptr; -#ifdef PROTOBUF_FORCE_COPY_IN_RELEASE - auto* old = reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(temp); - temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); - if (GetArenaForAllocation() == nullptr) { delete old; } -#else // PROTOBUF_FORCE_COPY_IN_RELEASE - if (GetArenaForAllocation() != nullptr) { - temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); - } -#endif // !PROTOBUF_FORCE_COPY_IN_RELEASE - return temp; + if (::google::protobuf::internal::DebugHardenForceCopyInRelease()) { + auto* old = reinterpret_cast<::google::protobuf::MessageLite*>(released); + released = ::google::protobuf::internal::DuplicateIfNonNull(released); + if (GetArena() == nullptr) { + delete old; + } + } else { + if (GetArena() != nullptr) { + released = ::google::protobuf::internal::DuplicateIfNonNull(released); + } + } + return released; } inline ::Odb::Lib::Protobuf::ProductModel::Component* PinConnection::unsafe_arena_release_component() { + ::google::protobuf::internal::TSanWrite(&_impl_); // @@protoc_insertion_point(field_release:Odb.Lib.Protobuf.ProductModel.PinConnection.component) + _impl_._has_bits_[0] &= ~0x00000002u; ::Odb::Lib::Protobuf::ProductModel::Component* temp = _impl_.component_; _impl_.component_ = nullptr; return temp; } inline ::Odb::Lib::Protobuf::ProductModel::Component* PinConnection::_internal_mutable_component() { - _impl_._has_bits_[0] |= 0x00000002u; + ::google::protobuf::internal::TSanWrite(&_impl_); if (_impl_.component_ == nullptr) { - auto* p = CreateMaybeMessage<::Odb::Lib::Protobuf::ProductModel::Component>(GetArenaForAllocation()); - _impl_.component_ = p; + auto* p = ::google::protobuf::Message::DefaultConstruct<::Odb::Lib::Protobuf::ProductModel::Component>(GetArena()); + _impl_.component_ = reinterpret_cast<::Odb::Lib::Protobuf::ProductModel::Component*>(p); } return _impl_.component_; } -inline ::Odb::Lib::Protobuf::ProductModel::Component* PinConnection::mutable_component() { +inline ::Odb::Lib::Protobuf::ProductModel::Component* PinConnection::mutable_component() ABSL_ATTRIBUTE_LIFETIME_BOUND { + _impl_._has_bits_[0] |= 0x00000002u; ::Odb::Lib::Protobuf::ProductModel::Component* _msg = _internal_mutable_component(); // @@protoc_insertion_point(field_mutable:Odb.Lib.Protobuf.ProductModel.PinConnection.component) return _msg; } -inline void PinConnection::set_allocated_component(::Odb::Lib::Protobuf::ProductModel::Component* component) { - ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); +inline void PinConnection::set_allocated_component(::Odb::Lib::Protobuf::ProductModel::Component* value) { + ::google::protobuf::Arena* message_arena = GetArena(); + ::google::protobuf::internal::TSanWrite(&_impl_); if (message_arena == nullptr) { - delete reinterpret_cast< ::PROTOBUF_NAMESPACE_ID::MessageLite*>(_impl_.component_); + delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.component_); } - if (component) { - ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = - ::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena( - reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(component)); + + if (value != nullptr) { + ::google::protobuf::Arena* submessage_arena = reinterpret_cast<::google::protobuf::MessageLite*>(value)->GetArena(); if (message_arena != submessage_arena) { - component = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( - message_arena, component, submessage_arena); + value = ::google::protobuf::internal::GetOwnedMessage(message_arena, value, submessage_arena); } _impl_._has_bits_[0] |= 0x00000002u; } else { _impl_._has_bits_[0] &= ~0x00000002u; } - _impl_.component_ = component; + + _impl_.component_ = reinterpret_cast<::Odb::Lib::Protobuf::ProductModel::Component*>(value); // @@protoc_insertion_point(field_set_allocated:Odb.Lib.Protobuf.ProductModel.PinConnection.component) } // optional .Odb.Lib.Protobuf.ProductModel.Pin pin = 3; -inline bool PinConnection::_internal_has_pin() const { +inline bool PinConnection::has_pin() const { bool value = (_impl_._has_bits_[0] & 0x00000004u) != 0; PROTOBUF_ASSUME(!value || _impl_.pin_ != nullptr); return value; } -inline bool PinConnection::has_pin() const { - return _internal_has_pin(); -} inline const ::Odb::Lib::Protobuf::ProductModel::Pin& PinConnection::_internal_pin() const { + ::google::protobuf::internal::TSanRead(&_impl_); const ::Odb::Lib::Protobuf::ProductModel::Pin* p = _impl_.pin_; - return p != nullptr ? *p : reinterpret_cast( - ::Odb::Lib::Protobuf::ProductModel::_Pin_default_instance_); + return p != nullptr ? *p : reinterpret_cast(::Odb::Lib::Protobuf::ProductModel::_Pin_default_instance_); } -inline const ::Odb::Lib::Protobuf::ProductModel::Pin& PinConnection::pin() const { +inline const ::Odb::Lib::Protobuf::ProductModel::Pin& PinConnection::pin() const ABSL_ATTRIBUTE_LIFETIME_BOUND { // @@protoc_insertion_point(field_get:Odb.Lib.Protobuf.ProductModel.PinConnection.pin) return _internal_pin(); } -inline void PinConnection::unsafe_arena_set_allocated_pin( - ::Odb::Lib::Protobuf::ProductModel::Pin* pin) { - if (GetArenaForAllocation() == nullptr) { - delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(_impl_.pin_); +inline void PinConnection::unsafe_arena_set_allocated_pin(::Odb::Lib::Protobuf::ProductModel::Pin* value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + if (GetArena() == nullptr) { + delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.pin_); } - _impl_.pin_ = pin; - if (pin) { + _impl_.pin_ = reinterpret_cast<::Odb::Lib::Protobuf::ProductModel::Pin*>(value); + if (value != nullptr) { _impl_._has_bits_[0] |= 0x00000004u; } else { _impl_._has_bits_[0] &= ~0x00000004u; @@ -461,73 +515,81 @@ inline void PinConnection::unsafe_arena_set_allocated_pin( // @@protoc_insertion_point(field_unsafe_arena_set_allocated:Odb.Lib.Protobuf.ProductModel.PinConnection.pin) } inline ::Odb::Lib::Protobuf::ProductModel::Pin* PinConnection::release_pin() { + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_._has_bits_[0] &= ~0x00000004u; - ::Odb::Lib::Protobuf::ProductModel::Pin* temp = _impl_.pin_; + ::Odb::Lib::Protobuf::ProductModel::Pin* released = _impl_.pin_; _impl_.pin_ = nullptr; -#ifdef PROTOBUF_FORCE_COPY_IN_RELEASE - auto* old = reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(temp); - temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); - if (GetArenaForAllocation() == nullptr) { delete old; } -#else // PROTOBUF_FORCE_COPY_IN_RELEASE - if (GetArenaForAllocation() != nullptr) { - temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); - } -#endif // !PROTOBUF_FORCE_COPY_IN_RELEASE - return temp; + if (::google::protobuf::internal::DebugHardenForceCopyInRelease()) { + auto* old = reinterpret_cast<::google::protobuf::MessageLite*>(released); + released = ::google::protobuf::internal::DuplicateIfNonNull(released); + if (GetArena() == nullptr) { + delete old; + } + } else { + if (GetArena() != nullptr) { + released = ::google::protobuf::internal::DuplicateIfNonNull(released); + } + } + return released; } inline ::Odb::Lib::Protobuf::ProductModel::Pin* PinConnection::unsafe_arena_release_pin() { + ::google::protobuf::internal::TSanWrite(&_impl_); // @@protoc_insertion_point(field_release:Odb.Lib.Protobuf.ProductModel.PinConnection.pin) + _impl_._has_bits_[0] &= ~0x00000004u; ::Odb::Lib::Protobuf::ProductModel::Pin* temp = _impl_.pin_; _impl_.pin_ = nullptr; return temp; } inline ::Odb::Lib::Protobuf::ProductModel::Pin* PinConnection::_internal_mutable_pin() { - _impl_._has_bits_[0] |= 0x00000004u; + ::google::protobuf::internal::TSanWrite(&_impl_); if (_impl_.pin_ == nullptr) { - auto* p = CreateMaybeMessage<::Odb::Lib::Protobuf::ProductModel::Pin>(GetArenaForAllocation()); - _impl_.pin_ = p; + auto* p = ::google::protobuf::Message::DefaultConstruct<::Odb::Lib::Protobuf::ProductModel::Pin>(GetArena()); + _impl_.pin_ = reinterpret_cast<::Odb::Lib::Protobuf::ProductModel::Pin*>(p); } return _impl_.pin_; } -inline ::Odb::Lib::Protobuf::ProductModel::Pin* PinConnection::mutable_pin() { +inline ::Odb::Lib::Protobuf::ProductModel::Pin* PinConnection::mutable_pin() ABSL_ATTRIBUTE_LIFETIME_BOUND { + _impl_._has_bits_[0] |= 0x00000004u; ::Odb::Lib::Protobuf::ProductModel::Pin* _msg = _internal_mutable_pin(); // @@protoc_insertion_point(field_mutable:Odb.Lib.Protobuf.ProductModel.PinConnection.pin) return _msg; } -inline void PinConnection::set_allocated_pin(::Odb::Lib::Protobuf::ProductModel::Pin* pin) { - ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); +inline void PinConnection::set_allocated_pin(::Odb::Lib::Protobuf::ProductModel::Pin* value) { + ::google::protobuf::Arena* message_arena = GetArena(); + ::google::protobuf::internal::TSanWrite(&_impl_); if (message_arena == nullptr) { - delete reinterpret_cast< ::PROTOBUF_NAMESPACE_ID::MessageLite*>(_impl_.pin_); + delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.pin_); } - if (pin) { - ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = - ::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena( - reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(pin)); + + if (value != nullptr) { + ::google::protobuf::Arena* submessage_arena = reinterpret_cast<::google::protobuf::MessageLite*>(value)->GetArena(); if (message_arena != submessage_arena) { - pin = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( - message_arena, pin, submessage_arena); + value = ::google::protobuf::internal::GetOwnedMessage(message_arena, value, submessage_arena); } _impl_._has_bits_[0] |= 0x00000004u; } else { _impl_._has_bits_[0] &= ~0x00000004u; } - _impl_.pin_ = pin; + + _impl_.pin_ = reinterpret_cast<::Odb::Lib::Protobuf::ProductModel::Pin*>(value); // @@protoc_insertion_point(field_set_allocated:Odb.Lib.Protobuf.ProductModel.PinConnection.pin) } #ifdef __GNUC__ - #pragma GCC diagnostic pop +#pragma GCC diagnostic pop #endif // __GNUC__ // @@protoc_insertion_point(namespace_scope) - } // namespace ProductModel } // namespace Protobuf } // namespace Lib } // namespace Odb + // @@protoc_insertion_point(global_scope) -#include -#endif // GOOGLE_PROTOBUF_INCLUDED_GOOGLE_PROTOBUF_INCLUDED_pinconnection_2eproto +#include "google/protobuf/port_undef.inc" + +#endif // pinconnection_2eproto_2epb_2eh diff --git a/OdbDesignLib/ProtoBuf/standardfontsfile.pb.cc b/OdbDesignLib/ProtoBuf/standardfontsfile.pb.cc index 8954b57c..54b89fa3 100644 --- a/OdbDesignLib/ProtoBuf/standardfontsfile.pb.cc +++ b/OdbDesignLib/ProtoBuf/standardfontsfile.pb.cc @@ -1,508 +1,541 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE // source: standardfontsfile.proto +// Protobuf C++ Version: 5.29.2 #include "standardfontsfile.pb.h" #include - -#include -#include -#include -#include -#include -#include -#include +#include +#include "google/protobuf/io/coded_stream.h" +#include "google/protobuf/generated_message_tctable_impl.h" +#include "google/protobuf/extension_set.h" +#include "google/protobuf/generated_message_util.h" +#include "google/protobuf/wire_format_lite.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) -#include +// Must be included last. +#include "google/protobuf/port_def.inc" PROTOBUF_PRAGMA_INIT_SEG - -namespace _pb = ::PROTOBUF_NAMESPACE_ID; -namespace _pbi = _pb::internal; - +namespace _pb = ::google::protobuf; +namespace _pbi = ::google::protobuf::internal; +namespace _fl = ::google::protobuf::internal::field_layout; namespace Odb { namespace Lib { namespace Protobuf { -PROTOBUF_CONSTEXPR StandardFontsFile_CharacterBlock_LineRecord::StandardFontsFile_CharacterBlock_LineRecord( - ::_pbi::ConstantInitialized): _impl_{ - /*decltype(_impl_._has_bits_)*/{} - , /*decltype(_impl_._cached_size_)*/{} - , /*decltype(_impl_.xstart_)*/0 - , /*decltype(_impl_.ystart_)*/0 - , /*decltype(_impl_.xend_)*/0 - , /*decltype(_impl_.yend_)*/0 - , /*decltype(_impl_.polarity_)*/0 - , /*decltype(_impl_.shape_)*/0 - , /*decltype(_impl_.width_)*/0} {} + +inline constexpr StandardFontsFile_CharacterBlock_LineRecord::Impl_::Impl_( + ::_pbi::ConstantInitialized) noexcept + : _cached_size_{0}, + xstart_{0}, + ystart_{0}, + xend_{0}, + yend_{0}, + polarity_{static_cast< ::Odb::Lib::Protobuf::Polarity >(0)}, + shape_{static_cast< ::Odb::Lib::Protobuf::LineShape >(0)}, + width_{0} {} + +template +PROTOBUF_CONSTEXPR StandardFontsFile_CharacterBlock_LineRecord::StandardFontsFile_CharacterBlock_LineRecord(::_pbi::ConstantInitialized) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : ::google::protobuf::Message(_class_data_.base()), +#else // PROTOBUF_CUSTOM_VTABLE + : ::google::protobuf::Message(), +#endif // PROTOBUF_CUSTOM_VTABLE + _impl_(::_pbi::ConstantInitialized()) { +} struct StandardFontsFile_CharacterBlock_LineRecordDefaultTypeInternal { - PROTOBUF_CONSTEXPR StandardFontsFile_CharacterBlock_LineRecordDefaultTypeInternal() - : _instance(::_pbi::ConstantInitialized{}) {} + PROTOBUF_CONSTEXPR StandardFontsFile_CharacterBlock_LineRecordDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} ~StandardFontsFile_CharacterBlock_LineRecordDefaultTypeInternal() {} union { StandardFontsFile_CharacterBlock_LineRecord _instance; }; }; -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 StandardFontsFile_CharacterBlock_LineRecordDefaultTypeInternal _StandardFontsFile_CharacterBlock_LineRecord_default_instance_; -PROTOBUF_CONSTEXPR StandardFontsFile_CharacterBlock::StandardFontsFile_CharacterBlock( - ::_pbi::ConstantInitialized): _impl_{ - /*decltype(_impl_._has_bits_)*/{} - , /*decltype(_impl_._cached_size_)*/{} - , /*decltype(_impl_.m_linerecords_)*/{} - , /*decltype(_impl_.character_)*/{&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}}} {} + +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT ODBDESIGN_EXPORT + PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 StandardFontsFile_CharacterBlock_LineRecordDefaultTypeInternal _StandardFontsFile_CharacterBlock_LineRecord_default_instance_; + +inline constexpr StandardFontsFile_CharacterBlock::Impl_::Impl_( + ::_pbi::ConstantInitialized) noexcept + : _cached_size_{0}, + m_linerecords_{}, + character_( + &::google::protobuf::internal::fixed_address_empty_string, + ::_pbi::ConstantInitialized()) {} + +template +PROTOBUF_CONSTEXPR StandardFontsFile_CharacterBlock::StandardFontsFile_CharacterBlock(::_pbi::ConstantInitialized) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : ::google::protobuf::Message(_class_data_.base()), +#else // PROTOBUF_CUSTOM_VTABLE + : ::google::protobuf::Message(), +#endif // PROTOBUF_CUSTOM_VTABLE + _impl_(::_pbi::ConstantInitialized()) { +} struct StandardFontsFile_CharacterBlockDefaultTypeInternal { - PROTOBUF_CONSTEXPR StandardFontsFile_CharacterBlockDefaultTypeInternal() - : _instance(::_pbi::ConstantInitialized{}) {} + PROTOBUF_CONSTEXPR StandardFontsFile_CharacterBlockDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} ~StandardFontsFile_CharacterBlockDefaultTypeInternal() {} union { StandardFontsFile_CharacterBlock _instance; }; }; -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 StandardFontsFile_CharacterBlockDefaultTypeInternal _StandardFontsFile_CharacterBlock_default_instance_; -PROTOBUF_CONSTEXPR StandardFontsFile::StandardFontsFile( - ::_pbi::ConstantInitialized): _impl_{ - /*decltype(_impl_._has_bits_)*/{} - , /*decltype(_impl_._cached_size_)*/{} - , /*decltype(_impl_.m_characterblocks_)*/{} - , /*decltype(_impl_.xsize_)*/0 - , /*decltype(_impl_.ysize_)*/0 - , /*decltype(_impl_.offset_)*/0} {} + +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT ODBDESIGN_EXPORT + PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 StandardFontsFile_CharacterBlockDefaultTypeInternal _StandardFontsFile_CharacterBlock_default_instance_; + +inline constexpr StandardFontsFile::Impl_::Impl_( + ::_pbi::ConstantInitialized) noexcept + : _cached_size_{0}, + m_characterblocks_{}, + xsize_{0}, + ysize_{0}, + offset_{0} {} + +template +PROTOBUF_CONSTEXPR StandardFontsFile::StandardFontsFile(::_pbi::ConstantInitialized) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : ::google::protobuf::Message(_class_data_.base()), +#else // PROTOBUF_CUSTOM_VTABLE + : ::google::protobuf::Message(), +#endif // PROTOBUF_CUSTOM_VTABLE + _impl_(::_pbi::ConstantInitialized()) { +} struct StandardFontsFileDefaultTypeInternal { - PROTOBUF_CONSTEXPR StandardFontsFileDefaultTypeInternal() - : _instance(::_pbi::ConstantInitialized{}) {} + PROTOBUF_CONSTEXPR StandardFontsFileDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} ~StandardFontsFileDefaultTypeInternal() {} union { StandardFontsFile _instance; }; }; -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 StandardFontsFileDefaultTypeInternal _StandardFontsFile_default_instance_; + +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT ODBDESIGN_EXPORT + PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 StandardFontsFileDefaultTypeInternal _StandardFontsFile_default_instance_; } // namespace Protobuf } // namespace Lib } // namespace Odb -static ::_pb::Metadata file_level_metadata_standardfontsfile_2eproto[3]; -static constexpr ::_pb::EnumDescriptor const** file_level_enum_descriptors_standardfontsfile_2eproto = nullptr; -static constexpr ::_pb::ServiceDescriptor const** file_level_service_descriptors_standardfontsfile_2eproto = nullptr; - -const uint32_t TableStruct_standardfontsfile_2eproto::offsets[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = { - PROTOBUF_FIELD_OFFSET(::Odb::Lib::Protobuf::StandardFontsFile_CharacterBlock_LineRecord, _impl_._has_bits_), - PROTOBUF_FIELD_OFFSET(::Odb::Lib::Protobuf::StandardFontsFile_CharacterBlock_LineRecord, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - ~0u, // no _inlined_string_donated_ - PROTOBUF_FIELD_OFFSET(::Odb::Lib::Protobuf::StandardFontsFile_CharacterBlock_LineRecord, _impl_.xstart_), - PROTOBUF_FIELD_OFFSET(::Odb::Lib::Protobuf::StandardFontsFile_CharacterBlock_LineRecord, _impl_.ystart_), - PROTOBUF_FIELD_OFFSET(::Odb::Lib::Protobuf::StandardFontsFile_CharacterBlock_LineRecord, _impl_.xend_), - PROTOBUF_FIELD_OFFSET(::Odb::Lib::Protobuf::StandardFontsFile_CharacterBlock_LineRecord, _impl_.yend_), - PROTOBUF_FIELD_OFFSET(::Odb::Lib::Protobuf::StandardFontsFile_CharacterBlock_LineRecord, _impl_.polarity_), - PROTOBUF_FIELD_OFFSET(::Odb::Lib::Protobuf::StandardFontsFile_CharacterBlock_LineRecord, _impl_.shape_), - PROTOBUF_FIELD_OFFSET(::Odb::Lib::Protobuf::StandardFontsFile_CharacterBlock_LineRecord, _impl_.width_), - 0, - 1, - 2, - 3, - 4, - 5, - 6, - PROTOBUF_FIELD_OFFSET(::Odb::Lib::Protobuf::StandardFontsFile_CharacterBlock, _impl_._has_bits_), - PROTOBUF_FIELD_OFFSET(::Odb::Lib::Protobuf::StandardFontsFile_CharacterBlock, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - ~0u, // no _inlined_string_donated_ - PROTOBUF_FIELD_OFFSET(::Odb::Lib::Protobuf::StandardFontsFile_CharacterBlock, _impl_.character_), - PROTOBUF_FIELD_OFFSET(::Odb::Lib::Protobuf::StandardFontsFile_CharacterBlock, _impl_.m_linerecords_), - 0, - ~0u, - PROTOBUF_FIELD_OFFSET(::Odb::Lib::Protobuf::StandardFontsFile, _impl_._has_bits_), - PROTOBUF_FIELD_OFFSET(::Odb::Lib::Protobuf::StandardFontsFile, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - ~0u, // no _inlined_string_donated_ - PROTOBUF_FIELD_OFFSET(::Odb::Lib::Protobuf::StandardFontsFile, _impl_.xsize_), - PROTOBUF_FIELD_OFFSET(::Odb::Lib::Protobuf::StandardFontsFile, _impl_.ysize_), - PROTOBUF_FIELD_OFFSET(::Odb::Lib::Protobuf::StandardFontsFile, _impl_.offset_), - PROTOBUF_FIELD_OFFSET(::Odb::Lib::Protobuf::StandardFontsFile, _impl_.m_characterblocks_), - 0, - 1, - 2, - ~0u, -}; -static const ::_pbi::MigrationSchema schemas[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = { - { 0, 13, -1, sizeof(::Odb::Lib::Protobuf::StandardFontsFile_CharacterBlock_LineRecord)}, - { 20, 28, -1, sizeof(::Odb::Lib::Protobuf::StandardFontsFile_CharacterBlock)}, - { 30, 40, -1, sizeof(::Odb::Lib::Protobuf::StandardFontsFile)}, +static constexpr const ::_pb::EnumDescriptor** + file_level_enum_descriptors_standardfontsfile_2eproto = nullptr; +static constexpr const ::_pb::ServiceDescriptor** + file_level_service_descriptors_standardfontsfile_2eproto = nullptr; +const ::uint32_t + TableStruct_standardfontsfile_2eproto::offsets[] ABSL_ATTRIBUTE_SECTION_VARIABLE( + protodesc_cold) = { + PROTOBUF_FIELD_OFFSET(::Odb::Lib::Protobuf::StandardFontsFile_CharacterBlock_LineRecord, _impl_._has_bits_), + PROTOBUF_FIELD_OFFSET(::Odb::Lib::Protobuf::StandardFontsFile_CharacterBlock_LineRecord, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + ~0u, // no _split_ + ~0u, // no sizeof(Split) + PROTOBUF_FIELD_OFFSET(::Odb::Lib::Protobuf::StandardFontsFile_CharacterBlock_LineRecord, _impl_.xstart_), + PROTOBUF_FIELD_OFFSET(::Odb::Lib::Protobuf::StandardFontsFile_CharacterBlock_LineRecord, _impl_.ystart_), + PROTOBUF_FIELD_OFFSET(::Odb::Lib::Protobuf::StandardFontsFile_CharacterBlock_LineRecord, _impl_.xend_), + PROTOBUF_FIELD_OFFSET(::Odb::Lib::Protobuf::StandardFontsFile_CharacterBlock_LineRecord, _impl_.yend_), + PROTOBUF_FIELD_OFFSET(::Odb::Lib::Protobuf::StandardFontsFile_CharacterBlock_LineRecord, _impl_.polarity_), + PROTOBUF_FIELD_OFFSET(::Odb::Lib::Protobuf::StandardFontsFile_CharacterBlock_LineRecord, _impl_.shape_), + PROTOBUF_FIELD_OFFSET(::Odb::Lib::Protobuf::StandardFontsFile_CharacterBlock_LineRecord, _impl_.width_), + 0, + 1, + 2, + 3, + 4, + 5, + 6, + PROTOBUF_FIELD_OFFSET(::Odb::Lib::Protobuf::StandardFontsFile_CharacterBlock, _impl_._has_bits_), + PROTOBUF_FIELD_OFFSET(::Odb::Lib::Protobuf::StandardFontsFile_CharacterBlock, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + ~0u, // no _split_ + ~0u, // no sizeof(Split) + PROTOBUF_FIELD_OFFSET(::Odb::Lib::Protobuf::StandardFontsFile_CharacterBlock, _impl_.character_), + PROTOBUF_FIELD_OFFSET(::Odb::Lib::Protobuf::StandardFontsFile_CharacterBlock, _impl_.m_linerecords_), + 0, + ~0u, + PROTOBUF_FIELD_OFFSET(::Odb::Lib::Protobuf::StandardFontsFile, _impl_._has_bits_), + PROTOBUF_FIELD_OFFSET(::Odb::Lib::Protobuf::StandardFontsFile, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + ~0u, // no _split_ + ~0u, // no sizeof(Split) + PROTOBUF_FIELD_OFFSET(::Odb::Lib::Protobuf::StandardFontsFile, _impl_.xsize_), + PROTOBUF_FIELD_OFFSET(::Odb::Lib::Protobuf::StandardFontsFile, _impl_.ysize_), + PROTOBUF_FIELD_OFFSET(::Odb::Lib::Protobuf::StandardFontsFile, _impl_.offset_), + PROTOBUF_FIELD_OFFSET(::Odb::Lib::Protobuf::StandardFontsFile, _impl_.m_characterblocks_), + 0, + 1, + 2, + ~0u, }; +static const ::_pbi::MigrationSchema + schemas[] ABSL_ATTRIBUTE_SECTION_VARIABLE(protodesc_cold) = { + {0, 15, -1, sizeof(::Odb::Lib::Protobuf::StandardFontsFile_CharacterBlock_LineRecord)}, + {22, 32, -1, sizeof(::Odb::Lib::Protobuf::StandardFontsFile_CharacterBlock)}, + {34, 46, -1, sizeof(::Odb::Lib::Protobuf::StandardFontsFile)}, +}; static const ::_pb::Message* const file_default_instances[] = { - &::Odb::Lib::Protobuf::_StandardFontsFile_CharacterBlock_LineRecord_default_instance_._instance, - &::Odb::Lib::Protobuf::_StandardFontsFile_CharacterBlock_default_instance_._instance, - &::Odb::Lib::Protobuf::_StandardFontsFile_default_instance_._instance, + &::Odb::Lib::Protobuf::_StandardFontsFile_CharacterBlock_LineRecord_default_instance_._instance, + &::Odb::Lib::Protobuf::_StandardFontsFile_CharacterBlock_default_instance_._instance, + &::Odb::Lib::Protobuf::_StandardFontsFile_default_instance_._instance, }; - -const char descriptor_table_protodef_standardfontsfile_2eproto[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = - "\n\027standardfontsfile.proto\022\020Odb.Lib.Proto" - "buf\032\013enums.proto\"\355\004\n\021StandardFontsFile\022\022" - "\n\005xSize\030\001 \001(\002H\000\210\001\001\022\022\n\005ySize\030\002 \001(\002H\001\210\001\001\022\023" - "\n\006offset\030\003 \001(\002H\002\210\001\001\022M\n\021m_characterBlocks" - "\030\004 \003(\01322.Odb.Lib.Protobuf.StandardFontsF" - "ile.CharacterBlock\032\254\003\n\016CharacterBlock\022\026\n" - "\tcharacter\030\001 \001(\tH\000\210\001\001\022T\n\rm_lineRecords\030\002" - " \003(\0132=.Odb.Lib.Protobuf.StandardFontsFil" - "e.CharacterBlock.LineRecord\032\235\002\n\nLineReco" - "rd\022\023\n\006xStart\030\001 \001(\002H\000\210\001\001\022\023\n\006yStart\030\002 \001(\002H" - "\001\210\001\001\022\021\n\004xEnd\030\003 \001(\002H\002\210\001\001\022\021\n\004yEnd\030\004 \001(\002H\003\210" - "\001\001\0221\n\010polarity\030\005 \001(\0162\032.Odb.Lib.Protobuf." - "PolarityH\004\210\001\001\022/\n\005shape\030\006 \001(\0162\033.Odb.Lib.P" - "rotobuf.LineShapeH\005\210\001\001\022\022\n\005width\030\007 \001(\002H\006\210" - "\001\001B\t\n\007_xStartB\t\n\007_yStartB\007\n\005_xEndB\007\n\005_yE" - "ndB\013\n\t_polarityB\010\n\006_shapeB\010\n\006_widthB\014\n\n_" - "characterB\010\n\006_xSizeB\010\n\006_ySizeB\t\n\007_offset" - "b\006proto3" - ; -static const ::_pbi::DescriptorTable* const descriptor_table_standardfontsfile_2eproto_deps[1] = { - &::descriptor_table_enums_2eproto, +const char descriptor_table_protodef_standardfontsfile_2eproto[] ABSL_ATTRIBUTE_SECTION_VARIABLE( + protodesc_cold) = { + "\n\027standardfontsfile.proto\022\020Odb.Lib.Proto" + "buf\032\013enums.proto\"\355\004\n\021StandardFontsFile\022\022" + "\n\005xSize\030\001 \001(\002H\000\210\001\001\022\022\n\005ySize\030\002 \001(\002H\001\210\001\001\022\023" + "\n\006offset\030\003 \001(\002H\002\210\001\001\022M\n\021m_characterBlocks" + "\030\004 \003(\01322.Odb.Lib.Protobuf.StandardFontsF" + "ile.CharacterBlock\032\254\003\n\016CharacterBlock\022\026\n" + "\tcharacter\030\001 \001(\tH\000\210\001\001\022T\n\rm_lineRecords\030\002" + " \003(\0132=.Odb.Lib.Protobuf.StandardFontsFil" + "e.CharacterBlock.LineRecord\032\235\002\n\nLineReco" + "rd\022\023\n\006xStart\030\001 \001(\002H\000\210\001\001\022\023\n\006yStart\030\002 \001(\002H" + "\001\210\001\001\022\021\n\004xEnd\030\003 \001(\002H\002\210\001\001\022\021\n\004yEnd\030\004 \001(\002H\003\210" + "\001\001\0221\n\010polarity\030\005 \001(\0162\032.Odb.Lib.Protobuf." + "PolarityH\004\210\001\001\022/\n\005shape\030\006 \001(\0162\033.Odb.Lib.P" + "rotobuf.LineShapeH\005\210\001\001\022\022\n\005width\030\007 \001(\002H\006\210" + "\001\001B\t\n\007_xStartB\t\n\007_yStartB\007\n\005_xEndB\007\n\005_yE" + "ndB\013\n\t_polarityB\010\n\006_shapeB\010\n\006_widthB\014\n\n_" + "characterB\010\n\006_xSizeB\010\n\006_ySizeB\t\n\007_offset" + "b\006proto3" +}; +static const ::_pbi::DescriptorTable* const descriptor_table_standardfontsfile_2eproto_deps[1] = + { + &::descriptor_table_enums_2eproto, }; -static ::_pbi::once_flag descriptor_table_standardfontsfile_2eproto_once; -const ::_pbi::DescriptorTable descriptor_table_standardfontsfile_2eproto = { - false, false, 688, descriptor_table_protodef_standardfontsfile_2eproto, +static ::absl::once_flag descriptor_table_standardfontsfile_2eproto_once; +PROTOBUF_CONSTINIT const ::_pbi::DescriptorTable descriptor_table_standardfontsfile_2eproto = { + false, + false, + 688, + descriptor_table_protodef_standardfontsfile_2eproto, "standardfontsfile.proto", - &descriptor_table_standardfontsfile_2eproto_once, descriptor_table_standardfontsfile_2eproto_deps, 1, 3, - schemas, file_default_instances, TableStruct_standardfontsfile_2eproto::offsets, - file_level_metadata_standardfontsfile_2eproto, file_level_enum_descriptors_standardfontsfile_2eproto, + &descriptor_table_standardfontsfile_2eproto_once, + descriptor_table_standardfontsfile_2eproto_deps, + 1, + 3, + schemas, + file_default_instances, + TableStruct_standardfontsfile_2eproto::offsets, + file_level_enum_descriptors_standardfontsfile_2eproto, file_level_service_descriptors_standardfontsfile_2eproto, }; -PROTOBUF_ATTRIBUTE_WEAK const ::_pbi::DescriptorTable* descriptor_table_standardfontsfile_2eproto_getter() { - return &descriptor_table_standardfontsfile_2eproto; -} - -// Force running AddDescriptors() at dynamic initialization time. -PROTOBUF_ATTRIBUTE_INIT_PRIORITY2 static ::_pbi::AddDescriptorsRunner dynamic_init_dummy_standardfontsfile_2eproto(&descriptor_table_standardfontsfile_2eproto); namespace Odb { namespace Lib { namespace Protobuf { - // =================================================================== class StandardFontsFile_CharacterBlock_LineRecord::_Internal { public: - using HasBits = decltype(std::declval()._impl_._has_bits_); - static void set_has_xstart(HasBits* has_bits) { - (*has_bits)[0] |= 1u; - } - static void set_has_ystart(HasBits* has_bits) { - (*has_bits)[0] |= 2u; - } - static void set_has_xend(HasBits* has_bits) { - (*has_bits)[0] |= 4u; - } - static void set_has_yend(HasBits* has_bits) { - (*has_bits)[0] |= 8u; - } - static void set_has_polarity(HasBits* has_bits) { - (*has_bits)[0] |= 16u; - } - static void set_has_shape(HasBits* has_bits) { - (*has_bits)[0] |= 32u; - } - static void set_has_width(HasBits* has_bits) { - (*has_bits)[0] |= 64u; - } + using HasBits = + decltype(std::declval()._impl_._has_bits_); + static constexpr ::int32_t kHasBitsOffset = + 8 * PROTOBUF_FIELD_OFFSET(StandardFontsFile_CharacterBlock_LineRecord, _impl_._has_bits_); }; -StandardFontsFile_CharacterBlock_LineRecord::StandardFontsFile_CharacterBlock_LineRecord(::PROTOBUF_NAMESPACE_ID::Arena* arena, - bool is_message_owned) - : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned) { - SharedCtor(arena, is_message_owned); +StandardFontsFile_CharacterBlock_LineRecord::StandardFontsFile_CharacterBlock_LineRecord(::google::protobuf::Arena* arena) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : ::google::protobuf::Message(arena, _class_data_.base()) { +#else // PROTOBUF_CUSTOM_VTABLE + : ::google::protobuf::Message(arena) { +#endif // PROTOBUF_CUSTOM_VTABLE + SharedCtor(arena); // @@protoc_insertion_point(arena_constructor:Odb.Lib.Protobuf.StandardFontsFile.CharacterBlock.LineRecord) } -StandardFontsFile_CharacterBlock_LineRecord::StandardFontsFile_CharacterBlock_LineRecord(const StandardFontsFile_CharacterBlock_LineRecord& from) - : ::PROTOBUF_NAMESPACE_ID::Message() { - StandardFontsFile_CharacterBlock_LineRecord* const _this = this; (void)_this; - new (&_impl_) Impl_{ - decltype(_impl_._has_bits_){from._impl_._has_bits_} - , /*decltype(_impl_._cached_size_)*/{} - , decltype(_impl_.xstart_){} - , decltype(_impl_.ystart_){} - , decltype(_impl_.xend_){} - , decltype(_impl_.yend_){} - , decltype(_impl_.polarity_){} - , decltype(_impl_.shape_){} - , decltype(_impl_.width_){}}; - - _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); - ::memcpy(&_impl_.xstart_, &from._impl_.xstart_, - static_cast(reinterpret_cast(&_impl_.width_) - - reinterpret_cast(&_impl_.xstart_)) + sizeof(_impl_.width_)); - // @@protoc_insertion_point(copy_constructor:Odb.Lib.Protobuf.StandardFontsFile.CharacterBlock.LineRecord) +StandardFontsFile_CharacterBlock_LineRecord::StandardFontsFile_CharacterBlock_LineRecord( + ::google::protobuf::Arena* arena, const StandardFontsFile_CharacterBlock_LineRecord& from) + : StandardFontsFile_CharacterBlock_LineRecord(arena) { + MergeFrom(from); } - -inline void StandardFontsFile_CharacterBlock_LineRecord::SharedCtor( - ::_pb::Arena* arena, bool is_message_owned) { - (void)arena; - (void)is_message_owned; - new (&_impl_) Impl_{ - decltype(_impl_._has_bits_){} - , /*decltype(_impl_._cached_size_)*/{} - , decltype(_impl_.xstart_){0} - , decltype(_impl_.ystart_){0} - , decltype(_impl_.xend_){0} - , decltype(_impl_.yend_){0} - , decltype(_impl_.polarity_){0} - , decltype(_impl_.shape_){0} - , decltype(_impl_.width_){0} - }; +inline PROTOBUF_NDEBUG_INLINE StandardFontsFile_CharacterBlock_LineRecord::Impl_::Impl_( + ::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* arena) + : _cached_size_{0} {} + +inline void StandardFontsFile_CharacterBlock_LineRecord::SharedCtor(::_pb::Arena* arena) { + new (&_impl_) Impl_(internal_visibility(), arena); + ::memset(reinterpret_cast(&_impl_) + + offsetof(Impl_, xstart_), + 0, + offsetof(Impl_, width_) - + offsetof(Impl_, xstart_) + + sizeof(Impl_::width_)); } - StandardFontsFile_CharacterBlock_LineRecord::~StandardFontsFile_CharacterBlock_LineRecord() { // @@protoc_insertion_point(destructor:Odb.Lib.Protobuf.StandardFontsFile.CharacterBlock.LineRecord) - if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) { - (void)arena; - return; - } - SharedDtor(); -} - -inline void StandardFontsFile_CharacterBlock_LineRecord::SharedDtor() { - GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); + SharedDtor(*this); } - -void StandardFontsFile_CharacterBlock_LineRecord::SetCachedSize(int size) const { - _impl_._cached_size_.Set(size); +inline void StandardFontsFile_CharacterBlock_LineRecord::SharedDtor(MessageLite& self) { + StandardFontsFile_CharacterBlock_LineRecord& this_ = static_cast(self); + this_._internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); + ABSL_DCHECK(this_.GetArena() == nullptr); + this_._impl_.~Impl_(); } -void StandardFontsFile_CharacterBlock_LineRecord::Clear() { -// @@protoc_insertion_point(message_clear_start:Odb.Lib.Protobuf.StandardFontsFile.CharacterBlock.LineRecord) - uint32_t cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - cached_has_bits = _impl_._has_bits_[0]; - if (cached_has_bits & 0x0000007fu) { - ::memset(&_impl_.xstart_, 0, static_cast( - reinterpret_cast(&_impl_.width_) - - reinterpret_cast(&_impl_.xstart_)) + sizeof(_impl_.width_)); - } - _impl_._has_bits_.Clear(); - _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); +inline void* StandardFontsFile_CharacterBlock_LineRecord::PlacementNew_(const void*, void* mem, + ::google::protobuf::Arena* arena) { + return ::new (mem) StandardFontsFile_CharacterBlock_LineRecord(arena); } - -const char* StandardFontsFile_CharacterBlock_LineRecord::_InternalParse(const char* ptr, ::_pbi::ParseContext* ctx) { -#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure - _Internal::HasBits has_bits{}; - while (!ctx->Done(&ptr)) { - uint32_t tag; - ptr = ::_pbi::ReadTag(ptr, &tag); - switch (tag >> 3) { - // optional float xStart = 1; - case 1: - if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 13)) { - _Internal::set_has_xstart(&has_bits); - _impl_.xstart_ = ::PROTOBUF_NAMESPACE_ID::internal::UnalignedLoad(ptr); - ptr += sizeof(float); - } else - goto handle_unusual; - continue; - // optional float yStart = 2; - case 2: - if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 21)) { - _Internal::set_has_ystart(&has_bits); - _impl_.ystart_ = ::PROTOBUF_NAMESPACE_ID::internal::UnalignedLoad(ptr); - ptr += sizeof(float); - } else - goto handle_unusual; - continue; - // optional float xEnd = 3; - case 3: - if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 29)) { - _Internal::set_has_xend(&has_bits); - _impl_.xend_ = ::PROTOBUF_NAMESPACE_ID::internal::UnalignedLoad(ptr); - ptr += sizeof(float); - } else - goto handle_unusual; - continue; - // optional float yEnd = 4; - case 4: - if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 37)) { - _Internal::set_has_yend(&has_bits); - _impl_.yend_ = ::PROTOBUF_NAMESPACE_ID::internal::UnalignedLoad(ptr); - ptr += sizeof(float); - } else - goto handle_unusual; - continue; - // optional .Odb.Lib.Protobuf.Polarity polarity = 5; - case 5: - if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 40)) { - uint64_t val = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); - CHK_(ptr); - _internal_set_polarity(static_cast<::Odb::Lib::Protobuf::Polarity>(val)); - } else - goto handle_unusual; - continue; - // optional .Odb.Lib.Protobuf.LineShape shape = 6; - case 6: - if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 48)) { - uint64_t val = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); - CHK_(ptr); - _internal_set_shape(static_cast<::Odb::Lib::Protobuf::LineShape>(val)); - } else - goto handle_unusual; - continue; - // optional float width = 7; - case 7: - if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 61)) { - _Internal::set_has_width(&has_bits); - _impl_.width_ = ::PROTOBUF_NAMESPACE_ID::internal::UnalignedLoad(ptr); - ptr += sizeof(float); - } else - goto handle_unusual; - continue; - default: - goto handle_unusual; - } // switch - handle_unusual: - if ((tag == 0) || ((tag & 7) == 4)) { - CHK_(ptr); - ctx->SetLastTag(tag); - goto message_done; - } - ptr = UnknownFieldParse( - tag, - _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(), - ptr, ctx); - CHK_(ptr != nullptr); - } // while -message_done: - _impl_._has_bits_.Or(has_bits); - return ptr; -failure: - ptr = nullptr; - goto message_done; -#undef CHK_ +constexpr auto StandardFontsFile_CharacterBlock_LineRecord::InternalNewImpl_() { + return ::google::protobuf::internal::MessageCreator::ZeroInit(sizeof(StandardFontsFile_CharacterBlock_LineRecord), + alignof(StandardFontsFile_CharacterBlock_LineRecord)); } - -uint8_t* StandardFontsFile_CharacterBlock_LineRecord::_InternalSerialize( - uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { - // @@protoc_insertion_point(serialize_to_array_start:Odb.Lib.Protobuf.StandardFontsFile.CharacterBlock.LineRecord) - uint32_t cached_has_bits = 0; - (void) cached_has_bits; - - // optional float xStart = 1; - if (_internal_has_xstart()) { - target = stream->EnsureSpace(target); - target = ::_pbi::WireFormatLite::WriteFloatToArray(1, this->_internal_xstart(), target); - } - - // optional float yStart = 2; - if (_internal_has_ystart()) { - target = stream->EnsureSpace(target); - target = ::_pbi::WireFormatLite::WriteFloatToArray(2, this->_internal_ystart(), target); - } - - // optional float xEnd = 3; - if (_internal_has_xend()) { - target = stream->EnsureSpace(target); - target = ::_pbi::WireFormatLite::WriteFloatToArray(3, this->_internal_xend(), target); - } - - // optional float yEnd = 4; - if (_internal_has_yend()) { - target = stream->EnsureSpace(target); - target = ::_pbi::WireFormatLite::WriteFloatToArray(4, this->_internal_yend(), target); - } - - // optional .Odb.Lib.Protobuf.Polarity polarity = 5; - if (_internal_has_polarity()) { - target = stream->EnsureSpace(target); - target = ::_pbi::WireFormatLite::WriteEnumToArray( - 5, this->_internal_polarity(), target); - } - - // optional .Odb.Lib.Protobuf.LineShape shape = 6; - if (_internal_has_shape()) { - target = stream->EnsureSpace(target); - target = ::_pbi::WireFormatLite::WriteEnumToArray( - 6, this->_internal_shape(), target); - } - - // optional float width = 7; - if (_internal_has_width()) { - target = stream->EnsureSpace(target); - target = ::_pbi::WireFormatLite::WriteFloatToArray(7, this->_internal_width(), target); - } - - if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = ::_pbi::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:Odb.Lib.Protobuf.StandardFontsFile.CharacterBlock.LineRecord) - return target; +PROTOBUF_CONSTINIT +PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 +const ::google::protobuf::internal::ClassDataFull StandardFontsFile_CharacterBlock_LineRecord::_class_data_ = { + ::google::protobuf::internal::ClassData{ + &_StandardFontsFile_CharacterBlock_LineRecord_default_instance_._instance, + &_table_.header, + nullptr, // OnDemandRegisterArenaDtor + nullptr, // IsInitialized + &StandardFontsFile_CharacterBlock_LineRecord::MergeImpl, + ::google::protobuf::Message::GetNewImpl(), +#if defined(PROTOBUF_CUSTOM_VTABLE) + &StandardFontsFile_CharacterBlock_LineRecord::SharedDtor, + ::google::protobuf::Message::GetClearImpl(), &StandardFontsFile_CharacterBlock_LineRecord::ByteSizeLong, + &StandardFontsFile_CharacterBlock_LineRecord::_InternalSerialize, +#endif // PROTOBUF_CUSTOM_VTABLE + PROTOBUF_FIELD_OFFSET(StandardFontsFile_CharacterBlock_LineRecord, _impl_._cached_size_), + false, + }, + &StandardFontsFile_CharacterBlock_LineRecord::kDescriptorMethods, + &descriptor_table_standardfontsfile_2eproto, + nullptr, // tracker +}; +const ::google::protobuf::internal::ClassData* StandardFontsFile_CharacterBlock_LineRecord::GetClassData() const { + ::google::protobuf::internal::PrefetchToLocalCache(&_class_data_); + ::google::protobuf::internal::PrefetchToLocalCache(_class_data_.tc_table); + return _class_data_.base(); } - -size_t StandardFontsFile_CharacterBlock_LineRecord::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:Odb.Lib.Protobuf.StandardFontsFile.CharacterBlock.LineRecord) - size_t total_size = 0; - - uint32_t cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - cached_has_bits = _impl_._has_bits_[0]; - if (cached_has_bits & 0x0000007fu) { +PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 +const ::_pbi::TcParseTable<3, 7, 0, 0, 2> StandardFontsFile_CharacterBlock_LineRecord::_table_ = { + { + PROTOBUF_FIELD_OFFSET(StandardFontsFile_CharacterBlock_LineRecord, _impl_._has_bits_), + 0, // no _extensions_ + 7, 56, // max_field_number, fast_idx_mask + offsetof(decltype(_table_), field_lookup_table), + 4294967168, // skipmap + offsetof(decltype(_table_), field_entries), + 7, // num_field_entries + 0, // num_aux_entries + offsetof(decltype(_table_), field_names), // no aux_entries + _class_data_.base(), + nullptr, // post_loop_handler + ::_pbi::TcParser::GenericFallback, // fallback + #ifdef PROTOBUF_PREFETCH_PARSE_TABLE + ::_pbi::TcParser::GetTable<::Odb::Lib::Protobuf::StandardFontsFile_CharacterBlock_LineRecord>(), // to_prefetch + #endif // PROTOBUF_PREFETCH_PARSE_TABLE + }, {{ + {::_pbi::TcParser::MiniParse, {}}, // optional float xStart = 1; - if (cached_has_bits & 0x00000001u) { - total_size += 1 + 4; - } - + {::_pbi::TcParser::FastF32S1, + {13, 0, 0, PROTOBUF_FIELD_OFFSET(StandardFontsFile_CharacterBlock_LineRecord, _impl_.xstart_)}}, // optional float yStart = 2; - if (cached_has_bits & 0x00000002u) { - total_size += 1 + 4; - } - + {::_pbi::TcParser::FastF32S1, + {21, 1, 0, PROTOBUF_FIELD_OFFSET(StandardFontsFile_CharacterBlock_LineRecord, _impl_.ystart_)}}, // optional float xEnd = 3; - if (cached_has_bits & 0x00000004u) { - total_size += 1 + 4; - } - + {::_pbi::TcParser::FastF32S1, + {29, 2, 0, PROTOBUF_FIELD_OFFSET(StandardFontsFile_CharacterBlock_LineRecord, _impl_.xend_)}}, // optional float yEnd = 4; - if (cached_has_bits & 0x00000008u) { - total_size += 1 + 4; - } - + {::_pbi::TcParser::FastF32S1, + {37, 3, 0, PROTOBUF_FIELD_OFFSET(StandardFontsFile_CharacterBlock_LineRecord, _impl_.yend_)}}, // optional .Odb.Lib.Protobuf.Polarity polarity = 5; - if (cached_has_bits & 0x00000010u) { - total_size += 1 + - ::_pbi::WireFormatLite::EnumSize(this->_internal_polarity()); - } - + {::_pbi::TcParser::SingularVarintNoZag1<::uint32_t, offsetof(StandardFontsFile_CharacterBlock_LineRecord, _impl_.polarity_), 4>(), + {40, 4, 0, PROTOBUF_FIELD_OFFSET(StandardFontsFile_CharacterBlock_LineRecord, _impl_.polarity_)}}, // optional .Odb.Lib.Protobuf.LineShape shape = 6; - if (cached_has_bits & 0x00000020u) { - total_size += 1 + - ::_pbi::WireFormatLite::EnumSize(this->_internal_shape()); - } - + {::_pbi::TcParser::SingularVarintNoZag1<::uint32_t, offsetof(StandardFontsFile_CharacterBlock_LineRecord, _impl_.shape_), 5>(), + {48, 5, 0, PROTOBUF_FIELD_OFFSET(StandardFontsFile_CharacterBlock_LineRecord, _impl_.shape_)}}, // optional float width = 7; - if (cached_has_bits & 0x00000040u) { - total_size += 1 + 4; - } + {::_pbi::TcParser::FastF32S1, + {61, 6, 0, PROTOBUF_FIELD_OFFSET(StandardFontsFile_CharacterBlock_LineRecord, _impl_.width_)}}, + }}, {{ + 65535, 65535 + }}, {{ + // optional float xStart = 1; + {PROTOBUF_FIELD_OFFSET(StandardFontsFile_CharacterBlock_LineRecord, _impl_.xstart_), _Internal::kHasBitsOffset + 0, 0, + (0 | ::_fl::kFcOptional | ::_fl::kFloat)}, + // optional float yStart = 2; + {PROTOBUF_FIELD_OFFSET(StandardFontsFile_CharacterBlock_LineRecord, _impl_.ystart_), _Internal::kHasBitsOffset + 1, 0, + (0 | ::_fl::kFcOptional | ::_fl::kFloat)}, + // optional float xEnd = 3; + {PROTOBUF_FIELD_OFFSET(StandardFontsFile_CharacterBlock_LineRecord, _impl_.xend_), _Internal::kHasBitsOffset + 2, 0, + (0 | ::_fl::kFcOptional | ::_fl::kFloat)}, + // optional float yEnd = 4; + {PROTOBUF_FIELD_OFFSET(StandardFontsFile_CharacterBlock_LineRecord, _impl_.yend_), _Internal::kHasBitsOffset + 3, 0, + (0 | ::_fl::kFcOptional | ::_fl::kFloat)}, + // optional .Odb.Lib.Protobuf.Polarity polarity = 5; + {PROTOBUF_FIELD_OFFSET(StandardFontsFile_CharacterBlock_LineRecord, _impl_.polarity_), _Internal::kHasBitsOffset + 4, 0, + (0 | ::_fl::kFcOptional | ::_fl::kOpenEnum)}, + // optional .Odb.Lib.Protobuf.LineShape shape = 6; + {PROTOBUF_FIELD_OFFSET(StandardFontsFile_CharacterBlock_LineRecord, _impl_.shape_), _Internal::kHasBitsOffset + 5, 0, + (0 | ::_fl::kFcOptional | ::_fl::kOpenEnum)}, + // optional float width = 7; + {PROTOBUF_FIELD_OFFSET(StandardFontsFile_CharacterBlock_LineRecord, _impl_.width_), _Internal::kHasBitsOffset + 6, 0, + (0 | ::_fl::kFcOptional | ::_fl::kFloat)}, + }}, + // no aux_entries + {{ + }}, +}; +PROTOBUF_NOINLINE void StandardFontsFile_CharacterBlock_LineRecord::Clear() { +// @@protoc_insertion_point(message_clear_start:Odb.Lib.Protobuf.StandardFontsFile.CharacterBlock.LineRecord) + ::google::protobuf::internal::TSanWrite(&_impl_); + ::uint32_t cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + cached_has_bits = _impl_._has_bits_[0]; + if (cached_has_bits & 0x0000007fu) { + ::memset(&_impl_.xstart_, 0, static_cast<::size_t>( + reinterpret_cast(&_impl_.width_) - + reinterpret_cast(&_impl_.xstart_)) + sizeof(_impl_.width_)); } - return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); + _impl_._has_bits_.Clear(); + _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); } -const ::PROTOBUF_NAMESPACE_ID::Message::ClassData StandardFontsFile_CharacterBlock_LineRecord::_class_data_ = { - ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSourceCheck, - StandardFontsFile_CharacterBlock_LineRecord::MergeImpl -}; -const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*StandardFontsFile_CharacterBlock_LineRecord::GetClassData() const { return &_class_data_; } - - -void StandardFontsFile_CharacterBlock_LineRecord::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg) { +#if defined(PROTOBUF_CUSTOM_VTABLE) + ::uint8_t* StandardFontsFile_CharacterBlock_LineRecord::_InternalSerialize( + const MessageLite& base, ::uint8_t* target, + ::google::protobuf::io::EpsCopyOutputStream* stream) { + const StandardFontsFile_CharacterBlock_LineRecord& this_ = static_cast(base); +#else // PROTOBUF_CUSTOM_VTABLE + ::uint8_t* StandardFontsFile_CharacterBlock_LineRecord::_InternalSerialize( + ::uint8_t* target, + ::google::protobuf::io::EpsCopyOutputStream* stream) const { + const StandardFontsFile_CharacterBlock_LineRecord& this_ = *this; +#endif // PROTOBUF_CUSTOM_VTABLE + // @@protoc_insertion_point(serialize_to_array_start:Odb.Lib.Protobuf.StandardFontsFile.CharacterBlock.LineRecord) + ::uint32_t cached_has_bits = 0; + (void)cached_has_bits; + + cached_has_bits = this_._impl_._has_bits_[0]; + // optional float xStart = 1; + if (cached_has_bits & 0x00000001u) { + target = stream->EnsureSpace(target); + target = ::_pbi::WireFormatLite::WriteFloatToArray( + 1, this_._internal_xstart(), target); + } + + // optional float yStart = 2; + if (cached_has_bits & 0x00000002u) { + target = stream->EnsureSpace(target); + target = ::_pbi::WireFormatLite::WriteFloatToArray( + 2, this_._internal_ystart(), target); + } + + // optional float xEnd = 3; + if (cached_has_bits & 0x00000004u) { + target = stream->EnsureSpace(target); + target = ::_pbi::WireFormatLite::WriteFloatToArray( + 3, this_._internal_xend(), target); + } + + // optional float yEnd = 4; + if (cached_has_bits & 0x00000008u) { + target = stream->EnsureSpace(target); + target = ::_pbi::WireFormatLite::WriteFloatToArray( + 4, this_._internal_yend(), target); + } + + // optional .Odb.Lib.Protobuf.Polarity polarity = 5; + if (cached_has_bits & 0x00000010u) { + target = stream->EnsureSpace(target); + target = ::_pbi::WireFormatLite::WriteEnumToArray( + 5, this_._internal_polarity(), target); + } + + // optional .Odb.Lib.Protobuf.LineShape shape = 6; + if (cached_has_bits & 0x00000020u) { + target = stream->EnsureSpace(target); + target = ::_pbi::WireFormatLite::WriteEnumToArray( + 6, this_._internal_shape(), target); + } + + // optional float width = 7; + if (cached_has_bits & 0x00000040u) { + target = stream->EnsureSpace(target); + target = ::_pbi::WireFormatLite::WriteFloatToArray( + 7, this_._internal_width(), target); + } + + if (PROTOBUF_PREDICT_FALSE(this_._internal_metadata_.have_unknown_fields())) { + target = + ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( + this_._internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); + } + // @@protoc_insertion_point(serialize_to_array_end:Odb.Lib.Protobuf.StandardFontsFile.CharacterBlock.LineRecord) + return target; + } + +#if defined(PROTOBUF_CUSTOM_VTABLE) + ::size_t StandardFontsFile_CharacterBlock_LineRecord::ByteSizeLong(const MessageLite& base) { + const StandardFontsFile_CharacterBlock_LineRecord& this_ = static_cast(base); +#else // PROTOBUF_CUSTOM_VTABLE + ::size_t StandardFontsFile_CharacterBlock_LineRecord::ByteSizeLong() const { + const StandardFontsFile_CharacterBlock_LineRecord& this_ = *this; +#endif // PROTOBUF_CUSTOM_VTABLE + // @@protoc_insertion_point(message_byte_size_start:Odb.Lib.Protobuf.StandardFontsFile.CharacterBlock.LineRecord) + ::size_t total_size = 0; + + ::uint32_t cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void)cached_has_bits; + + ::_pbi::Prefetch5LinesFrom7Lines(&this_); + cached_has_bits = this_._impl_._has_bits_[0]; + if (cached_has_bits & 0x0000007fu) { + // optional float xStart = 1; + if (cached_has_bits & 0x00000001u) { + total_size += 5; + } + // optional float yStart = 2; + if (cached_has_bits & 0x00000002u) { + total_size += 5; + } + // optional float xEnd = 3; + if (cached_has_bits & 0x00000004u) { + total_size += 5; + } + // optional float yEnd = 4; + if (cached_has_bits & 0x00000008u) { + total_size += 5; + } + // optional .Odb.Lib.Protobuf.Polarity polarity = 5; + if (cached_has_bits & 0x00000010u) { + total_size += 1 + + ::_pbi::WireFormatLite::EnumSize(this_._internal_polarity()); + } + // optional .Odb.Lib.Protobuf.LineShape shape = 6; + if (cached_has_bits & 0x00000020u) { + total_size += 1 + + ::_pbi::WireFormatLite::EnumSize(this_._internal_shape()); + } + // optional float width = 7; + if (cached_has_bits & 0x00000040u) { + total_size += 5; + } + } + return this_.MaybeComputeUnknownFieldsSize(total_size, + &this_._impl_._cached_size_); + } + +void StandardFontsFile_CharacterBlock_LineRecord::MergeImpl(::google::protobuf::MessageLite& to_msg, const ::google::protobuf::MessageLite& from_msg) { auto* const _this = static_cast(&to_msg); auto& from = static_cast(from_msg); // @@protoc_insertion_point(class_specific_merge_from_start:Odb.Lib.Protobuf.StandardFontsFile.CharacterBlock.LineRecord) - GOOGLE_DCHECK_NE(&from, _this); - uint32_t cached_has_bits = 0; + ABSL_DCHECK_NE(&from, _this); + ::uint32_t cached_has_bits = 0; (void) cached_has_bits; cached_has_bits = from._impl_._has_bits_[0]; @@ -528,9 +561,9 @@ void StandardFontsFile_CharacterBlock_LineRecord::MergeImpl(::PROTOBUF_NAMESPACE if (cached_has_bits & 0x00000040u) { _this->_impl_.width_ = from._impl_.width_; } - _this->_impl_._has_bits_[0] |= cached_has_bits; } - _this->_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); + _this->_impl_._has_bits_[0] |= cached_has_bits; + _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); } void StandardFontsFile_CharacterBlock_LineRecord::CopyFrom(const StandardFontsFile_CharacterBlock_LineRecord& from) { @@ -540,15 +573,12 @@ void StandardFontsFile_CharacterBlock_LineRecord::CopyFrom(const StandardFontsFi MergeFrom(from); } -bool StandardFontsFile_CharacterBlock_LineRecord::IsInitialized() const { - return true; -} -void StandardFontsFile_CharacterBlock_LineRecord::InternalSwap(StandardFontsFile_CharacterBlock_LineRecord* other) { +void StandardFontsFile_CharacterBlock_LineRecord::InternalSwap(StandardFontsFile_CharacterBlock_LineRecord* PROTOBUF_RESTRICT other) { using std::swap; _internal_metadata_.InternalSwap(&other->_internal_metadata_); swap(_impl_._has_bits_[0], other->_impl_._has_bits_[0]); - ::PROTOBUF_NAMESPACE_ID::internal::memswap< + ::google::protobuf::internal::memswap< PROTOBUF_FIELD_OFFSET(StandardFontsFile_CharacterBlock_LineRecord, _impl_.width_) + sizeof(StandardFontsFile_CharacterBlock_LineRecord::_impl_.width_) - PROTOBUF_FIELD_OFFSET(StandardFontsFile_CharacterBlock_LineRecord, _impl_.xstart_)>( @@ -556,87 +586,168 @@ void StandardFontsFile_CharacterBlock_LineRecord::InternalSwap(StandardFontsFile reinterpret_cast(&other->_impl_.xstart_)); } -::PROTOBUF_NAMESPACE_ID::Metadata StandardFontsFile_CharacterBlock_LineRecord::GetMetadata() const { - return ::_pbi::AssignDescriptors( - &descriptor_table_standardfontsfile_2eproto_getter, &descriptor_table_standardfontsfile_2eproto_once, - file_level_metadata_standardfontsfile_2eproto[0]); +::google::protobuf::Metadata StandardFontsFile_CharacterBlock_LineRecord::GetMetadata() const { + return ::google::protobuf::Message::GetMetadataImpl(GetClassData()->full()); } - // =================================================================== class StandardFontsFile_CharacterBlock::_Internal { public: - using HasBits = decltype(std::declval()._impl_._has_bits_); - static void set_has_character(HasBits* has_bits) { - (*has_bits)[0] |= 1u; - } + using HasBits = + decltype(std::declval()._impl_._has_bits_); + static constexpr ::int32_t kHasBitsOffset = + 8 * PROTOBUF_FIELD_OFFSET(StandardFontsFile_CharacterBlock, _impl_._has_bits_); }; -StandardFontsFile_CharacterBlock::StandardFontsFile_CharacterBlock(::PROTOBUF_NAMESPACE_ID::Arena* arena, - bool is_message_owned) - : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned) { - SharedCtor(arena, is_message_owned); +StandardFontsFile_CharacterBlock::StandardFontsFile_CharacterBlock(::google::protobuf::Arena* arena) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : ::google::protobuf::Message(arena, _class_data_.base()) { +#else // PROTOBUF_CUSTOM_VTABLE + : ::google::protobuf::Message(arena) { +#endif // PROTOBUF_CUSTOM_VTABLE + SharedCtor(arena); // @@protoc_insertion_point(arena_constructor:Odb.Lib.Protobuf.StandardFontsFile.CharacterBlock) } -StandardFontsFile_CharacterBlock::StandardFontsFile_CharacterBlock(const StandardFontsFile_CharacterBlock& from) - : ::PROTOBUF_NAMESPACE_ID::Message() { - StandardFontsFile_CharacterBlock* const _this = this; (void)_this; - new (&_impl_) Impl_{ - decltype(_impl_._has_bits_){from._impl_._has_bits_} - , /*decltype(_impl_._cached_size_)*/{} - , decltype(_impl_.m_linerecords_){from._impl_.m_linerecords_} - , decltype(_impl_.character_){}}; - - _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); - _impl_.character_.InitDefault(); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - _impl_.character_.Set("", GetArenaForAllocation()); - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (from._internal_has_character()) { - _this->_impl_.character_.Set(from._internal_character(), - _this->GetArenaForAllocation()); - } +inline PROTOBUF_NDEBUG_INLINE StandardFontsFile_CharacterBlock::Impl_::Impl_( + ::google::protobuf::internal::InternalVisibility visibility, ::google::protobuf::Arena* arena, + const Impl_& from, const ::Odb::Lib::Protobuf::StandardFontsFile_CharacterBlock& from_msg) + : _has_bits_{from._has_bits_}, + _cached_size_{0}, + m_linerecords_{visibility, arena, from.m_linerecords_}, + character_(arena, from.character_) {} + +StandardFontsFile_CharacterBlock::StandardFontsFile_CharacterBlock( + ::google::protobuf::Arena* arena, + const StandardFontsFile_CharacterBlock& from) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : ::google::protobuf::Message(arena, _class_data_.base()) { +#else // PROTOBUF_CUSTOM_VTABLE + : ::google::protobuf::Message(arena) { +#endif // PROTOBUF_CUSTOM_VTABLE + StandardFontsFile_CharacterBlock* const _this = this; + (void)_this; + _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( + from._internal_metadata_); + new (&_impl_) Impl_(internal_visibility(), arena, from._impl_, from); + // @@protoc_insertion_point(copy_constructor:Odb.Lib.Protobuf.StandardFontsFile.CharacterBlock) } - -inline void StandardFontsFile_CharacterBlock::SharedCtor( - ::_pb::Arena* arena, bool is_message_owned) { - (void)arena; - (void)is_message_owned; - new (&_impl_) Impl_{ - decltype(_impl_._has_bits_){} - , /*decltype(_impl_._cached_size_)*/{} - , decltype(_impl_.m_linerecords_){arena} - , decltype(_impl_.character_){} - }; - _impl_.character_.InitDefault(); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - _impl_.character_.Set("", GetArenaForAllocation()); - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING +inline PROTOBUF_NDEBUG_INLINE StandardFontsFile_CharacterBlock::Impl_::Impl_( + ::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* arena) + : _cached_size_{0}, + m_linerecords_{visibility, arena}, + character_(arena) {} + +inline void StandardFontsFile_CharacterBlock::SharedCtor(::_pb::Arena* arena) { + new (&_impl_) Impl_(internal_visibility(), arena); } - StandardFontsFile_CharacterBlock::~StandardFontsFile_CharacterBlock() { // @@protoc_insertion_point(destructor:Odb.Lib.Protobuf.StandardFontsFile.CharacterBlock) - if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) { - (void)arena; - return; - } - SharedDtor(); + SharedDtor(*this); } - -inline void StandardFontsFile_CharacterBlock::SharedDtor() { - GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); - _impl_.m_linerecords_.~RepeatedPtrField(); - _impl_.character_.Destroy(); +inline void StandardFontsFile_CharacterBlock::SharedDtor(MessageLite& self) { + StandardFontsFile_CharacterBlock& this_ = static_cast(self); + this_._internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); + ABSL_DCHECK(this_.GetArena() == nullptr); + this_._impl_.character_.Destroy(); + this_._impl_.~Impl_(); } -void StandardFontsFile_CharacterBlock::SetCachedSize(int size) const { - _impl_._cached_size_.Set(size); +inline void* StandardFontsFile_CharacterBlock::PlacementNew_(const void*, void* mem, + ::google::protobuf::Arena* arena) { + return ::new (mem) StandardFontsFile_CharacterBlock(arena); +} +constexpr auto StandardFontsFile_CharacterBlock::InternalNewImpl_() { + constexpr auto arena_bits = ::google::protobuf::internal::EncodePlacementArenaOffsets({ + PROTOBUF_FIELD_OFFSET(StandardFontsFile_CharacterBlock, _impl_.m_linerecords_) + + decltype(StandardFontsFile_CharacterBlock::_impl_.m_linerecords_):: + InternalGetArenaOffset( + ::google::protobuf::Message::internal_visibility()), + }); + if (arena_bits.has_value()) { + return ::google::protobuf::internal::MessageCreator::CopyInit( + sizeof(StandardFontsFile_CharacterBlock), alignof(StandardFontsFile_CharacterBlock), *arena_bits); + } else { + return ::google::protobuf::internal::MessageCreator(&StandardFontsFile_CharacterBlock::PlacementNew_, + sizeof(StandardFontsFile_CharacterBlock), + alignof(StandardFontsFile_CharacterBlock)); + } } +PROTOBUF_CONSTINIT +PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 +const ::google::protobuf::internal::ClassDataFull StandardFontsFile_CharacterBlock::_class_data_ = { + ::google::protobuf::internal::ClassData{ + &_StandardFontsFile_CharacterBlock_default_instance_._instance, + &_table_.header, + nullptr, // OnDemandRegisterArenaDtor + nullptr, // IsInitialized + &StandardFontsFile_CharacterBlock::MergeImpl, + ::google::protobuf::Message::GetNewImpl(), +#if defined(PROTOBUF_CUSTOM_VTABLE) + &StandardFontsFile_CharacterBlock::SharedDtor, + ::google::protobuf::Message::GetClearImpl(), &StandardFontsFile_CharacterBlock::ByteSizeLong, + &StandardFontsFile_CharacterBlock::_InternalSerialize, +#endif // PROTOBUF_CUSTOM_VTABLE + PROTOBUF_FIELD_OFFSET(StandardFontsFile_CharacterBlock, _impl_._cached_size_), + false, + }, + &StandardFontsFile_CharacterBlock::kDescriptorMethods, + &descriptor_table_standardfontsfile_2eproto, + nullptr, // tracker +}; +const ::google::protobuf::internal::ClassData* StandardFontsFile_CharacterBlock::GetClassData() const { + ::google::protobuf::internal::PrefetchToLocalCache(&_class_data_); + ::google::protobuf::internal::PrefetchToLocalCache(_class_data_.tc_table); + return _class_data_.base(); +} +PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 +const ::_pbi::TcParseTable<1, 2, 1, 67, 2> StandardFontsFile_CharacterBlock::_table_ = { + { + PROTOBUF_FIELD_OFFSET(StandardFontsFile_CharacterBlock, _impl_._has_bits_), + 0, // no _extensions_ + 2, 8, // max_field_number, fast_idx_mask + offsetof(decltype(_table_), field_lookup_table), + 4294967292, // skipmap + offsetof(decltype(_table_), field_entries), + 2, // num_field_entries + 1, // num_aux_entries + offsetof(decltype(_table_), aux_entries), + _class_data_.base(), + nullptr, // post_loop_handler + ::_pbi::TcParser::GenericFallback, // fallback + #ifdef PROTOBUF_PREFETCH_PARSE_TABLE + ::_pbi::TcParser::GetTable<::Odb::Lib::Protobuf::StandardFontsFile_CharacterBlock>(), // to_prefetch + #endif // PROTOBUF_PREFETCH_PARSE_TABLE + }, {{ + // repeated .Odb.Lib.Protobuf.StandardFontsFile.CharacterBlock.LineRecord m_lineRecords = 2; + {::_pbi::TcParser::FastMtR1, + {18, 63, 0, PROTOBUF_FIELD_OFFSET(StandardFontsFile_CharacterBlock, _impl_.m_linerecords_)}}, + // optional string character = 1; + {::_pbi::TcParser::FastUS1, + {10, 0, 0, PROTOBUF_FIELD_OFFSET(StandardFontsFile_CharacterBlock, _impl_.character_)}}, + }}, {{ + 65535, 65535 + }}, {{ + // optional string character = 1; + {PROTOBUF_FIELD_OFFSET(StandardFontsFile_CharacterBlock, _impl_.character_), _Internal::kHasBitsOffset + 0, 0, + (0 | ::_fl::kFcOptional | ::_fl::kUtf8String | ::_fl::kRepAString)}, + // repeated .Odb.Lib.Protobuf.StandardFontsFile.CharacterBlock.LineRecord m_lineRecords = 2; + {PROTOBUF_FIELD_OFFSET(StandardFontsFile_CharacterBlock, _impl_.m_linerecords_), -1, 0, + (0 | ::_fl::kFcRepeated | ::_fl::kMessage | ::_fl::kTvTable)}, + }}, {{ + {::_pbi::TcParser::GetTable<::Odb::Lib::Protobuf::StandardFontsFile_CharacterBlock_LineRecord>()}, + }}, {{ + "\61\11\0\0\0\0\0\0" + "Odb.Lib.Protobuf.StandardFontsFile.CharacterBlock" + "character" + }}, +}; -void StandardFontsFile_CharacterBlock::Clear() { +PROTOBUF_NOINLINE void StandardFontsFile_CharacterBlock::Clear() { // @@protoc_insertion_point(message_clear_start:Odb.Lib.Protobuf.StandardFontsFile.CharacterBlock) - uint32_t cached_has_bits = 0; + ::google::protobuf::internal::TSanWrite(&_impl_); + ::uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; @@ -646,141 +757,105 @@ void StandardFontsFile_CharacterBlock::Clear() { _impl_.character_.ClearNonDefaultToEmpty(); } _impl_._has_bits_.Clear(); - _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); -} - -const char* StandardFontsFile_CharacterBlock::_InternalParse(const char* ptr, ::_pbi::ParseContext* ctx) { -#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure - _Internal::HasBits has_bits{}; - while (!ctx->Done(&ptr)) { - uint32_t tag; - ptr = ::_pbi::ReadTag(ptr, &tag); - switch (tag >> 3) { - // optional string character = 1; - case 1: - if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 10)) { - auto str = _internal_mutable_character(); - ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); - CHK_(ptr); - CHK_(::_pbi::VerifyUTF8(str, "Odb.Lib.Protobuf.StandardFontsFile.CharacterBlock.character")); - } else - goto handle_unusual; - continue; - // repeated .Odb.Lib.Protobuf.StandardFontsFile.CharacterBlock.LineRecord m_lineRecords = 2; - case 2: - if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 18)) { - ptr -= 1; - do { - ptr += 1; - ptr = ctx->ParseMessage(_internal_add_m_linerecords(), ptr); - CHK_(ptr); - if (!ctx->DataAvailable(ptr)) break; - } while (::PROTOBUF_NAMESPACE_ID::internal::ExpectTag<18>(ptr)); - } else - goto handle_unusual; - continue; - default: - goto handle_unusual; - } // switch - handle_unusual: - if ((tag == 0) || ((tag & 7) == 4)) { - CHK_(ptr); - ctx->SetLastTag(tag); - goto message_done; - } - ptr = UnknownFieldParse( - tag, - _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(), - ptr, ctx); - CHK_(ptr != nullptr); - } // while -message_done: - _impl_._has_bits_.Or(has_bits); - return ptr; -failure: - ptr = nullptr; - goto message_done; -#undef CHK_ -} - -uint8_t* StandardFontsFile_CharacterBlock::_InternalSerialize( - uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { - // @@protoc_insertion_point(serialize_to_array_start:Odb.Lib.Protobuf.StandardFontsFile.CharacterBlock) - uint32_t cached_has_bits = 0; - (void) cached_has_bits; - - // optional string character = 1; - if (_internal_has_character()) { - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( - this->_internal_character().data(), static_cast(this->_internal_character().length()), - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, - "Odb.Lib.Protobuf.StandardFontsFile.CharacterBlock.character"); - target = stream->WriteStringMaybeAliased( - 1, this->_internal_character(), target); - } - - // repeated .Odb.Lib.Protobuf.StandardFontsFile.CharacterBlock.LineRecord m_lineRecords = 2; - for (unsigned i = 0, - n = static_cast(this->_internal_m_linerecords_size()); i < n; i++) { - const auto& repfield = this->_internal_m_linerecords(i); - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: - InternalWriteMessage(2, repfield, repfield.GetCachedSize(), target, stream); - } - - if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = ::_pbi::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:Odb.Lib.Protobuf.StandardFontsFile.CharacterBlock) - return target; -} - -size_t StandardFontsFile_CharacterBlock::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:Odb.Lib.Protobuf.StandardFontsFile.CharacterBlock) - size_t total_size = 0; - - uint32_t cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - // repeated .Odb.Lib.Protobuf.StandardFontsFile.CharacterBlock.LineRecord m_lineRecords = 2; - total_size += 1UL * this->_internal_m_linerecords_size(); - for (const auto& msg : this->_impl_.m_linerecords_) { - total_size += - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(msg); - } - - // optional string character = 1; - cached_has_bits = _impl_._has_bits_[0]; - if (cached_has_bits & 0x00000001u) { - total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( - this->_internal_character()); - } - - return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); + _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); } -const ::PROTOBUF_NAMESPACE_ID::Message::ClassData StandardFontsFile_CharacterBlock::_class_data_ = { - ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSourceCheck, - StandardFontsFile_CharacterBlock::MergeImpl -}; -const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*StandardFontsFile_CharacterBlock::GetClassData() const { return &_class_data_; } - - -void StandardFontsFile_CharacterBlock::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg) { +#if defined(PROTOBUF_CUSTOM_VTABLE) + ::uint8_t* StandardFontsFile_CharacterBlock::_InternalSerialize( + const MessageLite& base, ::uint8_t* target, + ::google::protobuf::io::EpsCopyOutputStream* stream) { + const StandardFontsFile_CharacterBlock& this_ = static_cast(base); +#else // PROTOBUF_CUSTOM_VTABLE + ::uint8_t* StandardFontsFile_CharacterBlock::_InternalSerialize( + ::uint8_t* target, + ::google::protobuf::io::EpsCopyOutputStream* stream) const { + const StandardFontsFile_CharacterBlock& this_ = *this; +#endif // PROTOBUF_CUSTOM_VTABLE + // @@protoc_insertion_point(serialize_to_array_start:Odb.Lib.Protobuf.StandardFontsFile.CharacterBlock) + ::uint32_t cached_has_bits = 0; + (void)cached_has_bits; + + cached_has_bits = this_._impl_._has_bits_[0]; + // optional string character = 1; + if (cached_has_bits & 0x00000001u) { + const std::string& _s = this_._internal_character(); + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + _s.data(), static_cast(_s.length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "Odb.Lib.Protobuf.StandardFontsFile.CharacterBlock.character"); + target = stream->WriteStringMaybeAliased(1, _s, target); + } + + // repeated .Odb.Lib.Protobuf.StandardFontsFile.CharacterBlock.LineRecord m_lineRecords = 2; + for (unsigned i = 0, n = static_cast( + this_._internal_m_linerecords_size()); + i < n; i++) { + const auto& repfield = this_._internal_m_linerecords().Get(i); + target = + ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( + 2, repfield, repfield.GetCachedSize(), + target, stream); + } + + if (PROTOBUF_PREDICT_FALSE(this_._internal_metadata_.have_unknown_fields())) { + target = + ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( + this_._internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); + } + // @@protoc_insertion_point(serialize_to_array_end:Odb.Lib.Protobuf.StandardFontsFile.CharacterBlock) + return target; + } + +#if defined(PROTOBUF_CUSTOM_VTABLE) + ::size_t StandardFontsFile_CharacterBlock::ByteSizeLong(const MessageLite& base) { + const StandardFontsFile_CharacterBlock& this_ = static_cast(base); +#else // PROTOBUF_CUSTOM_VTABLE + ::size_t StandardFontsFile_CharacterBlock::ByteSizeLong() const { + const StandardFontsFile_CharacterBlock& this_ = *this; +#endif // PROTOBUF_CUSTOM_VTABLE + // @@protoc_insertion_point(message_byte_size_start:Odb.Lib.Protobuf.StandardFontsFile.CharacterBlock) + ::size_t total_size = 0; + + ::uint32_t cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void)cached_has_bits; + + ::_pbi::Prefetch5LinesFrom7Lines(&this_); + { + // repeated .Odb.Lib.Protobuf.StandardFontsFile.CharacterBlock.LineRecord m_lineRecords = 2; + { + total_size += 1UL * this_._internal_m_linerecords_size(); + for (const auto& msg : this_._internal_m_linerecords()) { + total_size += ::google::protobuf::internal::WireFormatLite::MessageSize(msg); + } + } + } + { + // optional string character = 1; + cached_has_bits = this_._impl_._has_bits_[0]; + if (cached_has_bits & 0x00000001u) { + total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize( + this_._internal_character()); + } + } + return this_.MaybeComputeUnknownFieldsSize(total_size, + &this_._impl_._cached_size_); + } + +void StandardFontsFile_CharacterBlock::MergeImpl(::google::protobuf::MessageLite& to_msg, const ::google::protobuf::MessageLite& from_msg) { auto* const _this = static_cast(&to_msg); auto& from = static_cast(from_msg); // @@protoc_insertion_point(class_specific_merge_from_start:Odb.Lib.Protobuf.StandardFontsFile.CharacterBlock) - GOOGLE_DCHECK_NE(&from, _this); - uint32_t cached_has_bits = 0; + ABSL_DCHECK_NE(&from, _this); + ::uint32_t cached_has_bits = 0; (void) cached_has_bits; - _this->_impl_.m_linerecords_.MergeFrom(from._impl_.m_linerecords_); - if (from._internal_has_character()) { + _this->_internal_mutable_m_linerecords()->MergeFrom( + from._internal_m_linerecords()); + cached_has_bits = from._impl_._has_bits_[0]; + if (cached_has_bits & 0x00000001u) { _this->_internal_set_character(from._internal_character()); } - _this->_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); + _this->_impl_._has_bits_[0] |= cached_has_bits; + _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); } void StandardFontsFile_CharacterBlock::CopyFrom(const StandardFontsFile_CharacterBlock& from) { @@ -790,281 +865,322 @@ void StandardFontsFile_CharacterBlock::CopyFrom(const StandardFontsFile_Characte MergeFrom(from); } -bool StandardFontsFile_CharacterBlock::IsInitialized() const { - return true; -} -void StandardFontsFile_CharacterBlock::InternalSwap(StandardFontsFile_CharacterBlock* other) { +void StandardFontsFile_CharacterBlock::InternalSwap(StandardFontsFile_CharacterBlock* PROTOBUF_RESTRICT other) { using std::swap; - auto* lhs_arena = GetArenaForAllocation(); - auto* rhs_arena = other->GetArenaForAllocation(); + auto* arena = GetArena(); + ABSL_DCHECK_EQ(arena, other->GetArena()); _internal_metadata_.InternalSwap(&other->_internal_metadata_); swap(_impl_._has_bits_[0], other->_impl_._has_bits_[0]); _impl_.m_linerecords_.InternalSwap(&other->_impl_.m_linerecords_); - ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( - &_impl_.character_, lhs_arena, - &other->_impl_.character_, rhs_arena - ); + ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.character_, &other->_impl_.character_, arena); } -::PROTOBUF_NAMESPACE_ID::Metadata StandardFontsFile_CharacterBlock::GetMetadata() const { - return ::_pbi::AssignDescriptors( - &descriptor_table_standardfontsfile_2eproto_getter, &descriptor_table_standardfontsfile_2eproto_once, - file_level_metadata_standardfontsfile_2eproto[1]); +::google::protobuf::Metadata StandardFontsFile_CharacterBlock::GetMetadata() const { + return ::google::protobuf::Message::GetMetadataImpl(GetClassData()->full()); } - // =================================================================== class StandardFontsFile::_Internal { public: - using HasBits = decltype(std::declval()._impl_._has_bits_); - static void set_has_xsize(HasBits* has_bits) { - (*has_bits)[0] |= 1u; - } - static void set_has_ysize(HasBits* has_bits) { - (*has_bits)[0] |= 2u; - } - static void set_has_offset(HasBits* has_bits) { - (*has_bits)[0] |= 4u; - } + using HasBits = + decltype(std::declval()._impl_._has_bits_); + static constexpr ::int32_t kHasBitsOffset = + 8 * PROTOBUF_FIELD_OFFSET(StandardFontsFile, _impl_._has_bits_); }; -StandardFontsFile::StandardFontsFile(::PROTOBUF_NAMESPACE_ID::Arena* arena, - bool is_message_owned) - : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned) { - SharedCtor(arena, is_message_owned); +StandardFontsFile::StandardFontsFile(::google::protobuf::Arena* arena) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : ::google::protobuf::Message(arena, _class_data_.base()) { +#else // PROTOBUF_CUSTOM_VTABLE + : ::google::protobuf::Message(arena) { +#endif // PROTOBUF_CUSTOM_VTABLE + SharedCtor(arena); // @@protoc_insertion_point(arena_constructor:Odb.Lib.Protobuf.StandardFontsFile) } -StandardFontsFile::StandardFontsFile(const StandardFontsFile& from) - : ::PROTOBUF_NAMESPACE_ID::Message() { - StandardFontsFile* const _this = this; (void)_this; - new (&_impl_) Impl_{ - decltype(_impl_._has_bits_){from._impl_._has_bits_} - , /*decltype(_impl_._cached_size_)*/{} - , decltype(_impl_.m_characterblocks_){from._impl_.m_characterblocks_} - , decltype(_impl_.xsize_){} - , decltype(_impl_.ysize_){} - , decltype(_impl_.offset_){}}; - - _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); - ::memcpy(&_impl_.xsize_, &from._impl_.xsize_, - static_cast(reinterpret_cast(&_impl_.offset_) - - reinterpret_cast(&_impl_.xsize_)) + sizeof(_impl_.offset_)); +inline PROTOBUF_NDEBUG_INLINE StandardFontsFile::Impl_::Impl_( + ::google::protobuf::internal::InternalVisibility visibility, ::google::protobuf::Arena* arena, + const Impl_& from, const ::Odb::Lib::Protobuf::StandardFontsFile& from_msg) + : _has_bits_{from._has_bits_}, + _cached_size_{0}, + m_characterblocks_{visibility, arena, from.m_characterblocks_} {} + +StandardFontsFile::StandardFontsFile( + ::google::protobuf::Arena* arena, + const StandardFontsFile& from) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : ::google::protobuf::Message(arena, _class_data_.base()) { +#else // PROTOBUF_CUSTOM_VTABLE + : ::google::protobuf::Message(arena) { +#endif // PROTOBUF_CUSTOM_VTABLE + StandardFontsFile* const _this = this; + (void)_this; + _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( + from._internal_metadata_); + new (&_impl_) Impl_(internal_visibility(), arena, from._impl_, from); + ::memcpy(reinterpret_cast(&_impl_) + + offsetof(Impl_, xsize_), + reinterpret_cast(&from._impl_) + + offsetof(Impl_, xsize_), + offsetof(Impl_, offset_) - + offsetof(Impl_, xsize_) + + sizeof(Impl_::offset_)); + // @@protoc_insertion_point(copy_constructor:Odb.Lib.Protobuf.StandardFontsFile) } - -inline void StandardFontsFile::SharedCtor( - ::_pb::Arena* arena, bool is_message_owned) { - (void)arena; - (void)is_message_owned; - new (&_impl_) Impl_{ - decltype(_impl_._has_bits_){} - , /*decltype(_impl_._cached_size_)*/{} - , decltype(_impl_.m_characterblocks_){arena} - , decltype(_impl_.xsize_){0} - , decltype(_impl_.ysize_){0} - , decltype(_impl_.offset_){0} - }; +inline PROTOBUF_NDEBUG_INLINE StandardFontsFile::Impl_::Impl_( + ::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* arena) + : _cached_size_{0}, + m_characterblocks_{visibility, arena} {} + +inline void StandardFontsFile::SharedCtor(::_pb::Arena* arena) { + new (&_impl_) Impl_(internal_visibility(), arena); + ::memset(reinterpret_cast(&_impl_) + + offsetof(Impl_, xsize_), + 0, + offsetof(Impl_, offset_) - + offsetof(Impl_, xsize_) + + sizeof(Impl_::offset_)); } - StandardFontsFile::~StandardFontsFile() { // @@protoc_insertion_point(destructor:Odb.Lib.Protobuf.StandardFontsFile) - if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) { - (void)arena; - return; - } - SharedDtor(); + SharedDtor(*this); } - -inline void StandardFontsFile::SharedDtor() { - GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); - _impl_.m_characterblocks_.~RepeatedPtrField(); +inline void StandardFontsFile::SharedDtor(MessageLite& self) { + StandardFontsFile& this_ = static_cast(self); + this_._internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); + ABSL_DCHECK(this_.GetArena() == nullptr); + this_._impl_.~Impl_(); } -void StandardFontsFile::SetCachedSize(int size) const { - _impl_._cached_size_.Set(size); +inline void* StandardFontsFile::PlacementNew_(const void*, void* mem, + ::google::protobuf::Arena* arena) { + return ::new (mem) StandardFontsFile(arena); +} +constexpr auto StandardFontsFile::InternalNewImpl_() { + constexpr auto arena_bits = ::google::protobuf::internal::EncodePlacementArenaOffsets({ + PROTOBUF_FIELD_OFFSET(StandardFontsFile, _impl_.m_characterblocks_) + + decltype(StandardFontsFile::_impl_.m_characterblocks_):: + InternalGetArenaOffset( + ::google::protobuf::Message::internal_visibility()), + }); + if (arena_bits.has_value()) { + return ::google::protobuf::internal::MessageCreator::ZeroInit( + sizeof(StandardFontsFile), alignof(StandardFontsFile), *arena_bits); + } else { + return ::google::protobuf::internal::MessageCreator(&StandardFontsFile::PlacementNew_, + sizeof(StandardFontsFile), + alignof(StandardFontsFile)); + } +} +PROTOBUF_CONSTINIT +PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 +const ::google::protobuf::internal::ClassDataFull StandardFontsFile::_class_data_ = { + ::google::protobuf::internal::ClassData{ + &_StandardFontsFile_default_instance_._instance, + &_table_.header, + nullptr, // OnDemandRegisterArenaDtor + nullptr, // IsInitialized + &StandardFontsFile::MergeImpl, + ::google::protobuf::Message::GetNewImpl(), +#if defined(PROTOBUF_CUSTOM_VTABLE) + &StandardFontsFile::SharedDtor, + ::google::protobuf::Message::GetClearImpl(), &StandardFontsFile::ByteSizeLong, + &StandardFontsFile::_InternalSerialize, +#endif // PROTOBUF_CUSTOM_VTABLE + PROTOBUF_FIELD_OFFSET(StandardFontsFile, _impl_._cached_size_), + false, + }, + &StandardFontsFile::kDescriptorMethods, + &descriptor_table_standardfontsfile_2eproto, + nullptr, // tracker +}; +const ::google::protobuf::internal::ClassData* StandardFontsFile::GetClassData() const { + ::google::protobuf::internal::PrefetchToLocalCache(&_class_data_); + ::google::protobuf::internal::PrefetchToLocalCache(_class_data_.tc_table); + return _class_data_.base(); } +PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 +const ::_pbi::TcParseTable<2, 4, 1, 0, 2> StandardFontsFile::_table_ = { + { + PROTOBUF_FIELD_OFFSET(StandardFontsFile, _impl_._has_bits_), + 0, // no _extensions_ + 4, 24, // max_field_number, fast_idx_mask + offsetof(decltype(_table_), field_lookup_table), + 4294967280, // skipmap + offsetof(decltype(_table_), field_entries), + 4, // num_field_entries + 1, // num_aux_entries + offsetof(decltype(_table_), aux_entries), + _class_data_.base(), + nullptr, // post_loop_handler + ::_pbi::TcParser::GenericFallback, // fallback + #ifdef PROTOBUF_PREFETCH_PARSE_TABLE + ::_pbi::TcParser::GetTable<::Odb::Lib::Protobuf::StandardFontsFile>(), // to_prefetch + #endif // PROTOBUF_PREFETCH_PARSE_TABLE + }, {{ + // repeated .Odb.Lib.Protobuf.StandardFontsFile.CharacterBlock m_characterBlocks = 4; + {::_pbi::TcParser::FastMtR1, + {34, 63, 0, PROTOBUF_FIELD_OFFSET(StandardFontsFile, _impl_.m_characterblocks_)}}, + // optional float xSize = 1; + {::_pbi::TcParser::FastF32S1, + {13, 0, 0, PROTOBUF_FIELD_OFFSET(StandardFontsFile, _impl_.xsize_)}}, + // optional float ySize = 2; + {::_pbi::TcParser::FastF32S1, + {21, 1, 0, PROTOBUF_FIELD_OFFSET(StandardFontsFile, _impl_.ysize_)}}, + // optional float offset = 3; + {::_pbi::TcParser::FastF32S1, + {29, 2, 0, PROTOBUF_FIELD_OFFSET(StandardFontsFile, _impl_.offset_)}}, + }}, {{ + 65535, 65535 + }}, {{ + // optional float xSize = 1; + {PROTOBUF_FIELD_OFFSET(StandardFontsFile, _impl_.xsize_), _Internal::kHasBitsOffset + 0, 0, + (0 | ::_fl::kFcOptional | ::_fl::kFloat)}, + // optional float ySize = 2; + {PROTOBUF_FIELD_OFFSET(StandardFontsFile, _impl_.ysize_), _Internal::kHasBitsOffset + 1, 0, + (0 | ::_fl::kFcOptional | ::_fl::kFloat)}, + // optional float offset = 3; + {PROTOBUF_FIELD_OFFSET(StandardFontsFile, _impl_.offset_), _Internal::kHasBitsOffset + 2, 0, + (0 | ::_fl::kFcOptional | ::_fl::kFloat)}, + // repeated .Odb.Lib.Protobuf.StandardFontsFile.CharacterBlock m_characterBlocks = 4; + {PROTOBUF_FIELD_OFFSET(StandardFontsFile, _impl_.m_characterblocks_), -1, 0, + (0 | ::_fl::kFcRepeated | ::_fl::kMessage | ::_fl::kTvTable)}, + }}, {{ + {::_pbi::TcParser::GetTable<::Odb::Lib::Protobuf::StandardFontsFile_CharacterBlock>()}, + }}, {{ + }}, +}; -void StandardFontsFile::Clear() { +PROTOBUF_NOINLINE void StandardFontsFile::Clear() { // @@protoc_insertion_point(message_clear_start:Odb.Lib.Protobuf.StandardFontsFile) - uint32_t cached_has_bits = 0; + ::google::protobuf::internal::TSanWrite(&_impl_); + ::uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; _impl_.m_characterblocks_.Clear(); cached_has_bits = _impl_._has_bits_[0]; if (cached_has_bits & 0x00000007u) { - ::memset(&_impl_.xsize_, 0, static_cast( + ::memset(&_impl_.xsize_, 0, static_cast<::size_t>( reinterpret_cast(&_impl_.offset_) - reinterpret_cast(&_impl_.xsize_)) + sizeof(_impl_.offset_)); } _impl_._has_bits_.Clear(); - _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); -} - -const char* StandardFontsFile::_InternalParse(const char* ptr, ::_pbi::ParseContext* ctx) { -#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure - _Internal::HasBits has_bits{}; - while (!ctx->Done(&ptr)) { - uint32_t tag; - ptr = ::_pbi::ReadTag(ptr, &tag); - switch (tag >> 3) { - // optional float xSize = 1; - case 1: - if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 13)) { - _Internal::set_has_xsize(&has_bits); - _impl_.xsize_ = ::PROTOBUF_NAMESPACE_ID::internal::UnalignedLoad(ptr); - ptr += sizeof(float); - } else - goto handle_unusual; - continue; - // optional float ySize = 2; - case 2: - if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 21)) { - _Internal::set_has_ysize(&has_bits); - _impl_.ysize_ = ::PROTOBUF_NAMESPACE_ID::internal::UnalignedLoad(ptr); - ptr += sizeof(float); - } else - goto handle_unusual; - continue; - // optional float offset = 3; - case 3: - if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 29)) { - _Internal::set_has_offset(&has_bits); - _impl_.offset_ = ::PROTOBUF_NAMESPACE_ID::internal::UnalignedLoad(ptr); - ptr += sizeof(float); - } else - goto handle_unusual; - continue; - // repeated .Odb.Lib.Protobuf.StandardFontsFile.CharacterBlock m_characterBlocks = 4; - case 4: - if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 34)) { - ptr -= 1; - do { - ptr += 1; - ptr = ctx->ParseMessage(_internal_add_m_characterblocks(), ptr); - CHK_(ptr); - if (!ctx->DataAvailable(ptr)) break; - } while (::PROTOBUF_NAMESPACE_ID::internal::ExpectTag<34>(ptr)); - } else - goto handle_unusual; - continue; - default: - goto handle_unusual; - } // switch - handle_unusual: - if ((tag == 0) || ((tag & 7) == 4)) { - CHK_(ptr); - ctx->SetLastTag(tag); - goto message_done; - } - ptr = UnknownFieldParse( - tag, - _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(), - ptr, ctx); - CHK_(ptr != nullptr); - } // while -message_done: - _impl_._has_bits_.Or(has_bits); - return ptr; -failure: - ptr = nullptr; - goto message_done; -#undef CHK_ -} - -uint8_t* StandardFontsFile::_InternalSerialize( - uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { - // @@protoc_insertion_point(serialize_to_array_start:Odb.Lib.Protobuf.StandardFontsFile) - uint32_t cached_has_bits = 0; - (void) cached_has_bits; - - // optional float xSize = 1; - if (_internal_has_xsize()) { - target = stream->EnsureSpace(target); - target = ::_pbi::WireFormatLite::WriteFloatToArray(1, this->_internal_xsize(), target); - } - - // optional float ySize = 2; - if (_internal_has_ysize()) { - target = stream->EnsureSpace(target); - target = ::_pbi::WireFormatLite::WriteFloatToArray(2, this->_internal_ysize(), target); - } - - // optional float offset = 3; - if (_internal_has_offset()) { - target = stream->EnsureSpace(target); - target = ::_pbi::WireFormatLite::WriteFloatToArray(3, this->_internal_offset(), target); - } - - // repeated .Odb.Lib.Protobuf.StandardFontsFile.CharacterBlock m_characterBlocks = 4; - for (unsigned i = 0, - n = static_cast(this->_internal_m_characterblocks_size()); i < n; i++) { - const auto& repfield = this->_internal_m_characterblocks(i); - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: - InternalWriteMessage(4, repfield, repfield.GetCachedSize(), target, stream); - } - - if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = ::_pbi::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:Odb.Lib.Protobuf.StandardFontsFile) - return target; -} - -size_t StandardFontsFile::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:Odb.Lib.Protobuf.StandardFontsFile) - size_t total_size = 0; - - uint32_t cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - // repeated .Odb.Lib.Protobuf.StandardFontsFile.CharacterBlock m_characterBlocks = 4; - total_size += 1UL * this->_internal_m_characterblocks_size(); - for (const auto& msg : this->_impl_.m_characterblocks_) { - total_size += - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(msg); - } - - cached_has_bits = _impl_._has_bits_[0]; - if (cached_has_bits & 0x00000007u) { - // optional float xSize = 1; - if (cached_has_bits & 0x00000001u) { - total_size += 1 + 4; - } - - // optional float ySize = 2; - if (cached_has_bits & 0x00000002u) { - total_size += 1 + 4; - } - - // optional float offset = 3; - if (cached_has_bits & 0x00000004u) { - total_size += 1 + 4; - } - - } - return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); + _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); } -const ::PROTOBUF_NAMESPACE_ID::Message::ClassData StandardFontsFile::_class_data_ = { - ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSourceCheck, - StandardFontsFile::MergeImpl -}; -const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*StandardFontsFile::GetClassData() const { return &_class_data_; } - - -void StandardFontsFile::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg) { +#if defined(PROTOBUF_CUSTOM_VTABLE) + ::uint8_t* StandardFontsFile::_InternalSerialize( + const MessageLite& base, ::uint8_t* target, + ::google::protobuf::io::EpsCopyOutputStream* stream) { + const StandardFontsFile& this_ = static_cast(base); +#else // PROTOBUF_CUSTOM_VTABLE + ::uint8_t* StandardFontsFile::_InternalSerialize( + ::uint8_t* target, + ::google::protobuf::io::EpsCopyOutputStream* stream) const { + const StandardFontsFile& this_ = *this; +#endif // PROTOBUF_CUSTOM_VTABLE + // @@protoc_insertion_point(serialize_to_array_start:Odb.Lib.Protobuf.StandardFontsFile) + ::uint32_t cached_has_bits = 0; + (void)cached_has_bits; + + cached_has_bits = this_._impl_._has_bits_[0]; + // optional float xSize = 1; + if (cached_has_bits & 0x00000001u) { + target = stream->EnsureSpace(target); + target = ::_pbi::WireFormatLite::WriteFloatToArray( + 1, this_._internal_xsize(), target); + } + + // optional float ySize = 2; + if (cached_has_bits & 0x00000002u) { + target = stream->EnsureSpace(target); + target = ::_pbi::WireFormatLite::WriteFloatToArray( + 2, this_._internal_ysize(), target); + } + + // optional float offset = 3; + if (cached_has_bits & 0x00000004u) { + target = stream->EnsureSpace(target); + target = ::_pbi::WireFormatLite::WriteFloatToArray( + 3, this_._internal_offset(), target); + } + + // repeated .Odb.Lib.Protobuf.StandardFontsFile.CharacterBlock m_characterBlocks = 4; + for (unsigned i = 0, n = static_cast( + this_._internal_m_characterblocks_size()); + i < n; i++) { + const auto& repfield = this_._internal_m_characterblocks().Get(i); + target = + ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( + 4, repfield, repfield.GetCachedSize(), + target, stream); + } + + if (PROTOBUF_PREDICT_FALSE(this_._internal_metadata_.have_unknown_fields())) { + target = + ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( + this_._internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); + } + // @@protoc_insertion_point(serialize_to_array_end:Odb.Lib.Protobuf.StandardFontsFile) + return target; + } + +#if defined(PROTOBUF_CUSTOM_VTABLE) + ::size_t StandardFontsFile::ByteSizeLong(const MessageLite& base) { + const StandardFontsFile& this_ = static_cast(base); +#else // PROTOBUF_CUSTOM_VTABLE + ::size_t StandardFontsFile::ByteSizeLong() const { + const StandardFontsFile& this_ = *this; +#endif // PROTOBUF_CUSTOM_VTABLE + // @@protoc_insertion_point(message_byte_size_start:Odb.Lib.Protobuf.StandardFontsFile) + ::size_t total_size = 0; + + ::uint32_t cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void)cached_has_bits; + + ::_pbi::Prefetch5LinesFrom7Lines(&this_); + { + // repeated .Odb.Lib.Protobuf.StandardFontsFile.CharacterBlock m_characterBlocks = 4; + { + total_size += 1UL * this_._internal_m_characterblocks_size(); + for (const auto& msg : this_._internal_m_characterblocks()) { + total_size += ::google::protobuf::internal::WireFormatLite::MessageSize(msg); + } + } + } + cached_has_bits = this_._impl_._has_bits_[0]; + if (cached_has_bits & 0x00000007u) { + // optional float xSize = 1; + if (cached_has_bits & 0x00000001u) { + total_size += 5; + } + // optional float ySize = 2; + if (cached_has_bits & 0x00000002u) { + total_size += 5; + } + // optional float offset = 3; + if (cached_has_bits & 0x00000004u) { + total_size += 5; + } + } + return this_.MaybeComputeUnknownFieldsSize(total_size, + &this_._impl_._cached_size_); + } + +void StandardFontsFile::MergeImpl(::google::protobuf::MessageLite& to_msg, const ::google::protobuf::MessageLite& from_msg) { auto* const _this = static_cast(&to_msg); auto& from = static_cast(from_msg); // @@protoc_insertion_point(class_specific_merge_from_start:Odb.Lib.Protobuf.StandardFontsFile) - GOOGLE_DCHECK_NE(&from, _this); - uint32_t cached_has_bits = 0; + ABSL_DCHECK_NE(&from, _this); + ::uint32_t cached_has_bits = 0; (void) cached_has_bits; - _this->_impl_.m_characterblocks_.MergeFrom(from._impl_.m_characterblocks_); + _this->_internal_mutable_m_characterblocks()->MergeFrom( + from._internal_m_characterblocks()); cached_has_bits = from._impl_._has_bits_[0]; if (cached_has_bits & 0x00000007u) { if (cached_has_bits & 0x00000001u) { @@ -1076,9 +1192,9 @@ void StandardFontsFile::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, cons if (cached_has_bits & 0x00000004u) { _this->_impl_.offset_ = from._impl_.offset_; } - _this->_impl_._has_bits_[0] |= cached_has_bits; } - _this->_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); + _this->_impl_._has_bits_[0] |= cached_has_bits; + _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); } void StandardFontsFile::CopyFrom(const StandardFontsFile& from) { @@ -1088,16 +1204,13 @@ void StandardFontsFile::CopyFrom(const StandardFontsFile& from) { MergeFrom(from); } -bool StandardFontsFile::IsInitialized() const { - return true; -} -void StandardFontsFile::InternalSwap(StandardFontsFile* other) { +void StandardFontsFile::InternalSwap(StandardFontsFile* PROTOBUF_RESTRICT other) { using std::swap; _internal_metadata_.InternalSwap(&other->_internal_metadata_); swap(_impl_._has_bits_[0], other->_impl_._has_bits_[0]); _impl_.m_characterblocks_.InternalSwap(&other->_impl_.m_characterblocks_); - ::PROTOBUF_NAMESPACE_ID::internal::memswap< + ::google::protobuf::internal::memswap< PROTOBUF_FIELD_OFFSET(StandardFontsFile, _impl_.offset_) + sizeof(StandardFontsFile::_impl_.offset_) - PROTOBUF_FIELD_OFFSET(StandardFontsFile, _impl_.xsize_)>( @@ -1105,30 +1218,20 @@ void StandardFontsFile::InternalSwap(StandardFontsFile* other) { reinterpret_cast(&other->_impl_.xsize_)); } -::PROTOBUF_NAMESPACE_ID::Metadata StandardFontsFile::GetMetadata() const { - return ::_pbi::AssignDescriptors( - &descriptor_table_standardfontsfile_2eproto_getter, &descriptor_table_standardfontsfile_2eproto_once, - file_level_metadata_standardfontsfile_2eproto[2]); +::google::protobuf::Metadata StandardFontsFile::GetMetadata() const { + return ::google::protobuf::Message::GetMetadataImpl(GetClassData()->full()); } - // @@protoc_insertion_point(namespace_scope) } // namespace Protobuf } // namespace Lib } // namespace Odb -PROTOBUF_NAMESPACE_OPEN -template<> PROTOBUF_NOINLINE ::Odb::Lib::Protobuf::StandardFontsFile_CharacterBlock_LineRecord* -Arena::CreateMaybeMessage< ::Odb::Lib::Protobuf::StandardFontsFile_CharacterBlock_LineRecord >(Arena* arena) { - return Arena::CreateMessageInternal< ::Odb::Lib::Protobuf::StandardFontsFile_CharacterBlock_LineRecord >(arena); -} -template<> PROTOBUF_NOINLINE ::Odb::Lib::Protobuf::StandardFontsFile_CharacterBlock* -Arena::CreateMaybeMessage< ::Odb::Lib::Protobuf::StandardFontsFile_CharacterBlock >(Arena* arena) { - return Arena::CreateMessageInternal< ::Odb::Lib::Protobuf::StandardFontsFile_CharacterBlock >(arena); -} -template<> PROTOBUF_NOINLINE ::Odb::Lib::Protobuf::StandardFontsFile* -Arena::CreateMaybeMessage< ::Odb::Lib::Protobuf::StandardFontsFile >(Arena* arena) { - return Arena::CreateMessageInternal< ::Odb::Lib::Protobuf::StandardFontsFile >(arena); -} -PROTOBUF_NAMESPACE_CLOSE - +namespace google { +namespace protobuf { +} // namespace protobuf +} // namespace google // @@protoc_insertion_point(global_scope) -#include +PROTOBUF_ATTRIBUTE_INIT_PRIORITY2 static ::std::false_type + _static_init2_ PROTOBUF_UNUSED = + (::_pbi::AddDescriptors(&descriptor_table_standardfontsfile_2eproto), + ::std::false_type{}); +#include "google/protobuf/port_undef.inc" diff --git a/OdbDesignLib/ProtoBuf/standardfontsfile.pb.h b/OdbDesignLib/ProtoBuf/standardfontsfile.pb.h index 630bf865..fe9faa88 100644 --- a/OdbDesignLib/ProtoBuf/standardfontsfile.pb.h +++ b/OdbDesignLib/ProtoBuf/standardfontsfile.pb.h @@ -1,50 +1,57 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE // source: standardfontsfile.proto +// Protobuf C++ Version: 5.29.2 -#ifndef GOOGLE_PROTOBUF_INCLUDED_standardfontsfile_2eproto -#define GOOGLE_PROTOBUF_INCLUDED_standardfontsfile_2eproto +#ifndef standardfontsfile_2eproto_2epb_2eh +#define standardfontsfile_2eproto_2epb_2eh #include #include - -#include -#if PROTOBUF_VERSION < 3021000 -#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 3021012 < 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. +#include +#include + +#include "google/protobuf/runtime_version.h" +#if PROTOBUF_VERSION != 5029002 +#error "Protobuf C++ gencode is built with an incompatible version of" +#error "Protobuf C++ headers/runtime. See" +#error "https://protobuf.dev/support/cross-version-runtime-guarantee/#cpp" #endif - -#include -#include -#include -#include -#include -#include -#include -#include -#include // IWYU pragma: export -#include // IWYU pragma: export -#include +#include "google/protobuf/io/coded_stream.h" +#include "google/protobuf/arena.h" +#include "google/protobuf/arenastring.h" +#include "google/protobuf/generated_message_tctable_decl.h" +#include "google/protobuf/generated_message_util.h" +#include "google/protobuf/metadata_lite.h" +#include "google/protobuf/generated_message_reflection.h" +#include "google/protobuf/message.h" +#include "google/protobuf/message_lite.h" +#include "google/protobuf/repeated_field.h" // IWYU pragma: export +#include "google/protobuf/extension_set.h" // IWYU pragma: export +#include "google/protobuf/unknown_field_set.h" #include "enums.pb.h" // @@protoc_insertion_point(includes) -#include + +// Must be included last. +#include "google/protobuf/port_def.inc" + #define PROTOBUF_INTERNAL_EXPORT_standardfontsfile_2eproto ODBDESIGN_EXPORT -PROTOBUF_NAMESPACE_OPEN + +namespace google { +namespace protobuf { namespace internal { -class AnyMetadata; +template +::absl::string_view GetAnyMessageName(); } // namespace internal -PROTOBUF_NAMESPACE_CLOSE +} // namespace protobuf +} // namespace google // Internal implementation detail -- do not use these members. struct ODBDESIGN_EXPORT TableStruct_standardfontsfile_2eproto { - static const uint32_t offsets[]; + static const ::uint32_t offsets[]; }; -ODBDESIGN_EXPORT extern const ::PROTOBUF_NAMESPACE_ID::internal::DescriptorTable descriptor_table_standardfontsfile_2eproto; +ODBDESIGN_EXPORT extern const ::google::protobuf::internal::DescriptorTable + descriptor_table_standardfontsfile_2eproto; namespace Odb { namespace Lib { namespace Protobuf { @@ -60,41 +67,47 @@ ODBDESIGN_EXPORT extern StandardFontsFile_CharacterBlock_LineRecordDefaultTypeIn } // namespace Protobuf } // namespace Lib } // namespace Odb -PROTOBUF_NAMESPACE_OPEN -template<> ODBDESIGN_EXPORT ::Odb::Lib::Protobuf::StandardFontsFile* Arena::CreateMaybeMessage<::Odb::Lib::Protobuf::StandardFontsFile>(Arena*); -template<> ODBDESIGN_EXPORT ::Odb::Lib::Protobuf::StandardFontsFile_CharacterBlock* Arena::CreateMaybeMessage<::Odb::Lib::Protobuf::StandardFontsFile_CharacterBlock>(Arena*); -template<> ODBDESIGN_EXPORT ::Odb::Lib::Protobuf::StandardFontsFile_CharacterBlock_LineRecord* Arena::CreateMaybeMessage<::Odb::Lib::Protobuf::StandardFontsFile_CharacterBlock_LineRecord>(Arena*); -PROTOBUF_NAMESPACE_CLOSE +namespace google { +namespace protobuf { +} // namespace protobuf +} // namespace google + namespace Odb { namespace Lib { namespace Protobuf { // =================================================================== -class ODBDESIGN_EXPORT StandardFontsFile_CharacterBlock_LineRecord final : - public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:Odb.Lib.Protobuf.StandardFontsFile.CharacterBlock.LineRecord) */ { + +// ------------------------------------------------------------------- + +class ODBDESIGN_EXPORT StandardFontsFile_CharacterBlock_LineRecord final : public ::google::protobuf::Message +/* @@protoc_insertion_point(class_definition:Odb.Lib.Protobuf.StandardFontsFile.CharacterBlock.LineRecord) */ { public: inline StandardFontsFile_CharacterBlock_LineRecord() : StandardFontsFile_CharacterBlock_LineRecord(nullptr) {} - ~StandardFontsFile_CharacterBlock_LineRecord() override; - explicit PROTOBUF_CONSTEXPR StandardFontsFile_CharacterBlock_LineRecord(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); + ~StandardFontsFile_CharacterBlock_LineRecord() PROTOBUF_FINAL; - StandardFontsFile_CharacterBlock_LineRecord(const StandardFontsFile_CharacterBlock_LineRecord& from); - StandardFontsFile_CharacterBlock_LineRecord(StandardFontsFile_CharacterBlock_LineRecord&& from) noexcept - : StandardFontsFile_CharacterBlock_LineRecord() { - *this = ::std::move(from); +#if defined(PROTOBUF_CUSTOM_VTABLE) + void operator delete(StandardFontsFile_CharacterBlock_LineRecord* msg, std::destroying_delete_t) { + SharedDtor(*msg); + ::google::protobuf::internal::SizedDelete(msg, sizeof(StandardFontsFile_CharacterBlock_LineRecord)); } +#endif + + template + explicit PROTOBUF_CONSTEXPR StandardFontsFile_CharacterBlock_LineRecord( + ::google::protobuf::internal::ConstantInitialized); + inline StandardFontsFile_CharacterBlock_LineRecord(const StandardFontsFile_CharacterBlock_LineRecord& from) : StandardFontsFile_CharacterBlock_LineRecord(nullptr, from) {} + inline StandardFontsFile_CharacterBlock_LineRecord(StandardFontsFile_CharacterBlock_LineRecord&& from) noexcept + : StandardFontsFile_CharacterBlock_LineRecord(nullptr, std::move(from)) {} inline StandardFontsFile_CharacterBlock_LineRecord& operator=(const StandardFontsFile_CharacterBlock_LineRecord& from) { CopyFrom(from); return *this; } inline StandardFontsFile_CharacterBlock_LineRecord& operator=(StandardFontsFile_CharacterBlock_LineRecord&& from) noexcept { if (this == &from) return *this; - if (GetOwningArena() == from.GetOwningArena() - #ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetOwningArena() != nullptr - #endif // !PROTOBUF_FORCE_COPY_IN_MOVE - ) { + if (::google::protobuf::internal::CanMoveWithInternalSwap(GetArena(), from.GetArena())) { InternalSwap(&from); } else { CopyFrom(from); @@ -102,13 +115,22 @@ class ODBDESIGN_EXPORT StandardFontsFile_CharacterBlock_LineRecord final : return *this; } - static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { + inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const + ABSL_ATTRIBUTE_LIFETIME_BOUND { + return _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance); + } + inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() + ABSL_ATTRIBUTE_LIFETIME_BOUND { + return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); + } + + static const ::google::protobuf::Descriptor* descriptor() { return GetDescriptor(); } - static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { + static const ::google::protobuf::Descriptor* GetDescriptor() { return default_instance().GetMetadata().descriptor; } - static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { + static const ::google::protobuf::Reflection* GetReflection() { return default_instance().GetMetadata().reflection; } static const StandardFontsFile_CharacterBlock_LineRecord& default_instance() { @@ -116,81 +138,94 @@ class ODBDESIGN_EXPORT StandardFontsFile_CharacterBlock_LineRecord final : } static inline const StandardFontsFile_CharacterBlock_LineRecord* internal_default_instance() { return reinterpret_cast( - &_StandardFontsFile_CharacterBlock_LineRecord_default_instance_); - } - static constexpr int kIndexInFileMessages = - 0; - - friend void swap(StandardFontsFile_CharacterBlock_LineRecord& a, StandardFontsFile_CharacterBlock_LineRecord& b) { - a.Swap(&b); + &_StandardFontsFile_CharacterBlock_LineRecord_default_instance_); } + static constexpr int kIndexInFileMessages = 0; + friend void swap(StandardFontsFile_CharacterBlock_LineRecord& a, StandardFontsFile_CharacterBlock_LineRecord& b) { a.Swap(&b); } inline void Swap(StandardFontsFile_CharacterBlock_LineRecord* other) { if (other == this) return; - #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetOwningArena() != nullptr && - GetOwningArena() == other->GetOwningArena()) { - #else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetOwningArena() == other->GetOwningArena()) { - #endif // !PROTOBUF_FORCE_COPY_IN_SWAP + if (::google::protobuf::internal::CanUseInternalSwap(GetArena(), other->GetArena())) { InternalSwap(other); } else { - ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); + ::google::protobuf::internal::GenericSwap(this, other); } } void UnsafeArenaSwap(StandardFontsFile_CharacterBlock_LineRecord* other) { if (other == this) return; - GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); + ABSL_DCHECK(GetArena() == other->GetArena()); InternalSwap(other); } // implements Message ---------------------------------------------- - StandardFontsFile_CharacterBlock_LineRecord* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); + StandardFontsFile_CharacterBlock_LineRecord* New(::google::protobuf::Arena* arena = nullptr) const { + return ::google::protobuf::Message::DefaultConstruct(arena); } - using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; + using ::google::protobuf::Message::CopyFrom; void CopyFrom(const StandardFontsFile_CharacterBlock_LineRecord& from); - using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; - void MergeFrom( const StandardFontsFile_CharacterBlock_LineRecord& from) { - StandardFontsFile_CharacterBlock_LineRecord::MergeImpl(*this, from); - } + using ::google::protobuf::Message::MergeFrom; + void MergeFrom(const StandardFontsFile_CharacterBlock_LineRecord& from) { StandardFontsFile_CharacterBlock_LineRecord::MergeImpl(*this, from); } + private: - static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg); + static void MergeImpl( + ::google::protobuf::MessageLite& to_msg, + const ::google::protobuf::MessageLite& from_msg); + public: - PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; - bool IsInitialized() const final; + bool IsInitialized() const { + return true; + } + ABSL_ATTRIBUTE_REINITIALIZES void Clear() PROTOBUF_FINAL; + #if defined(PROTOBUF_CUSTOM_VTABLE) + private: + static ::size_t ByteSizeLong(const ::google::protobuf::MessageLite& msg); + static ::uint8_t* _InternalSerialize( + const MessageLite& msg, ::uint8_t* target, + ::google::protobuf::io::EpsCopyOutputStream* stream); - size_t ByteSizeLong() const final; - const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final; - uint8_t* _InternalSerialize( - uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const final { return _impl_._cached_size_.Get(); } + public: + ::size_t ByteSizeLong() const { return ByteSizeLong(*this); } + ::uint8_t* _InternalSerialize( + ::uint8_t* target, + ::google::protobuf::io::EpsCopyOutputStream* stream) const { + return _InternalSerialize(*this, target, stream); + } + #else // PROTOBUF_CUSTOM_VTABLE + ::size_t ByteSizeLong() const final; + ::uint8_t* _InternalSerialize( + ::uint8_t* target, + ::google::protobuf::io::EpsCopyOutputStream* stream) const final; + #endif // PROTOBUF_CUSTOM_VTABLE + int GetCachedSize() const { return _impl_._cached_size_.Get(); } private: - void SharedCtor(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned); - void SharedDtor(); - void SetCachedSize(int size) const final; + void SharedCtor(::google::protobuf::Arena* arena); + static void SharedDtor(MessageLite& self); void InternalSwap(StandardFontsFile_CharacterBlock_LineRecord* other); - - private: - friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; - static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { - return "Odb.Lib.Protobuf.StandardFontsFile.CharacterBlock.LineRecord"; + private: + template + friend ::absl::string_view( + ::google::protobuf::internal::GetAnyMessageName)(); + static ::absl::string_view FullMessageName() { return "Odb.Lib.Protobuf.StandardFontsFile.CharacterBlock.LineRecord"; } + + protected: + explicit StandardFontsFile_CharacterBlock_LineRecord(::google::protobuf::Arena* arena); + StandardFontsFile_CharacterBlock_LineRecord(::google::protobuf::Arena* arena, const StandardFontsFile_CharacterBlock_LineRecord& from); + StandardFontsFile_CharacterBlock_LineRecord(::google::protobuf::Arena* arena, StandardFontsFile_CharacterBlock_LineRecord&& from) noexcept + : StandardFontsFile_CharacterBlock_LineRecord(arena) { + *this = ::std::move(from); } - protected: - explicit StandardFontsFile_CharacterBlock_LineRecord(::PROTOBUF_NAMESPACE_ID::Arena* arena, - bool is_message_owned = false); - public: - - static const ClassData _class_data_; - const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final; - - ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; + const ::google::protobuf::internal::ClassData* GetClassData() const PROTOBUF_FINAL; + static void* PlacementNew_(const void*, void* mem, + ::google::protobuf::Arena* arena); + static constexpr auto InternalNewImpl_(); + static const ::google::protobuf::internal::ClassDataFull _class_data_; + public: + ::google::protobuf::Metadata GetMetadata() const; // nested types ---------------------------------------------------- // accessors ------------------------------------------------------- - enum : int { kXStartFieldNumber = 1, kYStartFieldNumber = 2, @@ -202,105 +237,106 @@ class ODBDESIGN_EXPORT StandardFontsFile_CharacterBlock_LineRecord final : }; // optional float xStart = 1; bool has_xstart() const; - private: - bool _internal_has_xstart() const; - public: - void clear_xstart(); + void clear_xstart() ; float xstart() const; void set_xstart(float value); + private: float _internal_xstart() const; void _internal_set_xstart(float value); - public: + public: // optional float yStart = 2; bool has_ystart() const; - private: - bool _internal_has_ystart() const; - public: - void clear_ystart(); + void clear_ystart() ; float ystart() const; void set_ystart(float value); + private: float _internal_ystart() const; void _internal_set_ystart(float value); - public: + public: // optional float xEnd = 3; bool has_xend() const; - private: - bool _internal_has_xend() const; - public: - void clear_xend(); + void clear_xend() ; float xend() const; void set_xend(float value); + private: float _internal_xend() const; void _internal_set_xend(float value); - public: + public: // optional float yEnd = 4; bool has_yend() const; - private: - bool _internal_has_yend() const; - public: - void clear_yend(); + void clear_yend() ; float yend() const; void set_yend(float value); + private: float _internal_yend() const; void _internal_set_yend(float value); - public: + public: // optional .Odb.Lib.Protobuf.Polarity polarity = 5; bool has_polarity() const; - private: - bool _internal_has_polarity() const; - public: - void clear_polarity(); + void clear_polarity() ; ::Odb::Lib::Protobuf::Polarity polarity() const; void set_polarity(::Odb::Lib::Protobuf::Polarity value); + private: ::Odb::Lib::Protobuf::Polarity _internal_polarity() const; void _internal_set_polarity(::Odb::Lib::Protobuf::Polarity value); - public: + public: // optional .Odb.Lib.Protobuf.LineShape shape = 6; bool has_shape() const; - private: - bool _internal_has_shape() const; - public: - void clear_shape(); + void clear_shape() ; ::Odb::Lib::Protobuf::LineShape shape() const; void set_shape(::Odb::Lib::Protobuf::LineShape value); + private: ::Odb::Lib::Protobuf::LineShape _internal_shape() const; void _internal_set_shape(::Odb::Lib::Protobuf::LineShape value); - public: + public: // optional float width = 7; bool has_width() const; - private: - bool _internal_has_width() const; - public: - void clear_width(); + void clear_width() ; float width() const; void set_width(float value); + private: float _internal_width() const; void _internal_set_width(float value); - public: + public: // @@protoc_insertion_point(class_scope:Odb.Lib.Protobuf.StandardFontsFile.CharacterBlock.LineRecord) private: class _Internal; - - template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; - typedef void InternalArenaConstructable_; - typedef void DestructorSkippable_; + friend class ::google::protobuf::internal::TcParser; + static const ::google::protobuf::internal::TcParseTable< + 3, 7, 0, + 0, 2> + _table_; + + friend class ::google::protobuf::MessageLite; + friend class ::google::protobuf::Arena; + template + friend class ::google::protobuf::Arena::InternalHelper; + using InternalArenaConstructable_ = void; + using DestructorSkippable_ = void; struct Impl_ { - ::PROTOBUF_NAMESPACE_ID::internal::HasBits<1> _has_bits_; - mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; + inline explicit constexpr Impl_( + ::google::protobuf::internal::ConstantInitialized) noexcept; + inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* arena); + inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* arena, const Impl_& from, + const StandardFontsFile_CharacterBlock_LineRecord& from_msg); + ::google::protobuf::internal::HasBits<1> _has_bits_; + ::google::protobuf::internal::CachedSize _cached_size_; float xstart_; float ystart_; float xend_; @@ -308,36 +344,40 @@ class ODBDESIGN_EXPORT StandardFontsFile_CharacterBlock_LineRecord final : int polarity_; int shape_; float width_; + PROTOBUF_TSAN_DECLARE_MEMBER }; union { Impl_ _impl_; }; friend struct ::TableStruct_standardfontsfile_2eproto; }; // ------------------------------------------------------------------- -class ODBDESIGN_EXPORT StandardFontsFile_CharacterBlock final : - public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:Odb.Lib.Protobuf.StandardFontsFile.CharacterBlock) */ { +class ODBDESIGN_EXPORT StandardFontsFile_CharacterBlock final : public ::google::protobuf::Message +/* @@protoc_insertion_point(class_definition:Odb.Lib.Protobuf.StandardFontsFile.CharacterBlock) */ { public: inline StandardFontsFile_CharacterBlock() : StandardFontsFile_CharacterBlock(nullptr) {} - ~StandardFontsFile_CharacterBlock() override; - explicit PROTOBUF_CONSTEXPR StandardFontsFile_CharacterBlock(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); + ~StandardFontsFile_CharacterBlock() PROTOBUF_FINAL; - StandardFontsFile_CharacterBlock(const StandardFontsFile_CharacterBlock& from); - StandardFontsFile_CharacterBlock(StandardFontsFile_CharacterBlock&& from) noexcept - : StandardFontsFile_CharacterBlock() { - *this = ::std::move(from); +#if defined(PROTOBUF_CUSTOM_VTABLE) + void operator delete(StandardFontsFile_CharacterBlock* msg, std::destroying_delete_t) { + SharedDtor(*msg); + ::google::protobuf::internal::SizedDelete(msg, sizeof(StandardFontsFile_CharacterBlock)); } +#endif + + template + explicit PROTOBUF_CONSTEXPR StandardFontsFile_CharacterBlock( + ::google::protobuf::internal::ConstantInitialized); + inline StandardFontsFile_CharacterBlock(const StandardFontsFile_CharacterBlock& from) : StandardFontsFile_CharacterBlock(nullptr, from) {} + inline StandardFontsFile_CharacterBlock(StandardFontsFile_CharacterBlock&& from) noexcept + : StandardFontsFile_CharacterBlock(nullptr, std::move(from)) {} inline StandardFontsFile_CharacterBlock& operator=(const StandardFontsFile_CharacterBlock& from) { CopyFrom(from); return *this; } inline StandardFontsFile_CharacterBlock& operator=(StandardFontsFile_CharacterBlock&& from) noexcept { if (this == &from) return *this; - if (GetOwningArena() == from.GetOwningArena() - #ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetOwningArena() != nullptr - #endif // !PROTOBUF_FORCE_COPY_IN_MOVE - ) { + if (::google::protobuf::internal::CanMoveWithInternalSwap(GetArena(), from.GetArena())) { InternalSwap(&from); } else { CopyFrom(from); @@ -345,13 +385,22 @@ class ODBDESIGN_EXPORT StandardFontsFile_CharacterBlock final : return *this; } - static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { + inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const + ABSL_ATTRIBUTE_LIFETIME_BOUND { + return _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance); + } + inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() + ABSL_ATTRIBUTE_LIFETIME_BOUND { + return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); + } + + static const ::google::protobuf::Descriptor* descriptor() { return GetDescriptor(); } - static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { + static const ::google::protobuf::Descriptor* GetDescriptor() { return default_instance().GetMetadata().descriptor; } - static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { + static const ::google::protobuf::Reflection* GetReflection() { return default_instance().GetMetadata().reflection; } static const StandardFontsFile_CharacterBlock& default_instance() { @@ -359,83 +408,95 @@ class ODBDESIGN_EXPORT StandardFontsFile_CharacterBlock final : } static inline const StandardFontsFile_CharacterBlock* internal_default_instance() { return reinterpret_cast( - &_StandardFontsFile_CharacterBlock_default_instance_); - } - static constexpr int kIndexInFileMessages = - 1; - - friend void swap(StandardFontsFile_CharacterBlock& a, StandardFontsFile_CharacterBlock& b) { - a.Swap(&b); + &_StandardFontsFile_CharacterBlock_default_instance_); } + static constexpr int kIndexInFileMessages = 1; + friend void swap(StandardFontsFile_CharacterBlock& a, StandardFontsFile_CharacterBlock& b) { a.Swap(&b); } inline void Swap(StandardFontsFile_CharacterBlock* other) { if (other == this) return; - #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetOwningArena() != nullptr && - GetOwningArena() == other->GetOwningArena()) { - #else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetOwningArena() == other->GetOwningArena()) { - #endif // !PROTOBUF_FORCE_COPY_IN_SWAP + if (::google::protobuf::internal::CanUseInternalSwap(GetArena(), other->GetArena())) { InternalSwap(other); } else { - ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); + ::google::protobuf::internal::GenericSwap(this, other); } } void UnsafeArenaSwap(StandardFontsFile_CharacterBlock* other) { if (other == this) return; - GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); + ABSL_DCHECK(GetArena() == other->GetArena()); InternalSwap(other); } // implements Message ---------------------------------------------- - StandardFontsFile_CharacterBlock* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); + StandardFontsFile_CharacterBlock* New(::google::protobuf::Arena* arena = nullptr) const { + return ::google::protobuf::Message::DefaultConstruct(arena); } - using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; + using ::google::protobuf::Message::CopyFrom; void CopyFrom(const StandardFontsFile_CharacterBlock& from); - using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; - void MergeFrom( const StandardFontsFile_CharacterBlock& from) { - StandardFontsFile_CharacterBlock::MergeImpl(*this, from); - } + using ::google::protobuf::Message::MergeFrom; + void MergeFrom(const StandardFontsFile_CharacterBlock& from) { StandardFontsFile_CharacterBlock::MergeImpl(*this, from); } + private: - static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg); + static void MergeImpl( + ::google::protobuf::MessageLite& to_msg, + const ::google::protobuf::MessageLite& from_msg); + public: - PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; - bool IsInitialized() const final; + bool IsInitialized() const { + return true; + } + ABSL_ATTRIBUTE_REINITIALIZES void Clear() PROTOBUF_FINAL; + #if defined(PROTOBUF_CUSTOM_VTABLE) + private: + static ::size_t ByteSizeLong(const ::google::protobuf::MessageLite& msg); + static ::uint8_t* _InternalSerialize( + const MessageLite& msg, ::uint8_t* target, + ::google::protobuf::io::EpsCopyOutputStream* stream); - size_t ByteSizeLong() const final; - const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final; - uint8_t* _InternalSerialize( - uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const final { return _impl_._cached_size_.Get(); } + public: + ::size_t ByteSizeLong() const { return ByteSizeLong(*this); } + ::uint8_t* _InternalSerialize( + ::uint8_t* target, + ::google::protobuf::io::EpsCopyOutputStream* stream) const { + return _InternalSerialize(*this, target, stream); + } + #else // PROTOBUF_CUSTOM_VTABLE + ::size_t ByteSizeLong() const final; + ::uint8_t* _InternalSerialize( + ::uint8_t* target, + ::google::protobuf::io::EpsCopyOutputStream* stream) const final; + #endif // PROTOBUF_CUSTOM_VTABLE + int GetCachedSize() const { return _impl_._cached_size_.Get(); } private: - void SharedCtor(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned); - void SharedDtor(); - void SetCachedSize(int size) const final; + void SharedCtor(::google::protobuf::Arena* arena); + static void SharedDtor(MessageLite& self); void InternalSwap(StandardFontsFile_CharacterBlock* other); - - private: - friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; - static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { - return "Odb.Lib.Protobuf.StandardFontsFile.CharacterBlock"; + private: + template + friend ::absl::string_view( + ::google::protobuf::internal::GetAnyMessageName)(); + static ::absl::string_view FullMessageName() { return "Odb.Lib.Protobuf.StandardFontsFile.CharacterBlock"; } + + protected: + explicit StandardFontsFile_CharacterBlock(::google::protobuf::Arena* arena); + StandardFontsFile_CharacterBlock(::google::protobuf::Arena* arena, const StandardFontsFile_CharacterBlock& from); + StandardFontsFile_CharacterBlock(::google::protobuf::Arena* arena, StandardFontsFile_CharacterBlock&& from) noexcept + : StandardFontsFile_CharacterBlock(arena) { + *this = ::std::move(from); } - protected: - explicit StandardFontsFile_CharacterBlock(::PROTOBUF_NAMESPACE_ID::Arena* arena, - bool is_message_owned = false); - public: - - static const ClassData _class_data_; - const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final; - - ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; + const ::google::protobuf::internal::ClassData* GetClassData() const PROTOBUF_FINAL; + static void* PlacementNew_(const void*, void* mem, + ::google::protobuf::Arena* arena); + static constexpr auto InternalNewImpl_(); + static const ::google::protobuf::internal::ClassDataFull _class_data_; + public: + ::google::protobuf::Metadata GetMetadata() const; // nested types ---------------------------------------------------- - - typedef StandardFontsFile_CharacterBlock_LineRecord LineRecord; + using LineRecord = StandardFontsFile_CharacterBlock_LineRecord; // accessors ------------------------------------------------------- - enum : int { kMLineRecordsFieldNumber = 2, kCharacterFieldNumber = 1, @@ -444,80 +505,97 @@ class ODBDESIGN_EXPORT StandardFontsFile_CharacterBlock final : int m_linerecords_size() const; private: int _internal_m_linerecords_size() const; + public: - void clear_m_linerecords(); + void clear_m_linerecords() ; ::Odb::Lib::Protobuf::StandardFontsFile_CharacterBlock_LineRecord* mutable_m_linerecords(int index); - ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::Odb::Lib::Protobuf::StandardFontsFile_CharacterBlock_LineRecord >* - mutable_m_linerecords(); + ::google::protobuf::RepeatedPtrField<::Odb::Lib::Protobuf::StandardFontsFile_CharacterBlock_LineRecord>* mutable_m_linerecords(); + private: - const ::Odb::Lib::Protobuf::StandardFontsFile_CharacterBlock_LineRecord& _internal_m_linerecords(int index) const; - ::Odb::Lib::Protobuf::StandardFontsFile_CharacterBlock_LineRecord* _internal_add_m_linerecords(); + const ::google::protobuf::RepeatedPtrField<::Odb::Lib::Protobuf::StandardFontsFile_CharacterBlock_LineRecord>& _internal_m_linerecords() const; + ::google::protobuf::RepeatedPtrField<::Odb::Lib::Protobuf::StandardFontsFile_CharacterBlock_LineRecord>* _internal_mutable_m_linerecords(); public: const ::Odb::Lib::Protobuf::StandardFontsFile_CharacterBlock_LineRecord& m_linerecords(int index) const; ::Odb::Lib::Protobuf::StandardFontsFile_CharacterBlock_LineRecord* add_m_linerecords(); - const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::Odb::Lib::Protobuf::StandardFontsFile_CharacterBlock_LineRecord >& - m_linerecords() const; - + const ::google::protobuf::RepeatedPtrField<::Odb::Lib::Protobuf::StandardFontsFile_CharacterBlock_LineRecord>& m_linerecords() const; // optional string character = 1; bool has_character() const; - private: - bool _internal_has_character() const; - public: - void clear_character(); + void clear_character() ; const std::string& character() const; - template - void set_character(ArgT0&& arg0, ArgT... args); + template + void set_character(Arg_&& arg, Args_... args); std::string* mutable_character(); PROTOBUF_NODISCARD std::string* release_character(); - void set_allocated_character(std::string* character); + void set_allocated_character(std::string* value); + private: const std::string& _internal_character() const; - inline PROTOBUF_ALWAYS_INLINE void _internal_set_character(const std::string& value); + inline PROTOBUF_ALWAYS_INLINE void _internal_set_character( + const std::string& value); std::string* _internal_mutable_character(); - public: + public: // @@protoc_insertion_point(class_scope:Odb.Lib.Protobuf.StandardFontsFile.CharacterBlock) private: class _Internal; - - template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; - typedef void InternalArenaConstructable_; - typedef void DestructorSkippable_; + friend class ::google::protobuf::internal::TcParser; + static const ::google::protobuf::internal::TcParseTable< + 1, 2, 1, + 67, 2> + _table_; + + friend class ::google::protobuf::MessageLite; + friend class ::google::protobuf::Arena; + template + friend class ::google::protobuf::Arena::InternalHelper; + using InternalArenaConstructable_ = void; + using DestructorSkippable_ = void; struct Impl_ { - ::PROTOBUF_NAMESPACE_ID::internal::HasBits<1> _has_bits_; - mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; - ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::Odb::Lib::Protobuf::StandardFontsFile_CharacterBlock_LineRecord > m_linerecords_; - ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr character_; + inline explicit constexpr Impl_( + ::google::protobuf::internal::ConstantInitialized) noexcept; + inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* arena); + inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* arena, const Impl_& from, + const StandardFontsFile_CharacterBlock& from_msg); + ::google::protobuf::internal::HasBits<1> _has_bits_; + ::google::protobuf::internal::CachedSize _cached_size_; + ::google::protobuf::RepeatedPtrField< ::Odb::Lib::Protobuf::StandardFontsFile_CharacterBlock_LineRecord > m_linerecords_; + ::google::protobuf::internal::ArenaStringPtr character_; + PROTOBUF_TSAN_DECLARE_MEMBER }; union { Impl_ _impl_; }; friend struct ::TableStruct_standardfontsfile_2eproto; }; // ------------------------------------------------------------------- -class ODBDESIGN_EXPORT StandardFontsFile final : - public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:Odb.Lib.Protobuf.StandardFontsFile) */ { +class ODBDESIGN_EXPORT StandardFontsFile final : public ::google::protobuf::Message +/* @@protoc_insertion_point(class_definition:Odb.Lib.Protobuf.StandardFontsFile) */ { public: inline StandardFontsFile() : StandardFontsFile(nullptr) {} - ~StandardFontsFile() override; - explicit PROTOBUF_CONSTEXPR StandardFontsFile(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); + ~StandardFontsFile() PROTOBUF_FINAL; - StandardFontsFile(const StandardFontsFile& from); - StandardFontsFile(StandardFontsFile&& from) noexcept - : StandardFontsFile() { - *this = ::std::move(from); +#if defined(PROTOBUF_CUSTOM_VTABLE) + void operator delete(StandardFontsFile* msg, std::destroying_delete_t) { + SharedDtor(*msg); + ::google::protobuf::internal::SizedDelete(msg, sizeof(StandardFontsFile)); } +#endif + template + explicit PROTOBUF_CONSTEXPR StandardFontsFile( + ::google::protobuf::internal::ConstantInitialized); + + inline StandardFontsFile(const StandardFontsFile& from) : StandardFontsFile(nullptr, from) {} + inline StandardFontsFile(StandardFontsFile&& from) noexcept + : StandardFontsFile(nullptr, std::move(from)) {} inline StandardFontsFile& operator=(const StandardFontsFile& from) { CopyFrom(from); return *this; } inline StandardFontsFile& operator=(StandardFontsFile&& from) noexcept { if (this == &from) return *this; - if (GetOwningArena() == from.GetOwningArena() - #ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetOwningArena() != nullptr - #endif // !PROTOBUF_FORCE_COPY_IN_MOVE - ) { + if (::google::protobuf::internal::CanMoveWithInternalSwap(GetArena(), from.GetArena())) { InternalSwap(&from); } else { CopyFrom(from); @@ -525,13 +603,22 @@ class ODBDESIGN_EXPORT StandardFontsFile final : return *this; } - static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { + inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const + ABSL_ATTRIBUTE_LIFETIME_BOUND { + return _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance); + } + inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() + ABSL_ATTRIBUTE_LIFETIME_BOUND { + return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); + } + + static const ::google::protobuf::Descriptor* descriptor() { return GetDescriptor(); } - static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { + static const ::google::protobuf::Descriptor* GetDescriptor() { return default_instance().GetMetadata().descriptor; } - static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { + static const ::google::protobuf::Reflection* GetReflection() { return default_instance().GetMetadata().reflection; } static const StandardFontsFile& default_instance() { @@ -539,83 +626,95 @@ class ODBDESIGN_EXPORT StandardFontsFile final : } static inline const StandardFontsFile* internal_default_instance() { return reinterpret_cast( - &_StandardFontsFile_default_instance_); - } - static constexpr int kIndexInFileMessages = - 2; - - friend void swap(StandardFontsFile& a, StandardFontsFile& b) { - a.Swap(&b); + &_StandardFontsFile_default_instance_); } + static constexpr int kIndexInFileMessages = 2; + friend void swap(StandardFontsFile& a, StandardFontsFile& b) { a.Swap(&b); } inline void Swap(StandardFontsFile* other) { if (other == this) return; - #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetOwningArena() != nullptr && - GetOwningArena() == other->GetOwningArena()) { - #else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetOwningArena() == other->GetOwningArena()) { - #endif // !PROTOBUF_FORCE_COPY_IN_SWAP + if (::google::protobuf::internal::CanUseInternalSwap(GetArena(), other->GetArena())) { InternalSwap(other); } else { - ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); + ::google::protobuf::internal::GenericSwap(this, other); } } void UnsafeArenaSwap(StandardFontsFile* other) { if (other == this) return; - GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); + ABSL_DCHECK(GetArena() == other->GetArena()); InternalSwap(other); } // implements Message ---------------------------------------------- - StandardFontsFile* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); + StandardFontsFile* New(::google::protobuf::Arena* arena = nullptr) const { + return ::google::protobuf::Message::DefaultConstruct(arena); } - using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; + using ::google::protobuf::Message::CopyFrom; void CopyFrom(const StandardFontsFile& from); - using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; - void MergeFrom( const StandardFontsFile& from) { - StandardFontsFile::MergeImpl(*this, from); - } + using ::google::protobuf::Message::MergeFrom; + void MergeFrom(const StandardFontsFile& from) { StandardFontsFile::MergeImpl(*this, from); } + private: - static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg); + static void MergeImpl( + ::google::protobuf::MessageLite& to_msg, + const ::google::protobuf::MessageLite& from_msg); + public: - PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; - bool IsInitialized() const final; + bool IsInitialized() const { + return true; + } + ABSL_ATTRIBUTE_REINITIALIZES void Clear() PROTOBUF_FINAL; + #if defined(PROTOBUF_CUSTOM_VTABLE) + private: + static ::size_t ByteSizeLong(const ::google::protobuf::MessageLite& msg); + static ::uint8_t* _InternalSerialize( + const MessageLite& msg, ::uint8_t* target, + ::google::protobuf::io::EpsCopyOutputStream* stream); - size_t ByteSizeLong() const final; - const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final; - uint8_t* _InternalSerialize( - uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const final { return _impl_._cached_size_.Get(); } + public: + ::size_t ByteSizeLong() const { return ByteSizeLong(*this); } + ::uint8_t* _InternalSerialize( + ::uint8_t* target, + ::google::protobuf::io::EpsCopyOutputStream* stream) const { + return _InternalSerialize(*this, target, stream); + } + #else // PROTOBUF_CUSTOM_VTABLE + ::size_t ByteSizeLong() const final; + ::uint8_t* _InternalSerialize( + ::uint8_t* target, + ::google::protobuf::io::EpsCopyOutputStream* stream) const final; + #endif // PROTOBUF_CUSTOM_VTABLE + int GetCachedSize() const { return _impl_._cached_size_.Get(); } private: - void SharedCtor(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned); - void SharedDtor(); - void SetCachedSize(int size) const final; + void SharedCtor(::google::protobuf::Arena* arena); + static void SharedDtor(MessageLite& self); void InternalSwap(StandardFontsFile* other); - - private: - friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; - static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { - return "Odb.Lib.Protobuf.StandardFontsFile"; + private: + template + friend ::absl::string_view( + ::google::protobuf::internal::GetAnyMessageName)(); + static ::absl::string_view FullMessageName() { return "Odb.Lib.Protobuf.StandardFontsFile"; } + + protected: + explicit StandardFontsFile(::google::protobuf::Arena* arena); + StandardFontsFile(::google::protobuf::Arena* arena, const StandardFontsFile& from); + StandardFontsFile(::google::protobuf::Arena* arena, StandardFontsFile&& from) noexcept + : StandardFontsFile(arena) { + *this = ::std::move(from); } - protected: - explicit StandardFontsFile(::PROTOBUF_NAMESPACE_ID::Arena* arena, - bool is_message_owned = false); - public: - - static const ClassData _class_data_; - const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final; - - ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; + const ::google::protobuf::internal::ClassData* GetClassData() const PROTOBUF_FINAL; + static void* PlacementNew_(const void*, void* mem, + ::google::protobuf::Arena* arena); + static constexpr auto InternalNewImpl_(); + static const ::google::protobuf::internal::ClassDataFull _class_data_; + public: + ::google::protobuf::Metadata GetMetadata() const; // nested types ---------------------------------------------------- - - typedef StandardFontsFile_CharacterBlock CharacterBlock; + using CharacterBlock = StandardFontsFile_CharacterBlock; // accessors ------------------------------------------------------- - enum : int { kMCharacterBlocksFieldNumber = 4, kXSizeFieldNumber = 1, @@ -626,539 +725,570 @@ class ODBDESIGN_EXPORT StandardFontsFile final : int m_characterblocks_size() const; private: int _internal_m_characterblocks_size() const; + public: - void clear_m_characterblocks(); + void clear_m_characterblocks() ; ::Odb::Lib::Protobuf::StandardFontsFile_CharacterBlock* mutable_m_characterblocks(int index); - ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::Odb::Lib::Protobuf::StandardFontsFile_CharacterBlock >* - mutable_m_characterblocks(); + ::google::protobuf::RepeatedPtrField<::Odb::Lib::Protobuf::StandardFontsFile_CharacterBlock>* mutable_m_characterblocks(); + private: - const ::Odb::Lib::Protobuf::StandardFontsFile_CharacterBlock& _internal_m_characterblocks(int index) const; - ::Odb::Lib::Protobuf::StandardFontsFile_CharacterBlock* _internal_add_m_characterblocks(); + const ::google::protobuf::RepeatedPtrField<::Odb::Lib::Protobuf::StandardFontsFile_CharacterBlock>& _internal_m_characterblocks() const; + ::google::protobuf::RepeatedPtrField<::Odb::Lib::Protobuf::StandardFontsFile_CharacterBlock>* _internal_mutable_m_characterblocks(); public: const ::Odb::Lib::Protobuf::StandardFontsFile_CharacterBlock& m_characterblocks(int index) const; ::Odb::Lib::Protobuf::StandardFontsFile_CharacterBlock* add_m_characterblocks(); - const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::Odb::Lib::Protobuf::StandardFontsFile_CharacterBlock >& - m_characterblocks() const; - + const ::google::protobuf::RepeatedPtrField<::Odb::Lib::Protobuf::StandardFontsFile_CharacterBlock>& m_characterblocks() const; // optional float xSize = 1; bool has_xsize() const; - private: - bool _internal_has_xsize() const; - public: - void clear_xsize(); + void clear_xsize() ; float xsize() const; void set_xsize(float value); + private: float _internal_xsize() const; void _internal_set_xsize(float value); - public: + public: // optional float ySize = 2; bool has_ysize() const; - private: - bool _internal_has_ysize() const; - public: - void clear_ysize(); + void clear_ysize() ; float ysize() const; void set_ysize(float value); + private: float _internal_ysize() const; void _internal_set_ysize(float value); - public: + public: // optional float offset = 3; bool has_offset() const; - private: - bool _internal_has_offset() const; - public: - void clear_offset(); + void clear_offset() ; float offset() const; void set_offset(float value); + private: float _internal_offset() const; void _internal_set_offset(float value); - public: + public: // @@protoc_insertion_point(class_scope:Odb.Lib.Protobuf.StandardFontsFile) private: class _Internal; - - template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; - typedef void InternalArenaConstructable_; - typedef void DestructorSkippable_; + friend class ::google::protobuf::internal::TcParser; + static const ::google::protobuf::internal::TcParseTable< + 2, 4, 1, + 0, 2> + _table_; + + friend class ::google::protobuf::MessageLite; + friend class ::google::protobuf::Arena; + template + friend class ::google::protobuf::Arena::InternalHelper; + using InternalArenaConstructable_ = void; + using DestructorSkippable_ = void; struct Impl_ { - ::PROTOBUF_NAMESPACE_ID::internal::HasBits<1> _has_bits_; - mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; - ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::Odb::Lib::Protobuf::StandardFontsFile_CharacterBlock > m_characterblocks_; + inline explicit constexpr Impl_( + ::google::protobuf::internal::ConstantInitialized) noexcept; + inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* arena); + inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* arena, const Impl_& from, + const StandardFontsFile& from_msg); + ::google::protobuf::internal::HasBits<1> _has_bits_; + ::google::protobuf::internal::CachedSize _cached_size_; + ::google::protobuf::RepeatedPtrField< ::Odb::Lib::Protobuf::StandardFontsFile_CharacterBlock > m_characterblocks_; float xsize_; float ysize_; float offset_; + PROTOBUF_TSAN_DECLARE_MEMBER }; union { Impl_ _impl_; }; friend struct ::TableStruct_standardfontsfile_2eproto; }; + // =================================================================== + + // =================================================================== + #ifdef __GNUC__ - #pragma GCC diagnostic push - #pragma GCC diagnostic ignored "-Wstrict-aliasing" +#pragma GCC diagnostic push +#pragma GCC diagnostic ignored "-Wstrict-aliasing" #endif // __GNUC__ +// ------------------------------------------------------------------- + // StandardFontsFile_CharacterBlock_LineRecord // optional float xStart = 1; -inline bool StandardFontsFile_CharacterBlock_LineRecord::_internal_has_xstart() const { +inline bool StandardFontsFile_CharacterBlock_LineRecord::has_xstart() const { bool value = (_impl_._has_bits_[0] & 0x00000001u) != 0; return value; } -inline bool StandardFontsFile_CharacterBlock_LineRecord::has_xstart() const { - return _internal_has_xstart(); -} inline void StandardFontsFile_CharacterBlock_LineRecord::clear_xstart() { + ::google::protobuf::internal::TSanWrite(&_impl_); _impl_.xstart_ = 0; _impl_._has_bits_[0] &= ~0x00000001u; } -inline float StandardFontsFile_CharacterBlock_LineRecord::_internal_xstart() const { - return _impl_.xstart_; -} inline float StandardFontsFile_CharacterBlock_LineRecord::xstart() const { // @@protoc_insertion_point(field_get:Odb.Lib.Protobuf.StandardFontsFile.CharacterBlock.LineRecord.xStart) return _internal_xstart(); } -inline void StandardFontsFile_CharacterBlock_LineRecord::_internal_set_xstart(float value) { - _impl_._has_bits_[0] |= 0x00000001u; - _impl_.xstart_ = value; -} inline void StandardFontsFile_CharacterBlock_LineRecord::set_xstart(float value) { _internal_set_xstart(value); + _impl_._has_bits_[0] |= 0x00000001u; // @@protoc_insertion_point(field_set:Odb.Lib.Protobuf.StandardFontsFile.CharacterBlock.LineRecord.xStart) } +inline float StandardFontsFile_CharacterBlock_LineRecord::_internal_xstart() const { + ::google::protobuf::internal::TSanRead(&_impl_); + return _impl_.xstart_; +} +inline void StandardFontsFile_CharacterBlock_LineRecord::_internal_set_xstart(float value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.xstart_ = value; +} // optional float yStart = 2; -inline bool StandardFontsFile_CharacterBlock_LineRecord::_internal_has_ystart() const { +inline bool StandardFontsFile_CharacterBlock_LineRecord::has_ystart() const { bool value = (_impl_._has_bits_[0] & 0x00000002u) != 0; return value; } -inline bool StandardFontsFile_CharacterBlock_LineRecord::has_ystart() const { - return _internal_has_ystart(); -} inline void StandardFontsFile_CharacterBlock_LineRecord::clear_ystart() { + ::google::protobuf::internal::TSanWrite(&_impl_); _impl_.ystart_ = 0; _impl_._has_bits_[0] &= ~0x00000002u; } -inline float StandardFontsFile_CharacterBlock_LineRecord::_internal_ystart() const { - return _impl_.ystart_; -} inline float StandardFontsFile_CharacterBlock_LineRecord::ystart() const { // @@protoc_insertion_point(field_get:Odb.Lib.Protobuf.StandardFontsFile.CharacterBlock.LineRecord.yStart) return _internal_ystart(); } -inline void StandardFontsFile_CharacterBlock_LineRecord::_internal_set_ystart(float value) { - _impl_._has_bits_[0] |= 0x00000002u; - _impl_.ystart_ = value; -} inline void StandardFontsFile_CharacterBlock_LineRecord::set_ystart(float value) { _internal_set_ystart(value); + _impl_._has_bits_[0] |= 0x00000002u; // @@protoc_insertion_point(field_set:Odb.Lib.Protobuf.StandardFontsFile.CharacterBlock.LineRecord.yStart) } +inline float StandardFontsFile_CharacterBlock_LineRecord::_internal_ystart() const { + ::google::protobuf::internal::TSanRead(&_impl_); + return _impl_.ystart_; +} +inline void StandardFontsFile_CharacterBlock_LineRecord::_internal_set_ystart(float value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.ystart_ = value; +} // optional float xEnd = 3; -inline bool StandardFontsFile_CharacterBlock_LineRecord::_internal_has_xend() const { +inline bool StandardFontsFile_CharacterBlock_LineRecord::has_xend() const { bool value = (_impl_._has_bits_[0] & 0x00000004u) != 0; return value; } -inline bool StandardFontsFile_CharacterBlock_LineRecord::has_xend() const { - return _internal_has_xend(); -} inline void StandardFontsFile_CharacterBlock_LineRecord::clear_xend() { + ::google::protobuf::internal::TSanWrite(&_impl_); _impl_.xend_ = 0; _impl_._has_bits_[0] &= ~0x00000004u; } -inline float StandardFontsFile_CharacterBlock_LineRecord::_internal_xend() const { - return _impl_.xend_; -} inline float StandardFontsFile_CharacterBlock_LineRecord::xend() const { // @@protoc_insertion_point(field_get:Odb.Lib.Protobuf.StandardFontsFile.CharacterBlock.LineRecord.xEnd) return _internal_xend(); } -inline void StandardFontsFile_CharacterBlock_LineRecord::_internal_set_xend(float value) { - _impl_._has_bits_[0] |= 0x00000004u; - _impl_.xend_ = value; -} inline void StandardFontsFile_CharacterBlock_LineRecord::set_xend(float value) { _internal_set_xend(value); + _impl_._has_bits_[0] |= 0x00000004u; // @@protoc_insertion_point(field_set:Odb.Lib.Protobuf.StandardFontsFile.CharacterBlock.LineRecord.xEnd) } +inline float StandardFontsFile_CharacterBlock_LineRecord::_internal_xend() const { + ::google::protobuf::internal::TSanRead(&_impl_); + return _impl_.xend_; +} +inline void StandardFontsFile_CharacterBlock_LineRecord::_internal_set_xend(float value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.xend_ = value; +} // optional float yEnd = 4; -inline bool StandardFontsFile_CharacterBlock_LineRecord::_internal_has_yend() const { +inline bool StandardFontsFile_CharacterBlock_LineRecord::has_yend() const { bool value = (_impl_._has_bits_[0] & 0x00000008u) != 0; return value; } -inline bool StandardFontsFile_CharacterBlock_LineRecord::has_yend() const { - return _internal_has_yend(); -} inline void StandardFontsFile_CharacterBlock_LineRecord::clear_yend() { + ::google::protobuf::internal::TSanWrite(&_impl_); _impl_.yend_ = 0; _impl_._has_bits_[0] &= ~0x00000008u; } -inline float StandardFontsFile_CharacterBlock_LineRecord::_internal_yend() const { - return _impl_.yend_; -} inline float StandardFontsFile_CharacterBlock_LineRecord::yend() const { // @@protoc_insertion_point(field_get:Odb.Lib.Protobuf.StandardFontsFile.CharacterBlock.LineRecord.yEnd) return _internal_yend(); } -inline void StandardFontsFile_CharacterBlock_LineRecord::_internal_set_yend(float value) { - _impl_._has_bits_[0] |= 0x00000008u; - _impl_.yend_ = value; -} inline void StandardFontsFile_CharacterBlock_LineRecord::set_yend(float value) { _internal_set_yend(value); + _impl_._has_bits_[0] |= 0x00000008u; // @@protoc_insertion_point(field_set:Odb.Lib.Protobuf.StandardFontsFile.CharacterBlock.LineRecord.yEnd) } +inline float StandardFontsFile_CharacterBlock_LineRecord::_internal_yend() const { + ::google::protobuf::internal::TSanRead(&_impl_); + return _impl_.yend_; +} +inline void StandardFontsFile_CharacterBlock_LineRecord::_internal_set_yend(float value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.yend_ = value; +} // optional .Odb.Lib.Protobuf.Polarity polarity = 5; -inline bool StandardFontsFile_CharacterBlock_LineRecord::_internal_has_polarity() const { +inline bool StandardFontsFile_CharacterBlock_LineRecord::has_polarity() const { bool value = (_impl_._has_bits_[0] & 0x00000010u) != 0; return value; } -inline bool StandardFontsFile_CharacterBlock_LineRecord::has_polarity() const { - return _internal_has_polarity(); -} inline void StandardFontsFile_CharacterBlock_LineRecord::clear_polarity() { + ::google::protobuf::internal::TSanWrite(&_impl_); _impl_.polarity_ = 0; _impl_._has_bits_[0] &= ~0x00000010u; } -inline ::Odb::Lib::Protobuf::Polarity StandardFontsFile_CharacterBlock_LineRecord::_internal_polarity() const { - return static_cast< ::Odb::Lib::Protobuf::Polarity >(_impl_.polarity_); -} inline ::Odb::Lib::Protobuf::Polarity StandardFontsFile_CharacterBlock_LineRecord::polarity() const { // @@protoc_insertion_point(field_get:Odb.Lib.Protobuf.StandardFontsFile.CharacterBlock.LineRecord.polarity) return _internal_polarity(); } -inline void StandardFontsFile_CharacterBlock_LineRecord::_internal_set_polarity(::Odb::Lib::Protobuf::Polarity value) { - _impl_._has_bits_[0] |= 0x00000010u; - _impl_.polarity_ = value; -} inline void StandardFontsFile_CharacterBlock_LineRecord::set_polarity(::Odb::Lib::Protobuf::Polarity value) { _internal_set_polarity(value); + _impl_._has_bits_[0] |= 0x00000010u; // @@protoc_insertion_point(field_set:Odb.Lib.Protobuf.StandardFontsFile.CharacterBlock.LineRecord.polarity) } +inline ::Odb::Lib::Protobuf::Polarity StandardFontsFile_CharacterBlock_LineRecord::_internal_polarity() const { + ::google::protobuf::internal::TSanRead(&_impl_); + return static_cast<::Odb::Lib::Protobuf::Polarity>(_impl_.polarity_); +} +inline void StandardFontsFile_CharacterBlock_LineRecord::_internal_set_polarity(::Odb::Lib::Protobuf::Polarity value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.polarity_ = value; +} // optional .Odb.Lib.Protobuf.LineShape shape = 6; -inline bool StandardFontsFile_CharacterBlock_LineRecord::_internal_has_shape() const { +inline bool StandardFontsFile_CharacterBlock_LineRecord::has_shape() const { bool value = (_impl_._has_bits_[0] & 0x00000020u) != 0; return value; } -inline bool StandardFontsFile_CharacterBlock_LineRecord::has_shape() const { - return _internal_has_shape(); -} inline void StandardFontsFile_CharacterBlock_LineRecord::clear_shape() { + ::google::protobuf::internal::TSanWrite(&_impl_); _impl_.shape_ = 0; _impl_._has_bits_[0] &= ~0x00000020u; } -inline ::Odb::Lib::Protobuf::LineShape StandardFontsFile_CharacterBlock_LineRecord::_internal_shape() const { - return static_cast< ::Odb::Lib::Protobuf::LineShape >(_impl_.shape_); -} inline ::Odb::Lib::Protobuf::LineShape StandardFontsFile_CharacterBlock_LineRecord::shape() const { // @@protoc_insertion_point(field_get:Odb.Lib.Protobuf.StandardFontsFile.CharacterBlock.LineRecord.shape) return _internal_shape(); } -inline void StandardFontsFile_CharacterBlock_LineRecord::_internal_set_shape(::Odb::Lib::Protobuf::LineShape value) { - _impl_._has_bits_[0] |= 0x00000020u; - _impl_.shape_ = value; -} inline void StandardFontsFile_CharacterBlock_LineRecord::set_shape(::Odb::Lib::Protobuf::LineShape value) { _internal_set_shape(value); + _impl_._has_bits_[0] |= 0x00000020u; // @@protoc_insertion_point(field_set:Odb.Lib.Protobuf.StandardFontsFile.CharacterBlock.LineRecord.shape) } +inline ::Odb::Lib::Protobuf::LineShape StandardFontsFile_CharacterBlock_LineRecord::_internal_shape() const { + ::google::protobuf::internal::TSanRead(&_impl_); + return static_cast<::Odb::Lib::Protobuf::LineShape>(_impl_.shape_); +} +inline void StandardFontsFile_CharacterBlock_LineRecord::_internal_set_shape(::Odb::Lib::Protobuf::LineShape value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.shape_ = value; +} // optional float width = 7; -inline bool StandardFontsFile_CharacterBlock_LineRecord::_internal_has_width() const { +inline bool StandardFontsFile_CharacterBlock_LineRecord::has_width() const { bool value = (_impl_._has_bits_[0] & 0x00000040u) != 0; return value; } -inline bool StandardFontsFile_CharacterBlock_LineRecord::has_width() const { - return _internal_has_width(); -} inline void StandardFontsFile_CharacterBlock_LineRecord::clear_width() { + ::google::protobuf::internal::TSanWrite(&_impl_); _impl_.width_ = 0; _impl_._has_bits_[0] &= ~0x00000040u; } -inline float StandardFontsFile_CharacterBlock_LineRecord::_internal_width() const { - return _impl_.width_; -} inline float StandardFontsFile_CharacterBlock_LineRecord::width() const { // @@protoc_insertion_point(field_get:Odb.Lib.Protobuf.StandardFontsFile.CharacterBlock.LineRecord.width) return _internal_width(); } -inline void StandardFontsFile_CharacterBlock_LineRecord::_internal_set_width(float value) { - _impl_._has_bits_[0] |= 0x00000040u; - _impl_.width_ = value; -} inline void StandardFontsFile_CharacterBlock_LineRecord::set_width(float value) { _internal_set_width(value); + _impl_._has_bits_[0] |= 0x00000040u; // @@protoc_insertion_point(field_set:Odb.Lib.Protobuf.StandardFontsFile.CharacterBlock.LineRecord.width) } +inline float StandardFontsFile_CharacterBlock_LineRecord::_internal_width() const { + ::google::protobuf::internal::TSanRead(&_impl_); + return _impl_.width_; +} +inline void StandardFontsFile_CharacterBlock_LineRecord::_internal_set_width(float value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.width_ = value; +} // ------------------------------------------------------------------- // StandardFontsFile_CharacterBlock // optional string character = 1; -inline bool StandardFontsFile_CharacterBlock::_internal_has_character() const { +inline bool StandardFontsFile_CharacterBlock::has_character() const { bool value = (_impl_._has_bits_[0] & 0x00000001u) != 0; return value; } -inline bool StandardFontsFile_CharacterBlock::has_character() const { - return _internal_has_character(); -} inline void StandardFontsFile_CharacterBlock::clear_character() { + ::google::protobuf::internal::TSanWrite(&_impl_); _impl_.character_.ClearToEmpty(); _impl_._has_bits_[0] &= ~0x00000001u; } -inline const std::string& StandardFontsFile_CharacterBlock::character() const { +inline const std::string& StandardFontsFile_CharacterBlock::character() const + ABSL_ATTRIBUTE_LIFETIME_BOUND { // @@protoc_insertion_point(field_get:Odb.Lib.Protobuf.StandardFontsFile.CharacterBlock.character) return _internal_character(); } -template -inline PROTOBUF_ALWAYS_INLINE -void StandardFontsFile_CharacterBlock::set_character(ArgT0&& arg0, ArgT... args) { - _impl_._has_bits_[0] |= 0x00000001u; - _impl_.character_.Set(static_cast(arg0), args..., GetArenaForAllocation()); +template +inline PROTOBUF_ALWAYS_INLINE void StandardFontsFile_CharacterBlock::set_character(Arg_&& arg, + Args_... args) { + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_._has_bits_[0] |= 0x00000001u; + _impl_.character_.Set(static_cast(arg), args..., GetArena()); // @@protoc_insertion_point(field_set:Odb.Lib.Protobuf.StandardFontsFile.CharacterBlock.character) } -inline std::string* StandardFontsFile_CharacterBlock::mutable_character() { +inline std::string* StandardFontsFile_CharacterBlock::mutable_character() ABSL_ATTRIBUTE_LIFETIME_BOUND { std::string* _s = _internal_mutable_character(); // @@protoc_insertion_point(field_mutable:Odb.Lib.Protobuf.StandardFontsFile.CharacterBlock.character) return _s; } inline const std::string& StandardFontsFile_CharacterBlock::_internal_character() const { + ::google::protobuf::internal::TSanRead(&_impl_); return _impl_.character_.Get(); } inline void StandardFontsFile_CharacterBlock::_internal_set_character(const std::string& value) { + ::google::protobuf::internal::TSanWrite(&_impl_); _impl_._has_bits_[0] |= 0x00000001u; - _impl_.character_.Set(value, GetArenaForAllocation()); + _impl_.character_.Set(value, GetArena()); } inline std::string* StandardFontsFile_CharacterBlock::_internal_mutable_character() { + ::google::protobuf::internal::TSanWrite(&_impl_); _impl_._has_bits_[0] |= 0x00000001u; - return _impl_.character_.Mutable(GetArenaForAllocation()); + return _impl_.character_.Mutable( GetArena()); } inline std::string* StandardFontsFile_CharacterBlock::release_character() { + ::google::protobuf::internal::TSanWrite(&_impl_); // @@protoc_insertion_point(field_release:Odb.Lib.Protobuf.StandardFontsFile.CharacterBlock.character) - if (!_internal_has_character()) { + if ((_impl_._has_bits_[0] & 0x00000001u) == 0) { return nullptr; } _impl_._has_bits_[0] &= ~0x00000001u; - auto* p = _impl_.character_.Release(); -#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (_impl_.character_.IsDefault()) { - _impl_.character_.Set("", GetArenaForAllocation()); + auto* released = _impl_.character_.Release(); + if (::google::protobuf::internal::DebugHardenForceCopyDefaultString()) { + _impl_.character_.Set("", GetArena()); } -#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING - return p; + return released; } -inline void StandardFontsFile_CharacterBlock::set_allocated_character(std::string* character) { - if (character != nullptr) { +inline void StandardFontsFile_CharacterBlock::set_allocated_character(std::string* value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + if (value != nullptr) { _impl_._has_bits_[0] |= 0x00000001u; } else { _impl_._has_bits_[0] &= ~0x00000001u; } - _impl_.character_.SetAllocated(character, GetArenaForAllocation()); -#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (_impl_.character_.IsDefault()) { - _impl_.character_.Set("", GetArenaForAllocation()); + _impl_.character_.SetAllocated(value, GetArena()); + if (::google::protobuf::internal::DebugHardenForceCopyDefaultString() && _impl_.character_.IsDefault()) { + _impl_.character_.Set("", GetArena()); } -#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING // @@protoc_insertion_point(field_set_allocated:Odb.Lib.Protobuf.StandardFontsFile.CharacterBlock.character) } // repeated .Odb.Lib.Protobuf.StandardFontsFile.CharacterBlock.LineRecord m_lineRecords = 2; inline int StandardFontsFile_CharacterBlock::_internal_m_linerecords_size() const { - return _impl_.m_linerecords_.size(); + return _internal_m_linerecords().size(); } inline int StandardFontsFile_CharacterBlock::m_linerecords_size() const { return _internal_m_linerecords_size(); } inline void StandardFontsFile_CharacterBlock::clear_m_linerecords() { + ::google::protobuf::internal::TSanWrite(&_impl_); _impl_.m_linerecords_.Clear(); } -inline ::Odb::Lib::Protobuf::StandardFontsFile_CharacterBlock_LineRecord* StandardFontsFile_CharacterBlock::mutable_m_linerecords(int index) { +inline ::Odb::Lib::Protobuf::StandardFontsFile_CharacterBlock_LineRecord* StandardFontsFile_CharacterBlock::mutable_m_linerecords(int index) + ABSL_ATTRIBUTE_LIFETIME_BOUND { // @@protoc_insertion_point(field_mutable:Odb.Lib.Protobuf.StandardFontsFile.CharacterBlock.m_lineRecords) - return _impl_.m_linerecords_.Mutable(index); + return _internal_mutable_m_linerecords()->Mutable(index); } -inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::Odb::Lib::Protobuf::StandardFontsFile_CharacterBlock_LineRecord >* -StandardFontsFile_CharacterBlock::mutable_m_linerecords() { +inline ::google::protobuf::RepeatedPtrField<::Odb::Lib::Protobuf::StandardFontsFile_CharacterBlock_LineRecord>* StandardFontsFile_CharacterBlock::mutable_m_linerecords() + ABSL_ATTRIBUTE_LIFETIME_BOUND { // @@protoc_insertion_point(field_mutable_list:Odb.Lib.Protobuf.StandardFontsFile.CharacterBlock.m_lineRecords) - return &_impl_.m_linerecords_; -} -inline const ::Odb::Lib::Protobuf::StandardFontsFile_CharacterBlock_LineRecord& StandardFontsFile_CharacterBlock::_internal_m_linerecords(int index) const { - return _impl_.m_linerecords_.Get(index); + ::google::protobuf::internal::TSanWrite(&_impl_); + return _internal_mutable_m_linerecords(); } -inline const ::Odb::Lib::Protobuf::StandardFontsFile_CharacterBlock_LineRecord& StandardFontsFile_CharacterBlock::m_linerecords(int index) const { +inline const ::Odb::Lib::Protobuf::StandardFontsFile_CharacterBlock_LineRecord& StandardFontsFile_CharacterBlock::m_linerecords(int index) const + ABSL_ATTRIBUTE_LIFETIME_BOUND { // @@protoc_insertion_point(field_get:Odb.Lib.Protobuf.StandardFontsFile.CharacterBlock.m_lineRecords) - return _internal_m_linerecords(index); + return _internal_m_linerecords().Get(index); } -inline ::Odb::Lib::Protobuf::StandardFontsFile_CharacterBlock_LineRecord* StandardFontsFile_CharacterBlock::_internal_add_m_linerecords() { - return _impl_.m_linerecords_.Add(); -} -inline ::Odb::Lib::Protobuf::StandardFontsFile_CharacterBlock_LineRecord* StandardFontsFile_CharacterBlock::add_m_linerecords() { - ::Odb::Lib::Protobuf::StandardFontsFile_CharacterBlock_LineRecord* _add = _internal_add_m_linerecords(); +inline ::Odb::Lib::Protobuf::StandardFontsFile_CharacterBlock_LineRecord* StandardFontsFile_CharacterBlock::add_m_linerecords() ABSL_ATTRIBUTE_LIFETIME_BOUND { + ::google::protobuf::internal::TSanWrite(&_impl_); + ::Odb::Lib::Protobuf::StandardFontsFile_CharacterBlock_LineRecord* _add = _internal_mutable_m_linerecords()->Add(); // @@protoc_insertion_point(field_add:Odb.Lib.Protobuf.StandardFontsFile.CharacterBlock.m_lineRecords) return _add; } -inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::Odb::Lib::Protobuf::StandardFontsFile_CharacterBlock_LineRecord >& -StandardFontsFile_CharacterBlock::m_linerecords() const { +inline const ::google::protobuf::RepeatedPtrField<::Odb::Lib::Protobuf::StandardFontsFile_CharacterBlock_LineRecord>& StandardFontsFile_CharacterBlock::m_linerecords() const + ABSL_ATTRIBUTE_LIFETIME_BOUND { // @@protoc_insertion_point(field_list:Odb.Lib.Protobuf.StandardFontsFile.CharacterBlock.m_lineRecords) + return _internal_m_linerecords(); +} +inline const ::google::protobuf::RepeatedPtrField<::Odb::Lib::Protobuf::StandardFontsFile_CharacterBlock_LineRecord>& +StandardFontsFile_CharacterBlock::_internal_m_linerecords() const { + ::google::protobuf::internal::TSanRead(&_impl_); return _impl_.m_linerecords_; } +inline ::google::protobuf::RepeatedPtrField<::Odb::Lib::Protobuf::StandardFontsFile_CharacterBlock_LineRecord>* +StandardFontsFile_CharacterBlock::_internal_mutable_m_linerecords() { + ::google::protobuf::internal::TSanRead(&_impl_); + return &_impl_.m_linerecords_; +} // ------------------------------------------------------------------- // StandardFontsFile // optional float xSize = 1; -inline bool StandardFontsFile::_internal_has_xsize() const { +inline bool StandardFontsFile::has_xsize() const { bool value = (_impl_._has_bits_[0] & 0x00000001u) != 0; return value; } -inline bool StandardFontsFile::has_xsize() const { - return _internal_has_xsize(); -} inline void StandardFontsFile::clear_xsize() { + ::google::protobuf::internal::TSanWrite(&_impl_); _impl_.xsize_ = 0; _impl_._has_bits_[0] &= ~0x00000001u; } -inline float StandardFontsFile::_internal_xsize() const { - return _impl_.xsize_; -} inline float StandardFontsFile::xsize() const { // @@protoc_insertion_point(field_get:Odb.Lib.Protobuf.StandardFontsFile.xSize) return _internal_xsize(); } -inline void StandardFontsFile::_internal_set_xsize(float value) { - _impl_._has_bits_[0] |= 0x00000001u; - _impl_.xsize_ = value; -} inline void StandardFontsFile::set_xsize(float value) { _internal_set_xsize(value); + _impl_._has_bits_[0] |= 0x00000001u; // @@protoc_insertion_point(field_set:Odb.Lib.Protobuf.StandardFontsFile.xSize) } +inline float StandardFontsFile::_internal_xsize() const { + ::google::protobuf::internal::TSanRead(&_impl_); + return _impl_.xsize_; +} +inline void StandardFontsFile::_internal_set_xsize(float value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.xsize_ = value; +} // optional float ySize = 2; -inline bool StandardFontsFile::_internal_has_ysize() const { +inline bool StandardFontsFile::has_ysize() const { bool value = (_impl_._has_bits_[0] & 0x00000002u) != 0; return value; } -inline bool StandardFontsFile::has_ysize() const { - return _internal_has_ysize(); -} inline void StandardFontsFile::clear_ysize() { + ::google::protobuf::internal::TSanWrite(&_impl_); _impl_.ysize_ = 0; _impl_._has_bits_[0] &= ~0x00000002u; } -inline float StandardFontsFile::_internal_ysize() const { - return _impl_.ysize_; -} inline float StandardFontsFile::ysize() const { // @@protoc_insertion_point(field_get:Odb.Lib.Protobuf.StandardFontsFile.ySize) return _internal_ysize(); } -inline void StandardFontsFile::_internal_set_ysize(float value) { - _impl_._has_bits_[0] |= 0x00000002u; - _impl_.ysize_ = value; -} inline void StandardFontsFile::set_ysize(float value) { _internal_set_ysize(value); + _impl_._has_bits_[0] |= 0x00000002u; // @@protoc_insertion_point(field_set:Odb.Lib.Protobuf.StandardFontsFile.ySize) } +inline float StandardFontsFile::_internal_ysize() const { + ::google::protobuf::internal::TSanRead(&_impl_); + return _impl_.ysize_; +} +inline void StandardFontsFile::_internal_set_ysize(float value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.ysize_ = value; +} // optional float offset = 3; -inline bool StandardFontsFile::_internal_has_offset() const { +inline bool StandardFontsFile::has_offset() const { bool value = (_impl_._has_bits_[0] & 0x00000004u) != 0; return value; } -inline bool StandardFontsFile::has_offset() const { - return _internal_has_offset(); -} inline void StandardFontsFile::clear_offset() { + ::google::protobuf::internal::TSanWrite(&_impl_); _impl_.offset_ = 0; _impl_._has_bits_[0] &= ~0x00000004u; } -inline float StandardFontsFile::_internal_offset() const { - return _impl_.offset_; -} inline float StandardFontsFile::offset() const { // @@protoc_insertion_point(field_get:Odb.Lib.Protobuf.StandardFontsFile.offset) return _internal_offset(); } -inline void StandardFontsFile::_internal_set_offset(float value) { - _impl_._has_bits_[0] |= 0x00000004u; - _impl_.offset_ = value; -} inline void StandardFontsFile::set_offset(float value) { _internal_set_offset(value); + _impl_._has_bits_[0] |= 0x00000004u; // @@protoc_insertion_point(field_set:Odb.Lib.Protobuf.StandardFontsFile.offset) } +inline float StandardFontsFile::_internal_offset() const { + ::google::protobuf::internal::TSanRead(&_impl_); + return _impl_.offset_; +} +inline void StandardFontsFile::_internal_set_offset(float value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.offset_ = value; +} // repeated .Odb.Lib.Protobuf.StandardFontsFile.CharacterBlock m_characterBlocks = 4; inline int StandardFontsFile::_internal_m_characterblocks_size() const { - return _impl_.m_characterblocks_.size(); + return _internal_m_characterblocks().size(); } inline int StandardFontsFile::m_characterblocks_size() const { return _internal_m_characterblocks_size(); } inline void StandardFontsFile::clear_m_characterblocks() { + ::google::protobuf::internal::TSanWrite(&_impl_); _impl_.m_characterblocks_.Clear(); } -inline ::Odb::Lib::Protobuf::StandardFontsFile_CharacterBlock* StandardFontsFile::mutable_m_characterblocks(int index) { +inline ::Odb::Lib::Protobuf::StandardFontsFile_CharacterBlock* StandardFontsFile::mutable_m_characterblocks(int index) + ABSL_ATTRIBUTE_LIFETIME_BOUND { // @@protoc_insertion_point(field_mutable:Odb.Lib.Protobuf.StandardFontsFile.m_characterBlocks) - return _impl_.m_characterblocks_.Mutable(index); + return _internal_mutable_m_characterblocks()->Mutable(index); } -inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::Odb::Lib::Protobuf::StandardFontsFile_CharacterBlock >* -StandardFontsFile::mutable_m_characterblocks() { +inline ::google::protobuf::RepeatedPtrField<::Odb::Lib::Protobuf::StandardFontsFile_CharacterBlock>* StandardFontsFile::mutable_m_characterblocks() + ABSL_ATTRIBUTE_LIFETIME_BOUND { // @@protoc_insertion_point(field_mutable_list:Odb.Lib.Protobuf.StandardFontsFile.m_characterBlocks) - return &_impl_.m_characterblocks_; + ::google::protobuf::internal::TSanWrite(&_impl_); + return _internal_mutable_m_characterblocks(); } -inline const ::Odb::Lib::Protobuf::StandardFontsFile_CharacterBlock& StandardFontsFile::_internal_m_characterblocks(int index) const { - return _impl_.m_characterblocks_.Get(index); -} -inline const ::Odb::Lib::Protobuf::StandardFontsFile_CharacterBlock& StandardFontsFile::m_characterblocks(int index) const { +inline const ::Odb::Lib::Protobuf::StandardFontsFile_CharacterBlock& StandardFontsFile::m_characterblocks(int index) const + ABSL_ATTRIBUTE_LIFETIME_BOUND { // @@protoc_insertion_point(field_get:Odb.Lib.Protobuf.StandardFontsFile.m_characterBlocks) - return _internal_m_characterblocks(index); -} -inline ::Odb::Lib::Protobuf::StandardFontsFile_CharacterBlock* StandardFontsFile::_internal_add_m_characterblocks() { - return _impl_.m_characterblocks_.Add(); + return _internal_m_characterblocks().Get(index); } -inline ::Odb::Lib::Protobuf::StandardFontsFile_CharacterBlock* StandardFontsFile::add_m_characterblocks() { - ::Odb::Lib::Protobuf::StandardFontsFile_CharacterBlock* _add = _internal_add_m_characterblocks(); +inline ::Odb::Lib::Protobuf::StandardFontsFile_CharacterBlock* StandardFontsFile::add_m_characterblocks() ABSL_ATTRIBUTE_LIFETIME_BOUND { + ::google::protobuf::internal::TSanWrite(&_impl_); + ::Odb::Lib::Protobuf::StandardFontsFile_CharacterBlock* _add = _internal_mutable_m_characterblocks()->Add(); // @@protoc_insertion_point(field_add:Odb.Lib.Protobuf.StandardFontsFile.m_characterBlocks) return _add; } -inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::Odb::Lib::Protobuf::StandardFontsFile_CharacterBlock >& -StandardFontsFile::m_characterblocks() const { +inline const ::google::protobuf::RepeatedPtrField<::Odb::Lib::Protobuf::StandardFontsFile_CharacterBlock>& StandardFontsFile::m_characterblocks() const + ABSL_ATTRIBUTE_LIFETIME_BOUND { // @@protoc_insertion_point(field_list:Odb.Lib.Protobuf.StandardFontsFile.m_characterBlocks) + return _internal_m_characterblocks(); +} +inline const ::google::protobuf::RepeatedPtrField<::Odb::Lib::Protobuf::StandardFontsFile_CharacterBlock>& +StandardFontsFile::_internal_m_characterblocks() const { + ::google::protobuf::internal::TSanRead(&_impl_); return _impl_.m_characterblocks_; } +inline ::google::protobuf::RepeatedPtrField<::Odb::Lib::Protobuf::StandardFontsFile_CharacterBlock>* +StandardFontsFile::_internal_mutable_m_characterblocks() { + ::google::protobuf::internal::TSanRead(&_impl_); + return &_impl_.m_characterblocks_; +} #ifdef __GNUC__ - #pragma GCC diagnostic pop +#pragma GCC diagnostic pop #endif // __GNUC__ -// ------------------------------------------------------------------- - -// ------------------------------------------------------------------- - // @@protoc_insertion_point(namespace_scope) - } // namespace Protobuf } // namespace Lib } // namespace Odb + // @@protoc_insertion_point(global_scope) -#include -#endif // GOOGLE_PROTOBUF_INCLUDED_GOOGLE_PROTOBUF_INCLUDED_standardfontsfile_2eproto +#include "google/protobuf/port_undef.inc" + +#endif // standardfontsfile_2eproto_2epb_2eh diff --git a/OdbDesignLib/ProtoBuf/stepdirectory.pb.cc b/OdbDesignLib/ProtoBuf/stepdirectory.pb.cc index 5e8fb994..3f8f8489 100644 --- a/OdbDesignLib/ProtoBuf/stepdirectory.pb.cc +++ b/OdbDesignLib/ProtoBuf/stepdirectory.pb.cc @@ -1,400 +1,684 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE // source: stepdirectory.proto +// Protobuf C++ Version: 5.29.2 #include "stepdirectory.pb.h" #include - -#include -#include -#include -#include -#include -#include -#include +#include +#include "google/protobuf/io/coded_stream.h" +#include "google/protobuf/generated_message_tctable_impl.h" +#include "google/protobuf/extension_set.h" +#include "google/protobuf/generated_message_util.h" +#include "google/protobuf/wire_format_lite.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) -#include +// Must be included last. +#include "google/protobuf/port_def.inc" PROTOBUF_PRAGMA_INIT_SEG - -namespace _pb = ::PROTOBUF_NAMESPACE_ID; -namespace _pbi = _pb::internal; - +namespace _pb = ::google::protobuf; +namespace _pbi = ::google::protobuf::internal; +namespace _fl = ::google::protobuf::internal::field_layout; namespace Odb { namespace Lib { namespace Protobuf { -PROTOBUF_CONSTEXPR StepDirectory_LayersByNameEntry_DoNotUse::StepDirectory_LayersByNameEntry_DoNotUse( - ::_pbi::ConstantInitialized) {} -struct StepDirectory_LayersByNameEntry_DoNotUseDefaultTypeInternal { - PROTOBUF_CONSTEXPR StepDirectory_LayersByNameEntry_DoNotUseDefaultTypeInternal() - : _instance(::_pbi::ConstantInitialized{}) {} - ~StepDirectory_LayersByNameEntry_DoNotUseDefaultTypeInternal() {} - union { - StepDirectory_LayersByNameEntry_DoNotUse _instance; - }; -}; -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 StepDirectory_LayersByNameEntry_DoNotUseDefaultTypeInternal _StepDirectory_LayersByNameEntry_DoNotUse_default_instance_; -PROTOBUF_CONSTEXPR StepDirectory_NetlistsByNameEntry_DoNotUse::StepDirectory_NetlistsByNameEntry_DoNotUse( - ::_pbi::ConstantInitialized) {} + template +PROTOBUF_CONSTEXPR StepDirectory_NetlistsByNameEntry_DoNotUse::StepDirectory_NetlistsByNameEntry_DoNotUse(::_pbi::ConstantInitialized) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : StepDirectory_NetlistsByNameEntry_DoNotUse::MapEntry(_class_data_.base()){} +#else // PROTOBUF_CUSTOM_VTABLE + : StepDirectory_NetlistsByNameEntry_DoNotUse::MapEntry() { +} +#endif // PROTOBUF_CUSTOM_VTABLE struct StepDirectory_NetlistsByNameEntry_DoNotUseDefaultTypeInternal { - PROTOBUF_CONSTEXPR StepDirectory_NetlistsByNameEntry_DoNotUseDefaultTypeInternal() - : _instance(::_pbi::ConstantInitialized{}) {} + PROTOBUF_CONSTEXPR StepDirectory_NetlistsByNameEntry_DoNotUseDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} ~StepDirectory_NetlistsByNameEntry_DoNotUseDefaultTypeInternal() {} union { StepDirectory_NetlistsByNameEntry_DoNotUse _instance; }; }; -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 StepDirectory_NetlistsByNameEntry_DoNotUseDefaultTypeInternal _StepDirectory_NetlistsByNameEntry_DoNotUse_default_instance_; -PROTOBUF_CONSTEXPR StepDirectory::StepDirectory( - ::_pbi::ConstantInitialized): _impl_{ - /*decltype(_impl_._has_bits_)*/{} - , /*decltype(_impl_._cached_size_)*/{} - , /*decltype(_impl_.layersbyname_)*/{::_pbi::ConstantInitialized()} - , /*decltype(_impl_.netlistsbyname_)*/{::_pbi::ConstantInitialized()} - , /*decltype(_impl_.name_)*/{&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}} - , /*decltype(_impl_.path_)*/{&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}} - , /*decltype(_impl_.edadatafile_)*/nullptr - , /*decltype(_impl_.attrlistfile_)*/nullptr - , /*decltype(_impl_.profilefile_)*/nullptr - , /*decltype(_impl_.stephdrfile_)*/nullptr} {} + +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT ODBDESIGN_EXPORT + PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 StepDirectory_NetlistsByNameEntry_DoNotUseDefaultTypeInternal _StepDirectory_NetlistsByNameEntry_DoNotUse_default_instance_; + template +PROTOBUF_CONSTEXPR StepDirectory_LayersByNameEntry_DoNotUse::StepDirectory_LayersByNameEntry_DoNotUse(::_pbi::ConstantInitialized) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : StepDirectory_LayersByNameEntry_DoNotUse::MapEntry(_class_data_.base()){} +#else // PROTOBUF_CUSTOM_VTABLE + : StepDirectory_LayersByNameEntry_DoNotUse::MapEntry() { +} +#endif // PROTOBUF_CUSTOM_VTABLE +struct StepDirectory_LayersByNameEntry_DoNotUseDefaultTypeInternal { + PROTOBUF_CONSTEXPR StepDirectory_LayersByNameEntry_DoNotUseDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} + ~StepDirectory_LayersByNameEntry_DoNotUseDefaultTypeInternal() {} + union { + StepDirectory_LayersByNameEntry_DoNotUse _instance; + }; +}; + +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT ODBDESIGN_EXPORT + PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 StepDirectory_LayersByNameEntry_DoNotUseDefaultTypeInternal _StepDirectory_LayersByNameEntry_DoNotUse_default_instance_; + +inline constexpr StepDirectory::Impl_::Impl_( + ::_pbi::ConstantInitialized) noexcept + : _cached_size_{0}, + layersbyname_{}, + netlistsbyname_{}, + name_( + &::google::protobuf::internal::fixed_address_empty_string, + ::_pbi::ConstantInitialized()), + path_( + &::google::protobuf::internal::fixed_address_empty_string, + ::_pbi::ConstantInitialized()), + edadatafile_{nullptr}, + attrlistfile_{nullptr}, + profilefile_{nullptr}, + stephdrfile_{nullptr} {} + +template +PROTOBUF_CONSTEXPR StepDirectory::StepDirectory(::_pbi::ConstantInitialized) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : ::google::protobuf::Message(_class_data_.base()), +#else // PROTOBUF_CUSTOM_VTABLE + : ::google::protobuf::Message(), +#endif // PROTOBUF_CUSTOM_VTABLE + _impl_(::_pbi::ConstantInitialized()) { +} struct StepDirectoryDefaultTypeInternal { - PROTOBUF_CONSTEXPR StepDirectoryDefaultTypeInternal() - : _instance(::_pbi::ConstantInitialized{}) {} + PROTOBUF_CONSTEXPR StepDirectoryDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} ~StepDirectoryDefaultTypeInternal() {} union { StepDirectory _instance; }; }; -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 StepDirectoryDefaultTypeInternal _StepDirectory_default_instance_; + +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT ODBDESIGN_EXPORT + PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 StepDirectoryDefaultTypeInternal _StepDirectory_default_instance_; } // namespace Protobuf } // namespace Lib } // namespace Odb -static ::_pb::Metadata file_level_metadata_stepdirectory_2eproto[3]; -static constexpr ::_pb::EnumDescriptor const** file_level_enum_descriptors_stepdirectory_2eproto = nullptr; -static constexpr ::_pb::ServiceDescriptor const** file_level_service_descriptors_stepdirectory_2eproto = nullptr; - -const uint32_t TableStruct_stepdirectory_2eproto::offsets[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = { - PROTOBUF_FIELD_OFFSET(::Odb::Lib::Protobuf::StepDirectory_LayersByNameEntry_DoNotUse, _has_bits_), - PROTOBUF_FIELD_OFFSET(::Odb::Lib::Protobuf::StepDirectory_LayersByNameEntry_DoNotUse, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - ~0u, // no _inlined_string_donated_ - PROTOBUF_FIELD_OFFSET(::Odb::Lib::Protobuf::StepDirectory_LayersByNameEntry_DoNotUse, key_), - PROTOBUF_FIELD_OFFSET(::Odb::Lib::Protobuf::StepDirectory_LayersByNameEntry_DoNotUse, value_), - 0, - 1, - PROTOBUF_FIELD_OFFSET(::Odb::Lib::Protobuf::StepDirectory_NetlistsByNameEntry_DoNotUse, _has_bits_), - PROTOBUF_FIELD_OFFSET(::Odb::Lib::Protobuf::StepDirectory_NetlistsByNameEntry_DoNotUse, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - ~0u, // no _inlined_string_donated_ - PROTOBUF_FIELD_OFFSET(::Odb::Lib::Protobuf::StepDirectory_NetlistsByNameEntry_DoNotUse, key_), - PROTOBUF_FIELD_OFFSET(::Odb::Lib::Protobuf::StepDirectory_NetlistsByNameEntry_DoNotUse, value_), - 0, - 1, - PROTOBUF_FIELD_OFFSET(::Odb::Lib::Protobuf::StepDirectory, _impl_._has_bits_), - PROTOBUF_FIELD_OFFSET(::Odb::Lib::Protobuf::StepDirectory, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - ~0u, // no _inlined_string_donated_ - PROTOBUF_FIELD_OFFSET(::Odb::Lib::Protobuf::StepDirectory, _impl_.name_), - PROTOBUF_FIELD_OFFSET(::Odb::Lib::Protobuf::StepDirectory, _impl_.path_), - PROTOBUF_FIELD_OFFSET(::Odb::Lib::Protobuf::StepDirectory, _impl_.layersbyname_), - PROTOBUF_FIELD_OFFSET(::Odb::Lib::Protobuf::StepDirectory, _impl_.netlistsbyname_), - PROTOBUF_FIELD_OFFSET(::Odb::Lib::Protobuf::StepDirectory, _impl_.edadatafile_), - PROTOBUF_FIELD_OFFSET(::Odb::Lib::Protobuf::StepDirectory, _impl_.attrlistfile_), - PROTOBUF_FIELD_OFFSET(::Odb::Lib::Protobuf::StepDirectory, _impl_.profilefile_), - PROTOBUF_FIELD_OFFSET(::Odb::Lib::Protobuf::StepDirectory, _impl_.stephdrfile_), - 0, - 1, - ~0u, - ~0u, - 2, - 3, - 4, - 5, -}; -static const ::_pbi::MigrationSchema schemas[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = { - { 0, 8, -1, sizeof(::Odb::Lib::Protobuf::StepDirectory_LayersByNameEntry_DoNotUse)}, - { 10, 18, -1, sizeof(::Odb::Lib::Protobuf::StepDirectory_NetlistsByNameEntry_DoNotUse)}, - { 20, 34, -1, sizeof(::Odb::Lib::Protobuf::StepDirectory)}, +static constexpr const ::_pb::EnumDescriptor** + file_level_enum_descriptors_stepdirectory_2eproto = nullptr; +static constexpr const ::_pb::ServiceDescriptor** + file_level_service_descriptors_stepdirectory_2eproto = nullptr; +const ::uint32_t + TableStruct_stepdirectory_2eproto::offsets[] ABSL_ATTRIBUTE_SECTION_VARIABLE( + protodesc_cold) = { + PROTOBUF_FIELD_OFFSET(::Odb::Lib::Protobuf::StepDirectory_LayersByNameEntry_DoNotUse, _impl_._has_bits_), + PROTOBUF_FIELD_OFFSET(::Odb::Lib::Protobuf::StepDirectory_LayersByNameEntry_DoNotUse, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + ~0u, // no _split_ + ~0u, // no sizeof(Split) + PROTOBUF_FIELD_OFFSET(::Odb::Lib::Protobuf::StepDirectory_LayersByNameEntry_DoNotUse, _impl_.key_), + PROTOBUF_FIELD_OFFSET(::Odb::Lib::Protobuf::StepDirectory_LayersByNameEntry_DoNotUse, _impl_.value_), + 0, + 1, + PROTOBUF_FIELD_OFFSET(::Odb::Lib::Protobuf::StepDirectory_NetlistsByNameEntry_DoNotUse, _impl_._has_bits_), + PROTOBUF_FIELD_OFFSET(::Odb::Lib::Protobuf::StepDirectory_NetlistsByNameEntry_DoNotUse, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + ~0u, // no _split_ + ~0u, // no sizeof(Split) + PROTOBUF_FIELD_OFFSET(::Odb::Lib::Protobuf::StepDirectory_NetlistsByNameEntry_DoNotUse, _impl_.key_), + PROTOBUF_FIELD_OFFSET(::Odb::Lib::Protobuf::StepDirectory_NetlistsByNameEntry_DoNotUse, _impl_.value_), + 0, + 1, + PROTOBUF_FIELD_OFFSET(::Odb::Lib::Protobuf::StepDirectory, _impl_._has_bits_), + PROTOBUF_FIELD_OFFSET(::Odb::Lib::Protobuf::StepDirectory, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + ~0u, // no _split_ + ~0u, // no sizeof(Split) + PROTOBUF_FIELD_OFFSET(::Odb::Lib::Protobuf::StepDirectory, _impl_.name_), + PROTOBUF_FIELD_OFFSET(::Odb::Lib::Protobuf::StepDirectory, _impl_.path_), + PROTOBUF_FIELD_OFFSET(::Odb::Lib::Protobuf::StepDirectory, _impl_.layersbyname_), + PROTOBUF_FIELD_OFFSET(::Odb::Lib::Protobuf::StepDirectory, _impl_.netlistsbyname_), + PROTOBUF_FIELD_OFFSET(::Odb::Lib::Protobuf::StepDirectory, _impl_.edadatafile_), + PROTOBUF_FIELD_OFFSET(::Odb::Lib::Protobuf::StepDirectory, _impl_.attrlistfile_), + PROTOBUF_FIELD_OFFSET(::Odb::Lib::Protobuf::StepDirectory, _impl_.profilefile_), + PROTOBUF_FIELD_OFFSET(::Odb::Lib::Protobuf::StepDirectory, _impl_.stephdrfile_), + 0, + 1, + ~0u, + ~0u, + 2, + 3, + 4, + 5, }; +static const ::_pbi::MigrationSchema + schemas[] ABSL_ATTRIBUTE_SECTION_VARIABLE(protodesc_cold) = { + {0, 10, -1, sizeof(::Odb::Lib::Protobuf::StepDirectory_LayersByNameEntry_DoNotUse)}, + {12, 22, -1, sizeof(::Odb::Lib::Protobuf::StepDirectory_NetlistsByNameEntry_DoNotUse)}, + {24, 40, -1, sizeof(::Odb::Lib::Protobuf::StepDirectory)}, +}; static const ::_pb::Message* const file_default_instances[] = { - &::Odb::Lib::Protobuf::_StepDirectory_LayersByNameEntry_DoNotUse_default_instance_._instance, - &::Odb::Lib::Protobuf::_StepDirectory_NetlistsByNameEntry_DoNotUse_default_instance_._instance, - &::Odb::Lib::Protobuf::_StepDirectory_default_instance_._instance, + &::Odb::Lib::Protobuf::_StepDirectory_LayersByNameEntry_DoNotUse_default_instance_._instance, + &::Odb::Lib::Protobuf::_StepDirectory_NetlistsByNameEntry_DoNotUse_default_instance_._instance, + &::Odb::Lib::Protobuf::_StepDirectory_default_instance_._instance, }; - -const char descriptor_table_protodef_stepdirectory_2eproto[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = - "\n\023stepdirectory.proto\022\020Odb.Lib.Protobuf\032" - "\021edadatafile.proto\032\021netlistfile.proto\032\024l" - "ayerdirectory.proto\032\022attrlistfile.proto\032" - "\022featuresfile.proto\032\021stephdrfile.proto\"\262" - "\005\n\rStepDirectory\022\021\n\004name\030\001 \001(\tH\000\210\001\001\022\021\n\004p" - "ath\030\002 \001(\tH\001\210\001\001\022G\n\014layersByName\030\003 \003(\01321.O" - "db.Lib.Protobuf.StepDirectory.LayersByNa" - "meEntry\022K\n\016netlistsByName\030\004 \003(\01323.Odb.Li" - "b.Protobuf.StepDirectory.NetlistsByNameE" - "ntry\0227\n\013edadatafile\030\005 \001(\0132\035.Odb.Lib.Prot" - "obuf.EdaDataFileH\002\210\001\001\0229\n\014attrlistfile\030\006 " - "\001(\0132\036.Odb.Lib.Protobuf.AttrListFileH\003\210\001\001" - "\0228\n\013profilefile\030\007 \001(\0132\036.Odb.Lib.Protobuf" - ".FeaturesFileH\004\210\001\001\0227\n\013stephdrfile\030\010 \001(\0132" - "\035.Odb.Lib.Protobuf.StepHdrFileH\005\210\001\001\032U\n\021L" - "ayersByNameEntry\022\013\n\003key\030\001 \001(\t\022/\n\005value\030\002" - " \001(\0132 .Odb.Lib.Protobuf.LayerDirectory:\002" - "8\001\032T\n\023NetlistsByNameEntry\022\013\n\003key\030\001 \001(\t\022," - "\n\005value\030\002 \001(\0132\035.Odb.Lib.Protobuf.Netlist" - "File:\0028\001B\007\n\005_nameB\007\n\005_pathB\016\n\014_edadatafi" - "leB\017\n\r_attrlistfileB\016\n\014_profilefileB\016\n\014_" - "stephdrfileb\006proto3" - ; -static const ::_pbi::DescriptorTable* const descriptor_table_stepdirectory_2eproto_deps[6] = { - &::descriptor_table_attrlistfile_2eproto, - &::descriptor_table_edadatafile_2eproto, - &::descriptor_table_featuresfile_2eproto, - &::descriptor_table_layerdirectory_2eproto, - &::descriptor_table_netlistfile_2eproto, - &::descriptor_table_stephdrfile_2eproto, +const char descriptor_table_protodef_stepdirectory_2eproto[] ABSL_ATTRIBUTE_SECTION_VARIABLE( + protodesc_cold) = { + "\n\023stepdirectory.proto\022\020Odb.Lib.Protobuf\032" + "\021edadatafile.proto\032\021netlistfile.proto\032\024l" + "ayerdirectory.proto\032\022attrlistfile.proto\032" + "\022featuresfile.proto\032\021stephdrfile.proto\"\262" + "\005\n\rStepDirectory\022\021\n\004name\030\001 \001(\tH\000\210\001\001\022\021\n\004p" + "ath\030\002 \001(\tH\001\210\001\001\022G\n\014layersByName\030\003 \003(\01321.O" + "db.Lib.Protobuf.StepDirectory.LayersByNa" + "meEntry\022K\n\016netlistsByName\030\004 \003(\01323.Odb.Li" + "b.Protobuf.StepDirectory.NetlistsByNameE" + "ntry\0227\n\013edadatafile\030\005 \001(\0132\035.Odb.Lib.Prot" + "obuf.EdaDataFileH\002\210\001\001\0229\n\014attrlistfile\030\006 " + "\001(\0132\036.Odb.Lib.Protobuf.AttrListFileH\003\210\001\001" + "\0228\n\013profilefile\030\007 \001(\0132\036.Odb.Lib.Protobuf" + ".FeaturesFileH\004\210\001\001\0227\n\013stephdrfile\030\010 \001(\0132" + "\035.Odb.Lib.Protobuf.StepHdrFileH\005\210\001\001\032U\n\021L" + "ayersByNameEntry\022\013\n\003key\030\001 \001(\t\022/\n\005value\030\002" + " \001(\0132 .Odb.Lib.Protobuf.LayerDirectory:\002" + "8\001\032T\n\023NetlistsByNameEntry\022\013\n\003key\030\001 \001(\t\022," + "\n\005value\030\002 \001(\0132\035.Odb.Lib.Protobuf.Netlist" + "File:\0028\001B\007\n\005_nameB\007\n\005_pathB\016\n\014_edadatafi" + "leB\017\n\r_attrlistfileB\016\n\014_profilefileB\016\n\014_" + "stephdrfileb\006proto3" }; -static ::_pbi::once_flag descriptor_table_stepdirectory_2eproto_once; -const ::_pbi::DescriptorTable descriptor_table_stepdirectory_2eproto = { - false, false, 859, descriptor_table_protodef_stepdirectory_2eproto, +static const ::_pbi::DescriptorTable* const descriptor_table_stepdirectory_2eproto_deps[6] = + { + &::descriptor_table_attrlistfile_2eproto, + &::descriptor_table_edadatafile_2eproto, + &::descriptor_table_featuresfile_2eproto, + &::descriptor_table_layerdirectory_2eproto, + &::descriptor_table_netlistfile_2eproto, + &::descriptor_table_stephdrfile_2eproto, +}; +static ::absl::once_flag descriptor_table_stepdirectory_2eproto_once; +PROTOBUF_CONSTINIT const ::_pbi::DescriptorTable descriptor_table_stepdirectory_2eproto = { + false, + false, + 859, + descriptor_table_protodef_stepdirectory_2eproto, "stepdirectory.proto", - &descriptor_table_stepdirectory_2eproto_once, descriptor_table_stepdirectory_2eproto_deps, 6, 3, - schemas, file_default_instances, TableStruct_stepdirectory_2eproto::offsets, - file_level_metadata_stepdirectory_2eproto, file_level_enum_descriptors_stepdirectory_2eproto, + &descriptor_table_stepdirectory_2eproto_once, + descriptor_table_stepdirectory_2eproto_deps, + 6, + 3, + schemas, + file_default_instances, + TableStruct_stepdirectory_2eproto::offsets, + file_level_enum_descriptors_stepdirectory_2eproto, file_level_service_descriptors_stepdirectory_2eproto, }; -PROTOBUF_ATTRIBUTE_WEAK const ::_pbi::DescriptorTable* descriptor_table_stepdirectory_2eproto_getter() { - return &descriptor_table_stepdirectory_2eproto; -} - -// Force running AddDescriptors() at dynamic initialization time. -PROTOBUF_ATTRIBUTE_INIT_PRIORITY2 static ::_pbi::AddDescriptorsRunner dynamic_init_dummy_stepdirectory_2eproto(&descriptor_table_stepdirectory_2eproto); namespace Odb { namespace Lib { namespace Protobuf { - // =================================================================== -StepDirectory_LayersByNameEntry_DoNotUse::StepDirectory_LayersByNameEntry_DoNotUse() {} -StepDirectory_LayersByNameEntry_DoNotUse::StepDirectory_LayersByNameEntry_DoNotUse(::PROTOBUF_NAMESPACE_ID::Arena* arena) - : SuperType(arena) {} -void StepDirectory_LayersByNameEntry_DoNotUse::MergeFrom(const StepDirectory_LayersByNameEntry_DoNotUse& other) { - MergeFromInternal(other); -} -::PROTOBUF_NAMESPACE_ID::Metadata StepDirectory_LayersByNameEntry_DoNotUse::GetMetadata() const { - return ::_pbi::AssignDescriptors( - &descriptor_table_stepdirectory_2eproto_getter, &descriptor_table_stepdirectory_2eproto_once, - file_level_metadata_stepdirectory_2eproto[0]); -} +#if defined(PROTOBUF_CUSTOM_VTABLE) + StepDirectory_LayersByNameEntry_DoNotUse::StepDirectory_LayersByNameEntry_DoNotUse() : SuperType(_class_data_.base()) {} + StepDirectory_LayersByNameEntry_DoNotUse::StepDirectory_LayersByNameEntry_DoNotUse(::google::protobuf::Arena* arena) + : SuperType(arena, _class_data_.base()) {} +#else // PROTOBUF_CUSTOM_VTABLE + StepDirectory_LayersByNameEntry_DoNotUse::StepDirectory_LayersByNameEntry_DoNotUse() : SuperType() {} + StepDirectory_LayersByNameEntry_DoNotUse::StepDirectory_LayersByNameEntry_DoNotUse(::google::protobuf::Arena* arena) : SuperType(arena) {} +#endif // PROTOBUF_CUSTOM_VTABLE + inline void* StepDirectory_LayersByNameEntry_DoNotUse::PlacementNew_(const void*, void* mem, + ::google::protobuf::Arena* arena) { + return ::new (mem) StepDirectory_LayersByNameEntry_DoNotUse(arena); + } + constexpr auto StepDirectory_LayersByNameEntry_DoNotUse::InternalNewImpl_() { + return ::google::protobuf::internal::MessageCreator::CopyInit(sizeof(StepDirectory_LayersByNameEntry_DoNotUse), + alignof(StepDirectory_LayersByNameEntry_DoNotUse)); + } + PROTOBUF_CONSTINIT + PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 + const ::google::protobuf::internal::ClassDataFull StepDirectory_LayersByNameEntry_DoNotUse::_class_data_ = { + ::google::protobuf::internal::ClassData{ + &_StepDirectory_LayersByNameEntry_DoNotUse_default_instance_._instance, + &_table_.header, + nullptr, // OnDemandRegisterArenaDtor + nullptr, // IsInitialized + &StepDirectory_LayersByNameEntry_DoNotUse::MergeImpl, + ::google::protobuf::Message::GetNewImpl(), + #if defined(PROTOBUF_CUSTOM_VTABLE) + &StepDirectory_LayersByNameEntry_DoNotUse::SharedDtor, + static_cast( + &StepDirectory_LayersByNameEntry_DoNotUse::ClearImpl), + ::google::protobuf::Message::ByteSizeLongImpl, ::google::protobuf::Message::_InternalSerializeImpl + , + #endif // PROTOBUF_CUSTOM_VTABLE + PROTOBUF_FIELD_OFFSET(StepDirectory_LayersByNameEntry_DoNotUse, _impl_._cached_size_), + false, + }, + &StepDirectory_LayersByNameEntry_DoNotUse::kDescriptorMethods, + &descriptor_table_stepdirectory_2eproto, + nullptr, // tracker + }; + const ::google::protobuf::internal::ClassData* StepDirectory_LayersByNameEntry_DoNotUse::GetClassData() const { + ::google::protobuf::internal::PrefetchToLocalCache(&_class_data_); + ::google::protobuf::internal::PrefetchToLocalCache(_class_data_.tc_table); + return _class_data_.base(); + } +PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 +const ::_pbi::TcParseTable<1, 2, 1, 60, 2> StepDirectory_LayersByNameEntry_DoNotUse::_table_ = { + { + PROTOBUF_FIELD_OFFSET(StepDirectory_LayersByNameEntry_DoNotUse, _impl_._has_bits_), + 0, // no _extensions_ + 2, 8, // max_field_number, fast_idx_mask + offsetof(decltype(_table_), field_lookup_table), + 4294967292, // skipmap + offsetof(decltype(_table_), field_entries), + 2, // num_field_entries + 1, // num_aux_entries + offsetof(decltype(_table_), aux_entries), + _class_data_.base(), + nullptr, // post_loop_handler + ::_pbi::TcParser::DiscardEverythingFallback, // fallback + #ifdef PROTOBUF_PREFETCH_PARSE_TABLE + ::_pbi::TcParser::GetTable<::Odb::Lib::Protobuf::StepDirectory_LayersByNameEntry_DoNotUse>(), // to_prefetch + #endif // PROTOBUF_PREFETCH_PARSE_TABLE + }, {{ + // .Odb.Lib.Protobuf.LayerDirectory value = 2; + {::_pbi::TcParser::FastMtS1, + {18, 0, 0, PROTOBUF_FIELD_OFFSET(StepDirectory_LayersByNameEntry_DoNotUse, _impl_.value_)}}, + // string key = 1; + {::_pbi::TcParser::FastUS1, + {10, 63, 0, PROTOBUF_FIELD_OFFSET(StepDirectory_LayersByNameEntry_DoNotUse, _impl_.key_)}}, + }}, {{ + 65535, 65535 + }}, {{ + // string key = 1; + {PROTOBUF_FIELD_OFFSET(StepDirectory_LayersByNameEntry_DoNotUse, _impl_.key_), -1, 0, + (0 | ::_fl::kFcSingular | ::_fl::kUtf8String | ::_fl::kRepAString)}, + // .Odb.Lib.Protobuf.LayerDirectory value = 2; + {PROTOBUF_FIELD_OFFSET(StepDirectory_LayersByNameEntry_DoNotUse, _impl_.value_), _Internal::kHasBitsOffset + 0, 0, + (0 | ::_fl::kFcOptional | ::_fl::kMessage | ::_fl::kTvTable)}, + }}, {{ + {::_pbi::TcParser::GetTable<::Odb::Lib::Protobuf::LayerDirectory>()}, + }}, {{ + "\60\3\0\0\0\0\0\0" + "Odb.Lib.Protobuf.StepDirectory.LayersByNameEntry" + "key" + }}, +}; // =================================================================== -StepDirectory_NetlistsByNameEntry_DoNotUse::StepDirectory_NetlistsByNameEntry_DoNotUse() {} -StepDirectory_NetlistsByNameEntry_DoNotUse::StepDirectory_NetlistsByNameEntry_DoNotUse(::PROTOBUF_NAMESPACE_ID::Arena* arena) - : SuperType(arena) {} -void StepDirectory_NetlistsByNameEntry_DoNotUse::MergeFrom(const StepDirectory_NetlistsByNameEntry_DoNotUse& other) { - MergeFromInternal(other); -} -::PROTOBUF_NAMESPACE_ID::Metadata StepDirectory_NetlistsByNameEntry_DoNotUse::GetMetadata() const { - return ::_pbi::AssignDescriptors( - &descriptor_table_stepdirectory_2eproto_getter, &descriptor_table_stepdirectory_2eproto_once, - file_level_metadata_stepdirectory_2eproto[1]); -} +#if defined(PROTOBUF_CUSTOM_VTABLE) + StepDirectory_NetlistsByNameEntry_DoNotUse::StepDirectory_NetlistsByNameEntry_DoNotUse() : SuperType(_class_data_.base()) {} + StepDirectory_NetlistsByNameEntry_DoNotUse::StepDirectory_NetlistsByNameEntry_DoNotUse(::google::protobuf::Arena* arena) + : SuperType(arena, _class_data_.base()) {} +#else // PROTOBUF_CUSTOM_VTABLE + StepDirectory_NetlistsByNameEntry_DoNotUse::StepDirectory_NetlistsByNameEntry_DoNotUse() : SuperType() {} + StepDirectory_NetlistsByNameEntry_DoNotUse::StepDirectory_NetlistsByNameEntry_DoNotUse(::google::protobuf::Arena* arena) : SuperType(arena) {} +#endif // PROTOBUF_CUSTOM_VTABLE + inline void* StepDirectory_NetlistsByNameEntry_DoNotUse::PlacementNew_(const void*, void* mem, + ::google::protobuf::Arena* arena) { + return ::new (mem) StepDirectory_NetlistsByNameEntry_DoNotUse(arena); + } + constexpr auto StepDirectory_NetlistsByNameEntry_DoNotUse::InternalNewImpl_() { + return ::google::protobuf::internal::MessageCreator::CopyInit(sizeof(StepDirectory_NetlistsByNameEntry_DoNotUse), + alignof(StepDirectory_NetlistsByNameEntry_DoNotUse)); + } + PROTOBUF_CONSTINIT + PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 + const ::google::protobuf::internal::ClassDataFull StepDirectory_NetlistsByNameEntry_DoNotUse::_class_data_ = { + ::google::protobuf::internal::ClassData{ + &_StepDirectory_NetlistsByNameEntry_DoNotUse_default_instance_._instance, + &_table_.header, + nullptr, // OnDemandRegisterArenaDtor + nullptr, // IsInitialized + &StepDirectory_NetlistsByNameEntry_DoNotUse::MergeImpl, + ::google::protobuf::Message::GetNewImpl(), + #if defined(PROTOBUF_CUSTOM_VTABLE) + &StepDirectory_NetlistsByNameEntry_DoNotUse::SharedDtor, + static_cast( + &StepDirectory_NetlistsByNameEntry_DoNotUse::ClearImpl), + ::google::protobuf::Message::ByteSizeLongImpl, ::google::protobuf::Message::_InternalSerializeImpl + , + #endif // PROTOBUF_CUSTOM_VTABLE + PROTOBUF_FIELD_OFFSET(StepDirectory_NetlistsByNameEntry_DoNotUse, _impl_._cached_size_), + false, + }, + &StepDirectory_NetlistsByNameEntry_DoNotUse::kDescriptorMethods, + &descriptor_table_stepdirectory_2eproto, + nullptr, // tracker + }; + const ::google::protobuf::internal::ClassData* StepDirectory_NetlistsByNameEntry_DoNotUse::GetClassData() const { + ::google::protobuf::internal::PrefetchToLocalCache(&_class_data_); + ::google::protobuf::internal::PrefetchToLocalCache(_class_data_.tc_table); + return _class_data_.base(); + } +PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 +const ::_pbi::TcParseTable<1, 2, 1, 62, 2> StepDirectory_NetlistsByNameEntry_DoNotUse::_table_ = { + { + PROTOBUF_FIELD_OFFSET(StepDirectory_NetlistsByNameEntry_DoNotUse, _impl_._has_bits_), + 0, // no _extensions_ + 2, 8, // max_field_number, fast_idx_mask + offsetof(decltype(_table_), field_lookup_table), + 4294967292, // skipmap + offsetof(decltype(_table_), field_entries), + 2, // num_field_entries + 1, // num_aux_entries + offsetof(decltype(_table_), aux_entries), + _class_data_.base(), + nullptr, // post_loop_handler + ::_pbi::TcParser::DiscardEverythingFallback, // fallback + #ifdef PROTOBUF_PREFETCH_PARSE_TABLE + ::_pbi::TcParser::GetTable<::Odb::Lib::Protobuf::StepDirectory_NetlistsByNameEntry_DoNotUse>(), // to_prefetch + #endif // PROTOBUF_PREFETCH_PARSE_TABLE + }, {{ + // .Odb.Lib.Protobuf.NetlistFile value = 2; + {::_pbi::TcParser::FastMtS1, + {18, 0, 0, PROTOBUF_FIELD_OFFSET(StepDirectory_NetlistsByNameEntry_DoNotUse, _impl_.value_)}}, + // string key = 1; + {::_pbi::TcParser::FastUS1, + {10, 63, 0, PROTOBUF_FIELD_OFFSET(StepDirectory_NetlistsByNameEntry_DoNotUse, _impl_.key_)}}, + }}, {{ + 65535, 65535 + }}, {{ + // string key = 1; + {PROTOBUF_FIELD_OFFSET(StepDirectory_NetlistsByNameEntry_DoNotUse, _impl_.key_), -1, 0, + (0 | ::_fl::kFcSingular | ::_fl::kUtf8String | ::_fl::kRepAString)}, + // .Odb.Lib.Protobuf.NetlistFile value = 2; + {PROTOBUF_FIELD_OFFSET(StepDirectory_NetlistsByNameEntry_DoNotUse, _impl_.value_), _Internal::kHasBitsOffset + 0, 0, + (0 | ::_fl::kFcOptional | ::_fl::kMessage | ::_fl::kTvTable)}, + }}, {{ + {::_pbi::TcParser::GetTable<::Odb::Lib::Protobuf::NetlistFile>()}, + }}, {{ + "\62\3\0\0\0\0\0\0" + "Odb.Lib.Protobuf.StepDirectory.NetlistsByNameEntry" + "key" + }}, +}; // =================================================================== class StepDirectory::_Internal { public: - using HasBits = decltype(std::declval()._impl_._has_bits_); - static void set_has_name(HasBits* has_bits) { - (*has_bits)[0] |= 1u; - } - static void set_has_path(HasBits* has_bits) { - (*has_bits)[0] |= 2u; - } - static const ::Odb::Lib::Protobuf::EdaDataFile& edadatafile(const StepDirectory* msg); - static void set_has_edadatafile(HasBits* has_bits) { - (*has_bits)[0] |= 4u; - } - static const ::Odb::Lib::Protobuf::AttrListFile& attrlistfile(const StepDirectory* msg); - static void set_has_attrlistfile(HasBits* has_bits) { - (*has_bits)[0] |= 8u; - } - static const ::Odb::Lib::Protobuf::FeaturesFile& profilefile(const StepDirectory* msg); - static void set_has_profilefile(HasBits* has_bits) { - (*has_bits)[0] |= 16u; - } - static const ::Odb::Lib::Protobuf::StepHdrFile& stephdrfile(const StepDirectory* msg); - static void set_has_stephdrfile(HasBits* has_bits) { - (*has_bits)[0] |= 32u; - } + using HasBits = + decltype(std::declval()._impl_._has_bits_); + static constexpr ::int32_t kHasBitsOffset = + 8 * PROTOBUF_FIELD_OFFSET(StepDirectory, _impl_._has_bits_); }; -const ::Odb::Lib::Protobuf::EdaDataFile& -StepDirectory::_Internal::edadatafile(const StepDirectory* msg) { - return *msg->_impl_.edadatafile_; -} -const ::Odb::Lib::Protobuf::AttrListFile& -StepDirectory::_Internal::attrlistfile(const StepDirectory* msg) { - return *msg->_impl_.attrlistfile_; -} -const ::Odb::Lib::Protobuf::FeaturesFile& -StepDirectory::_Internal::profilefile(const StepDirectory* msg) { - return *msg->_impl_.profilefile_; -} -const ::Odb::Lib::Protobuf::StepHdrFile& -StepDirectory::_Internal::stephdrfile(const StepDirectory* msg) { - return *msg->_impl_.stephdrfile_; -} void StepDirectory::clear_layersbyname() { + ::google::protobuf::internal::TSanWrite(&_impl_); _impl_.layersbyname_.Clear(); } void StepDirectory::clear_netlistsbyname() { + ::google::protobuf::internal::TSanWrite(&_impl_); _impl_.netlistsbyname_.Clear(); } void StepDirectory::clear_edadatafile() { + ::google::protobuf::internal::TSanWrite(&_impl_); if (_impl_.edadatafile_ != nullptr) _impl_.edadatafile_->Clear(); _impl_._has_bits_[0] &= ~0x00000004u; } void StepDirectory::clear_attrlistfile() { + ::google::protobuf::internal::TSanWrite(&_impl_); if (_impl_.attrlistfile_ != nullptr) _impl_.attrlistfile_->Clear(); _impl_._has_bits_[0] &= ~0x00000008u; } void StepDirectory::clear_profilefile() { + ::google::protobuf::internal::TSanWrite(&_impl_); if (_impl_.profilefile_ != nullptr) _impl_.profilefile_->Clear(); _impl_._has_bits_[0] &= ~0x00000010u; } void StepDirectory::clear_stephdrfile() { + ::google::protobuf::internal::TSanWrite(&_impl_); if (_impl_.stephdrfile_ != nullptr) _impl_.stephdrfile_->Clear(); _impl_._has_bits_[0] &= ~0x00000020u; } -StepDirectory::StepDirectory(::PROTOBUF_NAMESPACE_ID::Arena* arena, - bool is_message_owned) - : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned) { - SharedCtor(arena, is_message_owned); - if (arena != nullptr && !is_message_owned) { - arena->OwnCustomDestructor(this, &StepDirectory::ArenaDtor); - } +StepDirectory::StepDirectory(::google::protobuf::Arena* arena) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : ::google::protobuf::Message(arena, _class_data_.base()) { +#else // PROTOBUF_CUSTOM_VTABLE + : ::google::protobuf::Message(arena) { +#endif // PROTOBUF_CUSTOM_VTABLE + SharedCtor(arena); // @@protoc_insertion_point(arena_constructor:Odb.Lib.Protobuf.StepDirectory) } -StepDirectory::StepDirectory(const StepDirectory& from) - : ::PROTOBUF_NAMESPACE_ID::Message() { - StepDirectory* const _this = this; (void)_this; - new (&_impl_) Impl_{ - decltype(_impl_._has_bits_){from._impl_._has_bits_} - , /*decltype(_impl_._cached_size_)*/{} - , /*decltype(_impl_.layersbyname_)*/{} - , /*decltype(_impl_.netlistsbyname_)*/{} - , decltype(_impl_.name_){} - , decltype(_impl_.path_){} - , decltype(_impl_.edadatafile_){nullptr} - , decltype(_impl_.attrlistfile_){nullptr} - , decltype(_impl_.profilefile_){nullptr} - , decltype(_impl_.stephdrfile_){nullptr}}; - - _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); - _this->_impl_.layersbyname_.MergeFrom(from._impl_.layersbyname_); - _this->_impl_.netlistsbyname_.MergeFrom(from._impl_.netlistsbyname_); - _impl_.name_.InitDefault(); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - _impl_.name_.Set("", GetArenaForAllocation()); - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (from._internal_has_name()) { - _this->_impl_.name_.Set(from._internal_name(), - _this->GetArenaForAllocation()); - } - _impl_.path_.InitDefault(); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - _impl_.path_.Set("", GetArenaForAllocation()); - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (from._internal_has_path()) { - _this->_impl_.path_.Set(from._internal_path(), - _this->GetArenaForAllocation()); - } - if (from._internal_has_edadatafile()) { - _this->_impl_.edadatafile_ = new ::Odb::Lib::Protobuf::EdaDataFile(*from._impl_.edadatafile_); - } - if (from._internal_has_attrlistfile()) { - _this->_impl_.attrlistfile_ = new ::Odb::Lib::Protobuf::AttrListFile(*from._impl_.attrlistfile_); - } - if (from._internal_has_profilefile()) { - _this->_impl_.profilefile_ = new ::Odb::Lib::Protobuf::FeaturesFile(*from._impl_.profilefile_); - } - if (from._internal_has_stephdrfile()) { - _this->_impl_.stephdrfile_ = new ::Odb::Lib::Protobuf::StepHdrFile(*from._impl_.stephdrfile_); - } +inline PROTOBUF_NDEBUG_INLINE StepDirectory::Impl_::Impl_( + ::google::protobuf::internal::InternalVisibility visibility, ::google::protobuf::Arena* arena, + const Impl_& from, const ::Odb::Lib::Protobuf::StepDirectory& from_msg) + : _has_bits_{from._has_bits_}, + _cached_size_{0}, + layersbyname_{visibility, arena, from.layersbyname_}, + netlistsbyname_{visibility, arena, from.netlistsbyname_}, + name_(arena, from.name_), + path_(arena, from.path_) {} + +StepDirectory::StepDirectory( + ::google::protobuf::Arena* arena, + const StepDirectory& from) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : ::google::protobuf::Message(arena, _class_data_.base()) { +#else // PROTOBUF_CUSTOM_VTABLE + : ::google::protobuf::Message(arena) { +#endif // PROTOBUF_CUSTOM_VTABLE + StepDirectory* const _this = this; + (void)_this; + _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( + from._internal_metadata_); + new (&_impl_) Impl_(internal_visibility(), arena, from._impl_, from); + ::uint32_t cached_has_bits = _impl_._has_bits_[0]; + _impl_.edadatafile_ = (cached_has_bits & 0x00000004u) ? ::google::protobuf::Message::CopyConstruct<::Odb::Lib::Protobuf::EdaDataFile>( + arena, *from._impl_.edadatafile_) + : nullptr; + _impl_.attrlistfile_ = (cached_has_bits & 0x00000008u) ? ::google::protobuf::Message::CopyConstruct<::Odb::Lib::Protobuf::AttrListFile>( + arena, *from._impl_.attrlistfile_) + : nullptr; + _impl_.profilefile_ = (cached_has_bits & 0x00000010u) ? ::google::protobuf::Message::CopyConstruct<::Odb::Lib::Protobuf::FeaturesFile>( + arena, *from._impl_.profilefile_) + : nullptr; + _impl_.stephdrfile_ = (cached_has_bits & 0x00000020u) ? ::google::protobuf::Message::CopyConstruct<::Odb::Lib::Protobuf::StepHdrFile>( + arena, *from._impl_.stephdrfile_) + : nullptr; + // @@protoc_insertion_point(copy_constructor:Odb.Lib.Protobuf.StepDirectory) } - -inline void StepDirectory::SharedCtor( - ::_pb::Arena* arena, bool is_message_owned) { - (void)arena; - (void)is_message_owned; - new (&_impl_) Impl_{ - decltype(_impl_._has_bits_){} - , /*decltype(_impl_._cached_size_)*/{} - , /*decltype(_impl_.layersbyname_)*/{::_pbi::ArenaInitialized(), arena} - , /*decltype(_impl_.netlistsbyname_)*/{::_pbi::ArenaInitialized(), arena} - , decltype(_impl_.name_){} - , decltype(_impl_.path_){} - , decltype(_impl_.edadatafile_){nullptr} - , decltype(_impl_.attrlistfile_){nullptr} - , decltype(_impl_.profilefile_){nullptr} - , decltype(_impl_.stephdrfile_){nullptr} - }; - _impl_.name_.InitDefault(); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - _impl_.name_.Set("", GetArenaForAllocation()); - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING - _impl_.path_.InitDefault(); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - _impl_.path_.Set("", GetArenaForAllocation()); - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING +inline PROTOBUF_NDEBUG_INLINE StepDirectory::Impl_::Impl_( + ::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* arena) + : _cached_size_{0}, + layersbyname_{visibility, arena}, + netlistsbyname_{visibility, arena}, + name_(arena), + path_(arena) {} + +inline void StepDirectory::SharedCtor(::_pb::Arena* arena) { + new (&_impl_) Impl_(internal_visibility(), arena); + ::memset(reinterpret_cast(&_impl_) + + offsetof(Impl_, edadatafile_), + 0, + offsetof(Impl_, stephdrfile_) - + offsetof(Impl_, edadatafile_) + + sizeof(Impl_::stephdrfile_)); } - StepDirectory::~StepDirectory() { // @@protoc_insertion_point(destructor:Odb.Lib.Protobuf.StepDirectory) - if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) { - (void)arena; - ArenaDtor(this); - return; + SharedDtor(*this); +} +inline void StepDirectory::SharedDtor(MessageLite& self) { + StepDirectory& this_ = static_cast(self); + this_._internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); + ABSL_DCHECK(this_.GetArena() == nullptr); + this_._impl_.name_.Destroy(); + this_._impl_.path_.Destroy(); + delete this_._impl_.edadatafile_; + delete this_._impl_.attrlistfile_; + delete this_._impl_.profilefile_; + delete this_._impl_.stephdrfile_; + this_._impl_.~Impl_(); +} + +inline void* StepDirectory::PlacementNew_(const void*, void* mem, + ::google::protobuf::Arena* arena) { + return ::new (mem) StepDirectory(arena); +} +constexpr auto StepDirectory::InternalNewImpl_() { + constexpr auto arena_bits = ::google::protobuf::internal::EncodePlacementArenaOffsets({ + PROTOBUF_FIELD_OFFSET(StepDirectory, _impl_.layersbyname_) + + decltype(StepDirectory::_impl_.layersbyname_):: + InternalGetArenaOffset( + ::google::protobuf::Message::internal_visibility()), + PROTOBUF_FIELD_OFFSET(StepDirectory, _impl_.layersbyname_) + + decltype(StepDirectory::_impl_.layersbyname_):: + InternalGetArenaOffsetAlt( + ::google::protobuf::Message::internal_visibility()), + PROTOBUF_FIELD_OFFSET(StepDirectory, _impl_.netlistsbyname_) + + decltype(StepDirectory::_impl_.netlistsbyname_):: + InternalGetArenaOffset( + ::google::protobuf::Message::internal_visibility()), + PROTOBUF_FIELD_OFFSET(StepDirectory, _impl_.netlistsbyname_) + + decltype(StepDirectory::_impl_.netlistsbyname_):: + InternalGetArenaOffsetAlt( + ::google::protobuf::Message::internal_visibility()), + }); + if (arena_bits.has_value()) { + return ::google::protobuf::internal::MessageCreator::CopyInit( + sizeof(StepDirectory), alignof(StepDirectory), *arena_bits); + } else { + return ::google::protobuf::internal::MessageCreator(&StepDirectory::PlacementNew_, + sizeof(StepDirectory), + alignof(StepDirectory)); } - SharedDtor(); -} - -inline void StepDirectory::SharedDtor() { - GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); - _impl_.layersbyname_.Destruct(); - _impl_.layersbyname_.~MapField(); - _impl_.netlistsbyname_.Destruct(); - _impl_.netlistsbyname_.~MapField(); - _impl_.name_.Destroy(); - _impl_.path_.Destroy(); - if (this != internal_default_instance()) delete _impl_.edadatafile_; - if (this != internal_default_instance()) delete _impl_.attrlistfile_; - if (this != internal_default_instance()) delete _impl_.profilefile_; - if (this != internal_default_instance()) delete _impl_.stephdrfile_; -} - -void StepDirectory::ArenaDtor(void* object) { - StepDirectory* _this = reinterpret_cast< StepDirectory* >(object); - _this->_impl_.layersbyname_.Destruct(); - _this->_impl_.netlistsbyname_.Destruct(); -} -void StepDirectory::SetCachedSize(int size) const { - _impl_._cached_size_.Set(size); } +PROTOBUF_CONSTINIT +PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 +const ::google::protobuf::internal::ClassDataFull StepDirectory::_class_data_ = { + ::google::protobuf::internal::ClassData{ + &_StepDirectory_default_instance_._instance, + &_table_.header, + nullptr, // OnDemandRegisterArenaDtor + nullptr, // IsInitialized + &StepDirectory::MergeImpl, + ::google::protobuf::Message::GetNewImpl(), +#if defined(PROTOBUF_CUSTOM_VTABLE) + &StepDirectory::SharedDtor, + ::google::protobuf::Message::GetClearImpl(), &StepDirectory::ByteSizeLong, + &StepDirectory::_InternalSerialize, +#endif // PROTOBUF_CUSTOM_VTABLE + PROTOBUF_FIELD_OFFSET(StepDirectory, _impl_._cached_size_), + false, + }, + &StepDirectory::kDescriptorMethods, + &descriptor_table_stepdirectory_2eproto, + nullptr, // tracker +}; +const ::google::protobuf::internal::ClassData* StepDirectory::GetClassData() const { + ::google::protobuf::internal::PrefetchToLocalCache(&_class_data_); + ::google::protobuf::internal::PrefetchToLocalCache(_class_data_.tc_table); + return _class_data_.base(); +} +PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 +const ::_pbi::TcParseTable<3, 8, 8, 81, 2> StepDirectory::_table_ = { + { + PROTOBUF_FIELD_OFFSET(StepDirectory, _impl_._has_bits_), + 0, // no _extensions_ + 8, 56, // max_field_number, fast_idx_mask + offsetof(decltype(_table_), field_lookup_table), + 4294967040, // skipmap + offsetof(decltype(_table_), field_entries), + 8, // num_field_entries + 8, // num_aux_entries + offsetof(decltype(_table_), aux_entries), + _class_data_.base(), + nullptr, // post_loop_handler + ::_pbi::TcParser::GenericFallback, // fallback + #ifdef PROTOBUF_PREFETCH_PARSE_TABLE + ::_pbi::TcParser::GetTable<::Odb::Lib::Protobuf::StepDirectory>(), // to_prefetch + #endif // PROTOBUF_PREFETCH_PARSE_TABLE + }, {{ + // optional .Odb.Lib.Protobuf.StepHdrFile stephdrfile = 8; + {::_pbi::TcParser::FastMtS1, + {66, 5, 3, PROTOBUF_FIELD_OFFSET(StepDirectory, _impl_.stephdrfile_)}}, + // optional string name = 1; + {::_pbi::TcParser::FastUS1, + {10, 0, 0, PROTOBUF_FIELD_OFFSET(StepDirectory, _impl_.name_)}}, + // optional string path = 2; + {::_pbi::TcParser::FastUS1, + {18, 1, 0, PROTOBUF_FIELD_OFFSET(StepDirectory, _impl_.path_)}}, + {::_pbi::TcParser::MiniParse, {}}, + {::_pbi::TcParser::MiniParse, {}}, + // optional .Odb.Lib.Protobuf.EdaDataFile edadatafile = 5; + {::_pbi::TcParser::FastMtS1, + {42, 2, 0, PROTOBUF_FIELD_OFFSET(StepDirectory, _impl_.edadatafile_)}}, + // optional .Odb.Lib.Protobuf.AttrListFile attrlistfile = 6; + {::_pbi::TcParser::FastMtS1, + {50, 3, 1, PROTOBUF_FIELD_OFFSET(StepDirectory, _impl_.attrlistfile_)}}, + // optional .Odb.Lib.Protobuf.FeaturesFile profilefile = 7; + {::_pbi::TcParser::FastMtS1, + {58, 4, 2, PROTOBUF_FIELD_OFFSET(StepDirectory, _impl_.profilefile_)}}, + }}, {{ + 65535, 65535 + }}, {{ + // optional string name = 1; + {PROTOBUF_FIELD_OFFSET(StepDirectory, _impl_.name_), _Internal::kHasBitsOffset + 0, 0, + (0 | ::_fl::kFcOptional | ::_fl::kUtf8String | ::_fl::kRepAString)}, + // optional string path = 2; + {PROTOBUF_FIELD_OFFSET(StepDirectory, _impl_.path_), _Internal::kHasBitsOffset + 1, 0, + (0 | ::_fl::kFcOptional | ::_fl::kUtf8String | ::_fl::kRepAString)}, + // map layersByName = 3; + {PROTOBUF_FIELD_OFFSET(StepDirectory, _impl_.layersbyname_), -1, 4, + (0 | ::_fl::kFcRepeated | ::_fl::kMap)}, + // map netlistsByName = 4; + {PROTOBUF_FIELD_OFFSET(StepDirectory, _impl_.netlistsbyname_), -1, 6, + (0 | ::_fl::kFcRepeated | ::_fl::kMap)}, + // optional .Odb.Lib.Protobuf.EdaDataFile edadatafile = 5; + {PROTOBUF_FIELD_OFFSET(StepDirectory, _impl_.edadatafile_), _Internal::kHasBitsOffset + 2, 0, + (0 | ::_fl::kFcOptional | ::_fl::kMessage | ::_fl::kTvTable)}, + // optional .Odb.Lib.Protobuf.AttrListFile attrlistfile = 6; + {PROTOBUF_FIELD_OFFSET(StepDirectory, _impl_.attrlistfile_), _Internal::kHasBitsOffset + 3, 1, + (0 | ::_fl::kFcOptional | ::_fl::kMessage | ::_fl::kTvTable)}, + // optional .Odb.Lib.Protobuf.FeaturesFile profilefile = 7; + {PROTOBUF_FIELD_OFFSET(StepDirectory, _impl_.profilefile_), _Internal::kHasBitsOffset + 4, 2, + (0 | ::_fl::kFcOptional | ::_fl::kMessage | ::_fl::kTvTable)}, + // optional .Odb.Lib.Protobuf.StepHdrFile stephdrfile = 8; + {PROTOBUF_FIELD_OFFSET(StepDirectory, _impl_.stephdrfile_), _Internal::kHasBitsOffset + 5, 3, + (0 | ::_fl::kFcOptional | ::_fl::kMessage | ::_fl::kTvTable)}, + }}, {{ + {::_pbi::TcParser::GetTable<::Odb::Lib::Protobuf::EdaDataFile>()}, + {::_pbi::TcParser::GetTable<::Odb::Lib::Protobuf::AttrListFile>()}, + {::_pbi::TcParser::GetTable<::Odb::Lib::Protobuf::FeaturesFile>()}, + {::_pbi::TcParser::GetTable<::Odb::Lib::Protobuf::StepHdrFile>()}, + {::_pbi::TcParser::GetMapAuxInfo< + decltype(StepDirectory()._impl_.layersbyname_)>( + 1, 0, 0, 9, + 11)}, + {::_pbi::TcParser::GetTable<::Odb::Lib::Protobuf::LayerDirectory>()}, + {::_pbi::TcParser::GetMapAuxInfo< + decltype(StepDirectory()._impl_.netlistsbyname_)>( + 1, 0, 0, 9, + 11)}, + {::_pbi::TcParser::GetTable<::Odb::Lib::Protobuf::NetlistFile>()}, + }}, {{ + "\36\4\4\14\16\0\0\0\0\0\0\0\0\0\0\0" + "Odb.Lib.Protobuf.StepDirectory" + "name" + "path" + "layersByName" + "netlistsByName" + }}, +}; -void StepDirectory::Clear() { +PROTOBUF_NOINLINE void StepDirectory::Clear() { // @@protoc_insertion_point(message_clear_start:Odb.Lib.Protobuf.StepDirectory) - uint32_t cached_has_bits = 0; + ::google::protobuf::internal::TSanWrite(&_impl_); + ::uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; @@ -409,336 +693,230 @@ void StepDirectory::Clear() { _impl_.path_.ClearNonDefaultToEmpty(); } if (cached_has_bits & 0x00000004u) { - GOOGLE_DCHECK(_impl_.edadatafile_ != nullptr); + ABSL_DCHECK(_impl_.edadatafile_ != nullptr); _impl_.edadatafile_->Clear(); } if (cached_has_bits & 0x00000008u) { - GOOGLE_DCHECK(_impl_.attrlistfile_ != nullptr); + ABSL_DCHECK(_impl_.attrlistfile_ != nullptr); _impl_.attrlistfile_->Clear(); } if (cached_has_bits & 0x00000010u) { - GOOGLE_DCHECK(_impl_.profilefile_ != nullptr); + ABSL_DCHECK(_impl_.profilefile_ != nullptr); _impl_.profilefile_->Clear(); } if (cached_has_bits & 0x00000020u) { - GOOGLE_DCHECK(_impl_.stephdrfile_ != nullptr); + ABSL_DCHECK(_impl_.stephdrfile_ != nullptr); _impl_.stephdrfile_->Clear(); } } _impl_._has_bits_.Clear(); - _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); -} - -const char* StepDirectory::_InternalParse(const char* ptr, ::_pbi::ParseContext* ctx) { -#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure - _Internal::HasBits has_bits{}; - while (!ctx->Done(&ptr)) { - uint32_t tag; - ptr = ::_pbi::ReadTag(ptr, &tag); - switch (tag >> 3) { - // optional string name = 1; - case 1: - if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 10)) { - auto str = _internal_mutable_name(); - ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); - CHK_(ptr); - CHK_(::_pbi::VerifyUTF8(str, "Odb.Lib.Protobuf.StepDirectory.name")); - } else - goto handle_unusual; - continue; - // optional string path = 2; - case 2: - if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 18)) { - auto str = _internal_mutable_path(); - ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); - CHK_(ptr); - CHK_(::_pbi::VerifyUTF8(str, "Odb.Lib.Protobuf.StepDirectory.path")); - } else - goto handle_unusual; - continue; - // map layersByName = 3; - case 3: - if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 26)) { - ptr -= 1; - do { - ptr += 1; - ptr = ctx->ParseMessage(&_impl_.layersbyname_, ptr); - CHK_(ptr); - if (!ctx->DataAvailable(ptr)) break; - } while (::PROTOBUF_NAMESPACE_ID::internal::ExpectTag<26>(ptr)); - } else - goto handle_unusual; - continue; - // map netlistsByName = 4; - case 4: - if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 34)) { - ptr -= 1; - do { - ptr += 1; - ptr = ctx->ParseMessage(&_impl_.netlistsbyname_, ptr); - CHK_(ptr); - if (!ctx->DataAvailable(ptr)) break; - } while (::PROTOBUF_NAMESPACE_ID::internal::ExpectTag<34>(ptr)); - } else - goto handle_unusual; - continue; - // optional .Odb.Lib.Protobuf.EdaDataFile edadatafile = 5; - case 5: - if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 42)) { - ptr = ctx->ParseMessage(_internal_mutable_edadatafile(), ptr); - CHK_(ptr); - } else - goto handle_unusual; - continue; - // optional .Odb.Lib.Protobuf.AttrListFile attrlistfile = 6; - case 6: - if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 50)) { - ptr = ctx->ParseMessage(_internal_mutable_attrlistfile(), ptr); - CHK_(ptr); - } else - goto handle_unusual; - continue; - // optional .Odb.Lib.Protobuf.FeaturesFile profilefile = 7; - case 7: - if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 58)) { - ptr = ctx->ParseMessage(_internal_mutable_profilefile(), ptr); - CHK_(ptr); - } else - goto handle_unusual; - continue; - // optional .Odb.Lib.Protobuf.StepHdrFile stephdrfile = 8; - case 8: - if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 66)) { - ptr = ctx->ParseMessage(_internal_mutable_stephdrfile(), ptr); - CHK_(ptr); - } else - goto handle_unusual; - continue; - default: - goto handle_unusual; - } // switch - handle_unusual: - if ((tag == 0) || ((tag & 7) == 4)) { - CHK_(ptr); - ctx->SetLastTag(tag); - goto message_done; - } - ptr = UnknownFieldParse( - tag, - _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(), - ptr, ctx); - CHK_(ptr != nullptr); - } // while -message_done: - _impl_._has_bits_.Or(has_bits); - return ptr; -failure: - ptr = nullptr; - goto message_done; -#undef CHK_ -} - -uint8_t* StepDirectory::_InternalSerialize( - uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { - // @@protoc_insertion_point(serialize_to_array_start:Odb.Lib.Protobuf.StepDirectory) - uint32_t cached_has_bits = 0; - (void) cached_has_bits; - - // optional string name = 1; - if (_internal_has_name()) { - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( - this->_internal_name().data(), static_cast(this->_internal_name().length()), - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, - "Odb.Lib.Protobuf.StepDirectory.name"); - target = stream->WriteStringMaybeAliased( - 1, this->_internal_name(), target); - } - - // optional string path = 2; - if (_internal_has_path()) { - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( - this->_internal_path().data(), static_cast(this->_internal_path().length()), - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, - "Odb.Lib.Protobuf.StepDirectory.path"); - target = stream->WriteStringMaybeAliased( - 2, this->_internal_path(), target); - } - - // map layersByName = 3; - if (!this->_internal_layersbyname().empty()) { - using MapType = ::_pb::Map; - using WireHelper = StepDirectory_LayersByNameEntry_DoNotUse::Funcs; - const auto& map_field = this->_internal_layersbyname(); - auto check_utf8 = [](const MapType::value_type& entry) { - (void)entry; - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( - entry.first.data(), static_cast(entry.first.length()), - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, - "Odb.Lib.Protobuf.StepDirectory.LayersByNameEntry.key"); - }; - - if (stream->IsSerializationDeterministic() && map_field.size() > 1) { - for (const auto& entry : ::_pbi::MapSorterPtr(map_field)) { - target = WireHelper::InternalSerialize(3, entry.first, entry.second, target, stream); - check_utf8(entry); - } - } else { - for (const auto& entry : map_field) { - target = WireHelper::InternalSerialize(3, entry.first, entry.second, target, stream); - check_utf8(entry); - } - } - } - - // map netlistsByName = 4; - if (!this->_internal_netlistsbyname().empty()) { - using MapType = ::_pb::Map; - using WireHelper = StepDirectory_NetlistsByNameEntry_DoNotUse::Funcs; - const auto& map_field = this->_internal_netlistsbyname(); - auto check_utf8 = [](const MapType::value_type& entry) { - (void)entry; - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( - entry.first.data(), static_cast(entry.first.length()), - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, - "Odb.Lib.Protobuf.StepDirectory.NetlistsByNameEntry.key"); - }; - - if (stream->IsSerializationDeterministic() && map_field.size() > 1) { - for (const auto& entry : ::_pbi::MapSorterPtr(map_field)) { - target = WireHelper::InternalSerialize(4, entry.first, entry.second, target, stream); - check_utf8(entry); - } - } else { - for (const auto& entry : map_field) { - target = WireHelper::InternalSerialize(4, entry.first, entry.second, target, stream); - check_utf8(entry); - } - } - } - - // optional .Odb.Lib.Protobuf.EdaDataFile edadatafile = 5; - if (_internal_has_edadatafile()) { - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: - InternalWriteMessage(5, _Internal::edadatafile(this), - _Internal::edadatafile(this).GetCachedSize(), target, stream); - } - - // optional .Odb.Lib.Protobuf.AttrListFile attrlistfile = 6; - if (_internal_has_attrlistfile()) { - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: - InternalWriteMessage(6, _Internal::attrlistfile(this), - _Internal::attrlistfile(this).GetCachedSize(), target, stream); - } - - // optional .Odb.Lib.Protobuf.FeaturesFile profilefile = 7; - if (_internal_has_profilefile()) { - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: - InternalWriteMessage(7, _Internal::profilefile(this), - _Internal::profilefile(this).GetCachedSize(), target, stream); - } - - // optional .Odb.Lib.Protobuf.StepHdrFile stephdrfile = 8; - if (_internal_has_stephdrfile()) { - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: - InternalWriteMessage(8, _Internal::stephdrfile(this), - _Internal::stephdrfile(this).GetCachedSize(), target, stream); - } - - if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = ::_pbi::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:Odb.Lib.Protobuf.StepDirectory) - return target; -} - -size_t StepDirectory::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:Odb.Lib.Protobuf.StepDirectory) - size_t total_size = 0; - - uint32_t cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - // map layersByName = 3; - total_size += 1 * - ::PROTOBUF_NAMESPACE_ID::internal::FromIntSize(this->_internal_layersbyname_size()); - for (::PROTOBUF_NAMESPACE_ID::Map< std::string, ::Odb::Lib::Protobuf::LayerDirectory >::const_iterator - it = this->_internal_layersbyname().begin(); - it != this->_internal_layersbyname().end(); ++it) { - total_size += StepDirectory_LayersByNameEntry_DoNotUse::Funcs::ByteSizeLong(it->first, it->second); - } - - // map netlistsByName = 4; - total_size += 1 * - ::PROTOBUF_NAMESPACE_ID::internal::FromIntSize(this->_internal_netlistsbyname_size()); - for (::PROTOBUF_NAMESPACE_ID::Map< std::string, ::Odb::Lib::Protobuf::NetlistFile >::const_iterator - it = this->_internal_netlistsbyname().begin(); - it != this->_internal_netlistsbyname().end(); ++it) { - total_size += StepDirectory_NetlistsByNameEntry_DoNotUse::Funcs::ByteSizeLong(it->first, it->second); - } - - cached_has_bits = _impl_._has_bits_[0]; - if (cached_has_bits & 0x0000003fu) { - // optional string name = 1; - if (cached_has_bits & 0x00000001u) { - total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( - this->_internal_name()); - } - - // optional string path = 2; - if (cached_has_bits & 0x00000002u) { - total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( - this->_internal_path()); - } - - // optional .Odb.Lib.Protobuf.EdaDataFile edadatafile = 5; - if (cached_has_bits & 0x00000004u) { - total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( - *_impl_.edadatafile_); - } - - // optional .Odb.Lib.Protobuf.AttrListFile attrlistfile = 6; - if (cached_has_bits & 0x00000008u) { - total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( - *_impl_.attrlistfile_); - } - - // optional .Odb.Lib.Protobuf.FeaturesFile profilefile = 7; - if (cached_has_bits & 0x00000010u) { - total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( - *_impl_.profilefile_); - } - - // optional .Odb.Lib.Protobuf.StepHdrFile stephdrfile = 8; - if (cached_has_bits & 0x00000020u) { - total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( - *_impl_.stephdrfile_); - } - - } - return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); -} - -const ::PROTOBUF_NAMESPACE_ID::Message::ClassData StepDirectory::_class_data_ = { - ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSourceCheck, - StepDirectory::MergeImpl -}; -const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*StepDirectory::GetClassData() const { return &_class_data_; } - - -void StepDirectory::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg) { + _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); +} + +#if defined(PROTOBUF_CUSTOM_VTABLE) + ::uint8_t* StepDirectory::_InternalSerialize( + const MessageLite& base, ::uint8_t* target, + ::google::protobuf::io::EpsCopyOutputStream* stream) { + const StepDirectory& this_ = static_cast(base); +#else // PROTOBUF_CUSTOM_VTABLE + ::uint8_t* StepDirectory::_InternalSerialize( + ::uint8_t* target, + ::google::protobuf::io::EpsCopyOutputStream* stream) const { + const StepDirectory& this_ = *this; +#endif // PROTOBUF_CUSTOM_VTABLE + // @@protoc_insertion_point(serialize_to_array_start:Odb.Lib.Protobuf.StepDirectory) + ::uint32_t cached_has_bits = 0; + (void)cached_has_bits; + + cached_has_bits = this_._impl_._has_bits_[0]; + // optional string name = 1; + if (cached_has_bits & 0x00000001u) { + const std::string& _s = this_._internal_name(); + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + _s.data(), static_cast(_s.length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "Odb.Lib.Protobuf.StepDirectory.name"); + target = stream->WriteStringMaybeAliased(1, _s, target); + } + + // optional string path = 2; + if (cached_has_bits & 0x00000002u) { + const std::string& _s = this_._internal_path(); + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + _s.data(), static_cast(_s.length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "Odb.Lib.Protobuf.StepDirectory.path"); + target = stream->WriteStringMaybeAliased(2, _s, target); + } + + // map layersByName = 3; + if (!this_._internal_layersbyname().empty()) { + using MapType = ::google::protobuf::Map; + using WireHelper = _pbi::MapEntryFuncs; + const auto& field = this_._internal_layersbyname(); + + if (stream->IsSerializationDeterministic() && field.size() > 1) { + for (const auto& entry : ::google::protobuf::internal::MapSorterPtr(field)) { + target = WireHelper::InternalSerialize( + 3, entry.first, entry.second, target, stream); + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + entry.first.data(), static_cast(entry.first.length()), + ::google::protobuf::internal::WireFormatLite::SERIALIZE, "Odb.Lib.Protobuf.StepDirectory.layersByName"); + } + } else { + for (const auto& entry : field) { + target = WireHelper::InternalSerialize( + 3, entry.first, entry.second, target, stream); + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + entry.first.data(), static_cast(entry.first.length()), + ::google::protobuf::internal::WireFormatLite::SERIALIZE, "Odb.Lib.Protobuf.StepDirectory.layersByName"); + } + } + } + + // map netlistsByName = 4; + if (!this_._internal_netlistsbyname().empty()) { + using MapType = ::google::protobuf::Map; + using WireHelper = _pbi::MapEntryFuncs; + const auto& field = this_._internal_netlistsbyname(); + + if (stream->IsSerializationDeterministic() && field.size() > 1) { + for (const auto& entry : ::google::protobuf::internal::MapSorterPtr(field)) { + target = WireHelper::InternalSerialize( + 4, entry.first, entry.second, target, stream); + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + entry.first.data(), static_cast(entry.first.length()), + ::google::protobuf::internal::WireFormatLite::SERIALIZE, "Odb.Lib.Protobuf.StepDirectory.netlistsByName"); + } + } else { + for (const auto& entry : field) { + target = WireHelper::InternalSerialize( + 4, entry.first, entry.second, target, stream); + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + entry.first.data(), static_cast(entry.first.length()), + ::google::protobuf::internal::WireFormatLite::SERIALIZE, "Odb.Lib.Protobuf.StepDirectory.netlistsByName"); + } + } + } + + // optional .Odb.Lib.Protobuf.EdaDataFile edadatafile = 5; + if (cached_has_bits & 0x00000004u) { + target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( + 5, *this_._impl_.edadatafile_, this_._impl_.edadatafile_->GetCachedSize(), target, + stream); + } + + // optional .Odb.Lib.Protobuf.AttrListFile attrlistfile = 6; + if (cached_has_bits & 0x00000008u) { + target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( + 6, *this_._impl_.attrlistfile_, this_._impl_.attrlistfile_->GetCachedSize(), target, + stream); + } + + // optional .Odb.Lib.Protobuf.FeaturesFile profilefile = 7; + if (cached_has_bits & 0x00000010u) { + target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( + 7, *this_._impl_.profilefile_, this_._impl_.profilefile_->GetCachedSize(), target, + stream); + } + + // optional .Odb.Lib.Protobuf.StepHdrFile stephdrfile = 8; + if (cached_has_bits & 0x00000020u) { + target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( + 8, *this_._impl_.stephdrfile_, this_._impl_.stephdrfile_->GetCachedSize(), target, + stream); + } + + if (PROTOBUF_PREDICT_FALSE(this_._internal_metadata_.have_unknown_fields())) { + target = + ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( + this_._internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); + } + // @@protoc_insertion_point(serialize_to_array_end:Odb.Lib.Protobuf.StepDirectory) + return target; + } + +#if defined(PROTOBUF_CUSTOM_VTABLE) + ::size_t StepDirectory::ByteSizeLong(const MessageLite& base) { + const StepDirectory& this_ = static_cast(base); +#else // PROTOBUF_CUSTOM_VTABLE + ::size_t StepDirectory::ByteSizeLong() const { + const StepDirectory& this_ = *this; +#endif // PROTOBUF_CUSTOM_VTABLE + // @@protoc_insertion_point(message_byte_size_start:Odb.Lib.Protobuf.StepDirectory) + ::size_t total_size = 0; + + ::uint32_t cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void)cached_has_bits; + + ::_pbi::Prefetch5LinesFrom7Lines(&this_); + { + // map layersByName = 3; + { + total_size += + 1 * ::google::protobuf::internal::FromIntSize(this_._internal_layersbyname_size()); + for (const auto& entry : this_._internal_layersbyname()) { + total_size += _pbi::MapEntryFuncs::ByteSizeLong(entry.first, entry.second); + } + } + // map netlistsByName = 4; + { + total_size += + 1 * ::google::protobuf::internal::FromIntSize(this_._internal_netlistsbyname_size()); + for (const auto& entry : this_._internal_netlistsbyname()) { + total_size += _pbi::MapEntryFuncs::ByteSizeLong(entry.first, entry.second); + } + } + } + cached_has_bits = this_._impl_._has_bits_[0]; + if (cached_has_bits & 0x0000003fu) { + // optional string name = 1; + if (cached_has_bits & 0x00000001u) { + total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize( + this_._internal_name()); + } + // optional string path = 2; + if (cached_has_bits & 0x00000002u) { + total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize( + this_._internal_path()); + } + // optional .Odb.Lib.Protobuf.EdaDataFile edadatafile = 5; + if (cached_has_bits & 0x00000004u) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::MessageSize(*this_._impl_.edadatafile_); + } + // optional .Odb.Lib.Protobuf.AttrListFile attrlistfile = 6; + if (cached_has_bits & 0x00000008u) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::MessageSize(*this_._impl_.attrlistfile_); + } + // optional .Odb.Lib.Protobuf.FeaturesFile profilefile = 7; + if (cached_has_bits & 0x00000010u) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::MessageSize(*this_._impl_.profilefile_); + } + // optional .Odb.Lib.Protobuf.StepHdrFile stephdrfile = 8; + if (cached_has_bits & 0x00000020u) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::MessageSize(*this_._impl_.stephdrfile_); + } + } + return this_.MaybeComputeUnknownFieldsSize(total_size, + &this_._impl_._cached_size_); + } + +void StepDirectory::MergeImpl(::google::protobuf::MessageLite& to_msg, const ::google::protobuf::MessageLite& from_msg) { auto* const _this = static_cast(&to_msg); auto& from = static_cast(from_msg); + ::google::protobuf::Arena* arena = _this->GetArena(); // @@protoc_insertion_point(class_specific_merge_from_start:Odb.Lib.Protobuf.StepDirectory) - GOOGLE_DCHECK_NE(&from, _this); - uint32_t cached_has_bits = 0; + ABSL_DCHECK_NE(&from, _this); + ::uint32_t cached_has_bits = 0; (void) cached_has_bits; _this->_impl_.layersbyname_.MergeFrom(from._impl_.layersbyname_); @@ -752,23 +930,44 @@ void StepDirectory::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const :: _this->_internal_set_path(from._internal_path()); } if (cached_has_bits & 0x00000004u) { - _this->_internal_mutable_edadatafile()->::Odb::Lib::Protobuf::EdaDataFile::MergeFrom( - from._internal_edadatafile()); + ABSL_DCHECK(from._impl_.edadatafile_ != nullptr); + if (_this->_impl_.edadatafile_ == nullptr) { + _this->_impl_.edadatafile_ = + ::google::protobuf::Message::CopyConstruct<::Odb::Lib::Protobuf::EdaDataFile>(arena, *from._impl_.edadatafile_); + } else { + _this->_impl_.edadatafile_->MergeFrom(*from._impl_.edadatafile_); + } } if (cached_has_bits & 0x00000008u) { - _this->_internal_mutable_attrlistfile()->::Odb::Lib::Protobuf::AttrListFile::MergeFrom( - from._internal_attrlistfile()); + ABSL_DCHECK(from._impl_.attrlistfile_ != nullptr); + if (_this->_impl_.attrlistfile_ == nullptr) { + _this->_impl_.attrlistfile_ = + ::google::protobuf::Message::CopyConstruct<::Odb::Lib::Protobuf::AttrListFile>(arena, *from._impl_.attrlistfile_); + } else { + _this->_impl_.attrlistfile_->MergeFrom(*from._impl_.attrlistfile_); + } } if (cached_has_bits & 0x00000010u) { - _this->_internal_mutable_profilefile()->::Odb::Lib::Protobuf::FeaturesFile::MergeFrom( - from._internal_profilefile()); + ABSL_DCHECK(from._impl_.profilefile_ != nullptr); + if (_this->_impl_.profilefile_ == nullptr) { + _this->_impl_.profilefile_ = + ::google::protobuf::Message::CopyConstruct<::Odb::Lib::Protobuf::FeaturesFile>(arena, *from._impl_.profilefile_); + } else { + _this->_impl_.profilefile_->MergeFrom(*from._impl_.profilefile_); + } } if (cached_has_bits & 0x00000020u) { - _this->_internal_mutable_stephdrfile()->::Odb::Lib::Protobuf::StepHdrFile::MergeFrom( - from._internal_stephdrfile()); + ABSL_DCHECK(from._impl_.stephdrfile_ != nullptr); + if (_this->_impl_.stephdrfile_ == nullptr) { + _this->_impl_.stephdrfile_ = + ::google::protobuf::Message::CopyConstruct<::Odb::Lib::Protobuf::StepHdrFile>(arena, *from._impl_.stephdrfile_); + } else { + _this->_impl_.stephdrfile_->MergeFrom(*from._impl_.stephdrfile_); + } } } - _this->_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); + _this->_impl_._has_bits_[0] |= cached_has_bits; + _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); } void StepDirectory::CopyFrom(const StepDirectory& from) { @@ -778,27 +977,18 @@ void StepDirectory::CopyFrom(const StepDirectory& from) { MergeFrom(from); } -bool StepDirectory::IsInitialized() const { - return true; -} -void StepDirectory::InternalSwap(StepDirectory* other) { +void StepDirectory::InternalSwap(StepDirectory* PROTOBUF_RESTRICT other) { using std::swap; - auto* lhs_arena = GetArenaForAllocation(); - auto* rhs_arena = other->GetArenaForAllocation(); + auto* arena = GetArena(); + ABSL_DCHECK_EQ(arena, other->GetArena()); _internal_metadata_.InternalSwap(&other->_internal_metadata_); swap(_impl_._has_bits_[0], other->_impl_._has_bits_[0]); _impl_.layersbyname_.InternalSwap(&other->_impl_.layersbyname_); _impl_.netlistsbyname_.InternalSwap(&other->_impl_.netlistsbyname_); - ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( - &_impl_.name_, lhs_arena, - &other->_impl_.name_, rhs_arena - ); - ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( - &_impl_.path_, lhs_arena, - &other->_impl_.path_, rhs_arena - ); - ::PROTOBUF_NAMESPACE_ID::internal::memswap< + ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.name_, &other->_impl_.name_, arena); + ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.path_, &other->_impl_.path_, arena); + ::google::protobuf::internal::memswap< PROTOBUF_FIELD_OFFSET(StepDirectory, _impl_.stephdrfile_) + sizeof(StepDirectory::_impl_.stephdrfile_) - PROTOBUF_FIELD_OFFSET(StepDirectory, _impl_.edadatafile_)>( @@ -806,30 +996,20 @@ void StepDirectory::InternalSwap(StepDirectory* other) { reinterpret_cast(&other->_impl_.edadatafile_)); } -::PROTOBUF_NAMESPACE_ID::Metadata StepDirectory::GetMetadata() const { - return ::_pbi::AssignDescriptors( - &descriptor_table_stepdirectory_2eproto_getter, &descriptor_table_stepdirectory_2eproto_once, - file_level_metadata_stepdirectory_2eproto[2]); +::google::protobuf::Metadata StepDirectory::GetMetadata() const { + return ::google::protobuf::Message::GetMetadataImpl(GetClassData()->full()); } - // @@protoc_insertion_point(namespace_scope) } // namespace Protobuf } // namespace Lib } // namespace Odb -PROTOBUF_NAMESPACE_OPEN -template<> PROTOBUF_NOINLINE ::Odb::Lib::Protobuf::StepDirectory_LayersByNameEntry_DoNotUse* -Arena::CreateMaybeMessage< ::Odb::Lib::Protobuf::StepDirectory_LayersByNameEntry_DoNotUse >(Arena* arena) { - return Arena::CreateMessageInternal< ::Odb::Lib::Protobuf::StepDirectory_LayersByNameEntry_DoNotUse >(arena); -} -template<> PROTOBUF_NOINLINE ::Odb::Lib::Protobuf::StepDirectory_NetlistsByNameEntry_DoNotUse* -Arena::CreateMaybeMessage< ::Odb::Lib::Protobuf::StepDirectory_NetlistsByNameEntry_DoNotUse >(Arena* arena) { - return Arena::CreateMessageInternal< ::Odb::Lib::Protobuf::StepDirectory_NetlistsByNameEntry_DoNotUse >(arena); -} -template<> PROTOBUF_NOINLINE ::Odb::Lib::Protobuf::StepDirectory* -Arena::CreateMaybeMessage< ::Odb::Lib::Protobuf::StepDirectory >(Arena* arena) { - return Arena::CreateMessageInternal< ::Odb::Lib::Protobuf::StepDirectory >(arena); -} -PROTOBUF_NAMESPACE_CLOSE - +namespace google { +namespace protobuf { +} // namespace protobuf +} // namespace google // @@protoc_insertion_point(global_scope) -#include +PROTOBUF_ATTRIBUTE_INIT_PRIORITY2 static ::std::false_type + _static_init2_ PROTOBUF_UNUSED = + (::_pbi::AddDescriptors(&descriptor_table_stepdirectory_2eproto), + ::std::false_type{}); +#include "google/protobuf/port_undef.inc" diff --git a/OdbDesignLib/ProtoBuf/stepdirectory.pb.h b/OdbDesignLib/ProtoBuf/stepdirectory.pb.h index d3dadfe4..5d88b5be 100644 --- a/OdbDesignLib/ProtoBuf/stepdirectory.pb.h +++ b/OdbDesignLib/ProtoBuf/stepdirectory.pb.h @@ -1,38 +1,37 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE // source: stepdirectory.proto +// Protobuf C++ Version: 5.29.2 -#ifndef GOOGLE_PROTOBUF_INCLUDED_stepdirectory_2eproto -#define GOOGLE_PROTOBUF_INCLUDED_stepdirectory_2eproto +#ifndef stepdirectory_2eproto_2epb_2eh +#define stepdirectory_2eproto_2epb_2eh #include #include +#include +#include -#include -#if PROTOBUF_VERSION < 3021000 -#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. +#include "google/protobuf/runtime_version.h" +#if PROTOBUF_VERSION != 5029002 +#error "Protobuf C++ gencode is built with an incompatible version of" +#error "Protobuf C++ headers/runtime. See" +#error "https://protobuf.dev/support/cross-version-runtime-guarantee/#cpp" #endif -#if 3021012 < 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 -#include -#include -#include -#include -#include -#include -#include -#include // IWYU pragma: export -#include // IWYU pragma: export -#include // IWYU pragma: export -#include -#include -#include +#include "google/protobuf/io/coded_stream.h" +#include "google/protobuf/arena.h" +#include "google/protobuf/arenastring.h" +#include "google/protobuf/generated_message_tctable_decl.h" +#include "google/protobuf/generated_message_util.h" +#include "google/protobuf/metadata_lite.h" +#include "google/protobuf/generated_message_reflection.h" +#include "google/protobuf/message.h" +#include "google/protobuf/message_lite.h" +#include "google/protobuf/repeated_field.h" // IWYU pragma: export +#include "google/protobuf/extension_set.h" // IWYU pragma: export +#include "google/protobuf/map.h" // IWYU pragma: export +#include "google/protobuf/map_entry.h" +#include "google/protobuf/map_field_inl.h" +#include "google/protobuf/unknown_field_set.h" #include "edadatafile.pb.h" #include "netlistfile.pb.h" #include "layerdirectory.pb.h" @@ -40,19 +39,27 @@ #include "featuresfile.pb.h" #include "stephdrfile.pb.h" // @@protoc_insertion_point(includes) -#include + +// Must be included last. +#include "google/protobuf/port_def.inc" + #define PROTOBUF_INTERNAL_EXPORT_stepdirectory_2eproto ODBDESIGN_EXPORT -PROTOBUF_NAMESPACE_OPEN + +namespace google { +namespace protobuf { namespace internal { -class AnyMetadata; +template +::absl::string_view GetAnyMessageName(); } // namespace internal -PROTOBUF_NAMESPACE_CLOSE +} // namespace protobuf +} // namespace google // Internal implementation detail -- do not use these members. struct ODBDESIGN_EXPORT TableStruct_stepdirectory_2eproto { - static const uint32_t offsets[]; + static const ::uint32_t offsets[]; }; -ODBDESIGN_EXPORT extern const ::PROTOBUF_NAMESPACE_ID::internal::DescriptorTable descriptor_table_stepdirectory_2eproto; +ODBDESIGN_EXPORT extern const ::google::protobuf::internal::DescriptorTable + descriptor_table_stepdirectory_2eproto; namespace Odb { namespace Lib { namespace Protobuf { @@ -68,93 +75,125 @@ ODBDESIGN_EXPORT extern StepDirectory_NetlistsByNameEntry_DoNotUseDefaultTypeInt } // namespace Protobuf } // namespace Lib } // namespace Odb -PROTOBUF_NAMESPACE_OPEN -template<> ODBDESIGN_EXPORT ::Odb::Lib::Protobuf::StepDirectory* Arena::CreateMaybeMessage<::Odb::Lib::Protobuf::StepDirectory>(Arena*); -template<> ODBDESIGN_EXPORT ::Odb::Lib::Protobuf::StepDirectory_LayersByNameEntry_DoNotUse* Arena::CreateMaybeMessage<::Odb::Lib::Protobuf::StepDirectory_LayersByNameEntry_DoNotUse>(Arena*); -template<> ODBDESIGN_EXPORT ::Odb::Lib::Protobuf::StepDirectory_NetlistsByNameEntry_DoNotUse* Arena::CreateMaybeMessage<::Odb::Lib::Protobuf::StepDirectory_NetlistsByNameEntry_DoNotUse>(Arena*); -PROTOBUF_NAMESPACE_CLOSE +namespace google { +namespace protobuf { +} // namespace protobuf +} // namespace google + namespace Odb { namespace Lib { namespace Protobuf { // =================================================================== -class StepDirectory_LayersByNameEntry_DoNotUse : public ::PROTOBUF_NAMESPACE_ID::internal::MapEntry { -public: - typedef ::PROTOBUF_NAMESPACE_ID::internal::MapEntry SuperType; - StepDirectory_LayersByNameEntry_DoNotUse(); - explicit PROTOBUF_CONSTEXPR StepDirectory_LayersByNameEntry_DoNotUse( - ::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); - explicit StepDirectory_LayersByNameEntry_DoNotUse(::PROTOBUF_NAMESPACE_ID::Arena* arena); - void MergeFrom(const StepDirectory_LayersByNameEntry_DoNotUse& other); - static const StepDirectory_LayersByNameEntry_DoNotUse* internal_default_instance() { return reinterpret_cast(&_StepDirectory_LayersByNameEntry_DoNotUse_default_instance_); } - static bool ValidateKey(std::string* s) { - return ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String(s->data(), static_cast(s->size()), ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::PARSE, "Odb.Lib.Protobuf.StepDirectory.LayersByNameEntry.key"); - } - static bool ValidateValue(void*) { return true; } - using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; - ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; - friend struct ::TableStruct_stepdirectory_2eproto; -}; // ------------------------------------------------------------------- -class StepDirectory_NetlistsByNameEntry_DoNotUse : public ::PROTOBUF_NAMESPACE_ID::internal::MapEntry { -public: - typedef ::PROTOBUF_NAMESPACE_ID::internal::MapEntry SuperType; +class StepDirectory_NetlistsByNameEntry_DoNotUse final + : public ::google::protobuf::internal::MapEntry< + std::string, ::google::protobuf::Message, + ::google::protobuf::internal::WireFormatLite::TYPE_STRING, + ::google::protobuf::internal::WireFormatLite::TYPE_MESSAGE> { + public: + using SuperType = ::google::protobuf::internal::MapEntry< + std::string, ::google::protobuf::Message, + ::google::protobuf::internal::WireFormatLite::TYPE_STRING, + ::google::protobuf::internal::WireFormatLite::TYPE_MESSAGE>; StepDirectory_NetlistsByNameEntry_DoNotUse(); + template explicit PROTOBUF_CONSTEXPR StepDirectory_NetlistsByNameEntry_DoNotUse( - ::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); - explicit StepDirectory_NetlistsByNameEntry_DoNotUse(::PROTOBUF_NAMESPACE_ID::Arena* arena); - void MergeFrom(const StepDirectory_NetlistsByNameEntry_DoNotUse& other); - static const StepDirectory_NetlistsByNameEntry_DoNotUse* internal_default_instance() { return reinterpret_cast(&_StepDirectory_NetlistsByNameEntry_DoNotUse_default_instance_); } - static bool ValidateKey(std::string* s) { - return ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String(s->data(), static_cast(s->size()), ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::PARSE, "Odb.Lib.Protobuf.StepDirectory.NetlistsByNameEntry.key"); - } - static bool ValidateValue(void*) { return true; } - using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; - ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; + ::google::protobuf::internal::ConstantInitialized); + explicit StepDirectory_NetlistsByNameEntry_DoNotUse(::google::protobuf::Arena* arena); + static const StepDirectory_NetlistsByNameEntry_DoNotUse* internal_default_instance() { + return reinterpret_cast( + &_StepDirectory_NetlistsByNameEntry_DoNotUse_default_instance_); + } + + + private: + friend class ::google::protobuf::MessageLite; friend struct ::TableStruct_stepdirectory_2eproto; + + friend class ::google::protobuf::internal::TcParser; + static const ::google::protobuf::internal::TcParseTable< + 1, 2, 1, + 62, 2> + _table_; + + const ::google::protobuf::internal::ClassData* GetClassData() const PROTOBUF_FINAL; + static void* PlacementNew_(const void*, void* mem, + ::google::protobuf::Arena* arena); + static constexpr auto InternalNewImpl_(); + static const ::google::protobuf::internal::ClassDataFull _class_data_; }; +// ------------------------------------------------------------------- + +class StepDirectory_LayersByNameEntry_DoNotUse final + : public ::google::protobuf::internal::MapEntry< + std::string, ::google::protobuf::Message, + ::google::protobuf::internal::WireFormatLite::TYPE_STRING, + ::google::protobuf::internal::WireFormatLite::TYPE_MESSAGE> { + public: + using SuperType = ::google::protobuf::internal::MapEntry< + std::string, ::google::protobuf::Message, + ::google::protobuf::internal::WireFormatLite::TYPE_STRING, + ::google::protobuf::internal::WireFormatLite::TYPE_MESSAGE>; + StepDirectory_LayersByNameEntry_DoNotUse(); + template + explicit PROTOBUF_CONSTEXPR StepDirectory_LayersByNameEntry_DoNotUse( + ::google::protobuf::internal::ConstantInitialized); + explicit StepDirectory_LayersByNameEntry_DoNotUse(::google::protobuf::Arena* arena); + static const StepDirectory_LayersByNameEntry_DoNotUse* internal_default_instance() { + return reinterpret_cast( + &_StepDirectory_LayersByNameEntry_DoNotUse_default_instance_); + } + + private: + friend class ::google::protobuf::MessageLite; + friend struct ::TableStruct_stepdirectory_2eproto; + + friend class ::google::protobuf::internal::TcParser; + static const ::google::protobuf::internal::TcParseTable< + 1, 2, 1, + 60, 2> + _table_; + + const ::google::protobuf::internal::ClassData* GetClassData() const PROTOBUF_FINAL; + static void* PlacementNew_(const void*, void* mem, + ::google::protobuf::Arena* arena); + static constexpr auto InternalNewImpl_(); + static const ::google::protobuf::internal::ClassDataFull _class_data_; +}; // ------------------------------------------------------------------- -class ODBDESIGN_EXPORT StepDirectory final : - public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:Odb.Lib.Protobuf.StepDirectory) */ { +class ODBDESIGN_EXPORT StepDirectory final : public ::google::protobuf::Message +/* @@protoc_insertion_point(class_definition:Odb.Lib.Protobuf.StepDirectory) */ { public: inline StepDirectory() : StepDirectory(nullptr) {} - ~StepDirectory() override; - explicit PROTOBUF_CONSTEXPR StepDirectory(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); + ~StepDirectory() PROTOBUF_FINAL; - StepDirectory(const StepDirectory& from); - StepDirectory(StepDirectory&& from) noexcept - : StepDirectory() { - *this = ::std::move(from); +#if defined(PROTOBUF_CUSTOM_VTABLE) + void operator delete(StepDirectory* msg, std::destroying_delete_t) { + SharedDtor(*msg); + ::google::protobuf::internal::SizedDelete(msg, sizeof(StepDirectory)); } +#endif + + template + explicit PROTOBUF_CONSTEXPR StepDirectory( + ::google::protobuf::internal::ConstantInitialized); + inline StepDirectory(const StepDirectory& from) : StepDirectory(nullptr, from) {} + inline StepDirectory(StepDirectory&& from) noexcept + : StepDirectory(nullptr, std::move(from)) {} inline StepDirectory& operator=(const StepDirectory& from) { CopyFrom(from); return *this; } inline StepDirectory& operator=(StepDirectory&& from) noexcept { if (this == &from) return *this; - if (GetOwningArena() == from.GetOwningArena() - #ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetOwningArena() != nullptr - #endif // !PROTOBUF_FORCE_COPY_IN_MOVE - ) { + if (::google::protobuf::internal::CanMoveWithInternalSwap(GetArena(), from.GetArena())) { InternalSwap(&from); } else { CopyFrom(from); @@ -162,13 +201,22 @@ class ODBDESIGN_EXPORT StepDirectory final : return *this; } - static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { + inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const + ABSL_ATTRIBUTE_LIFETIME_BOUND { + return _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance); + } + inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() + ABSL_ATTRIBUTE_LIFETIME_BOUND { + return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); + } + + static const ::google::protobuf::Descriptor* descriptor() { return GetDescriptor(); } - static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { + static const ::google::protobuf::Descriptor* GetDescriptor() { return default_instance().GetMetadata().descriptor; } - static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { + static const ::google::protobuf::Reflection* GetReflection() { return default_instance().GetMetadata().reflection; } static const StepDirectory& default_instance() { @@ -176,84 +224,94 @@ class ODBDESIGN_EXPORT StepDirectory final : } static inline const StepDirectory* internal_default_instance() { return reinterpret_cast( - &_StepDirectory_default_instance_); - } - static constexpr int kIndexInFileMessages = - 2; - - friend void swap(StepDirectory& a, StepDirectory& b) { - a.Swap(&b); + &_StepDirectory_default_instance_); } + static constexpr int kIndexInFileMessages = 2; + friend void swap(StepDirectory& a, StepDirectory& b) { a.Swap(&b); } inline void Swap(StepDirectory* other) { if (other == this) return; - #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetOwningArena() != nullptr && - GetOwningArena() == other->GetOwningArena()) { - #else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetOwningArena() == other->GetOwningArena()) { - #endif // !PROTOBUF_FORCE_COPY_IN_SWAP + if (::google::protobuf::internal::CanUseInternalSwap(GetArena(), other->GetArena())) { InternalSwap(other); } else { - ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); + ::google::protobuf::internal::GenericSwap(this, other); } } void UnsafeArenaSwap(StepDirectory* other) { if (other == this) return; - GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); + ABSL_DCHECK(GetArena() == other->GetArena()); InternalSwap(other); } // implements Message ---------------------------------------------- - StepDirectory* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); + StepDirectory* New(::google::protobuf::Arena* arena = nullptr) const { + return ::google::protobuf::Message::DefaultConstruct(arena); } - using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; + using ::google::protobuf::Message::CopyFrom; void CopyFrom(const StepDirectory& from); - using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; - void MergeFrom( const StepDirectory& from) { - StepDirectory::MergeImpl(*this, from); - } - private: - static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg); - public: - PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; - bool IsInitialized() const final; - - size_t ByteSizeLong() const final; - const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final; - uint8_t* _InternalSerialize( - uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const final { return _impl_._cached_size_.Get(); } + using ::google::protobuf::Message::MergeFrom; + void MergeFrom(const StepDirectory& from) { StepDirectory::MergeImpl(*this, from); } private: - void SharedCtor(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned); - void SharedDtor(); - void SetCachedSize(int size) const final; - void InternalSwap(StepDirectory* other); + static void MergeImpl( + ::google::protobuf::MessageLite& to_msg, + const ::google::protobuf::MessageLite& from_msg); - private: - friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; - static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { - return "Odb.Lib.Protobuf.StepDirectory"; + public: + bool IsInitialized() const { + return true; } - protected: - explicit StepDirectory(::PROTOBUF_NAMESPACE_ID::Arena* arena, - bool is_message_owned = false); + ABSL_ATTRIBUTE_REINITIALIZES void Clear() PROTOBUF_FINAL; + #if defined(PROTOBUF_CUSTOM_VTABLE) private: - static void ArenaDtor(void* object); + static ::size_t ByteSizeLong(const ::google::protobuf::MessageLite& msg); + static ::uint8_t* _InternalSerialize( + const MessageLite& msg, ::uint8_t* target, + ::google::protobuf::io::EpsCopyOutputStream* stream); + public: + ::size_t ByteSizeLong() const { return ByteSizeLong(*this); } + ::uint8_t* _InternalSerialize( + ::uint8_t* target, + ::google::protobuf::io::EpsCopyOutputStream* stream) const { + return _InternalSerialize(*this, target, stream); + } + #else // PROTOBUF_CUSTOM_VTABLE + ::size_t ByteSizeLong() const final; + ::uint8_t* _InternalSerialize( + ::uint8_t* target, + ::google::protobuf::io::EpsCopyOutputStream* stream) const final; + #endif // PROTOBUF_CUSTOM_VTABLE + int GetCachedSize() const { return _impl_._cached_size_.Get(); } - static const ClassData _class_data_; - const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final; + private: + void SharedCtor(::google::protobuf::Arena* arena); + static void SharedDtor(MessageLite& self); + void InternalSwap(StepDirectory* other); + private: + template + friend ::absl::string_view( + ::google::protobuf::internal::GetAnyMessageName)(); + static ::absl::string_view FullMessageName() { return "Odb.Lib.Protobuf.StepDirectory"; } - ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; + protected: + explicit StepDirectory(::google::protobuf::Arena* arena); + StepDirectory(::google::protobuf::Arena* arena, const StepDirectory& from); + StepDirectory(::google::protobuf::Arena* arena, StepDirectory&& from) noexcept + : StepDirectory(arena) { + *this = ::std::move(from); + } + const ::google::protobuf::internal::ClassData* GetClassData() const PROTOBUF_FINAL; + static void* PlacementNew_(const void*, void* mem, + ::google::protobuf::Arena* arena); + static constexpr auto InternalNewImpl_(); + static const ::google::protobuf::internal::ClassDataFull _class_data_; + public: + ::google::protobuf::Metadata GetMetadata() const; // nested types ---------------------------------------------------- - // accessors ------------------------------------------------------- - enum : int { kLayersByNameFieldNumber = 3, kNetlistsByNameFieldNumber = 4, @@ -268,402 +326,399 @@ class ODBDESIGN_EXPORT StepDirectory final : int layersbyname_size() const; private: int _internal_layersbyname_size() const; + public: - void clear_layersbyname(); + void clear_layersbyname() ; + const ::google::protobuf::Map& layersbyname() const; + ::google::protobuf::Map* mutable_layersbyname(); + private: - const ::PROTOBUF_NAMESPACE_ID::Map< std::string, ::Odb::Lib::Protobuf::LayerDirectory >& - _internal_layersbyname() const; - ::PROTOBUF_NAMESPACE_ID::Map< std::string, ::Odb::Lib::Protobuf::LayerDirectory >* - _internal_mutable_layersbyname(); - public: - const ::PROTOBUF_NAMESPACE_ID::Map< std::string, ::Odb::Lib::Protobuf::LayerDirectory >& - layersbyname() const; - ::PROTOBUF_NAMESPACE_ID::Map< std::string, ::Odb::Lib::Protobuf::LayerDirectory >* - mutable_layersbyname(); + const ::google::protobuf::Map& _internal_layersbyname() const; + ::google::protobuf::Map* _internal_mutable_layersbyname(); + public: // map netlistsByName = 4; int netlistsbyname_size() const; private: int _internal_netlistsbyname_size() const; + public: - void clear_netlistsbyname(); + void clear_netlistsbyname() ; + const ::google::protobuf::Map& netlistsbyname() const; + ::google::protobuf::Map* mutable_netlistsbyname(); + private: - const ::PROTOBUF_NAMESPACE_ID::Map< std::string, ::Odb::Lib::Protobuf::NetlistFile >& - _internal_netlistsbyname() const; - ::PROTOBUF_NAMESPACE_ID::Map< std::string, ::Odb::Lib::Protobuf::NetlistFile >* - _internal_mutable_netlistsbyname(); - public: - const ::PROTOBUF_NAMESPACE_ID::Map< std::string, ::Odb::Lib::Protobuf::NetlistFile >& - netlistsbyname() const; - ::PROTOBUF_NAMESPACE_ID::Map< std::string, ::Odb::Lib::Protobuf::NetlistFile >* - mutable_netlistsbyname(); + const ::google::protobuf::Map& _internal_netlistsbyname() const; + ::google::protobuf::Map* _internal_mutable_netlistsbyname(); + public: // optional string name = 1; bool has_name() const; - private: - bool _internal_has_name() const; - public: - void clear_name(); + void clear_name() ; const std::string& name() const; - template - void set_name(ArgT0&& arg0, ArgT... args); + template + void set_name(Arg_&& arg, Args_... args); std::string* mutable_name(); PROTOBUF_NODISCARD std::string* release_name(); - void set_allocated_name(std::string* name); + void set_allocated_name(std::string* value); + private: const std::string& _internal_name() const; - inline PROTOBUF_ALWAYS_INLINE void _internal_set_name(const std::string& value); + inline PROTOBUF_ALWAYS_INLINE void _internal_set_name( + const std::string& value); std::string* _internal_mutable_name(); - public: + public: // optional string path = 2; bool has_path() const; - private: - bool _internal_has_path() const; - public: - void clear_path(); + void clear_path() ; const std::string& path() const; - template - void set_path(ArgT0&& arg0, ArgT... args); + template + void set_path(Arg_&& arg, Args_... args); std::string* mutable_path(); PROTOBUF_NODISCARD std::string* release_path(); - void set_allocated_path(std::string* path); + void set_allocated_path(std::string* value); + private: const std::string& _internal_path() const; - inline PROTOBUF_ALWAYS_INLINE void _internal_set_path(const std::string& value); + inline PROTOBUF_ALWAYS_INLINE void _internal_set_path( + const std::string& value); std::string* _internal_mutable_path(); - public: + public: // optional .Odb.Lib.Protobuf.EdaDataFile edadatafile = 5; bool has_edadatafile() const; - private: - bool _internal_has_edadatafile() const; - public: - void clear_edadatafile(); + void clear_edadatafile() ; const ::Odb::Lib::Protobuf::EdaDataFile& edadatafile() const; PROTOBUF_NODISCARD ::Odb::Lib::Protobuf::EdaDataFile* release_edadatafile(); ::Odb::Lib::Protobuf::EdaDataFile* mutable_edadatafile(); - void set_allocated_edadatafile(::Odb::Lib::Protobuf::EdaDataFile* edadatafile); + void set_allocated_edadatafile(::Odb::Lib::Protobuf::EdaDataFile* value); + void unsafe_arena_set_allocated_edadatafile(::Odb::Lib::Protobuf::EdaDataFile* value); + ::Odb::Lib::Protobuf::EdaDataFile* unsafe_arena_release_edadatafile(); + private: const ::Odb::Lib::Protobuf::EdaDataFile& _internal_edadatafile() const; ::Odb::Lib::Protobuf::EdaDataFile* _internal_mutable_edadatafile(); - public: - void unsafe_arena_set_allocated_edadatafile( - ::Odb::Lib::Protobuf::EdaDataFile* edadatafile); - ::Odb::Lib::Protobuf::EdaDataFile* unsafe_arena_release_edadatafile(); + public: // optional .Odb.Lib.Protobuf.AttrListFile attrlistfile = 6; bool has_attrlistfile() const; - private: - bool _internal_has_attrlistfile() const; - public: - void clear_attrlistfile(); + void clear_attrlistfile() ; const ::Odb::Lib::Protobuf::AttrListFile& attrlistfile() const; PROTOBUF_NODISCARD ::Odb::Lib::Protobuf::AttrListFile* release_attrlistfile(); ::Odb::Lib::Protobuf::AttrListFile* mutable_attrlistfile(); - void set_allocated_attrlistfile(::Odb::Lib::Protobuf::AttrListFile* attrlistfile); + void set_allocated_attrlistfile(::Odb::Lib::Protobuf::AttrListFile* value); + void unsafe_arena_set_allocated_attrlistfile(::Odb::Lib::Protobuf::AttrListFile* value); + ::Odb::Lib::Protobuf::AttrListFile* unsafe_arena_release_attrlistfile(); + private: const ::Odb::Lib::Protobuf::AttrListFile& _internal_attrlistfile() const; ::Odb::Lib::Protobuf::AttrListFile* _internal_mutable_attrlistfile(); - public: - void unsafe_arena_set_allocated_attrlistfile( - ::Odb::Lib::Protobuf::AttrListFile* attrlistfile); - ::Odb::Lib::Protobuf::AttrListFile* unsafe_arena_release_attrlistfile(); + public: // optional .Odb.Lib.Protobuf.FeaturesFile profilefile = 7; bool has_profilefile() const; - private: - bool _internal_has_profilefile() const; - public: - void clear_profilefile(); + void clear_profilefile() ; const ::Odb::Lib::Protobuf::FeaturesFile& profilefile() const; PROTOBUF_NODISCARD ::Odb::Lib::Protobuf::FeaturesFile* release_profilefile(); ::Odb::Lib::Protobuf::FeaturesFile* mutable_profilefile(); - void set_allocated_profilefile(::Odb::Lib::Protobuf::FeaturesFile* profilefile); + void set_allocated_profilefile(::Odb::Lib::Protobuf::FeaturesFile* value); + void unsafe_arena_set_allocated_profilefile(::Odb::Lib::Protobuf::FeaturesFile* value); + ::Odb::Lib::Protobuf::FeaturesFile* unsafe_arena_release_profilefile(); + private: const ::Odb::Lib::Protobuf::FeaturesFile& _internal_profilefile() const; ::Odb::Lib::Protobuf::FeaturesFile* _internal_mutable_profilefile(); - public: - void unsafe_arena_set_allocated_profilefile( - ::Odb::Lib::Protobuf::FeaturesFile* profilefile); - ::Odb::Lib::Protobuf::FeaturesFile* unsafe_arena_release_profilefile(); + public: // optional .Odb.Lib.Protobuf.StepHdrFile stephdrfile = 8; bool has_stephdrfile() const; - private: - bool _internal_has_stephdrfile() const; - public: - void clear_stephdrfile(); + void clear_stephdrfile() ; const ::Odb::Lib::Protobuf::StepHdrFile& stephdrfile() const; PROTOBUF_NODISCARD ::Odb::Lib::Protobuf::StepHdrFile* release_stephdrfile(); ::Odb::Lib::Protobuf::StepHdrFile* mutable_stephdrfile(); - void set_allocated_stephdrfile(::Odb::Lib::Protobuf::StepHdrFile* stephdrfile); + void set_allocated_stephdrfile(::Odb::Lib::Protobuf::StepHdrFile* value); + void unsafe_arena_set_allocated_stephdrfile(::Odb::Lib::Protobuf::StepHdrFile* value); + ::Odb::Lib::Protobuf::StepHdrFile* unsafe_arena_release_stephdrfile(); + private: const ::Odb::Lib::Protobuf::StepHdrFile& _internal_stephdrfile() const; ::Odb::Lib::Protobuf::StepHdrFile* _internal_mutable_stephdrfile(); - public: - void unsafe_arena_set_allocated_stephdrfile( - ::Odb::Lib::Protobuf::StepHdrFile* stephdrfile); - ::Odb::Lib::Protobuf::StepHdrFile* unsafe_arena_release_stephdrfile(); + public: // @@protoc_insertion_point(class_scope:Odb.Lib.Protobuf.StepDirectory) private: class _Internal; + friend class ::google::protobuf::internal::TcParser; + static const ::google::protobuf::internal::TcParseTable< + 3, 8, 8, + 81, 2> + _table_; - template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; - typedef void InternalArenaConstructable_; - typedef void DestructorSkippable_; + friend class ::google::protobuf::MessageLite; + friend class ::google::protobuf::Arena; + template + friend class ::google::protobuf::Arena::InternalHelper; + using InternalArenaConstructable_ = void; + using DestructorSkippable_ = void; struct Impl_ { - ::PROTOBUF_NAMESPACE_ID::internal::HasBits<1> _has_bits_; - mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; - ::PROTOBUF_NAMESPACE_ID::internal::MapField< - StepDirectory_LayersByNameEntry_DoNotUse, - std::string, ::Odb::Lib::Protobuf::LayerDirectory, - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::TYPE_STRING, - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::TYPE_MESSAGE> layersbyname_; - ::PROTOBUF_NAMESPACE_ID::internal::MapField< - StepDirectory_NetlistsByNameEntry_DoNotUse, - std::string, ::Odb::Lib::Protobuf::NetlistFile, - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::TYPE_STRING, - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::TYPE_MESSAGE> netlistsbyname_; - ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr name_; - ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr path_; + inline explicit constexpr Impl_( + ::google::protobuf::internal::ConstantInitialized) noexcept; + inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* arena); + inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* arena, const Impl_& from, + const StepDirectory& from_msg); + ::google::protobuf::internal::HasBits<1> _has_bits_; + ::google::protobuf::internal::CachedSize _cached_size_; + ::google::protobuf::internal::MapField + layersbyname_; + ::google::protobuf::internal::MapField + netlistsbyname_; + ::google::protobuf::internal::ArenaStringPtr name_; + ::google::protobuf::internal::ArenaStringPtr path_; ::Odb::Lib::Protobuf::EdaDataFile* edadatafile_; ::Odb::Lib::Protobuf::AttrListFile* attrlistfile_; ::Odb::Lib::Protobuf::FeaturesFile* profilefile_; ::Odb::Lib::Protobuf::StepHdrFile* stephdrfile_; + PROTOBUF_TSAN_DECLARE_MEMBER }; union { Impl_ _impl_; }; friend struct ::TableStruct_stepdirectory_2eproto; }; + // =================================================================== + + // =================================================================== + #ifdef __GNUC__ - #pragma GCC diagnostic push - #pragma GCC diagnostic ignored "-Wstrict-aliasing" +#pragma GCC diagnostic push +#pragma GCC diagnostic ignored "-Wstrict-aliasing" #endif // __GNUC__ // ------------------------------------------------------------------- // ------------------------------------------------------------------- +// ------------------------------------------------------------------- + // StepDirectory // optional string name = 1; -inline bool StepDirectory::_internal_has_name() const { +inline bool StepDirectory::has_name() const { bool value = (_impl_._has_bits_[0] & 0x00000001u) != 0; return value; } -inline bool StepDirectory::has_name() const { - return _internal_has_name(); -} inline void StepDirectory::clear_name() { + ::google::protobuf::internal::TSanWrite(&_impl_); _impl_.name_.ClearToEmpty(); _impl_._has_bits_[0] &= ~0x00000001u; } -inline const std::string& StepDirectory::name() const { +inline const std::string& StepDirectory::name() const + ABSL_ATTRIBUTE_LIFETIME_BOUND { // @@protoc_insertion_point(field_get:Odb.Lib.Protobuf.StepDirectory.name) return _internal_name(); } -template -inline PROTOBUF_ALWAYS_INLINE -void StepDirectory::set_name(ArgT0&& arg0, ArgT... args) { - _impl_._has_bits_[0] |= 0x00000001u; - _impl_.name_.Set(static_cast(arg0), args..., GetArenaForAllocation()); +template +inline PROTOBUF_ALWAYS_INLINE void StepDirectory::set_name(Arg_&& arg, + Args_... args) { + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_._has_bits_[0] |= 0x00000001u; + _impl_.name_.Set(static_cast(arg), args..., GetArena()); // @@protoc_insertion_point(field_set:Odb.Lib.Protobuf.StepDirectory.name) } -inline std::string* StepDirectory::mutable_name() { +inline std::string* StepDirectory::mutable_name() ABSL_ATTRIBUTE_LIFETIME_BOUND { std::string* _s = _internal_mutable_name(); // @@protoc_insertion_point(field_mutable:Odb.Lib.Protobuf.StepDirectory.name) return _s; } inline const std::string& StepDirectory::_internal_name() const { + ::google::protobuf::internal::TSanRead(&_impl_); return _impl_.name_.Get(); } inline void StepDirectory::_internal_set_name(const std::string& value) { + ::google::protobuf::internal::TSanWrite(&_impl_); _impl_._has_bits_[0] |= 0x00000001u; - _impl_.name_.Set(value, GetArenaForAllocation()); + _impl_.name_.Set(value, GetArena()); } inline std::string* StepDirectory::_internal_mutable_name() { + ::google::protobuf::internal::TSanWrite(&_impl_); _impl_._has_bits_[0] |= 0x00000001u; - return _impl_.name_.Mutable(GetArenaForAllocation()); + return _impl_.name_.Mutable( GetArena()); } inline std::string* StepDirectory::release_name() { + ::google::protobuf::internal::TSanWrite(&_impl_); // @@protoc_insertion_point(field_release:Odb.Lib.Protobuf.StepDirectory.name) - if (!_internal_has_name()) { + if ((_impl_._has_bits_[0] & 0x00000001u) == 0) { return nullptr; } _impl_._has_bits_[0] &= ~0x00000001u; - auto* p = _impl_.name_.Release(); -#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (_impl_.name_.IsDefault()) { - _impl_.name_.Set("", GetArenaForAllocation()); + auto* released = _impl_.name_.Release(); + if (::google::protobuf::internal::DebugHardenForceCopyDefaultString()) { + _impl_.name_.Set("", GetArena()); } -#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING - return p; + return released; } -inline void StepDirectory::set_allocated_name(std::string* name) { - if (name != nullptr) { +inline void StepDirectory::set_allocated_name(std::string* value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + if (value != nullptr) { _impl_._has_bits_[0] |= 0x00000001u; } else { _impl_._has_bits_[0] &= ~0x00000001u; } - _impl_.name_.SetAllocated(name, GetArenaForAllocation()); -#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (_impl_.name_.IsDefault()) { - _impl_.name_.Set("", GetArenaForAllocation()); + _impl_.name_.SetAllocated(value, GetArena()); + if (::google::protobuf::internal::DebugHardenForceCopyDefaultString() && _impl_.name_.IsDefault()) { + _impl_.name_.Set("", GetArena()); } -#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING // @@protoc_insertion_point(field_set_allocated:Odb.Lib.Protobuf.StepDirectory.name) } // optional string path = 2; -inline bool StepDirectory::_internal_has_path() const { +inline bool StepDirectory::has_path() const { bool value = (_impl_._has_bits_[0] & 0x00000002u) != 0; return value; } -inline bool StepDirectory::has_path() const { - return _internal_has_path(); -} inline void StepDirectory::clear_path() { + ::google::protobuf::internal::TSanWrite(&_impl_); _impl_.path_.ClearToEmpty(); _impl_._has_bits_[0] &= ~0x00000002u; } -inline const std::string& StepDirectory::path() const { +inline const std::string& StepDirectory::path() const + ABSL_ATTRIBUTE_LIFETIME_BOUND { // @@protoc_insertion_point(field_get:Odb.Lib.Protobuf.StepDirectory.path) return _internal_path(); } -template -inline PROTOBUF_ALWAYS_INLINE -void StepDirectory::set_path(ArgT0&& arg0, ArgT... args) { - _impl_._has_bits_[0] |= 0x00000002u; - _impl_.path_.Set(static_cast(arg0), args..., GetArenaForAllocation()); +template +inline PROTOBUF_ALWAYS_INLINE void StepDirectory::set_path(Arg_&& arg, + Args_... args) { + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_._has_bits_[0] |= 0x00000002u; + _impl_.path_.Set(static_cast(arg), args..., GetArena()); // @@protoc_insertion_point(field_set:Odb.Lib.Protobuf.StepDirectory.path) } -inline std::string* StepDirectory::mutable_path() { +inline std::string* StepDirectory::mutable_path() ABSL_ATTRIBUTE_LIFETIME_BOUND { std::string* _s = _internal_mutable_path(); // @@protoc_insertion_point(field_mutable:Odb.Lib.Protobuf.StepDirectory.path) return _s; } inline const std::string& StepDirectory::_internal_path() const { + ::google::protobuf::internal::TSanRead(&_impl_); return _impl_.path_.Get(); } inline void StepDirectory::_internal_set_path(const std::string& value) { + ::google::protobuf::internal::TSanWrite(&_impl_); _impl_._has_bits_[0] |= 0x00000002u; - _impl_.path_.Set(value, GetArenaForAllocation()); + _impl_.path_.Set(value, GetArena()); } inline std::string* StepDirectory::_internal_mutable_path() { + ::google::protobuf::internal::TSanWrite(&_impl_); _impl_._has_bits_[0] |= 0x00000002u; - return _impl_.path_.Mutable(GetArenaForAllocation()); + return _impl_.path_.Mutable( GetArena()); } inline std::string* StepDirectory::release_path() { + ::google::protobuf::internal::TSanWrite(&_impl_); // @@protoc_insertion_point(field_release:Odb.Lib.Protobuf.StepDirectory.path) - if (!_internal_has_path()) { + if ((_impl_._has_bits_[0] & 0x00000002u) == 0) { return nullptr; } _impl_._has_bits_[0] &= ~0x00000002u; - auto* p = _impl_.path_.Release(); -#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (_impl_.path_.IsDefault()) { - _impl_.path_.Set("", GetArenaForAllocation()); + auto* released = _impl_.path_.Release(); + if (::google::protobuf::internal::DebugHardenForceCopyDefaultString()) { + _impl_.path_.Set("", GetArena()); } -#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING - return p; + return released; } -inline void StepDirectory::set_allocated_path(std::string* path) { - if (path != nullptr) { +inline void StepDirectory::set_allocated_path(std::string* value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + if (value != nullptr) { _impl_._has_bits_[0] |= 0x00000002u; } else { _impl_._has_bits_[0] &= ~0x00000002u; } - _impl_.path_.SetAllocated(path, GetArenaForAllocation()); -#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (_impl_.path_.IsDefault()) { - _impl_.path_.Set("", GetArenaForAllocation()); + _impl_.path_.SetAllocated(value, GetArena()); + if (::google::protobuf::internal::DebugHardenForceCopyDefaultString() && _impl_.path_.IsDefault()) { + _impl_.path_.Set("", GetArena()); } -#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING // @@protoc_insertion_point(field_set_allocated:Odb.Lib.Protobuf.StepDirectory.path) } // map layersByName = 3; inline int StepDirectory::_internal_layersbyname_size() const { - return _impl_.layersbyname_.size(); + return _internal_layersbyname().size(); } inline int StepDirectory::layersbyname_size() const { return _internal_layersbyname_size(); } -inline const ::PROTOBUF_NAMESPACE_ID::Map< std::string, ::Odb::Lib::Protobuf::LayerDirectory >& -StepDirectory::_internal_layersbyname() const { +inline const ::google::protobuf::Map& StepDirectory::_internal_layersbyname() const { + ::google::protobuf::internal::TSanRead(&_impl_); return _impl_.layersbyname_.GetMap(); } -inline const ::PROTOBUF_NAMESPACE_ID::Map< std::string, ::Odb::Lib::Protobuf::LayerDirectory >& -StepDirectory::layersbyname() const { +inline const ::google::protobuf::Map& StepDirectory::layersbyname() const ABSL_ATTRIBUTE_LIFETIME_BOUND { // @@protoc_insertion_point(field_map:Odb.Lib.Protobuf.StepDirectory.layersByName) return _internal_layersbyname(); } -inline ::PROTOBUF_NAMESPACE_ID::Map< std::string, ::Odb::Lib::Protobuf::LayerDirectory >* -StepDirectory::_internal_mutable_layersbyname() { +inline ::google::protobuf::Map* StepDirectory::_internal_mutable_layersbyname() { + ::google::protobuf::internal::TSanWrite(&_impl_); return _impl_.layersbyname_.MutableMap(); } -inline ::PROTOBUF_NAMESPACE_ID::Map< std::string, ::Odb::Lib::Protobuf::LayerDirectory >* -StepDirectory::mutable_layersbyname() { +inline ::google::protobuf::Map* StepDirectory::mutable_layersbyname() ABSL_ATTRIBUTE_LIFETIME_BOUND { // @@protoc_insertion_point(field_mutable_map:Odb.Lib.Protobuf.StepDirectory.layersByName) return _internal_mutable_layersbyname(); } // map netlistsByName = 4; inline int StepDirectory::_internal_netlistsbyname_size() const { - return _impl_.netlistsbyname_.size(); + return _internal_netlistsbyname().size(); } inline int StepDirectory::netlistsbyname_size() const { return _internal_netlistsbyname_size(); } -inline const ::PROTOBUF_NAMESPACE_ID::Map< std::string, ::Odb::Lib::Protobuf::NetlistFile >& -StepDirectory::_internal_netlistsbyname() const { +inline const ::google::protobuf::Map& StepDirectory::_internal_netlistsbyname() const { + ::google::protobuf::internal::TSanRead(&_impl_); return _impl_.netlistsbyname_.GetMap(); } -inline const ::PROTOBUF_NAMESPACE_ID::Map< std::string, ::Odb::Lib::Protobuf::NetlistFile >& -StepDirectory::netlistsbyname() const { +inline const ::google::protobuf::Map& StepDirectory::netlistsbyname() const ABSL_ATTRIBUTE_LIFETIME_BOUND { // @@protoc_insertion_point(field_map:Odb.Lib.Protobuf.StepDirectory.netlistsByName) return _internal_netlistsbyname(); } -inline ::PROTOBUF_NAMESPACE_ID::Map< std::string, ::Odb::Lib::Protobuf::NetlistFile >* -StepDirectory::_internal_mutable_netlistsbyname() { +inline ::google::protobuf::Map* StepDirectory::_internal_mutable_netlistsbyname() { + ::google::protobuf::internal::TSanWrite(&_impl_); return _impl_.netlistsbyname_.MutableMap(); } -inline ::PROTOBUF_NAMESPACE_ID::Map< std::string, ::Odb::Lib::Protobuf::NetlistFile >* -StepDirectory::mutable_netlistsbyname() { +inline ::google::protobuf::Map* StepDirectory::mutable_netlistsbyname() ABSL_ATTRIBUTE_LIFETIME_BOUND { // @@protoc_insertion_point(field_mutable_map:Odb.Lib.Protobuf.StepDirectory.netlistsByName) return _internal_mutable_netlistsbyname(); } // optional .Odb.Lib.Protobuf.EdaDataFile edadatafile = 5; -inline bool StepDirectory::_internal_has_edadatafile() const { +inline bool StepDirectory::has_edadatafile() const { bool value = (_impl_._has_bits_[0] & 0x00000004u) != 0; PROTOBUF_ASSUME(!value || _impl_.edadatafile_ != nullptr); return value; } -inline bool StepDirectory::has_edadatafile() const { - return _internal_has_edadatafile(); -} inline const ::Odb::Lib::Protobuf::EdaDataFile& StepDirectory::_internal_edadatafile() const { + ::google::protobuf::internal::TSanRead(&_impl_); const ::Odb::Lib::Protobuf::EdaDataFile* p = _impl_.edadatafile_; - return p != nullptr ? *p : reinterpret_cast( - ::Odb::Lib::Protobuf::_EdaDataFile_default_instance_); + return p != nullptr ? *p : reinterpret_cast(::Odb::Lib::Protobuf::_EdaDataFile_default_instance_); } -inline const ::Odb::Lib::Protobuf::EdaDataFile& StepDirectory::edadatafile() const { +inline const ::Odb::Lib::Protobuf::EdaDataFile& StepDirectory::edadatafile() const ABSL_ATTRIBUTE_LIFETIME_BOUND { // @@protoc_insertion_point(field_get:Odb.Lib.Protobuf.StepDirectory.edadatafile) return _internal_edadatafile(); } -inline void StepDirectory::unsafe_arena_set_allocated_edadatafile( - ::Odb::Lib::Protobuf::EdaDataFile* edadatafile) { - if (GetArenaForAllocation() == nullptr) { - delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(_impl_.edadatafile_); +inline void StepDirectory::unsafe_arena_set_allocated_edadatafile(::Odb::Lib::Protobuf::EdaDataFile* value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + if (GetArena() == nullptr) { + delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.edadatafile_); } - _impl_.edadatafile_ = edadatafile; - if (edadatafile) { + _impl_.edadatafile_ = reinterpret_cast<::Odb::Lib::Protobuf::EdaDataFile*>(value); + if (value != nullptr) { _impl_._has_bits_[0] |= 0x00000004u; } else { _impl_._has_bits_[0] &= ~0x00000004u; @@ -671,86 +726,90 @@ inline void StepDirectory::unsafe_arena_set_allocated_edadatafile( // @@protoc_insertion_point(field_unsafe_arena_set_allocated:Odb.Lib.Protobuf.StepDirectory.edadatafile) } inline ::Odb::Lib::Protobuf::EdaDataFile* StepDirectory::release_edadatafile() { + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_._has_bits_[0] &= ~0x00000004u; - ::Odb::Lib::Protobuf::EdaDataFile* temp = _impl_.edadatafile_; + ::Odb::Lib::Protobuf::EdaDataFile* released = _impl_.edadatafile_; _impl_.edadatafile_ = nullptr; -#ifdef PROTOBUF_FORCE_COPY_IN_RELEASE - auto* old = reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(temp); - temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); - if (GetArenaForAllocation() == nullptr) { delete old; } -#else // PROTOBUF_FORCE_COPY_IN_RELEASE - if (GetArenaForAllocation() != nullptr) { - temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); - } -#endif // !PROTOBUF_FORCE_COPY_IN_RELEASE - return temp; + if (::google::protobuf::internal::DebugHardenForceCopyInRelease()) { + auto* old = reinterpret_cast<::google::protobuf::MessageLite*>(released); + released = ::google::protobuf::internal::DuplicateIfNonNull(released); + if (GetArena() == nullptr) { + delete old; + } + } else { + if (GetArena() != nullptr) { + released = ::google::protobuf::internal::DuplicateIfNonNull(released); + } + } + return released; } inline ::Odb::Lib::Protobuf::EdaDataFile* StepDirectory::unsafe_arena_release_edadatafile() { + ::google::protobuf::internal::TSanWrite(&_impl_); // @@protoc_insertion_point(field_release:Odb.Lib.Protobuf.StepDirectory.edadatafile) + _impl_._has_bits_[0] &= ~0x00000004u; ::Odb::Lib::Protobuf::EdaDataFile* temp = _impl_.edadatafile_; _impl_.edadatafile_ = nullptr; return temp; } inline ::Odb::Lib::Protobuf::EdaDataFile* StepDirectory::_internal_mutable_edadatafile() { - _impl_._has_bits_[0] |= 0x00000004u; + ::google::protobuf::internal::TSanWrite(&_impl_); if (_impl_.edadatafile_ == nullptr) { - auto* p = CreateMaybeMessage<::Odb::Lib::Protobuf::EdaDataFile>(GetArenaForAllocation()); - _impl_.edadatafile_ = p; + auto* p = ::google::protobuf::Message::DefaultConstruct<::Odb::Lib::Protobuf::EdaDataFile>(GetArena()); + _impl_.edadatafile_ = reinterpret_cast<::Odb::Lib::Protobuf::EdaDataFile*>(p); } return _impl_.edadatafile_; } -inline ::Odb::Lib::Protobuf::EdaDataFile* StepDirectory::mutable_edadatafile() { +inline ::Odb::Lib::Protobuf::EdaDataFile* StepDirectory::mutable_edadatafile() ABSL_ATTRIBUTE_LIFETIME_BOUND { + _impl_._has_bits_[0] |= 0x00000004u; ::Odb::Lib::Protobuf::EdaDataFile* _msg = _internal_mutable_edadatafile(); // @@protoc_insertion_point(field_mutable:Odb.Lib.Protobuf.StepDirectory.edadatafile) return _msg; } -inline void StepDirectory::set_allocated_edadatafile(::Odb::Lib::Protobuf::EdaDataFile* edadatafile) { - ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); +inline void StepDirectory::set_allocated_edadatafile(::Odb::Lib::Protobuf::EdaDataFile* value) { + ::google::protobuf::Arena* message_arena = GetArena(); + ::google::protobuf::internal::TSanWrite(&_impl_); if (message_arena == nullptr) { - delete reinterpret_cast< ::PROTOBUF_NAMESPACE_ID::MessageLite*>(_impl_.edadatafile_); + delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.edadatafile_); } - if (edadatafile) { - ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = - ::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena( - reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(edadatafile)); + + if (value != nullptr) { + ::google::protobuf::Arena* submessage_arena = reinterpret_cast<::google::protobuf::MessageLite*>(value)->GetArena(); if (message_arena != submessage_arena) { - edadatafile = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( - message_arena, edadatafile, submessage_arena); + value = ::google::protobuf::internal::GetOwnedMessage(message_arena, value, submessage_arena); } _impl_._has_bits_[0] |= 0x00000004u; } else { _impl_._has_bits_[0] &= ~0x00000004u; } - _impl_.edadatafile_ = edadatafile; + + _impl_.edadatafile_ = reinterpret_cast<::Odb::Lib::Protobuf::EdaDataFile*>(value); // @@protoc_insertion_point(field_set_allocated:Odb.Lib.Protobuf.StepDirectory.edadatafile) } // optional .Odb.Lib.Protobuf.AttrListFile attrlistfile = 6; -inline bool StepDirectory::_internal_has_attrlistfile() const { +inline bool StepDirectory::has_attrlistfile() const { bool value = (_impl_._has_bits_[0] & 0x00000008u) != 0; PROTOBUF_ASSUME(!value || _impl_.attrlistfile_ != nullptr); return value; } -inline bool StepDirectory::has_attrlistfile() const { - return _internal_has_attrlistfile(); -} inline const ::Odb::Lib::Protobuf::AttrListFile& StepDirectory::_internal_attrlistfile() const { + ::google::protobuf::internal::TSanRead(&_impl_); const ::Odb::Lib::Protobuf::AttrListFile* p = _impl_.attrlistfile_; - return p != nullptr ? *p : reinterpret_cast( - ::Odb::Lib::Protobuf::_AttrListFile_default_instance_); + return p != nullptr ? *p : reinterpret_cast(::Odb::Lib::Protobuf::_AttrListFile_default_instance_); } -inline const ::Odb::Lib::Protobuf::AttrListFile& StepDirectory::attrlistfile() const { +inline const ::Odb::Lib::Protobuf::AttrListFile& StepDirectory::attrlistfile() const ABSL_ATTRIBUTE_LIFETIME_BOUND { // @@protoc_insertion_point(field_get:Odb.Lib.Protobuf.StepDirectory.attrlistfile) return _internal_attrlistfile(); } -inline void StepDirectory::unsafe_arena_set_allocated_attrlistfile( - ::Odb::Lib::Protobuf::AttrListFile* attrlistfile) { - if (GetArenaForAllocation() == nullptr) { - delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(_impl_.attrlistfile_); +inline void StepDirectory::unsafe_arena_set_allocated_attrlistfile(::Odb::Lib::Protobuf::AttrListFile* value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + if (GetArena() == nullptr) { + delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.attrlistfile_); } - _impl_.attrlistfile_ = attrlistfile; - if (attrlistfile) { + _impl_.attrlistfile_ = reinterpret_cast<::Odb::Lib::Protobuf::AttrListFile*>(value); + if (value != nullptr) { _impl_._has_bits_[0] |= 0x00000008u; } else { _impl_._has_bits_[0] &= ~0x00000008u; @@ -758,86 +817,90 @@ inline void StepDirectory::unsafe_arena_set_allocated_attrlistfile( // @@protoc_insertion_point(field_unsafe_arena_set_allocated:Odb.Lib.Protobuf.StepDirectory.attrlistfile) } inline ::Odb::Lib::Protobuf::AttrListFile* StepDirectory::release_attrlistfile() { + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_._has_bits_[0] &= ~0x00000008u; - ::Odb::Lib::Protobuf::AttrListFile* temp = _impl_.attrlistfile_; + ::Odb::Lib::Protobuf::AttrListFile* released = _impl_.attrlistfile_; _impl_.attrlistfile_ = nullptr; -#ifdef PROTOBUF_FORCE_COPY_IN_RELEASE - auto* old = reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(temp); - temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); - if (GetArenaForAllocation() == nullptr) { delete old; } -#else // PROTOBUF_FORCE_COPY_IN_RELEASE - if (GetArenaForAllocation() != nullptr) { - temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); - } -#endif // !PROTOBUF_FORCE_COPY_IN_RELEASE - return temp; + if (::google::protobuf::internal::DebugHardenForceCopyInRelease()) { + auto* old = reinterpret_cast<::google::protobuf::MessageLite*>(released); + released = ::google::protobuf::internal::DuplicateIfNonNull(released); + if (GetArena() == nullptr) { + delete old; + } + } else { + if (GetArena() != nullptr) { + released = ::google::protobuf::internal::DuplicateIfNonNull(released); + } + } + return released; } inline ::Odb::Lib::Protobuf::AttrListFile* StepDirectory::unsafe_arena_release_attrlistfile() { + ::google::protobuf::internal::TSanWrite(&_impl_); // @@protoc_insertion_point(field_release:Odb.Lib.Protobuf.StepDirectory.attrlistfile) + _impl_._has_bits_[0] &= ~0x00000008u; ::Odb::Lib::Protobuf::AttrListFile* temp = _impl_.attrlistfile_; _impl_.attrlistfile_ = nullptr; return temp; } inline ::Odb::Lib::Protobuf::AttrListFile* StepDirectory::_internal_mutable_attrlistfile() { - _impl_._has_bits_[0] |= 0x00000008u; + ::google::protobuf::internal::TSanWrite(&_impl_); if (_impl_.attrlistfile_ == nullptr) { - auto* p = CreateMaybeMessage<::Odb::Lib::Protobuf::AttrListFile>(GetArenaForAllocation()); - _impl_.attrlistfile_ = p; + auto* p = ::google::protobuf::Message::DefaultConstruct<::Odb::Lib::Protobuf::AttrListFile>(GetArena()); + _impl_.attrlistfile_ = reinterpret_cast<::Odb::Lib::Protobuf::AttrListFile*>(p); } return _impl_.attrlistfile_; } -inline ::Odb::Lib::Protobuf::AttrListFile* StepDirectory::mutable_attrlistfile() { +inline ::Odb::Lib::Protobuf::AttrListFile* StepDirectory::mutable_attrlistfile() ABSL_ATTRIBUTE_LIFETIME_BOUND { + _impl_._has_bits_[0] |= 0x00000008u; ::Odb::Lib::Protobuf::AttrListFile* _msg = _internal_mutable_attrlistfile(); // @@protoc_insertion_point(field_mutable:Odb.Lib.Protobuf.StepDirectory.attrlistfile) return _msg; } -inline void StepDirectory::set_allocated_attrlistfile(::Odb::Lib::Protobuf::AttrListFile* attrlistfile) { - ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); +inline void StepDirectory::set_allocated_attrlistfile(::Odb::Lib::Protobuf::AttrListFile* value) { + ::google::protobuf::Arena* message_arena = GetArena(); + ::google::protobuf::internal::TSanWrite(&_impl_); if (message_arena == nullptr) { - delete reinterpret_cast< ::PROTOBUF_NAMESPACE_ID::MessageLite*>(_impl_.attrlistfile_); + delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.attrlistfile_); } - if (attrlistfile) { - ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = - ::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena( - reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(attrlistfile)); + + if (value != nullptr) { + ::google::protobuf::Arena* submessage_arena = reinterpret_cast<::google::protobuf::MessageLite*>(value)->GetArena(); if (message_arena != submessage_arena) { - attrlistfile = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( - message_arena, attrlistfile, submessage_arena); + value = ::google::protobuf::internal::GetOwnedMessage(message_arena, value, submessage_arena); } _impl_._has_bits_[0] |= 0x00000008u; } else { _impl_._has_bits_[0] &= ~0x00000008u; } - _impl_.attrlistfile_ = attrlistfile; + + _impl_.attrlistfile_ = reinterpret_cast<::Odb::Lib::Protobuf::AttrListFile*>(value); // @@protoc_insertion_point(field_set_allocated:Odb.Lib.Protobuf.StepDirectory.attrlistfile) } // optional .Odb.Lib.Protobuf.FeaturesFile profilefile = 7; -inline bool StepDirectory::_internal_has_profilefile() const { +inline bool StepDirectory::has_profilefile() const { bool value = (_impl_._has_bits_[0] & 0x00000010u) != 0; PROTOBUF_ASSUME(!value || _impl_.profilefile_ != nullptr); return value; } -inline bool StepDirectory::has_profilefile() const { - return _internal_has_profilefile(); -} inline const ::Odb::Lib::Protobuf::FeaturesFile& StepDirectory::_internal_profilefile() const { + ::google::protobuf::internal::TSanRead(&_impl_); const ::Odb::Lib::Protobuf::FeaturesFile* p = _impl_.profilefile_; - return p != nullptr ? *p : reinterpret_cast( - ::Odb::Lib::Protobuf::_FeaturesFile_default_instance_); + return p != nullptr ? *p : reinterpret_cast(::Odb::Lib::Protobuf::_FeaturesFile_default_instance_); } -inline const ::Odb::Lib::Protobuf::FeaturesFile& StepDirectory::profilefile() const { +inline const ::Odb::Lib::Protobuf::FeaturesFile& StepDirectory::profilefile() const ABSL_ATTRIBUTE_LIFETIME_BOUND { // @@protoc_insertion_point(field_get:Odb.Lib.Protobuf.StepDirectory.profilefile) return _internal_profilefile(); } -inline void StepDirectory::unsafe_arena_set_allocated_profilefile( - ::Odb::Lib::Protobuf::FeaturesFile* profilefile) { - if (GetArenaForAllocation() == nullptr) { - delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(_impl_.profilefile_); +inline void StepDirectory::unsafe_arena_set_allocated_profilefile(::Odb::Lib::Protobuf::FeaturesFile* value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + if (GetArena() == nullptr) { + delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.profilefile_); } - _impl_.profilefile_ = profilefile; - if (profilefile) { + _impl_.profilefile_ = reinterpret_cast<::Odb::Lib::Protobuf::FeaturesFile*>(value); + if (value != nullptr) { _impl_._has_bits_[0] |= 0x00000010u; } else { _impl_._has_bits_[0] &= ~0x00000010u; @@ -845,86 +908,90 @@ inline void StepDirectory::unsafe_arena_set_allocated_profilefile( // @@protoc_insertion_point(field_unsafe_arena_set_allocated:Odb.Lib.Protobuf.StepDirectory.profilefile) } inline ::Odb::Lib::Protobuf::FeaturesFile* StepDirectory::release_profilefile() { + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_._has_bits_[0] &= ~0x00000010u; - ::Odb::Lib::Protobuf::FeaturesFile* temp = _impl_.profilefile_; + ::Odb::Lib::Protobuf::FeaturesFile* released = _impl_.profilefile_; _impl_.profilefile_ = nullptr; -#ifdef PROTOBUF_FORCE_COPY_IN_RELEASE - auto* old = reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(temp); - temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); - if (GetArenaForAllocation() == nullptr) { delete old; } -#else // PROTOBUF_FORCE_COPY_IN_RELEASE - if (GetArenaForAllocation() != nullptr) { - temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); - } -#endif // !PROTOBUF_FORCE_COPY_IN_RELEASE - return temp; + if (::google::protobuf::internal::DebugHardenForceCopyInRelease()) { + auto* old = reinterpret_cast<::google::protobuf::MessageLite*>(released); + released = ::google::protobuf::internal::DuplicateIfNonNull(released); + if (GetArena() == nullptr) { + delete old; + } + } else { + if (GetArena() != nullptr) { + released = ::google::protobuf::internal::DuplicateIfNonNull(released); + } + } + return released; } inline ::Odb::Lib::Protobuf::FeaturesFile* StepDirectory::unsafe_arena_release_profilefile() { + ::google::protobuf::internal::TSanWrite(&_impl_); // @@protoc_insertion_point(field_release:Odb.Lib.Protobuf.StepDirectory.profilefile) + _impl_._has_bits_[0] &= ~0x00000010u; ::Odb::Lib::Protobuf::FeaturesFile* temp = _impl_.profilefile_; _impl_.profilefile_ = nullptr; return temp; } inline ::Odb::Lib::Protobuf::FeaturesFile* StepDirectory::_internal_mutable_profilefile() { - _impl_._has_bits_[0] |= 0x00000010u; + ::google::protobuf::internal::TSanWrite(&_impl_); if (_impl_.profilefile_ == nullptr) { - auto* p = CreateMaybeMessage<::Odb::Lib::Protobuf::FeaturesFile>(GetArenaForAllocation()); - _impl_.profilefile_ = p; + auto* p = ::google::protobuf::Message::DefaultConstruct<::Odb::Lib::Protobuf::FeaturesFile>(GetArena()); + _impl_.profilefile_ = reinterpret_cast<::Odb::Lib::Protobuf::FeaturesFile*>(p); } return _impl_.profilefile_; } -inline ::Odb::Lib::Protobuf::FeaturesFile* StepDirectory::mutable_profilefile() { +inline ::Odb::Lib::Protobuf::FeaturesFile* StepDirectory::mutable_profilefile() ABSL_ATTRIBUTE_LIFETIME_BOUND { + _impl_._has_bits_[0] |= 0x00000010u; ::Odb::Lib::Protobuf::FeaturesFile* _msg = _internal_mutable_profilefile(); // @@protoc_insertion_point(field_mutable:Odb.Lib.Protobuf.StepDirectory.profilefile) return _msg; } -inline void StepDirectory::set_allocated_profilefile(::Odb::Lib::Protobuf::FeaturesFile* profilefile) { - ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); +inline void StepDirectory::set_allocated_profilefile(::Odb::Lib::Protobuf::FeaturesFile* value) { + ::google::protobuf::Arena* message_arena = GetArena(); + ::google::protobuf::internal::TSanWrite(&_impl_); if (message_arena == nullptr) { - delete reinterpret_cast< ::PROTOBUF_NAMESPACE_ID::MessageLite*>(_impl_.profilefile_); + delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.profilefile_); } - if (profilefile) { - ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = - ::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena( - reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(profilefile)); + + if (value != nullptr) { + ::google::protobuf::Arena* submessage_arena = reinterpret_cast<::google::protobuf::MessageLite*>(value)->GetArena(); if (message_arena != submessage_arena) { - profilefile = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( - message_arena, profilefile, submessage_arena); + value = ::google::protobuf::internal::GetOwnedMessage(message_arena, value, submessage_arena); } _impl_._has_bits_[0] |= 0x00000010u; } else { _impl_._has_bits_[0] &= ~0x00000010u; } - _impl_.profilefile_ = profilefile; + + _impl_.profilefile_ = reinterpret_cast<::Odb::Lib::Protobuf::FeaturesFile*>(value); // @@protoc_insertion_point(field_set_allocated:Odb.Lib.Protobuf.StepDirectory.profilefile) } // optional .Odb.Lib.Protobuf.StepHdrFile stephdrfile = 8; -inline bool StepDirectory::_internal_has_stephdrfile() const { +inline bool StepDirectory::has_stephdrfile() const { bool value = (_impl_._has_bits_[0] & 0x00000020u) != 0; PROTOBUF_ASSUME(!value || _impl_.stephdrfile_ != nullptr); return value; } -inline bool StepDirectory::has_stephdrfile() const { - return _internal_has_stephdrfile(); -} inline const ::Odb::Lib::Protobuf::StepHdrFile& StepDirectory::_internal_stephdrfile() const { + ::google::protobuf::internal::TSanRead(&_impl_); const ::Odb::Lib::Protobuf::StepHdrFile* p = _impl_.stephdrfile_; - return p != nullptr ? *p : reinterpret_cast( - ::Odb::Lib::Protobuf::_StepHdrFile_default_instance_); + return p != nullptr ? *p : reinterpret_cast(::Odb::Lib::Protobuf::_StepHdrFile_default_instance_); } -inline const ::Odb::Lib::Protobuf::StepHdrFile& StepDirectory::stephdrfile() const { +inline const ::Odb::Lib::Protobuf::StepHdrFile& StepDirectory::stephdrfile() const ABSL_ATTRIBUTE_LIFETIME_BOUND { // @@protoc_insertion_point(field_get:Odb.Lib.Protobuf.StepDirectory.stephdrfile) return _internal_stephdrfile(); } -inline void StepDirectory::unsafe_arena_set_allocated_stephdrfile( - ::Odb::Lib::Protobuf::StepHdrFile* stephdrfile) { - if (GetArenaForAllocation() == nullptr) { - delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(_impl_.stephdrfile_); +inline void StepDirectory::unsafe_arena_set_allocated_stephdrfile(::Odb::Lib::Protobuf::StepHdrFile* value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + if (GetArena() == nullptr) { + delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.stephdrfile_); } - _impl_.stephdrfile_ = stephdrfile; - if (stephdrfile) { + _impl_.stephdrfile_ = reinterpret_cast<::Odb::Lib::Protobuf::StepHdrFile*>(value); + if (value != nullptr) { _impl_._has_bits_[0] |= 0x00000020u; } else { _impl_._has_bits_[0] &= ~0x00000020u; @@ -932,76 +999,80 @@ inline void StepDirectory::unsafe_arena_set_allocated_stephdrfile( // @@protoc_insertion_point(field_unsafe_arena_set_allocated:Odb.Lib.Protobuf.StepDirectory.stephdrfile) } inline ::Odb::Lib::Protobuf::StepHdrFile* StepDirectory::release_stephdrfile() { + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_._has_bits_[0] &= ~0x00000020u; - ::Odb::Lib::Protobuf::StepHdrFile* temp = _impl_.stephdrfile_; + ::Odb::Lib::Protobuf::StepHdrFile* released = _impl_.stephdrfile_; _impl_.stephdrfile_ = nullptr; -#ifdef PROTOBUF_FORCE_COPY_IN_RELEASE - auto* old = reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(temp); - temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); - if (GetArenaForAllocation() == nullptr) { delete old; } -#else // PROTOBUF_FORCE_COPY_IN_RELEASE - if (GetArenaForAllocation() != nullptr) { - temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); - } -#endif // !PROTOBUF_FORCE_COPY_IN_RELEASE - return temp; + if (::google::protobuf::internal::DebugHardenForceCopyInRelease()) { + auto* old = reinterpret_cast<::google::protobuf::MessageLite*>(released); + released = ::google::protobuf::internal::DuplicateIfNonNull(released); + if (GetArena() == nullptr) { + delete old; + } + } else { + if (GetArena() != nullptr) { + released = ::google::protobuf::internal::DuplicateIfNonNull(released); + } + } + return released; } inline ::Odb::Lib::Protobuf::StepHdrFile* StepDirectory::unsafe_arena_release_stephdrfile() { + ::google::protobuf::internal::TSanWrite(&_impl_); // @@protoc_insertion_point(field_release:Odb.Lib.Protobuf.StepDirectory.stephdrfile) + _impl_._has_bits_[0] &= ~0x00000020u; ::Odb::Lib::Protobuf::StepHdrFile* temp = _impl_.stephdrfile_; _impl_.stephdrfile_ = nullptr; return temp; } inline ::Odb::Lib::Protobuf::StepHdrFile* StepDirectory::_internal_mutable_stephdrfile() { - _impl_._has_bits_[0] |= 0x00000020u; + ::google::protobuf::internal::TSanWrite(&_impl_); if (_impl_.stephdrfile_ == nullptr) { - auto* p = CreateMaybeMessage<::Odb::Lib::Protobuf::StepHdrFile>(GetArenaForAllocation()); - _impl_.stephdrfile_ = p; + auto* p = ::google::protobuf::Message::DefaultConstruct<::Odb::Lib::Protobuf::StepHdrFile>(GetArena()); + _impl_.stephdrfile_ = reinterpret_cast<::Odb::Lib::Protobuf::StepHdrFile*>(p); } return _impl_.stephdrfile_; } -inline ::Odb::Lib::Protobuf::StepHdrFile* StepDirectory::mutable_stephdrfile() { +inline ::Odb::Lib::Protobuf::StepHdrFile* StepDirectory::mutable_stephdrfile() ABSL_ATTRIBUTE_LIFETIME_BOUND { + _impl_._has_bits_[0] |= 0x00000020u; ::Odb::Lib::Protobuf::StepHdrFile* _msg = _internal_mutable_stephdrfile(); // @@protoc_insertion_point(field_mutable:Odb.Lib.Protobuf.StepDirectory.stephdrfile) return _msg; } -inline void StepDirectory::set_allocated_stephdrfile(::Odb::Lib::Protobuf::StepHdrFile* stephdrfile) { - ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); +inline void StepDirectory::set_allocated_stephdrfile(::Odb::Lib::Protobuf::StepHdrFile* value) { + ::google::protobuf::Arena* message_arena = GetArena(); + ::google::protobuf::internal::TSanWrite(&_impl_); if (message_arena == nullptr) { - delete reinterpret_cast< ::PROTOBUF_NAMESPACE_ID::MessageLite*>(_impl_.stephdrfile_); + delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.stephdrfile_); } - if (stephdrfile) { - ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = - ::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena( - reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(stephdrfile)); + + if (value != nullptr) { + ::google::protobuf::Arena* submessage_arena = reinterpret_cast<::google::protobuf::MessageLite*>(value)->GetArena(); if (message_arena != submessage_arena) { - stephdrfile = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( - message_arena, stephdrfile, submessage_arena); + value = ::google::protobuf::internal::GetOwnedMessage(message_arena, value, submessage_arena); } _impl_._has_bits_[0] |= 0x00000020u; } else { _impl_._has_bits_[0] &= ~0x00000020u; } - _impl_.stephdrfile_ = stephdrfile; + + _impl_.stephdrfile_ = reinterpret_cast<::Odb::Lib::Protobuf::StepHdrFile*>(value); // @@protoc_insertion_point(field_set_allocated:Odb.Lib.Protobuf.StepDirectory.stephdrfile) } #ifdef __GNUC__ - #pragma GCC diagnostic pop +#pragma GCC diagnostic pop #endif // __GNUC__ -// ------------------------------------------------------------------- - -// ------------------------------------------------------------------- - // @@protoc_insertion_point(namespace_scope) - } // namespace Protobuf } // namespace Lib } // namespace Odb + // @@protoc_insertion_point(global_scope) -#include -#endif // GOOGLE_PROTOBUF_INCLUDED_GOOGLE_PROTOBUF_INCLUDED_stepdirectory_2eproto +#include "google/protobuf/port_undef.inc" + +#endif // stepdirectory_2eproto_2epb_2eh diff --git a/OdbDesignLib/ProtoBuf/stephdrfile.pb.cc b/OdbDesignLib/ProtoBuf/stephdrfile.pb.cc index 7f720daa..935ae71e 100644 --- a/OdbDesignLib/ProtoBuf/stephdrfile.pb.cc +++ b/OdbDesignLib/ProtoBuf/stephdrfile.pb.cc @@ -1,350 +1,493 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE // source: stephdrfile.proto +// Protobuf C++ Version: 5.29.2 #include "stephdrfile.pb.h" #include - -#include -#include -#include -#include -#include -#include -#include +#include +#include "google/protobuf/io/coded_stream.h" +#include "google/protobuf/generated_message_tctable_impl.h" +#include "google/protobuf/extension_set.h" +#include "google/protobuf/generated_message_util.h" +#include "google/protobuf/wire_format_lite.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) -#include +// Must be included last. +#include "google/protobuf/port_def.inc" PROTOBUF_PRAGMA_INIT_SEG - -namespace _pb = ::PROTOBUF_NAMESPACE_ID; -namespace _pbi = _pb::internal; - +namespace _pb = ::google::protobuf; +namespace _pbi = ::google::protobuf::internal; +namespace _fl = ::google::protobuf::internal::field_layout; namespace Odb { namespace Lib { namespace Protobuf { -PROTOBUF_CONSTEXPR StepHdrFile_StepRepeatRecord::StepHdrFile_StepRepeatRecord( - ::_pbi::ConstantInitialized): _impl_{ - /*decltype(_impl_._has_bits_)*/{} - , /*decltype(_impl_._cached_size_)*/{} - , /*decltype(_impl_.name_)*/{&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}} - , /*decltype(_impl_.x_)*/0 - , /*decltype(_impl_.y_)*/0 - , /*decltype(_impl_.dx_)*/0 - , /*decltype(_impl_.dy_)*/0 - , /*decltype(_impl_.nx_)*/0 - , /*decltype(_impl_.ny_)*/0 - , /*decltype(_impl_.angle_)*/0 - , /*decltype(_impl_.flip_)*/false - , /*decltype(_impl_.mirror_)*/false} {} + +inline constexpr StepHdrFile_StepRepeatRecord::Impl_::Impl_( + ::_pbi::ConstantInitialized) noexcept + : _cached_size_{0}, + name_( + &::google::protobuf::internal::fixed_address_empty_string, + ::_pbi::ConstantInitialized()), + x_{0}, + y_{0}, + dx_{0}, + dy_{0}, + nx_{0}, + ny_{0}, + angle_{0}, + flip_{false}, + mirror_{false} {} + +template +PROTOBUF_CONSTEXPR StepHdrFile_StepRepeatRecord::StepHdrFile_StepRepeatRecord(::_pbi::ConstantInitialized) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : ::google::protobuf::Message(_class_data_.base()), +#else // PROTOBUF_CUSTOM_VTABLE + : ::google::protobuf::Message(), +#endif // PROTOBUF_CUSTOM_VTABLE + _impl_(::_pbi::ConstantInitialized()) { +} struct StepHdrFile_StepRepeatRecordDefaultTypeInternal { - PROTOBUF_CONSTEXPR StepHdrFile_StepRepeatRecordDefaultTypeInternal() - : _instance(::_pbi::ConstantInitialized{}) {} + PROTOBUF_CONSTEXPR StepHdrFile_StepRepeatRecordDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} ~StepHdrFile_StepRepeatRecordDefaultTypeInternal() {} union { StepHdrFile_StepRepeatRecord _instance; }; }; -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 StepHdrFile_StepRepeatRecordDefaultTypeInternal _StepHdrFile_StepRepeatRecord_default_instance_; -PROTOBUF_CONSTEXPR StepHdrFile_OnlineValuesEntry_DoNotUse::StepHdrFile_OnlineValuesEntry_DoNotUse( - ::_pbi::ConstantInitialized) {} + +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT ODBDESIGN_EXPORT + PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 StepHdrFile_StepRepeatRecordDefaultTypeInternal _StepHdrFile_StepRepeatRecord_default_instance_; + template +PROTOBUF_CONSTEXPR StepHdrFile_OnlineValuesEntry_DoNotUse::StepHdrFile_OnlineValuesEntry_DoNotUse(::_pbi::ConstantInitialized) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : StepHdrFile_OnlineValuesEntry_DoNotUse::MapEntry(_class_data_.base()){} +#else // PROTOBUF_CUSTOM_VTABLE + : StepHdrFile_OnlineValuesEntry_DoNotUse::MapEntry() { +} +#endif // PROTOBUF_CUSTOM_VTABLE struct StepHdrFile_OnlineValuesEntry_DoNotUseDefaultTypeInternal { - PROTOBUF_CONSTEXPR StepHdrFile_OnlineValuesEntry_DoNotUseDefaultTypeInternal() - : _instance(::_pbi::ConstantInitialized{}) {} + PROTOBUF_CONSTEXPR StepHdrFile_OnlineValuesEntry_DoNotUseDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} ~StepHdrFile_OnlineValuesEntry_DoNotUseDefaultTypeInternal() {} union { StepHdrFile_OnlineValuesEntry_DoNotUse _instance; }; }; -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 StepHdrFile_OnlineValuesEntry_DoNotUseDefaultTypeInternal _StepHdrFile_OnlineValuesEntry_DoNotUse_default_instance_; -PROTOBUF_CONSTEXPR StepHdrFile::StepHdrFile( - ::_pbi::ConstantInitialized): _impl_{ - /*decltype(_impl_._has_bits_)*/{} - , /*decltype(_impl_._cached_size_)*/{} - , /*decltype(_impl_.steprepeatrecords_)*/{} - , /*decltype(_impl_.onlinevalues_)*/{::_pbi::ConstantInitialized()} - , /*decltype(_impl_.affectingbom_)*/{&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}} - , /*decltype(_impl_.online_)*/{&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}} - , /*decltype(_impl_.path_)*/{&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}} - , /*decltype(_impl_.xdatum_)*/0 - , /*decltype(_impl_.ydatum_)*/0 - , /*decltype(_impl_.id_)*/0 - , /*decltype(_impl_.xorigin_)*/0 - , /*decltype(_impl_.yorigin_)*/0 - , /*decltype(_impl_.topactive_)*/0 - , /*decltype(_impl_.bottomactive_)*/0 - , /*decltype(_impl_.rightactive_)*/0 - , /*decltype(_impl_.leftactive_)*/0 - , /*decltype(_impl_.affectingbomchanged_)*/false} {} + +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT ODBDESIGN_EXPORT + PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 StepHdrFile_OnlineValuesEntry_DoNotUseDefaultTypeInternal _StepHdrFile_OnlineValuesEntry_DoNotUse_default_instance_; + +inline constexpr StepHdrFile::Impl_::Impl_( + ::_pbi::ConstantInitialized) noexcept + : _cached_size_{0}, + steprepeatrecords_{}, + onlinevalues_{}, + affectingbom_( + &::google::protobuf::internal::fixed_address_empty_string, + ::_pbi::ConstantInitialized()), + online_( + &::google::protobuf::internal::fixed_address_empty_string, + ::_pbi::ConstantInitialized()), + path_( + &::google::protobuf::internal::fixed_address_empty_string, + ::_pbi::ConstantInitialized()), + xdatum_{0}, + ydatum_{0}, + id_{0}, + xorigin_{0}, + yorigin_{0}, + topactive_{0}, + bottomactive_{0}, + rightactive_{0}, + leftactive_{0}, + affectingbomchanged_{false} {} + +template +PROTOBUF_CONSTEXPR StepHdrFile::StepHdrFile(::_pbi::ConstantInitialized) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : ::google::protobuf::Message(_class_data_.base()), +#else // PROTOBUF_CUSTOM_VTABLE + : ::google::protobuf::Message(), +#endif // PROTOBUF_CUSTOM_VTABLE + _impl_(::_pbi::ConstantInitialized()) { +} struct StepHdrFileDefaultTypeInternal { - PROTOBUF_CONSTEXPR StepHdrFileDefaultTypeInternal() - : _instance(::_pbi::ConstantInitialized{}) {} + PROTOBUF_CONSTEXPR StepHdrFileDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} ~StepHdrFileDefaultTypeInternal() {} union { StepHdrFile _instance; }; }; -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 StepHdrFileDefaultTypeInternal _StepHdrFile_default_instance_; + +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT ODBDESIGN_EXPORT + PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 StepHdrFileDefaultTypeInternal _StepHdrFile_default_instance_; } // namespace Protobuf } // namespace Lib } // namespace Odb -static ::_pb::Metadata file_level_metadata_stephdrfile_2eproto[3]; -static constexpr ::_pb::EnumDescriptor const** file_level_enum_descriptors_stephdrfile_2eproto = nullptr; -static constexpr ::_pb::ServiceDescriptor const** file_level_service_descriptors_stephdrfile_2eproto = nullptr; - -const uint32_t TableStruct_stephdrfile_2eproto::offsets[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = { - PROTOBUF_FIELD_OFFSET(::Odb::Lib::Protobuf::StepHdrFile_StepRepeatRecord, _impl_._has_bits_), - PROTOBUF_FIELD_OFFSET(::Odb::Lib::Protobuf::StepHdrFile_StepRepeatRecord, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - ~0u, // no _inlined_string_donated_ - PROTOBUF_FIELD_OFFSET(::Odb::Lib::Protobuf::StepHdrFile_StepRepeatRecord, _impl_.name_), - PROTOBUF_FIELD_OFFSET(::Odb::Lib::Protobuf::StepHdrFile_StepRepeatRecord, _impl_.x_), - PROTOBUF_FIELD_OFFSET(::Odb::Lib::Protobuf::StepHdrFile_StepRepeatRecord, _impl_.y_), - PROTOBUF_FIELD_OFFSET(::Odb::Lib::Protobuf::StepHdrFile_StepRepeatRecord, _impl_.dx_), - PROTOBUF_FIELD_OFFSET(::Odb::Lib::Protobuf::StepHdrFile_StepRepeatRecord, _impl_.dy_), - PROTOBUF_FIELD_OFFSET(::Odb::Lib::Protobuf::StepHdrFile_StepRepeatRecord, _impl_.nx_), - PROTOBUF_FIELD_OFFSET(::Odb::Lib::Protobuf::StepHdrFile_StepRepeatRecord, _impl_.ny_), - PROTOBUF_FIELD_OFFSET(::Odb::Lib::Protobuf::StepHdrFile_StepRepeatRecord, _impl_.angle_), - PROTOBUF_FIELD_OFFSET(::Odb::Lib::Protobuf::StepHdrFile_StepRepeatRecord, _impl_.flip_), - PROTOBUF_FIELD_OFFSET(::Odb::Lib::Protobuf::StepHdrFile_StepRepeatRecord, _impl_.mirror_), - 0, - 1, - 2, - 3, - 4, - 5, - 6, - 7, - 8, - 9, - PROTOBUF_FIELD_OFFSET(::Odb::Lib::Protobuf::StepHdrFile_OnlineValuesEntry_DoNotUse, _has_bits_), - PROTOBUF_FIELD_OFFSET(::Odb::Lib::Protobuf::StepHdrFile_OnlineValuesEntry_DoNotUse, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - ~0u, // no _inlined_string_donated_ - PROTOBUF_FIELD_OFFSET(::Odb::Lib::Protobuf::StepHdrFile_OnlineValuesEntry_DoNotUse, key_), - PROTOBUF_FIELD_OFFSET(::Odb::Lib::Protobuf::StepHdrFile_OnlineValuesEntry_DoNotUse, value_), - 0, - 1, - PROTOBUF_FIELD_OFFSET(::Odb::Lib::Protobuf::StepHdrFile, _impl_._has_bits_), - PROTOBUF_FIELD_OFFSET(::Odb::Lib::Protobuf::StepHdrFile, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - ~0u, // no _inlined_string_donated_ - PROTOBUF_FIELD_OFFSET(::Odb::Lib::Protobuf::StepHdrFile, _impl_.xdatum_), - PROTOBUF_FIELD_OFFSET(::Odb::Lib::Protobuf::StepHdrFile, _impl_.ydatum_), - PROTOBUF_FIELD_OFFSET(::Odb::Lib::Protobuf::StepHdrFile, _impl_.id_), - PROTOBUF_FIELD_OFFSET(::Odb::Lib::Protobuf::StepHdrFile, _impl_.xorigin_), - PROTOBUF_FIELD_OFFSET(::Odb::Lib::Protobuf::StepHdrFile, _impl_.yorigin_), - PROTOBUF_FIELD_OFFSET(::Odb::Lib::Protobuf::StepHdrFile, _impl_.topactive_), - PROTOBUF_FIELD_OFFSET(::Odb::Lib::Protobuf::StepHdrFile, _impl_.bottomactive_), - PROTOBUF_FIELD_OFFSET(::Odb::Lib::Protobuf::StepHdrFile, _impl_.rightactive_), - PROTOBUF_FIELD_OFFSET(::Odb::Lib::Protobuf::StepHdrFile, _impl_.leftactive_), - PROTOBUF_FIELD_OFFSET(::Odb::Lib::Protobuf::StepHdrFile, _impl_.affectingbom_), - PROTOBUF_FIELD_OFFSET(::Odb::Lib::Protobuf::StepHdrFile, _impl_.affectingbomchanged_), - PROTOBUF_FIELD_OFFSET(::Odb::Lib::Protobuf::StepHdrFile, _impl_.online_), - PROTOBUF_FIELD_OFFSET(::Odb::Lib::Protobuf::StepHdrFile, _impl_.steprepeatrecords_), - PROTOBUF_FIELD_OFFSET(::Odb::Lib::Protobuf::StepHdrFile, _impl_.path_), - PROTOBUF_FIELD_OFFSET(::Odb::Lib::Protobuf::StepHdrFile, _impl_.onlinevalues_), - 3, - 4, - 5, - 6, - 7, - 8, - 9, - 10, - 11, - 0, - 12, - 1, - ~0u, - 2, - ~0u, -}; -static const ::_pbi::MigrationSchema schemas[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = { - { 0, 16, -1, sizeof(::Odb::Lib::Protobuf::StepHdrFile_StepRepeatRecord)}, - { 26, 34, -1, sizeof(::Odb::Lib::Protobuf::StepHdrFile_OnlineValuesEntry_DoNotUse)}, - { 36, 57, -1, sizeof(::Odb::Lib::Protobuf::StepHdrFile)}, +static constexpr const ::_pb::EnumDescriptor** + file_level_enum_descriptors_stephdrfile_2eproto = nullptr; +static constexpr const ::_pb::ServiceDescriptor** + file_level_service_descriptors_stephdrfile_2eproto = nullptr; +const ::uint32_t + TableStruct_stephdrfile_2eproto::offsets[] ABSL_ATTRIBUTE_SECTION_VARIABLE( + protodesc_cold) = { + PROTOBUF_FIELD_OFFSET(::Odb::Lib::Protobuf::StepHdrFile_StepRepeatRecord, _impl_._has_bits_), + PROTOBUF_FIELD_OFFSET(::Odb::Lib::Protobuf::StepHdrFile_StepRepeatRecord, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + ~0u, // no _split_ + ~0u, // no sizeof(Split) + PROTOBUF_FIELD_OFFSET(::Odb::Lib::Protobuf::StepHdrFile_StepRepeatRecord, _impl_.name_), + PROTOBUF_FIELD_OFFSET(::Odb::Lib::Protobuf::StepHdrFile_StepRepeatRecord, _impl_.x_), + PROTOBUF_FIELD_OFFSET(::Odb::Lib::Protobuf::StepHdrFile_StepRepeatRecord, _impl_.y_), + PROTOBUF_FIELD_OFFSET(::Odb::Lib::Protobuf::StepHdrFile_StepRepeatRecord, _impl_.dx_), + PROTOBUF_FIELD_OFFSET(::Odb::Lib::Protobuf::StepHdrFile_StepRepeatRecord, _impl_.dy_), + PROTOBUF_FIELD_OFFSET(::Odb::Lib::Protobuf::StepHdrFile_StepRepeatRecord, _impl_.nx_), + PROTOBUF_FIELD_OFFSET(::Odb::Lib::Protobuf::StepHdrFile_StepRepeatRecord, _impl_.ny_), + PROTOBUF_FIELD_OFFSET(::Odb::Lib::Protobuf::StepHdrFile_StepRepeatRecord, _impl_.angle_), + PROTOBUF_FIELD_OFFSET(::Odb::Lib::Protobuf::StepHdrFile_StepRepeatRecord, _impl_.flip_), + PROTOBUF_FIELD_OFFSET(::Odb::Lib::Protobuf::StepHdrFile_StepRepeatRecord, _impl_.mirror_), + 0, + 1, + 2, + 3, + 4, + 5, + 6, + 7, + 8, + 9, + PROTOBUF_FIELD_OFFSET(::Odb::Lib::Protobuf::StepHdrFile_OnlineValuesEntry_DoNotUse, _impl_._has_bits_), + PROTOBUF_FIELD_OFFSET(::Odb::Lib::Protobuf::StepHdrFile_OnlineValuesEntry_DoNotUse, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + ~0u, // no _split_ + ~0u, // no sizeof(Split) + PROTOBUF_FIELD_OFFSET(::Odb::Lib::Protobuf::StepHdrFile_OnlineValuesEntry_DoNotUse, _impl_.key_), + PROTOBUF_FIELD_OFFSET(::Odb::Lib::Protobuf::StepHdrFile_OnlineValuesEntry_DoNotUse, _impl_.value_), + 0, + 1, + PROTOBUF_FIELD_OFFSET(::Odb::Lib::Protobuf::StepHdrFile, _impl_._has_bits_), + PROTOBUF_FIELD_OFFSET(::Odb::Lib::Protobuf::StepHdrFile, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + ~0u, // no _split_ + ~0u, // no sizeof(Split) + PROTOBUF_FIELD_OFFSET(::Odb::Lib::Protobuf::StepHdrFile, _impl_.xdatum_), + PROTOBUF_FIELD_OFFSET(::Odb::Lib::Protobuf::StepHdrFile, _impl_.ydatum_), + PROTOBUF_FIELD_OFFSET(::Odb::Lib::Protobuf::StepHdrFile, _impl_.id_), + PROTOBUF_FIELD_OFFSET(::Odb::Lib::Protobuf::StepHdrFile, _impl_.xorigin_), + PROTOBUF_FIELD_OFFSET(::Odb::Lib::Protobuf::StepHdrFile, _impl_.yorigin_), + PROTOBUF_FIELD_OFFSET(::Odb::Lib::Protobuf::StepHdrFile, _impl_.topactive_), + PROTOBUF_FIELD_OFFSET(::Odb::Lib::Protobuf::StepHdrFile, _impl_.bottomactive_), + PROTOBUF_FIELD_OFFSET(::Odb::Lib::Protobuf::StepHdrFile, _impl_.rightactive_), + PROTOBUF_FIELD_OFFSET(::Odb::Lib::Protobuf::StepHdrFile, _impl_.leftactive_), + PROTOBUF_FIELD_OFFSET(::Odb::Lib::Protobuf::StepHdrFile, _impl_.affectingbom_), + PROTOBUF_FIELD_OFFSET(::Odb::Lib::Protobuf::StepHdrFile, _impl_.affectingbomchanged_), + PROTOBUF_FIELD_OFFSET(::Odb::Lib::Protobuf::StepHdrFile, _impl_.online_), + PROTOBUF_FIELD_OFFSET(::Odb::Lib::Protobuf::StepHdrFile, _impl_.steprepeatrecords_), + PROTOBUF_FIELD_OFFSET(::Odb::Lib::Protobuf::StepHdrFile, _impl_.path_), + PROTOBUF_FIELD_OFFSET(::Odb::Lib::Protobuf::StepHdrFile, _impl_.onlinevalues_), + 3, + 4, + 5, + 6, + 7, + 8, + 9, + 10, + 11, + 0, + 12, + 1, + ~0u, + 2, + ~0u, }; +static const ::_pbi::MigrationSchema + schemas[] ABSL_ATTRIBUTE_SECTION_VARIABLE(protodesc_cold) = { + {0, 18, -1, sizeof(::Odb::Lib::Protobuf::StepHdrFile_StepRepeatRecord)}, + {28, 38, -1, sizeof(::Odb::Lib::Protobuf::StepHdrFile_OnlineValuesEntry_DoNotUse)}, + {40, 63, -1, sizeof(::Odb::Lib::Protobuf::StepHdrFile)}, +}; static const ::_pb::Message* const file_default_instances[] = { - &::Odb::Lib::Protobuf::_StepHdrFile_StepRepeatRecord_default_instance_._instance, - &::Odb::Lib::Protobuf::_StepHdrFile_OnlineValuesEntry_DoNotUse_default_instance_._instance, - &::Odb::Lib::Protobuf::_StepHdrFile_default_instance_._instance, + &::Odb::Lib::Protobuf::_StepHdrFile_StepRepeatRecord_default_instance_._instance, + &::Odb::Lib::Protobuf::_StepHdrFile_OnlineValuesEntry_DoNotUse_default_instance_._instance, + &::Odb::Lib::Protobuf::_StepHdrFile_default_instance_._instance, }; - -const char descriptor_table_protodef_stephdrfile_2eproto[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = - "\n\021stephdrfile.proto\022\020Odb.Lib.Protobuf\"\315\007" - "\n\013StepHdrFile\022\023\n\006xDatum\030\001 \001(\002H\000\210\001\001\022\023\n\006yD" - "atum\030\002 \001(\002H\001\210\001\001\022\017\n\002id\030\003 \001(\005H\002\210\001\001\022\024\n\007xOri" - "gin\030\004 \001(\002H\003\210\001\001\022\024\n\007yOrigin\030\005 \001(\002H\004\210\001\001\022\026\n\t" - "topActive\030\006 \001(\002H\005\210\001\001\022\031\n\014bottomActive\030\007 \001" - "(\002H\006\210\001\001\022\030\n\013rightActive\030\010 \001(\002H\007\210\001\001\022\027\n\nlef" - "tActive\030\t \001(\002H\010\210\001\001\022\031\n\014affectingBom\030\n \001(\t" - "H\t\210\001\001\022 \n\023affectingBomChanged\030\013 \001(\010H\n\210\001\001\022" - "\023\n\006online\030\014 \001(\tH\013\210\001\001\022I\n\021stepRepeatRecord" - "s\030\r \003(\0132..Odb.Lib.Protobuf.StepHdrFile.S" - "tepRepeatRecord\022\021\n\004path\030\016 \001(\tH\014\210\001\001\022E\n\014on" - "lineValues\030\017 \003(\0132/.Odb.Lib.Protobuf.Step" - "HdrFile.OnlineValuesEntry\032\224\002\n\020StepRepeat" - "Record\022\021\n\004name\030\001 \001(\tH\000\210\001\001\022\016\n\001x\030\002 \001(\002H\001\210\001" - "\001\022\016\n\001y\030\003 \001(\002H\002\210\001\001\022\017\n\002dx\030\004 \001(\002H\003\210\001\001\022\017\n\002dy" - "\030\005 \001(\002H\004\210\001\001\022\017\n\002nx\030\006 \001(\005H\005\210\001\001\022\017\n\002ny\030\007 \001(\005" - "H\006\210\001\001\022\022\n\005angle\030\010 \001(\002H\007\210\001\001\022\021\n\004flip\030\t \001(\010H" - "\010\210\001\001\022\023\n\006mirror\030\n \001(\010H\t\210\001\001B\007\n\005_nameB\004\n\002_x" - "B\004\n\002_yB\005\n\003_dxB\005\n\003_dyB\005\n\003_nxB\005\n\003_nyB\010\n\006_a" - "ngleB\007\n\005_flipB\t\n\007_mirror\0323\n\021OnlineValues" - "Entry\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001B\t\n" - "\007_xDatumB\t\n\007_yDatumB\005\n\003_idB\n\n\010_xOriginB\n" - "\n\010_yOriginB\014\n\n_topActiveB\017\n\r_bottomActiv" - "eB\016\n\014_rightActiveB\r\n\013_leftActiveB\017\n\r_aff" - "ectingBomB\026\n\024_affectingBomChangedB\t\n\007_on" - "lineB\007\n\005_pathb\006proto3" - ; -static ::_pbi::once_flag descriptor_table_stephdrfile_2eproto_once; -const ::_pbi::DescriptorTable descriptor_table_stephdrfile_2eproto = { - false, false, 1021, descriptor_table_protodef_stephdrfile_2eproto, +const char descriptor_table_protodef_stephdrfile_2eproto[] ABSL_ATTRIBUTE_SECTION_VARIABLE( + protodesc_cold) = { + "\n\021stephdrfile.proto\022\020Odb.Lib.Protobuf\"\315\007" + "\n\013StepHdrFile\022\023\n\006xDatum\030\001 \001(\002H\000\210\001\001\022\023\n\006yD" + "atum\030\002 \001(\002H\001\210\001\001\022\017\n\002id\030\003 \001(\005H\002\210\001\001\022\024\n\007xOri" + "gin\030\004 \001(\002H\003\210\001\001\022\024\n\007yOrigin\030\005 \001(\002H\004\210\001\001\022\026\n\t" + "topActive\030\006 \001(\002H\005\210\001\001\022\031\n\014bottomActive\030\007 \001" + "(\002H\006\210\001\001\022\030\n\013rightActive\030\010 \001(\002H\007\210\001\001\022\027\n\nlef" + "tActive\030\t \001(\002H\010\210\001\001\022\031\n\014affectingBom\030\n \001(\t" + "H\t\210\001\001\022 \n\023affectingBomChanged\030\013 \001(\010H\n\210\001\001\022" + "\023\n\006online\030\014 \001(\tH\013\210\001\001\022I\n\021stepRepeatRecord" + "s\030\r \003(\0132..Odb.Lib.Protobuf.StepHdrFile.S" + "tepRepeatRecord\022\021\n\004path\030\016 \001(\tH\014\210\001\001\022E\n\014on" + "lineValues\030\017 \003(\0132/.Odb.Lib.Protobuf.Step" + "HdrFile.OnlineValuesEntry\032\224\002\n\020StepRepeat" + "Record\022\021\n\004name\030\001 \001(\tH\000\210\001\001\022\016\n\001x\030\002 \001(\002H\001\210\001" + "\001\022\016\n\001y\030\003 \001(\002H\002\210\001\001\022\017\n\002dx\030\004 \001(\002H\003\210\001\001\022\017\n\002dy" + "\030\005 \001(\002H\004\210\001\001\022\017\n\002nx\030\006 \001(\005H\005\210\001\001\022\017\n\002ny\030\007 \001(\005" + "H\006\210\001\001\022\022\n\005angle\030\010 \001(\002H\007\210\001\001\022\021\n\004flip\030\t \001(\010H" + "\010\210\001\001\022\023\n\006mirror\030\n \001(\010H\t\210\001\001B\007\n\005_nameB\004\n\002_x" + "B\004\n\002_yB\005\n\003_dxB\005\n\003_dyB\005\n\003_nxB\005\n\003_nyB\010\n\006_a" + "ngleB\007\n\005_flipB\t\n\007_mirror\0323\n\021OnlineValues" + "Entry\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001B\t\n" + "\007_xDatumB\t\n\007_yDatumB\005\n\003_idB\n\n\010_xOriginB\n" + "\n\010_yOriginB\014\n\n_topActiveB\017\n\r_bottomActiv" + "eB\016\n\014_rightActiveB\r\n\013_leftActiveB\017\n\r_aff" + "ectingBomB\026\n\024_affectingBomChangedB\t\n\007_on" + "lineB\007\n\005_pathb\006proto3" +}; +static ::absl::once_flag descriptor_table_stephdrfile_2eproto_once; +PROTOBUF_CONSTINIT const ::_pbi::DescriptorTable descriptor_table_stephdrfile_2eproto = { + false, + false, + 1021, + descriptor_table_protodef_stephdrfile_2eproto, "stephdrfile.proto", - &descriptor_table_stephdrfile_2eproto_once, nullptr, 0, 3, - schemas, file_default_instances, TableStruct_stephdrfile_2eproto::offsets, - file_level_metadata_stephdrfile_2eproto, file_level_enum_descriptors_stephdrfile_2eproto, + &descriptor_table_stephdrfile_2eproto_once, + nullptr, + 0, + 3, + schemas, + file_default_instances, + TableStruct_stephdrfile_2eproto::offsets, + file_level_enum_descriptors_stephdrfile_2eproto, file_level_service_descriptors_stephdrfile_2eproto, }; -PROTOBUF_ATTRIBUTE_WEAK const ::_pbi::DescriptorTable* descriptor_table_stephdrfile_2eproto_getter() { - return &descriptor_table_stephdrfile_2eproto; -} - -// Force running AddDescriptors() at dynamic initialization time. -PROTOBUF_ATTRIBUTE_INIT_PRIORITY2 static ::_pbi::AddDescriptorsRunner dynamic_init_dummy_stephdrfile_2eproto(&descriptor_table_stephdrfile_2eproto); namespace Odb { namespace Lib { namespace Protobuf { - // =================================================================== class StepHdrFile_StepRepeatRecord::_Internal { public: - using HasBits = decltype(std::declval()._impl_._has_bits_); - static void set_has_name(HasBits* has_bits) { - (*has_bits)[0] |= 1u; - } - static void set_has_x(HasBits* has_bits) { - (*has_bits)[0] |= 2u; - } - static void set_has_y(HasBits* has_bits) { - (*has_bits)[0] |= 4u; - } - static void set_has_dx(HasBits* has_bits) { - (*has_bits)[0] |= 8u; - } - static void set_has_dy(HasBits* has_bits) { - (*has_bits)[0] |= 16u; - } - static void set_has_nx(HasBits* has_bits) { - (*has_bits)[0] |= 32u; - } - static void set_has_ny(HasBits* has_bits) { - (*has_bits)[0] |= 64u; - } - static void set_has_angle(HasBits* has_bits) { - (*has_bits)[0] |= 128u; - } - static void set_has_flip(HasBits* has_bits) { - (*has_bits)[0] |= 256u; - } - static void set_has_mirror(HasBits* has_bits) { - (*has_bits)[0] |= 512u; - } + using HasBits = + decltype(std::declval()._impl_._has_bits_); + static constexpr ::int32_t kHasBitsOffset = + 8 * PROTOBUF_FIELD_OFFSET(StepHdrFile_StepRepeatRecord, _impl_._has_bits_); }; -StepHdrFile_StepRepeatRecord::StepHdrFile_StepRepeatRecord(::PROTOBUF_NAMESPACE_ID::Arena* arena, - bool is_message_owned) - : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned) { - SharedCtor(arena, is_message_owned); +StepHdrFile_StepRepeatRecord::StepHdrFile_StepRepeatRecord(::google::protobuf::Arena* arena) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : ::google::protobuf::Message(arena, _class_data_.base()) { +#else // PROTOBUF_CUSTOM_VTABLE + : ::google::protobuf::Message(arena) { +#endif // PROTOBUF_CUSTOM_VTABLE + SharedCtor(arena); // @@protoc_insertion_point(arena_constructor:Odb.Lib.Protobuf.StepHdrFile.StepRepeatRecord) } -StepHdrFile_StepRepeatRecord::StepHdrFile_StepRepeatRecord(const StepHdrFile_StepRepeatRecord& from) - : ::PROTOBUF_NAMESPACE_ID::Message() { - StepHdrFile_StepRepeatRecord* const _this = this; (void)_this; - new (&_impl_) Impl_{ - decltype(_impl_._has_bits_){from._impl_._has_bits_} - , /*decltype(_impl_._cached_size_)*/{} - , decltype(_impl_.name_){} - , decltype(_impl_.x_){} - , decltype(_impl_.y_){} - , decltype(_impl_.dx_){} - , decltype(_impl_.dy_){} - , decltype(_impl_.nx_){} - , decltype(_impl_.ny_){} - , decltype(_impl_.angle_){} - , decltype(_impl_.flip_){} - , decltype(_impl_.mirror_){}}; - - _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); - _impl_.name_.InitDefault(); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - _impl_.name_.Set("", GetArenaForAllocation()); - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (from._internal_has_name()) { - _this->_impl_.name_.Set(from._internal_name(), - _this->GetArenaForAllocation()); - } - ::memcpy(&_impl_.x_, &from._impl_.x_, - static_cast(reinterpret_cast(&_impl_.mirror_) - - reinterpret_cast(&_impl_.x_)) + sizeof(_impl_.mirror_)); +inline PROTOBUF_NDEBUG_INLINE StepHdrFile_StepRepeatRecord::Impl_::Impl_( + ::google::protobuf::internal::InternalVisibility visibility, ::google::protobuf::Arena* arena, + const Impl_& from, const ::Odb::Lib::Protobuf::StepHdrFile_StepRepeatRecord& from_msg) + : _has_bits_{from._has_bits_}, + _cached_size_{0}, + name_(arena, from.name_) {} + +StepHdrFile_StepRepeatRecord::StepHdrFile_StepRepeatRecord( + ::google::protobuf::Arena* arena, + const StepHdrFile_StepRepeatRecord& from) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : ::google::protobuf::Message(arena, _class_data_.base()) { +#else // PROTOBUF_CUSTOM_VTABLE + : ::google::protobuf::Message(arena) { +#endif // PROTOBUF_CUSTOM_VTABLE + StepHdrFile_StepRepeatRecord* const _this = this; + (void)_this; + _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( + from._internal_metadata_); + new (&_impl_) Impl_(internal_visibility(), arena, from._impl_, from); + ::memcpy(reinterpret_cast(&_impl_) + + offsetof(Impl_, x_), + reinterpret_cast(&from._impl_) + + offsetof(Impl_, x_), + offsetof(Impl_, mirror_) - + offsetof(Impl_, x_) + + sizeof(Impl_::mirror_)); + // @@protoc_insertion_point(copy_constructor:Odb.Lib.Protobuf.StepHdrFile.StepRepeatRecord) } - -inline void StepHdrFile_StepRepeatRecord::SharedCtor( - ::_pb::Arena* arena, bool is_message_owned) { - (void)arena; - (void)is_message_owned; - new (&_impl_) Impl_{ - decltype(_impl_._has_bits_){} - , /*decltype(_impl_._cached_size_)*/{} - , decltype(_impl_.name_){} - , decltype(_impl_.x_){0} - , decltype(_impl_.y_){0} - , decltype(_impl_.dx_){0} - , decltype(_impl_.dy_){0} - , decltype(_impl_.nx_){0} - , decltype(_impl_.ny_){0} - , decltype(_impl_.angle_){0} - , decltype(_impl_.flip_){false} - , decltype(_impl_.mirror_){false} - }; - _impl_.name_.InitDefault(); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - _impl_.name_.Set("", GetArenaForAllocation()); - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING +inline PROTOBUF_NDEBUG_INLINE StepHdrFile_StepRepeatRecord::Impl_::Impl_( + ::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* arena) + : _cached_size_{0}, + name_(arena) {} + +inline void StepHdrFile_StepRepeatRecord::SharedCtor(::_pb::Arena* arena) { + new (&_impl_) Impl_(internal_visibility(), arena); + ::memset(reinterpret_cast(&_impl_) + + offsetof(Impl_, x_), + 0, + offsetof(Impl_, mirror_) - + offsetof(Impl_, x_) + + sizeof(Impl_::mirror_)); } - StepHdrFile_StepRepeatRecord::~StepHdrFile_StepRepeatRecord() { // @@protoc_insertion_point(destructor:Odb.Lib.Protobuf.StepHdrFile.StepRepeatRecord) - if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) { - (void)arena; - return; - } - SharedDtor(); + SharedDtor(*this); } - -inline void StepHdrFile_StepRepeatRecord::SharedDtor() { - GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); - _impl_.name_.Destroy(); +inline void StepHdrFile_StepRepeatRecord::SharedDtor(MessageLite& self) { + StepHdrFile_StepRepeatRecord& this_ = static_cast(self); + this_._internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); + ABSL_DCHECK(this_.GetArena() == nullptr); + this_._impl_.name_.Destroy(); + this_._impl_.~Impl_(); } -void StepHdrFile_StepRepeatRecord::SetCachedSize(int size) const { - _impl_._cached_size_.Set(size); +inline void* StepHdrFile_StepRepeatRecord::PlacementNew_(const void*, void* mem, + ::google::protobuf::Arena* arena) { + return ::new (mem) StepHdrFile_StepRepeatRecord(arena); +} +constexpr auto StepHdrFile_StepRepeatRecord::InternalNewImpl_() { + return ::google::protobuf::internal::MessageCreator::CopyInit(sizeof(StepHdrFile_StepRepeatRecord), + alignof(StepHdrFile_StepRepeatRecord)); } +PROTOBUF_CONSTINIT +PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 +const ::google::protobuf::internal::ClassDataFull StepHdrFile_StepRepeatRecord::_class_data_ = { + ::google::protobuf::internal::ClassData{ + &_StepHdrFile_StepRepeatRecord_default_instance_._instance, + &_table_.header, + nullptr, // OnDemandRegisterArenaDtor + nullptr, // IsInitialized + &StepHdrFile_StepRepeatRecord::MergeImpl, + ::google::protobuf::Message::GetNewImpl(), +#if defined(PROTOBUF_CUSTOM_VTABLE) + &StepHdrFile_StepRepeatRecord::SharedDtor, + ::google::protobuf::Message::GetClearImpl(), &StepHdrFile_StepRepeatRecord::ByteSizeLong, + &StepHdrFile_StepRepeatRecord::_InternalSerialize, +#endif // PROTOBUF_CUSTOM_VTABLE + PROTOBUF_FIELD_OFFSET(StepHdrFile_StepRepeatRecord, _impl_._cached_size_), + false, + }, + &StepHdrFile_StepRepeatRecord::kDescriptorMethods, + &descriptor_table_stephdrfile_2eproto, + nullptr, // tracker +}; +const ::google::protobuf::internal::ClassData* StepHdrFile_StepRepeatRecord::GetClassData() const { + ::google::protobuf::internal::PrefetchToLocalCache(&_class_data_); + ::google::protobuf::internal::PrefetchToLocalCache(_class_data_.tc_table); + return _class_data_.base(); +} +PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 +const ::_pbi::TcParseTable<4, 10, 0, 66, 2> StepHdrFile_StepRepeatRecord::_table_ = { + { + PROTOBUF_FIELD_OFFSET(StepHdrFile_StepRepeatRecord, _impl_._has_bits_), + 0, // no _extensions_ + 10, 120, // max_field_number, fast_idx_mask + offsetof(decltype(_table_), field_lookup_table), + 4294966272, // skipmap + offsetof(decltype(_table_), field_entries), + 10, // num_field_entries + 0, // num_aux_entries + offsetof(decltype(_table_), field_names), // no aux_entries + _class_data_.base(), + nullptr, // post_loop_handler + ::_pbi::TcParser::GenericFallback, // fallback + #ifdef PROTOBUF_PREFETCH_PARSE_TABLE + ::_pbi::TcParser::GetTable<::Odb::Lib::Protobuf::StepHdrFile_StepRepeatRecord>(), // to_prefetch + #endif // PROTOBUF_PREFETCH_PARSE_TABLE + }, {{ + {::_pbi::TcParser::MiniParse, {}}, + // optional string name = 1; + {::_pbi::TcParser::FastUS1, + {10, 0, 0, PROTOBUF_FIELD_OFFSET(StepHdrFile_StepRepeatRecord, _impl_.name_)}}, + // optional float x = 2; + {::_pbi::TcParser::FastF32S1, + {21, 1, 0, PROTOBUF_FIELD_OFFSET(StepHdrFile_StepRepeatRecord, _impl_.x_)}}, + // optional float y = 3; + {::_pbi::TcParser::FastF32S1, + {29, 2, 0, PROTOBUF_FIELD_OFFSET(StepHdrFile_StepRepeatRecord, _impl_.y_)}}, + // optional float dx = 4; + {::_pbi::TcParser::FastF32S1, + {37, 3, 0, PROTOBUF_FIELD_OFFSET(StepHdrFile_StepRepeatRecord, _impl_.dx_)}}, + // optional float dy = 5; + {::_pbi::TcParser::FastF32S1, + {45, 4, 0, PROTOBUF_FIELD_OFFSET(StepHdrFile_StepRepeatRecord, _impl_.dy_)}}, + // optional int32 nx = 6; + {::_pbi::TcParser::SingularVarintNoZag1<::uint32_t, offsetof(StepHdrFile_StepRepeatRecord, _impl_.nx_), 5>(), + {48, 5, 0, PROTOBUF_FIELD_OFFSET(StepHdrFile_StepRepeatRecord, _impl_.nx_)}}, + // optional int32 ny = 7; + {::_pbi::TcParser::SingularVarintNoZag1<::uint32_t, offsetof(StepHdrFile_StepRepeatRecord, _impl_.ny_), 6>(), + {56, 6, 0, PROTOBUF_FIELD_OFFSET(StepHdrFile_StepRepeatRecord, _impl_.ny_)}}, + // optional float angle = 8; + {::_pbi::TcParser::FastF32S1, + {69, 7, 0, PROTOBUF_FIELD_OFFSET(StepHdrFile_StepRepeatRecord, _impl_.angle_)}}, + // optional bool flip = 9; + {::_pbi::TcParser::SingularVarintNoZag1(), + {72, 8, 0, PROTOBUF_FIELD_OFFSET(StepHdrFile_StepRepeatRecord, _impl_.flip_)}}, + // optional bool mirror = 10; + {::_pbi::TcParser::SingularVarintNoZag1(), + {80, 9, 0, PROTOBUF_FIELD_OFFSET(StepHdrFile_StepRepeatRecord, _impl_.mirror_)}}, + {::_pbi::TcParser::MiniParse, {}}, + {::_pbi::TcParser::MiniParse, {}}, + {::_pbi::TcParser::MiniParse, {}}, + {::_pbi::TcParser::MiniParse, {}}, + {::_pbi::TcParser::MiniParse, {}}, + }}, {{ + 65535, 65535 + }}, {{ + // optional string name = 1; + {PROTOBUF_FIELD_OFFSET(StepHdrFile_StepRepeatRecord, _impl_.name_), _Internal::kHasBitsOffset + 0, 0, + (0 | ::_fl::kFcOptional | ::_fl::kUtf8String | ::_fl::kRepAString)}, + // optional float x = 2; + {PROTOBUF_FIELD_OFFSET(StepHdrFile_StepRepeatRecord, _impl_.x_), _Internal::kHasBitsOffset + 1, 0, + (0 | ::_fl::kFcOptional | ::_fl::kFloat)}, + // optional float y = 3; + {PROTOBUF_FIELD_OFFSET(StepHdrFile_StepRepeatRecord, _impl_.y_), _Internal::kHasBitsOffset + 2, 0, + (0 | ::_fl::kFcOptional | ::_fl::kFloat)}, + // optional float dx = 4; + {PROTOBUF_FIELD_OFFSET(StepHdrFile_StepRepeatRecord, _impl_.dx_), _Internal::kHasBitsOffset + 3, 0, + (0 | ::_fl::kFcOptional | ::_fl::kFloat)}, + // optional float dy = 5; + {PROTOBUF_FIELD_OFFSET(StepHdrFile_StepRepeatRecord, _impl_.dy_), _Internal::kHasBitsOffset + 4, 0, + (0 | ::_fl::kFcOptional | ::_fl::kFloat)}, + // optional int32 nx = 6; + {PROTOBUF_FIELD_OFFSET(StepHdrFile_StepRepeatRecord, _impl_.nx_), _Internal::kHasBitsOffset + 5, 0, + (0 | ::_fl::kFcOptional | ::_fl::kInt32)}, + // optional int32 ny = 7; + {PROTOBUF_FIELD_OFFSET(StepHdrFile_StepRepeatRecord, _impl_.ny_), _Internal::kHasBitsOffset + 6, 0, + (0 | ::_fl::kFcOptional | ::_fl::kInt32)}, + // optional float angle = 8; + {PROTOBUF_FIELD_OFFSET(StepHdrFile_StepRepeatRecord, _impl_.angle_), _Internal::kHasBitsOffset + 7, 0, + (0 | ::_fl::kFcOptional | ::_fl::kFloat)}, + // optional bool flip = 9; + {PROTOBUF_FIELD_OFFSET(StepHdrFile_StepRepeatRecord, _impl_.flip_), _Internal::kHasBitsOffset + 8, 0, + (0 | ::_fl::kFcOptional | ::_fl::kBool)}, + // optional bool mirror = 10; + {PROTOBUF_FIELD_OFFSET(StepHdrFile_StepRepeatRecord, _impl_.mirror_), _Internal::kHasBitsOffset + 9, 0, + (0 | ::_fl::kFcOptional | ::_fl::kBool)}, + }}, + // no aux_entries + {{ + "\55\4\0\0\0\0\0\0\0\0\0\0\0\0\0\0" + "Odb.Lib.Protobuf.StepHdrFile.StepRepeatRecord" + "name" + }}, +}; -void StepHdrFile_StepRepeatRecord::Clear() { +PROTOBUF_NOINLINE void StepHdrFile_StepRepeatRecord::Clear() { // @@protoc_insertion_point(message_clear_start:Odb.Lib.Protobuf.StepHdrFile.StepRepeatRecord) - uint32_t cached_has_bits = 0; + ::google::protobuf::internal::TSanWrite(&_impl_); + ::uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; @@ -353,300 +496,188 @@ void StepHdrFile_StepRepeatRecord::Clear() { _impl_.name_.ClearNonDefaultToEmpty(); } if (cached_has_bits & 0x000000feu) { - ::memset(&_impl_.x_, 0, static_cast( + ::memset(&_impl_.x_, 0, static_cast<::size_t>( reinterpret_cast(&_impl_.angle_) - reinterpret_cast(&_impl_.x_)) + sizeof(_impl_.angle_)); } if (cached_has_bits & 0x00000300u) { - ::memset(&_impl_.flip_, 0, static_cast( + ::memset(&_impl_.flip_, 0, static_cast<::size_t>( reinterpret_cast(&_impl_.mirror_) - reinterpret_cast(&_impl_.flip_)) + sizeof(_impl_.mirror_)); } _impl_._has_bits_.Clear(); - _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); + _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); } -const char* StepHdrFile_StepRepeatRecord::_InternalParse(const char* ptr, ::_pbi::ParseContext* ctx) { -#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure - _Internal::HasBits has_bits{}; - while (!ctx->Done(&ptr)) { - uint32_t tag; - ptr = ::_pbi::ReadTag(ptr, &tag); - switch (tag >> 3) { - // optional string name = 1; - case 1: - if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 10)) { - auto str = _internal_mutable_name(); - ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); - CHK_(ptr); - CHK_(::_pbi::VerifyUTF8(str, "Odb.Lib.Protobuf.StepHdrFile.StepRepeatRecord.name")); - } else - goto handle_unusual; - continue; - // optional float x = 2; - case 2: - if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 21)) { - _Internal::set_has_x(&has_bits); - _impl_.x_ = ::PROTOBUF_NAMESPACE_ID::internal::UnalignedLoad(ptr); - ptr += sizeof(float); - } else - goto handle_unusual; - continue; - // optional float y = 3; - case 3: - if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 29)) { - _Internal::set_has_y(&has_bits); - _impl_.y_ = ::PROTOBUF_NAMESPACE_ID::internal::UnalignedLoad(ptr); - ptr += sizeof(float); - } else - goto handle_unusual; - continue; - // optional float dx = 4; - case 4: - if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 37)) { - _Internal::set_has_dx(&has_bits); - _impl_.dx_ = ::PROTOBUF_NAMESPACE_ID::internal::UnalignedLoad(ptr); - ptr += sizeof(float); - } else - goto handle_unusual; - continue; - // optional float dy = 5; - case 5: - if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 45)) { - _Internal::set_has_dy(&has_bits); - _impl_.dy_ = ::PROTOBUF_NAMESPACE_ID::internal::UnalignedLoad(ptr); - ptr += sizeof(float); - } else - goto handle_unusual; - continue; - // optional int32 nx = 6; - case 6: - if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 48)) { - _Internal::set_has_nx(&has_bits); - _impl_.nx_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr); - CHK_(ptr); - } else - goto handle_unusual; - continue; - // optional int32 ny = 7; - case 7: - if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 56)) { - _Internal::set_has_ny(&has_bits); - _impl_.ny_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr); - CHK_(ptr); - } else - goto handle_unusual; - continue; - // optional float angle = 8; - case 8: - if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 69)) { - _Internal::set_has_angle(&has_bits); - _impl_.angle_ = ::PROTOBUF_NAMESPACE_ID::internal::UnalignedLoad(ptr); - ptr += sizeof(float); - } else - goto handle_unusual; - continue; - // optional bool flip = 9; - case 9: - if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 72)) { - _Internal::set_has_flip(&has_bits); - _impl_.flip_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); - CHK_(ptr); - } else - goto handle_unusual; - continue; - // optional bool mirror = 10; - case 10: - if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 80)) { - _Internal::set_has_mirror(&has_bits); - _impl_.mirror_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); - CHK_(ptr); - } else - goto handle_unusual; - continue; - default: - goto handle_unusual; - } // switch - handle_unusual: - if ((tag == 0) || ((tag & 7) == 4)) { - CHK_(ptr); - ctx->SetLastTag(tag); - goto message_done; - } - ptr = UnknownFieldParse( - tag, - _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(), - ptr, ctx); - CHK_(ptr != nullptr); - } // while -message_done: - _impl_._has_bits_.Or(has_bits); - return ptr; -failure: - ptr = nullptr; - goto message_done; -#undef CHK_ -} - -uint8_t* StepHdrFile_StepRepeatRecord::_InternalSerialize( - uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { - // @@protoc_insertion_point(serialize_to_array_start:Odb.Lib.Protobuf.StepHdrFile.StepRepeatRecord) - uint32_t cached_has_bits = 0; - (void) cached_has_bits; - - // optional string name = 1; - if (_internal_has_name()) { - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( - this->_internal_name().data(), static_cast(this->_internal_name().length()), - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, - "Odb.Lib.Protobuf.StepHdrFile.StepRepeatRecord.name"); - target = stream->WriteStringMaybeAliased( - 1, this->_internal_name(), target); - } - - // optional float x = 2; - if (_internal_has_x()) { - target = stream->EnsureSpace(target); - target = ::_pbi::WireFormatLite::WriteFloatToArray(2, this->_internal_x(), target); - } - - // optional float y = 3; - if (_internal_has_y()) { - target = stream->EnsureSpace(target); - target = ::_pbi::WireFormatLite::WriteFloatToArray(3, this->_internal_y(), target); - } - - // optional float dx = 4; - if (_internal_has_dx()) { - target = stream->EnsureSpace(target); - target = ::_pbi::WireFormatLite::WriteFloatToArray(4, this->_internal_dx(), target); - } - - // optional float dy = 5; - if (_internal_has_dy()) { - target = stream->EnsureSpace(target); - target = ::_pbi::WireFormatLite::WriteFloatToArray(5, this->_internal_dy(), target); - } - - // optional int32 nx = 6; - if (_internal_has_nx()) { - target = stream->EnsureSpace(target); - target = ::_pbi::WireFormatLite::WriteInt32ToArray(6, this->_internal_nx(), target); - } - - // optional int32 ny = 7; - if (_internal_has_ny()) { - target = stream->EnsureSpace(target); - target = ::_pbi::WireFormatLite::WriteInt32ToArray(7, this->_internal_ny(), target); - } - - // optional float angle = 8; - if (_internal_has_angle()) { - target = stream->EnsureSpace(target); - target = ::_pbi::WireFormatLite::WriteFloatToArray(8, this->_internal_angle(), target); - } - - // optional bool flip = 9; - if (_internal_has_flip()) { - target = stream->EnsureSpace(target); - target = ::_pbi::WireFormatLite::WriteBoolToArray(9, this->_internal_flip(), target); - } - - // optional bool mirror = 10; - if (_internal_has_mirror()) { - target = stream->EnsureSpace(target); - target = ::_pbi::WireFormatLite::WriteBoolToArray(10, this->_internal_mirror(), target); - } - - if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = ::_pbi::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:Odb.Lib.Protobuf.StepHdrFile.StepRepeatRecord) - return target; -} - -size_t StepHdrFile_StepRepeatRecord::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:Odb.Lib.Protobuf.StepHdrFile.StepRepeatRecord) - size_t total_size = 0; - - uint32_t cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - cached_has_bits = _impl_._has_bits_[0]; - if (cached_has_bits & 0x000000ffu) { - // optional string name = 1; - if (cached_has_bits & 0x00000001u) { - total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( - this->_internal_name()); - } - - // optional float x = 2; - if (cached_has_bits & 0x00000002u) { - total_size += 1 + 4; - } - - // optional float y = 3; - if (cached_has_bits & 0x00000004u) { - total_size += 1 + 4; - } - - // optional float dx = 4; - if (cached_has_bits & 0x00000008u) { - total_size += 1 + 4; - } - - // optional float dy = 5; - if (cached_has_bits & 0x00000010u) { - total_size += 1 + 4; - } - - // optional int32 nx = 6; - if (cached_has_bits & 0x00000020u) { - total_size += ::_pbi::WireFormatLite::Int32SizePlusOne(this->_internal_nx()); - } - - // optional int32 ny = 7; - if (cached_has_bits & 0x00000040u) { - total_size += ::_pbi::WireFormatLite::Int32SizePlusOne(this->_internal_ny()); - } - - // optional float angle = 8; - if (cached_has_bits & 0x00000080u) { - total_size += 1 + 4; - } - - } - if (cached_has_bits & 0x00000300u) { - // optional bool flip = 9; - if (cached_has_bits & 0x00000100u) { - total_size += 1 + 1; - } - - // optional bool mirror = 10; - if (cached_has_bits & 0x00000200u) { - total_size += 1 + 1; - } - - } - return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); -} - -const ::PROTOBUF_NAMESPACE_ID::Message::ClassData StepHdrFile_StepRepeatRecord::_class_data_ = { - ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSourceCheck, - StepHdrFile_StepRepeatRecord::MergeImpl -}; -const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*StepHdrFile_StepRepeatRecord::GetClassData() const { return &_class_data_; } - - -void StepHdrFile_StepRepeatRecord::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg) { +#if defined(PROTOBUF_CUSTOM_VTABLE) + ::uint8_t* StepHdrFile_StepRepeatRecord::_InternalSerialize( + const MessageLite& base, ::uint8_t* target, + ::google::protobuf::io::EpsCopyOutputStream* stream) { + const StepHdrFile_StepRepeatRecord& this_ = static_cast(base); +#else // PROTOBUF_CUSTOM_VTABLE + ::uint8_t* StepHdrFile_StepRepeatRecord::_InternalSerialize( + ::uint8_t* target, + ::google::protobuf::io::EpsCopyOutputStream* stream) const { + const StepHdrFile_StepRepeatRecord& this_ = *this; +#endif // PROTOBUF_CUSTOM_VTABLE + // @@protoc_insertion_point(serialize_to_array_start:Odb.Lib.Protobuf.StepHdrFile.StepRepeatRecord) + ::uint32_t cached_has_bits = 0; + (void)cached_has_bits; + + cached_has_bits = this_._impl_._has_bits_[0]; + // optional string name = 1; + if (cached_has_bits & 0x00000001u) { + const std::string& _s = this_._internal_name(); + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + _s.data(), static_cast(_s.length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "Odb.Lib.Protobuf.StepHdrFile.StepRepeatRecord.name"); + target = stream->WriteStringMaybeAliased(1, _s, target); + } + + // optional float x = 2; + if (cached_has_bits & 0x00000002u) { + target = stream->EnsureSpace(target); + target = ::_pbi::WireFormatLite::WriteFloatToArray( + 2, this_._internal_x(), target); + } + + // optional float y = 3; + if (cached_has_bits & 0x00000004u) { + target = stream->EnsureSpace(target); + target = ::_pbi::WireFormatLite::WriteFloatToArray( + 3, this_._internal_y(), target); + } + + // optional float dx = 4; + if (cached_has_bits & 0x00000008u) { + target = stream->EnsureSpace(target); + target = ::_pbi::WireFormatLite::WriteFloatToArray( + 4, this_._internal_dx(), target); + } + + // optional float dy = 5; + if (cached_has_bits & 0x00000010u) { + target = stream->EnsureSpace(target); + target = ::_pbi::WireFormatLite::WriteFloatToArray( + 5, this_._internal_dy(), target); + } + + // optional int32 nx = 6; + if (cached_has_bits & 0x00000020u) { + target = ::google::protobuf::internal::WireFormatLite:: + WriteInt32ToArrayWithField<6>( + stream, this_._internal_nx(), target); + } + + // optional int32 ny = 7; + if (cached_has_bits & 0x00000040u) { + target = ::google::protobuf::internal::WireFormatLite:: + WriteInt32ToArrayWithField<7>( + stream, this_._internal_ny(), target); + } + + // optional float angle = 8; + if (cached_has_bits & 0x00000080u) { + target = stream->EnsureSpace(target); + target = ::_pbi::WireFormatLite::WriteFloatToArray( + 8, this_._internal_angle(), target); + } + + // optional bool flip = 9; + if (cached_has_bits & 0x00000100u) { + target = stream->EnsureSpace(target); + target = ::_pbi::WireFormatLite::WriteBoolToArray( + 9, this_._internal_flip(), target); + } + + // optional bool mirror = 10; + if (cached_has_bits & 0x00000200u) { + target = stream->EnsureSpace(target); + target = ::_pbi::WireFormatLite::WriteBoolToArray( + 10, this_._internal_mirror(), target); + } + + if (PROTOBUF_PREDICT_FALSE(this_._internal_metadata_.have_unknown_fields())) { + target = + ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( + this_._internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); + } + // @@protoc_insertion_point(serialize_to_array_end:Odb.Lib.Protobuf.StepHdrFile.StepRepeatRecord) + return target; + } + +#if defined(PROTOBUF_CUSTOM_VTABLE) + ::size_t StepHdrFile_StepRepeatRecord::ByteSizeLong(const MessageLite& base) { + const StepHdrFile_StepRepeatRecord& this_ = static_cast(base); +#else // PROTOBUF_CUSTOM_VTABLE + ::size_t StepHdrFile_StepRepeatRecord::ByteSizeLong() const { + const StepHdrFile_StepRepeatRecord& this_ = *this; +#endif // PROTOBUF_CUSTOM_VTABLE + // @@protoc_insertion_point(message_byte_size_start:Odb.Lib.Protobuf.StepHdrFile.StepRepeatRecord) + ::size_t total_size = 0; + + ::uint32_t cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void)cached_has_bits; + + ::_pbi::Prefetch5LinesFrom7Lines(&this_); + cached_has_bits = this_._impl_._has_bits_[0]; + if (cached_has_bits & 0x000000ffu) { + // optional string name = 1; + if (cached_has_bits & 0x00000001u) { + total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize( + this_._internal_name()); + } + // optional float x = 2; + if (cached_has_bits & 0x00000002u) { + total_size += 5; + } + // optional float y = 3; + if (cached_has_bits & 0x00000004u) { + total_size += 5; + } + // optional float dx = 4; + if (cached_has_bits & 0x00000008u) { + total_size += 5; + } + // optional float dy = 5; + if (cached_has_bits & 0x00000010u) { + total_size += 5; + } + // optional int32 nx = 6; + if (cached_has_bits & 0x00000020u) { + total_size += ::_pbi::WireFormatLite::Int32SizePlusOne( + this_._internal_nx()); + } + // optional int32 ny = 7; + if (cached_has_bits & 0x00000040u) { + total_size += ::_pbi::WireFormatLite::Int32SizePlusOne( + this_._internal_ny()); + } + // optional float angle = 8; + if (cached_has_bits & 0x00000080u) { + total_size += 5; + } + } + if (cached_has_bits & 0x00000300u) { + // optional bool flip = 9; + if (cached_has_bits & 0x00000100u) { + total_size += 2; + } + // optional bool mirror = 10; + if (cached_has_bits & 0x00000200u) { + total_size += 2; + } + } + return this_.MaybeComputeUnknownFieldsSize(total_size, + &this_._impl_._cached_size_); + } + +void StepHdrFile_StepRepeatRecord::MergeImpl(::google::protobuf::MessageLite& to_msg, const ::google::protobuf::MessageLite& from_msg) { auto* const _this = static_cast(&to_msg); auto& from = static_cast(from_msg); // @@protoc_insertion_point(class_specific_merge_from_start:Odb.Lib.Protobuf.StepHdrFile.StepRepeatRecord) - GOOGLE_DCHECK_NE(&from, _this); - uint32_t cached_has_bits = 0; + ABSL_DCHECK_NE(&from, _this); + ::uint32_t cached_has_bits = 0; (void) cached_has_bits; cached_has_bits = from._impl_._has_bits_[0]; @@ -675,7 +706,6 @@ void StepHdrFile_StepRepeatRecord::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& t if (cached_has_bits & 0x00000080u) { _this->_impl_.angle_ = from._impl_.angle_; } - _this->_impl_._has_bits_[0] |= cached_has_bits; } if (cached_has_bits & 0x00000300u) { if (cached_has_bits & 0x00000100u) { @@ -684,9 +714,9 @@ void StepHdrFile_StepRepeatRecord::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& t if (cached_has_bits & 0x00000200u) { _this->_impl_.mirror_ = from._impl_.mirror_; } - _this->_impl_._has_bits_[0] |= cached_has_bits; } - _this->_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); + _this->_impl_._has_bits_[0] |= cached_has_bits; + _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); } void StepHdrFile_StepRepeatRecord::CopyFrom(const StepHdrFile_StepRepeatRecord& from) { @@ -696,21 +726,15 @@ void StepHdrFile_StepRepeatRecord::CopyFrom(const StepHdrFile_StepRepeatRecord& MergeFrom(from); } -bool StepHdrFile_StepRepeatRecord::IsInitialized() const { - return true; -} -void StepHdrFile_StepRepeatRecord::InternalSwap(StepHdrFile_StepRepeatRecord* other) { +void StepHdrFile_StepRepeatRecord::InternalSwap(StepHdrFile_StepRepeatRecord* PROTOBUF_RESTRICT other) { using std::swap; - auto* lhs_arena = GetArenaForAllocation(); - auto* rhs_arena = other->GetArenaForAllocation(); + auto* arena = GetArena(); + ABSL_DCHECK_EQ(arena, other->GetArena()); _internal_metadata_.InternalSwap(&other->_internal_metadata_); swap(_impl_._has_bits_[0], other->_impl_._has_bits_[0]); - ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( - &_impl_.name_, lhs_arena, - &other->_impl_.name_, rhs_arena - ); - ::PROTOBUF_NAMESPACE_ID::internal::memswap< + ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.name_, &other->_impl_.name_, arena); + ::google::protobuf::internal::memswap< PROTOBUF_FIELD_OFFSET(StepHdrFile_StepRepeatRecord, _impl_.mirror_) + sizeof(StepHdrFile_StepRepeatRecord::_impl_.mirror_) - PROTOBUF_FIELD_OFFSET(StepHdrFile_StepRepeatRecord, _impl_.x_)>( @@ -718,203 +742,372 @@ void StepHdrFile_StepRepeatRecord::InternalSwap(StepHdrFile_StepRepeatRecord* ot reinterpret_cast(&other->_impl_.x_)); } -::PROTOBUF_NAMESPACE_ID::Metadata StepHdrFile_StepRepeatRecord::GetMetadata() const { - return ::_pbi::AssignDescriptors( - &descriptor_table_stephdrfile_2eproto_getter, &descriptor_table_stephdrfile_2eproto_once, - file_level_metadata_stephdrfile_2eproto[0]); +::google::protobuf::Metadata StepHdrFile_StepRepeatRecord::GetMetadata() const { + return ::google::protobuf::Message::GetMetadataImpl(GetClassData()->full()); } - // =================================================================== -StepHdrFile_OnlineValuesEntry_DoNotUse::StepHdrFile_OnlineValuesEntry_DoNotUse() {} -StepHdrFile_OnlineValuesEntry_DoNotUse::StepHdrFile_OnlineValuesEntry_DoNotUse(::PROTOBUF_NAMESPACE_ID::Arena* arena) - : SuperType(arena) {} -void StepHdrFile_OnlineValuesEntry_DoNotUse::MergeFrom(const StepHdrFile_OnlineValuesEntry_DoNotUse& other) { - MergeFromInternal(other); -} -::PROTOBUF_NAMESPACE_ID::Metadata StepHdrFile_OnlineValuesEntry_DoNotUse::GetMetadata() const { - return ::_pbi::AssignDescriptors( - &descriptor_table_stephdrfile_2eproto_getter, &descriptor_table_stephdrfile_2eproto_once, - file_level_metadata_stephdrfile_2eproto[1]); -} +#if defined(PROTOBUF_CUSTOM_VTABLE) + StepHdrFile_OnlineValuesEntry_DoNotUse::StepHdrFile_OnlineValuesEntry_DoNotUse() : SuperType(_class_data_.base()) {} + StepHdrFile_OnlineValuesEntry_DoNotUse::StepHdrFile_OnlineValuesEntry_DoNotUse(::google::protobuf::Arena* arena) + : SuperType(arena, _class_data_.base()) {} +#else // PROTOBUF_CUSTOM_VTABLE + StepHdrFile_OnlineValuesEntry_DoNotUse::StepHdrFile_OnlineValuesEntry_DoNotUse() : SuperType() {} + StepHdrFile_OnlineValuesEntry_DoNotUse::StepHdrFile_OnlineValuesEntry_DoNotUse(::google::protobuf::Arena* arena) : SuperType(arena) {} +#endif // PROTOBUF_CUSTOM_VTABLE + inline void* StepHdrFile_OnlineValuesEntry_DoNotUse::PlacementNew_(const void*, void* mem, + ::google::protobuf::Arena* arena) { + return ::new (mem) StepHdrFile_OnlineValuesEntry_DoNotUse(arena); + } + constexpr auto StepHdrFile_OnlineValuesEntry_DoNotUse::InternalNewImpl_() { + return ::google::protobuf::internal::MessageCreator::CopyInit(sizeof(StepHdrFile_OnlineValuesEntry_DoNotUse), + alignof(StepHdrFile_OnlineValuesEntry_DoNotUse)); + } + PROTOBUF_CONSTINIT + PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 + const ::google::protobuf::internal::ClassDataFull StepHdrFile_OnlineValuesEntry_DoNotUse::_class_data_ = { + ::google::protobuf::internal::ClassData{ + &_StepHdrFile_OnlineValuesEntry_DoNotUse_default_instance_._instance, + &_table_.header, + nullptr, // OnDemandRegisterArenaDtor + nullptr, // IsInitialized + &StepHdrFile_OnlineValuesEntry_DoNotUse::MergeImpl, + ::google::protobuf::Message::GetNewImpl(), + #if defined(PROTOBUF_CUSTOM_VTABLE) + &StepHdrFile_OnlineValuesEntry_DoNotUse::SharedDtor, + static_cast( + &StepHdrFile_OnlineValuesEntry_DoNotUse::ClearImpl), + ::google::protobuf::Message::ByteSizeLongImpl, ::google::protobuf::Message::_InternalSerializeImpl + , + #endif // PROTOBUF_CUSTOM_VTABLE + PROTOBUF_FIELD_OFFSET(StepHdrFile_OnlineValuesEntry_DoNotUse, _impl_._cached_size_), + false, + }, + &StepHdrFile_OnlineValuesEntry_DoNotUse::kDescriptorMethods, + &descriptor_table_stephdrfile_2eproto, + nullptr, // tracker + }; + const ::google::protobuf::internal::ClassData* StepHdrFile_OnlineValuesEntry_DoNotUse::GetClassData() const { + ::google::protobuf::internal::PrefetchToLocalCache(&_class_data_); + ::google::protobuf::internal::PrefetchToLocalCache(_class_data_.tc_table); + return _class_data_.base(); + } +PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 +const ::_pbi::TcParseTable<1, 2, 0, 63, 2> StepHdrFile_OnlineValuesEntry_DoNotUse::_table_ = { + { + PROTOBUF_FIELD_OFFSET(StepHdrFile_OnlineValuesEntry_DoNotUse, _impl_._has_bits_), + 0, // no _extensions_ + 2, 8, // max_field_number, fast_idx_mask + offsetof(decltype(_table_), field_lookup_table), + 4294967292, // skipmap + offsetof(decltype(_table_), field_entries), + 2, // num_field_entries + 0, // num_aux_entries + offsetof(decltype(_table_), field_names), // no aux_entries + _class_data_.base(), + nullptr, // post_loop_handler + ::_pbi::TcParser::DiscardEverythingFallback, // fallback + #ifdef PROTOBUF_PREFETCH_PARSE_TABLE + ::_pbi::TcParser::GetTable<::Odb::Lib::Protobuf::StepHdrFile_OnlineValuesEntry_DoNotUse>(), // to_prefetch + #endif // PROTOBUF_PREFETCH_PARSE_TABLE + }, {{ + // string value = 2; + {::_pbi::TcParser::FastUS1, + {18, 63, 0, PROTOBUF_FIELD_OFFSET(StepHdrFile_OnlineValuesEntry_DoNotUse, _impl_.value_)}}, + // string key = 1; + {::_pbi::TcParser::FastUS1, + {10, 63, 0, PROTOBUF_FIELD_OFFSET(StepHdrFile_OnlineValuesEntry_DoNotUse, _impl_.key_)}}, + }}, {{ + 65535, 65535 + }}, {{ + // string key = 1; + {PROTOBUF_FIELD_OFFSET(StepHdrFile_OnlineValuesEntry_DoNotUse, _impl_.key_), -1, 0, + (0 | ::_fl::kFcSingular | ::_fl::kUtf8String | ::_fl::kRepAString)}, + // string value = 2; + {PROTOBUF_FIELD_OFFSET(StepHdrFile_OnlineValuesEntry_DoNotUse, _impl_.value_), -1, 0, + (0 | ::_fl::kFcSingular | ::_fl::kUtf8String | ::_fl::kRepAString)}, + }}, + // no aux_entries + {{ + "\56\3\5\0\0\0\0\0" + "Odb.Lib.Protobuf.StepHdrFile.OnlineValuesEntry" + "key" + "value" + }}, +}; // =================================================================== class StepHdrFile::_Internal { public: - using HasBits = decltype(std::declval()._impl_._has_bits_); - static void set_has_xdatum(HasBits* has_bits) { - (*has_bits)[0] |= 8u; - } - static void set_has_ydatum(HasBits* has_bits) { - (*has_bits)[0] |= 16u; - } - static void set_has_id(HasBits* has_bits) { - (*has_bits)[0] |= 32u; - } - static void set_has_xorigin(HasBits* has_bits) { - (*has_bits)[0] |= 64u; - } - static void set_has_yorigin(HasBits* has_bits) { - (*has_bits)[0] |= 128u; - } - static void set_has_topactive(HasBits* has_bits) { - (*has_bits)[0] |= 256u; - } - static void set_has_bottomactive(HasBits* has_bits) { - (*has_bits)[0] |= 512u; - } - static void set_has_rightactive(HasBits* has_bits) { - (*has_bits)[0] |= 1024u; - } - static void set_has_leftactive(HasBits* has_bits) { - (*has_bits)[0] |= 2048u; - } - static void set_has_affectingbom(HasBits* has_bits) { - (*has_bits)[0] |= 1u; - } - static void set_has_affectingbomchanged(HasBits* has_bits) { - (*has_bits)[0] |= 4096u; - } - static void set_has_online(HasBits* has_bits) { - (*has_bits)[0] |= 2u; - } - static void set_has_path(HasBits* has_bits) { - (*has_bits)[0] |= 4u; - } + using HasBits = + decltype(std::declval()._impl_._has_bits_); + static constexpr ::int32_t kHasBitsOffset = + 8 * PROTOBUF_FIELD_OFFSET(StepHdrFile, _impl_._has_bits_); }; -StepHdrFile::StepHdrFile(::PROTOBUF_NAMESPACE_ID::Arena* arena, - bool is_message_owned) - : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned) { - SharedCtor(arena, is_message_owned); - if (arena != nullptr && !is_message_owned) { - arena->OwnCustomDestructor(this, &StepHdrFile::ArenaDtor); - } +StepHdrFile::StepHdrFile(::google::protobuf::Arena* arena) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : ::google::protobuf::Message(arena, _class_data_.base()) { +#else // PROTOBUF_CUSTOM_VTABLE + : ::google::protobuf::Message(arena) { +#endif // PROTOBUF_CUSTOM_VTABLE + SharedCtor(arena); // @@protoc_insertion_point(arena_constructor:Odb.Lib.Protobuf.StepHdrFile) } -StepHdrFile::StepHdrFile(const StepHdrFile& from) - : ::PROTOBUF_NAMESPACE_ID::Message() { - StepHdrFile* const _this = this; (void)_this; - new (&_impl_) Impl_{ - decltype(_impl_._has_bits_){from._impl_._has_bits_} - , /*decltype(_impl_._cached_size_)*/{} - , decltype(_impl_.steprepeatrecords_){from._impl_.steprepeatrecords_} - , /*decltype(_impl_.onlinevalues_)*/{} - , decltype(_impl_.affectingbom_){} - , decltype(_impl_.online_){} - , decltype(_impl_.path_){} - , decltype(_impl_.xdatum_){} - , decltype(_impl_.ydatum_){} - , decltype(_impl_.id_){} - , decltype(_impl_.xorigin_){} - , decltype(_impl_.yorigin_){} - , decltype(_impl_.topactive_){} - , decltype(_impl_.bottomactive_){} - , decltype(_impl_.rightactive_){} - , decltype(_impl_.leftactive_){} - , decltype(_impl_.affectingbomchanged_){}}; - - _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); - _this->_impl_.onlinevalues_.MergeFrom(from._impl_.onlinevalues_); - _impl_.affectingbom_.InitDefault(); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - _impl_.affectingbom_.Set("", GetArenaForAllocation()); - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (from._internal_has_affectingbom()) { - _this->_impl_.affectingbom_.Set(from._internal_affectingbom(), - _this->GetArenaForAllocation()); - } - _impl_.online_.InitDefault(); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - _impl_.online_.Set("", GetArenaForAllocation()); - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (from._internal_has_online()) { - _this->_impl_.online_.Set(from._internal_online(), - _this->GetArenaForAllocation()); - } - _impl_.path_.InitDefault(); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - _impl_.path_.Set("", GetArenaForAllocation()); - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (from._internal_has_path()) { - _this->_impl_.path_.Set(from._internal_path(), - _this->GetArenaForAllocation()); - } - ::memcpy(&_impl_.xdatum_, &from._impl_.xdatum_, - static_cast(reinterpret_cast(&_impl_.affectingbomchanged_) - - reinterpret_cast(&_impl_.xdatum_)) + sizeof(_impl_.affectingbomchanged_)); +inline PROTOBUF_NDEBUG_INLINE StepHdrFile::Impl_::Impl_( + ::google::protobuf::internal::InternalVisibility visibility, ::google::protobuf::Arena* arena, + const Impl_& from, const ::Odb::Lib::Protobuf::StepHdrFile& from_msg) + : _has_bits_{from._has_bits_}, + _cached_size_{0}, + steprepeatrecords_{visibility, arena, from.steprepeatrecords_}, + onlinevalues_{visibility, arena, from.onlinevalues_}, + affectingbom_(arena, from.affectingbom_), + online_(arena, from.online_), + path_(arena, from.path_) {} + +StepHdrFile::StepHdrFile( + ::google::protobuf::Arena* arena, + const StepHdrFile& from) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : ::google::protobuf::Message(arena, _class_data_.base()) { +#else // PROTOBUF_CUSTOM_VTABLE + : ::google::protobuf::Message(arena) { +#endif // PROTOBUF_CUSTOM_VTABLE + StepHdrFile* const _this = this; + (void)_this; + _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( + from._internal_metadata_); + new (&_impl_) Impl_(internal_visibility(), arena, from._impl_, from); + ::memcpy(reinterpret_cast(&_impl_) + + offsetof(Impl_, xdatum_), + reinterpret_cast(&from._impl_) + + offsetof(Impl_, xdatum_), + offsetof(Impl_, affectingbomchanged_) - + offsetof(Impl_, xdatum_) + + sizeof(Impl_::affectingbomchanged_)); + // @@protoc_insertion_point(copy_constructor:Odb.Lib.Protobuf.StepHdrFile) } - -inline void StepHdrFile::SharedCtor( - ::_pb::Arena* arena, bool is_message_owned) { - (void)arena; - (void)is_message_owned; - new (&_impl_) Impl_{ - decltype(_impl_._has_bits_){} - , /*decltype(_impl_._cached_size_)*/{} - , decltype(_impl_.steprepeatrecords_){arena} - , /*decltype(_impl_.onlinevalues_)*/{::_pbi::ArenaInitialized(), arena} - , decltype(_impl_.affectingbom_){} - , decltype(_impl_.online_){} - , decltype(_impl_.path_){} - , decltype(_impl_.xdatum_){0} - , decltype(_impl_.ydatum_){0} - , decltype(_impl_.id_){0} - , decltype(_impl_.xorigin_){0} - , decltype(_impl_.yorigin_){0} - , decltype(_impl_.topactive_){0} - , decltype(_impl_.bottomactive_){0} - , decltype(_impl_.rightactive_){0} - , decltype(_impl_.leftactive_){0} - , decltype(_impl_.affectingbomchanged_){false} - }; - _impl_.affectingbom_.InitDefault(); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - _impl_.affectingbom_.Set("", GetArenaForAllocation()); - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING - _impl_.online_.InitDefault(); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - _impl_.online_.Set("", GetArenaForAllocation()); - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING - _impl_.path_.InitDefault(); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - _impl_.path_.Set("", GetArenaForAllocation()); - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING +inline PROTOBUF_NDEBUG_INLINE StepHdrFile::Impl_::Impl_( + ::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* arena) + : _cached_size_{0}, + steprepeatrecords_{visibility, arena}, + onlinevalues_{visibility, arena}, + affectingbom_(arena), + online_(arena), + path_(arena) {} + +inline void StepHdrFile::SharedCtor(::_pb::Arena* arena) { + new (&_impl_) Impl_(internal_visibility(), arena); + ::memset(reinterpret_cast(&_impl_) + + offsetof(Impl_, xdatum_), + 0, + offsetof(Impl_, affectingbomchanged_) - + offsetof(Impl_, xdatum_) + + sizeof(Impl_::affectingbomchanged_)); } - StepHdrFile::~StepHdrFile() { // @@protoc_insertion_point(destructor:Odb.Lib.Protobuf.StepHdrFile) - if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) { - (void)arena; - ArenaDtor(this); - return; - } - SharedDtor(); + SharedDtor(*this); } - -inline void StepHdrFile::SharedDtor() { - GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); - _impl_.steprepeatrecords_.~RepeatedPtrField(); - _impl_.onlinevalues_.Destruct(); - _impl_.onlinevalues_.~MapField(); - _impl_.affectingbom_.Destroy(); - _impl_.online_.Destroy(); - _impl_.path_.Destroy(); +inline void StepHdrFile::SharedDtor(MessageLite& self) { + StepHdrFile& this_ = static_cast(self); + this_._internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); + ABSL_DCHECK(this_.GetArena() == nullptr); + this_._impl_.affectingbom_.Destroy(); + this_._impl_.online_.Destroy(); + this_._impl_.path_.Destroy(); + this_._impl_.~Impl_(); } -void StepHdrFile::ArenaDtor(void* object) { - StepHdrFile* _this = reinterpret_cast< StepHdrFile* >(object); - _this->_impl_.onlinevalues_.Destruct(); +inline void* StepHdrFile::PlacementNew_(const void*, void* mem, + ::google::protobuf::Arena* arena) { + return ::new (mem) StepHdrFile(arena); } -void StepHdrFile::SetCachedSize(int size) const { - _impl_._cached_size_.Set(size); +constexpr auto StepHdrFile::InternalNewImpl_() { + constexpr auto arena_bits = ::google::protobuf::internal::EncodePlacementArenaOffsets({ + PROTOBUF_FIELD_OFFSET(StepHdrFile, _impl_.steprepeatrecords_) + + decltype(StepHdrFile::_impl_.steprepeatrecords_):: + InternalGetArenaOffset( + ::google::protobuf::Message::internal_visibility()), + PROTOBUF_FIELD_OFFSET(StepHdrFile, _impl_.onlinevalues_) + + decltype(StepHdrFile::_impl_.onlinevalues_):: + InternalGetArenaOffset( + ::google::protobuf::Message::internal_visibility()), + PROTOBUF_FIELD_OFFSET(StepHdrFile, _impl_.onlinevalues_) + + decltype(StepHdrFile::_impl_.onlinevalues_):: + InternalGetArenaOffsetAlt( + ::google::protobuf::Message::internal_visibility()), + }); + if (arena_bits.has_value()) { + return ::google::protobuf::internal::MessageCreator::CopyInit( + sizeof(StepHdrFile), alignof(StepHdrFile), *arena_bits); + } else { + return ::google::protobuf::internal::MessageCreator(&StepHdrFile::PlacementNew_, + sizeof(StepHdrFile), + alignof(StepHdrFile)); + } +} +PROTOBUF_CONSTINIT +PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 +const ::google::protobuf::internal::ClassDataFull StepHdrFile::_class_data_ = { + ::google::protobuf::internal::ClassData{ + &_StepHdrFile_default_instance_._instance, + &_table_.header, + nullptr, // OnDemandRegisterArenaDtor + nullptr, // IsInitialized + &StepHdrFile::MergeImpl, + ::google::protobuf::Message::GetNewImpl(), +#if defined(PROTOBUF_CUSTOM_VTABLE) + &StepHdrFile::SharedDtor, + ::google::protobuf::Message::GetClearImpl(), &StepHdrFile::ByteSizeLong, + &StepHdrFile::_InternalSerialize, +#endif // PROTOBUF_CUSTOM_VTABLE + PROTOBUF_FIELD_OFFSET(StepHdrFile, _impl_._cached_size_), + false, + }, + &StepHdrFile::kDescriptorMethods, + &descriptor_table_stephdrfile_2eproto, + nullptr, // tracker +}; +const ::google::protobuf::internal::ClassData* StepHdrFile::GetClassData() const { + ::google::protobuf::internal::PrefetchToLocalCache(&_class_data_); + ::google::protobuf::internal::PrefetchToLocalCache(_class_data_.tc_table); + return _class_data_.base(); } +PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 +const ::_pbi::TcParseTable<4, 15, 2, 79, 2> StepHdrFile::_table_ = { + { + PROTOBUF_FIELD_OFFSET(StepHdrFile, _impl_._has_bits_), + 0, // no _extensions_ + 15, 120, // max_field_number, fast_idx_mask + offsetof(decltype(_table_), field_lookup_table), + 4294934528, // skipmap + offsetof(decltype(_table_), field_entries), + 15, // num_field_entries + 2, // num_aux_entries + offsetof(decltype(_table_), aux_entries), + _class_data_.base(), + nullptr, // post_loop_handler + ::_pbi::TcParser::GenericFallback, // fallback + #ifdef PROTOBUF_PREFETCH_PARSE_TABLE + ::_pbi::TcParser::GetTable<::Odb::Lib::Protobuf::StepHdrFile>(), // to_prefetch + #endif // PROTOBUF_PREFETCH_PARSE_TABLE + }, {{ + {::_pbi::TcParser::MiniParse, {}}, + // optional float xDatum = 1; + {::_pbi::TcParser::FastF32S1, + {13, 3, 0, PROTOBUF_FIELD_OFFSET(StepHdrFile, _impl_.xdatum_)}}, + // optional float yDatum = 2; + {::_pbi::TcParser::FastF32S1, + {21, 4, 0, PROTOBUF_FIELD_OFFSET(StepHdrFile, _impl_.ydatum_)}}, + // optional int32 id = 3; + {::_pbi::TcParser::SingularVarintNoZag1<::uint32_t, offsetof(StepHdrFile, _impl_.id_), 5>(), + {24, 5, 0, PROTOBUF_FIELD_OFFSET(StepHdrFile, _impl_.id_)}}, + // optional float xOrigin = 4; + {::_pbi::TcParser::FastF32S1, + {37, 6, 0, PROTOBUF_FIELD_OFFSET(StepHdrFile, _impl_.xorigin_)}}, + // optional float yOrigin = 5; + {::_pbi::TcParser::FastF32S1, + {45, 7, 0, PROTOBUF_FIELD_OFFSET(StepHdrFile, _impl_.yorigin_)}}, + // optional float topActive = 6; + {::_pbi::TcParser::FastF32S1, + {53, 8, 0, PROTOBUF_FIELD_OFFSET(StepHdrFile, _impl_.topactive_)}}, + // optional float bottomActive = 7; + {::_pbi::TcParser::FastF32S1, + {61, 9, 0, PROTOBUF_FIELD_OFFSET(StepHdrFile, _impl_.bottomactive_)}}, + // optional float rightActive = 8; + {::_pbi::TcParser::FastF32S1, + {69, 10, 0, PROTOBUF_FIELD_OFFSET(StepHdrFile, _impl_.rightactive_)}}, + // optional float leftActive = 9; + {::_pbi::TcParser::FastF32S1, + {77, 11, 0, PROTOBUF_FIELD_OFFSET(StepHdrFile, _impl_.leftactive_)}}, + // optional string affectingBom = 10; + {::_pbi::TcParser::FastUS1, + {82, 0, 0, PROTOBUF_FIELD_OFFSET(StepHdrFile, _impl_.affectingbom_)}}, + // optional bool affectingBomChanged = 11; + {::_pbi::TcParser::SingularVarintNoZag1(), + {88, 12, 0, PROTOBUF_FIELD_OFFSET(StepHdrFile, _impl_.affectingbomchanged_)}}, + // optional string online = 12; + {::_pbi::TcParser::FastUS1, + {98, 1, 0, PROTOBUF_FIELD_OFFSET(StepHdrFile, _impl_.online_)}}, + // repeated .Odb.Lib.Protobuf.StepHdrFile.StepRepeatRecord stepRepeatRecords = 13; + {::_pbi::TcParser::FastMtR1, + {106, 63, 0, PROTOBUF_FIELD_OFFSET(StepHdrFile, _impl_.steprepeatrecords_)}}, + // optional string path = 14; + {::_pbi::TcParser::FastUS1, + {114, 2, 0, PROTOBUF_FIELD_OFFSET(StepHdrFile, _impl_.path_)}}, + {::_pbi::TcParser::MiniParse, {}}, + }}, {{ + 65535, 65535 + }}, {{ + // optional float xDatum = 1; + {PROTOBUF_FIELD_OFFSET(StepHdrFile, _impl_.xdatum_), _Internal::kHasBitsOffset + 3, 0, + (0 | ::_fl::kFcOptional | ::_fl::kFloat)}, + // optional float yDatum = 2; + {PROTOBUF_FIELD_OFFSET(StepHdrFile, _impl_.ydatum_), _Internal::kHasBitsOffset + 4, 0, + (0 | ::_fl::kFcOptional | ::_fl::kFloat)}, + // optional int32 id = 3; + {PROTOBUF_FIELD_OFFSET(StepHdrFile, _impl_.id_), _Internal::kHasBitsOffset + 5, 0, + (0 | ::_fl::kFcOptional | ::_fl::kInt32)}, + // optional float xOrigin = 4; + {PROTOBUF_FIELD_OFFSET(StepHdrFile, _impl_.xorigin_), _Internal::kHasBitsOffset + 6, 0, + (0 | ::_fl::kFcOptional | ::_fl::kFloat)}, + // optional float yOrigin = 5; + {PROTOBUF_FIELD_OFFSET(StepHdrFile, _impl_.yorigin_), _Internal::kHasBitsOffset + 7, 0, + (0 | ::_fl::kFcOptional | ::_fl::kFloat)}, + // optional float topActive = 6; + {PROTOBUF_FIELD_OFFSET(StepHdrFile, _impl_.topactive_), _Internal::kHasBitsOffset + 8, 0, + (0 | ::_fl::kFcOptional | ::_fl::kFloat)}, + // optional float bottomActive = 7; + {PROTOBUF_FIELD_OFFSET(StepHdrFile, _impl_.bottomactive_), _Internal::kHasBitsOffset + 9, 0, + (0 | ::_fl::kFcOptional | ::_fl::kFloat)}, + // optional float rightActive = 8; + {PROTOBUF_FIELD_OFFSET(StepHdrFile, _impl_.rightactive_), _Internal::kHasBitsOffset + 10, 0, + (0 | ::_fl::kFcOptional | ::_fl::kFloat)}, + // optional float leftActive = 9; + {PROTOBUF_FIELD_OFFSET(StepHdrFile, _impl_.leftactive_), _Internal::kHasBitsOffset + 11, 0, + (0 | ::_fl::kFcOptional | ::_fl::kFloat)}, + // optional string affectingBom = 10; + {PROTOBUF_FIELD_OFFSET(StepHdrFile, _impl_.affectingbom_), _Internal::kHasBitsOffset + 0, 0, + (0 | ::_fl::kFcOptional | ::_fl::kUtf8String | ::_fl::kRepAString)}, + // optional bool affectingBomChanged = 11; + {PROTOBUF_FIELD_OFFSET(StepHdrFile, _impl_.affectingbomchanged_), _Internal::kHasBitsOffset + 12, 0, + (0 | ::_fl::kFcOptional | ::_fl::kBool)}, + // optional string online = 12; + {PROTOBUF_FIELD_OFFSET(StepHdrFile, _impl_.online_), _Internal::kHasBitsOffset + 1, 0, + (0 | ::_fl::kFcOptional | ::_fl::kUtf8String | ::_fl::kRepAString)}, + // repeated .Odb.Lib.Protobuf.StepHdrFile.StepRepeatRecord stepRepeatRecords = 13; + {PROTOBUF_FIELD_OFFSET(StepHdrFile, _impl_.steprepeatrecords_), -1, 0, + (0 | ::_fl::kFcRepeated | ::_fl::kMessage | ::_fl::kTvTable)}, + // optional string path = 14; + {PROTOBUF_FIELD_OFFSET(StepHdrFile, _impl_.path_), _Internal::kHasBitsOffset + 2, 0, + (0 | ::_fl::kFcOptional | ::_fl::kUtf8String | ::_fl::kRepAString)}, + // map onlineValues = 15; + {PROTOBUF_FIELD_OFFSET(StepHdrFile, _impl_.onlinevalues_), -1, 1, + (0 | ::_fl::kFcRepeated | ::_fl::kMap)}, + }}, {{ + {::_pbi::TcParser::GetTable<::Odb::Lib::Protobuf::StepHdrFile_StepRepeatRecord>()}, + {::_pbi::TcParser::GetMapAuxInfo< + decltype(StepHdrFile()._impl_.onlinevalues_)>( + 1, 0, 0, 9, + 9)}, + }}, {{ + "\34\0\0\0\0\0\0\0\0\0\14\0\6\0\4\14" + "Odb.Lib.Protobuf.StepHdrFile" + "affectingBom" + "online" + "path" + "onlineValues" + }}, +}; -void StepHdrFile::Clear() { +PROTOBUF_NOINLINE void StepHdrFile::Clear() { // @@protoc_insertion_point(message_clear_start:Odb.Lib.Protobuf.StepHdrFile) - uint32_t cached_has_bits = 0; + ::google::protobuf::internal::TSanWrite(&_impl_); + ::uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; @@ -933,457 +1126,291 @@ void StepHdrFile::Clear() { } } if (cached_has_bits & 0x000000f8u) { - ::memset(&_impl_.xdatum_, 0, static_cast( + ::memset(&_impl_.xdatum_, 0, static_cast<::size_t>( reinterpret_cast(&_impl_.yorigin_) - reinterpret_cast(&_impl_.xdatum_)) + sizeof(_impl_.yorigin_)); } if (cached_has_bits & 0x00001f00u) { - ::memset(&_impl_.topactive_, 0, static_cast( + ::memset(&_impl_.topactive_, 0, static_cast<::size_t>( reinterpret_cast(&_impl_.affectingbomchanged_) - reinterpret_cast(&_impl_.topactive_)) + sizeof(_impl_.affectingbomchanged_)); } _impl_._has_bits_.Clear(); - _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); -} - -const char* StepHdrFile::_InternalParse(const char* ptr, ::_pbi::ParseContext* ctx) { -#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure - _Internal::HasBits has_bits{}; - while (!ctx->Done(&ptr)) { - uint32_t tag; - ptr = ::_pbi::ReadTag(ptr, &tag); - switch (tag >> 3) { - // optional float xDatum = 1; - case 1: - if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 13)) { - _Internal::set_has_xdatum(&has_bits); - _impl_.xdatum_ = ::PROTOBUF_NAMESPACE_ID::internal::UnalignedLoad(ptr); - ptr += sizeof(float); - } else - goto handle_unusual; - continue; - // optional float yDatum = 2; - case 2: - if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 21)) { - _Internal::set_has_ydatum(&has_bits); - _impl_.ydatum_ = ::PROTOBUF_NAMESPACE_ID::internal::UnalignedLoad(ptr); - ptr += sizeof(float); - } else - goto handle_unusual; - continue; - // optional int32 id = 3; - case 3: - if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 24)) { - _Internal::set_has_id(&has_bits); - _impl_.id_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr); - CHK_(ptr); - } else - goto handle_unusual; - continue; - // optional float xOrigin = 4; - case 4: - if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 37)) { - _Internal::set_has_xorigin(&has_bits); - _impl_.xorigin_ = ::PROTOBUF_NAMESPACE_ID::internal::UnalignedLoad(ptr); - ptr += sizeof(float); - } else - goto handle_unusual; - continue; - // optional float yOrigin = 5; - case 5: - if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 45)) { - _Internal::set_has_yorigin(&has_bits); - _impl_.yorigin_ = ::PROTOBUF_NAMESPACE_ID::internal::UnalignedLoad(ptr); - ptr += sizeof(float); - } else - goto handle_unusual; - continue; - // optional float topActive = 6; - case 6: - if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 53)) { - _Internal::set_has_topactive(&has_bits); - _impl_.topactive_ = ::PROTOBUF_NAMESPACE_ID::internal::UnalignedLoad(ptr); - ptr += sizeof(float); - } else - goto handle_unusual; - continue; - // optional float bottomActive = 7; - case 7: - if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 61)) { - _Internal::set_has_bottomactive(&has_bits); - _impl_.bottomactive_ = ::PROTOBUF_NAMESPACE_ID::internal::UnalignedLoad(ptr); - ptr += sizeof(float); - } else - goto handle_unusual; - continue; - // optional float rightActive = 8; - case 8: - if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 69)) { - _Internal::set_has_rightactive(&has_bits); - _impl_.rightactive_ = ::PROTOBUF_NAMESPACE_ID::internal::UnalignedLoad(ptr); - ptr += sizeof(float); - } else - goto handle_unusual; - continue; - // optional float leftActive = 9; - case 9: - if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 77)) { - _Internal::set_has_leftactive(&has_bits); - _impl_.leftactive_ = ::PROTOBUF_NAMESPACE_ID::internal::UnalignedLoad(ptr); - ptr += sizeof(float); - } else - goto handle_unusual; - continue; - // optional string affectingBom = 10; - case 10: - if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 82)) { - auto str = _internal_mutable_affectingbom(); - ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); - CHK_(ptr); - CHK_(::_pbi::VerifyUTF8(str, "Odb.Lib.Protobuf.StepHdrFile.affectingBom")); - } else - goto handle_unusual; - continue; - // optional bool affectingBomChanged = 11; - case 11: - if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 88)) { - _Internal::set_has_affectingbomchanged(&has_bits); - _impl_.affectingbomchanged_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); - CHK_(ptr); - } else - goto handle_unusual; - continue; - // optional string online = 12; - case 12: - if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 98)) { - auto str = _internal_mutable_online(); - ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); - CHK_(ptr); - CHK_(::_pbi::VerifyUTF8(str, "Odb.Lib.Protobuf.StepHdrFile.online")); - } else - goto handle_unusual; - continue; - // repeated .Odb.Lib.Protobuf.StepHdrFile.StepRepeatRecord stepRepeatRecords = 13; - case 13: - if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 106)) { - ptr -= 1; - do { - ptr += 1; - ptr = ctx->ParseMessage(_internal_add_steprepeatrecords(), ptr); - CHK_(ptr); - if (!ctx->DataAvailable(ptr)) break; - } while (::PROTOBUF_NAMESPACE_ID::internal::ExpectTag<106>(ptr)); - } else - goto handle_unusual; - continue; - // optional string path = 14; - case 14: - if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 114)) { - auto str = _internal_mutable_path(); - ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); - CHK_(ptr); - CHK_(::_pbi::VerifyUTF8(str, "Odb.Lib.Protobuf.StepHdrFile.path")); - } else - goto handle_unusual; - continue; - // map onlineValues = 15; - case 15: - if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 122)) { - ptr -= 1; - do { - ptr += 1; - ptr = ctx->ParseMessage(&_impl_.onlinevalues_, ptr); - CHK_(ptr); - if (!ctx->DataAvailable(ptr)) break; - } while (::PROTOBUF_NAMESPACE_ID::internal::ExpectTag<122>(ptr)); - } else - goto handle_unusual; - continue; - default: - goto handle_unusual; - } // switch - handle_unusual: - if ((tag == 0) || ((tag & 7) == 4)) { - CHK_(ptr); - ctx->SetLastTag(tag); - goto message_done; - } - ptr = UnknownFieldParse( - tag, - _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(), - ptr, ctx); - CHK_(ptr != nullptr); - } // while -message_done: - _impl_._has_bits_.Or(has_bits); - return ptr; -failure: - ptr = nullptr; - goto message_done; -#undef CHK_ + _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); } -uint8_t* StepHdrFile::_InternalSerialize( - uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { - // @@protoc_insertion_point(serialize_to_array_start:Odb.Lib.Protobuf.StepHdrFile) - uint32_t cached_has_bits = 0; - (void) cached_has_bits; - - // optional float xDatum = 1; - if (_internal_has_xdatum()) { - target = stream->EnsureSpace(target); - target = ::_pbi::WireFormatLite::WriteFloatToArray(1, this->_internal_xdatum(), target); - } - - // optional float yDatum = 2; - if (_internal_has_ydatum()) { - target = stream->EnsureSpace(target); - target = ::_pbi::WireFormatLite::WriteFloatToArray(2, this->_internal_ydatum(), target); - } - - // optional int32 id = 3; - if (_internal_has_id()) { - target = stream->EnsureSpace(target); - target = ::_pbi::WireFormatLite::WriteInt32ToArray(3, this->_internal_id(), target); - } - - // optional float xOrigin = 4; - if (_internal_has_xorigin()) { - target = stream->EnsureSpace(target); - target = ::_pbi::WireFormatLite::WriteFloatToArray(4, this->_internal_xorigin(), target); - } - - // optional float yOrigin = 5; - if (_internal_has_yorigin()) { - target = stream->EnsureSpace(target); - target = ::_pbi::WireFormatLite::WriteFloatToArray(5, this->_internal_yorigin(), target); - } - - // optional float topActive = 6; - if (_internal_has_topactive()) { - target = stream->EnsureSpace(target); - target = ::_pbi::WireFormatLite::WriteFloatToArray(6, this->_internal_topactive(), target); - } - - // optional float bottomActive = 7; - if (_internal_has_bottomactive()) { - target = stream->EnsureSpace(target); - target = ::_pbi::WireFormatLite::WriteFloatToArray(7, this->_internal_bottomactive(), target); - } - - // optional float rightActive = 8; - if (_internal_has_rightactive()) { - target = stream->EnsureSpace(target); - target = ::_pbi::WireFormatLite::WriteFloatToArray(8, this->_internal_rightactive(), target); - } - - // optional float leftActive = 9; - if (_internal_has_leftactive()) { - target = stream->EnsureSpace(target); - target = ::_pbi::WireFormatLite::WriteFloatToArray(9, this->_internal_leftactive(), target); - } - - // optional string affectingBom = 10; - if (_internal_has_affectingbom()) { - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( - this->_internal_affectingbom().data(), static_cast(this->_internal_affectingbom().length()), - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, - "Odb.Lib.Protobuf.StepHdrFile.affectingBom"); - target = stream->WriteStringMaybeAliased( - 10, this->_internal_affectingbom(), target); - } - - // optional bool affectingBomChanged = 11; - if (_internal_has_affectingbomchanged()) { - target = stream->EnsureSpace(target); - target = ::_pbi::WireFormatLite::WriteBoolToArray(11, this->_internal_affectingbomchanged(), target); - } - - // optional string online = 12; - if (_internal_has_online()) { - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( - this->_internal_online().data(), static_cast(this->_internal_online().length()), - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, - "Odb.Lib.Protobuf.StepHdrFile.online"); - target = stream->WriteStringMaybeAliased( - 12, this->_internal_online(), target); - } - - // repeated .Odb.Lib.Protobuf.StepHdrFile.StepRepeatRecord stepRepeatRecords = 13; - for (unsigned i = 0, - n = static_cast(this->_internal_steprepeatrecords_size()); i < n; i++) { - const auto& repfield = this->_internal_steprepeatrecords(i); - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: - InternalWriteMessage(13, repfield, repfield.GetCachedSize(), target, stream); - } - - // optional string path = 14; - if (_internal_has_path()) { - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( - this->_internal_path().data(), static_cast(this->_internal_path().length()), - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, - "Odb.Lib.Protobuf.StepHdrFile.path"); - target = stream->WriteStringMaybeAliased( - 14, this->_internal_path(), target); - } - - // map onlineValues = 15; - if (!this->_internal_onlinevalues().empty()) { - using MapType = ::_pb::Map; - using WireHelper = StepHdrFile_OnlineValuesEntry_DoNotUse::Funcs; - const auto& map_field = this->_internal_onlinevalues(); - auto check_utf8 = [](const MapType::value_type& entry) { - (void)entry; - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( - entry.first.data(), static_cast(entry.first.length()), - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, - "Odb.Lib.Protobuf.StepHdrFile.OnlineValuesEntry.key"); - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( - entry.second.data(), static_cast(entry.second.length()), - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, - "Odb.Lib.Protobuf.StepHdrFile.OnlineValuesEntry.value"); - }; - - if (stream->IsSerializationDeterministic() && map_field.size() > 1) { - for (const auto& entry : ::_pbi::MapSorterPtr(map_field)) { - target = WireHelper::InternalSerialize(15, entry.first, entry.second, target, stream); - check_utf8(entry); - } - } else { - for (const auto& entry : map_field) { - target = WireHelper::InternalSerialize(15, entry.first, entry.second, target, stream); - check_utf8(entry); - } - } - } - - if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = ::_pbi::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:Odb.Lib.Protobuf.StepHdrFile) - return target; -} - -size_t StepHdrFile::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:Odb.Lib.Protobuf.StepHdrFile) - size_t total_size = 0; - - uint32_t cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - // repeated .Odb.Lib.Protobuf.StepHdrFile.StepRepeatRecord stepRepeatRecords = 13; - total_size += 1UL * this->_internal_steprepeatrecords_size(); - for (const auto& msg : this->_impl_.steprepeatrecords_) { - total_size += - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(msg); - } - - // map onlineValues = 15; - total_size += 1 * - ::PROTOBUF_NAMESPACE_ID::internal::FromIntSize(this->_internal_onlinevalues_size()); - for (::PROTOBUF_NAMESPACE_ID::Map< std::string, std::string >::const_iterator - it = this->_internal_onlinevalues().begin(); - it != this->_internal_onlinevalues().end(); ++it) { - total_size += StepHdrFile_OnlineValuesEntry_DoNotUse::Funcs::ByteSizeLong(it->first, it->second); - } - - cached_has_bits = _impl_._has_bits_[0]; - if (cached_has_bits & 0x000000ffu) { - // optional string affectingBom = 10; - if (cached_has_bits & 0x00000001u) { - total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( - this->_internal_affectingbom()); - } - - // optional string online = 12; - if (cached_has_bits & 0x00000002u) { - total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( - this->_internal_online()); - } - - // optional string path = 14; - if (cached_has_bits & 0x00000004u) { - total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( - this->_internal_path()); - } - - // optional float xDatum = 1; - if (cached_has_bits & 0x00000008u) { - total_size += 1 + 4; - } - - // optional float yDatum = 2; - if (cached_has_bits & 0x00000010u) { - total_size += 1 + 4; - } - - // optional int32 id = 3; - if (cached_has_bits & 0x00000020u) { - total_size += ::_pbi::WireFormatLite::Int32SizePlusOne(this->_internal_id()); - } - - // optional float xOrigin = 4; - if (cached_has_bits & 0x00000040u) { - total_size += 1 + 4; - } - - // optional float yOrigin = 5; - if (cached_has_bits & 0x00000080u) { - total_size += 1 + 4; - } - - } - if (cached_has_bits & 0x00001f00u) { - // optional float topActive = 6; - if (cached_has_bits & 0x00000100u) { - total_size += 1 + 4; - } - - // optional float bottomActive = 7; - if (cached_has_bits & 0x00000200u) { - total_size += 1 + 4; - } - - // optional float rightActive = 8; - if (cached_has_bits & 0x00000400u) { - total_size += 1 + 4; - } - - // optional float leftActive = 9; - if (cached_has_bits & 0x00000800u) { - total_size += 1 + 4; - } - - // optional bool affectingBomChanged = 11; - if (cached_has_bits & 0x00001000u) { - total_size += 1 + 1; - } - - } - return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); -} - -const ::PROTOBUF_NAMESPACE_ID::Message::ClassData StepHdrFile::_class_data_ = { - ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSourceCheck, - StepHdrFile::MergeImpl -}; -const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*StepHdrFile::GetClassData() const { return &_class_data_; } - - -void StepHdrFile::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg) { +#if defined(PROTOBUF_CUSTOM_VTABLE) + ::uint8_t* StepHdrFile::_InternalSerialize( + const MessageLite& base, ::uint8_t* target, + ::google::protobuf::io::EpsCopyOutputStream* stream) { + const StepHdrFile& this_ = static_cast(base); +#else // PROTOBUF_CUSTOM_VTABLE + ::uint8_t* StepHdrFile::_InternalSerialize( + ::uint8_t* target, + ::google::protobuf::io::EpsCopyOutputStream* stream) const { + const StepHdrFile& this_ = *this; +#endif // PROTOBUF_CUSTOM_VTABLE + // @@protoc_insertion_point(serialize_to_array_start:Odb.Lib.Protobuf.StepHdrFile) + ::uint32_t cached_has_bits = 0; + (void)cached_has_bits; + + cached_has_bits = this_._impl_._has_bits_[0]; + // optional float xDatum = 1; + if (cached_has_bits & 0x00000008u) { + target = stream->EnsureSpace(target); + target = ::_pbi::WireFormatLite::WriteFloatToArray( + 1, this_._internal_xdatum(), target); + } + + // optional float yDatum = 2; + if (cached_has_bits & 0x00000010u) { + target = stream->EnsureSpace(target); + target = ::_pbi::WireFormatLite::WriteFloatToArray( + 2, this_._internal_ydatum(), target); + } + + // optional int32 id = 3; + if (cached_has_bits & 0x00000020u) { + target = ::google::protobuf::internal::WireFormatLite:: + WriteInt32ToArrayWithField<3>( + stream, this_._internal_id(), target); + } + + // optional float xOrigin = 4; + if (cached_has_bits & 0x00000040u) { + target = stream->EnsureSpace(target); + target = ::_pbi::WireFormatLite::WriteFloatToArray( + 4, this_._internal_xorigin(), target); + } + + // optional float yOrigin = 5; + if (cached_has_bits & 0x00000080u) { + target = stream->EnsureSpace(target); + target = ::_pbi::WireFormatLite::WriteFloatToArray( + 5, this_._internal_yorigin(), target); + } + + // optional float topActive = 6; + if (cached_has_bits & 0x00000100u) { + target = stream->EnsureSpace(target); + target = ::_pbi::WireFormatLite::WriteFloatToArray( + 6, this_._internal_topactive(), target); + } + + // optional float bottomActive = 7; + if (cached_has_bits & 0x00000200u) { + target = stream->EnsureSpace(target); + target = ::_pbi::WireFormatLite::WriteFloatToArray( + 7, this_._internal_bottomactive(), target); + } + + // optional float rightActive = 8; + if (cached_has_bits & 0x00000400u) { + target = stream->EnsureSpace(target); + target = ::_pbi::WireFormatLite::WriteFloatToArray( + 8, this_._internal_rightactive(), target); + } + + // optional float leftActive = 9; + if (cached_has_bits & 0x00000800u) { + target = stream->EnsureSpace(target); + target = ::_pbi::WireFormatLite::WriteFloatToArray( + 9, this_._internal_leftactive(), target); + } + + // optional string affectingBom = 10; + if (cached_has_bits & 0x00000001u) { + const std::string& _s = this_._internal_affectingbom(); + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + _s.data(), static_cast(_s.length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "Odb.Lib.Protobuf.StepHdrFile.affectingBom"); + target = stream->WriteStringMaybeAliased(10, _s, target); + } + + // optional bool affectingBomChanged = 11; + if (cached_has_bits & 0x00001000u) { + target = stream->EnsureSpace(target); + target = ::_pbi::WireFormatLite::WriteBoolToArray( + 11, this_._internal_affectingbomchanged(), target); + } + + // optional string online = 12; + if (cached_has_bits & 0x00000002u) { + const std::string& _s = this_._internal_online(); + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + _s.data(), static_cast(_s.length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "Odb.Lib.Protobuf.StepHdrFile.online"); + target = stream->WriteStringMaybeAliased(12, _s, target); + } + + // repeated .Odb.Lib.Protobuf.StepHdrFile.StepRepeatRecord stepRepeatRecords = 13; + for (unsigned i = 0, n = static_cast( + this_._internal_steprepeatrecords_size()); + i < n; i++) { + const auto& repfield = this_._internal_steprepeatrecords().Get(i); + target = + ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( + 13, repfield, repfield.GetCachedSize(), + target, stream); + } + + // optional string path = 14; + if (cached_has_bits & 0x00000004u) { + const std::string& _s = this_._internal_path(); + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + _s.data(), static_cast(_s.length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "Odb.Lib.Protobuf.StepHdrFile.path"); + target = stream->WriteStringMaybeAliased(14, _s, target); + } + + // map onlineValues = 15; + if (!this_._internal_onlinevalues().empty()) { + using MapType = ::google::protobuf::Map; + using WireHelper = _pbi::MapEntryFuncs; + const auto& field = this_._internal_onlinevalues(); + + if (stream->IsSerializationDeterministic() && field.size() > 1) { + for (const auto& entry : ::google::protobuf::internal::MapSorterPtr(field)) { + target = WireHelper::InternalSerialize( + 15, entry.first, entry.second, target, stream); + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + entry.first.data(), static_cast(entry.first.length()), + ::google::protobuf::internal::WireFormatLite::SERIALIZE, "Odb.Lib.Protobuf.StepHdrFile.onlineValues"); + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + entry.second.data(), static_cast(entry.second.length()), + ::google::protobuf::internal::WireFormatLite::SERIALIZE, "Odb.Lib.Protobuf.StepHdrFile.onlineValues"); + } + } else { + for (const auto& entry : field) { + target = WireHelper::InternalSerialize( + 15, entry.first, entry.second, target, stream); + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + entry.first.data(), static_cast(entry.first.length()), + ::google::protobuf::internal::WireFormatLite::SERIALIZE, "Odb.Lib.Protobuf.StepHdrFile.onlineValues"); + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + entry.second.data(), static_cast(entry.second.length()), + ::google::protobuf::internal::WireFormatLite::SERIALIZE, "Odb.Lib.Protobuf.StepHdrFile.onlineValues"); + } + } + } + + if (PROTOBUF_PREDICT_FALSE(this_._internal_metadata_.have_unknown_fields())) { + target = + ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( + this_._internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); + } + // @@protoc_insertion_point(serialize_to_array_end:Odb.Lib.Protobuf.StepHdrFile) + return target; + } + +#if defined(PROTOBUF_CUSTOM_VTABLE) + ::size_t StepHdrFile::ByteSizeLong(const MessageLite& base) { + const StepHdrFile& this_ = static_cast(base); +#else // PROTOBUF_CUSTOM_VTABLE + ::size_t StepHdrFile::ByteSizeLong() const { + const StepHdrFile& this_ = *this; +#endif // PROTOBUF_CUSTOM_VTABLE + // @@protoc_insertion_point(message_byte_size_start:Odb.Lib.Protobuf.StepHdrFile) + ::size_t total_size = 0; + + ::uint32_t cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void)cached_has_bits; + + ::_pbi::Prefetch5LinesFrom7Lines(&this_); + { + // repeated .Odb.Lib.Protobuf.StepHdrFile.StepRepeatRecord stepRepeatRecords = 13; + { + total_size += 1UL * this_._internal_steprepeatrecords_size(); + for (const auto& msg : this_._internal_steprepeatrecords()) { + total_size += ::google::protobuf::internal::WireFormatLite::MessageSize(msg); + } + } + // map onlineValues = 15; + { + total_size += + 1 * ::google::protobuf::internal::FromIntSize(this_._internal_onlinevalues_size()); + for (const auto& entry : this_._internal_onlinevalues()) { + total_size += _pbi::MapEntryFuncs::ByteSizeLong(entry.first, entry.second); + } + } + } + cached_has_bits = this_._impl_._has_bits_[0]; + if (cached_has_bits & 0x000000ffu) { + // optional string affectingBom = 10; + if (cached_has_bits & 0x00000001u) { + total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize( + this_._internal_affectingbom()); + } + // optional string online = 12; + if (cached_has_bits & 0x00000002u) { + total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize( + this_._internal_online()); + } + // optional string path = 14; + if (cached_has_bits & 0x00000004u) { + total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize( + this_._internal_path()); + } + // optional float xDatum = 1; + if (cached_has_bits & 0x00000008u) { + total_size += 5; + } + // optional float yDatum = 2; + if (cached_has_bits & 0x00000010u) { + total_size += 5; + } + // optional int32 id = 3; + if (cached_has_bits & 0x00000020u) { + total_size += ::_pbi::WireFormatLite::Int32SizePlusOne( + this_._internal_id()); + } + // optional float xOrigin = 4; + if (cached_has_bits & 0x00000040u) { + total_size += 5; + } + // optional float yOrigin = 5; + if (cached_has_bits & 0x00000080u) { + total_size += 5; + } + } + if (cached_has_bits & 0x00001f00u) { + // optional float topActive = 6; + if (cached_has_bits & 0x00000100u) { + total_size += 5; + } + // optional float bottomActive = 7; + if (cached_has_bits & 0x00000200u) { + total_size += 5; + } + // optional float rightActive = 8; + if (cached_has_bits & 0x00000400u) { + total_size += 5; + } + // optional float leftActive = 9; + if (cached_has_bits & 0x00000800u) { + total_size += 5; + } + // optional bool affectingBomChanged = 11; + if (cached_has_bits & 0x00001000u) { + total_size += 2; + } + } + return this_.MaybeComputeUnknownFieldsSize(total_size, + &this_._impl_._cached_size_); + } + +void StepHdrFile::MergeImpl(::google::protobuf::MessageLite& to_msg, const ::google::protobuf::MessageLite& from_msg) { auto* const _this = static_cast(&to_msg); auto& from = static_cast(from_msg); // @@protoc_insertion_point(class_specific_merge_from_start:Odb.Lib.Protobuf.StepHdrFile) - GOOGLE_DCHECK_NE(&from, _this); - uint32_t cached_has_bits = 0; + ABSL_DCHECK_NE(&from, _this); + ::uint32_t cached_has_bits = 0; (void) cached_has_bits; - _this->_impl_.steprepeatrecords_.MergeFrom(from._impl_.steprepeatrecords_); + _this->_internal_mutable_steprepeatrecords()->MergeFrom( + from._internal_steprepeatrecords()); _this->_impl_.onlinevalues_.MergeFrom(from._impl_.onlinevalues_); cached_has_bits = from._impl_._has_bits_[0]; if (cached_has_bits & 0x000000ffu) { @@ -1411,7 +1438,6 @@ void StepHdrFile::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PR if (cached_has_bits & 0x00000080u) { _this->_impl_.yorigin_ = from._impl_.yorigin_; } - _this->_impl_._has_bits_[0] |= cached_has_bits; } if (cached_has_bits & 0x00001f00u) { if (cached_has_bits & 0x00000100u) { @@ -1429,9 +1455,9 @@ void StepHdrFile::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PR if (cached_has_bits & 0x00001000u) { _this->_impl_.affectingbomchanged_ = from._impl_.affectingbomchanged_; } - _this->_impl_._has_bits_[0] |= cached_has_bits; } - _this->_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); + _this->_impl_._has_bits_[0] |= cached_has_bits; + _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); } void StepHdrFile::CopyFrom(const StepHdrFile& from) { @@ -1441,31 +1467,19 @@ void StepHdrFile::CopyFrom(const StepHdrFile& from) { MergeFrom(from); } -bool StepHdrFile::IsInitialized() const { - return true; -} -void StepHdrFile::InternalSwap(StepHdrFile* other) { +void StepHdrFile::InternalSwap(StepHdrFile* PROTOBUF_RESTRICT other) { using std::swap; - auto* lhs_arena = GetArenaForAllocation(); - auto* rhs_arena = other->GetArenaForAllocation(); + auto* arena = GetArena(); + ABSL_DCHECK_EQ(arena, other->GetArena()); _internal_metadata_.InternalSwap(&other->_internal_metadata_); swap(_impl_._has_bits_[0], other->_impl_._has_bits_[0]); _impl_.steprepeatrecords_.InternalSwap(&other->_impl_.steprepeatrecords_); _impl_.onlinevalues_.InternalSwap(&other->_impl_.onlinevalues_); - ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( - &_impl_.affectingbom_, lhs_arena, - &other->_impl_.affectingbom_, rhs_arena - ); - ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( - &_impl_.online_, lhs_arena, - &other->_impl_.online_, rhs_arena - ); - ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( - &_impl_.path_, lhs_arena, - &other->_impl_.path_, rhs_arena - ); - ::PROTOBUF_NAMESPACE_ID::internal::memswap< + ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.affectingbom_, &other->_impl_.affectingbom_, arena); + ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.online_, &other->_impl_.online_, arena); + ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.path_, &other->_impl_.path_, arena); + ::google::protobuf::internal::memswap< PROTOBUF_FIELD_OFFSET(StepHdrFile, _impl_.affectingbomchanged_) + sizeof(StepHdrFile::_impl_.affectingbomchanged_) - PROTOBUF_FIELD_OFFSET(StepHdrFile, _impl_.xdatum_)>( @@ -1473,30 +1487,20 @@ void StepHdrFile::InternalSwap(StepHdrFile* other) { reinterpret_cast(&other->_impl_.xdatum_)); } -::PROTOBUF_NAMESPACE_ID::Metadata StepHdrFile::GetMetadata() const { - return ::_pbi::AssignDescriptors( - &descriptor_table_stephdrfile_2eproto_getter, &descriptor_table_stephdrfile_2eproto_once, - file_level_metadata_stephdrfile_2eproto[2]); +::google::protobuf::Metadata StepHdrFile::GetMetadata() const { + return ::google::protobuf::Message::GetMetadataImpl(GetClassData()->full()); } - // @@protoc_insertion_point(namespace_scope) } // namespace Protobuf } // namespace Lib } // namespace Odb -PROTOBUF_NAMESPACE_OPEN -template<> PROTOBUF_NOINLINE ::Odb::Lib::Protobuf::StepHdrFile_StepRepeatRecord* -Arena::CreateMaybeMessage< ::Odb::Lib::Protobuf::StepHdrFile_StepRepeatRecord >(Arena* arena) { - return Arena::CreateMessageInternal< ::Odb::Lib::Protobuf::StepHdrFile_StepRepeatRecord >(arena); -} -template<> PROTOBUF_NOINLINE ::Odb::Lib::Protobuf::StepHdrFile_OnlineValuesEntry_DoNotUse* -Arena::CreateMaybeMessage< ::Odb::Lib::Protobuf::StepHdrFile_OnlineValuesEntry_DoNotUse >(Arena* arena) { - return Arena::CreateMessageInternal< ::Odb::Lib::Protobuf::StepHdrFile_OnlineValuesEntry_DoNotUse >(arena); -} -template<> PROTOBUF_NOINLINE ::Odb::Lib::Protobuf::StepHdrFile* -Arena::CreateMaybeMessage< ::Odb::Lib::Protobuf::StepHdrFile >(Arena* arena) { - return Arena::CreateMessageInternal< ::Odb::Lib::Protobuf::StepHdrFile >(arena); -} -PROTOBUF_NAMESPACE_CLOSE - +namespace google { +namespace protobuf { +} // namespace protobuf +} // namespace google // @@protoc_insertion_point(global_scope) -#include +PROTOBUF_ATTRIBUTE_INIT_PRIORITY2 static ::std::false_type + _static_init2_ PROTOBUF_UNUSED = + (::_pbi::AddDescriptors(&descriptor_table_stephdrfile_2eproto), + ::std::false_type{}); +#include "google/protobuf/port_undef.inc" diff --git a/OdbDesignLib/ProtoBuf/stephdrfile.pb.h b/OdbDesignLib/ProtoBuf/stephdrfile.pb.h index 55175346..b5603614 100644 --- a/OdbDesignLib/ProtoBuf/stephdrfile.pb.h +++ b/OdbDesignLib/ProtoBuf/stephdrfile.pb.h @@ -1,52 +1,59 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE // source: stephdrfile.proto +// Protobuf C++ Version: 5.29.2 -#ifndef GOOGLE_PROTOBUF_INCLUDED_stephdrfile_2eproto -#define GOOGLE_PROTOBUF_INCLUDED_stephdrfile_2eproto +#ifndef stephdrfile_2eproto_2epb_2eh +#define stephdrfile_2eproto_2epb_2eh #include #include - -#include -#if PROTOBUF_VERSION < 3021000 -#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 3021012 < 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. +#include +#include + +#include "google/protobuf/runtime_version.h" +#if PROTOBUF_VERSION != 5029002 +#error "Protobuf C++ gencode is built with an incompatible version of" +#error "Protobuf C++ headers/runtime. See" +#error "https://protobuf.dev/support/cross-version-runtime-guarantee/#cpp" #endif - -#include -#include -#include -#include -#include -#include -#include -#include -#include // IWYU pragma: export -#include // IWYU pragma: export -#include // IWYU pragma: export -#include -#include -#include +#include "google/protobuf/io/coded_stream.h" +#include "google/protobuf/arena.h" +#include "google/protobuf/arenastring.h" +#include "google/protobuf/generated_message_tctable_decl.h" +#include "google/protobuf/generated_message_util.h" +#include "google/protobuf/metadata_lite.h" +#include "google/protobuf/generated_message_reflection.h" +#include "google/protobuf/message.h" +#include "google/protobuf/message_lite.h" +#include "google/protobuf/repeated_field.h" // IWYU pragma: export +#include "google/protobuf/extension_set.h" // IWYU pragma: export +#include "google/protobuf/map.h" // IWYU pragma: export +#include "google/protobuf/map_entry.h" +#include "google/protobuf/map_field_inl.h" +#include "google/protobuf/unknown_field_set.h" // @@protoc_insertion_point(includes) -#include + +// Must be included last. +#include "google/protobuf/port_def.inc" + #define PROTOBUF_INTERNAL_EXPORT_stephdrfile_2eproto ODBDESIGN_EXPORT -PROTOBUF_NAMESPACE_OPEN + +namespace google { +namespace protobuf { namespace internal { -class AnyMetadata; +template +::absl::string_view GetAnyMessageName(); } // namespace internal -PROTOBUF_NAMESPACE_CLOSE +} // namespace protobuf +} // namespace google // Internal implementation detail -- do not use these members. struct ODBDESIGN_EXPORT TableStruct_stephdrfile_2eproto { - static const uint32_t offsets[]; + static const ::uint32_t offsets[]; }; -ODBDESIGN_EXPORT extern const ::PROTOBUF_NAMESPACE_ID::internal::DescriptorTable descriptor_table_stephdrfile_2eproto; +ODBDESIGN_EXPORT extern const ::google::protobuf::internal::DescriptorTable + descriptor_table_stephdrfile_2eproto; namespace Odb { namespace Lib { namespace Protobuf { @@ -62,41 +69,47 @@ ODBDESIGN_EXPORT extern StepHdrFile_StepRepeatRecordDefaultTypeInternal _StepHdr } // namespace Protobuf } // namespace Lib } // namespace Odb -PROTOBUF_NAMESPACE_OPEN -template<> ODBDESIGN_EXPORT ::Odb::Lib::Protobuf::StepHdrFile* Arena::CreateMaybeMessage<::Odb::Lib::Protobuf::StepHdrFile>(Arena*); -template<> ODBDESIGN_EXPORT ::Odb::Lib::Protobuf::StepHdrFile_OnlineValuesEntry_DoNotUse* Arena::CreateMaybeMessage<::Odb::Lib::Protobuf::StepHdrFile_OnlineValuesEntry_DoNotUse>(Arena*); -template<> ODBDESIGN_EXPORT ::Odb::Lib::Protobuf::StepHdrFile_StepRepeatRecord* Arena::CreateMaybeMessage<::Odb::Lib::Protobuf::StepHdrFile_StepRepeatRecord>(Arena*); -PROTOBUF_NAMESPACE_CLOSE +namespace google { +namespace protobuf { +} // namespace protobuf +} // namespace google + namespace Odb { namespace Lib { namespace Protobuf { // =================================================================== -class ODBDESIGN_EXPORT StepHdrFile_StepRepeatRecord final : - public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:Odb.Lib.Protobuf.StepHdrFile.StepRepeatRecord) */ { + +// ------------------------------------------------------------------- + +class ODBDESIGN_EXPORT StepHdrFile_StepRepeatRecord final : public ::google::protobuf::Message +/* @@protoc_insertion_point(class_definition:Odb.Lib.Protobuf.StepHdrFile.StepRepeatRecord) */ { public: inline StepHdrFile_StepRepeatRecord() : StepHdrFile_StepRepeatRecord(nullptr) {} - ~StepHdrFile_StepRepeatRecord() override; - explicit PROTOBUF_CONSTEXPR StepHdrFile_StepRepeatRecord(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); + ~StepHdrFile_StepRepeatRecord() PROTOBUF_FINAL; - StepHdrFile_StepRepeatRecord(const StepHdrFile_StepRepeatRecord& from); - StepHdrFile_StepRepeatRecord(StepHdrFile_StepRepeatRecord&& from) noexcept - : StepHdrFile_StepRepeatRecord() { - *this = ::std::move(from); +#if defined(PROTOBUF_CUSTOM_VTABLE) + void operator delete(StepHdrFile_StepRepeatRecord* msg, std::destroying_delete_t) { + SharedDtor(*msg); + ::google::protobuf::internal::SizedDelete(msg, sizeof(StepHdrFile_StepRepeatRecord)); } +#endif + template + explicit PROTOBUF_CONSTEXPR StepHdrFile_StepRepeatRecord( + ::google::protobuf::internal::ConstantInitialized); + + inline StepHdrFile_StepRepeatRecord(const StepHdrFile_StepRepeatRecord& from) : StepHdrFile_StepRepeatRecord(nullptr, from) {} + inline StepHdrFile_StepRepeatRecord(StepHdrFile_StepRepeatRecord&& from) noexcept + : StepHdrFile_StepRepeatRecord(nullptr, std::move(from)) {} inline StepHdrFile_StepRepeatRecord& operator=(const StepHdrFile_StepRepeatRecord& from) { CopyFrom(from); return *this; } inline StepHdrFile_StepRepeatRecord& operator=(StepHdrFile_StepRepeatRecord&& from) noexcept { if (this == &from) return *this; - if (GetOwningArena() == from.GetOwningArena() - #ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetOwningArena() != nullptr - #endif // !PROTOBUF_FORCE_COPY_IN_MOVE - ) { + if (::google::protobuf::internal::CanMoveWithInternalSwap(GetArena(), from.GetArena())) { InternalSwap(&from); } else { CopyFrom(from); @@ -104,13 +117,22 @@ class ODBDESIGN_EXPORT StepHdrFile_StepRepeatRecord final : return *this; } - static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { + inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const + ABSL_ATTRIBUTE_LIFETIME_BOUND { + return _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance); + } + inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() + ABSL_ATTRIBUTE_LIFETIME_BOUND { + return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); + } + + static const ::google::protobuf::Descriptor* descriptor() { return GetDescriptor(); } - static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { + static const ::google::protobuf::Descriptor* GetDescriptor() { return default_instance().GetMetadata().descriptor; } - static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { + static const ::google::protobuf::Reflection* GetReflection() { return default_instance().GetMetadata().reflection; } static const StepHdrFile_StepRepeatRecord& default_instance() { @@ -118,81 +140,94 @@ class ODBDESIGN_EXPORT StepHdrFile_StepRepeatRecord final : } static inline const StepHdrFile_StepRepeatRecord* internal_default_instance() { return reinterpret_cast( - &_StepHdrFile_StepRepeatRecord_default_instance_); - } - static constexpr int kIndexInFileMessages = - 0; - - friend void swap(StepHdrFile_StepRepeatRecord& a, StepHdrFile_StepRepeatRecord& b) { - a.Swap(&b); + &_StepHdrFile_StepRepeatRecord_default_instance_); } + static constexpr int kIndexInFileMessages = 0; + friend void swap(StepHdrFile_StepRepeatRecord& a, StepHdrFile_StepRepeatRecord& b) { a.Swap(&b); } inline void Swap(StepHdrFile_StepRepeatRecord* other) { if (other == this) return; - #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetOwningArena() != nullptr && - GetOwningArena() == other->GetOwningArena()) { - #else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetOwningArena() == other->GetOwningArena()) { - #endif // !PROTOBUF_FORCE_COPY_IN_SWAP + if (::google::protobuf::internal::CanUseInternalSwap(GetArena(), other->GetArena())) { InternalSwap(other); } else { - ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); + ::google::protobuf::internal::GenericSwap(this, other); } } void UnsafeArenaSwap(StepHdrFile_StepRepeatRecord* other) { if (other == this) return; - GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); + ABSL_DCHECK(GetArena() == other->GetArena()); InternalSwap(other); } // implements Message ---------------------------------------------- - StepHdrFile_StepRepeatRecord* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); + StepHdrFile_StepRepeatRecord* New(::google::protobuf::Arena* arena = nullptr) const { + return ::google::protobuf::Message::DefaultConstruct(arena); } - using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; + using ::google::protobuf::Message::CopyFrom; void CopyFrom(const StepHdrFile_StepRepeatRecord& from); - using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; - void MergeFrom( const StepHdrFile_StepRepeatRecord& from) { - StepHdrFile_StepRepeatRecord::MergeImpl(*this, from); - } + using ::google::protobuf::Message::MergeFrom; + void MergeFrom(const StepHdrFile_StepRepeatRecord& from) { StepHdrFile_StepRepeatRecord::MergeImpl(*this, from); } + private: - static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg); + static void MergeImpl( + ::google::protobuf::MessageLite& to_msg, + const ::google::protobuf::MessageLite& from_msg); + public: - PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; - bool IsInitialized() const final; + bool IsInitialized() const { + return true; + } + ABSL_ATTRIBUTE_REINITIALIZES void Clear() PROTOBUF_FINAL; + #if defined(PROTOBUF_CUSTOM_VTABLE) + private: + static ::size_t ByteSizeLong(const ::google::protobuf::MessageLite& msg); + static ::uint8_t* _InternalSerialize( + const MessageLite& msg, ::uint8_t* target, + ::google::protobuf::io::EpsCopyOutputStream* stream); - size_t ByteSizeLong() const final; - const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final; - uint8_t* _InternalSerialize( - uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const final { return _impl_._cached_size_.Get(); } + public: + ::size_t ByteSizeLong() const { return ByteSizeLong(*this); } + ::uint8_t* _InternalSerialize( + ::uint8_t* target, + ::google::protobuf::io::EpsCopyOutputStream* stream) const { + return _InternalSerialize(*this, target, stream); + } + #else // PROTOBUF_CUSTOM_VTABLE + ::size_t ByteSizeLong() const final; + ::uint8_t* _InternalSerialize( + ::uint8_t* target, + ::google::protobuf::io::EpsCopyOutputStream* stream) const final; + #endif // PROTOBUF_CUSTOM_VTABLE + int GetCachedSize() const { return _impl_._cached_size_.Get(); } private: - void SharedCtor(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned); - void SharedDtor(); - void SetCachedSize(int size) const final; + void SharedCtor(::google::protobuf::Arena* arena); + static void SharedDtor(MessageLite& self); void InternalSwap(StepHdrFile_StepRepeatRecord* other); - - private: - friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; - static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { - return "Odb.Lib.Protobuf.StepHdrFile.StepRepeatRecord"; + private: + template + friend ::absl::string_view( + ::google::protobuf::internal::GetAnyMessageName)(); + static ::absl::string_view FullMessageName() { return "Odb.Lib.Protobuf.StepHdrFile.StepRepeatRecord"; } + + protected: + explicit StepHdrFile_StepRepeatRecord(::google::protobuf::Arena* arena); + StepHdrFile_StepRepeatRecord(::google::protobuf::Arena* arena, const StepHdrFile_StepRepeatRecord& from); + StepHdrFile_StepRepeatRecord(::google::protobuf::Arena* arena, StepHdrFile_StepRepeatRecord&& from) noexcept + : StepHdrFile_StepRepeatRecord(arena) { + *this = ::std::move(from); } - protected: - explicit StepHdrFile_StepRepeatRecord(::PROTOBUF_NAMESPACE_ID::Arena* arena, - bool is_message_owned = false); - public: - - static const ClassData _class_data_; - const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final; - - ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; + const ::google::protobuf::internal::ClassData* GetClassData() const PROTOBUF_FINAL; + static void* PlacementNew_(const void*, void* mem, + ::google::protobuf::Arena* arena); + static constexpr auto InternalNewImpl_(); + static const ::google::protobuf::internal::ClassDataFull _class_data_; + public: + ::google::protobuf::Metadata GetMetadata() const; // nested types ---------------------------------------------------- // accessors ------------------------------------------------------- - enum : int { kNameFieldNumber = 1, kXFieldNumber = 2, @@ -207,217 +242,228 @@ class ODBDESIGN_EXPORT StepHdrFile_StepRepeatRecord final : }; // optional string name = 1; bool has_name() const; - private: - bool _internal_has_name() const; - public: - void clear_name(); + void clear_name() ; const std::string& name() const; - template - void set_name(ArgT0&& arg0, ArgT... args); + template + void set_name(Arg_&& arg, Args_... args); std::string* mutable_name(); PROTOBUF_NODISCARD std::string* release_name(); - void set_allocated_name(std::string* name); + void set_allocated_name(std::string* value); + private: const std::string& _internal_name() const; - inline PROTOBUF_ALWAYS_INLINE void _internal_set_name(const std::string& value); + inline PROTOBUF_ALWAYS_INLINE void _internal_set_name( + const std::string& value); std::string* _internal_mutable_name(); - public: + public: // optional float x = 2; bool has_x() const; - private: - bool _internal_has_x() const; - public: - void clear_x(); + void clear_x() ; float x() const; void set_x(float value); + private: float _internal_x() const; void _internal_set_x(float value); - public: + public: // optional float y = 3; bool has_y() const; - private: - bool _internal_has_y() const; - public: - void clear_y(); + void clear_y() ; float y() const; void set_y(float value); + private: float _internal_y() const; void _internal_set_y(float value); - public: + public: // optional float dx = 4; bool has_dx() const; - private: - bool _internal_has_dx() const; - public: - void clear_dx(); + void clear_dx() ; float dx() const; void set_dx(float value); + private: float _internal_dx() const; void _internal_set_dx(float value); - public: + public: // optional float dy = 5; bool has_dy() const; - private: - bool _internal_has_dy() const; - public: - void clear_dy(); + void clear_dy() ; float dy() const; void set_dy(float value); + private: float _internal_dy() const; void _internal_set_dy(float value); - public: + public: // optional int32 nx = 6; bool has_nx() const; + void clear_nx() ; + ::int32_t nx() const; + void set_nx(::int32_t value); + private: - bool _internal_has_nx() const; - public: - void clear_nx(); - int32_t nx() const; - void set_nx(int32_t value); - private: - int32_t _internal_nx() const; - void _internal_set_nx(int32_t value); - public: + ::int32_t _internal_nx() const; + void _internal_set_nx(::int32_t value); + public: // optional int32 ny = 7; bool has_ny() const; + void clear_ny() ; + ::int32_t ny() const; + void set_ny(::int32_t value); + private: - bool _internal_has_ny() const; - public: - void clear_ny(); - int32_t ny() const; - void set_ny(int32_t value); - private: - int32_t _internal_ny() const; - void _internal_set_ny(int32_t value); - public: + ::int32_t _internal_ny() const; + void _internal_set_ny(::int32_t value); + public: // optional float angle = 8; bool has_angle() const; - private: - bool _internal_has_angle() const; - public: - void clear_angle(); + void clear_angle() ; float angle() const; void set_angle(float value); + private: float _internal_angle() const; void _internal_set_angle(float value); - public: + public: // optional bool flip = 9; bool has_flip() const; - private: - bool _internal_has_flip() const; - public: - void clear_flip(); + void clear_flip() ; bool flip() const; void set_flip(bool value); + private: bool _internal_flip() const; void _internal_set_flip(bool value); - public: + public: // optional bool mirror = 10; bool has_mirror() const; - private: - bool _internal_has_mirror() const; - public: - void clear_mirror(); + void clear_mirror() ; bool mirror() const; void set_mirror(bool value); + private: bool _internal_mirror() const; void _internal_set_mirror(bool value); - public: + public: // @@protoc_insertion_point(class_scope:Odb.Lib.Protobuf.StepHdrFile.StepRepeatRecord) private: class _Internal; - - template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; - typedef void InternalArenaConstructable_; - typedef void DestructorSkippable_; + friend class ::google::protobuf::internal::TcParser; + static const ::google::protobuf::internal::TcParseTable< + 4, 10, 0, + 66, 2> + _table_; + + friend class ::google::protobuf::MessageLite; + friend class ::google::protobuf::Arena; + template + friend class ::google::protobuf::Arena::InternalHelper; + using InternalArenaConstructable_ = void; + using DestructorSkippable_ = void; struct Impl_ { - ::PROTOBUF_NAMESPACE_ID::internal::HasBits<1> _has_bits_; - mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; - ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr name_; + inline explicit constexpr Impl_( + ::google::protobuf::internal::ConstantInitialized) noexcept; + inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* arena); + inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* arena, const Impl_& from, + const StepHdrFile_StepRepeatRecord& from_msg); + ::google::protobuf::internal::HasBits<1> _has_bits_; + ::google::protobuf::internal::CachedSize _cached_size_; + ::google::protobuf::internal::ArenaStringPtr name_; float x_; float y_; float dx_; float dy_; - int32_t nx_; - int32_t ny_; + ::int32_t nx_; + ::int32_t ny_; float angle_; bool flip_; bool mirror_; + PROTOBUF_TSAN_DECLARE_MEMBER }; union { Impl_ _impl_; }; friend struct ::TableStruct_stephdrfile_2eproto; }; // ------------------------------------------------------------------- -class StepHdrFile_OnlineValuesEntry_DoNotUse : public ::PROTOBUF_NAMESPACE_ID::internal::MapEntry { -public: - typedef ::PROTOBUF_NAMESPACE_ID::internal::MapEntry SuperType; +class StepHdrFile_OnlineValuesEntry_DoNotUse final + : public ::google::protobuf::internal::MapEntry< + std::string, std::string, + ::google::protobuf::internal::WireFormatLite::TYPE_STRING, + ::google::protobuf::internal::WireFormatLite::TYPE_STRING> { + public: + using SuperType = ::google::protobuf::internal::MapEntry< + std::string, std::string, + ::google::protobuf::internal::WireFormatLite::TYPE_STRING, + ::google::protobuf::internal::WireFormatLite::TYPE_STRING>; StepHdrFile_OnlineValuesEntry_DoNotUse(); + template explicit PROTOBUF_CONSTEXPR StepHdrFile_OnlineValuesEntry_DoNotUse( - ::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); - explicit StepHdrFile_OnlineValuesEntry_DoNotUse(::PROTOBUF_NAMESPACE_ID::Arena* arena); - void MergeFrom(const StepHdrFile_OnlineValuesEntry_DoNotUse& other); - static const StepHdrFile_OnlineValuesEntry_DoNotUse* internal_default_instance() { return reinterpret_cast(&_StepHdrFile_OnlineValuesEntry_DoNotUse_default_instance_); } - static bool ValidateKey(std::string* s) { - return ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String(s->data(), static_cast(s->size()), ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::PARSE, "Odb.Lib.Protobuf.StepHdrFile.OnlineValuesEntry.key"); - } - static bool ValidateValue(std::string* s) { - return ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String(s->data(), static_cast(s->size()), ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::PARSE, "Odb.Lib.Protobuf.StepHdrFile.OnlineValuesEntry.value"); - } - using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; - ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; + ::google::protobuf::internal::ConstantInitialized); + explicit StepHdrFile_OnlineValuesEntry_DoNotUse(::google::protobuf::Arena* arena); + static const StepHdrFile_OnlineValuesEntry_DoNotUse* internal_default_instance() { + return reinterpret_cast( + &_StepHdrFile_OnlineValuesEntry_DoNotUse_default_instance_); + } + + + private: + friend class ::google::protobuf::MessageLite; friend struct ::TableStruct_stephdrfile_2eproto; -}; + friend class ::google::protobuf::internal::TcParser; + static const ::google::protobuf::internal::TcParseTable< + 1, 2, 0, + 63, 2> + _table_; + + const ::google::protobuf::internal::ClassData* GetClassData() const PROTOBUF_FINAL; + static void* PlacementNew_(const void*, void* mem, + ::google::protobuf::Arena* arena); + static constexpr auto InternalNewImpl_(); + static const ::google::protobuf::internal::ClassDataFull _class_data_; +}; // ------------------------------------------------------------------- -class ODBDESIGN_EXPORT StepHdrFile final : - public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:Odb.Lib.Protobuf.StepHdrFile) */ { +class ODBDESIGN_EXPORT StepHdrFile final : public ::google::protobuf::Message +/* @@protoc_insertion_point(class_definition:Odb.Lib.Protobuf.StepHdrFile) */ { public: inline StepHdrFile() : StepHdrFile(nullptr) {} - ~StepHdrFile() override; - explicit PROTOBUF_CONSTEXPR StepHdrFile(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); + ~StepHdrFile() PROTOBUF_FINAL; - StepHdrFile(const StepHdrFile& from); - StepHdrFile(StepHdrFile&& from) noexcept - : StepHdrFile() { - *this = ::std::move(from); +#if defined(PROTOBUF_CUSTOM_VTABLE) + void operator delete(StepHdrFile* msg, std::destroying_delete_t) { + SharedDtor(*msg); + ::google::protobuf::internal::SizedDelete(msg, sizeof(StepHdrFile)); } +#endif + template + explicit PROTOBUF_CONSTEXPR StepHdrFile( + ::google::protobuf::internal::ConstantInitialized); + + inline StepHdrFile(const StepHdrFile& from) : StepHdrFile(nullptr, from) {} + inline StepHdrFile(StepHdrFile&& from) noexcept + : StepHdrFile(nullptr, std::move(from)) {} inline StepHdrFile& operator=(const StepHdrFile& from) { CopyFrom(from); return *this; } inline StepHdrFile& operator=(StepHdrFile&& from) noexcept { if (this == &from) return *this; - if (GetOwningArena() == from.GetOwningArena() - #ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetOwningArena() != nullptr - #endif // !PROTOBUF_FORCE_COPY_IN_MOVE - ) { + if (::google::protobuf::internal::CanMoveWithInternalSwap(GetArena(), from.GetArena())) { InternalSwap(&from); } else { CopyFrom(from); @@ -425,13 +471,22 @@ class ODBDESIGN_EXPORT StepHdrFile final : return *this; } - static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { + inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const + ABSL_ATTRIBUTE_LIFETIME_BOUND { + return _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance); + } + inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() + ABSL_ATTRIBUTE_LIFETIME_BOUND { + return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); + } + + static const ::google::protobuf::Descriptor* descriptor() { return GetDescriptor(); } - static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { + static const ::google::protobuf::Descriptor* GetDescriptor() { return default_instance().GetMetadata().descriptor; } - static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { + static const ::google::protobuf::Reflection* GetReflection() { return default_instance().GetMetadata().reflection; } static const StepHdrFile& default_instance() { @@ -439,85 +494,95 @@ class ODBDESIGN_EXPORT StepHdrFile final : } static inline const StepHdrFile* internal_default_instance() { return reinterpret_cast( - &_StepHdrFile_default_instance_); - } - static constexpr int kIndexInFileMessages = - 2; - - friend void swap(StepHdrFile& a, StepHdrFile& b) { - a.Swap(&b); + &_StepHdrFile_default_instance_); } + static constexpr int kIndexInFileMessages = 2; + friend void swap(StepHdrFile& a, StepHdrFile& b) { a.Swap(&b); } inline void Swap(StepHdrFile* other) { if (other == this) return; - #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetOwningArena() != nullptr && - GetOwningArena() == other->GetOwningArena()) { - #else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetOwningArena() == other->GetOwningArena()) { - #endif // !PROTOBUF_FORCE_COPY_IN_SWAP + if (::google::protobuf::internal::CanUseInternalSwap(GetArena(), other->GetArena())) { InternalSwap(other); } else { - ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); + ::google::protobuf::internal::GenericSwap(this, other); } } void UnsafeArenaSwap(StepHdrFile* other) { if (other == this) return; - GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); + ABSL_DCHECK(GetArena() == other->GetArena()); InternalSwap(other); } // implements Message ---------------------------------------------- - StepHdrFile* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); + StepHdrFile* New(::google::protobuf::Arena* arena = nullptr) const { + return ::google::protobuf::Message::DefaultConstruct(arena); } - using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; + using ::google::protobuf::Message::CopyFrom; void CopyFrom(const StepHdrFile& from); - using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; - void MergeFrom( const StepHdrFile& from) { - StepHdrFile::MergeImpl(*this, from); - } - private: - static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg); - public: - PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; - bool IsInitialized() const final; - - size_t ByteSizeLong() const final; - const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final; - uint8_t* _InternalSerialize( - uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const final { return _impl_._cached_size_.Get(); } + using ::google::protobuf::Message::MergeFrom; + void MergeFrom(const StepHdrFile& from) { StepHdrFile::MergeImpl(*this, from); } private: - void SharedCtor(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned); - void SharedDtor(); - void SetCachedSize(int size) const final; - void InternalSwap(StepHdrFile* other); + static void MergeImpl( + ::google::protobuf::MessageLite& to_msg, + const ::google::protobuf::MessageLite& from_msg); - private: - friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; - static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { - return "Odb.Lib.Protobuf.StepHdrFile"; + public: + bool IsInitialized() const { + return true; } - protected: - explicit StepHdrFile(::PROTOBUF_NAMESPACE_ID::Arena* arena, - bool is_message_owned = false); + ABSL_ATTRIBUTE_REINITIALIZES void Clear() PROTOBUF_FINAL; + #if defined(PROTOBUF_CUSTOM_VTABLE) private: - static void ArenaDtor(void* object); - public: + static ::size_t ByteSizeLong(const ::google::protobuf::MessageLite& msg); + static ::uint8_t* _InternalSerialize( + const MessageLite& msg, ::uint8_t* target, + ::google::protobuf::io::EpsCopyOutputStream* stream); - static const ClassData _class_data_; - const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final; + public: + ::size_t ByteSizeLong() const { return ByteSizeLong(*this); } + ::uint8_t* _InternalSerialize( + ::uint8_t* target, + ::google::protobuf::io::EpsCopyOutputStream* stream) const { + return _InternalSerialize(*this, target, stream); + } + #else // PROTOBUF_CUSTOM_VTABLE + ::size_t ByteSizeLong() const final; + ::uint8_t* _InternalSerialize( + ::uint8_t* target, + ::google::protobuf::io::EpsCopyOutputStream* stream) const final; + #endif // PROTOBUF_CUSTOM_VTABLE + int GetCachedSize() const { return _impl_._cached_size_.Get(); } - ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; + private: + void SharedCtor(::google::protobuf::Arena* arena); + static void SharedDtor(MessageLite& self); + void InternalSwap(StepHdrFile* other); + private: + template + friend ::absl::string_view( + ::google::protobuf::internal::GetAnyMessageName)(); + static ::absl::string_view FullMessageName() { return "Odb.Lib.Protobuf.StepHdrFile"; } + + protected: + explicit StepHdrFile(::google::protobuf::Arena* arena); + StepHdrFile(::google::protobuf::Arena* arena, const StepHdrFile& from); + StepHdrFile(::google::protobuf::Arena* arena, StepHdrFile&& from) noexcept + : StepHdrFile(arena) { + *this = ::std::move(from); + } + const ::google::protobuf::internal::ClassData* GetClassData() const PROTOBUF_FINAL; + static void* PlacementNew_(const void*, void* mem, + ::google::protobuf::Arena* arena); + static constexpr auto InternalNewImpl_(); + static const ::google::protobuf::internal::ClassDataFull _class_data_; + public: + ::google::protobuf::Metadata GetMetadata() const; // nested types ---------------------------------------------------- - - typedef StepHdrFile_StepRepeatRecord StepRepeatRecord; + using StepRepeatRecord = StepHdrFile_StepRepeatRecord; // accessors ------------------------------------------------------- - enum : int { kStepRepeatRecordsFieldNumber = 13, kOnlineValuesFieldNumber = 15, @@ -539,243 +604,231 @@ class ODBDESIGN_EXPORT StepHdrFile final : int steprepeatrecords_size() const; private: int _internal_steprepeatrecords_size() const; + public: - void clear_steprepeatrecords(); + void clear_steprepeatrecords() ; ::Odb::Lib::Protobuf::StepHdrFile_StepRepeatRecord* mutable_steprepeatrecords(int index); - ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::Odb::Lib::Protobuf::StepHdrFile_StepRepeatRecord >* - mutable_steprepeatrecords(); + ::google::protobuf::RepeatedPtrField<::Odb::Lib::Protobuf::StepHdrFile_StepRepeatRecord>* mutable_steprepeatrecords(); + private: - const ::Odb::Lib::Protobuf::StepHdrFile_StepRepeatRecord& _internal_steprepeatrecords(int index) const; - ::Odb::Lib::Protobuf::StepHdrFile_StepRepeatRecord* _internal_add_steprepeatrecords(); + const ::google::protobuf::RepeatedPtrField<::Odb::Lib::Protobuf::StepHdrFile_StepRepeatRecord>& _internal_steprepeatrecords() const; + ::google::protobuf::RepeatedPtrField<::Odb::Lib::Protobuf::StepHdrFile_StepRepeatRecord>* _internal_mutable_steprepeatrecords(); public: const ::Odb::Lib::Protobuf::StepHdrFile_StepRepeatRecord& steprepeatrecords(int index) const; ::Odb::Lib::Protobuf::StepHdrFile_StepRepeatRecord* add_steprepeatrecords(); - const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::Odb::Lib::Protobuf::StepHdrFile_StepRepeatRecord >& - steprepeatrecords() const; - + const ::google::protobuf::RepeatedPtrField<::Odb::Lib::Protobuf::StepHdrFile_StepRepeatRecord>& steprepeatrecords() const; // map onlineValues = 15; int onlinevalues_size() const; private: int _internal_onlinevalues_size() const; + public: - void clear_onlinevalues(); + void clear_onlinevalues() ; + const ::google::protobuf::Map& onlinevalues() const; + ::google::protobuf::Map* mutable_onlinevalues(); + private: - const ::PROTOBUF_NAMESPACE_ID::Map< std::string, std::string >& - _internal_onlinevalues() const; - ::PROTOBUF_NAMESPACE_ID::Map< std::string, std::string >* - _internal_mutable_onlinevalues(); - public: - const ::PROTOBUF_NAMESPACE_ID::Map< std::string, std::string >& - onlinevalues() const; - ::PROTOBUF_NAMESPACE_ID::Map< std::string, std::string >* - mutable_onlinevalues(); + const ::google::protobuf::Map& _internal_onlinevalues() const; + ::google::protobuf::Map* _internal_mutable_onlinevalues(); + public: // optional string affectingBom = 10; bool has_affectingbom() const; - private: - bool _internal_has_affectingbom() const; - public: - void clear_affectingbom(); + void clear_affectingbom() ; const std::string& affectingbom() const; - template - void set_affectingbom(ArgT0&& arg0, ArgT... args); + template + void set_affectingbom(Arg_&& arg, Args_... args); std::string* mutable_affectingbom(); PROTOBUF_NODISCARD std::string* release_affectingbom(); - void set_allocated_affectingbom(std::string* affectingbom); + void set_allocated_affectingbom(std::string* value); + private: const std::string& _internal_affectingbom() const; - inline PROTOBUF_ALWAYS_INLINE void _internal_set_affectingbom(const std::string& value); + inline PROTOBUF_ALWAYS_INLINE void _internal_set_affectingbom( + const std::string& value); std::string* _internal_mutable_affectingbom(); - public: + public: // optional string online = 12; bool has_online() const; - private: - bool _internal_has_online() const; - public: - void clear_online(); + void clear_online() ; const std::string& online() const; - template - void set_online(ArgT0&& arg0, ArgT... args); + template + void set_online(Arg_&& arg, Args_... args); std::string* mutable_online(); PROTOBUF_NODISCARD std::string* release_online(); - void set_allocated_online(std::string* online); + void set_allocated_online(std::string* value); + private: const std::string& _internal_online() const; - inline PROTOBUF_ALWAYS_INLINE void _internal_set_online(const std::string& value); + inline PROTOBUF_ALWAYS_INLINE void _internal_set_online( + const std::string& value); std::string* _internal_mutable_online(); - public: + public: // optional string path = 14; bool has_path() const; - private: - bool _internal_has_path() const; - public: - void clear_path(); + void clear_path() ; const std::string& path() const; - template - void set_path(ArgT0&& arg0, ArgT... args); + template + void set_path(Arg_&& arg, Args_... args); std::string* mutable_path(); PROTOBUF_NODISCARD std::string* release_path(); - void set_allocated_path(std::string* path); + void set_allocated_path(std::string* value); + private: const std::string& _internal_path() const; - inline PROTOBUF_ALWAYS_INLINE void _internal_set_path(const std::string& value); + inline PROTOBUF_ALWAYS_INLINE void _internal_set_path( + const std::string& value); std::string* _internal_mutable_path(); - public: + public: // optional float xDatum = 1; bool has_xdatum() const; - private: - bool _internal_has_xdatum() const; - public: - void clear_xdatum(); + void clear_xdatum() ; float xdatum() const; void set_xdatum(float value); + private: float _internal_xdatum() const; void _internal_set_xdatum(float value); - public: + public: // optional float yDatum = 2; bool has_ydatum() const; - private: - bool _internal_has_ydatum() const; - public: - void clear_ydatum(); + void clear_ydatum() ; float ydatum() const; void set_ydatum(float value); + private: float _internal_ydatum() const; void _internal_set_ydatum(float value); - public: + public: // optional int32 id = 3; bool has_id() const; + void clear_id() ; + ::int32_t id() const; + void set_id(::int32_t value); + private: - bool _internal_has_id() const; - public: - void clear_id(); - int32_t id() const; - void set_id(int32_t value); - private: - int32_t _internal_id() const; - void _internal_set_id(int32_t value); - public: + ::int32_t _internal_id() const; + void _internal_set_id(::int32_t value); + public: // optional float xOrigin = 4; bool has_xorigin() const; - private: - bool _internal_has_xorigin() const; - public: - void clear_xorigin(); + void clear_xorigin() ; float xorigin() const; void set_xorigin(float value); + private: float _internal_xorigin() const; void _internal_set_xorigin(float value); - public: + public: // optional float yOrigin = 5; bool has_yorigin() const; - private: - bool _internal_has_yorigin() const; - public: - void clear_yorigin(); + void clear_yorigin() ; float yorigin() const; void set_yorigin(float value); + private: float _internal_yorigin() const; void _internal_set_yorigin(float value); - public: + public: // optional float topActive = 6; bool has_topactive() const; - private: - bool _internal_has_topactive() const; - public: - void clear_topactive(); + void clear_topactive() ; float topactive() const; void set_topactive(float value); + private: float _internal_topactive() const; void _internal_set_topactive(float value); - public: + public: // optional float bottomActive = 7; bool has_bottomactive() const; - private: - bool _internal_has_bottomactive() const; - public: - void clear_bottomactive(); + void clear_bottomactive() ; float bottomactive() const; void set_bottomactive(float value); + private: float _internal_bottomactive() const; void _internal_set_bottomactive(float value); - public: + public: // optional float rightActive = 8; bool has_rightactive() const; - private: - bool _internal_has_rightactive() const; - public: - void clear_rightactive(); + void clear_rightactive() ; float rightactive() const; void set_rightactive(float value); + private: float _internal_rightactive() const; void _internal_set_rightactive(float value); - public: + public: // optional float leftActive = 9; bool has_leftactive() const; - private: - bool _internal_has_leftactive() const; - public: - void clear_leftactive(); + void clear_leftactive() ; float leftactive() const; void set_leftactive(float value); + private: float _internal_leftactive() const; void _internal_set_leftactive(float value); - public: + public: // optional bool affectingBomChanged = 11; bool has_affectingbomchanged() const; - private: - bool _internal_has_affectingbomchanged() const; - public: - void clear_affectingbomchanged(); + void clear_affectingbomchanged() ; bool affectingbomchanged() const; void set_affectingbomchanged(bool value); + private: bool _internal_affectingbomchanged() const; void _internal_set_affectingbomchanged(bool value); - public: + public: // @@protoc_insertion_point(class_scope:Odb.Lib.Protobuf.StepHdrFile) private: class _Internal; - - template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; - typedef void InternalArenaConstructable_; - typedef void DestructorSkippable_; + friend class ::google::protobuf::internal::TcParser; + static const ::google::protobuf::internal::TcParseTable< + 4, 15, 2, + 79, 2> + _table_; + + friend class ::google::protobuf::MessageLite; + friend class ::google::protobuf::Arena; + template + friend class ::google::protobuf::Arena::InternalHelper; + using InternalArenaConstructable_ = void; + using DestructorSkippable_ = void; struct Impl_ { - ::PROTOBUF_NAMESPACE_ID::internal::HasBits<1> _has_bits_; - mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; - ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::Odb::Lib::Protobuf::StepHdrFile_StepRepeatRecord > steprepeatrecords_; - ::PROTOBUF_NAMESPACE_ID::internal::MapField< - StepHdrFile_OnlineValuesEntry_DoNotUse, - std::string, std::string, - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::TYPE_STRING, - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::TYPE_STRING> onlinevalues_; - ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr affectingbom_; - ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr online_; - ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr path_; + inline explicit constexpr Impl_( + ::google::protobuf::internal::ConstantInitialized) noexcept; + inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* arena); + inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* arena, const Impl_& from, + const StepHdrFile& from_msg); + ::google::protobuf::internal::HasBits<1> _has_bits_; + ::google::protobuf::internal::CachedSize _cached_size_; + ::google::protobuf::RepeatedPtrField< ::Odb::Lib::Protobuf::StepHdrFile_StepRepeatRecord > steprepeatrecords_; + ::google::protobuf::internal::MapField + onlinevalues_; + ::google::protobuf::internal::ArenaStringPtr affectingbom_; + ::google::protobuf::internal::ArenaStringPtr online_; + ::google::protobuf::internal::ArenaStringPtr path_; float xdatum_; float ydatum_; - int32_t id_; + ::int32_t id_; float xorigin_; float yorigin_; float topactive_; @@ -783,340 +836,348 @@ class ODBDESIGN_EXPORT StepHdrFile final : float rightactive_; float leftactive_; bool affectingbomchanged_; + PROTOBUF_TSAN_DECLARE_MEMBER }; union { Impl_ _impl_; }; friend struct ::TableStruct_stephdrfile_2eproto; }; + // =================================================================== + + // =================================================================== + #ifdef __GNUC__ - #pragma GCC diagnostic push - #pragma GCC diagnostic ignored "-Wstrict-aliasing" +#pragma GCC diagnostic push +#pragma GCC diagnostic ignored "-Wstrict-aliasing" #endif // __GNUC__ +// ------------------------------------------------------------------- + // StepHdrFile_StepRepeatRecord // optional string name = 1; -inline bool StepHdrFile_StepRepeatRecord::_internal_has_name() const { +inline bool StepHdrFile_StepRepeatRecord::has_name() const { bool value = (_impl_._has_bits_[0] & 0x00000001u) != 0; return value; } -inline bool StepHdrFile_StepRepeatRecord::has_name() const { - return _internal_has_name(); -} inline void StepHdrFile_StepRepeatRecord::clear_name() { + ::google::protobuf::internal::TSanWrite(&_impl_); _impl_.name_.ClearToEmpty(); _impl_._has_bits_[0] &= ~0x00000001u; } -inline const std::string& StepHdrFile_StepRepeatRecord::name() const { +inline const std::string& StepHdrFile_StepRepeatRecord::name() const + ABSL_ATTRIBUTE_LIFETIME_BOUND { // @@protoc_insertion_point(field_get:Odb.Lib.Protobuf.StepHdrFile.StepRepeatRecord.name) return _internal_name(); } -template -inline PROTOBUF_ALWAYS_INLINE -void StepHdrFile_StepRepeatRecord::set_name(ArgT0&& arg0, ArgT... args) { - _impl_._has_bits_[0] |= 0x00000001u; - _impl_.name_.Set(static_cast(arg0), args..., GetArenaForAllocation()); +template +inline PROTOBUF_ALWAYS_INLINE void StepHdrFile_StepRepeatRecord::set_name(Arg_&& arg, + Args_... args) { + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_._has_bits_[0] |= 0x00000001u; + _impl_.name_.Set(static_cast(arg), args..., GetArena()); // @@protoc_insertion_point(field_set:Odb.Lib.Protobuf.StepHdrFile.StepRepeatRecord.name) } -inline std::string* StepHdrFile_StepRepeatRecord::mutable_name() { +inline std::string* StepHdrFile_StepRepeatRecord::mutable_name() ABSL_ATTRIBUTE_LIFETIME_BOUND { std::string* _s = _internal_mutable_name(); // @@protoc_insertion_point(field_mutable:Odb.Lib.Protobuf.StepHdrFile.StepRepeatRecord.name) return _s; } inline const std::string& StepHdrFile_StepRepeatRecord::_internal_name() const { + ::google::protobuf::internal::TSanRead(&_impl_); return _impl_.name_.Get(); } inline void StepHdrFile_StepRepeatRecord::_internal_set_name(const std::string& value) { + ::google::protobuf::internal::TSanWrite(&_impl_); _impl_._has_bits_[0] |= 0x00000001u; - _impl_.name_.Set(value, GetArenaForAllocation()); + _impl_.name_.Set(value, GetArena()); } inline std::string* StepHdrFile_StepRepeatRecord::_internal_mutable_name() { + ::google::protobuf::internal::TSanWrite(&_impl_); _impl_._has_bits_[0] |= 0x00000001u; - return _impl_.name_.Mutable(GetArenaForAllocation()); + return _impl_.name_.Mutable( GetArena()); } inline std::string* StepHdrFile_StepRepeatRecord::release_name() { + ::google::protobuf::internal::TSanWrite(&_impl_); // @@protoc_insertion_point(field_release:Odb.Lib.Protobuf.StepHdrFile.StepRepeatRecord.name) - if (!_internal_has_name()) { + if ((_impl_._has_bits_[0] & 0x00000001u) == 0) { return nullptr; } _impl_._has_bits_[0] &= ~0x00000001u; - auto* p = _impl_.name_.Release(); -#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (_impl_.name_.IsDefault()) { - _impl_.name_.Set("", GetArenaForAllocation()); + auto* released = _impl_.name_.Release(); + if (::google::protobuf::internal::DebugHardenForceCopyDefaultString()) { + _impl_.name_.Set("", GetArena()); } -#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING - return p; + return released; } -inline void StepHdrFile_StepRepeatRecord::set_allocated_name(std::string* name) { - if (name != nullptr) { +inline void StepHdrFile_StepRepeatRecord::set_allocated_name(std::string* value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + if (value != nullptr) { _impl_._has_bits_[0] |= 0x00000001u; } else { _impl_._has_bits_[0] &= ~0x00000001u; } - _impl_.name_.SetAllocated(name, GetArenaForAllocation()); -#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (_impl_.name_.IsDefault()) { - _impl_.name_.Set("", GetArenaForAllocation()); + _impl_.name_.SetAllocated(value, GetArena()); + if (::google::protobuf::internal::DebugHardenForceCopyDefaultString() && _impl_.name_.IsDefault()) { + _impl_.name_.Set("", GetArena()); } -#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING // @@protoc_insertion_point(field_set_allocated:Odb.Lib.Protobuf.StepHdrFile.StepRepeatRecord.name) } // optional float x = 2; -inline bool StepHdrFile_StepRepeatRecord::_internal_has_x() const { +inline bool StepHdrFile_StepRepeatRecord::has_x() const { bool value = (_impl_._has_bits_[0] & 0x00000002u) != 0; return value; } -inline bool StepHdrFile_StepRepeatRecord::has_x() const { - return _internal_has_x(); -} inline void StepHdrFile_StepRepeatRecord::clear_x() { + ::google::protobuf::internal::TSanWrite(&_impl_); _impl_.x_ = 0; _impl_._has_bits_[0] &= ~0x00000002u; } -inline float StepHdrFile_StepRepeatRecord::_internal_x() const { - return _impl_.x_; -} inline float StepHdrFile_StepRepeatRecord::x() const { // @@protoc_insertion_point(field_get:Odb.Lib.Protobuf.StepHdrFile.StepRepeatRecord.x) return _internal_x(); } -inline void StepHdrFile_StepRepeatRecord::_internal_set_x(float value) { - _impl_._has_bits_[0] |= 0x00000002u; - _impl_.x_ = value; -} inline void StepHdrFile_StepRepeatRecord::set_x(float value) { _internal_set_x(value); + _impl_._has_bits_[0] |= 0x00000002u; // @@protoc_insertion_point(field_set:Odb.Lib.Protobuf.StepHdrFile.StepRepeatRecord.x) } +inline float StepHdrFile_StepRepeatRecord::_internal_x() const { + ::google::protobuf::internal::TSanRead(&_impl_); + return _impl_.x_; +} +inline void StepHdrFile_StepRepeatRecord::_internal_set_x(float value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.x_ = value; +} // optional float y = 3; -inline bool StepHdrFile_StepRepeatRecord::_internal_has_y() const { +inline bool StepHdrFile_StepRepeatRecord::has_y() const { bool value = (_impl_._has_bits_[0] & 0x00000004u) != 0; return value; } -inline bool StepHdrFile_StepRepeatRecord::has_y() const { - return _internal_has_y(); -} inline void StepHdrFile_StepRepeatRecord::clear_y() { + ::google::protobuf::internal::TSanWrite(&_impl_); _impl_.y_ = 0; _impl_._has_bits_[0] &= ~0x00000004u; } -inline float StepHdrFile_StepRepeatRecord::_internal_y() const { - return _impl_.y_; -} inline float StepHdrFile_StepRepeatRecord::y() const { // @@protoc_insertion_point(field_get:Odb.Lib.Protobuf.StepHdrFile.StepRepeatRecord.y) return _internal_y(); } -inline void StepHdrFile_StepRepeatRecord::_internal_set_y(float value) { - _impl_._has_bits_[0] |= 0x00000004u; - _impl_.y_ = value; -} inline void StepHdrFile_StepRepeatRecord::set_y(float value) { _internal_set_y(value); + _impl_._has_bits_[0] |= 0x00000004u; // @@protoc_insertion_point(field_set:Odb.Lib.Protobuf.StepHdrFile.StepRepeatRecord.y) } +inline float StepHdrFile_StepRepeatRecord::_internal_y() const { + ::google::protobuf::internal::TSanRead(&_impl_); + return _impl_.y_; +} +inline void StepHdrFile_StepRepeatRecord::_internal_set_y(float value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.y_ = value; +} // optional float dx = 4; -inline bool StepHdrFile_StepRepeatRecord::_internal_has_dx() const { +inline bool StepHdrFile_StepRepeatRecord::has_dx() const { bool value = (_impl_._has_bits_[0] & 0x00000008u) != 0; return value; } -inline bool StepHdrFile_StepRepeatRecord::has_dx() const { - return _internal_has_dx(); -} inline void StepHdrFile_StepRepeatRecord::clear_dx() { + ::google::protobuf::internal::TSanWrite(&_impl_); _impl_.dx_ = 0; _impl_._has_bits_[0] &= ~0x00000008u; } -inline float StepHdrFile_StepRepeatRecord::_internal_dx() const { - return _impl_.dx_; -} inline float StepHdrFile_StepRepeatRecord::dx() const { // @@protoc_insertion_point(field_get:Odb.Lib.Protobuf.StepHdrFile.StepRepeatRecord.dx) return _internal_dx(); } -inline void StepHdrFile_StepRepeatRecord::_internal_set_dx(float value) { - _impl_._has_bits_[0] |= 0x00000008u; - _impl_.dx_ = value; -} inline void StepHdrFile_StepRepeatRecord::set_dx(float value) { _internal_set_dx(value); + _impl_._has_bits_[0] |= 0x00000008u; // @@protoc_insertion_point(field_set:Odb.Lib.Protobuf.StepHdrFile.StepRepeatRecord.dx) } +inline float StepHdrFile_StepRepeatRecord::_internal_dx() const { + ::google::protobuf::internal::TSanRead(&_impl_); + return _impl_.dx_; +} +inline void StepHdrFile_StepRepeatRecord::_internal_set_dx(float value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.dx_ = value; +} // optional float dy = 5; -inline bool StepHdrFile_StepRepeatRecord::_internal_has_dy() const { +inline bool StepHdrFile_StepRepeatRecord::has_dy() const { bool value = (_impl_._has_bits_[0] & 0x00000010u) != 0; return value; } -inline bool StepHdrFile_StepRepeatRecord::has_dy() const { - return _internal_has_dy(); -} inline void StepHdrFile_StepRepeatRecord::clear_dy() { + ::google::protobuf::internal::TSanWrite(&_impl_); _impl_.dy_ = 0; _impl_._has_bits_[0] &= ~0x00000010u; } -inline float StepHdrFile_StepRepeatRecord::_internal_dy() const { - return _impl_.dy_; -} inline float StepHdrFile_StepRepeatRecord::dy() const { // @@protoc_insertion_point(field_get:Odb.Lib.Protobuf.StepHdrFile.StepRepeatRecord.dy) return _internal_dy(); } -inline void StepHdrFile_StepRepeatRecord::_internal_set_dy(float value) { - _impl_._has_bits_[0] |= 0x00000010u; - _impl_.dy_ = value; -} inline void StepHdrFile_StepRepeatRecord::set_dy(float value) { _internal_set_dy(value); + _impl_._has_bits_[0] |= 0x00000010u; // @@protoc_insertion_point(field_set:Odb.Lib.Protobuf.StepHdrFile.StepRepeatRecord.dy) } +inline float StepHdrFile_StepRepeatRecord::_internal_dy() const { + ::google::protobuf::internal::TSanRead(&_impl_); + return _impl_.dy_; +} +inline void StepHdrFile_StepRepeatRecord::_internal_set_dy(float value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.dy_ = value; +} // optional int32 nx = 6; -inline bool StepHdrFile_StepRepeatRecord::_internal_has_nx() const { +inline bool StepHdrFile_StepRepeatRecord::has_nx() const { bool value = (_impl_._has_bits_[0] & 0x00000020u) != 0; return value; } -inline bool StepHdrFile_StepRepeatRecord::has_nx() const { - return _internal_has_nx(); -} inline void StepHdrFile_StepRepeatRecord::clear_nx() { + ::google::protobuf::internal::TSanWrite(&_impl_); _impl_.nx_ = 0; _impl_._has_bits_[0] &= ~0x00000020u; } -inline int32_t StepHdrFile_StepRepeatRecord::_internal_nx() const { - return _impl_.nx_; -} -inline int32_t StepHdrFile_StepRepeatRecord::nx() const { +inline ::int32_t StepHdrFile_StepRepeatRecord::nx() const { // @@protoc_insertion_point(field_get:Odb.Lib.Protobuf.StepHdrFile.StepRepeatRecord.nx) return _internal_nx(); } -inline void StepHdrFile_StepRepeatRecord::_internal_set_nx(int32_t value) { - _impl_._has_bits_[0] |= 0x00000020u; - _impl_.nx_ = value; -} -inline void StepHdrFile_StepRepeatRecord::set_nx(int32_t value) { +inline void StepHdrFile_StepRepeatRecord::set_nx(::int32_t value) { _internal_set_nx(value); + _impl_._has_bits_[0] |= 0x00000020u; // @@protoc_insertion_point(field_set:Odb.Lib.Protobuf.StepHdrFile.StepRepeatRecord.nx) } +inline ::int32_t StepHdrFile_StepRepeatRecord::_internal_nx() const { + ::google::protobuf::internal::TSanRead(&_impl_); + return _impl_.nx_; +} +inline void StepHdrFile_StepRepeatRecord::_internal_set_nx(::int32_t value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.nx_ = value; +} // optional int32 ny = 7; -inline bool StepHdrFile_StepRepeatRecord::_internal_has_ny() const { +inline bool StepHdrFile_StepRepeatRecord::has_ny() const { bool value = (_impl_._has_bits_[0] & 0x00000040u) != 0; return value; } -inline bool StepHdrFile_StepRepeatRecord::has_ny() const { - return _internal_has_ny(); -} inline void StepHdrFile_StepRepeatRecord::clear_ny() { + ::google::protobuf::internal::TSanWrite(&_impl_); _impl_.ny_ = 0; _impl_._has_bits_[0] &= ~0x00000040u; } -inline int32_t StepHdrFile_StepRepeatRecord::_internal_ny() const { - return _impl_.ny_; -} -inline int32_t StepHdrFile_StepRepeatRecord::ny() const { +inline ::int32_t StepHdrFile_StepRepeatRecord::ny() const { // @@protoc_insertion_point(field_get:Odb.Lib.Protobuf.StepHdrFile.StepRepeatRecord.ny) return _internal_ny(); } -inline void StepHdrFile_StepRepeatRecord::_internal_set_ny(int32_t value) { - _impl_._has_bits_[0] |= 0x00000040u; - _impl_.ny_ = value; -} -inline void StepHdrFile_StepRepeatRecord::set_ny(int32_t value) { +inline void StepHdrFile_StepRepeatRecord::set_ny(::int32_t value) { _internal_set_ny(value); + _impl_._has_bits_[0] |= 0x00000040u; // @@protoc_insertion_point(field_set:Odb.Lib.Protobuf.StepHdrFile.StepRepeatRecord.ny) } +inline ::int32_t StepHdrFile_StepRepeatRecord::_internal_ny() const { + ::google::protobuf::internal::TSanRead(&_impl_); + return _impl_.ny_; +} +inline void StepHdrFile_StepRepeatRecord::_internal_set_ny(::int32_t value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.ny_ = value; +} // optional float angle = 8; -inline bool StepHdrFile_StepRepeatRecord::_internal_has_angle() const { +inline bool StepHdrFile_StepRepeatRecord::has_angle() const { bool value = (_impl_._has_bits_[0] & 0x00000080u) != 0; return value; } -inline bool StepHdrFile_StepRepeatRecord::has_angle() const { - return _internal_has_angle(); -} inline void StepHdrFile_StepRepeatRecord::clear_angle() { + ::google::protobuf::internal::TSanWrite(&_impl_); _impl_.angle_ = 0; _impl_._has_bits_[0] &= ~0x00000080u; } -inline float StepHdrFile_StepRepeatRecord::_internal_angle() const { - return _impl_.angle_; -} inline float StepHdrFile_StepRepeatRecord::angle() const { // @@protoc_insertion_point(field_get:Odb.Lib.Protobuf.StepHdrFile.StepRepeatRecord.angle) return _internal_angle(); } -inline void StepHdrFile_StepRepeatRecord::_internal_set_angle(float value) { - _impl_._has_bits_[0] |= 0x00000080u; - _impl_.angle_ = value; -} inline void StepHdrFile_StepRepeatRecord::set_angle(float value) { _internal_set_angle(value); + _impl_._has_bits_[0] |= 0x00000080u; // @@protoc_insertion_point(field_set:Odb.Lib.Protobuf.StepHdrFile.StepRepeatRecord.angle) } +inline float StepHdrFile_StepRepeatRecord::_internal_angle() const { + ::google::protobuf::internal::TSanRead(&_impl_); + return _impl_.angle_; +} +inline void StepHdrFile_StepRepeatRecord::_internal_set_angle(float value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.angle_ = value; +} // optional bool flip = 9; -inline bool StepHdrFile_StepRepeatRecord::_internal_has_flip() const { +inline bool StepHdrFile_StepRepeatRecord::has_flip() const { bool value = (_impl_._has_bits_[0] & 0x00000100u) != 0; return value; } -inline bool StepHdrFile_StepRepeatRecord::has_flip() const { - return _internal_has_flip(); -} inline void StepHdrFile_StepRepeatRecord::clear_flip() { + ::google::protobuf::internal::TSanWrite(&_impl_); _impl_.flip_ = false; _impl_._has_bits_[0] &= ~0x00000100u; } -inline bool StepHdrFile_StepRepeatRecord::_internal_flip() const { - return _impl_.flip_; -} inline bool StepHdrFile_StepRepeatRecord::flip() const { // @@protoc_insertion_point(field_get:Odb.Lib.Protobuf.StepHdrFile.StepRepeatRecord.flip) return _internal_flip(); } -inline void StepHdrFile_StepRepeatRecord::_internal_set_flip(bool value) { - _impl_._has_bits_[0] |= 0x00000100u; - _impl_.flip_ = value; -} inline void StepHdrFile_StepRepeatRecord::set_flip(bool value) { _internal_set_flip(value); + _impl_._has_bits_[0] |= 0x00000100u; // @@protoc_insertion_point(field_set:Odb.Lib.Protobuf.StepHdrFile.StepRepeatRecord.flip) } +inline bool StepHdrFile_StepRepeatRecord::_internal_flip() const { + ::google::protobuf::internal::TSanRead(&_impl_); + return _impl_.flip_; +} +inline void StepHdrFile_StepRepeatRecord::_internal_set_flip(bool value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.flip_ = value; +} // optional bool mirror = 10; -inline bool StepHdrFile_StepRepeatRecord::_internal_has_mirror() const { +inline bool StepHdrFile_StepRepeatRecord::has_mirror() const { bool value = (_impl_._has_bits_[0] & 0x00000200u) != 0; return value; } -inline bool StepHdrFile_StepRepeatRecord::has_mirror() const { - return _internal_has_mirror(); -} inline void StepHdrFile_StepRepeatRecord::clear_mirror() { + ::google::protobuf::internal::TSanWrite(&_impl_); _impl_.mirror_ = false; _impl_._has_bits_[0] &= ~0x00000200u; } -inline bool StepHdrFile_StepRepeatRecord::_internal_mirror() const { - return _impl_.mirror_; -} inline bool StepHdrFile_StepRepeatRecord::mirror() const { // @@protoc_insertion_point(field_get:Odb.Lib.Protobuf.StepHdrFile.StepRepeatRecord.mirror) return _internal_mirror(); } -inline void StepHdrFile_StepRepeatRecord::_internal_set_mirror(bool value) { - _impl_._has_bits_[0] |= 0x00000200u; - _impl_.mirror_ = value; -} inline void StepHdrFile_StepRepeatRecord::set_mirror(bool value) { _internal_set_mirror(value); + _impl_._has_bits_[0] |= 0x00000200u; // @@protoc_insertion_point(field_set:Odb.Lib.Protobuf.StepHdrFile.StepRepeatRecord.mirror) } +inline bool StepHdrFile_StepRepeatRecord::_internal_mirror() const { + ::google::protobuf::internal::TSanRead(&_impl_); + return _impl_.mirror_; +} +inline void StepHdrFile_StepRepeatRecord::_internal_set_mirror(bool value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.mirror_ = value; +} // ------------------------------------------------------------------- @@ -1125,573 +1186,581 @@ inline void StepHdrFile_StepRepeatRecord::set_mirror(bool value) { // StepHdrFile // optional float xDatum = 1; -inline bool StepHdrFile::_internal_has_xdatum() const { +inline bool StepHdrFile::has_xdatum() const { bool value = (_impl_._has_bits_[0] & 0x00000008u) != 0; return value; } -inline bool StepHdrFile::has_xdatum() const { - return _internal_has_xdatum(); -} inline void StepHdrFile::clear_xdatum() { + ::google::protobuf::internal::TSanWrite(&_impl_); _impl_.xdatum_ = 0; _impl_._has_bits_[0] &= ~0x00000008u; } -inline float StepHdrFile::_internal_xdatum() const { - return _impl_.xdatum_; -} inline float StepHdrFile::xdatum() const { // @@protoc_insertion_point(field_get:Odb.Lib.Protobuf.StepHdrFile.xDatum) return _internal_xdatum(); } -inline void StepHdrFile::_internal_set_xdatum(float value) { - _impl_._has_bits_[0] |= 0x00000008u; - _impl_.xdatum_ = value; -} inline void StepHdrFile::set_xdatum(float value) { _internal_set_xdatum(value); + _impl_._has_bits_[0] |= 0x00000008u; // @@protoc_insertion_point(field_set:Odb.Lib.Protobuf.StepHdrFile.xDatum) } +inline float StepHdrFile::_internal_xdatum() const { + ::google::protobuf::internal::TSanRead(&_impl_); + return _impl_.xdatum_; +} +inline void StepHdrFile::_internal_set_xdatum(float value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.xdatum_ = value; +} // optional float yDatum = 2; -inline bool StepHdrFile::_internal_has_ydatum() const { +inline bool StepHdrFile::has_ydatum() const { bool value = (_impl_._has_bits_[0] & 0x00000010u) != 0; return value; } -inline bool StepHdrFile::has_ydatum() const { - return _internal_has_ydatum(); -} inline void StepHdrFile::clear_ydatum() { + ::google::protobuf::internal::TSanWrite(&_impl_); _impl_.ydatum_ = 0; _impl_._has_bits_[0] &= ~0x00000010u; } -inline float StepHdrFile::_internal_ydatum() const { - return _impl_.ydatum_; -} inline float StepHdrFile::ydatum() const { // @@protoc_insertion_point(field_get:Odb.Lib.Protobuf.StepHdrFile.yDatum) return _internal_ydatum(); } -inline void StepHdrFile::_internal_set_ydatum(float value) { - _impl_._has_bits_[0] |= 0x00000010u; - _impl_.ydatum_ = value; -} inline void StepHdrFile::set_ydatum(float value) { _internal_set_ydatum(value); + _impl_._has_bits_[0] |= 0x00000010u; // @@protoc_insertion_point(field_set:Odb.Lib.Protobuf.StepHdrFile.yDatum) } +inline float StepHdrFile::_internal_ydatum() const { + ::google::protobuf::internal::TSanRead(&_impl_); + return _impl_.ydatum_; +} +inline void StepHdrFile::_internal_set_ydatum(float value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.ydatum_ = value; +} // optional int32 id = 3; -inline bool StepHdrFile::_internal_has_id() const { +inline bool StepHdrFile::has_id() const { bool value = (_impl_._has_bits_[0] & 0x00000020u) != 0; return value; } -inline bool StepHdrFile::has_id() const { - return _internal_has_id(); -} inline void StepHdrFile::clear_id() { + ::google::protobuf::internal::TSanWrite(&_impl_); _impl_.id_ = 0; _impl_._has_bits_[0] &= ~0x00000020u; } -inline int32_t StepHdrFile::_internal_id() const { - return _impl_.id_; -} -inline int32_t StepHdrFile::id() const { +inline ::int32_t StepHdrFile::id() const { // @@protoc_insertion_point(field_get:Odb.Lib.Protobuf.StepHdrFile.id) return _internal_id(); } -inline void StepHdrFile::_internal_set_id(int32_t value) { - _impl_._has_bits_[0] |= 0x00000020u; - _impl_.id_ = value; -} -inline void StepHdrFile::set_id(int32_t value) { +inline void StepHdrFile::set_id(::int32_t value) { _internal_set_id(value); + _impl_._has_bits_[0] |= 0x00000020u; // @@protoc_insertion_point(field_set:Odb.Lib.Protobuf.StepHdrFile.id) } +inline ::int32_t StepHdrFile::_internal_id() const { + ::google::protobuf::internal::TSanRead(&_impl_); + return _impl_.id_; +} +inline void StepHdrFile::_internal_set_id(::int32_t value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.id_ = value; +} // optional float xOrigin = 4; -inline bool StepHdrFile::_internal_has_xorigin() const { +inline bool StepHdrFile::has_xorigin() const { bool value = (_impl_._has_bits_[0] & 0x00000040u) != 0; return value; } -inline bool StepHdrFile::has_xorigin() const { - return _internal_has_xorigin(); -} inline void StepHdrFile::clear_xorigin() { + ::google::protobuf::internal::TSanWrite(&_impl_); _impl_.xorigin_ = 0; _impl_._has_bits_[0] &= ~0x00000040u; } -inline float StepHdrFile::_internal_xorigin() const { - return _impl_.xorigin_; -} inline float StepHdrFile::xorigin() const { // @@protoc_insertion_point(field_get:Odb.Lib.Protobuf.StepHdrFile.xOrigin) return _internal_xorigin(); } -inline void StepHdrFile::_internal_set_xorigin(float value) { - _impl_._has_bits_[0] |= 0x00000040u; - _impl_.xorigin_ = value; -} inline void StepHdrFile::set_xorigin(float value) { _internal_set_xorigin(value); + _impl_._has_bits_[0] |= 0x00000040u; // @@protoc_insertion_point(field_set:Odb.Lib.Protobuf.StepHdrFile.xOrigin) } +inline float StepHdrFile::_internal_xorigin() const { + ::google::protobuf::internal::TSanRead(&_impl_); + return _impl_.xorigin_; +} +inline void StepHdrFile::_internal_set_xorigin(float value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.xorigin_ = value; +} // optional float yOrigin = 5; -inline bool StepHdrFile::_internal_has_yorigin() const { +inline bool StepHdrFile::has_yorigin() const { bool value = (_impl_._has_bits_[0] & 0x00000080u) != 0; return value; } -inline bool StepHdrFile::has_yorigin() const { - return _internal_has_yorigin(); -} inline void StepHdrFile::clear_yorigin() { + ::google::protobuf::internal::TSanWrite(&_impl_); _impl_.yorigin_ = 0; _impl_._has_bits_[0] &= ~0x00000080u; } -inline float StepHdrFile::_internal_yorigin() const { - return _impl_.yorigin_; -} inline float StepHdrFile::yorigin() const { // @@protoc_insertion_point(field_get:Odb.Lib.Protobuf.StepHdrFile.yOrigin) return _internal_yorigin(); } -inline void StepHdrFile::_internal_set_yorigin(float value) { - _impl_._has_bits_[0] |= 0x00000080u; - _impl_.yorigin_ = value; -} inline void StepHdrFile::set_yorigin(float value) { _internal_set_yorigin(value); + _impl_._has_bits_[0] |= 0x00000080u; // @@protoc_insertion_point(field_set:Odb.Lib.Protobuf.StepHdrFile.yOrigin) } +inline float StepHdrFile::_internal_yorigin() const { + ::google::protobuf::internal::TSanRead(&_impl_); + return _impl_.yorigin_; +} +inline void StepHdrFile::_internal_set_yorigin(float value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.yorigin_ = value; +} // optional float topActive = 6; -inline bool StepHdrFile::_internal_has_topactive() const { +inline bool StepHdrFile::has_topactive() const { bool value = (_impl_._has_bits_[0] & 0x00000100u) != 0; return value; } -inline bool StepHdrFile::has_topactive() const { - return _internal_has_topactive(); -} inline void StepHdrFile::clear_topactive() { + ::google::protobuf::internal::TSanWrite(&_impl_); _impl_.topactive_ = 0; _impl_._has_bits_[0] &= ~0x00000100u; } -inline float StepHdrFile::_internal_topactive() const { - return _impl_.topactive_; -} inline float StepHdrFile::topactive() const { // @@protoc_insertion_point(field_get:Odb.Lib.Protobuf.StepHdrFile.topActive) return _internal_topactive(); } -inline void StepHdrFile::_internal_set_topactive(float value) { - _impl_._has_bits_[0] |= 0x00000100u; - _impl_.topactive_ = value; -} inline void StepHdrFile::set_topactive(float value) { _internal_set_topactive(value); + _impl_._has_bits_[0] |= 0x00000100u; // @@protoc_insertion_point(field_set:Odb.Lib.Protobuf.StepHdrFile.topActive) } +inline float StepHdrFile::_internal_topactive() const { + ::google::protobuf::internal::TSanRead(&_impl_); + return _impl_.topactive_; +} +inline void StepHdrFile::_internal_set_topactive(float value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.topactive_ = value; +} // optional float bottomActive = 7; -inline bool StepHdrFile::_internal_has_bottomactive() const { +inline bool StepHdrFile::has_bottomactive() const { bool value = (_impl_._has_bits_[0] & 0x00000200u) != 0; return value; } -inline bool StepHdrFile::has_bottomactive() const { - return _internal_has_bottomactive(); -} inline void StepHdrFile::clear_bottomactive() { + ::google::protobuf::internal::TSanWrite(&_impl_); _impl_.bottomactive_ = 0; _impl_._has_bits_[0] &= ~0x00000200u; } -inline float StepHdrFile::_internal_bottomactive() const { - return _impl_.bottomactive_; -} inline float StepHdrFile::bottomactive() const { // @@protoc_insertion_point(field_get:Odb.Lib.Protobuf.StepHdrFile.bottomActive) return _internal_bottomactive(); } -inline void StepHdrFile::_internal_set_bottomactive(float value) { - _impl_._has_bits_[0] |= 0x00000200u; - _impl_.bottomactive_ = value; -} inline void StepHdrFile::set_bottomactive(float value) { _internal_set_bottomactive(value); + _impl_._has_bits_[0] |= 0x00000200u; // @@protoc_insertion_point(field_set:Odb.Lib.Protobuf.StepHdrFile.bottomActive) } +inline float StepHdrFile::_internal_bottomactive() const { + ::google::protobuf::internal::TSanRead(&_impl_); + return _impl_.bottomactive_; +} +inline void StepHdrFile::_internal_set_bottomactive(float value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.bottomactive_ = value; +} // optional float rightActive = 8; -inline bool StepHdrFile::_internal_has_rightactive() const { +inline bool StepHdrFile::has_rightactive() const { bool value = (_impl_._has_bits_[0] & 0x00000400u) != 0; return value; } -inline bool StepHdrFile::has_rightactive() const { - return _internal_has_rightactive(); -} inline void StepHdrFile::clear_rightactive() { + ::google::protobuf::internal::TSanWrite(&_impl_); _impl_.rightactive_ = 0; _impl_._has_bits_[0] &= ~0x00000400u; } -inline float StepHdrFile::_internal_rightactive() const { - return _impl_.rightactive_; -} inline float StepHdrFile::rightactive() const { // @@protoc_insertion_point(field_get:Odb.Lib.Protobuf.StepHdrFile.rightActive) return _internal_rightactive(); } -inline void StepHdrFile::_internal_set_rightactive(float value) { - _impl_._has_bits_[0] |= 0x00000400u; - _impl_.rightactive_ = value; -} inline void StepHdrFile::set_rightactive(float value) { _internal_set_rightactive(value); + _impl_._has_bits_[0] |= 0x00000400u; // @@protoc_insertion_point(field_set:Odb.Lib.Protobuf.StepHdrFile.rightActive) } +inline float StepHdrFile::_internal_rightactive() const { + ::google::protobuf::internal::TSanRead(&_impl_); + return _impl_.rightactive_; +} +inline void StepHdrFile::_internal_set_rightactive(float value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.rightactive_ = value; +} // optional float leftActive = 9; -inline bool StepHdrFile::_internal_has_leftactive() const { +inline bool StepHdrFile::has_leftactive() const { bool value = (_impl_._has_bits_[0] & 0x00000800u) != 0; return value; } -inline bool StepHdrFile::has_leftactive() const { - return _internal_has_leftactive(); -} inline void StepHdrFile::clear_leftactive() { + ::google::protobuf::internal::TSanWrite(&_impl_); _impl_.leftactive_ = 0; _impl_._has_bits_[0] &= ~0x00000800u; } -inline float StepHdrFile::_internal_leftactive() const { - return _impl_.leftactive_; -} inline float StepHdrFile::leftactive() const { // @@protoc_insertion_point(field_get:Odb.Lib.Protobuf.StepHdrFile.leftActive) return _internal_leftactive(); } -inline void StepHdrFile::_internal_set_leftactive(float value) { - _impl_._has_bits_[0] |= 0x00000800u; - _impl_.leftactive_ = value; -} inline void StepHdrFile::set_leftactive(float value) { _internal_set_leftactive(value); + _impl_._has_bits_[0] |= 0x00000800u; // @@protoc_insertion_point(field_set:Odb.Lib.Protobuf.StepHdrFile.leftActive) } +inline float StepHdrFile::_internal_leftactive() const { + ::google::protobuf::internal::TSanRead(&_impl_); + return _impl_.leftactive_; +} +inline void StepHdrFile::_internal_set_leftactive(float value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.leftactive_ = value; +} // optional string affectingBom = 10; -inline bool StepHdrFile::_internal_has_affectingbom() const { +inline bool StepHdrFile::has_affectingbom() const { bool value = (_impl_._has_bits_[0] & 0x00000001u) != 0; return value; } -inline bool StepHdrFile::has_affectingbom() const { - return _internal_has_affectingbom(); -} inline void StepHdrFile::clear_affectingbom() { + ::google::protobuf::internal::TSanWrite(&_impl_); _impl_.affectingbom_.ClearToEmpty(); _impl_._has_bits_[0] &= ~0x00000001u; } -inline const std::string& StepHdrFile::affectingbom() const { +inline const std::string& StepHdrFile::affectingbom() const + ABSL_ATTRIBUTE_LIFETIME_BOUND { // @@protoc_insertion_point(field_get:Odb.Lib.Protobuf.StepHdrFile.affectingBom) return _internal_affectingbom(); } -template -inline PROTOBUF_ALWAYS_INLINE -void StepHdrFile::set_affectingbom(ArgT0&& arg0, ArgT... args) { - _impl_._has_bits_[0] |= 0x00000001u; - _impl_.affectingbom_.Set(static_cast(arg0), args..., GetArenaForAllocation()); +template +inline PROTOBUF_ALWAYS_INLINE void StepHdrFile::set_affectingbom(Arg_&& arg, + Args_... args) { + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_._has_bits_[0] |= 0x00000001u; + _impl_.affectingbom_.Set(static_cast(arg), args..., GetArena()); // @@protoc_insertion_point(field_set:Odb.Lib.Protobuf.StepHdrFile.affectingBom) } -inline std::string* StepHdrFile::mutable_affectingbom() { +inline std::string* StepHdrFile::mutable_affectingbom() ABSL_ATTRIBUTE_LIFETIME_BOUND { std::string* _s = _internal_mutable_affectingbom(); // @@protoc_insertion_point(field_mutable:Odb.Lib.Protobuf.StepHdrFile.affectingBom) return _s; } inline const std::string& StepHdrFile::_internal_affectingbom() const { + ::google::protobuf::internal::TSanRead(&_impl_); return _impl_.affectingbom_.Get(); } inline void StepHdrFile::_internal_set_affectingbom(const std::string& value) { + ::google::protobuf::internal::TSanWrite(&_impl_); _impl_._has_bits_[0] |= 0x00000001u; - _impl_.affectingbom_.Set(value, GetArenaForAllocation()); + _impl_.affectingbom_.Set(value, GetArena()); } inline std::string* StepHdrFile::_internal_mutable_affectingbom() { + ::google::protobuf::internal::TSanWrite(&_impl_); _impl_._has_bits_[0] |= 0x00000001u; - return _impl_.affectingbom_.Mutable(GetArenaForAllocation()); + return _impl_.affectingbom_.Mutable( GetArena()); } inline std::string* StepHdrFile::release_affectingbom() { + ::google::protobuf::internal::TSanWrite(&_impl_); // @@protoc_insertion_point(field_release:Odb.Lib.Protobuf.StepHdrFile.affectingBom) - if (!_internal_has_affectingbom()) { + if ((_impl_._has_bits_[0] & 0x00000001u) == 0) { return nullptr; } _impl_._has_bits_[0] &= ~0x00000001u; - auto* p = _impl_.affectingbom_.Release(); -#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (_impl_.affectingbom_.IsDefault()) { - _impl_.affectingbom_.Set("", GetArenaForAllocation()); + auto* released = _impl_.affectingbom_.Release(); + if (::google::protobuf::internal::DebugHardenForceCopyDefaultString()) { + _impl_.affectingbom_.Set("", GetArena()); } -#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING - return p; + return released; } -inline void StepHdrFile::set_allocated_affectingbom(std::string* affectingbom) { - if (affectingbom != nullptr) { +inline void StepHdrFile::set_allocated_affectingbom(std::string* value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + if (value != nullptr) { _impl_._has_bits_[0] |= 0x00000001u; } else { _impl_._has_bits_[0] &= ~0x00000001u; } - _impl_.affectingbom_.SetAllocated(affectingbom, GetArenaForAllocation()); -#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (_impl_.affectingbom_.IsDefault()) { - _impl_.affectingbom_.Set("", GetArenaForAllocation()); + _impl_.affectingbom_.SetAllocated(value, GetArena()); + if (::google::protobuf::internal::DebugHardenForceCopyDefaultString() && _impl_.affectingbom_.IsDefault()) { + _impl_.affectingbom_.Set("", GetArena()); } -#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING // @@protoc_insertion_point(field_set_allocated:Odb.Lib.Protobuf.StepHdrFile.affectingBom) } // optional bool affectingBomChanged = 11; -inline bool StepHdrFile::_internal_has_affectingbomchanged() const { +inline bool StepHdrFile::has_affectingbomchanged() const { bool value = (_impl_._has_bits_[0] & 0x00001000u) != 0; return value; } -inline bool StepHdrFile::has_affectingbomchanged() const { - return _internal_has_affectingbomchanged(); -} inline void StepHdrFile::clear_affectingbomchanged() { + ::google::protobuf::internal::TSanWrite(&_impl_); _impl_.affectingbomchanged_ = false; _impl_._has_bits_[0] &= ~0x00001000u; } -inline bool StepHdrFile::_internal_affectingbomchanged() const { - return _impl_.affectingbomchanged_; -} inline bool StepHdrFile::affectingbomchanged() const { // @@protoc_insertion_point(field_get:Odb.Lib.Protobuf.StepHdrFile.affectingBomChanged) return _internal_affectingbomchanged(); } -inline void StepHdrFile::_internal_set_affectingbomchanged(bool value) { - _impl_._has_bits_[0] |= 0x00001000u; - _impl_.affectingbomchanged_ = value; -} inline void StepHdrFile::set_affectingbomchanged(bool value) { _internal_set_affectingbomchanged(value); + _impl_._has_bits_[0] |= 0x00001000u; // @@protoc_insertion_point(field_set:Odb.Lib.Protobuf.StepHdrFile.affectingBomChanged) } +inline bool StepHdrFile::_internal_affectingbomchanged() const { + ::google::protobuf::internal::TSanRead(&_impl_); + return _impl_.affectingbomchanged_; +} +inline void StepHdrFile::_internal_set_affectingbomchanged(bool value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.affectingbomchanged_ = value; +} // optional string online = 12; -inline bool StepHdrFile::_internal_has_online() const { +inline bool StepHdrFile::has_online() const { bool value = (_impl_._has_bits_[0] & 0x00000002u) != 0; return value; } -inline bool StepHdrFile::has_online() const { - return _internal_has_online(); -} inline void StepHdrFile::clear_online() { + ::google::protobuf::internal::TSanWrite(&_impl_); _impl_.online_.ClearToEmpty(); _impl_._has_bits_[0] &= ~0x00000002u; } -inline const std::string& StepHdrFile::online() const { +inline const std::string& StepHdrFile::online() const + ABSL_ATTRIBUTE_LIFETIME_BOUND { // @@protoc_insertion_point(field_get:Odb.Lib.Protobuf.StepHdrFile.online) return _internal_online(); } -template -inline PROTOBUF_ALWAYS_INLINE -void StepHdrFile::set_online(ArgT0&& arg0, ArgT... args) { - _impl_._has_bits_[0] |= 0x00000002u; - _impl_.online_.Set(static_cast(arg0), args..., GetArenaForAllocation()); +template +inline PROTOBUF_ALWAYS_INLINE void StepHdrFile::set_online(Arg_&& arg, + Args_... args) { + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_._has_bits_[0] |= 0x00000002u; + _impl_.online_.Set(static_cast(arg), args..., GetArena()); // @@protoc_insertion_point(field_set:Odb.Lib.Protobuf.StepHdrFile.online) } -inline std::string* StepHdrFile::mutable_online() { +inline std::string* StepHdrFile::mutable_online() ABSL_ATTRIBUTE_LIFETIME_BOUND { std::string* _s = _internal_mutable_online(); // @@protoc_insertion_point(field_mutable:Odb.Lib.Protobuf.StepHdrFile.online) return _s; } inline const std::string& StepHdrFile::_internal_online() const { + ::google::protobuf::internal::TSanRead(&_impl_); return _impl_.online_.Get(); } inline void StepHdrFile::_internal_set_online(const std::string& value) { + ::google::protobuf::internal::TSanWrite(&_impl_); _impl_._has_bits_[0] |= 0x00000002u; - _impl_.online_.Set(value, GetArenaForAllocation()); + _impl_.online_.Set(value, GetArena()); } inline std::string* StepHdrFile::_internal_mutable_online() { + ::google::protobuf::internal::TSanWrite(&_impl_); _impl_._has_bits_[0] |= 0x00000002u; - return _impl_.online_.Mutable(GetArenaForAllocation()); + return _impl_.online_.Mutable( GetArena()); } inline std::string* StepHdrFile::release_online() { + ::google::protobuf::internal::TSanWrite(&_impl_); // @@protoc_insertion_point(field_release:Odb.Lib.Protobuf.StepHdrFile.online) - if (!_internal_has_online()) { + if ((_impl_._has_bits_[0] & 0x00000002u) == 0) { return nullptr; } _impl_._has_bits_[0] &= ~0x00000002u; - auto* p = _impl_.online_.Release(); -#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (_impl_.online_.IsDefault()) { - _impl_.online_.Set("", GetArenaForAllocation()); + auto* released = _impl_.online_.Release(); + if (::google::protobuf::internal::DebugHardenForceCopyDefaultString()) { + _impl_.online_.Set("", GetArena()); } -#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING - return p; + return released; } -inline void StepHdrFile::set_allocated_online(std::string* online) { - if (online != nullptr) { +inline void StepHdrFile::set_allocated_online(std::string* value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + if (value != nullptr) { _impl_._has_bits_[0] |= 0x00000002u; } else { _impl_._has_bits_[0] &= ~0x00000002u; } - _impl_.online_.SetAllocated(online, GetArenaForAllocation()); -#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (_impl_.online_.IsDefault()) { - _impl_.online_.Set("", GetArenaForAllocation()); + _impl_.online_.SetAllocated(value, GetArena()); + if (::google::protobuf::internal::DebugHardenForceCopyDefaultString() && _impl_.online_.IsDefault()) { + _impl_.online_.Set("", GetArena()); } -#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING // @@protoc_insertion_point(field_set_allocated:Odb.Lib.Protobuf.StepHdrFile.online) } // repeated .Odb.Lib.Protobuf.StepHdrFile.StepRepeatRecord stepRepeatRecords = 13; inline int StepHdrFile::_internal_steprepeatrecords_size() const { - return _impl_.steprepeatrecords_.size(); + return _internal_steprepeatrecords().size(); } inline int StepHdrFile::steprepeatrecords_size() const { return _internal_steprepeatrecords_size(); } inline void StepHdrFile::clear_steprepeatrecords() { + ::google::protobuf::internal::TSanWrite(&_impl_); _impl_.steprepeatrecords_.Clear(); } -inline ::Odb::Lib::Protobuf::StepHdrFile_StepRepeatRecord* StepHdrFile::mutable_steprepeatrecords(int index) { +inline ::Odb::Lib::Protobuf::StepHdrFile_StepRepeatRecord* StepHdrFile::mutable_steprepeatrecords(int index) + ABSL_ATTRIBUTE_LIFETIME_BOUND { // @@protoc_insertion_point(field_mutable:Odb.Lib.Protobuf.StepHdrFile.stepRepeatRecords) - return _impl_.steprepeatrecords_.Mutable(index); + return _internal_mutable_steprepeatrecords()->Mutable(index); } -inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::Odb::Lib::Protobuf::StepHdrFile_StepRepeatRecord >* -StepHdrFile::mutable_steprepeatrecords() { +inline ::google::protobuf::RepeatedPtrField<::Odb::Lib::Protobuf::StepHdrFile_StepRepeatRecord>* StepHdrFile::mutable_steprepeatrecords() + ABSL_ATTRIBUTE_LIFETIME_BOUND { // @@protoc_insertion_point(field_mutable_list:Odb.Lib.Protobuf.StepHdrFile.stepRepeatRecords) - return &_impl_.steprepeatrecords_; -} -inline const ::Odb::Lib::Protobuf::StepHdrFile_StepRepeatRecord& StepHdrFile::_internal_steprepeatrecords(int index) const { - return _impl_.steprepeatrecords_.Get(index); + ::google::protobuf::internal::TSanWrite(&_impl_); + return _internal_mutable_steprepeatrecords(); } -inline const ::Odb::Lib::Protobuf::StepHdrFile_StepRepeatRecord& StepHdrFile::steprepeatrecords(int index) const { +inline const ::Odb::Lib::Protobuf::StepHdrFile_StepRepeatRecord& StepHdrFile::steprepeatrecords(int index) const + ABSL_ATTRIBUTE_LIFETIME_BOUND { // @@protoc_insertion_point(field_get:Odb.Lib.Protobuf.StepHdrFile.stepRepeatRecords) - return _internal_steprepeatrecords(index); -} -inline ::Odb::Lib::Protobuf::StepHdrFile_StepRepeatRecord* StepHdrFile::_internal_add_steprepeatrecords() { - return _impl_.steprepeatrecords_.Add(); + return _internal_steprepeatrecords().Get(index); } -inline ::Odb::Lib::Protobuf::StepHdrFile_StepRepeatRecord* StepHdrFile::add_steprepeatrecords() { - ::Odb::Lib::Protobuf::StepHdrFile_StepRepeatRecord* _add = _internal_add_steprepeatrecords(); +inline ::Odb::Lib::Protobuf::StepHdrFile_StepRepeatRecord* StepHdrFile::add_steprepeatrecords() ABSL_ATTRIBUTE_LIFETIME_BOUND { + ::google::protobuf::internal::TSanWrite(&_impl_); + ::Odb::Lib::Protobuf::StepHdrFile_StepRepeatRecord* _add = _internal_mutable_steprepeatrecords()->Add(); // @@protoc_insertion_point(field_add:Odb.Lib.Protobuf.StepHdrFile.stepRepeatRecords) return _add; } -inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::Odb::Lib::Protobuf::StepHdrFile_StepRepeatRecord >& -StepHdrFile::steprepeatrecords() const { +inline const ::google::protobuf::RepeatedPtrField<::Odb::Lib::Protobuf::StepHdrFile_StepRepeatRecord>& StepHdrFile::steprepeatrecords() const + ABSL_ATTRIBUTE_LIFETIME_BOUND { // @@protoc_insertion_point(field_list:Odb.Lib.Protobuf.StepHdrFile.stepRepeatRecords) + return _internal_steprepeatrecords(); +} +inline const ::google::protobuf::RepeatedPtrField<::Odb::Lib::Protobuf::StepHdrFile_StepRepeatRecord>& +StepHdrFile::_internal_steprepeatrecords() const { + ::google::protobuf::internal::TSanRead(&_impl_); return _impl_.steprepeatrecords_; } +inline ::google::protobuf::RepeatedPtrField<::Odb::Lib::Protobuf::StepHdrFile_StepRepeatRecord>* +StepHdrFile::_internal_mutable_steprepeatrecords() { + ::google::protobuf::internal::TSanRead(&_impl_); + return &_impl_.steprepeatrecords_; +} // optional string path = 14; -inline bool StepHdrFile::_internal_has_path() const { +inline bool StepHdrFile::has_path() const { bool value = (_impl_._has_bits_[0] & 0x00000004u) != 0; return value; } -inline bool StepHdrFile::has_path() const { - return _internal_has_path(); -} inline void StepHdrFile::clear_path() { + ::google::protobuf::internal::TSanWrite(&_impl_); _impl_.path_.ClearToEmpty(); _impl_._has_bits_[0] &= ~0x00000004u; } -inline const std::string& StepHdrFile::path() const { +inline const std::string& StepHdrFile::path() const + ABSL_ATTRIBUTE_LIFETIME_BOUND { // @@protoc_insertion_point(field_get:Odb.Lib.Protobuf.StepHdrFile.path) return _internal_path(); } -template -inline PROTOBUF_ALWAYS_INLINE -void StepHdrFile::set_path(ArgT0&& arg0, ArgT... args) { - _impl_._has_bits_[0] |= 0x00000004u; - _impl_.path_.Set(static_cast(arg0), args..., GetArenaForAllocation()); +template +inline PROTOBUF_ALWAYS_INLINE void StepHdrFile::set_path(Arg_&& arg, + Args_... args) { + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_._has_bits_[0] |= 0x00000004u; + _impl_.path_.Set(static_cast(arg), args..., GetArena()); // @@protoc_insertion_point(field_set:Odb.Lib.Protobuf.StepHdrFile.path) } -inline std::string* StepHdrFile::mutable_path() { +inline std::string* StepHdrFile::mutable_path() ABSL_ATTRIBUTE_LIFETIME_BOUND { std::string* _s = _internal_mutable_path(); // @@protoc_insertion_point(field_mutable:Odb.Lib.Protobuf.StepHdrFile.path) return _s; } inline const std::string& StepHdrFile::_internal_path() const { + ::google::protobuf::internal::TSanRead(&_impl_); return _impl_.path_.Get(); } inline void StepHdrFile::_internal_set_path(const std::string& value) { + ::google::protobuf::internal::TSanWrite(&_impl_); _impl_._has_bits_[0] |= 0x00000004u; - _impl_.path_.Set(value, GetArenaForAllocation()); + _impl_.path_.Set(value, GetArena()); } inline std::string* StepHdrFile::_internal_mutable_path() { + ::google::protobuf::internal::TSanWrite(&_impl_); _impl_._has_bits_[0] |= 0x00000004u; - return _impl_.path_.Mutable(GetArenaForAllocation()); + return _impl_.path_.Mutable( GetArena()); } inline std::string* StepHdrFile::release_path() { + ::google::protobuf::internal::TSanWrite(&_impl_); // @@protoc_insertion_point(field_release:Odb.Lib.Protobuf.StepHdrFile.path) - if (!_internal_has_path()) { + if ((_impl_._has_bits_[0] & 0x00000004u) == 0) { return nullptr; } _impl_._has_bits_[0] &= ~0x00000004u; - auto* p = _impl_.path_.Release(); -#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (_impl_.path_.IsDefault()) { - _impl_.path_.Set("", GetArenaForAllocation()); + auto* released = _impl_.path_.Release(); + if (::google::protobuf::internal::DebugHardenForceCopyDefaultString()) { + _impl_.path_.Set("", GetArena()); } -#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING - return p; + return released; } -inline void StepHdrFile::set_allocated_path(std::string* path) { - if (path != nullptr) { +inline void StepHdrFile::set_allocated_path(std::string* value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + if (value != nullptr) { _impl_._has_bits_[0] |= 0x00000004u; } else { _impl_._has_bits_[0] &= ~0x00000004u; } - _impl_.path_.SetAllocated(path, GetArenaForAllocation()); -#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (_impl_.path_.IsDefault()) { - _impl_.path_.Set("", GetArenaForAllocation()); + _impl_.path_.SetAllocated(value, GetArena()); + if (::google::protobuf::internal::DebugHardenForceCopyDefaultString() && _impl_.path_.IsDefault()) { + _impl_.path_.Set("", GetArena()); } -#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING // @@protoc_insertion_point(field_set_allocated:Odb.Lib.Protobuf.StepHdrFile.path) } // map onlineValues = 15; inline int StepHdrFile::_internal_onlinevalues_size() const { - return _impl_.onlinevalues_.size(); + return _internal_onlinevalues().size(); } inline int StepHdrFile::onlinevalues_size() const { return _internal_onlinevalues_size(); } inline void StepHdrFile::clear_onlinevalues() { + ::google::protobuf::internal::TSanWrite(&_impl_); _impl_.onlinevalues_.Clear(); } -inline const ::PROTOBUF_NAMESPACE_ID::Map< std::string, std::string >& -StepHdrFile::_internal_onlinevalues() const { +inline const ::google::protobuf::Map& StepHdrFile::_internal_onlinevalues() const { + ::google::protobuf::internal::TSanRead(&_impl_); return _impl_.onlinevalues_.GetMap(); } -inline const ::PROTOBUF_NAMESPACE_ID::Map< std::string, std::string >& -StepHdrFile::onlinevalues() const { +inline const ::google::protobuf::Map& StepHdrFile::onlinevalues() const ABSL_ATTRIBUTE_LIFETIME_BOUND { // @@protoc_insertion_point(field_map:Odb.Lib.Protobuf.StepHdrFile.onlineValues) return _internal_onlinevalues(); } -inline ::PROTOBUF_NAMESPACE_ID::Map< std::string, std::string >* -StepHdrFile::_internal_mutable_onlinevalues() { +inline ::google::protobuf::Map* StepHdrFile::_internal_mutable_onlinevalues() { + ::google::protobuf::internal::TSanWrite(&_impl_); return _impl_.onlinevalues_.MutableMap(); } -inline ::PROTOBUF_NAMESPACE_ID::Map< std::string, std::string >* -StepHdrFile::mutable_onlinevalues() { +inline ::google::protobuf::Map* StepHdrFile::mutable_onlinevalues() ABSL_ATTRIBUTE_LIFETIME_BOUND { // @@protoc_insertion_point(field_mutable_map:Odb.Lib.Protobuf.StepHdrFile.onlineValues) return _internal_mutable_onlinevalues(); } #ifdef __GNUC__ - #pragma GCC diagnostic pop +#pragma GCC diagnostic pop #endif // __GNUC__ -// ------------------------------------------------------------------- - -// ------------------------------------------------------------------- - // @@protoc_insertion_point(namespace_scope) - } // namespace Protobuf } // namespace Lib } // namespace Odb + // @@protoc_insertion_point(global_scope) -#include -#endif // GOOGLE_PROTOBUF_INCLUDED_GOOGLE_PROTOBUF_INCLUDED_stephdrfile_2eproto +#include "google/protobuf/port_undef.inc" + +#endif // stephdrfile_2eproto_2epb_2eh diff --git a/OdbDesignLib/ProtoBuf/symbolname.pb.cc b/OdbDesignLib/ProtoBuf/symbolname.pb.cc index ccd08232..8cb129f4 100644 --- a/OdbDesignLib/ProtoBuf/symbolname.pb.cc +++ b/OdbDesignLib/ProtoBuf/symbolname.pb.cc @@ -1,177 +1,270 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE // source: symbolname.proto +// Protobuf C++ Version: 5.29.2 #include "symbolname.pb.h" #include - -#include -#include -#include -#include -#include -#include -#include +#include +#include "google/protobuf/io/coded_stream.h" +#include "google/protobuf/generated_message_tctable_impl.h" +#include "google/protobuf/extension_set.h" +#include "google/protobuf/generated_message_util.h" +#include "google/protobuf/wire_format_lite.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) -#include +// Must be included last. +#include "google/protobuf/port_def.inc" PROTOBUF_PRAGMA_INIT_SEG - -namespace _pb = ::PROTOBUF_NAMESPACE_ID; -namespace _pbi = _pb::internal; - +namespace _pb = ::google::protobuf; +namespace _pbi = ::google::protobuf::internal; +namespace _fl = ::google::protobuf::internal::field_layout; namespace Odb { namespace Lib { namespace Protobuf { -PROTOBUF_CONSTEXPR SymbolName::SymbolName( - ::_pbi::ConstantInitialized): _impl_{ - /*decltype(_impl_._has_bits_)*/{} - , /*decltype(_impl_._cached_size_)*/{} - , /*decltype(_impl_.name_)*/{&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}} - , /*decltype(_impl_.unittype_)*/0} {} + +inline constexpr SymbolName::Impl_::Impl_( + ::_pbi::ConstantInitialized) noexcept + : _cached_size_{0}, + name_( + &::google::protobuf::internal::fixed_address_empty_string, + ::_pbi::ConstantInitialized()), + unittype_{static_cast< ::Odb::Lib::Protobuf::UnitType >(0)} {} + +template +PROTOBUF_CONSTEXPR SymbolName::SymbolName(::_pbi::ConstantInitialized) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : ::google::protobuf::Message(_class_data_.base()), +#else // PROTOBUF_CUSTOM_VTABLE + : ::google::protobuf::Message(), +#endif // PROTOBUF_CUSTOM_VTABLE + _impl_(::_pbi::ConstantInitialized()) { +} struct SymbolNameDefaultTypeInternal { - PROTOBUF_CONSTEXPR SymbolNameDefaultTypeInternal() - : _instance(::_pbi::ConstantInitialized{}) {} + PROTOBUF_CONSTEXPR SymbolNameDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} ~SymbolNameDefaultTypeInternal() {} union { SymbolName _instance; }; }; -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 SymbolNameDefaultTypeInternal _SymbolName_default_instance_; + +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT ODBDESIGN_EXPORT + PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 SymbolNameDefaultTypeInternal _SymbolName_default_instance_; } // namespace Protobuf } // namespace Lib } // namespace Odb -static ::_pb::Metadata file_level_metadata_symbolname_2eproto[1]; -static constexpr ::_pb::EnumDescriptor const** file_level_enum_descriptors_symbolname_2eproto = nullptr; -static constexpr ::_pb::ServiceDescriptor const** file_level_service_descriptors_symbolname_2eproto = nullptr; - -const uint32_t TableStruct_symbolname_2eproto::offsets[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = { - PROTOBUF_FIELD_OFFSET(::Odb::Lib::Protobuf::SymbolName, _impl_._has_bits_), - PROTOBUF_FIELD_OFFSET(::Odb::Lib::Protobuf::SymbolName, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - ~0u, // no _inlined_string_donated_ - PROTOBUF_FIELD_OFFSET(::Odb::Lib::Protobuf::SymbolName, _impl_.name_), - PROTOBUF_FIELD_OFFSET(::Odb::Lib::Protobuf::SymbolName, _impl_.unittype_), - 0, - 1, -}; -static const ::_pbi::MigrationSchema schemas[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = { - { 0, 8, -1, sizeof(::Odb::Lib::Protobuf::SymbolName)}, +static constexpr const ::_pb::EnumDescriptor** + file_level_enum_descriptors_symbolname_2eproto = nullptr; +static constexpr const ::_pb::ServiceDescriptor** + file_level_service_descriptors_symbolname_2eproto = nullptr; +const ::uint32_t + TableStruct_symbolname_2eproto::offsets[] ABSL_ATTRIBUTE_SECTION_VARIABLE( + protodesc_cold) = { + PROTOBUF_FIELD_OFFSET(::Odb::Lib::Protobuf::SymbolName, _impl_._has_bits_), + PROTOBUF_FIELD_OFFSET(::Odb::Lib::Protobuf::SymbolName, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + ~0u, // no _split_ + ~0u, // no sizeof(Split) + PROTOBUF_FIELD_OFFSET(::Odb::Lib::Protobuf::SymbolName, _impl_.name_), + PROTOBUF_FIELD_OFFSET(::Odb::Lib::Protobuf::SymbolName, _impl_.unittype_), + 0, + 1, }; +static const ::_pbi::MigrationSchema + schemas[] ABSL_ATTRIBUTE_SECTION_VARIABLE(protodesc_cold) = { + {0, 10, -1, sizeof(::Odb::Lib::Protobuf::SymbolName)}, +}; static const ::_pb::Message* const file_default_instances[] = { - &::Odb::Lib::Protobuf::_SymbolName_default_instance_._instance, + &::Odb::Lib::Protobuf::_SymbolName_default_instance_._instance, }; - -const char descriptor_table_protodef_symbolname_2eproto[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = - "\n\020symbolname.proto\022\020Odb.Lib.Protobuf\032\013en" - "ums.proto\"h\n\nSymbolName\022\021\n\004name\030\001 \001(\tH\000\210" - "\001\001\0221\n\010unitType\030\002 \001(\0162\032.Odb.Lib.Protobuf." - "UnitTypeH\001\210\001\001B\007\n\005_nameB\013\n\t_unitTypeb\006pro" - "to3" - ; -static const ::_pbi::DescriptorTable* const descriptor_table_symbolname_2eproto_deps[1] = { - &::descriptor_table_enums_2eproto, +const char descriptor_table_protodef_symbolname_2eproto[] ABSL_ATTRIBUTE_SECTION_VARIABLE( + protodesc_cold) = { + "\n\020symbolname.proto\022\020Odb.Lib.Protobuf\032\013en" + "ums.proto\"h\n\nSymbolName\022\021\n\004name\030\001 \001(\tH\000\210" + "\001\001\0221\n\010unitType\030\002 \001(\0162\032.Odb.Lib.Protobuf." + "UnitTypeH\001\210\001\001B\007\n\005_nameB\013\n\t_unitTypeb\006pro" + "to3" +}; +static const ::_pbi::DescriptorTable* const descriptor_table_symbolname_2eproto_deps[1] = + { + &::descriptor_table_enums_2eproto, }; -static ::_pbi::once_flag descriptor_table_symbolname_2eproto_once; -const ::_pbi::DescriptorTable descriptor_table_symbolname_2eproto = { - false, false, 163, descriptor_table_protodef_symbolname_2eproto, +static ::absl::once_flag descriptor_table_symbolname_2eproto_once; +PROTOBUF_CONSTINIT const ::_pbi::DescriptorTable descriptor_table_symbolname_2eproto = { + false, + false, + 163, + descriptor_table_protodef_symbolname_2eproto, "symbolname.proto", - &descriptor_table_symbolname_2eproto_once, descriptor_table_symbolname_2eproto_deps, 1, 1, - schemas, file_default_instances, TableStruct_symbolname_2eproto::offsets, - file_level_metadata_symbolname_2eproto, file_level_enum_descriptors_symbolname_2eproto, + &descriptor_table_symbolname_2eproto_once, + descriptor_table_symbolname_2eproto_deps, + 1, + 1, + schemas, + file_default_instances, + TableStruct_symbolname_2eproto::offsets, + file_level_enum_descriptors_symbolname_2eproto, file_level_service_descriptors_symbolname_2eproto, }; -PROTOBUF_ATTRIBUTE_WEAK const ::_pbi::DescriptorTable* descriptor_table_symbolname_2eproto_getter() { - return &descriptor_table_symbolname_2eproto; -} - -// Force running AddDescriptors() at dynamic initialization time. -PROTOBUF_ATTRIBUTE_INIT_PRIORITY2 static ::_pbi::AddDescriptorsRunner dynamic_init_dummy_symbolname_2eproto(&descriptor_table_symbolname_2eproto); namespace Odb { namespace Lib { namespace Protobuf { - // =================================================================== class SymbolName::_Internal { public: - using HasBits = decltype(std::declval()._impl_._has_bits_); - static void set_has_name(HasBits* has_bits) { - (*has_bits)[0] |= 1u; - } - static void set_has_unittype(HasBits* has_bits) { - (*has_bits)[0] |= 2u; - } + using HasBits = + decltype(std::declval()._impl_._has_bits_); + static constexpr ::int32_t kHasBitsOffset = + 8 * PROTOBUF_FIELD_OFFSET(SymbolName, _impl_._has_bits_); }; -SymbolName::SymbolName(::PROTOBUF_NAMESPACE_ID::Arena* arena, - bool is_message_owned) - : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned) { - SharedCtor(arena, is_message_owned); +SymbolName::SymbolName(::google::protobuf::Arena* arena) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : ::google::protobuf::Message(arena, _class_data_.base()) { +#else // PROTOBUF_CUSTOM_VTABLE + : ::google::protobuf::Message(arena) { +#endif // PROTOBUF_CUSTOM_VTABLE + SharedCtor(arena); // @@protoc_insertion_point(arena_constructor:Odb.Lib.Protobuf.SymbolName) } -SymbolName::SymbolName(const SymbolName& from) - : ::PROTOBUF_NAMESPACE_ID::Message() { - SymbolName* const _this = this; (void)_this; - new (&_impl_) Impl_{ - decltype(_impl_._has_bits_){from._impl_._has_bits_} - , /*decltype(_impl_._cached_size_)*/{} - , decltype(_impl_.name_){} - , decltype(_impl_.unittype_){}}; +inline PROTOBUF_NDEBUG_INLINE SymbolName::Impl_::Impl_( + ::google::protobuf::internal::InternalVisibility visibility, ::google::protobuf::Arena* arena, + const Impl_& from, const ::Odb::Lib::Protobuf::SymbolName& from_msg) + : _has_bits_{from._has_bits_}, + _cached_size_{0}, + name_(arena, from.name_) {} + +SymbolName::SymbolName( + ::google::protobuf::Arena* arena, + const SymbolName& from) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : ::google::protobuf::Message(arena, _class_data_.base()) { +#else // PROTOBUF_CUSTOM_VTABLE + : ::google::protobuf::Message(arena) { +#endif // PROTOBUF_CUSTOM_VTABLE + SymbolName* const _this = this; + (void)_this; + _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( + from._internal_metadata_); + new (&_impl_) Impl_(internal_visibility(), arena, from._impl_, from); + _impl_.unittype_ = from._impl_.unittype_; - _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); - _impl_.name_.InitDefault(); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - _impl_.name_.Set("", GetArenaForAllocation()); - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (from._internal_has_name()) { - _this->_impl_.name_.Set(from._internal_name(), - _this->GetArenaForAllocation()); - } - _this->_impl_.unittype_ = from._impl_.unittype_; // @@protoc_insertion_point(copy_constructor:Odb.Lib.Protobuf.SymbolName) } - -inline void SymbolName::SharedCtor( - ::_pb::Arena* arena, bool is_message_owned) { - (void)arena; - (void)is_message_owned; - new (&_impl_) Impl_{ - decltype(_impl_._has_bits_){} - , /*decltype(_impl_._cached_size_)*/{} - , decltype(_impl_.name_){} - , decltype(_impl_.unittype_){0} - }; - _impl_.name_.InitDefault(); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - _impl_.name_.Set("", GetArenaForAllocation()); - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING +inline PROTOBUF_NDEBUG_INLINE SymbolName::Impl_::Impl_( + ::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* arena) + : _cached_size_{0}, + name_(arena) {} + +inline void SymbolName::SharedCtor(::_pb::Arena* arena) { + new (&_impl_) Impl_(internal_visibility(), arena); + _impl_.unittype_ = {}; } - SymbolName::~SymbolName() { // @@protoc_insertion_point(destructor:Odb.Lib.Protobuf.SymbolName) - if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) { - (void)arena; - return; - } - SharedDtor(); + SharedDtor(*this); } - -inline void SymbolName::SharedDtor() { - GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); - _impl_.name_.Destroy(); +inline void SymbolName::SharedDtor(MessageLite& self) { + SymbolName& this_ = static_cast(self); + this_._internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); + ABSL_DCHECK(this_.GetArena() == nullptr); + this_._impl_.name_.Destroy(); + this_._impl_.~Impl_(); } -void SymbolName::SetCachedSize(int size) const { - _impl_._cached_size_.Set(size); +inline void* SymbolName::PlacementNew_(const void*, void* mem, + ::google::protobuf::Arena* arena) { + return ::new (mem) SymbolName(arena); +} +constexpr auto SymbolName::InternalNewImpl_() { + return ::google::protobuf::internal::MessageCreator::CopyInit(sizeof(SymbolName), + alignof(SymbolName)); +} +PROTOBUF_CONSTINIT +PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 +const ::google::protobuf::internal::ClassDataFull SymbolName::_class_data_ = { + ::google::protobuf::internal::ClassData{ + &_SymbolName_default_instance_._instance, + &_table_.header, + nullptr, // OnDemandRegisterArenaDtor + nullptr, // IsInitialized + &SymbolName::MergeImpl, + ::google::protobuf::Message::GetNewImpl(), +#if defined(PROTOBUF_CUSTOM_VTABLE) + &SymbolName::SharedDtor, + ::google::protobuf::Message::GetClearImpl(), &SymbolName::ByteSizeLong, + &SymbolName::_InternalSerialize, +#endif // PROTOBUF_CUSTOM_VTABLE + PROTOBUF_FIELD_OFFSET(SymbolName, _impl_._cached_size_), + false, + }, + &SymbolName::kDescriptorMethods, + &descriptor_table_symbolname_2eproto, + nullptr, // tracker +}; +const ::google::protobuf::internal::ClassData* SymbolName::GetClassData() const { + ::google::protobuf::internal::PrefetchToLocalCache(&_class_data_); + ::google::protobuf::internal::PrefetchToLocalCache(_class_data_.tc_table); + return _class_data_.base(); } +PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 +const ::_pbi::TcParseTable<1, 2, 0, 40, 2> SymbolName::_table_ = { + { + PROTOBUF_FIELD_OFFSET(SymbolName, _impl_._has_bits_), + 0, // no _extensions_ + 2, 8, // max_field_number, fast_idx_mask + offsetof(decltype(_table_), field_lookup_table), + 4294967292, // skipmap + offsetof(decltype(_table_), field_entries), + 2, // num_field_entries + 0, // num_aux_entries + offsetof(decltype(_table_), field_names), // no aux_entries + _class_data_.base(), + nullptr, // post_loop_handler + ::_pbi::TcParser::GenericFallback, // fallback + #ifdef PROTOBUF_PREFETCH_PARSE_TABLE + ::_pbi::TcParser::GetTable<::Odb::Lib::Protobuf::SymbolName>(), // to_prefetch + #endif // PROTOBUF_PREFETCH_PARSE_TABLE + }, {{ + // optional .Odb.Lib.Protobuf.UnitType unitType = 2; + {::_pbi::TcParser::SingularVarintNoZag1<::uint32_t, offsetof(SymbolName, _impl_.unittype_), 1>(), + {16, 1, 0, PROTOBUF_FIELD_OFFSET(SymbolName, _impl_.unittype_)}}, + // optional string name = 1; + {::_pbi::TcParser::FastUS1, + {10, 0, 0, PROTOBUF_FIELD_OFFSET(SymbolName, _impl_.name_)}}, + }}, {{ + 65535, 65535 + }}, {{ + // optional string name = 1; + {PROTOBUF_FIELD_OFFSET(SymbolName, _impl_.name_), _Internal::kHasBitsOffset + 0, 0, + (0 | ::_fl::kFcOptional | ::_fl::kUtf8String | ::_fl::kRepAString)}, + // optional .Odb.Lib.Protobuf.UnitType unitType = 2; + {PROTOBUF_FIELD_OFFSET(SymbolName, _impl_.unittype_), _Internal::kHasBitsOffset + 1, 0, + (0 | ::_fl::kFcOptional | ::_fl::kOpenEnum)}, + }}, + // no aux_entries + {{ + "\33\4\0\0\0\0\0\0" + "Odb.Lib.Protobuf.SymbolName" + "name" + }}, +}; -void SymbolName::Clear() { +PROTOBUF_NOINLINE void SymbolName::Clear() { // @@protoc_insertion_point(message_clear_start:Odb.Lib.Protobuf.SymbolName) - uint32_t cached_has_bits = 0; + ::google::protobuf::internal::TSanWrite(&_impl_); + ::uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; @@ -181,130 +274,87 @@ void SymbolName::Clear() { } _impl_.unittype_ = 0; _impl_._has_bits_.Clear(); - _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); -} - -const char* SymbolName::_InternalParse(const char* ptr, ::_pbi::ParseContext* ctx) { -#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure - _Internal::HasBits has_bits{}; - while (!ctx->Done(&ptr)) { - uint32_t tag; - ptr = ::_pbi::ReadTag(ptr, &tag); - switch (tag >> 3) { - // optional string name = 1; - case 1: - if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 10)) { - auto str = _internal_mutable_name(); - ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); - CHK_(ptr); - CHK_(::_pbi::VerifyUTF8(str, "Odb.Lib.Protobuf.SymbolName.name")); - } else - goto handle_unusual; - continue; - // optional .Odb.Lib.Protobuf.UnitType unitType = 2; - case 2: - if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 16)) { - uint64_t val = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); - CHK_(ptr); - _internal_set_unittype(static_cast<::Odb::Lib::Protobuf::UnitType>(val)); - } else - goto handle_unusual; - continue; - default: - goto handle_unusual; - } // switch - handle_unusual: - if ((tag == 0) || ((tag & 7) == 4)) { - CHK_(ptr); - ctx->SetLastTag(tag); - goto message_done; - } - ptr = UnknownFieldParse( - tag, - _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(), - ptr, ctx); - CHK_(ptr != nullptr); - } // while -message_done: - _impl_._has_bits_.Or(has_bits); - return ptr; -failure: - ptr = nullptr; - goto message_done; -#undef CHK_ + _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); } -uint8_t* SymbolName::_InternalSerialize( - uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { - // @@protoc_insertion_point(serialize_to_array_start:Odb.Lib.Protobuf.SymbolName) - uint32_t cached_has_bits = 0; - (void) cached_has_bits; - - // optional string name = 1; - if (_internal_has_name()) { - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( - this->_internal_name().data(), static_cast(this->_internal_name().length()), - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, - "Odb.Lib.Protobuf.SymbolName.name"); - target = stream->WriteStringMaybeAliased( - 1, this->_internal_name(), target); - } - - // optional .Odb.Lib.Protobuf.UnitType unitType = 2; - if (_internal_has_unittype()) { - target = stream->EnsureSpace(target); - target = ::_pbi::WireFormatLite::WriteEnumToArray( - 2, this->_internal_unittype(), target); - } - - if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = ::_pbi::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:Odb.Lib.Protobuf.SymbolName) - return target; -} - -size_t SymbolName::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:Odb.Lib.Protobuf.SymbolName) - size_t total_size = 0; - - uint32_t cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - cached_has_bits = _impl_._has_bits_[0]; - if (cached_has_bits & 0x00000003u) { - // optional string name = 1; - if (cached_has_bits & 0x00000001u) { - total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( - this->_internal_name()); - } - - // optional .Odb.Lib.Protobuf.UnitType unitType = 2; - if (cached_has_bits & 0x00000002u) { - total_size += 1 + - ::_pbi::WireFormatLite::EnumSize(this->_internal_unittype()); - } - - } - return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); -} - -const ::PROTOBUF_NAMESPACE_ID::Message::ClassData SymbolName::_class_data_ = { - ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSourceCheck, - SymbolName::MergeImpl -}; -const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*SymbolName::GetClassData() const { return &_class_data_; } - - -void SymbolName::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg) { +#if defined(PROTOBUF_CUSTOM_VTABLE) + ::uint8_t* SymbolName::_InternalSerialize( + const MessageLite& base, ::uint8_t* target, + ::google::protobuf::io::EpsCopyOutputStream* stream) { + const SymbolName& this_ = static_cast(base); +#else // PROTOBUF_CUSTOM_VTABLE + ::uint8_t* SymbolName::_InternalSerialize( + ::uint8_t* target, + ::google::protobuf::io::EpsCopyOutputStream* stream) const { + const SymbolName& this_ = *this; +#endif // PROTOBUF_CUSTOM_VTABLE + // @@protoc_insertion_point(serialize_to_array_start:Odb.Lib.Protobuf.SymbolName) + ::uint32_t cached_has_bits = 0; + (void)cached_has_bits; + + cached_has_bits = this_._impl_._has_bits_[0]; + // optional string name = 1; + if (cached_has_bits & 0x00000001u) { + const std::string& _s = this_._internal_name(); + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + _s.data(), static_cast(_s.length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "Odb.Lib.Protobuf.SymbolName.name"); + target = stream->WriteStringMaybeAliased(1, _s, target); + } + + // optional .Odb.Lib.Protobuf.UnitType unitType = 2; + if (cached_has_bits & 0x00000002u) { + target = stream->EnsureSpace(target); + target = ::_pbi::WireFormatLite::WriteEnumToArray( + 2, this_._internal_unittype(), target); + } + + if (PROTOBUF_PREDICT_FALSE(this_._internal_metadata_.have_unknown_fields())) { + target = + ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( + this_._internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); + } + // @@protoc_insertion_point(serialize_to_array_end:Odb.Lib.Protobuf.SymbolName) + return target; + } + +#if defined(PROTOBUF_CUSTOM_VTABLE) + ::size_t SymbolName::ByteSizeLong(const MessageLite& base) { + const SymbolName& this_ = static_cast(base); +#else // PROTOBUF_CUSTOM_VTABLE + ::size_t SymbolName::ByteSizeLong() const { + const SymbolName& this_ = *this; +#endif // PROTOBUF_CUSTOM_VTABLE + // @@protoc_insertion_point(message_byte_size_start:Odb.Lib.Protobuf.SymbolName) + ::size_t total_size = 0; + + ::uint32_t cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void)cached_has_bits; + + ::_pbi::Prefetch5LinesFrom7Lines(&this_); + cached_has_bits = this_._impl_._has_bits_[0]; + if (cached_has_bits & 0x00000003u) { + // optional string name = 1; + if (cached_has_bits & 0x00000001u) { + total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize( + this_._internal_name()); + } + // optional .Odb.Lib.Protobuf.UnitType unitType = 2; + if (cached_has_bits & 0x00000002u) { + total_size += 1 + + ::_pbi::WireFormatLite::EnumSize(this_._internal_unittype()); + } + } + return this_.MaybeComputeUnknownFieldsSize(total_size, + &this_._impl_._cached_size_); + } + +void SymbolName::MergeImpl(::google::protobuf::MessageLite& to_msg, const ::google::protobuf::MessageLite& from_msg) { auto* const _this = static_cast(&to_msg); auto& from = static_cast(from_msg); // @@protoc_insertion_point(class_specific_merge_from_start:Odb.Lib.Protobuf.SymbolName) - GOOGLE_DCHECK_NE(&from, _this); - uint32_t cached_has_bits = 0; + ABSL_DCHECK_NE(&from, _this); + ::uint32_t cached_has_bits = 0; (void) cached_has_bits; cached_has_bits = from._impl_._has_bits_[0]; @@ -315,9 +365,9 @@ void SymbolName::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PRO if (cached_has_bits & 0x00000002u) { _this->_impl_.unittype_ = from._impl_.unittype_; } - _this->_impl_._has_bits_[0] |= cached_has_bits; } - _this->_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); + _this->_impl_._has_bits_[0] |= cached_has_bits; + _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); } void SymbolName::CopyFrom(const SymbolName& from) { @@ -327,39 +377,31 @@ void SymbolName::CopyFrom(const SymbolName& from) { MergeFrom(from); } -bool SymbolName::IsInitialized() const { - return true; -} -void SymbolName::InternalSwap(SymbolName* other) { +void SymbolName::InternalSwap(SymbolName* PROTOBUF_RESTRICT other) { using std::swap; - auto* lhs_arena = GetArenaForAllocation(); - auto* rhs_arena = other->GetArenaForAllocation(); + auto* arena = GetArena(); + ABSL_DCHECK_EQ(arena, other->GetArena()); _internal_metadata_.InternalSwap(&other->_internal_metadata_); swap(_impl_._has_bits_[0], other->_impl_._has_bits_[0]); - ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( - &_impl_.name_, lhs_arena, - &other->_impl_.name_, rhs_arena - ); + ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.name_, &other->_impl_.name_, arena); swap(_impl_.unittype_, other->_impl_.unittype_); } -::PROTOBUF_NAMESPACE_ID::Metadata SymbolName::GetMetadata() const { - return ::_pbi::AssignDescriptors( - &descriptor_table_symbolname_2eproto_getter, &descriptor_table_symbolname_2eproto_once, - file_level_metadata_symbolname_2eproto[0]); +::google::protobuf::Metadata SymbolName::GetMetadata() const { + return ::google::protobuf::Message::GetMetadataImpl(GetClassData()->full()); } - // @@protoc_insertion_point(namespace_scope) } // namespace Protobuf } // namespace Lib } // namespace Odb -PROTOBUF_NAMESPACE_OPEN -template<> PROTOBUF_NOINLINE ::Odb::Lib::Protobuf::SymbolName* -Arena::CreateMaybeMessage< ::Odb::Lib::Protobuf::SymbolName >(Arena* arena) { - return Arena::CreateMessageInternal< ::Odb::Lib::Protobuf::SymbolName >(arena); -} -PROTOBUF_NAMESPACE_CLOSE - +namespace google { +namespace protobuf { +} // namespace protobuf +} // namespace google // @@protoc_insertion_point(global_scope) -#include +PROTOBUF_ATTRIBUTE_INIT_PRIORITY2 static ::std::false_type + _static_init2_ PROTOBUF_UNUSED = + (::_pbi::AddDescriptors(&descriptor_table_symbolname_2eproto), + ::std::false_type{}); +#include "google/protobuf/port_undef.inc" diff --git a/OdbDesignLib/ProtoBuf/symbolname.pb.h b/OdbDesignLib/ProtoBuf/symbolname.pb.h index ce15f64d..e5e97c6b 100644 --- a/OdbDesignLib/ProtoBuf/symbolname.pb.h +++ b/OdbDesignLib/ProtoBuf/symbolname.pb.h @@ -1,50 +1,57 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE // source: symbolname.proto +// Protobuf C++ Version: 5.29.2 -#ifndef GOOGLE_PROTOBUF_INCLUDED_symbolname_2eproto -#define GOOGLE_PROTOBUF_INCLUDED_symbolname_2eproto +#ifndef symbolname_2eproto_2epb_2eh +#define symbolname_2eproto_2epb_2eh #include #include - -#include -#if PROTOBUF_VERSION < 3021000 -#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 3021012 < 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. +#include +#include + +#include "google/protobuf/runtime_version.h" +#if PROTOBUF_VERSION != 5029002 +#error "Protobuf C++ gencode is built with an incompatible version of" +#error "Protobuf C++ headers/runtime. See" +#error "https://protobuf.dev/support/cross-version-runtime-guarantee/#cpp" #endif - -#include -#include -#include -#include -#include -#include -#include -#include -#include // IWYU pragma: export -#include // IWYU pragma: export -#include +#include "google/protobuf/io/coded_stream.h" +#include "google/protobuf/arena.h" +#include "google/protobuf/arenastring.h" +#include "google/protobuf/generated_message_tctable_decl.h" +#include "google/protobuf/generated_message_util.h" +#include "google/protobuf/metadata_lite.h" +#include "google/protobuf/generated_message_reflection.h" +#include "google/protobuf/message.h" +#include "google/protobuf/message_lite.h" +#include "google/protobuf/repeated_field.h" // IWYU pragma: export +#include "google/protobuf/extension_set.h" // IWYU pragma: export +#include "google/protobuf/unknown_field_set.h" #include "enums.pb.h" // @@protoc_insertion_point(includes) -#include + +// Must be included last. +#include "google/protobuf/port_def.inc" + #define PROTOBUF_INTERNAL_EXPORT_symbolname_2eproto ODBDESIGN_EXPORT -PROTOBUF_NAMESPACE_OPEN + +namespace google { +namespace protobuf { namespace internal { -class AnyMetadata; +template +::absl::string_view GetAnyMessageName(); } // namespace internal -PROTOBUF_NAMESPACE_CLOSE +} // namespace protobuf +} // namespace google // Internal implementation detail -- do not use these members. struct ODBDESIGN_EXPORT TableStruct_symbolname_2eproto { - static const uint32_t offsets[]; + static const ::uint32_t offsets[]; }; -ODBDESIGN_EXPORT extern const ::PROTOBUF_NAMESPACE_ID::internal::DescriptorTable descriptor_table_symbolname_2eproto; +ODBDESIGN_EXPORT extern const ::google::protobuf::internal::DescriptorTable + descriptor_table_symbolname_2eproto; namespace Odb { namespace Lib { namespace Protobuf { @@ -54,39 +61,47 @@ ODBDESIGN_EXPORT extern SymbolNameDefaultTypeInternal _SymbolName_default_instan } // namespace Protobuf } // namespace Lib } // namespace Odb -PROTOBUF_NAMESPACE_OPEN -template<> ODBDESIGN_EXPORT ::Odb::Lib::Protobuf::SymbolName* Arena::CreateMaybeMessage<::Odb::Lib::Protobuf::SymbolName>(Arena*); -PROTOBUF_NAMESPACE_CLOSE +namespace google { +namespace protobuf { +} // namespace protobuf +} // namespace google + namespace Odb { namespace Lib { namespace Protobuf { // =================================================================== -class ODBDESIGN_EXPORT SymbolName final : - public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:Odb.Lib.Protobuf.SymbolName) */ { + +// ------------------------------------------------------------------- + +class ODBDESIGN_EXPORT SymbolName final : public ::google::protobuf::Message +/* @@protoc_insertion_point(class_definition:Odb.Lib.Protobuf.SymbolName) */ { public: inline SymbolName() : SymbolName(nullptr) {} - ~SymbolName() override; - explicit PROTOBUF_CONSTEXPR SymbolName(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); + ~SymbolName() PROTOBUF_FINAL; - SymbolName(const SymbolName& from); - SymbolName(SymbolName&& from) noexcept - : SymbolName() { - *this = ::std::move(from); +#if defined(PROTOBUF_CUSTOM_VTABLE) + void operator delete(SymbolName* msg, std::destroying_delete_t) { + SharedDtor(*msg); + ::google::protobuf::internal::SizedDelete(msg, sizeof(SymbolName)); } +#endif + + template + explicit PROTOBUF_CONSTEXPR SymbolName( + ::google::protobuf::internal::ConstantInitialized); + inline SymbolName(const SymbolName& from) : SymbolName(nullptr, from) {} + inline SymbolName(SymbolName&& from) noexcept + : SymbolName(nullptr, std::move(from)) {} inline SymbolName& operator=(const SymbolName& from) { CopyFrom(from); return *this; } inline SymbolName& operator=(SymbolName&& from) noexcept { if (this == &from) return *this; - if (GetOwningArena() == from.GetOwningArena() - #ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetOwningArena() != nullptr - #endif // !PROTOBUF_FORCE_COPY_IN_MOVE - ) { + if (::google::protobuf::internal::CanMoveWithInternalSwap(GetArena(), from.GetArena())) { InternalSwap(&from); } else { CopyFrom(from); @@ -94,13 +109,22 @@ class ODBDESIGN_EXPORT SymbolName final : return *this; } - static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { + inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const + ABSL_ATTRIBUTE_LIFETIME_BOUND { + return _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance); + } + inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() + ABSL_ATTRIBUTE_LIFETIME_BOUND { + return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); + } + + static const ::google::protobuf::Descriptor* descriptor() { return GetDescriptor(); } - static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { + static const ::google::protobuf::Descriptor* GetDescriptor() { return default_instance().GetMetadata().descriptor; } - static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { + static const ::google::protobuf::Reflection* GetReflection() { return default_instance().GetMetadata().reflection; } static const SymbolName& default_instance() { @@ -108,250 +132,284 @@ class ODBDESIGN_EXPORT SymbolName final : } static inline const SymbolName* internal_default_instance() { return reinterpret_cast( - &_SymbolName_default_instance_); - } - static constexpr int kIndexInFileMessages = - 0; - - friend void swap(SymbolName& a, SymbolName& b) { - a.Swap(&b); + &_SymbolName_default_instance_); } + static constexpr int kIndexInFileMessages = 0; + friend void swap(SymbolName& a, SymbolName& b) { a.Swap(&b); } inline void Swap(SymbolName* other) { if (other == this) return; - #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetOwningArena() != nullptr && - GetOwningArena() == other->GetOwningArena()) { - #else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetOwningArena() == other->GetOwningArena()) { - #endif // !PROTOBUF_FORCE_COPY_IN_SWAP + if (::google::protobuf::internal::CanUseInternalSwap(GetArena(), other->GetArena())) { InternalSwap(other); } else { - ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); + ::google::protobuf::internal::GenericSwap(this, other); } } void UnsafeArenaSwap(SymbolName* other) { if (other == this) return; - GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); + ABSL_DCHECK(GetArena() == other->GetArena()); InternalSwap(other); } // implements Message ---------------------------------------------- - SymbolName* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); + SymbolName* New(::google::protobuf::Arena* arena = nullptr) const { + return ::google::protobuf::Message::DefaultConstruct(arena); } - using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; + using ::google::protobuf::Message::CopyFrom; void CopyFrom(const SymbolName& from); - using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; - void MergeFrom( const SymbolName& from) { - SymbolName::MergeImpl(*this, from); - } + using ::google::protobuf::Message::MergeFrom; + void MergeFrom(const SymbolName& from) { SymbolName::MergeImpl(*this, from); } + private: - static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg); + static void MergeImpl( + ::google::protobuf::MessageLite& to_msg, + const ::google::protobuf::MessageLite& from_msg); + public: - PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; - bool IsInitialized() const final; + bool IsInitialized() const { + return true; + } + ABSL_ATTRIBUTE_REINITIALIZES void Clear() PROTOBUF_FINAL; + #if defined(PROTOBUF_CUSTOM_VTABLE) + private: + static ::size_t ByteSizeLong(const ::google::protobuf::MessageLite& msg); + static ::uint8_t* _InternalSerialize( + const MessageLite& msg, ::uint8_t* target, + ::google::protobuf::io::EpsCopyOutputStream* stream); - size_t ByteSizeLong() const final; - const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final; - uint8_t* _InternalSerialize( - uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const final { return _impl_._cached_size_.Get(); } + public: + ::size_t ByteSizeLong() const { return ByteSizeLong(*this); } + ::uint8_t* _InternalSerialize( + ::uint8_t* target, + ::google::protobuf::io::EpsCopyOutputStream* stream) const { + return _InternalSerialize(*this, target, stream); + } + #else // PROTOBUF_CUSTOM_VTABLE + ::size_t ByteSizeLong() const final; + ::uint8_t* _InternalSerialize( + ::uint8_t* target, + ::google::protobuf::io::EpsCopyOutputStream* stream) const final; + #endif // PROTOBUF_CUSTOM_VTABLE + int GetCachedSize() const { return _impl_._cached_size_.Get(); } private: - void SharedCtor(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned); - void SharedDtor(); - void SetCachedSize(int size) const final; + void SharedCtor(::google::protobuf::Arena* arena); + static void SharedDtor(MessageLite& self); void InternalSwap(SymbolName* other); - - private: - friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; - static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { - return "Odb.Lib.Protobuf.SymbolName"; + private: + template + friend ::absl::string_view( + ::google::protobuf::internal::GetAnyMessageName)(); + static ::absl::string_view FullMessageName() { return "Odb.Lib.Protobuf.SymbolName"; } + + protected: + explicit SymbolName(::google::protobuf::Arena* arena); + SymbolName(::google::protobuf::Arena* arena, const SymbolName& from); + SymbolName(::google::protobuf::Arena* arena, SymbolName&& from) noexcept + : SymbolName(arena) { + *this = ::std::move(from); } - protected: - explicit SymbolName(::PROTOBUF_NAMESPACE_ID::Arena* arena, - bool is_message_owned = false); - public: - - static const ClassData _class_data_; - const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final; - - ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; + const ::google::protobuf::internal::ClassData* GetClassData() const PROTOBUF_FINAL; + static void* PlacementNew_(const void*, void* mem, + ::google::protobuf::Arena* arena); + static constexpr auto InternalNewImpl_(); + static const ::google::protobuf::internal::ClassDataFull _class_data_; + public: + ::google::protobuf::Metadata GetMetadata() const; // nested types ---------------------------------------------------- // accessors ------------------------------------------------------- - enum : int { kNameFieldNumber = 1, kUnitTypeFieldNumber = 2, }; // optional string name = 1; bool has_name() const; - private: - bool _internal_has_name() const; - public: - void clear_name(); + void clear_name() ; const std::string& name() const; - template - void set_name(ArgT0&& arg0, ArgT... args); + template + void set_name(Arg_&& arg, Args_... args); std::string* mutable_name(); PROTOBUF_NODISCARD std::string* release_name(); - void set_allocated_name(std::string* name); + void set_allocated_name(std::string* value); + private: const std::string& _internal_name() const; - inline PROTOBUF_ALWAYS_INLINE void _internal_set_name(const std::string& value); + inline PROTOBUF_ALWAYS_INLINE void _internal_set_name( + const std::string& value); std::string* _internal_mutable_name(); - public: + public: // optional .Odb.Lib.Protobuf.UnitType unitType = 2; bool has_unittype() const; - private: - bool _internal_has_unittype() const; - public: - void clear_unittype(); + void clear_unittype() ; ::Odb::Lib::Protobuf::UnitType unittype() const; void set_unittype(::Odb::Lib::Protobuf::UnitType value); + private: ::Odb::Lib::Protobuf::UnitType _internal_unittype() const; void _internal_set_unittype(::Odb::Lib::Protobuf::UnitType value); - public: + public: // @@protoc_insertion_point(class_scope:Odb.Lib.Protobuf.SymbolName) private: class _Internal; - - template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; - typedef void InternalArenaConstructable_; - typedef void DestructorSkippable_; + friend class ::google::protobuf::internal::TcParser; + static const ::google::protobuf::internal::TcParseTable< + 1, 2, 0, + 40, 2> + _table_; + + friend class ::google::protobuf::MessageLite; + friend class ::google::protobuf::Arena; + template + friend class ::google::protobuf::Arena::InternalHelper; + using InternalArenaConstructable_ = void; + using DestructorSkippable_ = void; struct Impl_ { - ::PROTOBUF_NAMESPACE_ID::internal::HasBits<1> _has_bits_; - mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; - ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr name_; + inline explicit constexpr Impl_( + ::google::protobuf::internal::ConstantInitialized) noexcept; + inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* arena); + inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* arena, const Impl_& from, + const SymbolName& from_msg); + ::google::protobuf::internal::HasBits<1> _has_bits_; + ::google::protobuf::internal::CachedSize _cached_size_; + ::google::protobuf::internal::ArenaStringPtr name_; int unittype_; + PROTOBUF_TSAN_DECLARE_MEMBER }; union { Impl_ _impl_; }; friend struct ::TableStruct_symbolname_2eproto; }; + // =================================================================== + + // =================================================================== + #ifdef __GNUC__ - #pragma GCC diagnostic push - #pragma GCC diagnostic ignored "-Wstrict-aliasing" +#pragma GCC diagnostic push +#pragma GCC diagnostic ignored "-Wstrict-aliasing" #endif // __GNUC__ +// ------------------------------------------------------------------- + // SymbolName // optional string name = 1; -inline bool SymbolName::_internal_has_name() const { +inline bool SymbolName::has_name() const { bool value = (_impl_._has_bits_[0] & 0x00000001u) != 0; return value; } -inline bool SymbolName::has_name() const { - return _internal_has_name(); -} inline void SymbolName::clear_name() { + ::google::protobuf::internal::TSanWrite(&_impl_); _impl_.name_.ClearToEmpty(); _impl_._has_bits_[0] &= ~0x00000001u; } -inline const std::string& SymbolName::name() const { +inline const std::string& SymbolName::name() const + ABSL_ATTRIBUTE_LIFETIME_BOUND { // @@protoc_insertion_point(field_get:Odb.Lib.Protobuf.SymbolName.name) return _internal_name(); } -template -inline PROTOBUF_ALWAYS_INLINE -void SymbolName::set_name(ArgT0&& arg0, ArgT... args) { - _impl_._has_bits_[0] |= 0x00000001u; - _impl_.name_.Set(static_cast(arg0), args..., GetArenaForAllocation()); +template +inline PROTOBUF_ALWAYS_INLINE void SymbolName::set_name(Arg_&& arg, + Args_... args) { + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_._has_bits_[0] |= 0x00000001u; + _impl_.name_.Set(static_cast(arg), args..., GetArena()); // @@protoc_insertion_point(field_set:Odb.Lib.Protobuf.SymbolName.name) } -inline std::string* SymbolName::mutable_name() { +inline std::string* SymbolName::mutable_name() ABSL_ATTRIBUTE_LIFETIME_BOUND { std::string* _s = _internal_mutable_name(); // @@protoc_insertion_point(field_mutable:Odb.Lib.Protobuf.SymbolName.name) return _s; } inline const std::string& SymbolName::_internal_name() const { + ::google::protobuf::internal::TSanRead(&_impl_); return _impl_.name_.Get(); } inline void SymbolName::_internal_set_name(const std::string& value) { + ::google::protobuf::internal::TSanWrite(&_impl_); _impl_._has_bits_[0] |= 0x00000001u; - _impl_.name_.Set(value, GetArenaForAllocation()); + _impl_.name_.Set(value, GetArena()); } inline std::string* SymbolName::_internal_mutable_name() { + ::google::protobuf::internal::TSanWrite(&_impl_); _impl_._has_bits_[0] |= 0x00000001u; - return _impl_.name_.Mutable(GetArenaForAllocation()); + return _impl_.name_.Mutable( GetArena()); } inline std::string* SymbolName::release_name() { + ::google::protobuf::internal::TSanWrite(&_impl_); // @@protoc_insertion_point(field_release:Odb.Lib.Protobuf.SymbolName.name) - if (!_internal_has_name()) { + if ((_impl_._has_bits_[0] & 0x00000001u) == 0) { return nullptr; } _impl_._has_bits_[0] &= ~0x00000001u; - auto* p = _impl_.name_.Release(); -#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (_impl_.name_.IsDefault()) { - _impl_.name_.Set("", GetArenaForAllocation()); + auto* released = _impl_.name_.Release(); + if (::google::protobuf::internal::DebugHardenForceCopyDefaultString()) { + _impl_.name_.Set("", GetArena()); } -#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING - return p; + return released; } -inline void SymbolName::set_allocated_name(std::string* name) { - if (name != nullptr) { +inline void SymbolName::set_allocated_name(std::string* value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + if (value != nullptr) { _impl_._has_bits_[0] |= 0x00000001u; } else { _impl_._has_bits_[0] &= ~0x00000001u; } - _impl_.name_.SetAllocated(name, GetArenaForAllocation()); -#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (_impl_.name_.IsDefault()) { - _impl_.name_.Set("", GetArenaForAllocation()); + _impl_.name_.SetAllocated(value, GetArena()); + if (::google::protobuf::internal::DebugHardenForceCopyDefaultString() && _impl_.name_.IsDefault()) { + _impl_.name_.Set("", GetArena()); } -#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING // @@protoc_insertion_point(field_set_allocated:Odb.Lib.Protobuf.SymbolName.name) } // optional .Odb.Lib.Protobuf.UnitType unitType = 2; -inline bool SymbolName::_internal_has_unittype() const { +inline bool SymbolName::has_unittype() const { bool value = (_impl_._has_bits_[0] & 0x00000002u) != 0; return value; } -inline bool SymbolName::has_unittype() const { - return _internal_has_unittype(); -} inline void SymbolName::clear_unittype() { + ::google::protobuf::internal::TSanWrite(&_impl_); _impl_.unittype_ = 0; _impl_._has_bits_[0] &= ~0x00000002u; } -inline ::Odb::Lib::Protobuf::UnitType SymbolName::_internal_unittype() const { - return static_cast< ::Odb::Lib::Protobuf::UnitType >(_impl_.unittype_); -} inline ::Odb::Lib::Protobuf::UnitType SymbolName::unittype() const { // @@protoc_insertion_point(field_get:Odb.Lib.Protobuf.SymbolName.unitType) return _internal_unittype(); } -inline void SymbolName::_internal_set_unittype(::Odb::Lib::Protobuf::UnitType value) { - _impl_._has_bits_[0] |= 0x00000002u; - _impl_.unittype_ = value; -} inline void SymbolName::set_unittype(::Odb::Lib::Protobuf::UnitType value) { _internal_set_unittype(value); + _impl_._has_bits_[0] |= 0x00000002u; // @@protoc_insertion_point(field_set:Odb.Lib.Protobuf.SymbolName.unitType) } +inline ::Odb::Lib::Protobuf::UnitType SymbolName::_internal_unittype() const { + ::google::protobuf::internal::TSanRead(&_impl_); + return static_cast<::Odb::Lib::Protobuf::UnitType>(_impl_.unittype_); +} +inline void SymbolName::_internal_set_unittype(::Odb::Lib::Protobuf::UnitType value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.unittype_ = value; +} #ifdef __GNUC__ - #pragma GCC diagnostic pop +#pragma GCC diagnostic pop #endif // __GNUC__ // @@protoc_insertion_point(namespace_scope) - } // namespace Protobuf } // namespace Lib } // namespace Odb + // @@protoc_insertion_point(global_scope) -#include -#endif // GOOGLE_PROTOBUF_INCLUDED_GOOGLE_PROTOBUF_INCLUDED_symbolname_2eproto +#include "google/protobuf/port_undef.inc" + +#endif // symbolname_2eproto_2epb_2eh diff --git a/OdbDesignLib/ProtoBuf/symbolsdirectory.pb.cc b/OdbDesignLib/ProtoBuf/symbolsdirectory.pb.cc index d9acd8b9..9ff41768 100644 --- a/OdbDesignLib/ProtoBuf/symbolsdirectory.pb.cc +++ b/OdbDesignLib/ProtoBuf/symbolsdirectory.pb.cc @@ -1,235 +1,322 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE // source: symbolsdirectory.proto +// Protobuf C++ Version: 5.29.2 #include "symbolsdirectory.pb.h" #include - -#include -#include -#include -#include -#include -#include -#include +#include +#include "google/protobuf/io/coded_stream.h" +#include "google/protobuf/generated_message_tctable_impl.h" +#include "google/protobuf/extension_set.h" +#include "google/protobuf/generated_message_util.h" +#include "google/protobuf/wire_format_lite.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) -#include +// Must be included last. +#include "google/protobuf/port_def.inc" PROTOBUF_PRAGMA_INIT_SEG - -namespace _pb = ::PROTOBUF_NAMESPACE_ID; -namespace _pbi = _pb::internal; - +namespace _pb = ::google::protobuf; +namespace _pbi = ::google::protobuf::internal; +namespace _fl = ::google::protobuf::internal::field_layout; namespace Odb { namespace Lib { namespace Protobuf { -PROTOBUF_CONSTEXPR SymbolsDirectory::SymbolsDirectory( - ::_pbi::ConstantInitialized): _impl_{ - /*decltype(_impl_._has_bits_)*/{} - , /*decltype(_impl_._cached_size_)*/{} - , /*decltype(_impl_.name_)*/{&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}} - , /*decltype(_impl_.path_)*/{&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}} - , /*decltype(_impl_.attrlistfile_)*/nullptr - , /*decltype(_impl_.featurefile_)*/nullptr} {} + +inline constexpr SymbolsDirectory::Impl_::Impl_( + ::_pbi::ConstantInitialized) noexcept + : _cached_size_{0}, + name_( + &::google::protobuf::internal::fixed_address_empty_string, + ::_pbi::ConstantInitialized()), + path_( + &::google::protobuf::internal::fixed_address_empty_string, + ::_pbi::ConstantInitialized()), + attrlistfile_{nullptr}, + featurefile_{nullptr} {} + +template +PROTOBUF_CONSTEXPR SymbolsDirectory::SymbolsDirectory(::_pbi::ConstantInitialized) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : ::google::protobuf::Message(_class_data_.base()), +#else // PROTOBUF_CUSTOM_VTABLE + : ::google::protobuf::Message(), +#endif // PROTOBUF_CUSTOM_VTABLE + _impl_(::_pbi::ConstantInitialized()) { +} struct SymbolsDirectoryDefaultTypeInternal { - PROTOBUF_CONSTEXPR SymbolsDirectoryDefaultTypeInternal() - : _instance(::_pbi::ConstantInitialized{}) {} + PROTOBUF_CONSTEXPR SymbolsDirectoryDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} ~SymbolsDirectoryDefaultTypeInternal() {} union { SymbolsDirectory _instance; }; }; -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 SymbolsDirectoryDefaultTypeInternal _SymbolsDirectory_default_instance_; + +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT ODBDESIGN_EXPORT + PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 SymbolsDirectoryDefaultTypeInternal _SymbolsDirectory_default_instance_; } // namespace Protobuf } // namespace Lib } // namespace Odb -static ::_pb::Metadata file_level_metadata_symbolsdirectory_2eproto[1]; -static constexpr ::_pb::EnumDescriptor const** file_level_enum_descriptors_symbolsdirectory_2eproto = nullptr; -static constexpr ::_pb::ServiceDescriptor const** file_level_service_descriptors_symbolsdirectory_2eproto = nullptr; - -const uint32_t TableStruct_symbolsdirectory_2eproto::offsets[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = { - PROTOBUF_FIELD_OFFSET(::Odb::Lib::Protobuf::SymbolsDirectory, _impl_._has_bits_), - PROTOBUF_FIELD_OFFSET(::Odb::Lib::Protobuf::SymbolsDirectory, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - ~0u, // no _inlined_string_donated_ - PROTOBUF_FIELD_OFFSET(::Odb::Lib::Protobuf::SymbolsDirectory, _impl_.name_), - PROTOBUF_FIELD_OFFSET(::Odb::Lib::Protobuf::SymbolsDirectory, _impl_.path_), - PROTOBUF_FIELD_OFFSET(::Odb::Lib::Protobuf::SymbolsDirectory, _impl_.attrlistfile_), - PROTOBUF_FIELD_OFFSET(::Odb::Lib::Protobuf::SymbolsDirectory, _impl_.featurefile_), - 0, - 1, - 2, - 3, -}; -static const ::_pbi::MigrationSchema schemas[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = { - { 0, 10, -1, sizeof(::Odb::Lib::Protobuf::SymbolsDirectory)}, +static constexpr const ::_pb::EnumDescriptor** + file_level_enum_descriptors_symbolsdirectory_2eproto = nullptr; +static constexpr const ::_pb::ServiceDescriptor** + file_level_service_descriptors_symbolsdirectory_2eproto = nullptr; +const ::uint32_t + TableStruct_symbolsdirectory_2eproto::offsets[] ABSL_ATTRIBUTE_SECTION_VARIABLE( + protodesc_cold) = { + PROTOBUF_FIELD_OFFSET(::Odb::Lib::Protobuf::SymbolsDirectory, _impl_._has_bits_), + PROTOBUF_FIELD_OFFSET(::Odb::Lib::Protobuf::SymbolsDirectory, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + ~0u, // no _split_ + ~0u, // no sizeof(Split) + PROTOBUF_FIELD_OFFSET(::Odb::Lib::Protobuf::SymbolsDirectory, _impl_.name_), + PROTOBUF_FIELD_OFFSET(::Odb::Lib::Protobuf::SymbolsDirectory, _impl_.path_), + PROTOBUF_FIELD_OFFSET(::Odb::Lib::Protobuf::SymbolsDirectory, _impl_.attrlistfile_), + PROTOBUF_FIELD_OFFSET(::Odb::Lib::Protobuf::SymbolsDirectory, _impl_.featurefile_), + 0, + 1, + 2, + 3, }; +static const ::_pbi::MigrationSchema + schemas[] ABSL_ATTRIBUTE_SECTION_VARIABLE(protodesc_cold) = { + {0, 12, -1, sizeof(::Odb::Lib::Protobuf::SymbolsDirectory)}, +}; static const ::_pb::Message* const file_default_instances[] = { - &::Odb::Lib::Protobuf::_SymbolsDirectory_default_instance_._instance, + &::Odb::Lib::Protobuf::_SymbolsDirectory_default_instance_._instance, }; - -const char descriptor_table_protodef_symbolsdirectory_2eproto[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = - "\n\026symbolsdirectory.proto\022\020Odb.Lib.Protob" - "uf\032\022attrlistfile.proto\032\022featuresfile.pro" - "to\"\340\001\n\020SymbolsDirectory\022\021\n\004name\030\001 \001(\tH\000\210" - "\001\001\022\021\n\004path\030\002 \001(\tH\001\210\001\001\0229\n\014attrlistFile\030\003 " - "\001(\0132\036.Odb.Lib.Protobuf.AttrListFileH\002\210\001\001" - "\0228\n\013featureFile\030\004 \001(\0132\036.Odb.Lib.Protobuf" - ".FeaturesFileH\003\210\001\001B\007\n\005_nameB\007\n\005_pathB\017\n\r" - "_attrlistFileB\016\n\014_featureFileb\006proto3" - ; -static const ::_pbi::DescriptorTable* const descriptor_table_symbolsdirectory_2eproto_deps[2] = { - &::descriptor_table_attrlistfile_2eproto, - &::descriptor_table_featuresfile_2eproto, +const char descriptor_table_protodef_symbolsdirectory_2eproto[] ABSL_ATTRIBUTE_SECTION_VARIABLE( + protodesc_cold) = { + "\n\026symbolsdirectory.proto\022\020Odb.Lib.Protob" + "uf\032\022attrlistfile.proto\032\022featuresfile.pro" + "to\"\340\001\n\020SymbolsDirectory\022\021\n\004name\030\001 \001(\tH\000\210" + "\001\001\022\021\n\004path\030\002 \001(\tH\001\210\001\001\0229\n\014attrlistFile\030\003 " + "\001(\0132\036.Odb.Lib.Protobuf.AttrListFileH\002\210\001\001" + "\0228\n\013featureFile\030\004 \001(\0132\036.Odb.Lib.Protobuf" + ".FeaturesFileH\003\210\001\001B\007\n\005_nameB\007\n\005_pathB\017\n\r" + "_attrlistFileB\016\n\014_featureFileb\006proto3" +}; +static const ::_pbi::DescriptorTable* const descriptor_table_symbolsdirectory_2eproto_deps[2] = + { + &::descriptor_table_attrlistfile_2eproto, + &::descriptor_table_featuresfile_2eproto, }; -static ::_pbi::once_flag descriptor_table_symbolsdirectory_2eproto_once; -const ::_pbi::DescriptorTable descriptor_table_symbolsdirectory_2eproto = { - false, false, 317, descriptor_table_protodef_symbolsdirectory_2eproto, +static ::absl::once_flag descriptor_table_symbolsdirectory_2eproto_once; +PROTOBUF_CONSTINIT const ::_pbi::DescriptorTable descriptor_table_symbolsdirectory_2eproto = { + false, + false, + 317, + descriptor_table_protodef_symbolsdirectory_2eproto, "symbolsdirectory.proto", - &descriptor_table_symbolsdirectory_2eproto_once, descriptor_table_symbolsdirectory_2eproto_deps, 2, 1, - schemas, file_default_instances, TableStruct_symbolsdirectory_2eproto::offsets, - file_level_metadata_symbolsdirectory_2eproto, file_level_enum_descriptors_symbolsdirectory_2eproto, + &descriptor_table_symbolsdirectory_2eproto_once, + descriptor_table_symbolsdirectory_2eproto_deps, + 2, + 1, + schemas, + file_default_instances, + TableStruct_symbolsdirectory_2eproto::offsets, + file_level_enum_descriptors_symbolsdirectory_2eproto, file_level_service_descriptors_symbolsdirectory_2eproto, }; -PROTOBUF_ATTRIBUTE_WEAK const ::_pbi::DescriptorTable* descriptor_table_symbolsdirectory_2eproto_getter() { - return &descriptor_table_symbolsdirectory_2eproto; -} - -// Force running AddDescriptors() at dynamic initialization time. -PROTOBUF_ATTRIBUTE_INIT_PRIORITY2 static ::_pbi::AddDescriptorsRunner dynamic_init_dummy_symbolsdirectory_2eproto(&descriptor_table_symbolsdirectory_2eproto); namespace Odb { namespace Lib { namespace Protobuf { - // =================================================================== class SymbolsDirectory::_Internal { public: - using HasBits = decltype(std::declval()._impl_._has_bits_); - static void set_has_name(HasBits* has_bits) { - (*has_bits)[0] |= 1u; - } - static void set_has_path(HasBits* has_bits) { - (*has_bits)[0] |= 2u; - } - static const ::Odb::Lib::Protobuf::AttrListFile& attrlistfile(const SymbolsDirectory* msg); - static void set_has_attrlistfile(HasBits* has_bits) { - (*has_bits)[0] |= 4u; - } - static const ::Odb::Lib::Protobuf::FeaturesFile& featurefile(const SymbolsDirectory* msg); - static void set_has_featurefile(HasBits* has_bits) { - (*has_bits)[0] |= 8u; - } + using HasBits = + decltype(std::declval()._impl_._has_bits_); + static constexpr ::int32_t kHasBitsOffset = + 8 * PROTOBUF_FIELD_OFFSET(SymbolsDirectory, _impl_._has_bits_); }; -const ::Odb::Lib::Protobuf::AttrListFile& -SymbolsDirectory::_Internal::attrlistfile(const SymbolsDirectory* msg) { - return *msg->_impl_.attrlistfile_; -} -const ::Odb::Lib::Protobuf::FeaturesFile& -SymbolsDirectory::_Internal::featurefile(const SymbolsDirectory* msg) { - return *msg->_impl_.featurefile_; -} void SymbolsDirectory::clear_attrlistfile() { + ::google::protobuf::internal::TSanWrite(&_impl_); if (_impl_.attrlistfile_ != nullptr) _impl_.attrlistfile_->Clear(); _impl_._has_bits_[0] &= ~0x00000004u; } void SymbolsDirectory::clear_featurefile() { + ::google::protobuf::internal::TSanWrite(&_impl_); if (_impl_.featurefile_ != nullptr) _impl_.featurefile_->Clear(); _impl_._has_bits_[0] &= ~0x00000008u; } -SymbolsDirectory::SymbolsDirectory(::PROTOBUF_NAMESPACE_ID::Arena* arena, - bool is_message_owned) - : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned) { - SharedCtor(arena, is_message_owned); +SymbolsDirectory::SymbolsDirectory(::google::protobuf::Arena* arena) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : ::google::protobuf::Message(arena, _class_data_.base()) { +#else // PROTOBUF_CUSTOM_VTABLE + : ::google::protobuf::Message(arena) { +#endif // PROTOBUF_CUSTOM_VTABLE + SharedCtor(arena); // @@protoc_insertion_point(arena_constructor:Odb.Lib.Protobuf.SymbolsDirectory) } -SymbolsDirectory::SymbolsDirectory(const SymbolsDirectory& from) - : ::PROTOBUF_NAMESPACE_ID::Message() { - SymbolsDirectory* const _this = this; (void)_this; - new (&_impl_) Impl_{ - decltype(_impl_._has_bits_){from._impl_._has_bits_} - , /*decltype(_impl_._cached_size_)*/{} - , decltype(_impl_.name_){} - , decltype(_impl_.path_){} - , decltype(_impl_.attrlistfile_){nullptr} - , decltype(_impl_.featurefile_){nullptr}}; +inline PROTOBUF_NDEBUG_INLINE SymbolsDirectory::Impl_::Impl_( + ::google::protobuf::internal::InternalVisibility visibility, ::google::protobuf::Arena* arena, + const Impl_& from, const ::Odb::Lib::Protobuf::SymbolsDirectory& from_msg) + : _has_bits_{from._has_bits_}, + _cached_size_{0}, + name_(arena, from.name_), + path_(arena, from.path_) {} + +SymbolsDirectory::SymbolsDirectory( + ::google::protobuf::Arena* arena, + const SymbolsDirectory& from) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : ::google::protobuf::Message(arena, _class_data_.base()) { +#else // PROTOBUF_CUSTOM_VTABLE + : ::google::protobuf::Message(arena) { +#endif // PROTOBUF_CUSTOM_VTABLE + SymbolsDirectory* const _this = this; + (void)_this; + _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( + from._internal_metadata_); + new (&_impl_) Impl_(internal_visibility(), arena, from._impl_, from); + ::uint32_t cached_has_bits = _impl_._has_bits_[0]; + _impl_.attrlistfile_ = (cached_has_bits & 0x00000004u) ? ::google::protobuf::Message::CopyConstruct<::Odb::Lib::Protobuf::AttrListFile>( + arena, *from._impl_.attrlistfile_) + : nullptr; + _impl_.featurefile_ = (cached_has_bits & 0x00000008u) ? ::google::protobuf::Message::CopyConstruct<::Odb::Lib::Protobuf::FeaturesFile>( + arena, *from._impl_.featurefile_) + : nullptr; - _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); - _impl_.name_.InitDefault(); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - _impl_.name_.Set("", GetArenaForAllocation()); - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (from._internal_has_name()) { - _this->_impl_.name_.Set(from._internal_name(), - _this->GetArenaForAllocation()); - } - _impl_.path_.InitDefault(); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - _impl_.path_.Set("", GetArenaForAllocation()); - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (from._internal_has_path()) { - _this->_impl_.path_.Set(from._internal_path(), - _this->GetArenaForAllocation()); - } - if (from._internal_has_attrlistfile()) { - _this->_impl_.attrlistfile_ = new ::Odb::Lib::Protobuf::AttrListFile(*from._impl_.attrlistfile_); - } - if (from._internal_has_featurefile()) { - _this->_impl_.featurefile_ = new ::Odb::Lib::Protobuf::FeaturesFile(*from._impl_.featurefile_); - } // @@protoc_insertion_point(copy_constructor:Odb.Lib.Protobuf.SymbolsDirectory) } - -inline void SymbolsDirectory::SharedCtor( - ::_pb::Arena* arena, bool is_message_owned) { - (void)arena; - (void)is_message_owned; - new (&_impl_) Impl_{ - decltype(_impl_._has_bits_){} - , /*decltype(_impl_._cached_size_)*/{} - , decltype(_impl_.name_){} - , decltype(_impl_.path_){} - , decltype(_impl_.attrlistfile_){nullptr} - , decltype(_impl_.featurefile_){nullptr} - }; - _impl_.name_.InitDefault(); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - _impl_.name_.Set("", GetArenaForAllocation()); - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING - _impl_.path_.InitDefault(); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - _impl_.path_.Set("", GetArenaForAllocation()); - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING +inline PROTOBUF_NDEBUG_INLINE SymbolsDirectory::Impl_::Impl_( + ::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* arena) + : _cached_size_{0}, + name_(arena), + path_(arena) {} + +inline void SymbolsDirectory::SharedCtor(::_pb::Arena* arena) { + new (&_impl_) Impl_(internal_visibility(), arena); + ::memset(reinterpret_cast(&_impl_) + + offsetof(Impl_, attrlistfile_), + 0, + offsetof(Impl_, featurefile_) - + offsetof(Impl_, attrlistfile_) + + sizeof(Impl_::featurefile_)); } - SymbolsDirectory::~SymbolsDirectory() { // @@protoc_insertion_point(destructor:Odb.Lib.Protobuf.SymbolsDirectory) - if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) { - (void)arena; - return; - } - SharedDtor(); + SharedDtor(*this); } - -inline void SymbolsDirectory::SharedDtor() { - GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); - _impl_.name_.Destroy(); - _impl_.path_.Destroy(); - if (this != internal_default_instance()) delete _impl_.attrlistfile_; - if (this != internal_default_instance()) delete _impl_.featurefile_; +inline void SymbolsDirectory::SharedDtor(MessageLite& self) { + SymbolsDirectory& this_ = static_cast(self); + this_._internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); + ABSL_DCHECK(this_.GetArena() == nullptr); + this_._impl_.name_.Destroy(); + this_._impl_.path_.Destroy(); + delete this_._impl_.attrlistfile_; + delete this_._impl_.featurefile_; + this_._impl_.~Impl_(); } -void SymbolsDirectory::SetCachedSize(int size) const { - _impl_._cached_size_.Set(size); +inline void* SymbolsDirectory::PlacementNew_(const void*, void* mem, + ::google::protobuf::Arena* arena) { + return ::new (mem) SymbolsDirectory(arena); } +constexpr auto SymbolsDirectory::InternalNewImpl_() { + return ::google::protobuf::internal::MessageCreator::CopyInit(sizeof(SymbolsDirectory), + alignof(SymbolsDirectory)); +} +PROTOBUF_CONSTINIT +PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 +const ::google::protobuf::internal::ClassDataFull SymbolsDirectory::_class_data_ = { + ::google::protobuf::internal::ClassData{ + &_SymbolsDirectory_default_instance_._instance, + &_table_.header, + nullptr, // OnDemandRegisterArenaDtor + nullptr, // IsInitialized + &SymbolsDirectory::MergeImpl, + ::google::protobuf::Message::GetNewImpl(), +#if defined(PROTOBUF_CUSTOM_VTABLE) + &SymbolsDirectory::SharedDtor, + ::google::protobuf::Message::GetClearImpl(), &SymbolsDirectory::ByteSizeLong, + &SymbolsDirectory::_InternalSerialize, +#endif // PROTOBUF_CUSTOM_VTABLE + PROTOBUF_FIELD_OFFSET(SymbolsDirectory, _impl_._cached_size_), + false, + }, + &SymbolsDirectory::kDescriptorMethods, + &descriptor_table_symbolsdirectory_2eproto, + nullptr, // tracker +}; +const ::google::protobuf::internal::ClassData* SymbolsDirectory::GetClassData() const { + ::google::protobuf::internal::PrefetchToLocalCache(&_class_data_); + ::google::protobuf::internal::PrefetchToLocalCache(_class_data_.tc_table); + return _class_data_.base(); +} +PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 +const ::_pbi::TcParseTable<2, 4, 2, 50, 2> SymbolsDirectory::_table_ = { + { + PROTOBUF_FIELD_OFFSET(SymbolsDirectory, _impl_._has_bits_), + 0, // no _extensions_ + 4, 24, // max_field_number, fast_idx_mask + offsetof(decltype(_table_), field_lookup_table), + 4294967280, // skipmap + offsetof(decltype(_table_), field_entries), + 4, // num_field_entries + 2, // num_aux_entries + offsetof(decltype(_table_), aux_entries), + _class_data_.base(), + nullptr, // post_loop_handler + ::_pbi::TcParser::GenericFallback, // fallback + #ifdef PROTOBUF_PREFETCH_PARSE_TABLE + ::_pbi::TcParser::GetTable<::Odb::Lib::Protobuf::SymbolsDirectory>(), // to_prefetch + #endif // PROTOBUF_PREFETCH_PARSE_TABLE + }, {{ + // optional .Odb.Lib.Protobuf.FeaturesFile featureFile = 4; + {::_pbi::TcParser::FastMtS1, + {34, 3, 1, PROTOBUF_FIELD_OFFSET(SymbolsDirectory, _impl_.featurefile_)}}, + // optional string name = 1; + {::_pbi::TcParser::FastUS1, + {10, 0, 0, PROTOBUF_FIELD_OFFSET(SymbolsDirectory, _impl_.name_)}}, + // optional string path = 2; + {::_pbi::TcParser::FastUS1, + {18, 1, 0, PROTOBUF_FIELD_OFFSET(SymbolsDirectory, _impl_.path_)}}, + // optional .Odb.Lib.Protobuf.AttrListFile attrlistFile = 3; + {::_pbi::TcParser::FastMtS1, + {26, 2, 0, PROTOBUF_FIELD_OFFSET(SymbolsDirectory, _impl_.attrlistfile_)}}, + }}, {{ + 65535, 65535 + }}, {{ + // optional string name = 1; + {PROTOBUF_FIELD_OFFSET(SymbolsDirectory, _impl_.name_), _Internal::kHasBitsOffset + 0, 0, + (0 | ::_fl::kFcOptional | ::_fl::kUtf8String | ::_fl::kRepAString)}, + // optional string path = 2; + {PROTOBUF_FIELD_OFFSET(SymbolsDirectory, _impl_.path_), _Internal::kHasBitsOffset + 1, 0, + (0 | ::_fl::kFcOptional | ::_fl::kUtf8String | ::_fl::kRepAString)}, + // optional .Odb.Lib.Protobuf.AttrListFile attrlistFile = 3; + {PROTOBUF_FIELD_OFFSET(SymbolsDirectory, _impl_.attrlistfile_), _Internal::kHasBitsOffset + 2, 0, + (0 | ::_fl::kFcOptional | ::_fl::kMessage | ::_fl::kTvTable)}, + // optional .Odb.Lib.Protobuf.FeaturesFile featureFile = 4; + {PROTOBUF_FIELD_OFFSET(SymbolsDirectory, _impl_.featurefile_), _Internal::kHasBitsOffset + 3, 1, + (0 | ::_fl::kFcOptional | ::_fl::kMessage | ::_fl::kTvTable)}, + }}, {{ + {::_pbi::TcParser::GetTable<::Odb::Lib::Protobuf::AttrListFile>()}, + {::_pbi::TcParser::GetTable<::Odb::Lib::Protobuf::FeaturesFile>()}, + }}, {{ + "\41\4\4\0\0\0\0\0" + "Odb.Lib.Protobuf.SymbolsDirectory" + "name" + "path" + }}, +}; -void SymbolsDirectory::Clear() { +PROTOBUF_NOINLINE void SymbolsDirectory::Clear() { // @@protoc_insertion_point(message_clear_start:Odb.Lib.Protobuf.SymbolsDirectory) - uint32_t cached_has_bits = 0; + ::google::protobuf::internal::TSanWrite(&_impl_); + ::uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; @@ -242,188 +329,122 @@ void SymbolsDirectory::Clear() { _impl_.path_.ClearNonDefaultToEmpty(); } if (cached_has_bits & 0x00000004u) { - GOOGLE_DCHECK(_impl_.attrlistfile_ != nullptr); + ABSL_DCHECK(_impl_.attrlistfile_ != nullptr); _impl_.attrlistfile_->Clear(); } if (cached_has_bits & 0x00000008u) { - GOOGLE_DCHECK(_impl_.featurefile_ != nullptr); + ABSL_DCHECK(_impl_.featurefile_ != nullptr); _impl_.featurefile_->Clear(); } } _impl_._has_bits_.Clear(); - _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); + _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); } -const char* SymbolsDirectory::_InternalParse(const char* ptr, ::_pbi::ParseContext* ctx) { -#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure - _Internal::HasBits has_bits{}; - while (!ctx->Done(&ptr)) { - uint32_t tag; - ptr = ::_pbi::ReadTag(ptr, &tag); - switch (tag >> 3) { - // optional string name = 1; - case 1: - if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 10)) { - auto str = _internal_mutable_name(); - ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); - CHK_(ptr); - CHK_(::_pbi::VerifyUTF8(str, "Odb.Lib.Protobuf.SymbolsDirectory.name")); - } else - goto handle_unusual; - continue; - // optional string path = 2; - case 2: - if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 18)) { - auto str = _internal_mutable_path(); - ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); - CHK_(ptr); - CHK_(::_pbi::VerifyUTF8(str, "Odb.Lib.Protobuf.SymbolsDirectory.path")); - } else - goto handle_unusual; - continue; - // optional .Odb.Lib.Protobuf.AttrListFile attrlistFile = 3; - case 3: - if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 26)) { - ptr = ctx->ParseMessage(_internal_mutable_attrlistfile(), ptr); - CHK_(ptr); - } else - goto handle_unusual; - continue; - // optional .Odb.Lib.Protobuf.FeaturesFile featureFile = 4; - case 4: - if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 34)) { - ptr = ctx->ParseMessage(_internal_mutable_featurefile(), ptr); - CHK_(ptr); - } else - goto handle_unusual; - continue; - default: - goto handle_unusual; - } // switch - handle_unusual: - if ((tag == 0) || ((tag & 7) == 4)) { - CHK_(ptr); - ctx->SetLastTag(tag); - goto message_done; - } - ptr = UnknownFieldParse( - tag, - _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(), - ptr, ctx); - CHK_(ptr != nullptr); - } // while -message_done: - _impl_._has_bits_.Or(has_bits); - return ptr; -failure: - ptr = nullptr; - goto message_done; -#undef CHK_ -} - -uint8_t* SymbolsDirectory::_InternalSerialize( - uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { - // @@protoc_insertion_point(serialize_to_array_start:Odb.Lib.Protobuf.SymbolsDirectory) - uint32_t cached_has_bits = 0; - (void) cached_has_bits; - - // optional string name = 1; - if (_internal_has_name()) { - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( - this->_internal_name().data(), static_cast(this->_internal_name().length()), - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, - "Odb.Lib.Protobuf.SymbolsDirectory.name"); - target = stream->WriteStringMaybeAliased( - 1, this->_internal_name(), target); - } - - // optional string path = 2; - if (_internal_has_path()) { - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( - this->_internal_path().data(), static_cast(this->_internal_path().length()), - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, - "Odb.Lib.Protobuf.SymbolsDirectory.path"); - target = stream->WriteStringMaybeAliased( - 2, this->_internal_path(), target); - } - - // optional .Odb.Lib.Protobuf.AttrListFile attrlistFile = 3; - if (_internal_has_attrlistfile()) { - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: - InternalWriteMessage(3, _Internal::attrlistfile(this), - _Internal::attrlistfile(this).GetCachedSize(), target, stream); - } - - // optional .Odb.Lib.Protobuf.FeaturesFile featureFile = 4; - if (_internal_has_featurefile()) { - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: - InternalWriteMessage(4, _Internal::featurefile(this), - _Internal::featurefile(this).GetCachedSize(), target, stream); - } - - if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = ::_pbi::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:Odb.Lib.Protobuf.SymbolsDirectory) - return target; -} - -size_t SymbolsDirectory::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:Odb.Lib.Protobuf.SymbolsDirectory) - size_t total_size = 0; - - uint32_t cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - cached_has_bits = _impl_._has_bits_[0]; - if (cached_has_bits & 0x0000000fu) { - // optional string name = 1; - if (cached_has_bits & 0x00000001u) { - total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( - this->_internal_name()); - } - - // optional string path = 2; - if (cached_has_bits & 0x00000002u) { - total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( - this->_internal_path()); - } - - // optional .Odb.Lib.Protobuf.AttrListFile attrlistFile = 3; - if (cached_has_bits & 0x00000004u) { - total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( - *_impl_.attrlistfile_); - } - - // optional .Odb.Lib.Protobuf.FeaturesFile featureFile = 4; - if (cached_has_bits & 0x00000008u) { - total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( - *_impl_.featurefile_); - } - - } - return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); -} - -const ::PROTOBUF_NAMESPACE_ID::Message::ClassData SymbolsDirectory::_class_data_ = { - ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSourceCheck, - SymbolsDirectory::MergeImpl -}; -const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*SymbolsDirectory::GetClassData() const { return &_class_data_; } - - -void SymbolsDirectory::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg) { +#if defined(PROTOBUF_CUSTOM_VTABLE) + ::uint8_t* SymbolsDirectory::_InternalSerialize( + const MessageLite& base, ::uint8_t* target, + ::google::protobuf::io::EpsCopyOutputStream* stream) { + const SymbolsDirectory& this_ = static_cast(base); +#else // PROTOBUF_CUSTOM_VTABLE + ::uint8_t* SymbolsDirectory::_InternalSerialize( + ::uint8_t* target, + ::google::protobuf::io::EpsCopyOutputStream* stream) const { + const SymbolsDirectory& this_ = *this; +#endif // PROTOBUF_CUSTOM_VTABLE + // @@protoc_insertion_point(serialize_to_array_start:Odb.Lib.Protobuf.SymbolsDirectory) + ::uint32_t cached_has_bits = 0; + (void)cached_has_bits; + + cached_has_bits = this_._impl_._has_bits_[0]; + // optional string name = 1; + if (cached_has_bits & 0x00000001u) { + const std::string& _s = this_._internal_name(); + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + _s.data(), static_cast(_s.length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "Odb.Lib.Protobuf.SymbolsDirectory.name"); + target = stream->WriteStringMaybeAliased(1, _s, target); + } + + // optional string path = 2; + if (cached_has_bits & 0x00000002u) { + const std::string& _s = this_._internal_path(); + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + _s.data(), static_cast(_s.length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "Odb.Lib.Protobuf.SymbolsDirectory.path"); + target = stream->WriteStringMaybeAliased(2, _s, target); + } + + // optional .Odb.Lib.Protobuf.AttrListFile attrlistFile = 3; + if (cached_has_bits & 0x00000004u) { + target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( + 3, *this_._impl_.attrlistfile_, this_._impl_.attrlistfile_->GetCachedSize(), target, + stream); + } + + // optional .Odb.Lib.Protobuf.FeaturesFile featureFile = 4; + if (cached_has_bits & 0x00000008u) { + target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( + 4, *this_._impl_.featurefile_, this_._impl_.featurefile_->GetCachedSize(), target, + stream); + } + + if (PROTOBUF_PREDICT_FALSE(this_._internal_metadata_.have_unknown_fields())) { + target = + ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( + this_._internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); + } + // @@protoc_insertion_point(serialize_to_array_end:Odb.Lib.Protobuf.SymbolsDirectory) + return target; + } + +#if defined(PROTOBUF_CUSTOM_VTABLE) + ::size_t SymbolsDirectory::ByteSizeLong(const MessageLite& base) { + const SymbolsDirectory& this_ = static_cast(base); +#else // PROTOBUF_CUSTOM_VTABLE + ::size_t SymbolsDirectory::ByteSizeLong() const { + const SymbolsDirectory& this_ = *this; +#endif // PROTOBUF_CUSTOM_VTABLE + // @@protoc_insertion_point(message_byte_size_start:Odb.Lib.Protobuf.SymbolsDirectory) + ::size_t total_size = 0; + + ::uint32_t cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void)cached_has_bits; + + ::_pbi::Prefetch5LinesFrom7Lines(&this_); + cached_has_bits = this_._impl_._has_bits_[0]; + if (cached_has_bits & 0x0000000fu) { + // optional string name = 1; + if (cached_has_bits & 0x00000001u) { + total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize( + this_._internal_name()); + } + // optional string path = 2; + if (cached_has_bits & 0x00000002u) { + total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize( + this_._internal_path()); + } + // optional .Odb.Lib.Protobuf.AttrListFile attrlistFile = 3; + if (cached_has_bits & 0x00000004u) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::MessageSize(*this_._impl_.attrlistfile_); + } + // optional .Odb.Lib.Protobuf.FeaturesFile featureFile = 4; + if (cached_has_bits & 0x00000008u) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::MessageSize(*this_._impl_.featurefile_); + } + } + return this_.MaybeComputeUnknownFieldsSize(total_size, + &this_._impl_._cached_size_); + } + +void SymbolsDirectory::MergeImpl(::google::protobuf::MessageLite& to_msg, const ::google::protobuf::MessageLite& from_msg) { auto* const _this = static_cast(&to_msg); auto& from = static_cast(from_msg); + ::google::protobuf::Arena* arena = _this->GetArena(); // @@protoc_insertion_point(class_specific_merge_from_start:Odb.Lib.Protobuf.SymbolsDirectory) - GOOGLE_DCHECK_NE(&from, _this); - uint32_t cached_has_bits = 0; + ABSL_DCHECK_NE(&from, _this); + ::uint32_t cached_has_bits = 0; (void) cached_has_bits; cached_has_bits = from._impl_._has_bits_[0]; @@ -435,15 +456,26 @@ void SymbolsDirectory::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const _this->_internal_set_path(from._internal_path()); } if (cached_has_bits & 0x00000004u) { - _this->_internal_mutable_attrlistfile()->::Odb::Lib::Protobuf::AttrListFile::MergeFrom( - from._internal_attrlistfile()); + ABSL_DCHECK(from._impl_.attrlistfile_ != nullptr); + if (_this->_impl_.attrlistfile_ == nullptr) { + _this->_impl_.attrlistfile_ = + ::google::protobuf::Message::CopyConstruct<::Odb::Lib::Protobuf::AttrListFile>(arena, *from._impl_.attrlistfile_); + } else { + _this->_impl_.attrlistfile_->MergeFrom(*from._impl_.attrlistfile_); + } } if (cached_has_bits & 0x00000008u) { - _this->_internal_mutable_featurefile()->::Odb::Lib::Protobuf::FeaturesFile::MergeFrom( - from._internal_featurefile()); + ABSL_DCHECK(from._impl_.featurefile_ != nullptr); + if (_this->_impl_.featurefile_ == nullptr) { + _this->_impl_.featurefile_ = + ::google::protobuf::Message::CopyConstruct<::Odb::Lib::Protobuf::FeaturesFile>(arena, *from._impl_.featurefile_); + } else { + _this->_impl_.featurefile_->MergeFrom(*from._impl_.featurefile_); + } } } - _this->_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); + _this->_impl_._has_bits_[0] |= cached_has_bits; + _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); } void SymbolsDirectory::CopyFrom(const SymbolsDirectory& from) { @@ -453,25 +485,16 @@ void SymbolsDirectory::CopyFrom(const SymbolsDirectory& from) { MergeFrom(from); } -bool SymbolsDirectory::IsInitialized() const { - return true; -} -void SymbolsDirectory::InternalSwap(SymbolsDirectory* other) { +void SymbolsDirectory::InternalSwap(SymbolsDirectory* PROTOBUF_RESTRICT other) { using std::swap; - auto* lhs_arena = GetArenaForAllocation(); - auto* rhs_arena = other->GetArenaForAllocation(); + auto* arena = GetArena(); + ABSL_DCHECK_EQ(arena, other->GetArena()); _internal_metadata_.InternalSwap(&other->_internal_metadata_); swap(_impl_._has_bits_[0], other->_impl_._has_bits_[0]); - ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( - &_impl_.name_, lhs_arena, - &other->_impl_.name_, rhs_arena - ); - ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( - &_impl_.path_, lhs_arena, - &other->_impl_.path_, rhs_arena - ); - ::PROTOBUF_NAMESPACE_ID::internal::memswap< + ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.name_, &other->_impl_.name_, arena); + ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.path_, &other->_impl_.path_, arena); + ::google::protobuf::internal::memswap< PROTOBUF_FIELD_OFFSET(SymbolsDirectory, _impl_.featurefile_) + sizeof(SymbolsDirectory::_impl_.featurefile_) - PROTOBUF_FIELD_OFFSET(SymbolsDirectory, _impl_.attrlistfile_)>( @@ -479,22 +502,20 @@ void SymbolsDirectory::InternalSwap(SymbolsDirectory* other) { reinterpret_cast(&other->_impl_.attrlistfile_)); } -::PROTOBUF_NAMESPACE_ID::Metadata SymbolsDirectory::GetMetadata() const { - return ::_pbi::AssignDescriptors( - &descriptor_table_symbolsdirectory_2eproto_getter, &descriptor_table_symbolsdirectory_2eproto_once, - file_level_metadata_symbolsdirectory_2eproto[0]); +::google::protobuf::Metadata SymbolsDirectory::GetMetadata() const { + return ::google::protobuf::Message::GetMetadataImpl(GetClassData()->full()); } - // @@protoc_insertion_point(namespace_scope) } // namespace Protobuf } // namespace Lib } // namespace Odb -PROTOBUF_NAMESPACE_OPEN -template<> PROTOBUF_NOINLINE ::Odb::Lib::Protobuf::SymbolsDirectory* -Arena::CreateMaybeMessage< ::Odb::Lib::Protobuf::SymbolsDirectory >(Arena* arena) { - return Arena::CreateMessageInternal< ::Odb::Lib::Protobuf::SymbolsDirectory >(arena); -} -PROTOBUF_NAMESPACE_CLOSE - +namespace google { +namespace protobuf { +} // namespace protobuf +} // namespace google // @@protoc_insertion_point(global_scope) -#include +PROTOBUF_ATTRIBUTE_INIT_PRIORITY2 static ::std::false_type + _static_init2_ PROTOBUF_UNUSED = + (::_pbi::AddDescriptors(&descriptor_table_symbolsdirectory_2eproto), + ::std::false_type{}); +#include "google/protobuf/port_undef.inc" diff --git a/OdbDesignLib/ProtoBuf/symbolsdirectory.pb.h b/OdbDesignLib/ProtoBuf/symbolsdirectory.pb.h index 54331d8f..d3d65e4c 100644 --- a/OdbDesignLib/ProtoBuf/symbolsdirectory.pb.h +++ b/OdbDesignLib/ProtoBuf/symbolsdirectory.pb.h @@ -1,51 +1,58 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE // source: symbolsdirectory.proto +// Protobuf C++ Version: 5.29.2 -#ifndef GOOGLE_PROTOBUF_INCLUDED_symbolsdirectory_2eproto -#define GOOGLE_PROTOBUF_INCLUDED_symbolsdirectory_2eproto +#ifndef symbolsdirectory_2eproto_2epb_2eh +#define symbolsdirectory_2eproto_2epb_2eh #include #include - -#include -#if PROTOBUF_VERSION < 3021000 -#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 3021012 < 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. +#include +#include + +#include "google/protobuf/runtime_version.h" +#if PROTOBUF_VERSION != 5029002 +#error "Protobuf C++ gencode is built with an incompatible version of" +#error "Protobuf C++ headers/runtime. See" +#error "https://protobuf.dev/support/cross-version-runtime-guarantee/#cpp" #endif - -#include -#include -#include -#include -#include -#include -#include -#include -#include // IWYU pragma: export -#include // IWYU pragma: export -#include +#include "google/protobuf/io/coded_stream.h" +#include "google/protobuf/arena.h" +#include "google/protobuf/arenastring.h" +#include "google/protobuf/generated_message_tctable_decl.h" +#include "google/protobuf/generated_message_util.h" +#include "google/protobuf/metadata_lite.h" +#include "google/protobuf/generated_message_reflection.h" +#include "google/protobuf/message.h" +#include "google/protobuf/message_lite.h" +#include "google/protobuf/repeated_field.h" // IWYU pragma: export +#include "google/protobuf/extension_set.h" // IWYU pragma: export +#include "google/protobuf/unknown_field_set.h" #include "attrlistfile.pb.h" #include "featuresfile.pb.h" // @@protoc_insertion_point(includes) -#include + +// Must be included last. +#include "google/protobuf/port_def.inc" + #define PROTOBUF_INTERNAL_EXPORT_symbolsdirectory_2eproto ODBDESIGN_EXPORT -PROTOBUF_NAMESPACE_OPEN + +namespace google { +namespace protobuf { namespace internal { -class AnyMetadata; +template +::absl::string_view GetAnyMessageName(); } // namespace internal -PROTOBUF_NAMESPACE_CLOSE +} // namespace protobuf +} // namespace google // Internal implementation detail -- do not use these members. struct ODBDESIGN_EXPORT TableStruct_symbolsdirectory_2eproto { - static const uint32_t offsets[]; + static const ::uint32_t offsets[]; }; -ODBDESIGN_EXPORT extern const ::PROTOBUF_NAMESPACE_ID::internal::DescriptorTable descriptor_table_symbolsdirectory_2eproto; +ODBDESIGN_EXPORT extern const ::google::protobuf::internal::DescriptorTable + descriptor_table_symbolsdirectory_2eproto; namespace Odb { namespace Lib { namespace Protobuf { @@ -55,39 +62,47 @@ ODBDESIGN_EXPORT extern SymbolsDirectoryDefaultTypeInternal _SymbolsDirectory_de } // namespace Protobuf } // namespace Lib } // namespace Odb -PROTOBUF_NAMESPACE_OPEN -template<> ODBDESIGN_EXPORT ::Odb::Lib::Protobuf::SymbolsDirectory* Arena::CreateMaybeMessage<::Odb::Lib::Protobuf::SymbolsDirectory>(Arena*); -PROTOBUF_NAMESPACE_CLOSE +namespace google { +namespace protobuf { +} // namespace protobuf +} // namespace google + namespace Odb { namespace Lib { namespace Protobuf { // =================================================================== -class ODBDESIGN_EXPORT SymbolsDirectory final : - public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:Odb.Lib.Protobuf.SymbolsDirectory) */ { + +// ------------------------------------------------------------------- + +class ODBDESIGN_EXPORT SymbolsDirectory final : public ::google::protobuf::Message +/* @@protoc_insertion_point(class_definition:Odb.Lib.Protobuf.SymbolsDirectory) */ { public: inline SymbolsDirectory() : SymbolsDirectory(nullptr) {} - ~SymbolsDirectory() override; - explicit PROTOBUF_CONSTEXPR SymbolsDirectory(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); + ~SymbolsDirectory() PROTOBUF_FINAL; - SymbolsDirectory(const SymbolsDirectory& from); - SymbolsDirectory(SymbolsDirectory&& from) noexcept - : SymbolsDirectory() { - *this = ::std::move(from); +#if defined(PROTOBUF_CUSTOM_VTABLE) + void operator delete(SymbolsDirectory* msg, std::destroying_delete_t) { + SharedDtor(*msg); + ::google::protobuf::internal::SizedDelete(msg, sizeof(SymbolsDirectory)); } +#endif + + template + explicit PROTOBUF_CONSTEXPR SymbolsDirectory( + ::google::protobuf::internal::ConstantInitialized); + inline SymbolsDirectory(const SymbolsDirectory& from) : SymbolsDirectory(nullptr, from) {} + inline SymbolsDirectory(SymbolsDirectory&& from) noexcept + : SymbolsDirectory(nullptr, std::move(from)) {} inline SymbolsDirectory& operator=(const SymbolsDirectory& from) { CopyFrom(from); return *this; } inline SymbolsDirectory& operator=(SymbolsDirectory&& from) noexcept { if (this == &from) return *this; - if (GetOwningArena() == from.GetOwningArena() - #ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetOwningArena() != nullptr - #endif // !PROTOBUF_FORCE_COPY_IN_MOVE - ) { + if (::google::protobuf::internal::CanMoveWithInternalSwap(GetArena(), from.GetArena())) { InternalSwap(&from); } else { CopyFrom(from); @@ -95,13 +110,22 @@ class ODBDESIGN_EXPORT SymbolsDirectory final : return *this; } - static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { + inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const + ABSL_ATTRIBUTE_LIFETIME_BOUND { + return _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance); + } + inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() + ABSL_ATTRIBUTE_LIFETIME_BOUND { + return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); + } + + static const ::google::protobuf::Descriptor* descriptor() { return GetDescriptor(); } - static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { + static const ::google::protobuf::Descriptor* GetDescriptor() { return default_instance().GetMetadata().descriptor; } - static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { + static const ::google::protobuf::Reflection* GetReflection() { return default_instance().GetMetadata().reflection; } static const SymbolsDirectory& default_instance() { @@ -109,81 +133,94 @@ class ODBDESIGN_EXPORT SymbolsDirectory final : } static inline const SymbolsDirectory* internal_default_instance() { return reinterpret_cast( - &_SymbolsDirectory_default_instance_); - } - static constexpr int kIndexInFileMessages = - 0; - - friend void swap(SymbolsDirectory& a, SymbolsDirectory& b) { - a.Swap(&b); + &_SymbolsDirectory_default_instance_); } + static constexpr int kIndexInFileMessages = 0; + friend void swap(SymbolsDirectory& a, SymbolsDirectory& b) { a.Swap(&b); } inline void Swap(SymbolsDirectory* other) { if (other == this) return; - #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetOwningArena() != nullptr && - GetOwningArena() == other->GetOwningArena()) { - #else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetOwningArena() == other->GetOwningArena()) { - #endif // !PROTOBUF_FORCE_COPY_IN_SWAP + if (::google::protobuf::internal::CanUseInternalSwap(GetArena(), other->GetArena())) { InternalSwap(other); } else { - ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); + ::google::protobuf::internal::GenericSwap(this, other); } } void UnsafeArenaSwap(SymbolsDirectory* other) { if (other == this) return; - GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); + ABSL_DCHECK(GetArena() == other->GetArena()); InternalSwap(other); } // implements Message ---------------------------------------------- - SymbolsDirectory* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); + SymbolsDirectory* New(::google::protobuf::Arena* arena = nullptr) const { + return ::google::protobuf::Message::DefaultConstruct(arena); } - using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; + using ::google::protobuf::Message::CopyFrom; void CopyFrom(const SymbolsDirectory& from); - using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; - void MergeFrom( const SymbolsDirectory& from) { - SymbolsDirectory::MergeImpl(*this, from); - } + using ::google::protobuf::Message::MergeFrom; + void MergeFrom(const SymbolsDirectory& from) { SymbolsDirectory::MergeImpl(*this, from); } + private: - static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg); + static void MergeImpl( + ::google::protobuf::MessageLite& to_msg, + const ::google::protobuf::MessageLite& from_msg); + public: - PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; - bool IsInitialized() const final; + bool IsInitialized() const { + return true; + } + ABSL_ATTRIBUTE_REINITIALIZES void Clear() PROTOBUF_FINAL; + #if defined(PROTOBUF_CUSTOM_VTABLE) + private: + static ::size_t ByteSizeLong(const ::google::protobuf::MessageLite& msg); + static ::uint8_t* _InternalSerialize( + const MessageLite& msg, ::uint8_t* target, + ::google::protobuf::io::EpsCopyOutputStream* stream); - size_t ByteSizeLong() const final; - const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final; - uint8_t* _InternalSerialize( - uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const final { return _impl_._cached_size_.Get(); } + public: + ::size_t ByteSizeLong() const { return ByteSizeLong(*this); } + ::uint8_t* _InternalSerialize( + ::uint8_t* target, + ::google::protobuf::io::EpsCopyOutputStream* stream) const { + return _InternalSerialize(*this, target, stream); + } + #else // PROTOBUF_CUSTOM_VTABLE + ::size_t ByteSizeLong() const final; + ::uint8_t* _InternalSerialize( + ::uint8_t* target, + ::google::protobuf::io::EpsCopyOutputStream* stream) const final; + #endif // PROTOBUF_CUSTOM_VTABLE + int GetCachedSize() const { return _impl_._cached_size_.Get(); } private: - void SharedCtor(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned); - void SharedDtor(); - void SetCachedSize(int size) const final; + void SharedCtor(::google::protobuf::Arena* arena); + static void SharedDtor(MessageLite& self); void InternalSwap(SymbolsDirectory* other); - - private: - friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; - static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { - return "Odb.Lib.Protobuf.SymbolsDirectory"; + private: + template + friend ::absl::string_view( + ::google::protobuf::internal::GetAnyMessageName)(); + static ::absl::string_view FullMessageName() { return "Odb.Lib.Protobuf.SymbolsDirectory"; } + + protected: + explicit SymbolsDirectory(::google::protobuf::Arena* arena); + SymbolsDirectory(::google::protobuf::Arena* arena, const SymbolsDirectory& from); + SymbolsDirectory(::google::protobuf::Arena* arena, SymbolsDirectory&& from) noexcept + : SymbolsDirectory(arena) { + *this = ::std::move(from); } - protected: - explicit SymbolsDirectory(::PROTOBUF_NAMESPACE_ID::Arena* arena, - bool is_message_owned = false); - public: - - static const ClassData _class_data_; - const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final; - - ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; + const ::google::protobuf::internal::ClassData* GetClassData() const PROTOBUF_FINAL; + static void* PlacementNew_(const void*, void* mem, + ::google::protobuf::Arena* arena); + static constexpr auto InternalNewImpl_(); + static const ::google::protobuf::internal::ClassDataFull _class_data_; + public: + ::google::protobuf::Metadata GetMetadata() const; // nested types ---------------------------------------------------- // accessors ------------------------------------------------------- - enum : int { kNameFieldNumber = 1, kPathFieldNumber = 2, @@ -192,266 +229,279 @@ class ODBDESIGN_EXPORT SymbolsDirectory final : }; // optional string name = 1; bool has_name() const; - private: - bool _internal_has_name() const; - public: - void clear_name(); + void clear_name() ; const std::string& name() const; - template - void set_name(ArgT0&& arg0, ArgT... args); + template + void set_name(Arg_&& arg, Args_... args); std::string* mutable_name(); PROTOBUF_NODISCARD std::string* release_name(); - void set_allocated_name(std::string* name); + void set_allocated_name(std::string* value); + private: const std::string& _internal_name() const; - inline PROTOBUF_ALWAYS_INLINE void _internal_set_name(const std::string& value); + inline PROTOBUF_ALWAYS_INLINE void _internal_set_name( + const std::string& value); std::string* _internal_mutable_name(); - public: + public: // optional string path = 2; bool has_path() const; - private: - bool _internal_has_path() const; - public: - void clear_path(); + void clear_path() ; const std::string& path() const; - template - void set_path(ArgT0&& arg0, ArgT... args); + template + void set_path(Arg_&& arg, Args_... args); std::string* mutable_path(); PROTOBUF_NODISCARD std::string* release_path(); - void set_allocated_path(std::string* path); + void set_allocated_path(std::string* value); + private: const std::string& _internal_path() const; - inline PROTOBUF_ALWAYS_INLINE void _internal_set_path(const std::string& value); + inline PROTOBUF_ALWAYS_INLINE void _internal_set_path( + const std::string& value); std::string* _internal_mutable_path(); - public: + public: // optional .Odb.Lib.Protobuf.AttrListFile attrlistFile = 3; bool has_attrlistfile() const; - private: - bool _internal_has_attrlistfile() const; - public: - void clear_attrlistfile(); + void clear_attrlistfile() ; const ::Odb::Lib::Protobuf::AttrListFile& attrlistfile() const; PROTOBUF_NODISCARD ::Odb::Lib::Protobuf::AttrListFile* release_attrlistfile(); ::Odb::Lib::Protobuf::AttrListFile* mutable_attrlistfile(); - void set_allocated_attrlistfile(::Odb::Lib::Protobuf::AttrListFile* attrlistfile); + void set_allocated_attrlistfile(::Odb::Lib::Protobuf::AttrListFile* value); + void unsafe_arena_set_allocated_attrlistfile(::Odb::Lib::Protobuf::AttrListFile* value); + ::Odb::Lib::Protobuf::AttrListFile* unsafe_arena_release_attrlistfile(); + private: const ::Odb::Lib::Protobuf::AttrListFile& _internal_attrlistfile() const; ::Odb::Lib::Protobuf::AttrListFile* _internal_mutable_attrlistfile(); - public: - void unsafe_arena_set_allocated_attrlistfile( - ::Odb::Lib::Protobuf::AttrListFile* attrlistfile); - ::Odb::Lib::Protobuf::AttrListFile* unsafe_arena_release_attrlistfile(); + public: // optional .Odb.Lib.Protobuf.FeaturesFile featureFile = 4; bool has_featurefile() const; - private: - bool _internal_has_featurefile() const; - public: - void clear_featurefile(); + void clear_featurefile() ; const ::Odb::Lib::Protobuf::FeaturesFile& featurefile() const; PROTOBUF_NODISCARD ::Odb::Lib::Protobuf::FeaturesFile* release_featurefile(); ::Odb::Lib::Protobuf::FeaturesFile* mutable_featurefile(); - void set_allocated_featurefile(::Odb::Lib::Protobuf::FeaturesFile* featurefile); + void set_allocated_featurefile(::Odb::Lib::Protobuf::FeaturesFile* value); + void unsafe_arena_set_allocated_featurefile(::Odb::Lib::Protobuf::FeaturesFile* value); + ::Odb::Lib::Protobuf::FeaturesFile* unsafe_arena_release_featurefile(); + private: const ::Odb::Lib::Protobuf::FeaturesFile& _internal_featurefile() const; ::Odb::Lib::Protobuf::FeaturesFile* _internal_mutable_featurefile(); - public: - void unsafe_arena_set_allocated_featurefile( - ::Odb::Lib::Protobuf::FeaturesFile* featurefile); - ::Odb::Lib::Protobuf::FeaturesFile* unsafe_arena_release_featurefile(); + public: // @@protoc_insertion_point(class_scope:Odb.Lib.Protobuf.SymbolsDirectory) private: class _Internal; - - template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; - typedef void InternalArenaConstructable_; - typedef void DestructorSkippable_; + friend class ::google::protobuf::internal::TcParser; + static const ::google::protobuf::internal::TcParseTable< + 2, 4, 2, + 50, 2> + _table_; + + friend class ::google::protobuf::MessageLite; + friend class ::google::protobuf::Arena; + template + friend class ::google::protobuf::Arena::InternalHelper; + using InternalArenaConstructable_ = void; + using DestructorSkippable_ = void; struct Impl_ { - ::PROTOBUF_NAMESPACE_ID::internal::HasBits<1> _has_bits_; - mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; - ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr name_; - ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr path_; + inline explicit constexpr Impl_( + ::google::protobuf::internal::ConstantInitialized) noexcept; + inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* arena); + inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* arena, const Impl_& from, + const SymbolsDirectory& from_msg); + ::google::protobuf::internal::HasBits<1> _has_bits_; + ::google::protobuf::internal::CachedSize _cached_size_; + ::google::protobuf::internal::ArenaStringPtr name_; + ::google::protobuf::internal::ArenaStringPtr path_; ::Odb::Lib::Protobuf::AttrListFile* attrlistfile_; ::Odb::Lib::Protobuf::FeaturesFile* featurefile_; + PROTOBUF_TSAN_DECLARE_MEMBER }; union { Impl_ _impl_; }; friend struct ::TableStruct_symbolsdirectory_2eproto; }; + // =================================================================== + + // =================================================================== + #ifdef __GNUC__ - #pragma GCC diagnostic push - #pragma GCC diagnostic ignored "-Wstrict-aliasing" +#pragma GCC diagnostic push +#pragma GCC diagnostic ignored "-Wstrict-aliasing" #endif // __GNUC__ +// ------------------------------------------------------------------- + // SymbolsDirectory // optional string name = 1; -inline bool SymbolsDirectory::_internal_has_name() const { +inline bool SymbolsDirectory::has_name() const { bool value = (_impl_._has_bits_[0] & 0x00000001u) != 0; return value; } -inline bool SymbolsDirectory::has_name() const { - return _internal_has_name(); -} inline void SymbolsDirectory::clear_name() { + ::google::protobuf::internal::TSanWrite(&_impl_); _impl_.name_.ClearToEmpty(); _impl_._has_bits_[0] &= ~0x00000001u; } -inline const std::string& SymbolsDirectory::name() const { +inline const std::string& SymbolsDirectory::name() const + ABSL_ATTRIBUTE_LIFETIME_BOUND { // @@protoc_insertion_point(field_get:Odb.Lib.Protobuf.SymbolsDirectory.name) return _internal_name(); } -template -inline PROTOBUF_ALWAYS_INLINE -void SymbolsDirectory::set_name(ArgT0&& arg0, ArgT... args) { - _impl_._has_bits_[0] |= 0x00000001u; - _impl_.name_.Set(static_cast(arg0), args..., GetArenaForAllocation()); +template +inline PROTOBUF_ALWAYS_INLINE void SymbolsDirectory::set_name(Arg_&& arg, + Args_... args) { + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_._has_bits_[0] |= 0x00000001u; + _impl_.name_.Set(static_cast(arg), args..., GetArena()); // @@protoc_insertion_point(field_set:Odb.Lib.Protobuf.SymbolsDirectory.name) } -inline std::string* SymbolsDirectory::mutable_name() { +inline std::string* SymbolsDirectory::mutable_name() ABSL_ATTRIBUTE_LIFETIME_BOUND { std::string* _s = _internal_mutable_name(); // @@protoc_insertion_point(field_mutable:Odb.Lib.Protobuf.SymbolsDirectory.name) return _s; } inline const std::string& SymbolsDirectory::_internal_name() const { + ::google::protobuf::internal::TSanRead(&_impl_); return _impl_.name_.Get(); } inline void SymbolsDirectory::_internal_set_name(const std::string& value) { + ::google::protobuf::internal::TSanWrite(&_impl_); _impl_._has_bits_[0] |= 0x00000001u; - _impl_.name_.Set(value, GetArenaForAllocation()); + _impl_.name_.Set(value, GetArena()); } inline std::string* SymbolsDirectory::_internal_mutable_name() { + ::google::protobuf::internal::TSanWrite(&_impl_); _impl_._has_bits_[0] |= 0x00000001u; - return _impl_.name_.Mutable(GetArenaForAllocation()); + return _impl_.name_.Mutable( GetArena()); } inline std::string* SymbolsDirectory::release_name() { + ::google::protobuf::internal::TSanWrite(&_impl_); // @@protoc_insertion_point(field_release:Odb.Lib.Protobuf.SymbolsDirectory.name) - if (!_internal_has_name()) { + if ((_impl_._has_bits_[0] & 0x00000001u) == 0) { return nullptr; } _impl_._has_bits_[0] &= ~0x00000001u; - auto* p = _impl_.name_.Release(); -#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (_impl_.name_.IsDefault()) { - _impl_.name_.Set("", GetArenaForAllocation()); + auto* released = _impl_.name_.Release(); + if (::google::protobuf::internal::DebugHardenForceCopyDefaultString()) { + _impl_.name_.Set("", GetArena()); } -#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING - return p; + return released; } -inline void SymbolsDirectory::set_allocated_name(std::string* name) { - if (name != nullptr) { +inline void SymbolsDirectory::set_allocated_name(std::string* value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + if (value != nullptr) { _impl_._has_bits_[0] |= 0x00000001u; } else { _impl_._has_bits_[0] &= ~0x00000001u; } - _impl_.name_.SetAllocated(name, GetArenaForAllocation()); -#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (_impl_.name_.IsDefault()) { - _impl_.name_.Set("", GetArenaForAllocation()); + _impl_.name_.SetAllocated(value, GetArena()); + if (::google::protobuf::internal::DebugHardenForceCopyDefaultString() && _impl_.name_.IsDefault()) { + _impl_.name_.Set("", GetArena()); } -#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING // @@protoc_insertion_point(field_set_allocated:Odb.Lib.Protobuf.SymbolsDirectory.name) } // optional string path = 2; -inline bool SymbolsDirectory::_internal_has_path() const { +inline bool SymbolsDirectory::has_path() const { bool value = (_impl_._has_bits_[0] & 0x00000002u) != 0; return value; } -inline bool SymbolsDirectory::has_path() const { - return _internal_has_path(); -} inline void SymbolsDirectory::clear_path() { + ::google::protobuf::internal::TSanWrite(&_impl_); _impl_.path_.ClearToEmpty(); _impl_._has_bits_[0] &= ~0x00000002u; } -inline const std::string& SymbolsDirectory::path() const { +inline const std::string& SymbolsDirectory::path() const + ABSL_ATTRIBUTE_LIFETIME_BOUND { // @@protoc_insertion_point(field_get:Odb.Lib.Protobuf.SymbolsDirectory.path) return _internal_path(); } -template -inline PROTOBUF_ALWAYS_INLINE -void SymbolsDirectory::set_path(ArgT0&& arg0, ArgT... args) { - _impl_._has_bits_[0] |= 0x00000002u; - _impl_.path_.Set(static_cast(arg0), args..., GetArenaForAllocation()); +template +inline PROTOBUF_ALWAYS_INLINE void SymbolsDirectory::set_path(Arg_&& arg, + Args_... args) { + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_._has_bits_[0] |= 0x00000002u; + _impl_.path_.Set(static_cast(arg), args..., GetArena()); // @@protoc_insertion_point(field_set:Odb.Lib.Protobuf.SymbolsDirectory.path) } -inline std::string* SymbolsDirectory::mutable_path() { +inline std::string* SymbolsDirectory::mutable_path() ABSL_ATTRIBUTE_LIFETIME_BOUND { std::string* _s = _internal_mutable_path(); // @@protoc_insertion_point(field_mutable:Odb.Lib.Protobuf.SymbolsDirectory.path) return _s; } inline const std::string& SymbolsDirectory::_internal_path() const { + ::google::protobuf::internal::TSanRead(&_impl_); return _impl_.path_.Get(); } inline void SymbolsDirectory::_internal_set_path(const std::string& value) { + ::google::protobuf::internal::TSanWrite(&_impl_); _impl_._has_bits_[0] |= 0x00000002u; - _impl_.path_.Set(value, GetArenaForAllocation()); + _impl_.path_.Set(value, GetArena()); } inline std::string* SymbolsDirectory::_internal_mutable_path() { + ::google::protobuf::internal::TSanWrite(&_impl_); _impl_._has_bits_[0] |= 0x00000002u; - return _impl_.path_.Mutable(GetArenaForAllocation()); + return _impl_.path_.Mutable( GetArena()); } inline std::string* SymbolsDirectory::release_path() { + ::google::protobuf::internal::TSanWrite(&_impl_); // @@protoc_insertion_point(field_release:Odb.Lib.Protobuf.SymbolsDirectory.path) - if (!_internal_has_path()) { + if ((_impl_._has_bits_[0] & 0x00000002u) == 0) { return nullptr; } _impl_._has_bits_[0] &= ~0x00000002u; - auto* p = _impl_.path_.Release(); -#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (_impl_.path_.IsDefault()) { - _impl_.path_.Set("", GetArenaForAllocation()); + auto* released = _impl_.path_.Release(); + if (::google::protobuf::internal::DebugHardenForceCopyDefaultString()) { + _impl_.path_.Set("", GetArena()); } -#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING - return p; + return released; } -inline void SymbolsDirectory::set_allocated_path(std::string* path) { - if (path != nullptr) { +inline void SymbolsDirectory::set_allocated_path(std::string* value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + if (value != nullptr) { _impl_._has_bits_[0] |= 0x00000002u; } else { _impl_._has_bits_[0] &= ~0x00000002u; } - _impl_.path_.SetAllocated(path, GetArenaForAllocation()); -#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (_impl_.path_.IsDefault()) { - _impl_.path_.Set("", GetArenaForAllocation()); + _impl_.path_.SetAllocated(value, GetArena()); + if (::google::protobuf::internal::DebugHardenForceCopyDefaultString() && _impl_.path_.IsDefault()) { + _impl_.path_.Set("", GetArena()); } -#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING // @@protoc_insertion_point(field_set_allocated:Odb.Lib.Protobuf.SymbolsDirectory.path) } // optional .Odb.Lib.Protobuf.AttrListFile attrlistFile = 3; -inline bool SymbolsDirectory::_internal_has_attrlistfile() const { +inline bool SymbolsDirectory::has_attrlistfile() const { bool value = (_impl_._has_bits_[0] & 0x00000004u) != 0; PROTOBUF_ASSUME(!value || _impl_.attrlistfile_ != nullptr); return value; } -inline bool SymbolsDirectory::has_attrlistfile() const { - return _internal_has_attrlistfile(); -} inline const ::Odb::Lib::Protobuf::AttrListFile& SymbolsDirectory::_internal_attrlistfile() const { + ::google::protobuf::internal::TSanRead(&_impl_); const ::Odb::Lib::Protobuf::AttrListFile* p = _impl_.attrlistfile_; - return p != nullptr ? *p : reinterpret_cast( - ::Odb::Lib::Protobuf::_AttrListFile_default_instance_); + return p != nullptr ? *p : reinterpret_cast(::Odb::Lib::Protobuf::_AttrListFile_default_instance_); } -inline const ::Odb::Lib::Protobuf::AttrListFile& SymbolsDirectory::attrlistfile() const { +inline const ::Odb::Lib::Protobuf::AttrListFile& SymbolsDirectory::attrlistfile() const ABSL_ATTRIBUTE_LIFETIME_BOUND { // @@protoc_insertion_point(field_get:Odb.Lib.Protobuf.SymbolsDirectory.attrlistFile) return _internal_attrlistfile(); } -inline void SymbolsDirectory::unsafe_arena_set_allocated_attrlistfile( - ::Odb::Lib::Protobuf::AttrListFile* attrlistfile) { - if (GetArenaForAllocation() == nullptr) { - delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(_impl_.attrlistfile_); +inline void SymbolsDirectory::unsafe_arena_set_allocated_attrlistfile(::Odb::Lib::Protobuf::AttrListFile* value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + if (GetArena() == nullptr) { + delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.attrlistfile_); } - _impl_.attrlistfile_ = attrlistfile; - if (attrlistfile) { + _impl_.attrlistfile_ = reinterpret_cast<::Odb::Lib::Protobuf::AttrListFile*>(value); + if (value != nullptr) { _impl_._has_bits_[0] |= 0x00000004u; } else { _impl_._has_bits_[0] &= ~0x00000004u; @@ -459,86 +509,90 @@ inline void SymbolsDirectory::unsafe_arena_set_allocated_attrlistfile( // @@protoc_insertion_point(field_unsafe_arena_set_allocated:Odb.Lib.Protobuf.SymbolsDirectory.attrlistFile) } inline ::Odb::Lib::Protobuf::AttrListFile* SymbolsDirectory::release_attrlistfile() { + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_._has_bits_[0] &= ~0x00000004u; - ::Odb::Lib::Protobuf::AttrListFile* temp = _impl_.attrlistfile_; + ::Odb::Lib::Protobuf::AttrListFile* released = _impl_.attrlistfile_; _impl_.attrlistfile_ = nullptr; -#ifdef PROTOBUF_FORCE_COPY_IN_RELEASE - auto* old = reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(temp); - temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); - if (GetArenaForAllocation() == nullptr) { delete old; } -#else // PROTOBUF_FORCE_COPY_IN_RELEASE - if (GetArenaForAllocation() != nullptr) { - temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); - } -#endif // !PROTOBUF_FORCE_COPY_IN_RELEASE - return temp; + if (::google::protobuf::internal::DebugHardenForceCopyInRelease()) { + auto* old = reinterpret_cast<::google::protobuf::MessageLite*>(released); + released = ::google::protobuf::internal::DuplicateIfNonNull(released); + if (GetArena() == nullptr) { + delete old; + } + } else { + if (GetArena() != nullptr) { + released = ::google::protobuf::internal::DuplicateIfNonNull(released); + } + } + return released; } inline ::Odb::Lib::Protobuf::AttrListFile* SymbolsDirectory::unsafe_arena_release_attrlistfile() { + ::google::protobuf::internal::TSanWrite(&_impl_); // @@protoc_insertion_point(field_release:Odb.Lib.Protobuf.SymbolsDirectory.attrlistFile) + _impl_._has_bits_[0] &= ~0x00000004u; ::Odb::Lib::Protobuf::AttrListFile* temp = _impl_.attrlistfile_; _impl_.attrlistfile_ = nullptr; return temp; } inline ::Odb::Lib::Protobuf::AttrListFile* SymbolsDirectory::_internal_mutable_attrlistfile() { - _impl_._has_bits_[0] |= 0x00000004u; + ::google::protobuf::internal::TSanWrite(&_impl_); if (_impl_.attrlistfile_ == nullptr) { - auto* p = CreateMaybeMessage<::Odb::Lib::Protobuf::AttrListFile>(GetArenaForAllocation()); - _impl_.attrlistfile_ = p; + auto* p = ::google::protobuf::Message::DefaultConstruct<::Odb::Lib::Protobuf::AttrListFile>(GetArena()); + _impl_.attrlistfile_ = reinterpret_cast<::Odb::Lib::Protobuf::AttrListFile*>(p); } return _impl_.attrlistfile_; } -inline ::Odb::Lib::Protobuf::AttrListFile* SymbolsDirectory::mutable_attrlistfile() { +inline ::Odb::Lib::Protobuf::AttrListFile* SymbolsDirectory::mutable_attrlistfile() ABSL_ATTRIBUTE_LIFETIME_BOUND { + _impl_._has_bits_[0] |= 0x00000004u; ::Odb::Lib::Protobuf::AttrListFile* _msg = _internal_mutable_attrlistfile(); // @@protoc_insertion_point(field_mutable:Odb.Lib.Protobuf.SymbolsDirectory.attrlistFile) return _msg; } -inline void SymbolsDirectory::set_allocated_attrlistfile(::Odb::Lib::Protobuf::AttrListFile* attrlistfile) { - ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); +inline void SymbolsDirectory::set_allocated_attrlistfile(::Odb::Lib::Protobuf::AttrListFile* value) { + ::google::protobuf::Arena* message_arena = GetArena(); + ::google::protobuf::internal::TSanWrite(&_impl_); if (message_arena == nullptr) { - delete reinterpret_cast< ::PROTOBUF_NAMESPACE_ID::MessageLite*>(_impl_.attrlistfile_); + delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.attrlistfile_); } - if (attrlistfile) { - ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = - ::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena( - reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(attrlistfile)); + + if (value != nullptr) { + ::google::protobuf::Arena* submessage_arena = reinterpret_cast<::google::protobuf::MessageLite*>(value)->GetArena(); if (message_arena != submessage_arena) { - attrlistfile = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( - message_arena, attrlistfile, submessage_arena); + value = ::google::protobuf::internal::GetOwnedMessage(message_arena, value, submessage_arena); } _impl_._has_bits_[0] |= 0x00000004u; } else { _impl_._has_bits_[0] &= ~0x00000004u; } - _impl_.attrlistfile_ = attrlistfile; + + _impl_.attrlistfile_ = reinterpret_cast<::Odb::Lib::Protobuf::AttrListFile*>(value); // @@protoc_insertion_point(field_set_allocated:Odb.Lib.Protobuf.SymbolsDirectory.attrlistFile) } // optional .Odb.Lib.Protobuf.FeaturesFile featureFile = 4; -inline bool SymbolsDirectory::_internal_has_featurefile() const { +inline bool SymbolsDirectory::has_featurefile() const { bool value = (_impl_._has_bits_[0] & 0x00000008u) != 0; PROTOBUF_ASSUME(!value || _impl_.featurefile_ != nullptr); return value; } -inline bool SymbolsDirectory::has_featurefile() const { - return _internal_has_featurefile(); -} inline const ::Odb::Lib::Protobuf::FeaturesFile& SymbolsDirectory::_internal_featurefile() const { + ::google::protobuf::internal::TSanRead(&_impl_); const ::Odb::Lib::Protobuf::FeaturesFile* p = _impl_.featurefile_; - return p != nullptr ? *p : reinterpret_cast( - ::Odb::Lib::Protobuf::_FeaturesFile_default_instance_); + return p != nullptr ? *p : reinterpret_cast(::Odb::Lib::Protobuf::_FeaturesFile_default_instance_); } -inline const ::Odb::Lib::Protobuf::FeaturesFile& SymbolsDirectory::featurefile() const { +inline const ::Odb::Lib::Protobuf::FeaturesFile& SymbolsDirectory::featurefile() const ABSL_ATTRIBUTE_LIFETIME_BOUND { // @@protoc_insertion_point(field_get:Odb.Lib.Protobuf.SymbolsDirectory.featureFile) return _internal_featurefile(); } -inline void SymbolsDirectory::unsafe_arena_set_allocated_featurefile( - ::Odb::Lib::Protobuf::FeaturesFile* featurefile) { - if (GetArenaForAllocation() == nullptr) { - delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(_impl_.featurefile_); +inline void SymbolsDirectory::unsafe_arena_set_allocated_featurefile(::Odb::Lib::Protobuf::FeaturesFile* value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + if (GetArena() == nullptr) { + delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.featurefile_); } - _impl_.featurefile_ = featurefile; - if (featurefile) { + _impl_.featurefile_ = reinterpret_cast<::Odb::Lib::Protobuf::FeaturesFile*>(value); + if (value != nullptr) { _impl_._has_bits_[0] |= 0x00000008u; } else { _impl_._has_bits_[0] &= ~0x00000008u; @@ -546,72 +600,80 @@ inline void SymbolsDirectory::unsafe_arena_set_allocated_featurefile( // @@protoc_insertion_point(field_unsafe_arena_set_allocated:Odb.Lib.Protobuf.SymbolsDirectory.featureFile) } inline ::Odb::Lib::Protobuf::FeaturesFile* SymbolsDirectory::release_featurefile() { + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_._has_bits_[0] &= ~0x00000008u; - ::Odb::Lib::Protobuf::FeaturesFile* temp = _impl_.featurefile_; + ::Odb::Lib::Protobuf::FeaturesFile* released = _impl_.featurefile_; _impl_.featurefile_ = nullptr; -#ifdef PROTOBUF_FORCE_COPY_IN_RELEASE - auto* old = reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(temp); - temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); - if (GetArenaForAllocation() == nullptr) { delete old; } -#else // PROTOBUF_FORCE_COPY_IN_RELEASE - if (GetArenaForAllocation() != nullptr) { - temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); - } -#endif // !PROTOBUF_FORCE_COPY_IN_RELEASE - return temp; + if (::google::protobuf::internal::DebugHardenForceCopyInRelease()) { + auto* old = reinterpret_cast<::google::protobuf::MessageLite*>(released); + released = ::google::protobuf::internal::DuplicateIfNonNull(released); + if (GetArena() == nullptr) { + delete old; + } + } else { + if (GetArena() != nullptr) { + released = ::google::protobuf::internal::DuplicateIfNonNull(released); + } + } + return released; } inline ::Odb::Lib::Protobuf::FeaturesFile* SymbolsDirectory::unsafe_arena_release_featurefile() { + ::google::protobuf::internal::TSanWrite(&_impl_); // @@protoc_insertion_point(field_release:Odb.Lib.Protobuf.SymbolsDirectory.featureFile) + _impl_._has_bits_[0] &= ~0x00000008u; ::Odb::Lib::Protobuf::FeaturesFile* temp = _impl_.featurefile_; _impl_.featurefile_ = nullptr; return temp; } inline ::Odb::Lib::Protobuf::FeaturesFile* SymbolsDirectory::_internal_mutable_featurefile() { - _impl_._has_bits_[0] |= 0x00000008u; + ::google::protobuf::internal::TSanWrite(&_impl_); if (_impl_.featurefile_ == nullptr) { - auto* p = CreateMaybeMessage<::Odb::Lib::Protobuf::FeaturesFile>(GetArenaForAllocation()); - _impl_.featurefile_ = p; + auto* p = ::google::protobuf::Message::DefaultConstruct<::Odb::Lib::Protobuf::FeaturesFile>(GetArena()); + _impl_.featurefile_ = reinterpret_cast<::Odb::Lib::Protobuf::FeaturesFile*>(p); } return _impl_.featurefile_; } -inline ::Odb::Lib::Protobuf::FeaturesFile* SymbolsDirectory::mutable_featurefile() { +inline ::Odb::Lib::Protobuf::FeaturesFile* SymbolsDirectory::mutable_featurefile() ABSL_ATTRIBUTE_LIFETIME_BOUND { + _impl_._has_bits_[0] |= 0x00000008u; ::Odb::Lib::Protobuf::FeaturesFile* _msg = _internal_mutable_featurefile(); // @@protoc_insertion_point(field_mutable:Odb.Lib.Protobuf.SymbolsDirectory.featureFile) return _msg; } -inline void SymbolsDirectory::set_allocated_featurefile(::Odb::Lib::Protobuf::FeaturesFile* featurefile) { - ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); +inline void SymbolsDirectory::set_allocated_featurefile(::Odb::Lib::Protobuf::FeaturesFile* value) { + ::google::protobuf::Arena* message_arena = GetArena(); + ::google::protobuf::internal::TSanWrite(&_impl_); if (message_arena == nullptr) { - delete reinterpret_cast< ::PROTOBUF_NAMESPACE_ID::MessageLite*>(_impl_.featurefile_); + delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.featurefile_); } - if (featurefile) { - ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = - ::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena( - reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(featurefile)); + + if (value != nullptr) { + ::google::protobuf::Arena* submessage_arena = reinterpret_cast<::google::protobuf::MessageLite*>(value)->GetArena(); if (message_arena != submessage_arena) { - featurefile = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( - message_arena, featurefile, submessage_arena); + value = ::google::protobuf::internal::GetOwnedMessage(message_arena, value, submessage_arena); } _impl_._has_bits_[0] |= 0x00000008u; } else { _impl_._has_bits_[0] &= ~0x00000008u; } - _impl_.featurefile_ = featurefile; + + _impl_.featurefile_ = reinterpret_cast<::Odb::Lib::Protobuf::FeaturesFile*>(value); // @@protoc_insertion_point(field_set_allocated:Odb.Lib.Protobuf.SymbolsDirectory.featureFile) } #ifdef __GNUC__ - #pragma GCC diagnostic pop +#pragma GCC diagnostic pop #endif // __GNUC__ // @@protoc_insertion_point(namespace_scope) - } // namespace Protobuf } // namespace Lib } // namespace Odb + // @@protoc_insertion_point(global_scope) -#include -#endif // GOOGLE_PROTOBUF_INCLUDED_GOOGLE_PROTOBUF_INCLUDED_symbolsdirectory_2eproto +#include "google/protobuf/port_undef.inc" + +#endif // symbolsdirectory_2eproto_2epb_2eh diff --git a/OdbDesignLib/ProtoBuf/via.pb.cc b/OdbDesignLib/ProtoBuf/via.pb.cc index 975b7cfb..b66057e7 100644 --- a/OdbDesignLib/ProtoBuf/via.pb.cc +++ b/OdbDesignLib/ProtoBuf/via.pb.cc @@ -1,180 +1,273 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE // source: via.proto +// Protobuf C++ Version: 5.29.2 #include "via.pb.h" #include - -#include -#include -#include -#include -#include -#include -#include +#include +#include "google/protobuf/io/coded_stream.h" +#include "google/protobuf/generated_message_tctable_impl.h" +#include "google/protobuf/extension_set.h" +#include "google/protobuf/generated_message_util.h" +#include "google/protobuf/wire_format_lite.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) -#include +// Must be included last. +#include "google/protobuf/port_def.inc" PROTOBUF_PRAGMA_INIT_SEG - -namespace _pb = ::PROTOBUF_NAMESPACE_ID; -namespace _pbi = _pb::internal; - +namespace _pb = ::google::protobuf; +namespace _pbi = ::google::protobuf::internal; +namespace _fl = ::google::protobuf::internal::field_layout; namespace Odb { namespace Lib { namespace Protobuf { namespace ProductModel { -PROTOBUF_CONSTEXPR Via::Via( - ::_pbi::ConstantInitialized): _impl_{ - /*decltype(_impl_._has_bits_)*/{} - , /*decltype(_impl_._cached_size_)*/{} - , /*decltype(_impl_.name_)*/{&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}} - , /*decltype(_impl_.boardside_)*/0} {} + +inline constexpr Via::Impl_::Impl_( + ::_pbi::ConstantInitialized) noexcept + : _cached_size_{0}, + name_( + &::google::protobuf::internal::fixed_address_empty_string, + ::_pbi::ConstantInitialized()), + boardside_{static_cast< ::Odb::Lib::Protobuf::BoardSide >(0)} {} + +template +PROTOBUF_CONSTEXPR Via::Via(::_pbi::ConstantInitialized) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : ::google::protobuf::Message(_class_data_.base()), +#else // PROTOBUF_CUSTOM_VTABLE + : ::google::protobuf::Message(), +#endif // PROTOBUF_CUSTOM_VTABLE + _impl_(::_pbi::ConstantInitialized()) { +} struct ViaDefaultTypeInternal { - PROTOBUF_CONSTEXPR ViaDefaultTypeInternal() - : _instance(::_pbi::ConstantInitialized{}) {} + PROTOBUF_CONSTEXPR ViaDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} ~ViaDefaultTypeInternal() {} union { Via _instance; }; }; -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 ViaDefaultTypeInternal _Via_default_instance_; + +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT ODBDESIGN_EXPORT + PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 ViaDefaultTypeInternal _Via_default_instance_; } // namespace ProductModel } // namespace Protobuf } // namespace Lib } // namespace Odb -static ::_pb::Metadata file_level_metadata_via_2eproto[1]; -static constexpr ::_pb::EnumDescriptor const** file_level_enum_descriptors_via_2eproto = nullptr; -static constexpr ::_pb::ServiceDescriptor const** file_level_service_descriptors_via_2eproto = nullptr; - -const uint32_t TableStruct_via_2eproto::offsets[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = { - PROTOBUF_FIELD_OFFSET(::Odb::Lib::Protobuf::ProductModel::Via, _impl_._has_bits_), - PROTOBUF_FIELD_OFFSET(::Odb::Lib::Protobuf::ProductModel::Via, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - ~0u, // no _inlined_string_donated_ - PROTOBUF_FIELD_OFFSET(::Odb::Lib::Protobuf::ProductModel::Via, _impl_.name_), - PROTOBUF_FIELD_OFFSET(::Odb::Lib::Protobuf::ProductModel::Via, _impl_.boardside_), - 0, - 1, -}; -static const ::_pbi::MigrationSchema schemas[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = { - { 0, 8, -1, sizeof(::Odb::Lib::Protobuf::ProductModel::Via)}, +static constexpr const ::_pb::EnumDescriptor** + file_level_enum_descriptors_via_2eproto = nullptr; +static constexpr const ::_pb::ServiceDescriptor** + file_level_service_descriptors_via_2eproto = nullptr; +const ::uint32_t + TableStruct_via_2eproto::offsets[] ABSL_ATTRIBUTE_SECTION_VARIABLE( + protodesc_cold) = { + PROTOBUF_FIELD_OFFSET(::Odb::Lib::Protobuf::ProductModel::Via, _impl_._has_bits_), + PROTOBUF_FIELD_OFFSET(::Odb::Lib::Protobuf::ProductModel::Via, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + ~0u, // no _split_ + ~0u, // no sizeof(Split) + PROTOBUF_FIELD_OFFSET(::Odb::Lib::Protobuf::ProductModel::Via, _impl_.name_), + PROTOBUF_FIELD_OFFSET(::Odb::Lib::Protobuf::ProductModel::Via, _impl_.boardside_), + 0, + 1, }; +static const ::_pbi::MigrationSchema + schemas[] ABSL_ATTRIBUTE_SECTION_VARIABLE(protodesc_cold) = { + {0, 10, -1, sizeof(::Odb::Lib::Protobuf::ProductModel::Via)}, +}; static const ::_pb::Message* const file_default_instances[] = { - &::Odb::Lib::Protobuf::ProductModel::_Via_default_instance_._instance, + &::Odb::Lib::Protobuf::ProductModel::_Via_default_instance_._instance, }; - -const char descriptor_table_protodef_via_2eproto[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = - "\n\tvia.proto\022\035Odb.Lib.Protobuf.ProductMod" - "el\032\013enums.proto\"d\n\003Via\022\021\n\004name\030\001 \001(\tH\000\210\001" - "\001\0223\n\tboardSide\030\002 \001(\0162\033.Odb.Lib.Protobuf." - "BoardSideH\001\210\001\001B\007\n\005_nameB\014\n\n_boardSideb\006p" - "roto3" - ; -static const ::_pbi::DescriptorTable* const descriptor_table_via_2eproto_deps[1] = { - &::descriptor_table_enums_2eproto, +const char descriptor_table_protodef_via_2eproto[] ABSL_ATTRIBUTE_SECTION_VARIABLE( + protodesc_cold) = { + "\n\tvia.proto\022\035Odb.Lib.Protobuf.ProductMod" + "el\032\013enums.proto\"d\n\003Via\022\021\n\004name\030\001 \001(\tH\000\210\001" + "\001\0223\n\tboardSide\030\002 \001(\0162\033.Odb.Lib.Protobuf." + "BoardSideH\001\210\001\001B\007\n\005_nameB\014\n\n_boardSideb\006p" + "roto3" +}; +static const ::_pbi::DescriptorTable* const descriptor_table_via_2eproto_deps[1] = + { + &::descriptor_table_enums_2eproto, }; -static ::_pbi::once_flag descriptor_table_via_2eproto_once; -const ::_pbi::DescriptorTable descriptor_table_via_2eproto = { - false, false, 165, descriptor_table_protodef_via_2eproto, +static ::absl::once_flag descriptor_table_via_2eproto_once; +PROTOBUF_CONSTINIT const ::_pbi::DescriptorTable descriptor_table_via_2eproto = { + false, + false, + 165, + descriptor_table_protodef_via_2eproto, "via.proto", - &descriptor_table_via_2eproto_once, descriptor_table_via_2eproto_deps, 1, 1, - schemas, file_default_instances, TableStruct_via_2eproto::offsets, - file_level_metadata_via_2eproto, file_level_enum_descriptors_via_2eproto, + &descriptor_table_via_2eproto_once, + descriptor_table_via_2eproto_deps, + 1, + 1, + schemas, + file_default_instances, + TableStruct_via_2eproto::offsets, + file_level_enum_descriptors_via_2eproto, file_level_service_descriptors_via_2eproto, }; -PROTOBUF_ATTRIBUTE_WEAK const ::_pbi::DescriptorTable* descriptor_table_via_2eproto_getter() { - return &descriptor_table_via_2eproto; -} - -// Force running AddDescriptors() at dynamic initialization time. -PROTOBUF_ATTRIBUTE_INIT_PRIORITY2 static ::_pbi::AddDescriptorsRunner dynamic_init_dummy_via_2eproto(&descriptor_table_via_2eproto); namespace Odb { namespace Lib { namespace Protobuf { namespace ProductModel { - // =================================================================== class Via::_Internal { public: - using HasBits = decltype(std::declval()._impl_._has_bits_); - static void set_has_name(HasBits* has_bits) { - (*has_bits)[0] |= 1u; - } - static void set_has_boardside(HasBits* has_bits) { - (*has_bits)[0] |= 2u; - } + using HasBits = + decltype(std::declval()._impl_._has_bits_); + static constexpr ::int32_t kHasBitsOffset = + 8 * PROTOBUF_FIELD_OFFSET(Via, _impl_._has_bits_); }; -Via::Via(::PROTOBUF_NAMESPACE_ID::Arena* arena, - bool is_message_owned) - : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned) { - SharedCtor(arena, is_message_owned); +Via::Via(::google::protobuf::Arena* arena) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : ::google::protobuf::Message(arena, _class_data_.base()) { +#else // PROTOBUF_CUSTOM_VTABLE + : ::google::protobuf::Message(arena) { +#endif // PROTOBUF_CUSTOM_VTABLE + SharedCtor(arena); // @@protoc_insertion_point(arena_constructor:Odb.Lib.Protobuf.ProductModel.Via) } -Via::Via(const Via& from) - : ::PROTOBUF_NAMESPACE_ID::Message() { - Via* const _this = this; (void)_this; - new (&_impl_) Impl_{ - decltype(_impl_._has_bits_){from._impl_._has_bits_} - , /*decltype(_impl_._cached_size_)*/{} - , decltype(_impl_.name_){} - , decltype(_impl_.boardside_){}}; +inline PROTOBUF_NDEBUG_INLINE Via::Impl_::Impl_( + ::google::protobuf::internal::InternalVisibility visibility, ::google::protobuf::Arena* arena, + const Impl_& from, const ::Odb::Lib::Protobuf::ProductModel::Via& from_msg) + : _has_bits_{from._has_bits_}, + _cached_size_{0}, + name_(arena, from.name_) {} + +Via::Via( + ::google::protobuf::Arena* arena, + const Via& from) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : ::google::protobuf::Message(arena, _class_data_.base()) { +#else // PROTOBUF_CUSTOM_VTABLE + : ::google::protobuf::Message(arena) { +#endif // PROTOBUF_CUSTOM_VTABLE + Via* const _this = this; + (void)_this; + _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( + from._internal_metadata_); + new (&_impl_) Impl_(internal_visibility(), arena, from._impl_, from); + _impl_.boardside_ = from._impl_.boardside_; - _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); - _impl_.name_.InitDefault(); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - _impl_.name_.Set("", GetArenaForAllocation()); - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (from._internal_has_name()) { - _this->_impl_.name_.Set(from._internal_name(), - _this->GetArenaForAllocation()); - } - _this->_impl_.boardside_ = from._impl_.boardside_; // @@protoc_insertion_point(copy_constructor:Odb.Lib.Protobuf.ProductModel.Via) } - -inline void Via::SharedCtor( - ::_pb::Arena* arena, bool is_message_owned) { - (void)arena; - (void)is_message_owned; - new (&_impl_) Impl_{ - decltype(_impl_._has_bits_){} - , /*decltype(_impl_._cached_size_)*/{} - , decltype(_impl_.name_){} - , decltype(_impl_.boardside_){0} - }; - _impl_.name_.InitDefault(); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - _impl_.name_.Set("", GetArenaForAllocation()); - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING +inline PROTOBUF_NDEBUG_INLINE Via::Impl_::Impl_( + ::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* arena) + : _cached_size_{0}, + name_(arena) {} + +inline void Via::SharedCtor(::_pb::Arena* arena) { + new (&_impl_) Impl_(internal_visibility(), arena); + _impl_.boardside_ = {}; } - Via::~Via() { // @@protoc_insertion_point(destructor:Odb.Lib.Protobuf.ProductModel.Via) - if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) { - (void)arena; - return; - } - SharedDtor(); + SharedDtor(*this); } - -inline void Via::SharedDtor() { - GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); - _impl_.name_.Destroy(); +inline void Via::SharedDtor(MessageLite& self) { + Via& this_ = static_cast(self); + this_._internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); + ABSL_DCHECK(this_.GetArena() == nullptr); + this_._impl_.name_.Destroy(); + this_._impl_.~Impl_(); } -void Via::SetCachedSize(int size) const { - _impl_._cached_size_.Set(size); +inline void* Via::PlacementNew_(const void*, void* mem, + ::google::protobuf::Arena* arena) { + return ::new (mem) Via(arena); +} +constexpr auto Via::InternalNewImpl_() { + return ::google::protobuf::internal::MessageCreator::CopyInit(sizeof(Via), + alignof(Via)); +} +PROTOBUF_CONSTINIT +PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 +const ::google::protobuf::internal::ClassDataFull Via::_class_data_ = { + ::google::protobuf::internal::ClassData{ + &_Via_default_instance_._instance, + &_table_.header, + nullptr, // OnDemandRegisterArenaDtor + nullptr, // IsInitialized + &Via::MergeImpl, + ::google::protobuf::Message::GetNewImpl(), +#if defined(PROTOBUF_CUSTOM_VTABLE) + &Via::SharedDtor, + ::google::protobuf::Message::GetClearImpl(), &Via::ByteSizeLong, + &Via::_InternalSerialize, +#endif // PROTOBUF_CUSTOM_VTABLE + PROTOBUF_FIELD_OFFSET(Via, _impl_._cached_size_), + false, + }, + &Via::kDescriptorMethods, + &descriptor_table_via_2eproto, + nullptr, // tracker +}; +const ::google::protobuf::internal::ClassData* Via::GetClassData() const { + ::google::protobuf::internal::PrefetchToLocalCache(&_class_data_); + ::google::protobuf::internal::PrefetchToLocalCache(_class_data_.tc_table); + return _class_data_.base(); } +PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 +const ::_pbi::TcParseTable<1, 2, 0, 46, 2> Via::_table_ = { + { + PROTOBUF_FIELD_OFFSET(Via, _impl_._has_bits_), + 0, // no _extensions_ + 2, 8, // max_field_number, fast_idx_mask + offsetof(decltype(_table_), field_lookup_table), + 4294967292, // skipmap + offsetof(decltype(_table_), field_entries), + 2, // num_field_entries + 0, // num_aux_entries + offsetof(decltype(_table_), field_names), // no aux_entries + _class_data_.base(), + nullptr, // post_loop_handler + ::_pbi::TcParser::GenericFallback, // fallback + #ifdef PROTOBUF_PREFETCH_PARSE_TABLE + ::_pbi::TcParser::GetTable<::Odb::Lib::Protobuf::ProductModel::Via>(), // to_prefetch + #endif // PROTOBUF_PREFETCH_PARSE_TABLE + }, {{ + // optional .Odb.Lib.Protobuf.BoardSide boardSide = 2; + {::_pbi::TcParser::SingularVarintNoZag1<::uint32_t, offsetof(Via, _impl_.boardside_), 1>(), + {16, 1, 0, PROTOBUF_FIELD_OFFSET(Via, _impl_.boardside_)}}, + // optional string name = 1; + {::_pbi::TcParser::FastUS1, + {10, 0, 0, PROTOBUF_FIELD_OFFSET(Via, _impl_.name_)}}, + }}, {{ + 65535, 65535 + }}, {{ + // optional string name = 1; + {PROTOBUF_FIELD_OFFSET(Via, _impl_.name_), _Internal::kHasBitsOffset + 0, 0, + (0 | ::_fl::kFcOptional | ::_fl::kUtf8String | ::_fl::kRepAString)}, + // optional .Odb.Lib.Protobuf.BoardSide boardSide = 2; + {PROTOBUF_FIELD_OFFSET(Via, _impl_.boardside_), _Internal::kHasBitsOffset + 1, 0, + (0 | ::_fl::kFcOptional | ::_fl::kOpenEnum)}, + }}, + // no aux_entries + {{ + "\41\4\0\0\0\0\0\0" + "Odb.Lib.Protobuf.ProductModel.Via" + "name" + }}, +}; -void Via::Clear() { +PROTOBUF_NOINLINE void Via::Clear() { // @@protoc_insertion_point(message_clear_start:Odb.Lib.Protobuf.ProductModel.Via) - uint32_t cached_has_bits = 0; + ::google::protobuf::internal::TSanWrite(&_impl_); + ::uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; @@ -184,130 +277,87 @@ void Via::Clear() { } _impl_.boardside_ = 0; _impl_._has_bits_.Clear(); - _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); -} - -const char* Via::_InternalParse(const char* ptr, ::_pbi::ParseContext* ctx) { -#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure - _Internal::HasBits has_bits{}; - while (!ctx->Done(&ptr)) { - uint32_t tag; - ptr = ::_pbi::ReadTag(ptr, &tag); - switch (tag >> 3) { - // optional string name = 1; - case 1: - if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 10)) { - auto str = _internal_mutable_name(); - ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); - CHK_(ptr); - CHK_(::_pbi::VerifyUTF8(str, "Odb.Lib.Protobuf.ProductModel.Via.name")); - } else - goto handle_unusual; - continue; - // optional .Odb.Lib.Protobuf.BoardSide boardSide = 2; - case 2: - if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 16)) { - uint64_t val = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); - CHK_(ptr); - _internal_set_boardside(static_cast<::Odb::Lib::Protobuf::BoardSide>(val)); - } else - goto handle_unusual; - continue; - default: - goto handle_unusual; - } // switch - handle_unusual: - if ((tag == 0) || ((tag & 7) == 4)) { - CHK_(ptr); - ctx->SetLastTag(tag); - goto message_done; - } - ptr = UnknownFieldParse( - tag, - _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(), - ptr, ctx); - CHK_(ptr != nullptr); - } // while -message_done: - _impl_._has_bits_.Or(has_bits); - return ptr; -failure: - ptr = nullptr; - goto message_done; -#undef CHK_ + _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); } -uint8_t* Via::_InternalSerialize( - uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { - // @@protoc_insertion_point(serialize_to_array_start:Odb.Lib.Protobuf.ProductModel.Via) - uint32_t cached_has_bits = 0; - (void) cached_has_bits; - - // optional string name = 1; - if (_internal_has_name()) { - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( - this->_internal_name().data(), static_cast(this->_internal_name().length()), - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, - "Odb.Lib.Protobuf.ProductModel.Via.name"); - target = stream->WriteStringMaybeAliased( - 1, this->_internal_name(), target); - } - - // optional .Odb.Lib.Protobuf.BoardSide boardSide = 2; - if (_internal_has_boardside()) { - target = stream->EnsureSpace(target); - target = ::_pbi::WireFormatLite::WriteEnumToArray( - 2, this->_internal_boardside(), target); - } - - if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = ::_pbi::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:Odb.Lib.Protobuf.ProductModel.Via) - return target; -} - -size_t Via::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:Odb.Lib.Protobuf.ProductModel.Via) - size_t total_size = 0; - - uint32_t cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - cached_has_bits = _impl_._has_bits_[0]; - if (cached_has_bits & 0x00000003u) { - // optional string name = 1; - if (cached_has_bits & 0x00000001u) { - total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( - this->_internal_name()); - } - - // optional .Odb.Lib.Protobuf.BoardSide boardSide = 2; - if (cached_has_bits & 0x00000002u) { - total_size += 1 + - ::_pbi::WireFormatLite::EnumSize(this->_internal_boardside()); - } - - } - return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); -} - -const ::PROTOBUF_NAMESPACE_ID::Message::ClassData Via::_class_data_ = { - ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSourceCheck, - Via::MergeImpl -}; -const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*Via::GetClassData() const { return &_class_data_; } - - -void Via::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg) { +#if defined(PROTOBUF_CUSTOM_VTABLE) + ::uint8_t* Via::_InternalSerialize( + const MessageLite& base, ::uint8_t* target, + ::google::protobuf::io::EpsCopyOutputStream* stream) { + const Via& this_ = static_cast(base); +#else // PROTOBUF_CUSTOM_VTABLE + ::uint8_t* Via::_InternalSerialize( + ::uint8_t* target, + ::google::protobuf::io::EpsCopyOutputStream* stream) const { + const Via& this_ = *this; +#endif // PROTOBUF_CUSTOM_VTABLE + // @@protoc_insertion_point(serialize_to_array_start:Odb.Lib.Protobuf.ProductModel.Via) + ::uint32_t cached_has_bits = 0; + (void)cached_has_bits; + + cached_has_bits = this_._impl_._has_bits_[0]; + // optional string name = 1; + if (cached_has_bits & 0x00000001u) { + const std::string& _s = this_._internal_name(); + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + _s.data(), static_cast(_s.length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "Odb.Lib.Protobuf.ProductModel.Via.name"); + target = stream->WriteStringMaybeAliased(1, _s, target); + } + + // optional .Odb.Lib.Protobuf.BoardSide boardSide = 2; + if (cached_has_bits & 0x00000002u) { + target = stream->EnsureSpace(target); + target = ::_pbi::WireFormatLite::WriteEnumToArray( + 2, this_._internal_boardside(), target); + } + + if (PROTOBUF_PREDICT_FALSE(this_._internal_metadata_.have_unknown_fields())) { + target = + ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( + this_._internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); + } + // @@protoc_insertion_point(serialize_to_array_end:Odb.Lib.Protobuf.ProductModel.Via) + return target; + } + +#if defined(PROTOBUF_CUSTOM_VTABLE) + ::size_t Via::ByteSizeLong(const MessageLite& base) { + const Via& this_ = static_cast(base); +#else // PROTOBUF_CUSTOM_VTABLE + ::size_t Via::ByteSizeLong() const { + const Via& this_ = *this; +#endif // PROTOBUF_CUSTOM_VTABLE + // @@protoc_insertion_point(message_byte_size_start:Odb.Lib.Protobuf.ProductModel.Via) + ::size_t total_size = 0; + + ::uint32_t cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void)cached_has_bits; + + ::_pbi::Prefetch5LinesFrom7Lines(&this_); + cached_has_bits = this_._impl_._has_bits_[0]; + if (cached_has_bits & 0x00000003u) { + // optional string name = 1; + if (cached_has_bits & 0x00000001u) { + total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize( + this_._internal_name()); + } + // optional .Odb.Lib.Protobuf.BoardSide boardSide = 2; + if (cached_has_bits & 0x00000002u) { + total_size += 1 + + ::_pbi::WireFormatLite::EnumSize(this_._internal_boardside()); + } + } + return this_.MaybeComputeUnknownFieldsSize(total_size, + &this_._impl_._cached_size_); + } + +void Via::MergeImpl(::google::protobuf::MessageLite& to_msg, const ::google::protobuf::MessageLite& from_msg) { auto* const _this = static_cast(&to_msg); auto& from = static_cast(from_msg); // @@protoc_insertion_point(class_specific_merge_from_start:Odb.Lib.Protobuf.ProductModel.Via) - GOOGLE_DCHECK_NE(&from, _this); - uint32_t cached_has_bits = 0; + ABSL_DCHECK_NE(&from, _this); + ::uint32_t cached_has_bits = 0; (void) cached_has_bits; cached_has_bits = from._impl_._has_bits_[0]; @@ -318,9 +368,9 @@ void Via::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_N if (cached_has_bits & 0x00000002u) { _this->_impl_.boardside_ = from._impl_.boardside_; } - _this->_impl_._has_bits_[0] |= cached_has_bits; } - _this->_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); + _this->_impl_._has_bits_[0] |= cached_has_bits; + _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); } void Via::CopyFrom(const Via& from) { @@ -330,40 +380,32 @@ void Via::CopyFrom(const Via& from) { MergeFrom(from); } -bool Via::IsInitialized() const { - return true; -} -void Via::InternalSwap(Via* other) { +void Via::InternalSwap(Via* PROTOBUF_RESTRICT other) { using std::swap; - auto* lhs_arena = GetArenaForAllocation(); - auto* rhs_arena = other->GetArenaForAllocation(); + auto* arena = GetArena(); + ABSL_DCHECK_EQ(arena, other->GetArena()); _internal_metadata_.InternalSwap(&other->_internal_metadata_); swap(_impl_._has_bits_[0], other->_impl_._has_bits_[0]); - ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( - &_impl_.name_, lhs_arena, - &other->_impl_.name_, rhs_arena - ); + ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.name_, &other->_impl_.name_, arena); swap(_impl_.boardside_, other->_impl_.boardside_); } -::PROTOBUF_NAMESPACE_ID::Metadata Via::GetMetadata() const { - return ::_pbi::AssignDescriptors( - &descriptor_table_via_2eproto_getter, &descriptor_table_via_2eproto_once, - file_level_metadata_via_2eproto[0]); +::google::protobuf::Metadata Via::GetMetadata() const { + return ::google::protobuf::Message::GetMetadataImpl(GetClassData()->full()); } - // @@protoc_insertion_point(namespace_scope) } // namespace ProductModel } // namespace Protobuf } // namespace Lib } // namespace Odb -PROTOBUF_NAMESPACE_OPEN -template<> PROTOBUF_NOINLINE ::Odb::Lib::Protobuf::ProductModel::Via* -Arena::CreateMaybeMessage< ::Odb::Lib::Protobuf::ProductModel::Via >(Arena* arena) { - return Arena::CreateMessageInternal< ::Odb::Lib::Protobuf::ProductModel::Via >(arena); -} -PROTOBUF_NAMESPACE_CLOSE - +namespace google { +namespace protobuf { +} // namespace protobuf +} // namespace google // @@protoc_insertion_point(global_scope) -#include +PROTOBUF_ATTRIBUTE_INIT_PRIORITY2 static ::std::false_type + _static_init2_ PROTOBUF_UNUSED = + (::_pbi::AddDescriptors(&descriptor_table_via_2eproto), + ::std::false_type{}); +#include "google/protobuf/port_undef.inc" diff --git a/OdbDesignLib/ProtoBuf/via.pb.h b/OdbDesignLib/ProtoBuf/via.pb.h index 39d0fc85..bec80e6b 100644 --- a/OdbDesignLib/ProtoBuf/via.pb.h +++ b/OdbDesignLib/ProtoBuf/via.pb.h @@ -1,50 +1,57 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE // source: via.proto +// Protobuf C++ Version: 5.29.2 -#ifndef GOOGLE_PROTOBUF_INCLUDED_via_2eproto -#define GOOGLE_PROTOBUF_INCLUDED_via_2eproto +#ifndef via_2eproto_2epb_2eh +#define via_2eproto_2epb_2eh #include #include - -#include -#if PROTOBUF_VERSION < 3021000 -#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 3021012 < 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. +#include +#include + +#include "google/protobuf/runtime_version.h" +#if PROTOBUF_VERSION != 5029002 +#error "Protobuf C++ gencode is built with an incompatible version of" +#error "Protobuf C++ headers/runtime. See" +#error "https://protobuf.dev/support/cross-version-runtime-guarantee/#cpp" #endif - -#include -#include -#include -#include -#include -#include -#include -#include -#include // IWYU pragma: export -#include // IWYU pragma: export -#include +#include "google/protobuf/io/coded_stream.h" +#include "google/protobuf/arena.h" +#include "google/protobuf/arenastring.h" +#include "google/protobuf/generated_message_tctable_decl.h" +#include "google/protobuf/generated_message_util.h" +#include "google/protobuf/metadata_lite.h" +#include "google/protobuf/generated_message_reflection.h" +#include "google/protobuf/message.h" +#include "google/protobuf/message_lite.h" +#include "google/protobuf/repeated_field.h" // IWYU pragma: export +#include "google/protobuf/extension_set.h" // IWYU pragma: export +#include "google/protobuf/unknown_field_set.h" #include "enums.pb.h" // @@protoc_insertion_point(includes) -#include + +// Must be included last. +#include "google/protobuf/port_def.inc" + #define PROTOBUF_INTERNAL_EXPORT_via_2eproto ODBDESIGN_EXPORT -PROTOBUF_NAMESPACE_OPEN + +namespace google { +namespace protobuf { namespace internal { -class AnyMetadata; +template +::absl::string_view GetAnyMessageName(); } // namespace internal -PROTOBUF_NAMESPACE_CLOSE +} // namespace protobuf +} // namespace google // Internal implementation detail -- do not use these members. struct ODBDESIGN_EXPORT TableStruct_via_2eproto { - static const uint32_t offsets[]; + static const ::uint32_t offsets[]; }; -ODBDESIGN_EXPORT extern const ::PROTOBUF_NAMESPACE_ID::internal::DescriptorTable descriptor_table_via_2eproto; +ODBDESIGN_EXPORT extern const ::google::protobuf::internal::DescriptorTable + descriptor_table_via_2eproto; namespace Odb { namespace Lib { namespace Protobuf { @@ -56,9 +63,11 @@ ODBDESIGN_EXPORT extern ViaDefaultTypeInternal _Via_default_instance_; } // namespace Protobuf } // namespace Lib } // namespace Odb -PROTOBUF_NAMESPACE_OPEN -template<> ODBDESIGN_EXPORT ::Odb::Lib::Protobuf::ProductModel::Via* Arena::CreateMaybeMessage<::Odb::Lib::Protobuf::ProductModel::Via>(Arena*); -PROTOBUF_NAMESPACE_CLOSE +namespace google { +namespace protobuf { +} // namespace protobuf +} // namespace google + namespace Odb { namespace Lib { namespace Protobuf { @@ -66,30 +75,36 @@ namespace ProductModel { // =================================================================== -class ODBDESIGN_EXPORT Via final : - public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:Odb.Lib.Protobuf.ProductModel.Via) */ { + +// ------------------------------------------------------------------- + +class ODBDESIGN_EXPORT Via final : public ::google::protobuf::Message +/* @@protoc_insertion_point(class_definition:Odb.Lib.Protobuf.ProductModel.Via) */ { public: inline Via() : Via(nullptr) {} - ~Via() override; - explicit PROTOBUF_CONSTEXPR Via(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); + ~Via() PROTOBUF_FINAL; - Via(const Via& from); - Via(Via&& from) noexcept - : Via() { - *this = ::std::move(from); +#if defined(PROTOBUF_CUSTOM_VTABLE) + void operator delete(Via* msg, std::destroying_delete_t) { + SharedDtor(*msg); + ::google::protobuf::internal::SizedDelete(msg, sizeof(Via)); } +#endif + + template + explicit PROTOBUF_CONSTEXPR Via( + ::google::protobuf::internal::ConstantInitialized); + inline Via(const Via& from) : Via(nullptr, from) {} + inline Via(Via&& from) noexcept + : Via(nullptr, std::move(from)) {} inline Via& operator=(const Via& from) { CopyFrom(from); return *this; } inline Via& operator=(Via&& from) noexcept { if (this == &from) return *this; - if (GetOwningArena() == from.GetOwningArena() - #ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetOwningArena() != nullptr - #endif // !PROTOBUF_FORCE_COPY_IN_MOVE - ) { + if (::google::protobuf::internal::CanMoveWithInternalSwap(GetArena(), from.GetArena())) { InternalSwap(&from); } else { CopyFrom(from); @@ -97,13 +112,22 @@ class ODBDESIGN_EXPORT Via final : return *this; } - static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { + inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const + ABSL_ATTRIBUTE_LIFETIME_BOUND { + return _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance); + } + inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() + ABSL_ATTRIBUTE_LIFETIME_BOUND { + return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); + } + + static const ::google::protobuf::Descriptor* descriptor() { return GetDescriptor(); } - static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { + static const ::google::protobuf::Descriptor* GetDescriptor() { return default_instance().GetMetadata().descriptor; } - static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { + static const ::google::protobuf::Reflection* GetReflection() { return default_instance().GetMetadata().reflection; } static const Via& default_instance() { @@ -111,251 +135,285 @@ class ODBDESIGN_EXPORT Via final : } static inline const Via* internal_default_instance() { return reinterpret_cast( - &_Via_default_instance_); - } - static constexpr int kIndexInFileMessages = - 0; - - friend void swap(Via& a, Via& b) { - a.Swap(&b); + &_Via_default_instance_); } + static constexpr int kIndexInFileMessages = 0; + friend void swap(Via& a, Via& b) { a.Swap(&b); } inline void Swap(Via* other) { if (other == this) return; - #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetOwningArena() != nullptr && - GetOwningArena() == other->GetOwningArena()) { - #else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetOwningArena() == other->GetOwningArena()) { - #endif // !PROTOBUF_FORCE_COPY_IN_SWAP + if (::google::protobuf::internal::CanUseInternalSwap(GetArena(), other->GetArena())) { InternalSwap(other); } else { - ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); + ::google::protobuf::internal::GenericSwap(this, other); } } void UnsafeArenaSwap(Via* other) { if (other == this) return; - GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); + ABSL_DCHECK(GetArena() == other->GetArena()); InternalSwap(other); } // implements Message ---------------------------------------------- - Via* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); + Via* New(::google::protobuf::Arena* arena = nullptr) const { + return ::google::protobuf::Message::DefaultConstruct(arena); } - using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; + using ::google::protobuf::Message::CopyFrom; void CopyFrom(const Via& from); - using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; - void MergeFrom( const Via& from) { - Via::MergeImpl(*this, from); - } + using ::google::protobuf::Message::MergeFrom; + void MergeFrom(const Via& from) { Via::MergeImpl(*this, from); } + private: - static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg); + static void MergeImpl( + ::google::protobuf::MessageLite& to_msg, + const ::google::protobuf::MessageLite& from_msg); + public: - PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; - bool IsInitialized() const final; + bool IsInitialized() const { + return true; + } + ABSL_ATTRIBUTE_REINITIALIZES void Clear() PROTOBUF_FINAL; + #if defined(PROTOBUF_CUSTOM_VTABLE) + private: + static ::size_t ByteSizeLong(const ::google::protobuf::MessageLite& msg); + static ::uint8_t* _InternalSerialize( + const MessageLite& msg, ::uint8_t* target, + ::google::protobuf::io::EpsCopyOutputStream* stream); - size_t ByteSizeLong() const final; - const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final; - uint8_t* _InternalSerialize( - uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const final { return _impl_._cached_size_.Get(); } + public: + ::size_t ByteSizeLong() const { return ByteSizeLong(*this); } + ::uint8_t* _InternalSerialize( + ::uint8_t* target, + ::google::protobuf::io::EpsCopyOutputStream* stream) const { + return _InternalSerialize(*this, target, stream); + } + #else // PROTOBUF_CUSTOM_VTABLE + ::size_t ByteSizeLong() const final; + ::uint8_t* _InternalSerialize( + ::uint8_t* target, + ::google::protobuf::io::EpsCopyOutputStream* stream) const final; + #endif // PROTOBUF_CUSTOM_VTABLE + int GetCachedSize() const { return _impl_._cached_size_.Get(); } private: - void SharedCtor(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned); - void SharedDtor(); - void SetCachedSize(int size) const final; + void SharedCtor(::google::protobuf::Arena* arena); + static void SharedDtor(MessageLite& self); void InternalSwap(Via* other); - - private: - friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; - static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { - return "Odb.Lib.Protobuf.ProductModel.Via"; + private: + template + friend ::absl::string_view( + ::google::protobuf::internal::GetAnyMessageName)(); + static ::absl::string_view FullMessageName() { return "Odb.Lib.Protobuf.ProductModel.Via"; } + + protected: + explicit Via(::google::protobuf::Arena* arena); + Via(::google::protobuf::Arena* arena, const Via& from); + Via(::google::protobuf::Arena* arena, Via&& from) noexcept + : Via(arena) { + *this = ::std::move(from); } - protected: - explicit Via(::PROTOBUF_NAMESPACE_ID::Arena* arena, - bool is_message_owned = false); - public: - - static const ClassData _class_data_; - const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final; - - ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; + const ::google::protobuf::internal::ClassData* GetClassData() const PROTOBUF_FINAL; + static void* PlacementNew_(const void*, void* mem, + ::google::protobuf::Arena* arena); + static constexpr auto InternalNewImpl_(); + static const ::google::protobuf::internal::ClassDataFull _class_data_; + public: + ::google::protobuf::Metadata GetMetadata() const; // nested types ---------------------------------------------------- // accessors ------------------------------------------------------- - enum : int { kNameFieldNumber = 1, kBoardSideFieldNumber = 2, }; // optional string name = 1; bool has_name() const; - private: - bool _internal_has_name() const; - public: - void clear_name(); + void clear_name() ; const std::string& name() const; - template - void set_name(ArgT0&& arg0, ArgT... args); + template + void set_name(Arg_&& arg, Args_... args); std::string* mutable_name(); PROTOBUF_NODISCARD std::string* release_name(); - void set_allocated_name(std::string* name); + void set_allocated_name(std::string* value); + private: const std::string& _internal_name() const; - inline PROTOBUF_ALWAYS_INLINE void _internal_set_name(const std::string& value); + inline PROTOBUF_ALWAYS_INLINE void _internal_set_name( + const std::string& value); std::string* _internal_mutable_name(); - public: + public: // optional .Odb.Lib.Protobuf.BoardSide boardSide = 2; bool has_boardside() const; - private: - bool _internal_has_boardside() const; - public: - void clear_boardside(); + void clear_boardside() ; ::Odb::Lib::Protobuf::BoardSide boardside() const; void set_boardside(::Odb::Lib::Protobuf::BoardSide value); + private: ::Odb::Lib::Protobuf::BoardSide _internal_boardside() const; void _internal_set_boardside(::Odb::Lib::Protobuf::BoardSide value); - public: + public: // @@protoc_insertion_point(class_scope:Odb.Lib.Protobuf.ProductModel.Via) private: class _Internal; - - template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; - typedef void InternalArenaConstructable_; - typedef void DestructorSkippable_; + friend class ::google::protobuf::internal::TcParser; + static const ::google::protobuf::internal::TcParseTable< + 1, 2, 0, + 46, 2> + _table_; + + friend class ::google::protobuf::MessageLite; + friend class ::google::protobuf::Arena; + template + friend class ::google::protobuf::Arena::InternalHelper; + using InternalArenaConstructable_ = void; + using DestructorSkippable_ = void; struct Impl_ { - ::PROTOBUF_NAMESPACE_ID::internal::HasBits<1> _has_bits_; - mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; - ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr name_; + inline explicit constexpr Impl_( + ::google::protobuf::internal::ConstantInitialized) noexcept; + inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* arena); + inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* arena, const Impl_& from, + const Via& from_msg); + ::google::protobuf::internal::HasBits<1> _has_bits_; + ::google::protobuf::internal::CachedSize _cached_size_; + ::google::protobuf::internal::ArenaStringPtr name_; int boardside_; + PROTOBUF_TSAN_DECLARE_MEMBER }; union { Impl_ _impl_; }; friend struct ::TableStruct_via_2eproto; }; + // =================================================================== + + // =================================================================== + #ifdef __GNUC__ - #pragma GCC diagnostic push - #pragma GCC diagnostic ignored "-Wstrict-aliasing" +#pragma GCC diagnostic push +#pragma GCC diagnostic ignored "-Wstrict-aliasing" #endif // __GNUC__ +// ------------------------------------------------------------------- + // Via // optional string name = 1; -inline bool Via::_internal_has_name() const { +inline bool Via::has_name() const { bool value = (_impl_._has_bits_[0] & 0x00000001u) != 0; return value; } -inline bool Via::has_name() const { - return _internal_has_name(); -} inline void Via::clear_name() { + ::google::protobuf::internal::TSanWrite(&_impl_); _impl_.name_.ClearToEmpty(); _impl_._has_bits_[0] &= ~0x00000001u; } -inline const std::string& Via::name() const { +inline const std::string& Via::name() const + ABSL_ATTRIBUTE_LIFETIME_BOUND { // @@protoc_insertion_point(field_get:Odb.Lib.Protobuf.ProductModel.Via.name) return _internal_name(); } -template -inline PROTOBUF_ALWAYS_INLINE -void Via::set_name(ArgT0&& arg0, ArgT... args) { - _impl_._has_bits_[0] |= 0x00000001u; - _impl_.name_.Set(static_cast(arg0), args..., GetArenaForAllocation()); +template +inline PROTOBUF_ALWAYS_INLINE void Via::set_name(Arg_&& arg, + Args_... args) { + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_._has_bits_[0] |= 0x00000001u; + _impl_.name_.Set(static_cast(arg), args..., GetArena()); // @@protoc_insertion_point(field_set:Odb.Lib.Protobuf.ProductModel.Via.name) } -inline std::string* Via::mutable_name() { +inline std::string* Via::mutable_name() ABSL_ATTRIBUTE_LIFETIME_BOUND { std::string* _s = _internal_mutable_name(); // @@protoc_insertion_point(field_mutable:Odb.Lib.Protobuf.ProductModel.Via.name) return _s; } inline const std::string& Via::_internal_name() const { + ::google::protobuf::internal::TSanRead(&_impl_); return _impl_.name_.Get(); } inline void Via::_internal_set_name(const std::string& value) { + ::google::protobuf::internal::TSanWrite(&_impl_); _impl_._has_bits_[0] |= 0x00000001u; - _impl_.name_.Set(value, GetArenaForAllocation()); + _impl_.name_.Set(value, GetArena()); } inline std::string* Via::_internal_mutable_name() { + ::google::protobuf::internal::TSanWrite(&_impl_); _impl_._has_bits_[0] |= 0x00000001u; - return _impl_.name_.Mutable(GetArenaForAllocation()); + return _impl_.name_.Mutable( GetArena()); } inline std::string* Via::release_name() { + ::google::protobuf::internal::TSanWrite(&_impl_); // @@protoc_insertion_point(field_release:Odb.Lib.Protobuf.ProductModel.Via.name) - if (!_internal_has_name()) { + if ((_impl_._has_bits_[0] & 0x00000001u) == 0) { return nullptr; } _impl_._has_bits_[0] &= ~0x00000001u; - auto* p = _impl_.name_.Release(); -#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (_impl_.name_.IsDefault()) { - _impl_.name_.Set("", GetArenaForAllocation()); + auto* released = _impl_.name_.Release(); + if (::google::protobuf::internal::DebugHardenForceCopyDefaultString()) { + _impl_.name_.Set("", GetArena()); } -#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING - return p; + return released; } -inline void Via::set_allocated_name(std::string* name) { - if (name != nullptr) { +inline void Via::set_allocated_name(std::string* value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + if (value != nullptr) { _impl_._has_bits_[0] |= 0x00000001u; } else { _impl_._has_bits_[0] &= ~0x00000001u; } - _impl_.name_.SetAllocated(name, GetArenaForAllocation()); -#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (_impl_.name_.IsDefault()) { - _impl_.name_.Set("", GetArenaForAllocation()); + _impl_.name_.SetAllocated(value, GetArena()); + if (::google::protobuf::internal::DebugHardenForceCopyDefaultString() && _impl_.name_.IsDefault()) { + _impl_.name_.Set("", GetArena()); } -#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING // @@protoc_insertion_point(field_set_allocated:Odb.Lib.Protobuf.ProductModel.Via.name) } // optional .Odb.Lib.Protobuf.BoardSide boardSide = 2; -inline bool Via::_internal_has_boardside() const { +inline bool Via::has_boardside() const { bool value = (_impl_._has_bits_[0] & 0x00000002u) != 0; return value; } -inline bool Via::has_boardside() const { - return _internal_has_boardside(); -} inline void Via::clear_boardside() { + ::google::protobuf::internal::TSanWrite(&_impl_); _impl_.boardside_ = 0; _impl_._has_bits_[0] &= ~0x00000002u; } -inline ::Odb::Lib::Protobuf::BoardSide Via::_internal_boardside() const { - return static_cast< ::Odb::Lib::Protobuf::BoardSide >(_impl_.boardside_); -} inline ::Odb::Lib::Protobuf::BoardSide Via::boardside() const { // @@protoc_insertion_point(field_get:Odb.Lib.Protobuf.ProductModel.Via.boardSide) return _internal_boardside(); } -inline void Via::_internal_set_boardside(::Odb::Lib::Protobuf::BoardSide value) { - _impl_._has_bits_[0] |= 0x00000002u; - _impl_.boardside_ = value; -} inline void Via::set_boardside(::Odb::Lib::Protobuf::BoardSide value) { _internal_set_boardside(value); + _impl_._has_bits_[0] |= 0x00000002u; // @@protoc_insertion_point(field_set:Odb.Lib.Protobuf.ProductModel.Via.boardSide) } +inline ::Odb::Lib::Protobuf::BoardSide Via::_internal_boardside() const { + ::google::protobuf::internal::TSanRead(&_impl_); + return static_cast<::Odb::Lib::Protobuf::BoardSide>(_impl_.boardside_); +} +inline void Via::_internal_set_boardside(::Odb::Lib::Protobuf::BoardSide value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.boardside_ = value; +} #ifdef __GNUC__ - #pragma GCC diagnostic pop +#pragma GCC diagnostic pop #endif // __GNUC__ // @@protoc_insertion_point(namespace_scope) - } // namespace ProductModel } // namespace Protobuf } // namespace Lib } // namespace Odb + // @@protoc_insertion_point(global_scope) -#include -#endif // GOOGLE_PROTOBUF_INCLUDED_GOOGLE_PROTOBUF_INCLUDED_via_2eproto +#include "google/protobuf/port_undef.inc" + +#endif // via_2eproto_2epb_2eh From c5476ec3fa8aff2240b50715a988d8a1d6082994 Mon Sep 17 00:00:00 2001 From: Nathan Miller Date: Sat, 18 Jan 2025 14:46:44 -0800 Subject: [PATCH 165/168] remove Crow's SSL/HTTPS functionality --- OdbDesignLib/App/OdbServerAppBase.cpp | 55 +++++++++++++-------------- 1 file changed, 27 insertions(+), 28 deletions(-) diff --git a/OdbDesignLib/App/OdbServerAppBase.cpp b/OdbDesignLib/App/OdbServerAppBase.cpp index af9f6007..b5047f48 100644 --- a/OdbDesignLib/App/OdbServerAppBase.cpp +++ b/OdbDesignLib/App/OdbServerAppBase.cpp @@ -1,14 +1,13 @@ #include "OdbServerAppBase.h" -#include "OdbServerAppBase.h" -#include "Logger.h" +//#include "Logger.h" #include "RequestAuthenticationBase.h" #include "crow_win.h" -#include -#include +//#include +//#include #include "OdbAppBase.h" #include #include -#include +//#include using namespace Utils; using namespace std::filesystem; @@ -55,29 +54,29 @@ namespace Odb::Lib::App // enable HTTP compression m_crowApp.use_compression(crow::compression::algorithm::GZIP); - try - { - if (args().useHttps()) - { - path sslDirPath(args().sslDir()); - if (!exists(sslDirPath) || !is_directory(sslDirPath)) - { - logerror("SSL was specified but the directory does not exist, exiting..."); - return ExitCode::FailedInitSslDirDoesNotExist; - } - - // enable SSL/HTTPS - m_crowApp.ssl_file((sslDirPath / SSL_CERT_FILE).string(), - (sslDirPath / SSL_KEY_FILE).string()); - } - } - catch (boost::wrapexcept& e) - { - // log the error - logexception(e); - logerror("SSL was specified but it failed to initialize, exiting..."); - return ExitCode::FailedInitSsl; - } + //try + //{ + // if (args().useHttps()) + // { + // path sslDirPath(args().sslDir()); + // if (!exists(sslDirPath) || !is_directory(sslDirPath)) + // { + // logerror("SSL was specified but the directory does not exist, exiting..."); + // return ExitCode::FailedInitSslDirDoesNotExist; + // } + + // // enable SSL/HTTPS + // m_crowApp.ssl_file((sslDirPath / SSL_CERT_FILE).string(), + // (sslDirPath / SSL_KEY_FILE).string()); + // } + //} + //catch (boost::wrapexcept& e) + //{ + // // log the error + // logexception(e); + // logerror("SSL was specified but it failed to initialize, exiting..."); + // return ExitCode::FailedInitSsl; + //} // let subclasses add controller types add_controllers(); From 36526a578b04ea7677d384446e08497f3aa08f2c Mon Sep 17 00:00:00 2001 From: Nathan Miller Date: Sat, 18 Jan 2025 14:46:56 -0800 Subject: [PATCH 166/168] add headers --- Utils/crow_win.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Utils/crow_win.h b/Utils/crow_win.h index 62b131fc..7fca5ab4 100644 --- a/Utils/crow_win.h +++ b/Utils/crow_win.h @@ -10,6 +10,8 @@ #include "crow/app.h" #include "crow/http_request.h" #include "crow/http_response.h" +#include +#include using CrowApp = crow::Crow; \ No newline at end of file From 9e6cb27880625cdd45a9ab6b2f3efb0647f82647 Mon Sep 17 00:00:00 2001 From: Nathan Miller Date: Sat, 18 Jan 2025 14:47:56 -0800 Subject: [PATCH 167/168] chnage StringPiece use to absl::string_view --- OdbDesignLib/IProtoBuffable.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/OdbDesignLib/IProtoBuffable.h b/OdbDesignLib/IProtoBuffable.h index 58d4e315..c0297359 100644 --- a/OdbDesignLib/IProtoBuffable.h +++ b/OdbDesignLib/IProtoBuffable.h @@ -7,6 +7,7 @@ #include "odbdesign_export.h" #include #include +#include namespace Odb::Lib @@ -89,12 +90,11 @@ namespace Odb::Lib template inline void IProtoBuffable::from_json(const std::string& json) { - google::protobuf::StringPiece sp_json(json); // use default options google::protobuf::util::JsonOptions jsonOptions; auto pMessage = std::unique_ptr(); - auto status = google::protobuf::util::JsonStringToMessage(sp_json, pMessage.get()); + auto status = google::protobuf::util::JsonStringToMessage(absl::string_view(json), pMessage.get()); if (!status.ok()) return; from_protobuf(*pMessage); } From 8a3df45b38be6993c385bd49365b1753b0002954 Mon Sep 17 00:00:00 2001 From: Nathan Miller Date: Sat, 18 Jan 2025 14:51:38 -0800 Subject: [PATCH 168/168] remove grpc-c++ package from CMake --- OdbDesignLib/CMakeLists.txt | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/OdbDesignLib/CMakeLists.txt b/OdbDesignLib/CMakeLists.txt index d3b53176..7c4472fb 100644 --- a/OdbDesignLib/CMakeLists.txt +++ b/OdbDesignLib/CMakeLists.txt @@ -85,9 +85,9 @@ target_link_libraries(OdbDesign PUBLIC protobuf::libprotobuf) # add the generated Protobuf C++ files to the target #target_sources(OdbDesign PRIVATE ${PROTO_SRCS} ${PROTO_HDRS}) -# gRPC -find_package(gRPC CONFIG REQUIRED) -target_link_libraries(OdbDesign PUBLIC gRPC::grpc++) +# # gRPC +# find_package(gRPC CONFIG REQUIRED) +# target_link_libraries(OdbDesign PUBLIC gRPC::grpc++) # workaround to remove error: "C++ command-line error: invalid macro definition: _CROW_ICD-NOTFOUND" # (see https://github.com/CrowCpp/Crow/issues/661#issuecomment-1702544225)