Line data Source code
1 : // Generated by the protocol buffer compiler. DO NOT EDIT!
2 : // NO CHECKED-IN PROTOBUF GENCODE
3 : // source: component.proto
4 : // Protobuf C++ Version: 6.33.4
5 :
6 : #ifndef component_2eproto_2epb_2eh
7 : #define component_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 : #include "enums.pb.h"
33 : #include "part.pb.h"
34 : #include "package.pb.h"
35 : // @@protoc_insertion_point(includes)
36 :
37 : // Must be included last.
38 : #include "google/protobuf/port_def.inc"
39 :
40 : #define PROTOBUF_INTERNAL_EXPORT_component_2eproto ODBDESIGN_EXPORT
41 :
42 : namespace google {
43 : namespace protobuf {
44 : namespace internal {
45 : template <typename T>
46 : ::absl::string_view GetAnyMessageName();
47 : } // namespace internal
48 : } // namespace protobuf
49 : } // namespace google
50 :
51 : // Internal implementation detail -- do not use these members.
52 : struct ODBDESIGN_EXPORT TableStruct_component_2eproto {
53 : static const ::uint32_t offsets[];
54 : };
55 : extern "C" {
56 : ODBDESIGN_EXPORT extern const ::google::protobuf::internal::DescriptorTable descriptor_table_component_2eproto;
57 : } // extern "C"
58 : namespace Odb {
59 : namespace Lib {
60 : namespace Protobuf {
61 : namespace ProductModel {
62 : class Component;
63 : struct ComponentDefaultTypeInternal;
64 : ODBDESIGN_EXPORT extern ComponentDefaultTypeInternal _Component_default_instance_;
65 : ODBDESIGN_EXPORT extern const ::google::protobuf::internal::ClassDataFull Component_class_data_;
66 : } // namespace ProductModel
67 : } // namespace Protobuf
68 : } // namespace Lib
69 : } // namespace Odb
70 : namespace google {
71 : namespace protobuf {
72 : } // namespace protobuf
73 : } // namespace google
74 :
75 : namespace Odb {
76 : namespace Lib {
77 : namespace Protobuf {
78 : namespace ProductModel {
79 :
80 : // ===================================================================
81 :
82 :
83 : // -------------------------------------------------------------------
84 :
85 : class ODBDESIGN_EXPORT Component final : public ::google::protobuf::Message
86 : /* @@protoc_insertion_point(class_definition:Odb.Lib.Protobuf.ProductModel.Component) */ {
87 : public:
88 88930 : inline Component() : Component(nullptr) {}
89 : ~Component() PROTOBUF_FINAL;
90 :
91 : #if defined(PROTOBUF_CUSTOM_VTABLE)
92 : void operator delete(Component* PROTOBUF_NONNULL msg, ::std::destroying_delete_t) {
93 : SharedDtor(*msg);
94 : ::google::protobuf::internal::SizedDelete(msg, sizeof(Component));
95 : }
96 : #endif
97 :
98 : template <typename = void>
99 : explicit PROTOBUF_CONSTEXPR Component(::google::protobuf::internal::ConstantInitialized);
100 :
101 0 : inline Component(const Component& from) : Component(nullptr, from) {}
102 : inline Component(Component&& from) noexcept
103 : : Component(nullptr, ::std::move(from)) {}
104 11140 : inline Component& operator=(const Component& from) {
105 11140 : CopyFrom(from);
106 11140 : return *this;
107 : }
108 : inline Component& operator=(Component&& from) noexcept {
109 : if (this == &from) return *this;
110 : if (::google::protobuf::internal::CanMoveWithInternalSwap(GetArena(), from.GetArena())) {
111 : InternalSwap(&from);
112 : } else {
113 : CopyFrom(from);
114 : }
115 : return *this;
116 : }
117 :
118 : inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const
119 : ABSL_ATTRIBUTE_LIFETIME_BOUND {
120 : return _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance);
121 : }
122 : inline ::google::protobuf::UnknownFieldSet* PROTOBUF_NONNULL mutable_unknown_fields()
123 : ABSL_ATTRIBUTE_LIFETIME_BOUND {
124 : return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>();
125 : }
126 :
127 : static const ::google::protobuf::Descriptor* PROTOBUF_NONNULL descriptor() {
128 : return GetDescriptor();
129 : }
130 : static const ::google::protobuf::Descriptor* PROTOBUF_NONNULL GetDescriptor() {
131 : return default_instance().GetMetadata().descriptor;
132 : }
133 : static const ::google::protobuf::Reflection* PROTOBUF_NONNULL GetReflection() {
134 : return default_instance().GetMetadata().reflection;
135 : }
136 : static const Component& default_instance() {
137 : return *reinterpret_cast<const Component*>(
138 : &_Component_default_instance_);
139 : }
140 : static constexpr int kIndexInFileMessages = 0;
141 : friend void swap(Component& a, Component& b) { a.Swap(&b); }
142 : inline void Swap(Component* PROTOBUF_NONNULL other) {
143 : if (other == this) return;
144 : if (::google::protobuf::internal::CanUseInternalSwap(GetArena(), other->GetArena())) {
145 : InternalSwap(other);
146 : } else {
147 : ::google::protobuf::internal::GenericSwap(this, other);
148 : }
149 : }
150 : void UnsafeArenaSwap(Component* PROTOBUF_NONNULL other) {
151 : if (other == this) return;
152 : ABSL_DCHECK(GetArena() == other->GetArena());
153 : InternalSwap(other);
154 : }
155 :
156 : // implements Message ----------------------------------------------
157 :
158 : Component* PROTOBUF_NONNULL New(::google::protobuf::Arena* PROTOBUF_NULLABLE arena = nullptr) const {
159 : return ::google::protobuf::Message::DefaultConstruct<Component>(arena);
160 : }
161 : using ::google::protobuf::Message::CopyFrom;
162 : void CopyFrom(const Component& from);
163 : using ::google::protobuf::Message::MergeFrom;
164 81853 : void MergeFrom(const Component& from) { Component::MergeImpl(*this, from); }
165 :
166 : private:
167 : static void MergeImpl(::google::protobuf::MessageLite& to_msg,
168 : const ::google::protobuf::MessageLite& from_msg);
169 :
170 : public:
171 : bool IsInitialized() const {
172 : return true;
173 : }
174 : ABSL_ATTRIBUTE_REINITIALIZES void Clear() PROTOBUF_FINAL;
175 : #if defined(PROTOBUF_CUSTOM_VTABLE)
176 : private:
177 : static ::size_t ByteSizeLong(const ::google::protobuf::MessageLite& msg);
178 : static ::uint8_t* PROTOBUF_NONNULL _InternalSerialize(
179 : const ::google::protobuf::MessageLite& msg, ::uint8_t* PROTOBUF_NONNULL target,
180 : ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream);
181 :
182 : public:
183 : ::size_t ByteSizeLong() const { return ByteSizeLong(*this); }
184 : ::uint8_t* PROTOBUF_NONNULL _InternalSerialize(
185 : ::uint8_t* PROTOBUF_NONNULL target,
186 : ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const {
187 : return _InternalSerialize(*this, target, stream);
188 : }
189 : #else // PROTOBUF_CUSTOM_VTABLE
190 : ::size_t ByteSizeLong() const final;
191 : ::uint8_t* PROTOBUF_NONNULL _InternalSerialize(
192 : ::uint8_t* PROTOBUF_NONNULL target,
193 : ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const final;
194 : #endif // PROTOBUF_CUSTOM_VTABLE
195 48366 : int GetCachedSize() const { return _impl_._cached_size_.Get(); }
196 :
197 : private:
198 : void SharedCtor(::google::protobuf::Arena* PROTOBUF_NULLABLE arena);
199 : static void SharedDtor(MessageLite& self);
200 : void InternalSwap(Component* PROTOBUF_NONNULL other);
201 : private:
202 : template <typename T>
203 : friend ::absl::string_view(::google::protobuf::internal::GetAnyMessageName)();
204 : static ::absl::string_view FullMessageName() { return "Odb.Lib.Protobuf.ProductModel.Component"; }
205 :
206 : explicit Component(::google::protobuf::Arena* PROTOBUF_NULLABLE arena);
207 : Component(::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const Component& from);
208 : Component(
209 : ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, Component&& from) noexcept
210 : : Component(arena) {
211 : *this = ::std::move(from);
212 : }
213 : const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL GetClassData() const PROTOBUF_FINAL;
214 : static void* PROTOBUF_NONNULL PlacementNew_(
215 : const void* PROTOBUF_NONNULL, void* PROTOBUF_NONNULL mem,
216 : ::google::protobuf::Arena* PROTOBUF_NULLABLE arena);
217 : static constexpr auto InternalNewImpl_();
218 :
219 : public:
220 : static constexpr auto InternalGenerateClassData_();
221 :
222 : ::google::protobuf::Metadata GetMetadata() const;
223 : // nested types ----------------------------------------------------
224 :
225 : // accessors -------------------------------------------------------
226 : enum : int {
227 : kRefDesFieldNumber = 1,
228 : kPartNameFieldNumber = 2,
229 : kPackageFieldNumber = 3,
230 : kPartFieldNumber = 6,
231 : kIndexFieldNumber = 4,
232 : kSideFieldNumber = 5,
233 : kIdFieldNumber = 7,
234 : };
235 : // optional string refDes = 1;
236 : bool has_refdes() const;
237 : void clear_refdes() ;
238 : const ::std::string& refdes() const;
239 : template <typename Arg_ = const ::std::string&, typename... Args_>
240 : void set_refdes(Arg_&& arg, Args_... args);
241 : ::std::string* PROTOBUF_NONNULL mutable_refdes();
242 : [[nodiscard]] ::std::string* PROTOBUF_NULLABLE release_refdes();
243 : void set_allocated_refdes(::std::string* PROTOBUF_NULLABLE value);
244 :
245 : private:
246 : const ::std::string& _internal_refdes() const;
247 : PROTOBUF_ALWAYS_INLINE void _internal_set_refdes(const ::std::string& value);
248 : ::std::string* PROTOBUF_NONNULL _internal_mutable_refdes();
249 :
250 : public:
251 : // optional string partName = 2;
252 : bool has_partname() const;
253 : void clear_partname() ;
254 : const ::std::string& partname() const;
255 : template <typename Arg_ = const ::std::string&, typename... Args_>
256 : void set_partname(Arg_&& arg, Args_... args);
257 : ::std::string* PROTOBUF_NONNULL mutable_partname();
258 : [[nodiscard]] ::std::string* PROTOBUF_NULLABLE release_partname();
259 : void set_allocated_partname(::std::string* PROTOBUF_NULLABLE value);
260 :
261 : private:
262 : const ::std::string& _internal_partname() const;
263 : PROTOBUF_ALWAYS_INLINE void _internal_set_partname(const ::std::string& value);
264 : ::std::string* PROTOBUF_NONNULL _internal_mutable_partname();
265 :
266 : public:
267 : // optional .Odb.Lib.Protobuf.ProductModel.Package package = 3;
268 : bool has_package() const;
269 : void clear_package() ;
270 : const ::Odb::Lib::Protobuf::ProductModel::Package& package() const;
271 : [[nodiscard]] ::Odb::Lib::Protobuf::ProductModel::Package* PROTOBUF_NULLABLE release_package();
272 : ::Odb::Lib::Protobuf::ProductModel::Package* PROTOBUF_NONNULL mutable_package();
273 : void set_allocated_package(::Odb::Lib::Protobuf::ProductModel::Package* PROTOBUF_NULLABLE value);
274 : void unsafe_arena_set_allocated_package(::Odb::Lib::Protobuf::ProductModel::Package* PROTOBUF_NULLABLE value);
275 : ::Odb::Lib::Protobuf::ProductModel::Package* PROTOBUF_NULLABLE unsafe_arena_release_package();
276 :
277 : private:
278 : const ::Odb::Lib::Protobuf::ProductModel::Package& _internal_package() const;
279 : ::Odb::Lib::Protobuf::ProductModel::Package* PROTOBUF_NONNULL _internal_mutable_package();
280 :
281 : public:
282 : // optional .Odb.Lib.Protobuf.ProductModel.Part part = 6;
283 : bool has_part() const;
284 : void clear_part() ;
285 : const ::Odb::Lib::Protobuf::ProductModel::Part& part() const;
286 : [[nodiscard]] ::Odb::Lib::Protobuf::ProductModel::Part* PROTOBUF_NULLABLE release_part();
287 : ::Odb::Lib::Protobuf::ProductModel::Part* PROTOBUF_NONNULL mutable_part();
288 : void set_allocated_part(::Odb::Lib::Protobuf::ProductModel::Part* PROTOBUF_NULLABLE value);
289 : void unsafe_arena_set_allocated_part(::Odb::Lib::Protobuf::ProductModel::Part* PROTOBUF_NULLABLE value);
290 : ::Odb::Lib::Protobuf::ProductModel::Part* PROTOBUF_NULLABLE unsafe_arena_release_part();
291 :
292 : private:
293 : const ::Odb::Lib::Protobuf::ProductModel::Part& _internal_part() const;
294 : ::Odb::Lib::Protobuf::ProductModel::Part* PROTOBUF_NONNULL _internal_mutable_part();
295 :
296 : public:
297 : // optional uint32 index = 4;
298 : bool has_index() const;
299 : void clear_index() ;
300 : ::uint32_t index() const;
301 : void set_index(::uint32_t value);
302 :
303 : private:
304 : ::uint32_t _internal_index() const;
305 : void _internal_set_index(::uint32_t value);
306 :
307 : public:
308 : // optional .Odb.Lib.Protobuf.BoardSide side = 5;
309 : bool has_side() const;
310 : void clear_side() ;
311 : ::Odb::Lib::Protobuf::BoardSide side() const;
312 : void set_side(::Odb::Lib::Protobuf::BoardSide value);
313 :
314 : private:
315 : ::Odb::Lib::Protobuf::BoardSide _internal_side() const;
316 : void _internal_set_side(::Odb::Lib::Protobuf::BoardSide value);
317 :
318 : public:
319 : // optional uint32 id = 7;
320 : bool has_id() const;
321 : void clear_id() ;
322 : ::uint32_t id() const;
323 : void set_id(::uint32_t value);
324 :
325 : private:
326 : ::uint32_t _internal_id() const;
327 : void _internal_set_id(::uint32_t value);
328 :
329 : public:
330 : // @@protoc_insertion_point(class_scope:Odb.Lib.Protobuf.ProductModel.Component)
331 : private:
332 : class _Internal;
333 : friend class ::google::protobuf::internal::TcParser;
334 : static const ::google::protobuf::internal::TcParseTable<3, 7,
335 : 2, 62,
336 : 2>
337 : _table_;
338 :
339 : friend class ::google::protobuf::MessageLite;
340 : friend class ::google::protobuf::Arena;
341 : template <typename T>
342 : friend class ::google::protobuf::Arena::InternalHelper;
343 : using InternalArenaConstructable_ = void;
344 : using DestructorSkippable_ = void;
345 : struct Impl_ {
346 : inline explicit constexpr Impl_(::google::protobuf::internal::ConstantInitialized) noexcept;
347 : inline explicit Impl_(
348 : ::google::protobuf::internal::InternalVisibility visibility,
349 : ::google::protobuf::Arena* PROTOBUF_NULLABLE arena);
350 : inline explicit Impl_(
351 : ::google::protobuf::internal::InternalVisibility visibility,
352 : ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const Impl_& from,
353 : const Component& from_msg);
354 : ::google::protobuf::internal::HasBits<1> _has_bits_;
355 : ::google::protobuf::internal::CachedSize _cached_size_;
356 : ::google::protobuf::internal::ArenaStringPtr refdes_;
357 : ::google::protobuf::internal::ArenaStringPtr partname_;
358 : ::Odb::Lib::Protobuf::ProductModel::Package* PROTOBUF_NULLABLE package_;
359 : ::Odb::Lib::Protobuf::ProductModel::Part* PROTOBUF_NULLABLE part_;
360 : ::uint32_t index_;
361 : int side_;
362 : ::uint32_t id_;
363 : PROTOBUF_TSAN_DECLARE_MEMBER
364 : };
365 : union { Impl_ _impl_; };
366 : friend struct ::TableStruct_component_2eproto;
367 : };
368 :
369 : ODBDESIGN_EXPORT extern const ::google::protobuf::internal::ClassDataFull Component_class_data_;
370 :
371 : // ===================================================================
372 :
373 :
374 :
375 :
376 : // ===================================================================
377 :
378 :
379 : #ifdef __GNUC__
380 : #pragma GCC diagnostic push
381 : #pragma GCC diagnostic ignored "-Wstrict-aliasing"
382 : #endif // __GNUC__
383 : // -------------------------------------------------------------------
384 :
385 : // Component
386 :
387 : // optional string refDes = 1;
388 : inline bool Component::has_refdes() const {
389 : bool value = CheckHasBit(_impl_._has_bits_[0], 0x00000001U);
390 : return value;
391 : }
392 : inline void Component::clear_refdes() {
393 : ::google::protobuf::internal::TSanWrite(&_impl_);
394 : _impl_.refdes_.ClearToEmpty();
395 : ClearHasBit(_impl_._has_bits_[0],
396 : 0x00000001U);
397 : }
398 20776 : inline const ::std::string& Component::refdes() const
399 : ABSL_ATTRIBUTE_LIFETIME_BOUND {
400 : // @@protoc_insertion_point(field_get:Odb.Lib.Protobuf.ProductModel.Component.refDes)
401 20776 : return _internal_refdes();
402 : }
403 : template <typename Arg_, typename... Args_>
404 : PROTOBUF_ALWAYS_INLINE void Component::set_refdes(Arg_&& arg, Args_... args) {
405 77790 : ::google::protobuf::internal::TSanWrite(&_impl_);
406 77790 : SetHasBit(_impl_._has_bits_[0], 0x00000001U);
407 77790 : _impl_.refdes_.Set(static_cast<Arg_&&>(arg), args..., GetArena());
408 : // @@protoc_insertion_point(field_set:Odb.Lib.Protobuf.ProductModel.Component.refDes)
409 77790 : }
410 : inline ::std::string* PROTOBUF_NONNULL Component::mutable_refdes()
411 : ABSL_ATTRIBUTE_LIFETIME_BOUND {
412 : SetHasBit(_impl_._has_bits_[0], 0x00000001U);
413 : ::std::string* _s = _internal_mutable_refdes();
414 : // @@protoc_insertion_point(field_mutable:Odb.Lib.Protobuf.ProductModel.Component.refDes)
415 : return _s;
416 : }
417 231950 : inline const ::std::string& Component::_internal_refdes() const {
418 231950 : ::google::protobuf::internal::TSanRead(&_impl_);
419 231950 : return _impl_.refdes_.Get();
420 : }
421 : inline void Component::_internal_set_refdes(const ::std::string& value) {
422 88928 : ::google::protobuf::internal::TSanWrite(&_impl_);
423 88928 : _impl_.refdes_.Set(value, GetArena());
424 88928 : }
425 : inline ::std::string* PROTOBUF_NONNULL Component::_internal_mutable_refdes() {
426 : ::google::protobuf::internal::TSanWrite(&_impl_);
427 : return _impl_.refdes_.Mutable( GetArena());
428 : }
429 : inline ::std::string* PROTOBUF_NULLABLE Component::release_refdes() {
430 : ::google::protobuf::internal::TSanWrite(&_impl_);
431 : // @@protoc_insertion_point(field_release:Odb.Lib.Protobuf.ProductModel.Component.refDes)
432 : if (!CheckHasBit(_impl_._has_bits_[0], 0x00000001U)) {
433 : return nullptr;
434 : }
435 : ClearHasBit(_impl_._has_bits_[0], 0x00000001U);
436 : auto* released = _impl_.refdes_.Release();
437 : if (::google::protobuf::internal::DebugHardenForceCopyDefaultString()) {
438 : _impl_.refdes_.Set("", GetArena());
439 : }
440 : return released;
441 : }
442 : inline void Component::set_allocated_refdes(::std::string* PROTOBUF_NULLABLE value) {
443 : ::google::protobuf::internal::TSanWrite(&_impl_);
444 : if (value != nullptr) {
445 : SetHasBit(_impl_._has_bits_[0], 0x00000001U);
446 : } else {
447 : ClearHasBit(_impl_._has_bits_[0], 0x00000001U);
448 : }
449 : _impl_.refdes_.SetAllocated(value, GetArena());
450 : if (::google::protobuf::internal::DebugHardenForceCopyDefaultString() && _impl_.refdes_.IsDefault()) {
451 : _impl_.refdes_.Set("", GetArena());
452 : }
453 : // @@protoc_insertion_point(field_set_allocated:Odb.Lib.Protobuf.ProductModel.Component.refDes)
454 : }
455 :
456 : // optional string partName = 2;
457 : inline bool Component::has_partname() const {
458 : bool value = CheckHasBit(_impl_._has_bits_[0], 0x00000002U);
459 : return value;
460 : }
461 : inline void Component::clear_partname() {
462 : ::google::protobuf::internal::TSanWrite(&_impl_);
463 : _impl_.partname_.ClearToEmpty();
464 : ClearHasBit(_impl_._has_bits_[0],
465 : 0x00000002U);
466 : }
467 20776 : inline const ::std::string& Component::partname() const
468 : ABSL_ATTRIBUTE_LIFETIME_BOUND {
469 : // @@protoc_insertion_point(field_get:Odb.Lib.Protobuf.ProductModel.Component.partName)
470 20776 : return _internal_partname();
471 : }
472 : template <typename Arg_, typename... Args_>
473 : PROTOBUF_ALWAYS_INLINE void Component::set_partname(Arg_&& arg, Args_... args) {
474 77790 : ::google::protobuf::internal::TSanWrite(&_impl_);
475 77790 : SetHasBit(_impl_._has_bits_[0], 0x00000002U);
476 77790 : _impl_.partname_.Set(static_cast<Arg_&&>(arg), args..., GetArena());
477 : // @@protoc_insertion_point(field_set:Odb.Lib.Protobuf.ProductModel.Component.partName)
478 77790 : }
479 : inline ::std::string* PROTOBUF_NONNULL Component::mutable_partname()
480 : ABSL_ATTRIBUTE_LIFETIME_BOUND {
481 : SetHasBit(_impl_._has_bits_[0], 0x00000002U);
482 : ::std::string* _s = _internal_mutable_partname();
483 : // @@protoc_insertion_point(field_mutable:Odb.Lib.Protobuf.ProductModel.Component.partName)
484 : return _s;
485 : }
486 231950 : inline const ::std::string& Component::_internal_partname() const {
487 231950 : ::google::protobuf::internal::TSanRead(&_impl_);
488 231950 : return _impl_.partname_.Get();
489 : }
490 : inline void Component::_internal_set_partname(const ::std::string& value) {
491 88928 : ::google::protobuf::internal::TSanWrite(&_impl_);
492 88928 : _impl_.partname_.Set(value, GetArena());
493 88928 : }
494 : inline ::std::string* PROTOBUF_NONNULL Component::_internal_mutable_partname() {
495 : ::google::protobuf::internal::TSanWrite(&_impl_);
496 : return _impl_.partname_.Mutable( GetArena());
497 : }
498 : inline ::std::string* PROTOBUF_NULLABLE Component::release_partname() {
499 : ::google::protobuf::internal::TSanWrite(&_impl_);
500 : // @@protoc_insertion_point(field_release:Odb.Lib.Protobuf.ProductModel.Component.partName)
501 : if (!CheckHasBit(_impl_._has_bits_[0], 0x00000002U)) {
502 : return nullptr;
503 : }
504 : ClearHasBit(_impl_._has_bits_[0], 0x00000002U);
505 : auto* released = _impl_.partname_.Release();
506 : if (::google::protobuf::internal::DebugHardenForceCopyDefaultString()) {
507 : _impl_.partname_.Set("", GetArena());
508 : }
509 : return released;
510 : }
511 : inline void Component::set_allocated_partname(::std::string* PROTOBUF_NULLABLE value) {
512 : ::google::protobuf::internal::TSanWrite(&_impl_);
513 : if (value != nullptr) {
514 : SetHasBit(_impl_._has_bits_[0], 0x00000002U);
515 : } else {
516 : ClearHasBit(_impl_._has_bits_[0], 0x00000002U);
517 : }
518 : _impl_.partname_.SetAllocated(value, GetArena());
519 : if (::google::protobuf::internal::DebugHardenForceCopyDefaultString() && _impl_.partname_.IsDefault()) {
520 : _impl_.partname_.Set("", GetArena());
521 : }
522 : // @@protoc_insertion_point(field_set_allocated:Odb.Lib.Protobuf.ProductModel.Component.partName)
523 : }
524 :
525 : // optional .Odb.Lib.Protobuf.ProductModel.Package package = 3;
526 : inline bool Component::has_package() const {
527 : bool value = CheckHasBit(_impl_._has_bits_[0], 0x00000004U);
528 : PROTOBUF_ASSUME(!value || _impl_.package_ != nullptr);
529 : return value;
530 : }
531 20776 : inline const ::Odb::Lib::Protobuf::ProductModel::Package& Component::_internal_package() const {
532 20776 : ::google::protobuf::internal::TSanRead(&_impl_);
533 20776 : const ::Odb::Lib::Protobuf::ProductModel::Package* p = _impl_.package_;
534 20776 : return p != nullptr ? *p : reinterpret_cast<const ::Odb::Lib::Protobuf::ProductModel::Package&>(::Odb::Lib::Protobuf::ProductModel::_Package_default_instance_);
535 : }
536 20776 : inline const ::Odb::Lib::Protobuf::ProductModel::Package& Component::package() const ABSL_ATTRIBUTE_LIFETIME_BOUND {
537 : // @@protoc_insertion_point(field_get:Odb.Lib.Protobuf.ProductModel.Component.package)
538 20776 : return _internal_package();
539 : }
540 : inline void Component::unsafe_arena_set_allocated_package(
541 : ::Odb::Lib::Protobuf::ProductModel::Package* PROTOBUF_NULLABLE value) {
542 : ::google::protobuf::internal::TSanWrite(&_impl_);
543 : if (GetArena() == nullptr) {
544 : delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.package_);
545 : }
546 : _impl_.package_ = reinterpret_cast<::Odb::Lib::Protobuf::ProductModel::Package*>(value);
547 : if (value != nullptr) {
548 : SetHasBit(_impl_._has_bits_[0], 0x00000004U);
549 : } else {
550 : ClearHasBit(_impl_._has_bits_[0], 0x00000004U);
551 : }
552 : // @@protoc_insertion_point(field_unsafe_arena_set_allocated:Odb.Lib.Protobuf.ProductModel.Component.package)
553 : }
554 : inline ::Odb::Lib::Protobuf::ProductModel::Package* PROTOBUF_NULLABLE Component::release_package() {
555 : ::google::protobuf::internal::TSanWrite(&_impl_);
556 :
557 : ClearHasBit(_impl_._has_bits_[0], 0x00000004U);
558 : ::Odb::Lib::Protobuf::ProductModel::Package* released = _impl_.package_;
559 : _impl_.package_ = nullptr;
560 : if (::google::protobuf::internal::DebugHardenForceCopyInRelease()) {
561 : auto* old = reinterpret_cast<::google::protobuf::MessageLite*>(released);
562 : released = ::google::protobuf::internal::DuplicateIfNonNull(released);
563 : if (GetArena() == nullptr) {
564 : delete old;
565 : }
566 : } else {
567 : if (GetArena() != nullptr) {
568 : released = ::google::protobuf::internal::DuplicateIfNonNull(released);
569 : }
570 : }
571 : return released;
572 : }
573 : inline ::Odb::Lib::Protobuf::ProductModel::Package* PROTOBUF_NULLABLE Component::unsafe_arena_release_package() {
574 : ::google::protobuf::internal::TSanWrite(&_impl_);
575 : // @@protoc_insertion_point(field_release:Odb.Lib.Protobuf.ProductModel.Component.package)
576 :
577 : ClearHasBit(_impl_._has_bits_[0], 0x00000004U);
578 : ::Odb::Lib::Protobuf::ProductModel::Package* temp = _impl_.package_;
579 : _impl_.package_ = nullptr;
580 : return temp;
581 : }
582 77790 : inline ::Odb::Lib::Protobuf::ProductModel::Package* PROTOBUF_NONNULL Component::_internal_mutable_package() {
583 77790 : ::google::protobuf::internal::TSanWrite(&_impl_);
584 77790 : if (_impl_.package_ == nullptr) {
585 77790 : auto* p = ::google::protobuf::Message::DefaultConstruct<::Odb::Lib::Protobuf::ProductModel::Package>(GetArena());
586 77790 : _impl_.package_ = reinterpret_cast<::Odb::Lib::Protobuf::ProductModel::Package*>(p);
587 : }
588 77790 : return _impl_.package_;
589 : }
590 77790 : inline ::Odb::Lib::Protobuf::ProductModel::Package* PROTOBUF_NONNULL Component::mutable_package()
591 : ABSL_ATTRIBUTE_LIFETIME_BOUND {
592 77790 : SetHasBit(_impl_._has_bits_[0], 0x00000004U);
593 77790 : ::Odb::Lib::Protobuf::ProductModel::Package* _msg = _internal_mutable_package();
594 : // @@protoc_insertion_point(field_mutable:Odb.Lib.Protobuf.ProductModel.Component.package)
595 77790 : return _msg;
596 : }
597 : inline void Component::set_allocated_package(::Odb::Lib::Protobuf::ProductModel::Package* PROTOBUF_NULLABLE value) {
598 : ::google::protobuf::Arena* message_arena = GetArena();
599 : ::google::protobuf::internal::TSanWrite(&_impl_);
600 : if (message_arena == nullptr) {
601 : delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.package_);
602 : }
603 :
604 : if (value != nullptr) {
605 : ::google::protobuf::Arena* submessage_arena = reinterpret_cast<::google::protobuf::Message*>(value)->GetArena();
606 : if (message_arena != submessage_arena) {
607 : value = ::google::protobuf::internal::GetOwnedMessage(message_arena, value, submessage_arena);
608 : }
609 : SetHasBit(_impl_._has_bits_[0], 0x00000004U);
610 : } else {
611 : ClearHasBit(_impl_._has_bits_[0], 0x00000004U);
612 : }
613 :
614 : _impl_.package_ = reinterpret_cast<::Odb::Lib::Protobuf::ProductModel::Package*>(value);
615 : // @@protoc_insertion_point(field_set_allocated:Odb.Lib.Protobuf.ProductModel.Component.package)
616 : }
617 :
618 : // optional uint32 index = 4;
619 : inline bool Component::has_index() const {
620 : bool value = CheckHasBit(_impl_._has_bits_[0], 0x00000010U);
621 : return value;
622 : }
623 : inline void Component::clear_index() {
624 : ::google::protobuf::internal::TSanWrite(&_impl_);
625 : _impl_.index_ = 0u;
626 : ClearHasBit(_impl_._has_bits_[0],
627 : 0x00000010U);
628 : }
629 20776 : inline ::uint32_t Component::index() const {
630 : // @@protoc_insertion_point(field_get:Odb.Lib.Protobuf.ProductModel.Component.index)
631 20776 : return _internal_index();
632 : }
633 77790 : inline void Component::set_index(::uint32_t value) {
634 77790 : _internal_set_index(value);
635 77790 : SetHasBit(_impl_._has_bits_[0], 0x00000010U);
636 : // @@protoc_insertion_point(field_set:Odb.Lib.Protobuf.ProductModel.Component.index)
637 77790 : }
638 143022 : inline ::uint32_t Component::_internal_index() const {
639 143022 : ::google::protobuf::internal::TSanRead(&_impl_);
640 143022 : return _impl_.index_;
641 : }
642 77790 : inline void Component::_internal_set_index(::uint32_t value) {
643 77790 : ::google::protobuf::internal::TSanWrite(&_impl_);
644 77790 : _impl_.index_ = value;
645 77790 : }
646 :
647 : // optional .Odb.Lib.Protobuf.BoardSide side = 5;
648 : inline bool Component::has_side() const {
649 : bool value = CheckHasBit(_impl_._has_bits_[0], 0x00000020U);
650 : return value;
651 : }
652 : inline void Component::clear_side() {
653 : ::google::protobuf::internal::TSanWrite(&_impl_);
654 : _impl_.side_ = 0;
655 : ClearHasBit(_impl_._has_bits_[0],
656 : 0x00000020U);
657 : }
658 20776 : inline ::Odb::Lib::Protobuf::BoardSide Component::side() const {
659 : // @@protoc_insertion_point(field_get:Odb.Lib.Protobuf.ProductModel.Component.side)
660 20776 : return _internal_side();
661 : }
662 77790 : inline void Component::set_side(::Odb::Lib::Protobuf::BoardSide value) {
663 77790 : _internal_set_side(value);
664 77790 : SetHasBit(_impl_._has_bits_[0], 0x00000020U);
665 : // @@protoc_insertion_point(field_set:Odb.Lib.Protobuf.ProductModel.Component.side)
666 77790 : }
667 143022 : inline ::Odb::Lib::Protobuf::BoardSide Component::_internal_side() const {
668 143022 : ::google::protobuf::internal::TSanRead(&_impl_);
669 143022 : return static_cast<::Odb::Lib::Protobuf::BoardSide>(_impl_.side_);
670 : }
671 77790 : inline void Component::_internal_set_side(::Odb::Lib::Protobuf::BoardSide value) {
672 77790 : ::google::protobuf::internal::TSanWrite(&_impl_);
673 77790 : _impl_.side_ = value;
674 77790 : }
675 :
676 : // optional .Odb.Lib.Protobuf.ProductModel.Part part = 6;
677 : inline bool Component::has_part() const {
678 : bool value = CheckHasBit(_impl_._has_bits_[0], 0x00000008U);
679 : PROTOBUF_ASSUME(!value || _impl_.part_ != nullptr);
680 : return value;
681 : }
682 20776 : inline const ::Odb::Lib::Protobuf::ProductModel::Part& Component::_internal_part() const {
683 20776 : ::google::protobuf::internal::TSanRead(&_impl_);
684 20776 : const ::Odb::Lib::Protobuf::ProductModel::Part* p = _impl_.part_;
685 20776 : return p != nullptr ? *p : reinterpret_cast<const ::Odb::Lib::Protobuf::ProductModel::Part&>(::Odb::Lib::Protobuf::ProductModel::_Part_default_instance_);
686 : }
687 20776 : inline const ::Odb::Lib::Protobuf::ProductModel::Part& Component::part() const ABSL_ATTRIBUTE_LIFETIME_BOUND {
688 : // @@protoc_insertion_point(field_get:Odb.Lib.Protobuf.ProductModel.Component.part)
689 20776 : return _internal_part();
690 : }
691 : inline void Component::unsafe_arena_set_allocated_part(
692 : ::Odb::Lib::Protobuf::ProductModel::Part* PROTOBUF_NULLABLE value) {
693 : ::google::protobuf::internal::TSanWrite(&_impl_);
694 : if (GetArena() == nullptr) {
695 : delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.part_);
696 : }
697 : _impl_.part_ = reinterpret_cast<::Odb::Lib::Protobuf::ProductModel::Part*>(value);
698 : if (value != nullptr) {
699 : SetHasBit(_impl_._has_bits_[0], 0x00000008U);
700 : } else {
701 : ClearHasBit(_impl_._has_bits_[0], 0x00000008U);
702 : }
703 : // @@protoc_insertion_point(field_unsafe_arena_set_allocated:Odb.Lib.Protobuf.ProductModel.Component.part)
704 : }
705 : inline ::Odb::Lib::Protobuf::ProductModel::Part* PROTOBUF_NULLABLE Component::release_part() {
706 : ::google::protobuf::internal::TSanWrite(&_impl_);
707 :
708 : ClearHasBit(_impl_._has_bits_[0], 0x00000008U);
709 : ::Odb::Lib::Protobuf::ProductModel::Part* released = _impl_.part_;
710 : _impl_.part_ = nullptr;
711 : if (::google::protobuf::internal::DebugHardenForceCopyInRelease()) {
712 : auto* old = reinterpret_cast<::google::protobuf::MessageLite*>(released);
713 : released = ::google::protobuf::internal::DuplicateIfNonNull(released);
714 : if (GetArena() == nullptr) {
715 : delete old;
716 : }
717 : } else {
718 : if (GetArena() != nullptr) {
719 : released = ::google::protobuf::internal::DuplicateIfNonNull(released);
720 : }
721 : }
722 : return released;
723 : }
724 : inline ::Odb::Lib::Protobuf::ProductModel::Part* PROTOBUF_NULLABLE Component::unsafe_arena_release_part() {
725 : ::google::protobuf::internal::TSanWrite(&_impl_);
726 : // @@protoc_insertion_point(field_release:Odb.Lib.Protobuf.ProductModel.Component.part)
727 :
728 : ClearHasBit(_impl_._has_bits_[0], 0x00000008U);
729 : ::Odb::Lib::Protobuf::ProductModel::Part* temp = _impl_.part_;
730 : _impl_.part_ = nullptr;
731 : return temp;
732 : }
733 77790 : inline ::Odb::Lib::Protobuf::ProductModel::Part* PROTOBUF_NONNULL Component::_internal_mutable_part() {
734 77790 : ::google::protobuf::internal::TSanWrite(&_impl_);
735 77790 : if (_impl_.part_ == nullptr) {
736 77790 : auto* p = ::google::protobuf::Message::DefaultConstruct<::Odb::Lib::Protobuf::ProductModel::Part>(GetArena());
737 77790 : _impl_.part_ = reinterpret_cast<::Odb::Lib::Protobuf::ProductModel::Part*>(p);
738 : }
739 77790 : return _impl_.part_;
740 : }
741 77790 : inline ::Odb::Lib::Protobuf::ProductModel::Part* PROTOBUF_NONNULL Component::mutable_part()
742 : ABSL_ATTRIBUTE_LIFETIME_BOUND {
743 77790 : SetHasBit(_impl_._has_bits_[0], 0x00000008U);
744 77790 : ::Odb::Lib::Protobuf::ProductModel::Part* _msg = _internal_mutable_part();
745 : // @@protoc_insertion_point(field_mutable:Odb.Lib.Protobuf.ProductModel.Component.part)
746 77790 : return _msg;
747 : }
748 : inline void Component::set_allocated_part(::Odb::Lib::Protobuf::ProductModel::Part* PROTOBUF_NULLABLE value) {
749 : ::google::protobuf::Arena* message_arena = GetArena();
750 : ::google::protobuf::internal::TSanWrite(&_impl_);
751 : if (message_arena == nullptr) {
752 : delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.part_);
753 : }
754 :
755 : if (value != nullptr) {
756 : ::google::protobuf::Arena* submessage_arena = reinterpret_cast<::google::protobuf::Message*>(value)->GetArena();
757 : if (message_arena != submessage_arena) {
758 : value = ::google::protobuf::internal::GetOwnedMessage(message_arena, value, submessage_arena);
759 : }
760 : SetHasBit(_impl_._has_bits_[0], 0x00000008U);
761 : } else {
762 : ClearHasBit(_impl_._has_bits_[0], 0x00000008U);
763 : }
764 :
765 : _impl_.part_ = reinterpret_cast<::Odb::Lib::Protobuf::ProductModel::Part*>(value);
766 : // @@protoc_insertion_point(field_set_allocated:Odb.Lib.Protobuf.ProductModel.Component.part)
767 : }
768 :
769 : // optional uint32 id = 7;
770 20776 : inline bool Component::has_id() const {
771 20776 : bool value = CheckHasBit(_impl_._has_bits_[0], 0x00000040U);
772 20776 : return value;
773 : }
774 : inline void Component::clear_id() {
775 : ::google::protobuf::internal::TSanWrite(&_impl_);
776 : _impl_.id_ = 0u;
777 : ClearHasBit(_impl_._has_bits_[0],
778 : 0x00000040U);
779 : }
780 20776 : inline ::uint32_t Component::id() const {
781 : // @@protoc_insertion_point(field_get:Odb.Lib.Protobuf.ProductModel.Component.id)
782 20776 : return _internal_id();
783 : }
784 77790 : inline void Component::set_id(::uint32_t value) {
785 77790 : _internal_set_id(value);
786 77790 : SetHasBit(_impl_._has_bits_[0], 0x00000040U);
787 : // @@protoc_insertion_point(field_set:Odb.Lib.Protobuf.ProductModel.Component.id)
788 77790 : }
789 143022 : inline ::uint32_t Component::_internal_id() const {
790 143022 : ::google::protobuf::internal::TSanRead(&_impl_);
791 143022 : return _impl_.id_;
792 : }
793 77790 : inline void Component::_internal_set_id(::uint32_t value) {
794 77790 : ::google::protobuf::internal::TSanWrite(&_impl_);
795 77790 : _impl_.id_ = value;
796 77790 : }
797 :
798 : #ifdef __GNUC__
799 : #pragma GCC diagnostic pop
800 : #endif // __GNUC__
801 :
802 : // @@protoc_insertion_point(namespace_scope)
803 : } // namespace ProductModel
804 : } // namespace Protobuf
805 : } // namespace Lib
806 : } // namespace Odb
807 :
808 :
809 : // @@protoc_insertion_point(global_scope)
810 :
811 : #include "google/protobuf/port_undef.inc"
812 :
813 : #endif // component_2eproto_2epb_2eh
|