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;
30inline constexpr SparseBasisStatusVector::Impl_::Impl_(
31 ::_pbi::ConstantInitialized) noexcept
34 _ids_cached_byte_size_{0},
36 _values_cached_byte_size_{0} {}
40#if defined(PROTOBUF_CUSTOM_VTABLE)
43 : ::google::protobuf::Message(),
45 _impl_(::_pbi::ConstantInitialized()) {
55PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT OR_PROTO_DLL
59#if defined(PROTOBUF_CUSTOM_VTABLE)
62 : PrimalSolutionProto_AuxiliaryObjectiveValuesEntry_DoNotUse::MapEntry() {
73PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT OR_PROTO_DLL
76inline constexpr PrimalSolutionProto::Impl_::Impl_(
77 ::_pbi::ConstantInitialized) noexcept
79 variable_values_{
nullptr},
82 auxiliary_objective_values_{} {}
86#if defined(PROTOBUF_CUSTOM_VTABLE)
89 : ::google::protobuf::Message(),
91 _impl_(::_pbi::ConstantInitialized()) {
101PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT OR_PROTO_DLL
104inline constexpr PrimalRayProto::Impl_::Impl_(
105 ::_pbi::ConstantInitialized) noexcept
107 variable_values_{
nullptr} {}
111#if defined(PROTOBUF_CUSTOM_VTABLE)
114 : ::google::protobuf::Message(),
116 _impl_(::_pbi::ConstantInitialized()) {
126PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT OR_PROTO_DLL
129inline constexpr DualSolutionProto::Impl_::Impl_(
130 ::_pbi::ConstantInitialized) noexcept
132 dual_values_{
nullptr},
133 reduced_costs_{
nullptr},
134 quadratic_dual_values_{
nullptr},
140#if defined(PROTOBUF_CUSTOM_VTABLE)
143 : ::google::protobuf::Message(),
145 _impl_(::_pbi::ConstantInitialized()) {
155PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT OR_PROTO_DLL
158inline constexpr DualRayProto::Impl_::Impl_(
159 ::_pbi::ConstantInitialized) noexcept
161 dual_values_{
nullptr},
162 reduced_costs_{
nullptr} {}
166#if defined(PROTOBUF_CUSTOM_VTABLE)
169 : ::google::protobuf::Message(),
171 _impl_(::_pbi::ConstantInitialized()) {
181PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT OR_PROTO_DLL
184inline constexpr BasisProto::Impl_::Impl_(
185 ::_pbi::ConstantInitialized) noexcept
187 constraint_status_{
nullptr},
188 variable_status_{
nullptr},
193#if defined(PROTOBUF_CUSTOM_VTABLE)
196 : ::google::protobuf::Message(),
198 _impl_(::_pbi::ConstantInitialized()) {
208PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT OR_PROTO_DLL
211inline constexpr SolutionProto::Impl_::Impl_(
212 ::_pbi::ConstantInitialized) noexcept
214 primal_solution_{
nullptr},
215 dual_solution_{
nullptr},
220#if defined(PROTOBUF_CUSTOM_VTABLE)
223 : ::google::protobuf::Message(),
225 _impl_(::_pbi::ConstantInitialized()) {
235PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT OR_PROTO_DLL
239static const ::_pb::EnumDescriptor* PROTOBUF_NONNULL
241static constexpr const ::_pb::ServiceDescriptor* PROTOBUF_NONNULL* PROTOBUF_NULLABLE
316static const ::_pbi::MigrationSchema
339 "\n\037ortools/math_opt/solution.proto\022\034opera"
340 "tions_research.math_opt\032(ortools/math_op"
341 "t/sparse_containers.proto\"\203\003\n\023PrimalSolu"
342 "tionProto\022N\n\017variable_values\030\001 \001(\01325.ope"
343 "rations_research.math_opt.SparseDoubleVe"
344 "ctorProto\022\027\n\017objective_value\030\002 \001(\001\022s\n\032au"
345 "xiliary_objective_values\030\004 \003(\0132O.operati"
346 "ons_research.math_opt.PrimalSolutionProt"
347 "o.AuxiliaryObjectiveValuesEntry\022M\n\022feasi"
348 "bility_status\030\003 \001(\01621.operations_researc"
349 "h.math_opt.SolutionStatusProto\032\?\n\035Auxili"
350 "aryObjectiveValuesEntry\022\013\n\003key\030\001 \001(\003\022\r\n\005"
351 "value\030\002 \001(\001:\0028\001\"`\n\016PrimalRayProto\022N\n\017var"
352 "iable_values\030\001 \001(\01325.operations_research"
353 ".math_opt.SparseDoubleVectorProto\"\204\003\n\021Du"
354 "alSolutionProto\022J\n\013dual_values\030\001 \001(\01325.o"
355 "perations_research.math_opt.SparseDouble"
356 "VectorProto\022T\n\025quadratic_dual_values\030\005 \001"
357 "(\01325.operations_research.math_opt.Sparse"
358 "DoubleVectorProto\022L\n\rreduced_costs\030\002 \001(\013"
359 "25.operations_research.math_opt.SparseDo"
360 "ubleVectorProto\022\034\n\017objective_value\030\003 \001(\001"
361 "H\000\210\001\001\022M\n\022feasibility_status\030\004 \001(\01621.oper"
362 "ations_research.math_opt.SolutionStatusP"
363 "rotoB\022\n\020_objective_value\"\250\001\n\014DualRayProt"
364 "o\022J\n\013dual_values\030\001 \001(\01325.operations_rese"
365 "arch.math_opt.SparseDoubleVectorProto\022L\n"
366 "\rreduced_costs\030\002 \001(\01325.operations_resear"
367 "ch.math_opt.SparseDoubleVectorProto\"f\n\027S"
368 "parseBasisStatusVector\022\013\n\003ids\030\001 \003(\003\022>\n\006v"
369 "alues\030\002 \003(\0162..operations_research.math_o"
370 "pt.BasisStatusProto\"\201\002\n\nBasisProto\022P\n\021co"
371 "nstraint_status\030\001 \001(\01325.operations_resea"
372 "rch.math_opt.SparseBasisStatusVector\022N\n\017"
373 "variable_status\030\002 \001(\01325.operations_resea"
374 "rch.math_opt.SparseBasisStatusVector\022Q\n\026"
375 "basic_dual_feasibility\030\003 \001(\01621.operation"
376 "s_research.math_opt.SolutionStatusProto\""
377 "\233\002\n\rSolutionProto\022O\n\017primal_solution\030\001 \001"
378 "(\01321.operations_research.math_opt.Primal"
379 "SolutionProtoH\000\210\001\001\022K\n\rdual_solution\030\002 \001("
380 "\0132/.operations_research.math_opt.DualSol"
381 "utionProtoH\001\210\001\001\022<\n\005basis\030\003 \001(\0132(.operati"
382 "ons_research.math_opt.BasisProtoH\002\210\001\001B\022\n"
383 "\020_primal_solutionB\020\n\016_dual_solutionB\010\n\006_"
384 "basis*\226\001\n\023SolutionStatusProto\022\037\n\033SOLUTIO"
385 "N_STATUS_UNSPECIFIED\020\000\022 \n\034SOLUTION_STATU"
386 "S_UNDETERMINED\020\001\022\034\n\030SOLUTION_STATUS_FEAS"
387 "IBLE\020\002\022\036\n\032SOLUTION_STATUS_INFEASIBLE\020\003*\277"
388 "\001\n\020BasisStatusProto\022\034\n\030BASIS_STATUS_UNSP"
389 "ECIFIED\020\000\022\025\n\021BASIS_STATUS_FREE\020\001\022\037\n\033BASI"
390 "S_STATUS_AT_LOWER_BOUND\020\002\022\037\n\033BASIS_STATU"
391 "S_AT_UPPER_BOUND\020\003\022\034\n\030BASIS_STATUS_FIXED"
392 "_VALUE\020\004\022\026\n\022BASIS_STATUS_BASIC\020\005B\036\n\032com."
393 "google.ortools.mathoptP\001b\006proto3"
395static const ::_pbi::DescriptorTable* PROTOBUF_NONNULL
const
404 descriptor_table_protodef_ortools_2fmath_5fopt_2fsolution_2eproto,
405 "ortools/math_opt/solution.proto",
432#if defined(PROTOBUF_CUSTOM_VTABLE)
435PrimalSolutionProto_AuxiliaryObjectiveValuesEntry_DoNotUse::PrimalSolutionProto_AuxiliaryObjectiveValuesEntry_DoNotUse(::google::protobuf::Arena* PROTOBUF_NULLABLE arena)
436 : SuperType(arena, PrimalSolutionProto_AuxiliaryObjectiveValuesEntry_DoNotUse_class_data_.base()) {}
438PrimalSolutionProto_AuxiliaryObjectiveValuesEntry_DoNotUse::PrimalSolutionProto_AuxiliaryObjectiveValuesEntry_DoNotUse() : SuperType() {}
441inline void* PROTOBUF_NONNULL PrimalSolutionProto_AuxiliaryObjectiveValuesEntry_DoNotUse::PlacementNew_(
442 const void* PROTOBUF_NONNULL,
void* PROTOBUF_NONNULL mem,
443 ::google::protobuf::Arena* PROTOBUF_NULLABLE arena) {
446constexpr auto PrimalSolutionProto_AuxiliaryObjectiveValuesEntry_DoNotUse::InternalNewImpl_() {
451 return ::google::protobuf::internal::ClassDataFull{
452 ::google::protobuf::internal::ClassData{
457 &PrimalSolutionProto_AuxiliaryObjectiveValuesEntry_DoNotUse::MergeImpl,
458 ::google::protobuf::Message::GetNewImpl<PrimalSolutionProto_AuxiliaryObjectiveValuesEntry_DoNotUse>(),
459#if defined(PROTOBUF_CUSTOM_VTABLE)
460 &PrimalSolutionProto_AuxiliaryObjectiveValuesEntry_DoNotUse::SharedDtor,
461 static_cast<void (::google::protobuf::MessageLite::*)()
>(&PrimalSolutionProto_AuxiliaryObjectiveValuesEntry_DoNotUse::ClearImpl),
462 ::google::protobuf::Message::ByteSizeLongImpl, ::google::protobuf::Message::_InternalSerializeImpl
468 &PrimalSolutionProto_AuxiliaryObjectiveValuesEntry_DoNotUse::kDescriptorMethods,
474PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 const
478PROTOBUF_ATTRIBUTE_WEAK const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL
479PrimalSolutionProto_AuxiliaryObjectiveValuesEntry_DoNotUse::GetClassData()
const {
484PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1
485const ::_pbi::TcParseTable<1, 2, 0, 0, 2>
486PrimalSolutionProto_AuxiliaryObjectiveValuesEntry_DoNotUse::_table_ = {
488 PROTOBUF_FIELD_OFFSET(PrimalSolutionProto_AuxiliaryObjectiveValuesEntry_DoNotUse, _impl_._has_bits_),
491 offsetof(
decltype(_table_), field_lookup_table),
493 offsetof(
decltype(_table_), field_entries),
496 offsetof(
decltype(_table_), field_names),
499 ::_pbi::TcParser::DiscardEverythingFallback,
500 #ifdef PROTOBUF_PREFETCH_PARSE_TABLE
501 ::_pbi::TcParser::GetTable<::operations_research::math_opt::PrimalSolutionProto_AuxiliaryObjectiveValuesEntry_DoNotUse>(),
505 {::_pbi::TcParser::FastF64S1,
507 PROTOBUF_FIELD_OFFSET(PrimalSolutionProto_AuxiliaryObjectiveValuesEntry_DoNotUse, _impl_.value_)}},
529 decltype(::std::declval<PrimalSolutionProto>()._impl_._has_bits_);
535 ::google::protobuf::internal::TSanWrite(&
_impl_);
536 if (
_impl_.variable_values_ !=
nullptr)
_impl_.variable_values_->Clear();
537 ClearHasBit(
_impl_._has_bits_[0],
541#if defined(PROTOBUF_CUSTOM_VTABLE)
544 : ::google::protobuf::Message(arena) {
549PROTOBUF_NDEBUG_INLINE PrimalSolutionProto::Impl_::Impl_(
550 [[maybe_unused]] ::google::protobuf::internal::InternalVisibility visibility,
551 [[maybe_unused]] ::google::protobuf::Arena* PROTOBUF_NULLABLE arena,
const Impl_& from,
552 [[maybe_unused]] const ::operations_research::math_opt::PrimalSolutionProto& from_msg)
553 : _has_bits_{from._has_bits_},
555 auxiliary_objective_values_{visibility, arena, from.auxiliary_objective_values_} {}
558 ::google::protobuf::Arena* PROTOBUF_NULLABLE arena,
559 const PrimalSolutionProto& from)
560#if defined(PROTOBUF_CUSTOM_VTABLE)
563 : ::google::protobuf::Message(arena) {
565 PrimalSolutionProto*
const _this =
this;
567 _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(
568 from._internal_metadata_);
569 new (&_impl_) Impl_(internal_visibility(), arena, from._impl_, from);
570 ::uint32_t cached_has_bits = _impl_._has_bits_[0];
571 _impl_.variable_values_ = (CheckHasBit(cached_has_bits, 0x00000001U))
572 ? ::google::protobuf::Message::CopyConstruct(arena, *from._impl_.variable_values_)
574 ::memcpy(
reinterpret_cast<char*
>(&_impl_) +
575 offsetof(Impl_, objective_value_),
576 reinterpret_cast<const char*
>(&from._impl_) +
577 offsetof(Impl_, objective_value_),
578 offsetof(Impl_, feasibility_status_) -
579 offsetof(Impl_, objective_value_) +
580 sizeof(Impl_::feasibility_status_));
584PROTOBUF_NDEBUG_INLINE PrimalSolutionProto::Impl_::Impl_(
585 [[maybe_unused]] ::google::protobuf::internal::InternalVisibility visibility,
586 [[maybe_unused]] ::google::protobuf::Arena* PROTOBUF_NULLABLE arena)
588 auxiliary_objective_values_{visibility, arena} {}
590inline void PrimalSolutionProto::SharedCtor(::_pb::Arena* PROTOBUF_NULLABLE arena) {
591 new (&
_impl_) Impl_(internal_visibility(), arena);
592 ::memset(
reinterpret_cast<char*
>(&
_impl_) +
593 offsetof(Impl_, variable_values_),
595 offsetof(Impl_, feasibility_status_) -
596 offsetof(Impl_, variable_values_) +
597 sizeof(Impl_::feasibility_status_));
603inline void PrimalSolutionProto::SharedDtor(MessageLite& self) {
605 if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) {
606 this_.CheckHasBitConsistency();
608 this_._internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>();
609 ABSL_DCHECK(this_.GetArena() ==
nullptr);
610 delete this_.
_impl_.variable_values_;
614inline void* PROTOBUF_NONNULL PrimalSolutionProto::PlacementNew_(
615 const void* PROTOBUF_NONNULL,
void* PROTOBUF_NONNULL mem,
616 ::google::protobuf::Arena* PROTOBUF_NULLABLE arena) {
619constexpr auto PrimalSolutionProto::InternalNewImpl_() {
620 constexpr auto arena_bits = ::google::protobuf::internal::EncodePlacementArenaOffsets({
623 InternalGetArenaOffset(
624 ::google::protobuf::Message::internal_visibility()),
626 if (arena_bits.has_value()) {
627 return ::google::protobuf::internal::MessageCreator::CopyInit(
628 sizeof(PrimalSolutionProto), alignof(PrimalSolutionProto), *arena_bits);
630 return ::google::protobuf::internal::MessageCreator(&PrimalSolutionProto::PlacementNew_,
631 sizeof(PrimalSolutionProto),
632 alignof(PrimalSolutionProto));
636 return ::google::protobuf::internal::ClassDataFull{
637 ::google::protobuf::internal::ClassData{
642 &PrimalSolutionProto::MergeImpl,
643 ::google::protobuf::Message::GetNewImpl<PrimalSolutionProto>(),
644#if defined(PROTOBUF_CUSTOM_VTABLE)
645 &PrimalSolutionProto::SharedDtor,
652 &PrimalSolutionProto::kDescriptorMethods,
658PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 const
662PROTOBUF_ATTRIBUTE_WEAK const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL
663PrimalSolutionProto::GetClassData()
const {
668PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1
669const ::_pbi::TcParseTable<2, 4, 2, 0, 2>
670PrimalSolutionProto::_table_ = {
675 offsetof(
decltype(_table_), field_lookup_table),
677 offsetof(
decltype(_table_), field_entries),
680 offsetof(
decltype(_table_), aux_entries),
683 ::_pbi::TcParser::GenericFallback,
684 #ifdef PROTOBUF_PREFETCH_PARSE_TABLE
685 ::_pbi::TcParser::GetTable<::operations_research::math_opt::PrimalSolutionProto>(),
688 {::_pbi::TcParser::MiniParse, {}},
690 {::_pbi::TcParser::FastMtS1,
694 {::_pbi::TcParser::FastF64S1,
714 {::_pbi::TcParser::GetTable<::operations_research::math_opt::SparseDoubleVectorProto>()},
715 {::_pbi::TcParser::GetMapAuxInfo(
723 ::google::protobuf::internal::TSanWrite(&
_impl_);
724 ::uint32_t cached_has_bits = 0;
726 (void) cached_has_bits;
728 cached_has_bits =
_impl_._has_bits_[0];
729 if (CheckHasBit(cached_has_bits, 0x00000001U)) {
730 ABSL_DCHECK(
_impl_.variable_values_ !=
nullptr);
731 _impl_.variable_values_->Clear();
733 if (BatchCheckHasBit(cached_has_bits, 0x0000000eU)) {
734 ::memset(&
_impl_.objective_value_, 0,
static_cast<::
size_t>(
735 reinterpret_cast<char*
>(&
_impl_.feasibility_status_) -
736 reinterpret_cast<char*
>(&
_impl_.objective_value_)) +
sizeof(
_impl_.feasibility_status_));
737 if (CheckHasBitForRepeated(cached_has_bits, 0x00000008U)) {
738 _impl_.auxiliary_objective_values_.Clear();
741 _impl_._has_bits_.Clear();
742 _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>();
745#if defined(PROTOBUF_CUSTOM_VTABLE)
747 const ::google::protobuf::MessageLite& base, ::uint8_t* PROTOBUF_NONNULL target,
748 ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) {
752 ::uint8_t* PROTOBUF_NONNULL target,
753 ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream)
const {
756 if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) {
757 this_.CheckHasBitConsistency();
760 ::uint32_t cached_has_bits = 0;
761 (void)cached_has_bits;
763 cached_has_bits = this_.
_impl_._has_bits_[0];
765 if (CheckHasBit(cached_has_bits, 0x00000001U)) {
766 target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage(
772 if (CheckHasBit(cached_has_bits, 0x00000002U)) {
773 if (::absl::bit_cast<::uint64_t>(this_._internal_objective_value()) != 0) {
774 target = stream->EnsureSpace(target);
775 target = ::_pbi::WireFormatLite::WriteDoubleToArray(
776 2, this_._internal_objective_value(), target);
781 if (CheckHasBit(cached_has_bits, 0x00000004U)) {
782 if (this_._internal_feasibility_status() != 0) {
783 target = stream->EnsureSpace(target);
784 target = ::_pbi::WireFormatLite::WriteEnumToArray(
785 3, this_._internal_feasibility_status(), target);
790 if (CheckHasBitForRepeated(cached_has_bits, 0x00000008U)) {
791 if (!this_._internal_auxiliary_objective_values().empty()) {
792 using MapType = ::google::protobuf::Map<::int64_t, double>;
793 using WireHelper = _pbi::MapEntryFuncs<::int64_t, double,
794 _pbi::WireFormatLite::TYPE_INT64,
795 _pbi::WireFormatLite::TYPE_DOUBLE>;
796 const auto& field = this_._internal_auxiliary_objective_values();
798 if (stream->IsSerializationDeterministic() && field.size() > 1) {
799 for (
const auto& entry : ::google::protobuf::internal::MapSorterFlat<MapType>(field)) {
800 target = WireHelper::InternalSerialize(
801 4, entry.first, entry.second, target, stream);
804 for (
const auto& entry : field) {
805 target = WireHelper::InternalSerialize(
806 4, entry.first, entry.second, target, stream);
812 if (ABSL_PREDICT_FALSE(this_._internal_metadata_.have_unknown_fields())) {
814 ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray(
815 this_._internal_metadata_.
unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream);
821#if defined(PROTOBUF_CUSTOM_VTABLE)
829 ::size_t total_size = 0;
831 ::uint32_t cached_has_bits = 0;
833 (void)cached_has_bits;
835 ::_pbi::Prefetch5LinesFrom7Lines(&this_);
836 cached_has_bits = this_.
_impl_._has_bits_[0];
837 if (BatchCheckHasBit(cached_has_bits, 0x0000000fU)) {
839 if (CheckHasBit(cached_has_bits, 0x00000001U)) {
841 ::google::protobuf::internal::WireFormatLite::MessageSize(*this_.
_impl_.variable_values_);
844 if (CheckHasBit(cached_has_bits, 0x00000002U)) {
845 if (::absl::bit_cast<::uint64_t>(this_._internal_objective_value()) != 0) {
850 if (CheckHasBit(cached_has_bits, 0x00000004U)) {
851 if (this_._internal_feasibility_status() != 0) {
853 ::_pbi::WireFormatLite::EnumSize(this_._internal_feasibility_status());
857 if (CheckHasBitForRepeated(cached_has_bits, 0x00000008U)) {
859 1 * ::google::protobuf::internal::FromIntSize(this_._internal_auxiliary_objective_values_size());
860 for (
const auto& entry : this_._internal_auxiliary_objective_values()) {
861 total_size += _pbi::MapEntryFuncs<::int64_t, double,
862 _pbi::WireFormatLite::TYPE_INT64,
863 _pbi::WireFormatLite::TYPE_DOUBLE>
::ByteSizeLong(entry.first, entry.second);
867 return this_.MaybeComputeUnknownFieldsSize(total_size,
868 &this_.
_impl_._cached_size_);
871void PrimalSolutionProto::MergeImpl(::google::protobuf::MessageLite& to_msg,
872 const ::google::protobuf::MessageLite& from_msg) {
876 if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) {
877 from.CheckHasBitConsistency();
881 ABSL_DCHECK_NE(&from, _this);
882 ::uint32_t cached_has_bits = 0;
883 (void)cached_has_bits;
885 cached_has_bits = from._impl_._has_bits_[0];
886 if (BatchCheckHasBit(cached_has_bits, 0x0000000fU)) {
887 if (CheckHasBit(cached_has_bits, 0x00000001U)) {
888 ABSL_DCHECK(from._impl_.variable_values_ !=
nullptr);
889 if (_this->_impl_.variable_values_ ==
nullptr) {
890 _this->_impl_.variable_values_ = ::google::protobuf::Message::CopyConstruct(arena, *from._impl_.variable_values_);
892 _this->_impl_.variable_values_->MergeFrom(*from._impl_.variable_values_);
895 if (CheckHasBit(cached_has_bits, 0x00000002U)) {
896 if (::absl::bit_cast<::uint64_t>(from._internal_objective_value()) != 0) {
897 _this->_impl_.objective_value_ = from._impl_.objective_value_;
900 if (CheckHasBit(cached_has_bits, 0x00000004U)) {
901 if (from._internal_feasibility_status() != 0) {
902 _this->_impl_.feasibility_status_ = from._impl_.feasibility_status_;
905 if (CheckHasBitForRepeated(cached_has_bits, 0x00000008U)) {
906 _this->_impl_.auxiliary_objective_values_.MergeFrom(from._impl_.auxiliary_objective_values_);
909 _this->_impl_._has_bits_[0] |= cached_has_bits;
910 _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(
911 from._internal_metadata_);
916 if (&from ==
this)
return;
922void PrimalSolutionProto::InternalSwap(
PrimalSolutionProto* PROTOBUF_RESTRICT PROTOBUF_NONNULL other) {
924 _internal_metadata_.InternalSwap(&other->_internal_metadata_);
925 swap(
_impl_._has_bits_[0], other->_impl_._has_bits_[0]);
926 ::google::protobuf::internal::memswap<
930 reinterpret_cast<char*
>(&
_impl_.variable_values_),
931 reinterpret_cast<char*
>(&other->_impl_.variable_values_));
932 _impl_.auxiliary_objective_values_.InternalSwap(&other->_impl_.auxiliary_objective_values_);
936 return ::google::protobuf::Message::GetMetadataImpl(GetClassData()->full());
943 decltype(::std::declval<PrimalRayProto>()._impl_._has_bits_);
949 ::google::protobuf::internal::TSanWrite(&
_impl_);
950 if (
_impl_.variable_values_ !=
nullptr)
_impl_.variable_values_->Clear();
955#if defined(PROTOBUF_CUSTOM_VTABLE)
958 : ::google::protobuf::Message(arena) {
963PROTOBUF_NDEBUG_INLINE PrimalRayProto::Impl_::Impl_(
964 [[maybe_unused]] ::google::protobuf::internal::InternalVisibility visibility,
965 [[maybe_unused]] ::google::protobuf::Arena* PROTOBUF_NULLABLE arena,
const Impl_& from,
966 [[maybe_unused]] const ::operations_research::math_opt::PrimalRayProto& from_msg)
967 : _has_bits_{from._has_bits_},
971 ::google::protobuf::Arena* PROTOBUF_NULLABLE arena,
972 const PrimalRayProto& from)
973#if defined(PROTOBUF_CUSTOM_VTABLE)
976 : ::google::protobuf::Message(arena) {
978 PrimalRayProto*
const _this =
this;
980 _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(
981 from._internal_metadata_);
982 new (&_impl_) Impl_(internal_visibility(), arena, from._impl_, from);
983 ::uint32_t cached_has_bits = _impl_._has_bits_[0];
984 _impl_.variable_values_ = (CheckHasBit(cached_has_bits, 0x00000001U))
985 ? ::google::protobuf::Message::CopyConstruct(arena, *from._impl_.variable_values_)
990PROTOBUF_NDEBUG_INLINE PrimalRayProto::Impl_::Impl_(
991 [[maybe_unused]] ::google::protobuf::internal::InternalVisibility visibility,
992 [[maybe_unused]] ::google::protobuf::Arena* PROTOBUF_NULLABLE arena)
993 : _cached_size_{0} {}
995inline void PrimalRayProto::SharedCtor(::_pb::Arena* PROTOBUF_NULLABLE arena) {
996 new (&
_impl_) Impl_(internal_visibility(), arena);
997 _impl_.variable_values_ = {};
1003inline void PrimalRayProto::SharedDtor(MessageLite& self) {
1005 if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) {
1006 this_.CheckHasBitConsistency();
1008 this_._internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>();
1009 ABSL_DCHECK(this_.GetArena() ==
nullptr);
1010 delete this_.
_impl_.variable_values_;
1014inline void* PROTOBUF_NONNULL PrimalRayProto::PlacementNew_(
1015 const void* PROTOBUF_NONNULL,
void* PROTOBUF_NONNULL mem,
1016 ::google::protobuf::Arena* PROTOBUF_NULLABLE arena) {
1019constexpr auto PrimalRayProto::InternalNewImpl_() {
1020 return ::google::protobuf::internal::MessageCreator::ZeroInit(
sizeof(
PrimalRayProto),
1024 return ::google::protobuf::internal::ClassDataFull{
1025 ::google::protobuf::internal::ClassData{
1030 &PrimalRayProto::MergeImpl,
1031 ::google::protobuf::Message::GetNewImpl<PrimalRayProto>(),
1032#if defined(PROTOBUF_CUSTOM_VTABLE)
1033 &PrimalRayProto::SharedDtor,
1040 &PrimalRayProto::kDescriptorMethods,
1046PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 const
1050PROTOBUF_ATTRIBUTE_WEAK const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL
1051PrimalRayProto::GetClassData()
const {
1056PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1
1057const ::_pbi::TcParseTable<0, 1, 1, 0, 2>
1058PrimalRayProto::_table_ = {
1060 PROTOBUF_FIELD_OFFSET(PrimalRayProto, _impl_._has_bits_),
1063 offsetof(
decltype(_table_), field_lookup_table),
1065 offsetof(
decltype(_table_), field_entries),
1068 offsetof(
decltype(_table_), aux_entries),
1071 ::_pbi::TcParser::GenericFallback,
1072 #ifdef PROTOBUF_PREFETCH_PARSE_TABLE
1073 ::_pbi::TcParser::GetTable<::operations_research::math_opt::PrimalRayProto>(),
1077 {::_pbi::TcParser::FastMtS1,
1079 PROTOBUF_FIELD_OFFSET(PrimalRayProto, _impl_.variable_values_)}},
1084 {PROTOBUF_FIELD_OFFSET(
PrimalRayProto, _impl_.variable_values_), _Internal::kHasBitsOffset + 0, 0, (0 | ::_fl::kFcOptional | ::_fl::kMessage | ::_fl::kTvTable)},
1087 {::_pbi::TcParser::GetTable<::operations_research::math_opt::SparseDoubleVectorProto>()},
1094 ::google::protobuf::internal::TSanWrite(&
_impl_);
1095 ::uint32_t cached_has_bits = 0;
1097 (void) cached_has_bits;
1099 cached_has_bits =
_impl_._has_bits_[0];
1100 if (CheckHasBit(cached_has_bits, 0x00000001U)) {
1101 ABSL_DCHECK(
_impl_.variable_values_ !=
nullptr);
1102 _impl_.variable_values_->Clear();
1104 _impl_._has_bits_.Clear();
1105 _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>();
1108#if defined(PROTOBUF_CUSTOM_VTABLE)
1110 const ::google::protobuf::MessageLite&
base, ::uint8_t* PROTOBUF_NONNULL target,
1111 ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) {
1115 ::uint8_t* PROTOBUF_NONNULL target,
1116 ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream)
const {
1119 if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) {
1120 this_.CheckHasBitConsistency();
1123 ::uint32_t cached_has_bits = 0;
1124 (void)cached_has_bits;
1126 cached_has_bits = this_.
_impl_._has_bits_[0];
1128 if (CheckHasBit(cached_has_bits, 0x00000001U)) {
1129 target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage(
1134 if (ABSL_PREDICT_FALSE(this_._internal_metadata_.have_unknown_fields())) {
1136 ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray(
1137 this_._internal_metadata_.
unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream);
1143#if defined(PROTOBUF_CUSTOM_VTABLE)
1151 ::size_t total_size = 0;
1153 ::uint32_t cached_has_bits = 0;
1155 (void)cached_has_bits;
1159 cached_has_bits = this_._impl_._has_bits_[0];
1160 if (CheckHasBit(cached_has_bits, 0x00000001U)) {
1162 ::google::protobuf::internal::WireFormatLite::MessageSize(*this_._impl_.variable_values_);
1165 return this_.MaybeComputeUnknownFieldsSize(total_size,
1166 &this_._impl_._cached_size_);
1169void PrimalRayProto::MergeImpl(::google::protobuf::MessageLite& to_msg,
1170 const ::google::protobuf::MessageLite& from_msg) {
1174 if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) {
1175 from.CheckHasBitConsistency();
1177 ::google::protobuf::Arena* arena = _this->GetArena();
1179 ABSL_DCHECK_NE(&from, _this);
1180 ::uint32_t cached_has_bits = 0;
1181 (void)cached_has_bits;
1183 cached_has_bits = from._impl_._has_bits_[0];
1184 if (CheckHasBit(cached_has_bits, 0x00000001U)) {
1185 ABSL_DCHECK(from._impl_.variable_values_ !=
nullptr);
1186 if (_this->_impl_.variable_values_ ==
nullptr) {
1187 _this->_impl_.variable_values_ = ::google::protobuf::Message::CopyConstruct(arena, *from._impl_.variable_values_);
1189 _this->_impl_.variable_values_->MergeFrom(*from._impl_.variable_values_);
1192 _this->_impl_._has_bits_[0] |= cached_has_bits;
1193 _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(
1194 from._internal_metadata_);
1199 if (&from ==
this)
return;
1205void PrimalRayProto::InternalSwap(
PrimalRayProto* PROTOBUF_RESTRICT PROTOBUF_NONNULL other) {
1207 _internal_metadata_.InternalSwap(&other->_internal_metadata_);
1208 swap(
_impl_._has_bits_[0], other->_impl_._has_bits_[0]);
1213 return ::google::protobuf::Message::GetMetadataImpl(GetClassData()->full());
1220 decltype(::std::declval<DualSolutionProto>()._impl_._has_bits_);
1226 ::google::protobuf::internal::TSanWrite(&
_impl_);
1227 if (
_impl_.dual_values_ !=
nullptr)
_impl_.dual_values_->Clear();
1228 ClearHasBit(
_impl_._has_bits_[0],
1232 ::google::protobuf::internal::TSanWrite(&
_impl_);
1233 if (
_impl_.quadratic_dual_values_ !=
nullptr)
_impl_.quadratic_dual_values_->Clear();
1234 ClearHasBit(
_impl_._has_bits_[0],
1238 ::google::protobuf::internal::TSanWrite(&
_impl_);
1239 if (
_impl_.reduced_costs_ !=
nullptr)
_impl_.reduced_costs_->Clear();
1240 ClearHasBit(
_impl_._has_bits_[0],
1244#if defined(PROTOBUF_CUSTOM_VTABLE)
1247 : ::google::protobuf::Message(arena) {
1252PROTOBUF_NDEBUG_INLINE DualSolutionProto::Impl_::Impl_(
1253 [[maybe_unused]] ::google::protobuf::internal::InternalVisibility visibility,
1254 [[maybe_unused]] ::google::protobuf::Arena* PROTOBUF_NULLABLE arena,
const Impl_& from,
1255 [[maybe_unused]] const ::operations_research::math_opt::DualSolutionProto& from_msg)
1256 : _has_bits_{from._has_bits_},
1260 ::google::protobuf::Arena* PROTOBUF_NULLABLE arena,
1261 const DualSolutionProto& from)
1262#if defined(PROTOBUF_CUSTOM_VTABLE)
1265 : ::google::protobuf::Message(arena) {
1267 DualSolutionProto*
const _this =
this;
1269 _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(
1270 from._internal_metadata_);
1271 new (&_impl_) Impl_(internal_visibility(), arena, from._impl_, from);
1272 ::uint32_t cached_has_bits = _impl_._has_bits_[0];
1273 _impl_.dual_values_ = (CheckHasBit(cached_has_bits, 0x00000001U))
1274 ? ::google::protobuf::Message::CopyConstruct(arena, *from._impl_.dual_values_)
1276 _impl_.reduced_costs_ = (CheckHasBit(cached_has_bits, 0x00000002U))
1277 ? ::google::protobuf::Message::CopyConstruct(arena, *from._impl_.reduced_costs_)
1279 _impl_.quadratic_dual_values_ = (CheckHasBit(cached_has_bits, 0x00000004U))
1280 ? ::google::protobuf::Message::CopyConstruct(arena, *from._impl_.quadratic_dual_values_)
1282 ::memcpy(
reinterpret_cast<char*
>(&_impl_) +
1283 offsetof(Impl_, objective_value_),
1284 reinterpret_cast<const char*
>(&from._impl_) +
1285 offsetof(Impl_, objective_value_),
1286 offsetof(Impl_, feasibility_status_) -
1287 offsetof(Impl_, objective_value_) +
1288 sizeof(Impl_::feasibility_status_));
1292PROTOBUF_NDEBUG_INLINE DualSolutionProto::Impl_::Impl_(
1293 [[maybe_unused]] ::google::protobuf::internal::InternalVisibility visibility,
1294 [[maybe_unused]] ::google::protobuf::Arena* PROTOBUF_NULLABLE arena)
1295 : _cached_size_{0} {}
1297inline void DualSolutionProto::SharedCtor(::_pb::Arena* PROTOBUF_NULLABLE arena) {
1298 new (&
_impl_) Impl_(internal_visibility(), arena);
1299 ::memset(
reinterpret_cast<char*
>(&
_impl_) +
1300 offsetof(Impl_, dual_values_),
1302 offsetof(Impl_, feasibility_status_) -
1303 offsetof(Impl_, dual_values_) +
1304 sizeof(Impl_::feasibility_status_));
1312 if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) {
1313 this_.CheckHasBitConsistency();
1315 this_._internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>();
1316 ABSL_DCHECK(this_.GetArena() ==
nullptr);
1317 delete this_.
_impl_.dual_values_;
1318 delete this_.
_impl_.reduced_costs_;
1319 delete this_.
_impl_.quadratic_dual_values_;
1323inline void* PROTOBUF_NONNULL DualSolutionProto::PlacementNew_(
1324 const void* PROTOBUF_NONNULL,
void* PROTOBUF_NONNULL mem,
1325 ::google::protobuf::Arena* PROTOBUF_NULLABLE arena) {
1328constexpr auto DualSolutionProto::InternalNewImpl_() {
1329 return ::google::protobuf::internal::MessageCreator::ZeroInit(
sizeof(
DualSolutionProto),
1333 return ::google::protobuf::internal::ClassDataFull{
1334 ::google::protobuf::internal::ClassData{
1339 &DualSolutionProto::MergeImpl,
1340 ::google::protobuf::Message::GetNewImpl<DualSolutionProto>(),
1341#if defined(PROTOBUF_CUSTOM_VTABLE)
1342 &DualSolutionProto::SharedDtor,
1349 &DualSolutionProto::kDescriptorMethods,
1355PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 const
1359PROTOBUF_ATTRIBUTE_WEAK const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL
1360DualSolutionProto::GetClassData()
const {
1365PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1
1366const ::_pbi::TcParseTable<3, 5, 3, 0, 2>
1367DualSolutionProto::_table_ = {
1369 PROTOBUF_FIELD_OFFSET(DualSolutionProto, _impl_._has_bits_),
1372 offsetof(
decltype(_table_), field_lookup_table),
1374 offsetof(
decltype(_table_), field_entries),
1377 offsetof(
decltype(_table_), aux_entries),
1380 ::_pbi::TcParser::GenericFallback,
1381 #ifdef PROTOBUF_PREFETCH_PARSE_TABLE
1382 ::_pbi::TcParser::GetTable<::operations_research::math_opt::DualSolutionProto>(),
1385 {::_pbi::TcParser::MiniParse, {}},
1387 {::_pbi::TcParser::FastMtS1,
1391 {::_pbi::TcParser::FastMtS1,
1395 {::_pbi::TcParser::FastF64S1,
1399 {::_pbi::TcParser::SingularVarintNoZag1<::uint32_t, offsetof(
DualSolutionProto, _impl_.feasibility_status_), 4>(),
1403 {::_pbi::TcParser::FastMtS1,
1406 {::_pbi::TcParser::MiniParse, {}},
1407 {::_pbi::TcParser::MiniParse, {}},
1412 {PROTOBUF_FIELD_OFFSET(
DualSolutionProto, _impl_.dual_values_), _Internal::kHasBitsOffset + 0, 0, (0 | ::_fl::kFcOptional | ::_fl::kMessage | ::_fl::kTvTable)},
1414 {PROTOBUF_FIELD_OFFSET(
DualSolutionProto, _impl_.reduced_costs_), _Internal::kHasBitsOffset + 1, 1, (0 | ::_fl::kFcOptional | ::_fl::kMessage | ::_fl::kTvTable)},
1416 {PROTOBUF_FIELD_OFFSET(
DualSolutionProto, _impl_.objective_value_), _Internal::kHasBitsOffset + 3, 0, (0 | ::_fl::kFcOptional | ::_fl::kDouble)},
1418 {PROTOBUF_FIELD_OFFSET(
DualSolutionProto, _impl_.feasibility_status_), _Internal::kHasBitsOffset + 4, 0, (0 | ::_fl::kFcOptional | ::_fl::kOpenEnum)},
1420 {PROTOBUF_FIELD_OFFSET(
DualSolutionProto, _impl_.quadratic_dual_values_), _Internal::kHasBitsOffset + 2, 2, (0 | ::_fl::kFcOptional | ::_fl::kMessage | ::_fl::kTvTable)},
1423 {::_pbi::TcParser::GetTable<::operations_research::math_opt::SparseDoubleVectorProto>()},
1424 {::_pbi::TcParser::GetTable<::operations_research::math_opt::SparseDoubleVectorProto>()},
1425 {::_pbi::TcParser::GetTable<::operations_research::math_opt::SparseDoubleVectorProto>()},
1432 ::google::protobuf::internal::TSanWrite(&
_impl_);
1433 ::uint32_t cached_has_bits = 0;
1435 (void) cached_has_bits;
1437 cached_has_bits =
_impl_._has_bits_[0];
1438 if (BatchCheckHasBit(cached_has_bits, 0x00000007U)) {
1439 if (CheckHasBit(cached_has_bits, 0x00000001U)) {
1440 ABSL_DCHECK(
_impl_.dual_values_ !=
nullptr);
1441 _impl_.dual_values_->Clear();
1443 if (CheckHasBit(cached_has_bits, 0x00000002U)) {
1444 ABSL_DCHECK(
_impl_.reduced_costs_ !=
nullptr);
1445 _impl_.reduced_costs_->Clear();
1447 if (CheckHasBit(cached_has_bits, 0x00000004U)) {
1448 ABSL_DCHECK(
_impl_.quadratic_dual_values_ !=
nullptr);
1449 _impl_.quadratic_dual_values_->Clear();
1452 if (BatchCheckHasBit(cached_has_bits, 0x00000018U)) {
1453 ::memset(&
_impl_.objective_value_, 0,
static_cast<::
size_t>(
1454 reinterpret_cast<char*
>(&
_impl_.feasibility_status_) -
1455 reinterpret_cast<char*
>(&
_impl_.objective_value_)) +
sizeof(
_impl_.feasibility_status_));
1457 _impl_._has_bits_.Clear();
1458 _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>();
1461#if defined(PROTOBUF_CUSTOM_VTABLE)
1463 const ::google::protobuf::MessageLite& base, ::uint8_t* PROTOBUF_NONNULL target,
1464 ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) {
1468 ::uint8_t* PROTOBUF_NONNULL target,
1469 ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream)
const {
1472 if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) {
1473 this_.CheckHasBitConsistency();
1476 ::uint32_t cached_has_bits = 0;
1477 (void)cached_has_bits;
1479 cached_has_bits = this_._impl_._has_bits_[0];
1481 if (CheckHasBit(cached_has_bits, 0x00000001U)) {
1482 target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage(
1483 1, *this_._impl_.dual_values_, this_._impl_.dual_values_->GetCachedSize(), target,
1488 if (CheckHasBit(cached_has_bits, 0x00000002U)) {
1489 target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage(
1490 2, *this_._impl_.reduced_costs_, this_._impl_.reduced_costs_->GetCachedSize(), target,
1495 if (CheckHasBit(cached_has_bits, 0x00000008U)) {
1496 target = stream->EnsureSpace(target);
1497 target = ::_pbi::WireFormatLite::WriteDoubleToArray(
1498 3, this_._internal_objective_value(), target);
1502 if (CheckHasBit(cached_has_bits, 0x00000010U)) {
1503 if (this_._internal_feasibility_status() != 0) {
1504 target = stream->EnsureSpace(target);
1505 target = ::_pbi::WireFormatLite::WriteEnumToArray(
1506 4, this_._internal_feasibility_status(), target);
1511 if (CheckHasBit(cached_has_bits, 0x00000004U)) {
1512 target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage(
1513 5, *this_._impl_.quadratic_dual_values_, this_._impl_.quadratic_dual_values_->GetCachedSize(), target,
1517 if (ABSL_PREDICT_FALSE(this_._internal_metadata_.have_unknown_fields())) {
1519 ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray(
1520 this_._internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream);
1526#if defined(PROTOBUF_CUSTOM_VTABLE)
1534 ::size_t total_size = 0;
1536 ::uint32_t cached_has_bits = 0;
1538 (void)cached_has_bits;
1540 ::_pbi::Prefetch5LinesFrom7Lines(&this_);
1541 cached_has_bits = this_._impl_._has_bits_[0];
1542 total_size +=
static_cast<bool>(0x00000008U & cached_has_bits) * 9;
1543 if (BatchCheckHasBit(cached_has_bits, 0x00000017U)) {
1545 if (CheckHasBit(cached_has_bits, 0x00000001U)) {
1547 ::google::protobuf::internal::WireFormatLite::MessageSize(*this_._impl_.dual_values_);
1550 if (CheckHasBit(cached_has_bits, 0x00000002U)) {
1552 ::google::protobuf::internal::WireFormatLite::MessageSize(*this_._impl_.reduced_costs_);
1555 if (CheckHasBit(cached_has_bits, 0x00000004U)) {
1557 ::google::protobuf::internal::WireFormatLite::MessageSize(*this_._impl_.quadratic_dual_values_);
1560 if (CheckHasBit(cached_has_bits, 0x00000010U)) {
1561 if (this_._internal_feasibility_status() != 0) {
1563 ::_pbi::WireFormatLite::EnumSize(this_._internal_feasibility_status());
1567 return this_.MaybeComputeUnknownFieldsSize(total_size,
1568 &this_._impl_._cached_size_);
1571void DualSolutionProto::MergeImpl(::google::protobuf::MessageLite& to_msg,
1572 const ::google::protobuf::MessageLite& from_msg) {
1576 if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) {
1577 from.CheckHasBitConsistency();
1581 ABSL_DCHECK_NE(&from, _this);
1582 ::uint32_t cached_has_bits = 0;
1583 (void)cached_has_bits;
1585 cached_has_bits = from._impl_._has_bits_[0];
1586 if (BatchCheckHasBit(cached_has_bits, 0x0000001fU)) {
1587 if (CheckHasBit(cached_has_bits, 0x00000001U)) {
1588 ABSL_DCHECK(from._impl_.dual_values_ !=
nullptr);
1589 if (_this->_impl_.dual_values_ ==
nullptr) {
1590 _this->_impl_.dual_values_ = ::google::protobuf::Message::CopyConstruct(arena, *from._impl_.dual_values_);
1592 _this->_impl_.dual_values_->MergeFrom(*from._impl_.dual_values_);
1595 if (CheckHasBit(cached_has_bits, 0x00000002U)) {
1596 ABSL_DCHECK(from._impl_.reduced_costs_ !=
nullptr);
1597 if (_this->_impl_.reduced_costs_ ==
nullptr) {
1598 _this->_impl_.reduced_costs_ = ::google::protobuf::Message::CopyConstruct(arena, *from._impl_.reduced_costs_);
1600 _this->_impl_.reduced_costs_->MergeFrom(*from._impl_.reduced_costs_);
1603 if (CheckHasBit(cached_has_bits, 0x00000004U)) {
1604 ABSL_DCHECK(from._impl_.quadratic_dual_values_ !=
nullptr);
1605 if (_this->_impl_.quadratic_dual_values_ ==
nullptr) {
1606 _this->_impl_.quadratic_dual_values_ = ::google::protobuf::Message::CopyConstruct(arena, *from._impl_.quadratic_dual_values_);
1608 _this->_impl_.quadratic_dual_values_->MergeFrom(*from._impl_.quadratic_dual_values_);
1611 if (CheckHasBit(cached_has_bits, 0x00000008U)) {
1612 _this->_impl_.objective_value_ = from._impl_.objective_value_;
1614 if (CheckHasBit(cached_has_bits, 0x00000010U)) {
1615 if (from._internal_feasibility_status() != 0) {
1616 _this->_impl_.feasibility_status_ = from._impl_.feasibility_status_;
1620 _this->_impl_._has_bits_[0] |= cached_has_bits;
1621 _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(
1622 from._internal_metadata_);
1627 if (&from ==
this)
return;
1633void DualSolutionProto::InternalSwap(
DualSolutionProto* PROTOBUF_RESTRICT PROTOBUF_NONNULL other) {
1635 _internal_metadata_.InternalSwap(&other->_internal_metadata_);
1636 swap(
_impl_._has_bits_[0], other->_impl_._has_bits_[0]);
1637 ::google::protobuf::internal::memswap<
1641 reinterpret_cast<char*
>(&
_impl_.dual_values_),
1642 reinterpret_cast<char*
>(&other->_impl_.dual_values_));
1646 return ::google::protobuf::Message::GetMetadataImpl(GetClassData()->full());
1653 decltype(::std::declval<DualRayProto>()._impl_._has_bits_);
1654 static constexpr ::int32_t kHasBitsOffset =
1659 ::google::protobuf::internal::TSanWrite(&
_impl_);
1660 if (
_impl_.dual_values_ !=
nullptr)
_impl_.dual_values_->Clear();
1661 ClearHasBit(
_impl_._has_bits_[0],
1665 ::google::protobuf::internal::TSanWrite(&
_impl_);
1667 ClearHasBit(
_impl_._has_bits_[0],
1671#if defined(PROTOBUF_CUSTOM_VTABLE)
1674 : ::google::protobuf::Message(arena) {
1679PROTOBUF_NDEBUG_INLINE DualRayProto::Impl_::Impl_(
1680 [[maybe_unused]] ::google::protobuf::internal::InternalVisibility visibility,
1681 [[maybe_unused]] ::google::protobuf::Arena* PROTOBUF_NULLABLE arena,
const Impl_& from,
1682 [[maybe_unused]] const ::operations_research::math_opt::DualRayProto& from_msg)
1683 : _has_bits_{from._has_bits_},
1687 ::google::protobuf::Arena* PROTOBUF_NULLABLE arena,
1688 const DualRayProto& from)
1689#if defined(PROTOBUF_CUSTOM_VTABLE)
1692 : ::google::protobuf::Message(arena) {
1694 DualRayProto*
const _this =
this;
1696 _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(
1697 from._internal_metadata_);
1698 new (&_impl_) Impl_(internal_visibility(), arena, from._impl_, from);
1699 ::uint32_t cached_has_bits = _impl_._has_bits_[0];
1700 _impl_.dual_values_ = (CheckHasBit(cached_has_bits, 0x00000001U))
1701 ? ::google::protobuf::Message::CopyConstruct(arena, *from._impl_.dual_values_)
1703 _impl_.reduced_costs_ = (CheckHasBit(cached_has_bits, 0x00000002U))
1704 ? ::google::protobuf::Message::CopyConstruct(arena, *from._impl_.reduced_costs_)
1709PROTOBUF_NDEBUG_INLINE DualRayProto::Impl_::Impl_(
1710 [[maybe_unused]] ::google::protobuf::internal::InternalVisibility visibility,
1711 [[maybe_unused]] ::google::protobuf::Arena* PROTOBUF_NULLABLE arena)
1712 : _cached_size_{0} {}
1714inline void DualRayProto::SharedCtor(::_pb::Arena* PROTOBUF_NULLABLE arena) {
1715 new (&
_impl_) Impl_(internal_visibility(), arena);
1716 ::memset(
reinterpret_cast<char*
>(&
_impl_) +
1717 offsetof(Impl_, dual_values_),
1719 offsetof(Impl_, reduced_costs_) -
1720 offsetof(Impl_, dual_values_) +
1721 sizeof(Impl_::reduced_costs_));
1727inline void DualRayProto::SharedDtor(MessageLite& self) {
1729 if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) {
1730 this_.CheckHasBitConsistency();
1732 this_._internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>();
1733 ABSL_DCHECK(this_.GetArena() ==
nullptr);
1734 delete this_.
_impl_.dual_values_;
1735 delete this_.
_impl_.reduced_costs_;
1739inline void* PROTOBUF_NONNULL DualRayProto::PlacementNew_(
1740 const void* PROTOBUF_NONNULL,
void* PROTOBUF_NONNULL mem,
1741 ::google::protobuf::Arena* PROTOBUF_NULLABLE arena) {
1744constexpr auto DualRayProto::InternalNewImpl_() {
1745 return ::google::protobuf::internal::MessageCreator::ZeroInit(
sizeof(
DualRayProto),
1749 return ::google::protobuf::internal::ClassDataFull{
1750 ::google::protobuf::internal::ClassData{
1755 &DualRayProto::MergeImpl,
1756 ::google::protobuf::Message::GetNewImpl<DualRayProto>(),
1757#if defined(PROTOBUF_CUSTOM_VTABLE)
1758 &DualRayProto::SharedDtor,
1765 &DualRayProto::kDescriptorMethods,
1771PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 const
1775PROTOBUF_ATTRIBUTE_WEAK const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL
1776DualRayProto::GetClassData()
const {
1781PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1
1782const ::_pbi::TcParseTable<1, 2, 2, 0, 2>
1783DualRayProto::_table_ = {
1785 PROTOBUF_FIELD_OFFSET(DualRayProto, _impl_._has_bits_),
1788 offsetof(
decltype(_table_), field_lookup_table),
1790 offsetof(
decltype(_table_), field_entries),
1793 offsetof(
decltype(_table_), aux_entries),
1796 ::_pbi::TcParser::GenericFallback,
1797 #ifdef PROTOBUF_PREFETCH_PARSE_TABLE
1798 ::_pbi::TcParser::GetTable<::operations_research::math_opt::DualRayProto>(),
1802 {::_pbi::TcParser::FastMtS1,
1804 PROTOBUF_FIELD_OFFSET(DualRayProto, _impl_.reduced_costs_)}},
1806 {::_pbi::TcParser::FastMtS1,
1808 PROTOBUF_FIELD_OFFSET(
DualRayProto, _impl_.dual_values_)}},
1813 {PROTOBUF_FIELD_OFFSET(
DualRayProto, _impl_.dual_values_), _Internal::kHasBitsOffset + 0, 0, (0 | ::_fl::kFcOptional | ::_fl::kMessage | ::_fl::kTvTable)},
1815 {PROTOBUF_FIELD_OFFSET(
DualRayProto, _impl_.reduced_costs_), _Internal::kHasBitsOffset + 1, 1, (0 | ::_fl::kFcOptional | ::_fl::kMessage | ::_fl::kTvTable)},
1818 {::_pbi::TcParser::GetTable<::operations_research::math_opt::SparseDoubleVectorProto>()},
1819 {::_pbi::TcParser::GetTable<::operations_research::math_opt::SparseDoubleVectorProto>()},
1826 ::google::protobuf::internal::TSanWrite(&
_impl_);
1827 ::uint32_t cached_has_bits = 0;
1829 (void) cached_has_bits;
1831 cached_has_bits =
_impl_._has_bits_[0];
1832 if (BatchCheckHasBit(cached_has_bits, 0x00000003U)) {
1833 if (CheckHasBit(cached_has_bits, 0x00000001U)) {
1834 ABSL_DCHECK(
_impl_.dual_values_ !=
nullptr);
1835 _impl_.dual_values_->Clear();
1837 if (CheckHasBit(cached_has_bits, 0x00000002U)) {
1838 ABSL_DCHECK(
_impl_.reduced_costs_ !=
nullptr);
1839 _impl_.reduced_costs_->Clear();
1842 _impl_._has_bits_.Clear();
1843 _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>();
1846#if defined(PROTOBUF_CUSTOM_VTABLE)
1848 const ::google::protobuf::MessageLite&
base, ::uint8_t* PROTOBUF_NONNULL target,
1849 ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) {
1853 ::uint8_t* PROTOBUF_NONNULL target,
1854 ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream)
const {
1857 if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) {
1858 this_.CheckHasBitConsistency();
1861 ::uint32_t cached_has_bits = 0;
1862 (void)cached_has_bits;
1864 cached_has_bits = this_.
_impl_._has_bits_[0];
1866 if (CheckHasBit(cached_has_bits, 0x00000001U)) {
1867 target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage(
1868 1, *this_._impl_.dual_values_, this_._impl_.dual_values_->GetCachedSize(), target,
1873 if (CheckHasBit(cached_has_bits, 0x00000002U)) {
1874 target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage(
1875 2, *this_._impl_.reduced_costs_, this_._impl_.reduced_costs_->GetCachedSize(), target,
1879 if (ABSL_PREDICT_FALSE(this_._internal_metadata_.have_unknown_fields())) {
1881 ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray(
1882 this_._internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream);
1888#if defined(PROTOBUF_CUSTOM_VTABLE)
1896 ::size_t total_size = 0;
1898 ::uint32_t cached_has_bits = 0;
1900 (void)cached_has_bits;
1902 ::_pbi::Prefetch5LinesFrom7Lines(&this_);
1903 cached_has_bits = this_._impl_._has_bits_[0];
1904 if (BatchCheckHasBit(cached_has_bits, 0x00000003U)) {
1906 if (CheckHasBit(cached_has_bits, 0x00000001U)) {
1908 ::google::protobuf::internal::WireFormatLite::MessageSize(*this_._impl_.dual_values_);
1911 if (CheckHasBit(cached_has_bits, 0x00000002U)) {
1913 ::google::protobuf::internal::WireFormatLite::MessageSize(*this_._impl_.reduced_costs_);
1916 return this_.MaybeComputeUnknownFieldsSize(total_size,
1917 &this_._impl_._cached_size_);
1920void DualRayProto::MergeImpl(::google::protobuf::MessageLite& to_msg,
1921 const ::google::protobuf::MessageLite& from_msg) {
1924 auto& from =
static_cast<const DualRayProto&
>(from_msg);
1925 if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) {
1926 from.CheckHasBitConsistency();
1930 ABSL_DCHECK_NE(&from, _this);
1931 ::uint32_t cached_has_bits = 0;
1932 (void)cached_has_bits;
1934 cached_has_bits = from._impl_._has_bits_[0];
1935 if (BatchCheckHasBit(cached_has_bits, 0x00000003U)) {
1936 if (CheckHasBit(cached_has_bits, 0x00000001U)) {
1937 ABSL_DCHECK(from._impl_.dual_values_ !=
nullptr);
1938 if (_this->_impl_.dual_values_ ==
nullptr) {
1939 _this->_impl_.dual_values_ = ::google::protobuf::Message::CopyConstruct(arena, *from._impl_.dual_values_);
1941 _this->_impl_.dual_values_->MergeFrom(*from._impl_.dual_values_);
1944 if (CheckHasBit(cached_has_bits, 0x00000002U)) {
1945 ABSL_DCHECK(from._impl_.reduced_costs_ !=
nullptr);
1946 if (_this->_impl_.reduced_costs_ ==
nullptr) {
1947 _this->_impl_.reduced_costs_ = ::google::protobuf::Message::CopyConstruct(arena, *from._impl_.reduced_costs_);
1949 _this->_impl_.reduced_costs_->MergeFrom(*from._impl_.reduced_costs_);
1953 _this->_impl_._has_bits_[0] |= cached_has_bits;
1954 _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(
1955 from._internal_metadata_);
1960 if (&from ==
this)
return;
1966void DualRayProto::InternalSwap(
DualRayProto* PROTOBUF_RESTRICT PROTOBUF_NONNULL other) {
1968 _internal_metadata_.InternalSwap(&other->_internal_metadata_);
1969 swap(
_impl_._has_bits_[0], other->_impl_._has_bits_[0]);
1970 ::google::protobuf::internal::memswap<
1974 reinterpret_cast<char*
>(&
_impl_.dual_values_),
1975 reinterpret_cast<char*
>(&other->_impl_.dual_values_));
1979 return ::google::protobuf::Message::GetMetadataImpl(GetClassData()->full());
1986 decltype(::std::declval<SparseBasisStatusVector>()._impl_._has_bits_);
1987 static constexpr ::int32_t kHasBitsOffset =
1992#if defined(PROTOBUF_CUSTOM_VTABLE)
1995 : ::google::protobuf::Message(arena) {
2000PROTOBUF_NDEBUG_INLINE SparseBasisStatusVector::Impl_::Impl_(
2001 [[maybe_unused]] ::google::protobuf::internal::InternalVisibility visibility,
2002 [[maybe_unused]] ::google::protobuf::Arena* PROTOBUF_NULLABLE arena,
const Impl_& from,
2003 [[maybe_unused]] const ::operations_research::math_opt::SparseBasisStatusVector& from_msg)
2004 : _has_bits_{from._has_bits_},
2006 ids_{visibility, arena, from.ids_},
2007 _ids_cached_byte_size_{0},
2008 values_{visibility, arena, from.values_},
2009 _values_cached_byte_size_{0} {}
2012 ::google::protobuf::Arena* PROTOBUF_NULLABLE arena,
2014#if defined(PROTOBUF_CUSTOM_VTABLE)
2017 : ::google::protobuf::Message(arena) {
2021 _internal_metadata_.
MergeFrom<::google::protobuf::UnknownFieldSet>(
2022 from._internal_metadata_);
2023 new (&
_impl_) Impl_(internal_visibility(), arena, from._impl_, from);
2027PROTOBUF_NDEBUG_INLINE SparseBasisStatusVector::Impl_::Impl_(
2028 [[maybe_unused]] ::google::protobuf::internal::InternalVisibility visibility,
2029 [[maybe_unused]] ::google::protobuf::Arena* PROTOBUF_NULLABLE arena)
2031 ids_{visibility, arena},
2032 _ids_cached_byte_size_{0},
2033 values_{visibility, arena},
2034 _values_cached_byte_size_{0} {}
2036inline void SparseBasisStatusVector::SharedCtor(::_pb::Arena* PROTOBUF_NULLABLE arena) {
2037 new (&
_impl_) Impl_(internal_visibility(), arena);
2043inline void SparseBasisStatusVector::SharedDtor(
MessageLite& self) {
2045 if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) {
2046 this_.CheckHasBitConsistency();
2048 this_._internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>();
2049 ABSL_DCHECK(this_.GetArena() ==
nullptr);
2053inline void* PROTOBUF_NONNULL SparseBasisStatusVector::PlacementNew_(
2054 const void* PROTOBUF_NONNULL,
void* PROTOBUF_NONNULL mem,
2055 ::google::protobuf::Arena* PROTOBUF_NULLABLE arena) {
2056 return ::new (mem) SparseBasisStatusVector(arena);
2058constexpr auto SparseBasisStatusVector::InternalNewImpl_() {
2059 constexpr auto arena_bits = ::google::protobuf::internal::EncodePlacementArenaOffsets({
2060 PROTOBUF_FIELD_OFFSET(SparseBasisStatusVector,
_impl_.ids_) +
2062 InternalGetArenaOffset(
2063 ::
google::protobuf::Message::internal_visibility()),
2064 PROTOBUF_FIELD_OFFSET(SparseBasisStatusVector,
_impl_.values_) +
2065 decltype(SparseBasisStatusVector::
_impl_.values_)::
2066 InternalGetArenaOffset(
2067 ::
google::protobuf::Message::internal_visibility()),
2069 if (arena_bits.has_value()) {
2070 return ::google::protobuf::internal::MessageCreator::ZeroInit(
2071 sizeof(SparseBasisStatusVector), alignof(SparseBasisStatusVector), *arena_bits);
2073 return ::google::protobuf::internal::MessageCreator(&SparseBasisStatusVector::PlacementNew_,
2074 sizeof(SparseBasisStatusVector),
2075 alignof(SparseBasisStatusVector));
2079 return ::google::protobuf::internal::ClassDataFull{
2080 ::google::protobuf::internal::ClassData{
2085 &SparseBasisStatusVector::MergeImpl,
2086 ::google::protobuf::Message::GetNewImpl<SparseBasisStatusVector>(),
2087#if defined(PROTOBUF_CUSTOM_VTABLE)
2088 &SparseBasisStatusVector::SharedDtor,
2095 &SparseBasisStatusVector::kDescriptorMethods,
2101PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 const
2105PROTOBUF_ATTRIBUTE_WEAK const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL
2106SparseBasisStatusVector::GetClassData()
const {
2111PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1
2112const ::_pbi::TcParseTable<1, 2, 0, 0, 2>
2113SparseBasisStatusVector::_table_ = {
2115 PROTOBUF_FIELD_OFFSET(SparseBasisStatusVector,
_impl_._has_bits_),
2118 offsetof(
decltype(_table_), field_lookup_table),
2120 offsetof(
decltype(_table_), field_entries),
2123 offsetof(
decltype(_table_), field_names),
2126 ::_pbi::TcParser::GenericFallback,
2127 #ifdef PROTOBUF_PREFETCH_PARSE_TABLE
2128 ::_pbi::TcParser::GetTable<::operations_research::math_opt::SparseBasisStatusVector>(),
2132 {::_pbi::TcParser::FastV32P1,
2134 PROTOBUF_FIELD_OFFSET(SparseBasisStatusVector,
_impl_.values_)}},
2136 {::_pbi::TcParser::FastV64P1,
2138 PROTOBUF_FIELD_OFFSET(SparseBasisStatusVector,
_impl_.ids_)}},
2145 {PROTOBUF_FIELD_OFFSET(SparseBasisStatusVector,
_impl_.values_),
_Internal::kHasBitsOffset + 1, 0, (0 | ::_fl::kFcRepeated | ::_fl::kPackedOpenEnum)},
2153 ::google::protobuf::internal::TSanWrite(&
_impl_);
2154 ::uint32_t cached_has_bits = 0;
2156 (void) cached_has_bits;
2158 cached_has_bits =
_impl_._has_bits_[0];
2159 if (BatchCheckHasBit(cached_has_bits, 0x00000003U)) {
2160 if (CheckHasBitForRepeated(cached_has_bits, 0x00000001U)) {
2163 if (CheckHasBitForRepeated(cached_has_bits, 0x00000002U)) {
2167 _impl_._has_bits_.Clear();
2168 _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>();
2171#if defined(PROTOBUF_CUSTOM_VTABLE)
2173 const ::google::protobuf::MessageLite&
base, ::uint8_t* PROTOBUF_NONNULL target,
2174 ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) {
2175 const SparseBasisStatusVector& this_ =
static_cast<const SparseBasisStatusVector&
>(
base);
2178 ::uint8_t* PROTOBUF_NONNULL target,
2179 ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream)
const {
2180 const SparseBasisStatusVector& this_ = *
this;
2182 if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) {
2183 this_.CheckHasBitConsistency();
2186 ::uint32_t cached_has_bits = 0;
2187 (void)cached_has_bits;
2189 cached_has_bits = this_.
_impl_._has_bits_[0];
2191 if (CheckHasBitForRepeated(cached_has_bits, 0x00000001U)) {
2193 int byte_size = this_._impl_._ids_cached_byte_size_.Get();
2194 if (byte_size > 0) {
2195 target = stream->WriteInt64Packed(
2196 1, this_._internal_ids(), byte_size, target);
2202 if (CheckHasBitForRepeated(cached_has_bits, 0x00000002U)) {
2204 ::size_t byte_size = this_._impl_._values_cached_byte_size_.Get();
2205 if (byte_size > 0) {
2206 target = stream->WriteEnumPacked(
2207 2, this_._internal_values(), byte_size, target);
2212 if (ABSL_PREDICT_FALSE(this_._internal_metadata_.have_unknown_fields())) {
2214 ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray(
2215 this_._internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream);
2221#if defined(PROTOBUF_CUSTOM_VTABLE)
2223 const SparseBasisStatusVector& this_ =
static_cast<const SparseBasisStatusVector&
>(base);
2226 const SparseBasisStatusVector& this_ = *
this;
2229 ::size_t total_size = 0;
2231 ::uint32_t cached_has_bits = 0;
2233 (void)cached_has_bits;
2235 ::_pbi::Prefetch5LinesFrom7Lines(&this_);
2236 cached_has_bits = this_._impl_._has_bits_[0];
2237 if (BatchCheckHasBit(cached_has_bits, 0x00000003U)) {
2239 if (CheckHasBitForRepeated(cached_has_bits, 0x00000001U)) {
2241 ::_pbi::WireFormatLite::Int64SizeWithPackedTagSize(
2242 this_._internal_ids(), 1,
2243 this_._impl_._ids_cached_byte_size_);
2246 if (CheckHasBitForRepeated(cached_has_bits, 0x00000002U)) {
2247 total_size += ::_pbi::WireFormatLite::EnumSizeWithPackedTagSize(
2248 this_._internal_values(), 1, this_._impl_._values_cached_byte_size_);
2251 return this_.MaybeComputeUnknownFieldsSize(total_size,
2252 &this_._impl_._cached_size_);
2255void SparseBasisStatusVector::MergeImpl(::google::protobuf::MessageLite& to_msg,
2256 const ::google::protobuf::MessageLite& from_msg) {
2258 static_cast<SparseBasisStatusVector*
>(&to_msg);
2259 auto& from =
static_cast<const SparseBasisStatusVector&
>(from_msg);
2260 if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) {
2261 from.CheckHasBitConsistency();
2264 ABSL_DCHECK_NE(&from, _this);
2265 ::uint32_t cached_has_bits = 0;
2266 (void)cached_has_bits;
2268 cached_has_bits = from._impl_._has_bits_[0];
2269 if (BatchCheckHasBit(cached_has_bits, 0x00000003U)) {
2270 if (CheckHasBitForRepeated(cached_has_bits, 0x00000001U)) {
2271 _this->_internal_mutable_ids()->MergeFrom(from._internal_ids());
2273 if (CheckHasBitForRepeated(cached_has_bits, 0x00000002U)) {
2274 _this->_internal_mutable_values()->MergeFrom(from._internal_values());
2277 _this->_impl_._has_bits_[0] |= cached_has_bits;
2278 _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(
2279 from._internal_metadata_);
2284 if (&from ==
this)
return;
2290void SparseBasisStatusVector::InternalSwap(
SparseBasisStatusVector* PROTOBUF_RESTRICT PROTOBUF_NONNULL other) {
2292 _internal_metadata_.InternalSwap(&other->_internal_metadata_);
2293 swap(
_impl_._has_bits_[0], other->_impl_._has_bits_[0]);
2294 _impl_.ids_.InternalSwap(&other->_impl_.ids_);
2295 _impl_.values_.InternalSwap(&other->_impl_.values_);
2299 return ::google::protobuf::Message::GetMetadataImpl(GetClassData()->full());
2303class BasisProto::_Internal {
2306 decltype(::std::declval<BasisProto>()._impl_._has_bits_);
2307 static constexpr ::int32_t kHasBitsOffset =
2312#if defined(PROTOBUF_CUSTOM_VTABLE)
2315 : ::google::protobuf::Message(arena) {
2320PROTOBUF_NDEBUG_INLINE BasisProto::Impl_::Impl_(
2321 [[maybe_unused]] ::google::protobuf::internal::InternalVisibility visibility,
2322 [[maybe_unused]] ::google::protobuf::Arena* PROTOBUF_NULLABLE arena,
const Impl_& from,
2323 [[maybe_unused]] const ::operations_research::math_opt::BasisProto& from_msg)
2324 : _has_bits_{from._has_bits_},
2328 ::google::protobuf::Arena* PROTOBUF_NULLABLE arena,
2330#if defined(PROTOBUF_CUSTOM_VTABLE)
2333 : ::google::protobuf::Message(arena) {
2337 _internal_metadata_.
MergeFrom<::google::protobuf::UnknownFieldSet>(
2338 from._internal_metadata_);
2339 new (&
_impl_) Impl_(internal_visibility(), arena, from.
_impl_, from);
2340 ::uint32_t cached_has_bits =
_impl_._has_bits_[0];
2341 _impl_.constraint_status_ = (CheckHasBit(cached_has_bits, 0x00000001U))
2342 ? ::google::protobuf::Message::CopyConstruct(arena, *from.
_impl_.constraint_status_)
2344 _impl_.variable_status_ = (CheckHasBit(cached_has_bits, 0x00000002U))
2345 ? ::google::protobuf::Message::CopyConstruct(arena, *from.
_impl_.variable_status_)
2347 _impl_.basic_dual_feasibility_ = from.
_impl_.basic_dual_feasibility_;
2351PROTOBUF_NDEBUG_INLINE BasisProto::Impl_::Impl_(
2352 [[maybe_unused]] ::google::protobuf::internal::InternalVisibility visibility,
2353 [[maybe_unused]] ::google::protobuf::Arena* PROTOBUF_NULLABLE arena)
2354 : _cached_size_{0} {}
2356inline void BasisProto::SharedCtor(::_pb::Arena* PROTOBUF_NULLABLE arena) {
2357 new (&
_impl_) Impl_(internal_visibility(), arena);
2358 ::memset(
reinterpret_cast<char*
>(&
_impl_) +
2359 offsetof(Impl_, constraint_status_),
2361 offsetof(Impl_, basic_dual_feasibility_) -
2362 offsetof(Impl_, constraint_status_) +
2363 sizeof(Impl_::basic_dual_feasibility_));
2369inline void BasisProto::SharedDtor(
MessageLite& self) {
2371 if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) {
2372 this_.CheckHasBitConsistency();
2374 this_._internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>();
2375 ABSL_DCHECK(this_.GetArena() ==
nullptr);
2376 delete this_._impl_.constraint_status_;
2377 delete this_._impl_.variable_status_;
2378 this_._impl_.~Impl_();
2381inline void* PROTOBUF_NONNULL BasisProto::PlacementNew_(
2382 const void* PROTOBUF_NONNULL,
void* PROTOBUF_NONNULL mem,
2383 ::google::protobuf::Arena* PROTOBUF_NULLABLE arena) {
2386constexpr auto BasisProto::InternalNewImpl_() {
2387 return ::google::protobuf::internal::MessageCreator::ZeroInit(
sizeof(
BasisProto),
2391 return ::google::protobuf::internal::ClassDataFull{
2392 ::google::protobuf::internal::ClassData{
2397 &BasisProto::MergeImpl,
2398 ::google::protobuf::Message::GetNewImpl<BasisProto>(),
2399#if defined(PROTOBUF_CUSTOM_VTABLE)
2400 &BasisProto::SharedDtor,
2407 &BasisProto::kDescriptorMethods,
2413PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 const
2417PROTOBUF_ATTRIBUTE_WEAK const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL
2418BasisProto::GetClassData()
const {
2423PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1
2424const ::_pbi::TcParseTable<2, 3, 2, 0, 2>
2425BasisProto::_table_ = {
2430 offsetof(
decltype(_table_), field_lookup_table),
2432 offsetof(
decltype(_table_), field_entries),
2435 offsetof(
decltype(_table_), aux_entries),
2438 ::_pbi::TcParser::GenericFallback,
2439 #ifdef PROTOBUF_PREFETCH_PARSE_TABLE
2440 ::_pbi::TcParser::GetTable<::operations_research::math_opt::BasisProto>(),
2443 {::_pbi::TcParser::MiniParse, {}},
2445 {::_pbi::TcParser::FastMtS1,
2449 {::_pbi::TcParser::FastMtS1,
2453 {::_pbi::TcParser::SingularVarintNoZag1<::uint32_t, offsetof(
BasisProto,
_impl_.basic_dual_feasibility_), 2>(),
2467 {::_pbi::TcParser::GetTable<::operations_research::math_opt::SparseBasisStatusVector>()},
2468 {::_pbi::TcParser::GetTable<::operations_research::math_opt::SparseBasisStatusVector>()},
2475 ::google::protobuf::internal::TSanWrite(&
_impl_);
2476 ::uint32_t cached_has_bits = 0;
2478 (void) cached_has_bits;
2481 if (BatchCheckHasBit(cached_has_bits, 0x00000003U)) {
2482 if (CheckHasBit(cached_has_bits, 0x00000001U)) {
2483 ABSL_DCHECK(
_impl_.constraint_status_ !=
nullptr);
2484 _impl_.constraint_status_->Clear();
2486 if (CheckHasBit(cached_has_bits, 0x00000002U)) {
2487 ABSL_DCHECK(
_impl_.variable_status_ !=
nullptr);
2488 _impl_.variable_status_->Clear();
2491 _impl_.basic_dual_feasibility_ = 0;
2492 _impl_._has_bits_.Clear();
2493 _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>();
2496#if defined(PROTOBUF_CUSTOM_VTABLE)
2498 const ::google::protobuf::MessageLite&
base, ::uint8_t* PROTOBUF_NONNULL target,
2499 ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) {
2503 ::uint8_t* PROTOBUF_NONNULL target,
2504 ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream)
const {
2507 if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) {
2508 this_.CheckHasBitConsistency();
2511 ::uint32_t cached_has_bits = 0;
2512 (void)cached_has_bits;
2514 cached_has_bits = this_._impl_._has_bits_[0];
2516 if (CheckHasBit(cached_has_bits, 0x00000001U)) {
2517 target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage(
2518 1, *this_._impl_.constraint_status_, this_._impl_.constraint_status_->GetCachedSize(), target,
2523 if (CheckHasBit(cached_has_bits, 0x00000002U)) {
2524 target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage(
2525 2, *this_._impl_.variable_status_, this_._impl_.variable_status_->GetCachedSize(), target,
2530 if (CheckHasBit(cached_has_bits, 0x00000004U)) {
2531 if (this_._internal_basic_dual_feasibility() != 0) {
2532 target = stream->EnsureSpace(target);
2533 target = ::_pbi::WireFormatLite::WriteEnumToArray(
2534 3, this_._internal_basic_dual_feasibility(), target);
2538 if (ABSL_PREDICT_FALSE(this_._internal_metadata_.have_unknown_fields())) {
2540 ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray(
2541 this_._internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream);
2547#if defined(PROTOBUF_CUSTOM_VTABLE)
2555 ::size_t total_size = 0;
2557 ::uint32_t cached_has_bits = 0;
2559 (void)cached_has_bits;
2561 ::_pbi::Prefetch5LinesFrom7Lines(&this_);
2562 cached_has_bits = this_._impl_._has_bits_[0];
2563 if (BatchCheckHasBit(cached_has_bits, 0x00000007U)) {
2565 if (CheckHasBit(cached_has_bits, 0x00000001U)) {
2567 ::google::protobuf::internal::WireFormatLite::MessageSize(*this_._impl_.constraint_status_);
2570 if (CheckHasBit(cached_has_bits, 0x00000002U)) {
2572 ::google::protobuf::internal::WireFormatLite::MessageSize(*this_._impl_.variable_status_);
2575 if (CheckHasBit(cached_has_bits, 0x00000004U)) {
2576 if (this_._internal_basic_dual_feasibility() != 0) {
2578 ::_pbi::WireFormatLite::EnumSize(this_._internal_basic_dual_feasibility());
2582 return this_.MaybeComputeUnknownFieldsSize(total_size,
2583 &this_._impl_._cached_size_);
2586void BasisProto::MergeImpl(::google::protobuf::MessageLite& to_msg,
2587 const ::google::protobuf::MessageLite& from_msg) {
2590 auto& from =
static_cast<const BasisProto&
>(from_msg);
2591 if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) {
2592 from.CheckHasBitConsistency();
2596 ABSL_DCHECK_NE(&from, _this);
2597 ::uint32_t cached_has_bits = 0;
2598 (void)cached_has_bits;
2600 cached_has_bits = from.
_impl_._has_bits_[0];
2601 if (BatchCheckHasBit(cached_has_bits, 0x00000007U)) {
2602 if (CheckHasBit(cached_has_bits, 0x00000001U)) {
2603 ABSL_DCHECK(from.
_impl_.constraint_status_ !=
nullptr);
2604 if (_this->
_impl_.constraint_status_ ==
nullptr) {
2605 _this->
_impl_.constraint_status_ = ::google::protobuf::Message::CopyConstruct(arena, *from.
_impl_.constraint_status_);
2610 if (CheckHasBit(cached_has_bits, 0x00000002U)) {
2611 ABSL_DCHECK(from.
_impl_.variable_status_ !=
nullptr);
2612 if (_this->
_impl_.variable_status_ ==
nullptr) {
2613 _this->
_impl_.variable_status_ = ::google::protobuf::Message::CopyConstruct(arena, *from.
_impl_.variable_status_);
2618 if (CheckHasBit(cached_has_bits, 0x00000004U)) {
2619 if (from._internal_basic_dual_feasibility() != 0) {
2620 _this->
_impl_.basic_dual_feasibility_ = from.
_impl_.basic_dual_feasibility_;
2624 _this->
_impl_._has_bits_[0] |= cached_has_bits;
2625 _this->_internal_metadata_.
MergeFrom<::google::protobuf::UnknownFieldSet>(
2626 from._internal_metadata_);
2631 if (&from ==
this)
return;
2637void BasisProto::InternalSwap(
BasisProto* PROTOBUF_RESTRICT PROTOBUF_NONNULL other) {
2639 _internal_metadata_.InternalSwap(&other->_internal_metadata_);
2640 swap(
_impl_._has_bits_[0], other->_impl_._has_bits_[0]);
2641 ::google::protobuf::internal::memswap<
2645 reinterpret_cast<char*
>(&
_impl_.constraint_status_),
2646 reinterpret_cast<char*
>(&other->_impl_.constraint_status_));
2650 return ::google::protobuf::Message::GetMetadataImpl(GetClassData()->full());
2654class SolutionProto::_Internal {
2657 decltype(::std::declval<SolutionProto>()._impl_._has_bits_);
2658 static constexpr ::int32_t kHasBitsOffset =
2663#if defined(PROTOBUF_CUSTOM_VTABLE)
2666 : ::google::protobuf::Message(arena) {
2671PROTOBUF_NDEBUG_INLINE SolutionProto::Impl_::Impl_(
2672 [[maybe_unused]] ::google::protobuf::internal::InternalVisibility visibility,
2673 [[maybe_unused]] ::google::protobuf::Arena* PROTOBUF_NULLABLE arena,
const Impl_& from,
2674 [[maybe_unused]] const ::operations_research::math_opt::SolutionProto& from_msg)
2675 : _has_bits_{from._has_bits_},
2679 ::google::protobuf::Arena* PROTOBUF_NULLABLE arena,
2681#if defined(PROTOBUF_CUSTOM_VTABLE)
2684 : ::google::protobuf::Message(arena) {
2688 _internal_metadata_.
MergeFrom<::google::protobuf::UnknownFieldSet>(
2689 from._internal_metadata_);
2690 new (&
_impl_) Impl_(internal_visibility(), arena, from.
_impl_, from);
2691 ::uint32_t cached_has_bits =
_impl_._has_bits_[0];
2692 _impl_.primal_solution_ = (CheckHasBit(cached_has_bits, 0x00000001U))
2693 ? ::google::protobuf::Message::CopyConstruct(arena, *from.
_impl_.primal_solution_)
2695 _impl_.dual_solution_ = (CheckHasBit(cached_has_bits, 0x00000002U))
2696 ? ::google::protobuf::Message::CopyConstruct(arena, *from.
_impl_.dual_solution_)
2698 _impl_.basis_ = (CheckHasBit(cached_has_bits, 0x00000004U))
2699 ? ::google::protobuf::Message::CopyConstruct(arena, *from.
_impl_.basis_)
2704PROTOBUF_NDEBUG_INLINE SolutionProto::Impl_::Impl_(
2705 [[maybe_unused]] ::google::protobuf::internal::InternalVisibility visibility,
2706 [[maybe_unused]] ::google::protobuf::Arena* PROTOBUF_NULLABLE arena)
2707 : _cached_size_{0} {}
2709inline void SolutionProto::SharedCtor(::_pb::Arena* PROTOBUF_NULLABLE arena) {
2710 new (&
_impl_) Impl_(internal_visibility(), arena);
2711 ::memset(
reinterpret_cast<char*
>(&
_impl_) +
2712 offsetof(Impl_, primal_solution_),
2714 offsetof(Impl_, basis_) -
2715 offsetof(Impl_, primal_solution_) +
2716 sizeof(Impl_::basis_));
2722inline void SolutionProto::SharedDtor(
MessageLite& self) {
2724 if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) {
2725 this_.CheckHasBitConsistency();
2727 this_._internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>();
2728 ABSL_DCHECK(this_.GetArena() ==
nullptr);
2729 delete this_._impl_.primal_solution_;
2730 delete this_._impl_.dual_solution_;
2731 delete this_._impl_.basis_;
2732 this_._impl_.~Impl_();
2735inline void* PROTOBUF_NONNULL SolutionProto::PlacementNew_(
2736 const void* PROTOBUF_NONNULL,
void* PROTOBUF_NONNULL mem,
2737 ::google::protobuf::Arena* PROTOBUF_NULLABLE arena) {
2740constexpr auto SolutionProto::InternalNewImpl_() {
2741 return ::google::protobuf::internal::MessageCreator::ZeroInit(
sizeof(
SolutionProto),
2745 return ::google::protobuf::internal::ClassDataFull{
2746 ::google::protobuf::internal::ClassData{
2751 &SolutionProto::MergeImpl,
2752 ::google::protobuf::Message::GetNewImpl<SolutionProto>(),
2753#if defined(PROTOBUF_CUSTOM_VTABLE)
2754 &SolutionProto::SharedDtor,
2761 &SolutionProto::kDescriptorMethods,
2767PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 const
2771PROTOBUF_ATTRIBUTE_WEAK const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL
2772SolutionProto::GetClassData()
const {
2777PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1
2778const ::_pbi::TcParseTable<2, 3, 3, 0, 2>
2779SolutionProto::_table_ = {
2784 offsetof(
decltype(_table_), field_lookup_table),
2786 offsetof(
decltype(_table_), field_entries),
2789 offsetof(
decltype(_table_), aux_entries),
2792 ::_pbi::TcParser::GenericFallback,
2793 #ifdef PROTOBUF_PREFETCH_PARSE_TABLE
2794 ::_pbi::TcParser::GetTable<::operations_research::math_opt::SolutionProto>(),
2797 {::_pbi::TcParser::MiniParse, {}},
2799 {::_pbi::TcParser::FastMtS1,
2803 {::_pbi::TcParser::FastMtS1,
2807 {::_pbi::TcParser::FastMtS1,
2821 {::_pbi::TcParser::GetTable<::operations_research::math_opt::PrimalSolutionProto>()},
2822 {::_pbi::TcParser::GetTable<::operations_research::math_opt::DualSolutionProto>()},
2823 {::_pbi::TcParser::GetTable<::operations_research::math_opt::BasisProto>()},
2830 ::google::protobuf::internal::TSanWrite(&
_impl_);
2831 ::uint32_t cached_has_bits = 0;
2833 (void) cached_has_bits;
2835 cached_has_bits =
_impl_._has_bits_[0];
2836 if (BatchCheckHasBit(cached_has_bits, 0x00000007U)) {
2837 if (CheckHasBit(cached_has_bits, 0x00000001U)) {
2838 ABSL_DCHECK(
_impl_.primal_solution_ !=
nullptr);
2839 _impl_.primal_solution_->Clear();
2841 if (CheckHasBit(cached_has_bits, 0x00000002U)) {
2842 ABSL_DCHECK(
_impl_.dual_solution_ !=
nullptr);
2843 _impl_.dual_solution_->Clear();
2845 if (CheckHasBit(cached_has_bits, 0x00000004U)) {
2846 ABSL_DCHECK(
_impl_.basis_ !=
nullptr);
2850 _impl_._has_bits_.Clear();
2851 _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>();
2854#if defined(PROTOBUF_CUSTOM_VTABLE)
2856 const ::google::protobuf::MessageLite&
base, ::uint8_t* PROTOBUF_NONNULL target,
2857 ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) {
2861 ::uint8_t* PROTOBUF_NONNULL target,
2862 ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream)
const {
2865 if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) {
2866 this_.CheckHasBitConsistency();
2869 ::uint32_t cached_has_bits = 0;
2870 (void)cached_has_bits;
2872 cached_has_bits = this_._impl_._has_bits_[0];
2874 if (CheckHasBit(cached_has_bits, 0x00000001U)) {
2875 target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage(
2876 1, *this_._impl_.primal_solution_, this_._impl_.primal_solution_->GetCachedSize(), target,
2881 if (CheckHasBit(cached_has_bits, 0x00000002U)) {
2882 target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage(
2883 2, *this_._impl_.dual_solution_, this_._impl_.dual_solution_->GetCachedSize(), target,
2888 if (CheckHasBit(cached_has_bits, 0x00000004U)) {
2889 target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage(
2890 3, *this_._impl_.basis_, this_._impl_.basis_->GetCachedSize(), target,
2894 if (ABSL_PREDICT_FALSE(this_._internal_metadata_.have_unknown_fields())) {
2896 ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray(
2897 this_._internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream);
2903#if defined(PROTOBUF_CUSTOM_VTABLE)
2911 ::size_t total_size = 0;
2913 ::uint32_t cached_has_bits = 0;
2915 (void)cached_has_bits;
2917 ::_pbi::Prefetch5LinesFrom7Lines(&this_);
2918 cached_has_bits = this_._impl_._has_bits_[0];
2919 if (BatchCheckHasBit(cached_has_bits, 0x00000007U)) {
2921 if (CheckHasBit(cached_has_bits, 0x00000001U)) {
2923 ::google::protobuf::internal::WireFormatLite::MessageSize(*this_._impl_.primal_solution_);
2926 if (CheckHasBit(cached_has_bits, 0x00000002U)) {
2928 ::google::protobuf::internal::WireFormatLite::MessageSize(*this_._impl_.dual_solution_);
2931 if (CheckHasBit(cached_has_bits, 0x00000004U)) {
2933 ::google::protobuf::internal::WireFormatLite::MessageSize(*this_._impl_.basis_);
2936 return this_.MaybeComputeUnknownFieldsSize(total_size,
2937 &this_._impl_._cached_size_);
2940void SolutionProto::MergeImpl(::google::protobuf::MessageLite& to_msg,
2941 const ::google::protobuf::MessageLite& from_msg) {
2945 if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) {
2946 from.CheckHasBitConsistency();
2950 ABSL_DCHECK_NE(&from, _this);
2951 ::uint32_t cached_has_bits = 0;
2952 (void)cached_has_bits;
2954 cached_has_bits = from.
_impl_._has_bits_[0];
2955 if (BatchCheckHasBit(cached_has_bits, 0x00000007U)) {
2956 if (CheckHasBit(cached_has_bits, 0x00000001U)) {
2957 ABSL_DCHECK(from.
_impl_.primal_solution_ !=
nullptr);
2958 if (_this->
_impl_.primal_solution_ ==
nullptr) {
2959 _this->
_impl_.primal_solution_ = ::google::protobuf::Message::CopyConstruct(arena, *from.
_impl_.primal_solution_);
2964 if (CheckHasBit(cached_has_bits, 0x00000002U)) {
2965 ABSL_DCHECK(from.
_impl_.dual_solution_ !=
nullptr);
2966 if (_this->
_impl_.dual_solution_ ==
nullptr) {
2967 _this->
_impl_.dual_solution_ = ::google::protobuf::Message::CopyConstruct(arena, *from.
_impl_.dual_solution_);
2972 if (CheckHasBit(cached_has_bits, 0x00000004U)) {
2973 ABSL_DCHECK(from.
_impl_.basis_ !=
nullptr);
2974 if (_this->
_impl_.basis_ ==
nullptr) {
2975 _this->
_impl_.basis_ = ::google::protobuf::Message::CopyConstruct(arena, *from.
_impl_.basis_);
2981 _this->
_impl_._has_bits_[0] |= cached_has_bits;
2982 _this->_internal_metadata_.
MergeFrom<::google::protobuf::UnknownFieldSet>(
2983 from._internal_metadata_);
2988 if (&from ==
this)
return;
2994void SolutionProto::InternalSwap(
SolutionProto* PROTOBUF_RESTRICT PROTOBUF_NONNULL other) {
2996 _internal_metadata_.InternalSwap(&other->_internal_metadata_);
2997 swap(
_impl_._has_bits_[0], other->_impl_._has_bits_[0]);
2998 ::google::protobuf::internal::memswap<
3002 reinterpret_cast<char*
>(&
_impl_.primal_solution_),
3003 reinterpret_cast<char*
>(&other->_impl_.primal_solution_));
3007 return ::google::protobuf::Message::GetMetadataImpl(GetClassData()->full());
3017PROTOBUF_ATTRIBUTE_INIT_PRIORITY2 static ::std::false_type
3020 ::std::false_type{});
3021#include "google/protobuf/port_undef.inc"
static PROTOBUF_ATTRIBUTE_INIT_PRIORITY2 ::std::false_type _static_init2_
static const ::_pb::Message *PROTOBUF_NONNULL const file_default_instances[]
static constexpr ::int32_t kHasBitsOffset
~BasisProto() PROTOBUF_FINAL
friend class ::google::protobuf::MessageLite
void MergeFrom(const BasisProto &from)
static constexpr auto InternalGenerateClassData_()
::google::protobuf::Metadata GetMetadata() const
friend void swap(BasisProto &a, BasisProto &b)
void CopyFrom(const BasisProto &from)
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
::size_t ByteSizeLong() const final
friend class ::google::protobuf::Arena
static constexpr ::int32_t kHasBitsOffset
friend class ::google::protobuf::MessageLite
friend void swap(DualRayProto &a, DualRayProto &b)
::uint8_t *PROTOBUF_NONNULL _InternalSerialize(::uint8_t *PROTOBUF_NONNULL target, ::google::protobuf::io::EpsCopyOutputStream *PROTOBUF_NONNULL stream) const final
~DualRayProto() PROTOBUF_FINAL
::size_t ByteSizeLong() const final
void MergeFrom(const DualRayProto &from)
void CopyFrom(const DualRayProto &from)
ABSL_ATTRIBUTE_REINITIALIZES void Clear() PROTOBUF_FINAL
::google::protobuf::Metadata GetMetadata() const
void clear_reduced_costs()
static constexpr auto InternalGenerateClassData_()
friend class ::google::protobuf::Arena
static constexpr ::int32_t kHasBitsOffset
void clear_reduced_costs()
::google::protobuf::Metadata GetMetadata() const
friend class ::google::protobuf::MessageLite
void MergeFrom(const DualSolutionProto &from)
void CopyFrom(const DualSolutionProto &from)
~DualSolutionProto() PROTOBUF_FINAL
friend void swap(DualSolutionProto &a, DualSolutionProto &b)
static constexpr auto InternalGenerateClassData_()
ABSL_ATTRIBUTE_REINITIALIZES void Clear() PROTOBUF_FINAL
void clear_quadratic_dual_values()
::uint8_t *PROTOBUF_NONNULL _InternalSerialize(::uint8_t *PROTOBUF_NONNULL target, ::google::protobuf::io::EpsCopyOutputStream *PROTOBUF_NONNULL stream) const final
::size_t ByteSizeLong() const final
friend class ::google::protobuf::Arena
static constexpr ::int32_t kHasBitsOffset
friend class ::google::protobuf::MessageLite
::size_t ByteSizeLong() const final
void CopyFrom(const PrimalRayProto &from)
static constexpr auto InternalGenerateClassData_()
ABSL_ATTRIBUTE_REINITIALIZES void Clear() PROTOBUF_FINAL
void MergeFrom(const PrimalRayProto &from)
void clear_variable_values()
friend void swap(PrimalRayProto &a, PrimalRayProto &b)
::uint8_t *PROTOBUF_NONNULL _InternalSerialize(::uint8_t *PROTOBUF_NONNULL target, ::google::protobuf::io::EpsCopyOutputStream *PROTOBUF_NONNULL stream) const final
::google::protobuf::Metadata GetMetadata() const
const ::google::protobuf::UnknownFieldSet & unknown_fields() const ABSL_ATTRIBUTE_LIFETIME_BOUND
~PrimalRayProto() PROTOBUF_FINAL
decltype(::std::declval< PrimalSolutionProto >()._impl_._has_bits_) HasBits
static constexpr ::int32_t kHasBitsOffset
PrimalSolutionProto_AuxiliaryObjectiveValuesEntry_DoNotUse()
static constexpr auto InternalGenerateClassData_()
::google::protobuf::internal::MapEntry<::int64_t, double, ::google::protobuf::internal::WireFormatLite::TYPE_INT64, ::google::protobuf::internal::WireFormatLite::TYPE_DOUBLE > SuperType
friend class ::google::protobuf::MessageLite
void clear_variable_values()
friend void swap(PrimalSolutionProto &a, PrimalSolutionProto &b)
static constexpr auto InternalGenerateClassData_()
~PrimalSolutionProto() PROTOBUF_FINAL
void CopyFrom(const PrimalSolutionProto &from)
ABSL_ATTRIBUTE_REINITIALIZES void Clear() PROTOBUF_FINAL
::google::protobuf::Metadata GetMetadata() const
const ::google::protobuf::UnknownFieldSet & unknown_fields() const ABSL_ATTRIBUTE_LIFETIME_BOUND
::uint8_t *PROTOBUF_NONNULL _InternalSerialize(::uint8_t *PROTOBUF_NONNULL target, ::google::protobuf::io::EpsCopyOutputStream *PROTOBUF_NONNULL stream) const final
void MergeFrom(const PrimalSolutionProto &from)
::size_t ByteSizeLong() const final
friend class ::google::protobuf::Arena
static constexpr ::int32_t kHasBitsOffset
friend class ::google::protobuf::MessageLite
ABSL_ATTRIBUTE_REINITIALIZES void Clear() PROTOBUF_FINAL
~SolutionProto() PROTOBUF_FINAL
::google::protobuf::Metadata GetMetadata() const
void MergeFrom(const SolutionProto &from)
::uint8_t *PROTOBUF_NONNULL _InternalSerialize(::uint8_t *PROTOBUF_NONNULL target, ::google::protobuf::io::EpsCopyOutputStream *PROTOBUF_NONNULL stream) const final
void CopyFrom(const SolutionProto &from)
::size_t ByteSizeLong() const final
friend void swap(SolutionProto &a, SolutionProto &b)
static constexpr auto InternalGenerateClassData_()
friend class ::google::protobuf::Arena
::google::protobuf::Metadata GetMetadata() const
friend class ::google::protobuf::MessageLite
SparseBasisStatusVector()
static constexpr auto InternalGenerateClassData_()
void MergeFrom(const SparseBasisStatusVector &from)
ABSL_ATTRIBUTE_REINITIALIZES void Clear() PROTOBUF_FINAL
::size_t ByteSizeLong() const final
~SparseBasisStatusVector() PROTOBUF_FINAL
void CopyFrom(const SparseBasisStatusVector &from)
::uint8_t *PROTOBUF_NONNULL _InternalSerialize(::uint8_t *PROTOBUF_NONNULL target, ::google::protobuf::io::EpsCopyOutputStream *PROTOBUF_NONNULL stream) const final
ABSL_ATTRIBUTE_REINITIALIZES void Clear() PROTOBUF_FINAL
int GetCachedSize() const
static constexpr ::_pbi::MigrationSchema *PROTOBUF_NULLABLE schemas
PROTOBUF_CONSTINIT const uint32_t BasisStatusProto_internal_data_[]
PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 const::google::protobuf::internal::ClassDataFull PrimalRayProto_class_data_
PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT OR_PROTO_DLL PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 BasisProtoDefaultTypeInternal _BasisProto_default_instance_
PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 const::google::protobuf::internal::ClassDataFull PrimalSolutionProto_class_data_
PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT OR_PROTO_DLL PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 SparseBasisStatusVectorDefaultTypeInternal _SparseBasisStatusVector_default_instance_
const ::google::protobuf::EnumDescriptor *PROTOBUF_NONNULL BasisStatusProto_descriptor()
PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT OR_PROTO_DLL PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 PrimalSolutionProto_AuxiliaryObjectiveValuesEntry_DoNotUseDefaultTypeInternal _PrimalSolutionProto_AuxiliaryObjectiveValuesEntry_DoNotUse_default_instance_
PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 const::google::protobuf::internal::ClassDataFull PrimalSolutionProto_AuxiliaryObjectiveValuesEntry_DoNotUse_class_data_
PROTOBUF_CONSTINIT const uint32_t SolutionStatusProto_internal_data_[]
PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 const::google::protobuf::internal::ClassDataFull BasisProto_class_data_
PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT OR_PROTO_DLL PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 DualSolutionProtoDefaultTypeInternal _DualSolutionProto_default_instance_
PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 const::google::protobuf::internal::ClassDataFull DualRayProto_class_data_
const ::google::protobuf::EnumDescriptor *PROTOBUF_NONNULL SolutionStatusProto_descriptor()
PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 const::google::protobuf::internal::ClassDataFull SolutionProto_class_data_
PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT OR_PROTO_DLL PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 PrimalSolutionProtoDefaultTypeInternal _PrimalSolutionProto_default_instance_
PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 const::google::protobuf::internal::ClassDataFull SparseBasisStatusVector_class_data_
PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT OR_PROTO_DLL PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 PrimalRayProtoDefaultTypeInternal _PrimalRayProto_default_instance_
PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT OR_PROTO_DLL PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 DualRayProtoDefaultTypeInternal _DualRayProto_default_instance_
PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 const::google::protobuf::internal::ClassDataFull DualSolutionProto_class_data_
PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT OR_PROTO_DLL PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 SolutionProtoDefaultTypeInternal _SolutionProto_default_instance_
PROTOBUF_CONSTINITconst ::_pbi::DescriptorTable descriptor_table_ortools_2fmath_5fopt_2fsolution_2eproto
::absl::once_flag descriptor_table_ortools_2fmath_5fopt_2fsolution_2eproto_once
static const ::_pbi::DescriptorTable *PROTOBUF_NONNULL const descriptor_table_ortools_2fmath_5fopt_2fsolution_2eproto_deps[1]
const ::uint32_t TableStruct_ortools_2fmath_5fopt_2fsolution_2eproto::offsets[] ABSL_ATTRIBUTE_SECTION_VARIABLE(protodesc_cold)
static constexprconst ::_pb::ServiceDescriptor *PROTOBUF_NONNULL *PROTOBUF_NULLABLE file_level_service_descriptors_ortools_2fmath_5fopt_2fsolution_2eproto
static const ::_pb::EnumDescriptor *PROTOBUF_NONNULL file_level_enum_descriptors_ortools_2fmath_5fopt_2fsolution_2eproto[2]
PROTOBUF_CONSTINITconst ::_pbi::DescriptorTable descriptor_table_ortools_2fmath_5fopt_2fsparse_5fcontainers_2eproto
~BasisProtoDefaultTypeInternal()
PROTOBUF_CONSTEXPR BasisProtoDefaultTypeInternal()
PROTOBUF_CONSTEXPR DualRayProtoDefaultTypeInternal()
~DualRayProtoDefaultTypeInternal()
DualSolutionProto _instance
PROTOBUF_CONSTEXPR DualSolutionProtoDefaultTypeInternal()
~DualSolutionProtoDefaultTypeInternal()
PROTOBUF_CONSTEXPR PrimalRayProtoDefaultTypeInternal()
~PrimalRayProtoDefaultTypeInternal()
PrimalSolutionProto _instance
~PrimalSolutionProtoDefaultTypeInternal()
PROTOBUF_CONSTEXPR PrimalSolutionProtoDefaultTypeInternal()
PROTOBUF_CONSTEXPR PrimalSolutionProto_AuxiliaryObjectiveValuesEntry_DoNotUseDefaultTypeInternal()
PrimalSolutionProto_AuxiliaryObjectiveValuesEntry_DoNotUse _instance
~PrimalSolutionProto_AuxiliaryObjectiveValuesEntry_DoNotUseDefaultTypeInternal()
PROTOBUF_CONSTEXPR SolutionProtoDefaultTypeInternal()
~SolutionProtoDefaultTypeInternal()
~SparseBasisStatusVectorDefaultTypeInternal()
SparseBasisStatusVector _instance
PROTOBUF_CONSTEXPR SparseBasisStatusVectorDefaultTypeInternal()