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 SetCoverProto_Subset::Impl_::Impl_(
30 ::_pbi::ConstantInitialized) noexcept
33 _element_cached_byte_size_{0},
38#if defined(PROTOBUF_CUSTOM_VTABLE)
41 : ::google::protobuf::Message(),
43 _impl_(::_pbi::ConstantInitialized()) {
53PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT OR_PROTO_DLL
56inline constexpr SetCoverSolutionResponse::Impl_::Impl_(
57 ::_pbi::ConstantInitialized) noexcept
60 _subset_cached_byte_size_{0},
61 fingerprint_{
nullptr},
62 model_fingerprint_{
nullptr},
63 num_subsets_{::int64_t{0}},
70#if defined(PROTOBUF_CUSTOM_VTABLE)
73 : ::google::protobuf::Message(),
75 _impl_(::_pbi::ConstantInitialized()) {
85PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT OR_PROTO_DLL
88inline constexpr SetCoverProto::Impl_::Impl_(
89 ::_pbi::ConstantInitialized) noexcept
93 &::google::protobuf::internal::fixed_address_empty_string,
94 ::_pbi::ConstantInitialized()),
95 fingerprint_{
nullptr} {}
99#if defined(PROTOBUF_CUSTOM_VTABLE)
102 : ::google::protobuf::Message(),
104 _impl_(::_pbi::ConstantInitialized()) {
114PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT OR_PROTO_DLL
117static const ::_pb::EnumDescriptor* PROTOBUF_NONNULL
119static constexpr const ::_pb::ServiceDescriptor* PROTOBUF_NONNULL* PROTOBUF_NULLABLE
159static const ::_pbi::MigrationSchema
172 "\n!ortools/set_cover/set_cover.proto\022\023ope"
173 "rations_research\032\031ortools/util/int128.pr"
174 "oto\"\350\001\n\rSetCoverProto\0229\n\006subset\030\001 \003(\0132)."
175 "operations_research.SetCoverProto.Subset"
176 "\022\021\n\004name\030\002 \001(\tH\000\210\001\001\0225\n\013fingerprint\030\003 \001(\013"
177 "2\033.operations_research.Int128H\001\210\001\001\0329\n\006Su"
178 "bset\022\021\n\004cost\030\001 \001(\001H\000\210\001\001\022\023\n\007element\030\002 \003(\003"
179 "B\002\020\001B\007\n\005_costB\007\n\005_nameB\016\n\014_fingerprint\"\351"
180 "\003\n\030SetCoverSolutionResponse\022I\n\006status\030\001 "
181 "\001(\01624.operations_research.SetCoverSoluti"
182 "onResponse.StatusH\000\210\001\001\022\030\n\013num_subsets\030\002 "
183 "\001(\003H\001\210\001\001\022\022\n\006subset\030\003 \003(\003B\002\020\001\022\021\n\004cost\030\004 \001"
184 "(\001H\002\210\001\001\022\035\n\020cost_lower_bound\030\005 \001(\001H\003\210\001\001\0225"
185 "\n\013fingerprint\030\006 \001(\0132\033.operations_researc"
186 "h.Int128H\004\210\001\001\022;\n\021model_fingerprint\030\007 \001(\013"
187 "2\033.operations_research.Int128H\005\210\001\001\"O\n\006St"
188 "atus\022\r\n\tUNDEFINED\020\000\022\013\n\007OPTIMAL\020\001\022\014\n\010FEAS"
189 "IBLE\020\002\022\016\n\nINFEASIBLE\020\003\022\013\n\007INVALID\020\004B\t\n\007_"
190 "statusB\016\n\014_num_subsetsB\007\n\005_costB\023\n\021_cost"
191 "_lower_boundB\016\n\014_fingerprintB\024\n\022_model_f"
192 "ingerprintB!\n\035com.google.ortools.algorit"
193 "hmsP\001b\006proto3"
195static const ::_pbi::DescriptorTable* PROTOBUF_NONNULL
const
204 descriptor_table_protodef_ortools_2fset_5fcover_2fset_5fcover_2eproto,
205 "ortools/set_cover/set_cover.proto",
225class SetCoverProto_Subset::_Internal {
228 decltype(::std::declval<SetCoverProto_Subset>()._impl_._has_bits_);
234#if defined(PROTOBUF_CUSTOM_VTABLE)
237 : ::google::protobuf::Message(arena) {
242PROTOBUF_NDEBUG_INLINE SetCoverProto_Subset::Impl_::Impl_(
243 [[maybe_unused]] ::google::protobuf::internal::InternalVisibility visibility,
244 [[maybe_unused]] ::google::protobuf::Arena* PROTOBUF_NULLABLE arena,
const Impl_& from,
245 [[maybe_unused]] const ::operations_research::SetCoverProto_Subset& from_msg)
246 : _has_bits_{from._has_bits_},
248 element_{visibility, arena, from.element_},
249 _element_cached_byte_size_{0} {}
252 ::google::protobuf::Arena* PROTOBUF_NULLABLE arena,
254#if defined(PROTOBUF_CUSTOM_VTABLE)
257 : ::google::protobuf::Message(arena) {
261 _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(
262 from._internal_metadata_);
263 new (&
_impl_) Impl_(internal_visibility(), arena, from._impl_, from);
264 _impl_.cost_ = from._impl_.cost_;
268PROTOBUF_NDEBUG_INLINE SetCoverProto_Subset::Impl_::Impl_(
269 [[maybe_unused]] ::google::protobuf::internal::InternalVisibility visibility,
270 [[maybe_unused]] ::google::protobuf::Arena* PROTOBUF_NULLABLE arena)
272 element_{visibility, arena},
273 _element_cached_byte_size_{0} {}
275inline void SetCoverProto_Subset::SharedCtor(::_pb::Arena* PROTOBUF_NULLABLE arena) {
276 new (&
_impl_) Impl_(internal_visibility(), arena);
283inline void SetCoverProto_Subset::SharedDtor(
MessageLite& self) {
285 if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) {
286 this_.CheckHasBitConsistency();
288 this_._internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>();
289 ABSL_DCHECK(this_.GetArena() ==
nullptr);
293inline void* PROTOBUF_NONNULL SetCoverProto_Subset::PlacementNew_(
294 const void* PROTOBUF_NONNULL,
void* PROTOBUF_NONNULL mem,
295 ::google::protobuf::Arena* PROTOBUF_NULLABLE arena) {
298constexpr auto SetCoverProto_Subset::InternalNewImpl_() {
299 constexpr auto arena_bits = ::google::protobuf::internal::EncodePlacementArenaOffsets({
302 InternalGetArenaOffset(
303 ::google::protobuf::Message::internal_visibility()),
305 if (arena_bits.has_value()) {
306 return ::google::protobuf::internal::MessageCreator::ZeroInit(
307 sizeof(SetCoverProto_Subset), alignof(SetCoverProto_Subset), *arena_bits);
309 return ::google::protobuf::internal::MessageCreator(&SetCoverProto_Subset::PlacementNew_,
310 sizeof(SetCoverProto_Subset),
311 alignof(SetCoverProto_Subset));
315 return ::google::protobuf::internal::ClassDataFull{
316 ::google::protobuf::internal::ClassData{
321 &SetCoverProto_Subset::MergeImpl,
322 ::google::protobuf::Message::GetNewImpl<SetCoverProto_Subset>(),
323#if defined(PROTOBUF_CUSTOM_VTABLE)
324 &SetCoverProto_Subset::SharedDtor,
331 &SetCoverProto_Subset::kDescriptorMethods,
337PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 const
341PROTOBUF_ATTRIBUTE_WEAK const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL
342SetCoverProto_Subset::GetClassData()
const {
347PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1
348const ::_pbi::TcParseTable<1, 2, 0, 0, 2>
349SetCoverProto_Subset::_table_ = {
354 offsetof(
decltype(_table_), field_lookup_table),
356 offsetof(
decltype(_table_), field_entries),
359 offsetof(
decltype(_table_), field_names),
362 ::_pbi::TcParser::GenericFallback,
363 #ifdef PROTOBUF_PREFETCH_PARSE_TABLE
364 ::_pbi::TcParser::GetTable<::operations_research::SetCoverProto_Subset>(),
368 {::_pbi::TcParser::FastV64P1,
372 {::_pbi::TcParser::FastF64S1,
389 ::google::protobuf::internal::TSanWrite(&
_impl_);
390 ::uint32_t cached_has_bits = 0;
392 (void) cached_has_bits;
394 cached_has_bits =
_impl_._has_bits_[0];
395 if (CheckHasBitForRepeated(cached_has_bits, 0x00000001U)) {
399 _impl_._has_bits_.Clear();
400 _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>();
403#if defined(PROTOBUF_CUSTOM_VTABLE)
405 const ::google::protobuf::MessageLite& base, ::uint8_t* PROTOBUF_NONNULL target,
406 ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) {
410 ::uint8_t* PROTOBUF_NONNULL target,
411 ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream)
const {
414 if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) {
415 this_.CheckHasBitConsistency();
418 ::uint32_t cached_has_bits = 0;
419 (void)cached_has_bits;
421 cached_has_bits = this_.
_impl_._has_bits_[0];
423 if (CheckHasBit(cached_has_bits, 0x00000002U)) {
424 target = stream->EnsureSpace(target);
425 target = ::_pbi::WireFormatLite::WriteDoubleToArray(
426 1, this_._internal_cost(), target);
430 if (CheckHasBitForRepeated(cached_has_bits, 0x00000001U)) {
432 int byte_size = this_.
_impl_._element_cached_byte_size_.Get();
434 target = stream->WriteInt64Packed(
435 2, this_._internal_element(), byte_size, target);
440 if (ABSL_PREDICT_FALSE(this_._internal_metadata_.have_unknown_fields())) {
442 ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray(
443 this_._internal_metadata_.
unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream);
449#if defined(PROTOBUF_CUSTOM_VTABLE)
457 ::size_t total_size = 0;
459 ::uint32_t cached_has_bits = 0;
461 (void)cached_has_bits;
463 ::_pbi::Prefetch5LinesFrom7Lines(&this_);
464 cached_has_bits = this_.
_impl_._has_bits_[0];
465 total_size +=
static_cast<bool>(0x00000002U & cached_has_bits) * 9;
468 if (CheckHasBitForRepeated(cached_has_bits, 0x00000001U)) {
470 ::_pbi::WireFormatLite::Int64SizeWithPackedTagSize(
471 this_._internal_element(), 1,
472 this_.
_impl_._element_cached_byte_size_);
475 return this_.MaybeComputeUnknownFieldsSize(total_size,
476 &this_.
_impl_._cached_size_);
479void SetCoverProto_Subset::MergeImpl(::google::protobuf::MessageLite& to_msg,
480 const ::google::protobuf::MessageLite& from_msg) {
484 if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) {
485 from.CheckHasBitConsistency();
488 ABSL_DCHECK_NE(&from, _this);
489 ::uint32_t cached_has_bits = 0;
490 (void)cached_has_bits;
492 cached_has_bits = from._impl_._has_bits_[0];
493 if (BatchCheckHasBit(cached_has_bits, 0x00000003U)) {
494 if (CheckHasBitForRepeated(cached_has_bits, 0x00000001U)) {
495 _this->_internal_mutable_element()->MergeFrom(from._internal_element());
497 if (CheckHasBit(cached_has_bits, 0x00000002U)) {
498 _this->_impl_.cost_ = from._impl_.cost_;
501 _this->_impl_._has_bits_[0] |= cached_has_bits;
502 _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(
503 from._internal_metadata_);
508 if (&from ==
this)
return;
514void SetCoverProto_Subset::InternalSwap(
SetCoverProto_Subset* PROTOBUF_RESTRICT PROTOBUF_NONNULL other) {
516 _internal_metadata_.InternalSwap(&other->_internal_metadata_);
517 swap(
_impl_._has_bits_[0], other->_impl_._has_bits_[0]);
518 _impl_.element_.InternalSwap(&other->_impl_.element_);
523 return ::google::protobuf::Message::GetMetadataImpl(GetClassData()->full());
530 decltype(::std::declval<SetCoverProto>()._impl_._has_bits_);
536 ::google::protobuf::internal::TSanWrite(&
_impl_);
538 ClearHasBit(
_impl_._has_bits_[0],
542#if defined(PROTOBUF_CUSTOM_VTABLE)
545 : ::google::protobuf::Message(arena) {
550PROTOBUF_NDEBUG_INLINE SetCoverProto::Impl_::Impl_(
551 [[maybe_unused]] ::google::protobuf::internal::InternalVisibility visibility,
552 [[maybe_unused]] ::google::protobuf::Arena* PROTOBUF_NULLABLE arena,
const Impl_& from,
553 [[maybe_unused]] const ::operations_research::SetCoverProto& from_msg)
554 : _has_bits_{from._has_bits_},
556 subset_{visibility, arena, from.subset_},
557 name_(arena, from.name_) {}
560 ::google::protobuf::Arena* PROTOBUF_NULLABLE arena,
562#if defined(PROTOBUF_CUSTOM_VTABLE)
565 : ::google::protobuf::Message(arena) {
569 _internal_metadata_.
MergeFrom<::google::protobuf::UnknownFieldSet>(
570 from._internal_metadata_);
571 new (&_impl_) Impl_(internal_visibility(), arena, from._impl_, from);
572 ::uint32_t cached_has_bits = _impl_._has_bits_[0];
573 _impl_.fingerprint_ = (CheckHasBit(cached_has_bits, 0x00000004U))
574 ? ::google::protobuf::Message::CopyConstruct(arena, *from._impl_.fingerprint_)
579PROTOBUF_NDEBUG_INLINE SetCoverProto::Impl_::Impl_(
580 [[maybe_unused]] ::google::protobuf::internal::InternalVisibility visibility,
581 [[maybe_unused]] ::google::protobuf::Arena* PROTOBUF_NULLABLE arena)
583 subset_{visibility, arena},
586inline void SetCoverProto::SharedCtor(::_pb::Arena* PROTOBUF_NULLABLE arena) {
587 new (&
_impl_) Impl_(internal_visibility(), arena);
594inline void SetCoverProto::SharedDtor(MessageLite& self) {
596 if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) {
597 this_.CheckHasBitConsistency();
599 this_._internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>();
600 ABSL_DCHECK(this_.GetArena() ==
nullptr);
601 this_.
_impl_.name_.Destroy();
602 delete this_.
_impl_.fingerprint_;
606inline void* PROTOBUF_NONNULL SetCoverProto::PlacementNew_(
607 const void* PROTOBUF_NONNULL,
void* PROTOBUF_NONNULL mem,
608 ::google::protobuf::Arena* PROTOBUF_NULLABLE arena) {
611constexpr auto SetCoverProto::InternalNewImpl_() {
612 constexpr auto arena_bits = ::google::protobuf::internal::EncodePlacementArenaOffsets({
615 InternalGetArenaOffset(
616 ::google::protobuf::Message::internal_visibility()),
618 if (arena_bits.has_value()) {
619 return ::google::protobuf::internal::MessageCreator::CopyInit(
620 sizeof(SetCoverProto), alignof(SetCoverProto), *arena_bits);
622 return ::google::protobuf::internal::MessageCreator(&SetCoverProto::PlacementNew_,
623 sizeof(SetCoverProto),
624 alignof(SetCoverProto));
628 return ::google::protobuf::internal::ClassDataFull{
629 ::google::protobuf::internal::ClassData{
634 &SetCoverProto::MergeImpl,
635 ::google::protobuf::Message::GetNewImpl<SetCoverProto>(),
636#if defined(PROTOBUF_CUSTOM_VTABLE)
637 &SetCoverProto::SharedDtor,
644 &SetCoverProto::kDescriptorMethods,
650PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 const
654PROTOBUF_ATTRIBUTE_WEAK const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL
655SetCoverProto::GetClassData()
const {
660PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1
661const ::_pbi::TcParseTable<2, 3, 2, 46, 2>
662SetCoverProto::_table_ = {
667 offsetof(
decltype(_table_), field_lookup_table),
669 offsetof(
decltype(_table_), field_entries),
672 offsetof(
decltype(_table_), aux_entries),
675 ::_pbi::TcParser::GenericFallback,
676 #ifdef PROTOBUF_PREFETCH_PARSE_TABLE
677 ::_pbi::TcParser::GetTable<::operations_research::SetCoverProto>(),
680 {::_pbi::TcParser::MiniParse, {}},
682 {::_pbi::TcParser::FastMtR1,
686 {::_pbi::TcParser::FastUS1,
690 {::_pbi::TcParser::FastMtS1,
704 {::_pbi::TcParser::GetTable<::operations_research::SetCoverProto_Subset>()},
705 {::_pbi::TcParser::GetTable<::operations_research::Int128>()},
709 "operations_research.SetCoverProto"
715 ::google::protobuf::internal::TSanWrite(&
_impl_);
716 ::uint32_t cached_has_bits = 0;
718 (void) cached_has_bits;
720 cached_has_bits =
_impl_._has_bits_[0];
721 if (BatchCheckHasBit(cached_has_bits, 0x00000007U)) {
722 if (CheckHasBitForRepeated(cached_has_bits, 0x00000001U)) {
725 if (CheckHasBit(cached_has_bits, 0x00000002U)) {
726 _impl_.name_.ClearNonDefaultToEmpty();
728 if (CheckHasBit(cached_has_bits, 0x00000004U)) {
729 ABSL_DCHECK(
_impl_.fingerprint_ !=
nullptr);
733 _impl_._has_bits_.Clear();
734 _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>();
737#if defined(PROTOBUF_CUSTOM_VTABLE)
739 const ::google::protobuf::MessageLite& base, ::uint8_t* PROTOBUF_NONNULL target,
740 ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) {
744 ::uint8_t* PROTOBUF_NONNULL target,
745 ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream)
const {
748 if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) {
749 this_.CheckHasBitConsistency();
752 ::uint32_t cached_has_bits = 0;
753 (void)cached_has_bits;
755 cached_has_bits = this_.
_impl_._has_bits_[0];
757 if (CheckHasBitForRepeated(cached_has_bits, 0x00000001U)) {
758 for (
unsigned i = 0, n =
static_cast<unsigned>(
759 this_._internal_subset_size());
761 const auto& repfield = this_._internal_subset().Get(i);
763 ::google::protobuf::internal::WireFormatLite::InternalWriteMessage(
764 1, repfield, repfield.GetCachedSize(),
770 if (CheckHasBit(cached_has_bits, 0x00000002U)) {
771 const ::std::string& _s = this_._internal_name();
772 ::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
773 _s.data(),
static_cast<int>(_s.length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE,
"operations_research.SetCoverProto.name");
774 target = stream->WriteStringMaybeAliased(2, _s, target);
778 if (CheckHasBit(cached_has_bits, 0x00000004U)) {
779 target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage(
784 if (ABSL_PREDICT_FALSE(this_._internal_metadata_.have_unknown_fields())) {
786 ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray(
787 this_._internal_metadata_.
unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream);
793#if defined(PROTOBUF_CUSTOM_VTABLE)
801 ::size_t total_size = 0;
803 ::uint32_t cached_has_bits = 0;
805 (void)cached_has_bits;
807 ::_pbi::Prefetch5LinesFrom7Lines(&this_);
808 cached_has_bits = this_.
_impl_._has_bits_[0];
809 if (BatchCheckHasBit(cached_has_bits, 0x00000007U)) {
811 if (CheckHasBitForRepeated(cached_has_bits, 0x00000001U)) {
812 total_size += 1UL * this_._internal_subset_size();
813 for (
const auto& msg : this_._internal_subset()) {
814 total_size += ::google::protobuf::internal::WireFormatLite::MessageSize(msg);
818 if (CheckHasBit(cached_has_bits, 0x00000002U)) {
819 total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize(
820 this_._internal_name());
823 if (CheckHasBit(cached_has_bits, 0x00000004U)) {
825 ::google::protobuf::internal::WireFormatLite::MessageSize(*this_.
_impl_.fingerprint_);
828 return this_.MaybeComputeUnknownFieldsSize(total_size,
829 &this_.
_impl_._cached_size_);
832void SetCoverProto::MergeImpl(::google::protobuf::MessageLite& to_msg,
833 const ::google::protobuf::MessageLite& from_msg) {
837 if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) {
838 from.CheckHasBitConsistency();
842 ABSL_DCHECK_NE(&from, _this);
843 ::uint32_t cached_has_bits = 0;
844 (void)cached_has_bits;
846 cached_has_bits = from._impl_._has_bits_[0];
847 if (BatchCheckHasBit(cached_has_bits, 0x00000007U)) {
848 if (CheckHasBitForRepeated(cached_has_bits, 0x00000001U)) {
849 _this->_internal_mutable_subset()->InternalMergeFromWithArena(
850 ::google::protobuf::MessageLite::internal_visibility(), arena,
851 from._internal_subset());
853 if (CheckHasBit(cached_has_bits, 0x00000002U)) {
854 _this->_internal_set_name(from._internal_name());
856 if (CheckHasBit(cached_has_bits, 0x00000004U)) {
857 ABSL_DCHECK(from._impl_.fingerprint_ !=
nullptr);
858 if (_this->_impl_.fingerprint_ ==
nullptr) {
859 _this->_impl_.fingerprint_ = ::google::protobuf::Message::CopyConstruct(arena, *from._impl_.fingerprint_);
861 _this->_impl_.fingerprint_->MergeFrom(*from._impl_.fingerprint_);
865 _this->_impl_._has_bits_[0] |= cached_has_bits;
866 _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(
867 from._internal_metadata_);
872 if (&from ==
this)
return;
878void SetCoverProto::InternalSwap(
SetCoverProto* PROTOBUF_RESTRICT PROTOBUF_NONNULL other) {
880 auto* arena = GetArena();
881 ABSL_DCHECK_EQ(arena, other->GetArena());
882 _internal_metadata_.InternalSwap(&other->_internal_metadata_);
883 swap(
_impl_._has_bits_[0], other->_impl_._has_bits_[0]);
884 _impl_.subset_.InternalSwap(&other->_impl_.subset_);
885 ::_pbi::ArenaStringPtr::InternalSwap(&
_impl_.name_, &other->_impl_.name_, arena);
890 return ::google::protobuf::Message::GetMetadataImpl(GetClassData()->full());
897 decltype(::std::declval<SetCoverSolutionResponse>()._impl_._has_bits_);
903 ::google::protobuf::internal::TSanWrite(&
_impl_);
904 if (
_impl_.fingerprint_ !=
nullptr)
_impl_.fingerprint_->Clear();
909 ::google::protobuf::internal::TSanWrite(&
_impl_);
910 if (
_impl_.model_fingerprint_ !=
nullptr)
_impl_.model_fingerprint_->Clear();
915#if defined(PROTOBUF_CUSTOM_VTABLE)
918 : ::google::protobuf::Message(arena) {
923PROTOBUF_NDEBUG_INLINE SetCoverSolutionResponse::Impl_::Impl_(
924 [[maybe_unused]] ::google::protobuf::internal::InternalVisibility visibility,
925 [[maybe_unused]] ::google::protobuf::Arena* PROTOBUF_NULLABLE arena,
const Impl_& from,
926 [[maybe_unused]] const ::operations_research::SetCoverSolutionResponse& from_msg)
927 : _has_bits_{from._has_bits_},
929 subset_{visibility, arena, from.subset_},
930 _subset_cached_byte_size_{0} {}
933 ::google::protobuf::Arena* PROTOBUF_NULLABLE arena,
935#if defined(PROTOBUF_CUSTOM_VTABLE)
938 : ::google::protobuf::Message(arena) {
942 _internal_metadata_.
MergeFrom<::google::protobuf::UnknownFieldSet>(
943 from._internal_metadata_);
944 new (&_impl_) Impl_(internal_visibility(), arena, from._impl_, from);
945 ::uint32_t cached_has_bits = _impl_._has_bits_[0];
946 _impl_.fingerprint_ = (CheckHasBit(cached_has_bits, 0x00000002U))
947 ? ::google::protobuf::Message::CopyConstruct(arena, *from._impl_.fingerprint_)
949 _impl_.model_fingerprint_ = (CheckHasBit(cached_has_bits, 0x00000004U))
950 ? ::google::protobuf::Message::CopyConstruct(arena, *from._impl_.model_fingerprint_)
952 ::memcpy(
reinterpret_cast<char*
>(&_impl_) +
953 offsetof(Impl_, num_subsets_),
954 reinterpret_cast<const char*
>(&from._impl_) +
955 offsetof(Impl_, num_subsets_),
956 offsetof(Impl_, status_) -
957 offsetof(Impl_, num_subsets_) +
958 sizeof(Impl_::status_));
962PROTOBUF_NDEBUG_INLINE SetCoverSolutionResponse::Impl_::Impl_(
963 [[maybe_unused]] ::google::protobuf::internal::InternalVisibility visibility,
964 [[maybe_unused]] ::google::protobuf::Arena* PROTOBUF_NULLABLE arena)
966 subset_{visibility, arena},
967 _subset_cached_byte_size_{0} {}
969inline void SetCoverSolutionResponse::SharedCtor(::_pb::Arena* PROTOBUF_NULLABLE arena) {
970 new (&
_impl_) Impl_(internal_visibility(), arena);
971 ::memset(
reinterpret_cast<char*
>(&
_impl_) +
972 offsetof(Impl_, fingerprint_),
974 offsetof(Impl_, status_) -
975 offsetof(Impl_, fingerprint_) +
976 sizeof(Impl_::status_));
982inline void SetCoverSolutionResponse::SharedDtor(MessageLite& self) {
984 if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) {
985 this_.CheckHasBitConsistency();
987 this_._internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>();
988 ABSL_DCHECK(this_.GetArena() ==
nullptr);
989 delete this_.
_impl_.fingerprint_;
990 delete this_.
_impl_.model_fingerprint_;
994inline void* PROTOBUF_NONNULL SetCoverSolutionResponse::PlacementNew_(
995 const void* PROTOBUF_NONNULL,
void* PROTOBUF_NONNULL mem,
996 ::google::protobuf::Arena* PROTOBUF_NULLABLE arena) {
999constexpr auto SetCoverSolutionResponse::InternalNewImpl_() {
1000 constexpr auto arena_bits = ::google::protobuf::internal::EncodePlacementArenaOffsets({
1003 InternalGetArenaOffset(
1004 ::google::protobuf::Message::internal_visibility()),
1006 if (arena_bits.has_value()) {
1007 return ::google::protobuf::internal::MessageCreator::ZeroInit(
1008 sizeof(SetCoverSolutionResponse), alignof(SetCoverSolutionResponse), *arena_bits);
1010 return ::google::protobuf::internal::MessageCreator(&SetCoverSolutionResponse::PlacementNew_,
1011 sizeof(SetCoverSolutionResponse),
1012 alignof(SetCoverSolutionResponse));
1016 return ::google::protobuf::internal::ClassDataFull{
1017 ::google::protobuf::internal::ClassData{
1022 &SetCoverSolutionResponse::MergeImpl,
1023 ::google::protobuf::Message::GetNewImpl<SetCoverSolutionResponse>(),
1024#if defined(PROTOBUF_CUSTOM_VTABLE)
1025 &SetCoverSolutionResponse::SharedDtor,
1032 &SetCoverSolutionResponse::kDescriptorMethods,
1038PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 const
1042PROTOBUF_ATTRIBUTE_WEAK const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL
1043SetCoverSolutionResponse::GetClassData()
const {
1048PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1
1049const ::_pbi::TcParseTable<3, 7, 2, 0, 2>
1050SetCoverSolutionResponse::_table_ = {
1055 offsetof(
decltype(_table_), field_lookup_table),
1057 offsetof(
decltype(_table_), field_entries),
1060 offsetof(
decltype(_table_), aux_entries),
1063 ::_pbi::TcParser::GenericFallback,
1064 #ifdef PROTOBUF_PREFETCH_PARSE_TABLE
1065 ::_pbi::TcParser::GetTable<::operations_research::SetCoverSolutionResponse>(),
1068 {::_pbi::TcParser::MiniParse, {}},
1078 {::_pbi::TcParser::FastV64P1,
1082 {::_pbi::TcParser::FastF64S1,
1086 {::_pbi::TcParser::FastF64S1,
1090 {::_pbi::TcParser::FastMtS1,
1094 {::_pbi::TcParser::FastMtS1,
1116 {::_pbi::TcParser::GetTable<::operations_research::Int128>()},
1117 {::_pbi::TcParser::GetTable<::operations_research::Int128>()},
1124 ::google::protobuf::internal::TSanWrite(&
_impl_);
1125 ::uint32_t cached_has_bits = 0;
1127 (void) cached_has_bits;
1129 cached_has_bits =
_impl_._has_bits_[0];
1130 if (BatchCheckHasBit(cached_has_bits, 0x00000007U)) {
1131 if (CheckHasBitForRepeated(cached_has_bits, 0x00000001U)) {
1134 if (CheckHasBit(cached_has_bits, 0x00000002U)) {
1135 ABSL_DCHECK(
_impl_.fingerprint_ !=
nullptr);
1136 _impl_.fingerprint_->Clear();
1138 if (CheckHasBit(cached_has_bits, 0x00000004U)) {
1139 ABSL_DCHECK(
_impl_.model_fingerprint_ !=
nullptr);
1140 _impl_.model_fingerprint_->Clear();
1143 if (BatchCheckHasBit(cached_has_bits, 0x00000078U)) {
1144 ::memset(&
_impl_.num_subsets_, 0,
static_cast<::
size_t>(
1145 reinterpret_cast<char*
>(&
_impl_.status_) -
1146 reinterpret_cast<char*
>(&
_impl_.num_subsets_)) +
sizeof(
_impl_.status_));
1148 _impl_._has_bits_.Clear();
1149 _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>();
1152#if defined(PROTOBUF_CUSTOM_VTABLE)
1154 const ::google::protobuf::MessageLite& base, ::uint8_t* PROTOBUF_NONNULL target,
1155 ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) {
1159 ::uint8_t* PROTOBUF_NONNULL target,
1160 ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream)
const {
1163 if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) {
1164 this_.CheckHasBitConsistency();
1167 ::uint32_t cached_has_bits = 0;
1168 (void)cached_has_bits;
1170 cached_has_bits = this_.
_impl_._has_bits_[0];
1172 if (CheckHasBit(cached_has_bits, 0x00000040U)) {
1173 target = stream->EnsureSpace(target);
1174 target = ::_pbi::WireFormatLite::WriteEnumToArray(
1175 1, this_._internal_status(), target);
1179 if (CheckHasBit(cached_has_bits, 0x00000008U)) {
1181 ::google::protobuf::internal::WireFormatLite::WriteInt64ToArrayWithField<2>(
1182 stream, this_._internal_num_subsets(), target);
1186 if (CheckHasBitForRepeated(cached_has_bits, 0x00000001U)) {
1188 int byte_size = this_.
_impl_._subset_cached_byte_size_.Get();
1189 if (byte_size > 0) {
1190 target = stream->WriteInt64Packed(
1191 3, this_._internal_subset(), byte_size, target);
1197 if (CheckHasBit(cached_has_bits, 0x00000010U)) {
1198 target = stream->EnsureSpace(target);
1199 target = ::_pbi::WireFormatLite::WriteDoubleToArray(
1200 4, this_._internal_cost(), target);
1204 if (CheckHasBit(cached_has_bits, 0x00000020U)) {
1205 target = stream->EnsureSpace(target);
1206 target = ::_pbi::WireFormatLite::WriteDoubleToArray(
1207 5, this_._internal_cost_lower_bound(), target);
1211 if (CheckHasBit(cached_has_bits, 0x00000002U)) {
1212 target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage(
1218 if (CheckHasBit(cached_has_bits, 0x00000004U)) {
1219 target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage(
1224 if (ABSL_PREDICT_FALSE(this_._internal_metadata_.have_unknown_fields())) {
1226 ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray(
1227 this_._internal_metadata_.
unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream);
1233#if defined(PROTOBUF_CUSTOM_VTABLE)
1241 ::size_t total_size = 0;
1243 ::uint32_t cached_has_bits = 0;
1245 (void)cached_has_bits;
1247 ::_pbi::Prefetch5LinesFrom7Lines(&this_);
1248 cached_has_bits = this_._impl_._has_bits_[0];
1249 total_size += ::absl::popcount(0x00000030U & cached_has_bits) * 9;
1250 if (BatchCheckHasBit(cached_has_bits, 0x0000004fU)) {
1252 if (CheckHasBitForRepeated(cached_has_bits, 0x00000001U)) {
1254 ::_pbi::WireFormatLite::Int64SizeWithPackedTagSize(
1255 this_._internal_subset(), 1,
1256 this_._impl_._subset_cached_byte_size_);
1259 if (CheckHasBit(cached_has_bits, 0x00000002U)) {
1261 ::google::protobuf::internal::WireFormatLite::MessageSize(*this_._impl_.fingerprint_);
1264 if (CheckHasBit(cached_has_bits, 0x00000004U)) {
1266 ::google::protobuf::internal::WireFormatLite::MessageSize(*this_._impl_.model_fingerprint_);
1269 if (CheckHasBit(cached_has_bits, 0x00000008U)) {
1270 total_size += ::_pbi::WireFormatLite::Int64SizePlusOne(
1271 this_._internal_num_subsets());
1274 if (CheckHasBit(cached_has_bits, 0x00000040U)) {
1276 ::_pbi::WireFormatLite::EnumSize(this_._internal_status());
1279 return this_.MaybeComputeUnknownFieldsSize(total_size,
1280 &this_._impl_._cached_size_);
1283void SetCoverSolutionResponse::MergeImpl(::google::protobuf::MessageLite& to_msg,
1284 const ::google::protobuf::MessageLite& from_msg) {
1288 if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) {
1289 from.CheckHasBitConsistency();
1293 ABSL_DCHECK_NE(&from, _this);
1294 ::uint32_t cached_has_bits = 0;
1295 (void)cached_has_bits;
1297 cached_has_bits = from._impl_._has_bits_[0];
1298 if (BatchCheckHasBit(cached_has_bits, 0x0000007fU)) {
1299 if (CheckHasBitForRepeated(cached_has_bits, 0x00000001U)) {
1300 _this->_internal_mutable_subset()->MergeFrom(from._internal_subset());
1302 if (CheckHasBit(cached_has_bits, 0x00000002U)) {
1303 ABSL_DCHECK(from._impl_.fingerprint_ !=
nullptr);
1304 if (_this->_impl_.fingerprint_ ==
nullptr) {
1305 _this->_impl_.fingerprint_ = ::google::protobuf::Message::CopyConstruct(arena, *from._impl_.fingerprint_);
1307 _this->_impl_.fingerprint_->MergeFrom(*from._impl_.fingerprint_);
1310 if (CheckHasBit(cached_has_bits, 0x00000004U)) {
1311 ABSL_DCHECK(from._impl_.model_fingerprint_ !=
nullptr);
1312 if (_this->_impl_.model_fingerprint_ ==
nullptr) {
1313 _this->_impl_.model_fingerprint_ = ::google::protobuf::Message::CopyConstruct(arena, *from._impl_.model_fingerprint_);
1315 _this->_impl_.model_fingerprint_->MergeFrom(*from._impl_.model_fingerprint_);
1318 if (CheckHasBit(cached_has_bits, 0x00000008U)) {
1319 _this->_impl_.num_subsets_ = from._impl_.num_subsets_;
1321 if (CheckHasBit(cached_has_bits, 0x00000010U)) {
1322 _this->_impl_.cost_ = from._impl_.cost_;
1324 if (CheckHasBit(cached_has_bits, 0x00000020U)) {
1325 _this->_impl_.cost_lower_bound_ = from._impl_.cost_lower_bound_;
1327 if (CheckHasBit(cached_has_bits, 0x00000040U)) {
1328 _this->_impl_.status_ = from._impl_.status_;
1331 _this->_impl_._has_bits_[0] |= cached_has_bits;
1332 _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(
1333 from._internal_metadata_);
1338 if (&from ==
this)
return;
1346 _internal_metadata_.InternalSwap(&other->_internal_metadata_);
1347 swap(
_impl_._has_bits_[0], other->_impl_._has_bits_[0]);
1348 _impl_.subset_.InternalSwap(&other->_impl_.subset_);
1349 ::google::protobuf::internal::memswap<
1353 reinterpret_cast<char*
>(&
_impl_.fingerprint_),
1354 reinterpret_cast<char*
>(&other->_impl_.fingerprint_));
1358 return ::google::protobuf::Message::GetMetadataImpl(GetClassData()->full());
1367PROTOBUF_ATTRIBUTE_INIT_PRIORITY2 static ::std::false_type
1370 ::std::false_type{});
1371#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[]
int GetCachedSize() const
ABSL_ATTRIBUTE_REINITIALIZES void Clear() PROTOBUF_FINAL
decltype(::std::declval< SetCoverProto >()._impl_._has_bits_) HasBits
static constexpr ::int32_t kHasBitsOffset
decltype(::std::declval< SetCoverProto_Subset >()._impl_._has_bits_) HasBits
static constexpr ::int32_t kHasBitsOffset
static constexpr auto InternalGenerateClassData_()
friend class ::google::protobuf::MessageLite
void MergeFrom(const SetCoverProto_Subset &from)
::size_t ByteSizeLong() const final
~SetCoverProto_Subset() PROTOBUF_FINAL
const ::google::protobuf::UnknownFieldSet & unknown_fields() const ABSL_ATTRIBUTE_LIFETIME_BOUND
::google::protobuf::Metadata GetMetadata() const
void CopyFrom(const SetCoverProto_Subset &from)
::uint8_t *PROTOBUF_NONNULL _InternalSerialize(::uint8_t *PROTOBUF_NONNULL target, ::google::protobuf::io::EpsCopyOutputStream *PROTOBUF_NONNULL stream) const final
friend void swap(SetCoverProto_Subset &a, SetCoverProto_Subset &b)
ABSL_ATTRIBUTE_REINITIALIZES void Clear() PROTOBUF_FINAL
friend class ::google::protobuf::MessageLite
::google::protobuf::Metadata GetMetadata() const
void MergeFrom(const SetCoverProto &from)
::size_t ByteSizeLong() const final
void CopyFrom(const SetCoverProto &from)
::uint8_t *PROTOBUF_NONNULL _InternalSerialize(::uint8_t *PROTOBUF_NONNULL target, ::google::protobuf::io::EpsCopyOutputStream *PROTOBUF_NONNULL stream) const final
const ::google::protobuf::UnknownFieldSet & unknown_fields() const ABSL_ATTRIBUTE_LIFETIME_BOUND
friend void swap(SetCoverProto &a, SetCoverProto &b)
static constexpr auto InternalGenerateClassData_()
~SetCoverProto() PROTOBUF_FINAL
ABSL_ATTRIBUTE_REINITIALIZES void Clear() PROTOBUF_FINAL
friend class ::google::protobuf::Arena
static constexpr ::int32_t kHasBitsOffset
void CopyFrom(const SetCoverSolutionResponse &from)
friend class ::google::protobuf::MessageLite
friend void swap(SetCoverSolutionResponse &a, SetCoverSolutionResponse &b)
const ::google::protobuf::UnknownFieldSet & unknown_fields() const ABSL_ATTRIBUTE_LIFETIME_BOUND
void MergeFrom(const SetCoverSolutionResponse &from)
::uint8_t *PROTOBUF_NONNULL _InternalSerialize(::uint8_t *PROTOBUF_NONNULL target, ::google::protobuf::io::EpsCopyOutputStream *PROTOBUF_NONNULL stream) const final
SetCoverSolutionResponse()
::size_t ByteSizeLong() const final
static constexpr auto InternalGenerateClassData_()
::google::protobuf::Metadata GetMetadata() const
ABSL_ATTRIBUTE_REINITIALIZES void Clear() PROTOBUF_FINAL
~SetCoverSolutionResponse() PROTOBUF_FINAL
void clear_model_fingerprint()
friend class ::google::protobuf::Arena
static constexpr ::_pbi::MigrationSchema *PROTOBUF_NULLABLE schemas
PROTOBUF_CONSTINITconst ::_pbi::DescriptorTable descriptor_table_ortools_2futil_2fint128_2eproto
PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 const::google::protobuf::internal::ClassDataFull SetCoverProto_Subset_class_data_
PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT OR_PROTO_DLL PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 SetCoverProtoDefaultTypeInternal _SetCoverProto_default_instance_
PROTOBUF_CONSTINIT const uint32_t SetCoverSolutionResponse_Status_internal_data_[]
PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT OR_PROTO_DLL PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 SetCoverProto_SubsetDefaultTypeInternal _SetCoverProto_Subset_default_instance_
SetCoverSolutionResponse_Status
PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 const::google::protobuf::internal::ClassDataFull SetCoverProto_class_data_
PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT OR_PROTO_DLL PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 SetCoverSolutionResponseDefaultTypeInternal _SetCoverSolutionResponse_default_instance_
const ::google::protobuf::EnumDescriptor *PROTOBUF_NONNULL SetCoverSolutionResponse_Status_descriptor()
PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 const::google::protobuf::internal::ClassDataFull SetCoverSolutionResponse_class_data_
::absl::once_flag descriptor_table_ortools_2fset_5fcover_2fset_5fcover_2eproto_once
static constexprconst ::_pb::ServiceDescriptor *PROTOBUF_NONNULL *PROTOBUF_NULLABLE file_level_service_descriptors_ortools_2fset_5fcover_2fset_5fcover_2eproto
const ::uint32_t TableStruct_ortools_2fset_5fcover_2fset_5fcover_2eproto::offsets[] ABSL_ATTRIBUTE_SECTION_VARIABLE(protodesc_cold)
static const ::_pb::EnumDescriptor *PROTOBUF_NONNULL file_level_enum_descriptors_ortools_2fset_5fcover_2fset_5fcover_2eproto[1]
static const ::_pbi::DescriptorTable *PROTOBUF_NONNULL const descriptor_table_ortools_2fset_5fcover_2fset_5fcover_2eproto_deps[1]
PROTOBUF_CONSTINITconst ::_pbi::DescriptorTable descriptor_table_ortools_2fset_5fcover_2fset_5fcover_2eproto
PROTOBUF_CONSTEXPR SetCoverProtoDefaultTypeInternal()
~SetCoverProtoDefaultTypeInternal()
PROTOBUF_CONSTEXPR SetCoverProto_SubsetDefaultTypeInternal()
~SetCoverProto_SubsetDefaultTypeInternal()
SetCoverProto_Subset _instance
~SetCoverSolutionResponseDefaultTypeInternal()
PROTOBUF_CONSTEXPR SetCoverSolutionResponseDefaultTypeInternal()
SetCoverSolutionResponse _instance