6#ifndef ortools_2fpacking_2fmultiple_5fdimensions_5fbin_5fpacking_2eproto_2epb_2eh
7#define ortools_2fpacking_2fmultiple_5fdimensions_5fbin_5fpacking_2eproto_2epb_2eh
14#include "google/protobuf/runtime_version.h"
15#if PROTOBUF_VERSION != 6031001
16#error "Protobuf C++ gencode is built with an incompatible version of"
17#error "Protobuf C++ headers/runtime. See"
18#error "https://protobuf.dev/support/cross-version-runtime-guarantee/#cpp"
20#include "google/protobuf/io/coded_stream.h"
21#include "google/protobuf/arena.h"
22#include "google/protobuf/arenastring.h"
23#include "google/protobuf/generated_message_tctable_decl.h"
24#include "google/protobuf/generated_message_util.h"
25#include "google/protobuf/metadata_lite.h"
26#include "google/protobuf/generated_message_reflection.h"
27#include "google/protobuf/message.h"
28#include "google/protobuf/message_lite.h"
29#include "google/protobuf/repeated_field.h"
30#include "google/protobuf/extension_set.h"
31#include "google/protobuf/unknown_field_set.h"
35#include "google/protobuf/port_def.inc"
37#define PROTOBUF_INTERNAL_EXPORT_ortools_2fpacking_2fmultiple_5fdimensions_5fbin_5fpacking_2eproto OR_PROTO_DLL
90#if defined(PROTOBUF_CUSTOM_VTABLE)
97 template <
typename =
void>
108 if (
this == &from)
return *
this;
109 if (::google::protobuf::internal::CanMoveWithInternalSwap(GetArena(), from.GetArena())) {
117 inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const
118 ABSL_ATTRIBUTE_LIFETIME_BOUND {
119 return _internal_metadata_.
unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance);
121 inline ::google::protobuf::UnknownFieldSet* PROTOBUF_NONNULL mutable_unknown_fields()
122 ABSL_ATTRIBUTE_LIFETIME_BOUND {
123 return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>();
126 static const ::google::protobuf::Descriptor* PROTOBUF_NONNULL descriptor() {
127 return GetDescriptor();
129 static const ::google::protobuf::Descriptor* PROTOBUF_NONNULL GetDescriptor() {
130 return default_instance().GetMetadata().descriptor;
132 static const ::google::protobuf::Reflection* PROTOBUF_NONNULL GetReflection() {
133 return default_instance().GetMetadata().reflection;
139 static constexpr int kIndexInFileMessages = 0;
142 if (other ==
this)
return;
143 if (::google::protobuf::internal::CanUseInternalSwap(GetArena(), other->GetArena())) {
146 ::google::protobuf::internal::GenericSwap(
this, other);
149 void UnsafeArenaSwap(MultipleDimensionsBinPackingShape* PROTOBUF_NONNULL other) {
150 if (other ==
this)
return;
151 ABSL_DCHECK(GetArena() == other->GetArena());
158 return ::google::protobuf::Message::DefaultConstruct<MultipleDimensionsBinPackingShape>(arena);
160 using ::google::protobuf::Message::CopyFrom;
162 using ::google::protobuf::Message::MergeFrom;
166 static void MergeImpl(::google::protobuf::MessageLite& to_msg,
167 const ::google::protobuf::MessageLite& from_msg);
173 ABSL_ATTRIBUTE_REINITIALIZES
void Clear() PROTOBUF_FINAL;
174 #if defined(PROTOBUF_CUSTOM_VTABLE)
176 static ::size_t ByteSizeLong(const ::google::protobuf::MessageLite& msg);
177 static ::uint8_t* PROTOBUF_NONNULL _InternalSerialize(
178 const ::google::protobuf::MessageLite& msg, ::uint8_t* PROTOBUF_NONNULL target,
179 ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream);
182 ::size_t ByteSizeLong()
const {
return ByteSizeLong(*
this); }
183 ::uint8_t* PROTOBUF_NONNULL _InternalSerialize(
184 ::uint8_t* PROTOBUF_NONNULL target,
185 ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream)
const {
186 return _InternalSerialize(*
this, target, stream);
189 ::size_t ByteSizeLong() const final;
190 ::uint8_t* PROTOBUF_NONNULL _InternalSerialize(
191 ::uint8_t* PROTOBUF_NONNULL target,
192 ::
google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const final;
194 int GetCachedSize()
const {
return _impl_._cached_size_.Get(); }
197 void SharedCtor(::google::protobuf::Arena* PROTOBUF_NULLABLE arena);
201 template <
typename T>
203 static ::absl::string_view FullMessageName() {
return "operations_research.packing.MultipleDimensionsBinPackingShape"; }
211 *
this = ::std::move(from);
213 const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL GetClassData() const PROTOBUF_FINAL;
214 static
void* PROTOBUF_NONNULL PlacementNew_(
215 const
void* PROTOBUF_NONNULL,
void* PROTOBUF_NONNULL mem,
216 ::
google::protobuf::Arena* PROTOBUF_NULLABLE arena);
217 static constexpr auto InternalNewImpl_();
220 static constexpr auto InternalGenerateClassData_();
222 ::
google::protobuf::Metadata GetMetadata() const;
227 kDimensionsFieldNumber = 1,
232 int _internal_dimensions_size()
const;
239 const ::google::protobuf::RepeatedField<::int64_t>&
dimensions()
const;
243 const ::google::protobuf::RepeatedField<::int64_t>& _internal_dimensions()
const;
244 ::google::protobuf::RepeatedField<::int64_t>* PROTOBUF_NONNULL _internal_mutable_dimensions();
250 friend class ::google::protobuf::internal::TcParser;
251 static const ::google::protobuf::internal::TcParseTable<0, 1,
256 friend class ::google::protobuf::MessageLite;
257 friend class ::google::protobuf::Arena;
258 template <
typename T>
259 friend class ::google::protobuf::Arena::InternalHelper;
260 using InternalArenaConstructable_ = void;
261 using DestructorSkippable_ = void;
263 inline explicit constexpr Impl_(::google::protobuf::internal::ConstantInitialized)
noexcept;
264 inline explicit Impl_(
265 ::google::protobuf::internal::InternalVisibility visibility,
266 ::google::protobuf::Arena* PROTOBUF_NULLABLE arena);
267 inline explicit Impl_(
268 ::google::protobuf::internal::InternalVisibility visibility,
269 ::google::protobuf::Arena* PROTOBUF_NULLABLE arena,
const Impl_& from,
271 ::google::protobuf::RepeatedField<::int64_t> dimensions_;
272 ::google::protobuf::internal::CachedSize _dimensions_cached_byte_size_;
273 ::google::protobuf::internal::CachedSize _cached_size_;
274 PROTOBUF_TSAN_DECLARE_MEMBER
276 union { Impl_ _impl_; };
277 friend struct ::TableStruct_ortools_2fpacking_2fmultiple_5fdimensions_5fbin_5fpacking_2eproto;
289#if defined(PROTOBUF_CUSTOM_VTABLE)
296 template <
typename =
void>
307 if (
this == &from)
return *
this;
308 if (::google::protobuf::internal::CanMoveWithInternalSwap(GetArena(), from.GetArena())) {
316 inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const
317 ABSL_ATTRIBUTE_LIFETIME_BOUND {
318 return _internal_metadata_.
unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance);
320 inline ::google::protobuf::UnknownFieldSet* PROTOBUF_NONNULL mutable_unknown_fields()
321 ABSL_ATTRIBUTE_LIFETIME_BOUND {
322 return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>();
325 static const ::google::protobuf::Descriptor* PROTOBUF_NONNULL descriptor() {
326 return GetDescriptor();
328 static const ::google::protobuf::Descriptor* PROTOBUF_NONNULL
GetDescriptor() {
331 static const ::google::protobuf::Reflection* PROTOBUF_NONNULL
GetReflection() {
338 static constexpr int kIndexInFileMessages = 1;
340 inline void Swap(MultipleDimensionsBinPackingItem* PROTOBUF_NONNULL other) {
341 if (other ==
this)
return;
342 if (::google::protobuf::internal::CanUseInternalSwap(GetArena(), other->GetArena())) {
345 ::google::protobuf::internal::GenericSwap(
this, other);
348 void UnsafeArenaSwap(MultipleDimensionsBinPackingItem* PROTOBUF_NONNULL other) {
349 if (other ==
this)
return;
350 ABSL_DCHECK(GetArena() == other->GetArena());
357 return ::google::protobuf::Message::DefaultConstruct<MultipleDimensionsBinPackingItem>(arena);
359 using ::google::protobuf::Message::CopyFrom;
361 using ::google::protobuf::Message::MergeFrom;
365 static void MergeImpl(::google::protobuf::MessageLite& to_msg,
366 const ::google::protobuf::MessageLite& from_msg);
372 ABSL_ATTRIBUTE_REINITIALIZES
void Clear() PROTOBUF_FINAL;
373 #if defined(PROTOBUF_CUSTOM_VTABLE)
375 static ::size_t
ByteSizeLong(const ::google::protobuf::MessageLite& msg);
377 const ::google::protobuf::MessageLite& msg, ::uint8_t* PROTOBUF_NONNULL target,
378 ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream);
382 ::uint8_t* PROTOBUF_NONNULL _InternalSerialize(
383 ::uint8_t* PROTOBUF_NONNULL target,
384 ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream)
const {
385 return _InternalSerialize(*
this, target, stream);
388 ::size_t ByteSizeLong() const final;
389 ::uint8_t* PROTOBUF_NONNULL _InternalSerialize(
390 ::uint8_t* PROTOBUF_NONNULL target,
391 ::
google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const final;
393 int GetCachedSize()
const {
return _impl_._cached_size_.Get(); }
396 void SharedCtor(::google::protobuf::Arena* PROTOBUF_NULLABLE arena);
400 template <
typename T>
402 static ::absl::string_view FullMessageName() {
return "operations_research.packing.MultipleDimensionsBinPackingItem"; }
410 *
this = ::std::move(from);
412 const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL GetClassData() const PROTOBUF_FINAL;
413 static
void* PROTOBUF_NONNULL PlacementNew_(
414 const
void* PROTOBUF_NONNULL,
void* PROTOBUF_NONNULL mem,
415 ::
google::protobuf::Arena* PROTOBUF_NULLABLE arena);
416 static constexpr auto InternalNewImpl_();
419 static constexpr auto InternalGenerateClassData_();
421 ::
google::protobuf::Metadata GetMetadata() const;
426 kShapesFieldNumber = 1,
427 kValueFieldNumber = 2,
432 int _internal_shapes_size()
const;
437 ::google::protobuf::RepeatedPtrField<::operations_research::packing::MultipleDimensionsBinPackingShape>* PROTOBUF_NONNULL
mutable_shapes();
440 const ::google::protobuf::RepeatedPtrField<::operations_research::packing::MultipleDimensionsBinPackingShape>& _internal_shapes()
const;
441 ::google::protobuf::RepeatedPtrField<::operations_research::packing::MultipleDimensionsBinPackingShape>* PROTOBUF_NONNULL _internal_mutable_shapes();
443 const ::operations_research::packing::MultipleDimensionsBinPackingShape&
shapes(
int index)
const;
445 const ::google::protobuf::RepeatedPtrField<::operations_research::packing::MultipleDimensionsBinPackingShape>&
shapes()
const;
448 ::int64_t
value()
const;
452 ::int64_t _internal_value()
const;
453 void _internal_set_value(::int64_t
value);
459 friend class ::google::protobuf::internal::TcParser;
460 static const ::google::protobuf::internal::TcParseTable<1, 2,
465 friend class ::google::protobuf::MessageLite;
466 friend class ::google::protobuf::Arena;
467 template <
typename T>
468 friend class ::google::protobuf::Arena::InternalHelper;
469 using InternalArenaConstructable_ = void;
470 using DestructorSkippable_ = void;
472 inline explicit constexpr Impl_(::google::protobuf::internal::ConstantInitialized)
noexcept;
473 inline explicit Impl_(
474 ::google::protobuf::internal::InternalVisibility visibility,
475 ::google::protobuf::Arena* PROTOBUF_NULLABLE arena);
476 inline explicit Impl_(
477 ::google::protobuf::internal::InternalVisibility visibility,
478 ::google::protobuf::Arena* PROTOBUF_NULLABLE arena,
const Impl_& from,
480 ::google::protobuf::internal::HasBits<1> _has_bits_;
481 ::google::protobuf::internal::CachedSize _cached_size_;
482 ::google::protobuf::RepeatedPtrField< ::operations_research::packing::MultipleDimensionsBinPackingShape > shapes_;
484 PROTOBUF_TSAN_DECLARE_MEMBER
486 union { Impl_ _impl_; };
487 friend struct ::TableStruct_ortools_2fpacking_2fmultiple_5fdimensions_5fbin_5fpacking_2eproto;
499#if defined(PROTOBUF_CUSTOM_VTABLE)
506 template <
typename =
void>
510 inline MultipleDimensionsBinPackingProblem(MultipleDimensionsBinPackingProblem&& from) noexcept
517 if (
this == &from)
return *
this;
518 if (::google::protobuf::internal::CanMoveWithInternalSwap(GetArena(), from.GetArena())) {
526 inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const
527 ABSL_ATTRIBUTE_LIFETIME_BOUND {
528 return _internal_metadata_.
unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance);
531 ABSL_ATTRIBUTE_LIFETIME_BOUND {
532 return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>();
535 static const ::google::protobuf::Descriptor* PROTOBUF_NONNULL
descriptor() {
538 static const ::google::protobuf::Descriptor* PROTOBUF_NONNULL GetDescriptor() {
541 static const ::google::protobuf::Reflection* PROTOBUF_NONNULL GetReflection() {
551 if (other ==
this)
return;
552 if (::google::protobuf::internal::CanUseInternalSwap(GetArena(), other->GetArena())) {
555 ::google::protobuf::internal::GenericSwap(
this, other);
558 void UnsafeArenaSwap(MultipleDimensionsBinPackingProblem* PROTOBUF_NONNULL other) {
559 if (other ==
this)
return;
560 ABSL_DCHECK(GetArena() == other->GetArena());
567 return ::google::protobuf::Message::DefaultConstruct<MultipleDimensionsBinPackingProblem>(arena);
569 using ::google::protobuf::Message::CopyFrom;
571 using ::google::protobuf::Message::MergeFrom;
575 static void MergeImpl(::google::protobuf::MessageLite& to_msg,
576 const ::google::protobuf::MessageLite& from_msg);
582 ABSL_ATTRIBUTE_REINITIALIZES
void Clear() PROTOBUF_FINAL;
583 #if defined(PROTOBUF_CUSTOM_VTABLE)
585 static ::size_t
ByteSizeLong(const ::google::protobuf::MessageLite& msg);
587 const ::google::protobuf::MessageLite& msg, ::uint8_t* PROTOBUF_NONNULL target,
588 ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream);
592 ::uint8_t* PROTOBUF_NONNULL _InternalSerialize(
593 ::uint8_t* PROTOBUF_NONNULL target,
594 ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream)
const {
595 return _InternalSerialize(*
this, target, stream);
598 ::size_t ByteSizeLong() const final;
599 ::uint8_t* PROTOBUF_NONNULL _InternalSerialize(
600 ::uint8_t* PROTOBUF_NONNULL target,
601 ::
google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const final;
603 int GetCachedSize()
const {
return _impl_._cached_size_.Get(); }
606 void SharedCtor(::google::protobuf::Arena* PROTOBUF_NULLABLE arena);
610 template <
typename T>
612 static ::absl::string_view FullMessageName() {
return "operations_research.packing.MultipleDimensionsBinPackingProblem"; }
620 *
this = ::std::move(from);
622 const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL GetClassData() const PROTOBUF_FINAL;
623 static
void* PROTOBUF_NONNULL PlacementNew_(
624 const
void* PROTOBUF_NONNULL,
void* PROTOBUF_NONNULL mem,
625 ::
google::protobuf::Arena* PROTOBUF_NULLABLE arena);
626 static constexpr auto InternalNewImpl_();
629 static constexpr auto InternalGenerateClassData_();
631 ::
google::protobuf::Metadata GetMetadata() const;
636 kItemsFieldNumber = 2,
637 kBoxShapeFieldNumber = 1,
642 int _internal_items_size()
const;
647 ::google::protobuf::RepeatedPtrField<::operations_research::packing::MultipleDimensionsBinPackingItem>* PROTOBUF_NONNULL
mutable_items();
650 const ::google::protobuf::RepeatedPtrField<::operations_research::packing::MultipleDimensionsBinPackingItem>& _internal_items()
const;
651 ::google::protobuf::RepeatedPtrField<::operations_research::packing::MultipleDimensionsBinPackingItem>* PROTOBUF_NONNULL _internal_mutable_items();
653 const ::operations_research::packing::MultipleDimensionsBinPackingItem&
items(
int index)
const;
655 const ::google::protobuf::RepeatedPtrField<::operations_research::packing::MultipleDimensionsBinPackingItem>&
items()
const;
659 const ::operations_research::packing::MultipleDimensionsBinPackingShape&
box_shape()
const;
667 const ::operations_research::packing::MultipleDimensionsBinPackingShape& _internal_box_shape()
const;
674 friend class ::google::protobuf::internal::TcParser;
675 static const ::google::protobuf::internal::TcParseTable<1, 2,
680 friend class ::google::protobuf::MessageLite;
681 friend class ::google::protobuf::Arena;
682 template <
typename T>
683 friend class ::google::protobuf::Arena::InternalHelper;
684 using InternalArenaConstructable_ = void;
685 using DestructorSkippable_ = void;
687 inline explicit constexpr Impl_(::google::protobuf::internal::ConstantInitialized)
noexcept;
688 inline explicit Impl_(
689 ::google::protobuf::internal::InternalVisibility visibility,
690 ::google::protobuf::Arena* PROTOBUF_NULLABLE arena);
691 inline explicit Impl_(
692 ::google::protobuf::internal::InternalVisibility visibility,
693 ::google::protobuf::Arena* PROTOBUF_NULLABLE arena,
const Impl_& from,
695 ::google::protobuf::internal::HasBits<1> _has_bits_;
696 ::google::protobuf::internal::CachedSize _cached_size_;
697 ::google::protobuf::RepeatedPtrField< ::operations_research::packing::MultipleDimensionsBinPackingItem > items_;
699 PROTOBUF_TSAN_DECLARE_MEMBER
701 union { Impl_ _impl_; };
702 friend struct ::TableStruct_ortools_2fpacking_2fmultiple_5fdimensions_5fbin_5fpacking_2eproto;
716#pragma GCC diagnostic push
717#pragma GCC diagnostic ignored "-Wstrict-aliasing"
724inline int MultipleDimensionsBinPackingShape::_internal_dimensions_size()
const {
725 return _internal_dimensions().size();
728 return _internal_dimensions_size();
731 ::google::protobuf::internal::TSanWrite(&
_impl_);
732 _impl_.dimensions_.Clear();
736 return _internal_dimensions().Get(index);
739 _internal_mutable_dimensions()->Set(index, value);
743 ::google::protobuf::internal::TSanWrite(&
_impl_);
744 _internal_mutable_dimensions()->Add(value);
748 ABSL_ATTRIBUTE_LIFETIME_BOUND {
750 return _internal_dimensions();
753 ABSL_ATTRIBUTE_LIFETIME_BOUND {
755 ::google::protobuf::internal::TSanWrite(&
_impl_);
756 return _internal_mutable_dimensions();
758inline const ::google::protobuf::RepeatedField<::int64_t>&
759MultipleDimensionsBinPackingShape::_internal_dimensions()
const {
760 ::google::protobuf::internal::TSanRead(&
_impl_);
761 return _impl_.dimensions_;
763inline ::google::protobuf::RepeatedField<::int64_t>* PROTOBUF_NONNULL
764MultipleDimensionsBinPackingShape::_internal_mutable_dimensions() {
765 ::google::protobuf::internal::TSanRead(&
_impl_);
766 return &
_impl_.dimensions_;
774inline int MultipleDimensionsBinPackingItem::_internal_shapes_size()
const {
775 return _internal_shapes().size();
778 return _internal_shapes_size();
781 ::google::protobuf::internal::TSanWrite(&
_impl_);
785 ABSL_ATTRIBUTE_LIFETIME_BOUND {
787 return _internal_mutable_shapes()->Mutable(index);
790 ABSL_ATTRIBUTE_LIFETIME_BOUND {
792 ::google::protobuf::internal::TSanWrite(&
_impl_);
793 return _internal_mutable_shapes();
796 ABSL_ATTRIBUTE_LIFETIME_BOUND {
798 return _internal_shapes().Get(index);
801 ABSL_ATTRIBUTE_LIFETIME_BOUND {
802 ::google::protobuf::internal::TSanWrite(&
_impl_);
808 ABSL_ATTRIBUTE_LIFETIME_BOUND {
810 return _internal_shapes();
812inline const ::google::protobuf::RepeatedPtrField<::operations_research::packing::MultipleDimensionsBinPackingShape>&
813MultipleDimensionsBinPackingItem::_internal_shapes()
const {
814 ::google::protobuf::internal::TSanRead(&
_impl_);
817inline ::google::protobuf::RepeatedPtrField<::operations_research::packing::MultipleDimensionsBinPackingShape>* PROTOBUF_NONNULL
818MultipleDimensionsBinPackingItem::_internal_mutable_shapes() {
819 ::google::protobuf::internal::TSanRead(&
_impl_);
825 ::google::protobuf::internal::TSanWrite(&
_impl_);
826 _impl_.value_ = ::int64_t{0};
827 _impl_._has_bits_[0] &= ~0x00000001u;
831 return _internal_value();
834 _internal_set_value(
value);
835 _impl_._has_bits_[0] |= 0x00000001u;
838inline ::int64_t MultipleDimensionsBinPackingItem::_internal_value()
const {
839 ::google::protobuf::internal::TSanRead(&
_impl_);
842inline void MultipleDimensionsBinPackingItem::_internal_set_value(::int64_t value) {
843 ::google::protobuf::internal::TSanWrite(&
_impl_);
853 bool value = (
_impl_._has_bits_[0] & 0x00000001u) != 0;
854 PROTOBUF_ASSUME(!value ||
_impl_.box_shape_ !=
nullptr);
858 ::google::protobuf::internal::TSanWrite(&
_impl_);
860 _impl_._has_bits_[0] &= ~0x00000001u;
862inline const ::operations_research::packing::MultipleDimensionsBinPackingShape& MultipleDimensionsBinPackingProblem::_internal_box_shape()
const {
863 ::google::protobuf::internal::TSanRead(&
_impl_);
864 const ::operations_research::packing::MultipleDimensionsBinPackingShape* p =
_impl_.box_shape_;
869 return _internal_box_shape();
873 ::google::protobuf::internal::TSanWrite(&
_impl_);
874 if (GetArena() ==
nullptr) {
875 delete reinterpret_cast<::google::protobuf::MessageLite*
>(
_impl_.box_shape_);
878 if (value !=
nullptr) {
879 _impl_._has_bits_[0] |= 0x00000001u;
881 _impl_._has_bits_[0] &= ~0x00000001u;
886 ::google::protobuf::internal::TSanWrite(&
_impl_);
888 _impl_._has_bits_[0] &= ~0x00000001u;
890 _impl_.box_shape_ =
nullptr;
891 if (::google::protobuf::internal::DebugHardenForceCopyInRelease()) {
892 auto* old =
reinterpret_cast<::google::protobuf::MessageLite*
>(released);
893 released = ::google::protobuf::internal::DuplicateIfNonNull(released);
894 if (GetArena() ==
nullptr) {
898 if (GetArena() !=
nullptr) {
899 released = ::google::protobuf::internal::DuplicateIfNonNull(released);
905 ::google::protobuf::internal::TSanWrite(&
_impl_);
908 _impl_._has_bits_[0] &= ~0x00000001u;
909 ::operations_research::packing::MultipleDimensionsBinPackingShape* temp =
_impl_.box_shape_;
910 _impl_.box_shape_ =
nullptr;
913inline ::operations_research::packing::MultipleDimensionsBinPackingShape* PROTOBUF_NONNULL MultipleDimensionsBinPackingProblem::_internal_mutable_box_shape() {
914 ::google::protobuf::internal::TSanWrite(&
_impl_);
915 if (
_impl_.box_shape_ ==
nullptr) {
916 auto* p = ::google::protobuf::Message::DefaultConstruct<::operations_research::packing::MultipleDimensionsBinPackingShape>(GetArena());
922 ABSL_ATTRIBUTE_LIFETIME_BOUND {
923 _impl_._has_bits_[0] |= 0x00000001u;
929 ::google::protobuf::Arena* message_arena = GetArena();
930 ::google::protobuf::internal::TSanWrite(&
_impl_);
931 if (message_arena ==
nullptr) {
932 delete reinterpret_cast<::google::protobuf::MessageLite*
>(
_impl_.box_shape_);
935 if (value !=
nullptr) {
936 ::google::protobuf::Arena* submessage_arena = value->GetArena();
937 if (message_arena != submessage_arena) {
938 value = ::google::protobuf::internal::GetOwnedMessage(message_arena, value, submessage_arena);
940 _impl_._has_bits_[0] |= 0x00000001u;
942 _impl_._has_bits_[0] &= ~0x00000001u;
950inline int MultipleDimensionsBinPackingProblem::_internal_items_size()
const {
951 return _internal_items().size();
954 return _internal_items_size();
957 ::google::protobuf::internal::TSanWrite(&
_impl_);
961 ABSL_ATTRIBUTE_LIFETIME_BOUND {
963 return _internal_mutable_items()->Mutable(index);
966 ABSL_ATTRIBUTE_LIFETIME_BOUND {
968 ::google::protobuf::internal::TSanWrite(&
_impl_);
969 return _internal_mutable_items();
972 ABSL_ATTRIBUTE_LIFETIME_BOUND {
974 return _internal_items().Get(index);
977 ABSL_ATTRIBUTE_LIFETIME_BOUND {
978 ::google::protobuf::internal::TSanWrite(&
_impl_);
984 ABSL_ATTRIBUTE_LIFETIME_BOUND {
986 return _internal_items();
988inline const ::google::protobuf::RepeatedPtrField<::operations_research::packing::MultipleDimensionsBinPackingItem>&
989MultipleDimensionsBinPackingProblem::_internal_items()
const {
990 ::google::protobuf::internal::TSanRead(&
_impl_);
993inline ::google::protobuf::RepeatedPtrField<::operations_research::packing::MultipleDimensionsBinPackingItem>* PROTOBUF_NONNULL
994MultipleDimensionsBinPackingProblem::_internal_mutable_items() {
995 ::google::protobuf::internal::TSanRead(&
_impl_);
1000#pragma GCC diagnostic pop
1010#include "google/protobuf/port_undef.inc"
friend class ::google::protobuf::MessageLite
ABSL_ATTRIBUTE_REINITIALIZES void Clear() PROTOBUF_FINAL
void clear_value()
int64 value = 2;
static const ::google::protobuf::Descriptor *PROTOBUF_NONNULL GetDescriptor()
int shapes_size() const
repeated .operations_research.packing.MultipleDimensionsBinPackingShape shapes = 1;
const ::google::protobuf::UnknownFieldSet & unknown_fields() const ABSL_ATTRIBUTE_LIFETIME_BOUND
::google::protobuf::RepeatedPtrField<::operations_research::packing::MultipleDimensionsBinPackingShape > *PROTOBUF_NONNULL mutable_shapes()
void Swap(MultipleDimensionsBinPackingItem *PROTOBUF_NONNULL other)
void set_value(::int64_t value)
bool IsInitialized() const
MultipleDimensionsBinPackingItem & operator=(const MultipleDimensionsBinPackingItem &from)
const ::operations_research::packing::MultipleDimensionsBinPackingShape & shapes(int index) const
void MergeFrom(const MultipleDimensionsBinPackingItem &from)
::size_t ByteSizeLong() const final
::operations_research::packing::MultipleDimensionsBinPackingShape *PROTOBUF_NONNULL add_shapes()
::uint8_t *PROTOBUF_NONNULL _InternalSerialize(::uint8_t *PROTOBUF_NONNULL target, ::google::protobuf::io::EpsCopyOutputStream *PROTOBUF_NONNULL stream) const final
::operations_research::packing::MultipleDimensionsBinPackingShape *PROTOBUF_NONNULL mutable_shapes(int index)
PROTOBUF_CONSTEXPR MultipleDimensionsBinPackingItem(::google::protobuf::internal::ConstantInitialized)
void CopyFrom(const MultipleDimensionsBinPackingItem &from)
static const ::google::protobuf::Reflection *PROTOBUF_NONNULL GetReflection()
const ::google::protobuf::RepeatedPtrField<::operations_research::packing::MultipleDimensionsBinPackingShape > & shapes() const
MultipleDimensionsBinPackingItem()
static const MultipleDimensionsBinPackingItem & default_instance()
::operations_research::packing::MultipleDimensionsBinPackingItem *PROTOBUF_NONNULL add_items()
friend class ::google::protobuf::MessageLite
const ::operations_research::packing::MultipleDimensionsBinPackingShape & box_shape() const
int items_size() const
repeated .operations_research.packing.MultipleDimensionsBinPackingItem items = 2;
void set_allocated_box_shape(::operations_research::packing::MultipleDimensionsBinPackingShape *PROTOBUF_NULLABLE value)
static const ::google::protobuf::Descriptor *PROTOBUF_NONNULL GetDescriptor()
::operations_research::packing::MultipleDimensionsBinPackingShape *PROTOBUF_NULLABLE unsafe_arena_release_box_shape()
void Swap(MultipleDimensionsBinPackingProblem *PROTOBUF_NONNULL other)
::operations_research::packing::MultipleDimensionsBinPackingShape *PROTOBUF_NONNULL mutable_box_shape()
void MergeFrom(const MultipleDimensionsBinPackingProblem &from)
PROTOBUF_CONSTEXPR MultipleDimensionsBinPackingProblem(::google::protobuf::internal::ConstantInitialized)
bool has_box_shape() const
.operations_research.packing.MultipleDimensionsBinPackingShape box_shape = 1;
static const MultipleDimensionsBinPackingProblem & default_instance()
MultipleDimensionsBinPackingProblem & operator=(const MultipleDimensionsBinPackingProblem &from)
::google::protobuf::RepeatedPtrField<::operations_research::packing::MultipleDimensionsBinPackingItem > *PROTOBUF_NONNULL mutable_items()
::operations_research::packing::MultipleDimensionsBinPackingShape *PROTOBUF_NULLABLE release_box_shape()
const ::google::protobuf::RepeatedPtrField<::operations_research::packing::MultipleDimensionsBinPackingItem > & items() const
void unsafe_arena_set_allocated_box_shape(::operations_research::packing::MultipleDimensionsBinPackingShape *PROTOBUF_NULLABLE value)
friend void swap(MultipleDimensionsBinPackingProblem &a, MultipleDimensionsBinPackingProblem &b)
static const ::google::protobuf::Descriptor *PROTOBUF_NONNULL descriptor()
inline ::google::protobuf::UnknownFieldSet *PROTOBUF_NONNULL mutable_unknown_fields() ABSL_ATTRIBUTE_LIFETIME_BOUND
static constexpr int kIndexInFileMessages
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
bool IsInitialized() const
const ::operations_research::packing::MultipleDimensionsBinPackingItem & items(int index) const
::operations_research::packing::MultipleDimensionsBinPackingItem *PROTOBUF_NONNULL mutable_items(int index)
MultipleDimensionsBinPackingProblem()
const ::google::protobuf::UnknownFieldSet & unknown_fields() const ABSL_ATTRIBUTE_LIFETIME_BOUND
friend class ::google::protobuf::MessageLite
::google::protobuf::RepeatedField<::int64_t > *PROTOBUF_NONNULL mutable_dimensions()
MultipleDimensionsBinPackingShape(::google::protobuf::Arena *PROTOBUF_NULLABLE arena, MultipleDimensionsBinPackingShape &&from) noexcept
ABSL_ATTRIBUTE_REINITIALIZES void Clear() PROTOBUF_FINAL
::int64_t dimensions(int index) const
MultipleDimensionsBinPackingShape & operator=(const MultipleDimensionsBinPackingShape &from)
void CopyFrom(const MultipleDimensionsBinPackingShape &from)
const ::google::protobuf::UnknownFieldSet & unknown_fields() const ABSL_ATTRIBUTE_LIFETIME_BOUND
const ::google::protobuf::RepeatedField<::int64_t > & dimensions() const
int dimensions_size() const
repeated int64 dimensions = 1;
void Swap(MultipleDimensionsBinPackingShape *PROTOBUF_NONNULL other)
MultipleDimensionsBinPackingShape(const MultipleDimensionsBinPackingShape &from)
void add_dimensions(::int64_t value)
bool IsInitialized() const
MultipleDimensionsBinPackingShape()
void set_dimensions(int index, ::int64_t value)
PROTOBUF_CONSTEXPR MultipleDimensionsBinPackingShape(::google::protobuf::internal::ConstantInitialized)
PROTOBUF_CONSTINITconst ::_pbi::DescriptorTable descriptor_table_ortools_2fpacking_2fmultiple_5fdimensions_5fbin_5fpacking_2eproto
::absl::string_view GetAnyMessageName()
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.