Line data Source code
1 : // Generated by the protocol buffer compiler. DO NOT EDIT!
2 : // NO CHECKED-IN PROTOBUF GENCODE
3 : // source: package.proto
4 : // Protobuf C++ Version: 6.33.4
5 :
6 : #include "package.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 : template <typename>
32 : PROTOBUF_CONSTEXPR Package_PinsByNameEntry_DoNotUse::Package_PinsByNameEntry_DoNotUse(::_pbi::ConstantInitialized)
33 : #if defined(PROTOBUF_CUSTOM_VTABLE)
34 : : Package_PinsByNameEntry_DoNotUse::MapEntry(Package_PinsByNameEntry_DoNotUse_class_data_.base()){}
35 : #else // PROTOBUF_CUSTOM_VTABLE
36 : : Package_PinsByNameEntry_DoNotUse::MapEntry() {
37 : }
38 : #endif // PROTOBUF_CUSTOM_VTABLE
39 : struct Package_PinsByNameEntry_DoNotUseDefaultTypeInternal {
40 : PROTOBUF_CONSTEXPR Package_PinsByNameEntry_DoNotUseDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {}
41 319 : ~Package_PinsByNameEntry_DoNotUseDefaultTypeInternal() {}
42 : union {
43 : Package_PinsByNameEntry_DoNotUse _instance;
44 : };
45 : };
46 :
47 : PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT ODBDESIGN_EXPORT
48 : PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 Package_PinsByNameEntry_DoNotUseDefaultTypeInternal _Package_PinsByNameEntry_DoNotUse_default_instance_;
49 :
50 : inline constexpr Package::Impl_::Impl_(
51 : ::_pbi::ConstantInitialized) noexcept
52 : : _cached_size_{0},
53 : pins_{},
54 : name_(
55 : &::google::protobuf::internal::fixed_address_empty_string,
56 : ::_pbi::ConstantInitialized()),
57 : index_{0u},
58 : pinsbyname_{} {}
59 :
60 : template <typename>
61 : PROTOBUF_CONSTEXPR Package::Package(::_pbi::ConstantInitialized)
62 : #if defined(PROTOBUF_CUSTOM_VTABLE)
63 : : ::google::protobuf::Message(Package_class_data_.base()),
64 : #else // PROTOBUF_CUSTOM_VTABLE
65 : : ::google::protobuf::Message(),
66 : #endif // PROTOBUF_CUSTOM_VTABLE
67 : _impl_(::_pbi::ConstantInitialized()) {
68 : }
69 : struct PackageDefaultTypeInternal {
70 : PROTOBUF_CONSTEXPR PackageDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {}
71 319 : ~PackageDefaultTypeInternal() {}
72 : union {
73 : Package _instance;
74 : };
75 : };
76 :
77 : PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT ODBDESIGN_EXPORT
78 : PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 PackageDefaultTypeInternal _Package_default_instance_;
79 : } // namespace ProductModel
80 : } // namespace Protobuf
81 : } // namespace Lib
82 : } // namespace Odb
83 : static constexpr const ::_pb::EnumDescriptor* PROTOBUF_NONNULL* PROTOBUF_NULLABLE
84 : file_level_enum_descriptors_package_2eproto = nullptr;
85 : static constexpr const ::_pb::ServiceDescriptor* PROTOBUF_NONNULL* PROTOBUF_NULLABLE
86 : file_level_service_descriptors_package_2eproto = nullptr;
87 : const ::uint32_t
88 : TableStruct_package_2eproto::offsets[] ABSL_ATTRIBUTE_SECTION_VARIABLE(
89 : protodesc_cold) = {
90 : 0x081, // bitmap
91 : PROTOBUF_FIELD_OFFSET(::Odb::Lib::Protobuf::ProductModel::Package_PinsByNameEntry_DoNotUse, _impl_._has_bits_),
92 : 5, // hasbit index offset
93 : PROTOBUF_FIELD_OFFSET(::Odb::Lib::Protobuf::ProductModel::Package_PinsByNameEntry_DoNotUse, _impl_.key_),
94 : PROTOBUF_FIELD_OFFSET(::Odb::Lib::Protobuf::ProductModel::Package_PinsByNameEntry_DoNotUse, _impl_.value_),
95 : 0,
96 : 1,
97 : 0x081, // bitmap
98 : PROTOBUF_FIELD_OFFSET(::Odb::Lib::Protobuf::ProductModel::Package, _impl_._has_bits_),
99 : 7, // hasbit index offset
100 : PROTOBUF_FIELD_OFFSET(::Odb::Lib::Protobuf::ProductModel::Package, _impl_.name_),
101 : PROTOBUF_FIELD_OFFSET(::Odb::Lib::Protobuf::ProductModel::Package, _impl_.pins_),
102 : PROTOBUF_FIELD_OFFSET(::Odb::Lib::Protobuf::ProductModel::Package, _impl_.pinsbyname_),
103 : PROTOBUF_FIELD_OFFSET(::Odb::Lib::Protobuf::ProductModel::Package, _impl_.index_),
104 : 1,
105 : 0,
106 : 3,
107 : 2,
108 : };
109 :
110 : static const ::_pbi::MigrationSchema
111 : schemas[] ABSL_ATTRIBUTE_SECTION_VARIABLE(protodesc_cold) = {
112 : {0, sizeof(::Odb::Lib::Protobuf::ProductModel::Package_PinsByNameEntry_DoNotUse)},
113 : {7, sizeof(::Odb::Lib::Protobuf::ProductModel::Package)},
114 : };
115 : static const ::_pb::Message* PROTOBUF_NONNULL const file_default_instances[] = {
116 : &::Odb::Lib::Protobuf::ProductModel::_Package_PinsByNameEntry_DoNotUse_default_instance_._instance,
117 : &::Odb::Lib::Protobuf::ProductModel::_Package_default_instance_._instance,
118 : };
119 : const char descriptor_table_protodef_package_2eproto[] ABSL_ATTRIBUTE_SECTION_VARIABLE(
120 : protodesc_cold) = {
121 : "\n\rpackage.proto\022\035Odb.Lib.Protobuf.Produc"
122 : "tModel\032\tpin.proto\"\230\002\n\007Package\022\021\n\004name\030\001 "
123 : "\001(\tH\000\210\001\001\0220\n\004pins\030\002 \003(\0132\".Odb.Lib.Protobu"
124 : "f.ProductModel.Pin\022J\n\npinsByName\030\003 \003(\01326"
125 : ".Odb.Lib.Protobuf.ProductModel.Package.P"
126 : "insByNameEntry\022\022\n\005index\030\004 \001(\rH\001\210\001\001\032U\n\017Pi"
127 : "nsByNameEntry\022\013\n\003key\030\001 \001(\t\0221\n\005value\030\002 \001("
128 : "\0132\".Odb.Lib.Protobuf.ProductModel.Pin:\0028"
129 : "\001B\007\n\005_nameB\010\n\006_indexB\003\370\001\001b\006proto3"
130 : };
131 : static const ::_pbi::DescriptorTable* PROTOBUF_NONNULL const
132 : descriptor_table_package_2eproto_deps[1] = {
133 : &::descriptor_table_pin_2eproto,
134 : };
135 : static ::absl::once_flag descriptor_table_package_2eproto_once;
136 : PROTOBUF_CONSTINIT const ::_pbi::DescriptorTable descriptor_table_package_2eproto = {
137 : false,
138 : false,
139 : 353,
140 : descriptor_table_protodef_package_2eproto,
141 : "package.proto",
142 : &descriptor_table_package_2eproto_once,
143 : descriptor_table_package_2eproto_deps,
144 : 1,
145 : 2,
146 : schemas,
147 : file_default_instances,
148 : TableStruct_package_2eproto::offsets,
149 : file_level_enum_descriptors_package_2eproto,
150 : file_level_service_descriptors_package_2eproto,
151 : };
152 : namespace Odb {
153 : namespace Lib {
154 : namespace Protobuf {
155 : namespace ProductModel {
156 : // ===================================================================
157 :
158 : #if defined(PROTOBUF_CUSTOM_VTABLE)
159 : Package_PinsByNameEntry_DoNotUse::Package_PinsByNameEntry_DoNotUse()
160 : : SuperType(Package_PinsByNameEntry_DoNotUse_class_data_.base()) {}
161 : Package_PinsByNameEntry_DoNotUse::Package_PinsByNameEntry_DoNotUse(::google::protobuf::Arena* PROTOBUF_NULLABLE arena)
162 : : SuperType(arena, Package_PinsByNameEntry_DoNotUse_class_data_.base()) {}
163 : #else // PROTOBUF_CUSTOM_VTABLE
164 0 : Package_PinsByNameEntry_DoNotUse::Package_PinsByNameEntry_DoNotUse() : SuperType() {}
165 2381566 : Package_PinsByNameEntry_DoNotUse::Package_PinsByNameEntry_DoNotUse(::google::protobuf::Arena* PROTOBUF_NULLABLE arena) : SuperType(arena) {}
166 : #endif // PROTOBUF_CUSTOM_VTABLE
167 2381566 : inline void* PROTOBUF_NONNULL Package_PinsByNameEntry_DoNotUse::PlacementNew_(
168 : const void* PROTOBUF_NONNULL, void* PROTOBUF_NONNULL mem,
169 : ::google::protobuf::Arena* PROTOBUF_NULLABLE arena) {
170 2381566 : return ::new (mem) Package_PinsByNameEntry_DoNotUse(arena);
171 : }
172 : constexpr auto Package_PinsByNameEntry_DoNotUse::InternalNewImpl_() {
173 : return ::google::protobuf::internal::MessageCreator::CopyInit(sizeof(Package_PinsByNameEntry_DoNotUse),
174 : alignof(Package_PinsByNameEntry_DoNotUse));
175 : }
176 : constexpr auto Package_PinsByNameEntry_DoNotUse::InternalGenerateClassData_() {
177 : return ::google::protobuf::internal::ClassDataFull{
178 : ::google::protobuf::internal::ClassData{
179 : &_Package_PinsByNameEntry_DoNotUse_default_instance_._instance,
180 : &_table_.header,
181 : nullptr, // OnDemandRegisterArenaDtor
182 : nullptr, // IsInitialized
183 : &Package_PinsByNameEntry_DoNotUse::MergeImpl,
184 : ::google::protobuf::Message::GetNewImpl<Package_PinsByNameEntry_DoNotUse>(),
185 : #if defined(PROTOBUF_CUSTOM_VTABLE)
186 : &Package_PinsByNameEntry_DoNotUse::SharedDtor,
187 : static_cast<void (::google::protobuf::MessageLite::*)()>(&Package_PinsByNameEntry_DoNotUse::ClearImpl),
188 : ::google::protobuf::Message::ByteSizeLongImpl, ::google::protobuf::Message::_InternalSerializeImpl
189 : ,
190 : #endif // PROTOBUF_CUSTOM_VTABLE
191 : PROTOBUF_FIELD_OFFSET(Package_PinsByNameEntry_DoNotUse, _impl_._cached_size_),
192 : false,
193 : },
194 : &Package_PinsByNameEntry_DoNotUse::kDescriptorMethods,
195 : &descriptor_table_package_2eproto,
196 : nullptr, // tracker
197 : };
198 : }
199 :
200 : PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 const
201 : ::google::protobuf::internal::ClassDataFull Package_PinsByNameEntry_DoNotUse_class_data_ =
202 : Package_PinsByNameEntry_DoNotUse::InternalGenerateClassData_();
203 :
204 : PROTOBUF_ATTRIBUTE_WEAK const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL
205 19182399 : Package_PinsByNameEntry_DoNotUse::GetClassData() const {
206 19182399 : ::google::protobuf::internal::PrefetchToLocalCache(&Package_PinsByNameEntry_DoNotUse_class_data_);
207 19182399 : ::google::protobuf::internal::PrefetchToLocalCache(Package_PinsByNameEntry_DoNotUse_class_data_.tc_table);
208 19182399 : return Package_PinsByNameEntry_DoNotUse_class_data_.base();
209 : }
210 : PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1
211 : const ::_pbi::TcParseTable<1, 2, 1, 65, 2>
212 : Package_PinsByNameEntry_DoNotUse::_table_ = {
213 : {
214 : PROTOBUF_FIELD_OFFSET(Package_PinsByNameEntry_DoNotUse, _impl_._has_bits_),
215 : 0, // no _extensions_
216 : 2, 8, // max_field_number, fast_idx_mask
217 : offsetof(decltype(_table_), field_lookup_table),
218 : 4294967292, // skipmap
219 : offsetof(decltype(_table_), field_entries),
220 : 2, // num_field_entries
221 : 1, // num_aux_entries
222 : offsetof(decltype(_table_), aux_entries),
223 : Package_PinsByNameEntry_DoNotUse_class_data_.base(),
224 : nullptr, // post_loop_handler
225 : ::_pbi::TcParser::DiscardEverythingFallback, // fallback
226 : #ifdef PROTOBUF_PREFETCH_PARSE_TABLE
227 : ::_pbi::TcParser::GetTable<::Odb::Lib::Protobuf::ProductModel::Package_PinsByNameEntry_DoNotUse>(), // to_prefetch
228 : #endif // PROTOBUF_PREFETCH_PARSE_TABLE
229 : }, {{
230 : // .Odb.Lib.Protobuf.ProductModel.Pin value = 2;
231 : {::_pbi::TcParser::FastMtS1,
232 : {18, 1, 0,
233 : PROTOBUF_FIELD_OFFSET(Package_PinsByNameEntry_DoNotUse, _impl_.value_)}},
234 : // string key = 1;
235 : {::_pbi::TcParser::FastUS1,
236 : {10, 0, 0,
237 : PROTOBUF_FIELD_OFFSET(Package_PinsByNameEntry_DoNotUse, _impl_.key_)}},
238 : }}, {{
239 : 65535, 65535
240 : }}, {{
241 : // string key = 1;
242 : {PROTOBUF_FIELD_OFFSET(Package_PinsByNameEntry_DoNotUse, _impl_.key_), _Internal::kHasBitsOffset + 0, 0, (0 | ::_fl::kFcOptional | ::_fl::kUtf8String | ::_fl::kRepAString)},
243 : // .Odb.Lib.Protobuf.ProductModel.Pin value = 2;
244 : {PROTOBUF_FIELD_OFFSET(Package_PinsByNameEntry_DoNotUse, _impl_.value_), _Internal::kHasBitsOffset + 1, 0, (0 | ::_fl::kFcOptional | ::_fl::kMessage | ::_fl::kTvTable)},
245 : }},
246 : {{
247 : {::_pbi::TcParser::GetTable<::Odb::Lib::Protobuf::ProductModel::Pin>()},
248 : }},
249 : {{
250 : "\65\3\0\0\0\0\0\0"
251 : "Odb.Lib.Protobuf.ProductModel.Package.PinsByNameEntry"
252 : "key"
253 : }},
254 : };
255 : // ===================================================================
256 :
257 : class Package::_Internal {
258 : public:
259 : using HasBits =
260 : decltype(::std::declval<Package>()._impl_._has_bits_);
261 : static constexpr ::int32_t kHasBitsOffset =
262 : 8 * PROTOBUF_FIELD_OFFSET(Package, _impl_._has_bits_);
263 : };
264 :
265 0 : void Package::clear_pins() {
266 0 : ::google::protobuf::internal::TSanWrite(&_impl_);
267 0 : _impl_.pins_.Clear();
268 0 : ClearHasBitForRepeated(_impl_._has_bits_[0],
269 : 0x00000001U);
270 0 : }
271 0 : void Package::clear_pinsbyname() {
272 0 : ::google::protobuf::internal::TSanWrite(&_impl_);
273 0 : _impl_.pinsbyname_.Clear();
274 0 : ClearHasBitForRepeated(_impl_._has_bits_[0],
275 : 0x00000008U);
276 0 : }
277 175628 : Package::Package(::google::protobuf::Arena* PROTOBUF_NULLABLE arena)
278 : #if defined(PROTOBUF_CUSTOM_VTABLE)
279 : : ::google::protobuf::Message(arena, Package_class_data_.base()) {
280 : #else // PROTOBUF_CUSTOM_VTABLE
281 175628 : : ::google::protobuf::Message(arena) {
282 : #endif // PROTOBUF_CUSTOM_VTABLE
283 175628 : SharedCtor(arena);
284 : // @@protoc_insertion_point(arena_constructor:Odb.Lib.Protobuf.ProductModel.Package)
285 175628 : }
286 252021 : PROTOBUF_NDEBUG_INLINE Package::Impl_::Impl_(
287 : [[maybe_unused]] ::google::protobuf::internal::InternalVisibility visibility,
288 : [[maybe_unused]] ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const Impl_& from,
289 252021 : [[maybe_unused]] const ::Odb::Lib::Protobuf::ProductModel::Package& from_msg)
290 252021 : : _has_bits_{from._has_bits_},
291 252021 : _cached_size_{0},
292 252021 : pins_{visibility, arena, from.pins_},
293 252021 : name_(arena, from.name_),
294 252021 : pinsbyname_{visibility, arena, from.pinsbyname_} {}
295 :
296 252021 : Package::Package(
297 : ::google::protobuf::Arena* PROTOBUF_NULLABLE arena,
298 252021 : const Package& from)
299 : #if defined(PROTOBUF_CUSTOM_VTABLE)
300 : : ::google::protobuf::Message(arena, Package_class_data_.base()) {
301 : #else // PROTOBUF_CUSTOM_VTABLE
302 252021 : : ::google::protobuf::Message(arena) {
303 : #endif // PROTOBUF_CUSTOM_VTABLE
304 252021 : Package* const _this = this;
305 : (void)_this;
306 252021 : _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(
307 252021 : from._internal_metadata_);
308 252021 : new (&_impl_) Impl_(internal_visibility(), arena, from._impl_, from);
309 252021 : _impl_.index_ = from._impl_.index_;
310 :
311 : // @@protoc_insertion_point(copy_constructor:Odb.Lib.Protobuf.ProductModel.Package)
312 252021 : }
313 175628 : PROTOBUF_NDEBUG_INLINE Package::Impl_::Impl_(
314 : [[maybe_unused]] ::google::protobuf::internal::InternalVisibility visibility,
315 175628 : [[maybe_unused]] ::google::protobuf::Arena* PROTOBUF_NULLABLE arena)
316 175628 : : _cached_size_{0},
317 175628 : pins_{visibility, arena},
318 175628 : name_(arena),
319 351256 : pinsbyname_{visibility, arena} {}
320 :
321 175628 : inline void Package::SharedCtor(::_pb::Arena* PROTOBUF_NULLABLE arena) {
322 175628 : new (&_impl_) Impl_(internal_visibility(), arena);
323 175628 : _impl_.index_ = {};
324 175628 : }
325 853932 : Package::~Package() {
326 : // @@protoc_insertion_point(destructor:Odb.Lib.Protobuf.ProductModel.Package)
327 427649 : SharedDtor(*this);
328 853932 : }
329 427649 : inline void Package::SharedDtor(MessageLite& self) {
330 427649 : Package& this_ = static_cast<Package&>(self);
331 : if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) {
332 427649 : this_.CheckHasBitConsistency();
333 : }
334 427649 : this_._internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>();
335 427649 : ABSL_DCHECK(this_.GetArena() == nullptr);
336 427649 : this_._impl_.name_.Destroy();
337 427649 : this_._impl_.~Impl_();
338 427649 : }
339 :
340 15649 : inline void* PROTOBUF_NONNULL Package::PlacementNew_(
341 : const void* PROTOBUF_NONNULL, void* PROTOBUF_NONNULL mem,
342 : ::google::protobuf::Arena* PROTOBUF_NULLABLE arena) {
343 15649 : return ::new (mem) Package(arena);
344 : }
345 : constexpr auto Package::InternalNewImpl_() {
346 : constexpr auto arena_bits = ::google::protobuf::internal::EncodePlacementArenaOffsets({
347 : PROTOBUF_FIELD_OFFSET(Package, _impl_.pins_) +
348 : decltype(Package::_impl_.pins_)::
349 : InternalGetArenaOffset(
350 : ::google::protobuf::Message::internal_visibility()),
351 : PROTOBUF_FIELD_OFFSET(Package, _impl_.pinsbyname_) +
352 : decltype(Package::_impl_.pinsbyname_)::
353 : InternalGetArenaOffset(
354 : ::google::protobuf::Message::internal_visibility()),
355 : });
356 : if (arena_bits.has_value()) {
357 : return ::google::protobuf::internal::MessageCreator::CopyInit(
358 : sizeof(Package), alignof(Package), *arena_bits);
359 : } else {
360 : return ::google::protobuf::internal::MessageCreator(&Package::PlacementNew_,
361 : sizeof(Package),
362 : alignof(Package));
363 : }
364 : }
365 : constexpr auto Package::InternalGenerateClassData_() {
366 : return ::google::protobuf::internal::ClassDataFull{
367 : ::google::protobuf::internal::ClassData{
368 : &_Package_default_instance_._instance,
369 : &_table_.header,
370 : nullptr, // OnDemandRegisterArenaDtor
371 : nullptr, // IsInitialized
372 : &Package::MergeImpl,
373 : ::google::protobuf::Message::GetNewImpl<Package>(),
374 : #if defined(PROTOBUF_CUSTOM_VTABLE)
375 : &Package::SharedDtor,
376 : ::google::protobuf::Message::GetClearImpl<Package>(), &Package::ByteSizeLong,
377 : &Package::_InternalSerialize,
378 : #endif // PROTOBUF_CUSTOM_VTABLE
379 : PROTOBUF_FIELD_OFFSET(Package, _impl_._cached_size_),
380 : false,
381 : },
382 : &Package::kDescriptorMethods,
383 : &descriptor_table_package_2eproto,
384 : nullptr, // tracker
385 : };
386 : }
387 :
388 : PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 const
389 : ::google::protobuf::internal::ClassDataFull Package_class_data_ =
390 : Package::InternalGenerateClassData_();
391 :
392 : PROTOBUF_ATTRIBUTE_WEAK const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL
393 5774850 : Package::GetClassData() const {
394 5774850 : ::google::protobuf::internal::PrefetchToLocalCache(&Package_class_data_);
395 5774850 : ::google::protobuf::internal::PrefetchToLocalCache(Package_class_data_.tc_table);
396 5774850 : return Package_class_data_.base();
397 : }
398 : PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1
399 : const ::_pbi::TcParseTable<2, 4, 3, 60, 2>
400 : Package::_table_ = {
401 : {
402 : PROTOBUF_FIELD_OFFSET(Package, _impl_._has_bits_),
403 : 0, // no _extensions_
404 : 4, 24, // max_field_number, fast_idx_mask
405 : offsetof(decltype(_table_), field_lookup_table),
406 : 4294967280, // skipmap
407 : offsetof(decltype(_table_), field_entries),
408 : 4, // num_field_entries
409 : 3, // num_aux_entries
410 : offsetof(decltype(_table_), aux_entries),
411 : Package_class_data_.base(),
412 : nullptr, // post_loop_handler
413 : ::_pbi::TcParser::GenericFallback, // fallback
414 : #ifdef PROTOBUF_PREFETCH_PARSE_TABLE
415 : ::_pbi::TcParser::GetTable<::Odb::Lib::Protobuf::ProductModel::Package>(), // to_prefetch
416 : #endif // PROTOBUF_PREFETCH_PARSE_TABLE
417 : }, {{
418 : // optional uint32 index = 4;
419 : {::_pbi::TcParser::SingularVarintNoZag1<::uint32_t, offsetof(Package, _impl_.index_), 2>(),
420 : {32, 2, 0,
421 : PROTOBUF_FIELD_OFFSET(Package, _impl_.index_)}},
422 : // optional string name = 1;
423 : {::_pbi::TcParser::FastUS1,
424 : {10, 1, 0,
425 : PROTOBUF_FIELD_OFFSET(Package, _impl_.name_)}},
426 : // repeated .Odb.Lib.Protobuf.ProductModel.Pin pins = 2;
427 : {::_pbi::TcParser::FastMtR1,
428 : {18, 0, 0,
429 : PROTOBUF_FIELD_OFFSET(Package, _impl_.pins_)}},
430 : {::_pbi::TcParser::MiniParse, {}},
431 : }}, {{
432 : 65535, 65535
433 : }}, {{
434 : // optional string name = 1;
435 : {PROTOBUF_FIELD_OFFSET(Package, _impl_.name_), _Internal::kHasBitsOffset + 1, 0, (0 | ::_fl::kFcOptional | ::_fl::kUtf8String | ::_fl::kRepAString)},
436 : // repeated .Odb.Lib.Protobuf.ProductModel.Pin pins = 2;
437 : {PROTOBUF_FIELD_OFFSET(Package, _impl_.pins_), _Internal::kHasBitsOffset + 0, 0, (0 | ::_fl::kFcRepeated | ::_fl::kMessage | ::_fl::kTvTable)},
438 : // map<string, .Odb.Lib.Protobuf.ProductModel.Pin> pinsByName = 3;
439 : {PROTOBUF_FIELD_OFFSET(Package, _impl_.pinsbyname_), _Internal::kHasBitsOffset + 3, 1, (0 | ::_fl::kFcRepeated | ::_fl::kMap)},
440 : // optional uint32 index = 4;
441 : {PROTOBUF_FIELD_OFFSET(Package, _impl_.index_), _Internal::kHasBitsOffset + 2, 0, (0 | ::_fl::kFcOptional | ::_fl::kUInt32)},
442 : }},
443 : {{
444 : {::_pbi::TcParser::GetTable<::Odb::Lib::Protobuf::ProductModel::Pin>()},
445 : {::_pbi::TcParser::GetMapAuxInfo(
446 : 1, 0, 9, 11, 0)},
447 : {::_pbi::TcParser::GetTable<::Odb::Lib::Protobuf::ProductModel::Pin>()},
448 : }},
449 : {{
450 : "\45\4\0\12\0\0\0\0"
451 : "Odb.Lib.Protobuf.ProductModel.Package"
452 : "name"
453 : "pinsByName"
454 : }},
455 : };
456 81036 : PROTOBUF_NOINLINE void Package::Clear() {
457 : // @@protoc_insertion_point(message_clear_start:Odb.Lib.Protobuf.ProductModel.Package)
458 81036 : ::google::protobuf::internal::TSanWrite(&_impl_);
459 81036 : ::uint32_t cached_has_bits = 0;
460 : // Prevent compiler warnings about cached_has_bits being unused
461 : (void) cached_has_bits;
462 :
463 81036 : cached_has_bits = _impl_._has_bits_[0];
464 81036 : if (BatchCheckHasBit(cached_has_bits, 0x00000003U)) {
465 0 : if (CheckHasBitForRepeated(cached_has_bits, 0x00000001U)) {
466 0 : _impl_.pins_.Clear();
467 : }
468 0 : if (CheckHasBit(cached_has_bits, 0x00000002U)) {
469 0 : _impl_.name_.ClearNonDefaultToEmpty();
470 : }
471 : }
472 81036 : if (BatchCheckHasBit(cached_has_bits, 0x0000000cU)) {
473 0 : _impl_.index_ = 0u;
474 0 : if (CheckHasBitForRepeated(cached_has_bits, 0x00000008U)) {
475 0 : _impl_.pinsbyname_.Clear();
476 : }
477 : }
478 81036 : _impl_._has_bits_.Clear();
479 81036 : _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>();
480 81036 : }
481 :
482 : #if defined(PROTOBUF_CUSTOM_VTABLE)
483 : ::uint8_t* PROTOBUF_NONNULL Package::_InternalSerialize(
484 : const ::google::protobuf::MessageLite& base, ::uint8_t* PROTOBUF_NONNULL target,
485 : ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) {
486 : const Package& this_ = static_cast<const Package&>(base);
487 : #else // PROTOBUF_CUSTOM_VTABLE
488 44340 : ::uint8_t* PROTOBUF_NONNULL Package::_InternalSerialize(
489 : ::uint8_t* PROTOBUF_NONNULL target,
490 : ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const {
491 44340 : const Package& this_ = *this;
492 : #endif // PROTOBUF_CUSTOM_VTABLE
493 : if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) {
494 44340 : this_.CheckHasBitConsistency();
495 : }
496 : // @@protoc_insertion_point(serialize_to_array_start:Odb.Lib.Protobuf.ProductModel.Package)
497 44340 : ::uint32_t cached_has_bits = 0;
498 : (void)cached_has_bits;
499 :
500 44340 : cached_has_bits = this_._impl_._has_bits_[0];
501 : // optional string name = 1;
502 44340 : if (CheckHasBit(cached_has_bits, 0x00000002U)) {
503 44340 : const ::std::string& _s = this_._internal_name();
504 88680 : ::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
505 44340 : _s.data(), static_cast<int>(_s.length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "Odb.Lib.Protobuf.ProductModel.Package.name");
506 44340 : target = stream->WriteStringMaybeAliased(1, _s, target);
507 : }
508 :
509 : // repeated .Odb.Lib.Protobuf.ProductModel.Pin pins = 2;
510 44340 : if (CheckHasBitForRepeated(cached_has_bits, 0x00000001U)) {
511 1226532 : for (unsigned i = 0, n = static_cast<unsigned>(
512 44256 : this_._internal_pins_size());
513 1182276 : i < n; i++) {
514 1138020 : const auto& repfield = this_._internal_pins().Get(i);
515 : target =
516 1138020 : ::google::protobuf::internal::WireFormatLite::InternalWriteMessage(
517 : 2, repfield, repfield.GetCachedSize(),
518 : target, stream);
519 : }
520 : }
521 :
522 : // map<string, .Odb.Lib.Protobuf.ProductModel.Pin> pinsByName = 3;
523 44340 : if (CheckHasBitForRepeated(cached_has_bits, 0x00000008U)) {
524 44312 : if (!this_._internal_pinsbyname().empty()) {
525 : using MapType = ::google::protobuf::Map<::std::string, ::Odb::Lib::Protobuf::ProductModel::Pin>;
526 : using WireHelper = _pbi::MapEntryFuncs<::std::string, ::Odb::Lib::Protobuf::ProductModel::Pin,
527 : _pbi::WireFormatLite::TYPE_STRING,
528 : _pbi::WireFormatLite::TYPE_MESSAGE>;
529 44256 : const auto& field = this_._internal_pinsbyname();
530 :
531 44256 : if (stream->IsSerializationDeterministic() && field.size() > 1) {
532 786648 : for (const auto& entry : ::google::protobuf::internal::MapSorterPtr<MapType>(field)) {
533 1515824 : target = WireHelper::InternalSerialize(
534 757912 : 3, entry.first, entry.second, target, stream);
535 1515824 : ::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
536 757912 : entry.first.data(), static_cast<int>(entry.first.length()),
537 : ::google::protobuf::internal::WireFormatLite::SERIALIZE, "Odb.Lib.Protobuf.ProductModel.Package.pinsByName");
538 28736 : }
539 : } else {
540 395628 : for (const auto& entry : field) {
541 760216 : target = WireHelper::InternalSerialize(
542 380108 : 3, entry.first, entry.second, target, stream);
543 760216 : ::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
544 380108 : entry.first.data(), static_cast<int>(entry.first.length()),
545 : ::google::protobuf::internal::WireFormatLite::SERIALIZE, "Odb.Lib.Protobuf.ProductModel.Package.pinsByName");
546 : }
547 : }
548 : }
549 : }
550 :
551 : // optional uint32 index = 4;
552 44340 : if (CheckHasBit(cached_has_bits, 0x00000004U)) {
553 44340 : target = stream->EnsureSpace(target);
554 44340 : target = ::_pbi::WireFormatLite::WriteUInt32ToArray(
555 : 4, this_._internal_index(), target);
556 : }
557 :
558 44340 : if (ABSL_PREDICT_FALSE(this_._internal_metadata_.have_unknown_fields())) {
559 : target =
560 0 : ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray(
561 : this_._internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream);
562 : }
563 : // @@protoc_insertion_point(serialize_to_array_end:Odb.Lib.Protobuf.ProductModel.Package)
564 44340 : return target;
565 : }
566 :
567 : #if defined(PROTOBUF_CUSTOM_VTABLE)
568 : ::size_t Package::ByteSizeLong(const MessageLite& base) {
569 : const Package& this_ = static_cast<const Package&>(base);
570 : #else // PROTOBUF_CUSTOM_VTABLE
571 80550 : ::size_t Package::ByteSizeLong() const {
572 80550 : const Package& this_ = *this;
573 : #endif // PROTOBUF_CUSTOM_VTABLE
574 : // @@protoc_insertion_point(message_byte_size_start:Odb.Lib.Protobuf.ProductModel.Package)
575 80550 : ::size_t total_size = 0;
576 :
577 80550 : ::uint32_t cached_has_bits = 0;
578 : // Prevent compiler warnings about cached_has_bits being unused
579 : (void)cached_has_bits;
580 :
581 : ::_pbi::Prefetch5LinesFrom7Lines(&this_);
582 80550 : cached_has_bits = this_._impl_._has_bits_[0];
583 80550 : if (BatchCheckHasBit(cached_has_bits, 0x0000000fU)) {
584 : // repeated .Odb.Lib.Protobuf.ProductModel.Pin pins = 2;
585 80550 : if (CheckHasBitForRepeated(cached_has_bits, 0x00000001U)) {
586 80410 : total_size += 1UL * this_._internal_pins_size();
587 2504048 : for (const auto& msg : this_._internal_pins()) {
588 2423638 : total_size += ::google::protobuf::internal::WireFormatLite::MessageSize(msg);
589 : }
590 : }
591 : // optional string name = 1;
592 80550 : if (CheckHasBit(cached_has_bits, 0x00000002U)) {
593 80550 : total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize(
594 : this_._internal_name());
595 : }
596 : // optional uint32 index = 4;
597 80550 : if (CheckHasBit(cached_has_bits, 0x00000004U)) {
598 80550 : total_size += ::_pbi::WireFormatLite::UInt32SizePlusOne(
599 : this_._internal_index());
600 : }
601 : // map<string, .Odb.Lib.Protobuf.ProductModel.Pin> pinsByName = 3;
602 80550 : if (CheckHasBitForRepeated(cached_has_bits, 0x00000008U)) {
603 80522 : total_size +=
604 80522 : 1 * ::google::protobuf::internal::FromIntSize(this_._internal_pinsbyname_size());
605 2504160 : for (const auto& entry : this_._internal_pinsbyname()) {
606 2423638 : total_size += _pbi::MapEntryFuncs<::std::string, ::Odb::Lib::Protobuf::ProductModel::Pin,
607 : _pbi::WireFormatLite::TYPE_STRING,
608 2423638 : _pbi::WireFormatLite::TYPE_MESSAGE>::ByteSizeLong(entry.first, entry.second);
609 : }
610 : }
611 : }
612 80550 : return this_.MaybeComputeUnknownFieldsSize(total_size,
613 80550 : &this_._impl_._cached_size_);
614 : }
615 :
616 81036 : void Package::MergeImpl(::google::protobuf::MessageLite& to_msg,
617 : const ::google::protobuf::MessageLite& from_msg) {
618 81036 : auto* const _this =
619 : static_cast<Package*>(&to_msg);
620 81036 : auto& from = static_cast<const Package&>(from_msg);
621 : if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) {
622 81036 : from.CheckHasBitConsistency();
623 : }
624 81036 : ::google::protobuf::Arena* arena = _this->GetArena();
625 : // @@protoc_insertion_point(class_specific_merge_from_start:Odb.Lib.Protobuf.ProductModel.Package)
626 81036 : ABSL_DCHECK_NE(&from, _this);
627 81036 : ::uint32_t cached_has_bits = 0;
628 : (void)cached_has_bits;
629 :
630 81036 : cached_has_bits = from._impl_._has_bits_[0];
631 81036 : if (BatchCheckHasBit(cached_has_bits, 0x0000000fU)) {
632 81036 : if (CheckHasBitForRepeated(cached_has_bits, 0x00000001U)) {
633 161796 : _this->_internal_mutable_pins()->InternalMergeFromWithArena(
634 80898 : ::google::protobuf::MessageLite::internal_visibility(), arena,
635 : from._internal_pins());
636 : }
637 81036 : if (CheckHasBit(cached_has_bits, 0x00000002U)) {
638 81036 : _this->_internal_set_name(from._internal_name());
639 : }
640 81036 : if (CheckHasBit(cached_has_bits, 0x00000004U)) {
641 81036 : _this->_impl_.index_ = from._impl_.index_;
642 : }
643 81036 : if (CheckHasBitForRepeated(cached_has_bits, 0x00000008U)) {
644 81034 : _this->_impl_.pinsbyname_.MergeFrom(from._impl_.pinsbyname_);
645 : }
646 : }
647 81036 : _this->_impl_._has_bits_[0] |= cached_has_bits;
648 81036 : _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(
649 81036 : from._internal_metadata_);
650 81036 : }
651 :
652 80167 : void Package::CopyFrom(const Package& from) {
653 : // @@protoc_insertion_point(class_specific_copy_from_start:Odb.Lib.Protobuf.ProductModel.Package)
654 80167 : if (&from == this) return;
655 80167 : Clear();
656 80167 : MergeFrom(from);
657 : }
658 :
659 :
660 0 : void Package::InternalSwap(Package* PROTOBUF_RESTRICT PROTOBUF_NONNULL other) {
661 : using ::std::swap;
662 0 : auto* arena = GetArena();
663 0 : ABSL_DCHECK_EQ(arena, other->GetArena());
664 0 : _internal_metadata_.InternalSwap(&other->_internal_metadata_);
665 0 : swap(_impl_._has_bits_[0], other->_impl_._has_bits_[0]);
666 0 : _impl_.pins_.InternalSwap(&other->_impl_.pins_);
667 0 : ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.name_, &other->_impl_.name_, arena);
668 0 : swap(_impl_.index_, other->_impl_.index_);
669 0 : _impl_.pinsbyname_.InternalSwap(&other->_impl_.pinsbyname_);
670 0 : }
671 :
672 0 : ::google::protobuf::Metadata Package::GetMetadata() const {
673 0 : return ::google::protobuf::Message::GetMetadataImpl(GetClassData()->full());
674 : }
675 : // @@protoc_insertion_point(namespace_scope)
676 : } // namespace ProductModel
677 : } // namespace Protobuf
678 : } // namespace Lib
679 : } // namespace Odb
680 : namespace google {
681 : namespace protobuf {
682 : } // namespace protobuf
683 : } // namespace google
684 : // @@protoc_insertion_point(global_scope)
685 : PROTOBUF_ATTRIBUTE_INIT_PRIORITY2 static ::std::false_type
686 : _static_init2_ [[maybe_unused]] =
687 : (::_pbi::AddDescriptors(&descriptor_table_package_2eproto),
688 : ::std::false_type{});
689 : #include "google/protobuf/port_undef.inc"
|