LCOV - code coverage report
Current view: top level - out/build/linux-debug/OdbDesignLib - part.pb.h (source / functions) Coverage Total Hit
Test: OdbDesign Test Coverage Lines: 94.7 % 19 18
Test Date: 2026-11-21 03:51:50 Functions: 85.7 % 7 6
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              : #ifndef part_2eproto_2epb_2eh
       7              : #define part_2eproto_2epb_2eh
       8              : 
       9              : #include <limits>
      10              : #include <string>
      11              : #include <type_traits>
      12              : #include <utility>
      13              : 
      14              : #include "google/protobuf/runtime_version.h"
      15              : #if PROTOBUF_VERSION != 6033004
      16              : #error "Protobuf C++ gencode is built with an incompatible version of"
      17              : #error "Protobuf C++ headers/runtime. See"
      18              : #error "https://protobuf.dev/support/cross-version-runtime-guarantee/#cpp"
      19              : #endif
      20              : #include "google/protobuf/io/coded_stream.h"
      21              : #include "google/protobuf/arena.h"
      22              : #include "google/protobuf/arenastring.h"
      23              : #include "google/protobuf/generated_message_tctable_decl.h"
      24              : #include "google/protobuf/generated_message_util.h"
      25              : #include "google/protobuf/metadata_lite.h"
      26              : #include "google/protobuf/generated_message_reflection.h"
      27              : #include "google/protobuf/message.h"
      28              : #include "google/protobuf/message_lite.h"
      29              : #include "google/protobuf/repeated_field.h"  // IWYU pragma: export
      30              : #include "google/protobuf/extension_set.h"  // IWYU pragma: export
      31              : #include "google/protobuf/unknown_field_set.h"
      32              : // @@protoc_insertion_point(includes)
      33              : 
      34              : // Must be included last.
      35              : #include "google/protobuf/port_def.inc"
      36              : 
      37              : #define PROTOBUF_INTERNAL_EXPORT_part_2eproto ODBDESIGN_EXPORT
      38              : 
      39              : namespace google {
      40              : namespace protobuf {
      41              : namespace internal {
      42              : template <typename T>
      43              : ::absl::string_view GetAnyMessageName();
      44              : }  // namespace internal
      45              : }  // namespace protobuf
      46              : }  // namespace google
      47              : 
      48              : // Internal implementation detail -- do not use these members.
      49              : struct ODBDESIGN_EXPORT TableStruct_part_2eproto {
      50              :   static const ::uint32_t offsets[];
      51              : };
      52              : extern "C" {
      53              : ODBDESIGN_EXPORT extern const ::google::protobuf::internal::DescriptorTable descriptor_table_part_2eproto;
      54              : }  // extern "C"
      55              : namespace Odb {
      56              : namespace Lib {
      57              : namespace Protobuf {
      58              : namespace ProductModel {
      59              : class Part;
      60              : struct PartDefaultTypeInternal;
      61              : ODBDESIGN_EXPORT extern PartDefaultTypeInternal _Part_default_instance_;
      62              : ODBDESIGN_EXPORT extern const ::google::protobuf::internal::ClassDataFull Part_class_data_;
      63              : }  // namespace ProductModel
      64              : }  // namespace Protobuf
      65              : }  // namespace Lib
      66              : }  // namespace Odb
      67              : namespace google {
      68              : namespace protobuf {
      69              : }  // namespace protobuf
      70              : }  // namespace google
      71              : 
      72              : namespace Odb {
      73              : namespace Lib {
      74              : namespace Protobuf {
      75              : namespace ProductModel {
      76              : 
      77              : // ===================================================================
      78              : 
      79              : 
      80              : // -------------------------------------------------------------------
      81              : 
      82              : class ODBDESIGN_EXPORT Part final : public ::google::protobuf::Message
      83              : /* @@protoc_insertion_point(class_definition:Odb.Lib.Protobuf.ProductModel.Part) */ {
      84              :  public:
      85        83052 :   inline Part() : Part(nullptr) {}
      86              :   ~Part() PROTOBUF_FINAL;
      87              : 
      88              : #if defined(PROTOBUF_CUSTOM_VTABLE)
      89              :   void operator delete(Part* PROTOBUF_NONNULL msg, ::std::destroying_delete_t) {
      90              :     SharedDtor(*msg);
      91              :     ::google::protobuf::internal::SizedDelete(msg, sizeof(Part));
      92              :   }
      93              : #endif
      94              : 
      95              :   template <typename = void>
      96              :   explicit PROTOBUF_CONSTEXPR Part(::google::protobuf::internal::ConstantInitialized);
      97              : 
      98            0 :   inline Part(const Part& from) : Part(nullptr, from) {}
      99              :   inline Part(Part&& from) noexcept
     100              :       : Part(nullptr, ::std::move(from)) {}
     101         2040 :   inline Part& operator=(const Part& from) {
     102         2040 :     CopyFrom(from);
     103         2040 :     return *this;
     104              :   }
     105              :   inline Part& operator=(Part&& from) noexcept {
     106              :     if (this == &from) return *this;
     107              :     if (::google::protobuf::internal::CanMoveWithInternalSwap(GetArena(), from.GetArena())) {
     108              :       InternalSwap(&from);
     109              :     } else {
     110              :       CopyFrom(from);
     111              :     }
     112              :     return *this;
     113              :   }
     114              : 
     115              :   inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const
     116              :       ABSL_ATTRIBUTE_LIFETIME_BOUND {
     117              :     return _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance);
     118              :   }
     119              :   inline ::google::protobuf::UnknownFieldSet* PROTOBUF_NONNULL mutable_unknown_fields()
     120              :       ABSL_ATTRIBUTE_LIFETIME_BOUND {
     121              :     return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>();
     122              :   }
     123              : 
     124              :   static const ::google::protobuf::Descriptor* PROTOBUF_NONNULL descriptor() {
     125              :     return GetDescriptor();
     126              :   }
     127              :   static const ::google::protobuf::Descriptor* PROTOBUF_NONNULL GetDescriptor() {
     128              :     return default_instance().GetMetadata().descriptor;
     129              :   }
     130              :   static const ::google::protobuf::Reflection* PROTOBUF_NONNULL GetReflection() {
     131              :     return default_instance().GetMetadata().reflection;
     132              :   }
     133              :   static const Part& default_instance() {
     134              :     return *reinterpret_cast<const Part*>(
     135              :         &_Part_default_instance_);
     136              :   }
     137              :   static constexpr int kIndexInFileMessages = 0;
     138              :   friend void swap(Part& a, Part& b) { a.Swap(&b); }
     139              :   inline void Swap(Part* PROTOBUF_NONNULL other) {
     140              :     if (other == this) return;
     141              :     if (::google::protobuf::internal::CanUseInternalSwap(GetArena(), other->GetArena())) {
     142              :       InternalSwap(other);
     143              :     } else {
     144              :       ::google::protobuf::internal::GenericSwap(this, other);
     145              :     }
     146              :   }
     147              :   void UnsafeArenaSwap(Part* PROTOBUF_NONNULL other) {
     148              :     if (other == this) return;
     149              :     ABSL_DCHECK(GetArena() == other->GetArena());
     150              :     InternalSwap(other);
     151              :   }
     152              : 
     153              :   // implements Message ----------------------------------------------
     154              : 
     155              :   Part* PROTOBUF_NONNULL New(::google::protobuf::Arena* PROTOBUF_NULLABLE arena = nullptr) const {
     156              :     return ::google::protobuf::Message::DefaultConstruct<Part>(arena);
     157              :   }
     158              :   using ::google::protobuf::Message::CopyFrom;
     159              :   void CopyFrom(const Part& from);
     160              :   using ::google::protobuf::Message::MergeFrom;
     161        81727 :   void MergeFrom(const Part& from) { Part::MergeImpl(*this, from); }
     162              : 
     163              :   private:
     164              :   static void MergeImpl(::google::protobuf::MessageLite& to_msg,
     165              :                         const ::google::protobuf::MessageLite& from_msg);
     166              : 
     167              :   public:
     168              :   bool IsInitialized() const {
     169              :     return true;
     170              :   }
     171              :   ABSL_ATTRIBUTE_REINITIALIZES void Clear() PROTOBUF_FINAL;
     172              :   #if defined(PROTOBUF_CUSTOM_VTABLE)
     173              :   private:
     174              :   static ::size_t ByteSizeLong(const ::google::protobuf::MessageLite& msg);
     175              :   static ::uint8_t* PROTOBUF_NONNULL _InternalSerialize(
     176              :       const ::google::protobuf::MessageLite& msg, ::uint8_t* PROTOBUF_NONNULL target,
     177              :       ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream);
     178              : 
     179              :   public:
     180              :   ::size_t ByteSizeLong() const { return ByteSizeLong(*this); }
     181              :   ::uint8_t* PROTOBUF_NONNULL _InternalSerialize(
     182              :       ::uint8_t* PROTOBUF_NONNULL target,
     183              :       ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const {
     184              :     return _InternalSerialize(*this, target, stream);
     185              :   }
     186              :   #else   // PROTOBUF_CUSTOM_VTABLE
     187              :   ::size_t ByteSizeLong() const final;
     188              :   ::uint8_t* PROTOBUF_NONNULL _InternalSerialize(
     189              :       ::uint8_t* PROTOBUF_NONNULL target,
     190              :       ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const final;
     191              :   #endif  // PROTOBUF_CUSTOM_VTABLE
     192        46062 :   int GetCachedSize() const { return _impl_._cached_size_.Get(); }
     193              : 
     194              :   private:
     195              :   void SharedCtor(::google::protobuf::Arena* PROTOBUF_NULLABLE arena);
     196              :   static void SharedDtor(MessageLite& self);
     197              :   void InternalSwap(Part* PROTOBUF_NONNULL other);
     198              :  private:
     199              :   template <typename T>
     200              :   friend ::absl::string_view(::google::protobuf::internal::GetAnyMessageName)();
     201              :   static ::absl::string_view FullMessageName() { return "Odb.Lib.Protobuf.ProductModel.Part"; }
     202              : 
     203              :   explicit Part(::google::protobuf::Arena* PROTOBUF_NULLABLE arena);
     204              :   Part(::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const Part& from);
     205              :   Part(
     206              :       ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, Part&& from) noexcept
     207              :       : Part(arena) {
     208              :     *this = ::std::move(from);
     209              :   }
     210              :   const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL GetClassData() const PROTOBUF_FINAL;
     211              :   static void* PROTOBUF_NONNULL PlacementNew_(
     212              :       const void* PROTOBUF_NONNULL, void* PROTOBUF_NONNULL mem,
     213              :       ::google::protobuf::Arena* PROTOBUF_NULLABLE arena);
     214              :   static constexpr auto InternalNewImpl_();
     215              : 
     216              :  public:
     217              :   static constexpr auto InternalGenerateClassData_();
     218              : 
     219              :   ::google::protobuf::Metadata GetMetadata() const;
     220              :   // nested types ----------------------------------------------------
     221              : 
     222              :   // accessors -------------------------------------------------------
     223              :   enum : int {
     224              :     kNameFieldNumber = 1,
     225              :   };
     226              :   // optional string name = 1;
     227              :   bool has_name() const;
     228              :   void clear_name() ;
     229              :   const ::std::string& name() const;
     230              :   template <typename Arg_ = const ::std::string&, typename... Args_>
     231              :   void set_name(Arg_&& arg, Args_... args);
     232              :   ::std::string* PROTOBUF_NONNULL mutable_name();
     233              :   [[nodiscard]] ::std::string* PROTOBUF_NULLABLE release_name();
     234              :   void set_allocated_name(::std::string* PROTOBUF_NULLABLE value);
     235              : 
     236              :   private:
     237              :   const ::std::string& _internal_name() const;
     238              :   PROTOBUF_ALWAYS_INLINE void _internal_set_name(const ::std::string& value);
     239              :   ::std::string* PROTOBUF_NONNULL _internal_mutable_name();
     240              : 
     241              :   public:
     242              :   // @@protoc_insertion_point(class_scope:Odb.Lib.Protobuf.ProductModel.Part)
     243              :  private:
     244              :   class _Internal;
     245              :   friend class ::google::protobuf::internal::TcParser;
     246              :   static const ::google::protobuf::internal::TcParseTable<0, 1,
     247              :                                    0, 47,
     248              :                                    2>
     249              :       _table_;
     250              : 
     251              :   friend class ::google::protobuf::MessageLite;
     252              :   friend class ::google::protobuf::Arena;
     253              :   template <typename T>
     254              :   friend class ::google::protobuf::Arena::InternalHelper;
     255              :   using InternalArenaConstructable_ = void;
     256              :   using DestructorSkippable_ = void;
     257              :   struct Impl_ {
     258              :     inline explicit constexpr Impl_(::google::protobuf::internal::ConstantInitialized) noexcept;
     259              :     inline explicit Impl_(
     260              :         ::google::protobuf::internal::InternalVisibility visibility,
     261              :         ::google::protobuf::Arena* PROTOBUF_NULLABLE arena);
     262              :     inline explicit Impl_(
     263              :         ::google::protobuf::internal::InternalVisibility visibility,
     264              :         ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const Impl_& from,
     265              :         const Part& from_msg);
     266              :     ::google::protobuf::internal::HasBits<1> _has_bits_;
     267              :     ::google::protobuf::internal::CachedSize _cached_size_;
     268              :     ::google::protobuf::internal::ArenaStringPtr name_;
     269              :     PROTOBUF_TSAN_DECLARE_MEMBER
     270              :   };
     271              :   union { Impl_ _impl_; };
     272              :   friend struct ::TableStruct_part_2eproto;
     273              : };
     274              : 
     275              : ODBDESIGN_EXPORT extern const ::google::protobuf::internal::ClassDataFull Part_class_data_;
     276              : 
     277              : // ===================================================================
     278              : 
     279              : 
     280              : 
     281              : 
     282              : // ===================================================================
     283              : 
     284              : 
     285              : #ifdef __GNUC__
     286              : #pragma GCC diagnostic push
     287              : #pragma GCC diagnostic ignored "-Wstrict-aliasing"
     288              : #endif  // __GNUC__
     289              : // -------------------------------------------------------------------
     290              : 
     291              : // Part
     292              : 
     293              : // optional string name = 1;
     294              : inline bool Part::has_name() const {
     295              :   bool value = CheckHasBit(_impl_._has_bits_[0], 0x00000001U);
     296              :   return value;
     297              : }
     298              : inline void Part::clear_name() {
     299              :   ::google::protobuf::internal::TSanWrite(&_impl_);
     300              :   _impl_.name_.ClearToEmpty();
     301              :   ClearHasBit(_impl_._has_bits_[0],
     302              :                   0x00000001U);
     303              : }
     304        21672 : inline const ::std::string& Part::name() const
     305              :     ABSL_ATTRIBUTE_LIFETIME_BOUND {
     306              :   // @@protoc_insertion_point(field_get:Odb.Lib.Protobuf.ProductModel.Part.name)
     307        21672 :   return _internal_name();
     308              : }
     309              : template <typename Arg_, typename... Args_>
     310              : PROTOBUF_ALWAYS_INLINE void Part::set_name(Arg_&& arg, Args_... args) {
     311        81012 :   ::google::protobuf::internal::TSanWrite(&_impl_);
     312        81012 :   SetHasBit(_impl_._has_bits_[0], 0x00000001U);
     313        81012 :   _impl_.name_.Set(static_cast<Arg_&&>(arg), args..., GetArena());
     314              :   // @@protoc_insertion_point(field_set:Odb.Lib.Protobuf.ProductModel.Part.name)
     315        81012 : }
     316              : inline ::std::string* PROTOBUF_NONNULL Part::mutable_name()
     317              :     ABSL_ATTRIBUTE_LIFETIME_BOUND {
     318              :   SetHasBit(_impl_._has_bits_[0], 0x00000001U);
     319              :   ::std::string* _s = _internal_mutable_name();
     320              :   // @@protoc_insertion_point(field_mutable:Odb.Lib.Protobuf.ProductModel.Part.name)
     321              :   return _s;
     322              : }
     323       231870 : inline const ::std::string& Part::_internal_name() const {
     324       231870 :   ::google::protobuf::internal::TSanRead(&_impl_);
     325       231870 :   return _impl_.name_.Get();
     326              : }
     327              : inline void Part::_internal_set_name(const ::std::string& value) {
     328        83052 :   ::google::protobuf::internal::TSanWrite(&_impl_);
     329        83052 :   _impl_.name_.Set(value, GetArena());
     330        83052 : }
     331              : inline ::std::string* PROTOBUF_NONNULL Part::_internal_mutable_name() {
     332              :   ::google::protobuf::internal::TSanWrite(&_impl_);
     333              :   return _impl_.name_.Mutable( GetArena());
     334              : }
     335              : inline ::std::string* PROTOBUF_NULLABLE Part::release_name() {
     336              :   ::google::protobuf::internal::TSanWrite(&_impl_);
     337              :   // @@protoc_insertion_point(field_release:Odb.Lib.Protobuf.ProductModel.Part.name)
     338              :   if (!CheckHasBit(_impl_._has_bits_[0], 0x00000001U)) {
     339              :     return nullptr;
     340              :   }
     341              :   ClearHasBit(_impl_._has_bits_[0], 0x00000001U);
     342              :   auto* released = _impl_.name_.Release();
     343              :   if (::google::protobuf::internal::DebugHardenForceCopyDefaultString()) {
     344              :     _impl_.name_.Set("", GetArena());
     345              :   }
     346              :   return released;
     347              : }
     348              : inline void Part::set_allocated_name(::std::string* PROTOBUF_NULLABLE value) {
     349              :   ::google::protobuf::internal::TSanWrite(&_impl_);
     350              :   if (value != nullptr) {
     351              :     SetHasBit(_impl_._has_bits_[0], 0x00000001U);
     352              :   } else {
     353              :     ClearHasBit(_impl_._has_bits_[0], 0x00000001U);
     354              :   }
     355              :   _impl_.name_.SetAllocated(value, GetArena());
     356              :   if (::google::protobuf::internal::DebugHardenForceCopyDefaultString() && _impl_.name_.IsDefault()) {
     357              :     _impl_.name_.Set("", GetArena());
     358              :   }
     359              :   // @@protoc_insertion_point(field_set_allocated:Odb.Lib.Protobuf.ProductModel.Part.name)
     360              : }
     361              : 
     362              : #ifdef __GNUC__
     363              : #pragma GCC diagnostic pop
     364              : #endif  // __GNUC__
     365              : 
     366              : // @@protoc_insertion_point(namespace_scope)
     367              : }  // namespace ProductModel
     368              : }  // namespace Protobuf
     369              : }  // namespace Lib
     370              : }  // namespace Odb
     371              : 
     372              : 
     373              : // @@protoc_insertion_point(global_scope)
     374              : 
     375              : #include "google/protobuf/port_undef.inc"
     376              : 
     377              : #endif  // part_2eproto_2epb_2eh
        

Generated by: LCOV version 2.0-1