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 ::google::protobuf::internal::InternalVisibility visibility,
215 ::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 this_._internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>();
234 ABSL_DCHECK(this_.GetArena() ==
nullptr);
239 const void* PROTOBUF_NONNULL,
void* PROTOBUF_NONNULL mem,
240 ::google::protobuf::Arena* PROTOBUF_NULLABLE arena) {
248 return ::google::protobuf::internal::ClassDataFull{
249 ::google::protobuf::internal::ClassData{
254 &CapacityConstraintProto_CapacityTerm_ElementWeightPair::MergeImpl,
255 ::google::protobuf::Message::GetNewImpl<CapacityConstraintProto_CapacityTerm_ElementWeightPair>(),
256#if defined(PROTOBUF_CUSTOM_VTABLE)
257 &CapacityConstraintProto_CapacityTerm_ElementWeightPair::SharedDtor,
264 &CapacityConstraintProto_CapacityTerm_ElementWeightPair::kDescriptorMethods,
270PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 const
274PROTOBUF_ATTRIBUTE_WEAK const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL
280PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1
281const ::_pbi::TcParseTable<1, 2, 0, 0, 2>
282CapacityConstraintProto_CapacityTerm_ElementWeightPair::_table_ = {
287 offsetof(
decltype(_table_), field_lookup_table),
289 offsetof(
decltype(_table_), field_entries),
292 offsetof(
decltype(_table_), field_names),
295 ::_pbi::TcParser::GenericFallback,
296 #ifdef PROTOBUF_PREFETCH_PARSE_TABLE
297 ::_pbi::TcParser::GetTable<::operations_research::CapacityConstraintProto_CapacityTerm_ElementWeightPair>(),
301 {::_pbi::TcParser::SingularVarintNoZag1<::uint64_t, offsetof(CapacityConstraintProto_CapacityTerm_ElementWeightPair, _impl_.weight_), 1>(),
302 {16, 1, 0, PROTOBUF_FIELD_OFFSET(CapacityConstraintProto_CapacityTerm_ElementWeightPair, _impl_.weight_)}},
311 (0 | ::_fl::kFcOptional | ::_fl::kInt64)},
314 (0 | ::_fl::kFcOptional | ::_fl::kInt64)},
322 ::google::protobuf::internal::TSanWrite(&
_impl_);
323 ::uint32_t cached_has_bits = 0;
325 (void) cached_has_bits;
327 cached_has_bits =
_impl_._has_bits_[0];
328 if ((cached_has_bits & 0x00000003u) != 0) {
329 ::memset(&
_impl_.element_, 0,
static_cast<::
size_t>(
330 reinterpret_cast<char*
>(&
_impl_.weight_) -
331 reinterpret_cast<char*
>(&
_impl_.element_)) +
sizeof(
_impl_.weight_));
333 _impl_._has_bits_.Clear();
334 _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>();
337#if defined(PROTOBUF_CUSTOM_VTABLE)
339 const ::google::protobuf::MessageLite& base, ::uint8_t* PROTOBUF_NONNULL target,
340 ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) {
344 ::uint8_t* PROTOBUF_NONNULL target,
345 ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream)
const {
349 ::uint32_t cached_has_bits = 0;
350 (void)cached_has_bits;
353 if ((this_.
_impl_._has_bits_[0] & 0x00000001u) != 0) {
354 if (this_._internal_element() != 0) {
356 ::google::protobuf::internal::WireFormatLite::WriteInt64ToArrayWithField<1>(
357 stream, this_._internal_element(), target);
362 if ((this_.
_impl_._has_bits_[0] & 0x00000002u) != 0) {
363 if (this_._internal_weight() != 0) {
365 ::google::protobuf::internal::WireFormatLite::WriteInt64ToArrayWithField<2>(
366 stream, this_._internal_weight(), target);
370 if (ABSL_PREDICT_FALSE(this_._internal_metadata_.have_unknown_fields())) {
372 ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray(
373 this_._internal_metadata_.
unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream);
379#if defined(PROTOBUF_CUSTOM_VTABLE)
387 ::size_t total_size = 0;
389 ::uint32_t cached_has_bits = 0;
391 (void)cached_has_bits;
393 ::_pbi::Prefetch5LinesFrom7Lines(&this_);
394 cached_has_bits = this_.
_impl_._has_bits_[0];
395 if ((cached_has_bits & 0x00000003u) != 0) {
397 if ((cached_has_bits & 0x00000001u) != 0) {
398 if (this_._internal_element() != 0) {
399 total_size += ::_pbi::WireFormatLite::Int64SizePlusOne(
400 this_._internal_element());
404 if ((cached_has_bits & 0x00000002u) != 0) {
405 if (this_._internal_weight() != 0) {
406 total_size += ::_pbi::WireFormatLite::Int64SizePlusOne(
407 this_._internal_weight());
411 return this_.MaybeComputeUnknownFieldsSize(total_size,
412 &this_.
_impl_._cached_size_);
415void CapacityConstraintProto_CapacityTerm_ElementWeightPair::MergeImpl(::google::protobuf::MessageLite& to_msg, const ::google::protobuf::MessageLite& from_msg) {
419 ABSL_DCHECK_NE(&from, _this);
420 ::uint32_t cached_has_bits = 0;
421 (void) cached_has_bits;
423 cached_has_bits = from.
_impl_._has_bits_[0];
424 if ((cached_has_bits & 0x00000003u) != 0) {
425 if ((cached_has_bits & 0x00000001u) != 0) {
426 if (from._internal_element() != 0) {
427 _this->_impl_.element_ = from.
_impl_.element_;
430 if ((cached_has_bits & 0x00000002u) != 0) {
431 if (from._internal_weight() != 0) {
432 _this->_impl_.weight_ = from.
_impl_.weight_;
436 _this->_impl_._has_bits_[0] |= cached_has_bits;
437 _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_);
442 if (&from ==
this)
return;
450 _internal_metadata_.InternalSwap(&other->_internal_metadata_);
451 swap(
_impl_._has_bits_[0], other->_impl_._has_bits_[0]);
452 ::google::protobuf::internal::memswap<
456 reinterpret_cast<char*
>(&
_impl_.element_),
457 reinterpret_cast<char*
>(&other->_impl_.element_));
461 return ::google::protobuf::Message::GetMetadataImpl(
GetClassData()->full());
468 decltype(::std::declval<CapacityConstraintProto_CapacityTerm>()._impl_._has_bits_);
474#if defined(PROTOBUF_CUSTOM_VTABLE)
477 : ::google::protobuf::Message(arena) {
482PROTOBUF_NDEBUG_INLINE CapacityConstraintProto_CapacityTerm::Impl_::Impl_(
483 ::google::protobuf::internal::InternalVisibility visibility,
484 ::google::protobuf::Arena* PROTOBUF_NULLABLE arena,
const Impl_& from,
485 const ::operations_research::CapacityConstraintProto_CapacityTerm& from_msg)
486 : _has_bits_{from._has_bits_},
488 element_weights_{visibility, arena, from.element_weights_} {}
491 ::google::protobuf::Arena* PROTOBUF_NULLABLE arena,
493#if defined(PROTOBUF_CUSTOM_VTABLE)
496 : ::google::protobuf::Message(arena) {
500 _internal_metadata_.
MergeFrom<::google::protobuf::UnknownFieldSet>(
501 from._internal_metadata_);
502 new (&
_impl_) Impl_(internal_visibility(), arena, from._impl_, from);
503 _impl_.subset_ = from._impl_.subset_;
507PROTOBUF_NDEBUG_INLINE CapacityConstraintProto_CapacityTerm::Impl_::Impl_(
508 ::google::protobuf::internal::InternalVisibility visibility,
509 ::google::protobuf::Arena* PROTOBUF_NULLABLE arena)
511 element_weights_{visibility, arena} {}
513inline void CapacityConstraintProto_CapacityTerm::SharedCtor(::_pb::Arena* PROTOBUF_NULLABLE arena) {
514 new (&
_impl_) Impl_(internal_visibility(), arena);
521inline void CapacityConstraintProto_CapacityTerm::SharedDtor(
MessageLite& self) {
523 this_._internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>();
524 ABSL_DCHECK(this_.GetArena() ==
nullptr);
529 const void* PROTOBUF_NONNULL,
void* PROTOBUF_NONNULL mem,
530 ::google::protobuf::Arena* PROTOBUF_NULLABLE arena) {
534 constexpr auto arena_bits = ::google::protobuf::internal::EncodePlacementArenaOffsets({
537 InternalGetArenaOffset(
540 if (arena_bits.has_value()) {
541 return ::google::protobuf::internal::MessageCreator::ZeroInit(
542 sizeof(CapacityConstraintProto_CapacityTerm), alignof(CapacityConstraintProto_CapacityTerm), *arena_bits);
544 return ::google::protobuf::internal::MessageCreator(&CapacityConstraintProto_CapacityTerm::PlacementNew_,
545 sizeof(CapacityConstraintProto_CapacityTerm),
546 alignof(CapacityConstraintProto_CapacityTerm));
550 return ::google::protobuf::internal::ClassDataFull{
551 ::google::protobuf::internal::ClassData{
556 &CapacityConstraintProto_CapacityTerm::MergeImpl,
557 ::google::protobuf::Message::GetNewImpl<CapacityConstraintProto_CapacityTerm>(),
558#if defined(PROTOBUF_CUSTOM_VTABLE)
559 &CapacityConstraintProto_CapacityTerm::SharedDtor,
566 &CapacityConstraintProto_CapacityTerm::kDescriptorMethods,
572PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 const
576PROTOBUF_ATTRIBUTE_WEAK const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL
582PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1
583const ::_pbi::TcParseTable<1, 2, 1, 0, 2>
584CapacityConstraintProto_CapacityTerm::_table_ = {
589 offsetof(
decltype(_table_), field_lookup_table),
591 offsetof(
decltype(_table_), field_entries),
594 offsetof(
decltype(_table_), aux_entries),
597 ::_pbi::TcParser::GenericFallback,
598 #ifdef PROTOBUF_PREFETCH_PARSE_TABLE
599 ::_pbi::TcParser::GetTable<::operations_research::CapacityConstraintProto_CapacityTerm>(),
603 {::_pbi::TcParser::FastMtR1,
604 {18, 63, 0, PROTOBUF_FIELD_OFFSET(CapacityConstraintProto_CapacityTerm,
_impl_.element_weights_)}},
606 {::_pbi::TcParser::SingularVarintNoZag1<::uint64_t, offsetof(CapacityConstraintProto_CapacityTerm,
_impl_.subset_), 0>(),
607 {8, 0, 0, PROTOBUF_FIELD_OFFSET(CapacityConstraintProto_CapacityTerm,
_impl_.subset_)}},
613 (0 | ::_fl::kFcOptional | ::_fl::kInt64)},
615 {PROTOBUF_FIELD_OFFSET(CapacityConstraintProto_CapacityTerm,
_impl_.element_weights_), -1, 0,
616 (0 | ::_fl::kFcRepeated | ::_fl::kMessage | ::_fl::kTvTable)},
619 {::_pbi::TcParser::GetTable<::operations_research::CapacityConstraintProto_CapacityTerm_ElementWeightPair>()},
626 ::google::protobuf::internal::TSanWrite(&
_impl_);
627 ::uint32_t cached_has_bits = 0;
629 (void) cached_has_bits;
631 _impl_.element_weights_.Clear();
632 _impl_.subset_ = ::int64_t{0};
633 _impl_._has_bits_.Clear();
634 _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>();
637#if defined(PROTOBUF_CUSTOM_VTABLE)
639 const ::google::protobuf::MessageLite& base, ::uint8_t* PROTOBUF_NONNULL target,
640 ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) {
641 const CapacityConstraintProto_CapacityTerm& this_ =
static_cast<const CapacityConstraintProto_CapacityTerm&
>(base);
644 ::uint8_t* PROTOBUF_NONNULL target,
645 ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream)
const {
649 ::uint32_t cached_has_bits = 0;
650 (void)cached_has_bits;
653 if ((this_.
_impl_._has_bits_[0] & 0x00000001u) != 0) {
654 if (this_._internal_subset() != 0) {
656 ::google::protobuf::internal::WireFormatLite::WriteInt64ToArrayWithField<1>(
657 stream, this_._internal_subset(), target);
662 for (
unsigned i = 0, n =
static_cast<unsigned>(
663 this_._internal_element_weights_size());
665 const auto& repfield = this_._internal_element_weights().Get(i);
667 ::google::protobuf::internal::WireFormatLite::InternalWriteMessage(
668 2, repfield, repfield.GetCachedSize(),
672 if (ABSL_PREDICT_FALSE(this_._internal_metadata_.have_unknown_fields())) {
674 ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray(
675 this_._internal_metadata_.
unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream);
681#if defined(PROTOBUF_CUSTOM_VTABLE)
689 ::size_t total_size = 0;
691 ::uint32_t cached_has_bits = 0;
693 (void)cached_has_bits;
695 ::_pbi::Prefetch5LinesFrom7Lines(&this_);
699 total_size += 1UL * this_._internal_element_weights_size();
700 for (
const auto& msg : this_._internal_element_weights()) {
701 total_size += ::google::protobuf::internal::WireFormatLite::MessageSize(msg);
707 cached_has_bits = this_.
_impl_._has_bits_[0];
708 if ((cached_has_bits & 0x00000001u) != 0) {
709 if (this_._internal_subset() != 0) {
710 total_size += ::_pbi::WireFormatLite::Int64SizePlusOne(
711 this_._internal_subset());
715 return this_.MaybeComputeUnknownFieldsSize(total_size,
716 &this_.
_impl_._cached_size_);
719void CapacityConstraintProto_CapacityTerm::MergeImpl(::google::protobuf::MessageLite& to_msg, const ::google::protobuf::MessageLite& from_msg) {
720 auto*
const _this =
static_cast<CapacityConstraintProto_CapacityTerm*
>(&to_msg);
721 auto& from =
static_cast<const CapacityConstraintProto_CapacityTerm&
>(from_msg);
723 ABSL_DCHECK_NE(&from, _this);
724 ::uint32_t cached_has_bits = 0;
725 (void) cached_has_bits;
727 _this->_internal_mutable_element_weights()->MergeFrom(
728 from._internal_element_weights());
729 cached_has_bits = from._impl_._has_bits_[0];
730 if ((cached_has_bits & 0x00000001u) != 0) {
731 if (from._internal_subset() != 0) {
732 _this->_impl_.subset_ = from._impl_.subset_;
735 _this->_impl_._has_bits_[0] |= cached_has_bits;
736 _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_);
741 if (&from ==
this)
return;
749 _internal_metadata_.InternalSwap(&other->_internal_metadata_);
750 swap(
_impl_._has_bits_[0], other->_impl_._has_bits_[0]);
751 _impl_.element_weights_.InternalSwap(&other->_impl_.element_weights_);
756 return ::google::protobuf::Message::GetMetadataImpl(
GetClassData()->full());
763 decltype(::std::declval<CapacityConstraintProto>()._impl_._has_bits_);
769#if defined(PROTOBUF_CUSTOM_VTABLE)
772 : ::google::protobuf::Message(arena) {
777PROTOBUF_NDEBUG_INLINE CapacityConstraintProto::Impl_::Impl_(
778 ::google::protobuf::internal::InternalVisibility visibility,
779 ::google::protobuf::Arena* PROTOBUF_NULLABLE arena,
const Impl_& from,
780 const ::operations_research::CapacityConstraintProto& from_msg)
781 : _has_bits_{from._has_bits_},
783 capacity_term_{visibility, arena, from.capacity_term_} {}
786 ::google::protobuf::Arena* PROTOBUF_NULLABLE arena,
787 const CapacityConstraintProto& from)
788#if defined(PROTOBUF_CUSTOM_VTABLE)
791 : ::google::protobuf::Message(arena) {
795 _internal_metadata_.
MergeFrom<::google::protobuf::UnknownFieldSet>(
796 from._internal_metadata_);
797 new (&
_impl_) Impl_(internal_visibility(), arena, from._impl_, from);
798 ::memcpy(
reinterpret_cast<char *
>(&
_impl_) +
799 offsetof(Impl_, min_capacity_),
800 reinterpret_cast<const char *
>(&from._impl_) +
801 offsetof(Impl_, min_capacity_),
802 offsetof(Impl_, max_capacity_) -
803 offsetof(Impl_, min_capacity_) +
804 sizeof(Impl_::max_capacity_));
808PROTOBUF_NDEBUG_INLINE CapacityConstraintProto::Impl_::Impl_(
809 ::google::protobuf::internal::InternalVisibility visibility,
810 ::google::protobuf::Arena* PROTOBUF_NULLABLE arena)
812 capacity_term_{visibility, arena} {}
814inline void CapacityConstraintProto::SharedCtor(::_pb::Arena* PROTOBUF_NULLABLE arena) {
815 new (&
_impl_) Impl_(internal_visibility(), arena);
816 ::memset(
reinterpret_cast<char *
>(&
_impl_) +
817 offsetof(Impl_, min_capacity_),
819 offsetof(Impl_, max_capacity_) -
820 offsetof(Impl_, min_capacity_) +
821 sizeof(Impl_::max_capacity_));
827inline void CapacityConstraintProto::SharedDtor(MessageLite& self) {
829 this_._internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>();
830 ABSL_DCHECK(this_.GetArena() ==
nullptr);
835 const void* PROTOBUF_NONNULL,
void* PROTOBUF_NONNULL mem,
836 ::google::protobuf::Arena* PROTOBUF_NULLABLE arena) {
840 constexpr auto arena_bits = ::google::protobuf::internal::EncodePlacementArenaOffsets({
843 InternalGetArenaOffset(
846 if (arena_bits.has_value()) {
847 return ::google::protobuf::internal::MessageCreator::ZeroInit(
848 sizeof(CapacityConstraintProto), alignof(CapacityConstraintProto), *arena_bits);
850 return ::google::protobuf::internal::MessageCreator(&CapacityConstraintProto::PlacementNew_,
851 sizeof(CapacityConstraintProto),
852 alignof(CapacityConstraintProto));
856 return ::google::protobuf::internal::ClassDataFull{
857 ::google::protobuf::internal::ClassData{
862 &CapacityConstraintProto::MergeImpl,
863 ::google::protobuf::Message::GetNewImpl<CapacityConstraintProto>(),
864#if defined(PROTOBUF_CUSTOM_VTABLE)
865 &CapacityConstraintProto::SharedDtor,
872 &CapacityConstraintProto::kDescriptorMethods,
878PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 const
882PROTOBUF_ATTRIBUTE_WEAK const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL
888PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1
889const ::_pbi::TcParseTable<2, 3, 1, 0, 2>
890CapacityConstraintProto::_table_ = {
895 offsetof(
decltype(_table_), field_lookup_table),
897 offsetof(
decltype(_table_), field_entries),
900 offsetof(
decltype(_table_), aux_entries),
903 ::_pbi::TcParser::GenericFallback,
904 #ifdef PROTOBUF_PREFETCH_PARSE_TABLE
905 ::_pbi::TcParser::GetTable<::operations_research::CapacityConstraintProto>(),
908 {::_pbi::TcParser::MiniParse, {}},
910 {::_pbi::TcParser::FastMtR1,
923 (0 | ::_fl::kFcRepeated | ::_fl::kMessage | ::_fl::kTvTable)},
926 (0 | ::_fl::kFcOptional | ::_fl::kInt64)},
929 (0 | ::_fl::kFcOptional | ::_fl::kInt64)},
932 {::_pbi::TcParser::GetTable<::operations_research::CapacityConstraintProto_CapacityTerm>()},
939 ::google::protobuf::internal::TSanWrite(&
_impl_);
940 ::uint32_t cached_has_bits = 0;
942 (void) cached_has_bits;
944 _impl_.capacity_term_.Clear();
945 cached_has_bits =
_impl_._has_bits_[0];
946 if ((cached_has_bits & 0x00000003u) != 0) {
947 ::memset(&
_impl_.min_capacity_, 0,
static_cast<::
size_t>(
948 reinterpret_cast<char*
>(&
_impl_.max_capacity_) -
949 reinterpret_cast<char*
>(&
_impl_.min_capacity_)) +
sizeof(
_impl_.max_capacity_));
951 _impl_._has_bits_.Clear();
952 _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>();
955#if defined(PROTOBUF_CUSTOM_VTABLE)
957 const ::google::protobuf::MessageLite& base, ::uint8_t* PROTOBUF_NONNULL target,
958 ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) {
962 ::uint8_t* PROTOBUF_NONNULL target,
963 ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream)
const {
967 ::uint32_t cached_has_bits = 0;
968 (void)cached_has_bits;
971 for (
unsigned i = 0, n =
static_cast<unsigned>(
972 this_._internal_capacity_term_size());
974 const auto& repfield = this_._internal_capacity_term().Get(i);
976 ::google::protobuf::internal::WireFormatLite::InternalWriteMessage(
977 1, repfield, repfield.GetCachedSize(),
982 if ((this_.
_impl_._has_bits_[0] & 0x00000001u) != 0) {
983 if (this_._internal_min_capacity() != 0) {
985 ::google::protobuf::internal::WireFormatLite::WriteInt64ToArrayWithField<2>(
986 stream, this_._internal_min_capacity(), target);
991 if ((this_.
_impl_._has_bits_[0] & 0x00000002u) != 0) {
992 if (this_._internal_max_capacity() != 0) {
994 ::google::protobuf::internal::WireFormatLite::WriteInt64ToArrayWithField<3>(
995 stream, this_._internal_max_capacity(), target);
999 if (ABSL_PREDICT_FALSE(this_._internal_metadata_.have_unknown_fields())) {
1001 ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray(
1002 this_._internal_metadata_.
unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream);
1008#if defined(PROTOBUF_CUSTOM_VTABLE)
1016 ::size_t total_size = 0;
1018 ::uint32_t cached_has_bits = 0;
1020 (void)cached_has_bits;
1022 ::_pbi::Prefetch5LinesFrom7Lines(&this_);
1026 total_size += 1UL * this_._internal_capacity_term_size();
1027 for (
const auto& msg : this_._internal_capacity_term()) {
1028 total_size += ::google::protobuf::internal::WireFormatLite::MessageSize(msg);
1032 cached_has_bits = this_._impl_._has_bits_[0];
1033 if ((cached_has_bits & 0x00000003u) != 0) {
1035 if ((cached_has_bits & 0x00000001u) != 0) {
1036 if (this_._internal_min_capacity() != 0) {
1037 total_size += ::_pbi::WireFormatLite::Int64SizePlusOne(
1038 this_._internal_min_capacity());
1042 if ((cached_has_bits & 0x00000002u) != 0) {
1043 if (this_._internal_max_capacity() != 0) {
1044 total_size += ::_pbi::WireFormatLite::Int64SizePlusOne(
1045 this_._internal_max_capacity());
1049 return this_.MaybeComputeUnknownFieldsSize(total_size,
1050 &this_._impl_._cached_size_);
1053void CapacityConstraintProto::MergeImpl(::google::protobuf::MessageLite& to_msg, const ::google::protobuf::MessageLite& from_msg) {
1057 ABSL_DCHECK_NE(&from, _this);
1058 ::uint32_t cached_has_bits = 0;
1059 (void) cached_has_bits;
1061 _this->_internal_mutable_capacity_term()->MergeFrom(
1062 from._internal_capacity_term());
1063 cached_has_bits = from._impl_._has_bits_[0];
1064 if ((cached_has_bits & 0x00000003u) != 0) {
1065 if ((cached_has_bits & 0x00000001u) != 0) {
1066 if (from._internal_min_capacity() != 0) {
1067 _this->_impl_.min_capacity_ = from._impl_.min_capacity_;
1070 if ((cached_has_bits & 0x00000002u) != 0) {
1071 if (from._internal_max_capacity() != 0) {
1072 _this->_impl_.max_capacity_ = from._impl_.max_capacity_;
1076 _this->_impl_._has_bits_[0] |= cached_has_bits;
1077 _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_);
1082 if (&from ==
this)
return;
1088void CapacityConstraintProto::InternalSwap(
CapacityConstraintProto* PROTOBUF_RESTRICT PROTOBUF_NONNULL other) {
1090 _internal_metadata_.InternalSwap(&other->_internal_metadata_);
1091 swap(
_impl_._has_bits_[0], other->_impl_._has_bits_[0]);
1092 _impl_.capacity_term_.InternalSwap(&other->_impl_.capacity_term_);
1093 ::google::protobuf::internal::memswap<
1097 reinterpret_cast<char*
>(&
_impl_.min_capacity_),
1098 reinterpret_cast<char*
>(&other->_impl_.min_capacity_));
1102 return ::google::protobuf::Message::GetMetadataImpl(
GetClassData()->full());
1111PROTOBUF_ATTRIBUTE_INIT_PRIORITY2 static ::std::false_type
1114 ::std::false_type{});
1115#include "google/protobuf/port_undef.inc"
static PROTOBUF_ATTRIBUTE_INIT_PRIORITY2 ::std::false_type _static_init2_
@protoc_insertion_point(global_scope)
static const ::_pb::Message *PROTOBUF_NONNULL const file_default_instances[]
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
static void *PROTOBUF_NONNULL PlacementNew_(const void *PROTOBUF_NONNULL, void *PROTOBUF_NONNULL mem, ::google::protobuf::Arena *PROTOBUF_NULLABLE arena)
static constexpr auto InternalNewImpl_()
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
const ::google::protobuf::internal::ClassData *PROTOBUF_NONNULL GetClassData() const PROTOBUF_FINAL
CapacityConstraintProto_CapacityTerm_ElementWeightPair()
::google::protobuf::Metadata GetMetadata() const
friend void swap(CapacityConstraintProto_CapacityTerm_ElementWeightPair &a, CapacityConstraintProto_CapacityTerm_ElementWeightPair &b)
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)
static void *PROTOBUF_NONNULL PlacementNew_(const void *PROTOBUF_NONNULL, void *PROTOBUF_NONNULL mem, ::google::protobuf::Arena *PROTOBUF_NULLABLE arena)
const ::google::protobuf::internal::ClassData *PROTOBUF_NONNULL GetClassData() const PROTOBUF_FINAL
void CopyFrom(const CapacityConstraintProto_CapacityTerm &from)
static constexpr auto InternalNewImpl_()
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
~CapacityConstraintProto_CapacityTerm() PROTOBUF_FINAL
friend class ::google::protobuf::MessageLite
::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
const ::google::protobuf::internal::ClassData *PROTOBUF_NONNULL GetClassData() const PROTOBUF_FINAL
::google::protobuf::Metadata GetMetadata() const
static constexpr auto InternalGenerateClassData_()
static constexpr auto InternalNewImpl_()
~CapacityConstraintProto() PROTOBUF_FINAL
void MergeFrom(const CapacityConstraintProto &from)
void CopyFrom(const CapacityConstraintProto &from)
static void *PROTOBUF_NONNULL PlacementNew_(const void *PROTOBUF_NONNULL, void *PROTOBUF_NONNULL mem, ::google::protobuf::Arena *PROTOBUF_NULLABLE arena)
friend void swap(CapacityConstraintProto &a, CapacityConstraintProto &b)
ABSL_ATTRIBUTE_REINITIALIZES void Clear() PROTOBUF_FINAL
In SWIG mode, we don't want anything besides these top-level includes.
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_
static constexpr ::_pbi::MigrationSchema *PROTOBUF_NULLABLE schemas
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()