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 SolutionHintProto::Impl_::Impl_(
31 ::_pbi::ConstantInitialized) noexcept
33 variable_values_{
nullptr},
34 dual_values_{
nullptr} {}
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 ObjectiveParametersProto::Impl_::Impl_(
57 ::_pbi::ConstantInitialized) noexcept
60 objective_degradation_absolute_tolerance_{0},
61 objective_degradation_relative_tolerance_{0} {}
65#if defined(PROTOBUF_CUSTOM_VTABLE)
68 : ::google::protobuf::Message(),
70 _impl_(::_pbi::ConstantInitialized()) {
80PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT OR_PROTO_DLL
84#if defined(PROTOBUF_CUSTOM_VTABLE)
87 : ModelSolveParametersProto_AuxiliaryObjectiveParametersEntry_DoNotUse::MapEntry() {
98PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT OR_PROTO_DLL
101inline constexpr ModelSolveParametersProto::Impl_::Impl_(
102 ::_pbi::ConstantInitialized) noexcept
105 auxiliary_objective_parameters_{},
106 lazy_linear_constraint_ids_{},
107 _lazy_linear_constraint_ids_cached_byte_size_{0},
108 variable_values_filter_{
nullptr},
109 dual_values_filter_{
nullptr},
110 reduced_costs_filter_{
nullptr},
111 initial_basis_{
nullptr},
112 branching_priorities_{
nullptr},
113 primary_objective_parameters_{
nullptr},
114 quadratic_dual_values_filter_{
nullptr} {}
118#if defined(PROTOBUF_CUSTOM_VTABLE)
121 : ::google::protobuf::Message(),
123 _impl_(::_pbi::ConstantInitialized()) {
133PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT OR_PROTO_DLL
137static constexpr const ::_pb::EnumDescriptor *PROTOBUF_NONNULL *PROTOBUF_NULLABLE
139static constexpr const ::_pb::ServiceDescriptor *PROTOBUF_NONNULL *PROTOBUF_NULLABLE
192static const ::_pbi::MigrationSchema
207 "\n\'ortools/math_opt/model_parameters.prot"
208 "o\022\034operations_research.math_opt\032\036google/"
209 "protobuf/duration.proto\032\037ortools/math_op"
210 "t/solution.proto\032(ortools/math_opt/spars"
211 "e_containers.proto\"\257\001\n\021SolutionHintProto"
212 "\022N\n\017variable_values\030\001 \001(\01325.operations_r"
213 "esearch.math_opt.SparseDoubleVectorProto"
214 "\022J\n\013dual_values\030\002 \001(\01325.operations_resea"
215 "rch.math_opt.SparseDoubleVectorProto\"\221\002\n"
216 "\030ObjectiveParametersProto\0225\n(objective_d"
217 "egradation_absolute_tolerance\030\007 \001(\001H\000\210\001\001"
218 "\0225\n(objective_degradation_relative_toler"
219 "ance\030\010 \001(\001H\001\210\001\001\022-\n\ntime_limit\030\t \001(\0132\031.go"
220 "ogle.protobuf.DurationB+\n)_objective_deg"
221 "radation_absolute_toleranceB+\n)_objectiv"
222 "e_degradation_relative_tolerance\"\330\007\n\031Mod"
223 "elSolveParametersProto\022U\n\026variable_value"
224 "s_filter\030\001 \001(\01325.operations_research.mat"
225 "h_opt.SparseVectorFilterProto\022Q\n\022dual_va"
226 "lues_filter\030\002 \001(\01325.operations_research."
227 "math_opt.SparseVectorFilterProto\022[\n\034quad"
228 "ratic_dual_values_filter\030\n \001(\01325.operati"
229 "ons_research.math_opt.SparseVectorFilter"
230 "Proto\022S\n\024reduced_costs_filter\030\003 \001(\01325.op"
231 "erations_research.math_opt.SparseVectorF"
232 "ilterProto\022\?\n\rinitial_basis\030\004 \001(\0132(.oper"
233 "ations_research.math_opt.BasisProto\022G\n\016s"
234 "olution_hints\030\005 \003(\0132/.operations_researc"
235 "h.math_opt.SolutionHintProto\022R\n\024branchin"
236 "g_priorities\030\006 \001(\01324.operations_research"
237 ".math_opt.SparseInt32VectorProto\022\\\n\034prim"
238 "ary_objective_parameters\030\007 \001(\01326.operati"
239 "ons_research.math_opt.ObjectiveParameter"
240 "sProto\022\201\001\n\036auxiliary_objective_parameter"
241 "s\030\010 \003(\0132Y.operations_research.math_opt.M"
242 "odelSolveParametersProto.AuxiliaryObject"
243 "iveParametersEntry\022\"\n\032lazy_linear_constr"
244 "aint_ids\030\t \003(\003\032{\n!AuxiliaryObjectivePara"
245 "metersEntry\022\013\n\003key\030\001 \001(\003\022E\n\005value\030\002 \001(\0132"
246 "6.operations_research.math_opt.Objective"
247 "ParametersProto:\0028\001B\036\n\032com.google.ortool"
248 "s.mathoptP\001b\006proto3"
250static const ::_pbi::DescriptorTable* PROTOBUF_NONNULL
const
252 &::descriptor_table_google_2fprotobuf_2fduration_2eproto,
261 descriptor_table_protodef_ortools_2fmath_5fopt_2fmodel_5fparameters_2eproto,
262 "ortools/math_opt/model_parameters.proto",
280 decltype(::std::declval<SolutionHintProto>()._impl_._has_bits_);
286 ::google::protobuf::internal::TSanWrite(&
_impl_);
287 if (
_impl_.variable_values_ !=
nullptr)
_impl_.variable_values_->Clear();
288 _impl_._has_bits_[0] &= ~0x00000001u;
291 ::google::protobuf::internal::TSanWrite(&
_impl_);
292 if (
_impl_.dual_values_ !=
nullptr)
_impl_.dual_values_->Clear();
293 _impl_._has_bits_[0] &= ~0x00000002u;
296#if defined(PROTOBUF_CUSTOM_VTABLE)
299 : ::google::protobuf::Message(arena) {
304PROTOBUF_NDEBUG_INLINE SolutionHintProto::Impl_::Impl_(
305 ::google::protobuf::internal::InternalVisibility visibility,
306 ::google::protobuf::Arena* PROTOBUF_NULLABLE arena,
const Impl_& from,
307 const ::operations_research::math_opt::SolutionHintProto& from_msg)
308 : _has_bits_{from._has_bits_},
312 ::google::protobuf::Arena* PROTOBUF_NULLABLE arena,
314#if defined(PROTOBUF_CUSTOM_VTABLE)
317 : ::google::protobuf::Message(arena) {
321 _internal_metadata_.
MergeFrom<::google::protobuf::UnknownFieldSet>(
322 from._internal_metadata_);
323 new (&
_impl_) Impl_(internal_visibility(), arena, from._impl_, from);
324 ::uint32_t cached_has_bits =
_impl_._has_bits_[0];
325 _impl_.variable_values_ = ((cached_has_bits & 0x00000001u) != 0)
326 ? ::google::protobuf::Message::CopyConstruct(arena, *from._impl_.variable_values_)
328 _impl_.dual_values_ = ((cached_has_bits & 0x00000002u) != 0)
329 ? ::google::protobuf::Message::CopyConstruct(arena, *from._impl_.dual_values_)
334PROTOBUF_NDEBUG_INLINE SolutionHintProto::Impl_::Impl_(
335 ::google::protobuf::internal::InternalVisibility visibility,
336 ::google::protobuf::Arena* PROTOBUF_NULLABLE arena)
337 : _cached_size_{0} {}
339inline void SolutionHintProto::SharedCtor(::_pb::Arena* PROTOBUF_NULLABLE arena) {
340 new (&
_impl_) Impl_(internal_visibility(), arena);
341 ::memset(
reinterpret_cast<char *
>(&
_impl_) +
342 offsetof(Impl_, variable_values_),
344 offsetof(Impl_, dual_values_) -
345 offsetof(Impl_, variable_values_) +
346 sizeof(Impl_::dual_values_));
352inline void SolutionHintProto::SharedDtor(MessageLite& self) {
354 this_._internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>();
355 ABSL_DCHECK(this_.GetArena() ==
nullptr);
356 delete this_.
_impl_.variable_values_;
357 delete this_.
_impl_.dual_values_;
362 const void* PROTOBUF_NONNULL,
void* PROTOBUF_NONNULL mem,
363 ::google::protobuf::Arena* PROTOBUF_NULLABLE arena) {
371 return ::google::protobuf::internal::ClassDataFull{
372 ::google::protobuf::internal::ClassData{
377 &SolutionHintProto::MergeImpl,
378 ::google::protobuf::Message::GetNewImpl<SolutionHintProto>(),
379#if defined(PROTOBUF_CUSTOM_VTABLE)
380 &SolutionHintProto::SharedDtor,
387 &SolutionHintProto::kDescriptorMethods,
393PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 const
397PROTOBUF_ATTRIBUTE_WEAK const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL
403PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1
404const ::_pbi::TcParseTable<1, 2, 2, 0, 2>
405SolutionHintProto::_table_ = {
410 offsetof(
decltype(_table_), field_lookup_table),
412 offsetof(
decltype(_table_), field_entries),
415 offsetof(
decltype(_table_), aux_entries),
418 ::_pbi::TcParser::GenericFallback,
419 #ifdef PROTOBUF_PREFETCH_PARSE_TABLE
420 ::_pbi::TcParser::GetTable<::operations_research::math_opt::SolutionHintProto>(),
424 {::_pbi::TcParser::FastMtS1,
425 {18, 1, 1, PROTOBUF_FIELD_OFFSET(SolutionHintProto, _impl_.dual_values_)}},
427 {::_pbi::TcParser::FastMtS1,
433 {PROTOBUF_FIELD_OFFSET(
SolutionHintProto, _impl_.variable_values_), _Internal::kHasBitsOffset + 0, 0,
434 (0 | ::_fl::kFcOptional | ::_fl::kMessage | ::_fl::kTvTable)},
436 {PROTOBUF_FIELD_OFFSET(
SolutionHintProto, _impl_.dual_values_), _Internal::kHasBitsOffset + 1, 1,
437 (0 | ::_fl::kFcOptional | ::_fl::kMessage | ::_fl::kTvTable)},
440 {::_pbi::TcParser::GetTable<::operations_research::math_opt::SparseDoubleVectorProto>()},
441 {::_pbi::TcParser::GetTable<::operations_research::math_opt::SparseDoubleVectorProto>()},
448 ::google::protobuf::internal::TSanWrite(&
_impl_);
449 ::uint32_t cached_has_bits = 0;
451 (void) cached_has_bits;
453 cached_has_bits =
_impl_._has_bits_[0];
454 if ((cached_has_bits & 0x00000003u) != 0) {
455 if ((cached_has_bits & 0x00000001u) != 0) {
456 ABSL_DCHECK(
_impl_.variable_values_ !=
nullptr);
457 _impl_.variable_values_->Clear();
459 if ((cached_has_bits & 0x00000002u) != 0) {
460 ABSL_DCHECK(
_impl_.dual_values_ !=
nullptr);
464 _impl_._has_bits_.Clear();
465 _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>();
468#if defined(PROTOBUF_CUSTOM_VTABLE)
470 const ::google::protobuf::MessageLite& base, ::uint8_t* PROTOBUF_NONNULL target,
471 ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) {
475 ::uint8_t* PROTOBUF_NONNULL target,
476 ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream)
const {
480 ::uint32_t cached_has_bits = 0;
481 (void)cached_has_bits;
483 cached_has_bits = this_.
_impl_._has_bits_[0];
485 if ((cached_has_bits & 0x00000001u) != 0) {
486 target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage(
492 if ((cached_has_bits & 0x00000002u) != 0) {
493 target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage(
498 if (ABSL_PREDICT_FALSE(this_._internal_metadata_.have_unknown_fields())) {
500 ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray(
501 this_._internal_metadata_.
unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream);
507#if defined(PROTOBUF_CUSTOM_VTABLE)
515 ::size_t total_size = 0;
517 ::uint32_t cached_has_bits = 0;
519 (void)cached_has_bits;
521 ::_pbi::Prefetch5LinesFrom7Lines(&this_);
522 cached_has_bits = this_.
_impl_._has_bits_[0];
523 if ((cached_has_bits & 0x00000003u) != 0) {
525 if ((cached_has_bits & 0x00000001u) != 0) {
527 ::google::protobuf::internal::WireFormatLite::MessageSize(*this_.
_impl_.variable_values_);
530 if ((cached_has_bits & 0x00000002u) != 0) {
532 ::google::protobuf::internal::WireFormatLite::MessageSize(*this_.
_impl_.dual_values_);
535 return this_.MaybeComputeUnknownFieldsSize(total_size,
536 &this_.
_impl_._cached_size_);
539void SolutionHintProto::MergeImpl(::google::protobuf::MessageLite& to_msg, const ::google::protobuf::MessageLite& from_msg) {
544 ABSL_DCHECK_NE(&from, _this);
545 ::uint32_t cached_has_bits = 0;
546 (void) cached_has_bits;
548 cached_has_bits = from._impl_._has_bits_[0];
549 if ((cached_has_bits & 0x00000003u) != 0) {
550 if ((cached_has_bits & 0x00000001u) != 0) {
551 ABSL_DCHECK(from._impl_.variable_values_ !=
nullptr);
552 if (_this->_impl_.variable_values_ ==
nullptr) {
553 _this->_impl_.variable_values_ = ::google::protobuf::Message::CopyConstruct(arena, *from._impl_.variable_values_);
555 _this->_impl_.variable_values_->MergeFrom(*from._impl_.variable_values_);
558 if ((cached_has_bits & 0x00000002u) != 0) {
559 ABSL_DCHECK(from._impl_.dual_values_ !=
nullptr);
560 if (_this->_impl_.dual_values_ ==
nullptr) {
561 _this->_impl_.dual_values_ = ::google::protobuf::Message::CopyConstruct(arena, *from._impl_.dual_values_);
563 _this->_impl_.dual_values_->MergeFrom(*from._impl_.dual_values_);
567 _this->_impl_._has_bits_[0] |= cached_has_bits;
568 _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_);
573 if (&from ==
this)
return;
579void SolutionHintProto::InternalSwap(
SolutionHintProto* PROTOBUF_RESTRICT PROTOBUF_NONNULL other) {
581 _internal_metadata_.InternalSwap(&other->_internal_metadata_);
582 swap(
_impl_._has_bits_[0], other->_impl_._has_bits_[0]);
583 ::google::protobuf::internal::memswap<
587 reinterpret_cast<char*
>(&
_impl_.variable_values_),
588 reinterpret_cast<char*
>(&other->_impl_.variable_values_));
592 return ::google::protobuf::Message::GetMetadataImpl(
GetClassData()->full());
599 decltype(::std::declval<ObjectiveParametersProto>()._impl_._has_bits_);
605 ::google::protobuf::internal::TSanWrite(&
_impl_);
607 _impl_._has_bits_[0] &= ~0x00000001u;
610#if defined(PROTOBUF_CUSTOM_VTABLE)
613 : ::google::protobuf::Message(arena) {
618PROTOBUF_NDEBUG_INLINE ObjectiveParametersProto::Impl_::Impl_(
619 ::google::protobuf::internal::InternalVisibility visibility,
620 ::google::protobuf::Arena* PROTOBUF_NULLABLE arena,
const Impl_& from,
621 const ::operations_research::math_opt::ObjectiveParametersProto& from_msg)
622 : _has_bits_{from._has_bits_},
626 ::google::protobuf::Arena* PROTOBUF_NULLABLE arena,
628#if defined(PROTOBUF_CUSTOM_VTABLE)
631 : ::google::protobuf::Message(arena) {
635 _internal_metadata_.
MergeFrom<::google::protobuf::UnknownFieldSet>(
636 from._internal_metadata_);
637 new (&
_impl_) Impl_(internal_visibility(), arena, from._impl_, from);
638 ::uint32_t cached_has_bits =
_impl_._has_bits_[0];
639 _impl_.time_limit_ = ((cached_has_bits & 0x00000001u) != 0)
640 ? ::google::protobuf::Message::CopyConstruct(arena, *from._impl_.time_limit_)
642 ::memcpy(
reinterpret_cast<char *
>(&
_impl_) +
643 offsetof(Impl_, objective_degradation_absolute_tolerance_),
644 reinterpret_cast<const char *
>(&from._impl_) +
645 offsetof(Impl_, objective_degradation_absolute_tolerance_),
646 offsetof(Impl_, objective_degradation_relative_tolerance_) -
647 offsetof(Impl_, objective_degradation_absolute_tolerance_) +
648 sizeof(Impl_::objective_degradation_relative_tolerance_));
652PROTOBUF_NDEBUG_INLINE ObjectiveParametersProto::Impl_::Impl_(
653 ::google::protobuf::internal::InternalVisibility visibility,
654 ::google::protobuf::Arena* PROTOBUF_NULLABLE arena)
655 : _cached_size_{0} {}
657inline void ObjectiveParametersProto::SharedCtor(::_pb::Arena* PROTOBUF_NULLABLE arena) {
658 new (&
_impl_) Impl_(internal_visibility(), arena);
659 ::memset(
reinterpret_cast<char *
>(&
_impl_) +
660 offsetof(Impl_, time_limit_),
662 offsetof(Impl_, objective_degradation_relative_tolerance_) -
663 offsetof(Impl_, time_limit_) +
664 sizeof(Impl_::objective_degradation_relative_tolerance_));
670inline void ObjectiveParametersProto::SharedDtor(
MessageLite& self) {
672 this_._internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>();
673 ABSL_DCHECK(this_.GetArena() ==
nullptr);
674 delete this_.
_impl_.time_limit_;
679 const void* PROTOBUF_NONNULL,
void* PROTOBUF_NONNULL mem,
680 ::google::protobuf::Arena* PROTOBUF_NULLABLE arena) {
688 return ::google::protobuf::internal::ClassDataFull{
689 ::google::protobuf::internal::ClassData{
694 &ObjectiveParametersProto::MergeImpl,
695 ::google::protobuf::Message::GetNewImpl<ObjectiveParametersProto>(),
696#if defined(PROTOBUF_CUSTOM_VTABLE)
697 &ObjectiveParametersProto::SharedDtor,
704 &ObjectiveParametersProto::kDescriptorMethods,
710PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 const
714PROTOBUF_ATTRIBUTE_WEAK const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL
720PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1
721const ::_pbi::TcParseTable<2, 3, 1, 0, 2>
722ObjectiveParametersProto::_table_ = {
727 offsetof(
decltype(_table_), field_lookup_table),
729 offsetof(
decltype(_table_), field_entries),
732 offsetof(
decltype(_table_), aux_entries),
735 ::_pbi::TcParser::GenericFallback,
736 #ifdef PROTOBUF_PREFETCH_PARSE_TABLE
737 ::_pbi::TcParser::GetTable<::operations_research::math_opt::ObjectiveParametersProto>(),
741 {::_pbi::TcParser::FastF64S1,
742 {65, 2, 0, PROTOBUF_FIELD_OFFSET(ObjectiveParametersProto,
_impl_.objective_degradation_relative_tolerance_)}},
744 {::_pbi::TcParser::FastMtS1,
745 {74, 0, 0, PROTOBUF_FIELD_OFFSET(ObjectiveParametersProto,
_impl_.time_limit_)}},
746 {::_pbi::TcParser::MiniParse, {}},
748 {::_pbi::TcParser::FastF64S1,
749 {57, 1, 0, PROTOBUF_FIELD_OFFSET(ObjectiveParametersProto,
_impl_.objective_degradation_absolute_tolerance_)}},
755 (0 | ::_fl::kFcOptional | ::_fl::kDouble)},
758 (0 | ::_fl::kFcOptional | ::_fl::kDouble)},
761 (0 | ::_fl::kFcOptional | ::_fl::kMessage | ::_fl::kTvTable)},
764 {::_pbi::TcParser::GetTable<::google::protobuf::Duration>()},
771 ::google::protobuf::internal::TSanWrite(&
_impl_);
772 ::uint32_t cached_has_bits = 0;
774 (void) cached_has_bits;
776 cached_has_bits =
_impl_._has_bits_[0];
777 if ((cached_has_bits & 0x00000001u) != 0) {
778 ABSL_DCHECK(
_impl_.time_limit_ !=
nullptr);
779 _impl_.time_limit_->Clear();
781 if ((cached_has_bits & 0x00000006u) != 0) {
782 ::memset(&
_impl_.objective_degradation_absolute_tolerance_, 0,
static_cast<::
size_t>(
783 reinterpret_cast<char*
>(&
_impl_.objective_degradation_relative_tolerance_) -
784 reinterpret_cast<char*
>(&
_impl_.objective_degradation_absolute_tolerance_)) +
sizeof(
_impl_.objective_degradation_relative_tolerance_));
786 _impl_._has_bits_.Clear();
787 _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>();
790#if defined(PROTOBUF_CUSTOM_VTABLE)
792 const ::google::protobuf::MessageLite& base, ::uint8_t* PROTOBUF_NONNULL target,
793 ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) {
794 const ObjectiveParametersProto& this_ =
static_cast<const ObjectiveParametersProto&
>(base);
797 ::uint8_t* PROTOBUF_NONNULL target,
798 ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream)
const {
802 ::uint32_t cached_has_bits = 0;
803 (void)cached_has_bits;
805 cached_has_bits = this_.
_impl_._has_bits_[0];
807 if ((cached_has_bits & 0x00000002u) != 0) {
808 target = stream->EnsureSpace(target);
809 target = ::_pbi::WireFormatLite::WriteDoubleToArray(
810 7, this_._internal_objective_degradation_absolute_tolerance(), target);
814 if ((cached_has_bits & 0x00000004u) != 0) {
815 target = stream->EnsureSpace(target);
816 target = ::_pbi::WireFormatLite::WriteDoubleToArray(
817 8, this_._internal_objective_degradation_relative_tolerance(), target);
821 if ((cached_has_bits & 0x00000001u) != 0) {
822 target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage(
823 9, *this_.
_impl_.time_limit_, this_.
_impl_.time_limit_->GetCachedSize(), target,
827 if (ABSL_PREDICT_FALSE(this_._internal_metadata_.have_unknown_fields())) {
829 ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray(
830 this_._internal_metadata_.
unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream);
836#if defined(PROTOBUF_CUSTOM_VTABLE)
844 ::size_t total_size = 0;
846 ::uint32_t cached_has_bits = 0;
848 (void)cached_has_bits;
850 ::_pbi::Prefetch5LinesFrom7Lines(&this_);
851 cached_has_bits = this_.
_impl_._has_bits_[0];
852 total_size += ::absl::popcount(0x00000006u & cached_has_bits) * 9;
855 if ((cached_has_bits & 0x00000001u) != 0) {
857 ::google::protobuf::internal::WireFormatLite::MessageSize(*this_.
_impl_.time_limit_);
860 return this_.MaybeComputeUnknownFieldsSize(total_size,
861 &this_.
_impl_._cached_size_);
864void ObjectiveParametersProto::MergeImpl(::google::protobuf::MessageLite& to_msg, const ::google::protobuf::MessageLite& from_msg) {
865 auto*
const _this =
static_cast<ObjectiveParametersProto*
>(&to_msg);
866 auto& from =
static_cast<const ObjectiveParametersProto&
>(from_msg);
867 ::google::protobuf::Arena* arena = _this->GetArena();
869 ABSL_DCHECK_NE(&from, _this);
870 ::uint32_t cached_has_bits = 0;
871 (void) cached_has_bits;
873 cached_has_bits = from._impl_._has_bits_[0];
874 if ((cached_has_bits & 0x00000007u) != 0) {
875 if ((cached_has_bits & 0x00000001u) != 0) {
876 ABSL_DCHECK(from._impl_.time_limit_ !=
nullptr);
877 if (_this->_impl_.time_limit_ ==
nullptr) {
878 _this->_impl_.time_limit_ = ::google::protobuf::Message::CopyConstruct(arena, *from._impl_.time_limit_);
880 _this->_impl_.time_limit_->MergeFrom(*from._impl_.time_limit_);
883 if ((cached_has_bits & 0x00000002u) != 0) {
884 _this->_impl_.objective_degradation_absolute_tolerance_ = from._impl_.objective_degradation_absolute_tolerance_;
886 if ((cached_has_bits & 0x00000004u) != 0) {
887 _this->_impl_.objective_degradation_relative_tolerance_ = from._impl_.objective_degradation_relative_tolerance_;
890 _this->_impl_._has_bits_[0] |= cached_has_bits;
891 _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_);
896 if (&from ==
this)
return;
904 _internal_metadata_.InternalSwap(&other->_internal_metadata_);
905 swap(
_impl_._has_bits_[0], other->_impl_._has_bits_[0]);
906 ::google::protobuf::internal::memswap<
910 reinterpret_cast<char*
>(&
_impl_.time_limit_),
911 reinterpret_cast<char*
>(&other->_impl_.time_limit_));
915 return ::google::protobuf::Message::GetMetadataImpl(
GetClassData()->full());
919#if defined(PROTOBUF_CUSTOM_VTABLE)
928inline void* PROTOBUF_NONNULL ModelSolveParametersProto_AuxiliaryObjectiveParametersEntry_DoNotUse::PlacementNew_(
929 const void* PROTOBUF_NONNULL,
void* PROTOBUF_NONNULL mem,
930 ::google::protobuf::Arena* PROTOBUF_NULLABLE arena) {
933constexpr auto ModelSolveParametersProto_AuxiliaryObjectiveParametersEntry_DoNotUse::InternalNewImpl_() {
938 return ::google::protobuf::internal::ClassDataFull{
939 ::google::protobuf::internal::ClassData{
944 &ModelSolveParametersProto_AuxiliaryObjectiveParametersEntry_DoNotUse::MergeImpl,
945 ::google::protobuf::Message::GetNewImpl<ModelSolveParametersProto_AuxiliaryObjectiveParametersEntry_DoNotUse>(),
946#if defined(PROTOBUF_CUSTOM_VTABLE)
947 &ModelSolveParametersProto_AuxiliaryObjectiveParametersEntry_DoNotUse::SharedDtor,
948 static_cast<void (::google::protobuf::MessageLite::*)()
>(&ModelSolveParametersProto_AuxiliaryObjectiveParametersEntry_DoNotUse::ClearImpl),
949 ::google::protobuf::Message::ByteSizeLongImpl, ::google::protobuf::Message::_InternalSerializeImpl
955 &ModelSolveParametersProto_AuxiliaryObjectiveParametersEntry_DoNotUse::kDescriptorMethods,
961PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 const
965PROTOBUF_ATTRIBUTE_WEAK const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL
966ModelSolveParametersProto_AuxiliaryObjectiveParametersEntry_DoNotUse::GetClassData()
const {
971PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1
972const ::_pbi::TcParseTable<1, 2, 1, 0, 2>
973ModelSolveParametersProto_AuxiliaryObjectiveParametersEntry_DoNotUse::_table_ = {
975 PROTOBUF_FIELD_OFFSET(ModelSolveParametersProto_AuxiliaryObjectiveParametersEntry_DoNotUse, _impl_._has_bits_),
978 offsetof(
decltype(_table_), field_lookup_table),
980 offsetof(
decltype(_table_), field_entries),
983 offsetof(
decltype(_table_), aux_entries),
986 ::_pbi::TcParser::DiscardEverythingFallback,
987 #ifdef PROTOBUF_PREFETCH_PARSE_TABLE
988 ::_pbi::TcParser::GetTable<::operations_research::math_opt::ModelSolveParametersProto_AuxiliaryObjectiveParametersEntry_DoNotUse>(),
992 {::_pbi::TcParser::FastMtS1,
993 {18, 0, 0, PROTOBUF_FIELD_OFFSET(ModelSolveParametersProto_AuxiliaryObjectiveParametersEntry_DoNotUse, _impl_.value_)}},
1002 (0 | ::_fl::kFcOptional | ::_fl::kInt64)},
1005 (0 | ::_fl::kFcOptional | ::_fl::kMessage | ::_fl::kTvTable)},
1008 {::_pbi::TcParser::GetTable<::operations_research::math_opt::ObjectiveParametersProto>()},
1018 decltype(::std::declval<ModelSolveParametersProto>()._impl_._has_bits_);
1024 ::google::protobuf::internal::TSanWrite(&
_impl_);
1025 if (
_impl_.variable_values_filter_ !=
nullptr)
_impl_.variable_values_filter_->Clear();
1026 _impl_._has_bits_[0] &= ~0x00000001u;
1029 ::google::protobuf::internal::TSanWrite(&
_impl_);
1031 _impl_._has_bits_[0] &= ~0x00000002u;
1034 ::google::protobuf::internal::TSanWrite(&
_impl_);
1035 if (
_impl_.quadratic_dual_values_filter_ !=
nullptr)
_impl_.quadratic_dual_values_filter_->
Clear();
1036 _impl_._has_bits_[0] &= ~0x00000040u;
1039 ::google::protobuf::internal::TSanWrite(&
_impl_);
1040 if (
_impl_.reduced_costs_filter_ !=
nullptr)
_impl_.reduced_costs_filter_->
Clear();
1041 _impl_._has_bits_[0] &= ~0x00000004u;
1044 ::google::protobuf::internal::TSanWrite(&
_impl_);
1046 _impl_._has_bits_[0] &= ~0x00000008u;
1049 ::google::protobuf::internal::TSanWrite(&
_impl_);
1050 if (
_impl_.branching_priorities_ !=
nullptr)
_impl_.branching_priorities_->
Clear();
1051 _impl_._has_bits_[0] &= ~0x00000010u;
1054#if defined(PROTOBUF_CUSTOM_VTABLE)
1057 : ::google::protobuf::Message(arena) {
1062PROTOBUF_NDEBUG_INLINE ModelSolveParametersProto::Impl_::Impl_(
1063 ::google::protobuf::internal::InternalVisibility visibility,
1064 ::google::protobuf::Arena* PROTOBUF_NULLABLE arena,
const Impl_& from,
1065 const ::operations_research::math_opt::ModelSolveParametersProto& from_msg)
1066 : _has_bits_{from._has_bits_},
1068 solution_hints_{visibility, arena, from.solution_hints_},
1069 auxiliary_objective_parameters_{visibility, arena, from.auxiliary_objective_parameters_},
1070 lazy_linear_constraint_ids_{visibility, arena, from.lazy_linear_constraint_ids_},
1071 _lazy_linear_constraint_ids_cached_byte_size_{0} {}
1074 ::google::protobuf::Arena* PROTOBUF_NULLABLE arena,
1075 const ModelSolveParametersProto& from)
1076#if defined(PROTOBUF_CUSTOM_VTABLE)
1079 : ::google::protobuf::Message(arena) {
1083 _internal_metadata_.
MergeFrom<::google::protobuf::UnknownFieldSet>(
1084 from._internal_metadata_);
1085 new (&
_impl_) Impl_(internal_visibility(), arena, from._impl_, from);
1086 ::uint32_t cached_has_bits =
_impl_._has_bits_[0];
1087 _impl_.variable_values_filter_ = ((cached_has_bits & 0x00000001u) != 0)
1088 ? ::google::protobuf::Message::CopyConstruct(arena, *from._impl_.variable_values_filter_)
1090 _impl_.dual_values_filter_ = ((cached_has_bits & 0x00000002u) != 0)
1091 ? ::google::protobuf::Message::CopyConstruct(arena, *from._impl_.dual_values_filter_)
1093 _impl_.reduced_costs_filter_ = ((cached_has_bits & 0x00000004u) != 0)
1094 ? ::google::protobuf::Message::CopyConstruct(arena, *from._impl_.reduced_costs_filter_)
1096 _impl_.initial_basis_ = ((cached_has_bits & 0x00000008u) != 0)
1097 ? ::google::protobuf::Message::CopyConstruct(arena, *from._impl_.initial_basis_)
1099 _impl_.branching_priorities_ = ((cached_has_bits & 0x00000010u) != 0)
1100 ? ::google::protobuf::Message::CopyConstruct(arena, *from._impl_.branching_priorities_)
1102 _impl_.primary_objective_parameters_ = ((cached_has_bits & 0x00000020u) != 0)
1103 ? ::google::protobuf::Message::CopyConstruct(arena, *from._impl_.primary_objective_parameters_)
1105 _impl_.quadratic_dual_values_filter_ = ((cached_has_bits & 0x00000040u) != 0)
1106 ? ::google::protobuf::Message::CopyConstruct(arena, *from._impl_.quadratic_dual_values_filter_)
1111PROTOBUF_NDEBUG_INLINE ModelSolveParametersProto::Impl_::Impl_(
1112 ::google::protobuf::internal::InternalVisibility visibility,
1113 ::google::protobuf::Arena* PROTOBUF_NULLABLE arena)
1115 solution_hints_{visibility, arena},
1116 auxiliary_objective_parameters_{visibility, arena},
1117 lazy_linear_constraint_ids_{visibility, arena},
1118 _lazy_linear_constraint_ids_cached_byte_size_{0} {}
1120inline void ModelSolveParametersProto::SharedCtor(::_pb::Arena* PROTOBUF_NULLABLE arena) {
1121 new (&
_impl_) Impl_(internal_visibility(), arena);
1122 ::memset(
reinterpret_cast<char *
>(&
_impl_) +
1123 offsetof(Impl_, variable_values_filter_),
1125 offsetof(Impl_, quadratic_dual_values_filter_) -
1126 offsetof(Impl_, variable_values_filter_) +
1127 sizeof(Impl_::quadratic_dual_values_filter_));
1135 this_._internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>();
1136 ABSL_DCHECK(this_.GetArena() ==
nullptr);
1137 delete this_.
_impl_.variable_values_filter_;
1138 delete this_.
_impl_.dual_values_filter_;
1139 delete this_.
_impl_.reduced_costs_filter_;
1140 delete this_.
_impl_.initial_basis_;
1141 delete this_.
_impl_.branching_priorities_;
1142 delete this_.
_impl_.primary_objective_parameters_;
1143 delete this_.
_impl_.quadratic_dual_values_filter_;
1148 const void* PROTOBUF_NONNULL,
void* PROTOBUF_NONNULL mem,
1149 ::google::protobuf::Arena* PROTOBUF_NULLABLE arena) {
1153 constexpr auto arena_bits = ::google::protobuf::internal::EncodePlacementArenaOffsets({
1156 InternalGetArenaOffset(
1157 ::google::protobuf::Message::internal_visibility()),
1160 InternalGetArenaOffset(
1164 InternalGetArenaOffsetAlt(
1168 InternalGetArenaOffset(
1171 if (arena_bits.has_value()) {
1172 return ::google::protobuf::internal::MessageCreator::CopyInit(
1173 sizeof(ModelSolveParametersProto), alignof(ModelSolveParametersProto), *arena_bits);
1175 return ::google::protobuf::internal::MessageCreator(&ModelSolveParametersProto::PlacementNew_,
1176 sizeof(ModelSolveParametersProto),
1177 alignof(ModelSolveParametersProto));
1181 return ::google::protobuf::internal::ClassDataFull{
1182 ::google::protobuf::internal::ClassData{
1187 &ModelSolveParametersProto::MergeImpl,
1188 ::google::protobuf::Message::GetNewImpl<ModelSolveParametersProto>(),
1189#if defined(PROTOBUF_CUSTOM_VTABLE)
1190 &ModelSolveParametersProto::SharedDtor,
1197 &ModelSolveParametersProto::kDescriptorMethods,
1203PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 const
1207PROTOBUF_ATTRIBUTE_WEAK const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL
1213PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1
1214const ::_pbi::TcParseTable<4, 10, 10, 0, 2>
1215ModelSolveParametersProto::_table_ = {
1220 offsetof(
decltype(_table_), field_lookup_table),
1222 offsetof(
decltype(_table_), field_entries),
1225 offsetof(
decltype(_table_), aux_entries),
1228 ::_pbi::TcParser::GenericFallback,
1229 #ifdef PROTOBUF_PREFETCH_PARSE_TABLE
1230 ::_pbi::TcParser::GetTable<::operations_research::math_opt::ModelSolveParametersProto>(),
1233 {::_pbi::TcParser::MiniParse, {}},
1235 {::_pbi::TcParser::FastMtS1,
1238 {::_pbi::TcParser::FastMtS1,
1241 {::_pbi::TcParser::FastMtS1,
1244 {::_pbi::TcParser::FastMtS1,
1247 {::_pbi::TcParser::FastMtR1,
1250 {::_pbi::TcParser::FastMtS1,
1253 {::_pbi::TcParser::FastMtS1,
1255 {::_pbi::TcParser::MiniParse, {}},
1257 {::_pbi::TcParser::FastV64P1,
1260 {::_pbi::TcParser::FastMtS1,
1262 {::_pbi::TcParser::MiniParse, {}},
1263 {::_pbi::TcParser::MiniParse, {}},
1264 {::_pbi::TcParser::MiniParse, {}},
1265 {::_pbi::TcParser::MiniParse, {}},
1266 {::_pbi::TcParser::MiniParse, {}},
1272 (0 | ::_fl::kFcOptional | ::_fl::kMessage | ::_fl::kTvTable)},
1275 (0 | ::_fl::kFcOptional | ::_fl::kMessage | ::_fl::kTvTable)},
1278 (0 | ::_fl::kFcOptional | ::_fl::kMessage | ::_fl::kTvTable)},
1281 (0 | ::_fl::kFcOptional | ::_fl::kMessage | ::_fl::kTvTable)},
1284 (0 | ::_fl::kFcRepeated | ::_fl::kMessage | ::_fl::kTvTable)},
1287 (0 | ::_fl::kFcOptional | ::_fl::kMessage | ::_fl::kTvTable)},
1290 (0 | ::_fl::kFcOptional | ::_fl::kMessage | ::_fl::kTvTable)},
1293 (0 | ::_fl::kFcRepeated | ::_fl::kMap)},
1296 (0 | ::_fl::kFcRepeated | ::_fl::kPackedInt64)},
1299 (0 | ::_fl::kFcOptional | ::_fl::kMessage | ::_fl::kTvTable)},
1302 {::_pbi::TcParser::GetTable<::operations_research::math_opt::SparseVectorFilterProto>()},
1303 {::_pbi::TcParser::GetTable<::operations_research::math_opt::SparseVectorFilterProto>()},
1304 {::_pbi::TcParser::GetTable<::operations_research::math_opt::SparseVectorFilterProto>()},
1305 {::_pbi::TcParser::GetTable<::operations_research::math_opt::BasisProto>()},
1306 {::_pbi::TcParser::GetTable<::operations_research::math_opt::SolutionHintProto>()},
1307 {::_pbi::TcParser::GetTable<::operations_research::math_opt::SparseInt32VectorProto>()},
1308 {::_pbi::TcParser::GetTable<::operations_research::math_opt::ObjectiveParametersProto>()},
1309 {::_pbi::TcParser::GetTable<::operations_research::math_opt::SparseVectorFilterProto>()},
1310 {::_pbi::TcParser::GetMapAuxInfo(0, 0, 0,
1313 {::_pbi::TcParser::GetTable<::operations_research::math_opt::ObjectiveParametersProto>()},
1320 ::google::protobuf::internal::TSanWrite(&
_impl_);
1321 ::uint32_t cached_has_bits = 0;
1323 (void) cached_has_bits;
1325 _impl_.solution_hints_.Clear();
1326 _impl_.auxiliary_objective_parameters_.Clear();
1327 _impl_.lazy_linear_constraint_ids_.Clear();
1328 cached_has_bits =
_impl_._has_bits_[0];
1329 if ((cached_has_bits & 0x0000007fu) != 0) {
1330 if ((cached_has_bits & 0x00000001u) != 0) {
1331 ABSL_DCHECK(
_impl_.variable_values_filter_ !=
nullptr);
1332 _impl_.variable_values_filter_->Clear();
1334 if ((cached_has_bits & 0x00000002u) != 0) {
1335 ABSL_DCHECK(
_impl_.dual_values_filter_ !=
nullptr);
1336 _impl_.dual_values_filter_->Clear();
1338 if ((cached_has_bits & 0x00000004u) != 0) {
1339 ABSL_DCHECK(
_impl_.reduced_costs_filter_ !=
nullptr);
1340 _impl_.reduced_costs_filter_->Clear();
1342 if ((cached_has_bits & 0x00000008u) != 0) {
1343 ABSL_DCHECK(
_impl_.initial_basis_ !=
nullptr);
1344 _impl_.initial_basis_->Clear();
1346 if ((cached_has_bits & 0x00000010u) != 0) {
1347 ABSL_DCHECK(
_impl_.branching_priorities_ !=
nullptr);
1348 _impl_.branching_priorities_->Clear();
1350 if ((cached_has_bits & 0x00000020u) != 0) {
1351 ABSL_DCHECK(
_impl_.primary_objective_parameters_ !=
nullptr);
1352 _impl_.primary_objective_parameters_->Clear();
1354 if ((cached_has_bits & 0x00000040u) != 0) {
1355 ABSL_DCHECK(
_impl_.quadratic_dual_values_filter_ !=
nullptr);
1356 _impl_.quadratic_dual_values_filter_->Clear();
1359 _impl_._has_bits_.Clear();
1360 _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>();
1363#if defined(PROTOBUF_CUSTOM_VTABLE)
1365 const ::google::protobuf::MessageLite&
base, ::uint8_t* PROTOBUF_NONNULL target,
1366 ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) {
1370 ::uint8_t* PROTOBUF_NONNULL target,
1371 ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream)
const {
1375 ::uint32_t cached_has_bits = 0;
1376 (void)cached_has_bits;
1378 cached_has_bits = this_.
_impl_._has_bits_[0];
1380 if ((cached_has_bits & 0x00000001u) != 0) {
1381 target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage(
1382 1, *this_._impl_.variable_values_filter_, this_._impl_.variable_values_filter_->GetCachedSize(), target,
1387 if ((cached_has_bits & 0x00000002u) != 0) {
1388 target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage(
1389 2, *this_._impl_.dual_values_filter_, this_._impl_.dual_values_filter_->GetCachedSize(), target,
1394 if ((cached_has_bits & 0x00000004u) != 0) {
1395 target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage(
1396 3, *this_._impl_.reduced_costs_filter_, this_._impl_.reduced_costs_filter_->GetCachedSize(), target,
1401 if ((cached_has_bits & 0x00000008u) != 0) {
1402 target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage(
1403 4, *this_._impl_.initial_basis_, this_._impl_.initial_basis_->GetCachedSize(), target,
1408 for (
unsigned i = 0, n =
static_cast<unsigned>(
1409 this_._internal_solution_hints_size());
1411 const auto& repfield = this_._internal_solution_hints().Get(i);
1413 ::google::protobuf::internal::WireFormatLite::InternalWriteMessage(
1414 5, repfield, repfield.GetCachedSize(),
1419 if ((cached_has_bits & 0x00000010u) != 0) {
1420 target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage(
1421 6, *this_._impl_.branching_priorities_, this_._impl_.branching_priorities_->GetCachedSize(), target,
1426 if ((cached_has_bits & 0x00000020u) != 0) {
1427 target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage(
1428 7, *this_._impl_.primary_objective_parameters_, this_._impl_.primary_objective_parameters_->GetCachedSize(), target,
1433 if (!this_._internal_auxiliary_objective_parameters().empty()) {
1434 using MapType = ::google::protobuf::Map<::int64_t, ::operations_research::math_opt::ObjectiveParametersProto>;
1435 using WireHelper = _pbi::MapEntryFuncs<::int64_t, ::operations_research::math_opt::ObjectiveParametersProto,
1436 _pbi::WireFormatLite::TYPE_INT64,
1437 _pbi::WireFormatLite::TYPE_MESSAGE>;
1438 const auto& field = this_._internal_auxiliary_objective_parameters();
1440 if (stream->IsSerializationDeterministic() && field.size() > 1) {
1441 for (
const auto& entry : ::google::protobuf::internal::MapSorterFlat<MapType>(field)) {
1442 target = WireHelper::InternalSerialize(
1443 8, entry.first, entry.second, target, stream);
1446 for (
const auto& entry : field) {
1447 target = WireHelper::InternalSerialize(
1448 8, entry.first, entry.second, target, stream);
1455 int byte_size = this_._impl_._lazy_linear_constraint_ids_cached_byte_size_.Get();
1456 if (byte_size > 0) {
1457 target = stream->WriteInt64Packed(
1458 9, this_._internal_lazy_linear_constraint_ids(), byte_size, target);
1463 if ((cached_has_bits & 0x00000040u) != 0) {
1464 target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage(
1465 10, *this_._impl_.quadratic_dual_values_filter_, this_._impl_.quadratic_dual_values_filter_->GetCachedSize(), target,
1469 if (ABSL_PREDICT_FALSE(this_._internal_metadata_.have_unknown_fields())) {
1471 ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray(
1472 this_._internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream);
1478#if defined(PROTOBUF_CUSTOM_VTABLE)
1486 ::size_t total_size = 0;
1488 ::uint32_t cached_has_bits = 0;
1490 (void)cached_has_bits;
1492 ::_pbi::Prefetch5LinesFrom7Lines(&this_);
1496 total_size += 1UL * this_._internal_solution_hints_size();
1497 for (
const auto& msg : this_._internal_solution_hints()) {
1498 total_size += ::google::protobuf::internal::WireFormatLite::MessageSize(msg);
1504 1 * ::google::protobuf::internal::FromIntSize(this_._internal_auxiliary_objective_parameters_size());
1505 for (
const auto& entry : this_._internal_auxiliary_objective_parameters()) {
1507 _pbi::WireFormatLite::TYPE_INT64,
1508 _pbi::WireFormatLite::TYPE_MESSAGE>
::ByteSizeLong(entry.first, entry.second);
1514 ::_pbi::WireFormatLite::Int64SizeWithPackedTagSize(
1515 this_._internal_lazy_linear_constraint_ids(), 1,
1516 this_._impl_._lazy_linear_constraint_ids_cached_byte_size_);
1519 cached_has_bits = this_._impl_._has_bits_[0];
1520 if ((cached_has_bits & 0x0000007fu) != 0) {
1522 if ((cached_has_bits & 0x00000001u) != 0) {
1524 ::google::protobuf::internal::WireFormatLite::MessageSize(*this_._impl_.variable_values_filter_);
1527 if ((cached_has_bits & 0x00000002u) != 0) {
1529 ::google::protobuf::internal::WireFormatLite::MessageSize(*this_._impl_.dual_values_filter_);
1532 if ((cached_has_bits & 0x00000004u) != 0) {
1534 ::google::protobuf::internal::WireFormatLite::MessageSize(*this_._impl_.reduced_costs_filter_);
1537 if ((cached_has_bits & 0x00000008u) != 0) {
1539 ::google::protobuf::internal::WireFormatLite::MessageSize(*this_._impl_.initial_basis_);
1542 if ((cached_has_bits & 0x00000010u) != 0) {
1544 ::google::protobuf::internal::WireFormatLite::MessageSize(*this_._impl_.branching_priorities_);
1547 if ((cached_has_bits & 0x00000020u) != 0) {
1549 ::google::protobuf::internal::WireFormatLite::MessageSize(*this_._impl_.primary_objective_parameters_);
1552 if ((cached_has_bits & 0x00000040u) != 0) {
1554 ::google::protobuf::internal::WireFormatLite::MessageSize(*this_._impl_.quadratic_dual_values_filter_);
1557 return this_.MaybeComputeUnknownFieldsSize(total_size,
1558 &this_._impl_._cached_size_);
1561void ModelSolveParametersProto::MergeImpl(::google::protobuf::MessageLite& to_msg, const ::google::protobuf::MessageLite& from_msg) {
1566 ABSL_DCHECK_NE(&from, _this);
1567 ::uint32_t cached_has_bits = 0;
1568 (void) cached_has_bits;
1570 _this->_internal_mutable_solution_hints()->MergeFrom(
1571 from._internal_solution_hints());
1572 _this->_impl_.auxiliary_objective_parameters_.MergeFrom(from._impl_.auxiliary_objective_parameters_);
1573 _this->_internal_mutable_lazy_linear_constraint_ids()->MergeFrom(from._internal_lazy_linear_constraint_ids());
1574 cached_has_bits = from._impl_._has_bits_[0];
1575 if ((cached_has_bits & 0x0000007fu) != 0) {
1576 if ((cached_has_bits & 0x00000001u) != 0) {
1577 ABSL_DCHECK(from._impl_.variable_values_filter_ !=
nullptr);
1578 if (_this->_impl_.variable_values_filter_ ==
nullptr) {
1579 _this->_impl_.variable_values_filter_ = ::google::protobuf::Message::CopyConstruct(arena, *from._impl_.variable_values_filter_);
1581 _this->_impl_.variable_values_filter_->MergeFrom(*from._impl_.variable_values_filter_);
1584 if ((cached_has_bits & 0x00000002u) != 0) {
1585 ABSL_DCHECK(from._impl_.dual_values_filter_ !=
nullptr);
1586 if (_this->_impl_.dual_values_filter_ ==
nullptr) {
1587 _this->_impl_.dual_values_filter_ = ::google::protobuf::Message::CopyConstruct(arena, *from._impl_.dual_values_filter_);
1589 _this->_impl_.dual_values_filter_->MergeFrom(*from._impl_.dual_values_filter_);
1592 if ((cached_has_bits & 0x00000004u) != 0) {
1593 ABSL_DCHECK(from._impl_.reduced_costs_filter_ !=
nullptr);
1594 if (_this->_impl_.reduced_costs_filter_ ==
nullptr) {
1595 _this->_impl_.reduced_costs_filter_ = ::google::protobuf::Message::CopyConstruct(arena, *from._impl_.reduced_costs_filter_);
1597 _this->_impl_.reduced_costs_filter_->MergeFrom(*from._impl_.reduced_costs_filter_);
1600 if ((cached_has_bits & 0x00000008u) != 0) {
1601 ABSL_DCHECK(from._impl_.initial_basis_ !=
nullptr);
1602 if (_this->_impl_.initial_basis_ ==
nullptr) {
1603 _this->_impl_.initial_basis_ = ::google::protobuf::Message::CopyConstruct(arena, *from._impl_.initial_basis_);
1605 _this->_impl_.initial_basis_->MergeFrom(*from._impl_.initial_basis_);
1608 if ((cached_has_bits & 0x00000010u) != 0) {
1609 ABSL_DCHECK(from._impl_.branching_priorities_ !=
nullptr);
1610 if (_this->_impl_.branching_priorities_ ==
nullptr) {
1611 _this->_impl_.branching_priorities_ = ::google::protobuf::Message::CopyConstruct(arena, *from._impl_.branching_priorities_);
1613 _this->_impl_.branching_priorities_->MergeFrom(*from._impl_.branching_priorities_);
1616 if ((cached_has_bits & 0x00000020u) != 0) {
1617 ABSL_DCHECK(from._impl_.primary_objective_parameters_ !=
nullptr);
1618 if (_this->_impl_.primary_objective_parameters_ ==
nullptr) {
1619 _this->_impl_.primary_objective_parameters_ = ::google::protobuf::Message::CopyConstruct(arena, *from._impl_.primary_objective_parameters_);
1621 _this->_impl_.primary_objective_parameters_->MergeFrom(*from._impl_.primary_objective_parameters_);
1624 if ((cached_has_bits & 0x00000040u) != 0) {
1625 ABSL_DCHECK(from._impl_.quadratic_dual_values_filter_ !=
nullptr);
1626 if (_this->_impl_.quadratic_dual_values_filter_ ==
nullptr) {
1627 _this->_impl_.quadratic_dual_values_filter_ = ::google::protobuf::Message::CopyConstruct(arena, *from._impl_.quadratic_dual_values_filter_);
1629 _this->_impl_.quadratic_dual_values_filter_->MergeFrom(*from._impl_.quadratic_dual_values_filter_);
1633 _this->_impl_._has_bits_[0] |= cached_has_bits;
1634 _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_);
1639 if (&from ==
this)
return;
1647 _internal_metadata_.InternalSwap(&other->_internal_metadata_);
1648 swap(
_impl_._has_bits_[0], other->_impl_._has_bits_[0]);
1649 _impl_.solution_hints_.InternalSwap(&other->_impl_.solution_hints_);
1650 _impl_.auxiliary_objective_parameters_.InternalSwap(&other->_impl_.auxiliary_objective_parameters_);
1651 _impl_.lazy_linear_constraint_ids_.InternalSwap(&other->_impl_.lazy_linear_constraint_ids_);
1652 ::google::protobuf::internal::memswap<
1656 reinterpret_cast<char*
>(&
_impl_.variable_values_filter_),
1657 reinterpret_cast<char*
>(&other->_impl_.variable_values_filter_));
1661 return ::google::protobuf::Message::GetMetadataImpl(
GetClassData()->full());
1671PROTOBUF_ATTRIBUTE_INIT_PRIORITY2 static ::std::false_type
1674 ::std::false_type{});
1675#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[]
ABSL_ATTRIBUTE_REINITIALIZES void Clear() PROTOBUF_FINAL
decltype(::std::declval< ModelSolveParametersProto >()._impl_._has_bits_) HasBits
static constexpr ::int32_t kHasBitsOffset
static constexpr auto InternalGenerateClassData_()
ModelSolveParametersProto_AuxiliaryObjectiveParametersEntry_DoNotUse()
friend class ::google::protobuf::MessageLite
static constexpr auto InternalNewImpl_()
::google::protobuf::Metadata GetMetadata() const
void clear_dual_values_filter()
::size_t ByteSizeLong() const final
static void *PROTOBUF_NONNULL PlacementNew_(const void *PROTOBUF_NONNULL, void *PROTOBUF_NONNULL mem, ::google::protobuf::Arena *PROTOBUF_NULLABLE arena)
static constexpr auto InternalGenerateClassData_()
void clear_initial_basis()
void clear_variable_values_filter()
const ::google::protobuf::internal::ClassData *PROTOBUF_NONNULL GetClassData() const PROTOBUF_FINAL
~ModelSolveParametersProto() PROTOBUF_FINAL
void clear_quadratic_dual_values_filter()
void clear_reduced_costs_filter()
::uint8_t *PROTOBUF_NONNULL _InternalSerialize(::uint8_t *PROTOBUF_NONNULL target, ::google::protobuf::io::EpsCopyOutputStream *PROTOBUF_NONNULL stream) const final
void MergeFrom(const ModelSolveParametersProto &from)
void CopyFrom(const ModelSolveParametersProto &from)
void clear_branching_priorities()
ABSL_ATTRIBUTE_REINITIALIZES void Clear() PROTOBUF_FINAL
friend void swap(ModelSolveParametersProto &a, ModelSolveParametersProto &b)
friend class ::google::protobuf::Arena
ModelSolveParametersProto()
static constexpr ::int32_t kHasBitsOffset
decltype(::std::declval< ObjectiveParametersProto >()._impl_._has_bits_) HasBits
::google::protobuf::Metadata GetMetadata() const
void CopyFrom(const ObjectiveParametersProto &from)
const ::google::protobuf::internal::ClassData *PROTOBUF_NONNULL GetClassData() const PROTOBUF_FINAL
~ObjectiveParametersProto() PROTOBUF_FINAL
::size_t ByteSizeLong() const final
static constexpr auto InternalNewImpl_()
::uint8_t *PROTOBUF_NONNULL _InternalSerialize(::uint8_t *PROTOBUF_NONNULL target, ::google::protobuf::io::EpsCopyOutputStream *PROTOBUF_NONNULL stream) const final
void MergeFrom(const ObjectiveParametersProto &from)
static void *PROTOBUF_NONNULL PlacementNew_(const void *PROTOBUF_NONNULL, void *PROTOBUF_NONNULL mem, ::google::protobuf::Arena *PROTOBUF_NULLABLE arena)
ABSL_ATTRIBUTE_REINITIALIZES void Clear() PROTOBUF_FINAL
static constexpr auto InternalGenerateClassData_()
const ::google::protobuf::UnknownFieldSet & unknown_fields() const ABSL_ATTRIBUTE_LIFETIME_BOUND
ObjectiveParametersProto()
static constexpr ::int32_t kHasBitsOffset
decltype(::std::declval< SolutionHintProto >()._impl_._has_bits_) HasBits
friend class ::google::protobuf::MessageLite
friend void swap(SolutionHintProto &a, SolutionHintProto &b)
static constexpr auto InternalNewImpl_()
::google::protobuf::Metadata GetMetadata() const
static void *PROTOBUF_NONNULL PlacementNew_(const void *PROTOBUF_NONNULL, void *PROTOBUF_NONNULL mem, ::google::protobuf::Arena *PROTOBUF_NULLABLE arena)
const ::google::protobuf::internal::ClassData *PROTOBUF_NONNULL GetClassData() const PROTOBUF_FINAL
static constexpr auto InternalGenerateClassData_()
const ::google::protobuf::UnknownFieldSet & unknown_fields() const ABSL_ATTRIBUTE_LIFETIME_BOUND
void CopyFrom(const SolutionHintProto &from)
::size_t ByteSizeLong() const final
::uint8_t *PROTOBUF_NONNULL _InternalSerialize(::uint8_t *PROTOBUF_NONNULL target, ::google::protobuf::io::EpsCopyOutputStream *PROTOBUF_NONNULL stream) const final
~SolutionHintProto() PROTOBUF_FINAL
ABSL_ATTRIBUTE_REINITIALIZES void Clear() PROTOBUF_FINAL
void MergeFrom(const SolutionHintProto &from)
void clear_variable_values()
friend class ::google::protobuf::Arena
ABSL_ATTRIBUTE_REINITIALIZES void Clear() PROTOBUF_FINAL
int GetCachedSize() const
ABSL_ATTRIBUTE_REINITIALIZES void Clear() PROTOBUF_FINAL
ABSL_ATTRIBUTE_REINITIALIZES void Clear() PROTOBUF_FINAL
static const ::_pbi::DescriptorTable *PROTOBUF_NONNULL const descriptor_table_ortools_2fmath_5fopt_2fmodel_5fparameters_2eproto_deps[3]
::absl::once_flag descriptor_table_ortools_2fmath_5fopt_2fmodel_5fparameters_2eproto_once
const ::uint32_t TableStruct_ortools_2fmath_5fopt_2fmodel_5fparameters_2eproto::offsets[] ABSL_ATTRIBUTE_SECTION_VARIABLE(protodesc_cold)
static constexprconst ::_pb::ServiceDescriptor *PROTOBUF_NONNULL *PROTOBUF_NULLABLE file_level_service_descriptors_ortools_2fmath_5fopt_2fmodel_5fparameters_2eproto
static constexprconst ::_pb::EnumDescriptor *PROTOBUF_NONNULL *PROTOBUF_NULLABLE file_level_enum_descriptors_ortools_2fmath_5fopt_2fmodel_5fparameters_2eproto
PROTOBUF_CONSTINITconst ::_pbi::DescriptorTable descriptor_table_ortools_2fmath_5fopt_2fmodel_5fparameters_2eproto
An object oriented wrapper for quadratic constraints in ModelStorage.
PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 const::google::protobuf::internal::ClassDataFull SolutionHintProto_class_data_
PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT OR_PROTO_DLL PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 ModelSolveParametersProto_AuxiliaryObjectiveParametersEntry_DoNotUseDefaultTypeInternal _ModelSolveParametersProto_AuxiliaryObjectiveParametersEntry_DoNotUse_default_instance_
PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 const::google::protobuf::internal::ClassDataFull ModelSolveParametersProto_AuxiliaryObjectiveParametersEntry_DoNotUse_class_data_
PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT OR_PROTO_DLL PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 ModelSolveParametersProtoDefaultTypeInternal _ModelSolveParametersProto_default_instance_
PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT OR_PROTO_DLL PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 ObjectiveParametersProtoDefaultTypeInternal _ObjectiveParametersProto_default_instance_
PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT OR_PROTO_DLL PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 SolutionHintProtoDefaultTypeInternal _SolutionHintProto_default_instance_
PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 const::google::protobuf::internal::ClassDataFull ModelSolveParametersProto_class_data_
PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 const::google::protobuf::internal::ClassDataFull ObjectiveParametersProto_class_data_
In SWIG mode, we don't want anything besides these top-level includes.
static constexpr ::_pbi::MigrationSchema *PROTOBUF_NULLABLE schemas
PROTOBUF_CONSTINITconst ::_pbi::DescriptorTable descriptor_table_ortools_2fmath_5fopt_2fsolution_2eproto
PROTOBUF_CONSTINITconst ::_pbi::DescriptorTable descriptor_table_ortools_2fmath_5fopt_2fsparse_5fcontainers_2eproto
~ModelSolveParametersProtoDefaultTypeInternal()
PROTOBUF_CONSTEXPR ModelSolveParametersProtoDefaultTypeInternal()
ModelSolveParametersProto _instance
~ModelSolveParametersProto_AuxiliaryObjectiveParametersEntry_DoNotUseDefaultTypeInternal()
ModelSolveParametersProto_AuxiliaryObjectiveParametersEntry_DoNotUse _instance
PROTOBUF_CONSTEXPR ModelSolveParametersProto_AuxiliaryObjectiveParametersEntry_DoNotUseDefaultTypeInternal()
~ObjectiveParametersProtoDefaultTypeInternal()
PROTOBUF_CONSTEXPR ObjectiveParametersProtoDefaultTypeInternal()
ObjectiveParametersProto _instance
~SolutionHintProtoDefaultTypeInternal()
SolutionHintProto _instance
PROTOBUF_CONSTEXPR SolutionHintProtoDefaultTypeInternal()