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;
29inline constexpr CapacityConstraintProto_CapacityTerm_ElementWeightPair::Impl_::Impl_(
30 ::_pbi::ConstantInitialized) noexcept
32 element_{::int64_t{0}},
33 weight_{::int64_t{0}} {}
37#if defined(PROTOBUF_CUSTOM_VTABLE)
40 : ::google::protobuf::Message(),
42 _impl_(::_pbi::ConstantInitialized()) {
52PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT OR_PROTO_DLL
55inline constexpr CapacityConstraintProto_CapacityTerm::Impl_::Impl_(
56 ::_pbi::ConstantInitialized) noexcept
59 subset_{::int64_t{0}} {}
63#if defined(PROTOBUF_CUSTOM_VTABLE)
66 : ::google::protobuf::Message(),
68 _impl_(::_pbi::ConstantInitialized()) {
78PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT OR_PROTO_DLL
81inline constexpr CapacityConstraintProto::Impl_::Impl_(
82 ::_pbi::ConstantInitialized) noexcept
85 min_capacity_{::int64_t{0}},
86 max_capacity_{::int64_t{0}} {}
90#if defined(PROTOBUF_CUSTOM_VTABLE)
93 : ::google::protobuf::Message(),
95 _impl_(::_pbi::ConstantInitialized()) {
105PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT OR_PROTO_DLL
108static constexpr const ::_pb::EnumDescriptor* PROTOBUF_NONNULL* PROTOBUF_NULLABLE
110static constexpr const ::_pb::ServiceDescriptor* PROTOBUF_NONNULL* PROTOBUF_NULLABLE
140static const ::_pbi::MigrationSchema
153 "\n ortools/set_cover/capacity.proto\022\023oper"
154 "ations_research\"\324\002\n\027CapacityConstraintPr"
155 "oto\022P\n\rcapacity_term\030\001 \003(\01329.operations_"
156 "research.CapacityConstraintProto.Capacit"
157 "yTerm\022\024\n\014min_capacity\030\002 \001(\003\022\024\n\014max_capac"
158 "ity\030\003 \001(\003\032\272\001\n\014CapacityTerm\022\016\n\006subset\030\001 \001"
159 "(\003\022d\n\017element_weights\030\002 \003(\0132K.operations"
160 "_research.CapacityConstraintProto.Capaci"
161 "tyTerm.ElementWeightPair\0324\n\021ElementWeigh"
162 "tPair\022\017\n\007element\030\001 \001(\003\022\016\n\006weight\030\002 \001(\003B\037"
163 "\n\033com.google.ortools.setcoverP\001b\006proto3"
170 descriptor_table_protodef_ortools_2fset_5fcover_2fcapacity_2eproto,
171 "ortools/set_cover/capacity.proto",
188 decltype(::std::declval<CapacityConstraintProto_CapacityTerm_ElementWeightPair>()._impl_._has_bits_);
194#if defined(PROTOBUF_CUSTOM_VTABLE)
197 : ::google::protobuf::Message(arena) {
204#if defined(PROTOBUF_CUSTOM_VTABLE)
207 : ::google::protobuf::Message(arena),
210 _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(
211 from._internal_metadata_);
213PROTOBUF_NDEBUG_INLINE CapacityConstraintProto_CapacityTerm_ElementWeightPair::Impl_::Impl_(
214 [[maybe_unused]] ::google::protobuf::internal::InternalVisibility visibility,
215 [[maybe_unused]] ::google::protobuf::Arena* PROTOBUF_NULLABLE arena)
216 : _cached_size_{0} {}
218inline void CapacityConstraintProto_CapacityTerm_ElementWeightPair::SharedCtor(::_pb::Arena* PROTOBUF_NULLABLE arena) {
219 new (&
_impl_) Impl_(internal_visibility(), arena);
220 ::memset(
reinterpret_cast<char*
>(&
_impl_) +
221 offsetof(Impl_, element_),
223 offsetof(Impl_, weight_) -
224 offsetof(Impl_, element_) +
225 sizeof(Impl_::weight_));
231inline void CapacityConstraintProto_CapacityTerm_ElementWeightPair::SharedDtor(
MessageLite& self) {
233 if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) {
234 this_.CheckHasBitConsistency();
236 this_._internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>();
237 ABSL_DCHECK(this_.GetArena() ==
nullptr);
241inline void* PROTOBUF_NONNULL CapacityConstraintProto_CapacityTerm_ElementWeightPair::PlacementNew_(
242 const void* PROTOBUF_NONNULL,
void* PROTOBUF_NONNULL mem,
243 ::google::protobuf::Arena* PROTOBUF_NULLABLE arena) {
246constexpr auto CapacityConstraintProto_CapacityTerm_ElementWeightPair::InternalNewImpl_() {
251 return ::google::protobuf::internal::ClassDataFull{
252 ::google::protobuf::internal::ClassData{
257 &CapacityConstraintProto_CapacityTerm_ElementWeightPair::MergeImpl,
258 ::google::protobuf::Message::GetNewImpl<CapacityConstraintProto_CapacityTerm_ElementWeightPair>(),
259#if defined(PROTOBUF_CUSTOM_VTABLE)
260 &CapacityConstraintProto_CapacityTerm_ElementWeightPair::SharedDtor,
267 &CapacityConstraintProto_CapacityTerm_ElementWeightPair::kDescriptorMethods,
273PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 const
277PROTOBUF_ATTRIBUTE_WEAK const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL
278CapacityConstraintProto_CapacityTerm_ElementWeightPair::GetClassData()
const {
283PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1
284const ::_pbi::TcParseTable<1, 2, 0, 0, 2>
285CapacityConstraintProto_CapacityTerm_ElementWeightPair::_table_ = {
290 offsetof(
decltype(_table_), field_lookup_table),
292 offsetof(
decltype(_table_), field_entries),
295 offsetof(
decltype(_table_), field_names),
298 ::_pbi::TcParser::GenericFallback,
299 #ifdef PROTOBUF_PREFETCH_PARSE_TABLE
300 ::_pbi::TcParser::GetTable<::operations_research::CapacityConstraintProto_CapacityTerm_ElementWeightPair>(),
325 ::google::protobuf::internal::TSanWrite(&
_impl_);
326 ::uint32_t cached_has_bits = 0;
328 (void) cached_has_bits;
330 cached_has_bits =
_impl_._has_bits_[0];
331 if (BatchCheckHasBit(cached_has_bits, 0x00000003U)) {
332 ::memset(&
_impl_.element_, 0,
static_cast<::
size_t>(
333 reinterpret_cast<char*
>(&
_impl_.weight_) -
334 reinterpret_cast<char*
>(&
_impl_.element_)) +
sizeof(
_impl_.weight_));
336 _impl_._has_bits_.Clear();
337 _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>();
340#if defined(PROTOBUF_CUSTOM_VTABLE)
342 const ::google::protobuf::MessageLite& base, ::uint8_t* PROTOBUF_NONNULL target,
343 ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) {
347 ::uint8_t* PROTOBUF_NONNULL target,
348 ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream)
const {
351 if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) {
352 this_.CheckHasBitConsistency();
355 ::uint32_t cached_has_bits = 0;
356 (void)cached_has_bits;
358 cached_has_bits = this_.
_impl_._has_bits_[0];
360 if (CheckHasBit(cached_has_bits, 0x00000001U)) {
361 if (this_._internal_element() != 0) {
363 ::google::protobuf::internal::WireFormatLite::WriteInt64ToArrayWithField<1>(
364 stream, this_._internal_element(), target);
369 if (CheckHasBit(cached_has_bits, 0x00000002U)) {
370 if (this_._internal_weight() != 0) {
372 ::google::protobuf::internal::WireFormatLite::WriteInt64ToArrayWithField<2>(
373 stream, this_._internal_weight(), target);
377 if (ABSL_PREDICT_FALSE(this_._internal_metadata_.have_unknown_fields())) {
379 ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray(
380 this_._internal_metadata_.
unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream);
386#if defined(PROTOBUF_CUSTOM_VTABLE)
394 ::size_t total_size = 0;
396 ::uint32_t cached_has_bits = 0;
398 (void)cached_has_bits;
400 ::_pbi::Prefetch5LinesFrom7Lines(&this_);
401 cached_has_bits = this_.
_impl_._has_bits_[0];
402 if (BatchCheckHasBit(cached_has_bits, 0x00000003U)) {
404 if (CheckHasBit(cached_has_bits, 0x00000001U)) {
405 if (this_._internal_element() != 0) {
406 total_size += ::_pbi::WireFormatLite::Int64SizePlusOne(
407 this_._internal_element());
411 if (CheckHasBit(cached_has_bits, 0x00000002U)) {
412 if (this_._internal_weight() != 0) {
413 total_size += ::_pbi::WireFormatLite::Int64SizePlusOne(
414 this_._internal_weight());
418 return this_.MaybeComputeUnknownFieldsSize(total_size,
419 &this_.
_impl_._cached_size_);
422void CapacityConstraintProto_CapacityTerm_ElementWeightPair::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 (BatchCheckHasBit(cached_has_bits, 0x00000003U)) {
437 if (CheckHasBit(cached_has_bits, 0x00000001U)) {
438 if (from._internal_element() != 0) {
439 _this->_impl_.element_ = from.
_impl_.element_;
442 if (CheckHasBit(cached_has_bits, 0x00000002U)) {
443 if (from._internal_weight() != 0) {
444 _this->_impl_.weight_ = from.
_impl_.weight_;
448 _this->_impl_._has_bits_[0] |= cached_has_bits;
449 _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(
450 from._internal_metadata_);
455 if (&from ==
this)
return;
463 _internal_metadata_.InternalSwap(&other->_internal_metadata_);
464 swap(
_impl_._has_bits_[0], other->_impl_._has_bits_[0]);
465 ::google::protobuf::internal::memswap<
469 reinterpret_cast<char*
>(&
_impl_.element_),
470 reinterpret_cast<char*
>(&other->_impl_.element_));
474 return ::google::protobuf::Message::GetMetadataImpl(GetClassData()->full());
481 decltype(::std::declval<CapacityConstraintProto_CapacityTerm>()._impl_._has_bits_);
487#if defined(PROTOBUF_CUSTOM_VTABLE)
490 : ::google::protobuf::Message(arena) {
495PROTOBUF_NDEBUG_INLINE CapacityConstraintProto_CapacityTerm::Impl_::Impl_(
496 [[maybe_unused]] ::google::protobuf::internal::InternalVisibility visibility,
497 [[maybe_unused]] ::google::protobuf::Arena* PROTOBUF_NULLABLE arena,
const Impl_& from,
498 [[maybe_unused]] const ::operations_research::CapacityConstraintProto_CapacityTerm& from_msg)
499 : _has_bits_{from._has_bits_},
501 element_weights_{visibility, arena, from.element_weights_} {}
504 ::google::protobuf::Arena* PROTOBUF_NULLABLE arena,
506#if defined(PROTOBUF_CUSTOM_VTABLE)
509 : ::google::protobuf::Message(arena) {
513 _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(
514 from._internal_metadata_);
515 new (&
_impl_) Impl_(internal_visibility(), arena, from._impl_, from);
516 _impl_.subset_ = from._impl_.subset_;
520PROTOBUF_NDEBUG_INLINE CapacityConstraintProto_CapacityTerm::Impl_::Impl_(
521 [[maybe_unused]] ::google::protobuf::internal::InternalVisibility visibility,
522 [[maybe_unused]] ::google::protobuf::Arena* PROTOBUF_NULLABLE arena)
524 element_weights_{visibility, arena} {}
526inline void CapacityConstraintProto_CapacityTerm::SharedCtor(::_pb::Arena* PROTOBUF_NULLABLE arena) {
527 new (&
_impl_) Impl_(internal_visibility(), arena);
534inline void CapacityConstraintProto_CapacityTerm::SharedDtor(
MessageLite& self) {
536 if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) {
537 this_.CheckHasBitConsistency();
539 this_._internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>();
540 ABSL_DCHECK(this_.GetArena() ==
nullptr);
544inline void* PROTOBUF_NONNULL CapacityConstraintProto_CapacityTerm::PlacementNew_(
545 const void* PROTOBUF_NONNULL,
void* PROTOBUF_NONNULL mem,
546 ::google::protobuf::Arena* PROTOBUF_NULLABLE arena) {
549constexpr auto CapacityConstraintProto_CapacityTerm::InternalNewImpl_() {
550 constexpr auto arena_bits = ::google::protobuf::internal::EncodePlacementArenaOffsets({
553 InternalGetArenaOffset(
554 ::google::protobuf::Message::internal_visibility()),
556 if (arena_bits.has_value()) {
557 return ::google::protobuf::internal::MessageCreator::ZeroInit(
558 sizeof(CapacityConstraintProto_CapacityTerm), alignof(CapacityConstraintProto_CapacityTerm), *arena_bits);
560 return ::google::protobuf::internal::MessageCreator(&CapacityConstraintProto_CapacityTerm::PlacementNew_,
561 sizeof(CapacityConstraintProto_CapacityTerm),
562 alignof(CapacityConstraintProto_CapacityTerm));
566 return ::google::protobuf::internal::ClassDataFull{
567 ::google::protobuf::internal::ClassData{
572 &CapacityConstraintProto_CapacityTerm::MergeImpl,
573 ::google::protobuf::Message::GetNewImpl<CapacityConstraintProto_CapacityTerm>(),
574#if defined(PROTOBUF_CUSTOM_VTABLE)
575 &CapacityConstraintProto_CapacityTerm::SharedDtor,
582 &CapacityConstraintProto_CapacityTerm::kDescriptorMethods,
588PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 const
592PROTOBUF_ATTRIBUTE_WEAK const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL
593CapacityConstraintProto_CapacityTerm::GetClassData()
const {
598PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1
599const ::_pbi::TcParseTable<1, 2, 1, 0, 2>
600CapacityConstraintProto_CapacityTerm::_table_ = {
605 offsetof(
decltype(_table_), field_lookup_table),
607 offsetof(
decltype(_table_), field_entries),
610 offsetof(
decltype(_table_), aux_entries),
613 ::_pbi::TcParser::GenericFallback,
614 #ifdef PROTOBUF_PREFETCH_PARSE_TABLE
615 ::_pbi::TcParser::GetTable<::operations_research::CapacityConstraintProto_CapacityTerm>(),
619 {::_pbi::TcParser::FastMtR1,
635 {::_pbi::TcParser::GetTable<::operations_research::CapacityConstraintProto_CapacityTerm_ElementWeightPair>()},
642 ::google::protobuf::internal::TSanWrite(&
_impl_);
643 ::uint32_t cached_has_bits = 0;
645 (void) cached_has_bits;
647 cached_has_bits =
_impl_._has_bits_[0];
648 if (CheckHasBitForRepeated(cached_has_bits, 0x00000001U)) {
649 _impl_.element_weights_.Clear();
651 _impl_.subset_ = ::int64_t{0};
652 _impl_._has_bits_.Clear();
653 _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>();
656#if defined(PROTOBUF_CUSTOM_VTABLE)
658 const ::google::protobuf::MessageLite& base, ::uint8_t* PROTOBUF_NONNULL target,
659 ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) {
663 ::uint8_t* PROTOBUF_NONNULL target,
664 ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream)
const {
667 if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) {
668 this_.CheckHasBitConsistency();
671 ::uint32_t cached_has_bits = 0;
672 (void)cached_has_bits;
674 cached_has_bits = this_.
_impl_._has_bits_[0];
676 if (CheckHasBit(cached_has_bits, 0x00000002U)) {
677 if (this_._internal_subset() != 0) {
679 ::google::protobuf::internal::WireFormatLite::WriteInt64ToArrayWithField<1>(
680 stream, this_._internal_subset(), target);
685 if (CheckHasBitForRepeated(cached_has_bits, 0x00000001U)) {
686 for (
unsigned i = 0, n =
static_cast<unsigned>(
687 this_._internal_element_weights_size());
689 const auto& repfield = this_._internal_element_weights().Get(i);
691 ::google::protobuf::internal::WireFormatLite::InternalWriteMessage(
692 2, repfield, repfield.GetCachedSize(),
697 if (ABSL_PREDICT_FALSE(this_._internal_metadata_.have_unknown_fields())) {
699 ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray(
700 this_._internal_metadata_.
unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream);
706#if defined(PROTOBUF_CUSTOM_VTABLE)
714 ::size_t total_size = 0;
716 ::uint32_t cached_has_bits = 0;
718 (void)cached_has_bits;
720 ::_pbi::Prefetch5LinesFrom7Lines(&this_);
721 cached_has_bits = this_.
_impl_._has_bits_[0];
722 if (BatchCheckHasBit(cached_has_bits, 0x00000003U)) {
724 if (CheckHasBitForRepeated(cached_has_bits, 0x00000001U)) {
725 total_size += 1UL * this_._internal_element_weights_size();
726 for (
const auto& msg : this_._internal_element_weights()) {
727 total_size += ::google::protobuf::internal::WireFormatLite::MessageSize(msg);
731 if (CheckHasBit(cached_has_bits, 0x00000002U)) {
732 if (this_._internal_subset() != 0) {
733 total_size += ::_pbi::WireFormatLite::Int64SizePlusOne(
734 this_._internal_subset());
738 return this_.MaybeComputeUnknownFieldsSize(total_size,
739 &this_.
_impl_._cached_size_);
742void CapacityConstraintProto_CapacityTerm::MergeImpl(::google::protobuf::MessageLite& to_msg,
743 const ::google::protobuf::MessageLite& from_msg) {
747 if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) {
748 from.CheckHasBitConsistency();
752 ABSL_DCHECK_NE(&from, _this);
753 ::uint32_t cached_has_bits = 0;
754 (void)cached_has_bits;
756 cached_has_bits = from._impl_._has_bits_[0];
757 if (BatchCheckHasBit(cached_has_bits, 0x00000003U)) {
758 if (CheckHasBitForRepeated(cached_has_bits, 0x00000001U)) {
759 _this->_internal_mutable_element_weights()->InternalMergeFromWithArena(
760 ::google::protobuf::MessageLite::internal_visibility(), arena,
761 from._internal_element_weights());
763 if (CheckHasBit(cached_has_bits, 0x00000002U)) {
764 if (from._internal_subset() != 0) {
765 _this->_impl_.subset_ = from._impl_.subset_;
769 _this->_impl_._has_bits_[0] |= cached_has_bits;
770 _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(
771 from._internal_metadata_);
776 if (&from ==
this)
return;
784 _internal_metadata_.InternalSwap(&other->_internal_metadata_);
785 swap(
_impl_._has_bits_[0], other->_impl_._has_bits_[0]);
786 _impl_.element_weights_.InternalSwap(&other->_impl_.element_weights_);
791 return ::google::protobuf::Message::GetMetadataImpl(GetClassData()->full());
798 decltype(::std::declval<CapacityConstraintProto>()._impl_._has_bits_);
804#if defined(PROTOBUF_CUSTOM_VTABLE)
807 : ::google::protobuf::Message(arena) {
812PROTOBUF_NDEBUG_INLINE CapacityConstraintProto::Impl_::Impl_(
813 [[maybe_unused]] ::google::protobuf::internal::InternalVisibility visibility,
814 [[maybe_unused]] ::google::protobuf::Arena* PROTOBUF_NULLABLE arena,
const Impl_& from,
815 [[maybe_unused]] const ::operations_research::CapacityConstraintProto& from_msg)
816 : _has_bits_{from._has_bits_},
818 capacity_term_{visibility, arena, from.capacity_term_} {}
821 ::google::protobuf::Arena* PROTOBUF_NULLABLE arena,
823#if defined(PROTOBUF_CUSTOM_VTABLE)
826 : ::google::protobuf::Message(arena) {
830 _internal_metadata_.
MergeFrom<::google::protobuf::UnknownFieldSet>(
831 from._internal_metadata_);
832 new (&
_impl_) Impl_(internal_visibility(), arena, from._impl_, from);
833 ::memcpy(
reinterpret_cast<char*
>(&
_impl_) +
834 offsetof(Impl_, min_capacity_),
835 reinterpret_cast<const char*
>(&from._impl_) +
836 offsetof(Impl_, min_capacity_),
837 offsetof(Impl_, max_capacity_) -
838 offsetof(Impl_, min_capacity_) +
839 sizeof(Impl_::max_capacity_));
843PROTOBUF_NDEBUG_INLINE CapacityConstraintProto::Impl_::Impl_(
844 [[maybe_unused]] ::google::protobuf::internal::InternalVisibility visibility,
845 [[maybe_unused]] ::google::protobuf::Arena* PROTOBUF_NULLABLE arena)
847 capacity_term_{visibility, arena} {}
849inline void CapacityConstraintProto::SharedCtor(::_pb::Arena* PROTOBUF_NULLABLE arena) {
850 new (&
_impl_) Impl_(internal_visibility(), arena);
851 ::memset(
reinterpret_cast<char*
>(&
_impl_) +
852 offsetof(Impl_, min_capacity_),
854 offsetof(Impl_, max_capacity_) -
855 offsetof(Impl_, min_capacity_) +
856 sizeof(Impl_::max_capacity_));
862inline void CapacityConstraintProto::SharedDtor(
MessageLite& self) {
864 if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) {
865 this_.CheckHasBitConsistency();
867 this_._internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>();
868 ABSL_DCHECK(this_.GetArena() ==
nullptr);
872inline void* PROTOBUF_NONNULL CapacityConstraintProto::PlacementNew_(
873 const void* PROTOBUF_NONNULL,
void* PROTOBUF_NONNULL mem,
874 ::google::protobuf::Arena* PROTOBUF_NULLABLE arena) {
875 return ::new (mem) CapacityConstraintProto(arena);
877constexpr auto CapacityConstraintProto::InternalNewImpl_() {
878 constexpr auto arena_bits = ::google::protobuf::internal::EncodePlacementArenaOffsets({
879 PROTOBUF_FIELD_OFFSET(CapacityConstraintProto,
_impl_.capacity_term_) +
881 InternalGetArenaOffset(
882 ::google::protobuf::Message::internal_visibility()),
884 if (arena_bits.has_value()) {
885 return ::google::protobuf::internal::MessageCreator::ZeroInit(
886 sizeof(CapacityConstraintProto), alignof(CapacityConstraintProto), *arena_bits);
888 return ::google::protobuf::internal::MessageCreator(&CapacityConstraintProto::PlacementNew_,
889 sizeof(CapacityConstraintProto),
890 alignof(CapacityConstraintProto));
894 return ::google::protobuf::internal::ClassDataFull{
895 ::google::protobuf::internal::ClassData{
900 &CapacityConstraintProto::MergeImpl,
901 ::google::protobuf::Message::GetNewImpl<CapacityConstraintProto>(),
902#if defined(PROTOBUF_CUSTOM_VTABLE)
903 &CapacityConstraintProto::SharedDtor,
910 &CapacityConstraintProto::kDescriptorMethods,
916PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 const
920PROTOBUF_ATTRIBUTE_WEAK const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL
921CapacityConstraintProto::GetClassData()
const {
926PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1
927const ::_pbi::TcParseTable<2, 3, 1, 0, 2>
928CapacityConstraintProto::_table_ = {
930 PROTOBUF_FIELD_OFFSET(CapacityConstraintProto,
_impl_._has_bits_),
933 offsetof(
decltype(_table_), field_lookup_table),
935 offsetof(
decltype(_table_), field_entries),
938 offsetof(
decltype(_table_), aux_entries),
941 ::_pbi::TcParser::GenericFallback,
942 #ifdef PROTOBUF_PREFETCH_PARSE_TABLE
943 ::_pbi::TcParser::GetTable<::operations_research::CapacityConstraintProto>(),
946 {::_pbi::TcParser::MiniParse, {}},
948 {::_pbi::TcParser::FastMtR1,
950 PROTOBUF_FIELD_OFFSET(CapacityConstraintProto,
_impl_.capacity_term_)}},
952 {::_pbi::TcParser::SingularVarintNoZag1<::uint64_t, offsetof(CapacityConstraintProto,
_impl_.min_capacity_), 1>(),
954 PROTOBUF_FIELD_OFFSET(CapacityConstraintProto,
_impl_.min_capacity_)}},
956 {::_pbi::TcParser::SingularVarintNoZag1<::uint64_t, offsetof(CapacityConstraintProto,
_impl_.max_capacity_), 2>(),
958 PROTOBUF_FIELD_OFFSET(CapacityConstraintProto,
_impl_.max_capacity_)}},
963 {PROTOBUF_FIELD_OFFSET(CapacityConstraintProto,
_impl_.capacity_term_),
_Internal::kHasBitsOffset + 0, 0, (0 | ::_fl::kFcRepeated | ::_fl::kMessage | ::_fl::kTvTable)},
970 {::_pbi::TcParser::GetTable<::operations_research::CapacityConstraintProto_CapacityTerm>()},
977 ::google::protobuf::internal::TSanWrite(&
_impl_);
978 ::uint32_t cached_has_bits = 0;
980 (void) cached_has_bits;
982 cached_has_bits =
_impl_._has_bits_[0];
983 if (CheckHasBitForRepeated(cached_has_bits, 0x00000001U)) {
984 _impl_.capacity_term_.Clear();
986 if (BatchCheckHasBit(cached_has_bits, 0x00000006U)) {
987 ::memset(&
_impl_.min_capacity_, 0,
static_cast<::
size_t>(
988 reinterpret_cast<char*
>(&
_impl_.max_capacity_) -
989 reinterpret_cast<char*
>(&
_impl_.min_capacity_)) +
sizeof(
_impl_.max_capacity_));
991 _impl_._has_bits_.Clear();
992 _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>();
995#if defined(PROTOBUF_CUSTOM_VTABLE)
997 const ::google::protobuf::MessageLite& base, ::uint8_t* PROTOBUF_NONNULL target,
998 ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) {
999 const CapacityConstraintProto& this_ =
static_cast<const CapacityConstraintProto&
>(base);
1002 ::uint8_t* PROTOBUF_NONNULL target,
1003 ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream)
const {
1006 if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) {
1007 this_.CheckHasBitConsistency();
1010 ::uint32_t cached_has_bits = 0;
1011 (void)cached_has_bits;
1013 cached_has_bits = this_.
_impl_._has_bits_[0];
1015 if (CheckHasBitForRepeated(cached_has_bits, 0x00000001U)) {
1016 for (
unsigned i = 0, n =
static_cast<unsigned>(
1017 this_._internal_capacity_term_size());
1019 const auto& repfield = this_._internal_capacity_term().Get(i);
1021 ::google::protobuf::internal::WireFormatLite::InternalWriteMessage(
1022 1, repfield, repfield.GetCachedSize(),
1028 if (CheckHasBit(cached_has_bits, 0x00000002U)) {
1029 if (this_._internal_min_capacity() != 0) {
1031 ::google::protobuf::internal::WireFormatLite::WriteInt64ToArrayWithField<2>(
1032 stream, this_._internal_min_capacity(), target);
1037 if (CheckHasBit(cached_has_bits, 0x00000004U)) {
1038 if (this_._internal_max_capacity() != 0) {
1040 ::google::protobuf::internal::WireFormatLite::WriteInt64ToArrayWithField<3>(
1041 stream, this_._internal_max_capacity(), target);
1045 if (ABSL_PREDICT_FALSE(this_._internal_metadata_.have_unknown_fields())) {
1047 ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray(
1048 this_._internal_metadata_.
unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream);
1054#if defined(PROTOBUF_CUSTOM_VTABLE)
1056 const CapacityConstraintProto& this_ =
static_cast<const CapacityConstraintProto&
>(base);
1059 const CapacityConstraintProto& this_ = *
this;
1062 ::size_t total_size = 0;
1064 ::uint32_t cached_has_bits = 0;
1066 (void)cached_has_bits;
1068 ::_pbi::Prefetch5LinesFrom7Lines(&this_);
1069 cached_has_bits = this_._impl_._has_bits_[0];
1070 if (BatchCheckHasBit(cached_has_bits, 0x00000007U)) {
1072 if (CheckHasBitForRepeated(cached_has_bits, 0x00000001U)) {
1073 total_size += 1UL * this_._internal_capacity_term_size();
1074 for (
const auto& msg : this_._internal_capacity_term()) {
1075 total_size += ::google::protobuf::internal::WireFormatLite::MessageSize(msg);
1079 if (CheckHasBit(cached_has_bits, 0x00000002U)) {
1080 if (this_._internal_min_capacity() != 0) {
1081 total_size += ::_pbi::WireFormatLite::Int64SizePlusOne(
1082 this_._internal_min_capacity());
1086 if (CheckHasBit(cached_has_bits, 0x00000004U)) {
1087 if (this_._internal_max_capacity() != 0) {
1088 total_size += ::_pbi::WireFormatLite::Int64SizePlusOne(
1089 this_._internal_max_capacity());
1093 return this_.MaybeComputeUnknownFieldsSize(total_size,
1094 &this_._impl_._cached_size_);
1097void CapacityConstraintProto::MergeImpl(::google::protobuf::MessageLite& to_msg,
1098 const ::google::protobuf::MessageLite& from_msg) {
1100 static_cast<CapacityConstraintProto*
>(&to_msg);
1101 auto& from =
static_cast<const CapacityConstraintProto&
>(from_msg);
1102 if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) {
1103 from.CheckHasBitConsistency();
1107 ABSL_DCHECK_NE(&from, _this);
1108 ::uint32_t cached_has_bits = 0;
1109 (void)cached_has_bits;
1111 cached_has_bits = from._impl_._has_bits_[0];
1112 if (BatchCheckHasBit(cached_has_bits, 0x00000007U)) {
1113 if (CheckHasBitForRepeated(cached_has_bits, 0x00000001U)) {
1114 _this->_internal_mutable_capacity_term()->InternalMergeFromWithArena(
1115 ::google::protobuf::MessageLite::internal_visibility(), arena,
1116 from._internal_capacity_term());
1118 if (CheckHasBit(cached_has_bits, 0x00000002U)) {
1119 if (from._internal_min_capacity() != 0) {
1120 _this->_impl_.min_capacity_ = from._impl_.min_capacity_;
1123 if (CheckHasBit(cached_has_bits, 0x00000004U)) {
1124 if (from._internal_max_capacity() != 0) {
1125 _this->_impl_.max_capacity_ = from._impl_.max_capacity_;
1129 _this->_impl_._has_bits_[0] |= cached_has_bits;
1130 _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(
1131 from._internal_metadata_);
1136 if (&from ==
this)
return;
1142void CapacityConstraintProto::InternalSwap(
CapacityConstraintProto* PROTOBUF_RESTRICT PROTOBUF_NONNULL other) {
1144 _internal_metadata_.InternalSwap(&other->_internal_metadata_);
1145 swap(
_impl_._has_bits_[0], other->_impl_._has_bits_[0]);
1146 _impl_.capacity_term_.InternalSwap(&other->_impl_.capacity_term_);
1147 ::google::protobuf::internal::memswap<
1151 reinterpret_cast<char*
>(&
_impl_.min_capacity_),
1152 reinterpret_cast<char*
>(&other->_impl_.min_capacity_));
1156 return ::google::protobuf::Message::GetMetadataImpl(GetClassData()->full());
1165PROTOBUF_ATTRIBUTE_INIT_PRIORITY2 static ::std::false_type
1168 ::std::false_type{});
1169#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 constexprconst ::_pb::ServiceDescriptor *PROTOBUF_NONNULL *PROTOBUF_NULLABLE file_level_service_descriptors_ortools_2fset_5fcover_2fcapacity_2eproto
PROTOBUF_CONSTINITconst ::_pbi::DescriptorTable descriptor_table_ortools_2fset_5fcover_2fcapacity_2eproto
const ::uint32_t TableStruct_ortools_2fset_5fcover_2fcapacity_2eproto::offsets[] ABSL_ATTRIBUTE_SECTION_VARIABLE(protodesc_cold)
static constexprconst ::_pb::EnumDescriptor *PROTOBUF_NONNULL *PROTOBUF_NULLABLE file_level_enum_descriptors_ortools_2fset_5fcover_2fcapacity_2eproto
::absl::once_flag descriptor_table_ortools_2fset_5fcover_2fcapacity_2eproto_once
static constexpr ::int32_t kHasBitsOffset
decltype(::std::declval< CapacityConstraintProto_CapacityTerm >()._impl_._has_bits_) HasBits
static constexpr ::int32_t kHasBitsOffset
static constexpr ::int32_t kHasBitsOffset
decltype(::std::declval< CapacityConstraintProto_CapacityTerm_ElementWeightPair >()._impl_._has_bits_) HasBits
friend class ::google::protobuf::MessageLite
const ::google::protobuf::UnknownFieldSet & unknown_fields() const ABSL_ATTRIBUTE_LIFETIME_BOUND
void MergeFrom(const CapacityConstraintProto_CapacityTerm_ElementWeightPair &from)
static constexpr auto InternalGenerateClassData_()
::size_t ByteSizeLong() const final
void CopyFrom(const CapacityConstraintProto_CapacityTerm_ElementWeightPair &from)
~CapacityConstraintProto_CapacityTerm_ElementWeightPair() PROTOBUF_FINAL
ABSL_ATTRIBUTE_REINITIALIZES void Clear() PROTOBUF_FINAL
::uint8_t *PROTOBUF_NONNULL _InternalSerialize(::uint8_t *PROTOBUF_NONNULL target, ::google::protobuf::io::EpsCopyOutputStream *PROTOBUF_NONNULL stream) const final
CapacityConstraintProto_CapacityTerm_ElementWeightPair()
::google::protobuf::Metadata GetMetadata() const
friend void swap(CapacityConstraintProto_CapacityTerm_ElementWeightPair &a, CapacityConstraintProto_CapacityTerm_ElementWeightPair &b)
friend class ::google::protobuf::MessageLite
CapacityConstraintProto_CapacityTerm()
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 CapacityConstraintProto_CapacityTerm &from)
void CopyFrom(const CapacityConstraintProto_CapacityTerm &from)
friend void swap(CapacityConstraintProto_CapacityTerm &a, CapacityConstraintProto_CapacityTerm &b)
static constexpr auto InternalGenerateClassData_()
::uint8_t *PROTOBUF_NONNULL _InternalSerialize(::uint8_t *PROTOBUF_NONNULL target, ::google::protobuf::io::EpsCopyOutputStream *PROTOBUF_NONNULL stream) const final
::size_t ByteSizeLong() const final
friend class ::google::protobuf::Arena
~CapacityConstraintProto_CapacityTerm() PROTOBUF_FINAL
::uint8_t *PROTOBUF_NONNULL _InternalSerialize(::uint8_t *PROTOBUF_NONNULL target, ::google::protobuf::io::EpsCopyOutputStream *PROTOBUF_NONNULL stream) const final
CapacityConstraintProto()
const ::google::protobuf::UnknownFieldSet & unknown_fields() const ABSL_ATTRIBUTE_LIFETIME_BOUND
::size_t ByteSizeLong() const final
::google::protobuf::Metadata GetMetadata() const
static constexpr auto InternalGenerateClassData_()
~CapacityConstraintProto() PROTOBUF_FINAL
void MergeFrom(const CapacityConstraintProto &from)
void CopyFrom(const CapacityConstraintProto &from)
ABSL_ATTRIBUTE_REINITIALIZES void Clear() PROTOBUF_FINAL
static constexpr ::_pbi::MigrationSchema *PROTOBUF_NULLABLE schemas
PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT OR_PROTO_DLL PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 CapacityConstraintProto_CapacityTermDefaultTypeInternal _CapacityConstraintProto_CapacityTerm_default_instance_
PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT OR_PROTO_DLL PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 CapacityConstraintProtoDefaultTypeInternal _CapacityConstraintProto_default_instance_
PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 const::google::protobuf::internal::ClassDataFull CapacityConstraintProto_class_data_
PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 const::google::protobuf::internal::ClassDataFull CapacityConstraintProto_CapacityTerm_class_data_
PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 const::google::protobuf::internal::ClassDataFull CapacityConstraintProto_CapacityTerm_ElementWeightPair_class_data_
PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT OR_PROTO_DLL PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 CapacityConstraintProto_CapacityTerm_ElementWeightPairDefaultTypeInternal _CapacityConstraintProto_CapacityTerm_ElementWeightPair_default_instance_
PROTOBUF_CONSTEXPR CapacityConstraintProtoDefaultTypeInternal()
CapacityConstraintProto _instance
~CapacityConstraintProtoDefaultTypeInternal()
~CapacityConstraintProto_CapacityTermDefaultTypeInternal()
PROTOBUF_CONSTEXPR CapacityConstraintProto_CapacityTermDefaultTypeInternal()
CapacityConstraintProto_CapacityTerm _instance
CapacityConstraintProto_CapacityTerm_ElementWeightPair _instance
~CapacityConstraintProto_CapacityTerm_ElementWeightPairDefaultTypeInternal()
PROTOBUF_CONSTEXPR CapacityConstraintProto_CapacityTerm_ElementWeightPairDefaultTypeInternal()