Google OR-Tools v9.14
a fast and portable software suite for combinatorial optimization
Loading...
Searching...
No Matches
multiple_dimensions_bin_packing.pb.cc
Go to the documentation of this file.
1// Generated by the protocol buffer compiler. DO NOT EDIT!
2// NO CHECKED-IN PROTOBUF GENCODE
3// source: ortools/packing/multiple_dimensions_bin_packing.proto
4// Protobuf C++ Version: 6.31.1
5
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"
23PROTOBUF_PRAGMA_INIT_SEG
24namespace _pb = ::google::protobuf;
26namespace _fl = ::google::protobuf::internal::field_layout;
27namespace operations_research {
28namespace packing {
29
30inline constexpr MultipleDimensionsBinPackingShape::Impl_::Impl_(
31 ::_pbi::ConstantInitialized) noexcept
32 : dimensions_{},
33 _dimensions_cached_byte_size_{0},
34 _cached_size_{0} {}
35
36template <typename>
37PROTOBUF_CONSTEXPR MultipleDimensionsBinPackingShape::MultipleDimensionsBinPackingShape(::_pbi::ConstantInitialized)
38#if defined(PROTOBUF_CUSTOM_VTABLE)
39 : ::google::protobuf::Message(MultipleDimensionsBinPackingShape_class_data_.base()),
40#else // PROTOBUF_CUSTOM_VTABLE
41 : ::google::protobuf::Message(),
42#endif // PROTOBUF_CUSTOM_VTABLE
43 _impl_(::_pbi::ConstantInitialized()) {
44}
52
53PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT OR_PROTO_DLL
55
56inline constexpr MultipleDimensionsBinPackingItem::Impl_::Impl_(
57 ::_pbi::ConstantInitialized) noexcept
58 : _cached_size_{0},
59 shapes_{},
60 value_{::int64_t{0}} {}
61
62template <typename>
63PROTOBUF_CONSTEXPR MultipleDimensionsBinPackingItem::MultipleDimensionsBinPackingItem(::_pbi::ConstantInitialized)
64#if defined(PROTOBUF_CUSTOM_VTABLE)
65 : ::google::protobuf::Message(MultipleDimensionsBinPackingItem_class_data_.base()),
66#else // PROTOBUF_CUSTOM_VTABLE
67 : ::google::protobuf::Message(),
68#endif // PROTOBUF_CUSTOM_VTABLE
69 _impl_(::_pbi::ConstantInitialized()) {
70}
78
79PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT OR_PROTO_DLL
81
82inline constexpr MultipleDimensionsBinPackingProblem::Impl_::Impl_(
83 ::_pbi::ConstantInitialized) noexcept
84 : _cached_size_{0},
85 items_{},
86 box_shape_{nullptr} {}
87
88template <typename>
90#if defined(PROTOBUF_CUSTOM_VTABLE)
91 : ::google::protobuf::Message(MultipleDimensionsBinPackingProblem_class_data_.base()),
92#else // PROTOBUF_CUSTOM_VTABLE
93 : ::google::protobuf::Message(),
94#endif // PROTOBUF_CUSTOM_VTABLE
95 _impl_(::_pbi::ConstantInitialized()) {
96}
104
105PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT OR_PROTO_DLL
107} // namespace packing
108} // namespace operations_research
109static constexpr const ::_pb::EnumDescriptor *PROTOBUF_NONNULL *PROTOBUF_NULLABLE
111static constexpr const ::_pb::ServiceDescriptor *PROTOBUF_NONNULL *PROTOBUF_NULLABLE
113const ::uint32_t
115 protodesc_cold) = {
116 0x000, // bitmap
117 PROTOBUF_FIELD_OFFSET(::operations_research::packing::MultipleDimensionsBinPackingShape, _impl_.dimensions_),
118 0x081, // bitmap
119 PROTOBUF_FIELD_OFFSET(::operations_research::packing::MultipleDimensionsBinPackingItem, _impl_._has_bits_),
120 5, // hasbit index offset
121 PROTOBUF_FIELD_OFFSET(::operations_research::packing::MultipleDimensionsBinPackingItem, _impl_.shapes_),
122 PROTOBUF_FIELD_OFFSET(::operations_research::packing::MultipleDimensionsBinPackingItem, _impl_.value_),
123 ~0u,
124 0,
125 0x081, // bitmap
126 PROTOBUF_FIELD_OFFSET(::operations_research::packing::MultipleDimensionsBinPackingProblem, _impl_._has_bits_),
127 5, // hasbit index offset
128 PROTOBUF_FIELD_OFFSET(::operations_research::packing::MultipleDimensionsBinPackingProblem, _impl_.box_shape_),
130 0,
131 ~0u,
132};
133
134static const ::_pbi::MigrationSchema
135 schemas[] ABSL_ATTRIBUTE_SECTION_VARIABLE(protodesc_cold) = {
139};
145const char descriptor_table_protodef_ortools_2fpacking_2fmultiple_5fdimensions_5fbin_5fpacking_2eproto[] ABSL_ATTRIBUTE_SECTION_VARIABLE(
146 protodesc_cold) = {
147 "\n5ortools/packing/multiple_dimensions_bi"
148 "n_packing.proto\022\033operations_research.pac"
149 "king\"7\n!MultipleDimensionsBinPackingShap"
150 "e\022\022\n\ndimensions\030\001 \003(\003\"\201\001\n MultipleDimens"
151 "ionsBinPackingItem\022N\n\006shapes\030\001 \003(\0132>.ope"
152 "rations_research.packing.MultipleDimensi"
153 "onsBinPackingShape\022\r\n\005value\030\002 \001(\003\"\306\001\n#Mu"
154 "ltipleDimensionsBinPackingProblem\022Q\n\tbox"
155 "_shape\030\001 \001(\0132>.operations_research.packi"
156 "ng.MultipleDimensionsBinPackingShape\022L\n\005"
157 "items\030\002 \003(\0132=.operations_research.packin"
158 "g.MultipleDimensionsBinPackingItemB\002P\001b\006"
159 "proto3"
160};
178namespace operations_research {
179namespace packing {
180// ===================================================================
181
183 public:
184};
185
186MultipleDimensionsBinPackingShape::MultipleDimensionsBinPackingShape(::google::protobuf::Arena* PROTOBUF_NULLABLE arena)
187#if defined(PROTOBUF_CUSTOM_VTABLE)
188 : ::google::protobuf::Message(arena, MultipleDimensionsBinPackingShape_class_data_.base()) {
189#else // PROTOBUF_CUSTOM_VTABLE
190 : ::google::protobuf::Message(arena) {
191#endif // PROTOBUF_CUSTOM_VTABLE
192 SharedCtor(arena);
193 // @@protoc_insertion_point(arena_constructor:operations_research.packing.MultipleDimensionsBinPackingShape)
194}
195PROTOBUF_NDEBUG_INLINE MultipleDimensionsBinPackingShape::Impl_::Impl_(
196 ::google::protobuf::internal::InternalVisibility visibility,
197 ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const Impl_& from,
198 const ::operations_research::packing::MultipleDimensionsBinPackingShape& from_msg)
199 : dimensions_{visibility, arena, from.dimensions_},
200 _dimensions_cached_byte_size_{0},
201 _cached_size_{0} {}
202
204 ::google::protobuf::Arena* PROTOBUF_NULLABLE arena,
206#if defined(PROTOBUF_CUSTOM_VTABLE)
207 : ::google::protobuf::Message(arena, MultipleDimensionsBinPackingShape_class_data_.base()) {
208#else // PROTOBUF_CUSTOM_VTABLE
209 : ::google::protobuf::Message(arena) {
210#endif // PROTOBUF_CUSTOM_VTABLE
211 MultipleDimensionsBinPackingShape* const _this = this;
212 (void)_this;
213 _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(
214 from._internal_metadata_);
215 new (&_impl_) Impl_(internal_visibility(), arena, from._impl_, from);
216
217 // @@protoc_insertion_point(copy_constructor:operations_research.packing.MultipleDimensionsBinPackingShape)
218}
219PROTOBUF_NDEBUG_INLINE MultipleDimensionsBinPackingShape::Impl_::Impl_(
220 ::google::protobuf::internal::InternalVisibility visibility,
221 ::google::protobuf::Arena* PROTOBUF_NULLABLE arena)
222 : dimensions_{visibility, arena},
223 _dimensions_cached_byte_size_{0},
224 _cached_size_{0} {}
225
226inline void MultipleDimensionsBinPackingShape::SharedCtor(::_pb::Arena* PROTOBUF_NULLABLE arena) {
227 new (&_impl_) Impl_(internal_visibility(), arena);
228}
230 // @@protoc_insertion_point(destructor:operations_research.packing.MultipleDimensionsBinPackingShape)
231 SharedDtor(*this);
232}
233inline void MultipleDimensionsBinPackingShape::SharedDtor(MessageLite& self) {
235 this_._internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>();
236 ABSL_DCHECK(this_.GetArena() == nullptr);
237 this_._impl_.~Impl_();
238}
239
240inline void* PROTOBUF_NONNULL MultipleDimensionsBinPackingShape::PlacementNew_(
241 const void* PROTOBUF_NONNULL, void* PROTOBUF_NONNULL mem,
242 ::google::protobuf::Arena* PROTOBUF_NULLABLE arena) {
243 return ::new (mem) MultipleDimensionsBinPackingShape(arena);
244}
246 constexpr auto arena_bits = ::google::protobuf::internal::EncodePlacementArenaOffsets({
247 PROTOBUF_FIELD_OFFSET(MultipleDimensionsBinPackingShape, _impl_.dimensions_) +
248 decltype(MultipleDimensionsBinPackingShape::_impl_.dimensions_)::
249 InternalGetArenaOffset(
250 ::google::protobuf::Message::internal_visibility()),
251 });
252 if (arena_bits.has_value()) {
253 return ::google::protobuf::internal::MessageCreator::ZeroInit(
255 } else {
256 return ::google::protobuf::internal::MessageCreator(&MultipleDimensionsBinPackingShape::PlacementNew_,
259 }
260}
262 return ::google::protobuf::internal::ClassDataFull{
263 ::google::protobuf::internal::ClassData{
265 &_table_.header,
266 nullptr, // OnDemandRegisterArenaDtor
267 nullptr, // IsInitialized
268 &MultipleDimensionsBinPackingShape::MergeImpl,
269 ::google::protobuf::Message::GetNewImpl<MultipleDimensionsBinPackingShape>(),
270#if defined(PROTOBUF_CUSTOM_VTABLE)
271 &MultipleDimensionsBinPackingShape::SharedDtor,
272 ::google::protobuf::Message::GetClearImpl<MultipleDimensionsBinPackingShape>(), &MultipleDimensionsBinPackingShape::ByteSizeLong,
274#endif // PROTOBUF_CUSTOM_VTABLE
275 PROTOBUF_FIELD_OFFSET(MultipleDimensionsBinPackingShape, _impl_._cached_size_),
276 false,
277 },
278 &MultipleDimensionsBinPackingShape::kDescriptorMethods,
280 nullptr, // tracker
281 };
282}
283
284PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 const
285 ::google::protobuf::internal::ClassDataFull MultipleDimensionsBinPackingShape_class_data_ =
287
288PROTOBUF_ATTRIBUTE_WEAK const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL
290 ::google::protobuf::internal::PrefetchToLocalCache(&MultipleDimensionsBinPackingShape_class_data_);
291 ::google::protobuf::internal::PrefetchToLocalCache(MultipleDimensionsBinPackingShape_class_data_.tc_table);
293}
294PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1
295const ::_pbi::TcParseTable<0, 1, 0, 0, 2>
296MultipleDimensionsBinPackingShape::_table_ = {
297 {
298 0, // no _has_bits_
299 0, // no _extensions_
300 1, 0, // max_field_number, fast_idx_mask
301 offsetof(decltype(_table_), field_lookup_table),
302 4294967294, // skipmap
303 offsetof(decltype(_table_), field_entries),
304 1, // num_field_entries
305 0, // num_aux_entries
306 offsetof(decltype(_table_), field_names), // no aux_entries
308 nullptr, // post_loop_handler
309 ::_pbi::TcParser::GenericFallback, // fallback
310 #ifdef PROTOBUF_PREFETCH_PARSE_TABLE
311 ::_pbi::TcParser::GetTable<::operations_research::packing::MultipleDimensionsBinPackingShape>(), // to_prefetch
312 #endif // PROTOBUF_PREFETCH_PARSE_TABLE
313 }, {{
314 // repeated int64 dimensions = 1;
315 {::_pbi::TcParser::FastV64P1,
316 {10, 63, 0, PROTOBUF_FIELD_OFFSET(MultipleDimensionsBinPackingShape, _impl_.dimensions_)}},
317 }}, {{
318 65535, 65535
319 }}, {{
320 // repeated int64 dimensions = 1;
321 {PROTOBUF_FIELD_OFFSET(MultipleDimensionsBinPackingShape, _impl_.dimensions_), 0, 0,
322 (0 | ::_fl::kFcRepeated | ::_fl::kPackedInt64)},
323 }},
324 // no aux_entries
325 {{
326 }},
327};
328PROTOBUF_NOINLINE void MultipleDimensionsBinPackingShape::Clear() {
329// @@protoc_insertion_point(message_clear_start:operations_research.packing.MultipleDimensionsBinPackingShape)
330 ::google::protobuf::internal::TSanWrite(&_impl_);
331 ::uint32_t cached_has_bits = 0;
332 // Prevent compiler warnings about cached_has_bits being unused
333 (void) cached_has_bits;
334
335 _impl_.dimensions_.Clear();
336 _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>();
337}
338
339#if defined(PROTOBUF_CUSTOM_VTABLE)
341 const ::google::protobuf::MessageLite& base, ::uint8_t* PROTOBUF_NONNULL target,
342 ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) {
344#else // PROTOBUF_CUSTOM_VTABLE
346 ::uint8_t* PROTOBUF_NONNULL target,
347 ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const {
348 const MultipleDimensionsBinPackingShape& this_ = *this;
349#endif // PROTOBUF_CUSTOM_VTABLE
350 // @@protoc_insertion_point(serialize_to_array_start:operations_research.packing.MultipleDimensionsBinPackingShape)
351 ::uint32_t cached_has_bits = 0;
352 (void)cached_has_bits;
353
354 // repeated int64 dimensions = 1;
355 {
356 int byte_size = this_._impl_._dimensions_cached_byte_size_.Get();
357 if (byte_size > 0) {
358 target = stream->WriteInt64Packed(
359 1, this_._internal_dimensions(), byte_size, target);
360 }
361 }
362
363 if (ABSL_PREDICT_FALSE(this_._internal_metadata_.have_unknown_fields())) {
364 target =
365 ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray(
366 this_._internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream);
367 }
368 // @@protoc_insertion_point(serialize_to_array_end:operations_research.packing.MultipleDimensionsBinPackingShape)
369 return target;
370}
371
372#if defined(PROTOBUF_CUSTOM_VTABLE)
375#else // PROTOBUF_CUSTOM_VTABLE
378#endif // PROTOBUF_CUSTOM_VTABLE
379 // @@protoc_insertion_point(message_byte_size_start:operations_research.packing.MultipleDimensionsBinPackingShape)
380 ::size_t total_size = 0;
381
382 ::uint32_t cached_has_bits = 0;
383 // Prevent compiler warnings about cached_has_bits being unused
384 (void)cached_has_bits;
385
386 ::_pbi::Prefetch5LinesFrom7Lines(&this_);
387 {
388 // repeated int64 dimensions = 1;
389 {
390 total_size +=
391 ::_pbi::WireFormatLite::Int64SizeWithPackedTagSize(
392 this_._internal_dimensions(), 1,
393 this_._impl_._dimensions_cached_byte_size_);
394 }
395 }
396 return this_.MaybeComputeUnknownFieldsSize(total_size,
397 &this_._impl_._cached_size_);
398}
399
400void MultipleDimensionsBinPackingShape::MergeImpl(::google::protobuf::MessageLite& to_msg, const ::google::protobuf::MessageLite& from_msg) {
401 auto* const _this = static_cast<MultipleDimensionsBinPackingShape*>(&to_msg);
402 auto& from = static_cast<const MultipleDimensionsBinPackingShape&>(from_msg);
403 // @@protoc_insertion_point(class_specific_merge_from_start:operations_research.packing.MultipleDimensionsBinPackingShape)
404 ABSL_DCHECK_NE(&from, _this);
405 ::uint32_t cached_has_bits = 0;
406 (void) cached_has_bits;
407
408 _this->_internal_mutable_dimensions()->MergeFrom(from._internal_dimensions());
409 _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_);
410}
411
413// @@protoc_insertion_point(class_specific_copy_from_start:operations_research.packing.MultipleDimensionsBinPackingShape)
414 if (&from == this) return;
415 Clear();
416 MergeFrom(from);
417}
418
419
420void MultipleDimensionsBinPackingShape::InternalSwap(MultipleDimensionsBinPackingShape* PROTOBUF_RESTRICT PROTOBUF_NONNULL other) {
421 using ::std::swap;
422 _internal_metadata_.InternalSwap(&other->_internal_metadata_);
423 _impl_.dimensions_.InternalSwap(&other->_impl_.dimensions_);
424}
425
426::google::protobuf::Metadata MultipleDimensionsBinPackingShape::GetMetadata() const {
427 return ::google::protobuf::Message::GetMetadataImpl(GetClassData()->full());
428}
429// ===================================================================
430
432 public:
433 using HasBits =
434 decltype(::std::declval<MultipleDimensionsBinPackingItem>()._impl_._has_bits_);
435 static constexpr ::int32_t kHasBitsOffset =
436 8 * PROTOBUF_FIELD_OFFSET(MultipleDimensionsBinPackingItem, _impl_._has_bits_);
438
439MultipleDimensionsBinPackingItem::MultipleDimensionsBinPackingItem(::google::protobuf::Arena* PROTOBUF_NULLABLE arena)
440#if defined(PROTOBUF_CUSTOM_VTABLE)
441 : ::google::protobuf::Message(arena, MultipleDimensionsBinPackingItem_class_data_.base()) {
442#else // PROTOBUF_CUSTOM_VTABLE
443 : ::google::protobuf::Message(arena) {
444#endif // PROTOBUF_CUSTOM_VTABLE
445 SharedCtor(arena);
446 // @@protoc_insertion_point(arena_constructor:operations_research.packing.MultipleDimensionsBinPackingItem)
447}
448PROTOBUF_NDEBUG_INLINE MultipleDimensionsBinPackingItem::Impl_::Impl_(
449 ::google::protobuf::internal::InternalVisibility visibility,
450 ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const Impl_& from,
451 const ::operations_research::packing::MultipleDimensionsBinPackingItem& from_msg)
452 : _has_bits_{from._has_bits_},
453 _cached_size_{0},
454 shapes_{visibility, arena, from.shapes_} {}
455
457 ::google::protobuf::Arena* PROTOBUF_NULLABLE arena,
459#if defined(PROTOBUF_CUSTOM_VTABLE)
460 : ::google::protobuf::Message(arena, MultipleDimensionsBinPackingItem_class_data_.base()) {
461#else // PROTOBUF_CUSTOM_VTABLE
462 : ::google::protobuf::Message(arena) {
463#endif // PROTOBUF_CUSTOM_VTABLE
464 MultipleDimensionsBinPackingItem* const _this = this;
465 (void)_this;
466 _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(
467 from._internal_metadata_);
468 new (&_impl_) Impl_(internal_visibility(), arena, from._impl_, from);
469 _impl_.value_ = from._impl_.value_;
470
471 // @@protoc_insertion_point(copy_constructor:operations_research.packing.MultipleDimensionsBinPackingItem)
472}
473PROTOBUF_NDEBUG_INLINE MultipleDimensionsBinPackingItem::Impl_::Impl_(
474 ::google::protobuf::internal::InternalVisibility visibility,
475 ::google::protobuf::Arena* PROTOBUF_NULLABLE arena)
476 : _cached_size_{0},
477 shapes_{visibility, arena} {}
478
479inline void MultipleDimensionsBinPackingItem::SharedCtor(::_pb::Arena* PROTOBUF_NULLABLE arena) {
480 new (&_impl_) Impl_(internal_visibility(), arena);
481 _impl_.value_ = {};
482}
484 // @@protoc_insertion_point(destructor:operations_research.packing.MultipleDimensionsBinPackingItem)
485 SharedDtor(*this);
486}
487inline void MultipleDimensionsBinPackingItem::SharedDtor(MessageLite& self) {
489 this_._internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>();
490 ABSL_DCHECK(this_.GetArena() == nullptr);
491 this_._impl_.~Impl_();
492}
493
494inline void* PROTOBUF_NONNULL MultipleDimensionsBinPackingItem::PlacementNew_(
495 const void* PROTOBUF_NONNULL, void* PROTOBUF_NONNULL mem,
496 ::google::protobuf::Arena* PROTOBUF_NULLABLE arena) {
497 return ::new (mem) MultipleDimensionsBinPackingItem(arena);
498}
500 constexpr auto arena_bits = ::google::protobuf::internal::EncodePlacementArenaOffsets({
501 PROTOBUF_FIELD_OFFSET(MultipleDimensionsBinPackingItem, _impl_.shapes_) +
503 InternalGetArenaOffset(
504 ::google::protobuf::Message::internal_visibility()),
505 });
506 if (arena_bits.has_value()) {
507 return ::google::protobuf::internal::MessageCreator::ZeroInit(
508 sizeof(MultipleDimensionsBinPackingItem), alignof(MultipleDimensionsBinPackingItem), *arena_bits);
509 } else {
510 return ::google::protobuf::internal::MessageCreator(&MultipleDimensionsBinPackingItem::PlacementNew_,
511 sizeof(MultipleDimensionsBinPackingItem),
512 alignof(MultipleDimensionsBinPackingItem));
513 }
514}
516 return ::google::protobuf::internal::ClassDataFull{
517 ::google::protobuf::internal::ClassData{
519 &_table_.header,
520 nullptr, // OnDemandRegisterArenaDtor
521 nullptr, // IsInitialized
522 &MultipleDimensionsBinPackingItem::MergeImpl,
523 ::google::protobuf::Message::GetNewImpl<MultipleDimensionsBinPackingItem>(),
524#if defined(PROTOBUF_CUSTOM_VTABLE)
525 &MultipleDimensionsBinPackingItem::SharedDtor,
526 ::google::protobuf::Message::GetClearImpl<MultipleDimensionsBinPackingItem>(), &MultipleDimensionsBinPackingItem::ByteSizeLong,
528#endif // PROTOBUF_CUSTOM_VTABLE
529 PROTOBUF_FIELD_OFFSET(MultipleDimensionsBinPackingItem, _impl_._cached_size_),
530 false,
531 },
532 &MultipleDimensionsBinPackingItem::kDescriptorMethods,
534 nullptr, // tracker
535 };
536}
537
538PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 const
539 ::google::protobuf::internal::ClassDataFull MultipleDimensionsBinPackingItem_class_data_ =
542PROTOBUF_ATTRIBUTE_WEAK const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL
544 ::google::protobuf::internal::PrefetchToLocalCache(&MultipleDimensionsBinPackingItem_class_data_);
545 ::google::protobuf::internal::PrefetchToLocalCache(MultipleDimensionsBinPackingItem_class_data_.tc_table);
547}
548PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1
549const ::_pbi::TcParseTable<1, 2, 1, 0, 2>
550MultipleDimensionsBinPackingItem::_table_ = {
551 {
552 PROTOBUF_FIELD_OFFSET(MultipleDimensionsBinPackingItem, _impl_._has_bits_),
553 0, // no _extensions_
554 2, 8, // max_field_number, fast_idx_mask
555 offsetof(decltype(_table_), field_lookup_table),
556 4294967292, // skipmap
557 offsetof(decltype(_table_), field_entries),
558 2, // num_field_entries
559 1, // num_aux_entries
560 offsetof(decltype(_table_), aux_entries),
562 nullptr, // post_loop_handler
563 ::_pbi::TcParser::GenericFallback, // fallback
564 #ifdef PROTOBUF_PREFETCH_PARSE_TABLE
565 ::_pbi::TcParser::GetTable<::operations_research::packing::MultipleDimensionsBinPackingItem>(), // to_prefetch
566 #endif // PROTOBUF_PREFETCH_PARSE_TABLE
567 }, {{
568 // int64 value = 2;
569 {::_pbi::TcParser::SingularVarintNoZag1<::uint64_t, offsetof(MultipleDimensionsBinPackingItem, _impl_.value_), 0>(),
570 {16, 0, 0, PROTOBUF_FIELD_OFFSET(MultipleDimensionsBinPackingItem, _impl_.value_)}},
571 // repeated .operations_research.packing.MultipleDimensionsBinPackingShape shapes = 1;
572 {::_pbi::TcParser::FastMtR1,
573 {10, 63, 0, PROTOBUF_FIELD_OFFSET(MultipleDimensionsBinPackingItem, _impl_.shapes_)}},
574 }}, {{
575 65535, 65535
576 }}, {{
577 // repeated .operations_research.packing.MultipleDimensionsBinPackingShape shapes = 1;
578 {PROTOBUF_FIELD_OFFSET(MultipleDimensionsBinPackingItem, _impl_.shapes_), -1, 0,
579 (0 | ::_fl::kFcRepeated | ::_fl::kMessage | ::_fl::kTvTable)},
580 // int64 value = 2;
581 {PROTOBUF_FIELD_OFFSET(MultipleDimensionsBinPackingItem, _impl_.value_), _Internal::kHasBitsOffset + 0, 0,
582 (0 | ::_fl::kFcOptional | ::_fl::kInt64)},
583 }},
584 {{
585 {::_pbi::TcParser::GetTable<::operations_research::packing::MultipleDimensionsBinPackingShape>()},
586 }},
587 {{
588 }},
589};
590PROTOBUF_NOINLINE void MultipleDimensionsBinPackingItem::Clear() {
591// @@protoc_insertion_point(message_clear_start:operations_research.packing.MultipleDimensionsBinPackingItem)
592 ::google::protobuf::internal::TSanWrite(&_impl_);
593 ::uint32_t cached_has_bits = 0;
594 // Prevent compiler warnings about cached_has_bits being unused
595 (void) cached_has_bits;
596
597 _impl_.shapes_.Clear();
598 _impl_.value_ = ::int64_t{0};
599 _impl_._has_bits_.Clear();
600 _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>();
601}
602
603#if defined(PROTOBUF_CUSTOM_VTABLE)
605 const ::google::protobuf::MessageLite& base, ::uint8_t* PROTOBUF_NONNULL target,
606 ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) {
607 const MultipleDimensionsBinPackingItem& this_ = static_cast<const MultipleDimensionsBinPackingItem&>(base);
608#else // PROTOBUF_CUSTOM_VTABLE
610 ::uint8_t* PROTOBUF_NONNULL target,
611 ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const {
612 const MultipleDimensionsBinPackingItem& this_ = *this;
613#endif // PROTOBUF_CUSTOM_VTABLE
614 // @@protoc_insertion_point(serialize_to_array_start:operations_research.packing.MultipleDimensionsBinPackingItem)
615 ::uint32_t cached_has_bits = 0;
616 (void)cached_has_bits;
617
618 // repeated .operations_research.packing.MultipleDimensionsBinPackingShape shapes = 1;
619 for (unsigned i = 0, n = static_cast<unsigned>(
620 this_._internal_shapes_size());
621 i < n; i++) {
622 const auto& repfield = this_._internal_shapes().Get(i);
623 target =
624 ::google::protobuf::internal::WireFormatLite::InternalWriteMessage(
625 1, repfield, repfield.GetCachedSize(),
626 target, stream);
627 }
628
629 // int64 value = 2;
630 if ((this_._impl_._has_bits_[0] & 0x00000001u) != 0) {
631 if (this_._internal_value() != 0) {
632 target =
633 ::google::protobuf::internal::WireFormatLite::WriteInt64ToArrayWithField<2>(
634 stream, this_._internal_value(), target);
635 }
636 }
637
638 if (ABSL_PREDICT_FALSE(this_._internal_metadata_.have_unknown_fields())) {
639 target =
640 ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray(
641 this_._internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream);
642 }
643 // @@protoc_insertion_point(serialize_to_array_end:operations_research.packing.MultipleDimensionsBinPackingItem)
644 return target;
645}
646
647#if defined(PROTOBUF_CUSTOM_VTABLE)
650#else // PROTOBUF_CUSTOM_VTABLE
652 const MultipleDimensionsBinPackingItem& this_ = *this;
653#endif // PROTOBUF_CUSTOM_VTABLE
654 // @@protoc_insertion_point(message_byte_size_start:operations_research.packing.MultipleDimensionsBinPackingItem)
655 ::size_t total_size = 0;
656
657 ::uint32_t cached_has_bits = 0;
658 // Prevent compiler warnings about cached_has_bits being unused
659 (void)cached_has_bits;
660
661 ::_pbi::Prefetch5LinesFrom7Lines(&this_);
662 {
663 // repeated .operations_research.packing.MultipleDimensionsBinPackingShape shapes = 1;
664 {
665 total_size += 1UL * this_._internal_shapes_size();
666 for (const auto& msg : this_._internal_shapes()) {
667 total_size += ::google::protobuf::internal::WireFormatLite::MessageSize(msg);
668 }
669 }
670 }
671 {
672 // int64 value = 2;
673 cached_has_bits = this_._impl_._has_bits_[0];
674 if ((cached_has_bits & 0x00000001u) != 0) {
675 if (this_._internal_value() != 0) {
676 total_size += ::_pbi::WireFormatLite::Int64SizePlusOne(
677 this_._internal_value());
678 }
679 }
680 }
681 return this_.MaybeComputeUnknownFieldsSize(total_size,
682 &this_._impl_._cached_size_);
683}
684
685void MultipleDimensionsBinPackingItem::MergeImpl(::google::protobuf::MessageLite& to_msg, const ::google::protobuf::MessageLite& from_msg) {
686 auto* const _this = static_cast<MultipleDimensionsBinPackingItem*>(&to_msg);
687 auto& from = static_cast<const MultipleDimensionsBinPackingItem&>(from_msg);
688 // @@protoc_insertion_point(class_specific_merge_from_start:operations_research.packing.MultipleDimensionsBinPackingItem)
689 ABSL_DCHECK_NE(&from, _this);
690 ::uint32_t cached_has_bits = 0;
691 (void) cached_has_bits;
692
693 _this->_internal_mutable_shapes()->MergeFrom(
694 from._internal_shapes());
695 cached_has_bits = from._impl_._has_bits_[0];
696 if ((cached_has_bits & 0x00000001u) != 0) {
697 if (from._internal_value() != 0) {
698 _this->_impl_.value_ = from._impl_.value_;
699 }
700 }
701 _this->_impl_._has_bits_[0] |= cached_has_bits;
702 _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_);
703}
704
705void MultipleDimensionsBinPackingItem::CopyFrom(const MultipleDimensionsBinPackingItem& from) {
706// @@protoc_insertion_point(class_specific_copy_from_start:operations_research.packing.MultipleDimensionsBinPackingItem)
707 if (&from == this) return;
708 Clear();
709 MergeFrom(from);
710}
711
712
713void MultipleDimensionsBinPackingItem::InternalSwap(MultipleDimensionsBinPackingItem* PROTOBUF_RESTRICT PROTOBUF_NONNULL other) {
714 using ::std::swap;
715 _internal_metadata_.InternalSwap(&other->_internal_metadata_);
716 swap(_impl_._has_bits_[0], other->_impl_._has_bits_[0]);
717 _impl_.shapes_.InternalSwap(&other->_impl_.shapes_);
718 swap(_impl_.value_, other->_impl_.value_);
719}
720
721::google::protobuf::Metadata MultipleDimensionsBinPackingItem::GetMetadata() const {
722 return ::google::protobuf::Message::GetMetadataImpl(GetClassData()->full());
724// ===================================================================
725
727 public:
728 using HasBits =
729 decltype(::std::declval<MultipleDimensionsBinPackingProblem>()._impl_._has_bits_);
730 static constexpr ::int32_t kHasBitsOffset =
731 8 * PROTOBUF_FIELD_OFFSET(MultipleDimensionsBinPackingProblem, _impl_._has_bits_);
732};
734MultipleDimensionsBinPackingProblem::MultipleDimensionsBinPackingProblem(::google::protobuf::Arena* PROTOBUF_NULLABLE arena)
735#if defined(PROTOBUF_CUSTOM_VTABLE)
736 : ::google::protobuf::Message(arena, MultipleDimensionsBinPackingProblem_class_data_.base()) {
737#else // PROTOBUF_CUSTOM_VTABLE
738 : ::google::protobuf::Message(arena) {
739#endif // PROTOBUF_CUSTOM_VTABLE
740 SharedCtor(arena);
741 // @@protoc_insertion_point(arena_constructor:operations_research.packing.MultipleDimensionsBinPackingProblem)
742}
743PROTOBUF_NDEBUG_INLINE MultipleDimensionsBinPackingProblem::Impl_::Impl_(
744 ::google::protobuf::internal::InternalVisibility visibility,
745 ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const Impl_& from,
746 const ::operations_research::packing::MultipleDimensionsBinPackingProblem& from_msg)
747 : _has_bits_{from._has_bits_},
748 _cached_size_{0},
749 items_{visibility, arena, from.items_} {}
750
752 ::google::protobuf::Arena* PROTOBUF_NULLABLE arena,
753 const MultipleDimensionsBinPackingProblem& from)
754#if defined(PROTOBUF_CUSTOM_VTABLE)
755 : ::google::protobuf::Message(arena, MultipleDimensionsBinPackingProblem_class_data_.base()) {
756#else // PROTOBUF_CUSTOM_VTABLE
757 : ::google::protobuf::Message(arena) {
758#endif // PROTOBUF_CUSTOM_VTABLE
759 MultipleDimensionsBinPackingProblem* const _this = this;
760 (void)_this;
761 _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(
762 from._internal_metadata_);
763 new (&_impl_) Impl_(internal_visibility(), arena, from._impl_, from);
764 ::uint32_t cached_has_bits = _impl_._has_bits_[0];
765 _impl_.box_shape_ = ((cached_has_bits & 0x00000001u) != 0)
766 ? ::google::protobuf::Message::CopyConstruct(arena, *from._impl_.box_shape_)
767 : nullptr;
768
769 // @@protoc_insertion_point(copy_constructor:operations_research.packing.MultipleDimensionsBinPackingProblem)
770}
771PROTOBUF_NDEBUG_INLINE MultipleDimensionsBinPackingProblem::Impl_::Impl_(
772 ::google::protobuf::internal::InternalVisibility visibility,
773 ::google::protobuf::Arena* PROTOBUF_NULLABLE arena)
774 : _cached_size_{0},
775 items_{visibility, arena} {}
776
777inline void MultipleDimensionsBinPackingProblem::SharedCtor(::_pb::Arena* PROTOBUF_NULLABLE arena) {
778 new (&_impl_) Impl_(internal_visibility(), arena);
779 _impl_.box_shape_ = {};
780}
782 // @@protoc_insertion_point(destructor:operations_research.packing.MultipleDimensionsBinPackingProblem)
783 SharedDtor(*this);
785inline void MultipleDimensionsBinPackingProblem::SharedDtor(MessageLite& self) {
787 this_._internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>();
788 ABSL_DCHECK(this_.GetArena() == nullptr);
789 delete this_._impl_.box_shape_;
790 this_._impl_.~Impl_();
791}
792
793inline void* PROTOBUF_NONNULL MultipleDimensionsBinPackingProblem::PlacementNew_(
794 const void* PROTOBUF_NONNULL, void* PROTOBUF_NONNULL mem,
795 ::google::protobuf::Arena* PROTOBUF_NULLABLE arena) {
796 return ::new (mem) MultipleDimensionsBinPackingProblem(arena);
797}
799 constexpr auto arena_bits = ::google::protobuf::internal::EncodePlacementArenaOffsets({
800 PROTOBUF_FIELD_OFFSET(MultipleDimensionsBinPackingProblem, _impl_.items_) +
802 InternalGetArenaOffset(
803 ::google::protobuf::Message::internal_visibility()),
804 });
805 if (arena_bits.has_value()) {
806 return ::google::protobuf::internal::MessageCreator::ZeroInit(
807 sizeof(MultipleDimensionsBinPackingProblem), alignof(MultipleDimensionsBinPackingProblem), *arena_bits);
808 } else {
809 return ::google::protobuf::internal::MessageCreator(&MultipleDimensionsBinPackingProblem::PlacementNew_,
810 sizeof(MultipleDimensionsBinPackingProblem),
811 alignof(MultipleDimensionsBinPackingProblem));
812 }
813}
815 return ::google::protobuf::internal::ClassDataFull{
816 ::google::protobuf::internal::ClassData{
818 &_table_.header,
819 nullptr, // OnDemandRegisterArenaDtor
820 nullptr, // IsInitialized
821 &MultipleDimensionsBinPackingProblem::MergeImpl,
822 ::google::protobuf::Message::GetNewImpl<MultipleDimensionsBinPackingProblem>(),
823#if defined(PROTOBUF_CUSTOM_VTABLE)
824 &MultipleDimensionsBinPackingProblem::SharedDtor,
825 ::google::protobuf::Message::GetClearImpl<MultipleDimensionsBinPackingProblem>(), &MultipleDimensionsBinPackingProblem::ByteSizeLong,
827#endif // PROTOBUF_CUSTOM_VTABLE
828 PROTOBUF_FIELD_OFFSET(MultipleDimensionsBinPackingProblem, _impl_._cached_size_),
829 false,
830 },
831 &MultipleDimensionsBinPackingProblem::kDescriptorMethods,
833 nullptr, // tracker
834 };
835}
836
837PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 const
838 ::google::protobuf::internal::ClassDataFull MultipleDimensionsBinPackingProblem_class_data_ =
840
841PROTOBUF_ATTRIBUTE_WEAK const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL
843 ::google::protobuf::internal::PrefetchToLocalCache(&MultipleDimensionsBinPackingProblem_class_data_);
844 ::google::protobuf::internal::PrefetchToLocalCache(MultipleDimensionsBinPackingProblem_class_data_.tc_table);
846}
847PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1
848const ::_pbi::TcParseTable<1, 2, 2, 0, 2>
849MultipleDimensionsBinPackingProblem::_table_ = {
850 {
851 PROTOBUF_FIELD_OFFSET(MultipleDimensionsBinPackingProblem, _impl_._has_bits_),
852 0, // no _extensions_
853 2, 8, // max_field_number, fast_idx_mask
854 offsetof(decltype(_table_), field_lookup_table),
855 4294967292, // skipmap
856 offsetof(decltype(_table_), field_entries),
857 2, // num_field_entries
858 2, // num_aux_entries
859 offsetof(decltype(_table_), aux_entries),
861 nullptr, // post_loop_handler
862 ::_pbi::TcParser::GenericFallback, // fallback
863 #ifdef PROTOBUF_PREFETCH_PARSE_TABLE
864 ::_pbi::TcParser::GetTable<::operations_research::packing::MultipleDimensionsBinPackingProblem>(), // to_prefetch
865 #endif // PROTOBUF_PREFETCH_PARSE_TABLE
866 }, {{
867 // repeated .operations_research.packing.MultipleDimensionsBinPackingItem items = 2;
868 {::_pbi::TcParser::FastMtR1,
869 {18, 63, 1, PROTOBUF_FIELD_OFFSET(MultipleDimensionsBinPackingProblem, _impl_.items_)}},
870 // .operations_research.packing.MultipleDimensionsBinPackingShape box_shape = 1;
871 {::_pbi::TcParser::FastMtS1,
872 {10, 0, 0, PROTOBUF_FIELD_OFFSET(MultipleDimensionsBinPackingProblem, _impl_.box_shape_)}},
873 }}, {{
874 65535, 65535
875 }}, {{
876 // .operations_research.packing.MultipleDimensionsBinPackingShape box_shape = 1;
877 {PROTOBUF_FIELD_OFFSET(MultipleDimensionsBinPackingProblem, _impl_.box_shape_), _Internal::kHasBitsOffset + 0, 0,
878 (0 | ::_fl::kFcOptional | ::_fl::kMessage | ::_fl::kTvTable)},
879 // repeated .operations_research.packing.MultipleDimensionsBinPackingItem items = 2;
880 {PROTOBUF_FIELD_OFFSET(MultipleDimensionsBinPackingProblem, _impl_.items_), -1, 1,
881 (0 | ::_fl::kFcRepeated | ::_fl::kMessage | ::_fl::kTvTable)},
882 }},
883 {{
884 {::_pbi::TcParser::GetTable<::operations_research::packing::MultipleDimensionsBinPackingShape>()},
885 {::_pbi::TcParser::GetTable<::operations_research::packing::MultipleDimensionsBinPackingItem>()},
886 }},
887 {{
888 }},
889};
890PROTOBUF_NOINLINE void MultipleDimensionsBinPackingProblem::Clear() {
891// @@protoc_insertion_point(message_clear_start:operations_research.packing.MultipleDimensionsBinPackingProblem)
892 ::google::protobuf::internal::TSanWrite(&_impl_);
893 ::uint32_t cached_has_bits = 0;
894 // Prevent compiler warnings about cached_has_bits being unused
895 (void) cached_has_bits;
896
897 _impl_.items_.Clear();
898 cached_has_bits = _impl_._has_bits_[0];
899 if ((cached_has_bits & 0x00000001u) != 0) {
900 ABSL_DCHECK(_impl_.box_shape_ != nullptr);
901 _impl_.box_shape_->Clear();
902 }
903 _impl_._has_bits_.Clear();
904 _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>();
905}
906
907#if defined(PROTOBUF_CUSTOM_VTABLE)
909 const ::google::protobuf::MessageLite& base, ::uint8_t* PROTOBUF_NONNULL target,
910 ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) {
912#else // PROTOBUF_CUSTOM_VTABLE
914 ::uint8_t* PROTOBUF_NONNULL target,
915 ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const {
917#endif // PROTOBUF_CUSTOM_VTABLE
918 // @@protoc_insertion_point(serialize_to_array_start:operations_research.packing.MultipleDimensionsBinPackingProblem)
919 ::uint32_t cached_has_bits = 0;
920 (void)cached_has_bits;
921
922 cached_has_bits = this_._impl_._has_bits_[0];
923 // .operations_research.packing.MultipleDimensionsBinPackingShape box_shape = 1;
924 if ((cached_has_bits & 0x00000001u) != 0) {
925 target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage(
926 1, *this_._impl_.box_shape_, this_._impl_.box_shape_->GetCachedSize(), target,
927 stream);
928 }
929
930 // repeated .operations_research.packing.MultipleDimensionsBinPackingItem items = 2;
931 for (unsigned i = 0, n = static_cast<unsigned>(
932 this_._internal_items_size());
933 i < n; i++) {
934 const auto& repfield = this_._internal_items().Get(i);
935 target =
936 ::google::protobuf::internal::WireFormatLite::InternalWriteMessage(
937 2, repfield, repfield.GetCachedSize(),
938 target, stream);
939 }
940
941 if (ABSL_PREDICT_FALSE(this_._internal_metadata_.have_unknown_fields())) {
942 target =
943 ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray(
944 this_._internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream);
945 }
946 // @@protoc_insertion_point(serialize_to_array_end:operations_research.packing.MultipleDimensionsBinPackingProblem)
947 return target;
948}
949
950#if defined(PROTOBUF_CUSTOM_VTABLE)
952 const MultipleDimensionsBinPackingProblem& this_ = static_cast<const MultipleDimensionsBinPackingProblem&>(base);
953#else // PROTOBUF_CUSTOM_VTABLE
955 const MultipleDimensionsBinPackingProblem& this_ = *this;
956#endif // PROTOBUF_CUSTOM_VTABLE
957 // @@protoc_insertion_point(message_byte_size_start:operations_research.packing.MultipleDimensionsBinPackingProblem)
958 ::size_t total_size = 0;
959
960 ::uint32_t cached_has_bits = 0;
961 // Prevent compiler warnings about cached_has_bits being unused
962 (void)cached_has_bits;
963
964 ::_pbi::Prefetch5LinesFrom7Lines(&this_);
965 {
966 // repeated .operations_research.packing.MultipleDimensionsBinPackingItem items = 2;
967 {
968 total_size += 1UL * this_._internal_items_size();
969 for (const auto& msg : this_._internal_items()) {
970 total_size += ::google::protobuf::internal::WireFormatLite::MessageSize(msg);
971 }
972 }
973 }
974 {
975 // .operations_research.packing.MultipleDimensionsBinPackingShape box_shape = 1;
976 cached_has_bits = this_._impl_._has_bits_[0];
977 if ((cached_has_bits & 0x00000001u) != 0) {
978 total_size += 1 +
979 ::google::protobuf::internal::WireFormatLite::MessageSize(*this_._impl_.box_shape_);
980 }
981 }
982 return this_.MaybeComputeUnknownFieldsSize(total_size,
983 &this_._impl_._cached_size_);
984}
985
986void MultipleDimensionsBinPackingProblem::MergeImpl(::google::protobuf::MessageLite& to_msg, const ::google::protobuf::MessageLite& from_msg) {
987 auto* const _this = static_cast<MultipleDimensionsBinPackingProblem*>(&to_msg);
988 auto& from = static_cast<const MultipleDimensionsBinPackingProblem&>(from_msg);
989 ::google::protobuf::Arena* arena = _this->GetArena();
990 // @@protoc_insertion_point(class_specific_merge_from_start:operations_research.packing.MultipleDimensionsBinPackingProblem)
991 ABSL_DCHECK_NE(&from, _this);
992 ::uint32_t cached_has_bits = 0;
993 (void) cached_has_bits;
994
995 _this->_internal_mutable_items()->MergeFrom(
996 from._internal_items());
997 cached_has_bits = from._impl_._has_bits_[0];
998 if ((cached_has_bits & 0x00000001u) != 0) {
999 ABSL_DCHECK(from._impl_.box_shape_ != nullptr);
1000 if (_this->_impl_.box_shape_ == nullptr) {
1001 _this->_impl_.box_shape_ = ::google::protobuf::Message::CopyConstruct(arena, *from._impl_.box_shape_);
1002 } else {
1003 _this->_impl_.box_shape_->MergeFrom(*from._impl_.box_shape_);
1004 }
1005 }
1006 _this->_impl_._has_bits_[0] |= cached_has_bits;
1007 _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_);
1008}
1009
1011// @@protoc_insertion_point(class_specific_copy_from_start:operations_research.packing.MultipleDimensionsBinPackingProblem)
1012 if (&from == this) return;
1014 MergeFrom(from);
1015}
1016
1017
1018void MultipleDimensionsBinPackingProblem::InternalSwap(MultipleDimensionsBinPackingProblem* PROTOBUF_RESTRICT PROTOBUF_NONNULL other) {
1019 using ::std::swap;
1020 _internal_metadata_.InternalSwap(&other->_internal_metadata_);
1021 swap(_impl_._has_bits_[0], other->_impl_._has_bits_[0]);
1022 _impl_.items_.InternalSwap(&other->_impl_.items_);
1023 swap(_impl_.box_shape_, other->_impl_.box_shape_);
1024}
1025
1026::google::protobuf::Metadata MultipleDimensionsBinPackingProblem::GetMetadata() const {
1027 return ::google::protobuf::Message::GetMetadataImpl(GetClassData()->full());
1028}
1029// @@protoc_insertion_point(namespace_scope)
1030} // namespace packing
1031} // namespace operations_research
1032namespace google {
1033namespace protobuf {
1034} // namespace protobuf
1035} // namespace google
1036// @@protoc_insertion_point(global_scope)
1037PROTOBUF_ATTRIBUTE_INIT_PRIORITY2 static ::std::false_type
1038 _static_init2_ [[maybe_unused]] =
1040 ::std::false_type{});
1041#include "google/protobuf/port_undef.inc"
static PROTOBUF_ATTRIBUTE_INIT_PRIORITY2 ::std::false_type _static_init2_
@protoc_insertion_point(global_scope)
static const ::_pb::Message *PROTOBUF_NONNULL const file_default_instances[]
decltype(::std::declval< MultipleDimensionsBinPackingItem >()._impl_._has_bits_) HasBits
const ::google::protobuf::internal::ClassData *PROTOBUF_NONNULL GetClassData() const PROTOBUF_FINAL
const ::google::protobuf::UnknownFieldSet & unknown_fields() const ABSL_ATTRIBUTE_LIFETIME_BOUND
static void *PROTOBUF_NONNULL PlacementNew_(const void *PROTOBUF_NONNULL, void *PROTOBUF_NONNULL mem, ::google::protobuf::Arena *PROTOBUF_NULLABLE arena)
::uint8_t *PROTOBUF_NONNULL _InternalSerialize(::uint8_t *PROTOBUF_NONNULL target, ::google::protobuf::io::EpsCopyOutputStream *PROTOBUF_NONNULL stream) const final
const ::google::protobuf::internal::ClassData *PROTOBUF_NONNULL GetClassData() const PROTOBUF_FINAL
static void *PROTOBUF_NONNULL PlacementNew_(const void *PROTOBUF_NONNULL, void *PROTOBUF_NONNULL mem, ::google::protobuf::Arena *PROTOBUF_NULLABLE arena)
friend void swap(MultipleDimensionsBinPackingProblem &a, MultipleDimensionsBinPackingProblem &b)
::uint8_t *PROTOBUF_NONNULL _InternalSerialize(::uint8_t *PROTOBUF_NONNULL target, ::google::protobuf::io::EpsCopyOutputStream *PROTOBUF_NONNULL stream) const final
const ::google::protobuf::UnknownFieldSet & unknown_fields() const ABSL_ATTRIBUTE_LIFETIME_BOUND
::uint8_t *PROTOBUF_NONNULL _InternalSerialize(::uint8_t *PROTOBUF_NONNULL target, ::google::protobuf::io::EpsCopyOutputStream *PROTOBUF_NONNULL stream) const final
friend void swap(MultipleDimensionsBinPackingShape &a, MultipleDimensionsBinPackingShape &b)
static void *PROTOBUF_NONNULL PlacementNew_(const void *PROTOBUF_NONNULL, void *PROTOBUF_NONNULL mem, ::google::protobuf::Arena *PROTOBUF_NULLABLE arena)
const ::google::protobuf::UnknownFieldSet & unknown_fields() const ABSL_ATTRIBUTE_LIFETIME_BOUND
const ::google::protobuf::internal::ClassData *PROTOBUF_NONNULL GetClassData() const PROTOBUF_FINAL
PROTOBUF_CONSTINITconst ::_pbi::DescriptorTable descriptor_table_ortools_2fpacking_2fmultiple_5fdimensions_5fbin_5fpacking_2eproto
static constexprconst ::_pb::EnumDescriptor *PROTOBUF_NONNULL *PROTOBUF_NULLABLE file_level_enum_descriptors_ortools_2fpacking_2fmultiple_5fdimensions_5fbin_5fpacking_2eproto
const ::uint32_t TableStruct_ortools_2fpacking_2fmultiple_5fdimensions_5fbin_5fpacking_2eproto::offsets[] ABSL_ATTRIBUTE_SECTION_VARIABLE(protodesc_cold)
::absl::once_flag descriptor_table_ortools_2fpacking_2fmultiple_5fdimensions_5fbin_5fpacking_2eproto_once
static constexprconst ::_pb::ServiceDescriptor *PROTOBUF_NONNULL *PROTOBUF_NULLABLE file_level_service_descriptors_ortools_2fpacking_2fmultiple_5fdimensions_5fbin_5fpacking_2eproto
PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 const::google::protobuf::internal::ClassDataFull MultipleDimensionsBinPackingShape_class_data_
PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 const::google::protobuf::internal::ClassDataFull MultipleDimensionsBinPackingProblem_class_data_
PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT OR_PROTO_DLL PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 MultipleDimensionsBinPackingItemDefaultTypeInternal _MultipleDimensionsBinPackingItem_default_instance_
PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT OR_PROTO_DLL PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 MultipleDimensionsBinPackingShapeDefaultTypeInternal _MultipleDimensionsBinPackingShape_default_instance_
PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 const::google::protobuf::internal::ClassDataFull MultipleDimensionsBinPackingItem_class_data_
PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT OR_PROTO_DLL PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 MultipleDimensionsBinPackingProblemDefaultTypeInternal _MultipleDimensionsBinPackingProblem_default_instance_
In SWIG mode, we don't want anything besides these top-level includes.
static constexpr ::_pbi::MigrationSchema *PROTOBUF_NULLABLE schemas