Google OR-Tools v9.15
a fast and portable software suite for combinatorial optimization
Loading...
Searching...
No Matches
osqp.pb.cc
Go to the documentation of this file.
1// Generated by the protocol buffer compiler. DO NOT EDIT!
2// NO CHECKED-IN PROTOBUF GENCODE
3// source: ortools/math_opt/solvers/osqp.proto
4// Protobuf C++ Version: 6.33.1
5
7
8#include <algorithm>
9#include <type_traits>
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"
19// @@protoc_insertion_point(includes)
20
21// Must be included last.
22#include "google/protobuf/port_def.inc"
23PROTOBUF_PRAGMA_INIT_SEG
24namespace _pb = ::google::protobuf;
26namespace _fl = ::google::protobuf::internal::field_layout;
27namespace operations_research {
28namespace math_opt {
29
30inline constexpr OsqpSettingsProto::Impl_::Impl_(
31 ::_pbi::ConstantInitialized) noexcept
32 : _cached_size_{0},
33 rho_{0},
34 sigma_{0},
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}},
40 eps_abs_{0},
41 eps_rel_{0},
42 eps_prim_inf_{0},
43 eps_dual_inf_{0},
44 alpha_{0},
45 delta_{0},
46 adaptive_rho_{false},
47 polish_{false},
48 verbose_{false},
49 scaled_termination_{false},
50 warm_start_{false},
51 polish_refine_iter_{::int64_t{0}},
52 check_termination_{::int64_t{0}},
53 time_limit_{0} {}
54
55template <typename>
56PROTOBUF_CONSTEXPR OsqpSettingsProto::OsqpSettingsProto(::_pbi::ConstantInitialized)
57#if defined(PROTOBUF_CUSTOM_VTABLE)
58 : ::google::protobuf::Message(OsqpSettingsProto_class_data_.base()),
59#else // PROTOBUF_CUSTOM_VTABLE
60 : ::google::protobuf::Message(),
61#endif // PROTOBUF_CUSTOM_VTABLE
62 _impl_(::_pbi::ConstantInitialized()) {
63}
71
72PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT OR_PROTO_DLL
74
75inline constexpr OsqpOutput::Impl_::Impl_(
76 ::_pbi::ConstantInitialized) noexcept
77 : _cached_size_{0},
78 initialized_underlying_solver_{false} {}
79
80template <typename>
81PROTOBUF_CONSTEXPR OsqpOutput::OsqpOutput(::_pbi::ConstantInitialized)
82#if defined(PROTOBUF_CUSTOM_VTABLE)
83 : ::google::protobuf::Message(OsqpOutput_class_data_.base()),
84#else // PROTOBUF_CUSTOM_VTABLE
85 : ::google::protobuf::Message(),
86#endif // PROTOBUF_CUSTOM_VTABLE
87 _impl_(::_pbi::ConstantInitialized()) {
88}
90 PROTOBUF_CONSTEXPR OsqpOutputDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {}
92 union {
94 };
95};
96
97PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT OR_PROTO_DLL
99} // namespace math_opt
100} // namespace operations_research
101static constexpr const ::_pb::EnumDescriptor* PROTOBUF_NONNULL* PROTOBUF_NULLABLE
103static constexpr const ::_pb::ServiceDescriptor* PROTOBUF_NONNULL* PROTOBUF_NULLABLE
105const ::uint32_t
107 protodesc_cold) = {
108 0x081, // bitmap
109 PROTOBUF_FIELD_OFFSET(::operations_research::math_opt::OsqpSettingsProto, _impl_._has_bits_),
110 24, // hasbit index offset
111 PROTOBUF_FIELD_OFFSET(::operations_research::math_opt::OsqpSettingsProto, _impl_.rho_),
112 PROTOBUF_FIELD_OFFSET(::operations_research::math_opt::OsqpSettingsProto, _impl_.sigma_),
113 PROTOBUF_FIELD_OFFSET(::operations_research::math_opt::OsqpSettingsProto, _impl_.scaling_),
114 PROTOBUF_FIELD_OFFSET(::operations_research::math_opt::OsqpSettingsProto, _impl_.adaptive_rho_),
115 PROTOBUF_FIELD_OFFSET(::operations_research::math_opt::OsqpSettingsProto, _impl_.adaptive_rho_interval_),
116 PROTOBUF_FIELD_OFFSET(::operations_research::math_opt::OsqpSettingsProto, _impl_.adaptive_rho_tolerance_),
117 PROTOBUF_FIELD_OFFSET(::operations_research::math_opt::OsqpSettingsProto, _impl_.adaptive_rho_fraction_),
118 PROTOBUF_FIELD_OFFSET(::operations_research::math_opt::OsqpSettingsProto, _impl_.max_iter_),
119 PROTOBUF_FIELD_OFFSET(::operations_research::math_opt::OsqpSettingsProto, _impl_.eps_abs_),
120 PROTOBUF_FIELD_OFFSET(::operations_research::math_opt::OsqpSettingsProto, _impl_.eps_rel_),
121 PROTOBUF_FIELD_OFFSET(::operations_research::math_opt::OsqpSettingsProto, _impl_.eps_prim_inf_),
122 PROTOBUF_FIELD_OFFSET(::operations_research::math_opt::OsqpSettingsProto, _impl_.eps_dual_inf_),
123 PROTOBUF_FIELD_OFFSET(::operations_research::math_opt::OsqpSettingsProto, _impl_.alpha_),
124 PROTOBUF_FIELD_OFFSET(::operations_research::math_opt::OsqpSettingsProto, _impl_.delta_),
125 PROTOBUF_FIELD_OFFSET(::operations_research::math_opt::OsqpSettingsProto, _impl_.polish_),
126 PROTOBUF_FIELD_OFFSET(::operations_research::math_opt::OsqpSettingsProto, _impl_.polish_refine_iter_),
127 PROTOBUF_FIELD_OFFSET(::operations_research::math_opt::OsqpSettingsProto, _impl_.verbose_),
128 PROTOBUF_FIELD_OFFSET(::operations_research::math_opt::OsqpSettingsProto, _impl_.scaled_termination_),
129 PROTOBUF_FIELD_OFFSET(::operations_research::math_opt::OsqpSettingsProto, _impl_.check_termination_),
130 PROTOBUF_FIELD_OFFSET(::operations_research::math_opt::OsqpSettingsProto, _impl_.warm_start_),
131 PROTOBUF_FIELD_OFFSET(::operations_research::math_opt::OsqpSettingsProto, _impl_.time_limit_),
132 0,
133 1,
134 2,
135 13,
136 3,
137 4,
138 5,
139 6,
140 7,
141 8,
142 9,
143 10,
144 11,
145 12,
146 14,
147 18,
148 15,
149 16,
150 19,
151 17,
152 20,
153 0x081, // bitmap
154 PROTOBUF_FIELD_OFFSET(::operations_research::math_opt::OsqpOutput, _impl_._has_bits_),
155 4, // hasbit index offset
156 PROTOBUF_FIELD_OFFSET(::operations_research::math_opt::OsqpOutput, _impl_.initialized_underlying_solver_),
157 0,
158};
159
160static const ::_pbi::MigrationSchema
161 schemas[] ABSL_ATTRIBUTE_SECTION_VARIABLE(protodesc_cold) = {
164};
169const char descriptor_table_protodef_ortools_2fmath_5fopt_2fsolvers_2fosqp_2eproto[] ABSL_ATTRIBUTE_SECTION_VARIABLE(
170 protodesc_cold) = {
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"
197};
199PROTOBUF_CONSTINIT const ::_pbi::DescriptorTable descriptor_table_ortools_2fmath_5fopt_2fsolvers_2fosqp_2eproto = {
200 false,
201 false,
202 1036,
203 descriptor_table_protodef_ortools_2fmath_5fopt_2fsolvers_2fosqp_2eproto,
204 "ortools/math_opt/solvers/osqp.proto",
206 nullptr,
207 0,
208 2,
209 schemas,
214};
215namespace operations_research {
216namespace math_opt {
217// ===================================================================
218
220 public:
221 using HasBits =
222 decltype(::std::declval<OsqpSettingsProto>()._impl_._has_bits_);
223 static constexpr ::int32_t kHasBitsOffset =
224 8 * PROTOBUF_FIELD_OFFSET(OsqpSettingsProto, _impl_._has_bits_);
225};
226
227OsqpSettingsProto::OsqpSettingsProto(::google::protobuf::Arena* PROTOBUF_NULLABLE arena)
228#if defined(PROTOBUF_CUSTOM_VTABLE)
229 : ::google::protobuf::Message(arena, OsqpSettingsProto_class_data_.base()) {
230#else // PROTOBUF_CUSTOM_VTABLE
231 : ::google::protobuf::Message(arena) {
232#endif // PROTOBUF_CUSTOM_VTABLE
233 SharedCtor(arena);
234 // @@protoc_insertion_point(arena_constructor:operations_research.math_opt.OsqpSettingsProto)
235}
237 ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const OsqpSettingsProto& from)
238#if defined(PROTOBUF_CUSTOM_VTABLE)
239 : ::google::protobuf::Message(arena, OsqpSettingsProto_class_data_.base()),
240#else // PROTOBUF_CUSTOM_VTABLE
241 : ::google::protobuf::Message(arena),
242#endif // PROTOBUF_CUSTOM_VTABLE
243 _impl_(from._impl_) {
244 _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(
245 from._internal_metadata_);
246}
247PROTOBUF_NDEBUG_INLINE OsqpSettingsProto::Impl_::Impl_(
248 [[maybe_unused]] ::google::protobuf::internal::InternalVisibility visibility,
249 [[maybe_unused]] ::google::protobuf::Arena* PROTOBUF_NULLABLE arena)
250 : _cached_size_{0} {}
251
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_),
256 0,
257 offsetof(Impl_, time_limit_) -
258 offsetof(Impl_, rho_) +
259 sizeof(Impl_::time_limit_));
260}
262 // @@protoc_insertion_point(destructor:operations_research.math_opt.OsqpSettingsProto)
263 SharedDtor(*this);
264}
265inline void OsqpSettingsProto::SharedDtor(MessageLite& self) {
266 OsqpSettingsProto& this_ = static_cast<OsqpSettingsProto&>(self);
267 if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) {
268 this_.CheckHasBitConsistency();
269 }
270 this_._internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>();
271 ABSL_DCHECK(this_.GetArena() == nullptr);
272 this_._impl_.~Impl_();
273}
274
275inline void* PROTOBUF_NONNULL OsqpSettingsProto::PlacementNew_(
276 const void* PROTOBUF_NONNULL, void* PROTOBUF_NONNULL mem,
277 ::google::protobuf::Arena* PROTOBUF_NULLABLE arena) {
278 return ::new (mem) OsqpSettingsProto(arena);
279}
280constexpr auto OsqpSettingsProto::InternalNewImpl_() {
281 return ::google::protobuf::internal::MessageCreator::ZeroInit(sizeof(OsqpSettingsProto),
282 alignof(OsqpSettingsProto));
283}
285 return ::google::protobuf::internal::ClassDataFull{
286 ::google::protobuf::internal::ClassData{
288 &_table_.header,
289 nullptr, // OnDemandRegisterArenaDtor
290 nullptr, // IsInitialized
291 &OsqpSettingsProto::MergeImpl,
292 ::google::protobuf::Message::GetNewImpl<OsqpSettingsProto>(),
293#if defined(PROTOBUF_CUSTOM_VTABLE)
294 &OsqpSettingsProto::SharedDtor,
295 ::google::protobuf::Message::GetClearImpl<OsqpSettingsProto>(), &OsqpSettingsProto::ByteSizeLong,
297#endif // PROTOBUF_CUSTOM_VTABLE
298 PROTOBUF_FIELD_OFFSET(OsqpSettingsProto, _impl_._cached_size_),
299 false,
300 },
301 &OsqpSettingsProto::kDescriptorMethods,
303 nullptr, // tracker
304 };
305}
306
307PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 const
308 ::google::protobuf::internal::ClassDataFull OsqpSettingsProto_class_data_ =
310
311PROTOBUF_ATTRIBUTE_WEAK const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL
312OsqpSettingsProto::GetClassData() const {
313 ::google::protobuf::internal::PrefetchToLocalCache(&OsqpSettingsProto_class_data_);
314 ::google::protobuf::internal::PrefetchToLocalCache(OsqpSettingsProto_class_data_.tc_table);
315 return OsqpSettingsProto_class_data_.base();
316}
317PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1
318const ::_pbi::TcParseTable<5, 21, 0, 0, 2>
319OsqpSettingsProto::_table_ = {
320 {
321 PROTOBUF_FIELD_OFFSET(OsqpSettingsProto, _impl_._has_bits_),
322 0, // no _extensions_
323 21, 248, // max_field_number, fast_idx_mask
324 offsetof(decltype(_table_), field_lookup_table),
325 4292870144, // skipmap
326 offsetof(decltype(_table_), field_entries),
327 21, // num_field_entries
328 0, // num_aux_entries
329 offsetof(decltype(_table_), field_names), // no aux_entries
331 nullptr, // post_loop_handler
332 ::_pbi::TcParser::GenericFallback, // fallback
333 #ifdef PROTOBUF_PREFETCH_PARSE_TABLE
334 ::_pbi::TcParser::GetTable<::operations_research::math_opt::OsqpSettingsProto>(), // to_prefetch
335 #endif // PROTOBUF_PREFETCH_PARSE_TABLE
336 }, {{
337 {::_pbi::TcParser::MiniParse, {}},
338 // optional double rho = 1;
339 {::_pbi::TcParser::FastF64S1,
340 {9, 0, 0,
341 PROTOBUF_FIELD_OFFSET(OsqpSettingsProto, _impl_.rho_)}},
342 // optional double sigma = 2;
343 {::_pbi::TcParser::FastF64S1,
344 {17, 1, 0,
345 PROTOBUF_FIELD_OFFSET(OsqpSettingsProto, _impl_.sigma_)}},
346 // optional int64 scaling = 3;
347 {::_pbi::TcParser::SingularVarintNoZag1<::uint64_t, offsetof(OsqpSettingsProto, _impl_.scaling_), 2>(),
348 {24, 2, 0,
349 PROTOBUF_FIELD_OFFSET(OsqpSettingsProto, _impl_.scaling_)}},
350 // optional bool adaptive_rho = 4;
351 {::_pbi::TcParser::SingularVarintNoZag1<bool, offsetof(OsqpSettingsProto, _impl_.adaptive_rho_), 13>(),
352 {32, 13, 0,
353 PROTOBUF_FIELD_OFFSET(OsqpSettingsProto, _impl_.adaptive_rho_)}},
354 // optional int64 adaptive_rho_interval = 5;
355 {::_pbi::TcParser::SingularVarintNoZag1<::uint64_t, offsetof(OsqpSettingsProto, _impl_.adaptive_rho_interval_), 3>(),
356 {40, 3, 0,
357 PROTOBUF_FIELD_OFFSET(OsqpSettingsProto, _impl_.adaptive_rho_interval_)}},
358 // optional double adaptive_rho_tolerance = 6;
359 {::_pbi::TcParser::FastF64S1,
360 {49, 4, 0,
361 PROTOBUF_FIELD_OFFSET(OsqpSettingsProto, _impl_.adaptive_rho_tolerance_)}},
362 // optional double adaptive_rho_fraction = 7;
363 {::_pbi::TcParser::FastF64S1,
364 {57, 5, 0,
365 PROTOBUF_FIELD_OFFSET(OsqpSettingsProto, _impl_.adaptive_rho_fraction_)}},
366 // optional int64 max_iter = 8;
367 {::_pbi::TcParser::SingularVarintNoZag1<::uint64_t, offsetof(OsqpSettingsProto, _impl_.max_iter_), 6>(),
368 {64, 6, 0,
369 PROTOBUF_FIELD_OFFSET(OsqpSettingsProto, _impl_.max_iter_)}},
370 // optional double eps_abs = 9;
371 {::_pbi::TcParser::FastF64S1,
372 {73, 7, 0,
373 PROTOBUF_FIELD_OFFSET(OsqpSettingsProto, _impl_.eps_abs_)}},
374 // optional double eps_rel = 10;
375 {::_pbi::TcParser::FastF64S1,
376 {81, 8, 0,
377 PROTOBUF_FIELD_OFFSET(OsqpSettingsProto, _impl_.eps_rel_)}},
378 // optional double eps_prim_inf = 11;
379 {::_pbi::TcParser::FastF64S1,
380 {89, 9, 0,
381 PROTOBUF_FIELD_OFFSET(OsqpSettingsProto, _impl_.eps_prim_inf_)}},
382 // optional double eps_dual_inf = 12;
383 {::_pbi::TcParser::FastF64S1,
384 {97, 10, 0,
385 PROTOBUF_FIELD_OFFSET(OsqpSettingsProto, _impl_.eps_dual_inf_)}},
386 // optional double alpha = 13;
387 {::_pbi::TcParser::FastF64S1,
388 {105, 11, 0,
389 PROTOBUF_FIELD_OFFSET(OsqpSettingsProto, _impl_.alpha_)}},
390 // optional double delta = 14;
391 {::_pbi::TcParser::FastF64S1,
392 {113, 12, 0,
393 PROTOBUF_FIELD_OFFSET(OsqpSettingsProto, _impl_.delta_)}},
394 // optional bool polish = 15;
395 {::_pbi::TcParser::SingularVarintNoZag1<bool, offsetof(OsqpSettingsProto, _impl_.polish_), 14>(),
396 {120, 14, 0,
397 PROTOBUF_FIELD_OFFSET(OsqpSettingsProto, _impl_.polish_)}},
398 // optional int64 polish_refine_iter = 16;
399 {::_pbi::TcParser::FastV64S2,
400 {384, 18, 0,
401 PROTOBUF_FIELD_OFFSET(OsqpSettingsProto, _impl_.polish_refine_iter_)}},
402 // optional bool verbose = 17;
403 {::_pbi::TcParser::FastV8S2,
404 {392, 15, 0,
405 PROTOBUF_FIELD_OFFSET(OsqpSettingsProto, _impl_.verbose_)}},
406 // optional bool scaled_termination = 18;
407 {::_pbi::TcParser::FastV8S2,
408 {400, 16, 0,
409 PROTOBUF_FIELD_OFFSET(OsqpSettingsProto, _impl_.scaled_termination_)}},
410 // optional int64 check_termination = 19;
411 {::_pbi::TcParser::FastV64S2,
412 {408, 19, 0,
413 PROTOBUF_FIELD_OFFSET(OsqpSettingsProto, _impl_.check_termination_)}},
414 // optional bool warm_start = 20;
415 {::_pbi::TcParser::FastV8S2,
416 {416, 17, 0,
417 PROTOBUF_FIELD_OFFSET(OsqpSettingsProto, _impl_.warm_start_)}},
418 // optional double time_limit = 21;
419 {::_pbi::TcParser::FastF64S2,
420 {425, 20, 0,
421 PROTOBUF_FIELD_OFFSET(OsqpSettingsProto, _impl_.time_limit_)}},
422 {::_pbi::TcParser::MiniParse, {}},
423 {::_pbi::TcParser::MiniParse, {}},
424 {::_pbi::TcParser::MiniParse, {}},
425 {::_pbi::TcParser::MiniParse, {}},
426 {::_pbi::TcParser::MiniParse, {}},
427 {::_pbi::TcParser::MiniParse, {}},
428 {::_pbi::TcParser::MiniParse, {}},
429 {::_pbi::TcParser::MiniParse, {}},
430 {::_pbi::TcParser::MiniParse, {}},
431 {::_pbi::TcParser::MiniParse, {}},
432 }}, {{
433 65535, 65535
434 }}, {{
435 // optional double rho = 1;
436 {PROTOBUF_FIELD_OFFSET(OsqpSettingsProto, _impl_.rho_), _Internal::kHasBitsOffset + 0, 0, (0 | ::_fl::kFcOptional | ::_fl::kDouble)},
437 // optional double sigma = 2;
438 {PROTOBUF_FIELD_OFFSET(OsqpSettingsProto, _impl_.sigma_), _Internal::kHasBitsOffset + 1, 0, (0 | ::_fl::kFcOptional | ::_fl::kDouble)},
439 // optional int64 scaling = 3;
440 {PROTOBUF_FIELD_OFFSET(OsqpSettingsProto, _impl_.scaling_), _Internal::kHasBitsOffset + 2, 0, (0 | ::_fl::kFcOptional | ::_fl::kInt64)},
441 // optional bool adaptive_rho = 4;
442 {PROTOBUF_FIELD_OFFSET(OsqpSettingsProto, _impl_.adaptive_rho_), _Internal::kHasBitsOffset + 13, 0, (0 | ::_fl::kFcOptional | ::_fl::kBool)},
443 // optional int64 adaptive_rho_interval = 5;
444 {PROTOBUF_FIELD_OFFSET(OsqpSettingsProto, _impl_.adaptive_rho_interval_), _Internal::kHasBitsOffset + 3, 0, (0 | ::_fl::kFcOptional | ::_fl::kInt64)},
445 // optional double adaptive_rho_tolerance = 6;
446 {PROTOBUF_FIELD_OFFSET(OsqpSettingsProto, _impl_.adaptive_rho_tolerance_), _Internal::kHasBitsOffset + 4, 0, (0 | ::_fl::kFcOptional | ::_fl::kDouble)},
447 // optional double adaptive_rho_fraction = 7;
448 {PROTOBUF_FIELD_OFFSET(OsqpSettingsProto, _impl_.adaptive_rho_fraction_), _Internal::kHasBitsOffset + 5, 0, (0 | ::_fl::kFcOptional | ::_fl::kDouble)},
449 // optional int64 max_iter = 8;
450 {PROTOBUF_FIELD_OFFSET(OsqpSettingsProto, _impl_.max_iter_), _Internal::kHasBitsOffset + 6, 0, (0 | ::_fl::kFcOptional | ::_fl::kInt64)},
451 // optional double eps_abs = 9;
452 {PROTOBUF_FIELD_OFFSET(OsqpSettingsProto, _impl_.eps_abs_), _Internal::kHasBitsOffset + 7, 0, (0 | ::_fl::kFcOptional | ::_fl::kDouble)},
453 // optional double eps_rel = 10;
454 {PROTOBUF_FIELD_OFFSET(OsqpSettingsProto, _impl_.eps_rel_), _Internal::kHasBitsOffset + 8, 0, (0 | ::_fl::kFcOptional | ::_fl::kDouble)},
455 // optional double eps_prim_inf = 11;
456 {PROTOBUF_FIELD_OFFSET(OsqpSettingsProto, _impl_.eps_prim_inf_), _Internal::kHasBitsOffset + 9, 0, (0 | ::_fl::kFcOptional | ::_fl::kDouble)},
457 // optional double eps_dual_inf = 12;
458 {PROTOBUF_FIELD_OFFSET(OsqpSettingsProto, _impl_.eps_dual_inf_), _Internal::kHasBitsOffset + 10, 0, (0 | ::_fl::kFcOptional | ::_fl::kDouble)},
459 // optional double alpha = 13;
460 {PROTOBUF_FIELD_OFFSET(OsqpSettingsProto, _impl_.alpha_), _Internal::kHasBitsOffset + 11, 0, (0 | ::_fl::kFcOptional | ::_fl::kDouble)},
461 // optional double delta = 14;
462 {PROTOBUF_FIELD_OFFSET(OsqpSettingsProto, _impl_.delta_), _Internal::kHasBitsOffset + 12, 0, (0 | ::_fl::kFcOptional | ::_fl::kDouble)},
463 // optional bool polish = 15;
464 {PROTOBUF_FIELD_OFFSET(OsqpSettingsProto, _impl_.polish_), _Internal::kHasBitsOffset + 14, 0, (0 | ::_fl::kFcOptional | ::_fl::kBool)},
465 // optional int64 polish_refine_iter = 16;
466 {PROTOBUF_FIELD_OFFSET(OsqpSettingsProto, _impl_.polish_refine_iter_), _Internal::kHasBitsOffset + 18, 0, (0 | ::_fl::kFcOptional | ::_fl::kInt64)},
467 // optional bool verbose = 17;
468 {PROTOBUF_FIELD_OFFSET(OsqpSettingsProto, _impl_.verbose_), _Internal::kHasBitsOffset + 15, 0, (0 | ::_fl::kFcOptional | ::_fl::kBool)},
469 // optional bool scaled_termination = 18;
470 {PROTOBUF_FIELD_OFFSET(OsqpSettingsProto, _impl_.scaled_termination_), _Internal::kHasBitsOffset + 16, 0, (0 | ::_fl::kFcOptional | ::_fl::kBool)},
471 // optional int64 check_termination = 19;
472 {PROTOBUF_FIELD_OFFSET(OsqpSettingsProto, _impl_.check_termination_), _Internal::kHasBitsOffset + 19, 0, (0 | ::_fl::kFcOptional | ::_fl::kInt64)},
473 // optional bool warm_start = 20;
474 {PROTOBUF_FIELD_OFFSET(OsqpSettingsProto, _impl_.warm_start_), _Internal::kHasBitsOffset + 17, 0, (0 | ::_fl::kFcOptional | ::_fl::kBool)},
475 // optional double time_limit = 21;
476 {PROTOBUF_FIELD_OFFSET(OsqpSettingsProto, _impl_.time_limit_), _Internal::kHasBitsOffset + 20, 0, (0 | ::_fl::kFcOptional | ::_fl::kDouble)},
477 }},
478 // no aux_entries
479 {{
480 }},
481};
482PROTOBUF_NOINLINE void OsqpSettingsProto::Clear() {
483// @@protoc_insertion_point(message_clear_start:operations_research.math_opt.OsqpSettingsProto)
484 ::google::protobuf::internal::TSanWrite(&_impl_);
485 ::uint32_t cached_has_bits = 0;
486 // Prevent compiler warnings about cached_has_bits being unused
487 (void) cached_has_bits;
488
489 cached_has_bits = _impl_._has_bits_[0];
490 if (BatchCheckHasBit(cached_has_bits, 0x000000ffU)) {
491 ::memset(&_impl_.rho_, 0, static_cast<::size_t>(
492 reinterpret_cast<char*>(&_impl_.eps_abs_) -
493 reinterpret_cast<char*>(&_impl_.rho_)) + sizeof(_impl_.eps_abs_));
494 }
495 if (BatchCheckHasBit(cached_has_bits, 0x0000ff00U)) {
496 ::memset(&_impl_.eps_rel_, 0, static_cast<::size_t>(
497 reinterpret_cast<char*>(&_impl_.verbose_) -
498 reinterpret_cast<char*>(&_impl_.eps_rel_)) + sizeof(_impl_.verbose_));
499 }
500 if (BatchCheckHasBit(cached_has_bits, 0x001f0000U)) {
501 ::memset(&_impl_.scaled_termination_, 0, static_cast<::size_t>(
502 reinterpret_cast<char*>(&_impl_.time_limit_) -
503 reinterpret_cast<char*>(&_impl_.scaled_termination_)) + sizeof(_impl_.time_limit_));
504 }
505 _impl_._has_bits_.Clear();
506 _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>();
507}
508
509#if defined(PROTOBUF_CUSTOM_VTABLE)
510::uint8_t* PROTOBUF_NONNULL OsqpSettingsProto::_InternalSerialize(
511 const ::google::protobuf::MessageLite& base, ::uint8_t* PROTOBUF_NONNULL target,
512 ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) {
513 const OsqpSettingsProto& this_ = static_cast<const OsqpSettingsProto&>(base);
514#else // PROTOBUF_CUSTOM_VTABLE
515::uint8_t* PROTOBUF_NONNULL OsqpSettingsProto::_InternalSerialize(
516 ::uint8_t* PROTOBUF_NONNULL target,
517 ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const {
518 const OsqpSettingsProto& this_ = *this;
519#endif // PROTOBUF_CUSTOM_VTABLE
520 if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) {
521 this_.CheckHasBitConsistency();
522 }
523 // @@protoc_insertion_point(serialize_to_array_start:operations_research.math_opt.OsqpSettingsProto)
524 ::uint32_t cached_has_bits = 0;
525 (void)cached_has_bits;
526
527 cached_has_bits = this_._impl_._has_bits_[0];
528 // optional double rho = 1;
529 if (CheckHasBit(cached_has_bits, 0x00000001U)) {
530 target = stream->EnsureSpace(target);
531 target = ::_pbi::WireFormatLite::WriteDoubleToArray(
532 1, this_._internal_rho(), target);
533 }
534
535 // optional double sigma = 2;
536 if (CheckHasBit(cached_has_bits, 0x00000002U)) {
537 target = stream->EnsureSpace(target);
538 target = ::_pbi::WireFormatLite::WriteDoubleToArray(
539 2, this_._internal_sigma(), target);
540 }
541
542 // optional int64 scaling = 3;
543 if (CheckHasBit(cached_has_bits, 0x00000004U)) {
544 target =
545 ::google::protobuf::internal::WireFormatLite::WriteInt64ToArrayWithField<3>(
546 stream, this_._internal_scaling(), target);
547 }
548
549 // optional bool adaptive_rho = 4;
550 if (CheckHasBit(cached_has_bits, 0x00002000U)) {
551 target = stream->EnsureSpace(target);
552 target = ::_pbi::WireFormatLite::WriteBoolToArray(
553 4, this_._internal_adaptive_rho(), target);
554 }
555
556 // optional int64 adaptive_rho_interval = 5;
557 if (CheckHasBit(cached_has_bits, 0x00000008U)) {
558 target =
559 ::google::protobuf::internal::WireFormatLite::WriteInt64ToArrayWithField<5>(
560 stream, this_._internal_adaptive_rho_interval(), target);
561 }
562
563 // optional double adaptive_rho_tolerance = 6;
564 if (CheckHasBit(cached_has_bits, 0x00000010U)) {
565 target = stream->EnsureSpace(target);
566 target = ::_pbi::WireFormatLite::WriteDoubleToArray(
567 6, this_._internal_adaptive_rho_tolerance(), target);
568 }
569
570 // optional double adaptive_rho_fraction = 7;
571 if (CheckHasBit(cached_has_bits, 0x00000020U)) {
572 target = stream->EnsureSpace(target);
573 target = ::_pbi::WireFormatLite::WriteDoubleToArray(
574 7, this_._internal_adaptive_rho_fraction(), target);
575 }
576
577 // optional int64 max_iter = 8;
578 if (CheckHasBit(cached_has_bits, 0x00000040U)) {
579 target =
580 ::google::protobuf::internal::WireFormatLite::WriteInt64ToArrayWithField<8>(
581 stream, this_._internal_max_iter(), target);
582 }
583
584 // optional double eps_abs = 9;
585 if (CheckHasBit(cached_has_bits, 0x00000080U)) {
586 target = stream->EnsureSpace(target);
587 target = ::_pbi::WireFormatLite::WriteDoubleToArray(
588 9, this_._internal_eps_abs(), target);
589 }
590
591 // optional double eps_rel = 10;
592 if (CheckHasBit(cached_has_bits, 0x00000100U)) {
593 target = stream->EnsureSpace(target);
594 target = ::_pbi::WireFormatLite::WriteDoubleToArray(
595 10, this_._internal_eps_rel(), target);
596 }
597
598 // optional double eps_prim_inf = 11;
599 if (CheckHasBit(cached_has_bits, 0x00000200U)) {
600 target = stream->EnsureSpace(target);
601 target = ::_pbi::WireFormatLite::WriteDoubleToArray(
602 11, this_._internal_eps_prim_inf(), target);
603 }
604
605 // optional double eps_dual_inf = 12;
606 if (CheckHasBit(cached_has_bits, 0x00000400U)) {
607 target = stream->EnsureSpace(target);
608 target = ::_pbi::WireFormatLite::WriteDoubleToArray(
609 12, this_._internal_eps_dual_inf(), target);
610 }
611
612 // optional double alpha = 13;
613 if (CheckHasBit(cached_has_bits, 0x00000800U)) {
614 target = stream->EnsureSpace(target);
615 target = ::_pbi::WireFormatLite::WriteDoubleToArray(
616 13, this_._internal_alpha(), target);
617 }
618
619 // optional double delta = 14;
620 if (CheckHasBit(cached_has_bits, 0x00001000U)) {
621 target = stream->EnsureSpace(target);
622 target = ::_pbi::WireFormatLite::WriteDoubleToArray(
623 14, this_._internal_delta(), target);
624 }
625
626 // optional bool polish = 15;
627 if (CheckHasBit(cached_has_bits, 0x00004000U)) {
628 target = stream->EnsureSpace(target);
629 target = ::_pbi::WireFormatLite::WriteBoolToArray(
630 15, this_._internal_polish(), target);
631 }
632
633 // optional int64 polish_refine_iter = 16;
634 if (CheckHasBit(cached_has_bits, 0x00040000U)) {
635 target = stream->EnsureSpace(target);
636 target = ::_pbi::WireFormatLite::WriteInt64ToArray(
637 16, this_._internal_polish_refine_iter(), target);
638 }
639
640 // optional bool verbose = 17;
641 if (CheckHasBit(cached_has_bits, 0x00008000U)) {
642 target = stream->EnsureSpace(target);
643 target = ::_pbi::WireFormatLite::WriteBoolToArray(
644 17, this_._internal_verbose(), target);
645 }
646
647 // optional bool scaled_termination = 18;
648 if (CheckHasBit(cached_has_bits, 0x00010000U)) {
649 target = stream->EnsureSpace(target);
650 target = ::_pbi::WireFormatLite::WriteBoolToArray(
651 18, this_._internal_scaled_termination(), target);
652 }
653
654 // optional int64 check_termination = 19;
655 if (CheckHasBit(cached_has_bits, 0x00080000U)) {
656 target = stream->EnsureSpace(target);
657 target = ::_pbi::WireFormatLite::WriteInt64ToArray(
658 19, this_._internal_check_termination(), target);
659 }
660
661 // optional bool warm_start = 20;
662 if (CheckHasBit(cached_has_bits, 0x00020000U)) {
663 target = stream->EnsureSpace(target);
664 target = ::_pbi::WireFormatLite::WriteBoolToArray(
665 20, this_._internal_warm_start(), target);
666 }
667
668 // optional double time_limit = 21;
669 if (CheckHasBit(cached_has_bits, 0x00100000U)) {
670 target = stream->EnsureSpace(target);
671 target = ::_pbi::WireFormatLite::WriteDoubleToArray(
672 21, this_._internal_time_limit(), target);
673 }
674
675 if (ABSL_PREDICT_FALSE(this_._internal_metadata_.have_unknown_fields())) {
676 target =
677 ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray(
678 this_._internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream);
679 }
680 // @@protoc_insertion_point(serialize_to_array_end:operations_research.math_opt.OsqpSettingsProto)
681 return target;
682}
683
684#if defined(PROTOBUF_CUSTOM_VTABLE)
686 const OsqpSettingsProto& this_ = static_cast<const OsqpSettingsProto&>(base);
687#else // PROTOBUF_CUSTOM_VTABLE
688::size_t OsqpSettingsProto::ByteSizeLong() const {
689 const OsqpSettingsProto& this_ = *this;
690#endif // PROTOBUF_CUSTOM_VTABLE
691 // @@protoc_insertion_point(message_byte_size_start:operations_research.math_opt.OsqpSettingsProto)
692 ::size_t total_size = 0;
693
694 ::uint32_t cached_has_bits = 0;
695 // Prevent compiler warnings about cached_has_bits being unused
696 (void)cached_has_bits;
697
698 ::_pbi::Prefetch5LinesFrom7Lines(&this_);
699 cached_has_bits = this_._impl_._has_bits_[0];
700 total_size += static_cast<bool>(0x00100000U & cached_has_bits) * 10;
701 total_size += ::absl::popcount(0x00001fb3U & cached_has_bits) * 9;
702 total_size += ::absl::popcount(0x00038000U & cached_has_bits) * 3;
703 total_size += ::absl::popcount(0x00006000U & cached_has_bits) * 2;
704 if (BatchCheckHasBit(cached_has_bits, 0x0000004cU)) {
705 // optional int64 scaling = 3;
706 if (CheckHasBit(cached_has_bits, 0x00000004U)) {
707 total_size += ::_pbi::WireFormatLite::Int64SizePlusOne(
708 this_._internal_scaling());
709 }
710 // optional int64 adaptive_rho_interval = 5;
711 if (CheckHasBit(cached_has_bits, 0x00000008U)) {
712 total_size += ::_pbi::WireFormatLite::Int64SizePlusOne(
713 this_._internal_adaptive_rho_interval());
714 }
715 // optional int64 max_iter = 8;
716 if (CheckHasBit(cached_has_bits, 0x00000040U)) {
717 total_size += ::_pbi::WireFormatLite::Int64SizePlusOne(
718 this_._internal_max_iter());
719 }
720 }
721 if (BatchCheckHasBit(cached_has_bits, 0x000c0000U)) {
722 // optional int64 polish_refine_iter = 16;
723 if (CheckHasBit(cached_has_bits, 0x00040000U)) {
724 total_size += 2 + ::_pbi::WireFormatLite::Int64Size(
725 this_._internal_polish_refine_iter());
726 }
727 // optional int64 check_termination = 19;
728 if (CheckHasBit(cached_has_bits, 0x00080000U)) {
729 total_size += 2 + ::_pbi::WireFormatLite::Int64Size(
730 this_._internal_check_termination());
731 }
732 }
733 return this_.MaybeComputeUnknownFieldsSize(total_size,
734 &this_._impl_._cached_size_);
735}
736
737void OsqpSettingsProto::MergeImpl(::google::protobuf::MessageLite& to_msg,
738 const ::google::protobuf::MessageLite& from_msg) {
739 auto* const _this =
740 static_cast<OsqpSettingsProto*>(&to_msg);
741 auto& from = static_cast<const OsqpSettingsProto&>(from_msg);
742 if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) {
743 from.CheckHasBitConsistency();
744 }
745 // @@protoc_insertion_point(class_specific_merge_from_start:operations_research.math_opt.OsqpSettingsProto)
746 ABSL_DCHECK_NE(&from, _this);
747 ::uint32_t cached_has_bits = 0;
748 (void)cached_has_bits;
749
750 cached_has_bits = from._impl_._has_bits_[0];
751 if (BatchCheckHasBit(cached_has_bits, 0x000000ffU)) {
752 if (CheckHasBit(cached_has_bits, 0x00000001U)) {
753 _this->_impl_.rho_ = from._impl_.rho_;
754 }
755 if (CheckHasBit(cached_has_bits, 0x00000002U)) {
756 _this->_impl_.sigma_ = from._impl_.sigma_;
757 }
758 if (CheckHasBit(cached_has_bits, 0x00000004U)) {
759 _this->_impl_.scaling_ = from._impl_.scaling_;
760 }
761 if (CheckHasBit(cached_has_bits, 0x00000008U)) {
762 _this->_impl_.adaptive_rho_interval_ = from._impl_.adaptive_rho_interval_;
763 }
764 if (CheckHasBit(cached_has_bits, 0x00000010U)) {
765 _this->_impl_.adaptive_rho_tolerance_ = from._impl_.adaptive_rho_tolerance_;
766 }
767 if (CheckHasBit(cached_has_bits, 0x00000020U)) {
768 _this->_impl_.adaptive_rho_fraction_ = from._impl_.adaptive_rho_fraction_;
769 }
770 if (CheckHasBit(cached_has_bits, 0x00000040U)) {
771 _this->_impl_.max_iter_ = from._impl_.max_iter_;
772 }
773 if (CheckHasBit(cached_has_bits, 0x00000080U)) {
774 _this->_impl_.eps_abs_ = from._impl_.eps_abs_;
775 }
776 }
777 if (BatchCheckHasBit(cached_has_bits, 0x0000ff00U)) {
778 if (CheckHasBit(cached_has_bits, 0x00000100U)) {
779 _this->_impl_.eps_rel_ = from._impl_.eps_rel_;
780 }
781 if (CheckHasBit(cached_has_bits, 0x00000200U)) {
782 _this->_impl_.eps_prim_inf_ = from._impl_.eps_prim_inf_;
783 }
784 if (CheckHasBit(cached_has_bits, 0x00000400U)) {
785 _this->_impl_.eps_dual_inf_ = from._impl_.eps_dual_inf_;
786 }
787 if (CheckHasBit(cached_has_bits, 0x00000800U)) {
788 _this->_impl_.alpha_ = from._impl_.alpha_;
789 }
790 if (CheckHasBit(cached_has_bits, 0x00001000U)) {
791 _this->_impl_.delta_ = from._impl_.delta_;
792 }
793 if (CheckHasBit(cached_has_bits, 0x00002000U)) {
794 _this->_impl_.adaptive_rho_ = from._impl_.adaptive_rho_;
795 }
796 if (CheckHasBit(cached_has_bits, 0x00004000U)) {
797 _this->_impl_.polish_ = from._impl_.polish_;
798 }
799 if (CheckHasBit(cached_has_bits, 0x00008000U)) {
800 _this->_impl_.verbose_ = from._impl_.verbose_;
801 }
802 }
803 if (BatchCheckHasBit(cached_has_bits, 0x001f0000U)) {
804 if (CheckHasBit(cached_has_bits, 0x00010000U)) {
805 _this->_impl_.scaled_termination_ = from._impl_.scaled_termination_;
806 }
807 if (CheckHasBit(cached_has_bits, 0x00020000U)) {
808 _this->_impl_.warm_start_ = from._impl_.warm_start_;
809 }
810 if (CheckHasBit(cached_has_bits, 0x00040000U)) {
811 _this->_impl_.polish_refine_iter_ = from._impl_.polish_refine_iter_;
812 }
813 if (CheckHasBit(cached_has_bits, 0x00080000U)) {
814 _this->_impl_.check_termination_ = from._impl_.check_termination_;
815 }
816 if (CheckHasBit(cached_has_bits, 0x00100000U)) {
817 _this->_impl_.time_limit_ = from._impl_.time_limit_;
818 }
819 }
820 _this->_impl_._has_bits_[0] |= cached_has_bits;
821 _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(
822 from._internal_metadata_);
823}
824
826 // @@protoc_insertion_point(class_specific_copy_from_start:operations_research.math_opt.OsqpSettingsProto)
827 if (&from == this) return;
828 Clear();
829 MergeFrom(from);
830}
831
832
833void OsqpSettingsProto::InternalSwap(OsqpSettingsProto* PROTOBUF_RESTRICT PROTOBUF_NONNULL other) {
834 using ::std::swap;
835 _internal_metadata_.InternalSwap(&other->_internal_metadata_);
836 swap(_impl_._has_bits_[0], other->_impl_._has_bits_[0]);
837 ::google::protobuf::internal::memswap<
838 PROTOBUF_FIELD_OFFSET(OsqpSettingsProto, _impl_.time_limit_)
839 + sizeof(OsqpSettingsProto::_impl_.time_limit_)
840 - PROTOBUF_FIELD_OFFSET(OsqpSettingsProto, _impl_.rho_)>(
841 reinterpret_cast<char*>(&_impl_.rho_),
842 reinterpret_cast<char*>(&other->_impl_.rho_));
843}
844
845::google::protobuf::Metadata OsqpSettingsProto::GetMetadata() const {
846 return ::google::protobuf::Message::GetMetadataImpl(GetClassData()->full());
847}
848// ===================================================================
849
851 public:
852 using HasBits =
853 decltype(::std::declval<OsqpOutput>()._impl_._has_bits_);
854 static constexpr ::int32_t kHasBitsOffset =
855 8 * PROTOBUF_FIELD_OFFSET(OsqpOutput, _impl_._has_bits_);
857
858OsqpOutput::OsqpOutput(::google::protobuf::Arena* PROTOBUF_NULLABLE arena)
859#if defined(PROTOBUF_CUSTOM_VTABLE)
860 : ::google::protobuf::Message(arena, OsqpOutput_class_data_.base()) {
861#else // PROTOBUF_CUSTOM_VTABLE
862 : ::google::protobuf::Message(arena) {
863#endif // PROTOBUF_CUSTOM_VTABLE
864 SharedCtor(arena);
865 // @@protoc_insertion_point(arena_constructor:operations_research.math_opt.OsqpOutput)
866}
868 ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const OsqpOutput& from)
869#if defined(PROTOBUF_CUSTOM_VTABLE)
870 : ::google::protobuf::Message(arena, OsqpOutput_class_data_.base()),
871#else // PROTOBUF_CUSTOM_VTABLE
872 : ::google::protobuf::Message(arena),
873#endif // PROTOBUF_CUSTOM_VTABLE
874 _impl_(from._impl_) {
875 _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(
876 from._internal_metadata_);
877}
878PROTOBUF_NDEBUG_INLINE OsqpOutput::Impl_::Impl_(
879 [[maybe_unused]] ::google::protobuf::internal::InternalVisibility visibility,
880 [[maybe_unused]] ::google::protobuf::Arena* PROTOBUF_NULLABLE arena)
881 : _cached_size_{0} {}
882
883inline void OsqpOutput::SharedCtor(::_pb::Arena* PROTOBUF_NULLABLE arena) {
884 new (&_impl_) Impl_(internal_visibility(), arena);
885 _impl_.initialized_underlying_solver_ = {};
886}
888 // @@protoc_insertion_point(destructor:operations_research.math_opt.OsqpOutput)
889 SharedDtor(*this);
890}
891inline void OsqpOutput::SharedDtor(MessageLite& self) {
892 OsqpOutput& this_ = static_cast<OsqpOutput&>(self);
893 if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) {
894 this_.CheckHasBitConsistency();
895 }
896 this_._internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>();
897 ABSL_DCHECK(this_.GetArena() == nullptr);
898 this_._impl_.~Impl_();
899}
900
901inline void* PROTOBUF_NONNULL OsqpOutput::PlacementNew_(
902 const void* PROTOBUF_NONNULL, void* PROTOBUF_NONNULL mem,
903 ::google::protobuf::Arena* PROTOBUF_NULLABLE arena) {
904 return ::new (mem) OsqpOutput(arena);
905}
906constexpr auto OsqpOutput::InternalNewImpl_() {
907 return ::google::protobuf::internal::MessageCreator::ZeroInit(sizeof(OsqpOutput),
908 alignof(OsqpOutput));
909}
911 return ::google::protobuf::internal::ClassDataFull{
912 ::google::protobuf::internal::ClassData{
914 &_table_.header,
915 nullptr, // OnDemandRegisterArenaDtor
916 nullptr, // IsInitialized
917 &OsqpOutput::MergeImpl,
918 ::google::protobuf::Message::GetNewImpl<OsqpOutput>(),
919#if defined(PROTOBUF_CUSTOM_VTABLE)
920 &OsqpOutput::SharedDtor,
921 ::google::protobuf::Message::GetClearImpl<OsqpOutput>(), &OsqpOutput::ByteSizeLong,
923#endif // PROTOBUF_CUSTOM_VTABLE
924 PROTOBUF_FIELD_OFFSET(OsqpOutput, _impl_._cached_size_),
925 false,
926 },
927 &OsqpOutput::kDescriptorMethods,
929 nullptr, // tracker
930 };
931}
932
933PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 const
934 ::google::protobuf::internal::ClassDataFull OsqpOutput_class_data_ =
937PROTOBUF_ATTRIBUTE_WEAK const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL
938OsqpOutput::GetClassData() const {
939 ::google::protobuf::internal::PrefetchToLocalCache(&OsqpOutput_class_data_);
940 ::google::protobuf::internal::PrefetchToLocalCache(OsqpOutput_class_data_.tc_table);
941 return OsqpOutput_class_data_.base();
942}
943PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1
944const ::_pbi::TcParseTable<0, 1, 0, 0, 2>
945OsqpOutput::_table_ = {
946 {
947 PROTOBUF_FIELD_OFFSET(OsqpOutput, _impl_._has_bits_),
948 0, // no _extensions_
949 1, 0, // max_field_number, fast_idx_mask
950 offsetof(decltype(_table_), field_lookup_table),
951 4294967294, // skipmap
952 offsetof(decltype(_table_), field_entries),
953 1, // num_field_entries
954 0, // num_aux_entries
955 offsetof(decltype(_table_), field_names), // no aux_entries
957 nullptr, // post_loop_handler
958 ::_pbi::TcParser::GenericFallback, // fallback
959 #ifdef PROTOBUF_PREFETCH_PARSE_TABLE
960 ::_pbi::TcParser::GetTable<::operations_research::math_opt::OsqpOutput>(), // to_prefetch
961 #endif // PROTOBUF_PREFETCH_PARSE_TABLE
962 }, {{
963 // bool initialized_underlying_solver = 1;
964 {::_pbi::TcParser::SingularVarintNoZag1<bool, offsetof(OsqpOutput, _impl_.initialized_underlying_solver_), 0>(),
965 {8, 0, 0,
966 PROTOBUF_FIELD_OFFSET(OsqpOutput, _impl_.initialized_underlying_solver_)}},
967 }}, {{
968 65535, 65535
969 }}, {{
970 // bool initialized_underlying_solver = 1;
971 {PROTOBUF_FIELD_OFFSET(OsqpOutput, _impl_.initialized_underlying_solver_), _Internal::kHasBitsOffset + 0, 0, (0 | ::_fl::kFcOptional | ::_fl::kBool)},
972 }},
973 // no aux_entries
974 {{
975 }},
976};
977PROTOBUF_NOINLINE void OsqpOutput::Clear() {
978// @@protoc_insertion_point(message_clear_start:operations_research.math_opt.OsqpOutput)
979 ::google::protobuf::internal::TSanWrite(&_impl_);
980 ::uint32_t cached_has_bits = 0;
981 // Prevent compiler warnings about cached_has_bits being unused
982 (void) cached_has_bits;
983
984 _impl_.initialized_underlying_solver_ = false;
985 _impl_._has_bits_.Clear();
986 _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>();
987}
988
989#if defined(PROTOBUF_CUSTOM_VTABLE)
990::uint8_t* PROTOBUF_NONNULL OsqpOutput::_InternalSerialize(
991 const ::google::protobuf::MessageLite& base, ::uint8_t* PROTOBUF_NONNULL target,
992 ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) {
993 const OsqpOutput& this_ = static_cast<const OsqpOutput&>(base);
994#else // PROTOBUF_CUSTOM_VTABLE
995::uint8_t* PROTOBUF_NONNULL OsqpOutput::_InternalSerialize(
996 ::uint8_t* PROTOBUF_NONNULL target,
997 ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const {
998 const OsqpOutput& this_ = *this;
999#endif // PROTOBUF_CUSTOM_VTABLE
1000 if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) {
1001 this_.CheckHasBitConsistency();
1002 }
1003 // @@protoc_insertion_point(serialize_to_array_start:operations_research.math_opt.OsqpOutput)
1004 ::uint32_t cached_has_bits = 0;
1005 (void)cached_has_bits;
1006
1007 cached_has_bits = this_._impl_._has_bits_[0];
1008 // bool initialized_underlying_solver = 1;
1009 if (CheckHasBit(cached_has_bits, 0x00000001U)) {
1010 if (this_._internal_initialized_underlying_solver() != 0) {
1011 target = stream->EnsureSpace(target);
1012 target = ::_pbi::WireFormatLite::WriteBoolToArray(
1013 1, this_._internal_initialized_underlying_solver(), target);
1014 }
1015 }
1016
1017 if (ABSL_PREDICT_FALSE(this_._internal_metadata_.have_unknown_fields())) {
1018 target =
1019 ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray(
1020 this_._internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream);
1021 }
1022 // @@protoc_insertion_point(serialize_to_array_end:operations_research.math_opt.OsqpOutput)
1023 return target;
1024}
1025
1026#if defined(PROTOBUF_CUSTOM_VTABLE)
1027::size_t OsqpOutput::ByteSizeLong(const MessageLite& base) {
1028 const OsqpOutput& this_ = static_cast<const OsqpOutput&>(base);
1029#else // PROTOBUF_CUSTOM_VTABLE
1030::size_t OsqpOutput::ByteSizeLong() const {
1031 const OsqpOutput& this_ = *this;
1032#endif // PROTOBUF_CUSTOM_VTABLE
1033 // @@protoc_insertion_point(message_byte_size_start:operations_research.math_opt.OsqpOutput)
1034 ::size_t total_size = 0;
1035
1036 ::uint32_t cached_has_bits = 0;
1037 // Prevent compiler warnings about cached_has_bits being unused
1038 (void)cached_has_bits;
1039
1040 {
1041 // bool initialized_underlying_solver = 1;
1042 cached_has_bits = this_._impl_._has_bits_[0];
1043 if (CheckHasBit(cached_has_bits, 0x00000001U)) {
1044 if (this_._internal_initialized_underlying_solver() != 0) {
1045 total_size += 2;
1046 }
1047 }
1048 }
1049 return this_.MaybeComputeUnknownFieldsSize(total_size,
1050 &this_._impl_._cached_size_);
1051}
1052
1053void OsqpOutput::MergeImpl(::google::protobuf::MessageLite& to_msg,
1054 const ::google::protobuf::MessageLite& from_msg) {
1055 auto* const _this =
1056 static_cast<OsqpOutput*>(&to_msg);
1057 auto& from = static_cast<const OsqpOutput&>(from_msg);
1058 if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) {
1059 from.CheckHasBitConsistency();
1060 }
1061 // @@protoc_insertion_point(class_specific_merge_from_start:operations_research.math_opt.OsqpOutput)
1062 ABSL_DCHECK_NE(&from, _this);
1063 ::uint32_t cached_has_bits = 0;
1064 (void)cached_has_bits;
1065
1066 cached_has_bits = from._impl_._has_bits_[0];
1067 if (CheckHasBit(cached_has_bits, 0x00000001U)) {
1068 if (from._internal_initialized_underlying_solver() != 0) {
1069 _this->_impl_.initialized_underlying_solver_ = from._impl_.initialized_underlying_solver_;
1070 }
1071 }
1072 _this->_impl_._has_bits_[0] |= cached_has_bits;
1073 _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(
1074 from._internal_metadata_);
1075}
1076
1077void OsqpOutput::CopyFrom(const OsqpOutput& from) {
1078 // @@protoc_insertion_point(class_specific_copy_from_start:operations_research.math_opt.OsqpOutput)
1079 if (&from == this) return;
1080 Clear();
1081 MergeFrom(from);
1082}
1083
1084
1085void OsqpOutput::InternalSwap(OsqpOutput* PROTOBUF_RESTRICT PROTOBUF_NONNULL other) {
1086 using ::std::swap;
1087 _internal_metadata_.InternalSwap(&other->_internal_metadata_);
1088 swap(_impl_._has_bits_[0], other->_impl_._has_bits_[0]);
1089 swap(_impl_.initialized_underlying_solver_, other->_impl_.initialized_underlying_solver_);
1090}
1091
1092::google::protobuf::Metadata OsqpOutput::GetMetadata() const {
1093 return ::google::protobuf::Message::GetMetadataImpl(GetClassData()->full());
1095// @@protoc_insertion_point(namespace_scope)
1096} // namespace math_opt
1097} // namespace operations_research
1098namespace google {
1099namespace protobuf {
1100} // namespace protobuf
1101} // namespace google
1102// @@protoc_insertion_point(global_scope)
1103PROTOBUF_ATTRIBUTE_INIT_PRIORITY2 static ::std::false_type
1104 _static_init2_ [[maybe_unused]] =
1106 ::std::false_type{});
1107#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[]
decltype(::std::declval< OsqpOutput >()._impl_._has_bits_) HasBits
Definition osqp.pb.cc:854
::google::protobuf::Metadata GetMetadata() const
Definition osqp.pb.cc:1094
const ::google::protobuf::UnknownFieldSet & unknown_fields() const ABSL_ATTRIBUTE_LIFETIME_BOUND
Definition osqp.pb.h:567
friend class ::google::protobuf::MessageLite
Definition osqp.pb.h:697
void MergeFrom(const OsqpOutput &from)
Definition osqp.pb.h:613
friend void swap(OsqpOutput &a, OsqpOutput &b)
Definition osqp.pb.h:590
void CopyFrom(const OsqpOutput &from)
Definition osqp.pb.cc:1079
static constexpr auto InternalGenerateClassData_()
Definition osqp.pb.cc:912
ABSL_ATTRIBUTE_REINITIALIZES void Clear() PROTOBUF_FINAL
Definition osqp.pb.cc:979
::uint8_t *PROTOBUF_NONNULL _InternalSerialize(::uint8_t *PROTOBUF_NONNULL target, ::google::protobuf::io::EpsCopyOutputStream *PROTOBUF_NONNULL stream) const final
Definition osqp.pb.cc:997
decltype(::std::declval< OsqpSettingsProto >()._impl_._has_bits_) HasBits
Definition osqp.pb.cc:222
void CopyFrom(const OsqpSettingsProto &from)
Definition osqp.pb.cc:826
friend class ::google::protobuf::MessageLite
Definition osqp.pb.h:486
friend void swap(OsqpSettingsProto &a, OsqpSettingsProto &b)
Definition osqp.pb.h:138
ABSL_ATTRIBUTE_REINITIALIZES void Clear() PROTOBUF_FINAL
Definition osqp.pb.cc:483
const ::google::protobuf::UnknownFieldSet & unknown_fields() const ABSL_ATTRIBUTE_LIFETIME_BOUND
Definition osqp.pb.h:115
static constexpr auto InternalGenerateClassData_()
Definition osqp.pb.cc:285
::google::protobuf::Metadata GetMetadata() const
Definition osqp.pb.cc:846
void MergeFrom(const OsqpSettingsProto &from)
Definition osqp.pb.h:161
::uint8_t *PROTOBUF_NONNULL _InternalSerialize(::uint8_t *PROTOBUF_NONNULL target, ::google::protobuf::io::EpsCopyOutputStream *PROTOBUF_NONNULL stream) const final
Definition osqp.pb.cc:516
static constexpr ::_pbi::MigrationSchema *PROTOBUF_NULLABLE schemas
PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT OR_PROTO_DLL PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 OsqpOutputDefaultTypeInternal _OsqpOutput_default_instance_
Definition osqp.pb.cc:98
PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 const::google::protobuf::internal::ClassDataFull OsqpOutput_class_data_
Definition osqp.pb.cc:936
PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT OR_PROTO_DLL PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 OsqpSettingsProtoDefaultTypeInternal _OsqpSettingsProto_default_instance_
Definition osqp.pb.cc:73
PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 const::google::protobuf::internal::ClassDataFull OsqpSettingsProto_class_data_
Definition osqp.pb.cc:309
OR-Tools root namespace.
static constexprconst ::_pb::EnumDescriptor *PROTOBUF_NONNULL *PROTOBUF_NULLABLE file_level_enum_descriptors_ortools_2fmath_5fopt_2fsolvers_2fosqp_2eproto
Definition osqp.pb.cc:102
PROTOBUF_CONSTINITconst ::_pbi::DescriptorTable descriptor_table_ortools_2fmath_5fopt_2fsolvers_2fosqp_2eproto
Definition osqp.pb.cc:199
static constexprconst ::_pb::ServiceDescriptor *PROTOBUF_NONNULL *PROTOBUF_NULLABLE file_level_service_descriptors_ortools_2fmath_5fopt_2fsolvers_2fosqp_2eproto
Definition osqp.pb.cc:104
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
Definition osqp.pb.cc:198