LCOV - code coverage report
Current view: top level - out/build/linux-debug/OdbDesignLib - part.pb.cc (source / functions) Coverage Total Hit
Test: OdbDesign Test Coverage Lines: 88.9 % 99 88
Test Date: 2026-11-21 03:51:50 Functions: 88.9 % 18 16
Legend: Lines: hit not hit

            Line data    Source code
       1              : // Generated by the protocol buffer compiler.  DO NOT EDIT!
       2              : // NO CHECKED-IN PROTOBUF GENCODE
       3              : // source: part.proto
       4              : // Protobuf C++ Version: 6.33.4
       5              : 
       6              : #include "part.pb.h"
       7              : 
       8              : #include <algorithm>
       9              : #include <type_traits>
      10              : #include "google/protobuf/io/coded_stream.h"
      11              : #include "google/protobuf/generated_message_tctable_impl.h"
      12              : #include "google/protobuf/extension_set.h"
      13              : #include "google/protobuf/generated_message_util.h"
      14              : #include "google/protobuf/wire_format_lite.h"
      15              : #include "google/protobuf/descriptor.h"
      16              : #include "google/protobuf/generated_message_reflection.h"
      17              : #include "google/protobuf/reflection_ops.h"
      18              : #include "google/protobuf/wire_format.h"
      19              : // @@protoc_insertion_point(includes)
      20              : 
      21              : // Must be included last.
      22              : #include "google/protobuf/port_def.inc"
      23              : PROTOBUF_PRAGMA_INIT_SEG
      24              : namespace _pb = ::google::protobuf;
      25              : namespace _pbi = ::google::protobuf::internal;
      26              : namespace _fl = ::google::protobuf::internal::field_layout;
      27              : namespace Odb {
      28              : namespace Lib {
      29              : namespace Protobuf {
      30              : namespace ProductModel {
      31              : 
      32              : inline constexpr Part::Impl_::Impl_(
      33              :     ::_pbi::ConstantInitialized) noexcept
      34              :       : _cached_size_{0},
      35              :         name_(
      36              :             &::google::protobuf::internal::fixed_address_empty_string,
      37              :             ::_pbi::ConstantInitialized()) {}
      38              : 
      39              : template <typename>
      40              : PROTOBUF_CONSTEXPR Part::Part(::_pbi::ConstantInitialized)
      41              : #if defined(PROTOBUF_CUSTOM_VTABLE)
      42              :     : ::google::protobuf::Message(Part_class_data_.base()),
      43              : #else   // PROTOBUF_CUSTOM_VTABLE
      44              :     : ::google::protobuf::Message(),
      45              : #endif  // PROTOBUF_CUSTOM_VTABLE
      46              :       _impl_(::_pbi::ConstantInitialized()) {
      47              : }
      48              : struct PartDefaultTypeInternal {
      49              :   PROTOBUF_CONSTEXPR PartDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {}
      50          319 :   ~PartDefaultTypeInternal() {}
      51              :   union {
      52              :     Part _instance;
      53              :   };
      54              : };
      55              : 
      56              : PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT ODBDESIGN_EXPORT
      57              :     PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 PartDefaultTypeInternal _Part_default_instance_;
      58              : }  // namespace ProductModel
      59              : }  // namespace Protobuf
      60              : }  // namespace Lib
      61              : }  // namespace Odb
      62              : static constexpr const ::_pb::EnumDescriptor* PROTOBUF_NONNULL* PROTOBUF_NULLABLE
      63              :     file_level_enum_descriptors_part_2eproto = nullptr;
      64              : static constexpr const ::_pb::ServiceDescriptor* PROTOBUF_NONNULL* PROTOBUF_NULLABLE
      65              :     file_level_service_descriptors_part_2eproto = nullptr;
      66              : const ::uint32_t
      67              :     TableStruct_part_2eproto::offsets[] ABSL_ATTRIBUTE_SECTION_VARIABLE(
      68              :         protodesc_cold) = {
      69              :         0x081, // bitmap
      70              :         PROTOBUF_FIELD_OFFSET(::Odb::Lib::Protobuf::ProductModel::Part, _impl_._has_bits_),
      71              :         4, // hasbit index offset
      72              :         PROTOBUF_FIELD_OFFSET(::Odb::Lib::Protobuf::ProductModel::Part, _impl_.name_),
      73              :         0,
      74              : };
      75              : 
      76              : static const ::_pbi::MigrationSchema
      77              :     schemas[] ABSL_ATTRIBUTE_SECTION_VARIABLE(protodesc_cold) = {
      78              :         {0, sizeof(::Odb::Lib::Protobuf::ProductModel::Part)},
      79              : };
      80              : static const ::_pb::Message* PROTOBUF_NONNULL const file_default_instances[] = {
      81              :     &::Odb::Lib::Protobuf::ProductModel::_Part_default_instance_._instance,
      82              : };
      83              : const char descriptor_table_protodef_part_2eproto[] ABSL_ATTRIBUTE_SECTION_VARIABLE(
      84              :     protodesc_cold) = {
      85              :     "\n\npart.proto\022\035Odb.Lib.Protobuf.ProductMo"
      86              :     "del\"\"\n\004Part\022\021\n\004name\030\001 \001(\tH\000\210\001\001B\007\n\005_nameB"
      87              :     "\003\370\001\001b\006proto3"
      88              : };
      89              : static ::absl::once_flag descriptor_table_part_2eproto_once;
      90              : PROTOBUF_CONSTINIT const ::_pbi::DescriptorTable descriptor_table_part_2eproto = {
      91              :     false,
      92              :     false,
      93              :     92,
      94              :     descriptor_table_protodef_part_2eproto,
      95              :     "part.proto",
      96              :     &descriptor_table_part_2eproto_once,
      97              :     nullptr,
      98              :     0,
      99              :     1,
     100              :     schemas,
     101              :     file_default_instances,
     102              :     TableStruct_part_2eproto::offsets,
     103              :     file_level_enum_descriptors_part_2eproto,
     104              :     file_level_service_descriptors_part_2eproto,
     105              : };
     106              : namespace Odb {
     107              : namespace Lib {
     108              : namespace Protobuf {
     109              : namespace ProductModel {
     110              : // ===================================================================
     111              : 
     112              : class Part::_Internal {
     113              :  public:
     114              :   using HasBits =
     115              :       decltype(::std::declval<Part>()._impl_._has_bits_);
     116              :   static constexpr ::int32_t kHasBitsOffset =
     117              :       8 * PROTOBUF_FIELD_OFFSET(Part, _impl_._has_bits_);
     118              : };
     119              : 
     120       179132 : Part::Part(::google::protobuf::Arena* PROTOBUF_NULLABLE arena)
     121              : #if defined(PROTOBUF_CUSTOM_VTABLE)
     122              :     : ::google::protobuf::Message(arena, Part_class_data_.base()) {
     123              : #else   // PROTOBUF_CUSTOM_VTABLE
     124       179132 :     : ::google::protobuf::Message(arena) {
     125              : #endif  // PROTOBUF_CUSTOM_VTABLE
     126       179132 :   SharedCtor(arena);
     127              :   // @@protoc_insertion_point(arena_constructor:Odb.Lib.Protobuf.ProductModel.Part)
     128       179132 : }
     129       252093 : PROTOBUF_NDEBUG_INLINE Part::Impl_::Impl_(
     130              :     [[maybe_unused]] ::google::protobuf::internal::InternalVisibility visibility,
     131              :     [[maybe_unused]] ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const Impl_& from,
     132       252093 :     [[maybe_unused]] const ::Odb::Lib::Protobuf::ProductModel::Part& from_msg)
     133       252093 :       : _has_bits_{from._has_bits_},
     134       252093 :         _cached_size_{0},
     135       252093 :         name_(arena, from.name_) {}
     136              : 
     137       252093 : Part::Part(
     138              :     ::google::protobuf::Arena* PROTOBUF_NULLABLE arena,
     139       252093 :     const Part& from)
     140              : #if defined(PROTOBUF_CUSTOM_VTABLE)
     141              :     : ::google::protobuf::Message(arena, Part_class_data_.base()) {
     142              : #else   // PROTOBUF_CUSTOM_VTABLE
     143       252093 :     : ::google::protobuf::Message(arena) {
     144              : #endif  // PROTOBUF_CUSTOM_VTABLE
     145       252093 :   Part* const _this = this;
     146              :   (void)_this;
     147       252093 :   _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(
     148       252093 :       from._internal_metadata_);
     149       252093 :   new (&_impl_) Impl_(internal_visibility(), arena, from._impl_, from);
     150              : 
     151              :   // @@protoc_insertion_point(copy_constructor:Odb.Lib.Protobuf.ProductModel.Part)
     152       252093 : }
     153       179132 : PROTOBUF_NDEBUG_INLINE Part::Impl_::Impl_(
     154              :     [[maybe_unused]] ::google::protobuf::internal::InternalVisibility visibility,
     155       179132 :     [[maybe_unused]] ::google::protobuf::Arena* PROTOBUF_NULLABLE arena)
     156       179132 :       : _cached_size_{0},
     157       358264 :         name_(arena) {}
     158              : 
     159       179132 : inline void Part::SharedCtor(::_pb::Arena* PROTOBUF_NULLABLE arena) {
     160       179132 :   new (&_impl_) Impl_(internal_visibility(), arena);
     161       179132 : }
     162       860124 : Part::~Part() {
     163              :   // @@protoc_insertion_point(destructor:Odb.Lib.Protobuf.ProductModel.Part)
     164       431225 :   SharedDtor(*this);
     165       860124 : }
     166       431225 : inline void Part::SharedDtor(MessageLite& self) {
     167       431225 :   Part& this_ = static_cast<Part&>(self);
     168              :   if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) {
     169       431225 :     this_.CheckHasBitConsistency();
     170              :   }
     171       431225 :   this_._internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>();
     172       431225 :   ABSL_DCHECK(this_.GetArena() == nullptr);
     173       431225 :   this_._impl_.name_.Destroy();
     174       431225 :   this_._impl_.~Impl_();
     175       431225 : }
     176              : 
     177        16393 : inline void* PROTOBUF_NONNULL Part::PlacementNew_(
     178              :     const void* PROTOBUF_NONNULL, void* PROTOBUF_NONNULL mem,
     179              :     ::google::protobuf::Arena* PROTOBUF_NULLABLE arena) {
     180        16393 :   return ::new (mem) Part(arena);
     181              : }
     182              : constexpr auto Part::InternalNewImpl_() {
     183              :   return ::google::protobuf::internal::MessageCreator::CopyInit(sizeof(Part),
     184              :                                             alignof(Part));
     185              : }
     186              : constexpr auto Part::InternalGenerateClassData_() {
     187              :   return ::google::protobuf::internal::ClassDataFull{
     188              :       ::google::protobuf::internal::ClassData{
     189              :           &_Part_default_instance_._instance,
     190              :           &_table_.header,
     191              :           nullptr,  // OnDemandRegisterArenaDtor
     192              :           nullptr,  // IsInitialized
     193              :           &Part::MergeImpl,
     194              :           ::google::protobuf::Message::GetNewImpl<Part>(),
     195              : #if defined(PROTOBUF_CUSTOM_VTABLE)
     196              :           &Part::SharedDtor,
     197              :           ::google::protobuf::Message::GetClearImpl<Part>(), &Part::ByteSizeLong,
     198              :               &Part::_InternalSerialize,
     199              : #endif  // PROTOBUF_CUSTOM_VTABLE
     200              :           PROTOBUF_FIELD_OFFSET(Part, _impl_._cached_size_),
     201              :           false,
     202              :       },
     203              :       &Part::kDescriptorMethods,
     204              :       &descriptor_table_part_2eproto,
     205              :       nullptr,  // tracker
     206              :   };
     207              : }
     208              : 
     209              : PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 const
     210              :     ::google::protobuf::internal::ClassDataFull Part_class_data_ =
     211              :         Part::InternalGenerateClassData_();
     212              : 
     213              : PROTOBUF_ATTRIBUTE_WEAK const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL
     214       828556 : Part::GetClassData() const {
     215       828556 :   ::google::protobuf::internal::PrefetchToLocalCache(&Part_class_data_);
     216       828556 :   ::google::protobuf::internal::PrefetchToLocalCache(Part_class_data_.tc_table);
     217       828556 :   return Part_class_data_.base();
     218              : }
     219              : PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1
     220              : const ::_pbi::TcParseTable<0, 1, 0, 47, 2>
     221              : Part::_table_ = {
     222              :   {
     223              :     PROTOBUF_FIELD_OFFSET(Part, _impl_._has_bits_),
     224              :     0, // no _extensions_
     225              :     1, 0,  // max_field_number, fast_idx_mask
     226              :     offsetof(decltype(_table_), field_lookup_table),
     227              :     4294967294,  // skipmap
     228              :     offsetof(decltype(_table_), field_entries),
     229              :     1,  // num_field_entries
     230              :     0,  // num_aux_entries
     231              :     offsetof(decltype(_table_), field_names),  // no aux_entries
     232              :     Part_class_data_.base(),
     233              :     nullptr,  // post_loop_handler
     234              :     ::_pbi::TcParser::GenericFallback,  // fallback
     235              :     #ifdef PROTOBUF_PREFETCH_PARSE_TABLE
     236              :     ::_pbi::TcParser::GetTable<::Odb::Lib::Protobuf::ProductModel::Part>(),  // to_prefetch
     237              :     #endif  // PROTOBUF_PREFETCH_PARSE_TABLE
     238              :   }, {{
     239              :     // optional string name = 1;
     240              :     {::_pbi::TcParser::FastUS1,
     241              :      {10, 0, 0,
     242              :       PROTOBUF_FIELD_OFFSET(Part, _impl_.name_)}},
     243              :   }}, {{
     244              :     65535, 65535
     245              :   }}, {{
     246              :     // optional string name = 1;
     247              :     {PROTOBUF_FIELD_OFFSET(Part, _impl_.name_), _Internal::kHasBitsOffset + 0, 0, (0 | ::_fl::kFcOptional | ::_fl::kUtf8String | ::_fl::kRepAString)},
     248              :   }},
     249              :   // no aux_entries
     250              :   {{
     251              :     "\42\4\0\0\0\0\0\0"
     252              :     "Odb.Lib.Protobuf.ProductModel.Part"
     253              :     "name"
     254              :   }},
     255              : };
     256        83052 : PROTOBUF_NOINLINE void Part::Clear() {
     257              : // @@protoc_insertion_point(message_clear_start:Odb.Lib.Protobuf.ProductModel.Part)
     258        83052 :   ::google::protobuf::internal::TSanWrite(&_impl_);
     259        83052 :   ::uint32_t cached_has_bits = 0;
     260              :   // Prevent compiler warnings about cached_has_bits being unused
     261              :   (void) cached_has_bits;
     262              : 
     263        83052 :   cached_has_bits = _impl_._has_bits_[0];
     264        83052 :   if (CheckHasBit(cached_has_bits, 0x00000001U)) {
     265            0 :     _impl_.name_.ClearNonDefaultToEmpty();
     266              :   }
     267        83052 :   _impl_._has_bits_.Clear();
     268        83052 :   _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>();
     269        83052 : }
     270              : 
     271              : #if defined(PROTOBUF_CUSTOM_VTABLE)
     272              : ::uint8_t* PROTOBUF_NONNULL Part::_InternalSerialize(
     273              :     const ::google::protobuf::MessageLite& base, ::uint8_t* PROTOBUF_NONNULL target,
     274              :     ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) {
     275              :   const Part& this_ = static_cast<const Part&>(base);
     276              : #else   // PROTOBUF_CUSTOM_VTABLE
     277        45204 : ::uint8_t* PROTOBUF_NONNULL Part::_InternalSerialize(
     278              :     ::uint8_t* PROTOBUF_NONNULL target,
     279              :     ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const {
     280        45204 :   const Part& this_ = *this;
     281              : #endif  // PROTOBUF_CUSTOM_VTABLE
     282              :   if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) {
     283        45204 :     this_.CheckHasBitConsistency();
     284              :   }
     285              :   // @@protoc_insertion_point(serialize_to_array_start:Odb.Lib.Protobuf.ProductModel.Part)
     286        45204 :   ::uint32_t cached_has_bits = 0;
     287              :   (void)cached_has_bits;
     288              : 
     289        45204 :   cached_has_bits = this_._impl_._has_bits_[0];
     290              :   // optional string name = 1;
     291        45204 :   if (CheckHasBit(cached_has_bits, 0x00000001U)) {
     292        45204 :     const ::std::string& _s = this_._internal_name();
     293        90408 :     ::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
     294        45204 :         _s.data(), static_cast<int>(_s.length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "Odb.Lib.Protobuf.ProductModel.Part.name");
     295        45204 :     target = stream->WriteStringMaybeAliased(1, _s, target);
     296              :   }
     297              : 
     298        45204 :   if (ABSL_PREDICT_FALSE(this_._internal_metadata_.have_unknown_fields())) {
     299              :     target =
     300            0 :         ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray(
     301              :             this_._internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream);
     302              :   }
     303              :   // @@protoc_insertion_point(serialize_to_array_end:Odb.Lib.Protobuf.ProductModel.Part)
     304        45204 :   return target;
     305              : }
     306              : 
     307              : #if defined(PROTOBUF_CUSTOM_VTABLE)
     308              : ::size_t Part::ByteSizeLong(const MessageLite& base) {
     309              :   const Part& this_ = static_cast<const Part&>(base);
     310              : #else   // PROTOBUF_CUSTOM_VTABLE
     311        81942 : ::size_t Part::ByteSizeLong() const {
     312        81942 :   const Part& this_ = *this;
     313              : #endif  // PROTOBUF_CUSTOM_VTABLE
     314              :   // @@protoc_insertion_point(message_byte_size_start:Odb.Lib.Protobuf.ProductModel.Part)
     315        81942 :   ::size_t total_size = 0;
     316              : 
     317        81942 :   ::uint32_t cached_has_bits = 0;
     318              :   // Prevent compiler warnings about cached_has_bits being unused
     319              :   (void)cached_has_bits;
     320              : 
     321              :    {
     322              :     // optional string name = 1;
     323        81942 :     cached_has_bits = this_._impl_._has_bits_[0];
     324        81942 :     if (CheckHasBit(cached_has_bits, 0x00000001U)) {
     325        81942 :       total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize(
     326              :                                       this_._internal_name());
     327              :     }
     328              :   }
     329        81942 :   return this_.MaybeComputeUnknownFieldsSize(total_size,
     330        81942 :                                              &this_._impl_._cached_size_);
     331              : }
     332              : 
     333        83052 : void Part::MergeImpl(::google::protobuf::MessageLite& to_msg,
     334              :                             const ::google::protobuf::MessageLite& from_msg) {
     335        83052 :    auto* const _this =
     336              :       static_cast<Part*>(&to_msg);
     337        83052 :   auto& from = static_cast<const Part&>(from_msg);
     338              :   if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) {
     339        83052 :     from.CheckHasBitConsistency();
     340              :   }
     341              :   // @@protoc_insertion_point(class_specific_merge_from_start:Odb.Lib.Protobuf.ProductModel.Part)
     342        83052 :   ABSL_DCHECK_NE(&from, _this);
     343        83052 :   ::uint32_t cached_has_bits = 0;
     344              :   (void)cached_has_bits;
     345              : 
     346        83052 :   cached_has_bits = from._impl_._has_bits_[0];
     347        83052 :   if (CheckHasBit(cached_has_bits, 0x00000001U)) {
     348        83052 :     _this->_internal_set_name(from._internal_name());
     349              :   }
     350        83052 :   _this->_impl_._has_bits_[0] |= cached_has_bits;
     351        83052 :   _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(
     352        83052 :       from._internal_metadata_);
     353        83052 : }
     354              : 
     355        81727 : void Part::CopyFrom(const Part& from) {
     356              :   // @@protoc_insertion_point(class_specific_copy_from_start:Odb.Lib.Protobuf.ProductModel.Part)
     357        81727 :   if (&from == this) return;
     358        81727 :   Clear();
     359        81727 :   MergeFrom(from);
     360              : }
     361              : 
     362              : 
     363            0 : void Part::InternalSwap(Part* PROTOBUF_RESTRICT PROTOBUF_NONNULL other) {
     364              :   using ::std::swap;
     365            0 :   auto* arena = GetArena();
     366            0 :   ABSL_DCHECK_EQ(arena, other->GetArena());
     367            0 :   _internal_metadata_.InternalSwap(&other->_internal_metadata_);
     368            0 :   swap(_impl_._has_bits_[0], other->_impl_._has_bits_[0]);
     369            0 :   ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.name_, &other->_impl_.name_, arena);
     370            0 : }
     371              : 
     372            0 : ::google::protobuf::Metadata Part::GetMetadata() const {
     373            0 :   return ::google::protobuf::Message::GetMetadataImpl(GetClassData()->full());
     374              : }
     375              : // @@protoc_insertion_point(namespace_scope)
     376              : }  // namespace ProductModel
     377              : }  // namespace Protobuf
     378              : }  // namespace Lib
     379              : }  // namespace Odb
     380              : namespace google {
     381              : namespace protobuf {
     382              : }  // namespace protobuf
     383              : }  // namespace google
     384              : // @@protoc_insertion_point(global_scope)
     385              : PROTOBUF_ATTRIBUTE_INIT_PRIORITY2 static ::std::false_type
     386              :     _static_init2_ [[maybe_unused]] =
     387              :         (::_pbi::AddDescriptors(&descriptor_table_part_2eproto),
     388              :          ::std::false_type{});
     389              : #include "google/protobuf/port_undef.inc"
        

Generated by: LCOV version 2.0-1