Google OR-Tools v9.14
a fast and portable software suite for combinatorial optimization
Loading...
Searching...
No Matches
result.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/result.proto
4// Protobuf C++ Version: 6.31.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 ProblemStatusProto::Impl_::Impl_(
31 ::_pbi::ConstantInitialized) noexcept
32 : _cached_size_{0},
33 primal_status_{static_cast< ::operations_research::math_opt::FeasibilityStatusProto >(0)},
34 dual_status_{static_cast< ::operations_research::math_opt::FeasibilityStatusProto >(0)},
35 primal_or_dual_infeasible_{false} {}
36
37template <typename>
38PROTOBUF_CONSTEXPR ProblemStatusProto::ProblemStatusProto(::_pbi::ConstantInitialized)
39#if defined(PROTOBUF_CUSTOM_VTABLE)
40 : ::google::protobuf::Message(ProblemStatusProto_class_data_.base()),
41#else // PROTOBUF_CUSTOM_VTABLE
42 : ::google::protobuf::Message(),
43#endif // PROTOBUF_CUSTOM_VTABLE
44 _impl_(::_pbi::ConstantInitialized()) {
45}
53
54PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT OR_PROTO_DLL
56
57inline constexpr ObjectiveBoundsProto::Impl_::Impl_(
58 ::_pbi::ConstantInitialized) noexcept
59 : _cached_size_{0},
60 primal_bound_{0},
61 dual_bound_{0} {}
62
63template <typename>
64PROTOBUF_CONSTEXPR ObjectiveBoundsProto::ObjectiveBoundsProto(::_pbi::ConstantInitialized)
65#if defined(PROTOBUF_CUSTOM_VTABLE)
66 : ::google::protobuf::Message(ObjectiveBoundsProto_class_data_.base()),
67#else // PROTOBUF_CUSTOM_VTABLE
68 : ::google::protobuf::Message(),
69#endif // PROTOBUF_CUSTOM_VTABLE
70 _impl_(::_pbi::ConstantInitialized()) {
71}
79
80PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT OR_PROTO_DLL
82
83inline constexpr TerminationProto::Impl_::Impl_(
84 ::_pbi::ConstantInitialized) noexcept
85 : _cached_size_{0},
86 detail_(
87 &::google::protobuf::internal::fixed_address_empty_string,
88 ::_pbi::ConstantInitialized()),
89 problem_status_{nullptr},
90 objective_bounds_{nullptr},
92 limit_{static_cast< ::operations_research::math_opt::LimitProto >(0)} {}
93
94template <typename>
95PROTOBUF_CONSTEXPR TerminationProto::TerminationProto(::_pbi::ConstantInitialized)
96#if defined(PROTOBUF_CUSTOM_VTABLE)
97 : ::google::protobuf::Message(TerminationProto_class_data_.base()),
98#else // PROTOBUF_CUSTOM_VTABLE
99 : ::google::protobuf::Message(),
100#endif // PROTOBUF_CUSTOM_VTABLE
101 _impl_(::_pbi::ConstantInitialized()) {
102}
110
111PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT OR_PROTO_DLL
113
114inline constexpr SolveStatsProto::Impl_::Impl_(
115 ::_pbi::ConstantInitialized) noexcept
116 : _cached_size_{0},
117 solve_time_{nullptr},
118 problem_status_{nullptr},
119 best_primal_bound_{0},
120 best_dual_bound_{0},
121 simplex_iterations_{::int64_t{0}},
122 barrier_iterations_{::int64_t{0}},
123 node_count_{::int64_t{0}},
124 first_order_iterations_{::int64_t{0}} {}
125
126template <typename>
127PROTOBUF_CONSTEXPR SolveStatsProto::SolveStatsProto(::_pbi::ConstantInitialized)
128#if defined(PROTOBUF_CUSTOM_VTABLE)
129 : ::google::protobuf::Message(SolveStatsProto_class_data_.base()),
130#else // PROTOBUF_CUSTOM_VTABLE
131 : ::google::protobuf::Message(),
132#endif // PROTOBUF_CUSTOM_VTABLE
133 _impl_(::_pbi::ConstantInitialized()) {
134}
142
143PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT OR_PROTO_DLL
145
146inline constexpr SolveResultProto_PdlpOutput::Impl_::Impl_(
147 ::_pbi::ConstantInitialized) noexcept
148 : _cached_size_{0},
149 convergence_information_{nullptr} {}
150
151template <typename>
152PROTOBUF_CONSTEXPR SolveResultProto_PdlpOutput::SolveResultProto_PdlpOutput(::_pbi::ConstantInitialized)
153#if defined(PROTOBUF_CUSTOM_VTABLE)
154 : ::google::protobuf::Message(SolveResultProto_PdlpOutput_class_data_.base()),
155#else // PROTOBUF_CUSTOM_VTABLE
156 : ::google::protobuf::Message(),
157#endif // PROTOBUF_CUSTOM_VTABLE
158 _impl_(::_pbi::ConstantInitialized()) {
159}
167
168PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT OR_PROTO_DLL
170
171inline constexpr SolveResultProto::Impl_::Impl_(
172 ::_pbi::ConstantInitialized) noexcept
173 : _cached_size_{0},
174 solutions_{},
175 primal_rays_{},
176 dual_rays_{},
177 termination_{nullptr},
178 solve_stats_{nullptr},
179 solver_specific_output_{},
180 _oneof_case_{} {}
181
182template <typename>
183PROTOBUF_CONSTEXPR SolveResultProto::SolveResultProto(::_pbi::ConstantInitialized)
184#if defined(PROTOBUF_CUSTOM_VTABLE)
185 : ::google::protobuf::Message(SolveResultProto_class_data_.base()),
186#else // PROTOBUF_CUSTOM_VTABLE
187 : ::google::protobuf::Message(),
188#endif // PROTOBUF_CUSTOM_VTABLE
189 _impl_(::_pbi::ConstantInitialized()) {
190}
198
199PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT OR_PROTO_DLL
201} // namespace math_opt
202} // namespace operations_research
203static const ::_pb::EnumDescriptor* PROTOBUF_NONNULL
205static constexpr const ::_pb::ServiceDescriptor *PROTOBUF_NONNULL *PROTOBUF_NULLABLE
207const ::uint32_t
209 protodesc_cold) = {
210 0x081, // bitmap
211 PROTOBUF_FIELD_OFFSET(::operations_research::math_opt::ProblemStatusProto, _impl_._has_bits_),
212 6, // hasbit index offset
213 PROTOBUF_FIELD_OFFSET(::operations_research::math_opt::ProblemStatusProto, _impl_.primal_status_),
214 PROTOBUF_FIELD_OFFSET(::operations_research::math_opt::ProblemStatusProto, _impl_.dual_status_),
215 PROTOBUF_FIELD_OFFSET(::operations_research::math_opt::ProblemStatusProto, _impl_.primal_or_dual_infeasible_),
216 0,
217 1,
218 2,
219 0x081, // bitmap
220 PROTOBUF_FIELD_OFFSET(::operations_research::math_opt::SolveStatsProto, _impl_._has_bits_),
221 11, // hasbit index offset
222 PROTOBUF_FIELD_OFFSET(::operations_research::math_opt::SolveStatsProto, _impl_.solve_time_),
223 PROTOBUF_FIELD_OFFSET(::operations_research::math_opt::SolveStatsProto, _impl_.best_primal_bound_),
224 PROTOBUF_FIELD_OFFSET(::operations_research::math_opt::SolveStatsProto, _impl_.best_dual_bound_),
225 PROTOBUF_FIELD_OFFSET(::operations_research::math_opt::SolveStatsProto, _impl_.problem_status_),
226 PROTOBUF_FIELD_OFFSET(::operations_research::math_opt::SolveStatsProto, _impl_.simplex_iterations_),
227 PROTOBUF_FIELD_OFFSET(::operations_research::math_opt::SolveStatsProto, _impl_.barrier_iterations_),
228 PROTOBUF_FIELD_OFFSET(::operations_research::math_opt::SolveStatsProto, _impl_.first_order_iterations_),
229 PROTOBUF_FIELD_OFFSET(::operations_research::math_opt::SolveStatsProto, _impl_.node_count_),
230 0,
231 2,
232 3,
233 1,
234 4,
235 5,
236 7,
237 6,
238 0x081, // bitmap
239 PROTOBUF_FIELD_OFFSET(::operations_research::math_opt::ObjectiveBoundsProto, _impl_._has_bits_),
240 5, // hasbit index offset
241 PROTOBUF_FIELD_OFFSET(::operations_research::math_opt::ObjectiveBoundsProto, _impl_.primal_bound_),
242 PROTOBUF_FIELD_OFFSET(::operations_research::math_opt::ObjectiveBoundsProto, _impl_.dual_bound_),
243 0,
244 1,
245 0x081, // bitmap
246 PROTOBUF_FIELD_OFFSET(::operations_research::math_opt::TerminationProto, _impl_._has_bits_),
247 8, // hasbit index offset
248 PROTOBUF_FIELD_OFFSET(::operations_research::math_opt::TerminationProto, _impl_.reason_),
249 PROTOBUF_FIELD_OFFSET(::operations_research::math_opt::TerminationProto, _impl_.limit_),
250 PROTOBUF_FIELD_OFFSET(::operations_research::math_opt::TerminationProto, _impl_.detail_),
251 PROTOBUF_FIELD_OFFSET(::operations_research::math_opt::TerminationProto, _impl_.problem_status_),
252 PROTOBUF_FIELD_OFFSET(::operations_research::math_opt::TerminationProto, _impl_.objective_bounds_),
253 3,
254 4,
255 0,
256 1,
257 2,
258 0x081, // bitmap
259 PROTOBUF_FIELD_OFFSET(::operations_research::math_opt::SolveResultProto_PdlpOutput, _impl_._has_bits_),
260 4, // hasbit index offset
261 PROTOBUF_FIELD_OFFSET(::operations_research::math_opt::SolveResultProto_PdlpOutput, _impl_.convergence_information_),
262 0,
263 0x085, // bitmap
264 PROTOBUF_FIELD_OFFSET(::operations_research::math_opt::SolveResultProto, _impl_._has_bits_),
265 PROTOBUF_FIELD_OFFSET(::operations_research::math_opt::SolveResultProto, _impl_._oneof_case_[0]),
266 13, // hasbit index offset
267 PROTOBUF_FIELD_OFFSET(::operations_research::math_opt::SolveResultProto, _impl_.termination_),
268 PROTOBUF_FIELD_OFFSET(::operations_research::math_opt::SolveResultProto, _impl_.solutions_),
269 PROTOBUF_FIELD_OFFSET(::operations_research::math_opt::SolveResultProto, _impl_.primal_rays_),
270 PROTOBUF_FIELD_OFFSET(::operations_research::math_opt::SolveResultProto, _impl_.dual_rays_),
271 PROTOBUF_FIELD_OFFSET(::operations_research::math_opt::SolveResultProto, _impl_.solve_stats_),
272 ::_pbi::kInvalidFieldOffsetTag,
273 ::_pbi::kInvalidFieldOffsetTag,
274 ::_pbi::kInvalidFieldOffsetTag,
275 PROTOBUF_FIELD_OFFSET(::operations_research::math_opt::SolveResultProto, _impl_.solver_specific_output_),
276 0,
277 ~0u,
278 ~0u,
279 ~0u,
280 1,
281 ~0u,
282 ~0u,
283 ~0u,
284};
285
286static const ::_pbi::MigrationSchema
287 schemas[] ABSL_ATTRIBUTE_SECTION_VARIABLE(protodesc_cold) = {
294};
303const char descriptor_table_protodef_ortools_2fmath_5fopt_2fresult_2eproto[] ABSL_ATTRIBUTE_SECTION_VARIABLE(
304 protodesc_cold) = {
305 "\n\035ortools/math_opt/result.proto\022\034operati"
306 "ons_research.math_opt\032\036google/protobuf/d"
307 "uration.proto\032\034ortools/pdlp/solve_log.pr"
308 "oto\032\031ortools/gscip/gscip.proto\032\037ortools/"
309 "math_opt/solution.proto\032#ortools/math_op"
310 "t/solvers/osqp.proto\"\317\001\n\022ProblemStatusPr"
311 "oto\022K\n\rprimal_status\030\001 \001(\01624.operations_"
312 "research.math_opt.FeasibilityStatusProto"
313 "\022I\n\013dual_status\030\002 \001(\01624.operations_resea"
314 "rch.math_opt.FeasibilityStatusProto\022!\n\031p"
315 "rimal_or_dual_infeasible\030\003 \001(\010\"\266\002\n\017Solve"
316 "StatsProto\022-\n\nsolve_time\030\001 \001(\0132\031.google."
317 "protobuf.Duration\022\035\n\021best_primal_bound\030\002"
318 " \001(\001B\002\030\001\022\033\n\017best_dual_bound\030\003 \001(\001B\002\030\001\022L\n"
319 "\016problem_status\030\004 \001(\01320.operations_resea"
320 "rch.math_opt.ProblemStatusProtoB\002\030\001\022\032\n\022s"
321 "implex_iterations\030\005 \001(\003\022\032\n\022barrier_itera"
322 "tions\030\006 \001(\003\022\036\n\026first_order_iterations\030\010 "
323 "\001(\003\022\022\n\nnode_count\030\007 \001(\003\"@\n\024ObjectiveBoun"
324 "dsProto\022\024\n\014primal_bound\030\002 \001(\001\022\022\n\ndual_bo"
325 "und\030\003 \001(\001\"\271\002\n\020TerminationProto\022D\n\006reason"
326 "\030\001 \001(\01624.operations_research.math_opt.Te"
327 "rminationReasonProto\0227\n\005limit\030\002 \001(\0162(.op"
328 "erations_research.math_opt.LimitProto\022\016\n"
329 "\006detail\030\003 \001(\t\022H\n\016problem_status\030\004 \001(\01320."
330 "operations_research.math_opt.ProblemStat"
331 "usProto\022L\n\020objective_bounds\030\005 \001(\01322.oper"
332 "ations_research.math_opt.ObjectiveBounds"
333 "Proto\"\253\005\n\020SolveResultProto\022C\n\013terminatio"
334 "n\030\002 \001(\0132..operations_research.math_opt.T"
335 "erminationProto\022>\n\tsolutions\030\003 \003(\0132+.ope"
336 "rations_research.math_opt.SolutionProto\022"
337 "A\n\013primal_rays\030\004 \003(\0132,.operations_resear"
338 "ch.math_opt.PrimalRayProto\022=\n\tdual_rays\030"
339 "\005 \003(\0132*.operations_research.math_opt.Dua"
340 "lRayProto\022B\n\013solve_stats\030\006 \001(\0132-.operati"
341 "ons_research.math_opt.SolveStatsProto\0228\n"
342 "\014gscip_output\030\007 \001(\0132 .operations_researc"
343 "h.GScipOutputH\000\022\?\n\013osqp_output\030\010 \001(\0132(.o"
344 "perations_research.math_opt.OsqpOutputH\000"
345 "\022P\n\013pdlp_output\030\t \001(\01329.operations_resea"
346 "rch.math_opt.SolveResultProto.PdlpOutput"
347 "H\000\032_\n\nPdlpOutput\022Q\n\027convergence_informat"
348 "ion\030\001 \001(\01320.operations_research.pdlp.Con"
349 "vergenceInformationB\030\n\026solver_specific_o"
350 "utputJ\004\010\001\020\002*\245\001\n\026FeasibilityStatusProto\022\""
351 "\n\036FEASIBILITY_STATUS_UNSPECIFIED\020\000\022#\n\037FE"
352 "ASIBILITY_STATUS_UNDETERMINED\020\001\022\037\n\033FEASI"
353 "BILITY_STATUS_FEASIBLE\020\002\022!\n\035FEASIBILITY_"
354 "STATUS_INFEASIBLE\020\003*\212\003\n\026TerminationReaso"
355 "nProto\022\"\n\036TERMINATION_REASON_UNSPECIFIED"
356 "\020\000\022\036\n\032TERMINATION_REASON_OPTIMAL\020\001\022!\n\035TE"
357 "RMINATION_REASON_INFEASIBLE\020\002\022 \n\034TERMINA"
358 "TION_REASON_UNBOUNDED\020\003\022.\n*TERMINATION_R"
359 "EASON_INFEASIBLE_OR_UNBOUNDED\020\004\022 \n\034TERMI"
360 "NATION_REASON_IMPRECISE\020\005\022\037\n\033TERMINATION"
361 "_REASON_FEASIBLE\020\t\022(\n$TERMINATION_REASON"
362 "_NO_SOLUTION_FOUND\020\006\022&\n\"TERMINATION_REAS"
363 "ON_NUMERICAL_ERROR\020\007\022\"\n\036TERMINATION_REAS"
364 "ON_OTHER_ERROR\020\010*\216\002\n\nLimitProto\022\025\n\021LIMIT"
365 "_UNSPECIFIED\020\000\022\026\n\022LIMIT_UNDETERMINED\020\001\022\023"
366 "\n\017LIMIT_ITERATION\020\002\022\016\n\nLIMIT_TIME\020\003\022\016\n\nL"
367 "IMIT_NODE\020\004\022\022\n\016LIMIT_SOLUTION\020\005\022\020\n\014LIMIT"
368 "_MEMORY\020\006\022\020\n\014LIMIT_CUTOFF\020\014\022\023\n\017LIMIT_OBJ"
369 "ECTIVE\020\007\022\016\n\nLIMIT_NORM\020\010\022\025\n\021LIMIT_INTERR"
370 "UPTED\020\t\022\027\n\023LIMIT_SLOW_PROGRESS\020\n\022\017\n\013LIMI"
371 "T_OTHER\020\013B\036\n\032com.google.ortools.mathoptP"
372 "\001b\006proto3"
373};
374static const ::_pbi::DescriptorTable* PROTOBUF_NONNULL const
399namespace operations_research {
400namespace math_opt {
401const ::google::protobuf::EnumDescriptor* PROTOBUF_NONNULL FeasibilityStatusProto_descriptor() {
402 ::google::protobuf::internal::AssignDescriptors(&descriptor_table_ortools_2fmath_5fopt_2fresult_2eproto);
404}
405PROTOBUF_CONSTINIT const uint32_t FeasibilityStatusProto_internal_data_[] = {
406 262144u, 0u, };
407const ::google::protobuf::EnumDescriptor* PROTOBUF_NONNULL TerminationReasonProto_descriptor() {
408 ::google::protobuf::internal::AssignDescriptors(&descriptor_table_ortools_2fmath_5fopt_2fresult_2eproto);
410}
411PROTOBUF_CONSTINIT const uint32_t TerminationReasonProto_internal_data_[] = {
412 655360u, 0u, };
413const ::google::protobuf::EnumDescriptor* PROTOBUF_NONNULL LimitProto_descriptor() {
414 ::google::protobuf::internal::AssignDescriptors(&descriptor_table_ortools_2fmath_5fopt_2fresult_2eproto);
416}
417PROTOBUF_CONSTINIT const uint32_t LimitProto_internal_data_[] = {
418 851968u, 0u, };
419// ===================================================================
420
421class ProblemStatusProto::_Internal {
422 public:
423 using HasBits =
424 decltype(::std::declval<ProblemStatusProto>()._impl_._has_bits_);
425 static constexpr ::int32_t kHasBitsOffset =
426 8 * PROTOBUF_FIELD_OFFSET(ProblemStatusProto, _impl_._has_bits_);
427};
428
429ProblemStatusProto::ProblemStatusProto(::google::protobuf::Arena* PROTOBUF_NULLABLE arena)
430#if defined(PROTOBUF_CUSTOM_VTABLE)
431 : ::google::protobuf::Message(arena, ProblemStatusProto_class_data_.base()) {
432#else // PROTOBUF_CUSTOM_VTABLE
433 : ::google::protobuf::Message(arena) {
434#endif // PROTOBUF_CUSTOM_VTABLE
435 SharedCtor(arena);
436 // @@protoc_insertion_point(arena_constructor:operations_research.math_opt.ProblemStatusProto)
437}
439 ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const ProblemStatusProto& from)
440#if defined(PROTOBUF_CUSTOM_VTABLE)
441 : ::google::protobuf::Message(arena, ProblemStatusProto_class_data_.base()),
442#else // PROTOBUF_CUSTOM_VTABLE
443 : ::google::protobuf::Message(arena),
444#endif // PROTOBUF_CUSTOM_VTABLE
445 _impl_(from._impl_) {
446 _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(
447 from._internal_metadata_);
448}
449PROTOBUF_NDEBUG_INLINE ProblemStatusProto::Impl_::Impl_(
450 ::google::protobuf::internal::InternalVisibility visibility,
451 ::google::protobuf::Arena* PROTOBUF_NULLABLE arena)
452 : _cached_size_{0} {}
453
454inline void ProblemStatusProto::SharedCtor(::_pb::Arena* PROTOBUF_NULLABLE arena) {
455 new (&_impl_) Impl_(internal_visibility(), arena);
456 ::memset(reinterpret_cast<char *>(&_impl_) +
457 offsetof(Impl_, primal_status_),
458 0,
459 offsetof(Impl_, primal_or_dual_infeasible_) -
460 offsetof(Impl_, primal_status_) +
461 sizeof(Impl_::primal_or_dual_infeasible_));
462}
464 // @@protoc_insertion_point(destructor:operations_research.math_opt.ProblemStatusProto)
465 SharedDtor(*this);
466}
467inline void ProblemStatusProto::SharedDtor(MessageLite& self) {
468 ProblemStatusProto& this_ = static_cast<ProblemStatusProto&>(self);
469 this_._internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>();
470 ABSL_DCHECK(this_.GetArena() == nullptr);
471 this_._impl_.~Impl_();
472}
473
474inline void* PROTOBUF_NONNULL ProblemStatusProto::PlacementNew_(
475 const void* PROTOBUF_NONNULL, void* PROTOBUF_NONNULL mem,
476 ::google::protobuf::Arena* PROTOBUF_NULLABLE arena) {
477 return ::new (mem) ProblemStatusProto(arena);
478}
480 return ::google::protobuf::internal::MessageCreator::ZeroInit(sizeof(ProblemStatusProto),
481 alignof(ProblemStatusProto));
482}
484 return ::google::protobuf::internal::ClassDataFull{
485 ::google::protobuf::internal::ClassData{
487 &_table_.header,
488 nullptr, // OnDemandRegisterArenaDtor
489 nullptr, // IsInitialized
490 &ProblemStatusProto::MergeImpl,
491 ::google::protobuf::Message::GetNewImpl<ProblemStatusProto>(),
492#if defined(PROTOBUF_CUSTOM_VTABLE)
493 &ProblemStatusProto::SharedDtor,
494 ::google::protobuf::Message::GetClearImpl<ProblemStatusProto>(), &ProblemStatusProto::ByteSizeLong,
496#endif // PROTOBUF_CUSTOM_VTABLE
497 PROTOBUF_FIELD_OFFSET(ProblemStatusProto, _impl_._cached_size_),
498 false,
499 },
500 &ProblemStatusProto::kDescriptorMethods,
502 nullptr, // tracker
503 };
504}
505
506PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 const
507 ::google::protobuf::internal::ClassDataFull ProblemStatusProto_class_data_ =
509
510PROTOBUF_ATTRIBUTE_WEAK const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL
512 ::google::protobuf::internal::PrefetchToLocalCache(&ProblemStatusProto_class_data_);
513 ::google::protobuf::internal::PrefetchToLocalCache(ProblemStatusProto_class_data_.tc_table);
514 return ProblemStatusProto_class_data_.base();
515}
516PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1
517const ::_pbi::TcParseTable<2, 3, 0, 0, 2>
518ProblemStatusProto::_table_ = {
519 {
520 PROTOBUF_FIELD_OFFSET(ProblemStatusProto, _impl_._has_bits_),
521 0, // no _extensions_
522 3, 24, // max_field_number, fast_idx_mask
523 offsetof(decltype(_table_), field_lookup_table),
524 4294967288, // skipmap
525 offsetof(decltype(_table_), field_entries),
526 3, // num_field_entries
527 0, // num_aux_entries
528 offsetof(decltype(_table_), field_names), // no aux_entries
530 nullptr, // post_loop_handler
531 ::_pbi::TcParser::GenericFallback, // fallback
532 #ifdef PROTOBUF_PREFETCH_PARSE_TABLE
533 ::_pbi::TcParser::GetTable<::operations_research::math_opt::ProblemStatusProto>(), // to_prefetch
534 #endif // PROTOBUF_PREFETCH_PARSE_TABLE
535 }, {{
536 {::_pbi::TcParser::MiniParse, {}},
537 // .operations_research.math_opt.FeasibilityStatusProto primal_status = 1;
538 {::_pbi::TcParser::SingularVarintNoZag1<::uint32_t, offsetof(ProblemStatusProto, _impl_.primal_status_), 0>(),
539 {8, 0, 0, PROTOBUF_FIELD_OFFSET(ProblemStatusProto, _impl_.primal_status_)}},
540 // .operations_research.math_opt.FeasibilityStatusProto dual_status = 2;
541 {::_pbi::TcParser::SingularVarintNoZag1<::uint32_t, offsetof(ProblemStatusProto, _impl_.dual_status_), 1>(),
542 {16, 1, 0, PROTOBUF_FIELD_OFFSET(ProblemStatusProto, _impl_.dual_status_)}},
543 // bool primal_or_dual_infeasible = 3;
544 {::_pbi::TcParser::SingularVarintNoZag1<bool, offsetof(ProblemStatusProto, _impl_.primal_or_dual_infeasible_), 2>(),
545 {24, 2, 0, PROTOBUF_FIELD_OFFSET(ProblemStatusProto, _impl_.primal_or_dual_infeasible_)}},
546 }}, {{
547 65535, 65535
548 }}, {{
549 // .operations_research.math_opt.FeasibilityStatusProto primal_status = 1;
550 {PROTOBUF_FIELD_OFFSET(ProblemStatusProto, _impl_.primal_status_), _Internal::kHasBitsOffset + 0, 0,
551 (0 | ::_fl::kFcOptional | ::_fl::kOpenEnum)},
552 // .operations_research.math_opt.FeasibilityStatusProto dual_status = 2;
553 {PROTOBUF_FIELD_OFFSET(ProblemStatusProto, _impl_.dual_status_), _Internal::kHasBitsOffset + 1, 0,
554 (0 | ::_fl::kFcOptional | ::_fl::kOpenEnum)},
555 // bool primal_or_dual_infeasible = 3;
556 {PROTOBUF_FIELD_OFFSET(ProblemStatusProto, _impl_.primal_or_dual_infeasible_), _Internal::kHasBitsOffset + 2, 0,
557 (0 | ::_fl::kFcOptional | ::_fl::kBool)},
558 }},
559 // no aux_entries
560 {{
561 }},
562};
563PROTOBUF_NOINLINE void ProblemStatusProto::Clear() {
564// @@protoc_insertion_point(message_clear_start:operations_research.math_opt.ProblemStatusProto)
565 ::google::protobuf::internal::TSanWrite(&_impl_);
566 ::uint32_t cached_has_bits = 0;
567 // Prevent compiler warnings about cached_has_bits being unused
568 (void) cached_has_bits;
569
570 cached_has_bits = _impl_._has_bits_[0];
571 if ((cached_has_bits & 0x00000007u) != 0) {
572 ::memset(&_impl_.primal_status_, 0, static_cast<::size_t>(
573 reinterpret_cast<char*>(&_impl_.primal_or_dual_infeasible_) -
574 reinterpret_cast<char*>(&_impl_.primal_status_)) + sizeof(_impl_.primal_or_dual_infeasible_));
575 }
576 _impl_._has_bits_.Clear();
577 _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>();
578}
579
580#if defined(PROTOBUF_CUSTOM_VTABLE)
581::uint8_t* PROTOBUF_NONNULL ProblemStatusProto::_InternalSerialize(
582 const ::google::protobuf::MessageLite& base, ::uint8_t* PROTOBUF_NONNULL target,
583 ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) {
584 const ProblemStatusProto& this_ = static_cast<const ProblemStatusProto&>(base);
585#else // PROTOBUF_CUSTOM_VTABLE
586::uint8_t* PROTOBUF_NONNULL ProblemStatusProto::_InternalSerialize(
587 ::uint8_t* PROTOBUF_NONNULL target,
588 ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const {
589 const ProblemStatusProto& this_ = *this;
590#endif // PROTOBUF_CUSTOM_VTABLE
591 // @@protoc_insertion_point(serialize_to_array_start:operations_research.math_opt.ProblemStatusProto)
592 ::uint32_t cached_has_bits = 0;
593 (void)cached_has_bits;
594
595 // .operations_research.math_opt.FeasibilityStatusProto primal_status = 1;
596 if ((this_._impl_._has_bits_[0] & 0x00000001u) != 0) {
597 if (this_._internal_primal_status() != 0) {
598 target = stream->EnsureSpace(target);
599 target = ::_pbi::WireFormatLite::WriteEnumToArray(
600 1, this_._internal_primal_status(), target);
601 }
602 }
603
604 // .operations_research.math_opt.FeasibilityStatusProto dual_status = 2;
605 if ((this_._impl_._has_bits_[0] & 0x00000002u) != 0) {
606 if (this_._internal_dual_status() != 0) {
607 target = stream->EnsureSpace(target);
608 target = ::_pbi::WireFormatLite::WriteEnumToArray(
609 2, this_._internal_dual_status(), target);
610 }
611 }
612
613 // bool primal_or_dual_infeasible = 3;
614 if ((this_._impl_._has_bits_[0] & 0x00000004u) != 0) {
615 if (this_._internal_primal_or_dual_infeasible() != 0) {
616 target = stream->EnsureSpace(target);
617 target = ::_pbi::WireFormatLite::WriteBoolToArray(
618 3, this_._internal_primal_or_dual_infeasible(), target);
619 }
620 }
621
622 if (ABSL_PREDICT_FALSE(this_._internal_metadata_.have_unknown_fields())) {
623 target =
624 ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray(
625 this_._internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream);
626 }
627 // @@protoc_insertion_point(serialize_to_array_end:operations_research.math_opt.ProblemStatusProto)
628 return target;
629}
630
631#if defined(PROTOBUF_CUSTOM_VTABLE)
633 const ProblemStatusProto& this_ = static_cast<const ProblemStatusProto&>(base);
634#else // PROTOBUF_CUSTOM_VTABLE
635::size_t ProblemStatusProto::ByteSizeLong() const {
636 const ProblemStatusProto& this_ = *this;
637#endif // PROTOBUF_CUSTOM_VTABLE
638 // @@protoc_insertion_point(message_byte_size_start:operations_research.math_opt.ProblemStatusProto)
639 ::size_t total_size = 0;
640
641 ::uint32_t cached_has_bits = 0;
642 // Prevent compiler warnings about cached_has_bits being unused
643 (void)cached_has_bits;
644
645 ::_pbi::Prefetch5LinesFrom7Lines(&this_);
646 cached_has_bits = this_._impl_._has_bits_[0];
647 if ((cached_has_bits & 0x00000007u) != 0) {
648 // .operations_research.math_opt.FeasibilityStatusProto primal_status = 1;
649 if ((cached_has_bits & 0x00000001u) != 0) {
650 if (this_._internal_primal_status() != 0) {
651 total_size += 1 +
652 ::_pbi::WireFormatLite::EnumSize(this_._internal_primal_status());
653 }
654 }
655 // .operations_research.math_opt.FeasibilityStatusProto dual_status = 2;
656 if ((cached_has_bits & 0x00000002u) != 0) {
657 if (this_._internal_dual_status() != 0) {
658 total_size += 1 +
659 ::_pbi::WireFormatLite::EnumSize(this_._internal_dual_status());
660 }
661 }
662 // bool primal_or_dual_infeasible = 3;
663 if ((cached_has_bits & 0x00000004u) != 0) {
664 if (this_._internal_primal_or_dual_infeasible() != 0) {
665 total_size += 2;
666 }
667 }
668 }
669 return this_.MaybeComputeUnknownFieldsSize(total_size,
670 &this_._impl_._cached_size_);
671}
672
673void ProblemStatusProto::MergeImpl(::google::protobuf::MessageLite& to_msg, const ::google::protobuf::MessageLite& from_msg) {
674 auto* const _this = static_cast<ProblemStatusProto*>(&to_msg);
675 auto& from = static_cast<const ProblemStatusProto&>(from_msg);
676 // @@protoc_insertion_point(class_specific_merge_from_start:operations_research.math_opt.ProblemStatusProto)
677 ABSL_DCHECK_NE(&from, _this);
678 ::uint32_t cached_has_bits = 0;
679 (void) cached_has_bits;
680
681 cached_has_bits = from._impl_._has_bits_[0];
682 if ((cached_has_bits & 0x00000007u) != 0) {
683 if ((cached_has_bits & 0x00000001u) != 0) {
684 if (from._internal_primal_status() != 0) {
685 _this->_impl_.primal_status_ = from._impl_.primal_status_;
686 }
687 }
688 if ((cached_has_bits & 0x00000002u) != 0) {
689 if (from._internal_dual_status() != 0) {
690 _this->_impl_.dual_status_ = from._impl_.dual_status_;
691 }
692 }
693 if ((cached_has_bits & 0x00000004u) != 0) {
694 if (from._internal_primal_or_dual_infeasible() != 0) {
695 _this->_impl_.primal_or_dual_infeasible_ = from._impl_.primal_or_dual_infeasible_;
696 }
697 }
698 }
699 _this->_impl_._has_bits_[0] |= cached_has_bits;
700 _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_);
701}
702
704// @@protoc_insertion_point(class_specific_copy_from_start:operations_research.math_opt.ProblemStatusProto)
705 if (&from == this) return;
706 Clear();
707 MergeFrom(from);
708}
709
710
711void ProblemStatusProto::InternalSwap(ProblemStatusProto* PROTOBUF_RESTRICT PROTOBUF_NONNULL other) {
712 using ::std::swap;
713 _internal_metadata_.InternalSwap(&other->_internal_metadata_);
714 swap(_impl_._has_bits_[0], other->_impl_._has_bits_[0]);
715 ::google::protobuf::internal::memswap<
716 PROTOBUF_FIELD_OFFSET(ProblemStatusProto, _impl_.primal_or_dual_infeasible_)
717 + sizeof(ProblemStatusProto::_impl_.primal_or_dual_infeasible_)
718 - PROTOBUF_FIELD_OFFSET(ProblemStatusProto, _impl_.primal_status_)>(
719 reinterpret_cast<char*>(&_impl_.primal_status_),
720 reinterpret_cast<char*>(&other->_impl_.primal_status_));
721}
722
723::google::protobuf::Metadata ProblemStatusProto::GetMetadata() const {
724 return ::google::protobuf::Message::GetMetadataImpl(GetClassData()->full());
725}
726// ===================================================================
727
729 public:
730 using HasBits =
731 decltype(::std::declval<SolveStatsProto>()._impl_._has_bits_);
732 static constexpr ::int32_t kHasBitsOffset =
733 8 * PROTOBUF_FIELD_OFFSET(SolveStatsProto, _impl_._has_bits_);
735
737 ::google::protobuf::internal::TSanWrite(&_impl_);
738 if (_impl_.solve_time_ != nullptr) _impl_.solve_time_->Clear();
739 _impl_._has_bits_[0] &= ~0x00000001u;
740}
741SolveStatsProto::SolveStatsProto(::google::protobuf::Arena* PROTOBUF_NULLABLE arena)
742#if defined(PROTOBUF_CUSTOM_VTABLE)
743 : ::google::protobuf::Message(arena, SolveStatsProto_class_data_.base()) {
744#else // PROTOBUF_CUSTOM_VTABLE
745 : ::google::protobuf::Message(arena) {
746#endif // PROTOBUF_CUSTOM_VTABLE
747 SharedCtor(arena);
748 // @@protoc_insertion_point(arena_constructor:operations_research.math_opt.SolveStatsProto)
749}
750PROTOBUF_NDEBUG_INLINE SolveStatsProto::Impl_::Impl_(
751 ::google::protobuf::internal::InternalVisibility visibility,
752 ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const Impl_& from,
753 const ::operations_research::math_opt::SolveStatsProto& from_msg)
754 : _has_bits_{from._has_bits_},
755 _cached_size_{0} {}
756
758 ::google::protobuf::Arena* PROTOBUF_NULLABLE arena,
759 const SolveStatsProto& from)
760#if defined(PROTOBUF_CUSTOM_VTABLE)
761 : ::google::protobuf::Message(arena, SolveStatsProto_class_data_.base()) {
762#else // PROTOBUF_CUSTOM_VTABLE
763 : ::google::protobuf::Message(arena) {
764#endif // PROTOBUF_CUSTOM_VTABLE
765 SolveStatsProto* const _this = this;
766 (void)_this;
767 _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(
768 from._internal_metadata_);
769 new (&_impl_) Impl_(internal_visibility(), arena, from._impl_, from);
770 ::uint32_t cached_has_bits = _impl_._has_bits_[0];
771 _impl_.solve_time_ = ((cached_has_bits & 0x00000001u) != 0)
772 ? ::google::protobuf::Message::CopyConstruct(arena, *from._impl_.solve_time_)
773 : nullptr;
774 _impl_.problem_status_ = ((cached_has_bits & 0x00000002u) != 0)
775 ? ::google::protobuf::Message::CopyConstruct(arena, *from._impl_.problem_status_)
776 : nullptr;
777 ::memcpy(reinterpret_cast<char *>(&_impl_) +
778 offsetof(Impl_, best_primal_bound_),
779 reinterpret_cast<const char *>(&from._impl_) +
780 offsetof(Impl_, best_primal_bound_),
781 offsetof(Impl_, first_order_iterations_) -
782 offsetof(Impl_, best_primal_bound_) +
783 sizeof(Impl_::first_order_iterations_));
784
785 // @@protoc_insertion_point(copy_constructor:operations_research.math_opt.SolveStatsProto)
786}
787PROTOBUF_NDEBUG_INLINE SolveStatsProto::Impl_::Impl_(
788 ::google::protobuf::internal::InternalVisibility visibility,
789 ::google::protobuf::Arena* PROTOBUF_NULLABLE arena)
790 : _cached_size_{0} {}
791
792inline void SolveStatsProto::SharedCtor(::_pb::Arena* PROTOBUF_NULLABLE arena) {
793 new (&_impl_) Impl_(internal_visibility(), arena);
794 ::memset(reinterpret_cast<char *>(&_impl_) +
795 offsetof(Impl_, solve_time_),
796 0,
797 offsetof(Impl_, first_order_iterations_) -
798 offsetof(Impl_, solve_time_) +
799 sizeof(Impl_::first_order_iterations_));
800}
802 // @@protoc_insertion_point(destructor:operations_research.math_opt.SolveStatsProto)
803 SharedDtor(*this);
804}
805inline void SolveStatsProto::SharedDtor(MessageLite& self) {
806 SolveStatsProto& this_ = static_cast<SolveStatsProto&>(self);
807 this_._internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>();
808 ABSL_DCHECK(this_.GetArena() == nullptr);
809 delete this_._impl_.solve_time_;
810 delete this_._impl_.problem_status_;
811 this_._impl_.~Impl_();
812}
813
814inline void* PROTOBUF_NONNULL SolveStatsProto::PlacementNew_(
815 const void* PROTOBUF_NONNULL, void* PROTOBUF_NONNULL mem,
816 ::google::protobuf::Arena* PROTOBUF_NULLABLE arena) {
817 return ::new (mem) SolveStatsProto(arena);
818}
819constexpr auto SolveStatsProto::InternalNewImpl_() {
820 return ::google::protobuf::internal::MessageCreator::ZeroInit(sizeof(SolveStatsProto),
822}
824 return ::google::protobuf::internal::ClassDataFull{
825 ::google::protobuf::internal::ClassData{
827 &_table_.header,
828 nullptr, // OnDemandRegisterArenaDtor
829 nullptr, // IsInitialized
830 &SolveStatsProto::MergeImpl,
831 ::google::protobuf::Message::GetNewImpl<SolveStatsProto>(),
832#if defined(PROTOBUF_CUSTOM_VTABLE)
833 &SolveStatsProto::SharedDtor,
834 ::google::protobuf::Message::GetClearImpl<SolveStatsProto>(), &SolveStatsProto::ByteSizeLong,
836#endif // PROTOBUF_CUSTOM_VTABLE
837 PROTOBUF_FIELD_OFFSET(SolveStatsProto, _impl_._cached_size_),
838 false,
839 },
840 &SolveStatsProto::kDescriptorMethods,
842 nullptr, // tracker
843 };
844}
845
846PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 const
847 ::google::protobuf::internal::ClassDataFull SolveStatsProto_class_data_ =
850PROTOBUF_ATTRIBUTE_WEAK const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL
852 ::google::protobuf::internal::PrefetchToLocalCache(&SolveStatsProto_class_data_);
853 ::google::protobuf::internal::PrefetchToLocalCache(SolveStatsProto_class_data_.tc_table);
854 return SolveStatsProto_class_data_.base();
855}
856PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1
857const ::_pbi::TcParseTable<3, 8, 2, 0, 2>
858SolveStatsProto::_table_ = {
859 {
860 PROTOBUF_FIELD_OFFSET(SolveStatsProto, _impl_._has_bits_),
861 0, // no _extensions_
862 8, 56, // max_field_number, fast_idx_mask
863 offsetof(decltype(_table_), field_lookup_table),
864 4294967040, // skipmap
865 offsetof(decltype(_table_), field_entries),
866 8, // num_field_entries
867 2, // num_aux_entries
868 offsetof(decltype(_table_), aux_entries),
870 nullptr, // post_loop_handler
871 ::_pbi::TcParser::GenericFallback, // fallback
872 #ifdef PROTOBUF_PREFETCH_PARSE_TABLE
873 ::_pbi::TcParser::GetTable<::operations_research::math_opt::SolveStatsProto>(), // to_prefetch
874 #endif // PROTOBUF_PREFETCH_PARSE_TABLE
875 }, {{
876 // int64 first_order_iterations = 8;
877 {::_pbi::TcParser::SingularVarintNoZag1<::uint64_t, offsetof(SolveStatsProto, _impl_.first_order_iterations_), 7>(),
878 {64, 7, 0, PROTOBUF_FIELD_OFFSET(SolveStatsProto, _impl_.first_order_iterations_)}},
879 // .google.protobuf.Duration solve_time = 1;
880 {::_pbi::TcParser::FastMtS1,
881 {10, 0, 0, PROTOBUF_FIELD_OFFSET(SolveStatsProto, _impl_.solve_time_)}},
882 // double best_primal_bound = 2 [deprecated = true];
883 {::_pbi::TcParser::FastF64S1,
884 {17, 2, 0, PROTOBUF_FIELD_OFFSET(SolveStatsProto, _impl_.best_primal_bound_)}},
885 // double best_dual_bound = 3 [deprecated = true];
886 {::_pbi::TcParser::FastF64S1,
887 {25, 3, 0, PROTOBUF_FIELD_OFFSET(SolveStatsProto, _impl_.best_dual_bound_)}},
888 // .operations_research.math_opt.ProblemStatusProto problem_status = 4 [deprecated = true];
889 {::_pbi::TcParser::FastMtS1,
890 {34, 1, 1, PROTOBUF_FIELD_OFFSET(SolveStatsProto, _impl_.problem_status_)}},
891 // int64 simplex_iterations = 5;
892 {::_pbi::TcParser::SingularVarintNoZag1<::uint64_t, offsetof(SolveStatsProto, _impl_.simplex_iterations_), 4>(),
893 {40, 4, 0, PROTOBUF_FIELD_OFFSET(SolveStatsProto, _impl_.simplex_iterations_)}},
894 // int64 barrier_iterations = 6;
895 {::_pbi::TcParser::SingularVarintNoZag1<::uint64_t, offsetof(SolveStatsProto, _impl_.barrier_iterations_), 5>(),
896 {48, 5, 0, PROTOBUF_FIELD_OFFSET(SolveStatsProto, _impl_.barrier_iterations_)}},
897 // int64 node_count = 7;
898 {::_pbi::TcParser::SingularVarintNoZag1<::uint64_t, offsetof(SolveStatsProto, _impl_.node_count_), 6>(),
899 {56, 6, 0, PROTOBUF_FIELD_OFFSET(SolveStatsProto, _impl_.node_count_)}},
900 }}, {{
901 65535, 65535
902 }}, {{
903 // .google.protobuf.Duration solve_time = 1;
904 {PROTOBUF_FIELD_OFFSET(SolveStatsProto, _impl_.solve_time_), _Internal::kHasBitsOffset + 0, 0,
905 (0 | ::_fl::kFcOptional | ::_fl::kMessage | ::_fl::kTvTable)},
906 // double best_primal_bound = 2 [deprecated = true];
907 {PROTOBUF_FIELD_OFFSET(SolveStatsProto, _impl_.best_primal_bound_), _Internal::kHasBitsOffset + 2, 0,
908 (0 | ::_fl::kFcOptional | ::_fl::kDouble)},
909 // double best_dual_bound = 3 [deprecated = true];
910 {PROTOBUF_FIELD_OFFSET(SolveStatsProto, _impl_.best_dual_bound_), _Internal::kHasBitsOffset + 3, 0,
911 (0 | ::_fl::kFcOptional | ::_fl::kDouble)},
912 // .operations_research.math_opt.ProblemStatusProto problem_status = 4 [deprecated = true];
913 {PROTOBUF_FIELD_OFFSET(SolveStatsProto, _impl_.problem_status_), _Internal::kHasBitsOffset + 1, 1,
914 (0 | ::_fl::kFcOptional | ::_fl::kMessage | ::_fl::kTvTable)},
915 // int64 simplex_iterations = 5;
916 {PROTOBUF_FIELD_OFFSET(SolveStatsProto, _impl_.simplex_iterations_), _Internal::kHasBitsOffset + 4, 0,
917 (0 | ::_fl::kFcOptional | ::_fl::kInt64)},
918 // int64 barrier_iterations = 6;
919 {PROTOBUF_FIELD_OFFSET(SolveStatsProto, _impl_.barrier_iterations_), _Internal::kHasBitsOffset + 5, 0,
920 (0 | ::_fl::kFcOptional | ::_fl::kInt64)},
921 // int64 node_count = 7;
922 {PROTOBUF_FIELD_OFFSET(SolveStatsProto, _impl_.node_count_), _Internal::kHasBitsOffset + 6, 0,
923 (0 | ::_fl::kFcOptional | ::_fl::kInt64)},
924 // int64 first_order_iterations = 8;
925 {PROTOBUF_FIELD_OFFSET(SolveStatsProto, _impl_.first_order_iterations_), _Internal::kHasBitsOffset + 7, 0,
926 (0 | ::_fl::kFcOptional | ::_fl::kInt64)},
927 }},
928 {{
929 {::_pbi::TcParser::GetTable<::google::protobuf::Duration>()},
930 {::_pbi::TcParser::GetTable<::operations_research::math_opt::ProblemStatusProto>()},
931 }},
932 {{
933 }},
934};
935PROTOBUF_NOINLINE void SolveStatsProto::Clear() {
936// @@protoc_insertion_point(message_clear_start:operations_research.math_opt.SolveStatsProto)
937 ::google::protobuf::internal::TSanWrite(&_impl_);
938 ::uint32_t cached_has_bits = 0;
939 // Prevent compiler warnings about cached_has_bits being unused
940 (void) cached_has_bits;
941
942 cached_has_bits = _impl_._has_bits_[0];
943 if ((cached_has_bits & 0x00000003u) != 0) {
944 if ((cached_has_bits & 0x00000001u) != 0) {
945 ABSL_DCHECK(_impl_.solve_time_ != nullptr);
946 _impl_.solve_time_->Clear();
947 }
948 if ((cached_has_bits & 0x00000002u) != 0) {
949 ABSL_DCHECK(_impl_.problem_status_ != nullptr);
950 _impl_.problem_status_->Clear();
951 }
952 }
953 if ((cached_has_bits & 0x000000fcu) != 0) {
954 ::memset(&_impl_.best_primal_bound_, 0, static_cast<::size_t>(
955 reinterpret_cast<char*>(&_impl_.first_order_iterations_) -
956 reinterpret_cast<char*>(&_impl_.best_primal_bound_)) + sizeof(_impl_.first_order_iterations_));
957 }
958 _impl_._has_bits_.Clear();
959 _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>();
960}
961
962#if defined(PROTOBUF_CUSTOM_VTABLE)
963::uint8_t* PROTOBUF_NONNULL SolveStatsProto::_InternalSerialize(
964 const ::google::protobuf::MessageLite& base, ::uint8_t* PROTOBUF_NONNULL target,
965 ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) {
966 const SolveStatsProto& this_ = static_cast<const SolveStatsProto&>(base);
967#else // PROTOBUF_CUSTOM_VTABLE
968::uint8_t* PROTOBUF_NONNULL SolveStatsProto::_InternalSerialize(
969 ::uint8_t* PROTOBUF_NONNULL target,
970 ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const {
971 const SolveStatsProto& this_ = *this;
972#endif // PROTOBUF_CUSTOM_VTABLE
973 // @@protoc_insertion_point(serialize_to_array_start:operations_research.math_opt.SolveStatsProto)
974 ::uint32_t cached_has_bits = 0;
975 (void)cached_has_bits;
976
977 cached_has_bits = this_._impl_._has_bits_[0];
978 // .google.protobuf.Duration solve_time = 1;
979 if ((cached_has_bits & 0x00000001u) != 0) {
980 target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage(
981 1, *this_._impl_.solve_time_, this_._impl_.solve_time_->GetCachedSize(), target,
982 stream);
983 }
984
985 // double best_primal_bound = 2 [deprecated = true];
986 if ((cached_has_bits & 0x00000004u) != 0) {
987 if (::absl::bit_cast<::uint64_t>(this_._internal_best_primal_bound()) != 0) {
988 target = stream->EnsureSpace(target);
989 target = ::_pbi::WireFormatLite::WriteDoubleToArray(
990 2, this_._internal_best_primal_bound(), target);
991 }
992 }
993
994 // double best_dual_bound = 3 [deprecated = true];
995 if ((cached_has_bits & 0x00000008u) != 0) {
996 if (::absl::bit_cast<::uint64_t>(this_._internal_best_dual_bound()) != 0) {
997 target = stream->EnsureSpace(target);
998 target = ::_pbi::WireFormatLite::WriteDoubleToArray(
999 3, this_._internal_best_dual_bound(), target);
1000 }
1001 }
1002
1003 // .operations_research.math_opt.ProblemStatusProto problem_status = 4 [deprecated = true];
1004 if ((cached_has_bits & 0x00000002u) != 0) {
1005 target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage(
1006 4, *this_._impl_.problem_status_, this_._impl_.problem_status_->GetCachedSize(), target,
1007 stream);
1008 }
1009
1010 // int64 simplex_iterations = 5;
1011 if ((cached_has_bits & 0x00000010u) != 0) {
1012 if (this_._internal_simplex_iterations() != 0) {
1013 target =
1014 ::google::protobuf::internal::WireFormatLite::WriteInt64ToArrayWithField<5>(
1015 stream, this_._internal_simplex_iterations(), target);
1016 }
1017 }
1018
1019 // int64 barrier_iterations = 6;
1020 if ((cached_has_bits & 0x00000020u) != 0) {
1021 if (this_._internal_barrier_iterations() != 0) {
1022 target =
1023 ::google::protobuf::internal::WireFormatLite::WriteInt64ToArrayWithField<6>(
1024 stream, this_._internal_barrier_iterations(), target);
1025 }
1026 }
1027
1028 // int64 node_count = 7;
1029 if ((cached_has_bits & 0x00000040u) != 0) {
1030 if (this_._internal_node_count() != 0) {
1031 target =
1032 ::google::protobuf::internal::WireFormatLite::WriteInt64ToArrayWithField<7>(
1033 stream, this_._internal_node_count(), target);
1034 }
1035 }
1036
1037 // int64 first_order_iterations = 8;
1038 if ((cached_has_bits & 0x00000080u) != 0) {
1039 if (this_._internal_first_order_iterations() != 0) {
1040 target =
1041 ::google::protobuf::internal::WireFormatLite::WriteInt64ToArrayWithField<8>(
1042 stream, this_._internal_first_order_iterations(), target);
1043 }
1044 }
1045
1046 if (ABSL_PREDICT_FALSE(this_._internal_metadata_.have_unknown_fields())) {
1047 target =
1048 ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray(
1049 this_._internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream);
1050 }
1051 // @@protoc_insertion_point(serialize_to_array_end:operations_research.math_opt.SolveStatsProto)
1052 return target;
1053}
1054
1055#if defined(PROTOBUF_CUSTOM_VTABLE)
1057 const SolveStatsProto& this_ = static_cast<const SolveStatsProto&>(base);
1058#else // PROTOBUF_CUSTOM_VTABLE
1059::size_t SolveStatsProto::ByteSizeLong() const {
1060 const SolveStatsProto& this_ = *this;
1061#endif // PROTOBUF_CUSTOM_VTABLE
1062 // @@protoc_insertion_point(message_byte_size_start:operations_research.math_opt.SolveStatsProto)
1063 ::size_t total_size = 0;
1064
1065 ::uint32_t cached_has_bits = 0;
1066 // Prevent compiler warnings about cached_has_bits being unused
1067 (void)cached_has_bits;
1068
1069 ::_pbi::Prefetch5LinesFrom7Lines(&this_);
1070 cached_has_bits = this_._impl_._has_bits_[0];
1071 if ((cached_has_bits & 0x000000ffu) != 0) {
1072 // .google.protobuf.Duration solve_time = 1;
1073 if ((cached_has_bits & 0x00000001u) != 0) {
1074 total_size += 1 +
1075 ::google::protobuf::internal::WireFormatLite::MessageSize(*this_._impl_.solve_time_);
1076 }
1077 // .operations_research.math_opt.ProblemStatusProto problem_status = 4 [deprecated = true];
1078 if ((cached_has_bits & 0x00000002u) != 0) {
1079 total_size += 1 +
1080 ::google::protobuf::internal::WireFormatLite::MessageSize(*this_._impl_.problem_status_);
1081 }
1082 // double best_primal_bound = 2 [deprecated = true];
1083 if ((cached_has_bits & 0x00000004u) != 0) {
1084 if (::absl::bit_cast<::uint64_t>(this_._internal_best_primal_bound()) != 0) {
1085 total_size += 9;
1086 }
1087 }
1088 // double best_dual_bound = 3 [deprecated = true];
1089 if ((cached_has_bits & 0x00000008u) != 0) {
1090 if (::absl::bit_cast<::uint64_t>(this_._internal_best_dual_bound()) != 0) {
1091 total_size += 9;
1092 }
1093 }
1094 // int64 simplex_iterations = 5;
1095 if ((cached_has_bits & 0x00000010u) != 0) {
1096 if (this_._internal_simplex_iterations() != 0) {
1097 total_size += ::_pbi::WireFormatLite::Int64SizePlusOne(
1098 this_._internal_simplex_iterations());
1099 }
1100 }
1101 // int64 barrier_iterations = 6;
1102 if ((cached_has_bits & 0x00000020u) != 0) {
1103 if (this_._internal_barrier_iterations() != 0) {
1104 total_size += ::_pbi::WireFormatLite::Int64SizePlusOne(
1105 this_._internal_barrier_iterations());
1106 }
1107 }
1108 // int64 node_count = 7;
1109 if ((cached_has_bits & 0x00000040u) != 0) {
1110 if (this_._internal_node_count() != 0) {
1111 total_size += ::_pbi::WireFormatLite::Int64SizePlusOne(
1112 this_._internal_node_count());
1113 }
1114 }
1115 // int64 first_order_iterations = 8;
1116 if ((cached_has_bits & 0x00000080u) != 0) {
1117 if (this_._internal_first_order_iterations() != 0) {
1118 total_size += ::_pbi::WireFormatLite::Int64SizePlusOne(
1119 this_._internal_first_order_iterations());
1120 }
1121 }
1122 }
1123 return this_.MaybeComputeUnknownFieldsSize(total_size,
1124 &this_._impl_._cached_size_);
1125}
1126
1127void SolveStatsProto::MergeImpl(::google::protobuf::MessageLite& to_msg, const ::google::protobuf::MessageLite& from_msg) {
1128 auto* const _this = static_cast<SolveStatsProto*>(&to_msg);
1129 auto& from = static_cast<const SolveStatsProto&>(from_msg);
1130 ::google::protobuf::Arena* arena = _this->GetArena();
1131 // @@protoc_insertion_point(class_specific_merge_from_start:operations_research.math_opt.SolveStatsProto)
1132 ABSL_DCHECK_NE(&from, _this);
1133 ::uint32_t cached_has_bits = 0;
1134 (void) cached_has_bits;
1135
1136 cached_has_bits = from._impl_._has_bits_[0];
1137 if ((cached_has_bits & 0x000000ffu) != 0) {
1138 if ((cached_has_bits & 0x00000001u) != 0) {
1139 ABSL_DCHECK(from._impl_.solve_time_ != nullptr);
1140 if (_this->_impl_.solve_time_ == nullptr) {
1141 _this->_impl_.solve_time_ = ::google::protobuf::Message::CopyConstruct(arena, *from._impl_.solve_time_);
1142 } else {
1143 _this->_impl_.solve_time_->MergeFrom(*from._impl_.solve_time_);
1144 }
1145 }
1146 if ((cached_has_bits & 0x00000002u) != 0) {
1147 ABSL_DCHECK(from._impl_.problem_status_ != nullptr);
1148 if (_this->_impl_.problem_status_ == nullptr) {
1149 _this->_impl_.problem_status_ = ::google::protobuf::Message::CopyConstruct(arena, *from._impl_.problem_status_);
1150 } else {
1151 _this->_impl_.problem_status_->MergeFrom(*from._impl_.problem_status_);
1152 }
1153 }
1154 if ((cached_has_bits & 0x00000004u) != 0) {
1155 if (::absl::bit_cast<::uint64_t>(from._internal_best_primal_bound()) != 0) {
1156 _this->_impl_.best_primal_bound_ = from._impl_.best_primal_bound_;
1157 }
1158 }
1159 if ((cached_has_bits & 0x00000008u) != 0) {
1160 if (::absl::bit_cast<::uint64_t>(from._internal_best_dual_bound()) != 0) {
1161 _this->_impl_.best_dual_bound_ = from._impl_.best_dual_bound_;
1162 }
1163 }
1164 if ((cached_has_bits & 0x00000010u) != 0) {
1165 if (from._internal_simplex_iterations() != 0) {
1166 _this->_impl_.simplex_iterations_ = from._impl_.simplex_iterations_;
1167 }
1168 }
1169 if ((cached_has_bits & 0x00000020u) != 0) {
1170 if (from._internal_barrier_iterations() != 0) {
1171 _this->_impl_.barrier_iterations_ = from._impl_.barrier_iterations_;
1172 }
1173 }
1174 if ((cached_has_bits & 0x00000040u) != 0) {
1175 if (from._internal_node_count() != 0) {
1176 _this->_impl_.node_count_ = from._impl_.node_count_;
1177 }
1178 }
1179 if ((cached_has_bits & 0x00000080u) != 0) {
1180 if (from._internal_first_order_iterations() != 0) {
1181 _this->_impl_.first_order_iterations_ = from._impl_.first_order_iterations_;
1182 }
1183 }
1184 }
1185 _this->_impl_._has_bits_[0] |= cached_has_bits;
1186 _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_);
1187}
1188
1189void SolveStatsProto::CopyFrom(const SolveStatsProto& from) {
1190// @@protoc_insertion_point(class_specific_copy_from_start:operations_research.math_opt.SolveStatsProto)
1191 if (&from == this) return;
1192 Clear();
1193 MergeFrom(from);
1194}
1195
1196
1197void SolveStatsProto::InternalSwap(SolveStatsProto* PROTOBUF_RESTRICT PROTOBUF_NONNULL other) {
1198 using ::std::swap;
1199 _internal_metadata_.InternalSwap(&other->_internal_metadata_);
1200 swap(_impl_._has_bits_[0], other->_impl_._has_bits_[0]);
1201 ::google::protobuf::internal::memswap<
1202 PROTOBUF_FIELD_OFFSET(SolveStatsProto, _impl_.first_order_iterations_)
1203 + sizeof(SolveStatsProto::_impl_.first_order_iterations_)
1204 - PROTOBUF_FIELD_OFFSET(SolveStatsProto, _impl_.solve_time_)>(
1205 reinterpret_cast<char*>(&_impl_.solve_time_),
1206 reinterpret_cast<char*>(&other->_impl_.solve_time_));
1207}
1208
1209::google::protobuf::Metadata SolveStatsProto::GetMetadata() const {
1210 return ::google::protobuf::Message::GetMetadataImpl(GetClassData()->full());
1212// ===================================================================
1213
1215 public:
1216 using HasBits =
1217 decltype(::std::declval<ObjectiveBoundsProto>()._impl_._has_bits_);
1218 static constexpr ::int32_t kHasBitsOffset =
1219 8 * PROTOBUF_FIELD_OFFSET(ObjectiveBoundsProto, _impl_._has_bits_);
1220};
1222ObjectiveBoundsProto::ObjectiveBoundsProto(::google::protobuf::Arena* PROTOBUF_NULLABLE arena)
1223#if defined(PROTOBUF_CUSTOM_VTABLE)
1224 : ::google::protobuf::Message(arena, ObjectiveBoundsProto_class_data_.base()) {
1225#else // PROTOBUF_CUSTOM_VTABLE
1226 : ::google::protobuf::Message(arena) {
1227#endif // PROTOBUF_CUSTOM_VTABLE
1228 SharedCtor(arena);
1229 // @@protoc_insertion_point(arena_constructor:operations_research.math_opt.ObjectiveBoundsProto)
1230}
1232 ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const ObjectiveBoundsProto& from)
1233#if defined(PROTOBUF_CUSTOM_VTABLE)
1234 : ::google::protobuf::Message(arena, ObjectiveBoundsProto_class_data_.base()),
1235#else // PROTOBUF_CUSTOM_VTABLE
1236 : ::google::protobuf::Message(arena),
1237#endif // PROTOBUF_CUSTOM_VTABLE
1238 _impl_(from._impl_) {
1239 _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(
1240 from._internal_metadata_);
1241}
1242PROTOBUF_NDEBUG_INLINE ObjectiveBoundsProto::Impl_::Impl_(
1243 ::google::protobuf::internal::InternalVisibility visibility,
1244 ::google::protobuf::Arena* PROTOBUF_NULLABLE arena)
1245 : _cached_size_{0} {}
1246
1247inline void ObjectiveBoundsProto::SharedCtor(::_pb::Arena* PROTOBUF_NULLABLE arena) {
1248 new (&_impl_) Impl_(internal_visibility(), arena);
1249 ::memset(reinterpret_cast<char *>(&_impl_) +
1250 offsetof(Impl_, primal_bound_),
1251 0,
1252 offsetof(Impl_, dual_bound_) -
1253 offsetof(Impl_, primal_bound_) +
1254 sizeof(Impl_::dual_bound_));
1255}
1257 // @@protoc_insertion_point(destructor:operations_research.math_opt.ObjectiveBoundsProto)
1258 SharedDtor(*this);
1260inline void ObjectiveBoundsProto::SharedDtor(MessageLite& self) {
1261 ObjectiveBoundsProto& this_ = static_cast<ObjectiveBoundsProto&>(self);
1262 this_._internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>();
1263 ABSL_DCHECK(this_.GetArena() == nullptr);
1264 this_._impl_.~Impl_();
1265}
1266
1267inline void* PROTOBUF_NONNULL ObjectiveBoundsProto::PlacementNew_(
1268 const void* PROTOBUF_NONNULL, void* PROTOBUF_NONNULL mem,
1269 ::google::protobuf::Arena* PROTOBUF_NULLABLE arena) {
1270 return ::new (mem) ObjectiveBoundsProto(arena);
1271}
1273 return ::google::protobuf::internal::MessageCreator::ZeroInit(sizeof(ObjectiveBoundsProto),
1274 alignof(ObjectiveBoundsProto));
1277 return ::google::protobuf::internal::ClassDataFull{
1278 ::google::protobuf::internal::ClassData{
1280 &_table_.header,
1281 nullptr, // OnDemandRegisterArenaDtor
1282 nullptr, // IsInitialized
1283 &ObjectiveBoundsProto::MergeImpl,
1284 ::google::protobuf::Message::GetNewImpl<ObjectiveBoundsProto>(),
1285#if defined(PROTOBUF_CUSTOM_VTABLE)
1286 &ObjectiveBoundsProto::SharedDtor,
1287 ::google::protobuf::Message::GetClearImpl<ObjectiveBoundsProto>(), &ObjectiveBoundsProto::ByteSizeLong,
1289#endif // PROTOBUF_CUSTOM_VTABLE
1290 PROTOBUF_FIELD_OFFSET(ObjectiveBoundsProto, _impl_._cached_size_),
1291 false,
1292 },
1293 &ObjectiveBoundsProto::kDescriptorMethods,
1295 nullptr, // tracker
1296 };
1297}
1298
1299PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 const
1300 ::google::protobuf::internal::ClassDataFull ObjectiveBoundsProto_class_data_ =
1302
1303PROTOBUF_ATTRIBUTE_WEAK const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL
1305 ::google::protobuf::internal::PrefetchToLocalCache(&ObjectiveBoundsProto_class_data_);
1306 ::google::protobuf::internal::PrefetchToLocalCache(ObjectiveBoundsProto_class_data_.tc_table);
1308}
1309PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1
1310const ::_pbi::TcParseTable<1, 2, 0, 0, 2>
1311ObjectiveBoundsProto::_table_ = {
1312 {
1313 PROTOBUF_FIELD_OFFSET(ObjectiveBoundsProto, _impl_._has_bits_),
1314 0, // no _extensions_
1315 3, 8, // max_field_number, fast_idx_mask
1316 offsetof(decltype(_table_), field_lookup_table),
1317 4294967289, // skipmap
1318 offsetof(decltype(_table_), field_entries),
1319 2, // num_field_entries
1320 0, // num_aux_entries
1321 offsetof(decltype(_table_), field_names), // no aux_entries
1323 nullptr, // post_loop_handler
1324 ::_pbi::TcParser::GenericFallback, // fallback
1325 #ifdef PROTOBUF_PREFETCH_PARSE_TABLE
1326 ::_pbi::TcParser::GetTable<::operations_research::math_opt::ObjectiveBoundsProto>(), // to_prefetch
1327 #endif // PROTOBUF_PREFETCH_PARSE_TABLE
1328 }, {{
1329 // double primal_bound = 2;
1330 {::_pbi::TcParser::FastF64S1,
1331 {17, 0, 0, PROTOBUF_FIELD_OFFSET(ObjectiveBoundsProto, _impl_.primal_bound_)}},
1332 // double dual_bound = 3;
1333 {::_pbi::TcParser::FastF64S1,
1334 {25, 1, 0, PROTOBUF_FIELD_OFFSET(ObjectiveBoundsProto, _impl_.dual_bound_)}},
1335 }}, {{
1336 65535, 65535
1337 }}, {{
1338 // double primal_bound = 2;
1339 {PROTOBUF_FIELD_OFFSET(ObjectiveBoundsProto, _impl_.primal_bound_), _Internal::kHasBitsOffset + 0, 0,
1340 (0 | ::_fl::kFcOptional | ::_fl::kDouble)},
1341 // double dual_bound = 3;
1342 {PROTOBUF_FIELD_OFFSET(ObjectiveBoundsProto, _impl_.dual_bound_), _Internal::kHasBitsOffset + 1, 0,
1343 (0 | ::_fl::kFcOptional | ::_fl::kDouble)},
1344 }},
1345 // no aux_entries
1346 {{
1347 }},
1348};
1349PROTOBUF_NOINLINE void ObjectiveBoundsProto::Clear() {
1350// @@protoc_insertion_point(message_clear_start:operations_research.math_opt.ObjectiveBoundsProto)
1351 ::google::protobuf::internal::TSanWrite(&_impl_);
1352 ::uint32_t cached_has_bits = 0;
1353 // Prevent compiler warnings about cached_has_bits being unused
1354 (void) cached_has_bits;
1355
1356 cached_has_bits = _impl_._has_bits_[0];
1357 if ((cached_has_bits & 0x00000003u) != 0) {
1358 ::memset(&_impl_.primal_bound_, 0, static_cast<::size_t>(
1359 reinterpret_cast<char*>(&_impl_.dual_bound_) -
1360 reinterpret_cast<char*>(&_impl_.primal_bound_)) + sizeof(_impl_.dual_bound_));
1361 }
1362 _impl_._has_bits_.Clear();
1363 _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>();
1364}
1365
1366#if defined(PROTOBUF_CUSTOM_VTABLE)
1367::uint8_t* PROTOBUF_NONNULL ObjectiveBoundsProto::_InternalSerialize(
1368 const ::google::protobuf::MessageLite& base, ::uint8_t* PROTOBUF_NONNULL target,
1369 ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) {
1370 const ObjectiveBoundsProto& this_ = static_cast<const ObjectiveBoundsProto&>(base);
1371#else // PROTOBUF_CUSTOM_VTABLE
1372::uint8_t* PROTOBUF_NONNULL ObjectiveBoundsProto::_InternalSerialize(
1373 ::uint8_t* PROTOBUF_NONNULL target,
1374 ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const {
1375 const ObjectiveBoundsProto& this_ = *this;
1376#endif // PROTOBUF_CUSTOM_VTABLE
1377 // @@protoc_insertion_point(serialize_to_array_start:operations_research.math_opt.ObjectiveBoundsProto)
1378 ::uint32_t cached_has_bits = 0;
1379 (void)cached_has_bits;
1380
1381 // double primal_bound = 2;
1382 if ((this_._impl_._has_bits_[0] & 0x00000001u) != 0) {
1383 if (::absl::bit_cast<::uint64_t>(this_._internal_primal_bound()) != 0) {
1384 target = stream->EnsureSpace(target);
1385 target = ::_pbi::WireFormatLite::WriteDoubleToArray(
1386 2, this_._internal_primal_bound(), target);
1387 }
1388 }
1389
1390 // double dual_bound = 3;
1391 if ((this_._impl_._has_bits_[0] & 0x00000002u) != 0) {
1392 if (::absl::bit_cast<::uint64_t>(this_._internal_dual_bound()) != 0) {
1393 target = stream->EnsureSpace(target);
1394 target = ::_pbi::WireFormatLite::WriteDoubleToArray(
1395 3, this_._internal_dual_bound(), target);
1396 }
1397 }
1398
1399 if (ABSL_PREDICT_FALSE(this_._internal_metadata_.have_unknown_fields())) {
1400 target =
1401 ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray(
1402 this_._internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream);
1403 }
1404 // @@protoc_insertion_point(serialize_to_array_end:operations_research.math_opt.ObjectiveBoundsProto)
1405 return target;
1406}
1407
1408#if defined(PROTOBUF_CUSTOM_VTABLE)
1409::size_t ObjectiveBoundsProto::ByteSizeLong(const MessageLite& base) {
1410 const ObjectiveBoundsProto& this_ = static_cast<const ObjectiveBoundsProto&>(base);
1411#else // PROTOBUF_CUSTOM_VTABLE
1412::size_t ObjectiveBoundsProto::ByteSizeLong() const {
1413 const ObjectiveBoundsProto& this_ = *this;
1414#endif // PROTOBUF_CUSTOM_VTABLE
1415 // @@protoc_insertion_point(message_byte_size_start:operations_research.math_opt.ObjectiveBoundsProto)
1416 ::size_t total_size = 0;
1417
1418 ::uint32_t cached_has_bits = 0;
1419 // Prevent compiler warnings about cached_has_bits being unused
1420 (void)cached_has_bits;
1421
1422 ::_pbi::Prefetch5LinesFrom7Lines(&this_);
1423 cached_has_bits = this_._impl_._has_bits_[0];
1424 if ((cached_has_bits & 0x00000003u) != 0) {
1425 // double primal_bound = 2;
1426 if ((cached_has_bits & 0x00000001u) != 0) {
1427 if (::absl::bit_cast<::uint64_t>(this_._internal_primal_bound()) != 0) {
1428 total_size += 9;
1429 }
1430 }
1431 // double dual_bound = 3;
1432 if ((cached_has_bits & 0x00000002u) != 0) {
1433 if (::absl::bit_cast<::uint64_t>(this_._internal_dual_bound()) != 0) {
1434 total_size += 9;
1435 }
1436 }
1437 }
1438 return this_.MaybeComputeUnknownFieldsSize(total_size,
1439 &this_._impl_._cached_size_);
1440}
1441
1442void ObjectiveBoundsProto::MergeImpl(::google::protobuf::MessageLite& to_msg, const ::google::protobuf::MessageLite& from_msg) {
1443 auto* const _this = static_cast<ObjectiveBoundsProto*>(&to_msg);
1444 auto& from = static_cast<const ObjectiveBoundsProto&>(from_msg);
1445 // @@protoc_insertion_point(class_specific_merge_from_start:operations_research.math_opt.ObjectiveBoundsProto)
1446 ABSL_DCHECK_NE(&from, _this);
1447 ::uint32_t cached_has_bits = 0;
1448 (void) cached_has_bits;
1449
1450 cached_has_bits = from._impl_._has_bits_[0];
1451 if ((cached_has_bits & 0x00000003u) != 0) {
1452 if ((cached_has_bits & 0x00000001u) != 0) {
1453 if (::absl::bit_cast<::uint64_t>(from._internal_primal_bound()) != 0) {
1454 _this->_impl_.primal_bound_ = from._impl_.primal_bound_;
1455 }
1456 }
1457 if ((cached_has_bits & 0x00000002u) != 0) {
1458 if (::absl::bit_cast<::uint64_t>(from._internal_dual_bound()) != 0) {
1459 _this->_impl_.dual_bound_ = from._impl_.dual_bound_;
1460 }
1461 }
1462 }
1463 _this->_impl_._has_bits_[0] |= cached_has_bits;
1464 _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_);
1465}
1466
1468// @@protoc_insertion_point(class_specific_copy_from_start:operations_research.math_opt.ObjectiveBoundsProto)
1469 if (&from == this) return;
1471 MergeFrom(from);
1472}
1473
1474
1475void ObjectiveBoundsProto::InternalSwap(ObjectiveBoundsProto* PROTOBUF_RESTRICT PROTOBUF_NONNULL other) {
1476 using ::std::swap;
1477 _internal_metadata_.InternalSwap(&other->_internal_metadata_);
1478 swap(_impl_._has_bits_[0], other->_impl_._has_bits_[0]);
1479 ::google::protobuf::internal::memswap<
1480 PROTOBUF_FIELD_OFFSET(ObjectiveBoundsProto, _impl_.dual_bound_)
1481 + sizeof(ObjectiveBoundsProto::_impl_.dual_bound_)
1482 - PROTOBUF_FIELD_OFFSET(ObjectiveBoundsProto, _impl_.primal_bound_)>(
1483 reinterpret_cast<char*>(&_impl_.primal_bound_),
1484 reinterpret_cast<char*>(&other->_impl_.primal_bound_));
1485}
1486
1487::google::protobuf::Metadata ObjectiveBoundsProto::GetMetadata() const {
1488 return ::google::protobuf::Message::GetMetadataImpl(GetClassData()->full());
1489}
1490// ===================================================================
1491
1493 public:
1494 using HasBits =
1495 decltype(::std::declval<TerminationProto>()._impl_._has_bits_);
1496 static constexpr ::int32_t kHasBitsOffset =
1497 8 * PROTOBUF_FIELD_OFFSET(TerminationProto, _impl_._has_bits_);
1499
1500TerminationProto::TerminationProto(::google::protobuf::Arena* PROTOBUF_NULLABLE arena)
1501#if defined(PROTOBUF_CUSTOM_VTABLE)
1502 : ::google::protobuf::Message(arena, TerminationProto_class_data_.base()) {
1503#else // PROTOBUF_CUSTOM_VTABLE
1504 : ::google::protobuf::Message(arena) {
1505#endif // PROTOBUF_CUSTOM_VTABLE
1506 SharedCtor(arena);
1507 // @@protoc_insertion_point(arena_constructor:operations_research.math_opt.TerminationProto)
1508}
1509PROTOBUF_NDEBUG_INLINE TerminationProto::Impl_::Impl_(
1510 ::google::protobuf::internal::InternalVisibility visibility,
1511 ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const Impl_& from,
1512 const ::operations_research::math_opt::TerminationProto& from_msg)
1513 : _has_bits_{from._has_bits_},
1514 _cached_size_{0},
1515 detail_(arena, from.detail_) {}
1516
1518 ::google::protobuf::Arena* PROTOBUF_NULLABLE arena,
1519 const TerminationProto& from)
1520#if defined(PROTOBUF_CUSTOM_VTABLE)
1521 : ::google::protobuf::Message(arena, TerminationProto_class_data_.base()) {
1522#else // PROTOBUF_CUSTOM_VTABLE
1523 : ::google::protobuf::Message(arena) {
1524#endif // PROTOBUF_CUSTOM_VTABLE
1525 TerminationProto* const _this = this;
1526 (void)_this;
1527 _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(
1528 from._internal_metadata_);
1529 new (&_impl_) Impl_(internal_visibility(), arena, from._impl_, from);
1530 ::uint32_t cached_has_bits = _impl_._has_bits_[0];
1531 _impl_.problem_status_ = ((cached_has_bits & 0x00000002u) != 0)
1532 ? ::google::protobuf::Message::CopyConstruct(arena, *from._impl_.problem_status_)
1533 : nullptr;
1534 _impl_.objective_bounds_ = ((cached_has_bits & 0x00000004u) != 0)
1535 ? ::google::protobuf::Message::CopyConstruct(arena, *from._impl_.objective_bounds_)
1536 : nullptr;
1537 ::memcpy(reinterpret_cast<char *>(&_impl_) +
1538 offsetof(Impl_, reason_),
1539 reinterpret_cast<const char *>(&from._impl_) +
1540 offsetof(Impl_, reason_),
1541 offsetof(Impl_, limit_) -
1542 offsetof(Impl_, reason_) +
1543 sizeof(Impl_::limit_));
1544
1545 // @@protoc_insertion_point(copy_constructor:operations_research.math_opt.TerminationProto)
1546}
1547PROTOBUF_NDEBUG_INLINE TerminationProto::Impl_::Impl_(
1548 ::google::protobuf::internal::InternalVisibility visibility,
1549 ::google::protobuf::Arena* PROTOBUF_NULLABLE arena)
1550 : _cached_size_{0},
1551 detail_(arena) {}
1552
1553inline void TerminationProto::SharedCtor(::_pb::Arena* PROTOBUF_NULLABLE arena) {
1554 new (&_impl_) Impl_(internal_visibility(), arena);
1555 ::memset(reinterpret_cast<char *>(&_impl_) +
1556 offsetof(Impl_, problem_status_),
1557 0,
1558 offsetof(Impl_, limit_) -
1559 offsetof(Impl_, problem_status_) +
1560 sizeof(Impl_::limit_));
1561}
1563 // @@protoc_insertion_point(destructor:operations_research.math_opt.TerminationProto)
1564 SharedDtor(*this);
1565}
1566inline void TerminationProto::SharedDtor(MessageLite& self) {
1567 TerminationProto& this_ = static_cast<TerminationProto&>(self);
1568 this_._internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>();
1569 ABSL_DCHECK(this_.GetArena() == nullptr);
1570 this_._impl_.detail_.Destroy();
1571 delete this_._impl_.problem_status_;
1572 delete this_._impl_.objective_bounds_;
1573 this_._impl_.~Impl_();
1574}
1575
1576inline void* PROTOBUF_NONNULL TerminationProto::PlacementNew_(
1577 const void* PROTOBUF_NONNULL, void* PROTOBUF_NONNULL mem,
1578 ::google::protobuf::Arena* PROTOBUF_NULLABLE arena) {
1579 return ::new (mem) TerminationProto(arena);
1581constexpr auto TerminationProto::InternalNewImpl_() {
1582 return ::google::protobuf::internal::MessageCreator::CopyInit(sizeof(TerminationProto),
1583 alignof(TerminationProto));
1584}
1586 return ::google::protobuf::internal::ClassDataFull{
1587 ::google::protobuf::internal::ClassData{
1589 &_table_.header,
1590 nullptr, // OnDemandRegisterArenaDtor
1591 nullptr, // IsInitialized
1592 &TerminationProto::MergeImpl,
1593 ::google::protobuf::Message::GetNewImpl<TerminationProto>(),
1594#if defined(PROTOBUF_CUSTOM_VTABLE)
1595 &TerminationProto::SharedDtor,
1596 ::google::protobuf::Message::GetClearImpl<TerminationProto>(), &TerminationProto::ByteSizeLong,
1598#endif // PROTOBUF_CUSTOM_VTABLE
1599 PROTOBUF_FIELD_OFFSET(TerminationProto, _impl_._cached_size_),
1600 false,
1601 },
1602 &TerminationProto::kDescriptorMethods,
1604 nullptr, // tracker
1605 };
1606}
1607
1608PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 const
1609 ::google::protobuf::internal::ClassDataFull TerminationProto_class_data_ =
1611
1612PROTOBUF_ATTRIBUTE_WEAK const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL
1614 ::google::protobuf::internal::PrefetchToLocalCache(&TerminationProto_class_data_);
1615 ::google::protobuf::internal::PrefetchToLocalCache(TerminationProto_class_data_.tc_table);
1616 return TerminationProto_class_data_.base();
1618PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1
1619const ::_pbi::TcParseTable<3, 5, 2, 60, 2>
1620TerminationProto::_table_ = {
1621 {
1622 PROTOBUF_FIELD_OFFSET(TerminationProto, _impl_._has_bits_),
1623 0, // no _extensions_
1624 5, 56, // max_field_number, fast_idx_mask
1625 offsetof(decltype(_table_), field_lookup_table),
1626 4294967264, // skipmap
1627 offsetof(decltype(_table_), field_entries),
1628 5, // num_field_entries
1629 2, // num_aux_entries
1630 offsetof(decltype(_table_), aux_entries),
1632 nullptr, // post_loop_handler
1633 ::_pbi::TcParser::GenericFallback, // fallback
1634 #ifdef PROTOBUF_PREFETCH_PARSE_TABLE
1635 ::_pbi::TcParser::GetTable<::operations_research::math_opt::TerminationProto>(), // to_prefetch
1636 #endif // PROTOBUF_PREFETCH_PARSE_TABLE
1637 }, {{
1638 {::_pbi::TcParser::MiniParse, {}},
1639 // .operations_research.math_opt.TerminationReasonProto reason = 1;
1640 {::_pbi::TcParser::SingularVarintNoZag1<::uint32_t, offsetof(TerminationProto, _impl_.reason_), 3>(),
1641 {8, 3, 0, PROTOBUF_FIELD_OFFSET(TerminationProto, _impl_.reason_)}},
1642 // .operations_research.math_opt.LimitProto limit = 2;
1643 {::_pbi::TcParser::SingularVarintNoZag1<::uint32_t, offsetof(TerminationProto, _impl_.limit_), 4>(),
1644 {16, 4, 0, PROTOBUF_FIELD_OFFSET(TerminationProto, _impl_.limit_)}},
1645 // string detail = 3;
1646 {::_pbi::TcParser::FastUS1,
1647 {26, 0, 0, PROTOBUF_FIELD_OFFSET(TerminationProto, _impl_.detail_)}},
1648 // .operations_research.math_opt.ProblemStatusProto problem_status = 4;
1649 {::_pbi::TcParser::FastMtS1,
1650 {34, 1, 0, PROTOBUF_FIELD_OFFSET(TerminationProto, _impl_.problem_status_)}},
1651 // .operations_research.math_opt.ObjectiveBoundsProto objective_bounds = 5;
1652 {::_pbi::TcParser::FastMtS1,
1653 {42, 2, 1, PROTOBUF_FIELD_OFFSET(TerminationProto, _impl_.objective_bounds_)}},
1654 {::_pbi::TcParser::MiniParse, {}},
1655 {::_pbi::TcParser::MiniParse, {}},
1656 }}, {{
1657 65535, 65535
1658 }}, {{
1659 // .operations_research.math_opt.TerminationReasonProto reason = 1;
1660 {PROTOBUF_FIELD_OFFSET(TerminationProto, _impl_.reason_), _Internal::kHasBitsOffset + 3, 0,
1661 (0 | ::_fl::kFcOptional | ::_fl::kOpenEnum)},
1662 // .operations_research.math_opt.LimitProto limit = 2;
1663 {PROTOBUF_FIELD_OFFSET(TerminationProto, _impl_.limit_), _Internal::kHasBitsOffset + 4, 0,
1664 (0 | ::_fl::kFcOptional | ::_fl::kOpenEnum)},
1665 // string detail = 3;
1666 {PROTOBUF_FIELD_OFFSET(TerminationProto, _impl_.detail_), _Internal::kHasBitsOffset + 0, 0,
1667 (0 | ::_fl::kFcOptional | ::_fl::kUtf8String | ::_fl::kRepAString)},
1668 // .operations_research.math_opt.ProblemStatusProto problem_status = 4;
1669 {PROTOBUF_FIELD_OFFSET(TerminationProto, _impl_.problem_status_), _Internal::kHasBitsOffset + 1, 0,
1670 (0 | ::_fl::kFcOptional | ::_fl::kMessage | ::_fl::kTvTable)},
1671 // .operations_research.math_opt.ObjectiveBoundsProto objective_bounds = 5;
1672 {PROTOBUF_FIELD_OFFSET(TerminationProto, _impl_.objective_bounds_), _Internal::kHasBitsOffset + 2, 1,
1673 (0 | ::_fl::kFcOptional | ::_fl::kMessage | ::_fl::kTvTable)},
1674 }},
1675 {{
1676 {::_pbi::TcParser::GetTable<::operations_research::math_opt::ProblemStatusProto>()},
1677 {::_pbi::TcParser::GetTable<::operations_research::math_opt::ObjectiveBoundsProto>()},
1678 }},
1679 {{
1680 "\55\0\0\6\0\0\0\0"
1681 "operations_research.math_opt.TerminationProto"
1682 "detail"
1683 }},
1684};
1685PROTOBUF_NOINLINE void TerminationProto::Clear() {
1686// @@protoc_insertion_point(message_clear_start:operations_research.math_opt.TerminationProto)
1687 ::google::protobuf::internal::TSanWrite(&_impl_);
1688 ::uint32_t cached_has_bits = 0;
1689 // Prevent compiler warnings about cached_has_bits being unused
1690 (void) cached_has_bits;
1691
1692 cached_has_bits = _impl_._has_bits_[0];
1693 if ((cached_has_bits & 0x00000007u) != 0) {
1694 if ((cached_has_bits & 0x00000001u) != 0) {
1695 _impl_.detail_.ClearNonDefaultToEmpty();
1696 }
1697 if ((cached_has_bits & 0x00000002u) != 0) {
1698 ABSL_DCHECK(_impl_.problem_status_ != nullptr);
1699 _impl_.problem_status_->Clear();
1700 }
1701 if ((cached_has_bits & 0x00000004u) != 0) {
1702 ABSL_DCHECK(_impl_.objective_bounds_ != nullptr);
1703 _impl_.objective_bounds_->Clear();
1704 }
1705 }
1706 if ((cached_has_bits & 0x00000018u) != 0) {
1707 ::memset(&_impl_.reason_, 0, static_cast<::size_t>(
1708 reinterpret_cast<char*>(&_impl_.limit_) -
1709 reinterpret_cast<char*>(&_impl_.reason_)) + sizeof(_impl_.limit_));
1710 }
1711 _impl_._has_bits_.Clear();
1712 _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>();
1713}
1714
1715#if defined(PROTOBUF_CUSTOM_VTABLE)
1716::uint8_t* PROTOBUF_NONNULL TerminationProto::_InternalSerialize(
1717 const ::google::protobuf::MessageLite& base, ::uint8_t* PROTOBUF_NONNULL target,
1718 ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) {
1719 const TerminationProto& this_ = static_cast<const TerminationProto&>(base);
1720#else // PROTOBUF_CUSTOM_VTABLE
1721::uint8_t* PROTOBUF_NONNULL TerminationProto::_InternalSerialize(
1722 ::uint8_t* PROTOBUF_NONNULL target,
1723 ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const {
1724 const TerminationProto& this_ = *this;
1725#endif // PROTOBUF_CUSTOM_VTABLE
1726 // @@protoc_insertion_point(serialize_to_array_start:operations_research.math_opt.TerminationProto)
1727 ::uint32_t cached_has_bits = 0;
1728 (void)cached_has_bits;
1729
1730 // .operations_research.math_opt.TerminationReasonProto reason = 1;
1731 if ((this_._impl_._has_bits_[0] & 0x00000008u) != 0) {
1732 if (this_._internal_reason() != 0) {
1733 target = stream->EnsureSpace(target);
1734 target = ::_pbi::WireFormatLite::WriteEnumToArray(
1735 1, this_._internal_reason(), target);
1736 }
1737 }
1738
1739 // .operations_research.math_opt.LimitProto limit = 2;
1740 if ((this_._impl_._has_bits_[0] & 0x00000010u) != 0) {
1741 if (this_._internal_limit() != 0) {
1742 target = stream->EnsureSpace(target);
1743 target = ::_pbi::WireFormatLite::WriteEnumToArray(
1744 2, this_._internal_limit(), target);
1745 }
1746 }
1747
1748 // string detail = 3;
1749 if ((this_._impl_._has_bits_[0] & 0x00000001u) != 0) {
1750 if (!this_._internal_detail().empty()) {
1751 const ::std::string& _s = this_._internal_detail();
1752 ::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
1753 _s.data(), static_cast<int>(_s.length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "operations_research.math_opt.TerminationProto.detail");
1754 target = stream->WriteStringMaybeAliased(3, _s, target);
1755 }
1756 }
1757
1758 cached_has_bits = this_._impl_._has_bits_[0];
1759 // .operations_research.math_opt.ProblemStatusProto problem_status = 4;
1760 if ((cached_has_bits & 0x00000002u) != 0) {
1761 target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage(
1762 4, *this_._impl_.problem_status_, this_._impl_.problem_status_->GetCachedSize(), target,
1763 stream);
1764 }
1765
1766 // .operations_research.math_opt.ObjectiveBoundsProto objective_bounds = 5;
1767 if ((cached_has_bits & 0x00000004u) != 0) {
1768 target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage(
1769 5, *this_._impl_.objective_bounds_, this_._impl_.objective_bounds_->GetCachedSize(), target,
1770 stream);
1771 }
1772
1773 if (ABSL_PREDICT_FALSE(this_._internal_metadata_.have_unknown_fields())) {
1774 target =
1775 ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray(
1776 this_._internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream);
1777 }
1778 // @@protoc_insertion_point(serialize_to_array_end:operations_research.math_opt.TerminationProto)
1779 return target;
1780}
1781
1782#if defined(PROTOBUF_CUSTOM_VTABLE)
1783::size_t TerminationProto::ByteSizeLong(const MessageLite& base) {
1784 const TerminationProto& this_ = static_cast<const TerminationProto&>(base);
1785#else // PROTOBUF_CUSTOM_VTABLE
1786::size_t TerminationProto::ByteSizeLong() const {
1787 const TerminationProto& this_ = *this;
1788#endif // PROTOBUF_CUSTOM_VTABLE
1789 // @@protoc_insertion_point(message_byte_size_start:operations_research.math_opt.TerminationProto)
1790 ::size_t total_size = 0;
1791
1792 ::uint32_t cached_has_bits = 0;
1793 // Prevent compiler warnings about cached_has_bits being unused
1794 (void)cached_has_bits;
1795
1796 ::_pbi::Prefetch5LinesFrom7Lines(&this_);
1797 cached_has_bits = this_._impl_._has_bits_[0];
1798 if ((cached_has_bits & 0x0000001fu) != 0) {
1799 // string detail = 3;
1800 if ((cached_has_bits & 0x00000001u) != 0) {
1801 if (!this_._internal_detail().empty()) {
1802 total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize(
1803 this_._internal_detail());
1804 }
1805 }
1806 // .operations_research.math_opt.ProblemStatusProto problem_status = 4;
1807 if ((cached_has_bits & 0x00000002u) != 0) {
1808 total_size += 1 +
1809 ::google::protobuf::internal::WireFormatLite::MessageSize(*this_._impl_.problem_status_);
1810 }
1811 // .operations_research.math_opt.ObjectiveBoundsProto objective_bounds = 5;
1812 if ((cached_has_bits & 0x00000004u) != 0) {
1813 total_size += 1 +
1814 ::google::protobuf::internal::WireFormatLite::MessageSize(*this_._impl_.objective_bounds_);
1815 }
1816 // .operations_research.math_opt.TerminationReasonProto reason = 1;
1817 if ((cached_has_bits & 0x00000008u) != 0) {
1818 if (this_._internal_reason() != 0) {
1819 total_size += 1 +
1820 ::_pbi::WireFormatLite::EnumSize(this_._internal_reason());
1821 }
1822 }
1823 // .operations_research.math_opt.LimitProto limit = 2;
1824 if ((cached_has_bits & 0x00000010u) != 0) {
1825 if (this_._internal_limit() != 0) {
1826 total_size += 1 +
1827 ::_pbi::WireFormatLite::EnumSize(this_._internal_limit());
1828 }
1829 }
1830 }
1831 return this_.MaybeComputeUnknownFieldsSize(total_size,
1832 &this_._impl_._cached_size_);
1833}
1834
1835void TerminationProto::MergeImpl(::google::protobuf::MessageLite& to_msg, const ::google::protobuf::MessageLite& from_msg) {
1836 auto* const _this = static_cast<TerminationProto*>(&to_msg);
1837 auto& from = static_cast<const TerminationProto&>(from_msg);
1838 ::google::protobuf::Arena* arena = _this->GetArena();
1839 // @@protoc_insertion_point(class_specific_merge_from_start:operations_research.math_opt.TerminationProto)
1840 ABSL_DCHECK_NE(&from, _this);
1841 ::uint32_t cached_has_bits = 0;
1842 (void) cached_has_bits;
1843
1844 cached_has_bits = from._impl_._has_bits_[0];
1845 if ((cached_has_bits & 0x0000001fu) != 0) {
1846 if ((cached_has_bits & 0x00000001u) != 0) {
1847 if (!from._internal_detail().empty()) {
1848 _this->_internal_set_detail(from._internal_detail());
1849 } else {
1850 if (_this->_impl_.detail_.IsDefault()) {
1851 _this->_internal_set_detail("");
1852 }
1853 }
1854 }
1855 if ((cached_has_bits & 0x00000002u) != 0) {
1856 ABSL_DCHECK(from._impl_.problem_status_ != nullptr);
1857 if (_this->_impl_.problem_status_ == nullptr) {
1858 _this->_impl_.problem_status_ = ::google::protobuf::Message::CopyConstruct(arena, *from._impl_.problem_status_);
1859 } else {
1860 _this->_impl_.problem_status_->MergeFrom(*from._impl_.problem_status_);
1861 }
1862 }
1863 if ((cached_has_bits & 0x00000004u) != 0) {
1864 ABSL_DCHECK(from._impl_.objective_bounds_ != nullptr);
1865 if (_this->_impl_.objective_bounds_ == nullptr) {
1866 _this->_impl_.objective_bounds_ = ::google::protobuf::Message::CopyConstruct(arena, *from._impl_.objective_bounds_);
1867 } else {
1868 _this->_impl_.objective_bounds_->MergeFrom(*from._impl_.objective_bounds_);
1869 }
1870 }
1871 if ((cached_has_bits & 0x00000008u) != 0) {
1872 if (from._internal_reason() != 0) {
1873 _this->_impl_.reason_ = from._impl_.reason_;
1874 }
1875 }
1876 if ((cached_has_bits & 0x00000010u) != 0) {
1877 if (from._internal_limit() != 0) {
1878 _this->_impl_.limit_ = from._impl_.limit_;
1879 }
1880 }
1881 }
1882 _this->_impl_._has_bits_[0] |= cached_has_bits;
1883 _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_);
1884}
1885
1887// @@protoc_insertion_point(class_specific_copy_from_start:operations_research.math_opt.TerminationProto)
1888 if (&from == this) return;
1889 Clear();
1891}
1892
1893
1894void TerminationProto::InternalSwap(TerminationProto* PROTOBUF_RESTRICT PROTOBUF_NONNULL other) {
1895 using ::std::swap;
1896 auto* arena = GetArena();
1897 ABSL_DCHECK_EQ(arena, other->GetArena());
1898 _internal_metadata_.InternalSwap(&other->_internal_metadata_);
1899 swap(_impl_._has_bits_[0], other->_impl_._has_bits_[0]);
1900 ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.detail_, &other->_impl_.detail_, arena);
1901 ::google::protobuf::internal::memswap<
1902 PROTOBUF_FIELD_OFFSET(TerminationProto, _impl_.limit_)
1903 + sizeof(TerminationProto::_impl_.limit_)
1904 - PROTOBUF_FIELD_OFFSET(TerminationProto, _impl_.problem_status_)>(
1905 reinterpret_cast<char*>(&_impl_.problem_status_),
1906 reinterpret_cast<char*>(&other->_impl_.problem_status_));
1907}
1908
1909::google::protobuf::Metadata TerminationProto::GetMetadata() const {
1910 return ::google::protobuf::Message::GetMetadataImpl(GetClassData()->full());
1911}
1912// ===================================================================
1916 using HasBits =
1917 decltype(::std::declval<SolveResultProto_PdlpOutput>()._impl_._has_bits_);
1918 static constexpr ::int32_t kHasBitsOffset =
1919 8 * PROTOBUF_FIELD_OFFSET(SolveResultProto_PdlpOutput, _impl_._has_bits_);
1920};
1923 ::google::protobuf::internal::TSanWrite(&_impl_);
1924 if (_impl_.convergence_information_ != nullptr) _impl_.convergence_information_->Clear();
1925 _impl_._has_bits_[0] &= ~0x00000001u;
1926}
1927SolveResultProto_PdlpOutput::SolveResultProto_PdlpOutput(::google::protobuf::Arena* PROTOBUF_NULLABLE arena)
1928#if defined(PROTOBUF_CUSTOM_VTABLE)
1929 : ::google::protobuf::Message(arena, SolveResultProto_PdlpOutput_class_data_.base()) {
1930#else // PROTOBUF_CUSTOM_VTABLE
1931 : ::google::protobuf::Message(arena) {
1932#endif // PROTOBUF_CUSTOM_VTABLE
1933 SharedCtor(arena);
1934 // @@protoc_insertion_point(arena_constructor:operations_research.math_opt.SolveResultProto.PdlpOutput)
1935}
1936PROTOBUF_NDEBUG_INLINE SolveResultProto_PdlpOutput::Impl_::Impl_(
1937 ::google::protobuf::internal::InternalVisibility visibility,
1938 ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const Impl_& from,
1939 const ::operations_research::math_opt::SolveResultProto_PdlpOutput& from_msg)
1940 : _has_bits_{from._has_bits_},
1941 _cached_size_{0} {}
1942
1944 ::google::protobuf::Arena* PROTOBUF_NULLABLE arena,
1945 const SolveResultProto_PdlpOutput& from)
1946#if defined(PROTOBUF_CUSTOM_VTABLE)
1947 : ::google::protobuf::Message(arena, SolveResultProto_PdlpOutput_class_data_.base()) {
1948#else // PROTOBUF_CUSTOM_VTABLE
1949 : ::google::protobuf::Message(arena) {
1950#endif // PROTOBUF_CUSTOM_VTABLE
1951 SolveResultProto_PdlpOutput* const _this = this;
1952 (void)_this;
1953 _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(
1954 from._internal_metadata_);
1955 new (&_impl_) Impl_(internal_visibility(), arena, from._impl_, from);
1956 ::uint32_t cached_has_bits = _impl_._has_bits_[0];
1957 _impl_.convergence_information_ = ((cached_has_bits & 0x00000001u) != 0)
1958 ? ::google::protobuf::Message::CopyConstruct(arena, *from._impl_.convergence_information_)
1959 : nullptr;
1960
1961 // @@protoc_insertion_point(copy_constructor:operations_research.math_opt.SolveResultProto.PdlpOutput)
1962}
1963PROTOBUF_NDEBUG_INLINE SolveResultProto_PdlpOutput::Impl_::Impl_(
1964 ::google::protobuf::internal::InternalVisibility visibility,
1965 ::google::protobuf::Arena* PROTOBUF_NULLABLE arena)
1966 : _cached_size_{0} {}
1967
1968inline void SolveResultProto_PdlpOutput::SharedCtor(::_pb::Arena* PROTOBUF_NULLABLE arena) {
1969 new (&_impl_) Impl_(internal_visibility(), arena);
1970 _impl_.convergence_information_ = {};
1971}
1973 // @@protoc_insertion_point(destructor:operations_research.math_opt.SolveResultProto.PdlpOutput)
1974 SharedDtor(*this);
1975}
1976inline void SolveResultProto_PdlpOutput::SharedDtor(MessageLite& self) {
1978 this_._internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>();
1979 ABSL_DCHECK(this_.GetArena() == nullptr);
1980 delete this_._impl_.convergence_information_;
1981 this_._impl_.~Impl_();
1982}
1983
1984inline void* PROTOBUF_NONNULL SolveResultProto_PdlpOutput::PlacementNew_(
1985 const void* PROTOBUF_NONNULL, void* PROTOBUF_NONNULL mem,
1986 ::google::protobuf::Arena* PROTOBUF_NULLABLE arena) {
1987 return ::new (mem) SolveResultProto_PdlpOutput(arena);
1988}
1990 return ::google::protobuf::internal::MessageCreator::ZeroInit(sizeof(SolveResultProto_PdlpOutput),
1992}
1994 return ::google::protobuf::internal::ClassDataFull{
1995 ::google::protobuf::internal::ClassData{
1997 &_table_.header,
1998 nullptr, // OnDemandRegisterArenaDtor
1999 nullptr, // IsInitialized
2000 &SolveResultProto_PdlpOutput::MergeImpl,
2001 ::google::protobuf::Message::GetNewImpl<SolveResultProto_PdlpOutput>(),
2002#if defined(PROTOBUF_CUSTOM_VTABLE)
2003 &SolveResultProto_PdlpOutput::SharedDtor,
2004 ::google::protobuf::Message::GetClearImpl<SolveResultProto_PdlpOutput>(), &SolveResultProto_PdlpOutput::ByteSizeLong,
2006#endif // PROTOBUF_CUSTOM_VTABLE
2007 PROTOBUF_FIELD_OFFSET(SolveResultProto_PdlpOutput, _impl_._cached_size_),
2008 false,
2009 },
2010 &SolveResultProto_PdlpOutput::kDescriptorMethods,
2012 nullptr, // tracker
2013 };
2014}
2015
2016PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 const
2017 ::google::protobuf::internal::ClassDataFull SolveResultProto_PdlpOutput_class_data_ =
2019
2020PROTOBUF_ATTRIBUTE_WEAK const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL
2022 ::google::protobuf::internal::PrefetchToLocalCache(&SolveResultProto_PdlpOutput_class_data_);
2023 ::google::protobuf::internal::PrefetchToLocalCache(SolveResultProto_PdlpOutput_class_data_.tc_table);
2025}
2026PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1
2027const ::_pbi::TcParseTable<0, 1, 1, 0, 2>
2028SolveResultProto_PdlpOutput::_table_ = {
2029 {
2030 PROTOBUF_FIELD_OFFSET(SolveResultProto_PdlpOutput, _impl_._has_bits_),
2031 0, // no _extensions_
2032 1, 0, // max_field_number, fast_idx_mask
2033 offsetof(decltype(_table_), field_lookup_table),
2034 4294967294, // skipmap
2035 offsetof(decltype(_table_), field_entries),
2036 1, // num_field_entries
2037 1, // num_aux_entries
2038 offsetof(decltype(_table_), aux_entries),
2040 nullptr, // post_loop_handler
2041 ::_pbi::TcParser::GenericFallback, // fallback
2042 #ifdef PROTOBUF_PREFETCH_PARSE_TABLE
2043 ::_pbi::TcParser::GetTable<::operations_research::math_opt::SolveResultProto_PdlpOutput>(), // to_prefetch
2044 #endif // PROTOBUF_PREFETCH_PARSE_TABLE
2045 }, {{
2046 // .operations_research.pdlp.ConvergenceInformation convergence_information = 1;
2047 {::_pbi::TcParser::FastMtS1,
2048 {10, 0, 0, PROTOBUF_FIELD_OFFSET(SolveResultProto_PdlpOutput, _impl_.convergence_information_)}},
2049 }}, {{
2050 65535, 65535
2051 }}, {{
2052 // .operations_research.pdlp.ConvergenceInformation convergence_information = 1;
2053 {PROTOBUF_FIELD_OFFSET(SolveResultProto_PdlpOutput, _impl_.convergence_information_), _Internal::kHasBitsOffset + 0, 0,
2054 (0 | ::_fl::kFcOptional | ::_fl::kMessage | ::_fl::kTvTable)},
2055 }},
2056 {{
2057 {::_pbi::TcParser::GetTable<::operations_research::pdlp::ConvergenceInformation>()},
2058 }},
2059 {{
2060 }},
2061};
2062PROTOBUF_NOINLINE void SolveResultProto_PdlpOutput::Clear() {
2063// @@protoc_insertion_point(message_clear_start:operations_research.math_opt.SolveResultProto.PdlpOutput)
2064 ::google::protobuf::internal::TSanWrite(&_impl_);
2065 ::uint32_t cached_has_bits = 0;
2066 // Prevent compiler warnings about cached_has_bits being unused
2067 (void) cached_has_bits;
2068
2069 cached_has_bits = _impl_._has_bits_[0];
2070 if ((cached_has_bits & 0x00000001u) != 0) {
2071 ABSL_DCHECK(_impl_.convergence_information_ != nullptr);
2072 _impl_.convergence_information_->Clear();
2073 }
2074 _impl_._has_bits_.Clear();
2075 _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>();
2076}
2077
2078#if defined(PROTOBUF_CUSTOM_VTABLE)
2079::uint8_t* PROTOBUF_NONNULL SolveResultProto_PdlpOutput::_InternalSerialize(
2080 const ::google::protobuf::MessageLite& base, ::uint8_t* PROTOBUF_NONNULL target,
2081 ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) {
2082 const SolveResultProto_PdlpOutput& this_ = static_cast<const SolveResultProto_PdlpOutput&>(base);
2083#else // PROTOBUF_CUSTOM_VTABLE
2084::uint8_t* PROTOBUF_NONNULL SolveResultProto_PdlpOutput::_InternalSerialize(
2085 ::uint8_t* PROTOBUF_NONNULL target,
2086 ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const {
2087 const SolveResultProto_PdlpOutput& this_ = *this;
2088#endif // PROTOBUF_CUSTOM_VTABLE
2089 // @@protoc_insertion_point(serialize_to_array_start:operations_research.math_opt.SolveResultProto.PdlpOutput)
2090 ::uint32_t cached_has_bits = 0;
2091 (void)cached_has_bits;
2092
2093 cached_has_bits = this_._impl_._has_bits_[0];
2094 // .operations_research.pdlp.ConvergenceInformation convergence_information = 1;
2095 if ((cached_has_bits & 0x00000001u) != 0) {
2096 target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage(
2097 1, *this_._impl_.convergence_information_, this_._impl_.convergence_information_->GetCachedSize(), target,
2098 stream);
2099 }
2100
2101 if (ABSL_PREDICT_FALSE(this_._internal_metadata_.have_unknown_fields())) {
2102 target =
2103 ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray(
2104 this_._internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream);
2105 }
2106 // @@protoc_insertion_point(serialize_to_array_end:operations_research.math_opt.SolveResultProto.PdlpOutput)
2107 return target;
2108}
2109
2110#if defined(PROTOBUF_CUSTOM_VTABLE)
2112 const SolveResultProto_PdlpOutput& this_ = static_cast<const SolveResultProto_PdlpOutput&>(base);
2113#else // PROTOBUF_CUSTOM_VTABLE
2115 const SolveResultProto_PdlpOutput& this_ = *this;
2116#endif // PROTOBUF_CUSTOM_VTABLE
2117 // @@protoc_insertion_point(message_byte_size_start:operations_research.math_opt.SolveResultProto.PdlpOutput)
2118 ::size_t total_size = 0;
2120 ::uint32_t cached_has_bits = 0;
2121 // Prevent compiler warnings about cached_has_bits being unused
2122 (void)cached_has_bits;
2123
2124 {
2125 // .operations_research.pdlp.ConvergenceInformation convergence_information = 1;
2126 cached_has_bits = this_._impl_._has_bits_[0];
2127 if ((cached_has_bits & 0x00000001u) != 0) {
2128 total_size += 1 +
2129 ::google::protobuf::internal::WireFormatLite::MessageSize(*this_._impl_.convergence_information_);
2130 }
2131 }
2132 return this_.MaybeComputeUnknownFieldsSize(total_size,
2133 &this_._impl_._cached_size_);
2134}
2135
2136void SolveResultProto_PdlpOutput::MergeImpl(::google::protobuf::MessageLite& to_msg, const ::google::protobuf::MessageLite& from_msg) {
2137 auto* const _this = static_cast<SolveResultProto_PdlpOutput*>(&to_msg);
2138 auto& from = static_cast<const SolveResultProto_PdlpOutput&>(from_msg);
2139 ::google::protobuf::Arena* arena = _this->GetArena();
2140 // @@protoc_insertion_point(class_specific_merge_from_start:operations_research.math_opt.SolveResultProto.PdlpOutput)
2141 ABSL_DCHECK_NE(&from, _this);
2142 ::uint32_t cached_has_bits = 0;
2143 (void) cached_has_bits;
2144
2145 cached_has_bits = from._impl_._has_bits_[0];
2146 if ((cached_has_bits & 0x00000001u) != 0) {
2147 ABSL_DCHECK(from._impl_.convergence_information_ != nullptr);
2148 if (_this->_impl_.convergence_information_ == nullptr) {
2149 _this->_impl_.convergence_information_ = ::google::protobuf::Message::CopyConstruct(arena, *from._impl_.convergence_information_);
2150 } else {
2151 _this->_impl_.convergence_information_->MergeFrom(*from._impl_.convergence_information_);
2152 }
2153 }
2154 _this->_impl_._has_bits_[0] |= cached_has_bits;
2155 _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_);
2156}
2157
2159// @@protoc_insertion_point(class_specific_copy_from_start:operations_research.math_opt.SolveResultProto.PdlpOutput)
2160 if (&from == this) return;
2161 Clear();
2162 MergeFrom(from);
2164
2165
2166void SolveResultProto_PdlpOutput::InternalSwap(SolveResultProto_PdlpOutput* PROTOBUF_RESTRICT PROTOBUF_NONNULL other) {
2167 using ::std::swap;
2168 _internal_metadata_.InternalSwap(&other->_internal_metadata_);
2169 swap(_impl_._has_bits_[0], other->_impl_._has_bits_[0]);
2170 swap(_impl_.convergence_information_, other->_impl_.convergence_information_);
2171}
2172
2173::google::protobuf::Metadata SolveResultProto_PdlpOutput::GetMetadata() const {
2174 return ::google::protobuf::Message::GetMetadataImpl(GetClassData()->full());
2175}
2176// ===================================================================
2177
2179 public:
2180 using HasBits =
2181 decltype(::std::declval<SolveResultProto>()._impl_._has_bits_);
2182 static constexpr ::int32_t kHasBitsOffset =
2183 8 * PROTOBUF_FIELD_OFFSET(SolveResultProto, _impl_._has_bits_);
2184 static constexpr ::int32_t kOneofCaseOffset =
2185 PROTOBUF_FIELD_OFFSET(::operations_research::math_opt::SolveResultProto, _impl_._oneof_case_);
2187
2189 ::google::protobuf::internal::TSanWrite(&_impl_);
2190 _impl_.solutions_.Clear();
2191}
2193 ::google::protobuf::internal::TSanWrite(&_impl_);
2194 _impl_.primal_rays_.Clear();
2195}
2197 ::google::protobuf::internal::TSanWrite(&_impl_);
2198 _impl_.dual_rays_.Clear();
2199}
2201 ::google::protobuf::Arena* message_arena = GetArena();
2203 if (gscip_output) {
2204 ::google::protobuf::Arena* submessage_arena = reinterpret_cast<::google::protobuf::Message*>(gscip_output)->GetArena();
2205 if (message_arena != submessage_arena) {
2206 gscip_output = ::google::protobuf::internal::GetOwnedMessage(message_arena, gscip_output, submessage_arena);
2207 }
2208 set_has_gscip_output();
2209 _impl_.solver_specific_output_.gscip_output_ = gscip_output;
2210 }
2211 // @@protoc_insertion_point(field_set_allocated:operations_research.math_opt.SolveResultProto.gscip_output)
2212}
2214 ::google::protobuf::internal::TSanWrite(&_impl_);
2215 if (solver_specific_output_case() == kGscipOutput) {
2216 if (GetArena() == nullptr) {
2217 delete _impl_.solver_specific_output_.gscip_output_;
2218 } else if (::google::protobuf::internal::DebugHardenClearOneofMessageOnArena()) {
2219 ::google::protobuf::internal::MaybePoisonAfterClear(_impl_.solver_specific_output_.gscip_output_);
2220 }
2221 clear_has_solver_specific_output();
2222 }
2223}
2225 ::google::protobuf::Arena* message_arena = GetArena();
2226 clear_solver_specific_output();
2227 if (osqp_output) {
2228 ::google::protobuf::Arena* submessage_arena = reinterpret_cast<::google::protobuf::Message*>(osqp_output)->GetArena();
2229 if (message_arena != submessage_arena) {
2230 osqp_output = ::google::protobuf::internal::GetOwnedMessage(message_arena, osqp_output, submessage_arena);
2231 }
2232 set_has_osqp_output();
2233 _impl_.solver_specific_output_.osqp_output_ = osqp_output;
2234 }
2235 // @@protoc_insertion_point(field_set_allocated:operations_research.math_opt.SolveResultProto.osqp_output)
2236}
2238 ::google::protobuf::internal::TSanWrite(&_impl_);
2239 if (solver_specific_output_case() == kOsqpOutput) {
2240 if (GetArena() == nullptr) {
2241 delete _impl_.solver_specific_output_.osqp_output_;
2242 } else if (::google::protobuf::internal::DebugHardenClearOneofMessageOnArena()) {
2243 ::google::protobuf::internal::MaybePoisonAfterClear(_impl_.solver_specific_output_.osqp_output_);
2244 }
2245 clear_has_solver_specific_output();
2246 }
2247}
2249 ::google::protobuf::Arena* message_arena = GetArena();
2250 clear_solver_specific_output();
2251 if (pdlp_output) {
2252 ::google::protobuf::Arena* submessage_arena = pdlp_output->GetArena();
2253 if (message_arena != submessage_arena) {
2254 pdlp_output = ::google::protobuf::internal::GetOwnedMessage(message_arena, pdlp_output, submessage_arena);
2255 }
2256 set_has_pdlp_output();
2257 _impl_.solver_specific_output_.pdlp_output_ = pdlp_output;
2258 }
2259 // @@protoc_insertion_point(field_set_allocated:operations_research.math_opt.SolveResultProto.pdlp_output)
2260}
2261SolveResultProto::SolveResultProto(::google::protobuf::Arena* PROTOBUF_NULLABLE arena)
2262#if defined(PROTOBUF_CUSTOM_VTABLE)
2263 : ::google::protobuf::Message(arena, SolveResultProto_class_data_.base()) {
2264#else // PROTOBUF_CUSTOM_VTABLE
2265 : ::google::protobuf::Message(arena) {
2266#endif // PROTOBUF_CUSTOM_VTABLE
2267 SharedCtor(arena);
2268 // @@protoc_insertion_point(arena_constructor:operations_research.math_opt.SolveResultProto)
2269}
2270PROTOBUF_NDEBUG_INLINE SolveResultProto::Impl_::Impl_(
2271 ::google::protobuf::internal::InternalVisibility visibility,
2272 ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const Impl_& from,
2273 const ::operations_research::math_opt::SolveResultProto& from_msg)
2274 : _has_bits_{from._has_bits_},
2275 _cached_size_{0},
2276 solutions_{visibility, arena, from.solutions_},
2277 primal_rays_{visibility, arena, from.primal_rays_},
2278 dual_rays_{visibility, arena, from.dual_rays_},
2279 solver_specific_output_{},
2280 _oneof_case_{from._oneof_case_[0]} {}
2281
2283 ::google::protobuf::Arena* PROTOBUF_NULLABLE arena,
2284 const SolveResultProto& from)
2285#if defined(PROTOBUF_CUSTOM_VTABLE)
2286 : ::google::protobuf::Message(arena, SolveResultProto_class_data_.base()) {
2287#else // PROTOBUF_CUSTOM_VTABLE
2288 : ::google::protobuf::Message(arena) {
2289#endif // PROTOBUF_CUSTOM_VTABLE
2290 SolveResultProto* const _this = this;
2291 (void)_this;
2292 _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(
2293 from._internal_metadata_);
2294 new (&_impl_) Impl_(internal_visibility(), arena, from._impl_, from);
2295 ::uint32_t cached_has_bits = _impl_._has_bits_[0];
2296 _impl_.termination_ = ((cached_has_bits & 0x00000001u) != 0)
2297 ? ::google::protobuf::Message::CopyConstruct(arena, *from._impl_.termination_)
2298 : nullptr;
2299 _impl_.solve_stats_ = ((cached_has_bits & 0x00000002u) != 0)
2300 ? ::google::protobuf::Message::CopyConstruct(arena, *from._impl_.solve_stats_)
2301 : nullptr;
2302 switch (solver_specific_output_case()) {
2304 break;
2305 case kGscipOutput:
2306 _impl_.solver_specific_output_.gscip_output_ = ::google::protobuf::Message::CopyConstruct(arena, *from._impl_.solver_specific_output_.gscip_output_);
2307 break;
2308 case kOsqpOutput:
2309 _impl_.solver_specific_output_.osqp_output_ = ::google::protobuf::Message::CopyConstruct(arena, *from._impl_.solver_specific_output_.osqp_output_);
2310 break;
2311 case kPdlpOutput:
2312 _impl_.solver_specific_output_.pdlp_output_ = ::google::protobuf::Message::CopyConstruct(arena, *from._impl_.solver_specific_output_.pdlp_output_);
2313 break;
2314 }
2315
2316 // @@protoc_insertion_point(copy_constructor:operations_research.math_opt.SolveResultProto)
2317}
2318PROTOBUF_NDEBUG_INLINE SolveResultProto::Impl_::Impl_(
2319 ::google::protobuf::internal::InternalVisibility visibility,
2320 ::google::protobuf::Arena* PROTOBUF_NULLABLE arena)
2321 : _cached_size_{0},
2322 solutions_{visibility, arena},
2323 primal_rays_{visibility, arena},
2324 dual_rays_{visibility, arena},
2325 solver_specific_output_{},
2326 _oneof_case_{} {}
2327
2328inline void SolveResultProto::SharedCtor(::_pb::Arena* PROTOBUF_NULLABLE arena) {
2329 new (&_impl_) Impl_(internal_visibility(), arena);
2330 ::memset(reinterpret_cast<char *>(&_impl_) +
2331 offsetof(Impl_, termination_),
2332 0,
2333 offsetof(Impl_, solve_stats_) -
2334 offsetof(Impl_, termination_) +
2335 sizeof(Impl_::solve_stats_));
2336}
2338 // @@protoc_insertion_point(destructor:operations_research.math_opt.SolveResultProto)
2339 SharedDtor(*this);
2340}
2341inline void SolveResultProto::SharedDtor(MessageLite& self) {
2342 SolveResultProto& this_ = static_cast<SolveResultProto&>(self);
2343 this_._internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>();
2344 ABSL_DCHECK(this_.GetArena() == nullptr);
2345 delete this_._impl_.termination_;
2346 delete this_._impl_.solve_stats_;
2347 if (this_.has_solver_specific_output()) {
2348 this_.clear_solver_specific_output();
2349 }
2350 this_._impl_.~Impl_();
2351}
2352
2354// @@protoc_insertion_point(one_of_clear_start:operations_research.math_opt.SolveResultProto)
2355 ::google::protobuf::internal::TSanWrite(&_impl_);
2356 switch (solver_specific_output_case()) {
2357 case kGscipOutput: {
2358 if (GetArena() == nullptr) {
2359 delete _impl_.solver_specific_output_.gscip_output_;
2360 } else if (::google::protobuf::internal::DebugHardenClearOneofMessageOnArena()) {
2361 ::google::protobuf::internal::MaybePoisonAfterClear(_impl_.solver_specific_output_.gscip_output_);
2362 }
2363 break;
2364 }
2365 case kOsqpOutput: {
2366 if (GetArena() == nullptr) {
2367 delete _impl_.solver_specific_output_.osqp_output_;
2368 } else if (::google::protobuf::internal::DebugHardenClearOneofMessageOnArena()) {
2369 ::google::protobuf::internal::MaybePoisonAfterClear(_impl_.solver_specific_output_.osqp_output_);
2370 }
2371 break;
2372 }
2373 case kPdlpOutput: {
2374 if (GetArena() == nullptr) {
2375 delete _impl_.solver_specific_output_.pdlp_output_;
2376 } else if (::google::protobuf::internal::DebugHardenClearOneofMessageOnArena()) {
2377 ::google::protobuf::internal::MaybePoisonAfterClear(_impl_.solver_specific_output_.pdlp_output_);
2378 }
2379 break;
2380 }
2382 break;
2383 }
2384 }
2385 _impl_._oneof_case_[0] = SOLVER_SPECIFIC_OUTPUT_NOT_SET;
2386}
2387
2388
2389inline void* PROTOBUF_NONNULL SolveResultProto::PlacementNew_(
2390 const void* PROTOBUF_NONNULL, void* PROTOBUF_NONNULL mem,
2391 ::google::protobuf::Arena* PROTOBUF_NULLABLE arena) {
2392 return ::new (mem) SolveResultProto(arena);
2393}
2394constexpr auto SolveResultProto::InternalNewImpl_() {
2395 constexpr auto arena_bits = ::google::protobuf::internal::EncodePlacementArenaOffsets({
2396 PROTOBUF_FIELD_OFFSET(SolveResultProto, _impl_.solutions_) +
2397 decltype(SolveResultProto::_impl_.solutions_)::
2398 InternalGetArenaOffset(
2399 ::google::protobuf::Message::internal_visibility()),
2400 PROTOBUF_FIELD_OFFSET(SolveResultProto, _impl_.primal_rays_) +
2401 decltype(SolveResultProto::_impl_.primal_rays_)::
2402 InternalGetArenaOffset(
2403 ::google::protobuf::Message::internal_visibility()),
2404 PROTOBUF_FIELD_OFFSET(SolveResultProto, _impl_.dual_rays_) +
2405 decltype(SolveResultProto::_impl_.dual_rays_)::
2406 InternalGetArenaOffset(
2407 ::google::protobuf::Message::internal_visibility()),
2408 });
2409 if (arena_bits.has_value()) {
2410 return ::google::protobuf::internal::MessageCreator::ZeroInit(
2411 sizeof(SolveResultProto), alignof(SolveResultProto), *arena_bits);
2412 } else {
2413 return ::google::protobuf::internal::MessageCreator(&SolveResultProto::PlacementNew_,
2414 sizeof(SolveResultProto),
2415 alignof(SolveResultProto));
2416 }
2417}
2419 return ::google::protobuf::internal::ClassDataFull{
2420 ::google::protobuf::internal::ClassData{
2422 &_table_.header,
2423 nullptr, // OnDemandRegisterArenaDtor
2424 nullptr, // IsInitialized
2425 &SolveResultProto::MergeImpl,
2426 ::google::protobuf::Message::GetNewImpl<SolveResultProto>(),
2427#if defined(PROTOBUF_CUSTOM_VTABLE)
2428 &SolveResultProto::SharedDtor,
2429 ::google::protobuf::Message::GetClearImpl<SolveResultProto>(), &SolveResultProto::ByteSizeLong,
2431#endif // PROTOBUF_CUSTOM_VTABLE
2432 PROTOBUF_FIELD_OFFSET(SolveResultProto, _impl_._cached_size_),
2433 false,
2434 },
2435 &SolveResultProto::kDescriptorMethods,
2437 nullptr, // tracker
2438 };
2439}
2440
2441PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 const
2442 ::google::protobuf::internal::ClassDataFull SolveResultProto_class_data_ =
2444
2445PROTOBUF_ATTRIBUTE_WEAK const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL
2447 ::google::protobuf::internal::PrefetchToLocalCache(&SolveResultProto_class_data_);
2448 ::google::protobuf::internal::PrefetchToLocalCache(SolveResultProto_class_data_.tc_table);
2449 return SolveResultProto_class_data_.base();
2450}
2451PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1
2452const ::_pbi::TcParseTable<3, 8, 8, 0, 2>
2453SolveResultProto::_table_ = {
2454 {
2455 PROTOBUF_FIELD_OFFSET(SolveResultProto, _impl_._has_bits_),
2456 0, // no _extensions_
2457 9, 56, // max_field_number, fast_idx_mask
2458 offsetof(decltype(_table_), field_lookup_table),
2459 4294966785, // skipmap
2460 offsetof(decltype(_table_), field_entries),
2461 8, // num_field_entries
2462 8, // num_aux_entries
2463 offsetof(decltype(_table_), aux_entries),
2465 nullptr, // post_loop_handler
2466 ::_pbi::TcParser::GenericFallback, // fallback
2467 #ifdef PROTOBUF_PREFETCH_PARSE_TABLE
2468 ::_pbi::TcParser::GetTable<::operations_research::math_opt::SolveResultProto>(), // to_prefetch
2469 #endif // PROTOBUF_PREFETCH_PARSE_TABLE
2470 }, {{
2471 {::_pbi::TcParser::MiniParse, {}},
2472 {::_pbi::TcParser::MiniParse, {}},
2473 // .operations_research.math_opt.TerminationProto termination = 2;
2474 {::_pbi::TcParser::FastMtS1,
2475 {18, 0, 0, PROTOBUF_FIELD_OFFSET(SolveResultProto, _impl_.termination_)}},
2476 // repeated .operations_research.math_opt.SolutionProto solutions = 3;
2477 {::_pbi::TcParser::FastMtR1,
2478 {26, 63, 1, PROTOBUF_FIELD_OFFSET(SolveResultProto, _impl_.solutions_)}},
2479 // repeated .operations_research.math_opt.PrimalRayProto primal_rays = 4;
2480 {::_pbi::TcParser::FastMtR1,
2481 {34, 63, 2, PROTOBUF_FIELD_OFFSET(SolveResultProto, _impl_.primal_rays_)}},
2482 // repeated .operations_research.math_opt.DualRayProto dual_rays = 5;
2483 {::_pbi::TcParser::FastMtR1,
2484 {42, 63, 3, PROTOBUF_FIELD_OFFSET(SolveResultProto, _impl_.dual_rays_)}},
2485 // .operations_research.math_opt.SolveStatsProto solve_stats = 6;
2486 {::_pbi::TcParser::FastMtS1,
2487 {50, 1, 4, PROTOBUF_FIELD_OFFSET(SolveResultProto, _impl_.solve_stats_)}},
2488 {::_pbi::TcParser::MiniParse, {}},
2489 }}, {{
2490 65535, 65535
2491 }}, {{
2492 // .operations_research.math_opt.TerminationProto termination = 2;
2493 {PROTOBUF_FIELD_OFFSET(SolveResultProto, _impl_.termination_), _Internal::kHasBitsOffset + 0, 0,
2494 (0 | ::_fl::kFcOptional | ::_fl::kMessage | ::_fl::kTvTable)},
2495 // repeated .operations_research.math_opt.SolutionProto solutions = 3;
2496 {PROTOBUF_FIELD_OFFSET(SolveResultProto, _impl_.solutions_), -1, 1,
2497 (0 | ::_fl::kFcRepeated | ::_fl::kMessage | ::_fl::kTvTable)},
2498 // repeated .operations_research.math_opt.PrimalRayProto primal_rays = 4;
2499 {PROTOBUF_FIELD_OFFSET(SolveResultProto, _impl_.primal_rays_), -1, 2,
2500 (0 | ::_fl::kFcRepeated | ::_fl::kMessage | ::_fl::kTvTable)},
2501 // repeated .operations_research.math_opt.DualRayProto dual_rays = 5;
2502 {PROTOBUF_FIELD_OFFSET(SolveResultProto, _impl_.dual_rays_), -1, 3,
2503 (0 | ::_fl::kFcRepeated | ::_fl::kMessage | ::_fl::kTvTable)},
2504 // .operations_research.math_opt.SolveStatsProto solve_stats = 6;
2505 {PROTOBUF_FIELD_OFFSET(SolveResultProto, _impl_.solve_stats_), _Internal::kHasBitsOffset + 1, 4,
2506 (0 | ::_fl::kFcOptional | ::_fl::kMessage | ::_fl::kTvTable)},
2507 // .operations_research.GScipOutput gscip_output = 7;
2508 {PROTOBUF_FIELD_OFFSET(SolveResultProto, _impl_.solver_specific_output_.gscip_output_), _Internal::kOneofCaseOffset + 0, 5,
2509 (0 | ::_fl::kFcOneof | ::_fl::kMessage | ::_fl::kTvTable)},
2510 // .operations_research.math_opt.OsqpOutput osqp_output = 8;
2511 {PROTOBUF_FIELD_OFFSET(SolveResultProto, _impl_.solver_specific_output_.osqp_output_), _Internal::kOneofCaseOffset + 0, 6,
2512 (0 | ::_fl::kFcOneof | ::_fl::kMessage | ::_fl::kTvTable)},
2513 // .operations_research.math_opt.SolveResultProto.PdlpOutput pdlp_output = 9;
2514 {PROTOBUF_FIELD_OFFSET(SolveResultProto, _impl_.solver_specific_output_.pdlp_output_), _Internal::kOneofCaseOffset + 0, 7,
2515 (0 | ::_fl::kFcOneof | ::_fl::kMessage | ::_fl::kTvTable)},
2516 }},
2517 {{
2518 {::_pbi::TcParser::GetTable<::operations_research::math_opt::TerminationProto>()},
2519 {::_pbi::TcParser::GetTable<::operations_research::math_opt::SolutionProto>()},
2520 {::_pbi::TcParser::GetTable<::operations_research::math_opt::PrimalRayProto>()},
2521 {::_pbi::TcParser::GetTable<::operations_research::math_opt::DualRayProto>()},
2522 {::_pbi::TcParser::GetTable<::operations_research::math_opt::SolveStatsProto>()},
2523 {::_pbi::TcParser::GetTable<::operations_research::GScipOutput>()},
2524 {::_pbi::TcParser::GetTable<::operations_research::math_opt::OsqpOutput>()},
2525 {::_pbi::TcParser::GetTable<::operations_research::math_opt::SolveResultProto_PdlpOutput>()},
2526 }},
2527 {{
2528 }},
2529};
2530PROTOBUF_NOINLINE void SolveResultProto::Clear() {
2531// @@protoc_insertion_point(message_clear_start:operations_research.math_opt.SolveResultProto)
2532 ::google::protobuf::internal::TSanWrite(&_impl_);
2533 ::uint32_t cached_has_bits = 0;
2534 // Prevent compiler warnings about cached_has_bits being unused
2535 (void) cached_has_bits;
2537 _impl_.solutions_.Clear();
2538 _impl_.primal_rays_.Clear();
2539 _impl_.dual_rays_.Clear();
2540 cached_has_bits = _impl_._has_bits_[0];
2541 if ((cached_has_bits & 0x00000003u) != 0) {
2542 if ((cached_has_bits & 0x00000001u) != 0) {
2543 ABSL_DCHECK(_impl_.termination_ != nullptr);
2544 _impl_.termination_->Clear();
2545 }
2546 if ((cached_has_bits & 0x00000002u) != 0) {
2547 ABSL_DCHECK(_impl_.solve_stats_ != nullptr);
2548 _impl_.solve_stats_->Clear();
2549 }
2550 }
2552 _impl_._has_bits_.Clear();
2553 _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>();
2554}
2555
2556#if defined(PROTOBUF_CUSTOM_VTABLE)
2557::uint8_t* PROTOBUF_NONNULL SolveResultProto::_InternalSerialize(
2558 const ::google::protobuf::MessageLite& base, ::uint8_t* PROTOBUF_NONNULL target,
2559 ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) {
2560 const SolveResultProto& this_ = static_cast<const SolveResultProto&>(base);
2561#else // PROTOBUF_CUSTOM_VTABLE
2562::uint8_t* PROTOBUF_NONNULL SolveResultProto::_InternalSerialize(
2563 ::uint8_t* PROTOBUF_NONNULL target,
2564 ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const {
2565 const SolveResultProto& this_ = *this;
2566#endif // PROTOBUF_CUSTOM_VTABLE
2567 // @@protoc_insertion_point(serialize_to_array_start:operations_research.math_opt.SolveResultProto)
2568 ::uint32_t cached_has_bits = 0;
2569 (void)cached_has_bits;
2570
2571 cached_has_bits = this_._impl_._has_bits_[0];
2572 // .operations_research.math_opt.TerminationProto termination = 2;
2573 if ((cached_has_bits & 0x00000001u) != 0) {
2574 target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage(
2575 2, *this_._impl_.termination_, this_._impl_.termination_->GetCachedSize(), target,
2576 stream);
2577 }
2578
2579 // repeated .operations_research.math_opt.SolutionProto solutions = 3;
2580 for (unsigned i = 0, n = static_cast<unsigned>(
2581 this_._internal_solutions_size());
2582 i < n; i++) {
2583 const auto& repfield = this_._internal_solutions().Get(i);
2584 target =
2585 ::google::protobuf::internal::WireFormatLite::InternalWriteMessage(
2586 3, repfield, repfield.GetCachedSize(),
2587 target, stream);
2588 }
2589
2590 // repeated .operations_research.math_opt.PrimalRayProto primal_rays = 4;
2591 for (unsigned i = 0, n = static_cast<unsigned>(
2592 this_._internal_primal_rays_size());
2593 i < n; i++) {
2594 const auto& repfield = this_._internal_primal_rays().Get(i);
2595 target =
2596 ::google::protobuf::internal::WireFormatLite::InternalWriteMessage(
2597 4, repfield, repfield.GetCachedSize(),
2598 target, stream);
2599 }
2600
2601 // repeated .operations_research.math_opt.DualRayProto dual_rays = 5;
2602 for (unsigned i = 0, n = static_cast<unsigned>(
2603 this_._internal_dual_rays_size());
2604 i < n; i++) {
2605 const auto& repfield = this_._internal_dual_rays().Get(i);
2606 target =
2607 ::google::protobuf::internal::WireFormatLite::InternalWriteMessage(
2608 5, repfield, repfield.GetCachedSize(),
2609 target, stream);
2610 }
2611
2612 // .operations_research.math_opt.SolveStatsProto solve_stats = 6;
2613 if ((cached_has_bits & 0x00000002u) != 0) {
2614 target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage(
2615 6, *this_._impl_.solve_stats_, this_._impl_.solve_stats_->GetCachedSize(), target,
2616 stream);
2617 }
2618
2619 switch (this_.solver_specific_output_case()) {
2620 case kGscipOutput: {
2621 target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage(
2622 7, *this_._impl_.solver_specific_output_.gscip_output_, this_._impl_.solver_specific_output_.gscip_output_->GetCachedSize(), target,
2623 stream);
2624 break;
2625 }
2626 case kOsqpOutput: {
2627 target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage(
2628 8, *this_._impl_.solver_specific_output_.osqp_output_, this_._impl_.solver_specific_output_.osqp_output_->GetCachedSize(), target,
2629 stream);
2630 break;
2631 }
2632 case kPdlpOutput: {
2633 target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage(
2634 9, *this_._impl_.solver_specific_output_.pdlp_output_, this_._impl_.solver_specific_output_.pdlp_output_->GetCachedSize(), target,
2635 stream);
2636 break;
2637 }
2638 default:
2639 break;
2640 }
2641 if (ABSL_PREDICT_FALSE(this_._internal_metadata_.have_unknown_fields())) {
2642 target =
2643 ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray(
2644 this_._internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream);
2645 }
2646 // @@protoc_insertion_point(serialize_to_array_end:operations_research.math_opt.SolveResultProto)
2647 return target;
2648}
2649
2650#if defined(PROTOBUF_CUSTOM_VTABLE)
2651::size_t SolveResultProto::ByteSizeLong(const MessageLite& base) {
2652 const SolveResultProto& this_ = static_cast<const SolveResultProto&>(base);
2653#else // PROTOBUF_CUSTOM_VTABLE
2654::size_t SolveResultProto::ByteSizeLong() const {
2655 const SolveResultProto& this_ = *this;
2656#endif // PROTOBUF_CUSTOM_VTABLE
2657 // @@protoc_insertion_point(message_byte_size_start:operations_research.math_opt.SolveResultProto)
2658 ::size_t total_size = 0;
2659
2660 ::uint32_t cached_has_bits = 0;
2661 // Prevent compiler warnings about cached_has_bits being unused
2662 (void)cached_has_bits;
2663
2664 ::_pbi::Prefetch5LinesFrom7Lines(&this_);
2665 {
2666 // repeated .operations_research.math_opt.SolutionProto solutions = 3;
2667 {
2668 total_size += 1UL * this_._internal_solutions_size();
2669 for (const auto& msg : this_._internal_solutions()) {
2670 total_size += ::google::protobuf::internal::WireFormatLite::MessageSize(msg);
2671 }
2672 }
2673 // repeated .operations_research.math_opt.PrimalRayProto primal_rays = 4;
2674 {
2675 total_size += 1UL * this_._internal_primal_rays_size();
2676 for (const auto& msg : this_._internal_primal_rays()) {
2677 total_size += ::google::protobuf::internal::WireFormatLite::MessageSize(msg);
2678 }
2679 }
2680 // repeated .operations_research.math_opt.DualRayProto dual_rays = 5;
2681 {
2682 total_size += 1UL * this_._internal_dual_rays_size();
2683 for (const auto& msg : this_._internal_dual_rays()) {
2684 total_size += ::google::protobuf::internal::WireFormatLite::MessageSize(msg);
2685 }
2686 }
2687 }
2688 cached_has_bits = this_._impl_._has_bits_[0];
2689 if ((cached_has_bits & 0x00000003u) != 0) {
2690 // .operations_research.math_opt.TerminationProto termination = 2;
2691 if ((cached_has_bits & 0x00000001u) != 0) {
2692 total_size += 1 +
2693 ::google::protobuf::internal::WireFormatLite::MessageSize(*this_._impl_.termination_);
2694 }
2695 // .operations_research.math_opt.SolveStatsProto solve_stats = 6;
2696 if ((cached_has_bits & 0x00000002u) != 0) {
2697 total_size += 1 +
2698 ::google::protobuf::internal::WireFormatLite::MessageSize(*this_._impl_.solve_stats_);
2699 }
2700 }
2701 switch (this_.solver_specific_output_case()) {
2702 // .operations_research.GScipOutput gscip_output = 7;
2703 case kGscipOutput: {
2704 total_size += 1 +
2705 ::google::protobuf::internal::WireFormatLite::MessageSize(*this_._impl_.solver_specific_output_.gscip_output_);
2706 break;
2707 }
2708 // .operations_research.math_opt.OsqpOutput osqp_output = 8;
2709 case kOsqpOutput: {
2710 total_size += 1 +
2711 ::google::protobuf::internal::WireFormatLite::MessageSize(*this_._impl_.solver_specific_output_.osqp_output_);
2712 break;
2713 }
2714 // .operations_research.math_opt.SolveResultProto.PdlpOutput pdlp_output = 9;
2715 case kPdlpOutput: {
2716 total_size += 1 +
2717 ::google::protobuf::internal::WireFormatLite::MessageSize(*this_._impl_.solver_specific_output_.pdlp_output_);
2718 break;
2719 }
2721 break;
2722 }
2723 }
2724 return this_.MaybeComputeUnknownFieldsSize(total_size,
2725 &this_._impl_._cached_size_);
2726}
2727
2728void SolveResultProto::MergeImpl(::google::protobuf::MessageLite& to_msg, const ::google::protobuf::MessageLite& from_msg) {
2729 auto* const _this = static_cast<SolveResultProto*>(&to_msg);
2730 auto& from = static_cast<const SolveResultProto&>(from_msg);
2731 ::google::protobuf::Arena* arena = _this->GetArena();
2732 // @@protoc_insertion_point(class_specific_merge_from_start:operations_research.math_opt.SolveResultProto)
2733 ABSL_DCHECK_NE(&from, _this);
2734 ::uint32_t cached_has_bits = 0;
2735 (void) cached_has_bits;
2736
2737 _this->_internal_mutable_solutions()->MergeFrom(
2738 from._internal_solutions());
2739 _this->_internal_mutable_primal_rays()->MergeFrom(
2740 from._internal_primal_rays());
2741 _this->_internal_mutable_dual_rays()->MergeFrom(
2742 from._internal_dual_rays());
2743 cached_has_bits = from._impl_._has_bits_[0];
2744 if ((cached_has_bits & 0x00000003u) != 0) {
2745 if ((cached_has_bits & 0x00000001u) != 0) {
2746 ABSL_DCHECK(from._impl_.termination_ != nullptr);
2747 if (_this->_impl_.termination_ == nullptr) {
2748 _this->_impl_.termination_ = ::google::protobuf::Message::CopyConstruct(arena, *from._impl_.termination_);
2749 } else {
2750 _this->_impl_.termination_->MergeFrom(*from._impl_.termination_);
2751 }
2752 }
2753 if ((cached_has_bits & 0x00000002u) != 0) {
2754 ABSL_DCHECK(from._impl_.solve_stats_ != nullptr);
2755 if (_this->_impl_.solve_stats_ == nullptr) {
2756 _this->_impl_.solve_stats_ = ::google::protobuf::Message::CopyConstruct(arena, *from._impl_.solve_stats_);
2757 } else {
2758 _this->_impl_.solve_stats_->MergeFrom(*from._impl_.solve_stats_);
2759 }
2760 }
2761 }
2762 _this->_impl_._has_bits_[0] |= cached_has_bits;
2763 if (const uint32_t oneof_from_case = from._impl_._oneof_case_[0]) {
2764 const uint32_t oneof_to_case = _this->_impl_._oneof_case_[0];
2765 const bool oneof_needs_init = oneof_to_case != oneof_from_case;
2766 if (oneof_needs_init) {
2767 if (oneof_to_case != 0) {
2768 _this->clear_solver_specific_output();
2769 }
2770 _this->_impl_._oneof_case_[0] = oneof_from_case;
2771 }
2772
2773 switch (oneof_from_case) {
2774 case kGscipOutput: {
2775 if (oneof_needs_init) {
2776 _this->_impl_.solver_specific_output_.gscip_output_ = ::google::protobuf::Message::CopyConstruct(arena, *from._impl_.solver_specific_output_.gscip_output_);
2777 } else {
2778 _this->_impl_.solver_specific_output_.gscip_output_->MergeFrom(*from._impl_.solver_specific_output_.gscip_output_);
2779 }
2780 break;
2781 }
2782 case kOsqpOutput: {
2783 if (oneof_needs_init) {
2784 _this->_impl_.solver_specific_output_.osqp_output_ = ::google::protobuf::Message::CopyConstruct(arena, *from._impl_.solver_specific_output_.osqp_output_);
2785 } else {
2786 _this->_impl_.solver_specific_output_.osqp_output_->MergeFrom(*from._impl_.solver_specific_output_.osqp_output_);
2787 }
2788 break;
2789 }
2790 case kPdlpOutput: {
2791 if (oneof_needs_init) {
2792 _this->_impl_.solver_specific_output_.pdlp_output_ = ::google::protobuf::Message::CopyConstruct(arena, *from._impl_.solver_specific_output_.pdlp_output_);
2793 } else {
2794 _this->_impl_.solver_specific_output_.pdlp_output_->MergeFrom(*from._impl_.solver_specific_output_.pdlp_output_);
2795 }
2796 break;
2797 }
2799 break;
2800 }
2801 }
2802 _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_);
2803}
2804
2806// @@protoc_insertion_point(class_specific_copy_from_start:operations_research.math_opt.SolveResultProto)
2807 if (&from == this) return;
2808 Clear();
2809 MergeFrom(from);
2810}
2812
2813void SolveResultProto::InternalSwap(SolveResultProto* PROTOBUF_RESTRICT PROTOBUF_NONNULL other) {
2814 using ::std::swap;
2815 _internal_metadata_.InternalSwap(&other->_internal_metadata_);
2816 swap(_impl_._has_bits_[0], other->_impl_._has_bits_[0]);
2817 _impl_.solutions_.InternalSwap(&other->_impl_.solutions_);
2818 _impl_.primal_rays_.InternalSwap(&other->_impl_.primal_rays_);
2819 _impl_.dual_rays_.InternalSwap(&other->_impl_.dual_rays_);
2820 ::google::protobuf::internal::memswap<
2821 PROTOBUF_FIELD_OFFSET(SolveResultProto, _impl_.solve_stats_)
2822 + sizeof(SolveResultProto::_impl_.solve_stats_)
2823 - PROTOBUF_FIELD_OFFSET(SolveResultProto, _impl_.termination_)>(
2824 reinterpret_cast<char*>(&_impl_.termination_),
2825 reinterpret_cast<char*>(&other->_impl_.termination_));
2826 swap(_impl_.solver_specific_output_, other->_impl_.solver_specific_output_);
2827 swap(_impl_._oneof_case_[0], other->_impl_._oneof_case_[0]);
2828}
2829
2830::google::protobuf::Metadata SolveResultProto::GetMetadata() const {
2831 return ::google::protobuf::Message::GetMetadataImpl(GetClassData()->full());
2832}
2833// @@protoc_insertion_point(namespace_scope)
2834} // namespace math_opt
2835} // namespace operations_research
2836namespace google {
2837namespace protobuf {
2838} // namespace protobuf
2839} // namespace google
2840// @@protoc_insertion_point(global_scope)
2841PROTOBUF_ATTRIBUTE_INIT_PRIORITY2 static ::std::false_type
2842 _static_init2_ [[maybe_unused]] =
2844 ::std::false_type{});
2845#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[]
const ::google::protobuf::UnknownFieldSet & unknown_fields() const ABSL_ATTRIBUTE_LIFETIME_BOUND
Definition result.pb.h:497
static void *PROTOBUF_NONNULL PlacementNew_(const void *PROTOBUF_NONNULL, void *PROTOBUF_NONNULL mem, ::google::protobuf::Arena *PROTOBUF_NULLABLE arena)
friend class ::google::protobuf::MessageLite
Definition result.pb.h:639
void CopyFrom(const ObjectiveBoundsProto &from)
::uint8_t *PROTOBUF_NONNULL _InternalSerialize(::uint8_t *PROTOBUF_NONNULL target, ::google::protobuf::io::EpsCopyOutputStream *PROTOBUF_NONNULL stream) const final
void MergeFrom(const ObjectiveBoundsProto &from)
Definition result.pb.h:543
ABSL_ATTRIBUTE_REINITIALIZES void Clear() PROTOBUF_FINAL
const ::google::protobuf::internal::ClassData *PROTOBUF_NONNULL GetClassData() const PROTOBUF_FINAL
friend void swap(ObjectiveBoundsProto &a, ObjectiveBoundsProto &b)
Definition result.pb.h:520
::google::protobuf::Metadata GetMetadata() const
decltype(::std::declval< ProblemStatusProto >()._impl_._has_bits_) HasBits
Definition result.pb.cc:424
friend class ::google::protobuf::MessageLite
Definition result.pb.h:434
::uint8_t *PROTOBUF_NONNULL _InternalSerialize(::uint8_t *PROTOBUF_NONNULL target, ::google::protobuf::io::EpsCopyOutputStream *PROTOBUF_NONNULL stream) const final
Definition result.pb.cc:587
const ::google::protobuf::internal::ClassData *PROTOBUF_NONNULL GetClassData() const PROTOBUF_FINAL
Definition result.pb.cc:512
friend void swap(ProblemStatusProto &a, ProblemStatusProto &b)
Definition result.pb.h:304
const ::google::protobuf::UnknownFieldSet & unknown_fields() const ABSL_ATTRIBUTE_LIFETIME_BOUND
Definition result.pb.h:281
ABSL_ATTRIBUTE_REINITIALIZES void Clear() PROTOBUF_FINAL
Definition result.pb.cc:564
::google::protobuf::Metadata GetMetadata() const
Definition result.pb.cc:724
void CopyFrom(const ProblemStatusProto &from)
Definition result.pb.cc:704
void MergeFrom(const ProblemStatusProto &from)
Definition result.pb.h:327
static void *PROTOBUF_NONNULL PlacementNew_(const void *PROTOBUF_NONNULL, void *PROTOBUF_NONNULL mem, ::google::protobuf::Arena *PROTOBUF_NULLABLE arena)
Definition result.pb.cc:475
friend class ::google::protobuf::Arena
Definition result.pb.h:435
static void *PROTOBUF_NONNULL PlacementNew_(const void *PROTOBUF_NONNULL, void *PROTOBUF_NONNULL mem, ::google::protobuf::Arena *PROTOBUF_NULLABLE arena)
const ::google::protobuf::internal::ClassData *PROTOBUF_NONNULL GetClassData() const PROTOBUF_FINAL
ABSL_ATTRIBUTE_REINITIALIZES void Clear() PROTOBUF_FINAL
void MergeFrom(const SolveResultProto_PdlpOutput &from)
Definition result.pb.h:1288
::uint8_t *PROTOBUF_NONNULL _InternalSerialize(::uint8_t *PROTOBUF_NONNULL target, ::google::protobuf::io::EpsCopyOutputStream *PROTOBUF_NONNULL stream) const final
friend void swap(SolveResultProto_PdlpOutput &a, SolveResultProto_PdlpOutput &b)
Definition result.pb.h:1265
::google::protobuf::Metadata GetMetadata() const
void CopyFrom(const SolveResultProto_PdlpOutput &from)
friend class ::google::protobuf::MessageLite
Definition result.pb.h:1719
void set_allocated_osqp_output(::operations_research::math_opt::OsqpOutput *PROTOBUF_NULLABLE value)
friend void swap(SolveResultProto &a, SolveResultProto &b)
Definition result.pb.h:1468
::google::protobuf::Metadata GetMetadata() const
void MergeFrom(const SolveResultProto &from)
Definition result.pb.h:1491
void set_allocated_pdlp_output(::operations_research::math_opt::SolveResultProto_PdlpOutput *PROTOBUF_NULLABLE value)
static void *PROTOBUF_NONNULL PlacementNew_(const void *PROTOBUF_NONNULL, void *PROTOBUF_NONNULL mem, ::google::protobuf::Arena *PROTOBUF_NULLABLE arena)
const ::operations_research::math_opt::OsqpOutput & osqp_output() const
Definition result.pb.h:3089
const ::google::protobuf::internal::ClassData *PROTOBUF_NONNULL GetClassData() const PROTOBUF_FINAL
void CopyFrom(const SolveResultProto &from)
const ::operations_research::math_opt::SolveResultProto_PdlpOutput & pdlp_output() const
Definition result.pb.h:3170
::uint8_t *PROTOBUF_NONNULL _InternalSerialize(::uint8_t *PROTOBUF_NONNULL target, ::google::protobuf::io::EpsCopyOutputStream *PROTOBUF_NONNULL stream) const final
SolverSpecificOutputCase solver_specific_output_case() const
Definition result.pb.h:3219
void set_allocated_gscip_output(::operations_research::GScipOutput *PROTOBUF_NULLABLE value)
const ::operations_research::GScipOutput & gscip_output() const
Definition result.pb.h:3019
ABSL_ATTRIBUTE_REINITIALIZES void Clear() PROTOBUF_FINAL
friend class ::google::protobuf::Arena
Definition result.pb.h:1720
decltype(::std::declval< SolveStatsProto >()._impl_._has_bits_) HasBits
Definition result.pb.cc:732
static constexpr auto InternalGenerateClassData_()
Definition result.pb.cc:825
static void *PROTOBUF_NONNULL PlacementNew_(const void *PROTOBUF_NONNULL, void *PROTOBUF_NONNULL mem, ::google::protobuf::Arena *PROTOBUF_NULLABLE arena)
Definition result.pb.cc:816
::uint8_t *PROTOBUF_NONNULL _InternalSerialize(::uint8_t *PROTOBUF_NONNULL target, ::google::protobuf::io::EpsCopyOutputStream *PROTOBUF_NONNULL stream) const final
Definition result.pb.cc:970
const ::google::protobuf::internal::ClassData *PROTOBUF_NONNULL GetClassData() const PROTOBUF_FINAL
Definition result.pb.cc:853
void CopyFrom(const SolveStatsProto &from)
void MergeFrom(const SolveStatsProto &from)
Definition result.pb.h:1002
const ::google::protobuf::UnknownFieldSet & unknown_fields() const ABSL_ATTRIBUTE_LIFETIME_BOUND
Definition result.pb.h:956
ABSL_ATTRIBUTE_REINITIALIZES void Clear() PROTOBUF_FINAL
Definition result.pb.cc:937
::google::protobuf::Metadata GetMetadata() const
friend class ::google::protobuf::MessageLite
Definition result.pb.h:891
const ::google::protobuf::internal::ClassData *PROTOBUF_NONNULL GetClassData() const PROTOBUF_FINAL
::google::protobuf::Metadata GetMetadata() const
void MergeFrom(const TerminationProto &from)
Definition result.pb.h:747
friend void swap(TerminationProto &a, TerminationProto &b)
Definition result.pb.h:724
ABSL_ATTRIBUTE_REINITIALIZES void Clear() PROTOBUF_FINAL
void CopyFrom(const TerminationProto &from)
static void *PROTOBUF_NONNULL PlacementNew_(const void *PROTOBUF_NONNULL, void *PROTOBUF_NONNULL mem, ::google::protobuf::Arena *PROTOBUF_NULLABLE arena)
::uint8_t *PROTOBUF_NONNULL _InternalSerialize(::uint8_t *PROTOBUF_NONNULL target, ::google::protobuf::io::EpsCopyOutputStream *PROTOBUF_NONNULL stream) const final
friend class ::google::protobuf::Arena
Definition result.pb.h:892
PROTOBUF_CONSTINITconst ::_pbi::DescriptorTable descriptor_table_ortools_2fgscip_2fgscip_2eproto
Definition gscip.pb.cc:460
An object oriented wrapper for quadratic constraints in ModelStorage.
Definition gurobi_isv.cc:28
const ::google::protobuf::EnumDescriptor *PROTOBUF_NONNULL TerminationReasonProto_descriptor()
Definition result.pb.cc:407
const ::google::protobuf::EnumDescriptor *PROTOBUF_NONNULL FeasibilityStatusProto_descriptor()
Definition result.pb.cc:401
PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT OR_PROTO_DLL PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 SolveStatsProtoDefaultTypeInternal _SolveStatsProto_default_instance_
Definition result.pb.cc:144
PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 const::google::protobuf::internal::ClassDataFull ObjectiveBoundsProto_class_data_
PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 const::google::protobuf::internal::ClassDataFull SolveStatsProto_class_data_
Definition result.pb.cc:849
PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT OR_PROTO_DLL PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 SolveResultProto_PdlpOutputDefaultTypeInternal _SolveResultProto_PdlpOutput_default_instance_
Definition result.pb.cc:169
const ::google::protobuf::EnumDescriptor *PROTOBUF_NONNULL LimitProto_descriptor()
Definition result.pb.cc:413
PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT OR_PROTO_DLL PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 SolveResultProtoDefaultTypeInternal _SolveResultProto_default_instance_
Definition result.pb.cc:200
PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 const::google::protobuf::internal::ClassDataFull SolveResultProto_class_data_
PROTOBUF_CONSTINIT const uint32_t LimitProto_internal_data_[]
Definition result.pb.cc:417
PROTOBUF_CONSTINIT const uint32_t TerminationReasonProto_internal_data_[]
Definition result.pb.cc:411
PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 const::google::protobuf::internal::ClassDataFull TerminationProto_class_data_
PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT OR_PROTO_DLL PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 ProblemStatusProtoDefaultTypeInternal _ProblemStatusProto_default_instance_
Definition result.pb.cc:55
PROTOBUF_CONSTINIT const uint32_t FeasibilityStatusProto_internal_data_[]
Definition result.pb.cc:405
PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT OR_PROTO_DLL PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 ObjectiveBoundsProtoDefaultTypeInternal _ObjectiveBoundsProto_default_instance_
Definition result.pb.cc:81
PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 const::google::protobuf::internal::ClassDataFull SolveResultProto_PdlpOutput_class_data_
PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT OR_PROTO_DLL PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 TerminationProtoDefaultTypeInternal _TerminationProto_default_instance_
Definition result.pb.cc:112
PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 const::google::protobuf::internal::ClassDataFull ProblemStatusProto_class_data_
Definition result.pb.cc:508
In SWIG mode, we don't want anything besides these top-level includes.
static constexpr ::_pbi::MigrationSchema *PROTOBUF_NULLABLE schemas
PROTOBUF_CONSTINITconst ::_pbi::DescriptorTable descriptor_table_ortools_2fmath_5fopt_2fsolvers_2fosqp_2eproto
Definition osqp.pb.cc:199
::absl::once_flag descriptor_table_ortools_2fmath_5fopt_2fresult_2eproto_once
Definition result.pb.cc:382
static constexprconst ::_pb::ServiceDescriptor *PROTOBUF_NONNULL *PROTOBUF_NULLABLE file_level_service_descriptors_ortools_2fmath_5fopt_2fresult_2eproto
Definition result.pb.cc:206
static const ::_pb::EnumDescriptor *PROTOBUF_NONNULL file_level_enum_descriptors_ortools_2fmath_5fopt_2fresult_2eproto[3]
Definition result.pb.cc:204
const ::uint32_t TableStruct_ortools_2fmath_5fopt_2fresult_2eproto::offsets[] ABSL_ATTRIBUTE_SECTION_VARIABLE(protodesc_cold)
PROTOBUF_CONSTINITconst ::_pbi::DescriptorTable descriptor_table_ortools_2fmath_5fopt_2fresult_2eproto
Definition result.pb.cc:383
static const ::_pbi::DescriptorTable *PROTOBUF_NONNULL const descriptor_table_ortools_2fmath_5fopt_2fresult_2eproto_deps[5]
Definition result.pb.cc:375
PROTOBUF_CONSTINITconst ::_pbi::DescriptorTable descriptor_table_ortools_2fmath_5fopt_2fsolution_2eproto
PROTOBUF_CONSTINITconst ::_pbi::DescriptorTable descriptor_table_ortools_2fpdlp_2fsolve_5flog_2eproto