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 lazy_linear_constraint_ids_{},
106 _lazy_linear_constraint_ids_cached_byte_size_{0},
107 variable_values_filter_{
nullptr},
108 dual_values_filter_{
nullptr},
109 reduced_costs_filter_{
nullptr},
110 initial_basis_{
nullptr},
111 branching_priorities_{
nullptr},
112 primary_objective_parameters_{
nullptr},
113 quadratic_dual_values_filter_{
nullptr},
114 auxiliary_objective_parameters_{} {}
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 ClearHasBit(
_impl_._has_bits_[0],
292 ::google::protobuf::internal::TSanWrite(&
_impl_);
293 if (
_impl_.dual_values_ !=
nullptr)
_impl_.dual_values_->Clear();
294 ClearHasBit(
_impl_._has_bits_[0],
298#if defined(PROTOBUF_CUSTOM_VTABLE)
301 : ::google::protobuf::Message(arena) {
306PROTOBUF_NDEBUG_INLINE SolutionHintProto::Impl_::Impl_(
307 [[maybe_unused]] ::google::protobuf::internal::InternalVisibility visibility,
308 [[maybe_unused]] ::google::protobuf::Arena* PROTOBUF_NULLABLE arena,
const Impl_& from,
309 [[maybe_unused]] const ::operations_research::math_opt::SolutionHintProto& from_msg)
310 : _has_bits_{from._has_bits_},
314 ::google::protobuf::Arena* PROTOBUF_NULLABLE arena,
315 const SolutionHintProto& from)
316#if defined(PROTOBUF_CUSTOM_VTABLE)
319 : ::google::protobuf::Message(arena) {
321 SolutionHintProto*
const _this =
this;
323 _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(
324 from._internal_metadata_);
325 new (&_impl_) Impl_(internal_visibility(), arena, from._impl_, from);
326 ::uint32_t cached_has_bits = _impl_._has_bits_[0];
327 _impl_.variable_values_ = (CheckHasBit(cached_has_bits, 0x00000001U))
328 ? ::google::protobuf::Message::CopyConstruct(arena, *from._impl_.variable_values_)
330 _impl_.dual_values_ = (CheckHasBit(cached_has_bits, 0x00000002U))
331 ? ::google::protobuf::Message::CopyConstruct(arena, *from._impl_.dual_values_)
336PROTOBUF_NDEBUG_INLINE SolutionHintProto::Impl_::Impl_(
337 [[maybe_unused]] ::google::protobuf::internal::InternalVisibility visibility,
338 [[maybe_unused]] ::google::protobuf::Arena* PROTOBUF_NULLABLE arena)
339 : _cached_size_{0} {}
341inline void SolutionHintProto::SharedCtor(::_pb::Arena* PROTOBUF_NULLABLE arena) {
342 new (&
_impl_) Impl_(internal_visibility(), arena);
343 ::memset(
reinterpret_cast<char*
>(&
_impl_) +
344 offsetof(Impl_, variable_values_),
346 offsetof(Impl_, dual_values_) -
347 offsetof(Impl_, variable_values_) +
348 sizeof(Impl_::dual_values_));
354inline void SolutionHintProto::SharedDtor(MessageLite& self) {
356 if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) {
357 this_.CheckHasBitConsistency();
359 this_._internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>();
360 ABSL_DCHECK(this_.GetArena() ==
nullptr);
361 delete this_.
_impl_.variable_values_;
362 delete this_.
_impl_.dual_values_;
366inline void* PROTOBUF_NONNULL SolutionHintProto::PlacementNew_(
367 const void* PROTOBUF_NONNULL,
void* PROTOBUF_NONNULL mem,
368 ::google::protobuf::Arena* PROTOBUF_NULLABLE arena) {
371constexpr auto SolutionHintProto::InternalNewImpl_() {
372 return ::google::protobuf::internal::MessageCreator::ZeroInit(
sizeof(
SolutionHintProto),
376 return ::google::protobuf::internal::ClassDataFull{
377 ::google::protobuf::internal::ClassData{
382 &SolutionHintProto::MergeImpl,
383 ::google::protobuf::Message::GetNewImpl<SolutionHintProto>(),
384#if defined(PROTOBUF_CUSTOM_VTABLE)
385 &SolutionHintProto::SharedDtor,
392 &SolutionHintProto::kDescriptorMethods,
398PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 const
402PROTOBUF_ATTRIBUTE_WEAK const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL
403SolutionHintProto::GetClassData()
const {
408PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1
409const ::_pbi::TcParseTable<1, 2, 2, 0, 2>
410SolutionHintProto::_table_ = {
412 PROTOBUF_FIELD_OFFSET(SolutionHintProto, _impl_._has_bits_),
415 offsetof(
decltype(_table_), field_lookup_table),
417 offsetof(
decltype(_table_), field_entries),
420 offsetof(
decltype(_table_), aux_entries),
423 ::_pbi::TcParser::GenericFallback,
424 #ifdef PROTOBUF_PREFETCH_PARSE_TABLE
425 ::_pbi::TcParser::GetTable<::operations_research::math_opt::SolutionHintProto>(),
429 {::_pbi::TcParser::FastMtS1,
431 PROTOBUF_FIELD_OFFSET(SolutionHintProto, _impl_.dual_values_)}},
433 {::_pbi::TcParser::FastMtS1,
440 {PROTOBUF_FIELD_OFFSET(
SolutionHintProto, _impl_.variable_values_), _Internal::kHasBitsOffset + 0, 0, (0 | ::_fl::kFcOptional | ::_fl::kMessage | ::_fl::kTvTable)},
442 {PROTOBUF_FIELD_OFFSET(
SolutionHintProto, _impl_.dual_values_), _Internal::kHasBitsOffset + 1, 1, (0 | ::_fl::kFcOptional | ::_fl::kMessage | ::_fl::kTvTable)},
445 {::_pbi::TcParser::GetTable<::operations_research::math_opt::SparseDoubleVectorProto>()},
446 {::_pbi::TcParser::GetTable<::operations_research::math_opt::SparseDoubleVectorProto>()},
453 ::google::protobuf::internal::TSanWrite(&
_impl_);
454 ::uint32_t cached_has_bits = 0;
456 (void) cached_has_bits;
458 cached_has_bits =
_impl_._has_bits_[0];
459 if (BatchCheckHasBit(cached_has_bits, 0x00000003U)) {
460 if (CheckHasBit(cached_has_bits, 0x00000001U)) {
461 ABSL_DCHECK(
_impl_.variable_values_ !=
nullptr);
462 _impl_.variable_values_->Clear();
464 if (CheckHasBit(cached_has_bits, 0x00000002U)) {
465 ABSL_DCHECK(
_impl_.dual_values_ !=
nullptr);
469 _impl_._has_bits_.Clear();
470 _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>();
473#if defined(PROTOBUF_CUSTOM_VTABLE)
475 const ::google::protobuf::MessageLite& base, ::uint8_t* PROTOBUF_NONNULL target,
476 ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) {
480 ::uint8_t* PROTOBUF_NONNULL target,
481 ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream)
const {
484 if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) {
485 this_.CheckHasBitConsistency();
488 ::uint32_t cached_has_bits = 0;
489 (void)cached_has_bits;
491 cached_has_bits = this_.
_impl_._has_bits_[0];
493 if (CheckHasBit(cached_has_bits, 0x00000001U)) {
494 target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage(
500 if (CheckHasBit(cached_has_bits, 0x00000002U)) {
501 target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage(
506 if (ABSL_PREDICT_FALSE(this_._internal_metadata_.have_unknown_fields())) {
508 ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray(
509 this_._internal_metadata_.
unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream);
515#if defined(PROTOBUF_CUSTOM_VTABLE)
523 ::size_t total_size = 0;
525 ::uint32_t cached_has_bits = 0;
527 (void)cached_has_bits;
529 ::_pbi::Prefetch5LinesFrom7Lines(&this_);
530 cached_has_bits = this_.
_impl_._has_bits_[0];
531 if (BatchCheckHasBit(cached_has_bits, 0x00000003U)) {
533 if (CheckHasBit(cached_has_bits, 0x00000001U)) {
535 ::google::protobuf::internal::WireFormatLite::MessageSize(*this_.
_impl_.variable_values_);
538 if (CheckHasBit(cached_has_bits, 0x00000002U)) {
540 ::google::protobuf::internal::WireFormatLite::MessageSize(*this_.
_impl_.dual_values_);
543 return this_.MaybeComputeUnknownFieldsSize(total_size,
544 &this_.
_impl_._cached_size_);
547void SolutionHintProto::MergeImpl(::google::protobuf::MessageLite& to_msg,
548 const ::google::protobuf::MessageLite& from_msg) {
552 if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) {
553 from.CheckHasBitConsistency();
557 ABSL_DCHECK_NE(&from, _this);
558 ::uint32_t cached_has_bits = 0;
559 (void)cached_has_bits;
561 cached_has_bits = from._impl_._has_bits_[0];
562 if (BatchCheckHasBit(cached_has_bits, 0x00000003U)) {
563 if (CheckHasBit(cached_has_bits, 0x00000001U)) {
564 ABSL_DCHECK(from._impl_.variable_values_ !=
nullptr);
565 if (_this->_impl_.variable_values_ ==
nullptr) {
566 _this->_impl_.variable_values_ = ::google::protobuf::Message::CopyConstruct(arena, *from._impl_.variable_values_);
568 _this->_impl_.variable_values_->MergeFrom(*from._impl_.variable_values_);
571 if (CheckHasBit(cached_has_bits, 0x00000002U)) {
572 ABSL_DCHECK(from._impl_.dual_values_ !=
nullptr);
573 if (_this->_impl_.dual_values_ ==
nullptr) {
574 _this->_impl_.dual_values_ = ::google::protobuf::Message::CopyConstruct(arena, *from._impl_.dual_values_);
576 _this->_impl_.dual_values_->MergeFrom(*from._impl_.dual_values_);
580 _this->_impl_._has_bits_[0] |= cached_has_bits;
581 _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(
582 from._internal_metadata_);
587 if (&from ==
this)
return;
593void SolutionHintProto::InternalSwap(
SolutionHintProto* PROTOBUF_RESTRICT PROTOBUF_NONNULL other) {
595 _internal_metadata_.InternalSwap(&other->_internal_metadata_);
596 swap(
_impl_._has_bits_[0], other->_impl_._has_bits_[0]);
597 ::google::protobuf::internal::memswap<
601 reinterpret_cast<char*
>(&
_impl_.variable_values_),
602 reinterpret_cast<char*
>(&other->_impl_.variable_values_));
606 return ::google::protobuf::Message::GetMetadataImpl(GetClassData()->full());
613 decltype(::std::declval<ObjectiveParametersProto>()._impl_._has_bits_);
619 ::google::protobuf::internal::TSanWrite(&
_impl_);
621 ClearHasBit(
_impl_._has_bits_[0],
625#if defined(PROTOBUF_CUSTOM_VTABLE)
628 : ::google::protobuf::Message(arena) {
633PROTOBUF_NDEBUG_INLINE ObjectiveParametersProto::Impl_::Impl_(
634 [[maybe_unused]] ::google::protobuf::internal::InternalVisibility visibility,
635 [[maybe_unused]] ::google::protobuf::Arena* PROTOBUF_NULLABLE arena,
const Impl_& from,
636 [[maybe_unused]] const ::operations_research::math_opt::ObjectiveParametersProto& from_msg)
637 : _has_bits_{from._has_bits_},
641 ::google::protobuf::Arena* PROTOBUF_NULLABLE arena,
642 const ObjectiveParametersProto& from)
643#if defined(PROTOBUF_CUSTOM_VTABLE)
646 : ::google::protobuf::Message(arena) {
648 ObjectiveParametersProto*
const _this =
this;
650 _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(
651 from._internal_metadata_);
652 new (&_impl_) Impl_(internal_visibility(), arena, from._impl_, from);
653 ::uint32_t cached_has_bits = _impl_._has_bits_[0];
654 _impl_.time_limit_ = (CheckHasBit(cached_has_bits, 0x00000001U))
655 ? ::google::protobuf::Message::CopyConstruct(arena, *from._impl_.time_limit_)
657 ::memcpy(
reinterpret_cast<char*
>(&_impl_) +
658 offsetof(Impl_, objective_degradation_absolute_tolerance_),
659 reinterpret_cast<const char*
>(&from._impl_) +
660 offsetof(Impl_, objective_degradation_absolute_tolerance_),
661 offsetof(Impl_, objective_degradation_relative_tolerance_) -
662 offsetof(Impl_, objective_degradation_absolute_tolerance_) +
663 sizeof(Impl_::objective_degradation_relative_tolerance_));
667PROTOBUF_NDEBUG_INLINE ObjectiveParametersProto::Impl_::Impl_(
668 [[maybe_unused]] ::google::protobuf::internal::InternalVisibility visibility,
669 [[maybe_unused]] ::google::protobuf::Arena* PROTOBUF_NULLABLE arena)
670 : _cached_size_{0} {}
672inline void ObjectiveParametersProto::SharedCtor(::_pb::Arena* PROTOBUF_NULLABLE arena) {
673 new (&
_impl_) Impl_(internal_visibility(), arena);
674 ::memset(
reinterpret_cast<char*
>(&
_impl_) +
675 offsetof(Impl_, time_limit_),
677 offsetof(Impl_, objective_degradation_relative_tolerance_) -
678 offsetof(Impl_, time_limit_) +
679 sizeof(Impl_::objective_degradation_relative_tolerance_));
685inline void ObjectiveParametersProto::SharedDtor(MessageLite& self) {
687 if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) {
688 this_.CheckHasBitConsistency();
690 this_._internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>();
691 ABSL_DCHECK(this_.GetArena() ==
nullptr);
692 delete this_.
_impl_.time_limit_;
696inline void* PROTOBUF_NONNULL ObjectiveParametersProto::PlacementNew_(
697 const void* PROTOBUF_NONNULL,
void* PROTOBUF_NONNULL mem,
698 ::google::protobuf::Arena* PROTOBUF_NULLABLE arena) {
701constexpr auto ObjectiveParametersProto::InternalNewImpl_() {
706 return ::google::protobuf::internal::ClassDataFull{
707 ::google::protobuf::internal::ClassData{
712 &ObjectiveParametersProto::MergeImpl,
713 ::google::protobuf::Message::GetNewImpl<ObjectiveParametersProto>(),
714#if defined(PROTOBUF_CUSTOM_VTABLE)
715 &ObjectiveParametersProto::SharedDtor,
722 &ObjectiveParametersProto::kDescriptorMethods,
728PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 const
732PROTOBUF_ATTRIBUTE_WEAK const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL
733ObjectiveParametersProto::GetClassData()
const {
738PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1
739const ::_pbi::TcParseTable<2, 3, 1, 0, 2>
740ObjectiveParametersProto::_table_ = {
742 PROTOBUF_FIELD_OFFSET(ObjectiveParametersProto, _impl_._has_bits_),
745 offsetof(
decltype(_table_), field_lookup_table),
747 offsetof(
decltype(_table_), field_entries),
750 offsetof(
decltype(_table_), aux_entries),
753 ::_pbi::TcParser::GenericFallback,
754 #ifdef PROTOBUF_PREFETCH_PARSE_TABLE
755 ::_pbi::TcParser::GetTable<::operations_research::math_opt::ObjectiveParametersProto>(),
759 {::_pbi::TcParser::FastF64S1,
761 PROTOBUF_FIELD_OFFSET(ObjectiveParametersProto, _impl_.objective_degradation_relative_tolerance_)}},
763 {::_pbi::TcParser::FastMtS1,
766 {::_pbi::TcParser::MiniParse, {}},
768 {::_pbi::TcParser::FastF64S1,
775 {PROTOBUF_FIELD_OFFSET(
ObjectiveParametersProto, _impl_.objective_degradation_absolute_tolerance_), _Internal::kHasBitsOffset + 1, 0, (0 | ::_fl::kFcOptional | ::_fl::kDouble)},
777 {PROTOBUF_FIELD_OFFSET(
ObjectiveParametersProto, _impl_.objective_degradation_relative_tolerance_), _Internal::kHasBitsOffset + 2, 0, (0 | ::_fl::kFcOptional | ::_fl::kDouble)},
779 {PROTOBUF_FIELD_OFFSET(
ObjectiveParametersProto, _impl_.time_limit_), _Internal::kHasBitsOffset + 0, 0, (0 | ::_fl::kFcOptional | ::_fl::kMessage | ::_fl::kTvTable)},
782 {::_pbi::TcParser::GetTable<::google::protobuf::Duration>()},
789 ::google::protobuf::internal::TSanWrite(&
_impl_);
790 ::uint32_t cached_has_bits = 0;
792 (void) cached_has_bits;
794 cached_has_bits =
_impl_._has_bits_[0];
795 if (CheckHasBit(cached_has_bits, 0x00000001U)) {
796 ABSL_DCHECK(
_impl_.time_limit_ !=
nullptr);
797 _impl_.time_limit_->Clear();
799 if (BatchCheckHasBit(cached_has_bits, 0x00000006U)) {
800 ::memset(&
_impl_.objective_degradation_absolute_tolerance_, 0,
static_cast<::
size_t>(
801 reinterpret_cast<char*
>(&
_impl_.objective_degradation_relative_tolerance_) -
802 reinterpret_cast<char*
>(&
_impl_.objective_degradation_absolute_tolerance_)) +
sizeof(
_impl_.objective_degradation_relative_tolerance_));
804 _impl_._has_bits_.Clear();
805 _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>();
808#if defined(PROTOBUF_CUSTOM_VTABLE)
810 const ::google::protobuf::MessageLite& base, ::uint8_t* PROTOBUF_NONNULL target,
811 ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) {
815 ::uint8_t* PROTOBUF_NONNULL target,
816 ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream)
const {
819 if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) {
820 this_.CheckHasBitConsistency();
823 ::uint32_t cached_has_bits = 0;
824 (void)cached_has_bits;
826 cached_has_bits = this_.
_impl_._has_bits_[0];
828 if (CheckHasBit(cached_has_bits, 0x00000002U)) {
829 target = stream->EnsureSpace(target);
830 target = ::_pbi::WireFormatLite::WriteDoubleToArray(
831 7, this_._internal_objective_degradation_absolute_tolerance(), target);
835 if (CheckHasBit(cached_has_bits, 0x00000004U)) {
836 target = stream->EnsureSpace(target);
837 target = ::_pbi::WireFormatLite::WriteDoubleToArray(
838 8, this_._internal_objective_degradation_relative_tolerance(), target);
842 if (CheckHasBit(cached_has_bits, 0x00000001U)) {
843 target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage(
844 9, *this_.
_impl_.time_limit_, this_.
_impl_.time_limit_->GetCachedSize(), target,
848 if (ABSL_PREDICT_FALSE(this_._internal_metadata_.have_unknown_fields())) {
850 ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray(
851 this_._internal_metadata_.
unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream);
857#if defined(PROTOBUF_CUSTOM_VTABLE)
865 ::size_t total_size = 0;
867 ::uint32_t cached_has_bits = 0;
869 (void)cached_has_bits;
871 ::_pbi::Prefetch5LinesFrom7Lines(&this_);
872 cached_has_bits = this_.
_impl_._has_bits_[0];
873 total_size += ::absl::popcount(0x00000006U & cached_has_bits) * 9;
876 if (CheckHasBit(cached_has_bits, 0x00000001U)) {
878 ::google::protobuf::internal::WireFormatLite::MessageSize(*this_.
_impl_.time_limit_);
881 return this_.MaybeComputeUnknownFieldsSize(total_size,
882 &this_.
_impl_._cached_size_);
885void ObjectiveParametersProto::MergeImpl(::google::protobuf::MessageLite& to_msg,
886 const ::google::protobuf::MessageLite& from_msg) {
890 if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) {
891 from.CheckHasBitConsistency();
895 ABSL_DCHECK_NE(&from, _this);
896 ::uint32_t cached_has_bits = 0;
897 (void)cached_has_bits;
899 cached_has_bits = from._impl_._has_bits_[0];
900 if (BatchCheckHasBit(cached_has_bits, 0x00000007U)) {
901 if (CheckHasBit(cached_has_bits, 0x00000001U)) {
902 ABSL_DCHECK(from._impl_.time_limit_ !=
nullptr);
903 if (_this->_impl_.time_limit_ ==
nullptr) {
904 _this->_impl_.time_limit_ = ::google::protobuf::Message::CopyConstruct(arena, *from._impl_.time_limit_);
906 _this->_impl_.time_limit_->MergeFrom(*from._impl_.time_limit_);
909 if (CheckHasBit(cached_has_bits, 0x00000002U)) {
910 _this->_impl_.objective_degradation_absolute_tolerance_ = from._impl_.objective_degradation_absolute_tolerance_;
912 if (CheckHasBit(cached_has_bits, 0x00000004U)) {
913 _this->_impl_.objective_degradation_relative_tolerance_ = from._impl_.objective_degradation_relative_tolerance_;
916 _this->_impl_._has_bits_[0] |= cached_has_bits;
917 _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(
918 from._internal_metadata_);
923 if (&from ==
this)
return;
931 _internal_metadata_.InternalSwap(&other->_internal_metadata_);
932 swap(
_impl_._has_bits_[0], other->_impl_._has_bits_[0]);
933 ::google::protobuf::internal::memswap<
937 reinterpret_cast<char*
>(&
_impl_.time_limit_),
938 reinterpret_cast<char*
>(&other->_impl_.time_limit_));
942 return ::google::protobuf::Message::GetMetadataImpl(GetClassData()->full());
946#if defined(PROTOBUF_CUSTOM_VTABLE)
955inline void* PROTOBUF_NONNULL ModelSolveParametersProto_AuxiliaryObjectiveParametersEntry_DoNotUse::PlacementNew_(
956 const void* PROTOBUF_NONNULL,
void* PROTOBUF_NONNULL mem,
957 ::google::protobuf::Arena* PROTOBUF_NULLABLE arena) {
960constexpr auto ModelSolveParametersProto_AuxiliaryObjectiveParametersEntry_DoNotUse::InternalNewImpl_() {
965 return ::google::protobuf::internal::ClassDataFull{
966 ::google::protobuf::internal::ClassData{
971 &ModelSolveParametersProto_AuxiliaryObjectiveParametersEntry_DoNotUse::MergeImpl,
972 ::google::protobuf::Message::GetNewImpl<ModelSolveParametersProto_AuxiliaryObjectiveParametersEntry_DoNotUse>(),
973#if defined(PROTOBUF_CUSTOM_VTABLE)
974 &ModelSolveParametersProto_AuxiliaryObjectiveParametersEntry_DoNotUse::SharedDtor,
975 static_cast<void (::google::protobuf::MessageLite::*)()
>(&ModelSolveParametersProto_AuxiliaryObjectiveParametersEntry_DoNotUse::ClearImpl),
976 ::google::protobuf::Message::ByteSizeLongImpl, ::google::protobuf::Message::_InternalSerializeImpl
982 &ModelSolveParametersProto_AuxiliaryObjectiveParametersEntry_DoNotUse::kDescriptorMethods,
988PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 const
992PROTOBUF_ATTRIBUTE_WEAK const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL
993ModelSolveParametersProto_AuxiliaryObjectiveParametersEntry_DoNotUse::GetClassData()
const {
998PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1
999const ::_pbi::TcParseTable<1, 2, 1, 0, 2>
1000ModelSolveParametersProto_AuxiliaryObjectiveParametersEntry_DoNotUse::_table_ = {
1002 PROTOBUF_FIELD_OFFSET(ModelSolveParametersProto_AuxiliaryObjectiveParametersEntry_DoNotUse, _impl_._has_bits_),
1005 offsetof(
decltype(_table_), field_lookup_table),
1007 offsetof(
decltype(_table_), field_entries),
1010 offsetof(
decltype(_table_), aux_entries),
1013 ::_pbi::TcParser::DiscardEverythingFallback,
1014 #ifdef PROTOBUF_PREFETCH_PARSE_TABLE
1015 ::_pbi::TcParser::GetTable<::operations_research::math_opt::ModelSolveParametersProto_AuxiliaryObjectiveParametersEntry_DoNotUse>(),
1019 {::_pbi::TcParser::FastMtS1,
1021 PROTOBUF_FIELD_OFFSET(ModelSolveParametersProto_AuxiliaryObjectiveParametersEntry_DoNotUse, _impl_.value_)}},
1035 {::_pbi::TcParser::GetTable<::operations_research::math_opt::ObjectiveParametersProto>()},
1045 decltype(::std::declval<ModelSolveParametersProto>()._impl_._has_bits_);
1051 ::google::protobuf::internal::TSanWrite(&
_impl_);
1052 if (
_impl_.variable_values_filter_ !=
nullptr)
_impl_.variable_values_filter_->Clear();
1053 ClearHasBit(
_impl_._has_bits_[0],
1057 ::google::protobuf::internal::TSanWrite(&
_impl_);
1059 ClearHasBit(
_impl_._has_bits_[0],
1063 ::google::protobuf::internal::TSanWrite(&
_impl_);
1064 if (
_impl_.quadratic_dual_values_filter_ !=
nullptr)
_impl_.quadratic_dual_values_filter_->
Clear();
1065 ClearHasBit(
_impl_._has_bits_[0],
1069 ::google::protobuf::internal::TSanWrite(&
_impl_);
1070 if (
_impl_.reduced_costs_filter_ !=
nullptr)
_impl_.reduced_costs_filter_->
Clear();
1071 ClearHasBit(
_impl_._has_bits_[0],
1075 ::google::protobuf::internal::TSanWrite(&
_impl_);
1077 ClearHasBit(
_impl_._has_bits_[0],
1081 ::google::protobuf::internal::TSanWrite(&
_impl_);
1082 if (
_impl_.branching_priorities_ !=
nullptr)
_impl_.branching_priorities_->
Clear();
1083 ClearHasBit(
_impl_._has_bits_[0],
1087#if defined(PROTOBUF_CUSTOM_VTABLE)
1090 : ::google::protobuf::Message(arena) {
1095PROTOBUF_NDEBUG_INLINE ModelSolveParametersProto::Impl_::Impl_(
1096 [[maybe_unused]] ::google::protobuf::internal::InternalVisibility visibility,
1097 [[maybe_unused]] ::google::protobuf::Arena* PROTOBUF_NULLABLE arena,
const Impl_& from,
1098 [[maybe_unused]] const ::operations_research::math_opt::ModelSolveParametersProto& from_msg)
1099 : _has_bits_{from._has_bits_},
1101 solution_hints_{visibility, arena, from.solution_hints_},
1102 lazy_linear_constraint_ids_{visibility, arena, from.lazy_linear_constraint_ids_},
1103 _lazy_linear_constraint_ids_cached_byte_size_{0},
1104 auxiliary_objective_parameters_{visibility, arena, from.auxiliary_objective_parameters_} {}
1107 ::google::protobuf::Arena* PROTOBUF_NULLABLE arena,
1108 const ModelSolveParametersProto& from)
1109#if defined(PROTOBUF_CUSTOM_VTABLE)
1112 : ::google::protobuf::Message(arena) {
1114 ModelSolveParametersProto*
const _this =
this;
1116 _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(
1117 from._internal_metadata_);
1118 new (&_impl_) Impl_(internal_visibility(), arena, from._impl_, from);
1119 ::uint32_t cached_has_bits = _impl_._has_bits_[0];
1120 _impl_.variable_values_filter_ = (CheckHasBit(cached_has_bits, 0x00000004U))
1121 ? ::google::protobuf::Message::CopyConstruct(arena, *from._impl_.variable_values_filter_)
1123 _impl_.dual_values_filter_ = (CheckHasBit(cached_has_bits, 0x00000008U))
1124 ? ::google::protobuf::Message::CopyConstruct(arena, *from._impl_.dual_values_filter_)
1126 _impl_.reduced_costs_filter_ = (CheckHasBit(cached_has_bits, 0x00000010U))
1127 ? ::google::protobuf::Message::CopyConstruct(arena, *from._impl_.reduced_costs_filter_)
1129 _impl_.initial_basis_ = (CheckHasBit(cached_has_bits, 0x00000020U))
1130 ? ::google::protobuf::Message::CopyConstruct(arena, *from._impl_.initial_basis_)
1132 _impl_.branching_priorities_ = (CheckHasBit(cached_has_bits, 0x00000040U))
1133 ? ::google::protobuf::Message::CopyConstruct(arena, *from._impl_.branching_priorities_)
1135 _impl_.primary_objective_parameters_ = (CheckHasBit(cached_has_bits, 0x00000080U))
1136 ? ::google::protobuf::Message::CopyConstruct(arena, *from._impl_.primary_objective_parameters_)
1138 _impl_.quadratic_dual_values_filter_ = (CheckHasBit(cached_has_bits, 0x00000100U))
1139 ? ::google::protobuf::Message::CopyConstruct(arena, *from._impl_.quadratic_dual_values_filter_)
1144PROTOBUF_NDEBUG_INLINE ModelSolveParametersProto::Impl_::Impl_(
1145 [[maybe_unused]] ::google::protobuf::internal::InternalVisibility visibility,
1146 [[maybe_unused]] ::google::protobuf::Arena* PROTOBUF_NULLABLE arena)
1148 solution_hints_{visibility, arena},
1149 lazy_linear_constraint_ids_{visibility, arena},
1150 _lazy_linear_constraint_ids_cached_byte_size_{0},
1151 auxiliary_objective_parameters_{visibility, arena} {}
1153inline void ModelSolveParametersProto::SharedCtor(::_pb::Arena* PROTOBUF_NULLABLE arena) {
1154 new (&
_impl_) Impl_(internal_visibility(), arena);
1155 ::memset(
reinterpret_cast<char*
>(&
_impl_) +
1156 offsetof(Impl_, variable_values_filter_),
1158 offsetof(Impl_, quadratic_dual_values_filter_) -
1159 offsetof(Impl_, variable_values_filter_) +
1160 sizeof(Impl_::quadratic_dual_values_filter_));
1168 if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) {
1169 this_.CheckHasBitConsistency();
1171 this_._internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>();
1172 ABSL_DCHECK(this_.GetArena() ==
nullptr);
1173 delete this_.
_impl_.variable_values_filter_;
1174 delete this_.
_impl_.dual_values_filter_;
1175 delete this_.
_impl_.reduced_costs_filter_;
1176 delete this_.
_impl_.initial_basis_;
1177 delete this_.
_impl_.branching_priorities_;
1178 delete this_.
_impl_.primary_objective_parameters_;
1179 delete this_.
_impl_.quadratic_dual_values_filter_;
1183inline void* PROTOBUF_NONNULL ModelSolveParametersProto::PlacementNew_(
1184 const void* PROTOBUF_NONNULL,
void* PROTOBUF_NONNULL mem,
1185 ::google::protobuf::Arena* PROTOBUF_NULLABLE arena) {
1188constexpr auto ModelSolveParametersProto::InternalNewImpl_() {
1189 constexpr auto arena_bits = ::google::protobuf::internal::EncodePlacementArenaOffsets({
1192 InternalGetArenaOffset(
1196 InternalGetArenaOffset(
1200 InternalGetArenaOffset(
1203 if (arena_bits.has_value()) {
1204 return ::google::protobuf::internal::MessageCreator::CopyInit(
1205 sizeof(ModelSolveParametersProto), alignof(ModelSolveParametersProto), *arena_bits);
1207 return ::google::protobuf::internal::MessageCreator(&ModelSolveParametersProto::PlacementNew_,
1208 sizeof(ModelSolveParametersProto),
1209 alignof(ModelSolveParametersProto));
1213 return ::google::protobuf::internal::ClassDataFull{
1214 ::google::protobuf::internal::ClassData{
1219 &ModelSolveParametersProto::MergeImpl,
1220 ::google::protobuf::Message::GetNewImpl<ModelSolveParametersProto>(),
1221#if defined(PROTOBUF_CUSTOM_VTABLE)
1222 &ModelSolveParametersProto::SharedDtor,
1229 &ModelSolveParametersProto::kDescriptorMethods,
1235PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 const
1239PROTOBUF_ATTRIBUTE_WEAK const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL
1240ModelSolveParametersProto::GetClassData()
const {
1245PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1
1246const ::_pbi::TcParseTable<4, 10, 10, 0, 2>
1247ModelSolveParametersProto::_table_ = {
1252 offsetof(
decltype(_table_), field_lookup_table),
1254 offsetof(
decltype(_table_), field_entries),
1257 offsetof(
decltype(_table_), aux_entries),
1260 ::_pbi::TcParser::GenericFallback,
1261 #ifdef PROTOBUF_PREFETCH_PARSE_TABLE
1262 ::_pbi::TcParser::GetTable<::operations_research::math_opt::ModelSolveParametersProto>(),
1265 {::_pbi::TcParser::MiniParse, {}},
1267 {::_pbi::TcParser::FastMtS1,
1271 {::_pbi::TcParser::FastMtS1,
1275 {::_pbi::TcParser::FastMtS1,
1279 {::_pbi::TcParser::FastMtS1,
1283 {::_pbi::TcParser::FastMtR1,
1287 {::_pbi::TcParser::FastMtS1,
1291 {::_pbi::TcParser::FastMtS1,
1294 {::_pbi::TcParser::MiniParse, {}},
1296 {::_pbi::TcParser::FastV64P1,
1300 {::_pbi::TcParser::FastMtS1,
1303 {::_pbi::TcParser::MiniParse, {}},
1304 {::_pbi::TcParser::MiniParse, {}},
1305 {::_pbi::TcParser::MiniParse, {}},
1306 {::_pbi::TcParser::MiniParse, {}},
1307 {::_pbi::TcParser::MiniParse, {}},
1333 {::_pbi::TcParser::GetTable<::operations_research::math_opt::SparseVectorFilterProto>()},
1334 {::_pbi::TcParser::GetTable<::operations_research::math_opt::SparseVectorFilterProto>()},
1335 {::_pbi::TcParser::GetTable<::operations_research::math_opt::SparseVectorFilterProto>()},
1336 {::_pbi::TcParser::GetTable<::operations_research::math_opt::BasisProto>()},
1337 {::_pbi::TcParser::GetTable<::operations_research::math_opt::SolutionHintProto>()},
1338 {::_pbi::TcParser::GetTable<::operations_research::math_opt::SparseInt32VectorProto>()},
1339 {::_pbi::TcParser::GetTable<::operations_research::math_opt::ObjectiveParametersProto>()},
1340 {::_pbi::TcParser::GetTable<::operations_research::math_opt::SparseVectorFilterProto>()},
1341 {::_pbi::TcParser::GetMapAuxInfo(
1343 {::_pbi::TcParser::GetTable<::operations_research::math_opt::ObjectiveParametersProto>()},
1350 ::google::protobuf::internal::TSanWrite(&
_impl_);
1351 ::uint32_t cached_has_bits = 0;
1353 (void) cached_has_bits;
1355 cached_has_bits =
_impl_._has_bits_[0];
1356 if (BatchCheckHasBit(cached_has_bits, 0x000000ffU)) {
1357 if (CheckHasBitForRepeated(cached_has_bits, 0x00000001U)) {
1358 _impl_.solution_hints_.Clear();
1360 if (CheckHasBitForRepeated(cached_has_bits, 0x00000002U)) {
1361 _impl_.lazy_linear_constraint_ids_.Clear();
1363 if (CheckHasBit(cached_has_bits, 0x00000004U)) {
1364 ABSL_DCHECK(
_impl_.variable_values_filter_ !=
nullptr);
1365 _impl_.variable_values_filter_->Clear();
1367 if (CheckHasBit(cached_has_bits, 0x00000008U)) {
1368 ABSL_DCHECK(
_impl_.dual_values_filter_ !=
nullptr);
1369 _impl_.dual_values_filter_->Clear();
1371 if (CheckHasBit(cached_has_bits, 0x00000010U)) {
1372 ABSL_DCHECK(
_impl_.reduced_costs_filter_ !=
nullptr);
1373 _impl_.reduced_costs_filter_->Clear();
1375 if (CheckHasBit(cached_has_bits, 0x00000020U)) {
1376 ABSL_DCHECK(
_impl_.initial_basis_ !=
nullptr);
1377 _impl_.initial_basis_->Clear();
1379 if (CheckHasBit(cached_has_bits, 0x00000040U)) {
1380 ABSL_DCHECK(
_impl_.branching_priorities_ !=
nullptr);
1381 _impl_.branching_priorities_->Clear();
1383 if (CheckHasBit(cached_has_bits, 0x00000080U)) {
1384 ABSL_DCHECK(
_impl_.primary_objective_parameters_ !=
nullptr);
1385 _impl_.primary_objective_parameters_->Clear();
1388 if (BatchCheckHasBit(cached_has_bits, 0x00000300U)) {
1389 if (CheckHasBit(cached_has_bits, 0x00000100U)) {
1390 ABSL_DCHECK(
_impl_.quadratic_dual_values_filter_ !=
nullptr);
1393 if (CheckHasBitForRepeated(cached_has_bits, 0x00000200U)) {
1394 _impl_.auxiliary_objective_parameters_.Clear();
1397 _impl_._has_bits_.Clear();
1398 _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>();
1401#if defined(PROTOBUF_CUSTOM_VTABLE)
1403 const ::google::protobuf::MessageLite& base, ::uint8_t* PROTOBUF_NONNULL target,
1404 ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) {
1408 ::uint8_t* PROTOBUF_NONNULL target,
1409 ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream)
const {
1412 if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) {
1413 this_.CheckHasBitConsistency();
1416 ::uint32_t cached_has_bits = 0;
1417 (void)cached_has_bits;
1419 cached_has_bits = this_._impl_._has_bits_[0];
1421 if (CheckHasBit(cached_has_bits, 0x00000004U)) {
1422 target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage(
1423 1, *this_._impl_.variable_values_filter_, this_._impl_.variable_values_filter_->GetCachedSize(), target,
1428 if (CheckHasBit(cached_has_bits, 0x00000008U)) {
1429 target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage(
1430 2, *this_._impl_.dual_values_filter_, this_._impl_.dual_values_filter_->GetCachedSize(), target,
1435 if (CheckHasBit(cached_has_bits, 0x00000010U)) {
1436 target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage(
1437 3, *this_._impl_.reduced_costs_filter_, this_._impl_.reduced_costs_filter_->GetCachedSize(), target,
1442 if (CheckHasBit(cached_has_bits, 0x00000020U)) {
1443 target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage(
1444 4, *this_._impl_.initial_basis_, this_._impl_.initial_basis_->GetCachedSize(), target,
1449 if (CheckHasBitForRepeated(cached_has_bits, 0x00000001U)) {
1450 for (
unsigned i = 0, n =
static_cast<unsigned>(
1451 this_._internal_solution_hints_size());
1453 const auto& repfield = this_._internal_solution_hints().Get(i);
1455 ::google::protobuf::internal::WireFormatLite::InternalWriteMessage(
1456 5, repfield, repfield.GetCachedSize(),
1462 if (CheckHasBit(cached_has_bits, 0x00000040U)) {
1463 target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage(
1464 6, *this_._impl_.branching_priorities_, this_._impl_.branching_priorities_->GetCachedSize(), target,
1469 if (CheckHasBit(cached_has_bits, 0x00000080U)) {
1470 target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage(
1471 7, *this_._impl_.primary_objective_parameters_, this_._impl_.primary_objective_parameters_->GetCachedSize(), target,
1476 if (CheckHasBitForRepeated(cached_has_bits, 0x00000200U)) {
1477 if (!this_._internal_auxiliary_objective_parameters().empty()) {
1478 using MapType = ::google::protobuf::Map<::int64_t, ::operations_research::math_opt::ObjectiveParametersProto>;
1479 using WireHelper = _pbi::MapEntryFuncs<::int64_t, ::operations_research::math_opt::ObjectiveParametersProto,
1480 _pbi::WireFormatLite::TYPE_INT64,
1481 _pbi::WireFormatLite::TYPE_MESSAGE>;
1482 const auto& field = this_._internal_auxiliary_objective_parameters();
1484 if (stream->IsSerializationDeterministic() && field.size() > 1) {
1485 for (
const auto& entry : ::google::protobuf::internal::MapSorterFlat<MapType>(field)) {
1486 target = WireHelper::InternalSerialize(
1487 8, entry.first, entry.second, target, stream);
1490 for (
const auto& entry : field) {
1491 target = WireHelper::InternalSerialize(
1492 8, entry.first, entry.second, target, stream);
1499 if (CheckHasBitForRepeated(cached_has_bits, 0x00000002U)) {
1501 int byte_size = this_._impl_._lazy_linear_constraint_ids_cached_byte_size_.Get();
1502 if (byte_size > 0) {
1503 target = stream->WriteInt64Packed(
1504 9, this_._internal_lazy_linear_constraint_ids(), byte_size, target);
1510 if (CheckHasBit(cached_has_bits, 0x00000100U)) {
1511 target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage(
1512 10, *this_._impl_.quadratic_dual_values_filter_, this_._impl_.quadratic_dual_values_filter_->GetCachedSize(), target,
1516 if (ABSL_PREDICT_FALSE(this_._internal_metadata_.have_unknown_fields())) {
1518 ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray(
1519 this_._internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream);
1525#if defined(PROTOBUF_CUSTOM_VTABLE)
1533 ::size_t total_size = 0;
1535 ::uint32_t cached_has_bits = 0;
1537 (void)cached_has_bits;
1539 ::_pbi::Prefetch5LinesFrom7Lines(&this_);
1540 cached_has_bits = this_._impl_._has_bits_[0];
1541 if (BatchCheckHasBit(cached_has_bits, 0x000000ffU)) {
1543 if (CheckHasBitForRepeated(cached_has_bits, 0x00000001U)) {
1544 total_size += 1UL * this_._internal_solution_hints_size();
1545 for (
const auto& msg : this_._internal_solution_hints()) {
1546 total_size += ::google::protobuf::internal::WireFormatLite::MessageSize(msg);
1550 if (CheckHasBitForRepeated(cached_has_bits, 0x00000002U)) {
1552 ::_pbi::WireFormatLite::Int64SizeWithPackedTagSize(
1553 this_._internal_lazy_linear_constraint_ids(), 1,
1554 this_._impl_._lazy_linear_constraint_ids_cached_byte_size_);
1557 if (CheckHasBit(cached_has_bits, 0x00000004U)) {
1559 ::google::protobuf::internal::WireFormatLite::MessageSize(*this_._impl_.variable_values_filter_);
1562 if (CheckHasBit(cached_has_bits, 0x00000008U)) {
1564 ::google::protobuf::internal::WireFormatLite::MessageSize(*this_._impl_.dual_values_filter_);
1567 if (CheckHasBit(cached_has_bits, 0x00000010U)) {
1569 ::google::protobuf::internal::WireFormatLite::MessageSize(*this_._impl_.reduced_costs_filter_);
1572 if (CheckHasBit(cached_has_bits, 0x00000020U)) {
1574 ::google::protobuf::internal::WireFormatLite::MessageSize(*this_._impl_.initial_basis_);
1577 if (CheckHasBit(cached_has_bits, 0x00000040U)) {
1579 ::google::protobuf::internal::WireFormatLite::MessageSize(*this_._impl_.branching_priorities_);
1582 if (CheckHasBit(cached_has_bits, 0x00000080U)) {
1584 ::google::protobuf::internal::WireFormatLite::MessageSize(*this_._impl_.primary_objective_parameters_);
1587 if (BatchCheckHasBit(cached_has_bits, 0x00000300U)) {
1589 if (CheckHasBit(cached_has_bits, 0x00000100U)) {
1591 ::google::protobuf::internal::WireFormatLite::MessageSize(*this_._impl_.quadratic_dual_values_filter_);
1594 if (CheckHasBitForRepeated(cached_has_bits, 0x00000200U)) {
1596 1 * ::google::protobuf::internal::FromIntSize(this_._internal_auxiliary_objective_parameters_size());
1597 for (
const auto& entry : this_._internal_auxiliary_objective_parameters()) {
1598 total_size += _pbi::MapEntryFuncs<::int64_t, ::operations_research::math_opt::ObjectiveParametersProto,
1599 _pbi::WireFormatLite::TYPE_INT64,
1600 _pbi::WireFormatLite::TYPE_MESSAGE>
::ByteSizeLong(entry.first, entry.second);
1604 return this_.MaybeComputeUnknownFieldsSize(total_size,
1605 &this_._impl_._cached_size_);
1608void ModelSolveParametersProto::MergeImpl(::google::protobuf::MessageLite& to_msg,
1609 const ::google::protobuf::MessageLite& from_msg) {
1613 if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) {
1614 from.CheckHasBitConsistency();
1618 ABSL_DCHECK_NE(&from, _this);
1619 ::uint32_t cached_has_bits = 0;
1620 (void)cached_has_bits;
1622 cached_has_bits = from._impl_._has_bits_[0];
1623 if (BatchCheckHasBit(cached_has_bits, 0x000000ffU)) {
1624 if (CheckHasBitForRepeated(cached_has_bits, 0x00000001U)) {
1625 _this->_internal_mutable_solution_hints()->InternalMergeFromWithArena(
1626 ::google::protobuf::MessageLite::internal_visibility(), arena,
1627 from._internal_solution_hints());
1629 if (CheckHasBitForRepeated(cached_has_bits, 0x00000002U)) {
1630 _this->_internal_mutable_lazy_linear_constraint_ids()->MergeFrom(from._internal_lazy_linear_constraint_ids());
1632 if (CheckHasBit(cached_has_bits, 0x00000004U)) {
1633 ABSL_DCHECK(from._impl_.variable_values_filter_ !=
nullptr);
1634 if (_this->_impl_.variable_values_filter_ ==
nullptr) {
1635 _this->_impl_.variable_values_filter_ = ::google::protobuf::Message::CopyConstruct(arena, *from._impl_.variable_values_filter_);
1637 _this->_impl_.variable_values_filter_->MergeFrom(*from._impl_.variable_values_filter_);
1640 if (CheckHasBit(cached_has_bits, 0x00000008U)) {
1641 ABSL_DCHECK(from._impl_.dual_values_filter_ !=
nullptr);
1642 if (_this->_impl_.dual_values_filter_ ==
nullptr) {
1643 _this->_impl_.dual_values_filter_ = ::google::protobuf::Message::CopyConstruct(arena, *from._impl_.dual_values_filter_);
1645 _this->_impl_.dual_values_filter_->MergeFrom(*from._impl_.dual_values_filter_);
1648 if (CheckHasBit(cached_has_bits, 0x00000010U)) {
1649 ABSL_DCHECK(from._impl_.reduced_costs_filter_ !=
nullptr);
1650 if (_this->_impl_.reduced_costs_filter_ ==
nullptr) {
1651 _this->_impl_.reduced_costs_filter_ = ::google::protobuf::Message::CopyConstruct(arena, *from._impl_.reduced_costs_filter_);
1653 _this->_impl_.reduced_costs_filter_->MergeFrom(*from._impl_.reduced_costs_filter_);
1656 if (CheckHasBit(cached_has_bits, 0x00000020U)) {
1657 ABSL_DCHECK(from._impl_.initial_basis_ !=
nullptr);
1658 if (_this->_impl_.initial_basis_ ==
nullptr) {
1659 _this->_impl_.initial_basis_ = ::google::protobuf::Message::CopyConstruct(arena, *from._impl_.initial_basis_);
1661 _this->_impl_.initial_basis_->MergeFrom(*from._impl_.initial_basis_);
1664 if (CheckHasBit(cached_has_bits, 0x00000040U)) {
1665 ABSL_DCHECK(from._impl_.branching_priorities_ !=
nullptr);
1666 if (_this->_impl_.branching_priorities_ ==
nullptr) {
1667 _this->_impl_.branching_priorities_ = ::google::protobuf::Message::CopyConstruct(arena, *from._impl_.branching_priorities_);
1669 _this->_impl_.branching_priorities_->MergeFrom(*from._impl_.branching_priorities_);
1672 if (CheckHasBit(cached_has_bits, 0x00000080U)) {
1673 ABSL_DCHECK(from._impl_.primary_objective_parameters_ !=
nullptr);
1674 if (_this->_impl_.primary_objective_parameters_ ==
nullptr) {
1675 _this->_impl_.primary_objective_parameters_ = ::google::protobuf::Message::CopyConstruct(arena, *from._impl_.primary_objective_parameters_);
1677 _this->_impl_.primary_objective_parameters_->MergeFrom(*from._impl_.primary_objective_parameters_);
1681 if (BatchCheckHasBit(cached_has_bits, 0x00000300U)) {
1682 if (CheckHasBit(cached_has_bits, 0x00000100U)) {
1683 ABSL_DCHECK(from._impl_.quadratic_dual_values_filter_ !=
nullptr);
1684 if (_this->_impl_.quadratic_dual_values_filter_ ==
nullptr) {
1685 _this->_impl_.quadratic_dual_values_filter_ = ::google::protobuf::Message::CopyConstruct(arena, *from._impl_.quadratic_dual_values_filter_);
1687 _this->_impl_.quadratic_dual_values_filter_->MergeFrom(*from._impl_.quadratic_dual_values_filter_);
1690 if (CheckHasBitForRepeated(cached_has_bits, 0x00000200U)) {
1691 _this->_impl_.auxiliary_objective_parameters_.MergeFrom(from._impl_.auxiliary_objective_parameters_);
1694 _this->_impl_._has_bits_[0] |= cached_has_bits;
1695 _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(
1696 from._internal_metadata_);
1701 if (&from ==
this)
return;
1709 _internal_metadata_.InternalSwap(&other->_internal_metadata_);
1710 swap(
_impl_._has_bits_[0], other->_impl_._has_bits_[0]);
1711 _impl_.solution_hints_.InternalSwap(&other->_impl_.solution_hints_);
1712 _impl_.lazy_linear_constraint_ids_.InternalSwap(&other->_impl_.lazy_linear_constraint_ids_);
1713 ::google::protobuf::internal::memswap<
1717 reinterpret_cast<char*
>(&
_impl_.variable_values_filter_),
1718 reinterpret_cast<char*
>(&other->_impl_.variable_values_filter_));
1719 _impl_.auxiliary_objective_parameters_.InternalSwap(&other->_impl_.auxiliary_objective_parameters_);
1723 return ::google::protobuf::Message::GetMetadataImpl(GetClassData()->full());
1733PROTOBUF_ATTRIBUTE_INIT_PRIORITY2 static ::std::false_type
1736 ::std::false_type{});
1737#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[]
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
::google::protobuf::Metadata GetMetadata() const
void clear_dual_values_filter()
::size_t ByteSizeLong() const final
static constexpr auto InternalGenerateClassData_()
void clear_initial_basis()
void clear_variable_values_filter()
~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
friend class ::google::protobuf::MessageLite
::google::protobuf::Metadata GetMetadata() const
friend void swap(ObjectiveParametersProto &a, ObjectiveParametersProto &b)
void CopyFrom(const ObjectiveParametersProto &from)
~ObjectiveParametersProto() PROTOBUF_FINAL
::size_t ByteSizeLong() const final
::uint8_t *PROTOBUF_NONNULL _InternalSerialize(::uint8_t *PROTOBUF_NONNULL target, ::google::protobuf::io::EpsCopyOutputStream *PROTOBUF_NONNULL stream) const final
void MergeFrom(const ObjectiveParametersProto &from)
ABSL_ATTRIBUTE_REINITIALIZES void Clear() PROTOBUF_FINAL
static constexpr auto InternalGenerateClassData_()
const ::google::protobuf::UnknownFieldSet & unknown_fields() const ABSL_ATTRIBUTE_LIFETIME_BOUND
ObjectiveParametersProto()
friend class ::google::protobuf::Arena
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)
::google::protobuf::Metadata GetMetadata() const
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 constexpr ::_pbi::MigrationSchema *PROTOBUF_NULLABLE schemas
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
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_
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()