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 ::google::protobuf::internal::InternalVisibility visibility,
244 ::google::protobuf::Arena* PROTOBUF_NULLABLE arena,
const Impl_& from,
245 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 ::google::protobuf::internal::InternalVisibility visibility,
270 ::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 this_._internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>();
286 ABSL_DCHECK(this_.GetArena() ==
nullptr);
291 const void* PROTOBUF_NONNULL,
void* PROTOBUF_NONNULL mem,
292 ::google::protobuf::Arena* PROTOBUF_NULLABLE arena) {
296 constexpr auto arena_bits = ::google::protobuf::internal::EncodePlacementArenaOffsets({
299 InternalGetArenaOffset(
300 ::google::protobuf::Message::internal_visibility()),
302 if (arena_bits.has_value()) {
303 return ::google::protobuf::internal::MessageCreator::ZeroInit(
312 return ::google::protobuf::internal::ClassDataFull{
313 ::google::protobuf::internal::ClassData{
318 &SetCoverProto_Subset::MergeImpl,
319 ::google::protobuf::Message::GetNewImpl<SetCoverProto_Subset>(),
320#if defined(PROTOBUF_CUSTOM_VTABLE)
321 &SetCoverProto_Subset::SharedDtor,
328 &SetCoverProto_Subset::kDescriptorMethods,
334PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 const
338PROTOBUF_ATTRIBUTE_WEAK const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL
344PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1
345const ::_pbi::TcParseTable<1, 2, 0, 0, 2>
346SetCoverProto_Subset::_table_ = {
351 offsetof(
decltype(_table_), field_lookup_table),
353 offsetof(
decltype(_table_), field_entries),
356 offsetof(
decltype(_table_), field_names),
359 ::_pbi::TcParser::GenericFallback,
360 #ifdef PROTOBUF_PREFETCH_PARSE_TABLE
361 ::_pbi::TcParser::GetTable<::operations_research::SetCoverProto_Subset>(),
365 {::_pbi::TcParser::FastV64P1,
366 {18, 63, 0, PROTOBUF_FIELD_OFFSET(SetCoverProto_Subset, _impl_.element_)}},
368 {::_pbi::TcParser::FastF64S1,
375 (0 | ::_fl::kFcOptional | ::_fl::kDouble)},
378 (0 | ::_fl::kFcRepeated | ::_fl::kPackedInt64)},
386 ::google::protobuf::internal::TSanWrite(&
_impl_);
387 ::uint32_t cached_has_bits = 0;
389 (void) cached_has_bits;
393 _impl_._has_bits_.Clear();
394 _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>();
397#if defined(PROTOBUF_CUSTOM_VTABLE)
399 const ::google::protobuf::MessageLite&
base, ::uint8_t* PROTOBUF_NONNULL target,
400 ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) {
404 ::uint8_t* PROTOBUF_NONNULL target,
405 ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream)
const {
409 ::uint32_t cached_has_bits = 0;
410 (void)cached_has_bits;
412 cached_has_bits = this_.
_impl_._has_bits_[0];
414 if ((cached_has_bits & 0x00000001u) != 0) {
415 target = stream->EnsureSpace(target);
416 target = ::_pbi::WireFormatLite::WriteDoubleToArray(
417 1, this_._internal_cost(), target);
422 int byte_size = this_.
_impl_._element_cached_byte_size_.Get();
424 target = stream->WriteInt64Packed(
425 2, this_._internal_element(), byte_size, target);
429 if (ABSL_PREDICT_FALSE(this_._internal_metadata_.have_unknown_fields())) {
431 ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray(
432 this_._internal_metadata_.
unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream);
438#if defined(PROTOBUF_CUSTOM_VTABLE)
446 ::size_t total_size = 0;
448 ::uint32_t cached_has_bits = 0;
450 (void)cached_has_bits;
452 ::_pbi::Prefetch5LinesFrom7Lines(&this_);
457 ::_pbi::WireFormatLite::Int64SizeWithPackedTagSize(
458 this_._internal_element(), 1,
459 this_.
_impl_._element_cached_byte_size_);
462 cached_has_bits = this_.
_impl_._has_bits_[0];
463 total_size +=
static_cast<bool>(0x00000001u & cached_has_bits) * 9;
464 return this_.MaybeComputeUnknownFieldsSize(total_size,
465 &this_.
_impl_._cached_size_);
468void SetCoverProto_Subset::MergeImpl(::google::protobuf::MessageLite& to_msg, const ::google::protobuf::MessageLite& from_msg) {
472 ABSL_DCHECK_NE(&from, _this);
473 ::uint32_t cached_has_bits = 0;
474 (void) cached_has_bits;
476 _this->_internal_mutable_element()->MergeFrom(from._internal_element());
477 cached_has_bits = from._impl_._has_bits_[0];
478 if ((cached_has_bits & 0x00000001u) != 0) {
479 _this->_impl_.cost_ = from._impl_.cost_;
481 _this->_impl_._has_bits_[0] |= cached_has_bits;
482 _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_);
487 if (&from ==
this)
return;
493void SetCoverProto_Subset::InternalSwap(
SetCoverProto_Subset* PROTOBUF_RESTRICT PROTOBUF_NONNULL other) {
495 _internal_metadata_.InternalSwap(&other->_internal_metadata_);
496 swap(
_impl_._has_bits_[0], other->_impl_._has_bits_[0]);
497 _impl_.element_.InternalSwap(&other->_impl_.element_);
502 return ::google::protobuf::Message::GetMetadataImpl(
GetClassData()->full());
509 decltype(::std::declval<SetCoverProto>()._impl_._has_bits_);
515 ::google::protobuf::internal::TSanWrite(&
_impl_);
517 _impl_._has_bits_[0] &= ~0x00000002u;
520#if defined(PROTOBUF_CUSTOM_VTABLE)
523 : ::google::protobuf::Message(arena) {
528PROTOBUF_NDEBUG_INLINE SetCoverProto::Impl_::Impl_(
529 ::google::protobuf::internal::InternalVisibility visibility,
530 ::google::protobuf::Arena* PROTOBUF_NULLABLE arena,
const Impl_& from,
531 const ::operations_research::SetCoverProto& from_msg)
532 : _has_bits_{from._has_bits_},
534 subset_{visibility, arena, from.subset_},
535 name_(arena, from.name_) {}
538 ::google::protobuf::Arena* PROTOBUF_NULLABLE arena,
540#if defined(PROTOBUF_CUSTOM_VTABLE)
543 : ::google::protobuf::Message(arena) {
547 _internal_metadata_.
MergeFrom<::google::protobuf::UnknownFieldSet>(
548 from._internal_metadata_);
549 new (&
_impl_) Impl_(internal_visibility(), arena, from._impl_, from);
550 ::uint32_t cached_has_bits =
_impl_._has_bits_[0];
551 _impl_.fingerprint_ = ((cached_has_bits & 0x00000002u) != 0)
552 ? ::google::protobuf::Message::CopyConstruct(arena, *from._impl_.fingerprint_)
557PROTOBUF_NDEBUG_INLINE SetCoverProto::Impl_::Impl_(
558 ::google::protobuf::internal::InternalVisibility visibility,
559 ::google::protobuf::Arena* PROTOBUF_NULLABLE arena)
561 subset_{visibility, arena},
564inline void SetCoverProto::SharedCtor(::_pb::Arena* PROTOBUF_NULLABLE arena) {
565 new (&
_impl_) Impl_(internal_visibility(), arena);
572inline void SetCoverProto::SharedDtor(
MessageLite& self) {
574 this_._internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>();
575 ABSL_DCHECK(this_.GetArena() ==
nullptr);
576 this_.
_impl_.name_.Destroy();
577 delete this_.
_impl_.fingerprint_;
582 const void* PROTOBUF_NONNULL,
void* PROTOBUF_NONNULL mem,
583 ::google::protobuf::Arena* PROTOBUF_NULLABLE arena) {
587 constexpr auto arena_bits = ::google::protobuf::internal::EncodePlacementArenaOffsets({
590 InternalGetArenaOffset(
593 if (arena_bits.has_value()) {
594 return ::google::protobuf::internal::MessageCreator::CopyInit(
595 sizeof(SetCoverProto), alignof(SetCoverProto), *arena_bits);
597 return ::google::protobuf::internal::MessageCreator(&SetCoverProto::PlacementNew_,
598 sizeof(SetCoverProto),
599 alignof(SetCoverProto));
603 return ::google::protobuf::internal::ClassDataFull{
604 ::google::protobuf::internal::ClassData{
609 &SetCoverProto::MergeImpl,
610 ::google::protobuf::Message::GetNewImpl<SetCoverProto>(),
611#if defined(PROTOBUF_CUSTOM_VTABLE)
612 &SetCoverProto::SharedDtor,
619 &SetCoverProto::kDescriptorMethods,
625PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 const
629PROTOBUF_ATTRIBUTE_WEAK const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL
635PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1
636const ::_pbi::TcParseTable<2, 3, 2, 46, 2>
637SetCoverProto::_table_ = {
642 offsetof(
decltype(_table_), field_lookup_table),
644 offsetof(
decltype(_table_), field_entries),
647 offsetof(
decltype(_table_), aux_entries),
650 ::_pbi::TcParser::GenericFallback,
651 #ifdef PROTOBUF_PREFETCH_PARSE_TABLE
652 ::_pbi::TcParser::GetTable<::operations_research::SetCoverProto>(),
655 {::_pbi::TcParser::MiniParse, {}},
657 {::_pbi::TcParser::FastMtR1,
658 {10, 63, 0, PROTOBUF_FIELD_OFFSET(SetCoverProto,
_impl_.subset_)}},
660 {::_pbi::TcParser::FastUS1,
661 {18, 0, 0, PROTOBUF_FIELD_OFFSET(SetCoverProto,
_impl_.name_)}},
663 {::_pbi::TcParser::FastMtS1,
664 {26, 1, 1, PROTOBUF_FIELD_OFFSET(SetCoverProto,
_impl_.fingerprint_)}},
669 {PROTOBUF_FIELD_OFFSET(SetCoverProto,
_impl_.subset_), -1, 0,
670 (0 | ::_fl::kFcRepeated | ::_fl::kMessage | ::_fl::kTvTable)},
673 (0 | ::_fl::kFcOptional | ::_fl::kUtf8String | ::_fl::kRepAString)},
676 (0 | ::_fl::kFcOptional | ::_fl::kMessage | ::_fl::kTvTable)},
679 {::_pbi::TcParser::GetTable<::operations_research::SetCoverProto_Subset>()},
680 {::_pbi::TcParser::GetTable<::operations_research::Int128>()},
684 "operations_research.SetCoverProto"
690 ::google::protobuf::internal::TSanWrite(&
_impl_);
691 ::uint32_t cached_has_bits = 0;
693 (void) cached_has_bits;
696 cached_has_bits =
_impl_._has_bits_[0];
697 if ((cached_has_bits & 0x00000003u) != 0) {
698 if ((cached_has_bits & 0x00000001u) != 0) {
699 _impl_.name_.ClearNonDefaultToEmpty();
701 if ((cached_has_bits & 0x00000002u) != 0) {
702 ABSL_DCHECK(
_impl_.fingerprint_ !=
nullptr);
703 _impl_.fingerprint_->Clear();
706 _impl_._has_bits_.Clear();
707 _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>();
710#if defined(PROTOBUF_CUSTOM_VTABLE)
712 const ::google::protobuf::MessageLite& base, ::uint8_t* PROTOBUF_NONNULL target,
713 ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) {
714 const SetCoverProto& this_ =
static_cast<const SetCoverProto&
>(base);
717 ::uint8_t* PROTOBUF_NONNULL target,
718 ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream)
const {
722 ::uint32_t cached_has_bits = 0;
723 (void)cached_has_bits;
726 for (
unsigned i = 0, n =
static_cast<unsigned>(
727 this_._internal_subset_size());
729 const auto& repfield = this_._internal_subset().Get(i);
731 ::google::protobuf::internal::WireFormatLite::InternalWriteMessage(
732 1, repfield, repfield.GetCachedSize(),
736 cached_has_bits = this_.
_impl_._has_bits_[0];
738 if ((cached_has_bits & 0x00000001u) != 0) {
739 const ::std::string& _s = this_._internal_name();
740 ::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
741 _s.data(),
static_cast<int>(_s.length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE,
"operations_research.SetCoverProto.name");
742 target = stream->WriteStringMaybeAliased(2, _s, target);
746 if ((cached_has_bits & 0x00000002u) != 0) {
747 target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage(
748 3, *this_.
_impl_.fingerprint_, this_.
_impl_.fingerprint_->GetCachedSize(), target,
752 if (ABSL_PREDICT_FALSE(this_._internal_metadata_.have_unknown_fields())) {
754 ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray(
755 this_._internal_metadata_.
unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream);
761#if defined(PROTOBUF_CUSTOM_VTABLE)
769 ::size_t total_size = 0;
771 ::uint32_t cached_has_bits = 0;
773 (void)cached_has_bits;
775 ::_pbi::Prefetch5LinesFrom7Lines(&this_);
779 total_size += 1UL * this_._internal_subset_size();
780 for (
const auto& msg : this_._internal_subset()) {
781 total_size += ::google::protobuf::internal::WireFormatLite::MessageSize(msg);
785 cached_has_bits = this_.
_impl_._has_bits_[0];
786 if ((cached_has_bits & 0x00000003u) != 0) {
788 if ((cached_has_bits & 0x00000001u) != 0) {
789 total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize(
790 this_._internal_name());
793 if ((cached_has_bits & 0x00000002u) != 0) {
795 ::google::protobuf::internal::WireFormatLite::MessageSize(*this_.
_impl_.fingerprint_);
798 return this_.MaybeComputeUnknownFieldsSize(total_size,
799 &this_.
_impl_._cached_size_);
802void SetCoverProto::MergeImpl(::google::protobuf::MessageLite& to_msg, const ::google::protobuf::MessageLite& from_msg) {
803 auto*
const _this =
static_cast<SetCoverProto*
>(&to_msg);
804 auto& from =
static_cast<const SetCoverProto&
>(from_msg);
807 ABSL_DCHECK_NE(&from, _this);
808 ::uint32_t cached_has_bits = 0;
809 (void) cached_has_bits;
811 _this->_internal_mutable_subset()->MergeFrom(
812 from._internal_subset());
813 cached_has_bits = from._impl_._has_bits_[0];
814 if ((cached_has_bits & 0x00000003u) != 0) {
815 if ((cached_has_bits & 0x00000001u) != 0) {
816 _this->_internal_set_name(from._internal_name());
818 if ((cached_has_bits & 0x00000002u) != 0) {
819 ABSL_DCHECK(from._impl_.fingerprint_ !=
nullptr);
820 if (_this->_impl_.fingerprint_ ==
nullptr) {
821 _this->_impl_.fingerprint_ = ::google::protobuf::Message::CopyConstruct(arena, *from._impl_.fingerprint_);
823 _this->_impl_.fingerprint_->MergeFrom(*from._impl_.fingerprint_);
827 _this->_impl_._has_bits_[0] |= cached_has_bits;
828 _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_);
833 if (&from ==
this)
return;
839void SetCoverProto::InternalSwap(
SetCoverProto* PROTOBUF_RESTRICT PROTOBUF_NONNULL other) {
841 auto* arena = GetArena();
842 ABSL_DCHECK_EQ(arena, other->GetArena());
843 _internal_metadata_.InternalSwap(&other->_internal_metadata_);
844 swap(
_impl_._has_bits_[0], other->_impl_._has_bits_[0]);
845 _impl_.subset_.InternalSwap(&other->_impl_.subset_);
846 ::_pbi::ArenaStringPtr::InternalSwap(&
_impl_.name_, &other->_impl_.name_, arena);
847 swap(
_impl_.fingerprint_, other->_impl_.fingerprint_);
851 return ::google::protobuf::Message::GetMetadataImpl(
GetClassData()->full());
858 decltype(::std::declval<SetCoverSolutionResponse>()._impl_._has_bits_);
864 ::google::protobuf::internal::TSanWrite(&
_impl_);
865 if (
_impl_.fingerprint_ !=
nullptr)
_impl_.fingerprint_->Clear();
869 ::google::protobuf::internal::TSanWrite(&
_impl_);
870 if (
_impl_.model_fingerprint_ !=
nullptr)
_impl_.model_fingerprint_->Clear();
874#if defined(PROTOBUF_CUSTOM_VTABLE)
877 : ::google::protobuf::Message(arena) {
882PROTOBUF_NDEBUG_INLINE SetCoverSolutionResponse::Impl_::Impl_(
883 ::google::protobuf::internal::InternalVisibility visibility,
884 ::google::protobuf::Arena* PROTOBUF_NULLABLE arena,
const Impl_& from,
885 const ::operations_research::SetCoverSolutionResponse& from_msg)
886 : _has_bits_{from._has_bits_},
888 subset_{visibility, arena, from.subset_},
889 _subset_cached_byte_size_{0} {}
892 ::google::protobuf::Arena* PROTOBUF_NULLABLE arena,
893 const SetCoverSolutionResponse& from)
894#if defined(PROTOBUF_CUSTOM_VTABLE)
897 : ::google::protobuf::Message(arena) {
901 _internal_metadata_.
MergeFrom<::google::protobuf::UnknownFieldSet>(
902 from._internal_metadata_);
903 new (&
_impl_) Impl_(internal_visibility(), arena, from._impl_, from);
904 ::uint32_t cached_has_bits =
_impl_._has_bits_[0];
905 _impl_.fingerprint_ = ((cached_has_bits & 0x00000001u) != 0)
906 ? ::google::protobuf::Message::CopyConstruct(arena, *from._impl_.fingerprint_)
908 _impl_.model_fingerprint_ = ((cached_has_bits & 0x00000002u) != 0)
909 ? ::google::protobuf::Message::CopyConstruct(arena, *from._impl_.model_fingerprint_)
911 ::memcpy(
reinterpret_cast<char *
>(&
_impl_) +
912 offsetof(Impl_, num_subsets_),
913 reinterpret_cast<const char *
>(&from._impl_) +
914 offsetof(Impl_, num_subsets_),
915 offsetof(Impl_, status_) -
916 offsetof(Impl_, num_subsets_) +
917 sizeof(Impl_::status_));
921PROTOBUF_NDEBUG_INLINE SetCoverSolutionResponse::Impl_::Impl_(
922 ::google::protobuf::internal::InternalVisibility visibility,
923 ::google::protobuf::Arena* PROTOBUF_NULLABLE arena)
925 subset_{visibility, arena},
926 _subset_cached_byte_size_{0} {}
928inline void SetCoverSolutionResponse::SharedCtor(::_pb::Arena* PROTOBUF_NULLABLE arena) {
929 new (&
_impl_) Impl_(internal_visibility(), arena);
930 ::memset(
reinterpret_cast<char *
>(&
_impl_) +
931 offsetof(Impl_, fingerprint_),
933 offsetof(Impl_, status_) -
934 offsetof(Impl_, fingerprint_) +
935 sizeof(Impl_::status_));
941inline void SetCoverSolutionResponse::SharedDtor(MessageLite& self) {
943 this_._internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>();
944 ABSL_DCHECK(this_.GetArena() ==
nullptr);
945 delete this_.
_impl_.fingerprint_;
946 delete this_.
_impl_.model_fingerprint_;
951 const void* PROTOBUF_NONNULL,
void* PROTOBUF_NONNULL mem,
952 ::google::protobuf::Arena* PROTOBUF_NULLABLE arena) {
956 constexpr auto arena_bits = ::google::protobuf::internal::EncodePlacementArenaOffsets({
959 InternalGetArenaOffset(
962 if (arena_bits.has_value()) {
963 return ::google::protobuf::internal::MessageCreator::ZeroInit(
964 sizeof(SetCoverSolutionResponse), alignof(SetCoverSolutionResponse), *arena_bits);
966 return ::google::protobuf::internal::MessageCreator(&SetCoverSolutionResponse::PlacementNew_,
967 sizeof(SetCoverSolutionResponse),
968 alignof(SetCoverSolutionResponse));
972 return ::google::protobuf::internal::ClassDataFull{
973 ::google::protobuf::internal::ClassData{
978 &SetCoverSolutionResponse::MergeImpl,
979 ::google::protobuf::Message::GetNewImpl<SetCoverSolutionResponse>(),
980#if defined(PROTOBUF_CUSTOM_VTABLE)
981 &SetCoverSolutionResponse::SharedDtor,
988 &SetCoverSolutionResponse::kDescriptorMethods,
994PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 const
998PROTOBUF_ATTRIBUTE_WEAK const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL
1004PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1
1005const ::_pbi::TcParseTable<3, 7, 2, 0, 2>
1006SetCoverSolutionResponse::_table_ = {
1011 offsetof(
decltype(_table_), field_lookup_table),
1013 offsetof(
decltype(_table_), field_entries),
1016 offsetof(
decltype(_table_), aux_entries),
1019 ::_pbi::TcParser::GenericFallback,
1020 #ifdef PROTOBUF_PREFETCH_PARSE_TABLE
1021 ::_pbi::TcParser::GetTable<::operations_research::SetCoverSolutionResponse>(),
1024 {::_pbi::TcParser::MiniParse, {}},
1032 {::_pbi::TcParser::FastV64P1,
1035 {::_pbi::TcParser::FastF64S1,
1038 {::_pbi::TcParser::FastF64S1,
1041 {::_pbi::TcParser::FastMtS1,
1044 {::_pbi::TcParser::FastMtS1,
1051 (0 | ::_fl::kFcOptional | ::_fl::kOpenEnum)},
1054 (0 | ::_fl::kFcOptional | ::_fl::kInt64)},
1057 (0 | ::_fl::kFcRepeated | ::_fl::kPackedInt64)},
1060 (0 | ::_fl::kFcOptional | ::_fl::kDouble)},
1063 (0 | ::_fl::kFcOptional | ::_fl::kDouble)},
1066 (0 | ::_fl::kFcOptional | ::_fl::kMessage | ::_fl::kTvTable)},
1069 (0 | ::_fl::kFcOptional | ::_fl::kMessage | ::_fl::kTvTable)},
1072 {::_pbi::TcParser::GetTable<::operations_research::Int128>()},
1073 {::_pbi::TcParser::GetTable<::operations_research::Int128>()},
1080 ::google::protobuf::internal::TSanWrite(&
_impl_);
1081 ::uint32_t cached_has_bits = 0;
1083 (void) cached_has_bits;
1086 cached_has_bits =
_impl_._has_bits_[0];
1087 if ((cached_has_bits & 0x00000003u) != 0) {
1088 if ((cached_has_bits & 0x00000001u) != 0) {
1089 ABSL_DCHECK(
_impl_.fingerprint_ !=
nullptr);
1090 _impl_.fingerprint_->Clear();
1092 if ((cached_has_bits & 0x00000002u) != 0) {
1093 ABSL_DCHECK(
_impl_.model_fingerprint_ !=
nullptr);
1094 _impl_.model_fingerprint_->Clear();
1097 if ((cached_has_bits & 0x0000003cu) != 0) {
1098 ::memset(&
_impl_.num_subsets_, 0,
static_cast<::
size_t>(
1099 reinterpret_cast<char*
>(&
_impl_.status_) -
1100 reinterpret_cast<char*
>(&
_impl_.num_subsets_)) +
sizeof(
_impl_.status_));
1102 _impl_._has_bits_.Clear();
1103 _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>();
1106#if defined(PROTOBUF_CUSTOM_VTABLE)
1108 const ::google::protobuf::MessageLite& base, ::uint8_t* PROTOBUF_NONNULL target,
1109 ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) {
1113 ::uint8_t* PROTOBUF_NONNULL target,
1114 ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream)
const {
1118 ::uint32_t cached_has_bits = 0;
1119 (void)cached_has_bits;
1121 cached_has_bits = this_.
_impl_._has_bits_[0];
1123 if ((cached_has_bits & 0x00000020u) != 0) {
1124 target = stream->EnsureSpace(target);
1125 target = ::_pbi::WireFormatLite::WriteEnumToArray(
1126 1, this_._internal_status(), target);
1130 if ((cached_has_bits & 0x00000004u) != 0) {
1132 ::google::protobuf::internal::WireFormatLite::WriteInt64ToArrayWithField<2>(
1133 stream, this_._internal_num_subsets(), target);
1138 int byte_size = this_.
_impl_._subset_cached_byte_size_.Get();
1139 if (byte_size > 0) {
1140 target = stream->WriteInt64Packed(
1141 3, this_._internal_subset(), byte_size, target);
1146 if ((cached_has_bits & 0x00000008u) != 0) {
1147 target = stream->EnsureSpace(target);
1148 target = ::_pbi::WireFormatLite::WriteDoubleToArray(
1149 4, this_._internal_cost(), target);
1153 if ((cached_has_bits & 0x00000010u) != 0) {
1154 target = stream->EnsureSpace(target);
1155 target = ::_pbi::WireFormatLite::WriteDoubleToArray(
1156 5, this_._internal_cost_lower_bound(), target);
1160 if ((cached_has_bits & 0x00000001u) != 0) {
1161 target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage(
1167 if ((cached_has_bits & 0x00000002u) != 0) {
1168 target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage(
1173 if (ABSL_PREDICT_FALSE(this_._internal_metadata_.have_unknown_fields())) {
1175 ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray(
1176 this_._internal_metadata_.
unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream);
1182#if defined(PROTOBUF_CUSTOM_VTABLE)
1190 ::size_t total_size = 0;
1192 ::uint32_t cached_has_bits = 0;
1194 (void)cached_has_bits;
1196 ::_pbi::Prefetch5LinesFrom7Lines(&this_);
1201 ::_pbi::WireFormatLite::Int64SizeWithPackedTagSize(
1202 this_._internal_subset(), 1,
1203 this_._impl_._subset_cached_byte_size_);
1206 cached_has_bits = this_._impl_._has_bits_[0];
1207 total_size += ::absl::popcount(0x00000018u & cached_has_bits) * 9;
1208 if ((cached_has_bits & 0x00000027u) != 0) {
1210 if ((cached_has_bits & 0x00000001u) != 0) {
1212 ::google::protobuf::internal::WireFormatLite::MessageSize(*this_._impl_.fingerprint_);
1215 if ((cached_has_bits & 0x00000002u) != 0) {
1217 ::google::protobuf::internal::WireFormatLite::MessageSize(*this_._impl_.model_fingerprint_);
1220 if ((cached_has_bits & 0x00000004u) != 0) {
1221 total_size += ::_pbi::WireFormatLite::Int64SizePlusOne(
1222 this_._internal_num_subsets());
1225 if ((cached_has_bits & 0x00000020u) != 0) {
1227 ::_pbi::WireFormatLite::EnumSize(this_._internal_status());
1230 return this_.MaybeComputeUnknownFieldsSize(total_size,
1231 &this_._impl_._cached_size_);
1234void SetCoverSolutionResponse::MergeImpl(::google::protobuf::MessageLite& to_msg, const ::google::protobuf::MessageLite& from_msg) {
1239 ABSL_DCHECK_NE(&from, _this);
1240 ::uint32_t cached_has_bits = 0;
1241 (void) cached_has_bits;
1243 _this->_internal_mutable_subset()->MergeFrom(from._internal_subset());
1244 cached_has_bits = from._impl_._has_bits_[0];
1245 if ((cached_has_bits & 0x0000003fu) != 0) {
1246 if ((cached_has_bits & 0x00000001u) != 0) {
1247 ABSL_DCHECK(from._impl_.fingerprint_ !=
nullptr);
1248 if (_this->_impl_.fingerprint_ ==
nullptr) {
1249 _this->_impl_.fingerprint_ = ::google::protobuf::Message::CopyConstruct(arena, *from._impl_.fingerprint_);
1251 _this->_impl_.fingerprint_->MergeFrom(*from._impl_.fingerprint_);
1254 if ((cached_has_bits & 0x00000002u) != 0) {
1255 ABSL_DCHECK(from._impl_.model_fingerprint_ !=
nullptr);
1256 if (_this->_impl_.model_fingerprint_ ==
nullptr) {
1257 _this->_impl_.model_fingerprint_ = ::google::protobuf::Message::CopyConstruct(arena, *from._impl_.model_fingerprint_);
1259 _this->_impl_.model_fingerprint_->MergeFrom(*from._impl_.model_fingerprint_);
1262 if ((cached_has_bits & 0x00000004u) != 0) {
1263 _this->_impl_.num_subsets_ = from._impl_.num_subsets_;
1265 if ((cached_has_bits & 0x00000008u) != 0) {
1266 _this->_impl_.cost_ = from._impl_.cost_;
1268 if ((cached_has_bits & 0x00000010u) != 0) {
1269 _this->_impl_.cost_lower_bound_ = from._impl_.cost_lower_bound_;
1271 if ((cached_has_bits & 0x00000020u) != 0) {
1272 _this->_impl_.status_ = from._impl_.status_;
1275 _this->_impl_._has_bits_[0] |= cached_has_bits;
1276 _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_);
1281 if (&from ==
this)
return;
1289 _internal_metadata_.InternalSwap(&other->_internal_metadata_);
1290 swap(
_impl_._has_bits_[0], other->_impl_._has_bits_[0]);
1291 _impl_.subset_.InternalSwap(&other->_impl_.subset_);
1292 ::google::protobuf::internal::memswap<
1296 reinterpret_cast<char*
>(&
_impl_.fingerprint_),
1297 reinterpret_cast<char*
>(&other->_impl_.fingerprint_));
1301 return ::google::protobuf::Message::GetMetadataImpl(
GetClassData()->full());
1310PROTOBUF_ATTRIBUTE_INIT_PRIORITY2 static ::std::false_type
1313 ::std::false_type{});
1314#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[]
int GetCachedSize() const
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
static constexpr auto InternalNewImpl_()
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
const ::google::protobuf::internal::ClassData *PROTOBUF_NONNULL GetClassData() const PROTOBUF_FINAL
friend class ::google::protobuf::Arena
static void *PROTOBUF_NONNULL PlacementNew_(const void *PROTOBUF_NONNULL, void *PROTOBUF_NONNULL mem, ::google::protobuf::Arena *PROTOBUF_NULLABLE arena)
::google::protobuf::Metadata GetMetadata() const
void MergeFrom(const SetCoverProto &from)
::size_t ByteSizeLong() const final
const ::google::protobuf::internal::ClassData *PROTOBUF_NONNULL GetClassData() const PROTOBUF_FINAL
static void *PROTOBUF_NONNULL PlacementNew_(const void *PROTOBUF_NONNULL, void *PROTOBUF_NONNULL mem, ::google::protobuf::Arena *PROTOBUF_NULLABLE arena)
void CopyFrom(const SetCoverProto &from)
::uint8_t *PROTOBUF_NONNULL _InternalSerialize(::uint8_t *PROTOBUF_NONNULL target, ::google::protobuf::io::EpsCopyOutputStream *PROTOBUF_NONNULL stream) const final
static constexpr auto InternalNewImpl_()
const ::google::protobuf::UnknownFieldSet & unknown_fields() const ABSL_ATTRIBUTE_LIFETIME_BOUND
static constexpr auto InternalGenerateClassData_()
~SetCoverProto() PROTOBUF_FINAL
ABSL_ATTRIBUTE_REINITIALIZES void Clear() PROTOBUF_FINAL
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
static void *PROTOBUF_NONNULL PlacementNew_(const void *PROTOBUF_NONNULL, void *PROTOBUF_NONNULL mem, ::google::protobuf::Arena *PROTOBUF_NULLABLE arena)
SetCoverSolutionResponse()
const ::google::protobuf::internal::ClassData *PROTOBUF_NONNULL GetClassData() const PROTOBUF_FINAL
::size_t ByteSizeLong() const final
static constexpr auto InternalGenerateClassData_()
::google::protobuf::Metadata GetMetadata() const
static constexpr auto InternalNewImpl_()
ABSL_ATTRIBUTE_REINITIALIZES void Clear() PROTOBUF_FINAL
~SetCoverSolutionResponse() PROTOBUF_FINAL
void clear_model_fingerprint()
friend class ::google::protobuf::Arena
PROTOBUF_CONSTINITconst ::_pbi::DescriptorTable descriptor_table_ortools_2futil_2fint128_2eproto
In SWIG mode, we don't want anything besides these top-level includes.
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_
static constexpr ::_pbi::MigrationSchema *PROTOBUF_NULLABLE schemas
::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