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 OsqpSettingsProto::Impl_::Impl_(
31 ::_pbi::ConstantInitialized) noexcept
35 scaling_{::int64_t{0}},
36 adaptive_rho_interval_{::int64_t{0}},
37 adaptive_rho_tolerance_{0},
38 adaptive_rho_fraction_{0},
39 max_iter_{::int64_t{0}},
49 scaled_termination_{
false},
51 polish_refine_iter_{::int64_t{0}},
52 check_termination_{::int64_t{0}},
57#if defined(PROTOBUF_CUSTOM_VTABLE)
60 : ::google::protobuf::Message(),
62 _impl_(::_pbi::ConstantInitialized()) {
72PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT OR_PROTO_DLL
75inline constexpr OsqpOutput::Impl_::Impl_(
76 ::_pbi::ConstantInitialized) noexcept
78 initialized_underlying_solver_{
false} {}
82#if defined(PROTOBUF_CUSTOM_VTABLE)
85 : ::google::protobuf::Message(),
87 _impl_(::_pbi::ConstantInitialized()) {
97PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT OR_PROTO_DLL
101static constexpr const ::_pb::EnumDescriptor *PROTOBUF_NONNULL *PROTOBUF_NULLABLE
103static constexpr const ::_pb::ServiceDescriptor *PROTOBUF_NONNULL *PROTOBUF_NULLABLE
160static const ::_pbi::MigrationSchema
171 "\n#ortools/math_opt/solvers/osqp.proto\022\034o"
172 "perations_research.math_opt\"\211\007\n\021OsqpSett"
173 "ingsProto\022\020\n\003rho\030\001 \001(\001H\000\210\001\001\022\022\n\005sigma\030\002 \001"
174 "(\001H\001\210\001\001\022\024\n\007scaling\030\003 \001(\003H\002\210\001\001\022\031\n\014adaptiv"
175 "e_rho\030\004 \001(\010H\003\210\001\001\022\"\n\025adaptive_rho_interva"
176 "l\030\005 \001(\003H\004\210\001\001\022#\n\026adaptive_rho_tolerance\030\006"
177 " \001(\001H\005\210\001\001\022\"\n\025adaptive_rho_fraction\030\007 \001(\001"
178 "H\006\210\001\001\022\025\n\010max_iter\030\010 \001(\003H\007\210\001\001\022\024\n\007eps_abs\030"
179 "\t \001(\001H\010\210\001\001\022\024\n\007eps_rel\030\n \001(\001H\t\210\001\001\022\031\n\014eps_"
180 "prim_inf\030\013 \001(\001H\n\210\001\001\022\031\n\014eps_dual_inf\030\014 \001("
181 "\001H\013\210\001\001\022\022\n\005alpha\030\r \001(\001H\014\210\001\001\022\022\n\005delta\030\016 \001("
182 "\001H\r\210\001\001\022\023\n\006polish\030\017 \001(\010H\016\210\001\001\022\037\n\022polish_re"
183 "fine_iter\030\020 \001(\003H\017\210\001\001\022\024\n\007verbose\030\021 \001(\010H\020\210"
184 "\001\001\022\037\n\022scaled_termination\030\022 \001(\010H\021\210\001\001\022\036\n\021c"
185 "heck_termination\030\023 \001(\003H\022\210\001\001\022\027\n\nwarm_star"
186 "t\030\024 \001(\010H\023\210\001\001\022\027\n\ntime_limit\030\025 \001(\001H\024\210\001\001B\006\n"
187 "\004_rhoB\010\n\006_sigmaB\n\n\010_scalingB\017\n\r_adaptive"
188 "_rhoB\030\n\026_adaptive_rho_intervalB\031\n\027_adapt"
189 "ive_rho_toleranceB\030\n\026_adaptive_rho_fract"
190 "ionB\013\n\t_max_iterB\n\n\010_eps_absB\n\n\010_eps_rel"
191 "B\017\n\r_eps_prim_infB\017\n\r_eps_dual_infB\010\n\006_a"
192 "lphaB\010\n\006_deltaB\t\n\007_polishB\025\n\023_polish_ref"
193 "ine_iterB\n\n\010_verboseB\025\n\023_scaled_terminat"
194 "ionB\024\n\022_check_terminationB\r\n\013_warm_start"
195 "B\r\n\013_time_limit\"3\n\nOsqpOutput\022%\n\035initial"
196 "ized_underlying_solver\030\001 \001(\010b\006proto3"
203 descriptor_table_protodef_ortools_2fmath_5fopt_2fsolvers_2fosqp_2eproto,
204 "ortools/math_opt/solvers/osqp.proto",
222 decltype(::std::declval<OsqpSettingsProto>()._impl_._has_bits_);
228#if defined(PROTOBUF_CUSTOM_VTABLE)
231 : ::google::protobuf::Message(arena) {
238#if defined(PROTOBUF_CUSTOM_VTABLE)
241 : ::google::protobuf::Message(arena),
244 _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(
245 from._internal_metadata_);
247PROTOBUF_NDEBUG_INLINE OsqpSettingsProto::Impl_::Impl_(
248 ::google::protobuf::internal::InternalVisibility visibility,
249 ::google::protobuf::Arena* PROTOBUF_NULLABLE arena)
250 : _cached_size_{0} {}
252inline void OsqpSettingsProto::SharedCtor(::_pb::Arena* PROTOBUF_NULLABLE arena) {
253 new (&
_impl_) Impl_(internal_visibility(), arena);
254 ::memset(
reinterpret_cast<char *
>(&
_impl_) +
255 offsetof(Impl_, rho_),
257 offsetof(Impl_, time_limit_) -
258 offsetof(Impl_, rho_) +
259 sizeof(Impl_::time_limit_));
265inline void OsqpSettingsProto::SharedDtor(MessageLite& self) {
267 this_._internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>();
268 ABSL_DCHECK(this_.GetArena() ==
nullptr);
273 const void* PROTOBUF_NONNULL,
void* PROTOBUF_NONNULL mem,
274 ::google::protobuf::Arena* PROTOBUF_NULLABLE arena) {
282 return ::google::protobuf::internal::ClassDataFull{
283 ::google::protobuf::internal::ClassData{
288 &OsqpSettingsProto::MergeImpl,
289 ::google::protobuf::Message::GetNewImpl<OsqpSettingsProto>(),
290#if defined(PROTOBUF_CUSTOM_VTABLE)
291 &OsqpSettingsProto::SharedDtor,
298 &OsqpSettingsProto::kDescriptorMethods,
304PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 const
308PROTOBUF_ATTRIBUTE_WEAK const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL
314PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1
315const ::_pbi::TcParseTable<5, 21, 0, 0, 2>
316OsqpSettingsProto::_table_ = {
321 offsetof(
decltype(_table_), field_lookup_table),
323 offsetof(
decltype(_table_), field_entries),
326 offsetof(
decltype(_table_), field_names),
329 ::_pbi::TcParser::GenericFallback,
330 #ifdef PROTOBUF_PREFETCH_PARSE_TABLE
331 ::_pbi::TcParser::GetTable<::operations_research::math_opt::OsqpSettingsProto>(),
334 {::_pbi::TcParser::MiniParse, {}},
336 {::_pbi::TcParser::FastF64S1,
339 {::_pbi::TcParser::FastF64S1,
342 {::_pbi::TcParser::SingularVarintNoZag1<::uint64_t, offsetof(
OsqpSettingsProto, _impl_.scaling_), 2>(),
345 {::_pbi::TcParser::SingularVarintNoZag1<bool, offsetof(
OsqpSettingsProto, _impl_.adaptive_rho_), 13>(),
348 {::_pbi::TcParser::SingularVarintNoZag1<::uint64_t, offsetof(
OsqpSettingsProto, _impl_.adaptive_rho_interval_), 3>(),
349 {40, 3, 0, PROTOBUF_FIELD_OFFSET(
OsqpSettingsProto, _impl_.adaptive_rho_interval_)}},
351 {::_pbi::TcParser::FastF64S1,
352 {49, 4, 0, PROTOBUF_FIELD_OFFSET(
OsqpSettingsProto, _impl_.adaptive_rho_tolerance_)}},
354 {::_pbi::TcParser::FastF64S1,
355 {57, 5, 0, PROTOBUF_FIELD_OFFSET(
OsqpSettingsProto, _impl_.adaptive_rho_fraction_)}},
357 {::_pbi::TcParser::SingularVarintNoZag1<::uint64_t, offsetof(
OsqpSettingsProto, _impl_.max_iter_), 6>(),
360 {::_pbi::TcParser::FastF64S1,
363 {::_pbi::TcParser::FastF64S1,
366 {::_pbi::TcParser::FastF64S1,
369 {::_pbi::TcParser::FastF64S1,
372 {::_pbi::TcParser::FastF64S1,
375 {::_pbi::TcParser::FastF64S1,
378 {::_pbi::TcParser::SingularVarintNoZag1<bool, offsetof(
OsqpSettingsProto, _impl_.polish_), 14>(),
381 {::_pbi::TcParser::FastV64S2,
382 {384, 18, 0, PROTOBUF_FIELD_OFFSET(
OsqpSettingsProto, _impl_.polish_refine_iter_)}},
384 {::_pbi::TcParser::FastV8S2,
387 {::_pbi::TcParser::FastV8S2,
388 {400, 16, 0, PROTOBUF_FIELD_OFFSET(
OsqpSettingsProto, _impl_.scaled_termination_)}},
390 {::_pbi::TcParser::FastV64S2,
391 {408, 19, 0, PROTOBUF_FIELD_OFFSET(
OsqpSettingsProto, _impl_.check_termination_)}},
393 {::_pbi::TcParser::FastV8S2,
396 {::_pbi::TcParser::FastF64S2,
398 {::_pbi::TcParser::MiniParse, {}},
399 {::_pbi::TcParser::MiniParse, {}},
400 {::_pbi::TcParser::MiniParse, {}},
401 {::_pbi::TcParser::MiniParse, {}},
402 {::_pbi::TcParser::MiniParse, {}},
403 {::_pbi::TcParser::MiniParse, {}},
404 {::_pbi::TcParser::MiniParse, {}},
405 {::_pbi::TcParser::MiniParse, {}},
406 {::_pbi::TcParser::MiniParse, {}},
407 {::_pbi::TcParser::MiniParse, {}},
412 {PROTOBUF_FIELD_OFFSET(
OsqpSettingsProto, _impl_.rho_), _Internal::kHasBitsOffset + 0, 0,
413 (0 | ::_fl::kFcOptional | ::_fl::kDouble)},
415 {PROTOBUF_FIELD_OFFSET(
OsqpSettingsProto, _impl_.sigma_), _Internal::kHasBitsOffset + 1, 0,
416 (0 | ::_fl::kFcOptional | ::_fl::kDouble)},
418 {PROTOBUF_FIELD_OFFSET(
OsqpSettingsProto, _impl_.scaling_), _Internal::kHasBitsOffset + 2, 0,
419 (0 | ::_fl::kFcOptional | ::_fl::kInt64)},
421 {PROTOBUF_FIELD_OFFSET(
OsqpSettingsProto, _impl_.adaptive_rho_), _Internal::kHasBitsOffset + 13, 0,
422 (0 | ::_fl::kFcOptional | ::_fl::kBool)},
424 {PROTOBUF_FIELD_OFFSET(
OsqpSettingsProto, _impl_.adaptive_rho_interval_), _Internal::kHasBitsOffset + 3, 0,
425 (0 | ::_fl::kFcOptional | ::_fl::kInt64)},
427 {PROTOBUF_FIELD_OFFSET(
OsqpSettingsProto, _impl_.adaptive_rho_tolerance_), _Internal::kHasBitsOffset + 4, 0,
428 (0 | ::_fl::kFcOptional | ::_fl::kDouble)},
430 {PROTOBUF_FIELD_OFFSET(
OsqpSettingsProto, _impl_.adaptive_rho_fraction_), _Internal::kHasBitsOffset + 5, 0,
431 (0 | ::_fl::kFcOptional | ::_fl::kDouble)},
433 {PROTOBUF_FIELD_OFFSET(
OsqpSettingsProto, _impl_.max_iter_), _Internal::kHasBitsOffset + 6, 0,
434 (0 | ::_fl::kFcOptional | ::_fl::kInt64)},
436 {PROTOBUF_FIELD_OFFSET(
OsqpSettingsProto, _impl_.eps_abs_), _Internal::kHasBitsOffset + 7, 0,
437 (0 | ::_fl::kFcOptional | ::_fl::kDouble)},
439 {PROTOBUF_FIELD_OFFSET(
OsqpSettingsProto, _impl_.eps_rel_), _Internal::kHasBitsOffset + 8, 0,
440 (0 | ::_fl::kFcOptional | ::_fl::kDouble)},
442 {PROTOBUF_FIELD_OFFSET(
OsqpSettingsProto, _impl_.eps_prim_inf_), _Internal::kHasBitsOffset + 9, 0,
443 (0 | ::_fl::kFcOptional | ::_fl::kDouble)},
445 {PROTOBUF_FIELD_OFFSET(
OsqpSettingsProto, _impl_.eps_dual_inf_), _Internal::kHasBitsOffset + 10, 0,
446 (0 | ::_fl::kFcOptional | ::_fl::kDouble)},
448 {PROTOBUF_FIELD_OFFSET(
OsqpSettingsProto, _impl_.alpha_), _Internal::kHasBitsOffset + 11, 0,
449 (0 | ::_fl::kFcOptional | ::_fl::kDouble)},
451 {PROTOBUF_FIELD_OFFSET(
OsqpSettingsProto, _impl_.delta_), _Internal::kHasBitsOffset + 12, 0,
452 (0 | ::_fl::kFcOptional | ::_fl::kDouble)},
454 {PROTOBUF_FIELD_OFFSET(
OsqpSettingsProto, _impl_.polish_), _Internal::kHasBitsOffset + 14, 0,
455 (0 | ::_fl::kFcOptional | ::_fl::kBool)},
457 {PROTOBUF_FIELD_OFFSET(
OsqpSettingsProto, _impl_.polish_refine_iter_), _Internal::kHasBitsOffset + 18, 0,
458 (0 | ::_fl::kFcOptional | ::_fl::kInt64)},
460 {PROTOBUF_FIELD_OFFSET(
OsqpSettingsProto, _impl_.verbose_), _Internal::kHasBitsOffset + 15, 0,
461 (0 | ::_fl::kFcOptional | ::_fl::kBool)},
463 {PROTOBUF_FIELD_OFFSET(
OsqpSettingsProto, _impl_.scaled_termination_), _Internal::kHasBitsOffset + 16, 0,
464 (0 | ::_fl::kFcOptional | ::_fl::kBool)},
466 {PROTOBUF_FIELD_OFFSET(
OsqpSettingsProto, _impl_.check_termination_), _Internal::kHasBitsOffset + 19, 0,
467 (0 | ::_fl::kFcOptional | ::_fl::kInt64)},
469 {PROTOBUF_FIELD_OFFSET(
OsqpSettingsProto, _impl_.warm_start_), _Internal::kHasBitsOffset + 17, 0,
470 (0 | ::_fl::kFcOptional | ::_fl::kBool)},
472 {PROTOBUF_FIELD_OFFSET(
OsqpSettingsProto, _impl_.time_limit_), _Internal::kHasBitsOffset + 20, 0,
473 (0 | ::_fl::kFcOptional | ::_fl::kDouble)},
481 ::google::protobuf::internal::TSanWrite(&
_impl_);
482 ::uint32_t cached_has_bits = 0;
484 (void) cached_has_bits;
486 cached_has_bits =
_impl_._has_bits_[0];
487 if ((cached_has_bits & 0x000000ffu) != 0) {
488 ::memset(&
_impl_.rho_, 0,
static_cast<::
size_t>(
489 reinterpret_cast<char*
>(&
_impl_.eps_abs_) -
490 reinterpret_cast<char*
>(&
_impl_.rho_)) +
sizeof(
_impl_.eps_abs_));
492 if ((cached_has_bits & 0x0000ff00u) != 0) {
493 ::memset(&
_impl_.eps_rel_, 0,
static_cast<::
size_t>(
494 reinterpret_cast<char*
>(&
_impl_.verbose_) -
495 reinterpret_cast<char*
>(&
_impl_.eps_rel_)) +
sizeof(
_impl_.verbose_));
497 if ((cached_has_bits & 0x001f0000u) != 0) {
498 ::memset(&
_impl_.scaled_termination_, 0,
static_cast<::
size_t>(
499 reinterpret_cast<char*
>(&
_impl_.time_limit_) -
500 reinterpret_cast<char*
>(&
_impl_.scaled_termination_)) +
sizeof(
_impl_.time_limit_));
502 _impl_._has_bits_.Clear();
503 _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>();
506#if defined(PROTOBUF_CUSTOM_VTABLE)
508 const ::google::protobuf::MessageLite& base, ::uint8_t* PROTOBUF_NONNULL target,
509 ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) {
513 ::uint8_t* PROTOBUF_NONNULL target,
514 ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream)
const {
518 ::uint32_t cached_has_bits = 0;
519 (void)cached_has_bits;
521 cached_has_bits = this_.
_impl_._has_bits_[0];
523 if ((cached_has_bits & 0x00000001u) != 0) {
524 target = stream->EnsureSpace(target);
525 target = ::_pbi::WireFormatLite::WriteDoubleToArray(
526 1, this_._internal_rho(), target);
530 if ((cached_has_bits & 0x00000002u) != 0) {
531 target = stream->EnsureSpace(target);
532 target = ::_pbi::WireFormatLite::WriteDoubleToArray(
533 2, this_._internal_sigma(), target);
537 if ((cached_has_bits & 0x00000004u) != 0) {
539 ::google::protobuf::internal::WireFormatLite::WriteInt64ToArrayWithField<3>(
540 stream, this_._internal_scaling(), target);
544 if ((cached_has_bits & 0x00002000u) != 0) {
545 target = stream->EnsureSpace(target);
546 target = ::_pbi::WireFormatLite::WriteBoolToArray(
547 4, this_._internal_adaptive_rho(), target);
551 if ((cached_has_bits & 0x00000008u) != 0) {
553 ::google::protobuf::internal::WireFormatLite::WriteInt64ToArrayWithField<5>(
554 stream, this_._internal_adaptive_rho_interval(), target);
558 if ((cached_has_bits & 0x00000010u) != 0) {
559 target = stream->EnsureSpace(target);
560 target = ::_pbi::WireFormatLite::WriteDoubleToArray(
561 6, this_._internal_adaptive_rho_tolerance(), target);
565 if ((cached_has_bits & 0x00000020u) != 0) {
566 target = stream->EnsureSpace(target);
567 target = ::_pbi::WireFormatLite::WriteDoubleToArray(
568 7, this_._internal_adaptive_rho_fraction(), target);
572 if ((cached_has_bits & 0x00000040u) != 0) {
574 ::google::protobuf::internal::WireFormatLite::WriteInt64ToArrayWithField<8>(
575 stream, this_._internal_max_iter(), target);
579 if ((cached_has_bits & 0x00000080u) != 0) {
580 target = stream->EnsureSpace(target);
581 target = ::_pbi::WireFormatLite::WriteDoubleToArray(
582 9, this_._internal_eps_abs(), target);
586 if ((cached_has_bits & 0x00000100u) != 0) {
587 target = stream->EnsureSpace(target);
588 target = ::_pbi::WireFormatLite::WriteDoubleToArray(
589 10, this_._internal_eps_rel(), target);
593 if ((cached_has_bits & 0x00000200u) != 0) {
594 target = stream->EnsureSpace(target);
595 target = ::_pbi::WireFormatLite::WriteDoubleToArray(
596 11, this_._internal_eps_prim_inf(), target);
600 if ((cached_has_bits & 0x00000400u) != 0) {
601 target = stream->EnsureSpace(target);
602 target = ::_pbi::WireFormatLite::WriteDoubleToArray(
603 12, this_._internal_eps_dual_inf(), target);
607 if ((cached_has_bits & 0x00000800u) != 0) {
608 target = stream->EnsureSpace(target);
609 target = ::_pbi::WireFormatLite::WriteDoubleToArray(
610 13, this_._internal_alpha(), target);
614 if ((cached_has_bits & 0x00001000u) != 0) {
615 target = stream->EnsureSpace(target);
616 target = ::_pbi::WireFormatLite::WriteDoubleToArray(
617 14, this_._internal_delta(), target);
621 if ((cached_has_bits & 0x00004000u) != 0) {
622 target = stream->EnsureSpace(target);
623 target = ::_pbi::WireFormatLite::WriteBoolToArray(
624 15, this_._internal_polish(), target);
628 if ((cached_has_bits & 0x00040000u) != 0) {
629 target = stream->EnsureSpace(target);
630 target = ::_pbi::WireFormatLite::WriteInt64ToArray(
631 16, this_._internal_polish_refine_iter(), target);
635 if ((cached_has_bits & 0x00008000u) != 0) {
636 target = stream->EnsureSpace(target);
637 target = ::_pbi::WireFormatLite::WriteBoolToArray(
638 17, this_._internal_verbose(), target);
642 if ((cached_has_bits & 0x00010000u) != 0) {
643 target = stream->EnsureSpace(target);
644 target = ::_pbi::WireFormatLite::WriteBoolToArray(
645 18, this_._internal_scaled_termination(), target);
649 if ((cached_has_bits & 0x00080000u) != 0) {
650 target = stream->EnsureSpace(target);
651 target = ::_pbi::WireFormatLite::WriteInt64ToArray(
652 19, this_._internal_check_termination(), target);
656 if ((cached_has_bits & 0x00020000u) != 0) {
657 target = stream->EnsureSpace(target);
658 target = ::_pbi::WireFormatLite::WriteBoolToArray(
659 20, this_._internal_warm_start(), target);
663 if ((cached_has_bits & 0x00100000u) != 0) {
664 target = stream->EnsureSpace(target);
665 target = ::_pbi::WireFormatLite::WriteDoubleToArray(
666 21, this_._internal_time_limit(), target);
669 if (ABSL_PREDICT_FALSE(this_._internal_metadata_.have_unknown_fields())) {
671 ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray(
672 this_._internal_metadata_.
unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream);
678#if defined(PROTOBUF_CUSTOM_VTABLE)
686 ::size_t total_size = 0;
688 ::uint32_t cached_has_bits = 0;
690 (void)cached_has_bits;
692 ::_pbi::Prefetch5LinesFrom7Lines(&this_);
693 cached_has_bits = this_.
_impl_._has_bits_[0];
694 total_size +=
static_cast<bool>(0x00100000u & cached_has_bits) * 10;
695 total_size += ::absl::popcount(0x00001fb3u & cached_has_bits) * 9;
696 total_size += ::absl::popcount(0x00038000u & cached_has_bits) * 3;
697 total_size += ::absl::popcount(0x00006000u & cached_has_bits) * 2;
698 if ((cached_has_bits & 0x0000004cu) != 0) {
700 if ((cached_has_bits & 0x00000004u) != 0) {
701 total_size += ::_pbi::WireFormatLite::Int64SizePlusOne(
702 this_._internal_scaling());
705 if ((cached_has_bits & 0x00000008u) != 0) {
706 total_size += ::_pbi::WireFormatLite::Int64SizePlusOne(
707 this_._internal_adaptive_rho_interval());
710 if ((cached_has_bits & 0x00000040u) != 0) {
711 total_size += ::_pbi::WireFormatLite::Int64SizePlusOne(
712 this_._internal_max_iter());
715 if ((cached_has_bits & 0x000c0000u) != 0) {
717 if ((cached_has_bits & 0x00040000u) != 0) {
718 total_size += 2 + ::_pbi::WireFormatLite::Int64Size(
719 this_._internal_polish_refine_iter());
722 if ((cached_has_bits & 0x00080000u) != 0) {
723 total_size += 2 + ::_pbi::WireFormatLite::Int64Size(
724 this_._internal_check_termination());
727 return this_.MaybeComputeUnknownFieldsSize(total_size,
728 &this_.
_impl_._cached_size_);
731void OsqpSettingsProto::MergeImpl(::google::protobuf::MessageLite& to_msg, const ::google::protobuf::MessageLite& from_msg) {
735 ABSL_DCHECK_NE(&from, _this);
736 ::uint32_t cached_has_bits = 0;
737 (void) cached_has_bits;
739 cached_has_bits = from.
_impl_._has_bits_[0];
740 if ((cached_has_bits & 0x000000ffu) != 0) {
741 if ((cached_has_bits & 0x00000001u) != 0) {
742 _this->_impl_.rho_ = from.
_impl_.rho_;
744 if ((cached_has_bits & 0x00000002u) != 0) {
745 _this->_impl_.sigma_ = from.
_impl_.sigma_;
747 if ((cached_has_bits & 0x00000004u) != 0) {
748 _this->_impl_.scaling_ = from.
_impl_.scaling_;
750 if ((cached_has_bits & 0x00000008u) != 0) {
751 _this->_impl_.adaptive_rho_interval_ = from.
_impl_.adaptive_rho_interval_;
753 if ((cached_has_bits & 0x00000010u) != 0) {
754 _this->_impl_.adaptive_rho_tolerance_ = from.
_impl_.adaptive_rho_tolerance_;
756 if ((cached_has_bits & 0x00000020u) != 0) {
757 _this->_impl_.adaptive_rho_fraction_ = from.
_impl_.adaptive_rho_fraction_;
759 if ((cached_has_bits & 0x00000040u) != 0) {
760 _this->_impl_.max_iter_ = from.
_impl_.max_iter_;
762 if ((cached_has_bits & 0x00000080u) != 0) {
763 _this->_impl_.eps_abs_ = from.
_impl_.eps_abs_;
766 if ((cached_has_bits & 0x0000ff00u) != 0) {
767 if ((cached_has_bits & 0x00000100u) != 0) {
768 _this->_impl_.eps_rel_ = from.
_impl_.eps_rel_;
770 if ((cached_has_bits & 0x00000200u) != 0) {
771 _this->_impl_.eps_prim_inf_ = from.
_impl_.eps_prim_inf_;
773 if ((cached_has_bits & 0x00000400u) != 0) {
774 _this->_impl_.eps_dual_inf_ = from.
_impl_.eps_dual_inf_;
776 if ((cached_has_bits & 0x00000800u) != 0) {
777 _this->_impl_.alpha_ = from.
_impl_.alpha_;
779 if ((cached_has_bits & 0x00001000u) != 0) {
780 _this->_impl_.delta_ = from.
_impl_.delta_;
782 if ((cached_has_bits & 0x00002000u) != 0) {
783 _this->_impl_.adaptive_rho_ = from.
_impl_.adaptive_rho_;
785 if ((cached_has_bits & 0x00004000u) != 0) {
786 _this->_impl_.polish_ = from.
_impl_.polish_;
788 if ((cached_has_bits & 0x00008000u) != 0) {
789 _this->_impl_.verbose_ = from.
_impl_.verbose_;
792 if ((cached_has_bits & 0x001f0000u) != 0) {
793 if ((cached_has_bits & 0x00010000u) != 0) {
794 _this->_impl_.scaled_termination_ = from.
_impl_.scaled_termination_;
796 if ((cached_has_bits & 0x00020000u) != 0) {
797 _this->_impl_.warm_start_ = from.
_impl_.warm_start_;
799 if ((cached_has_bits & 0x00040000u) != 0) {
800 _this->_impl_.polish_refine_iter_ = from.
_impl_.polish_refine_iter_;
802 if ((cached_has_bits & 0x00080000u) != 0) {
803 _this->_impl_.check_termination_ = from.
_impl_.check_termination_;
805 if ((cached_has_bits & 0x00100000u) != 0) {
806 _this->_impl_.time_limit_ = from.
_impl_.time_limit_;
809 _this->_impl_._has_bits_[0] |= cached_has_bits;
810 _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_);
815 if (&from ==
this)
return;
821void OsqpSettingsProto::InternalSwap(
OsqpSettingsProto* PROTOBUF_RESTRICT PROTOBUF_NONNULL other) {
823 _internal_metadata_.InternalSwap(&other->_internal_metadata_);
824 swap(
_impl_._has_bits_[0], other->_impl_._has_bits_[0]);
825 ::google::protobuf::internal::memswap<
829 reinterpret_cast<char*
>(&
_impl_.rho_),
830 reinterpret_cast<char*
>(&other->_impl_.rho_));
834 return ::google::protobuf::Message::GetMetadataImpl(
GetClassData()->full());
841 decltype(::std::declval<OsqpOutput>()._impl_._has_bits_);
847#if defined(PROTOBUF_CUSTOM_VTABLE)
850 : ::google::protobuf::Message(arena) {
856 ::google::protobuf::Arena* PROTOBUF_NULLABLE arena,
const OsqpOutput& from)
857#if defined(PROTOBUF_CUSTOM_VTABLE)
860 : ::google::protobuf::Message(arena),
863 _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(
864 from._internal_metadata_);
866PROTOBUF_NDEBUG_INLINE OsqpOutput::Impl_::Impl_(
867 ::google::protobuf::internal::InternalVisibility visibility,
868 ::google::protobuf::Arena* PROTOBUF_NULLABLE arena)
869 : _cached_size_{0} {}
871inline void OsqpOutput::SharedCtor(::_pb::Arena* PROTOBUF_NULLABLE arena) {
872 new (&
_impl_) Impl_(internal_visibility(), arena);
873 _impl_.initialized_underlying_solver_ = {};
879inline void OsqpOutput::SharedDtor(MessageLite& self) {
881 this_._internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>();
882 ABSL_DCHECK(this_.GetArena() ==
nullptr);
887 const void* PROTOBUF_NONNULL,
void* PROTOBUF_NONNULL mem,
888 ::google::protobuf::Arena* PROTOBUF_NULLABLE arena) {
892 return ::google::protobuf::internal::MessageCreator::ZeroInit(
sizeof(
OsqpOutput),
896 return ::google::protobuf::internal::ClassDataFull{
897 ::google::protobuf::internal::ClassData{
902 &OsqpOutput::MergeImpl,
903 ::google::protobuf::Message::GetNewImpl<OsqpOutput>(),
904#if defined(PROTOBUF_CUSTOM_VTABLE)
905 &OsqpOutput::SharedDtor,
912 &OsqpOutput::kDescriptorMethods,
918PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 const
922PROTOBUF_ATTRIBUTE_WEAK const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL
928PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1
929const ::_pbi::TcParseTable<0, 1, 0, 0, 2>
930OsqpOutput::_table_ = {
932 PROTOBUF_FIELD_OFFSET(
OsqpOutput, _impl_._has_bits_),
935 offsetof(
decltype(_table_), field_lookup_table),
937 offsetof(
decltype(_table_), field_entries),
940 offsetof(
decltype(_table_), field_names),
943 ::_pbi::TcParser::GenericFallback,
944 #ifdef PROTOBUF_PREFETCH_PARSE_TABLE
945 ::_pbi::TcParser::GetTable<::operations_research::math_opt::OsqpOutput>(),
949 {::_pbi::TcParser::SingularVarintNoZag1<bool, offsetof(OsqpOutput, _impl_.initialized_underlying_solver_), 0>(),
950 {8, 0, 0, PROTOBUF_FIELD_OFFSET(OsqpOutput, _impl_.initialized_underlying_solver_)}},
955 {PROTOBUF_FIELD_OFFSET(
OsqpOutput, _impl_.initialized_underlying_solver_), _Internal::kHasBitsOffset + 0, 0,
956 (0 | ::_fl::kFcOptional | ::_fl::kBool)},
964 ::google::protobuf::internal::TSanWrite(&
_impl_);
965 ::uint32_t cached_has_bits = 0;
967 (void) cached_has_bits;
969 _impl_.initialized_underlying_solver_ =
false;
970 _impl_._has_bits_.Clear();
971 _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>();
974#if defined(PROTOBUF_CUSTOM_VTABLE)
976 const ::google::protobuf::MessageLite&
base, ::uint8_t* PROTOBUF_NONNULL target,
977 ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) {
981 ::uint8_t* PROTOBUF_NONNULL target,
982 ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream)
const {
986 ::uint32_t cached_has_bits = 0;
987 (void)cached_has_bits;
990 if ((this_.
_impl_._has_bits_[0] & 0x00000001u) != 0) {
991 if (this_._internal_initialized_underlying_solver() != 0) {
992 target = stream->EnsureSpace(target);
993 target = ::_pbi::WireFormatLite::WriteBoolToArray(
994 1, this_._internal_initialized_underlying_solver(), target);
998 if (ABSL_PREDICT_FALSE(this_._internal_metadata_.have_unknown_fields())) {
1000 ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray(
1001 this_._internal_metadata_.
unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream);
1007#if defined(PROTOBUF_CUSTOM_VTABLE)
1015 ::size_t total_size = 0;
1017 ::uint32_t cached_has_bits = 0;
1019 (void)cached_has_bits;
1023 cached_has_bits = this_.
_impl_._has_bits_[0];
1024 if ((cached_has_bits & 0x00000001u) != 0) {
1025 if (this_._internal_initialized_underlying_solver() != 0) {
1030 return this_.MaybeComputeUnknownFieldsSize(total_size,
1031 &this_.
_impl_._cached_size_);
1034void OsqpOutput::MergeImpl(::google::protobuf::MessageLite& to_msg, const ::google::protobuf::MessageLite& from_msg) {
1035 auto*
const _this =
static_cast<OsqpOutput*
>(&to_msg);
1036 auto& from =
static_cast<const OsqpOutput&
>(from_msg);
1038 ABSL_DCHECK_NE(&from, _this);
1039 ::uint32_t cached_has_bits = 0;
1040 (void) cached_has_bits;
1042 cached_has_bits = from.
_impl_._has_bits_[0];
1043 if ((cached_has_bits & 0x00000001u) != 0) {
1044 if (from._internal_initialized_underlying_solver() != 0) {
1045 _this->_impl_.initialized_underlying_solver_ = from.
_impl_.initialized_underlying_solver_;
1048 _this->_impl_._has_bits_[0] |= cached_has_bits;
1049 _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_);
1054 if (&from ==
this)
return;
1060void OsqpOutput::InternalSwap(
OsqpOutput* PROTOBUF_RESTRICT PROTOBUF_NONNULL other) {
1062 _internal_metadata_.InternalSwap(&other->_internal_metadata_);
1063 swap(
_impl_._has_bits_[0], other->_impl_._has_bits_[0]);
1064 swap(
_impl_.initialized_underlying_solver_, other->_impl_.initialized_underlying_solver_);
1068 return ::google::protobuf::Message::GetMetadataImpl(
GetClassData()->full());
1078PROTOBUF_ATTRIBUTE_INIT_PRIORITY2 static ::std::false_type
1081 ::std::false_type{});
1082#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[]
static constexpr ::int32_t kHasBitsOffset
decltype(::std::declval< OsqpOutput >()._impl_._has_bits_) HasBits
::google::protobuf::Metadata GetMetadata() const
const ::google::protobuf::UnknownFieldSet & unknown_fields() const ABSL_ATTRIBUTE_LIFETIME_BOUND
friend class ::google::protobuf::MessageLite
~OsqpOutput() PROTOBUF_FINAL
static void *PROTOBUF_NONNULL PlacementNew_(const void *PROTOBUF_NONNULL, void *PROTOBUF_NONNULL mem, ::google::protobuf::Arena *PROTOBUF_NULLABLE arena)
void MergeFrom(const OsqpOutput &from)
::size_t ByteSizeLong() const final
const ::google::protobuf::internal::ClassData *PROTOBUF_NONNULL GetClassData() const PROTOBUF_FINAL
friend void swap(OsqpOutput &a, OsqpOutput &b)
static constexpr auto InternalNewImpl_()
void CopyFrom(const OsqpOutput &from)
static constexpr auto InternalGenerateClassData_()
ABSL_ATTRIBUTE_REINITIALIZES void Clear() PROTOBUF_FINAL
::uint8_t *PROTOBUF_NONNULL _InternalSerialize(::uint8_t *PROTOBUF_NONNULL target, ::google::protobuf::io::EpsCopyOutputStream *PROTOBUF_NONNULL stream) const final
static constexpr ::int32_t kHasBitsOffset
decltype(::std::declval< OsqpSettingsProto >()._impl_._has_bits_) HasBits
void CopyFrom(const OsqpSettingsProto &from)
static constexpr auto InternalNewImpl_()
friend class ::google::protobuf::MessageLite
friend void swap(OsqpSettingsProto &a, OsqpSettingsProto &b)
ABSL_ATTRIBUTE_REINITIALIZES void Clear() PROTOBUF_FINAL
const ::google::protobuf::UnknownFieldSet & unknown_fields() const ABSL_ATTRIBUTE_LIFETIME_BOUND
static constexpr auto InternalGenerateClassData_()
~OsqpSettingsProto() PROTOBUF_FINAL
const ::google::protobuf::internal::ClassData *PROTOBUF_NONNULL GetClassData() const PROTOBUF_FINAL
::google::protobuf::Metadata GetMetadata() const
::size_t ByteSizeLong() const final
void MergeFrom(const OsqpSettingsProto &from)
::uint8_t *PROTOBUF_NONNULL _InternalSerialize(::uint8_t *PROTOBUF_NONNULL target, ::google::protobuf::io::EpsCopyOutputStream *PROTOBUF_NONNULL stream) const final
static void *PROTOBUF_NONNULL PlacementNew_(const void *PROTOBUF_NONNULL, void *PROTOBUF_NONNULL mem, ::google::protobuf::Arena *PROTOBUF_NULLABLE arena)
An object oriented wrapper for quadratic constraints in ModelStorage.
PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT OR_PROTO_DLL PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 OsqpOutputDefaultTypeInternal _OsqpOutput_default_instance_
PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 const::google::protobuf::internal::ClassDataFull OsqpOutput_class_data_
PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT OR_PROTO_DLL PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 OsqpSettingsProtoDefaultTypeInternal _OsqpSettingsProto_default_instance_
PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 const::google::protobuf::internal::ClassDataFull OsqpSettingsProto_class_data_
In SWIG mode, we don't want anything besides these top-level includes.
static constexpr ::_pbi::MigrationSchema *PROTOBUF_NULLABLE schemas
static constexprconst ::_pb::EnumDescriptor *PROTOBUF_NONNULL *PROTOBUF_NULLABLE file_level_enum_descriptors_ortools_2fmath_5fopt_2fsolvers_2fosqp_2eproto
PROTOBUF_CONSTINITconst ::_pbi::DescriptorTable descriptor_table_ortools_2fmath_5fopt_2fsolvers_2fosqp_2eproto
static constexprconst ::_pb::ServiceDescriptor *PROTOBUF_NONNULL *PROTOBUF_NULLABLE file_level_service_descriptors_ortools_2fmath_5fopt_2fsolvers_2fosqp_2eproto
const ::uint32_t TableStruct_ortools_2fmath_5fopt_2fsolvers_2fosqp_2eproto::offsets[] ABSL_ATTRIBUTE_SECTION_VARIABLE(protodesc_cold)
::absl::once_flag descriptor_table_ortools_2fmath_5fopt_2fsolvers_2fosqp_2eproto_once
~OsqpOutputDefaultTypeInternal()
PROTOBUF_CONSTEXPR OsqpOutputDefaultTypeInternal()
~OsqpSettingsProtoDefaultTypeInternal()
PROTOBUF_CONSTEXPR OsqpSettingsProtoDefaultTypeInternal()
OsqpSettingsProto _instance