Google OR-Tools v9.14
a fast and portable software suite for combinatorial optimization
Loading...
Searching...
No Matches
solution.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/solution.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 SparseBasisStatusVector::Impl_::Impl_(
31 ::_pbi::ConstantInitialized) noexcept
32 : ids_{},
33 _ids_cached_byte_size_{0},
34 values_{},
35 _values_cached_byte_size_{0},
36 _cached_size_{0} {}
37
38template <typename>
39PROTOBUF_CONSTEXPR SparseBasisStatusVector::SparseBasisStatusVector(::_pbi::ConstantInitialized)
40#if defined(PROTOBUF_CUSTOM_VTABLE)
41 : ::google::protobuf::Message(SparseBasisStatusVector_class_data_.base()),
42#else // PROTOBUF_CUSTOM_VTABLE
43 : ::google::protobuf::Message(),
44#endif // PROTOBUF_CUSTOM_VTABLE
45 _impl_(::_pbi::ConstantInitialized()) {
46}
54
55PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT OR_PROTO_DLL
57template <typename>
59#if defined(PROTOBUF_CUSTOM_VTABLE)
60 : PrimalSolutionProto_AuxiliaryObjectiveValuesEntry_DoNotUse::MapEntry(PrimalSolutionProto_AuxiliaryObjectiveValuesEntry_DoNotUse_class_data_.base()){}
61#else // PROTOBUF_CUSTOM_VTABLE
62 : PrimalSolutionProto_AuxiliaryObjectiveValuesEntry_DoNotUse::MapEntry() {
63}
64#endif // PROTOBUF_CUSTOM_VTABLE
72
73PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT OR_PROTO_DLL
75
76inline constexpr PrimalSolutionProto::Impl_::Impl_(
77 ::_pbi::ConstantInitialized) noexcept
78 : _cached_size_{0},
79 auxiliary_objective_values_{},
80 variable_values_{nullptr},
81 objective_value_{0},
82 feasibility_status_{static_cast< ::operations_research::math_opt::SolutionStatusProto >(0)} {}
83
84template <typename>
85PROTOBUF_CONSTEXPR PrimalSolutionProto::PrimalSolutionProto(::_pbi::ConstantInitialized)
86#if defined(PROTOBUF_CUSTOM_VTABLE)
87 : ::google::protobuf::Message(PrimalSolutionProto_class_data_.base()),
88#else // PROTOBUF_CUSTOM_VTABLE
89 : ::google::protobuf::Message(),
90#endif // PROTOBUF_CUSTOM_VTABLE
91 _impl_(::_pbi::ConstantInitialized()) {
92}
100
101PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT OR_PROTO_DLL
103
104inline constexpr PrimalRayProto::Impl_::Impl_(
105 ::_pbi::ConstantInitialized) noexcept
106 : _cached_size_{0},
107 variable_values_{nullptr} {}
108
109template <typename>
110PROTOBUF_CONSTEXPR PrimalRayProto::PrimalRayProto(::_pbi::ConstantInitialized)
111#if defined(PROTOBUF_CUSTOM_VTABLE)
112 : ::google::protobuf::Message(PrimalRayProto_class_data_.base()),
113#else // PROTOBUF_CUSTOM_VTABLE
114 : ::google::protobuf::Message(),
115#endif // PROTOBUF_CUSTOM_VTABLE
116 _impl_(::_pbi::ConstantInitialized()) {
117}
125
126PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT OR_PROTO_DLL
128
129inline constexpr DualSolutionProto::Impl_::Impl_(
130 ::_pbi::ConstantInitialized) noexcept
131 : _cached_size_{0},
132 dual_values_{nullptr},
133 reduced_costs_{nullptr},
134 quadratic_dual_values_{nullptr},
135 objective_value_{0},
136 feasibility_status_{static_cast< ::operations_research::math_opt::SolutionStatusProto >(0)} {}
137
138template <typename>
139PROTOBUF_CONSTEXPR DualSolutionProto::DualSolutionProto(::_pbi::ConstantInitialized)
140#if defined(PROTOBUF_CUSTOM_VTABLE)
141 : ::google::protobuf::Message(DualSolutionProto_class_data_.base()),
142#else // PROTOBUF_CUSTOM_VTABLE
143 : ::google::protobuf::Message(),
144#endif // PROTOBUF_CUSTOM_VTABLE
145 _impl_(::_pbi::ConstantInitialized()) {
146}
154
155PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT OR_PROTO_DLL
157
158inline constexpr DualRayProto::Impl_::Impl_(
159 ::_pbi::ConstantInitialized) noexcept
160 : _cached_size_{0},
161 dual_values_{nullptr},
162 reduced_costs_{nullptr} {}
163
164template <typename>
165PROTOBUF_CONSTEXPR DualRayProto::DualRayProto(::_pbi::ConstantInitialized)
166#if defined(PROTOBUF_CUSTOM_VTABLE)
167 : ::google::protobuf::Message(DualRayProto_class_data_.base()),
168#else // PROTOBUF_CUSTOM_VTABLE
169 : ::google::protobuf::Message(),
170#endif // PROTOBUF_CUSTOM_VTABLE
171 _impl_(::_pbi::ConstantInitialized()) {
172}
174 PROTOBUF_CONSTEXPR DualRayProtoDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {}
176 union {
178 };
179};
180
181PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT OR_PROTO_DLL
183
184inline constexpr BasisProto::Impl_::Impl_(
185 ::_pbi::ConstantInitialized) noexcept
186 : _cached_size_{0},
187 constraint_status_{nullptr},
188 variable_status_{nullptr},
189 basic_dual_feasibility_{static_cast< ::operations_research::math_opt::SolutionStatusProto >(0)} {}
190
191template <typename>
192PROTOBUF_CONSTEXPR BasisProto::BasisProto(::_pbi::ConstantInitialized)
193#if defined(PROTOBUF_CUSTOM_VTABLE)
194 : ::google::protobuf::Message(BasisProto_class_data_.base()),
195#else // PROTOBUF_CUSTOM_VTABLE
196 : ::google::protobuf::Message(),
197#endif // PROTOBUF_CUSTOM_VTABLE
198 _impl_(::_pbi::ConstantInitialized()) {
199}
201 PROTOBUF_CONSTEXPR BasisProtoDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {}
203 union {
205 };
206};
207
208PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT OR_PROTO_DLL
210
211inline constexpr SolutionProto::Impl_::Impl_(
212 ::_pbi::ConstantInitialized) noexcept
213 : _cached_size_{0},
214 primal_solution_{nullptr},
215 dual_solution_{nullptr},
216 basis_{nullptr} {}
217
218template <typename>
219PROTOBUF_CONSTEXPR SolutionProto::SolutionProto(::_pbi::ConstantInitialized)
220#if defined(PROTOBUF_CUSTOM_VTABLE)
221 : ::google::protobuf::Message(SolutionProto_class_data_.base()),
222#else // PROTOBUF_CUSTOM_VTABLE
223 : ::google::protobuf::Message(),
224#endif // PROTOBUF_CUSTOM_VTABLE
225 _impl_(::_pbi::ConstantInitialized()) {
226}
228 PROTOBUF_CONSTEXPR SolutionProtoDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {}
230 union {
232 };
233};
234
235PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT OR_PROTO_DLL
237} // namespace math_opt
238} // namespace operations_research
239static const ::_pb::EnumDescriptor* PROTOBUF_NONNULL
241static constexpr const ::_pb::ServiceDescriptor *PROTOBUF_NONNULL *PROTOBUF_NULLABLE
243const ::uint32_t
245 protodesc_cold) = {
246 0x081, // bitmap
248 5, // hasbit index offset
251 0,
252 1,
253 0x081, // bitmap
254 PROTOBUF_FIELD_OFFSET(::operations_research::math_opt::PrimalSolutionProto, _impl_._has_bits_),
255 7, // hasbit index offset
256 PROTOBUF_FIELD_OFFSET(::operations_research::math_opt::PrimalSolutionProto, _impl_.variable_values_),
257 PROTOBUF_FIELD_OFFSET(::operations_research::math_opt::PrimalSolutionProto, _impl_.objective_value_),
258 PROTOBUF_FIELD_OFFSET(::operations_research::math_opt::PrimalSolutionProto, _impl_.auxiliary_objective_values_),
259 PROTOBUF_FIELD_OFFSET(::operations_research::math_opt::PrimalSolutionProto, _impl_.feasibility_status_),
260 0,
261 1,
262 ~0u,
263 2,
264 0x081, // bitmap
265 PROTOBUF_FIELD_OFFSET(::operations_research::math_opt::PrimalRayProto, _impl_._has_bits_),
266 4, // hasbit index offset
267 PROTOBUF_FIELD_OFFSET(::operations_research::math_opt::PrimalRayProto, _impl_.variable_values_),
268 0,
269 0x081, // bitmap
270 PROTOBUF_FIELD_OFFSET(::operations_research::math_opt::DualSolutionProto, _impl_._has_bits_),
271 8, // hasbit index offset
272 PROTOBUF_FIELD_OFFSET(::operations_research::math_opt::DualSolutionProto, _impl_.dual_values_),
273 PROTOBUF_FIELD_OFFSET(::operations_research::math_opt::DualSolutionProto, _impl_.quadratic_dual_values_),
274 PROTOBUF_FIELD_OFFSET(::operations_research::math_opt::DualSolutionProto, _impl_.reduced_costs_),
275 PROTOBUF_FIELD_OFFSET(::operations_research::math_opt::DualSolutionProto, _impl_.objective_value_),
276 PROTOBUF_FIELD_OFFSET(::operations_research::math_opt::DualSolutionProto, _impl_.feasibility_status_),
277 0,
278 2,
279 1,
280 3,
281 4,
282 0x081, // bitmap
283 PROTOBUF_FIELD_OFFSET(::operations_research::math_opt::DualRayProto, _impl_._has_bits_),
284 5, // hasbit index offset
285 PROTOBUF_FIELD_OFFSET(::operations_research::math_opt::DualRayProto, _impl_.dual_values_),
286 PROTOBUF_FIELD_OFFSET(::operations_research::math_opt::DualRayProto, _impl_.reduced_costs_),
287 0,
288 1,
289 0x000, // bitmap
290 PROTOBUF_FIELD_OFFSET(::operations_research::math_opt::SparseBasisStatusVector, _impl_.ids_),
291 PROTOBUF_FIELD_OFFSET(::operations_research::math_opt::SparseBasisStatusVector, _impl_.values_),
292 0x081, // bitmap
293 PROTOBUF_FIELD_OFFSET(::operations_research::math_opt::BasisProto, _impl_._has_bits_),
294 6, // hasbit index offset
295 PROTOBUF_FIELD_OFFSET(::operations_research::math_opt::BasisProto, _impl_.constraint_status_),
296 PROTOBUF_FIELD_OFFSET(::operations_research::math_opt::BasisProto, _impl_.variable_status_),
297 PROTOBUF_FIELD_OFFSET(::operations_research::math_opt::BasisProto, _impl_.basic_dual_feasibility_),
298 0,
299 1,
300 2,
301 0x081, // bitmap
302 PROTOBUF_FIELD_OFFSET(::operations_research::math_opt::SolutionProto, _impl_._has_bits_),
303 6, // hasbit index offset
304 PROTOBUF_FIELD_OFFSET(::operations_research::math_opt::SolutionProto, _impl_.primal_solution_),
305 PROTOBUF_FIELD_OFFSET(::operations_research::math_opt::SolutionProto, _impl_.dual_solution_),
306 PROTOBUF_FIELD_OFFSET(::operations_research::math_opt::SolutionProto, _impl_.basis_),
307 0,
308 1,
309 2,
310};
311
312static const ::_pbi::MigrationSchema
313 schemas[] ABSL_ATTRIBUTE_SECTION_VARIABLE(protodesc_cold) = {
322};
333const char descriptor_table_protodef_ortools_2fmath_5fopt_2fsolution_2eproto[] ABSL_ATTRIBUTE_SECTION_VARIABLE(
334 protodesc_cold) = {
335 "\n\037ortools/math_opt/solution.proto\022\034opera"
336 "tions_research.math_opt\032(ortools/math_op"
337 "t/sparse_containers.proto\"\203\003\n\023PrimalSolu"
338 "tionProto\022N\n\017variable_values\030\001 \001(\01325.ope"
339 "rations_research.math_opt.SparseDoubleVe"
340 "ctorProto\022\027\n\017objective_value\030\002 \001(\001\022s\n\032au"
341 "xiliary_objective_values\030\004 \003(\0132O.operati"
342 "ons_research.math_opt.PrimalSolutionProt"
343 "o.AuxiliaryObjectiveValuesEntry\022M\n\022feasi"
344 "bility_status\030\003 \001(\01621.operations_researc"
345 "h.math_opt.SolutionStatusProto\032\?\n\035Auxili"
346 "aryObjectiveValuesEntry\022\013\n\003key\030\001 \001(\003\022\r\n\005"
347 "value\030\002 \001(\001:\0028\001\"`\n\016PrimalRayProto\022N\n\017var"
348 "iable_values\030\001 \001(\01325.operations_research"
349 ".math_opt.SparseDoubleVectorProto\"\204\003\n\021Du"
350 "alSolutionProto\022J\n\013dual_values\030\001 \001(\01325.o"
351 "perations_research.math_opt.SparseDouble"
352 "VectorProto\022T\n\025quadratic_dual_values\030\005 \001"
353 "(\01325.operations_research.math_opt.Sparse"
354 "DoubleVectorProto\022L\n\rreduced_costs\030\002 \001(\013"
355 "25.operations_research.math_opt.SparseDo"
356 "ubleVectorProto\022\034\n\017objective_value\030\003 \001(\001"
357 "H\000\210\001\001\022M\n\022feasibility_status\030\004 \001(\01621.oper"
358 "ations_research.math_opt.SolutionStatusP"
359 "rotoB\022\n\020_objective_value\"\250\001\n\014DualRayProt"
360 "o\022J\n\013dual_values\030\001 \001(\01325.operations_rese"
361 "arch.math_opt.SparseDoubleVectorProto\022L\n"
362 "\rreduced_costs\030\002 \001(\01325.operations_resear"
363 "ch.math_opt.SparseDoubleVectorProto\"f\n\027S"
364 "parseBasisStatusVector\022\013\n\003ids\030\001 \003(\003\022>\n\006v"
365 "alues\030\002 \003(\0162..operations_research.math_o"
366 "pt.BasisStatusProto\"\201\002\n\nBasisProto\022P\n\021co"
367 "nstraint_status\030\001 \001(\01325.operations_resea"
368 "rch.math_opt.SparseBasisStatusVector\022N\n\017"
369 "variable_status\030\002 \001(\01325.operations_resea"
370 "rch.math_opt.SparseBasisStatusVector\022Q\n\026"
371 "basic_dual_feasibility\030\003 \001(\01621.operation"
372 "s_research.math_opt.SolutionStatusProto\""
373 "\233\002\n\rSolutionProto\022O\n\017primal_solution\030\001 \001"
374 "(\01321.operations_research.math_opt.Primal"
375 "SolutionProtoH\000\210\001\001\022K\n\rdual_solution\030\002 \001("
376 "\0132/.operations_research.math_opt.DualSol"
377 "utionProtoH\001\210\001\001\022<\n\005basis\030\003 \001(\0132(.operati"
378 "ons_research.math_opt.BasisProtoH\002\210\001\001B\022\n"
379 "\020_primal_solutionB\020\n\016_dual_solutionB\010\n\006_"
380 "basis*\226\001\n\023SolutionStatusProto\022\037\n\033SOLUTIO"
381 "N_STATUS_UNSPECIFIED\020\000\022 \n\034SOLUTION_STATU"
382 "S_UNDETERMINED\020\001\022\034\n\030SOLUTION_STATUS_FEAS"
383 "IBLE\020\002\022\036\n\032SOLUTION_STATUS_INFEASIBLE\020\003*\277"
384 "\001\n\020BasisStatusProto\022\034\n\030BASIS_STATUS_UNSP"
385 "ECIFIED\020\000\022\025\n\021BASIS_STATUS_FREE\020\001\022\037\n\033BASI"
386 "S_STATUS_AT_LOWER_BOUND\020\002\022\037\n\033BASIS_STATU"
387 "S_AT_UPPER_BOUND\020\003\022\034\n\030BASIS_STATUS_FIXED"
388 "_VALUE\020\004\022\026\n\022BASIS_STATUS_BASIC\020\005B\036\n\032com."
389 "google.ortools.mathoptP\001b\006proto3"
390};
391static const ::_pbi::DescriptorTable* PROTOBUF_NONNULL const
412namespace operations_research {
413namespace math_opt {
414const ::google::protobuf::EnumDescriptor* PROTOBUF_NONNULL SolutionStatusProto_descriptor() {
415 ::google::protobuf::internal::AssignDescriptors(&descriptor_table_ortools_2fmath_5fopt_2fsolution_2eproto);
417}
418PROTOBUF_CONSTINIT const uint32_t SolutionStatusProto_internal_data_[] = {
419 262144u, 0u, };
420const ::google::protobuf::EnumDescriptor* PROTOBUF_NONNULL BasisStatusProto_descriptor() {
421 ::google::protobuf::internal::AssignDescriptors(&descriptor_table_ortools_2fmath_5fopt_2fsolution_2eproto);
423}
424PROTOBUF_CONSTINIT const uint32_t BasisStatusProto_internal_data_[] = {
425 393216u, 0u, };
426// ===================================================================
427
428#if defined(PROTOBUF_CUSTOM_VTABLE)
431PrimalSolutionProto_AuxiliaryObjectiveValuesEntry_DoNotUse::PrimalSolutionProto_AuxiliaryObjectiveValuesEntry_DoNotUse(::google::protobuf::Arena* PROTOBUF_NULLABLE arena)
432 : SuperType(arena, PrimalSolutionProto_AuxiliaryObjectiveValuesEntry_DoNotUse_class_data_.base()) {}
433#else // PROTOBUF_CUSTOM_VTABLE
434PrimalSolutionProto_AuxiliaryObjectiveValuesEntry_DoNotUse::PrimalSolutionProto_AuxiliaryObjectiveValuesEntry_DoNotUse() : SuperType() {}
436#endif // PROTOBUF_CUSTOM_VTABLE
437inline void* PROTOBUF_NONNULL PrimalSolutionProto_AuxiliaryObjectiveValuesEntry_DoNotUse::PlacementNew_(
438 const void* PROTOBUF_NONNULL, void* PROTOBUF_NONNULL mem,
439 ::google::protobuf::Arena* PROTOBUF_NULLABLE arena) {
441}
442constexpr auto PrimalSolutionProto_AuxiliaryObjectiveValuesEntry_DoNotUse::InternalNewImpl_() {
443 return ::google::protobuf::internal::MessageCreator::ZeroInit(sizeof(PrimalSolutionProto_AuxiliaryObjectiveValuesEntry_DoNotUse),
445}
447 return ::google::protobuf::internal::ClassDataFull{
448 ::google::protobuf::internal::ClassData{
450 &_table_.header,
451 nullptr, // OnDemandRegisterArenaDtor
452 nullptr, // IsInitialized
453 &PrimalSolutionProto_AuxiliaryObjectiveValuesEntry_DoNotUse::MergeImpl,
454 ::google::protobuf::Message::GetNewImpl<PrimalSolutionProto_AuxiliaryObjectiveValuesEntry_DoNotUse>(),
455#if defined(PROTOBUF_CUSTOM_VTABLE)
456 &PrimalSolutionProto_AuxiliaryObjectiveValuesEntry_DoNotUse::SharedDtor,
457 static_cast<void (::google::protobuf::MessageLite::*)()>(&PrimalSolutionProto_AuxiliaryObjectiveValuesEntry_DoNotUse::ClearImpl),
458 ::google::protobuf::Message::ByteSizeLongImpl, ::google::protobuf::Message::_InternalSerializeImpl
459 ,
460#endif // PROTOBUF_CUSTOM_VTABLE
461 PROTOBUF_FIELD_OFFSET(PrimalSolutionProto_AuxiliaryObjectiveValuesEntry_DoNotUse, _impl_._cached_size_),
462 false,
463 },
464 &PrimalSolutionProto_AuxiliaryObjectiveValuesEntry_DoNotUse::kDescriptorMethods,
466 nullptr, // tracker
467 };
468}
469
470PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 const
471 ::google::protobuf::internal::ClassDataFull PrimalSolutionProto_AuxiliaryObjectiveValuesEntry_DoNotUse_class_data_ =
473
474PROTOBUF_ATTRIBUTE_WEAK const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL
475PrimalSolutionProto_AuxiliaryObjectiveValuesEntry_DoNotUse::GetClassData() const {
476 ::google::protobuf::internal::PrefetchToLocalCache(&PrimalSolutionProto_AuxiliaryObjectiveValuesEntry_DoNotUse_class_data_);
477 ::google::protobuf::internal::PrefetchToLocalCache(PrimalSolutionProto_AuxiliaryObjectiveValuesEntry_DoNotUse_class_data_.tc_table);
479}
480PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1
481const ::_pbi::TcParseTable<1, 2, 0, 0, 2>
482PrimalSolutionProto_AuxiliaryObjectiveValuesEntry_DoNotUse::_table_ = {
483 {
484 PROTOBUF_FIELD_OFFSET(PrimalSolutionProto_AuxiliaryObjectiveValuesEntry_DoNotUse, _impl_._has_bits_),
485 0, // no _extensions_
486 2, 8, // max_field_number, fast_idx_mask
487 offsetof(decltype(_table_), field_lookup_table),
488 4294967292, // skipmap
489 offsetof(decltype(_table_), field_entries),
490 2, // num_field_entries
491 0, // num_aux_entries
492 offsetof(decltype(_table_), field_names), // no aux_entries
494 nullptr, // post_loop_handler
495 ::_pbi::TcParser::DiscardEverythingFallback, // fallback
496 #ifdef PROTOBUF_PREFETCH_PARSE_TABLE
497 ::_pbi::TcParser::GetTable<::operations_research::math_opt::PrimalSolutionProto_AuxiliaryObjectiveValuesEntry_DoNotUse>(), // to_prefetch
498 #endif // PROTOBUF_PREFETCH_PARSE_TABLE
499 }, {{
500 // double value = 2;
501 {::_pbi::TcParser::FastF64S1,
502 {17, 1, 0, PROTOBUF_FIELD_OFFSET(PrimalSolutionProto_AuxiliaryObjectiveValuesEntry_DoNotUse, _impl_.value_)}},
503 // int64 key = 1;
504 {::_pbi::TcParser::SingularVarintNoZag1<::uint64_t, offsetof(PrimalSolutionProto_AuxiliaryObjectiveValuesEntry_DoNotUse, _impl_.key_), 0>(),
505 {8, 0, 0, PROTOBUF_FIELD_OFFSET(PrimalSolutionProto_AuxiliaryObjectiveValuesEntry_DoNotUse, _impl_.key_)}},
506 }}, {{
507 65535, 65535
508 }}, {{
509 // int64 key = 1;
510 {PROTOBUF_FIELD_OFFSET(PrimalSolutionProto_AuxiliaryObjectiveValuesEntry_DoNotUse, _impl_.key_), _Internal::kHasBitsOffset + 0, 0,
511 (0 | ::_fl::kFcOptional | ::_fl::kInt64)},
512 // double value = 2;
513 {PROTOBUF_FIELD_OFFSET(PrimalSolutionProto_AuxiliaryObjectiveValuesEntry_DoNotUse, _impl_.value_), _Internal::kHasBitsOffset + 1, 0,
514 (0 | ::_fl::kFcOptional | ::_fl::kDouble)},
515 }},
516 // no aux_entries
517 {{
518 }},
519};
520// ===================================================================
521
523 public:
524 using HasBits =
525 decltype(::std::declval<PrimalSolutionProto>()._impl_._has_bits_);
526 static constexpr ::int32_t kHasBitsOffset =
527 8 * PROTOBUF_FIELD_OFFSET(PrimalSolutionProto, _impl_._has_bits_);
529
531 ::google::protobuf::internal::TSanWrite(&_impl_);
532 if (_impl_.variable_values_ != nullptr) _impl_.variable_values_->Clear();
533 _impl_._has_bits_[0] &= ~0x00000001u;
534}
535PrimalSolutionProto::PrimalSolutionProto(::google::protobuf::Arena* PROTOBUF_NULLABLE arena)
536#if defined(PROTOBUF_CUSTOM_VTABLE)
537 : ::google::protobuf::Message(arena, PrimalSolutionProto_class_data_.base()) {
538#else // PROTOBUF_CUSTOM_VTABLE
539 : ::google::protobuf::Message(arena) {
540#endif // PROTOBUF_CUSTOM_VTABLE
541 SharedCtor(arena);
542 // @@protoc_insertion_point(arena_constructor:operations_research.math_opt.PrimalSolutionProto)
543}
544PROTOBUF_NDEBUG_INLINE PrimalSolutionProto::Impl_::Impl_(
545 ::google::protobuf::internal::InternalVisibility visibility,
546 ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const Impl_& from,
547 const ::operations_research::math_opt::PrimalSolutionProto& from_msg)
548 : _has_bits_{from._has_bits_},
549 _cached_size_{0},
550 auxiliary_objective_values_{visibility, arena, from.auxiliary_objective_values_} {}
551
553 ::google::protobuf::Arena* PROTOBUF_NULLABLE arena,
555#if defined(PROTOBUF_CUSTOM_VTABLE)
556 : ::google::protobuf::Message(arena, PrimalSolutionProto_class_data_.base()) {
557#else // PROTOBUF_CUSTOM_VTABLE
558 : ::google::protobuf::Message(arena) {
559#endif // PROTOBUF_CUSTOM_VTABLE
560 PrimalSolutionProto* const _this = this;
561 (void)_this;
562 _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(
563 from._internal_metadata_);
564 new (&_impl_) Impl_(internal_visibility(), arena, from._impl_, from);
565 ::uint32_t cached_has_bits = _impl_._has_bits_[0];
566 _impl_.variable_values_ = ((cached_has_bits & 0x00000001u) != 0)
567 ? ::google::protobuf::Message::CopyConstruct(arena, *from._impl_.variable_values_)
568 : nullptr;
569 ::memcpy(reinterpret_cast<char *>(&_impl_) +
570 offsetof(Impl_, objective_value_),
571 reinterpret_cast<const char *>(&from._impl_) +
572 offsetof(Impl_, objective_value_),
573 offsetof(Impl_, feasibility_status_) -
574 offsetof(Impl_, objective_value_) +
575 sizeof(Impl_::feasibility_status_));
576
577 // @@protoc_insertion_point(copy_constructor:operations_research.math_opt.PrimalSolutionProto)
578}
579PROTOBUF_NDEBUG_INLINE PrimalSolutionProto::Impl_::Impl_(
580 ::google::protobuf::internal::InternalVisibility visibility,
581 ::google::protobuf::Arena* PROTOBUF_NULLABLE arena)
582 : _cached_size_{0},
583 auxiliary_objective_values_{visibility, arena} {}
584
585inline void PrimalSolutionProto::SharedCtor(::_pb::Arena* PROTOBUF_NULLABLE arena) {
586 new (&_impl_) Impl_(internal_visibility(), arena);
587 ::memset(reinterpret_cast<char *>(&_impl_) +
588 offsetof(Impl_, variable_values_),
589 0,
590 offsetof(Impl_, feasibility_status_) -
591 offsetof(Impl_, variable_values_) +
592 sizeof(Impl_::feasibility_status_));
593}
595 // @@protoc_insertion_point(destructor:operations_research.math_opt.PrimalSolutionProto)
596 SharedDtor(*this);
597}
598inline void PrimalSolutionProto::SharedDtor(MessageLite& self) {
599 PrimalSolutionProto& this_ = static_cast<PrimalSolutionProto&>(self);
600 this_._internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>();
601 ABSL_DCHECK(this_.GetArena() == nullptr);
602 delete this_._impl_.variable_values_;
603 this_._impl_.~Impl_();
604}
605
606inline void* PROTOBUF_NONNULL PrimalSolutionProto::PlacementNew_(
607 const void* PROTOBUF_NONNULL, void* PROTOBUF_NONNULL mem,
608 ::google::protobuf::Arena* PROTOBUF_NULLABLE arena) {
609 return ::new (mem) PrimalSolutionProto(arena);
610}
612 constexpr auto arena_bits = ::google::protobuf::internal::EncodePlacementArenaOffsets({
613 PROTOBUF_FIELD_OFFSET(PrimalSolutionProto, _impl_.auxiliary_objective_values_) +
614 decltype(PrimalSolutionProto::_impl_.auxiliary_objective_values_)::
615 InternalGetArenaOffset(
616 ::google::protobuf::Message::internal_visibility()),
617 PROTOBUF_FIELD_OFFSET(PrimalSolutionProto, _impl_.auxiliary_objective_values_) +
618 decltype(PrimalSolutionProto::_impl_.auxiliary_objective_values_)::
619 InternalGetArenaOffsetAlt(
620 ::google::protobuf::Message::internal_visibility()),
621 });
622 if (arena_bits.has_value()) {
623 return ::google::protobuf::internal::MessageCreator::CopyInit(
624 sizeof(PrimalSolutionProto), alignof(PrimalSolutionProto), *arena_bits);
625 } else {
626 return ::google::protobuf::internal::MessageCreator(&PrimalSolutionProto::PlacementNew_,
627 sizeof(PrimalSolutionProto),
628 alignof(PrimalSolutionProto));
629 }
630}
632 return ::google::protobuf::internal::ClassDataFull{
633 ::google::protobuf::internal::ClassData{
635 &_table_.header,
636 nullptr, // OnDemandRegisterArenaDtor
637 nullptr, // IsInitialized
638 &PrimalSolutionProto::MergeImpl,
639 ::google::protobuf::Message::GetNewImpl<PrimalSolutionProto>(),
640#if defined(PROTOBUF_CUSTOM_VTABLE)
641 &PrimalSolutionProto::SharedDtor,
642 ::google::protobuf::Message::GetClearImpl<PrimalSolutionProto>(), &PrimalSolutionProto::ByteSizeLong,
644#endif // PROTOBUF_CUSTOM_VTABLE
645 PROTOBUF_FIELD_OFFSET(PrimalSolutionProto, _impl_._cached_size_),
646 false,
647 },
648 &PrimalSolutionProto::kDescriptorMethods,
650 nullptr, // tracker
651 };
652}
653
654PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 const
655 ::google::protobuf::internal::ClassDataFull PrimalSolutionProto_class_data_ =
658PROTOBUF_ATTRIBUTE_WEAK const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL
660 ::google::protobuf::internal::PrefetchToLocalCache(&PrimalSolutionProto_class_data_);
661 ::google::protobuf::internal::PrefetchToLocalCache(PrimalSolutionProto_class_data_.tc_table);
663}
664PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1
665const ::_pbi::TcParseTable<2, 4, 2, 0, 2>
666PrimalSolutionProto::_table_ = {
667 {
668 PROTOBUF_FIELD_OFFSET(PrimalSolutionProto, _impl_._has_bits_),
669 0, // no _extensions_
670 4, 24, // max_field_number, fast_idx_mask
671 offsetof(decltype(_table_), field_lookup_table),
672 4294967280, // skipmap
673 offsetof(decltype(_table_), field_entries),
674 4, // num_field_entries
675 2, // num_aux_entries
676 offsetof(decltype(_table_), aux_entries),
678 nullptr, // post_loop_handler
679 ::_pbi::TcParser::GenericFallback, // fallback
680 #ifdef PROTOBUF_PREFETCH_PARSE_TABLE
681 ::_pbi::TcParser::GetTable<::operations_research::math_opt::PrimalSolutionProto>(), // to_prefetch
682 #endif // PROTOBUF_PREFETCH_PARSE_TABLE
683 }, {{
684 {::_pbi::TcParser::MiniParse, {}},
685 // .operations_research.math_opt.SparseDoubleVectorProto variable_values = 1;
686 {::_pbi::TcParser::FastMtS1,
687 {10, 0, 0, PROTOBUF_FIELD_OFFSET(PrimalSolutionProto, _impl_.variable_values_)}},
688 // double objective_value = 2;
689 {::_pbi::TcParser::FastF64S1,
690 {17, 1, 0, PROTOBUF_FIELD_OFFSET(PrimalSolutionProto, _impl_.objective_value_)}},
691 // .operations_research.math_opt.SolutionStatusProto feasibility_status = 3;
692 {::_pbi::TcParser::SingularVarintNoZag1<::uint32_t, offsetof(PrimalSolutionProto, _impl_.feasibility_status_), 2>(),
693 {24, 2, 0, PROTOBUF_FIELD_OFFSET(PrimalSolutionProto, _impl_.feasibility_status_)}},
694 }}, {{
695 65535, 65535
696 }}, {{
697 // .operations_research.math_opt.SparseDoubleVectorProto variable_values = 1;
698 {PROTOBUF_FIELD_OFFSET(PrimalSolutionProto, _impl_.variable_values_), _Internal::kHasBitsOffset + 0, 0,
699 (0 | ::_fl::kFcOptional | ::_fl::kMessage | ::_fl::kTvTable)},
700 // double objective_value = 2;
701 {PROTOBUF_FIELD_OFFSET(PrimalSolutionProto, _impl_.objective_value_), _Internal::kHasBitsOffset + 1, 0,
702 (0 | ::_fl::kFcOptional | ::_fl::kDouble)},
703 // .operations_research.math_opt.SolutionStatusProto feasibility_status = 3;
704 {PROTOBUF_FIELD_OFFSET(PrimalSolutionProto, _impl_.feasibility_status_), _Internal::kHasBitsOffset + 2, 0,
705 (0 | ::_fl::kFcOptional | ::_fl::kOpenEnum)},
706 // map<int64, double> auxiliary_objective_values = 4;
707 {PROTOBUF_FIELD_OFFSET(PrimalSolutionProto, _impl_.auxiliary_objective_values_), -1, 1,
708 (0 | ::_fl::kFcRepeated | ::_fl::kMap)},
709 }},
710 {{
711 {::_pbi::TcParser::GetTable<::operations_research::math_opt::SparseDoubleVectorProto>()},
712 {::_pbi::TcParser::GetMapAuxInfo(0, 0, 0,
713 3, 1,
714 0)},
715 }},
716 {{
717 }},
718};
719PROTOBUF_NOINLINE void PrimalSolutionProto::Clear() {
720// @@protoc_insertion_point(message_clear_start:operations_research.math_opt.PrimalSolutionProto)
721 ::google::protobuf::internal::TSanWrite(&_impl_);
722 ::uint32_t cached_has_bits = 0;
723 // Prevent compiler warnings about cached_has_bits being unused
724 (void) cached_has_bits;
725
726 _impl_.auxiliary_objective_values_.Clear();
727 cached_has_bits = _impl_._has_bits_[0];
728 if ((cached_has_bits & 0x00000001u) != 0) {
729 ABSL_DCHECK(_impl_.variable_values_ != nullptr);
730 _impl_.variable_values_->Clear();
731 }
732 if ((cached_has_bits & 0x00000006u) != 0) {
733 ::memset(&_impl_.objective_value_, 0, static_cast<::size_t>(
734 reinterpret_cast<char*>(&_impl_.feasibility_status_) -
735 reinterpret_cast<char*>(&_impl_.objective_value_)) + sizeof(_impl_.feasibility_status_));
736 }
737 _impl_._has_bits_.Clear();
738 _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>();
739}
740
741#if defined(PROTOBUF_CUSTOM_VTABLE)
742::uint8_t* PROTOBUF_NONNULL PrimalSolutionProto::_InternalSerialize(
743 const ::google::protobuf::MessageLite& base, ::uint8_t* PROTOBUF_NONNULL target,
744 ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) {
745 const PrimalSolutionProto& this_ = static_cast<const PrimalSolutionProto&>(base);
746#else // PROTOBUF_CUSTOM_VTABLE
747::uint8_t* PROTOBUF_NONNULL PrimalSolutionProto::_InternalSerialize(
748 ::uint8_t* PROTOBUF_NONNULL target,
749 ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const {
750 const PrimalSolutionProto& this_ = *this;
751#endif // PROTOBUF_CUSTOM_VTABLE
752 // @@protoc_insertion_point(serialize_to_array_start:operations_research.math_opt.PrimalSolutionProto)
753 ::uint32_t cached_has_bits = 0;
754 (void)cached_has_bits;
755
756 cached_has_bits = this_._impl_._has_bits_[0];
757 // .operations_research.math_opt.SparseDoubleVectorProto variable_values = 1;
758 if ((cached_has_bits & 0x00000001u) != 0) {
759 target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage(
760 1, *this_._impl_.variable_values_, this_._impl_.variable_values_->GetCachedSize(), target,
761 stream);
762 }
763
764 // double objective_value = 2;
765 if ((cached_has_bits & 0x00000002u) != 0) {
766 if (::absl::bit_cast<::uint64_t>(this_._internal_objective_value()) != 0) {
767 target = stream->EnsureSpace(target);
768 target = ::_pbi::WireFormatLite::WriteDoubleToArray(
769 2, this_._internal_objective_value(), target);
770 }
771 }
772
773 // .operations_research.math_opt.SolutionStatusProto feasibility_status = 3;
774 if ((cached_has_bits & 0x00000004u) != 0) {
775 if (this_._internal_feasibility_status() != 0) {
776 target = stream->EnsureSpace(target);
777 target = ::_pbi::WireFormatLite::WriteEnumToArray(
778 3, this_._internal_feasibility_status(), target);
779 }
780 }
781
782 // map<int64, double> auxiliary_objective_values = 4;
783 if (!this_._internal_auxiliary_objective_values().empty()) {
784 using MapType = ::google::protobuf::Map<::int64_t, double>;
785 using WireHelper = _pbi::MapEntryFuncs<::int64_t, double,
786 _pbi::WireFormatLite::TYPE_INT64,
787 _pbi::WireFormatLite::TYPE_DOUBLE>;
788 const auto& field = this_._internal_auxiliary_objective_values();
789
790 if (stream->IsSerializationDeterministic() && field.size() > 1) {
791 for (const auto& entry : ::google::protobuf::internal::MapSorterFlat<MapType>(field)) {
792 target = WireHelper::InternalSerialize(
793 4, entry.first, entry.second, target, stream);
794 }
795 } else {
796 for (const auto& entry : field) {
797 target = WireHelper::InternalSerialize(
798 4, entry.first, entry.second, target, stream);
799 }
800 }
801 }
802
803 if (ABSL_PREDICT_FALSE(this_._internal_metadata_.have_unknown_fields())) {
804 target =
805 ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray(
806 this_._internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream);
807 }
808 // @@protoc_insertion_point(serialize_to_array_end:operations_research.math_opt.PrimalSolutionProto)
809 return target;
810}
811
812#if defined(PROTOBUF_CUSTOM_VTABLE)
814 const PrimalSolutionProto& this_ = static_cast<const PrimalSolutionProto&>(base);
815#else // PROTOBUF_CUSTOM_VTABLE
816::size_t PrimalSolutionProto::ByteSizeLong() const {
817 const PrimalSolutionProto& this_ = *this;
818#endif // PROTOBUF_CUSTOM_VTABLE
819 // @@protoc_insertion_point(message_byte_size_start:operations_research.math_opt.PrimalSolutionProto)
820 ::size_t total_size = 0;
821
822 ::uint32_t cached_has_bits = 0;
823 // Prevent compiler warnings about cached_has_bits being unused
824 (void)cached_has_bits;
825
826 ::_pbi::Prefetch5LinesFrom7Lines(&this_);
827 {
828 // map<int64, double> auxiliary_objective_values = 4;
829 {
830 total_size +=
831 1 * ::google::protobuf::internal::FromIntSize(this_._internal_auxiliary_objective_values_size());
832 for (const auto& entry : this_._internal_auxiliary_objective_values()) {
833 total_size += _pbi::MapEntryFuncs<::int64_t, double,
834 _pbi::WireFormatLite::TYPE_INT64,
835 _pbi::WireFormatLite::TYPE_DOUBLE>::ByteSizeLong(entry.first, entry.second);
836 }
837 }
838 }
839 cached_has_bits = this_._impl_._has_bits_[0];
840 if ((cached_has_bits & 0x00000007u) != 0) {
841 // .operations_research.math_opt.SparseDoubleVectorProto variable_values = 1;
842 if ((cached_has_bits & 0x00000001u) != 0) {
843 total_size += 1 +
844 ::google::protobuf::internal::WireFormatLite::MessageSize(*this_._impl_.variable_values_);
845 }
846 // double objective_value = 2;
847 if ((cached_has_bits & 0x00000002u) != 0) {
848 if (::absl::bit_cast<::uint64_t>(this_._internal_objective_value()) != 0) {
849 total_size += 9;
850 }
851 }
852 // .operations_research.math_opt.SolutionStatusProto feasibility_status = 3;
853 if ((cached_has_bits & 0x00000004u) != 0) {
854 if (this_._internal_feasibility_status() != 0) {
855 total_size += 1 +
856 ::_pbi::WireFormatLite::EnumSize(this_._internal_feasibility_status());
857 }
858 }
859 }
860 return this_.MaybeComputeUnknownFieldsSize(total_size,
861 &this_._impl_._cached_size_);
862}
863
864void PrimalSolutionProto::MergeImpl(::google::protobuf::MessageLite& to_msg, const ::google::protobuf::MessageLite& from_msg) {
865 auto* const _this = static_cast<PrimalSolutionProto*>(&to_msg);
866 auto& from = static_cast<const PrimalSolutionProto&>(from_msg);
867 ::google::protobuf::Arena* arena = _this->GetArena();
868 // @@protoc_insertion_point(class_specific_merge_from_start:operations_research.math_opt.PrimalSolutionProto)
869 ABSL_DCHECK_NE(&from, _this);
870 ::uint32_t cached_has_bits = 0;
871 (void) cached_has_bits;
872
873 _this->_impl_.auxiliary_objective_values_.MergeFrom(from._impl_.auxiliary_objective_values_);
874 cached_has_bits = from._impl_._has_bits_[0];
875 if ((cached_has_bits & 0x00000007u) != 0) {
876 if ((cached_has_bits & 0x00000001u) != 0) {
877 ABSL_DCHECK(from._impl_.variable_values_ != nullptr);
878 if (_this->_impl_.variable_values_ == nullptr) {
879 _this->_impl_.variable_values_ = ::google::protobuf::Message::CopyConstruct(arena, *from._impl_.variable_values_);
880 } else {
881 _this->_impl_.variable_values_->MergeFrom(*from._impl_.variable_values_);
882 }
883 }
884 if ((cached_has_bits & 0x00000002u) != 0) {
885 if (::absl::bit_cast<::uint64_t>(from._internal_objective_value()) != 0) {
886 _this->_impl_.objective_value_ = from._impl_.objective_value_;
887 }
888 }
889 if ((cached_has_bits & 0x00000004u) != 0) {
890 if (from._internal_feasibility_status() != 0) {
891 _this->_impl_.feasibility_status_ = from._impl_.feasibility_status_;
892 }
893 }
894 }
895 _this->_impl_._has_bits_[0] |= cached_has_bits;
896 _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_);
897}
898
900// @@protoc_insertion_point(class_specific_copy_from_start:operations_research.math_opt.PrimalSolutionProto)
901 if (&from == this) return;
902 Clear();
903 MergeFrom(from);
904}
905
906
907void PrimalSolutionProto::InternalSwap(PrimalSolutionProto* PROTOBUF_RESTRICT PROTOBUF_NONNULL other) {
908 using ::std::swap;
909 _internal_metadata_.InternalSwap(&other->_internal_metadata_);
910 swap(_impl_._has_bits_[0], other->_impl_._has_bits_[0]);
911 _impl_.auxiliary_objective_values_.InternalSwap(&other->_impl_.auxiliary_objective_values_);
912 ::google::protobuf::internal::memswap<
913 PROTOBUF_FIELD_OFFSET(PrimalSolutionProto, _impl_.feasibility_status_)
914 + sizeof(PrimalSolutionProto::_impl_.feasibility_status_)
915 - PROTOBUF_FIELD_OFFSET(PrimalSolutionProto, _impl_.variable_values_)>(
916 reinterpret_cast<char*>(&_impl_.variable_values_),
917 reinterpret_cast<char*>(&other->_impl_.variable_values_));
918}
919
920::google::protobuf::Metadata PrimalSolutionProto::GetMetadata() const {
921 return ::google::protobuf::Message::GetMetadataImpl(GetClassData()->full());
923// ===================================================================
924
926 public:
927 using HasBits =
928 decltype(::std::declval<PrimalRayProto>()._impl_._has_bits_);
929 static constexpr ::int32_t kHasBitsOffset =
930 8 * PROTOBUF_FIELD_OFFSET(PrimalRayProto, _impl_._has_bits_);
931};
934 ::google::protobuf::internal::TSanWrite(&_impl_);
935 if (_impl_.variable_values_ != nullptr) _impl_.variable_values_->Clear();
936 _impl_._has_bits_[0] &= ~0x00000001u;
937}
938PrimalRayProto::PrimalRayProto(::google::protobuf::Arena* PROTOBUF_NULLABLE arena)
939#if defined(PROTOBUF_CUSTOM_VTABLE)
940 : ::google::protobuf::Message(arena, PrimalRayProto_class_data_.base()) {
941#else // PROTOBUF_CUSTOM_VTABLE
942 : ::google::protobuf::Message(arena) {
943#endif // PROTOBUF_CUSTOM_VTABLE
944 SharedCtor(arena);
945 // @@protoc_insertion_point(arena_constructor:operations_research.math_opt.PrimalRayProto)
946}
947PROTOBUF_NDEBUG_INLINE PrimalRayProto::Impl_::Impl_(
948 ::google::protobuf::internal::InternalVisibility visibility,
949 ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const Impl_& from,
950 const ::operations_research::math_opt::PrimalRayProto& from_msg)
951 : _has_bits_{from._has_bits_},
952 _cached_size_{0} {}
953
955 ::google::protobuf::Arena* PROTOBUF_NULLABLE arena,
956 const PrimalRayProto& from)
957#if defined(PROTOBUF_CUSTOM_VTABLE)
958 : ::google::protobuf::Message(arena, PrimalRayProto_class_data_.base()) {
959#else // PROTOBUF_CUSTOM_VTABLE
960 : ::google::protobuf::Message(arena) {
961#endif // PROTOBUF_CUSTOM_VTABLE
962 PrimalRayProto* const _this = this;
963 (void)_this;
964 _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(
965 from._internal_metadata_);
966 new (&_impl_) Impl_(internal_visibility(), arena, from._impl_, from);
967 ::uint32_t cached_has_bits = _impl_._has_bits_[0];
968 _impl_.variable_values_ = ((cached_has_bits & 0x00000001u) != 0)
969 ? ::google::protobuf::Message::CopyConstruct(arena, *from._impl_.variable_values_)
970 : nullptr;
971
972 // @@protoc_insertion_point(copy_constructor:operations_research.math_opt.PrimalRayProto)
973}
974PROTOBUF_NDEBUG_INLINE PrimalRayProto::Impl_::Impl_(
975 ::google::protobuf::internal::InternalVisibility visibility,
976 ::google::protobuf::Arena* PROTOBUF_NULLABLE arena)
977 : _cached_size_{0} {}
978
979inline void PrimalRayProto::SharedCtor(::_pb::Arena* PROTOBUF_NULLABLE arena) {
980 new (&_impl_) Impl_(internal_visibility(), arena);
981 _impl_.variable_values_ = {};
982}
984 // @@protoc_insertion_point(destructor:operations_research.math_opt.PrimalRayProto)
985 SharedDtor(*this);
987inline void PrimalRayProto::SharedDtor(MessageLite& self) {
988 PrimalRayProto& this_ = static_cast<PrimalRayProto&>(self);
989 this_._internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>();
990 ABSL_DCHECK(this_.GetArena() == nullptr);
991 delete this_._impl_.variable_values_;
992 this_._impl_.~Impl_();
993}
994
995inline void* PROTOBUF_NONNULL PrimalRayProto::PlacementNew_(
996 const void* PROTOBUF_NONNULL, void* PROTOBUF_NONNULL mem,
997 ::google::protobuf::Arena* PROTOBUF_NULLABLE arena) {
998 return ::new (mem) PrimalRayProto(arena);
999}
1000constexpr auto PrimalRayProto::InternalNewImpl_() {
1001 return ::google::protobuf::internal::MessageCreator::ZeroInit(sizeof(PrimalRayProto),
1002 alignof(PrimalRayProto));
1005 return ::google::protobuf::internal::ClassDataFull{
1006 ::google::protobuf::internal::ClassData{
1008 &_table_.header,
1009 nullptr, // OnDemandRegisterArenaDtor
1010 nullptr, // IsInitialized
1011 &PrimalRayProto::MergeImpl,
1012 ::google::protobuf::Message::GetNewImpl<PrimalRayProto>(),
1013#if defined(PROTOBUF_CUSTOM_VTABLE)
1014 &PrimalRayProto::SharedDtor,
1015 ::google::protobuf::Message::GetClearImpl<PrimalRayProto>(), &PrimalRayProto::ByteSizeLong,
1017#endif // PROTOBUF_CUSTOM_VTABLE
1018 PROTOBUF_FIELD_OFFSET(PrimalRayProto, _impl_._cached_size_),
1019 false,
1020 },
1021 &PrimalRayProto::kDescriptorMethods,
1023 nullptr, // tracker
1024 };
1025}
1026
1027PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 const
1028 ::google::protobuf::internal::ClassDataFull PrimalRayProto_class_data_ =
1030
1031PROTOBUF_ATTRIBUTE_WEAK const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL
1033 ::google::protobuf::internal::PrefetchToLocalCache(&PrimalRayProto_class_data_);
1034 ::google::protobuf::internal::PrefetchToLocalCache(PrimalRayProto_class_data_.tc_table);
1036}
1037PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1
1038const ::_pbi::TcParseTable<0, 1, 1, 0, 2>
1039PrimalRayProto::_table_ = {
1040 {
1041 PROTOBUF_FIELD_OFFSET(PrimalRayProto, _impl_._has_bits_),
1042 0, // no _extensions_
1043 1, 0, // max_field_number, fast_idx_mask
1044 offsetof(decltype(_table_), field_lookup_table),
1045 4294967294, // skipmap
1046 offsetof(decltype(_table_), field_entries),
1047 1, // num_field_entries
1048 1, // num_aux_entries
1049 offsetof(decltype(_table_), aux_entries),
1051 nullptr, // post_loop_handler
1052 ::_pbi::TcParser::GenericFallback, // fallback
1053 #ifdef PROTOBUF_PREFETCH_PARSE_TABLE
1054 ::_pbi::TcParser::GetTable<::operations_research::math_opt::PrimalRayProto>(), // to_prefetch
1055 #endif // PROTOBUF_PREFETCH_PARSE_TABLE
1056 }, {{
1057 // .operations_research.math_opt.SparseDoubleVectorProto variable_values = 1;
1058 {::_pbi::TcParser::FastMtS1,
1059 {10, 0, 0, PROTOBUF_FIELD_OFFSET(PrimalRayProto, _impl_.variable_values_)}},
1060 }}, {{
1061 65535, 65535
1062 }}, {{
1063 // .operations_research.math_opt.SparseDoubleVectorProto variable_values = 1;
1064 {PROTOBUF_FIELD_OFFSET(PrimalRayProto, _impl_.variable_values_), _Internal::kHasBitsOffset + 0, 0,
1065 (0 | ::_fl::kFcOptional | ::_fl::kMessage | ::_fl::kTvTable)},
1066 }},
1067 {{
1068 {::_pbi::TcParser::GetTable<::operations_research::math_opt::SparseDoubleVectorProto>()},
1069 }},
1070 {{
1071 }},
1072};
1073PROTOBUF_NOINLINE void PrimalRayProto::Clear() {
1074// @@protoc_insertion_point(message_clear_start:operations_research.math_opt.PrimalRayProto)
1075 ::google::protobuf::internal::TSanWrite(&_impl_);
1076 ::uint32_t cached_has_bits = 0;
1077 // Prevent compiler warnings about cached_has_bits being unused
1078 (void) cached_has_bits;
1079
1080 cached_has_bits = _impl_._has_bits_[0];
1081 if ((cached_has_bits & 0x00000001u) != 0) {
1082 ABSL_DCHECK(_impl_.variable_values_ != nullptr);
1083 _impl_.variable_values_->Clear();
1084 }
1085 _impl_._has_bits_.Clear();
1086 _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>();
1087}
1088
1089#if defined(PROTOBUF_CUSTOM_VTABLE)
1090::uint8_t* PROTOBUF_NONNULL PrimalRayProto::_InternalSerialize(
1091 const ::google::protobuf::MessageLite& base, ::uint8_t* PROTOBUF_NONNULL target,
1092 ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) {
1093 const PrimalRayProto& this_ = static_cast<const PrimalRayProto&>(base);
1094#else // PROTOBUF_CUSTOM_VTABLE
1095::uint8_t* PROTOBUF_NONNULL PrimalRayProto::_InternalSerialize(
1096 ::uint8_t* PROTOBUF_NONNULL target,
1097 ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const {
1098 const PrimalRayProto& this_ = *this;
1099#endif // PROTOBUF_CUSTOM_VTABLE
1100 // @@protoc_insertion_point(serialize_to_array_start:operations_research.math_opt.PrimalRayProto)
1101 ::uint32_t cached_has_bits = 0;
1102 (void)cached_has_bits;
1103
1104 cached_has_bits = this_._impl_._has_bits_[0];
1105 // .operations_research.math_opt.SparseDoubleVectorProto variable_values = 1;
1106 if ((cached_has_bits & 0x00000001u) != 0) {
1107 target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage(
1108 1, *this_._impl_.variable_values_, this_._impl_.variable_values_->GetCachedSize(), target,
1109 stream);
1110 }
1111
1112 if (ABSL_PREDICT_FALSE(this_._internal_metadata_.have_unknown_fields())) {
1113 target =
1114 ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray(
1115 this_._internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream);
1116 }
1117 // @@protoc_insertion_point(serialize_to_array_end:operations_research.math_opt.PrimalRayProto)
1118 return target;
1119}
1120
1121#if defined(PROTOBUF_CUSTOM_VTABLE)
1122::size_t PrimalRayProto::ByteSizeLong(const MessageLite& base) {
1123 const PrimalRayProto& this_ = static_cast<const PrimalRayProto&>(base);
1124#else // PROTOBUF_CUSTOM_VTABLE
1125::size_t PrimalRayProto::ByteSizeLong() const {
1126 const PrimalRayProto& this_ = *this;
1127#endif // PROTOBUF_CUSTOM_VTABLE
1128 // @@protoc_insertion_point(message_byte_size_start:operations_research.math_opt.PrimalRayProto)
1129 ::size_t total_size = 0;
1130
1131 ::uint32_t cached_has_bits = 0;
1132 // Prevent compiler warnings about cached_has_bits being unused
1133 (void)cached_has_bits;
1134
1135 {
1136 // .operations_research.math_opt.SparseDoubleVectorProto variable_values = 1;
1137 cached_has_bits = this_._impl_._has_bits_[0];
1138 if ((cached_has_bits & 0x00000001u) != 0) {
1139 total_size += 1 +
1140 ::google::protobuf::internal::WireFormatLite::MessageSize(*this_._impl_.variable_values_);
1141 }
1142 }
1143 return this_.MaybeComputeUnknownFieldsSize(total_size,
1144 &this_._impl_._cached_size_);
1145}
1146
1147void PrimalRayProto::MergeImpl(::google::protobuf::MessageLite& to_msg, const ::google::protobuf::MessageLite& from_msg) {
1148 auto* const _this = static_cast<PrimalRayProto*>(&to_msg);
1149 auto& from = static_cast<const PrimalRayProto&>(from_msg);
1150 ::google::protobuf::Arena* arena = _this->GetArena();
1151 // @@protoc_insertion_point(class_specific_merge_from_start:operations_research.math_opt.PrimalRayProto)
1152 ABSL_DCHECK_NE(&from, _this);
1153 ::uint32_t cached_has_bits = 0;
1154 (void) cached_has_bits;
1155
1156 cached_has_bits = from._impl_._has_bits_[0];
1157 if ((cached_has_bits & 0x00000001u) != 0) {
1158 ABSL_DCHECK(from._impl_.variable_values_ != nullptr);
1159 if (_this->_impl_.variable_values_ == nullptr) {
1160 _this->_impl_.variable_values_ = ::google::protobuf::Message::CopyConstruct(arena, *from._impl_.variable_values_);
1161 } else {
1162 _this->_impl_.variable_values_->MergeFrom(*from._impl_.variable_values_);
1163 }
1164 }
1165 _this->_impl_._has_bits_[0] |= cached_has_bits;
1166 _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_);
1167}
1168
1169void PrimalRayProto::CopyFrom(const PrimalRayProto& from) {
1170// @@protoc_insertion_point(class_specific_copy_from_start:operations_research.math_opt.PrimalRayProto)
1171 if (&from == this) return;
1173 MergeFrom(from);
1174}
1175
1176
1177void PrimalRayProto::InternalSwap(PrimalRayProto* PROTOBUF_RESTRICT PROTOBUF_NONNULL other) {
1178 using ::std::swap;
1179 _internal_metadata_.InternalSwap(&other->_internal_metadata_);
1180 swap(_impl_._has_bits_[0], other->_impl_._has_bits_[0]);
1181 swap(_impl_.variable_values_, other->_impl_.variable_values_);
1182}
1183
1184::google::protobuf::Metadata PrimalRayProto::GetMetadata() const {
1185 return ::google::protobuf::Message::GetMetadataImpl(GetClassData()->full());
1186}
1187// ===================================================================
1188
1190 public:
1191 using HasBits =
1192 decltype(::std::declval<DualSolutionProto>()._impl_._has_bits_);
1193 static constexpr ::int32_t kHasBitsOffset =
1194 8 * PROTOBUF_FIELD_OFFSET(DualSolutionProto, _impl_._has_bits_);
1196
1198 ::google::protobuf::internal::TSanWrite(&_impl_);
1199 if (_impl_.dual_values_ != nullptr) _impl_.dual_values_->Clear();
1200 _impl_._has_bits_[0] &= ~0x00000001u;
1203 ::google::protobuf::internal::TSanWrite(&_impl_);
1204 if (_impl_.quadratic_dual_values_ != nullptr) _impl_.quadratic_dual_values_->Clear();
1205 _impl_._has_bits_[0] &= ~0x00000004u;
1208 ::google::protobuf::internal::TSanWrite(&_impl_);
1209 if (_impl_.reduced_costs_ != nullptr) _impl_.reduced_costs_->Clear();
1210 _impl_._has_bits_[0] &= ~0x00000002u;
1212DualSolutionProto::DualSolutionProto(::google::protobuf::Arena* PROTOBUF_NULLABLE arena)
1213#if defined(PROTOBUF_CUSTOM_VTABLE)
1214 : ::google::protobuf::Message(arena, DualSolutionProto_class_data_.base()) {
1215#else // PROTOBUF_CUSTOM_VTABLE
1216 : ::google::protobuf::Message(arena) {
1217#endif // PROTOBUF_CUSTOM_VTABLE
1218 SharedCtor(arena);
1219 // @@protoc_insertion_point(arena_constructor:operations_research.math_opt.DualSolutionProto)
1220}
1221PROTOBUF_NDEBUG_INLINE DualSolutionProto::Impl_::Impl_(
1222 ::google::protobuf::internal::InternalVisibility visibility,
1223 ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const Impl_& from,
1224 const ::operations_research::math_opt::DualSolutionProto& from_msg)
1225 : _has_bits_{from._has_bits_},
1226 _cached_size_{0} {}
1227
1229 ::google::protobuf::Arena* PROTOBUF_NULLABLE arena,
1230 const DualSolutionProto& from)
1231#if defined(PROTOBUF_CUSTOM_VTABLE)
1232 : ::google::protobuf::Message(arena, DualSolutionProto_class_data_.base()) {
1233#else // PROTOBUF_CUSTOM_VTABLE
1234 : ::google::protobuf::Message(arena) {
1235#endif // PROTOBUF_CUSTOM_VTABLE
1236 DualSolutionProto* const _this = this;
1237 (void)_this;
1238 _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(
1239 from._internal_metadata_);
1240 new (&_impl_) Impl_(internal_visibility(), arena, from._impl_, from);
1241 ::uint32_t cached_has_bits = _impl_._has_bits_[0];
1242 _impl_.dual_values_ = ((cached_has_bits & 0x00000001u) != 0)
1243 ? ::google::protobuf::Message::CopyConstruct(arena, *from._impl_.dual_values_)
1244 : nullptr;
1245 _impl_.reduced_costs_ = ((cached_has_bits & 0x00000002u) != 0)
1246 ? ::google::protobuf::Message::CopyConstruct(arena, *from._impl_.reduced_costs_)
1247 : nullptr;
1248 _impl_.quadratic_dual_values_ = ((cached_has_bits & 0x00000004u) != 0)
1249 ? ::google::protobuf::Message::CopyConstruct(arena, *from._impl_.quadratic_dual_values_)
1250 : nullptr;
1251 ::memcpy(reinterpret_cast<char *>(&_impl_) +
1252 offsetof(Impl_, objective_value_),
1253 reinterpret_cast<const char *>(&from._impl_) +
1254 offsetof(Impl_, objective_value_),
1255 offsetof(Impl_, feasibility_status_) -
1256 offsetof(Impl_, objective_value_) +
1257 sizeof(Impl_::feasibility_status_));
1258
1259 // @@protoc_insertion_point(copy_constructor:operations_research.math_opt.DualSolutionProto)
1260}
1261PROTOBUF_NDEBUG_INLINE DualSolutionProto::Impl_::Impl_(
1262 ::google::protobuf::internal::InternalVisibility visibility,
1263 ::google::protobuf::Arena* PROTOBUF_NULLABLE arena)
1264 : _cached_size_{0} {}
1265
1266inline void DualSolutionProto::SharedCtor(::_pb::Arena* PROTOBUF_NULLABLE arena) {
1267 new (&_impl_) Impl_(internal_visibility(), arena);
1268 ::memset(reinterpret_cast<char *>(&_impl_) +
1269 offsetof(Impl_, dual_values_),
1270 0,
1271 offsetof(Impl_, feasibility_status_) -
1272 offsetof(Impl_, dual_values_) +
1273 sizeof(Impl_::feasibility_status_));
1274}
1276 // @@protoc_insertion_point(destructor:operations_research.math_opt.DualSolutionProto)
1277 SharedDtor(*this);
1278}
1279inline void DualSolutionProto::SharedDtor(MessageLite& self) {
1280 DualSolutionProto& this_ = static_cast<DualSolutionProto&>(self);
1281 this_._internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>();
1282 ABSL_DCHECK(this_.GetArena() == nullptr);
1283 delete this_._impl_.dual_values_;
1284 delete this_._impl_.reduced_costs_;
1285 delete this_._impl_.quadratic_dual_values_;
1286 this_._impl_.~Impl_();
1287}
1288
1289inline void* PROTOBUF_NONNULL DualSolutionProto::PlacementNew_(
1290 const void* PROTOBUF_NONNULL, void* PROTOBUF_NONNULL mem,
1291 ::google::protobuf::Arena* PROTOBUF_NULLABLE arena) {
1292 return ::new (mem) DualSolutionProto(arena);
1294constexpr auto DualSolutionProto::InternalNewImpl_() {
1295 return ::google::protobuf::internal::MessageCreator::ZeroInit(sizeof(DualSolutionProto),
1296 alignof(DualSolutionProto));
1297}
1299 return ::google::protobuf::internal::ClassDataFull{
1300 ::google::protobuf::internal::ClassData{
1302 &_table_.header,
1303 nullptr, // OnDemandRegisterArenaDtor
1304 nullptr, // IsInitialized
1305 &DualSolutionProto::MergeImpl,
1306 ::google::protobuf::Message::GetNewImpl<DualSolutionProto>(),
1307#if defined(PROTOBUF_CUSTOM_VTABLE)
1308 &DualSolutionProto::SharedDtor,
1309 ::google::protobuf::Message::GetClearImpl<DualSolutionProto>(), &DualSolutionProto::ByteSizeLong,
1311#endif // PROTOBUF_CUSTOM_VTABLE
1312 PROTOBUF_FIELD_OFFSET(DualSolutionProto, _impl_._cached_size_),
1313 false,
1314 },
1315 &DualSolutionProto::kDescriptorMethods,
1317 nullptr, // tracker
1318 };
1319}
1320
1321PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 const
1322 ::google::protobuf::internal::ClassDataFull DualSolutionProto_class_data_ =
1324
1325PROTOBUF_ATTRIBUTE_WEAK const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL
1327 ::google::protobuf::internal::PrefetchToLocalCache(&DualSolutionProto_class_data_);
1328 ::google::protobuf::internal::PrefetchToLocalCache(DualSolutionProto_class_data_.tc_table);
1329 return DualSolutionProto_class_data_.base();
1331PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1
1332const ::_pbi::TcParseTable<3, 5, 3, 0, 2>
1333DualSolutionProto::_table_ = {
1334 {
1335 PROTOBUF_FIELD_OFFSET(DualSolutionProto, _impl_._has_bits_),
1336 0, // no _extensions_
1337 5, 56, // max_field_number, fast_idx_mask
1338 offsetof(decltype(_table_), field_lookup_table),
1339 4294967264, // skipmap
1340 offsetof(decltype(_table_), field_entries),
1341 5, // num_field_entries
1342 3, // num_aux_entries
1343 offsetof(decltype(_table_), aux_entries),
1345 nullptr, // post_loop_handler
1346 ::_pbi::TcParser::GenericFallback, // fallback
1347 #ifdef PROTOBUF_PREFETCH_PARSE_TABLE
1348 ::_pbi::TcParser::GetTable<::operations_research::math_opt::DualSolutionProto>(), // to_prefetch
1349 #endif // PROTOBUF_PREFETCH_PARSE_TABLE
1350 }, {{
1351 {::_pbi::TcParser::MiniParse, {}},
1352 // .operations_research.math_opt.SparseDoubleVectorProto dual_values = 1;
1353 {::_pbi::TcParser::FastMtS1,
1354 {10, 0, 0, PROTOBUF_FIELD_OFFSET(DualSolutionProto, _impl_.dual_values_)}},
1355 // .operations_research.math_opt.SparseDoubleVectorProto reduced_costs = 2;
1356 {::_pbi::TcParser::FastMtS1,
1357 {18, 1, 1, PROTOBUF_FIELD_OFFSET(DualSolutionProto, _impl_.reduced_costs_)}},
1358 // optional double objective_value = 3;
1359 {::_pbi::TcParser::FastF64S1,
1360 {25, 3, 0, PROTOBUF_FIELD_OFFSET(DualSolutionProto, _impl_.objective_value_)}},
1361 // .operations_research.math_opt.SolutionStatusProto feasibility_status = 4;
1362 {::_pbi::TcParser::SingularVarintNoZag1<::uint32_t, offsetof(DualSolutionProto, _impl_.feasibility_status_), 4>(),
1363 {32, 4, 0, PROTOBUF_FIELD_OFFSET(DualSolutionProto, _impl_.feasibility_status_)}},
1364 // .operations_research.math_opt.SparseDoubleVectorProto quadratic_dual_values = 5;
1365 {::_pbi::TcParser::FastMtS1,
1366 {42, 2, 2, PROTOBUF_FIELD_OFFSET(DualSolutionProto, _impl_.quadratic_dual_values_)}},
1367 {::_pbi::TcParser::MiniParse, {}},
1368 {::_pbi::TcParser::MiniParse, {}},
1369 }}, {{
1370 65535, 65535
1371 }}, {{
1372 // .operations_research.math_opt.SparseDoubleVectorProto dual_values = 1;
1373 {PROTOBUF_FIELD_OFFSET(DualSolutionProto, _impl_.dual_values_), _Internal::kHasBitsOffset + 0, 0,
1374 (0 | ::_fl::kFcOptional | ::_fl::kMessage | ::_fl::kTvTable)},
1375 // .operations_research.math_opt.SparseDoubleVectorProto reduced_costs = 2;
1376 {PROTOBUF_FIELD_OFFSET(DualSolutionProto, _impl_.reduced_costs_), _Internal::kHasBitsOffset + 1, 1,
1377 (0 | ::_fl::kFcOptional | ::_fl::kMessage | ::_fl::kTvTable)},
1378 // optional double objective_value = 3;
1379 {PROTOBUF_FIELD_OFFSET(DualSolutionProto, _impl_.objective_value_), _Internal::kHasBitsOffset + 3, 0,
1380 (0 | ::_fl::kFcOptional | ::_fl::kDouble)},
1381 // .operations_research.math_opt.SolutionStatusProto feasibility_status = 4;
1382 {PROTOBUF_FIELD_OFFSET(DualSolutionProto, _impl_.feasibility_status_), _Internal::kHasBitsOffset + 4, 0,
1383 (0 | ::_fl::kFcOptional | ::_fl::kOpenEnum)},
1384 // .operations_research.math_opt.SparseDoubleVectorProto quadratic_dual_values = 5;
1385 {PROTOBUF_FIELD_OFFSET(DualSolutionProto, _impl_.quadratic_dual_values_), _Internal::kHasBitsOffset + 2, 2,
1386 (0 | ::_fl::kFcOptional | ::_fl::kMessage | ::_fl::kTvTable)},
1387 }},
1388 {{
1389 {::_pbi::TcParser::GetTable<::operations_research::math_opt::SparseDoubleVectorProto>()},
1390 {::_pbi::TcParser::GetTable<::operations_research::math_opt::SparseDoubleVectorProto>()},
1391 {::_pbi::TcParser::GetTable<::operations_research::math_opt::SparseDoubleVectorProto>()},
1392 }},
1393 {{
1394 }},
1395};
1396PROTOBUF_NOINLINE void DualSolutionProto::Clear() {
1397// @@protoc_insertion_point(message_clear_start:operations_research.math_opt.DualSolutionProto)
1398 ::google::protobuf::internal::TSanWrite(&_impl_);
1399 ::uint32_t cached_has_bits = 0;
1400 // Prevent compiler warnings about cached_has_bits being unused
1401 (void) cached_has_bits;
1402
1403 cached_has_bits = _impl_._has_bits_[0];
1404 if ((cached_has_bits & 0x00000007u) != 0) {
1405 if ((cached_has_bits & 0x00000001u) != 0) {
1406 ABSL_DCHECK(_impl_.dual_values_ != nullptr);
1407 _impl_.dual_values_->Clear();
1408 }
1409 if ((cached_has_bits & 0x00000002u) != 0) {
1410 ABSL_DCHECK(_impl_.reduced_costs_ != nullptr);
1411 _impl_.reduced_costs_->Clear();
1412 }
1413 if ((cached_has_bits & 0x00000004u) != 0) {
1414 ABSL_DCHECK(_impl_.quadratic_dual_values_ != nullptr);
1415 _impl_.quadratic_dual_values_->Clear();
1416 }
1417 }
1418 if ((cached_has_bits & 0x00000018u) != 0) {
1419 ::memset(&_impl_.objective_value_, 0, static_cast<::size_t>(
1420 reinterpret_cast<char*>(&_impl_.feasibility_status_) -
1421 reinterpret_cast<char*>(&_impl_.objective_value_)) + sizeof(_impl_.feasibility_status_));
1422 }
1423 _impl_._has_bits_.Clear();
1424 _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>();
1425}
1426
1427#if defined(PROTOBUF_CUSTOM_VTABLE)
1428::uint8_t* PROTOBUF_NONNULL DualSolutionProto::_InternalSerialize(
1429 const ::google::protobuf::MessageLite& base, ::uint8_t* PROTOBUF_NONNULL target,
1430 ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) {
1431 const DualSolutionProto& this_ = static_cast<const DualSolutionProto&>(base);
1432#else // PROTOBUF_CUSTOM_VTABLE
1433::uint8_t* PROTOBUF_NONNULL DualSolutionProto::_InternalSerialize(
1434 ::uint8_t* PROTOBUF_NONNULL target,
1435 ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const {
1436 const DualSolutionProto& this_ = *this;
1437#endif // PROTOBUF_CUSTOM_VTABLE
1438 // @@protoc_insertion_point(serialize_to_array_start:operations_research.math_opt.DualSolutionProto)
1439 ::uint32_t cached_has_bits = 0;
1440 (void)cached_has_bits;
1441
1442 cached_has_bits = this_._impl_._has_bits_[0];
1443 // .operations_research.math_opt.SparseDoubleVectorProto dual_values = 1;
1444 if ((cached_has_bits & 0x00000001u) != 0) {
1445 target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage(
1446 1, *this_._impl_.dual_values_, this_._impl_.dual_values_->GetCachedSize(), target,
1447 stream);
1448 }
1449
1450 // .operations_research.math_opt.SparseDoubleVectorProto reduced_costs = 2;
1451 if ((cached_has_bits & 0x00000002u) != 0) {
1452 target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage(
1453 2, *this_._impl_.reduced_costs_, this_._impl_.reduced_costs_->GetCachedSize(), target,
1454 stream);
1455 }
1456
1457 // optional double objective_value = 3;
1458 if ((cached_has_bits & 0x00000008u) != 0) {
1459 target = stream->EnsureSpace(target);
1460 target = ::_pbi::WireFormatLite::WriteDoubleToArray(
1461 3, this_._internal_objective_value(), target);
1462 }
1463
1464 // .operations_research.math_opt.SolutionStatusProto feasibility_status = 4;
1465 if ((cached_has_bits & 0x00000010u) != 0) {
1466 if (this_._internal_feasibility_status() != 0) {
1467 target = stream->EnsureSpace(target);
1468 target = ::_pbi::WireFormatLite::WriteEnumToArray(
1469 4, this_._internal_feasibility_status(), target);
1470 }
1471 }
1472
1473 // .operations_research.math_opt.SparseDoubleVectorProto quadratic_dual_values = 5;
1474 if ((cached_has_bits & 0x00000004u) != 0) {
1475 target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage(
1476 5, *this_._impl_.quadratic_dual_values_, this_._impl_.quadratic_dual_values_->GetCachedSize(), target,
1477 stream);
1478 }
1479
1480 if (ABSL_PREDICT_FALSE(this_._internal_metadata_.have_unknown_fields())) {
1481 target =
1482 ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray(
1483 this_._internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream);
1484 }
1485 // @@protoc_insertion_point(serialize_to_array_end:operations_research.math_opt.DualSolutionProto)
1486 return target;
1487}
1488
1489#if defined(PROTOBUF_CUSTOM_VTABLE)
1490::size_t DualSolutionProto::ByteSizeLong(const MessageLite& base) {
1491 const DualSolutionProto& this_ = static_cast<const DualSolutionProto&>(base);
1492#else // PROTOBUF_CUSTOM_VTABLE
1493::size_t DualSolutionProto::ByteSizeLong() const {
1494 const DualSolutionProto& this_ = *this;
1495#endif // PROTOBUF_CUSTOM_VTABLE
1496 // @@protoc_insertion_point(message_byte_size_start:operations_research.math_opt.DualSolutionProto)
1497 ::size_t total_size = 0;
1498
1499 ::uint32_t cached_has_bits = 0;
1500 // Prevent compiler warnings about cached_has_bits being unused
1501 (void)cached_has_bits;
1502
1503 ::_pbi::Prefetch5LinesFrom7Lines(&this_);
1504 cached_has_bits = this_._impl_._has_bits_[0];
1505 total_size += static_cast<bool>(0x00000008u & cached_has_bits) * 9;
1506 if ((cached_has_bits & 0x00000017u) != 0) {
1507 // .operations_research.math_opt.SparseDoubleVectorProto dual_values = 1;
1508 if ((cached_has_bits & 0x00000001u) != 0) {
1509 total_size += 1 +
1510 ::google::protobuf::internal::WireFormatLite::MessageSize(*this_._impl_.dual_values_);
1511 }
1512 // .operations_research.math_opt.SparseDoubleVectorProto reduced_costs = 2;
1513 if ((cached_has_bits & 0x00000002u) != 0) {
1514 total_size += 1 +
1515 ::google::protobuf::internal::WireFormatLite::MessageSize(*this_._impl_.reduced_costs_);
1516 }
1517 // .operations_research.math_opt.SparseDoubleVectorProto quadratic_dual_values = 5;
1518 if ((cached_has_bits & 0x00000004u) != 0) {
1519 total_size += 1 +
1520 ::google::protobuf::internal::WireFormatLite::MessageSize(*this_._impl_.quadratic_dual_values_);
1521 }
1522 // .operations_research.math_opt.SolutionStatusProto feasibility_status = 4;
1523 if ((cached_has_bits & 0x00000010u) != 0) {
1524 if (this_._internal_feasibility_status() != 0) {
1525 total_size += 1 +
1526 ::_pbi::WireFormatLite::EnumSize(this_._internal_feasibility_status());
1527 }
1528 }
1529 }
1530 return this_.MaybeComputeUnknownFieldsSize(total_size,
1531 &this_._impl_._cached_size_);
1532}
1533
1534void DualSolutionProto::MergeImpl(::google::protobuf::MessageLite& to_msg, const ::google::protobuf::MessageLite& from_msg) {
1535 auto* const _this = static_cast<DualSolutionProto*>(&to_msg);
1536 auto& from = static_cast<const DualSolutionProto&>(from_msg);
1537 ::google::protobuf::Arena* arena = _this->GetArena();
1538 // @@protoc_insertion_point(class_specific_merge_from_start:operations_research.math_opt.DualSolutionProto)
1539 ABSL_DCHECK_NE(&from, _this);
1540 ::uint32_t cached_has_bits = 0;
1541 (void) cached_has_bits;
1542
1543 cached_has_bits = from._impl_._has_bits_[0];
1544 if ((cached_has_bits & 0x0000001fu) != 0) {
1545 if ((cached_has_bits & 0x00000001u) != 0) {
1546 ABSL_DCHECK(from._impl_.dual_values_ != nullptr);
1547 if (_this->_impl_.dual_values_ == nullptr) {
1548 _this->_impl_.dual_values_ = ::google::protobuf::Message::CopyConstruct(arena, *from._impl_.dual_values_);
1549 } else {
1550 _this->_impl_.dual_values_->MergeFrom(*from._impl_.dual_values_);
1551 }
1552 }
1553 if ((cached_has_bits & 0x00000002u) != 0) {
1554 ABSL_DCHECK(from._impl_.reduced_costs_ != nullptr);
1555 if (_this->_impl_.reduced_costs_ == nullptr) {
1556 _this->_impl_.reduced_costs_ = ::google::protobuf::Message::CopyConstruct(arena, *from._impl_.reduced_costs_);
1557 } else {
1558 _this->_impl_.reduced_costs_->MergeFrom(*from._impl_.reduced_costs_);
1559 }
1560 }
1561 if ((cached_has_bits & 0x00000004u) != 0) {
1562 ABSL_DCHECK(from._impl_.quadratic_dual_values_ != nullptr);
1563 if (_this->_impl_.quadratic_dual_values_ == nullptr) {
1564 _this->_impl_.quadratic_dual_values_ = ::google::protobuf::Message::CopyConstruct(arena, *from._impl_.quadratic_dual_values_);
1565 } else {
1566 _this->_impl_.quadratic_dual_values_->MergeFrom(*from._impl_.quadratic_dual_values_);
1567 }
1568 }
1569 if ((cached_has_bits & 0x00000008u) != 0) {
1570 _this->_impl_.objective_value_ = from._impl_.objective_value_;
1571 }
1572 if ((cached_has_bits & 0x00000010u) != 0) {
1573 if (from._internal_feasibility_status() != 0) {
1574 _this->_impl_.feasibility_status_ = from._impl_.feasibility_status_;
1575 }
1576 }
1577 }
1578 _this->_impl_._has_bits_[0] |= cached_has_bits;
1579 _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_);
1580}
1581
1583// @@protoc_insertion_point(class_specific_copy_from_start:operations_research.math_opt.DualSolutionProto)
1584 if (&from == this) return;
1585 Clear();
1587}
1588
1589
1590void DualSolutionProto::InternalSwap(DualSolutionProto* PROTOBUF_RESTRICT PROTOBUF_NONNULL other) {
1591 using ::std::swap;
1592 _internal_metadata_.InternalSwap(&other->_internal_metadata_);
1593 swap(_impl_._has_bits_[0], other->_impl_._has_bits_[0]);
1594 ::google::protobuf::internal::memswap<
1595 PROTOBUF_FIELD_OFFSET(DualSolutionProto, _impl_.feasibility_status_)
1596 + sizeof(DualSolutionProto::_impl_.feasibility_status_)
1597 - PROTOBUF_FIELD_OFFSET(DualSolutionProto, _impl_.dual_values_)>(
1598 reinterpret_cast<char*>(&_impl_.dual_values_),
1599 reinterpret_cast<char*>(&other->_impl_.dual_values_));
1600}
1601
1602::google::protobuf::Metadata DualSolutionProto::GetMetadata() const {
1603 return ::google::protobuf::Message::GetMetadataImpl(GetClassData()->full());
1604}
1605// ===================================================================
1608 public:
1609 using HasBits =
1610 decltype(::std::declval<DualRayProto>()._impl_._has_bits_);
1611 static constexpr ::int32_t kHasBitsOffset =
1612 8 * PROTOBUF_FIELD_OFFSET(DualRayProto, _impl_._has_bits_);
1613};
1616 ::google::protobuf::internal::TSanWrite(&_impl_);
1617 if (_impl_.dual_values_ != nullptr) _impl_.dual_values_->Clear();
1618 _impl_._has_bits_[0] &= ~0x00000001u;
1619}
1621 ::google::protobuf::internal::TSanWrite(&_impl_);
1622 if (_impl_.reduced_costs_ != nullptr) _impl_.reduced_costs_->Clear();
1623 _impl_._has_bits_[0] &= ~0x00000002u;
1624}
1625DualRayProto::DualRayProto(::google::protobuf::Arena* PROTOBUF_NULLABLE arena)
1626#if defined(PROTOBUF_CUSTOM_VTABLE)
1627 : ::google::protobuf::Message(arena, DualRayProto_class_data_.base()) {
1628#else // PROTOBUF_CUSTOM_VTABLE
1629 : ::google::protobuf::Message(arena) {
1630#endif // PROTOBUF_CUSTOM_VTABLE
1631 SharedCtor(arena);
1632 // @@protoc_insertion_point(arena_constructor:operations_research.math_opt.DualRayProto)
1633}
1634PROTOBUF_NDEBUG_INLINE DualRayProto::Impl_::Impl_(
1635 ::google::protobuf::internal::InternalVisibility visibility,
1636 ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const Impl_& from,
1637 const ::operations_research::math_opt::DualRayProto& from_msg)
1638 : _has_bits_{from._has_bits_},
1639 _cached_size_{0} {}
1640
1642 ::google::protobuf::Arena* PROTOBUF_NULLABLE arena,
1643 const DualRayProto& from)
1644#if defined(PROTOBUF_CUSTOM_VTABLE)
1645 : ::google::protobuf::Message(arena, DualRayProto_class_data_.base()) {
1646#else // PROTOBUF_CUSTOM_VTABLE
1647 : ::google::protobuf::Message(arena) {
1648#endif // PROTOBUF_CUSTOM_VTABLE
1649 DualRayProto* const _this = this;
1650 (void)_this;
1651 _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(
1652 from._internal_metadata_);
1653 new (&_impl_) Impl_(internal_visibility(), arena, from._impl_, from);
1654 ::uint32_t cached_has_bits = _impl_._has_bits_[0];
1655 _impl_.dual_values_ = ((cached_has_bits & 0x00000001u) != 0)
1656 ? ::google::protobuf::Message::CopyConstruct(arena, *from._impl_.dual_values_)
1657 : nullptr;
1658 _impl_.reduced_costs_ = ((cached_has_bits & 0x00000002u) != 0)
1659 ? ::google::protobuf::Message::CopyConstruct(arena, *from._impl_.reduced_costs_)
1660 : nullptr;
1661
1662 // @@protoc_insertion_point(copy_constructor:operations_research.math_opt.DualRayProto)
1663}
1664PROTOBUF_NDEBUG_INLINE DualRayProto::Impl_::Impl_(
1665 ::google::protobuf::internal::InternalVisibility visibility,
1666 ::google::protobuf::Arena* PROTOBUF_NULLABLE arena)
1667 : _cached_size_{0} {}
1668
1669inline void DualRayProto::SharedCtor(::_pb::Arena* PROTOBUF_NULLABLE arena) {
1670 new (&_impl_) Impl_(internal_visibility(), arena);
1671 ::memset(reinterpret_cast<char *>(&_impl_) +
1672 offsetof(Impl_, dual_values_),
1673 0,
1674 offsetof(Impl_, reduced_costs_) -
1675 offsetof(Impl_, dual_values_) +
1676 sizeof(Impl_::reduced_costs_));
1677}
1679 // @@protoc_insertion_point(destructor:operations_research.math_opt.DualRayProto)
1680 SharedDtor(*this);
1681}
1682inline void DualRayProto::SharedDtor(MessageLite& self) {
1683 DualRayProto& this_ = static_cast<DualRayProto&>(self);
1684 this_._internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>();
1685 ABSL_DCHECK(this_.GetArena() == nullptr);
1686 delete this_._impl_.dual_values_;
1687 delete this_._impl_.reduced_costs_;
1688 this_._impl_.~Impl_();
1689}
1690
1691inline void* PROTOBUF_NONNULL DualRayProto::PlacementNew_(
1692 const void* PROTOBUF_NONNULL, void* PROTOBUF_NONNULL mem,
1693 ::google::protobuf::Arena* PROTOBUF_NULLABLE arena) {
1694 return ::new (mem) DualRayProto(arena);
1695}
1697 return ::google::protobuf::internal::MessageCreator::ZeroInit(sizeof(DualRayProto),
1698 alignof(DualRayProto));
1699}
1701 return ::google::protobuf::internal::ClassDataFull{
1702 ::google::protobuf::internal::ClassData{
1704 &_table_.header,
1705 nullptr, // OnDemandRegisterArenaDtor
1706 nullptr, // IsInitialized
1707 &DualRayProto::MergeImpl,
1708 ::google::protobuf::Message::GetNewImpl<DualRayProto>(),
1709#if defined(PROTOBUF_CUSTOM_VTABLE)
1710 &DualRayProto::SharedDtor,
1711 ::google::protobuf::Message::GetClearImpl<DualRayProto>(), &DualRayProto::ByteSizeLong,
1713#endif // PROTOBUF_CUSTOM_VTABLE
1714 PROTOBUF_FIELD_OFFSET(DualRayProto, _impl_._cached_size_),
1715 false,
1716 },
1717 &DualRayProto::kDescriptorMethods,
1719 nullptr, // tracker
1720 };
1721}
1722
1723PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 const
1724 ::google::protobuf::internal::ClassDataFull DualRayProto_class_data_ =
1726
1727PROTOBUF_ATTRIBUTE_WEAK const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL
1729 ::google::protobuf::internal::PrefetchToLocalCache(&DualRayProto_class_data_);
1730 ::google::protobuf::internal::PrefetchToLocalCache(DualRayProto_class_data_.tc_table);
1731 return DualRayProto_class_data_.base();
1732}
1733PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1
1734const ::_pbi::TcParseTable<1, 2, 2, 0, 2>
1735DualRayProto::_table_ = {
1736 {
1737 PROTOBUF_FIELD_OFFSET(DualRayProto, _impl_._has_bits_),
1738 0, // no _extensions_
1739 2, 8, // max_field_number, fast_idx_mask
1740 offsetof(decltype(_table_), field_lookup_table),
1741 4294967292, // skipmap
1742 offsetof(decltype(_table_), field_entries),
1743 2, // num_field_entries
1744 2, // num_aux_entries
1745 offsetof(decltype(_table_), aux_entries),
1747 nullptr, // post_loop_handler
1748 ::_pbi::TcParser::GenericFallback, // fallback
1749 #ifdef PROTOBUF_PREFETCH_PARSE_TABLE
1750 ::_pbi::TcParser::GetTable<::operations_research::math_opt::DualRayProto>(), // to_prefetch
1751 #endif // PROTOBUF_PREFETCH_PARSE_TABLE
1752 }, {{
1753 // .operations_research.math_opt.SparseDoubleVectorProto reduced_costs = 2;
1754 {::_pbi::TcParser::FastMtS1,
1755 {18, 1, 1, PROTOBUF_FIELD_OFFSET(DualRayProto, _impl_.reduced_costs_)}},
1756 // .operations_research.math_opt.SparseDoubleVectorProto dual_values = 1;
1757 {::_pbi::TcParser::FastMtS1,
1758 {10, 0, 0, PROTOBUF_FIELD_OFFSET(DualRayProto, _impl_.dual_values_)}},
1759 }}, {{
1760 65535, 65535
1761 }}, {{
1762 // .operations_research.math_opt.SparseDoubleVectorProto dual_values = 1;
1763 {PROTOBUF_FIELD_OFFSET(DualRayProto, _impl_.dual_values_), _Internal::kHasBitsOffset + 0, 0,
1764 (0 | ::_fl::kFcOptional | ::_fl::kMessage | ::_fl::kTvTable)},
1765 // .operations_research.math_opt.SparseDoubleVectorProto reduced_costs = 2;
1766 {PROTOBUF_FIELD_OFFSET(DualRayProto, _impl_.reduced_costs_), _Internal::kHasBitsOffset + 1, 1,
1767 (0 | ::_fl::kFcOptional | ::_fl::kMessage | ::_fl::kTvTable)},
1768 }},
1769 {{
1770 {::_pbi::TcParser::GetTable<::operations_research::math_opt::SparseDoubleVectorProto>()},
1771 {::_pbi::TcParser::GetTable<::operations_research::math_opt::SparseDoubleVectorProto>()},
1772 }},
1773 {{
1774 }},
1775};
1776PROTOBUF_NOINLINE void DualRayProto::Clear() {
1777// @@protoc_insertion_point(message_clear_start:operations_research.math_opt.DualRayProto)
1778 ::google::protobuf::internal::TSanWrite(&_impl_);
1779 ::uint32_t cached_has_bits = 0;
1780 // Prevent compiler warnings about cached_has_bits being unused
1781 (void) cached_has_bits;
1782
1783 cached_has_bits = _impl_._has_bits_[0];
1784 if ((cached_has_bits & 0x00000003u) != 0) {
1785 if ((cached_has_bits & 0x00000001u) != 0) {
1786 ABSL_DCHECK(_impl_.dual_values_ != nullptr);
1787 _impl_.dual_values_->Clear();
1788 }
1789 if ((cached_has_bits & 0x00000002u) != 0) {
1790 ABSL_DCHECK(_impl_.reduced_costs_ != nullptr);
1791 _impl_.reduced_costs_->Clear();
1792 }
1793 }
1794 _impl_._has_bits_.Clear();
1795 _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>();
1796}
1797
1798#if defined(PROTOBUF_CUSTOM_VTABLE)
1799::uint8_t* PROTOBUF_NONNULL DualRayProto::_InternalSerialize(
1800 const ::google::protobuf::MessageLite& base, ::uint8_t* PROTOBUF_NONNULL target,
1801 ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) {
1802 const DualRayProto& this_ = static_cast<const DualRayProto&>(base);
1803#else // PROTOBUF_CUSTOM_VTABLE
1804::uint8_t* PROTOBUF_NONNULL DualRayProto::_InternalSerialize(
1805 ::uint8_t* PROTOBUF_NONNULL target,
1806 ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const {
1807 const DualRayProto& this_ = *this;
1808#endif // PROTOBUF_CUSTOM_VTABLE
1809 // @@protoc_insertion_point(serialize_to_array_start:operations_research.math_opt.DualRayProto)
1810 ::uint32_t cached_has_bits = 0;
1811 (void)cached_has_bits;
1812
1813 cached_has_bits = this_._impl_._has_bits_[0];
1814 // .operations_research.math_opt.SparseDoubleVectorProto dual_values = 1;
1815 if ((cached_has_bits & 0x00000001u) != 0) {
1816 target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage(
1817 1, *this_._impl_.dual_values_, this_._impl_.dual_values_->GetCachedSize(), target,
1818 stream);
1819 }
1820
1821 // .operations_research.math_opt.SparseDoubleVectorProto reduced_costs = 2;
1822 if ((cached_has_bits & 0x00000002u) != 0) {
1823 target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage(
1824 2, *this_._impl_.reduced_costs_, this_._impl_.reduced_costs_->GetCachedSize(), target,
1825 stream);
1826 }
1827
1828 if (ABSL_PREDICT_FALSE(this_._internal_metadata_.have_unknown_fields())) {
1829 target =
1830 ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray(
1831 this_._internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream);
1832 }
1833 // @@protoc_insertion_point(serialize_to_array_end:operations_research.math_opt.DualRayProto)
1834 return target;
1835}
1836
1837#if defined(PROTOBUF_CUSTOM_VTABLE)
1838::size_t DualRayProto::ByteSizeLong(const MessageLite& base) {
1839 const DualRayProto& this_ = static_cast<const DualRayProto&>(base);
1840#else // PROTOBUF_CUSTOM_VTABLE
1841::size_t DualRayProto::ByteSizeLong() const {
1842 const DualRayProto& this_ = *this;
1843#endif // PROTOBUF_CUSTOM_VTABLE
1844 // @@protoc_insertion_point(message_byte_size_start:operations_research.math_opt.DualRayProto)
1845 ::size_t total_size = 0;
1847 ::uint32_t cached_has_bits = 0;
1848 // Prevent compiler warnings about cached_has_bits being unused
1849 (void)cached_has_bits;
1850
1851 ::_pbi::Prefetch5LinesFrom7Lines(&this_);
1852 cached_has_bits = this_._impl_._has_bits_[0];
1853 if ((cached_has_bits & 0x00000003u) != 0) {
1854 // .operations_research.math_opt.SparseDoubleVectorProto dual_values = 1;
1855 if ((cached_has_bits & 0x00000001u) != 0) {
1856 total_size += 1 +
1857 ::google::protobuf::internal::WireFormatLite::MessageSize(*this_._impl_.dual_values_);
1858 }
1859 // .operations_research.math_opt.SparseDoubleVectorProto reduced_costs = 2;
1860 if ((cached_has_bits & 0x00000002u) != 0) {
1861 total_size += 1 +
1862 ::google::protobuf::internal::WireFormatLite::MessageSize(*this_._impl_.reduced_costs_);
1863 }
1864 }
1865 return this_.MaybeComputeUnknownFieldsSize(total_size,
1866 &this_._impl_._cached_size_);
1867}
1868
1869void DualRayProto::MergeImpl(::google::protobuf::MessageLite& to_msg, const ::google::protobuf::MessageLite& from_msg) {
1870 auto* const _this = static_cast<DualRayProto*>(&to_msg);
1871 auto& from = static_cast<const DualRayProto&>(from_msg);
1872 ::google::protobuf::Arena* arena = _this->GetArena();
1873 // @@protoc_insertion_point(class_specific_merge_from_start:operations_research.math_opt.DualRayProto)
1874 ABSL_DCHECK_NE(&from, _this);
1875 ::uint32_t cached_has_bits = 0;
1876 (void) cached_has_bits;
1877
1878 cached_has_bits = from._impl_._has_bits_[0];
1879 if ((cached_has_bits & 0x00000003u) != 0) {
1880 if ((cached_has_bits & 0x00000001u) != 0) {
1881 ABSL_DCHECK(from._impl_.dual_values_ != nullptr);
1882 if (_this->_impl_.dual_values_ == nullptr) {
1883 _this->_impl_.dual_values_ = ::google::protobuf::Message::CopyConstruct(arena, *from._impl_.dual_values_);
1884 } else {
1885 _this->_impl_.dual_values_->MergeFrom(*from._impl_.dual_values_);
1886 }
1887 }
1888 if ((cached_has_bits & 0x00000002u) != 0) {
1889 ABSL_DCHECK(from._impl_.reduced_costs_ != nullptr);
1890 if (_this->_impl_.reduced_costs_ == nullptr) {
1891 _this->_impl_.reduced_costs_ = ::google::protobuf::Message::CopyConstruct(arena, *from._impl_.reduced_costs_);
1892 } else {
1893 _this->_impl_.reduced_costs_->MergeFrom(*from._impl_.reduced_costs_);
1894 }
1895 }
1896 }
1897 _this->_impl_._has_bits_[0] |= cached_has_bits;
1898 _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_);
1899}
1900
1901void DualRayProto::CopyFrom(const DualRayProto& from) {
1902// @@protoc_insertion_point(class_specific_copy_from_start:operations_research.math_opt.DualRayProto)
1903 if (&from == this) return;
1904 Clear();
1905 MergeFrom(from);
1907
1908
1909void DualRayProto::InternalSwap(DualRayProto* PROTOBUF_RESTRICT PROTOBUF_NONNULL other) {
1910 using ::std::swap;
1911 _internal_metadata_.InternalSwap(&other->_internal_metadata_);
1912 swap(_impl_._has_bits_[0], other->_impl_._has_bits_[0]);
1913 ::google::protobuf::internal::memswap<
1914 PROTOBUF_FIELD_OFFSET(DualRayProto, _impl_.reduced_costs_)
1915 + sizeof(DualRayProto::_impl_.reduced_costs_)
1916 - PROTOBUF_FIELD_OFFSET(DualRayProto, _impl_.dual_values_)>(
1917 reinterpret_cast<char*>(&_impl_.dual_values_),
1918 reinterpret_cast<char*>(&other->_impl_.dual_values_));
1919}
1920
1921::google::protobuf::Metadata DualRayProto::GetMetadata() const {
1922 return ::google::protobuf::Message::GetMetadataImpl(GetClassData()->full());
1923}
1924// ===================================================================
1925
1927 public:
1928};
1929
1930SparseBasisStatusVector::SparseBasisStatusVector(::google::protobuf::Arena* PROTOBUF_NULLABLE arena)
1931#if defined(PROTOBUF_CUSTOM_VTABLE)
1932 : ::google::protobuf::Message(arena, SparseBasisStatusVector_class_data_.base()) {
1933#else // PROTOBUF_CUSTOM_VTABLE
1934 : ::google::protobuf::Message(arena) {
1935#endif // PROTOBUF_CUSTOM_VTABLE
1936 SharedCtor(arena);
1937 // @@protoc_insertion_point(arena_constructor:operations_research.math_opt.SparseBasisStatusVector)
1938}
1939PROTOBUF_NDEBUG_INLINE SparseBasisStatusVector::Impl_::Impl_(
1940 ::google::protobuf::internal::InternalVisibility visibility,
1941 ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const Impl_& from,
1942 const ::operations_research::math_opt::SparseBasisStatusVector& from_msg)
1943 : ids_{visibility, arena, from.ids_},
1944 _ids_cached_byte_size_{0},
1945 values_{visibility, arena, from.values_},
1946 _values_cached_byte_size_{0},
1947 _cached_size_{0} {}
1948
1950 ::google::protobuf::Arena* PROTOBUF_NULLABLE arena,
1951 const SparseBasisStatusVector& from)
1952#if defined(PROTOBUF_CUSTOM_VTABLE)
1953 : ::google::protobuf::Message(arena, SparseBasisStatusVector_class_data_.base()) {
1954#else // PROTOBUF_CUSTOM_VTABLE
1955 : ::google::protobuf::Message(arena) {
1956#endif // PROTOBUF_CUSTOM_VTABLE
1957 SparseBasisStatusVector* const _this = this;
1958 (void)_this;
1959 _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(
1960 from._internal_metadata_);
1961 new (&_impl_) Impl_(internal_visibility(), arena, from._impl_, from);
1962
1963 // @@protoc_insertion_point(copy_constructor:operations_research.math_opt.SparseBasisStatusVector)
1964}
1965PROTOBUF_NDEBUG_INLINE SparseBasisStatusVector::Impl_::Impl_(
1966 ::google::protobuf::internal::InternalVisibility visibility,
1967 ::google::protobuf::Arena* PROTOBUF_NULLABLE arena)
1968 : ids_{visibility, arena},
1969 _ids_cached_byte_size_{0},
1970 values_{visibility, arena},
1971 _values_cached_byte_size_{0},
1972 _cached_size_{0} {}
1973
1974inline void SparseBasisStatusVector::SharedCtor(::_pb::Arena* PROTOBUF_NULLABLE arena) {
1975 new (&_impl_) Impl_(internal_visibility(), arena);
1976}
1978 // @@protoc_insertion_point(destructor:operations_research.math_opt.SparseBasisStatusVector)
1979 SharedDtor(*this);
1980}
1981inline void SparseBasisStatusVector::SharedDtor(MessageLite& self) {
1982 SparseBasisStatusVector& this_ = static_cast<SparseBasisStatusVector&>(self);
1983 this_._internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>();
1984 ABSL_DCHECK(this_.GetArena() == nullptr);
1985 this_._impl_.~Impl_();
1986}
1987
1988inline void* PROTOBUF_NONNULL SparseBasisStatusVector::PlacementNew_(
1989 const void* PROTOBUF_NONNULL, void* PROTOBUF_NONNULL mem,
1990 ::google::protobuf::Arena* PROTOBUF_NULLABLE arena) {
1991 return ::new (mem) SparseBasisStatusVector(arena);
1992}
1994 constexpr auto arena_bits = ::google::protobuf::internal::EncodePlacementArenaOffsets({
1995 PROTOBUF_FIELD_OFFSET(SparseBasisStatusVector, _impl_.ids_) +
1996 decltype(SparseBasisStatusVector::_impl_.ids_)::
1997 InternalGetArenaOffset(
1998 ::google::protobuf::Message::internal_visibility()),
1999 PROTOBUF_FIELD_OFFSET(SparseBasisStatusVector, _impl_.values_) +
2000 decltype(SparseBasisStatusVector::_impl_.values_)::
2001 InternalGetArenaOffset(
2002 ::google::protobuf::Message::internal_visibility()),
2003 });
2004 if (arena_bits.has_value()) {
2005 return ::google::protobuf::internal::MessageCreator::ZeroInit(
2006 sizeof(SparseBasisStatusVector), alignof(SparseBasisStatusVector), *arena_bits);
2007 } else {
2008 return ::google::protobuf::internal::MessageCreator(&SparseBasisStatusVector::PlacementNew_,
2009 sizeof(SparseBasisStatusVector),
2010 alignof(SparseBasisStatusVector));
2011 }
2012}
2014 return ::google::protobuf::internal::ClassDataFull{
2015 ::google::protobuf::internal::ClassData{
2017 &_table_.header,
2018 nullptr, // OnDemandRegisterArenaDtor
2019 nullptr, // IsInitialized
2020 &SparseBasisStatusVector::MergeImpl,
2021 ::google::protobuf::Message::GetNewImpl<SparseBasisStatusVector>(),
2022#if defined(PROTOBUF_CUSTOM_VTABLE)
2023 &SparseBasisStatusVector::SharedDtor,
2024 ::google::protobuf::Message::GetClearImpl<SparseBasisStatusVector>(), &SparseBasisStatusVector::ByteSizeLong,
2026#endif // PROTOBUF_CUSTOM_VTABLE
2027 PROTOBUF_FIELD_OFFSET(SparseBasisStatusVector, _impl_._cached_size_),
2028 false,
2029 },
2030 &SparseBasisStatusVector::kDescriptorMethods,
2032 nullptr, // tracker
2033 };
2034}
2035
2036PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 const
2037 ::google::protobuf::internal::ClassDataFull SparseBasisStatusVector_class_data_ =
2039
2040PROTOBUF_ATTRIBUTE_WEAK const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL
2042 ::google::protobuf::internal::PrefetchToLocalCache(&SparseBasisStatusVector_class_data_);
2043 ::google::protobuf::internal::PrefetchToLocalCache(SparseBasisStatusVector_class_data_.tc_table);
2045}
2046PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1
2047const ::_pbi::TcParseTable<1, 2, 0, 0, 2>
2048SparseBasisStatusVector::_table_ = {
2049 {
2050 0, // no _has_bits_
2051 0, // no _extensions_
2052 2, 8, // max_field_number, fast_idx_mask
2053 offsetof(decltype(_table_), field_lookup_table),
2054 4294967292, // skipmap
2055 offsetof(decltype(_table_), field_entries),
2056 2, // num_field_entries
2057 0, // num_aux_entries
2058 offsetof(decltype(_table_), field_names), // no aux_entries
2060 nullptr, // post_loop_handler
2061 ::_pbi::TcParser::GenericFallback, // fallback
2062 #ifdef PROTOBUF_PREFETCH_PARSE_TABLE
2063 ::_pbi::TcParser::GetTable<::operations_research::math_opt::SparseBasisStatusVector>(), // to_prefetch
2064 #endif // PROTOBUF_PREFETCH_PARSE_TABLE
2065 }, {{
2066 // repeated .operations_research.math_opt.BasisStatusProto values = 2;
2067 {::_pbi::TcParser::FastV32P1,
2068 {18, 63, 0, PROTOBUF_FIELD_OFFSET(SparseBasisStatusVector, _impl_.values_)}},
2069 // repeated int64 ids = 1;
2070 {::_pbi::TcParser::FastV64P1,
2071 {10, 63, 0, PROTOBUF_FIELD_OFFSET(SparseBasisStatusVector, _impl_.ids_)}},
2072 }}, {{
2073 65535, 65535
2074 }}, {{
2075 // repeated int64 ids = 1;
2076 {PROTOBUF_FIELD_OFFSET(SparseBasisStatusVector, _impl_.ids_), 0, 0,
2077 (0 | ::_fl::kFcRepeated | ::_fl::kPackedInt64)},
2078 // repeated .operations_research.math_opt.BasisStatusProto values = 2;
2079 {PROTOBUF_FIELD_OFFSET(SparseBasisStatusVector, _impl_.values_), 0, 0,
2080 (0 | ::_fl::kFcRepeated | ::_fl::kPackedOpenEnum)},
2081 }},
2082 // no aux_entries
2083 {{
2084 }},
2085};
2086PROTOBUF_NOINLINE void SparseBasisStatusVector::Clear() {
2087// @@protoc_insertion_point(message_clear_start:operations_research.math_opt.SparseBasisStatusVector)
2088 ::google::protobuf::internal::TSanWrite(&_impl_);
2089 ::uint32_t cached_has_bits = 0;
2090 // Prevent compiler warnings about cached_has_bits being unused
2091 (void) cached_has_bits;
2093 _impl_.ids_.Clear();
2094 _impl_.values_.Clear();
2095 _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>();
2096}
2097
2098#if defined(PROTOBUF_CUSTOM_VTABLE)
2099::uint8_t* PROTOBUF_NONNULL SparseBasisStatusVector::_InternalSerialize(
2100 const ::google::protobuf::MessageLite& base, ::uint8_t* PROTOBUF_NONNULL target,
2101 ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) {
2102 const SparseBasisStatusVector& this_ = static_cast<const SparseBasisStatusVector&>(base);
2103#else // PROTOBUF_CUSTOM_VTABLE
2104::uint8_t* PROTOBUF_NONNULL SparseBasisStatusVector::_InternalSerialize(
2105 ::uint8_t* PROTOBUF_NONNULL target,
2106 ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const {
2107 const SparseBasisStatusVector& this_ = *this;
2108#endif // PROTOBUF_CUSTOM_VTABLE
2109 // @@protoc_insertion_point(serialize_to_array_start:operations_research.math_opt.SparseBasisStatusVector)
2110 ::uint32_t cached_has_bits = 0;
2111 (void)cached_has_bits;
2112
2113 // repeated int64 ids = 1;
2114 {
2115 int byte_size = this_._impl_._ids_cached_byte_size_.Get();
2116 if (byte_size > 0) {
2117 target = stream->WriteInt64Packed(
2118 1, this_._internal_ids(), byte_size, target);
2119 }
2120 }
2121
2122 // repeated .operations_research.math_opt.BasisStatusProto values = 2;
2123 {
2124 ::size_t byte_size = this_._impl_._values_cached_byte_size_.Get();
2125 if (byte_size > 0) {
2126 target = stream->WriteEnumPacked(
2127 2, this_._internal_values(), byte_size, target);
2128 }
2129 }
2130
2131 if (ABSL_PREDICT_FALSE(this_._internal_metadata_.have_unknown_fields())) {
2132 target =
2133 ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray(
2134 this_._internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream);
2135 }
2136 // @@protoc_insertion_point(serialize_to_array_end:operations_research.math_opt.SparseBasisStatusVector)
2137 return target;
2138}
2139
2140#if defined(PROTOBUF_CUSTOM_VTABLE)
2142 const SparseBasisStatusVector& this_ = static_cast<const SparseBasisStatusVector&>(base);
2143#else // PROTOBUF_CUSTOM_VTABLE
2145 const SparseBasisStatusVector& this_ = *this;
2146#endif // PROTOBUF_CUSTOM_VTABLE
2147 // @@protoc_insertion_point(message_byte_size_start:operations_research.math_opt.SparseBasisStatusVector)
2148 ::size_t total_size = 0;
2149
2150 ::uint32_t cached_has_bits = 0;
2151 // Prevent compiler warnings about cached_has_bits being unused
2152 (void)cached_has_bits;
2153
2154 ::_pbi::Prefetch5LinesFrom7Lines(&this_);
2155 {
2156 // repeated int64 ids = 1;
2157 {
2158 total_size +=
2159 ::_pbi::WireFormatLite::Int64SizeWithPackedTagSize(
2160 this_._internal_ids(), 1,
2161 this_._impl_._ids_cached_byte_size_);
2162 }
2163 // repeated .operations_research.math_opt.BasisStatusProto values = 2;
2164 {
2165 total_size += ::_pbi::WireFormatLite::EnumSizeWithPackedTagSize(
2166 this_._internal_values(), 1, this_._impl_._values_cached_byte_size_);
2167 }
2168 }
2169 return this_.MaybeComputeUnknownFieldsSize(total_size,
2170 &this_._impl_._cached_size_);
2171}
2172
2173void SparseBasisStatusVector::MergeImpl(::google::protobuf::MessageLite& to_msg, const ::google::protobuf::MessageLite& from_msg) {
2174 auto* const _this = static_cast<SparseBasisStatusVector*>(&to_msg);
2175 auto& from = static_cast<const SparseBasisStatusVector&>(from_msg);
2176 // @@protoc_insertion_point(class_specific_merge_from_start:operations_research.math_opt.SparseBasisStatusVector)
2177 ABSL_DCHECK_NE(&from, _this);
2178 ::uint32_t cached_has_bits = 0;
2179 (void) cached_has_bits;
2180
2181 _this->_internal_mutable_ids()->MergeFrom(from._internal_ids());
2182 _this->_internal_mutable_values()->MergeFrom(from._internal_values());
2183 _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_);
2184}
2185
2187// @@protoc_insertion_point(class_specific_copy_from_start:operations_research.math_opt.SparseBasisStatusVector)
2188 if (&from == this) return;
2189 Clear();
2190 MergeFrom(from);
2191}
2193
2194void SparseBasisStatusVector::InternalSwap(SparseBasisStatusVector* PROTOBUF_RESTRICT PROTOBUF_NONNULL other) {
2195 using ::std::swap;
2196 _internal_metadata_.InternalSwap(&other->_internal_metadata_);
2197 _impl_.ids_.InternalSwap(&other->_impl_.ids_);
2198 _impl_.values_.InternalSwap(&other->_impl_.values_);
2199}
2200
2201::google::protobuf::Metadata SparseBasisStatusVector::GetMetadata() const {
2202 return ::google::protobuf::Message::GetMetadataImpl(GetClassData()->full());
2203}
2204// ===================================================================
2205
2206class BasisProto::_Internal {
2207 public:
2208 using HasBits =
2209 decltype(::std::declval<BasisProto>()._impl_._has_bits_);
2210 static constexpr ::int32_t kHasBitsOffset =
2211 8 * PROTOBUF_FIELD_OFFSET(BasisProto, _impl_._has_bits_);
2212};
2214BasisProto::BasisProto(::google::protobuf::Arena* PROTOBUF_NULLABLE arena)
2215#if defined(PROTOBUF_CUSTOM_VTABLE)
2216 : ::google::protobuf::Message(arena, BasisProto_class_data_.base()) {
2217#else // PROTOBUF_CUSTOM_VTABLE
2218 : ::google::protobuf::Message(arena) {
2219#endif // PROTOBUF_CUSTOM_VTABLE
2220 SharedCtor(arena);
2221 // @@protoc_insertion_point(arena_constructor:operations_research.math_opt.BasisProto)
2222}
2223PROTOBUF_NDEBUG_INLINE BasisProto::Impl_::Impl_(
2224 ::google::protobuf::internal::InternalVisibility visibility,
2225 ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const Impl_& from,
2226 const ::operations_research::math_opt::BasisProto& from_msg)
2227 : _has_bits_{from._has_bits_},
2228 _cached_size_{0} {}
2229
2231 ::google::protobuf::Arena* PROTOBUF_NULLABLE arena,
2232 const BasisProto& from)
2233#if defined(PROTOBUF_CUSTOM_VTABLE)
2234 : ::google::protobuf::Message(arena, BasisProto_class_data_.base()) {
2235#else // PROTOBUF_CUSTOM_VTABLE
2236 : ::google::protobuf::Message(arena) {
2237#endif // PROTOBUF_CUSTOM_VTABLE
2238 BasisProto* const _this = this;
2239 (void)_this;
2240 _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(
2241 from._internal_metadata_);
2242 new (&_impl_) Impl_(internal_visibility(), arena, from._impl_, from);
2243 ::uint32_t cached_has_bits = _impl_._has_bits_[0];
2244 _impl_.constraint_status_ = ((cached_has_bits & 0x00000001u) != 0)
2245 ? ::google::protobuf::Message::CopyConstruct(arena, *from._impl_.constraint_status_)
2246 : nullptr;
2247 _impl_.variable_status_ = ((cached_has_bits & 0x00000002u) != 0)
2248 ? ::google::protobuf::Message::CopyConstruct(arena, *from._impl_.variable_status_)
2249 : nullptr;
2250 _impl_.basic_dual_feasibility_ = from._impl_.basic_dual_feasibility_;
2251
2252 // @@protoc_insertion_point(copy_constructor:operations_research.math_opt.BasisProto)
2253}
2254PROTOBUF_NDEBUG_INLINE BasisProto::Impl_::Impl_(
2255 ::google::protobuf::internal::InternalVisibility visibility,
2256 ::google::protobuf::Arena* PROTOBUF_NULLABLE arena)
2257 : _cached_size_{0} {}
2258
2259inline void BasisProto::SharedCtor(::_pb::Arena* PROTOBUF_NULLABLE arena) {
2260 new (&_impl_) Impl_(internal_visibility(), arena);
2261 ::memset(reinterpret_cast<char *>(&_impl_) +
2262 offsetof(Impl_, constraint_status_),
2263 0,
2264 offsetof(Impl_, basic_dual_feasibility_) -
2265 offsetof(Impl_, constraint_status_) +
2266 sizeof(Impl_::basic_dual_feasibility_));
2267}
2269 // @@protoc_insertion_point(destructor:operations_research.math_opt.BasisProto)
2270 SharedDtor(*this);
2271}
2272inline void BasisProto::SharedDtor(MessageLite& self) {
2273 BasisProto& this_ = static_cast<BasisProto&>(self);
2274 this_._internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>();
2275 ABSL_DCHECK(this_.GetArena() == nullptr);
2276 delete this_._impl_.constraint_status_;
2277 delete this_._impl_.variable_status_;
2278 this_._impl_.~Impl_();
2279}
2280
2281inline void* PROTOBUF_NONNULL BasisProto::PlacementNew_(
2282 const void* PROTOBUF_NONNULL, void* PROTOBUF_NONNULL mem,
2283 ::google::protobuf::Arena* PROTOBUF_NULLABLE arena) {
2284 return ::new (mem) BasisProto(arena);
2285}
2286constexpr auto BasisProto::InternalNewImpl_() {
2287 return ::google::protobuf::internal::MessageCreator::ZeroInit(sizeof(BasisProto),
2288 alignof(BasisProto));
2289}
2291 return ::google::protobuf::internal::ClassDataFull{
2292 ::google::protobuf::internal::ClassData{
2294 &_table_.header,
2295 nullptr, // OnDemandRegisterArenaDtor
2296 nullptr, // IsInitialized
2297 &BasisProto::MergeImpl,
2298 ::google::protobuf::Message::GetNewImpl<BasisProto>(),
2299#if defined(PROTOBUF_CUSTOM_VTABLE)
2300 &BasisProto::SharedDtor,
2301 ::google::protobuf::Message::GetClearImpl<BasisProto>(), &BasisProto::ByteSizeLong,
2303#endif // PROTOBUF_CUSTOM_VTABLE
2304 PROTOBUF_FIELD_OFFSET(BasisProto, _impl_._cached_size_),
2305 false,
2306 },
2307 &BasisProto::kDescriptorMethods,
2309 nullptr, // tracker
2310 };
2311}
2312
2313PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 const
2314 ::google::protobuf::internal::ClassDataFull BasisProto_class_data_ =
2316
2317PROTOBUF_ATTRIBUTE_WEAK const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL
2319 ::google::protobuf::internal::PrefetchToLocalCache(&BasisProto_class_data_);
2320 ::google::protobuf::internal::PrefetchToLocalCache(BasisProto_class_data_.tc_table);
2322}
2323PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1
2324const ::_pbi::TcParseTable<2, 3, 2, 0, 2>
2325BasisProto::_table_ = {
2326 {
2327 PROTOBUF_FIELD_OFFSET(BasisProto, _impl_._has_bits_),
2328 0, // no _extensions_
2329 3, 24, // max_field_number, fast_idx_mask
2330 offsetof(decltype(_table_), field_lookup_table),
2331 4294967288, // skipmap
2332 offsetof(decltype(_table_), field_entries),
2333 3, // num_field_entries
2334 2, // num_aux_entries
2335 offsetof(decltype(_table_), aux_entries),
2337 nullptr, // post_loop_handler
2338 ::_pbi::TcParser::GenericFallback, // fallback
2339 #ifdef PROTOBUF_PREFETCH_PARSE_TABLE
2340 ::_pbi::TcParser::GetTable<::operations_research::math_opt::BasisProto>(), // to_prefetch
2341 #endif // PROTOBUF_PREFETCH_PARSE_TABLE
2342 }, {{
2343 {::_pbi::TcParser::MiniParse, {}},
2344 // .operations_research.math_opt.SparseBasisStatusVector constraint_status = 1;
2345 {::_pbi::TcParser::FastMtS1,
2346 {10, 0, 0, PROTOBUF_FIELD_OFFSET(BasisProto, _impl_.constraint_status_)}},
2347 // .operations_research.math_opt.SparseBasisStatusVector variable_status = 2;
2348 {::_pbi::TcParser::FastMtS1,
2349 {18, 1, 1, PROTOBUF_FIELD_OFFSET(BasisProto, _impl_.variable_status_)}},
2350 // .operations_research.math_opt.SolutionStatusProto basic_dual_feasibility = 3;
2351 {::_pbi::TcParser::SingularVarintNoZag1<::uint32_t, offsetof(BasisProto, _impl_.basic_dual_feasibility_), 2>(),
2352 {24, 2, 0, PROTOBUF_FIELD_OFFSET(BasisProto, _impl_.basic_dual_feasibility_)}},
2353 }}, {{
2354 65535, 65535
2355 }}, {{
2356 // .operations_research.math_opt.SparseBasisStatusVector constraint_status = 1;
2357 {PROTOBUF_FIELD_OFFSET(BasisProto, _impl_.constraint_status_), _Internal::kHasBitsOffset + 0, 0,
2358 (0 | ::_fl::kFcOptional | ::_fl::kMessage | ::_fl::kTvTable)},
2359 // .operations_research.math_opt.SparseBasisStatusVector variable_status = 2;
2360 {PROTOBUF_FIELD_OFFSET(BasisProto, _impl_.variable_status_), _Internal::kHasBitsOffset + 1, 1,
2361 (0 | ::_fl::kFcOptional | ::_fl::kMessage | ::_fl::kTvTable)},
2362 // .operations_research.math_opt.SolutionStatusProto basic_dual_feasibility = 3;
2363 {PROTOBUF_FIELD_OFFSET(BasisProto, _impl_.basic_dual_feasibility_), _Internal::kHasBitsOffset + 2, 0,
2364 (0 | ::_fl::kFcOptional | ::_fl::kOpenEnum)},
2365 }},
2366 {{
2367 {::_pbi::TcParser::GetTable<::operations_research::math_opt::SparseBasisStatusVector>()},
2368 {::_pbi::TcParser::GetTable<::operations_research::math_opt::SparseBasisStatusVector>()},
2369 }},
2370 {{
2371 }},
2372};
2373PROTOBUF_NOINLINE void BasisProto::Clear() {
2374// @@protoc_insertion_point(message_clear_start:operations_research.math_opt.BasisProto)
2375 ::google::protobuf::internal::TSanWrite(&_impl_);
2376 ::uint32_t cached_has_bits = 0;
2377 // Prevent compiler warnings about cached_has_bits being unused
2378 (void) cached_has_bits;
2379
2380 cached_has_bits = _impl_._has_bits_[0];
2381 if ((cached_has_bits & 0x00000003u) != 0) {
2382 if ((cached_has_bits & 0x00000001u) != 0) {
2383 ABSL_DCHECK(_impl_.constraint_status_ != nullptr);
2384 _impl_.constraint_status_->Clear();
2385 }
2386 if ((cached_has_bits & 0x00000002u) != 0) {
2387 ABSL_DCHECK(_impl_.variable_status_ != nullptr);
2388 _impl_.variable_status_->Clear();
2389 }
2390 }
2391 _impl_.basic_dual_feasibility_ = 0;
2392 _impl_._has_bits_.Clear();
2393 _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>();
2394}
2395
2396#if defined(PROTOBUF_CUSTOM_VTABLE)
2397::uint8_t* PROTOBUF_NONNULL BasisProto::_InternalSerialize(
2398 const ::google::protobuf::MessageLite& base, ::uint8_t* PROTOBUF_NONNULL target,
2399 ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) {
2400 const BasisProto& this_ = static_cast<const BasisProto&>(base);
2401#else // PROTOBUF_CUSTOM_VTABLE
2402::uint8_t* PROTOBUF_NONNULL BasisProto::_InternalSerialize(
2403 ::uint8_t* PROTOBUF_NONNULL target,
2404 ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const {
2405 const BasisProto& this_ = *this;
2406#endif // PROTOBUF_CUSTOM_VTABLE
2407 // @@protoc_insertion_point(serialize_to_array_start:operations_research.math_opt.BasisProto)
2408 ::uint32_t cached_has_bits = 0;
2409 (void)cached_has_bits;
2410
2411 cached_has_bits = this_._impl_._has_bits_[0];
2412 // .operations_research.math_opt.SparseBasisStatusVector constraint_status = 1;
2413 if ((cached_has_bits & 0x00000001u) != 0) {
2414 target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage(
2415 1, *this_._impl_.constraint_status_, this_._impl_.constraint_status_->GetCachedSize(), target,
2416 stream);
2417 }
2418
2419 // .operations_research.math_opt.SparseBasisStatusVector variable_status = 2;
2420 if ((cached_has_bits & 0x00000002u) != 0) {
2421 target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage(
2422 2, *this_._impl_.variable_status_, this_._impl_.variable_status_->GetCachedSize(), target,
2423 stream);
2424 }
2425
2426 // .operations_research.math_opt.SolutionStatusProto basic_dual_feasibility = 3;
2427 if ((cached_has_bits & 0x00000004u) != 0) {
2428 if (this_._internal_basic_dual_feasibility() != 0) {
2429 target = stream->EnsureSpace(target);
2430 target = ::_pbi::WireFormatLite::WriteEnumToArray(
2431 3, this_._internal_basic_dual_feasibility(), target);
2432 }
2433 }
2434
2435 if (ABSL_PREDICT_FALSE(this_._internal_metadata_.have_unknown_fields())) {
2436 target =
2437 ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray(
2438 this_._internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream);
2439 }
2440 // @@protoc_insertion_point(serialize_to_array_end:operations_research.math_opt.BasisProto)
2441 return target;
2442}
2443
2444#if defined(PROTOBUF_CUSTOM_VTABLE)
2445::size_t BasisProto::ByteSizeLong(const MessageLite& base) {
2446 const BasisProto& this_ = static_cast<const BasisProto&>(base);
2447#else // PROTOBUF_CUSTOM_VTABLE
2448::size_t BasisProto::ByteSizeLong() const {
2449 const BasisProto& this_ = *this;
2450#endif // PROTOBUF_CUSTOM_VTABLE
2451 // @@protoc_insertion_point(message_byte_size_start:operations_research.math_opt.BasisProto)
2452 ::size_t total_size = 0;
2453
2454 ::uint32_t cached_has_bits = 0;
2455 // Prevent compiler warnings about cached_has_bits being unused
2456 (void)cached_has_bits;
2457
2458 ::_pbi::Prefetch5LinesFrom7Lines(&this_);
2459 cached_has_bits = this_._impl_._has_bits_[0];
2460 if ((cached_has_bits & 0x00000007u) != 0) {
2461 // .operations_research.math_opt.SparseBasisStatusVector constraint_status = 1;
2462 if ((cached_has_bits & 0x00000001u) != 0) {
2463 total_size += 1 +
2464 ::google::protobuf::internal::WireFormatLite::MessageSize(*this_._impl_.constraint_status_);
2465 }
2466 // .operations_research.math_opt.SparseBasisStatusVector variable_status = 2;
2467 if ((cached_has_bits & 0x00000002u) != 0) {
2468 total_size += 1 +
2469 ::google::protobuf::internal::WireFormatLite::MessageSize(*this_._impl_.variable_status_);
2470 }
2471 // .operations_research.math_opt.SolutionStatusProto basic_dual_feasibility = 3;
2472 if ((cached_has_bits & 0x00000004u) != 0) {
2473 if (this_._internal_basic_dual_feasibility() != 0) {
2474 total_size += 1 +
2475 ::_pbi::WireFormatLite::EnumSize(this_._internal_basic_dual_feasibility());
2476 }
2477 }
2478 }
2479 return this_.MaybeComputeUnknownFieldsSize(total_size,
2480 &this_._impl_._cached_size_);
2481}
2482
2483void BasisProto::MergeImpl(::google::protobuf::MessageLite& to_msg, const ::google::protobuf::MessageLite& from_msg) {
2484 auto* const _this = static_cast<BasisProto*>(&to_msg);
2485 auto& from = static_cast<const BasisProto&>(from_msg);
2486 ::google::protobuf::Arena* arena = _this->GetArena();
2487 // @@protoc_insertion_point(class_specific_merge_from_start:operations_research.math_opt.BasisProto)
2488 ABSL_DCHECK_NE(&from, _this);
2489 ::uint32_t cached_has_bits = 0;
2490 (void) cached_has_bits;
2491
2492 cached_has_bits = from._impl_._has_bits_[0];
2493 if ((cached_has_bits & 0x00000007u) != 0) {
2494 if ((cached_has_bits & 0x00000001u) != 0) {
2495 ABSL_DCHECK(from._impl_.constraint_status_ != nullptr);
2496 if (_this->_impl_.constraint_status_ == nullptr) {
2497 _this->_impl_.constraint_status_ = ::google::protobuf::Message::CopyConstruct(arena, *from._impl_.constraint_status_);
2498 } else {
2499 _this->_impl_.constraint_status_->MergeFrom(*from._impl_.constraint_status_);
2500 }
2501 }
2502 if ((cached_has_bits & 0x00000002u) != 0) {
2503 ABSL_DCHECK(from._impl_.variable_status_ != nullptr);
2504 if (_this->_impl_.variable_status_ == nullptr) {
2505 _this->_impl_.variable_status_ = ::google::protobuf::Message::CopyConstruct(arena, *from._impl_.variable_status_);
2506 } else {
2507 _this->_impl_.variable_status_->MergeFrom(*from._impl_.variable_status_);
2508 }
2509 }
2510 if ((cached_has_bits & 0x00000004u) != 0) {
2511 if (from._internal_basic_dual_feasibility() != 0) {
2512 _this->_impl_.basic_dual_feasibility_ = from._impl_.basic_dual_feasibility_;
2513 }
2514 }
2515 }
2516 _this->_impl_._has_bits_[0] |= cached_has_bits;
2517 _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_);
2518}
2519
2520void BasisProto::CopyFrom(const BasisProto& from) {
2521// @@protoc_insertion_point(class_specific_copy_from_start:operations_research.math_opt.BasisProto)
2522 if (&from == this) return;
2523 Clear();
2524 MergeFrom(from);
2525}
2526
2528void BasisProto::InternalSwap(BasisProto* PROTOBUF_RESTRICT PROTOBUF_NONNULL other) {
2529 using ::std::swap;
2530 _internal_metadata_.InternalSwap(&other->_internal_metadata_);
2531 swap(_impl_._has_bits_[0], other->_impl_._has_bits_[0]);
2532 ::google::protobuf::internal::memswap<
2533 PROTOBUF_FIELD_OFFSET(BasisProto, _impl_.basic_dual_feasibility_)
2534 + sizeof(BasisProto::_impl_.basic_dual_feasibility_)
2535 - PROTOBUF_FIELD_OFFSET(BasisProto, _impl_.constraint_status_)>(
2536 reinterpret_cast<char*>(&_impl_.constraint_status_),
2537 reinterpret_cast<char*>(&other->_impl_.constraint_status_));
2538}
2539
2540::google::protobuf::Metadata BasisProto::GetMetadata() const {
2541 return ::google::protobuf::Message::GetMetadataImpl(GetClassData()->full());
2542}
2543// ===================================================================
2544
2545class SolutionProto::_Internal {
2546 public:
2547 using HasBits =
2548 decltype(::std::declval<SolutionProto>()._impl_._has_bits_);
2549 static constexpr ::int32_t kHasBitsOffset =
2550 8 * PROTOBUF_FIELD_OFFSET(SolutionProto, _impl_._has_bits_);
2551};
2552
2553SolutionProto::SolutionProto(::google::protobuf::Arena* PROTOBUF_NULLABLE arena)
2554#if defined(PROTOBUF_CUSTOM_VTABLE)
2555 : ::google::protobuf::Message(arena, SolutionProto_class_data_.base()) {
2556#else // PROTOBUF_CUSTOM_VTABLE
2557 : ::google::protobuf::Message(arena) {
2558#endif // PROTOBUF_CUSTOM_VTABLE
2559 SharedCtor(arena);
2560 // @@protoc_insertion_point(arena_constructor:operations_research.math_opt.SolutionProto)
2562PROTOBUF_NDEBUG_INLINE SolutionProto::Impl_::Impl_(
2563 ::google::protobuf::internal::InternalVisibility visibility,
2564 ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const Impl_& from,
2565 const ::operations_research::math_opt::SolutionProto& from_msg)
2566 : _has_bits_{from._has_bits_},
2567 _cached_size_{0} {}
2568
2570 ::google::protobuf::Arena* PROTOBUF_NULLABLE arena,
2571 const SolutionProto& from)
2572#if defined(PROTOBUF_CUSTOM_VTABLE)
2573 : ::google::protobuf::Message(arena, SolutionProto_class_data_.base()) {
2574#else // PROTOBUF_CUSTOM_VTABLE
2575 : ::google::protobuf::Message(arena) {
2576#endif // PROTOBUF_CUSTOM_VTABLE
2577 SolutionProto* const _this = this;
2578 (void)_this;
2579 _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(
2580 from._internal_metadata_);
2581 new (&_impl_) Impl_(internal_visibility(), arena, from._impl_, from);
2582 ::uint32_t cached_has_bits = _impl_._has_bits_[0];
2583 _impl_.primal_solution_ = ((cached_has_bits & 0x00000001u) != 0)
2584 ? ::google::protobuf::Message::CopyConstruct(arena, *from._impl_.primal_solution_)
2585 : nullptr;
2586 _impl_.dual_solution_ = ((cached_has_bits & 0x00000002u) != 0)
2587 ? ::google::protobuf::Message::CopyConstruct(arena, *from._impl_.dual_solution_)
2588 : nullptr;
2589 _impl_.basis_ = ((cached_has_bits & 0x00000004u) != 0)
2590 ? ::google::protobuf::Message::CopyConstruct(arena, *from._impl_.basis_)
2591 : nullptr;
2592
2593 // @@protoc_insertion_point(copy_constructor:operations_research.math_opt.SolutionProto)
2594}
2595PROTOBUF_NDEBUG_INLINE SolutionProto::Impl_::Impl_(
2596 ::google::protobuf::internal::InternalVisibility visibility,
2597 ::google::protobuf::Arena* PROTOBUF_NULLABLE arena)
2598 : _cached_size_{0} {}
2599
2600inline void SolutionProto::SharedCtor(::_pb::Arena* PROTOBUF_NULLABLE arena) {
2601 new (&_impl_) Impl_(internal_visibility(), arena);
2602 ::memset(reinterpret_cast<char *>(&_impl_) +
2603 offsetof(Impl_, primal_solution_),
2604 0,
2605 offsetof(Impl_, basis_) -
2606 offsetof(Impl_, primal_solution_) +
2607 sizeof(Impl_::basis_));
2608}
2610 // @@protoc_insertion_point(destructor:operations_research.math_opt.SolutionProto)
2611 SharedDtor(*this);
2612}
2613inline void SolutionProto::SharedDtor(MessageLite& self) {
2614 SolutionProto& this_ = static_cast<SolutionProto&>(self);
2615 this_._internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>();
2616 ABSL_DCHECK(this_.GetArena() == nullptr);
2617 delete this_._impl_.primal_solution_;
2618 delete this_._impl_.dual_solution_;
2619 delete this_._impl_.basis_;
2620 this_._impl_.~Impl_();
2621}
2622
2623inline void* PROTOBUF_NONNULL SolutionProto::PlacementNew_(
2624 const void* PROTOBUF_NONNULL, void* PROTOBUF_NONNULL mem,
2625 ::google::protobuf::Arena* PROTOBUF_NULLABLE arena) {
2626 return ::new (mem) SolutionProto(arena);
2627}
2628constexpr auto SolutionProto::InternalNewImpl_() {
2629 return ::google::protobuf::internal::MessageCreator::ZeroInit(sizeof(SolutionProto),
2630 alignof(SolutionProto));
2633 return ::google::protobuf::internal::ClassDataFull{
2634 ::google::protobuf::internal::ClassData{
2636 &_table_.header,
2637 nullptr, // OnDemandRegisterArenaDtor
2638 nullptr, // IsInitialized
2639 &SolutionProto::MergeImpl,
2640 ::google::protobuf::Message::GetNewImpl<SolutionProto>(),
2641#if defined(PROTOBUF_CUSTOM_VTABLE)
2642 &SolutionProto::SharedDtor,
2643 ::google::protobuf::Message::GetClearImpl<SolutionProto>(), &SolutionProto::ByteSizeLong,
2645#endif // PROTOBUF_CUSTOM_VTABLE
2646 PROTOBUF_FIELD_OFFSET(SolutionProto, _impl_._cached_size_),
2647 false,
2648 },
2649 &SolutionProto::kDescriptorMethods,
2651 nullptr, // tracker
2652 };
2653}
2654
2655PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 const
2656 ::google::protobuf::internal::ClassDataFull SolutionProto_class_data_ =
2658
2659PROTOBUF_ATTRIBUTE_WEAK const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL
2661 ::google::protobuf::internal::PrefetchToLocalCache(&SolutionProto_class_data_);
2662 ::google::protobuf::internal::PrefetchToLocalCache(SolutionProto_class_data_.tc_table);
2663 return SolutionProto_class_data_.base();
2665PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1
2666const ::_pbi::TcParseTable<2, 3, 3, 0, 2>
2667SolutionProto::_table_ = {
2669 PROTOBUF_FIELD_OFFSET(SolutionProto, _impl_._has_bits_),
2670 0, // no _extensions_
2671 3, 24, // max_field_number, fast_idx_mask
2672 offsetof(decltype(_table_), field_lookup_table),
2673 4294967288, // skipmap
2674 offsetof(decltype(_table_), field_entries),
2675 3, // num_field_entries
2676 3, // num_aux_entries
2677 offsetof(decltype(_table_), aux_entries),
2679 nullptr, // post_loop_handler
2680 ::_pbi::TcParser::GenericFallback, // fallback
2681 #ifdef PROTOBUF_PREFETCH_PARSE_TABLE
2682 ::_pbi::TcParser::GetTable<::operations_research::math_opt::SolutionProto>(), // to_prefetch
2683 #endif // PROTOBUF_PREFETCH_PARSE_TABLE
2684 }, {{
2685 {::_pbi::TcParser::MiniParse, {}},
2686 // optional .operations_research.math_opt.PrimalSolutionProto primal_solution = 1;
2687 {::_pbi::TcParser::FastMtS1,
2688 {10, 0, 0, PROTOBUF_FIELD_OFFSET(SolutionProto, _impl_.primal_solution_)}},
2689 // optional .operations_research.math_opt.DualSolutionProto dual_solution = 2;
2690 {::_pbi::TcParser::FastMtS1,
2691 {18, 1, 1, PROTOBUF_FIELD_OFFSET(SolutionProto, _impl_.dual_solution_)}},
2692 // optional .operations_research.math_opt.BasisProto basis = 3;
2693 {::_pbi::TcParser::FastMtS1,
2694 {26, 2, 2, PROTOBUF_FIELD_OFFSET(SolutionProto, _impl_.basis_)}},
2695 }}, {{
2696 65535, 65535
2697 }}, {{
2698 // optional .operations_research.math_opt.PrimalSolutionProto primal_solution = 1;
2699 {PROTOBUF_FIELD_OFFSET(SolutionProto, _impl_.primal_solution_), _Internal::kHasBitsOffset + 0, 0,
2700 (0 | ::_fl::kFcOptional | ::_fl::kMessage | ::_fl::kTvTable)},
2701 // optional .operations_research.math_opt.DualSolutionProto dual_solution = 2;
2702 {PROTOBUF_FIELD_OFFSET(SolutionProto, _impl_.dual_solution_), _Internal::kHasBitsOffset + 1, 1,
2703 (0 | ::_fl::kFcOptional | ::_fl::kMessage | ::_fl::kTvTable)},
2704 // optional .operations_research.math_opt.BasisProto basis = 3;
2705 {PROTOBUF_FIELD_OFFSET(SolutionProto, _impl_.basis_), _Internal::kHasBitsOffset + 2, 2,
2706 (0 | ::_fl::kFcOptional | ::_fl::kMessage | ::_fl::kTvTable)},
2707 }},
2708 {{
2709 {::_pbi::TcParser::GetTable<::operations_research::math_opt::PrimalSolutionProto>()},
2710 {::_pbi::TcParser::GetTable<::operations_research::math_opt::DualSolutionProto>()},
2711 {::_pbi::TcParser::GetTable<::operations_research::math_opt::BasisProto>()},
2712 }},
2713 {{
2714 }},
2715};
2716PROTOBUF_NOINLINE void SolutionProto::Clear() {
2717// @@protoc_insertion_point(message_clear_start:operations_research.math_opt.SolutionProto)
2718 ::google::protobuf::internal::TSanWrite(&_impl_);
2719 ::uint32_t cached_has_bits = 0;
2720 // Prevent compiler warnings about cached_has_bits being unused
2721 (void) cached_has_bits;
2722
2723 cached_has_bits = _impl_._has_bits_[0];
2724 if ((cached_has_bits & 0x00000007u) != 0) {
2725 if ((cached_has_bits & 0x00000001u) != 0) {
2726 ABSL_DCHECK(_impl_.primal_solution_ != nullptr);
2727 _impl_.primal_solution_->Clear();
2728 }
2729 if ((cached_has_bits & 0x00000002u) != 0) {
2730 ABSL_DCHECK(_impl_.dual_solution_ != nullptr);
2731 _impl_.dual_solution_->Clear();
2732 }
2733 if ((cached_has_bits & 0x00000004u) != 0) {
2734 ABSL_DCHECK(_impl_.basis_ != nullptr);
2735 _impl_.basis_->Clear();
2736 }
2737 }
2738 _impl_._has_bits_.Clear();
2739 _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>();
2740}
2741
2742#if defined(PROTOBUF_CUSTOM_VTABLE)
2743::uint8_t* PROTOBUF_NONNULL SolutionProto::_InternalSerialize(
2744 const ::google::protobuf::MessageLite& base, ::uint8_t* PROTOBUF_NONNULL target,
2745 ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) {
2746 const SolutionProto& this_ = static_cast<const SolutionProto&>(base);
2747#else // PROTOBUF_CUSTOM_VTABLE
2748::uint8_t* PROTOBUF_NONNULL SolutionProto::_InternalSerialize(
2749 ::uint8_t* PROTOBUF_NONNULL target,
2750 ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const {
2751 const SolutionProto& this_ = *this;
2752#endif // PROTOBUF_CUSTOM_VTABLE
2753 // @@protoc_insertion_point(serialize_to_array_start:operations_research.math_opt.SolutionProto)
2754 ::uint32_t cached_has_bits = 0;
2755 (void)cached_has_bits;
2757 cached_has_bits = this_._impl_._has_bits_[0];
2758 // optional .operations_research.math_opt.PrimalSolutionProto primal_solution = 1;
2759 if ((cached_has_bits & 0x00000001u) != 0) {
2760 target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage(
2761 1, *this_._impl_.primal_solution_, this_._impl_.primal_solution_->GetCachedSize(), target,
2762 stream);
2763 }
2764
2765 // optional .operations_research.math_opt.DualSolutionProto dual_solution = 2;
2766 if ((cached_has_bits & 0x00000002u) != 0) {
2767 target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage(
2768 2, *this_._impl_.dual_solution_, this_._impl_.dual_solution_->GetCachedSize(), target,
2769 stream);
2770 }
2771
2772 // optional .operations_research.math_opt.BasisProto basis = 3;
2773 if ((cached_has_bits & 0x00000004u) != 0) {
2774 target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage(
2775 3, *this_._impl_.basis_, this_._impl_.basis_->GetCachedSize(), target,
2776 stream);
2777 }
2778
2779 if (ABSL_PREDICT_FALSE(this_._internal_metadata_.have_unknown_fields())) {
2780 target =
2781 ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray(
2782 this_._internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream);
2783 }
2784 // @@protoc_insertion_point(serialize_to_array_end:operations_research.math_opt.SolutionProto)
2785 return target;
2786}
2787
2788#if defined(PROTOBUF_CUSTOM_VTABLE)
2789::size_t SolutionProto::ByteSizeLong(const MessageLite& base) {
2790 const SolutionProto& this_ = static_cast<const SolutionProto&>(base);
2791#else // PROTOBUF_CUSTOM_VTABLE
2792::size_t SolutionProto::ByteSizeLong() const {
2793 const SolutionProto& this_ = *this;
2794#endif // PROTOBUF_CUSTOM_VTABLE
2795 // @@protoc_insertion_point(message_byte_size_start:operations_research.math_opt.SolutionProto)
2796 ::size_t total_size = 0;
2797
2798 ::uint32_t cached_has_bits = 0;
2799 // Prevent compiler warnings about cached_has_bits being unused
2800 (void)cached_has_bits;
2801
2802 ::_pbi::Prefetch5LinesFrom7Lines(&this_);
2803 cached_has_bits = this_._impl_._has_bits_[0];
2804 if ((cached_has_bits & 0x00000007u) != 0) {
2805 // optional .operations_research.math_opt.PrimalSolutionProto primal_solution = 1;
2806 if ((cached_has_bits & 0x00000001u) != 0) {
2807 total_size += 1 +
2808 ::google::protobuf::internal::WireFormatLite::MessageSize(*this_._impl_.primal_solution_);
2809 }
2810 // optional .operations_research.math_opt.DualSolutionProto dual_solution = 2;
2811 if ((cached_has_bits & 0x00000002u) != 0) {
2812 total_size += 1 +
2813 ::google::protobuf::internal::WireFormatLite::MessageSize(*this_._impl_.dual_solution_);
2814 }
2815 // optional .operations_research.math_opt.BasisProto basis = 3;
2816 if ((cached_has_bits & 0x00000004u) != 0) {
2817 total_size += 1 +
2818 ::google::protobuf::internal::WireFormatLite::MessageSize(*this_._impl_.basis_);
2819 }
2820 }
2821 return this_.MaybeComputeUnknownFieldsSize(total_size,
2822 &this_._impl_._cached_size_);
2823}
2824
2825void SolutionProto::MergeImpl(::google::protobuf::MessageLite& to_msg, const ::google::protobuf::MessageLite& from_msg) {
2826 auto* const _this = static_cast<SolutionProto*>(&to_msg);
2827 auto& from = static_cast<const SolutionProto&>(from_msg);
2828 ::google::protobuf::Arena* arena = _this->GetArena();
2829 // @@protoc_insertion_point(class_specific_merge_from_start:operations_research.math_opt.SolutionProto)
2830 ABSL_DCHECK_NE(&from, _this);
2831 ::uint32_t cached_has_bits = 0;
2832 (void) cached_has_bits;
2833
2834 cached_has_bits = from._impl_._has_bits_[0];
2835 if ((cached_has_bits & 0x00000007u) != 0) {
2836 if ((cached_has_bits & 0x00000001u) != 0) {
2837 ABSL_DCHECK(from._impl_.primal_solution_ != nullptr);
2838 if (_this->_impl_.primal_solution_ == nullptr) {
2839 _this->_impl_.primal_solution_ = ::google::protobuf::Message::CopyConstruct(arena, *from._impl_.primal_solution_);
2840 } else {
2841 _this->_impl_.primal_solution_->MergeFrom(*from._impl_.primal_solution_);
2842 }
2843 }
2844 if ((cached_has_bits & 0x00000002u) != 0) {
2845 ABSL_DCHECK(from._impl_.dual_solution_ != nullptr);
2846 if (_this->_impl_.dual_solution_ == nullptr) {
2847 _this->_impl_.dual_solution_ = ::google::protobuf::Message::CopyConstruct(arena, *from._impl_.dual_solution_);
2848 } else {
2849 _this->_impl_.dual_solution_->MergeFrom(*from._impl_.dual_solution_);
2850 }
2851 }
2852 if ((cached_has_bits & 0x00000004u) != 0) {
2853 ABSL_DCHECK(from._impl_.basis_ != nullptr);
2854 if (_this->_impl_.basis_ == nullptr) {
2855 _this->_impl_.basis_ = ::google::protobuf::Message::CopyConstruct(arena, *from._impl_.basis_);
2856 } else {
2857 _this->_impl_.basis_->MergeFrom(*from._impl_.basis_);
2858 }
2859 }
2860 }
2861 _this->_impl_._has_bits_[0] |= cached_has_bits;
2862 _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_);
2863}
2864
2865void SolutionProto::CopyFrom(const SolutionProto& from) {
2866// @@protoc_insertion_point(class_specific_copy_from_start:operations_research.math_opt.SolutionProto)
2867 if (&from == this) return;
2868 Clear();
2869 MergeFrom(from);
2870}
2871
2872
2873void SolutionProto::InternalSwap(SolutionProto* PROTOBUF_RESTRICT PROTOBUF_NONNULL other) {
2874 using ::std::swap;
2875 _internal_metadata_.InternalSwap(&other->_internal_metadata_);
2876 swap(_impl_._has_bits_[0], other->_impl_._has_bits_[0]);
2877 ::google::protobuf::internal::memswap<
2878 PROTOBUF_FIELD_OFFSET(SolutionProto, _impl_.basis_)
2879 + sizeof(SolutionProto::_impl_.basis_)
2880 - PROTOBUF_FIELD_OFFSET(SolutionProto, _impl_.primal_solution_)>(
2881 reinterpret_cast<char*>(&_impl_.primal_solution_),
2882 reinterpret_cast<char*>(&other->_impl_.primal_solution_));
2883}
2884
2885::google::protobuf::Metadata SolutionProto::GetMetadata() const {
2886 return ::google::protobuf::Message::GetMetadataImpl(GetClassData()->full());
2887}
2888// @@protoc_insertion_point(namespace_scope)
2889} // namespace math_opt
2890} // namespace operations_research
2891namespace google {
2892namespace protobuf {
2893} // namespace protobuf
2894} // namespace google
2895// @@protoc_insertion_point(global_scope)
2896PROTOBUF_ATTRIBUTE_INIT_PRIORITY2 static ::std::false_type
2897 _static_init2_ [[maybe_unused]] =
2899 ::std::false_type{});
2900#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[]
friend class ::google::protobuf::MessageLite
void MergeFrom(const BasisProto &from)
static constexpr auto InternalGenerateClassData_()
::google::protobuf::Metadata GetMetadata() const
friend void swap(BasisProto &a, BasisProto &b)
void CopyFrom(const BasisProto &from)
ABSL_ATTRIBUTE_REINITIALIZES void Clear() PROTOBUF_FINAL
::uint8_t *PROTOBUF_NONNULL _InternalSerialize(::uint8_t *PROTOBUF_NONNULL target, ::google::protobuf::io::EpsCopyOutputStream *PROTOBUF_NONNULL stream) const final
static void *PROTOBUF_NONNULL PlacementNew_(const void *PROTOBUF_NONNULL, void *PROTOBUF_NONNULL mem, ::google::protobuf::Arena *PROTOBUF_NULLABLE arena)
friend class ::google::protobuf::Arena
const ::google::protobuf::internal::ClassData *PROTOBUF_NONNULL GetClassData() const PROTOBUF_FINAL
friend class ::google::protobuf::MessageLite
friend void swap(DualRayProto &a, DualRayProto &b)
::uint8_t *PROTOBUF_NONNULL _InternalSerialize(::uint8_t *PROTOBUF_NONNULL target, ::google::protobuf::io::EpsCopyOutputStream *PROTOBUF_NONNULL stream) const final
const ::google::protobuf::internal::ClassData *PROTOBUF_NONNULL GetClassData() const PROTOBUF_FINAL
void MergeFrom(const DualRayProto &from)
void CopyFrom(const DualRayProto &from)
ABSL_ATTRIBUTE_REINITIALIZES void Clear() PROTOBUF_FINAL
::google::protobuf::Metadata GetMetadata() const
static constexpr auto InternalGenerateClassData_()
static void *PROTOBUF_NONNULL PlacementNew_(const void *PROTOBUF_NONNULL, void *PROTOBUF_NONNULL mem, ::google::protobuf::Arena *PROTOBUF_NULLABLE arena)
friend class ::google::protobuf::Arena
::google::protobuf::Metadata GetMetadata() const
friend class ::google::protobuf::MessageLite
void MergeFrom(const DualSolutionProto &from)
void CopyFrom(const DualSolutionProto &from)
const ::google::protobuf::internal::ClassData *PROTOBUF_NONNULL GetClassData() const PROTOBUF_FINAL
friend void swap(DualSolutionProto &a, DualSolutionProto &b)
ABSL_ATTRIBUTE_REINITIALIZES void Clear() PROTOBUF_FINAL
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
friend class ::google::protobuf::MessageLite
static void *PROTOBUF_NONNULL PlacementNew_(const void *PROTOBUF_NONNULL, void *PROTOBUF_NONNULL mem, ::google::protobuf::Arena *PROTOBUF_NULLABLE arena)
void CopyFrom(const PrimalRayProto &from)
const ::google::protobuf::internal::ClassData *PROTOBUF_NONNULL GetClassData() const PROTOBUF_FINAL
ABSL_ATTRIBUTE_REINITIALIZES void Clear() PROTOBUF_FINAL
void MergeFrom(const PrimalRayProto &from)
friend void swap(PrimalRayProto &a, PrimalRayProto &b)
::uint8_t *PROTOBUF_NONNULL _InternalSerialize(::uint8_t *PROTOBUF_NONNULL target, ::google::protobuf::io::EpsCopyOutputStream *PROTOBUF_NONNULL stream) const final
::google::protobuf::Metadata GetMetadata() const
const ::google::protobuf::UnknownFieldSet & unknown_fields() const ABSL_ATTRIBUTE_LIFETIME_BOUND
decltype(::std::declval< PrimalSolutionProto >()._impl_._has_bits_) HasBits
::google::protobuf::internal::MapEntry<::int64_t, double, ::google::protobuf::internal::WireFormatLite::TYPE_INT64, ::google::protobuf::internal::WireFormatLite::TYPE_DOUBLE > SuperType
friend class ::google::protobuf::MessageLite
friend void swap(PrimalSolutionProto &a, PrimalSolutionProto &b)
const ::google::protobuf::internal::ClassData *PROTOBUF_NONNULL GetClassData() const PROTOBUF_FINAL
static void *PROTOBUF_NONNULL PlacementNew_(const void *PROTOBUF_NONNULL, void *PROTOBUF_NONNULL mem, ::google::protobuf::Arena *PROTOBUF_NULLABLE arena)
void CopyFrom(const PrimalSolutionProto &from)
ABSL_ATTRIBUTE_REINITIALIZES void Clear() PROTOBUF_FINAL
::google::protobuf::Metadata GetMetadata() const
const ::google::protobuf::UnknownFieldSet & unknown_fields() const ABSL_ATTRIBUTE_LIFETIME_BOUND
::uint8_t *PROTOBUF_NONNULL _InternalSerialize(::uint8_t *PROTOBUF_NONNULL target, ::google::protobuf::io::EpsCopyOutputStream *PROTOBUF_NONNULL stream) const final
void MergeFrom(const PrimalSolutionProto &from)
friend class ::google::protobuf::MessageLite
ABSL_ATTRIBUTE_REINITIALIZES void Clear() PROTOBUF_FINAL
::google::protobuf::Metadata GetMetadata() const
void MergeFrom(const SolutionProto &from)
::uint8_t *PROTOBUF_NONNULL _InternalSerialize(::uint8_t *PROTOBUF_NONNULL target, ::google::protobuf::io::EpsCopyOutputStream *PROTOBUF_NONNULL stream) const final
static void *PROTOBUF_NONNULL PlacementNew_(const void *PROTOBUF_NONNULL, void *PROTOBUF_NONNULL mem, ::google::protobuf::Arena *PROTOBUF_NULLABLE arena)
void CopyFrom(const SolutionProto &from)
const ::google::protobuf::internal::ClassData *PROTOBUF_NONNULL GetClassData() const PROTOBUF_FINAL
friend void swap(SolutionProto &a, SolutionProto &b)
static constexpr auto InternalGenerateClassData_()
friend class ::google::protobuf::Arena
::google::protobuf::Metadata GetMetadata() const
void MergeFrom(const SparseBasisStatusVector &from)
ABSL_ATTRIBUTE_REINITIALIZES void Clear() PROTOBUF_FINAL
const ::google::protobuf::internal::ClassData *PROTOBUF_NONNULL GetClassData() const PROTOBUF_FINAL
static void *PROTOBUF_NONNULL PlacementNew_(const void *PROTOBUF_NONNULL, void *PROTOBUF_NONNULL mem, ::google::protobuf::Arena *PROTOBUF_NULLABLE arena)
const ::google::protobuf::UnknownFieldSet & unknown_fields() const ABSL_ATTRIBUTE_LIFETIME_BOUND
void CopyFrom(const SparseBasisStatusVector &from)
::uint8_t *PROTOBUF_NONNULL _InternalSerialize(::uint8_t *PROTOBUF_NONNULL target, ::google::protobuf::io::EpsCopyOutputStream *PROTOBUF_NONNULL stream) const final
An object oriented wrapper for quadratic constraints in ModelStorage.
Definition gurobi_isv.cc:28
PROTOBUF_CONSTINIT const uint32_t BasisStatusProto_internal_data_[]
PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 const::google::protobuf::internal::ClassDataFull PrimalRayProto_class_data_
PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT OR_PROTO_DLL PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 BasisProtoDefaultTypeInternal _BasisProto_default_instance_
PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 const::google::protobuf::internal::ClassDataFull PrimalSolutionProto_class_data_
PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT OR_PROTO_DLL PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 SparseBasisStatusVectorDefaultTypeInternal _SparseBasisStatusVector_default_instance_
const ::google::protobuf::EnumDescriptor *PROTOBUF_NONNULL BasisStatusProto_descriptor()
PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT OR_PROTO_DLL PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 PrimalSolutionProto_AuxiliaryObjectiveValuesEntry_DoNotUseDefaultTypeInternal _PrimalSolutionProto_AuxiliaryObjectiveValuesEntry_DoNotUse_default_instance_
PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 const::google::protobuf::internal::ClassDataFull PrimalSolutionProto_AuxiliaryObjectiveValuesEntry_DoNotUse_class_data_
PROTOBUF_CONSTINIT const uint32_t SolutionStatusProto_internal_data_[]
PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 const::google::protobuf::internal::ClassDataFull BasisProto_class_data_
PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT OR_PROTO_DLL PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 DualSolutionProtoDefaultTypeInternal _DualSolutionProto_default_instance_
PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 const::google::protobuf::internal::ClassDataFull DualRayProto_class_data_
const ::google::protobuf::EnumDescriptor *PROTOBUF_NONNULL SolutionStatusProto_descriptor()
PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 const::google::protobuf::internal::ClassDataFull SolutionProto_class_data_
PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT OR_PROTO_DLL PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 PrimalSolutionProtoDefaultTypeInternal _PrimalSolutionProto_default_instance_
PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 const::google::protobuf::internal::ClassDataFull SparseBasisStatusVector_class_data_
PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT OR_PROTO_DLL PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 PrimalRayProtoDefaultTypeInternal _PrimalRayProto_default_instance_
PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT OR_PROTO_DLL PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 DualRayProtoDefaultTypeInternal _DualRayProto_default_instance_
PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 const::google::protobuf::internal::ClassDataFull DualSolutionProto_class_data_
PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT OR_PROTO_DLL PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 SolutionProtoDefaultTypeInternal _SolutionProto_default_instance_
In SWIG mode, we don't want anything besides these top-level includes.
static constexpr ::_pbi::MigrationSchema *PROTOBUF_NULLABLE schemas
PROTOBUF_CONSTINITconst ::_pbi::DescriptorTable descriptor_table_ortools_2fmath_5fopt_2fsolution_2eproto
::absl::once_flag descriptor_table_ortools_2fmath_5fopt_2fsolution_2eproto_once
static const ::_pbi::DescriptorTable *PROTOBUF_NONNULL const descriptor_table_ortools_2fmath_5fopt_2fsolution_2eproto_deps[1]
const ::uint32_t TableStruct_ortools_2fmath_5fopt_2fsolution_2eproto::offsets[] ABSL_ATTRIBUTE_SECTION_VARIABLE(protodesc_cold)
static constexprconst ::_pb::ServiceDescriptor *PROTOBUF_NONNULL *PROTOBUF_NULLABLE file_level_service_descriptors_ortools_2fmath_5fopt_2fsolution_2eproto
static const ::_pb::EnumDescriptor *PROTOBUF_NONNULL file_level_enum_descriptors_ortools_2fmath_5fopt_2fsolution_2eproto[2]
PROTOBUF_CONSTINITconst ::_pbi::DescriptorTable descriptor_table_ortools_2fmath_5fopt_2fsparse_5fcontainers_2eproto