6#ifndef ortools_2fpacking_2fvector_5fbin_5fpacking_2eproto_2epb_2eh
7#define ortools_2fpacking_2fvector_5fbin_5fpacking_2eproto_2epb_2eh
14#include "google/protobuf/runtime_version.h"
15#if PROTOBUF_VERSION != 6033001
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/generated_enum_reflection.h"
32#include "google/protobuf/unknown_field_set.h"
36#include "google/protobuf/port_def.inc"
38#define PROTOBUF_INTERNAL_EXPORT_ortools_2fpacking_2fvector_5fbin_5fpacking_2eproto OR_PROTO_DLL
64OR_PROTO_DLL
extern const ::google::protobuf::internal::ClassDataFull
Item_class_data_;
83internal::EnumTraitsT<::operations_research::packing::vbp::VectorBinPackingSolveStatus_internal_data_>
84 internal::EnumTraitsImpl::value<::operations_research::packing::vbp::VectorBinPackingSolveStatus>;
97 ::std::numeric_limits<::int32_t>::min(),
99 ::std::numeric_limits<::int32_t>::max(),
108 return 0 <= value && value <= 3;
114 static_assert(::std::is_same<T, VectorBinPackingSolveStatus>::value ||
115 ::std::is_integral<T>::value,
116 "Incorrect type passed to VectorBinPackingSolveStatus_Name().");
121 return ::google::protobuf::internal::NameOfDenseEnum<VectorBinPackingSolveStatus_descriptor, 0, 3>(
122 static_cast<int>(value));
135class OR_PROTO_DLL VectorBinPackingOneBinInSolution final :
public ::google::protobuf::Message
141#if defined(PROTOBUF_CUSTOM_VTABLE)
148 template <
typename =
void>
159 if (
this == &from)
return *
this;
160 if (::google::protobuf::internal::CanMoveWithInternalSwap(GetArena(), from.GetArena())) {
168 inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const
169 ABSL_ATTRIBUTE_LIFETIME_BOUND {
170 return _internal_metadata_.
unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance);
172 inline ::google::protobuf::UnknownFieldSet* PROTOBUF_NONNULL mutable_unknown_fields()
173 ABSL_ATTRIBUTE_LIFETIME_BOUND {
174 return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>();
177 static const ::google::protobuf::Descriptor* PROTOBUF_NONNULL descriptor() {
178 return GetDescriptor();
180 static const ::google::protobuf::Descriptor* PROTOBUF_NONNULL GetDescriptor() {
181 return default_instance().GetMetadata().descriptor;
183 static const ::google::protobuf::Reflection* PROTOBUF_NONNULL GetReflection() {
184 return default_instance().GetMetadata().reflection;
190 static constexpr int kIndexInFileMessages = 2;
193 if (other ==
this)
return;
194 if (::google::protobuf::internal::CanUseInternalSwap(GetArena(), other->GetArena())) {
197 ::google::protobuf::internal::GenericSwap(
this, other);
200 void UnsafeArenaSwap(VectorBinPackingOneBinInSolution* PROTOBUF_NONNULL other) {
201 if (other ==
this)
return;
202 ABSL_DCHECK(GetArena() == other->GetArena());
209 return ::google::protobuf::Message::DefaultConstruct<VectorBinPackingOneBinInSolution>(arena);
211 using ::google::protobuf::Message::CopyFrom;
213 using ::google::protobuf::Message::MergeFrom;
217 static void MergeImpl(::google::protobuf::MessageLite& to_msg,
218 const ::google::protobuf::MessageLite& from_msg);
224 ABSL_ATTRIBUTE_REINITIALIZES
void Clear() PROTOBUF_FINAL;
225 #if defined(PROTOBUF_CUSTOM_VTABLE)
227 static ::size_t ByteSizeLong(const ::google::protobuf::MessageLite& msg);
228 static ::uint8_t* PROTOBUF_NONNULL _InternalSerialize(
229 const ::google::protobuf::MessageLite& msg, ::uint8_t* PROTOBUF_NONNULL target,
230 ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream);
233 ::size_t ByteSizeLong()
const {
return ByteSizeLong(*
this); }
234 ::uint8_t* PROTOBUF_NONNULL _InternalSerialize(
235 ::uint8_t* PROTOBUF_NONNULL target,
236 ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream)
const {
237 return _InternalSerialize(*
this, target, stream);
240 ::size_t ByteSizeLong() const final;
241 ::uint8_t* PROTOBUF_NONNULL _InternalSerialize(
242 ::uint8_t* PROTOBUF_NONNULL target,
243 ::
google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const final;
245 int GetCachedSize()
const {
return _impl_._cached_size_.Get(); }
248 void SharedCtor(::google::protobuf::Arena* PROTOBUF_NULLABLE arena);
252 template <
typename T>
254 static ::absl::string_view FullMessageName() {
return "operations_research.packing.vbp.VectorBinPackingOneBinInSolution"; }
261 *
this = ::std::move(from);
263 const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL GetClassData() const PROTOBUF_FINAL;
264 static
void* PROTOBUF_NONNULL PlacementNew_(
265 const
void* PROTOBUF_NONNULL,
void* PROTOBUF_NONNULL mem,
266 ::
google::protobuf::Arena* PROTOBUF_NULLABLE arena);
267 static constexpr auto InternalNewImpl_();
270 static constexpr auto InternalGenerateClassData_();
272 ::
google::protobuf::Metadata GetMetadata() const;
277 kItemIndicesFieldNumber = 1,
278 kItemCopiesFieldNumber = 2,
283 int _internal_item_indices_size()
const;
290 const ::google::protobuf::RepeatedField<::int32_t>&
item_indices()
const;
294 const ::google::protobuf::RepeatedField<::int32_t>& _internal_item_indices()
const;
295 ::google::protobuf::RepeatedField<::int32_t>* PROTOBUF_NONNULL _internal_mutable_item_indices();
301 int _internal_item_copies_size()
const;
308 const ::google::protobuf::RepeatedField<::int32_t>&
item_copies()
const;
312 const ::google::protobuf::RepeatedField<::int32_t>& _internal_item_copies()
const;
313 ::google::protobuf::RepeatedField<::int32_t>* PROTOBUF_NONNULL _internal_mutable_item_copies();
319 friend class ::google::protobuf::internal::TcParser;
320 static const ::google::protobuf::internal::TcParseTable<1, 2,
325 friend class ::google::protobuf::MessageLite;
326 friend class ::google::protobuf::Arena;
327 template <
typename T>
328 friend class ::google::protobuf::Arena::InternalHelper;
329 using InternalArenaConstructable_ = void;
330 using DestructorSkippable_ = void;
332 inline explicit constexpr Impl_(::google::protobuf::internal::ConstantInitialized)
noexcept;
333 inline explicit Impl_(
334 ::google::protobuf::internal::InternalVisibility visibility,
335 ::google::protobuf::Arena* PROTOBUF_NULLABLE arena);
336 inline explicit Impl_(
337 ::google::protobuf::internal::InternalVisibility visibility,
338 ::google::protobuf::Arena* PROTOBUF_NULLABLE arena,
const Impl_& from,
340 ::google::protobuf::internal::HasBits<1> _has_bits_;
341 ::google::protobuf::internal::CachedSize _cached_size_;
342 ::google::protobuf::RepeatedField<::int32_t> item_indices_;
343 ::google::protobuf::internal::CachedSize _item_indices_cached_byte_size_;
344 ::google::protobuf::RepeatedField<::int32_t> item_copies_;
345 ::google::protobuf::internal::CachedSize _item_copies_cached_byte_size_;
346 PROTOBUF_TSAN_DECLARE_MEMBER
348 union { Impl_ _impl_; };
349 friend struct ::TableStruct_ortools_2fpacking_2fvector_5fbin_5fpacking_2eproto;
355class OR_PROTO_DLL
Item final :
public ::google::protobuf::Message
359 ~Item() PROTOBUF_FINAL;
361#if defined(PROTOBUF_CUSTOM_VTABLE)
362 void operator delete(
Item* PROTOBUF_NONNULL msg, ::std::destroying_delete_t) {
364 ::google::protobuf::internal::SizedDelete(msg,
sizeof(
Item));
368 template <
typename =
void>
369 explicit PROTOBUF_CONSTEXPR
Item(::google::protobuf::internal::ConstantInitialized);
373 :
Item(
nullptr, ::std::move(from)) {}
378 inline Item& operator=(
Item&& from)
noexcept {
379 if (
this == &from)
return *
this;
380 if (::google::protobuf::internal::CanMoveWithInternalSwap(GetArena(), from.GetArena())) {
388 inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const
389 ABSL_ATTRIBUTE_LIFETIME_BOUND {
390 return _internal_metadata_.
unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance);
392 inline ::google::protobuf::UnknownFieldSet* PROTOBUF_NONNULL mutable_unknown_fields()
393 ABSL_ATTRIBUTE_LIFETIME_BOUND {
394 return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>();
397 static const ::google::protobuf::Descriptor* PROTOBUF_NONNULL descriptor() {
398 return GetDescriptor();
400 static const ::google::protobuf::Descriptor* PROTOBUF_NONNULL
GetDescriptor() {
403 static const ::google::protobuf::Reflection* PROTOBUF_NONNULL
GetReflection() {
407 return *
reinterpret_cast<const Item*
>(
410 static constexpr int kIndexInFileMessages = 0;
412 inline void Swap(Item* PROTOBUF_NONNULL other) {
413 if (other ==
this)
return;
414 if (::google::protobuf::internal::CanUseInternalSwap(GetArena(), other->GetArena())) {
417 ::google::protobuf::internal::GenericSwap(
this, other);
420 void UnsafeArenaSwap(Item* PROTOBUF_NONNULL other) {
421 if (other ==
this)
return;
422 ABSL_DCHECK(GetArena() == other->GetArena());
428 Item* PROTOBUF_NONNULL New(::google::protobuf::Arena* PROTOBUF_NULLABLE arena =
nullptr)
const {
429 return ::google::protobuf::Message::DefaultConstruct<Item>(arena);
431 using ::google::protobuf::Message::CopyFrom;
433 using ::google::protobuf::Message::MergeFrom;
434 void MergeFrom(
const Item& from) { Item::MergeImpl(*
this, from); }
437 static void MergeImpl(::google::protobuf::MessageLite& to_msg,
438 const ::google::protobuf::MessageLite& from_msg);
444 ABSL_ATTRIBUTE_REINITIALIZES
void Clear() PROTOBUF_FINAL;
445 #if defined(PROTOBUF_CUSTOM_VTABLE)
447 static ::size_t
ByteSizeLong(const ::google::protobuf::MessageLite& msg);
449 const ::google::protobuf::MessageLite& msg, ::uint8_t* PROTOBUF_NONNULL target,
450 ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream);
454 ::uint8_t* PROTOBUF_NONNULL _InternalSerialize(
455 ::uint8_t* PROTOBUF_NONNULL target,
456 ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream)
const {
457 return _InternalSerialize(*
this, target, stream);
460 ::size_t ByteSizeLong() const final;
461 ::uint8_t* PROTOBUF_NONNULL _InternalSerialize(
462 ::uint8_t* PROTOBUF_NONNULL target,
463 ::
google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const final;
465 int GetCachedSize()
const {
return _impl_._cached_size_.Get(); }
468 void SharedCtor(::google::protobuf::Arena* PROTOBUF_NULLABLE arena);
470 void InternalSwap(
Item* PROTOBUF_NONNULL other);
472 template <
typename T>
474 static ::absl::string_view FullMessageName() {
return "operations_research.packing.vbp.Item"; }
476 explicit Item(::google::protobuf::Arena* PROTOBUF_NULLABLE arena);
477 Item(::google::protobuf::Arena* PROTOBUF_NULLABLE arena,
const Item& from);
479 ::google::protobuf::Arena* PROTOBUF_NULLABLE arena,
Item&& from) noexcept
481 *
this = ::std::move(from);
483 const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL GetClassData() const PROTOBUF_FINAL;
484 static
void* PROTOBUF_NONNULL PlacementNew_(
485 const
void* PROTOBUF_NONNULL,
void* PROTOBUF_NONNULL mem,
486 ::
google::protobuf::Arena* PROTOBUF_NULLABLE arena);
487 static constexpr auto InternalNewImpl_();
490 static constexpr auto InternalGenerateClassData_();
492 ::
google::protobuf::Metadata GetMetadata() const;
497 kResourceUsageFieldNumber = 2,
498 kNameFieldNumber = 1,
499 kNumCopiesFieldNumber = 3,
507 int _internal_resource_usage_size()
const;
514 const ::google::protobuf::RepeatedField<::int64_t>&
resource_usage()
const;
518 const ::google::protobuf::RepeatedField<::int64_t>& _internal_resource_usage()
const;
519 ::google::protobuf::RepeatedField<::int64_t>* PROTOBUF_NONNULL _internal_mutable_resource_usage();
524 const ::std::string&
name()
const;
525 template <
typename Arg_ = const ::std::string&,
typename... Args_>
526 void set_name(Arg_&& arg, Args_... args);
528 [[nodiscard]] ::std::string* PROTOBUF_NULLABLE
release_name();
532 const ::std::string& _internal_name()
const;
533 PROTOBUF_ALWAYS_INLINE
void _internal_set_name(const ::std::string& value);
534 ::std::string* PROTOBUF_NONNULL _internal_mutable_name();
543 ::int32_t _internal_num_copies()
const;
544 void _internal_set_num_copies(::int32_t value);
553 ::int32_t _internal_max_number_of_copies_per_bin()
const;
554 void _internal_set_max_number_of_copies_per_bin(::int32_t value);
563 double _internal_penalty_per_missing_copy()
const;
564 void _internal_set_penalty_per_missing_copy(
double value);
573 ::int32_t _internal_num_optional_copies()
const;
574 void _internal_set_num_optional_copies(::int32_t value);
580 friend class ::google::protobuf::internal::TcParser;
581 static const ::google::protobuf::internal::TcParseTable<3, 6,
586 friend class ::google::protobuf::MessageLite;
587 friend class ::google::protobuf::Arena;
588 template <
typename T>
589 friend class ::google::protobuf::Arena::InternalHelper;
590 using InternalArenaConstructable_ = void;
591 using DestructorSkippable_ = void;
593 inline explicit constexpr Impl_(::google::protobuf::internal::ConstantInitialized)
noexcept;
594 inline explicit Impl_(
595 ::google::protobuf::internal::InternalVisibility visibility,
596 ::google::protobuf::Arena* PROTOBUF_NULLABLE arena);
597 inline explicit Impl_(
598 ::google::protobuf::internal::InternalVisibility visibility,
599 ::google::protobuf::Arena* PROTOBUF_NULLABLE arena,
const Impl_& from,
600 const Item& from_msg);
601 ::google::protobuf::internal::HasBits<1> _has_bits_;
602 ::google::protobuf::internal::CachedSize _cached_size_;
603 ::google::protobuf::RepeatedField<::int64_t> resource_usage_;
604 ::google::protobuf::internal::CachedSize _resource_usage_cached_byte_size_;
605 ::google::protobuf::internal::ArenaStringPtr name_;
606 ::int32_t num_copies_;
607 ::int32_t max_number_of_copies_per_bin_;
608 double penalty_per_missing_copy_;
609 ::int32_t num_optional_copies_;
610 PROTOBUF_TSAN_DECLARE_MEMBER
612 union { Impl_ _impl_; };
613 friend struct ::TableStruct_ortools_2fpacking_2fvector_5fbin_5fpacking_2eproto;
625#if defined(PROTOBUF_CUSTOM_VTABLE)
632 template <
typename =
void>
636 inline VectorBinPackingSolution(VectorBinPackingSolution&& from) noexcept
643 if (
this == &from)
return *
this;
644 if (::google::protobuf::internal::CanMoveWithInternalSwap(GetArena(), from.GetArena())) {
652 inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const
653 ABSL_ATTRIBUTE_LIFETIME_BOUND {
654 return _internal_metadata_.
unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance);
657 ABSL_ATTRIBUTE_LIFETIME_BOUND {
658 return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>();
661 static const ::google::protobuf::Descriptor* PROTOBUF_NONNULL
descriptor() {
664 static const ::google::protobuf::Descriptor* PROTOBUF_NONNULL GetDescriptor() {
667 static const ::google::protobuf::Reflection* PROTOBUF_NONNULL GetReflection() {
677 if (other ==
this)
return;
678 if (::google::protobuf::internal::CanUseInternalSwap(GetArena(), other->GetArena())) {
681 ::google::protobuf::internal::GenericSwap(
this, other);
684 void UnsafeArenaSwap(VectorBinPackingSolution* PROTOBUF_NONNULL other) {
685 if (other ==
this)
return;
686 ABSL_DCHECK(GetArena() == other->GetArena());
692 VectorBinPackingSolution* PROTOBUF_NONNULL New(::google::protobuf::Arena* PROTOBUF_NULLABLE arena =
nullptr)
const {
693 return ::google::protobuf::Message::DefaultConstruct<VectorBinPackingSolution>(arena);
695 using ::google::protobuf::Message::CopyFrom;
697 using ::google::protobuf::Message::MergeFrom;
701 static void MergeImpl(::google::protobuf::MessageLite& to_msg,
702 const ::google::protobuf::MessageLite& from_msg);
708 ABSL_ATTRIBUTE_REINITIALIZES
void Clear() PROTOBUF_FINAL;
709 #if defined(PROTOBUF_CUSTOM_VTABLE)
711 static ::size_t
ByteSizeLong(const ::google::protobuf::MessageLite& msg);
713 const ::google::protobuf::MessageLite& msg, ::uint8_t* PROTOBUF_NONNULL target,
714 ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream);
718 ::uint8_t* PROTOBUF_NONNULL _InternalSerialize(
719 ::uint8_t* PROTOBUF_NONNULL target,
720 ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream)
const {
721 return _InternalSerialize(*
this, target, stream);
724 ::size_t ByteSizeLong() const final;
725 ::uint8_t* PROTOBUF_NONNULL _InternalSerialize(
726 ::uint8_t* PROTOBUF_NONNULL target,
727 ::
google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const final;
729 int GetCachedSize()
const {
return _impl_._cached_size_.Get(); }
732 void SharedCtor(::google::protobuf::Arena* PROTOBUF_NULLABLE arena);
736 template <
typename T>
738 static ::absl::string_view FullMessageName() {
return "operations_research.packing.vbp.VectorBinPackingSolution"; }
745 *
this = ::std::move(from);
747 const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL GetClassData() const PROTOBUF_FINAL;
748 static
void* PROTOBUF_NONNULL PlacementNew_(
749 const
void* PROTOBUF_NONNULL,
void* PROTOBUF_NONNULL mem,
750 ::
google::protobuf::Arena* PROTOBUF_NULLABLE arena);
751 static constexpr auto InternalNewImpl_();
754 static constexpr auto InternalGenerateClassData_();
756 ::
google::protobuf::Metadata GetMetadata() const;
761 kBinsFieldNumber = 2,
762 kSolverInfoFieldNumber = 1,
763 kObjectiveValueFieldNumber = 4,
764 kSolveTimeInSecondsFieldNumber = 5,
771 int _internal_bins_size()
const;
776 ::google::protobuf::RepeatedPtrField<::operations_research::packing::vbp::VectorBinPackingOneBinInSolution>* PROTOBUF_NONNULL
mutable_bins();
779 const ::google::protobuf::RepeatedPtrField<::operations_research::packing::vbp::VectorBinPackingOneBinInSolution>& _internal_bins()
const;
780 ::google::protobuf::RepeatedPtrField<::operations_research::packing::vbp::VectorBinPackingOneBinInSolution>* PROTOBUF_NONNULL _internal_mutable_bins();
782 const ::operations_research::packing::vbp::VectorBinPackingOneBinInSolution&
bins(
int index)
const;
784 const ::google::protobuf::RepeatedPtrField<::operations_research::packing::vbp::VectorBinPackingOneBinInSolution>&
bins()
const;
788 template <
typename Arg_ = const ::std::string&,
typename... Args_>
795 const ::std::string& _internal_solver_info()
const;
796 PROTOBUF_ALWAYS_INLINE
void _internal_set_solver_info(const ::std::string& value);
797 ::std::string* PROTOBUF_NONNULL _internal_mutable_solver_info();
806 double _internal_objective_value()
const;
807 void _internal_set_objective_value(
double value);
816 double _internal_solve_time_in_seconds()
const;
817 void _internal_set_solve_time_in_seconds(
double value);
826 double _internal_arc_flow_time_in_seconds()
const;
827 void _internal_set_arc_flow_time_in_seconds(
double value);
843 friend class ::google::protobuf::internal::TcParser;
844 static const ::google::protobuf::internal::TcParseTable<3, 6,
849 friend class ::google::protobuf::MessageLite;
850 friend class ::google::protobuf::Arena;
851 template <
typename T>
852 friend class ::google::protobuf::Arena::InternalHelper;
853 using InternalArenaConstructable_ = void;
854 using DestructorSkippable_ = void;
856 inline explicit constexpr Impl_(::google::protobuf::internal::ConstantInitialized)
noexcept;
857 inline explicit Impl_(
858 ::google::protobuf::internal::InternalVisibility visibility,
859 ::google::protobuf::Arena* PROTOBUF_NULLABLE arena);
860 inline explicit Impl_(
861 ::google::protobuf::internal::InternalVisibility visibility,
862 ::google::protobuf::Arena* PROTOBUF_NULLABLE arena,
const Impl_& from,
864 ::google::protobuf::internal::HasBits<1> _has_bits_;
865 ::google::protobuf::internal::CachedSize _cached_size_;
866 ::google::protobuf::RepeatedPtrField< ::operations_research::packing::vbp::VectorBinPackingOneBinInSolution > bins_;
867 ::google::protobuf::internal::ArenaStringPtr solver_info_;
868 double objective_value_;
869 double solve_time_in_seconds_;
870 double arc_flow_time_in_seconds_;
872 PROTOBUF_TSAN_DECLARE_MEMBER
874 union { Impl_ _impl_; };
875 friend struct ::TableStruct_ortools_2fpacking_2fvector_5fbin_5fpacking_2eproto;
887#if defined(PROTOBUF_CUSTOM_VTABLE)
894 template <
typename =
void>
898 inline VectorBinPackingProblem(VectorBinPackingProblem&& from) noexcept
899 : VectorBinPackingProblem(
nullptr, ::std::move(from)) {}
905 if (
this == &from)
return *
this;
906 if (::google::protobuf::internal::CanMoveWithInternalSwap(GetArena(), from.GetArena())) {
914 inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const
915 ABSL_ATTRIBUTE_LIFETIME_BOUND {
916 return _internal_metadata_.
unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance);
918 inline ::google::protobuf::UnknownFieldSet* PROTOBUF_NONNULL mutable_unknown_fields()
919 ABSL_ATTRIBUTE_LIFETIME_BOUND {
920 return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>();
923 static const ::google::protobuf::Descriptor* PROTOBUF_NONNULL
descriptor() {
926 static const ::google::protobuf::Descriptor* PROTOBUF_NONNULL GetDescriptor() {
927 return default_instance().GetMetadata().descriptor;
929 static const ::google::protobuf::Reflection* PROTOBUF_NONNULL GetReflection() {
930 return default_instance().GetMetadata().reflection;
936 static constexpr int kIndexInFileMessages = 1;
939 if (other ==
this)
return;
940 if (::google::protobuf::internal::CanUseInternalSwap(GetArena(), other->GetArena())) {
943 ::google::protobuf::internal::GenericSwap(
this, other);
946 void UnsafeArenaSwap(VectorBinPackingProblem* PROTOBUF_NONNULL other) {
947 if (other ==
this)
return;
948 ABSL_DCHECK(GetArena() == other->GetArena());
955 return ::google::protobuf::Message::DefaultConstruct<VectorBinPackingProblem>(arena);
957 using ::google::protobuf::Message::CopyFrom;
959 using ::google::protobuf::Message::MergeFrom;
963 static void MergeImpl(::google::protobuf::MessageLite& to_msg,
964 const ::google::protobuf::MessageLite& from_msg);
970 ABSL_ATTRIBUTE_REINITIALIZES
void Clear() PROTOBUF_FINAL;
971 #if defined(PROTOBUF_CUSTOM_VTABLE)
973 static ::size_t
ByteSizeLong(const ::google::protobuf::MessageLite& msg);
975 const ::google::protobuf::MessageLite& msg, ::uint8_t* PROTOBUF_NONNULL target,
976 ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream);
980 ::uint8_t* PROTOBUF_NONNULL _InternalSerialize(
981 ::uint8_t* PROTOBUF_NONNULL target,
982 ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream)
const {
983 return _InternalSerialize(*
this, target, stream);
986 ::size_t ByteSizeLong() const final;
987 ::uint8_t* PROTOBUF_NONNULL _InternalSerialize(
988 ::uint8_t* PROTOBUF_NONNULL target,
989 ::
google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const final;
991 int GetCachedSize()
const {
return _impl_._cached_size_.Get(); }
994 void SharedCtor(::google::protobuf::Arena* PROTOBUF_NULLABLE arena);
995 static void SharedDtor(MessageLite& self);
998 template <
typename T>
1000 static ::absl::string_view FullMessageName() {
return "operations_research.packing.vbp.VectorBinPackingProblem"; }
1007 *
this = ::std::move(from);
1009 const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL GetClassData() const PROTOBUF_FINAL;
1010 static
void* PROTOBUF_NONNULL PlacementNew_(
1011 const
void* PROTOBUF_NONNULL,
void* PROTOBUF_NONNULL mem,
1012 ::
google::protobuf::Arena* PROTOBUF_NULLABLE arena);
1013 static constexpr auto InternalNewImpl_();
1016 static constexpr auto InternalGenerateClassData_();
1018 ::
google::protobuf::Metadata GetMetadata() const;
1023 kResourceCapacityFieldNumber = 2,
1024 kResourceNameFieldNumber = 3,
1025 kItemFieldNumber = 4,
1026 kNameFieldNumber = 1,
1027 kCostPerBinFieldNumber = 6,
1033 int _internal_resource_capacity_size()
const;
1044 const ::google::protobuf::RepeatedField<::int64_t>& _internal_resource_capacity()
const;
1045 ::google::protobuf::RepeatedField<::int64_t>* PROTOBUF_NONNULL _internal_mutable_resource_capacity();
1051 int _internal_resource_name_size()
const;
1057 template <
typename Arg_ = const ::std::string&,
typename... Args_>
1060 template <
typename Arg_ = const ::std::string&,
typename... Args_>
1062 const ::google::protobuf::RepeatedPtrField<::std::string>&
resource_name()
const;
1066 const ::google::protobuf::RepeatedPtrField<::std::string>& _internal_resource_name()
const;
1067 ::google::protobuf::RepeatedPtrField<::std::string>* PROTOBUF_NONNULL _internal_mutable_resource_name();
1073 int _internal_item_size()
const;
1078 ::google::protobuf::RepeatedPtrField<::operations_research::packing::vbp::Item>* PROTOBUF_NONNULL
mutable_item();
1081 const ::google::protobuf::RepeatedPtrField<::operations_research::packing::vbp::Item>& _internal_item()
const;
1082 ::google::protobuf::RepeatedPtrField<::operations_research::packing::vbp::Item>* PROTOBUF_NONNULL _internal_mutable_item();
1084 const ::operations_research::packing::vbp::Item&
item(
int index)
const;
1086 const ::google::protobuf::RepeatedPtrField<::operations_research::packing::vbp::Item>&
item()
const;
1089 const ::std::string&
name()
const;
1090 template <
typename Arg_ = const ::std::string&,
typename... Args_>
1091 void set_name(Arg_&& arg, Args_... args);
1093 [[nodiscard]] ::std::string* PROTOBUF_NULLABLE
release_name();
1097 const ::std::string& _internal_name()
const;
1098 PROTOBUF_ALWAYS_INLINE
void _internal_set_name(const ::std::string& value);
1099 ::std::string* PROTOBUF_NONNULL _internal_mutable_name();
1109 double _internal_cost_per_bin()
const;
1110 void _internal_set_cost_per_bin(
double value);
1119 ::int32_t _internal_max_bins()
const;
1120 void _internal_set_max_bins(::int32_t value);
1126 friend class ::google::protobuf::internal::TcParser;
1127 static const ::google::protobuf::internal::TcParseTable<3, 6,
1132 friend class ::google::protobuf::MessageLite;
1133 friend class ::google::protobuf::Arena;
1134 template <
typename T>
1135 friend class ::google::protobuf::Arena::InternalHelper;
1136 using InternalArenaConstructable_ = void;
1137 using DestructorSkippable_ = void;
1139 inline explicit constexpr Impl_(::google::protobuf::internal::ConstantInitialized)
noexcept;
1140 inline explicit Impl_(
1141 ::google::protobuf::internal::InternalVisibility visibility,
1142 ::google::protobuf::Arena* PROTOBUF_NULLABLE arena);
1143 inline explicit Impl_(
1144 ::google::protobuf::internal::InternalVisibility visibility,
1145 ::google::protobuf::Arena* PROTOBUF_NULLABLE arena,
const Impl_& from,
1147 ::google::protobuf::internal::HasBits<1> _has_bits_;
1148 ::google::protobuf::internal::CachedSize _cached_size_;
1149 ::google::protobuf::RepeatedField<::int64_t> resource_capacity_;
1150 ::google::protobuf::internal::CachedSize _resource_capacity_cached_byte_size_;
1151 ::google::protobuf::RepeatedPtrField<::std::string> resource_name_;
1152 ::google::protobuf::RepeatedPtrField< ::operations_research::packing::vbp::Item > item_;
1153 ::google::protobuf::internal::ArenaStringPtr name_;
1154 double cost_per_bin_;
1155 ::int32_t max_bins_;
1156 PROTOBUF_TSAN_DECLARE_MEMBER
1158 union { Impl_ _impl_; };
1159 friend struct ::TableStruct_ortools_2fpacking_2fvector_5fbin_5fpacking_2eproto;
1173#pragma GCC diagnostic push
1174#pragma GCC diagnostic ignored "-Wstrict-aliasing"
1182 ::google::protobuf::internal::TSanWrite(&
_impl_);
1183 _impl_.name_.ClearToEmpty();
1184 ClearHasBit(
_impl_._has_bits_[0],
1187inline const ::std::string&
Item::name() const
1188 ABSL_ATTRIBUTE_LIFETIME_BOUND {
1190 return _internal_name();
1192template <
typename Arg_,
typename... Args_>
1193PROTOBUF_ALWAYS_INLINE
void Item::set_name(Arg_&& arg, Args_... args) {
1194 ::google::protobuf::internal::TSanWrite(&
_impl_);
1195 SetHasBit(
_impl_._has_bits_[0], 0x00000002U);
1196 _impl_.name_.Set(
static_cast<Arg_&&
>(arg), args..., GetArena());
1200 ABSL_ATTRIBUTE_LIFETIME_BOUND {
1201 SetHasBit(
_impl_._has_bits_[0], 0x00000002U);
1202 ::std::string* _s = _internal_mutable_name();
1206inline const ::std::string& Item::_internal_name()
const {
1207 ::google::protobuf::internal::TSanRead(&
_impl_);
1208 return _impl_.name_.Get();
1210inline void Item::_internal_set_name(const ::std::string& value) {
1211 ::google::protobuf::internal::TSanWrite(&
_impl_);
1212 _impl_.name_.Set(value, GetArena());
1214inline ::std::string* PROTOBUF_NONNULL Item::_internal_mutable_name() {
1215 ::google::protobuf::internal::TSanWrite(&
_impl_);
1216 return _impl_.name_.Mutable( GetArena());
1219 ::google::protobuf::internal::TSanWrite(&
_impl_);
1221 if (!CheckHasBit(
_impl_._has_bits_[0], 0x00000002U)) {
1224 ClearHasBit(
_impl_._has_bits_[0], 0x00000002U);
1225 auto* released =
_impl_.name_.Release();
1226 if (::google::protobuf::internal::DebugHardenForceCopyDefaultString()) {
1227 _impl_.name_.Set(
"", GetArena());
1232 ::google::protobuf::internal::TSanWrite(&
_impl_);
1233 if (value !=
nullptr) {
1234 SetHasBit(
_impl_._has_bits_[0], 0x00000002U);
1236 ClearHasBit(
_impl_._has_bits_[0], 0x00000002U);
1238 _impl_.name_.SetAllocated(value, GetArena());
1239 if (::google::protobuf::internal::DebugHardenForceCopyDefaultString() &&
_impl_.name_.IsDefault()) {
1240 _impl_.name_.Set(
"", GetArena());
1246inline int Item::_internal_resource_usage_size()
const {
1247 return _internal_resource_usage().size();
1250 return _internal_resource_usage_size();
1253 ::google::protobuf::internal::TSanWrite(&
_impl_);
1254 _impl_.resource_usage_.Clear();
1255 ClearHasBitForRepeated(
_impl_._has_bits_[0],
1260 return _internal_resource_usage().Get(index);
1263 _internal_mutable_resource_usage()->Set(index, value);
1267 ::google::protobuf::internal::TSanWrite(&
_impl_);
1268 _internal_mutable_resource_usage()->Add(value);
1269 SetHasBitForRepeated(
_impl_._has_bits_[0], 0x00000001U);
1273 ABSL_ATTRIBUTE_LIFETIME_BOUND {
1275 return _internal_resource_usage();
1278 ABSL_ATTRIBUTE_LIFETIME_BOUND {
1279 SetHasBitForRepeated(
_impl_._has_bits_[0], 0x00000001U);
1281 ::google::protobuf::internal::TSanWrite(&
_impl_);
1282 return _internal_mutable_resource_usage();
1284inline const ::google::protobuf::RepeatedField<::int64_t>&
1285Item::_internal_resource_usage()
const {
1286 ::google::protobuf::internal::TSanRead(&
_impl_);
1287 return _impl_.resource_usage_;
1289inline ::google::protobuf::RepeatedField<::int64_t>* PROTOBUF_NONNULL
1290Item::_internal_mutable_resource_usage() {
1291 ::google::protobuf::internal::TSanRead(&
_impl_);
1292 return &
_impl_.resource_usage_;
1297 ::google::protobuf::internal::TSanWrite(&
_impl_);
1299 ClearHasBit(
_impl_._has_bits_[0],
1304 return _internal_num_copies();
1307 _internal_set_num_copies(value);
1308 SetHasBit(
_impl_._has_bits_[0], 0x00000004U);
1311inline ::int32_t Item::_internal_num_copies()
const {
1312 ::google::protobuf::internal::TSanRead(&
_impl_);
1313 return _impl_.num_copies_;
1315inline void Item::_internal_set_num_copies(::int32_t value) {
1316 ::google::protobuf::internal::TSanWrite(&
_impl_);
1317 _impl_.num_copies_ = value;
1322 ::google::protobuf::internal::TSanWrite(&
_impl_);
1323 _impl_.num_optional_copies_ = 0;
1324 ClearHasBit(
_impl_._has_bits_[0],
1329 return _internal_num_optional_copies();
1332 _internal_set_num_optional_copies(value);
1333 SetHasBit(
_impl_._has_bits_[0], 0x00000020U);
1336inline ::int32_t Item::_internal_num_optional_copies()
const {
1337 ::google::protobuf::internal::TSanRead(&
_impl_);
1338 return _impl_.num_optional_copies_;
1340inline void Item::_internal_set_num_optional_copies(::int32_t value) {
1341 ::google::protobuf::internal::TSanWrite(&
_impl_);
1342 _impl_.num_optional_copies_ = value;
1347 ::google::protobuf::internal::TSanWrite(&
_impl_);
1348 _impl_.max_number_of_copies_per_bin_ = 0;
1349 ClearHasBit(
_impl_._has_bits_[0],
1354 return _internal_max_number_of_copies_per_bin();
1357 _internal_set_max_number_of_copies_per_bin(value);
1358 SetHasBit(
_impl_._has_bits_[0], 0x00000008U);
1361inline ::int32_t Item::_internal_max_number_of_copies_per_bin()
const {
1362 ::google::protobuf::internal::TSanRead(&
_impl_);
1363 return _impl_.max_number_of_copies_per_bin_;
1365inline void Item::_internal_set_max_number_of_copies_per_bin(::int32_t value) {
1366 ::google::protobuf::internal::TSanWrite(&
_impl_);
1367 _impl_.max_number_of_copies_per_bin_ = value;
1372 ::google::protobuf::internal::TSanWrite(&
_impl_);
1373 _impl_.penalty_per_missing_copy_ = 0;
1374 ClearHasBit(
_impl_._has_bits_[0],
1379 return _internal_penalty_per_missing_copy();
1382 _internal_set_penalty_per_missing_copy(value);
1383 SetHasBit(
_impl_._has_bits_[0], 0x00000010U);
1386inline double Item::_internal_penalty_per_missing_copy()
const {
1387 ::google::protobuf::internal::TSanRead(&
_impl_);
1388 return _impl_.penalty_per_missing_copy_;
1390inline void Item::_internal_set_penalty_per_missing_copy(
double value) {
1391 ::google::protobuf::internal::TSanWrite(&
_impl_);
1392 _impl_.penalty_per_missing_copy_ = value;
1401 ::google::protobuf::internal::TSanWrite(&
_impl_);
1402 _impl_.name_.ClearToEmpty();
1403 ClearHasBit(
_impl_._has_bits_[0],
1407 ABSL_ATTRIBUTE_LIFETIME_BOUND {
1409 return _internal_name();
1411template <
typename Arg_,
typename... Args_>
1413 ::google::protobuf::internal::TSanWrite(&
_impl_);
1414 SetHasBit(
_impl_._has_bits_[0], 0x00000008U);
1415 _impl_.name_.Set(
static_cast<Arg_&&
>(arg), args..., GetArena());
1419 ABSL_ATTRIBUTE_LIFETIME_BOUND {
1420 SetHasBit(
_impl_._has_bits_[0], 0x00000008U);
1421 ::std::string* _s = _internal_mutable_name();
1425inline const ::std::string& VectorBinPackingProblem::_internal_name()
const {
1426 ::google::protobuf::internal::TSanRead(&
_impl_);
1429inline void VectorBinPackingProblem::_internal_set_name(const ::std::string& value) {
1430 ::google::protobuf::internal::TSanWrite(&
_impl_);
1431 _impl_.name_.Set(value, GetArena());
1433inline ::std::string* PROTOBUF_NONNULL VectorBinPackingProblem::_internal_mutable_name() {
1434 ::google::protobuf::internal::TSanWrite(&
_impl_);
1435 return _impl_.name_.Mutable( GetArena());
1438 ::google::protobuf::internal::TSanWrite(&
_impl_);
1440 if (!CheckHasBit(
_impl_._has_bits_[0], 0x00000008U)) {
1443 ClearHasBit(
_impl_._has_bits_[0], 0x00000008U);
1444 auto* released =
_impl_.name_.Release();
1445 if (::google::protobuf::internal::DebugHardenForceCopyDefaultString()) {
1451 ::google::protobuf::internal::TSanWrite(&
_impl_);
1452 if (value !=
nullptr) {
1453 SetHasBit(
_impl_._has_bits_[0], 0x00000008U);
1455 ClearHasBit(
_impl_._has_bits_[0], 0x00000008U);
1457 _impl_.name_.SetAllocated(value, GetArena());
1458 if (::google::protobuf::internal::DebugHardenForceCopyDefaultString() &&
_impl_.name_.IsDefault()) {
1465inline int VectorBinPackingProblem::_internal_resource_capacity_size()
const {
1466 return _internal_resource_capacity().size();
1469 return _internal_resource_capacity_size();
1472 ::google::protobuf::internal::TSanWrite(&
_impl_);
1473 _impl_.resource_capacity_.Clear();
1474 ClearHasBitForRepeated(
_impl_._has_bits_[0],
1479 return _internal_resource_capacity().Get(index);
1482 _internal_mutable_resource_capacity()->Set(index, value);
1486 ::google::protobuf::internal::TSanWrite(&
_impl_);
1487 _internal_mutable_resource_capacity()->Add(value);
1488 SetHasBitForRepeated(
_impl_._has_bits_[0], 0x00000001U);
1492 ABSL_ATTRIBUTE_LIFETIME_BOUND {
1494 return _internal_resource_capacity();
1497 ABSL_ATTRIBUTE_LIFETIME_BOUND {
1498 SetHasBitForRepeated(
_impl_._has_bits_[0], 0x00000001U);
1500 ::google::protobuf::internal::TSanWrite(&
_impl_);
1501 return _internal_mutable_resource_capacity();
1503inline const ::google::protobuf::RepeatedField<::int64_t>&
1504VectorBinPackingProblem::_internal_resource_capacity()
const {
1505 ::google::protobuf::internal::TSanRead(&
_impl_);
1506 return _impl_.resource_capacity_;
1508inline ::google::protobuf::RepeatedField<::int64_t>* PROTOBUF_NONNULL
1509VectorBinPackingProblem::_internal_mutable_resource_capacity() {
1510 ::google::protobuf::internal::TSanRead(&
_impl_);
1511 return &
_impl_.resource_capacity_;
1515inline int VectorBinPackingProblem::_internal_resource_name_size()
const {
1516 return _internal_resource_name().size();
1519 return _internal_resource_name_size();
1522 ::google::protobuf::internal::TSanWrite(&
_impl_);
1523 _impl_.resource_name_.Clear();
1524 ClearHasBitForRepeated(
_impl_._has_bits_[0],
1528 ABSL_ATTRIBUTE_LIFETIME_BOUND {
1529 ::google::protobuf::internal::TSanWrite(&
_impl_);
1531 _internal_mutable_resource_name()->InternalAddWithArena(
1532 ::google::protobuf::MessageLite::internal_visibility(), GetArena());
1533 SetHasBitForRepeated(
_impl_._has_bits_[0], 0x00000002U);
1538 ABSL_ATTRIBUTE_LIFETIME_BOUND {
1540 return _internal_resource_name().Get(index);
1543 ABSL_ATTRIBUTE_LIFETIME_BOUND {
1545 return _internal_mutable_resource_name()->Mutable(index);
1547template <
typename Arg_,
typename... Args_>
1549 ::google::protobuf::internal::AssignToString(*_internal_mutable_resource_name()->Mutable(index), ::std::forward<Arg_>(value),
1553template <
typename Arg_,
typename... Args_>
1555 ::google::protobuf::internal::TSanWrite(&
_impl_);
1556 ::google::protobuf::internal::AddToRepeatedPtrField(
1557 ::google::protobuf::MessageLite::internal_visibility(), GetArena(),
1558 *_internal_mutable_resource_name(), ::std::forward<Arg_>(value),
1560 SetHasBitForRepeated(
_impl_._has_bits_[0], 0x00000002U);
1564 const ABSL_ATTRIBUTE_LIFETIME_BOUND {
1566 return _internal_resource_name();
1568inline ::google::protobuf::RepeatedPtrField<::std::string>* PROTOBUF_NONNULL
1570 SetHasBitForRepeated(
_impl_._has_bits_[0], 0x00000002U);
1572 ::google::protobuf::internal::TSanWrite(&
_impl_);
1573 return _internal_mutable_resource_name();
1575inline const ::google::protobuf::RepeatedPtrField<::std::string>&
1576VectorBinPackingProblem::_internal_resource_name()
const {
1577 ::google::protobuf::internal::TSanRead(&
_impl_);
1580inline ::google::protobuf::RepeatedPtrField<::std::string>* PROTOBUF_NONNULL
1581VectorBinPackingProblem::_internal_mutable_resource_name() {
1582 ::google::protobuf::internal::TSanRead(&
_impl_);
1583 return &
_impl_.resource_name_;
1587inline int VectorBinPackingProblem::_internal_item_size()
const {
1588 return _internal_item().size();
1591 return _internal_item_size();
1594 ::google::protobuf::internal::TSanWrite(&
_impl_);
1596 ClearHasBitForRepeated(
_impl_._has_bits_[0],
1600 ABSL_ATTRIBUTE_LIFETIME_BOUND {
1602 return _internal_mutable_item()->Mutable(index);
1605 ABSL_ATTRIBUTE_LIFETIME_BOUND {
1606 SetHasBitForRepeated(
_impl_._has_bits_[0], 0x00000004U);
1608 ::google::protobuf::internal::TSanWrite(&
_impl_);
1609 return _internal_mutable_item();
1612 ABSL_ATTRIBUTE_LIFETIME_BOUND {
1614 return _internal_item().Get(index);
1617 ABSL_ATTRIBUTE_LIFETIME_BOUND {
1618 ::google::protobuf::internal::TSanWrite(&
_impl_);
1620 _internal_mutable_item()->InternalAddWithArena(
1621 ::google::protobuf::MessageLite::internal_visibility(), GetArena());
1622 SetHasBitForRepeated(
_impl_._has_bits_[0], 0x00000004U);
1627 ABSL_ATTRIBUTE_LIFETIME_BOUND {
1629 return _internal_item();
1631inline const ::google::protobuf::RepeatedPtrField<::operations_research::packing::vbp::Item>&
1632VectorBinPackingProblem::_internal_item()
const {
1633 ::google::protobuf::internal::TSanRead(&
_impl_);
1636inline ::google::protobuf::RepeatedPtrField<::operations_research::packing::vbp::Item>* PROTOBUF_NONNULL
1637VectorBinPackingProblem::_internal_mutable_item() {
1638 ::google::protobuf::internal::TSanRead(&
_impl_);
1644 ::google::protobuf::internal::TSanWrite(&
_impl_);
1646 ClearHasBit(
_impl_._has_bits_[0],
1651 return _internal_max_bins();
1654 _internal_set_max_bins(value);
1655 SetHasBit(
_impl_._has_bits_[0], 0x00000020U);
1658inline ::int32_t VectorBinPackingProblem::_internal_max_bins()
const {
1659 ::google::protobuf::internal::TSanRead(&
_impl_);
1662inline void VectorBinPackingProblem::_internal_set_max_bins(::int32_t value) {
1663 ::google::protobuf::internal::TSanWrite(&
_impl_);
1664 _impl_.max_bins_ = value;
1669 bool value = CheckHasBit(
_impl_._has_bits_[0], 0x00000010U);
1673 ::google::protobuf::internal::TSanWrite(&
_impl_);
1674 _impl_.cost_per_bin_ = 0;
1675 ClearHasBit(
_impl_._has_bits_[0],
1680 return _internal_cost_per_bin();
1683 _internal_set_cost_per_bin(value);
1684 SetHasBit(
_impl_._has_bits_[0], 0x00000010U);
1687inline double VectorBinPackingProblem::_internal_cost_per_bin()
const {
1688 ::google::protobuf::internal::TSanRead(&
_impl_);
1689 return _impl_.cost_per_bin_;
1691inline void VectorBinPackingProblem::_internal_set_cost_per_bin(
double value) {
1692 ::google::protobuf::internal::TSanWrite(&
_impl_);
1693 _impl_.cost_per_bin_ = value;
1701inline int VectorBinPackingOneBinInSolution::_internal_item_indices_size()
const {
1702 return _internal_item_indices().size();
1705 return _internal_item_indices_size();
1708 ::google::protobuf::internal::TSanWrite(&
_impl_);
1709 _impl_.item_indices_.Clear();
1710 ClearHasBitForRepeated(
_impl_._has_bits_[0],
1715 return _internal_item_indices().Get(index);
1718 _internal_mutable_item_indices()->Set(index, value);
1722 ::google::protobuf::internal::TSanWrite(&
_impl_);
1723 _internal_mutable_item_indices()->Add(value);
1724 SetHasBitForRepeated(
_impl_._has_bits_[0], 0x00000001U);
1728 ABSL_ATTRIBUTE_LIFETIME_BOUND {
1730 return _internal_item_indices();
1733 ABSL_ATTRIBUTE_LIFETIME_BOUND {
1734 SetHasBitForRepeated(
_impl_._has_bits_[0], 0x00000001U);
1736 ::google::protobuf::internal::TSanWrite(&
_impl_);
1737 return _internal_mutable_item_indices();
1739inline const ::google::protobuf::RepeatedField<::int32_t>&
1740VectorBinPackingOneBinInSolution::_internal_item_indices()
const {
1741 ::google::protobuf::internal::TSanRead(&
_impl_);
1744inline ::google::protobuf::RepeatedField<::int32_t>* PROTOBUF_NONNULL
1745VectorBinPackingOneBinInSolution::_internal_mutable_item_indices() {
1746 ::google::protobuf::internal::TSanRead(&
_impl_);
1747 return &
_impl_.item_indices_;
1751inline int VectorBinPackingOneBinInSolution::_internal_item_copies_size()
const {
1752 return _internal_item_copies().size();
1755 return _internal_item_copies_size();
1758 ::google::protobuf::internal::TSanWrite(&
_impl_);
1759 _impl_.item_copies_.Clear();
1760 ClearHasBitForRepeated(
_impl_._has_bits_[0],
1765 return _internal_item_copies().Get(index);
1768 _internal_mutable_item_copies()->Set(index, value);
1772 ::google::protobuf::internal::TSanWrite(&
_impl_);
1773 _internal_mutable_item_copies()->Add(value);
1774 SetHasBitForRepeated(
_impl_._has_bits_[0], 0x00000002U);
1778 ABSL_ATTRIBUTE_LIFETIME_BOUND {
1780 return _internal_item_copies();
1783 ABSL_ATTRIBUTE_LIFETIME_BOUND {
1784 SetHasBitForRepeated(
_impl_._has_bits_[0], 0x00000002U);
1786 ::google::protobuf::internal::TSanWrite(&
_impl_);
1787 return _internal_mutable_item_copies();
1789inline const ::google::protobuf::RepeatedField<::int32_t>&
1790VectorBinPackingOneBinInSolution::_internal_item_copies()
const {
1791 ::google::protobuf::internal::TSanRead(&
_impl_);
1794inline ::google::protobuf::RepeatedField<::int32_t>* PROTOBUF_NONNULL
1795VectorBinPackingOneBinInSolution::_internal_mutable_item_copies() {
1796 ::google::protobuf::internal::TSanRead(&
_impl_);
1797 return &
_impl_.item_copies_;
1806 ::google::protobuf::internal::TSanWrite(&
_impl_);
1807 _impl_.solver_info_.ClearToEmpty();
1808 ClearHasBit(
_impl_._has_bits_[0],
1812 ABSL_ATTRIBUTE_LIFETIME_BOUND {
1814 return _internal_solver_info();
1816template <
typename Arg_,
typename... Args_>
1818 ::google::protobuf::internal::TSanWrite(&
_impl_);
1819 SetHasBit(
_impl_._has_bits_[0], 0x00000002U);
1820 _impl_.solver_info_.Set(
static_cast<Arg_&&
>(arg), args..., GetArena());
1824 ABSL_ATTRIBUTE_LIFETIME_BOUND {
1825 SetHasBit(
_impl_._has_bits_[0], 0x00000002U);
1826 ::std::string* _s = _internal_mutable_solver_info();
1830inline const ::std::string& VectorBinPackingSolution::_internal_solver_info()
const {
1831 ::google::protobuf::internal::TSanRead(&
_impl_);
1832 return _impl_.solver_info_.Get();
1834inline void VectorBinPackingSolution::_internal_set_solver_info(const ::std::string& value) {
1835 ::google::protobuf::internal::TSanWrite(&
_impl_);
1836 _impl_.solver_info_.Set(value, GetArena());
1838inline ::std::string* PROTOBUF_NONNULL VectorBinPackingSolution::_internal_mutable_solver_info() {
1839 ::google::protobuf::internal::TSanWrite(&
_impl_);
1840 return _impl_.solver_info_.Mutable( GetArena());
1843 ::google::protobuf::internal::TSanWrite(&
_impl_);
1845 if (!CheckHasBit(
_impl_._has_bits_[0], 0x00000002U)) {
1848 ClearHasBit(
_impl_._has_bits_[0], 0x00000002U);
1849 auto* released =
_impl_.solver_info_.Release();
1850 if (::google::protobuf::internal::DebugHardenForceCopyDefaultString()) {
1851 _impl_.solver_info_.Set(
"", GetArena());
1856 ::google::protobuf::internal::TSanWrite(&
_impl_);
1857 if (value !=
nullptr) {
1858 SetHasBit(
_impl_._has_bits_[0], 0x00000002U);
1860 ClearHasBit(
_impl_._has_bits_[0], 0x00000002U);
1862 _impl_.solver_info_.SetAllocated(value, GetArena());
1863 if (::google::protobuf::internal::DebugHardenForceCopyDefaultString() &&
_impl_.solver_info_.IsDefault()) {
1864 _impl_.solver_info_.Set(
"", GetArena());
1870inline int VectorBinPackingSolution::_internal_bins_size()
const {
1871 return _internal_bins().size();
1874 return _internal_bins_size();
1877 ::google::protobuf::internal::TSanWrite(&
_impl_);
1879 ClearHasBitForRepeated(
_impl_._has_bits_[0],
1883 ABSL_ATTRIBUTE_LIFETIME_BOUND {
1885 return _internal_mutable_bins()->Mutable(index);
1888 ABSL_ATTRIBUTE_LIFETIME_BOUND {
1889 SetHasBitForRepeated(
_impl_._has_bits_[0], 0x00000001U);
1891 ::google::protobuf::internal::TSanWrite(&
_impl_);
1892 return _internal_mutable_bins();
1895 ABSL_ATTRIBUTE_LIFETIME_BOUND {
1897 return _internal_bins().Get(index);
1900 ABSL_ATTRIBUTE_LIFETIME_BOUND {
1901 ::google::protobuf::internal::TSanWrite(&
_impl_);
1903 _internal_mutable_bins()->InternalAddWithArena(
1904 ::google::protobuf::MessageLite::internal_visibility(), GetArena());
1905 SetHasBitForRepeated(
_impl_._has_bits_[0], 0x00000001U);
1909inline const ::google::protobuf::RepeatedPtrField<::operations_research::packing::vbp::VectorBinPackingOneBinInSolution>&
VectorBinPackingSolution::bins() const
1910 ABSL_ATTRIBUTE_LIFETIME_BOUND {
1912 return _internal_bins();
1914inline const ::google::protobuf::RepeatedPtrField<::operations_research::packing::vbp::VectorBinPackingOneBinInSolution>&
1915VectorBinPackingSolution::_internal_bins()
const {
1916 ::google::protobuf::internal::TSanRead(&
_impl_);
1919inline ::google::protobuf::RepeatedPtrField<::operations_research::packing::vbp::VectorBinPackingOneBinInSolution>* PROTOBUF_NONNULL
1920VectorBinPackingSolution::_internal_mutable_bins() {
1921 ::google::protobuf::internal::TSanRead(&
_impl_);
1927 ::google::protobuf::internal::TSanWrite(&
_impl_);
1929 ClearHasBit(
_impl_._has_bits_[0],
1934 return _internal_status();
1937 _internal_set_status(value);
1938 SetHasBit(
_impl_._has_bits_[0], 0x00000020U);
1941inline ::operations_research::packing::vbp::VectorBinPackingSolveStatus VectorBinPackingSolution::_internal_status()
const {
1942 ::google::protobuf::internal::TSanRead(&
_impl_);
1946 ::google::protobuf::internal::TSanWrite(&
_impl_);
1952 ::google::protobuf::internal::TSanWrite(&
_impl_);
1953 _impl_.objective_value_ = 0;
1954 ClearHasBit(
_impl_._has_bits_[0],
1959 return _internal_objective_value();
1962 _internal_set_objective_value(value);
1963 SetHasBit(
_impl_._has_bits_[0], 0x00000004U);
1966inline double VectorBinPackingSolution::_internal_objective_value()
const {
1967 ::google::protobuf::internal::TSanRead(&
_impl_);
1970inline void VectorBinPackingSolution::_internal_set_objective_value(
double value) {
1971 ::google::protobuf::internal::TSanWrite(&
_impl_);
1977 ::google::protobuf::internal::TSanWrite(&
_impl_);
1978 _impl_.solve_time_in_seconds_ = 0;
1979 ClearHasBit(
_impl_._has_bits_[0],
1984 return _internal_solve_time_in_seconds();
1987 _internal_set_solve_time_in_seconds(value);
1988 SetHasBit(
_impl_._has_bits_[0], 0x00000008U);
1991inline double VectorBinPackingSolution::_internal_solve_time_in_seconds()
const {
1992 ::google::protobuf::internal::TSanRead(&
_impl_);
1995inline void VectorBinPackingSolution::_internal_set_solve_time_in_seconds(
double value) {
1996 ::google::protobuf::internal::TSanWrite(&
_impl_);
2002 ::google::protobuf::internal::TSanWrite(&
_impl_);
2003 _impl_.arc_flow_time_in_seconds_ = 0;
2004 ClearHasBit(
_impl_._has_bits_[0],
2009 return _internal_arc_flow_time_in_seconds();
2012 _internal_set_arc_flow_time_in_seconds(value);
2013 SetHasBit(
_impl_._has_bits_[0], 0x00000010U);
2016inline double VectorBinPackingSolution::_internal_arc_flow_time_in_seconds()
const {
2017 ::google::protobuf::internal::TSanRead(&
_impl_);
2020inline void VectorBinPackingSolution::_internal_set_arc_flow_time_in_seconds(
double value) {
2021 ::google::protobuf::internal::TSanWrite(&
_impl_);
2026#pragma GCC diagnostic pop
2042 return ::operations_research::packing::vbp::VectorBinPackingSolveStatus_descriptor();
2050#include "google/protobuf/port_undef.inc"
friend class ::google::protobuf::MessageLite
void set_penalty_per_missing_copy(double value)
void MergeFrom(const Item &from)
void clear_num_optional_copies()
::size_t ByteSizeLong() const final
const ::google::protobuf::UnknownFieldSet & unknown_fields() const ABSL_ATTRIBUTE_LIFETIME_BOUND
void add_resource_usage(::int64_t value)
void set_name(Arg_ &&arg, Args_... args)
::std::string *PROTOBUF_NULLABLE release_name()
void clear_penalty_per_missing_copy()
static const Item & default_instance()
void CopyFrom(const Item &from)
void clear_resource_usage()
@ kNumOptionalCopiesFieldNumber
@ kMaxNumberOfCopiesPerBinFieldNumber
@ kPenaltyPerMissingCopyFieldNumber
ABSL_ATTRIBUTE_REINITIALIZES void Clear() PROTOBUF_FINAL
Item & operator=(const Item &from)
void set_num_copies(::int32_t value)
void set_resource_usage(int index, ::int64_t value)
void set_max_number_of_copies_per_bin(::int32_t value)
::int32_t num_optional_copies() const
const ::std::string & name() const
const ::google::protobuf::RepeatedField<::int64_t > & resource_usage() const
int resource_usage_size() const
void set_allocated_name(::std::string *PROTOBUF_NULLABLE value)
static const ::google::protobuf::Reflection *PROTOBUF_NONNULL GetReflection()
bool IsInitialized() const
void clear_max_number_of_copies_per_bin()
void set_num_optional_copies(::int32_t value)
static const ::google::protobuf::Descriptor *PROTOBUF_NONNULL GetDescriptor()
::google::protobuf::RepeatedField<::int64_t > *PROTOBUF_NONNULL mutable_resource_usage()
::int64_t resource_usage(int index) const
double penalty_per_missing_copy() const
PROTOBUF_CONSTEXPR Item(::google::protobuf::internal::ConstantInitialized)
::int32_t num_copies() const
::uint8_t *PROTOBUF_NONNULL _InternalSerialize(::uint8_t *PROTOBUF_NONNULL target, ::google::protobuf::io::EpsCopyOutputStream *PROTOBUF_NONNULL stream) const final
::std::string *PROTOBUF_NONNULL mutable_name()
::int32_t max_number_of_copies_per_bin() const
void Swap(Item *PROTOBUF_NONNULL other)
void set_item_indices(int index, ::int32_t value)
friend class ::google::protobuf::MessageLite
PROTOBUF_CONSTEXPR VectorBinPackingOneBinInSolution(::google::protobuf::internal::ConstantInitialized)
void add_item_indices(::int32_t value)
const ::google::protobuf::RepeatedField<::int32_t > & item_copies() const
void Swap(VectorBinPackingOneBinInSolution *PROTOBUF_NONNULL other)
const ::google::protobuf::UnknownFieldSet & unknown_fields() const ABSL_ATTRIBUTE_LIFETIME_BOUND
void CopyFrom(const VectorBinPackingOneBinInSolution &from)
void add_item_copies(::int32_t value)
int item_indices_size() const
void clear_item_indices()
::google::protobuf::RepeatedField<::int32_t > *PROTOBUF_NONNULL mutable_item_indices()
VectorBinPackingOneBinInSolution()
bool IsInitialized() const
::google::protobuf::RepeatedField<::int32_t > *PROTOBUF_NONNULL mutable_item_copies()
const ::google::protobuf::RepeatedField<::int32_t > & item_indices() const
::int32_t item_copies(int index) const
void set_item_copies(int index, ::int32_t value)
VectorBinPackingOneBinInSolution & operator=(const VectorBinPackingOneBinInSolution &from)
int item_copies_size() const
VectorBinPackingOneBinInSolution(const VectorBinPackingOneBinInSolution &from)
::int32_t item_indices(int index) const
::size_t ByteSizeLong() const final
void Swap(VectorBinPackingProblem *PROTOBUF_NONNULL other)
::std::string *PROTOBUF_NONNULL add_resource_name()
int resource_name_size() const
::uint8_t *PROTOBUF_NONNULL _InternalSerialize(::uint8_t *PROTOBUF_NONNULL target, ::google::protobuf::io::EpsCopyOutputStream *PROTOBUF_NONNULL stream) const final
void clear_resource_capacity()
const ::std::string & resource_name(int index) const
::std::string *PROTOBUF_NONNULL mutable_resource_name(int index)
::google::protobuf::RepeatedPtrField<::operations_research::packing::vbp::Item > *PROTOBUF_NONNULL mutable_item()
VectorBinPackingProblem()
int resource_capacity_size() const
::google::protobuf::RepeatedPtrField<::std::string > *PROTOBUF_NONNULL mutable_resource_name()
const ::google::protobuf::RepeatedPtrField<::std::string > & resource_name() const
const ::std::string & name() const
void set_cost_per_bin(double value)
void set_name(Arg_ &&arg, Args_... args)
void set_allocated_name(::std::string *PROTOBUF_NULLABLE value)
void MergeFrom(const VectorBinPackingProblem &from)
const ::google::protobuf::UnknownFieldSet & unknown_fields() const ABSL_ATTRIBUTE_LIFETIME_BOUND
void CopyFrom(const VectorBinPackingProblem &from)
VectorBinPackingProblem & operator=(const VectorBinPackingProblem &from)
static const ::google::protobuf::Descriptor *PROTOBUF_NONNULL descriptor()
::operations_research::packing::vbp::Item *PROTOBUF_NONNULL add_item()
void add_resource_capacity(::int64_t value)
const ::operations_research::packing::vbp::Item & item(int index) const
friend void swap(VectorBinPackingProblem &a, VectorBinPackingProblem &b)
::int64_t resource_capacity(int index) const
static const ::google::protobuf::Descriptor *PROTOBUF_NONNULL GetDescriptor()
bool has_cost_per_bin() const
::int32_t max_bins() const
::google::protobuf::RepeatedField<::int64_t > *PROTOBUF_NONNULL mutable_resource_capacity()
::std::string *PROTOBUF_NULLABLE release_name()
double cost_per_bin() const
VectorBinPackingProblem *PROTOBUF_NONNULL New(::google::protobuf::Arena *PROTOBUF_NULLABLE arena=nullptr) const
const ::google::protobuf::RepeatedField<::int64_t > & resource_capacity() const
void clear_resource_name()
void set_max_bins(::int32_t value)
void set_resource_capacity(int index, ::int64_t value)
const ::google::protobuf::RepeatedPtrField<::operations_research::packing::vbp::Item > & item() const
::std::string *PROTOBUF_NONNULL mutable_name()
::operations_research::packing::vbp::Item *PROTOBUF_NONNULL mutable_item(int index)
bool IsInitialized() const
void clear_cost_per_bin()
void set_resource_name(int index, Arg_ &&value, Args_... args)
friend class ::google::protobuf::MessageLite
::operations_research::packing::vbp::VectorBinPackingOneBinInSolution *PROTOBUF_NONNULL mutable_bins(int index)
bool IsInitialized() const
void set_allocated_solver_info(::std::string *PROTOBUF_NULLABLE value)
::operations_research::packing::vbp::VectorBinPackingSolveStatus status() const
const ::std::string & solver_info() const
::google::protobuf::RepeatedPtrField<::operations_research::packing::vbp::VectorBinPackingOneBinInSolution > *PROTOBUF_NONNULL mutable_bins()
::uint8_t *PROTOBUF_NONNULL _InternalSerialize(::uint8_t *PROTOBUF_NONNULL target, ::google::protobuf::io::EpsCopyOutputStream *PROTOBUF_NONNULL stream) const final
static const VectorBinPackingSolution & default_instance()
friend void swap(VectorBinPackingSolution &a, VectorBinPackingSolution &b)
void set_status(::operations_research::packing::vbp::VectorBinPackingSolveStatus value)
static constexpr int kIndexInFileMessages
void clear_solve_time_in_seconds()
const ::google::protobuf::RepeatedPtrField<::operations_research::packing::vbp::VectorBinPackingOneBinInSolution > & bins() const
void set_arc_flow_time_in_seconds(double value)
double arc_flow_time_in_seconds() const
void clear_arc_flow_time_in_seconds()
const ::operations_research::packing::vbp::VectorBinPackingOneBinInSolution & bins(int index) const
const ::google::protobuf::UnknownFieldSet & unknown_fields() const ABSL_ATTRIBUTE_LIFETIME_BOUND
::std::string *PROTOBUF_NONNULL mutable_solver_info()
void set_solver_info(Arg_ &&arg, Args_... args)
static const ::google::protobuf::Descriptor *PROTOBUF_NONNULL GetDescriptor()
VectorBinPackingSolution & operator=(const VectorBinPackingSolution &from)
void CopyFrom(const VectorBinPackingSolution &from)
void set_objective_value(double value)
double objective_value() const
inline ::google::protobuf::UnknownFieldSet *PROTOBUF_NONNULL mutable_unknown_fields() ABSL_ATTRIBUTE_LIFETIME_BOUND
@ kArcFlowTimeInSecondsFieldNumber
double solve_time_in_seconds() const
void clear_objective_value()
void set_solve_time_in_seconds(double value)
::size_t ByteSizeLong() const final
::operations_research::packing::vbp::VectorBinPackingOneBinInSolution *PROTOBUF_NONNULL add_bins()
::std::string *PROTOBUF_NULLABLE release_solver_info()
void MergeFrom(const VectorBinPackingSolution &from)
VectorBinPackingSolution()
static const ::google::protobuf::Descriptor *PROTOBUF_NONNULL descriptor()
PROTOBUF_CONSTEXPR VectorBinPackingSolution(::google::protobuf::internal::ConstantInitialized)
void Swap(VectorBinPackingSolution *PROTOBUF_NONNULL other)
::absl::string_view GetAnyMessageName()
const EnumDescriptor *PROTOBUF_NONNULL GetEnumDescriptor<::operations_research::packing::vbp::VectorBinPackingSolveStatus >()
const ::google::protobuf::EnumDescriptor *PROTOBUF_NONNULL VectorBinPackingSolveStatus_descriptor()
constexpr VectorBinPackingSolveStatus VectorBinPackingSolveStatus_MAX
const ::std::string & VectorBinPackingSolveStatus_Name(T value)
bool VectorBinPackingSolveStatus_IsValid(int value)
PROTOBUF_CONSTINIT const uint32_t VectorBinPackingSolveStatus_internal_data_[]
PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 const::google::protobuf::internal::ClassDataFull VectorBinPackingSolution_class_data_
constexpr VectorBinPackingSolveStatus VectorBinPackingSolveStatus_MIN
PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 const::google::protobuf::internal::ClassDataFull Item_class_data_
PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 const::google::protobuf::internal::ClassDataFull VectorBinPackingProblem_class_data_
VectorBinPackingSolveStatus
@ VectorBinPackingSolveStatus_INT_MIN_SENTINEL_DO_NOT_USE_
@ VectorBinPackingSolveStatus_INT_MAX_SENTINEL_DO_NOT_USE_
@ VECTOR_BIN_PACKING_SOLVE_STATUS_UNSPECIFIED
bool VectorBinPackingSolveStatus_Parse(::absl::string_view name, VectorBinPackingSolveStatus *PROTOBUF_NONNULL value)
PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT OR_PROTO_DLL PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 VectorBinPackingSolutionDefaultTypeInternal _VectorBinPackingSolution_default_instance_
PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 const::google::protobuf::internal::ClassDataFull VectorBinPackingOneBinInSolution_class_data_
PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT OR_PROTO_DLL PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 ItemDefaultTypeInternal _Item_default_instance_
constexpr int VectorBinPackingSolveStatus_ARRAYSIZE
PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT OR_PROTO_DLL PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 VectorBinPackingOneBinInSolutionDefaultTypeInternal _VectorBinPackingOneBinInSolution_default_instance_
PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT OR_PROTO_DLL PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 VectorBinPackingProblemDefaultTypeInternal _VectorBinPackingProblem_default_instance_
PROTOBUF_CONSTINITconst ::_pbi::DescriptorTable descriptor_table_ortools_2fpacking_2fvector_5fbin_5fpacking_2eproto