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"
22#include "google/protobuf/port_def.inc"
23PROTOBUF_PRAGMA_INIT_SEG
26namespace _fl = ::google::protobuf::internal::field_layout;
30inline constexpr MultipleDimensionsBinPackingShape::Impl_::Impl_(
31 ::_pbi::ConstantInitialized) noexcept
34 _dimensions_cached_byte_size_{0} {}
38#if defined(PROTOBUF_CUSTOM_VTABLE)
41 : ::google::protobuf::Message(),
43 _impl_(::_pbi::ConstantInitialized()) {
53PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT OR_PROTO_DLL
56inline constexpr MultipleDimensionsBinPackingItem::Impl_::Impl_(
57 ::_pbi::ConstantInitialized) noexcept
60 value_{::int64_t{0}} {}
64#if defined(PROTOBUF_CUSTOM_VTABLE)
67 : ::google::protobuf::Message(),
69 _impl_(::_pbi::ConstantInitialized()) {
79PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT OR_PROTO_DLL
82inline constexpr MultipleDimensionsBinPackingProblem::Impl_::Impl_(
83 ::_pbi::ConstantInitialized) noexcept
86 box_shape_{
nullptr} {}
90#if defined(PROTOBUF_CUSTOM_VTABLE)
93 : ::google::protobuf::Message(),
95 _impl_(::_pbi::ConstantInitialized()) {
105PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT OR_PROTO_DLL
109static constexpr const ::_pb::EnumDescriptor* PROTOBUF_NONNULL* PROTOBUF_NULLABLE
111static constexpr const ::_pb::ServiceDescriptor* PROTOBUF_NONNULL* PROTOBUF_NULLABLE
137static const ::_pbi::MigrationSchema
150 "\n5ortools/packing/multiple_dimensions_bi"
151 "n_packing.proto\022\033operations_research.pac"
152 "king\"7\n!MultipleDimensionsBinPackingShap"
153 "e\022\022\n\ndimensions\030\001 \003(\003\"\201\001\n MultipleDimens"
154 "ionsBinPackingItem\022N\n\006shapes\030\001 \003(\0132>.ope"
155 "rations_research.packing.MultipleDimensi"
156 "onsBinPackingShape\022\r\n\005value\030\002 \001(\003\"\306\001\n#Mu"
157 "ltipleDimensionsBinPackingProblem\022Q\n\tbox"
158 "_shape\030\001 \001(\0132>.operations_research.packi"
159 "ng.MultipleDimensionsBinPackingShape\022L\n\005"
160 "items\030\002 \003(\0132=.operations_research.packin"
161 "g.MultipleDimensionsBinPackingItemB\002P\001b\006"
169 descriptor_table_protodef_ortools_2fpacking_2fmultiple_5fdimensions_5fbin_5fpacking_2eproto,
170 "ortools/packing/multiple_dimensions_bin_packing.proto",
188 decltype(::std::declval<MultipleDimensionsBinPackingShape>()._impl_._has_bits_);
194#if defined(PROTOBUF_CUSTOM_VTABLE)
197 : ::google::protobuf::Message(arena) {
202PROTOBUF_NDEBUG_INLINE MultipleDimensionsBinPackingShape::Impl_::Impl_(
203 [[maybe_unused]] ::google::protobuf::internal::InternalVisibility visibility,
204 [[maybe_unused]] ::google::protobuf::Arena* PROTOBUF_NULLABLE arena,
const Impl_& from,
205 [[maybe_unused]] const ::operations_research::packing::MultipleDimensionsBinPackingShape& from_msg)
206 : _has_bits_{from._has_bits_},
208 dimensions_{visibility, arena, from.dimensions_},
209 _dimensions_cached_byte_size_{0} {}
212 ::google::protobuf::Arena* PROTOBUF_NULLABLE arena,
214#if defined(PROTOBUF_CUSTOM_VTABLE)
217 : ::google::protobuf::Message(arena) {
221 _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(
222 from._internal_metadata_);
223 new (&
_impl_) Impl_(internal_visibility(), arena, from._impl_, from);
227PROTOBUF_NDEBUG_INLINE MultipleDimensionsBinPackingShape::Impl_::Impl_(
228 [[maybe_unused]] ::google::protobuf::internal::InternalVisibility visibility,
229 [[maybe_unused]] ::google::protobuf::Arena* PROTOBUF_NULLABLE arena)
231 dimensions_{visibility, arena},
232 _dimensions_cached_byte_size_{0} {}
234inline void MultipleDimensionsBinPackingShape::SharedCtor(::_pb::Arena* PROTOBUF_NULLABLE arena) {
235 new (&
_impl_) Impl_(internal_visibility(), arena);
241inline void MultipleDimensionsBinPackingShape::SharedDtor(
MessageLite& self) {
243 if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) {
244 this_.CheckHasBitConsistency();
246 this_._internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>();
247 ABSL_DCHECK(this_.GetArena() ==
nullptr);
251inline void* PROTOBUF_NONNULL MultipleDimensionsBinPackingShape::PlacementNew_(
252 const void* PROTOBUF_NONNULL,
void* PROTOBUF_NONNULL mem,
253 ::google::protobuf::Arena* PROTOBUF_NULLABLE arena) {
256constexpr auto MultipleDimensionsBinPackingShape::InternalNewImpl_() {
257 constexpr auto arena_bits = ::google::protobuf::internal::EncodePlacementArenaOffsets({
260 InternalGetArenaOffset(
261 ::google::protobuf::Message::internal_visibility()),
263 if (arena_bits.has_value()) {
264 return ::google::protobuf::internal::MessageCreator::ZeroInit(
265 sizeof(MultipleDimensionsBinPackingShape), alignof(MultipleDimensionsBinPackingShape), *arena_bits);
267 return ::google::protobuf::internal::MessageCreator(&MultipleDimensionsBinPackingShape::PlacementNew_,
268 sizeof(MultipleDimensionsBinPackingShape),
269 alignof(MultipleDimensionsBinPackingShape));
273 return ::google::protobuf::internal::ClassDataFull{
274 ::google::protobuf::internal::ClassData{
279 &MultipleDimensionsBinPackingShape::MergeImpl,
280 ::google::protobuf::Message::GetNewImpl<MultipleDimensionsBinPackingShape>(),
281#if defined(PROTOBUF_CUSTOM_VTABLE)
282 &MultipleDimensionsBinPackingShape::SharedDtor,
289 &MultipleDimensionsBinPackingShape::kDescriptorMethods,
295PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 const
299PROTOBUF_ATTRIBUTE_WEAK const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL
300MultipleDimensionsBinPackingShape::GetClassData()
const {
305PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1
306const ::_pbi::TcParseTable<0, 1, 0, 0, 2>
307MultipleDimensionsBinPackingShape::_table_ = {
312 offsetof(
decltype(_table_), field_lookup_table),
314 offsetof(
decltype(_table_), field_entries),
317 offsetof(
decltype(_table_), field_names),
320 ::_pbi::TcParser::GenericFallback,
321 #ifdef PROTOBUF_PREFETCH_PARSE_TABLE
322 ::_pbi::TcParser::GetTable<::operations_research::packing::MultipleDimensionsBinPackingShape>(),
326 {::_pbi::TcParser::FastV64P1,
341 ::google::protobuf::internal::TSanWrite(&
_impl_);
342 ::uint32_t cached_has_bits = 0;
344 (void) cached_has_bits;
346 cached_has_bits =
_impl_._has_bits_[0];
347 if (CheckHasBitForRepeated(cached_has_bits, 0x00000001U)) {
348 _impl_.dimensions_.Clear();
350 _impl_._has_bits_.Clear();
351 _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>();
354#if defined(PROTOBUF_CUSTOM_VTABLE)
356 const ::google::protobuf::MessageLite&
base, ::uint8_t* PROTOBUF_NONNULL target,
357 ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) {
361 ::uint8_t* PROTOBUF_NONNULL target,
362 ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream)
const {
365 if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) {
366 this_.CheckHasBitConsistency();
369 ::uint32_t cached_has_bits = 0;
370 (void)cached_has_bits;
372 cached_has_bits = this_.
_impl_._has_bits_[0];
374 if (CheckHasBitForRepeated(cached_has_bits, 0x00000001U)) {
376 int byte_size = this_.
_impl_._dimensions_cached_byte_size_.Get();
378 target = stream->WriteInt64Packed(
379 1, this_._internal_dimensions(), byte_size, target);
384 if (ABSL_PREDICT_FALSE(this_._internal_metadata_.have_unknown_fields())) {
386 ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray(
387 this_._internal_metadata_.
unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream);
393#if defined(PROTOBUF_CUSTOM_VTABLE)
401 ::size_t total_size = 0;
403 ::uint32_t cached_has_bits = 0;
405 (void)cached_has_bits;
407 ::_pbi::Prefetch5LinesFrom7Lines(&this_);
410 cached_has_bits = this_.
_impl_._has_bits_[0];
411 if (CheckHasBitForRepeated(cached_has_bits, 0x00000001U)) {
413 ::_pbi::WireFormatLite::Int64SizeWithPackedTagSize(
414 this_._internal_dimensions(), 1,
415 this_.
_impl_._dimensions_cached_byte_size_);
418 return this_.MaybeComputeUnknownFieldsSize(total_size,
419 &this_.
_impl_._cached_size_);
422void MultipleDimensionsBinPackingShape::MergeImpl(::google::protobuf::MessageLite& to_msg,
423 const ::google::protobuf::MessageLite& from_msg) {
427 if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) {
428 from.CheckHasBitConsistency();
431 ABSL_DCHECK_NE(&from, _this);
432 ::uint32_t cached_has_bits = 0;
433 (void)cached_has_bits;
435 cached_has_bits = from._impl_._has_bits_[0];
436 if (CheckHasBitForRepeated(cached_has_bits, 0x00000001U)) {
437 _this->_internal_mutable_dimensions()->MergeFrom(from._internal_dimensions());
439 _this->_impl_._has_bits_[0] |= cached_has_bits;
440 _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(
441 from._internal_metadata_);
446 if (&from ==
this)
return;
454 _internal_metadata_.InternalSwap(&other->_internal_metadata_);
455 swap(
_impl_._has_bits_[0], other->_impl_._has_bits_[0]);
456 _impl_.dimensions_.InternalSwap(&other->_impl_.dimensions_);
460 return ::google::protobuf::Message::GetMetadataImpl(GetClassData()->full());
467 decltype(::std::declval<MultipleDimensionsBinPackingItem>()._impl_._has_bits_);
473#if defined(PROTOBUF_CUSTOM_VTABLE)
476 : ::google::protobuf::Message(arena) {
481PROTOBUF_NDEBUG_INLINE MultipleDimensionsBinPackingItem::Impl_::Impl_(
482 [[maybe_unused]] ::google::protobuf::internal::InternalVisibility visibility,
483 [[maybe_unused]] ::google::protobuf::Arena* PROTOBUF_NULLABLE arena,
const Impl_& from,
484 [[maybe_unused]] const ::operations_research::packing::MultipleDimensionsBinPackingItem& from_msg)
485 : _has_bits_{from._has_bits_},
487 shapes_{visibility, arena, from.shapes_} {}
490 ::google::protobuf::Arena* PROTOBUF_NULLABLE arena,
492#if defined(PROTOBUF_CUSTOM_VTABLE)
495 : ::google::protobuf::Message(arena) {
499 _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(
500 from._internal_metadata_);
501 new (&
_impl_) Impl_(internal_visibility(), arena, from._impl_, from);
502 _impl_.value_ = from._impl_.value_;
506PROTOBUF_NDEBUG_INLINE MultipleDimensionsBinPackingItem::Impl_::Impl_(
507 [[maybe_unused]] ::google::protobuf::internal::InternalVisibility visibility,
508 [[maybe_unused]] ::google::protobuf::Arena* PROTOBUF_NULLABLE arena)
510 shapes_{visibility, arena} {}
512inline void MultipleDimensionsBinPackingItem::SharedCtor(::_pb::Arena* PROTOBUF_NULLABLE arena) {
513 new (&
_impl_) Impl_(internal_visibility(), arena);
520inline void MultipleDimensionsBinPackingItem::SharedDtor(
MessageLite& self) {
522 if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) {
523 this_.CheckHasBitConsistency();
525 this_._internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>();
526 ABSL_DCHECK(this_.GetArena() ==
nullptr);
530inline void* PROTOBUF_NONNULL MultipleDimensionsBinPackingItem::PlacementNew_(
531 const void* PROTOBUF_NONNULL,
void* PROTOBUF_NONNULL mem,
532 ::google::protobuf::Arena* PROTOBUF_NULLABLE arena) {
535constexpr auto MultipleDimensionsBinPackingItem::InternalNewImpl_() {
536 constexpr auto arena_bits = ::google::protobuf::internal::EncodePlacementArenaOffsets({
539 InternalGetArenaOffset(
540 ::google::protobuf::Message::internal_visibility()),
542 if (arena_bits.has_value()) {
543 return ::google::protobuf::internal::MessageCreator::ZeroInit(
544 sizeof(MultipleDimensionsBinPackingItem), alignof(MultipleDimensionsBinPackingItem), *arena_bits);
546 return ::google::protobuf::internal::MessageCreator(&MultipleDimensionsBinPackingItem::PlacementNew_,
547 sizeof(MultipleDimensionsBinPackingItem),
548 alignof(MultipleDimensionsBinPackingItem));
552 return ::google::protobuf::internal::ClassDataFull{
553 ::google::protobuf::internal::ClassData{
558 &MultipleDimensionsBinPackingItem::MergeImpl,
559 ::google::protobuf::Message::GetNewImpl<MultipleDimensionsBinPackingItem>(),
560#if defined(PROTOBUF_CUSTOM_VTABLE)
561 &MultipleDimensionsBinPackingItem::SharedDtor,
568 &MultipleDimensionsBinPackingItem::kDescriptorMethods,
574PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 const
578PROTOBUF_ATTRIBUTE_WEAK const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL
579MultipleDimensionsBinPackingItem::GetClassData()
const {
584PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1
585const ::_pbi::TcParseTable<1, 2, 1, 0, 2>
586MultipleDimensionsBinPackingItem::_table_ = {
591 offsetof(
decltype(_table_), field_lookup_table),
593 offsetof(
decltype(_table_), field_entries),
596 offsetof(
decltype(_table_), aux_entries),
599 ::_pbi::TcParser::GenericFallback,
600 #ifdef PROTOBUF_PREFETCH_PARSE_TABLE
601 ::_pbi::TcParser::GetTable<::operations_research::packing::MultipleDimensionsBinPackingItem>(),
609 {::_pbi::TcParser::FastMtR1,
621 {::_pbi::TcParser::GetTable<::operations_research::packing::MultipleDimensionsBinPackingShape>()},
628 ::google::protobuf::internal::TSanWrite(&
_impl_);
629 ::uint32_t cached_has_bits = 0;
631 (void) cached_has_bits;
633 cached_has_bits =
_impl_._has_bits_[0];
634 if (CheckHasBitForRepeated(cached_has_bits, 0x00000001U)) {
637 _impl_.value_ = ::int64_t{0};
638 _impl_._has_bits_.Clear();
639 _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>();
642#if defined(PROTOBUF_CUSTOM_VTABLE)
644 const ::google::protobuf::MessageLite& base, ::uint8_t* PROTOBUF_NONNULL target,
645 ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) {
649 ::uint8_t* PROTOBUF_NONNULL target,
650 ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream)
const {
653 if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) {
654 this_.CheckHasBitConsistency();
657 ::uint32_t cached_has_bits = 0;
658 (void)cached_has_bits;
660 cached_has_bits = this_.
_impl_._has_bits_[0];
662 if (CheckHasBitForRepeated(cached_has_bits, 0x00000001U)) {
663 for (
unsigned i = 0, n =
static_cast<unsigned>(
664 this_._internal_shapes_size());
666 const auto& repfield = this_._internal_shapes().Get(i);
668 ::google::protobuf::internal::WireFormatLite::InternalWriteMessage(
669 1, repfield, repfield.GetCachedSize(),
675 if (CheckHasBit(cached_has_bits, 0x00000002U)) {
676 if (this_._internal_value() != 0) {
678 ::google::protobuf::internal::WireFormatLite::WriteInt64ToArrayWithField<2>(
679 stream, this_._internal_value(), target);
683 if (ABSL_PREDICT_FALSE(this_._internal_metadata_.have_unknown_fields())) {
685 ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray(
686 this_._internal_metadata_.
unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream);
692#if defined(PROTOBUF_CUSTOM_VTABLE)
700 ::size_t total_size = 0;
702 ::uint32_t cached_has_bits = 0;
704 (void)cached_has_bits;
706 ::_pbi::Prefetch5LinesFrom7Lines(&this_);
707 cached_has_bits = this_.
_impl_._has_bits_[0];
708 if (BatchCheckHasBit(cached_has_bits, 0x00000003U)) {
710 if (CheckHasBitForRepeated(cached_has_bits, 0x00000001U)) {
711 total_size += 1UL * this_._internal_shapes_size();
712 for (
const auto& msg : this_._internal_shapes()) {
713 total_size += ::google::protobuf::internal::WireFormatLite::MessageSize(msg);
717 if (CheckHasBit(cached_has_bits, 0x00000002U)) {
718 if (this_._internal_value() != 0) {
719 total_size += ::_pbi::WireFormatLite::Int64SizePlusOne(
720 this_._internal_value());
724 return this_.MaybeComputeUnknownFieldsSize(total_size,
725 &this_.
_impl_._cached_size_);
728void MultipleDimensionsBinPackingItem::MergeImpl(::google::protobuf::MessageLite& to_msg,
729 const ::google::protobuf::MessageLite& from_msg) {
733 if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) {
734 from.CheckHasBitConsistency();
738 ABSL_DCHECK_NE(&from, _this);
739 ::uint32_t cached_has_bits = 0;
740 (void)cached_has_bits;
742 cached_has_bits = from._impl_._has_bits_[0];
743 if (BatchCheckHasBit(cached_has_bits, 0x00000003U)) {
744 if (CheckHasBitForRepeated(cached_has_bits, 0x00000001U)) {
745 _this->_internal_mutable_shapes()->InternalMergeFromWithArena(
746 ::google::protobuf::MessageLite::internal_visibility(), arena,
747 from._internal_shapes());
749 if (CheckHasBit(cached_has_bits, 0x00000002U)) {
750 if (from._internal_value() != 0) {
751 _this->_impl_.value_ = from._impl_.value_;
755 _this->_impl_._has_bits_[0] |= cached_has_bits;
756 _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(
757 from._internal_metadata_);
762 if (&from ==
this)
return;
770 _internal_metadata_.InternalSwap(&other->_internal_metadata_);
771 swap(
_impl_._has_bits_[0], other->_impl_._has_bits_[0]);
772 _impl_.shapes_.InternalSwap(&other->_impl_.shapes_);
777 return ::google::protobuf::Message::GetMetadataImpl(GetClassData()->full());
784 decltype(::std::declval<MultipleDimensionsBinPackingProblem>()._impl_._has_bits_);
790#if defined(PROTOBUF_CUSTOM_VTABLE)
793 : ::google::protobuf::Message(arena) {
798PROTOBUF_NDEBUG_INLINE MultipleDimensionsBinPackingProblem::Impl_::Impl_(
799 [[maybe_unused]] ::google::protobuf::internal::InternalVisibility visibility,
800 [[maybe_unused]] ::google::protobuf::Arena* PROTOBUF_NULLABLE arena,
const Impl_& from,
801 [[maybe_unused]] const ::operations_research::packing::MultipleDimensionsBinPackingProblem& from_msg)
802 : _has_bits_{from._has_bits_},
804 items_{visibility, arena, from.items_} {}
807 ::google::protobuf::Arena* PROTOBUF_NULLABLE arena,
809#if defined(PROTOBUF_CUSTOM_VTABLE)
812 : ::google::protobuf::Message(arena) {
816 _internal_metadata_.
MergeFrom<::google::protobuf::UnknownFieldSet>(
817 from._internal_metadata_);
818 new (&
_impl_) Impl_(internal_visibility(), arena, from._impl_, from);
819 ::uint32_t cached_has_bits =
_impl_._has_bits_[0];
820 _impl_.box_shape_ = (CheckHasBit(cached_has_bits, 0x00000002U))
821 ? ::google::protobuf::Message::CopyConstruct(arena, *from._impl_.box_shape_)
826PROTOBUF_NDEBUG_INLINE MultipleDimensionsBinPackingProblem::Impl_::Impl_(
827 [[maybe_unused]] ::google::protobuf::internal::InternalVisibility visibility,
828 [[maybe_unused]] ::google::protobuf::Arena* PROTOBUF_NULLABLE arena)
830 items_{visibility, arena} {}
832inline void MultipleDimensionsBinPackingProblem::SharedCtor(::_pb::Arena* PROTOBUF_NULLABLE arena) {
833 new (&
_impl_) Impl_(internal_visibility(), arena);
840inline void MultipleDimensionsBinPackingProblem::SharedDtor(
MessageLite& self) {
842 if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) {
843 this_.CheckHasBitConsistency();
845 this_._internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>();
846 ABSL_DCHECK(this_.GetArena() ==
nullptr);
847 delete this_.
_impl_.box_shape_;
851inline void* PROTOBUF_NONNULL MultipleDimensionsBinPackingProblem::PlacementNew_(
852 const void* PROTOBUF_NONNULL,
void* PROTOBUF_NONNULL mem,
853 ::google::protobuf::Arena* PROTOBUF_NULLABLE arena) {
854 return ::new (mem) MultipleDimensionsBinPackingProblem(arena);
856constexpr auto MultipleDimensionsBinPackingProblem::InternalNewImpl_() {
857 constexpr auto arena_bits = ::google::protobuf::internal::EncodePlacementArenaOffsets({
858 PROTOBUF_FIELD_OFFSET(MultipleDimensionsBinPackingProblem,
_impl_.items_) +
860 InternalGetArenaOffset(
861 ::google::protobuf::Message::internal_visibility()),
863 if (arena_bits.has_value()) {
864 return ::google::protobuf::internal::MessageCreator::ZeroInit(
865 sizeof(MultipleDimensionsBinPackingProblem), alignof(MultipleDimensionsBinPackingProblem), *arena_bits);
867 return ::google::protobuf::internal::MessageCreator(&MultipleDimensionsBinPackingProblem::PlacementNew_,
868 sizeof(MultipleDimensionsBinPackingProblem),
869 alignof(MultipleDimensionsBinPackingProblem));
873 return ::google::protobuf::internal::ClassDataFull{
874 ::google::protobuf::internal::ClassData{
879 &MultipleDimensionsBinPackingProblem::MergeImpl,
880 ::google::protobuf::Message::GetNewImpl<MultipleDimensionsBinPackingProblem>(),
881#if defined(PROTOBUF_CUSTOM_VTABLE)
882 &MultipleDimensionsBinPackingProblem::SharedDtor,
889 &MultipleDimensionsBinPackingProblem::kDescriptorMethods,
895PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 const
899PROTOBUF_ATTRIBUTE_WEAK const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL
900MultipleDimensionsBinPackingProblem::GetClassData()
const {
905PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1
906const ::_pbi::TcParseTable<1, 2, 2, 0, 2>
907MultipleDimensionsBinPackingProblem::_table_ = {
909 PROTOBUF_FIELD_OFFSET(MultipleDimensionsBinPackingProblem,
_impl_._has_bits_),
912 offsetof(
decltype(_table_), field_lookup_table),
914 offsetof(
decltype(_table_), field_entries),
917 offsetof(
decltype(_table_), aux_entries),
920 ::_pbi::TcParser::GenericFallback,
921 #ifdef PROTOBUF_PREFETCH_PARSE_TABLE
922 ::_pbi::TcParser::GetTable<::operations_research::packing::MultipleDimensionsBinPackingProblem>(),
926 {::_pbi::TcParser::FastMtR1,
928 PROTOBUF_FIELD_OFFSET(MultipleDimensionsBinPackingProblem,
_impl_.items_)}},
930 {::_pbi::TcParser::FastMtS1,
932 PROTOBUF_FIELD_OFFSET(MultipleDimensionsBinPackingProblem,
_impl_.box_shape_)}},
937 {PROTOBUF_FIELD_OFFSET(MultipleDimensionsBinPackingProblem,
_impl_.box_shape_),
_Internal::kHasBitsOffset + 1, 0, (0 | ::_fl::kFcOptional | ::_fl::kMessage | ::_fl::kTvTable)},
939 {PROTOBUF_FIELD_OFFSET(MultipleDimensionsBinPackingProblem,
_impl_.items_),
_Internal::kHasBitsOffset + 0, 1, (0 | ::_fl::kFcRepeated | ::_fl::kMessage | ::_fl::kTvTable)},
942 {::_pbi::TcParser::GetTable<::operations_research::packing::MultipleDimensionsBinPackingShape>()},
943 {::_pbi::TcParser::GetTable<::operations_research::packing::MultipleDimensionsBinPackingItem>()},
950 ::google::protobuf::internal::TSanWrite(&
_impl_);
951 ::uint32_t cached_has_bits = 0;
953 (void) cached_has_bits;
955 cached_has_bits =
_impl_._has_bits_[0];
956 if (BatchCheckHasBit(cached_has_bits, 0x00000003U)) {
957 if (CheckHasBitForRepeated(cached_has_bits, 0x00000001U)) {
960 if (CheckHasBit(cached_has_bits, 0x00000002U)) {
961 ABSL_DCHECK(
_impl_.box_shape_ !=
nullptr);
962 _impl_.box_shape_->Clear();
965 _impl_._has_bits_.Clear();
966 _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>();
969#if defined(PROTOBUF_CUSTOM_VTABLE)
971 const ::google::protobuf::MessageLite&
base, ::uint8_t* PROTOBUF_NONNULL target,
972 ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) {
973 const MultipleDimensionsBinPackingProblem& this_ =
static_cast<const MultipleDimensionsBinPackingProblem&
>(
base);
976 ::uint8_t* PROTOBUF_NONNULL target,
977 ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream)
const {
980 if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) {
981 this_.CheckHasBitConsistency();
984 ::uint32_t cached_has_bits = 0;
985 (void)cached_has_bits;
987 cached_has_bits = this_.
_impl_._has_bits_[0];
989 if (CheckHasBit(cached_has_bits, 0x00000002U)) {
990 target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage(
991 1, *this_.
_impl_.box_shape_, this_.
_impl_.box_shape_->GetCachedSize(), target,
996 if (CheckHasBitForRepeated(cached_has_bits, 0x00000001U)) {
997 for (
unsigned i = 0, n =
static_cast<unsigned>(
998 this_._internal_items_size());
1000 const auto& repfield = this_._internal_items().Get(i);
1002 ::google::protobuf::internal::WireFormatLite::InternalWriteMessage(
1003 2, repfield, repfield.GetCachedSize(),
1008 if (ABSL_PREDICT_FALSE(this_._internal_metadata_.have_unknown_fields())) {
1010 ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray(
1011 this_._internal_metadata_.
unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream);
1017#if defined(PROTOBUF_CUSTOM_VTABLE)
1019 const MultipleDimensionsBinPackingProblem& this_ =
static_cast<const MultipleDimensionsBinPackingProblem&
>(base);
1022 const MultipleDimensionsBinPackingProblem& this_ = *
this;
1025 ::size_t total_size = 0;
1027 ::uint32_t cached_has_bits = 0;
1029 (void)cached_has_bits;
1031 ::_pbi::Prefetch5LinesFrom7Lines(&this_);
1032 cached_has_bits = this_._impl_._has_bits_[0];
1033 if (BatchCheckHasBit(cached_has_bits, 0x00000003U)) {
1035 if (CheckHasBitForRepeated(cached_has_bits, 0x00000001U)) {
1036 total_size += 1UL * this_._internal_items_size();
1037 for (
const auto& msg : this_._internal_items()) {
1038 total_size += ::google::protobuf::internal::WireFormatLite::MessageSize(msg);
1042 if (CheckHasBit(cached_has_bits, 0x00000002U)) {
1044 ::google::protobuf::internal::WireFormatLite::MessageSize(*this_._impl_.box_shape_);
1047 return this_.MaybeComputeUnknownFieldsSize(total_size,
1048 &this_._impl_._cached_size_);
1051void MultipleDimensionsBinPackingProblem::MergeImpl(::google::protobuf::MessageLite& to_msg,
1052 const ::google::protobuf::MessageLite& from_msg) {
1054 static_cast<MultipleDimensionsBinPackingProblem*
>(&to_msg);
1055 auto& from =
static_cast<const MultipleDimensionsBinPackingProblem&
>(from_msg);
1056 if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) {
1057 from.CheckHasBitConsistency();
1061 ABSL_DCHECK_NE(&from, _this);
1062 ::uint32_t cached_has_bits = 0;
1063 (void)cached_has_bits;
1065 cached_has_bits = from._impl_._has_bits_[0];
1066 if (BatchCheckHasBit(cached_has_bits, 0x00000003U)) {
1067 if (CheckHasBitForRepeated(cached_has_bits, 0x00000001U)) {
1068 _this->_internal_mutable_items()->InternalMergeFromWithArena(
1069 ::google::protobuf::MessageLite::internal_visibility(), arena,
1070 from._internal_items());
1072 if (CheckHasBit(cached_has_bits, 0x00000002U)) {
1073 ABSL_DCHECK(from._impl_.box_shape_ !=
nullptr);
1074 if (_this->_impl_.box_shape_ ==
nullptr) {
1075 _this->_impl_.box_shape_ = ::google::protobuf::Message::CopyConstruct(arena, *from._impl_.box_shape_);
1077 _this->_impl_.box_shape_->MergeFrom(*from._impl_.box_shape_);
1081 _this->_impl_._has_bits_[0] |= cached_has_bits;
1082 _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(
1083 from._internal_metadata_);
1088 if (&from ==
this)
return;
1096 _internal_metadata_.InternalSwap(&other->_internal_metadata_);
1097 swap(
_impl_._has_bits_[0], other->_impl_._has_bits_[0]);
1098 _impl_.items_.InternalSwap(&other->_impl_.items_);
1099 swap(
_impl_.box_shape_, other->_impl_.box_shape_);
1103 return ::google::protobuf::Message::GetMetadataImpl(GetClassData()->full());
1113PROTOBUF_ATTRIBUTE_INIT_PRIORITY2 static ::std::false_type
1116 ::std::false_type{});
1117#include "google/protobuf/port_undef.inc"
static PROTOBUF_ATTRIBUTE_INIT_PRIORITY2 ::std::false_type _static_init2_
static const ::_pb::Message *PROTOBUF_NONNULL const file_default_instances[]
static constexpr ::int32_t kHasBitsOffset
decltype(::std::declval< MultipleDimensionsBinPackingItem >()._impl_._has_bits_) HasBits
friend class ::google::protobuf::MessageLite
ABSL_ATTRIBUTE_REINITIALIZES void Clear() PROTOBUF_FINAL
const ::google::protobuf::UnknownFieldSet & unknown_fields() const ABSL_ATTRIBUTE_LIFETIME_BOUND
::google::protobuf::Metadata GetMetadata() const
void MergeFrom(const MultipleDimensionsBinPackingItem &from)
~MultipleDimensionsBinPackingItem() PROTOBUF_FINAL
static constexpr auto InternalGenerateClassData_()
::size_t ByteSizeLong() const final
::uint8_t *PROTOBUF_NONNULL _InternalSerialize(::uint8_t *PROTOBUF_NONNULL target, ::google::protobuf::io::EpsCopyOutputStream *PROTOBUF_NONNULL stream) const final
friend void swap(MultipleDimensionsBinPackingItem &a, MultipleDimensionsBinPackingItem &b)
void CopyFrom(const MultipleDimensionsBinPackingItem &from)
MultipleDimensionsBinPackingItem()
friend class ::google::protobuf::Arena
static constexpr ::int32_t kHasBitsOffset
static constexpr auto InternalGenerateClassData_()
ABSL_ATTRIBUTE_REINITIALIZES void Clear() PROTOBUF_FINAL
::google::protobuf::Metadata GetMetadata() const
~MultipleDimensionsBinPackingProblem() PROTOBUF_FINAL
void MergeFrom(const MultipleDimensionsBinPackingProblem &from)
void CopyFrom(const MultipleDimensionsBinPackingProblem &from)
::uint8_t *PROTOBUF_NONNULL _InternalSerialize(::uint8_t *PROTOBUF_NONNULL target, ::google::protobuf::io::EpsCopyOutputStream *PROTOBUF_NONNULL stream) const final
::size_t ByteSizeLong() const final
MultipleDimensionsBinPackingProblem()
const ::google::protobuf::UnknownFieldSet & unknown_fields() const ABSL_ATTRIBUTE_LIFETIME_BOUND
decltype(::std::declval< MultipleDimensionsBinPackingShape >()._impl_._has_bits_) HasBits
static constexpr ::int32_t kHasBitsOffset
::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)
friend class ::google::protobuf::MessageLite
static constexpr auto InternalGenerateClassData_()
ABSL_ATTRIBUTE_REINITIALIZES void Clear() PROTOBUF_FINAL
void CopyFrom(const MultipleDimensionsBinPackingShape &from)
const ::google::protobuf::UnknownFieldSet & unknown_fields() const ABSL_ATTRIBUTE_LIFETIME_BOUND
void MergeFrom(const MultipleDimensionsBinPackingShape &from)
::google::protobuf::Metadata GetMetadata() const
::size_t ByteSizeLong() const final
~MultipleDimensionsBinPackingShape() PROTOBUF_FINAL
MultipleDimensionsBinPackingShape()
static constexpr ::_pbi::MigrationSchema *PROTOBUF_NULLABLE schemas
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_
MultipleDimensionsBinPackingItem _instance
~MultipleDimensionsBinPackingItemDefaultTypeInternal()
PROTOBUF_CONSTEXPR MultipleDimensionsBinPackingItemDefaultTypeInternal()
PROTOBUF_CONSTEXPR MultipleDimensionsBinPackingProblemDefaultTypeInternal()
MultipleDimensionsBinPackingProblem _instance
~MultipleDimensionsBinPackingProblemDefaultTypeInternal()
PROTOBUF_CONSTEXPR MultipleDimensionsBinPackingShapeDefaultTypeInternal()
~MultipleDimensionsBinPackingShapeDefaultTypeInternal()
MultipleDimensionsBinPackingShape _instance