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 : #include "component.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 Component::Impl_::Impl_(
33 : ::_pbi::ConstantInitialized) noexcept
34 : : _cached_size_{0},
35 : refdes_(
36 : &::google::protobuf::internal::fixed_address_empty_string,
37 : ::_pbi::ConstantInitialized()),
38 : partname_(
39 : &::google::protobuf::internal::fixed_address_empty_string,
40 : ::_pbi::ConstantInitialized()),
41 : package_{nullptr},
42 : part_{nullptr},
43 : index_{0u},
44 : side_{static_cast< ::Odb::Lib::Protobuf::BoardSide >(0)},
45 : id_{0u} {}
46 :
47 : template <typename>
48 : PROTOBUF_CONSTEXPR Component::Component(::_pbi::ConstantInitialized)
49 : #if defined(PROTOBUF_CUSTOM_VTABLE)
50 : : ::google::protobuf::Message(Component_class_data_.base()),
51 : #else // PROTOBUF_CUSTOM_VTABLE
52 : : ::google::protobuf::Message(),
53 : #endif // PROTOBUF_CUSTOM_VTABLE
54 : _impl_(::_pbi::ConstantInitialized()) {
55 : }
56 : struct ComponentDefaultTypeInternal {
57 : PROTOBUF_CONSTEXPR ComponentDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {}
58 319 : ~ComponentDefaultTypeInternal() {}
59 : union {
60 : Component _instance;
61 : };
62 : };
63 :
64 : PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT ODBDESIGN_EXPORT
65 : PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 ComponentDefaultTypeInternal _Component_default_instance_;
66 : } // namespace ProductModel
67 : } // namespace Protobuf
68 : } // namespace Lib
69 : } // namespace Odb
70 : static constexpr const ::_pb::EnumDescriptor* PROTOBUF_NONNULL* PROTOBUF_NULLABLE
71 : file_level_enum_descriptors_component_2eproto = nullptr;
72 : static constexpr const ::_pb::ServiceDescriptor* PROTOBUF_NONNULL* PROTOBUF_NULLABLE
73 : file_level_service_descriptors_component_2eproto = nullptr;
74 : const ::uint32_t
75 : TableStruct_component_2eproto::offsets[] ABSL_ATTRIBUTE_SECTION_VARIABLE(
76 : protodesc_cold) = {
77 : 0x081, // bitmap
78 : PROTOBUF_FIELD_OFFSET(::Odb::Lib::Protobuf::ProductModel::Component, _impl_._has_bits_),
79 : 10, // hasbit index offset
80 : PROTOBUF_FIELD_OFFSET(::Odb::Lib::Protobuf::ProductModel::Component, _impl_.refdes_),
81 : PROTOBUF_FIELD_OFFSET(::Odb::Lib::Protobuf::ProductModel::Component, _impl_.partname_),
82 : PROTOBUF_FIELD_OFFSET(::Odb::Lib::Protobuf::ProductModel::Component, _impl_.package_),
83 : PROTOBUF_FIELD_OFFSET(::Odb::Lib::Protobuf::ProductModel::Component, _impl_.index_),
84 : PROTOBUF_FIELD_OFFSET(::Odb::Lib::Protobuf::ProductModel::Component, _impl_.side_),
85 : PROTOBUF_FIELD_OFFSET(::Odb::Lib::Protobuf::ProductModel::Component, _impl_.part_),
86 : PROTOBUF_FIELD_OFFSET(::Odb::Lib::Protobuf::ProductModel::Component, _impl_.id_),
87 : 0,
88 : 1,
89 : 2,
90 : 4,
91 : 5,
92 : 3,
93 : 6,
94 : };
95 :
96 : static const ::_pbi::MigrationSchema
97 : schemas[] ABSL_ATTRIBUTE_SECTION_VARIABLE(protodesc_cold) = {
98 : {0, sizeof(::Odb::Lib::Protobuf::ProductModel::Component)},
99 : };
100 : static const ::_pb::Message* PROTOBUF_NONNULL const file_default_instances[] = {
101 : &::Odb::Lib::Protobuf::ProductModel::_Component_default_instance_._instance,
102 : };
103 : const char descriptor_table_protodef_component_2eproto[] ABSL_ATTRIBUTE_SECTION_VARIABLE(
104 : protodesc_cold) = {
105 : "\n\017component.proto\022\035Odb.Lib.Protobuf.Prod"
106 : "uctModel\032\013enums.proto\032\npart.proto\032\rpacka"
107 : "ge.proto\"\311\002\n\tComponent\022\023\n\006refDes\030\001 \001(\tH\000"
108 : "\210\001\001\022\025\n\010partName\030\002 \001(\tH\001\210\001\001\022<\n\007package\030\003 "
109 : "\001(\0132&.Odb.Lib.Protobuf.ProductModel.Pack"
110 : "ageH\002\210\001\001\022\022\n\005index\030\004 \001(\rH\003\210\001\001\022.\n\004side\030\005 \001"
111 : "(\0162\033.Odb.Lib.Protobuf.BoardSideH\004\210\001\001\0226\n\004"
112 : "part\030\006 \001(\0132#.Odb.Lib.Protobuf.ProductMod"
113 : "el.PartH\005\210\001\001\022\017\n\002id\030\007 \001(\rH\006\210\001\001B\t\n\007_refDes"
114 : "B\013\n\t_partNameB\n\n\010_packageB\010\n\006_indexB\007\n\005_"
115 : "sideB\007\n\005_partB\005\n\003_idB\003\370\001\001b\006proto3"
116 : };
117 : static const ::_pbi::DescriptorTable* PROTOBUF_NONNULL const
118 : descriptor_table_component_2eproto_deps[3] = {
119 : &::descriptor_table_enums_2eproto,
120 : &::descriptor_table_package_2eproto,
121 : &::descriptor_table_part_2eproto,
122 : };
123 : static ::absl::once_flag descriptor_table_component_2eproto_once;
124 : PROTOBUF_CONSTINIT const ::_pbi::DescriptorTable descriptor_table_component_2eproto = {
125 : false,
126 : false,
127 : 433,
128 : descriptor_table_protodef_component_2eproto,
129 : "component.proto",
130 : &descriptor_table_component_2eproto_once,
131 : descriptor_table_component_2eproto_deps,
132 : 3,
133 : 1,
134 : schemas,
135 : file_default_instances,
136 : TableStruct_component_2eproto::offsets,
137 : file_level_enum_descriptors_component_2eproto,
138 : file_level_service_descriptors_component_2eproto,
139 : };
140 : namespace Odb {
141 : namespace Lib {
142 : namespace Protobuf {
143 : namespace ProductModel {
144 : // ===================================================================
145 :
146 : class Component::_Internal {
147 : public:
148 : using HasBits =
149 : decltype(::std::declval<Component>()._impl_._has_bits_);
150 : static constexpr ::int32_t kHasBitsOffset =
151 : 8 * PROTOBUF_FIELD_OFFSET(Component, _impl_._has_bits_);
152 : };
153 :
154 0 : void Component::clear_package() {
155 0 : ::google::protobuf::internal::TSanWrite(&_impl_);
156 0 : if (_impl_.package_ != nullptr) _impl_.package_->Clear();
157 0 : ClearHasBit(_impl_._has_bits_[0],
158 : 0x00000004U);
159 0 : }
160 0 : void Component::clear_part() {
161 0 : ::google::protobuf::internal::TSanWrite(&_impl_);
162 0 : if (_impl_.part_ != nullptr) _impl_.part_->Clear();
163 0 : ClearHasBit(_impl_._has_bits_[0],
164 : 0x00000008U);
165 0 : }
166 181214 : Component::Component(::google::protobuf::Arena* PROTOBUF_NULLABLE arena)
167 : #if defined(PROTOBUF_CUSTOM_VTABLE)
168 : : ::google::protobuf::Message(arena, Component_class_data_.base()) {
169 : #else // PROTOBUF_CUSTOM_VTABLE
170 181214 : : ::google::protobuf::Message(arena) {
171 : #endif // PROTOBUF_CUSTOM_VTABLE
172 181214 : SharedCtor(arena);
173 : // @@protoc_insertion_point(arena_constructor:Odb.Lib.Protobuf.ProductModel.Component)
174 181214 : }
175 163022 : PROTOBUF_NDEBUG_INLINE Component::Impl_::Impl_(
176 : [[maybe_unused]] ::google::protobuf::internal::InternalVisibility visibility,
177 : [[maybe_unused]] ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const Impl_& from,
178 163022 : [[maybe_unused]] const ::Odb::Lib::Protobuf::ProductModel::Component& from_msg)
179 163022 : : _has_bits_{from._has_bits_},
180 163022 : _cached_size_{0},
181 163022 : refdes_(arena, from.refdes_),
182 163022 : partname_(arena, from.partname_) {}
183 :
184 163022 : Component::Component(
185 : ::google::protobuf::Arena* PROTOBUF_NULLABLE arena,
186 163022 : const Component& from)
187 : #if defined(PROTOBUF_CUSTOM_VTABLE)
188 : : ::google::protobuf::Message(arena, Component_class_data_.base()) {
189 : #else // PROTOBUF_CUSTOM_VTABLE
190 163022 : : ::google::protobuf::Message(arena) {
191 : #endif // PROTOBUF_CUSTOM_VTABLE
192 163022 : Component* const _this = this;
193 : (void)_this;
194 163022 : _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(
195 163022 : from._internal_metadata_);
196 163022 : new (&_impl_) Impl_(internal_visibility(), arena, from._impl_, from);
197 163022 : ::uint32_t cached_has_bits = _impl_._has_bits_[0];
198 163022 : _impl_.package_ = (CheckHasBit(cached_has_bits, 0x00000004U))
199 326044 : ? ::google::protobuf::Message::CopyConstruct(arena, *from._impl_.package_)
200 : : nullptr;
201 326044 : _impl_.part_ = (CheckHasBit(cached_has_bits, 0x00000008U))
202 326044 : ? ::google::protobuf::Message::CopyConstruct(arena, *from._impl_.part_)
203 : : nullptr;
204 163022 : ::memcpy(reinterpret_cast<char*>(&_impl_) +
205 : offsetof(Impl_, index_),
206 163022 : reinterpret_cast<const char*>(&from._impl_) +
207 : offsetof(Impl_, index_),
208 : offsetof(Impl_, id_) -
209 : offsetof(Impl_, index_) +
210 : sizeof(Impl_::id_));
211 :
212 : // @@protoc_insertion_point(copy_constructor:Odb.Lib.Protobuf.ProductModel.Component)
213 163022 : }
214 181214 : PROTOBUF_NDEBUG_INLINE Component::Impl_::Impl_(
215 : [[maybe_unused]] ::google::protobuf::internal::InternalVisibility visibility,
216 181214 : [[maybe_unused]] ::google::protobuf::Arena* PROTOBUF_NULLABLE arena)
217 181214 : : _cached_size_{0},
218 181214 : refdes_(arena),
219 362428 : partname_(arena) {}
220 :
221 181214 : inline void Component::SharedCtor(::_pb::Arena* PROTOBUF_NULLABLE arena) {
222 181214 : new (&_impl_) Impl_(internal_visibility(), arena);
223 181214 : ::memset(reinterpret_cast<char*>(&_impl_) +
224 : offsetof(Impl_, package_),
225 : 0,
226 : offsetof(Impl_, id_) -
227 : offsetof(Impl_, package_) +
228 : sizeof(Impl_::id_));
229 181214 : }
230 675706 : Component::~Component() {
231 : // @@protoc_insertion_point(destructor:Odb.Lib.Protobuf.ProductModel.Component)
232 344236 : SharedDtor(*this);
233 675706 : }
234 344236 : inline void Component::SharedDtor(MessageLite& self) {
235 344236 : Component& this_ = static_cast<Component&>(self);
236 : if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) {
237 344236 : this_.CheckHasBitConsistency();
238 : }
239 344236 : this_._internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>();
240 344236 : ABSL_DCHECK(this_.GetArena() == nullptr);
241 344236 : this_._impl_.refdes_.Destroy();
242 344236 : this_._impl_.partname_.Destroy();
243 344236 : delete this_._impl_.package_;
244 344236 : delete this_._impl_.part_;
245 344236 : this_._impl_.~Impl_();
246 344236 : }
247 :
248 21571 : inline void* PROTOBUF_NONNULL Component::PlacementNew_(
249 : const void* PROTOBUF_NONNULL, void* PROTOBUF_NONNULL mem,
250 : ::google::protobuf::Arena* PROTOBUF_NULLABLE arena) {
251 21571 : return ::new (mem) Component(arena);
252 : }
253 : constexpr auto Component::InternalNewImpl_() {
254 : return ::google::protobuf::internal::MessageCreator::CopyInit(sizeof(Component),
255 : alignof(Component));
256 : }
257 : constexpr auto Component::InternalGenerateClassData_() {
258 : return ::google::protobuf::internal::ClassDataFull{
259 : ::google::protobuf::internal::ClassData{
260 : &_Component_default_instance_._instance,
261 : &_table_.header,
262 : nullptr, // OnDemandRegisterArenaDtor
263 : nullptr, // IsInitialized
264 : &Component::MergeImpl,
265 : ::google::protobuf::Message::GetNewImpl<Component>(),
266 : #if defined(PROTOBUF_CUSTOM_VTABLE)
267 : &Component::SharedDtor,
268 : ::google::protobuf::Message::GetClearImpl<Component>(), &Component::ByteSizeLong,
269 : &Component::_InternalSerialize,
270 : #endif // PROTOBUF_CUSTOM_VTABLE
271 : PROTOBUF_FIELD_OFFSET(Component, _impl_._cached_size_),
272 : false,
273 : },
274 : &Component::kDescriptorMethods,
275 : &descriptor_table_component_2eproto,
276 : nullptr, // tracker
277 : };
278 : }
279 :
280 : PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 const
281 : ::google::protobuf::internal::ClassDataFull Component_class_data_ =
282 : Component::InternalGenerateClassData_();
283 :
284 : PROTOBUF_ATTRIBUTE_WEAK const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL
285 1327755 : Component::GetClassData() const {
286 1327755 : ::google::protobuf::internal::PrefetchToLocalCache(&Component_class_data_);
287 1327755 : ::google::protobuf::internal::PrefetchToLocalCache(Component_class_data_.tc_table);
288 1327755 : return Component_class_data_.base();
289 : }
290 : PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1
291 : const ::_pbi::TcParseTable<3, 7, 2, 62, 2>
292 : Component::_table_ = {
293 : {
294 : PROTOBUF_FIELD_OFFSET(Component, _impl_._has_bits_),
295 : 0, // no _extensions_
296 : 7, 56, // max_field_number, fast_idx_mask
297 : offsetof(decltype(_table_), field_lookup_table),
298 : 4294967168, // skipmap
299 : offsetof(decltype(_table_), field_entries),
300 : 7, // num_field_entries
301 : 2, // num_aux_entries
302 : offsetof(decltype(_table_), aux_entries),
303 : Component_class_data_.base(),
304 : nullptr, // post_loop_handler
305 : ::_pbi::TcParser::GenericFallback, // fallback
306 : #ifdef PROTOBUF_PREFETCH_PARSE_TABLE
307 : ::_pbi::TcParser::GetTable<::Odb::Lib::Protobuf::ProductModel::Component>(), // to_prefetch
308 : #endif // PROTOBUF_PREFETCH_PARSE_TABLE
309 : }, {{
310 : {::_pbi::TcParser::MiniParse, {}},
311 : // optional string refDes = 1;
312 : {::_pbi::TcParser::FastUS1,
313 : {10, 0, 0,
314 : PROTOBUF_FIELD_OFFSET(Component, _impl_.refdes_)}},
315 : // optional string partName = 2;
316 : {::_pbi::TcParser::FastUS1,
317 : {18, 1, 0,
318 : PROTOBUF_FIELD_OFFSET(Component, _impl_.partname_)}},
319 : // optional .Odb.Lib.Protobuf.ProductModel.Package package = 3;
320 : {::_pbi::TcParser::FastMtS1,
321 : {26, 2, 0,
322 : PROTOBUF_FIELD_OFFSET(Component, _impl_.package_)}},
323 : // optional uint32 index = 4;
324 : {::_pbi::TcParser::SingularVarintNoZag1<::uint32_t, offsetof(Component, _impl_.index_), 4>(),
325 : {32, 4, 0,
326 : PROTOBUF_FIELD_OFFSET(Component, _impl_.index_)}},
327 : // optional .Odb.Lib.Protobuf.BoardSide side = 5;
328 : {::_pbi::TcParser::SingularVarintNoZag1<::uint32_t, offsetof(Component, _impl_.side_), 5>(),
329 : {40, 5, 0,
330 : PROTOBUF_FIELD_OFFSET(Component, _impl_.side_)}},
331 : // optional .Odb.Lib.Protobuf.ProductModel.Part part = 6;
332 : {::_pbi::TcParser::FastMtS1,
333 : {50, 3, 1,
334 : PROTOBUF_FIELD_OFFSET(Component, _impl_.part_)}},
335 : // optional uint32 id = 7;
336 : {::_pbi::TcParser::SingularVarintNoZag1<::uint32_t, offsetof(Component, _impl_.id_), 6>(),
337 : {56, 6, 0,
338 : PROTOBUF_FIELD_OFFSET(Component, _impl_.id_)}},
339 : }}, {{
340 : 65535, 65535
341 : }}, {{
342 : // optional string refDes = 1;
343 : {PROTOBUF_FIELD_OFFSET(Component, _impl_.refdes_), _Internal::kHasBitsOffset + 0, 0, (0 | ::_fl::kFcOptional | ::_fl::kUtf8String | ::_fl::kRepAString)},
344 : // optional string partName = 2;
345 : {PROTOBUF_FIELD_OFFSET(Component, _impl_.partname_), _Internal::kHasBitsOffset + 1, 0, (0 | ::_fl::kFcOptional | ::_fl::kUtf8String | ::_fl::kRepAString)},
346 : // optional .Odb.Lib.Protobuf.ProductModel.Package package = 3;
347 : {PROTOBUF_FIELD_OFFSET(Component, _impl_.package_), _Internal::kHasBitsOffset + 2, 0, (0 | ::_fl::kFcOptional | ::_fl::kMessage | ::_fl::kTvTable)},
348 : // optional uint32 index = 4;
349 : {PROTOBUF_FIELD_OFFSET(Component, _impl_.index_), _Internal::kHasBitsOffset + 4, 0, (0 | ::_fl::kFcOptional | ::_fl::kUInt32)},
350 : // optional .Odb.Lib.Protobuf.BoardSide side = 5;
351 : {PROTOBUF_FIELD_OFFSET(Component, _impl_.side_), _Internal::kHasBitsOffset + 5, 0, (0 | ::_fl::kFcOptional | ::_fl::kOpenEnum)},
352 : // optional .Odb.Lib.Protobuf.ProductModel.Part part = 6;
353 : {PROTOBUF_FIELD_OFFSET(Component, _impl_.part_), _Internal::kHasBitsOffset + 3, 1, (0 | ::_fl::kFcOptional | ::_fl::kMessage | ::_fl::kTvTable)},
354 : // optional uint32 id = 7;
355 : {PROTOBUF_FIELD_OFFSET(Component, _impl_.id_), _Internal::kHasBitsOffset + 6, 0, (0 | ::_fl::kFcOptional | ::_fl::kUInt32)},
356 : }},
357 : {{
358 : {::_pbi::TcParser::GetTable<::Odb::Lib::Protobuf::ProductModel::Package>()},
359 : {::_pbi::TcParser::GetTable<::Odb::Lib::Protobuf::ProductModel::Part>()},
360 : }},
361 : {{
362 : "\47\6\10\0\0\0\0\0"
363 : "Odb.Lib.Protobuf.ProductModel.Component"
364 : "refDes"
365 : "partName"
366 : }},
367 : };
368 88928 : PROTOBUF_NOINLINE void Component::Clear() {
369 : // @@protoc_insertion_point(message_clear_start:Odb.Lib.Protobuf.ProductModel.Component)
370 88928 : ::google::protobuf::internal::TSanWrite(&_impl_);
371 88928 : ::uint32_t cached_has_bits = 0;
372 : // Prevent compiler warnings about cached_has_bits being unused
373 : (void) cached_has_bits;
374 :
375 88928 : cached_has_bits = _impl_._has_bits_[0];
376 88928 : if (BatchCheckHasBit(cached_has_bits, 0x0000000fU)) {
377 0 : if (CheckHasBit(cached_has_bits, 0x00000001U)) {
378 0 : _impl_.refdes_.ClearNonDefaultToEmpty();
379 : }
380 0 : if (CheckHasBit(cached_has_bits, 0x00000002U)) {
381 0 : _impl_.partname_.ClearNonDefaultToEmpty();
382 : }
383 0 : if (CheckHasBit(cached_has_bits, 0x00000004U)) {
384 0 : ABSL_DCHECK(_impl_.package_ != nullptr);
385 0 : _impl_.package_->Clear();
386 : }
387 0 : if (CheckHasBit(cached_has_bits, 0x00000008U)) {
388 0 : ABSL_DCHECK(_impl_.part_ != nullptr);
389 0 : _impl_.part_->Clear();
390 : }
391 : }
392 88928 : if (BatchCheckHasBit(cached_has_bits, 0x00000070U)) {
393 0 : ::memset(&_impl_.index_, 0, static_cast<::size_t>(
394 : reinterpret_cast<char*>(&_impl_.id_) -
395 : reinterpret_cast<char*>(&_impl_.index_)) + sizeof(_impl_.id_));
396 : }
397 88928 : _impl_._has_bits_.Clear();
398 88928 : _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>();
399 88928 : }
400 :
401 : #if defined(PROTOBUF_CUSTOM_VTABLE)
402 : ::uint8_t* PROTOBUF_NONNULL Component::_InternalSerialize(
403 : const ::google::protobuf::MessageLite& base, ::uint8_t* PROTOBUF_NONNULL target,
404 : ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) {
405 : const Component& this_ = static_cast<const Component&>(base);
406 : #else // PROTOBUF_CUSTOM_VTABLE
407 43488 : ::uint8_t* PROTOBUF_NONNULL Component::_InternalSerialize(
408 : ::uint8_t* PROTOBUF_NONNULL target,
409 : ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const {
410 43488 : const Component& this_ = *this;
411 : #endif // PROTOBUF_CUSTOM_VTABLE
412 : if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) {
413 43488 : this_.CheckHasBitConsistency();
414 : }
415 : // @@protoc_insertion_point(serialize_to_array_start:Odb.Lib.Protobuf.ProductModel.Component)
416 43488 : ::uint32_t cached_has_bits = 0;
417 : (void)cached_has_bits;
418 :
419 43488 : cached_has_bits = this_._impl_._has_bits_[0];
420 : // optional string refDes = 1;
421 43488 : if (CheckHasBit(cached_has_bits, 0x00000001U)) {
422 43488 : const ::std::string& _s = this_._internal_refdes();
423 86976 : ::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
424 43488 : _s.data(), static_cast<int>(_s.length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "Odb.Lib.Protobuf.ProductModel.Component.refDes");
425 43488 : target = stream->WriteStringMaybeAliased(1, _s, target);
426 : }
427 :
428 : // optional string partName = 2;
429 43488 : if (CheckHasBit(cached_has_bits, 0x00000002U)) {
430 43488 : const ::std::string& _s = this_._internal_partname();
431 86976 : ::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
432 43488 : _s.data(), static_cast<int>(_s.length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "Odb.Lib.Protobuf.ProductModel.Component.partName");
433 43488 : target = stream->WriteStringMaybeAliased(2, _s, target);
434 : }
435 :
436 : // optional .Odb.Lib.Protobuf.ProductModel.Package package = 3;
437 43488 : if (CheckHasBit(cached_has_bits, 0x00000004U)) {
438 43488 : target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage(
439 43488 : 3, *this_._impl_.package_, this_._impl_.package_->GetCachedSize(), target,
440 : stream);
441 : }
442 :
443 : // optional uint32 index = 4;
444 43488 : if (CheckHasBit(cached_has_bits, 0x00000010U)) {
445 43488 : target = stream->EnsureSpace(target);
446 43488 : target = ::_pbi::WireFormatLite::WriteUInt32ToArray(
447 : 4, this_._internal_index(), target);
448 : }
449 :
450 : // optional .Odb.Lib.Protobuf.BoardSide side = 5;
451 43488 : if (CheckHasBit(cached_has_bits, 0x00000020U)) {
452 43488 : target = stream->EnsureSpace(target);
453 43488 : target = ::_pbi::WireFormatLite::WriteEnumToArray(
454 43488 : 5, this_._internal_side(), target);
455 : }
456 :
457 : // optional .Odb.Lib.Protobuf.ProductModel.Part part = 6;
458 43488 : if (CheckHasBit(cached_has_bits, 0x00000008U)) {
459 43488 : target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage(
460 43488 : 6, *this_._impl_.part_, this_._impl_.part_->GetCachedSize(), target,
461 : stream);
462 : }
463 :
464 : // optional uint32 id = 7;
465 43488 : if (CheckHasBit(cached_has_bits, 0x00000040U)) {
466 43488 : target = stream->EnsureSpace(target);
467 43488 : target = ::_pbi::WireFormatLite::WriteUInt32ToArray(
468 : 7, this_._internal_id(), target);
469 : }
470 :
471 43488 : if (ABSL_PREDICT_FALSE(this_._internal_metadata_.have_unknown_fields())) {
472 : target =
473 0 : ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray(
474 : this_._internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream);
475 : }
476 : // @@protoc_insertion_point(serialize_to_array_end:Odb.Lib.Protobuf.ProductModel.Component)
477 43488 : return target;
478 : }
479 :
480 : #if defined(PROTOBUF_CUSTOM_VTABLE)
481 : ::size_t Component::ByteSizeLong(const MessageLite& base) {
482 : const Component& this_ = static_cast<const Component&>(base);
483 : #else // PROTOBUF_CUSTOM_VTABLE
484 78758 : ::size_t Component::ByteSizeLong() const {
485 78758 : const Component& this_ = *this;
486 : #endif // PROTOBUF_CUSTOM_VTABLE
487 : // @@protoc_insertion_point(message_byte_size_start:Odb.Lib.Protobuf.ProductModel.Component)
488 78758 : ::size_t total_size = 0;
489 :
490 78758 : ::uint32_t cached_has_bits = 0;
491 : // Prevent compiler warnings about cached_has_bits being unused
492 : (void)cached_has_bits;
493 :
494 : ::_pbi::Prefetch5LinesFrom7Lines(&this_);
495 78758 : cached_has_bits = this_._impl_._has_bits_[0];
496 78758 : if (BatchCheckHasBit(cached_has_bits, 0x0000007fU)) {
497 : // optional string refDes = 1;
498 78758 : if (CheckHasBit(cached_has_bits, 0x00000001U)) {
499 78758 : total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize(
500 : this_._internal_refdes());
501 : }
502 : // optional string partName = 2;
503 78758 : if (CheckHasBit(cached_has_bits, 0x00000002U)) {
504 78758 : total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize(
505 : this_._internal_partname());
506 : }
507 : // optional .Odb.Lib.Protobuf.ProductModel.Package package = 3;
508 78758 : if (CheckHasBit(cached_has_bits, 0x00000004U)) {
509 78758 : total_size += 1 +
510 78758 : ::google::protobuf::internal::WireFormatLite::MessageSize(*this_._impl_.package_);
511 : }
512 : // optional .Odb.Lib.Protobuf.ProductModel.Part part = 6;
513 78758 : if (CheckHasBit(cached_has_bits, 0x00000008U)) {
514 78758 : total_size += 1 +
515 78758 : ::google::protobuf::internal::WireFormatLite::MessageSize(*this_._impl_.part_);
516 : }
517 : // optional uint32 index = 4;
518 78758 : if (CheckHasBit(cached_has_bits, 0x00000010U)) {
519 78758 : total_size += ::_pbi::WireFormatLite::UInt32SizePlusOne(
520 : this_._internal_index());
521 : }
522 : // optional .Odb.Lib.Protobuf.BoardSide side = 5;
523 78758 : if (CheckHasBit(cached_has_bits, 0x00000020U)) {
524 78758 : total_size += 1 +
525 78758 : ::_pbi::WireFormatLite::EnumSize(this_._internal_side());
526 : }
527 : // optional uint32 id = 7;
528 78758 : if (CheckHasBit(cached_has_bits, 0x00000040U)) {
529 78758 : total_size += ::_pbi::WireFormatLite::UInt32SizePlusOne(
530 : this_._internal_id());
531 : }
532 : }
533 78758 : return this_.MaybeComputeUnknownFieldsSize(total_size,
534 78758 : &this_._impl_._cached_size_);
535 : }
536 :
537 88928 : void Component::MergeImpl(::google::protobuf::MessageLite& to_msg,
538 : const ::google::protobuf::MessageLite& from_msg) {
539 88928 : auto* const _this =
540 : static_cast<Component*>(&to_msg);
541 88928 : auto& from = static_cast<const Component&>(from_msg);
542 : if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) {
543 88928 : from.CheckHasBitConsistency();
544 : }
545 88928 : ::google::protobuf::Arena* arena = _this->GetArena();
546 : // @@protoc_insertion_point(class_specific_merge_from_start:Odb.Lib.Protobuf.ProductModel.Component)
547 88928 : ABSL_DCHECK_NE(&from, _this);
548 88928 : ::uint32_t cached_has_bits = 0;
549 : (void)cached_has_bits;
550 :
551 88928 : cached_has_bits = from._impl_._has_bits_[0];
552 88928 : if (BatchCheckHasBit(cached_has_bits, 0x0000007fU)) {
553 88928 : if (CheckHasBit(cached_has_bits, 0x00000001U)) {
554 88928 : _this->_internal_set_refdes(from._internal_refdes());
555 : }
556 88928 : if (CheckHasBit(cached_has_bits, 0x00000002U)) {
557 88928 : _this->_internal_set_partname(from._internal_partname());
558 : }
559 88928 : if (CheckHasBit(cached_has_bits, 0x00000004U)) {
560 88928 : ABSL_DCHECK(from._impl_.package_ != nullptr);
561 88928 : if (_this->_impl_.package_ == nullptr) {
562 177856 : _this->_impl_.package_ = ::google::protobuf::Message::CopyConstruct(arena, *from._impl_.package_);
563 : } else {
564 0 : _this->_impl_.package_->MergeFrom(*from._impl_.package_);
565 : }
566 : }
567 88928 : if (CheckHasBit(cached_has_bits, 0x00000008U)) {
568 88928 : ABSL_DCHECK(from._impl_.part_ != nullptr);
569 88928 : if (_this->_impl_.part_ == nullptr) {
570 177856 : _this->_impl_.part_ = ::google::protobuf::Message::CopyConstruct(arena, *from._impl_.part_);
571 : } else {
572 0 : _this->_impl_.part_->MergeFrom(*from._impl_.part_);
573 : }
574 : }
575 88928 : if (CheckHasBit(cached_has_bits, 0x00000010U)) {
576 88928 : _this->_impl_.index_ = from._impl_.index_;
577 : }
578 88928 : if (CheckHasBit(cached_has_bits, 0x00000020U)) {
579 88928 : _this->_impl_.side_ = from._impl_.side_;
580 : }
581 88928 : if (CheckHasBit(cached_has_bits, 0x00000040U)) {
582 88928 : _this->_impl_.id_ = from._impl_.id_;
583 : }
584 : }
585 88928 : _this->_impl_._has_bits_[0] |= cached_has_bits;
586 88928 : _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(
587 88928 : from._internal_metadata_);
588 88928 : }
589 :
590 81853 : void Component::CopyFrom(const Component& from) {
591 : // @@protoc_insertion_point(class_specific_copy_from_start:Odb.Lib.Protobuf.ProductModel.Component)
592 81853 : if (&from == this) return;
593 81853 : Clear();
594 81853 : MergeFrom(from);
595 : }
596 :
597 :
598 0 : void Component::InternalSwap(Component* PROTOBUF_RESTRICT PROTOBUF_NONNULL other) {
599 : using ::std::swap;
600 0 : auto* arena = GetArena();
601 0 : ABSL_DCHECK_EQ(arena, other->GetArena());
602 0 : _internal_metadata_.InternalSwap(&other->_internal_metadata_);
603 0 : swap(_impl_._has_bits_[0], other->_impl_._has_bits_[0]);
604 0 : ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.refdes_, &other->_impl_.refdes_, arena);
605 0 : ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.partname_, &other->_impl_.partname_, arena);
606 : ::google::protobuf::internal::memswap<
607 : PROTOBUF_FIELD_OFFSET(Component, _impl_.id_)
608 : + sizeof(Component::_impl_.id_)
609 0 : - PROTOBUF_FIELD_OFFSET(Component, _impl_.package_)>(
610 0 : reinterpret_cast<char*>(&_impl_.package_),
611 0 : reinterpret_cast<char*>(&other->_impl_.package_));
612 0 : }
613 :
614 0 : ::google::protobuf::Metadata Component::GetMetadata() const {
615 0 : return ::google::protobuf::Message::GetMetadataImpl(GetClassData()->full());
616 : }
617 : // @@protoc_insertion_point(namespace_scope)
618 : } // namespace ProductModel
619 : } // namespace Protobuf
620 : } // namespace Lib
621 : } // namespace Odb
622 : namespace google {
623 : namespace protobuf {
624 : } // namespace protobuf
625 : } // namespace google
626 : // @@protoc_insertion_point(global_scope)
627 : PROTOBUF_ATTRIBUTE_INIT_PRIORITY2 static ::std::false_type
628 : _static_init2_ [[maybe_unused]] =
629 : (::_pbi::AddDescriptors(&descriptor_table_component_2eproto),
630 : ::std::false_type{});
631 : #include "google/protobuf/port_undef.inc"
|