Google OR-Tools v9.15
a fast and portable software suite for combinatorial optimization
Loading...
Searching...
No Matches
linear_solver.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/linear_solver/linear_solver.proto
4// Protobuf C++ Version: 6.33.1
5
7
8#include <algorithm>
9#include <type_traits>
10#include "google/protobuf/io/coded_stream.h"
11#include "google/protobuf/generated_message_tctable_impl.h"
12#include "google/protobuf/extension_set.h"
13#include "google/protobuf/generated_message_util.h"
14#include "google/protobuf/wire_format_lite.h"
15#include "google/protobuf/descriptor.h"
16#include "google/protobuf/generated_message_reflection.h"
17#include "google/protobuf/reflection_ops.h"
18#include "google/protobuf/wire_format.h"
19// @@protoc_insertion_point(includes)
20
21// Must be included last.
22#include "google/protobuf/port_def.inc"
23PROTOBUF_PRAGMA_INIT_SEG
24namespace _pb = ::google::protobuf;
26namespace _fl = ::google::protobuf::internal::field_layout;
27namespace operations_research {
28
29inline constexpr PartialVariableAssignment::Impl_::Impl_(
30 ::_pbi::ConstantInitialized) noexcept
31 : _cached_size_{0},
32 var_index_{},
33 _var_index_cached_byte_size_{0},
34 var_value_{} {}
35
36template <typename>
37PROTOBUF_CONSTEXPR PartialVariableAssignment::PartialVariableAssignment(::_pbi::ConstantInitialized)
38#if defined(PROTOBUF_CUSTOM_VTABLE)
39 : ::google::protobuf::Message(PartialVariableAssignment_class_data_.base()),
40#else // PROTOBUF_CUSTOM_VTABLE
41 : ::google::protobuf::Message(),
42#endif // PROTOBUF_CUSTOM_VTABLE
43 _impl_(::_pbi::ConstantInitialized()) {
44}
52
53PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT OR_PROTO_DLL
55
56inline constexpr OptionalDouble::Impl_::Impl_(
57 ::_pbi::ConstantInitialized) noexcept
58 : _cached_size_{0},
59 value_{0} {}
60
61template <typename>
62PROTOBUF_CONSTEXPR OptionalDouble::OptionalDouble(::_pbi::ConstantInitialized)
63#if defined(PROTOBUF_CUSTOM_VTABLE)
64 : ::google::protobuf::Message(OptionalDouble_class_data_.base()),
65#else // PROTOBUF_CUSTOM_VTABLE
66 : ::google::protobuf::Message(),
67#endif // PROTOBUF_CUSTOM_VTABLE
68 _impl_(::_pbi::ConstantInitialized()) {
69}
77
78PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT OR_PROTO_DLL
80
81inline constexpr MPVariableProto::Impl_::Impl_(
82 ::_pbi::ConstantInitialized) noexcept
83 : _cached_size_{0},
84 name_(
85 &::google::protobuf::internal::fixed_address_empty_string,
86 ::_pbi::ConstantInitialized()),
87 objective_coefficient_{0},
88 is_integer_{false},
89 branching_priority_{0},
90 lower_bound_{-std::numeric_limits<double>::infinity()},
91 upper_bound_{std::numeric_limits<double>::infinity()} {}
92
93template <typename>
94PROTOBUF_CONSTEXPR MPVariableProto::MPVariableProto(::_pbi::ConstantInitialized)
95#if defined(PROTOBUF_CUSTOM_VTABLE)
96 : ::google::protobuf::Message(MPVariableProto_class_data_.base()),
97#else // PROTOBUF_CUSTOM_VTABLE
98 : ::google::protobuf::Message(),
99#endif // PROTOBUF_CUSTOM_VTABLE
100 _impl_(::_pbi::ConstantInitialized()) {
101}
109
110PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT OR_PROTO_DLL
112
113inline constexpr MPSosConstraint::Impl_::Impl_(
114 ::_pbi::ConstantInitialized) noexcept
115 : _cached_size_{0},
116 var_index_{},
117 weight_{},
118 type_{static_cast< ::operations_research::MPSosConstraint_Type >(0)} {}
119
120template <typename>
121PROTOBUF_CONSTEXPR MPSosConstraint::MPSosConstraint(::_pbi::ConstantInitialized)
122#if defined(PROTOBUF_CUSTOM_VTABLE)
123 : ::google::protobuf::Message(MPSosConstraint_class_data_.base()),
124#else // PROTOBUF_CUSTOM_VTABLE
125 : ::google::protobuf::Message(),
126#endif // PROTOBUF_CUSTOM_VTABLE
127 _impl_(::_pbi::ConstantInitialized()) {
128}
136
137PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT OR_PROTO_DLL
139
140inline constexpr MPSolveInfo::Impl_::Impl_(
141 ::_pbi::ConstantInitialized) noexcept
142 : _cached_size_{0},
143 solve_wall_time_seconds_{0},
144 solve_user_time_seconds_{0} {}
145
146template <typename>
147PROTOBUF_CONSTEXPR MPSolveInfo::MPSolveInfo(::_pbi::ConstantInitialized)
148#if defined(PROTOBUF_CUSTOM_VTABLE)
149 : ::google::protobuf::Message(MPSolveInfo_class_data_.base()),
150#else // PROTOBUF_CUSTOM_VTABLE
151 : ::google::protobuf::Message(),
152#endif // PROTOBUF_CUSTOM_VTABLE
153 _impl_(::_pbi::ConstantInitialized()) {
154}
156 PROTOBUF_CONSTEXPR MPSolveInfoDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {}
158 union {
160 };
161};
162
163PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT OR_PROTO_DLL
165
166inline constexpr MPSolution::Impl_::Impl_(
167 ::_pbi::ConstantInitialized) noexcept
168 : _cached_size_{0},
169 variable_value_{},
170 objective_value_{0} {}
171
172template <typename>
173PROTOBUF_CONSTEXPR MPSolution::MPSolution(::_pbi::ConstantInitialized)
174#if defined(PROTOBUF_CUSTOM_VTABLE)
175 : ::google::protobuf::Message(MPSolution_class_data_.base()),
176#else // PROTOBUF_CUSTOM_VTABLE
177 : ::google::protobuf::Message(),
178#endif // PROTOBUF_CUSTOM_VTABLE
179 _impl_(::_pbi::ConstantInitialized()) {
180}
182 PROTOBUF_CONSTEXPR MPSolutionDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {}
184 union {
186 };
187};
188
189PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT OR_PROTO_DLL
191
192inline constexpr MPQuadraticObjective::Impl_::Impl_(
193 ::_pbi::ConstantInitialized) noexcept
194 : _cached_size_{0},
195 qvar1_index_{},
196 qvar2_index_{},
197 coefficient_{} {}
198
199template <typename>
200PROTOBUF_CONSTEXPR MPQuadraticObjective::MPQuadraticObjective(::_pbi::ConstantInitialized)
201#if defined(PROTOBUF_CUSTOM_VTABLE)
202 : ::google::protobuf::Message(MPQuadraticObjective_class_data_.base()),
203#else // PROTOBUF_CUSTOM_VTABLE
204 : ::google::protobuf::Message(),
205#endif // PROTOBUF_CUSTOM_VTABLE
206 _impl_(::_pbi::ConstantInitialized()) {
207}
215
216PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT OR_PROTO_DLL
218
219inline constexpr MPQuadraticConstraint::Impl_::Impl_(
220 ::_pbi::ConstantInitialized) noexcept
221 : _cached_size_{0},
222 var_index_{},
223 coefficient_{},
224 qvar1_index_{},
225 qvar2_index_{},
226 qcoefficient_{},
227 lower_bound_{-std::numeric_limits<double>::infinity()},
228 upper_bound_{std::numeric_limits<double>::infinity()} {}
229
230template <typename>
231PROTOBUF_CONSTEXPR MPQuadraticConstraint::MPQuadraticConstraint(::_pbi::ConstantInitialized)
232#if defined(PROTOBUF_CUSTOM_VTABLE)
233 : ::google::protobuf::Message(MPQuadraticConstraint_class_data_.base()),
234#else // PROTOBUF_CUSTOM_VTABLE
235 : ::google::protobuf::Message(),
236#endif // PROTOBUF_CUSTOM_VTABLE
237 _impl_(::_pbi::ConstantInitialized()) {
238}
246
247PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT OR_PROTO_DLL
249
250inline constexpr MPModelProto_Annotation::Impl_::Impl_(
251 ::_pbi::ConstantInitialized) noexcept
252 : _cached_size_{0},
253 target_name_(
254 &::google::protobuf::internal::fixed_address_empty_string,
255 ::_pbi::ConstantInitialized()),
256 payload_key_(
257 &::google::protobuf::internal::fixed_address_empty_string,
258 ::_pbi::ConstantInitialized()),
259 payload_value_(
260 &::google::protobuf::internal::fixed_address_empty_string,
261 ::_pbi::ConstantInitialized()),
262 target_type_{static_cast< ::operations_research::MPModelProto_Annotation_TargetType >(0)},
263 target_index_{0} {}
264
265template <typename>
266PROTOBUF_CONSTEXPR MPModelProto_Annotation::MPModelProto_Annotation(::_pbi::ConstantInitialized)
267#if defined(PROTOBUF_CUSTOM_VTABLE)
268 : ::google::protobuf::Message(MPModelProto_Annotation_class_data_.base()),
269#else // PROTOBUF_CUSTOM_VTABLE
270 : ::google::protobuf::Message(),
271#endif // PROTOBUF_CUSTOM_VTABLE
272 _impl_(::_pbi::ConstantInitialized()) {
273}
281
282PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT OR_PROTO_DLL
284
285inline constexpr MPConstraintProto::Impl_::Impl_(
286 ::_pbi::ConstantInitialized) noexcept
287 : _cached_size_{0},
288 var_index_{},
289 _var_index_cached_byte_size_{0},
290 coefficient_{},
291 name_(
292 &::google::protobuf::internal::fixed_address_empty_string,
293 ::_pbi::ConstantInitialized()),
294 is_lazy_{false},
295 lower_bound_{-std::numeric_limits<double>::infinity()},
296 upper_bound_{std::numeric_limits<double>::infinity()} {}
297
298template <typename>
299PROTOBUF_CONSTEXPR MPConstraintProto::MPConstraintProto(::_pbi::ConstantInitialized)
300#if defined(PROTOBUF_CUSTOM_VTABLE)
301 : ::google::protobuf::Message(MPConstraintProto_class_data_.base()),
302#else // PROTOBUF_CUSTOM_VTABLE
303 : ::google::protobuf::Message(),
304#endif // PROTOBUF_CUSTOM_VTABLE
305 _impl_(::_pbi::ConstantInitialized()) {
306}
314
315PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT OR_PROTO_DLL
317
318inline constexpr MPArrayWithConstantConstraint::Impl_::Impl_(
319 ::_pbi::ConstantInitialized) noexcept
320 : _cached_size_{0},
321 var_index_{},
322 constant_{0},
323 resultant_var_index_{0} {}
324
325template <typename>
326PROTOBUF_CONSTEXPR MPArrayWithConstantConstraint::MPArrayWithConstantConstraint(::_pbi::ConstantInitialized)
327#if defined(PROTOBUF_CUSTOM_VTABLE)
328 : ::google::protobuf::Message(MPArrayWithConstantConstraint_class_data_.base()),
329#else // PROTOBUF_CUSTOM_VTABLE
330 : ::google::protobuf::Message(),
331#endif // PROTOBUF_CUSTOM_VTABLE
332 _impl_(::_pbi::ConstantInitialized()) {
333}
341
342PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT OR_PROTO_DLL
344
345inline constexpr MPArrayConstraint::Impl_::Impl_(
346 ::_pbi::ConstantInitialized) noexcept
347 : _cached_size_{0},
348 var_index_{},
349 resultant_var_index_{0} {}
350
351template <typename>
352PROTOBUF_CONSTEXPR MPArrayConstraint::MPArrayConstraint(::_pbi::ConstantInitialized)
353#if defined(PROTOBUF_CUSTOM_VTABLE)
354 : ::google::protobuf::Message(MPArrayConstraint_class_data_.base()),
355#else // PROTOBUF_CUSTOM_VTABLE
356 : ::google::protobuf::Message(),
357#endif // PROTOBUF_CUSTOM_VTABLE
358 _impl_(::_pbi::ConstantInitialized()) {
359}
367
368PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT OR_PROTO_DLL
370
371inline constexpr MPAbsConstraint::Impl_::Impl_(
372 ::_pbi::ConstantInitialized) noexcept
373 : _cached_size_{0},
374 var_index_{0},
375 resultant_var_index_{0} {}
376
377template <typename>
378PROTOBUF_CONSTEXPR MPAbsConstraint::MPAbsConstraint(::_pbi::ConstantInitialized)
379#if defined(PROTOBUF_CUSTOM_VTABLE)
380 : ::google::protobuf::Message(MPAbsConstraint_class_data_.base()),
381#else // PROTOBUF_CUSTOM_VTABLE
382 : ::google::protobuf::Message(),
383#endif // PROTOBUF_CUSTOM_VTABLE
384 _impl_(::_pbi::ConstantInitialized()) {
385}
393
394PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT OR_PROTO_DLL
396
397inline constexpr MPSolverCommonParameters::Impl_::Impl_(
398 ::_pbi::ConstantInitialized) noexcept
399 : _cached_size_{0},
400 relative_mip_gap_{nullptr},
401 primal_tolerance_{nullptr},
402 dual_tolerance_{nullptr},
404 presolve_{static_cast< ::operations_research::OptionalBoolean >(0)},
405 scaling_{static_cast< ::operations_research::OptionalBoolean >(0)} {}
406
407template <typename>
408PROTOBUF_CONSTEXPR MPSolverCommonParameters::MPSolverCommonParameters(::_pbi::ConstantInitialized)
409#if defined(PROTOBUF_CUSTOM_VTABLE)
410 : ::google::protobuf::Message(MPSolverCommonParameters_class_data_.base()),
411#else // PROTOBUF_CUSTOM_VTABLE
412 : ::google::protobuf::Message(),
413#endif // PROTOBUF_CUSTOM_VTABLE
414 _impl_(::_pbi::ConstantInitialized()) {
415}
423
424PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT OR_PROTO_DLL
426
427inline constexpr MPSolutionResponse::Impl_::Impl_(
428 ::_pbi::ConstantInitialized) noexcept
429 : _cached_size_{0},
430 variable_value_{},
431 dual_value_{},
432 reduced_cost_{},
433 additional_solutions_{},
434 status_str_(
435 &::google::protobuf::internal::fixed_address_empty_string,
436 ::_pbi::ConstantInitialized()),
437 solver_specific_info_(
438 &::google::protobuf::internal::fixed_address_empty_string,
439 ::_pbi::ConstantInitialized()),
440 solve_info_{nullptr},
441 objective_value_{0},
442 best_objective_bound_{0},
443 status_{static_cast< ::operations_research::MPSolverResponseStatus >(99)} {}
444
445template <typename>
446PROTOBUF_CONSTEXPR MPSolutionResponse::MPSolutionResponse(::_pbi::ConstantInitialized)
447#if defined(PROTOBUF_CUSTOM_VTABLE)
448 : ::google::protobuf::Message(MPSolutionResponse_class_data_.base()),
449#else // PROTOBUF_CUSTOM_VTABLE
450 : ::google::protobuf::Message(),
451#endif // PROTOBUF_CUSTOM_VTABLE
452 _impl_(::_pbi::ConstantInitialized()) {
453}
461
462PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT OR_PROTO_DLL
464template <typename>
466#if defined(PROTOBUF_CUSTOM_VTABLE)
467 : MPModelDeltaProto_VariableOverridesEntry_DoNotUse::MapEntry(MPModelDeltaProto_VariableOverridesEntry_DoNotUse_class_data_.base()){}
468#else // PROTOBUF_CUSTOM_VTABLE
469 : MPModelDeltaProto_VariableOverridesEntry_DoNotUse::MapEntry() {
470}
471#endif // PROTOBUF_CUSTOM_VTABLE
479
480PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT OR_PROTO_DLL
482template <typename>
484#if defined(PROTOBUF_CUSTOM_VTABLE)
485 : MPModelDeltaProto_ConstraintOverridesEntry_DoNotUse::MapEntry(MPModelDeltaProto_ConstraintOverridesEntry_DoNotUse_class_data_.base()){}
486#else // PROTOBUF_CUSTOM_VTABLE
487 : MPModelDeltaProto_ConstraintOverridesEntry_DoNotUse::MapEntry() {
488}
489#endif // PROTOBUF_CUSTOM_VTABLE
497
498PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT OR_PROTO_DLL
500
501inline constexpr MPIndicatorConstraint::Impl_::Impl_(
502 ::_pbi::ConstantInitialized) noexcept
503 : _cached_size_{0},
504 constraint_{nullptr},
505 var_index_{0},
506 var_value_{0} {}
507
508template <typename>
509PROTOBUF_CONSTEXPR MPIndicatorConstraint::MPIndicatorConstraint(::_pbi::ConstantInitialized)
510#if defined(PROTOBUF_CUSTOM_VTABLE)
511 : ::google::protobuf::Message(MPIndicatorConstraint_class_data_.base()),
512#else // PROTOBUF_CUSTOM_VTABLE
513 : ::google::protobuf::Message(),
514#endif // PROTOBUF_CUSTOM_VTABLE
515 _impl_(::_pbi::ConstantInitialized()) {
516}
524
525PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT OR_PROTO_DLL
527
528inline constexpr MPModelDeltaProto::Impl_::Impl_(
529 ::_pbi::ConstantInitialized) noexcept
530 : _cached_size_{0},
531 baseline_model_file_path_(
532 &::google::protobuf::internal::fixed_address_empty_string,
533 ::_pbi::ConstantInitialized()),
534 variable_overrides_{},
535 constraint_overrides_{} {}
536
537template <typename>
538PROTOBUF_CONSTEXPR MPModelDeltaProto::MPModelDeltaProto(::_pbi::ConstantInitialized)
539#if defined(PROTOBUF_CUSTOM_VTABLE)
540 : ::google::protobuf::Message(MPModelDeltaProto_class_data_.base()),
541#else // PROTOBUF_CUSTOM_VTABLE
542 : ::google::protobuf::Message(),
543#endif // PROTOBUF_CUSTOM_VTABLE
544 _impl_(::_pbi::ConstantInitialized()) {
545}
553
554PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT OR_PROTO_DLL
556
557inline constexpr MPGeneralConstraintProto::Impl_::Impl_(
558 ::_pbi::ConstantInitialized) noexcept
559 : _cached_size_{0},
560 name_(
561 &::google::protobuf::internal::fixed_address_empty_string,
562 ::_pbi::ConstantInitialized()),
563 general_constraint_{},
564 _oneof_case_{} {}
565
566template <typename>
567PROTOBUF_CONSTEXPR MPGeneralConstraintProto::MPGeneralConstraintProto(::_pbi::ConstantInitialized)
568#if defined(PROTOBUF_CUSTOM_VTABLE)
569 : ::google::protobuf::Message(MPGeneralConstraintProto_class_data_.base()),
570#else // PROTOBUF_CUSTOM_VTABLE
571 : ::google::protobuf::Message(),
572#endif // PROTOBUF_CUSTOM_VTABLE
573 _impl_(::_pbi::ConstantInitialized()) {
574}
582
583PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT OR_PROTO_DLL
585
586inline constexpr MPModelProto::Impl_::Impl_(
587 ::_pbi::ConstantInitialized) noexcept
588 : _cached_size_{0},
589 variable_{},
590 constraint_{},
591 general_constraint_{},
592 annotation_{},
593 name_(
594 &::google::protobuf::internal::fixed_address_empty_string,
595 ::_pbi::ConstantInitialized()),
596 solution_hint_{nullptr},
597 quadratic_objective_{nullptr},
598 objective_offset_{0},
599 maximize_{false} {}
600
601template <typename>
602PROTOBUF_CONSTEXPR MPModelProto::MPModelProto(::_pbi::ConstantInitialized)
603#if defined(PROTOBUF_CUSTOM_VTABLE)
604 : ::google::protobuf::Message(MPModelProto_class_data_.base()),
605#else // PROTOBUF_CUSTOM_VTABLE
606 : ::google::protobuf::Message(),
607#endif // PROTOBUF_CUSTOM_VTABLE
608 _impl_(::_pbi::ConstantInitialized()) {
609}
611 PROTOBUF_CONSTEXPR MPModelProtoDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {}
613 union {
615 };
616};
617
618PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT OR_PROTO_DLL
620
621inline constexpr MPModelRequest::Impl_::Impl_(
622 ::_pbi::ConstantInitialized) noexcept
623 : _cached_size_{0},
624 solver_specific_parameters_(
625 &::google::protobuf::internal::fixed_address_empty_string,
626 ::_pbi::ConstantInitialized()),
627 model_{nullptr},
628 model_delta_{nullptr},
629 solver_time_limit_seconds_{0},
630 enable_internal_solver_output_{false},
631 ignore_solver_specific_parameters_failure_{false},
632 populate_additional_solutions_up_to_{0},
633 solver_type_{static_cast< ::operations_research::MPModelRequest_SolverType >(2)} {}
634
635template <typename>
636PROTOBUF_CONSTEXPR MPModelRequest::MPModelRequest(::_pbi::ConstantInitialized)
637#if defined(PROTOBUF_CUSTOM_VTABLE)
638 : ::google::protobuf::Message(MPModelRequest_class_data_.base()),
639#else // PROTOBUF_CUSTOM_VTABLE
640 : ::google::protobuf::Message(),
641#endif // PROTOBUF_CUSTOM_VTABLE
642 _impl_(::_pbi::ConstantInitialized()) {
643}
651
652PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT OR_PROTO_DLL
654} // namespace operations_research
655static const ::_pb::EnumDescriptor* PROTOBUF_NONNULL
657static constexpr const ::_pb::ServiceDescriptor* PROTOBUF_NONNULL* PROTOBUF_NULLABLE
659const ::uint32_t
661 protodesc_cold) = {
662 0x081, // bitmap
663 PROTOBUF_FIELD_OFFSET(::operations_research::MPVariableProto, _impl_._has_bits_),
664 9, // hasbit index offset
665 PROTOBUF_FIELD_OFFSET(::operations_research::MPVariableProto, _impl_.lower_bound_),
666 PROTOBUF_FIELD_OFFSET(::operations_research::MPVariableProto, _impl_.upper_bound_),
667 PROTOBUF_FIELD_OFFSET(::operations_research::MPVariableProto, _impl_.objective_coefficient_),
668 PROTOBUF_FIELD_OFFSET(::operations_research::MPVariableProto, _impl_.is_integer_),
669 PROTOBUF_FIELD_OFFSET(::operations_research::MPVariableProto, _impl_.name_),
670 PROTOBUF_FIELD_OFFSET(::operations_research::MPVariableProto, _impl_.branching_priority_),
671 4,
672 5,
673 1,
674 2,
675 0,
676 3,
677 0x081, // bitmap
678 PROTOBUF_FIELD_OFFSET(::operations_research::MPConstraintProto, _impl_._has_bits_),
679 9, // hasbit index offset
680 PROTOBUF_FIELD_OFFSET(::operations_research::MPConstraintProto, _impl_.var_index_),
681 PROTOBUF_FIELD_OFFSET(::operations_research::MPConstraintProto, _impl_.coefficient_),
682 PROTOBUF_FIELD_OFFSET(::operations_research::MPConstraintProto, _impl_.lower_bound_),
683 PROTOBUF_FIELD_OFFSET(::operations_research::MPConstraintProto, _impl_.upper_bound_),
684 PROTOBUF_FIELD_OFFSET(::operations_research::MPConstraintProto, _impl_.name_),
685 PROTOBUF_FIELD_OFFSET(::operations_research::MPConstraintProto, _impl_.is_lazy_),
686 0,
687 1,
688 4,
689 5,
690 2,
691 3,
692 0x085, // bitmap
693 PROTOBUF_FIELD_OFFSET(::operations_research::MPGeneralConstraintProto, _impl_._has_bits_),
694 PROTOBUF_FIELD_OFFSET(::operations_research::MPGeneralConstraintProto, _impl_._oneof_case_[0]),
695 14, // hasbit index offset
696 PROTOBUF_FIELD_OFFSET(::operations_research::MPGeneralConstraintProto, _impl_.name_),
697 PROTOBUF_FIELD_OFFSET(::operations_research::MPGeneralConstraintProto, _impl_.general_constraint_),
698 PROTOBUF_FIELD_OFFSET(::operations_research::MPGeneralConstraintProto, _impl_.general_constraint_),
699 PROTOBUF_FIELD_OFFSET(::operations_research::MPGeneralConstraintProto, _impl_.general_constraint_),
700 PROTOBUF_FIELD_OFFSET(::operations_research::MPGeneralConstraintProto, _impl_.general_constraint_),
701 PROTOBUF_FIELD_OFFSET(::operations_research::MPGeneralConstraintProto, _impl_.general_constraint_),
702 PROTOBUF_FIELD_OFFSET(::operations_research::MPGeneralConstraintProto, _impl_.general_constraint_),
703 PROTOBUF_FIELD_OFFSET(::operations_research::MPGeneralConstraintProto, _impl_.general_constraint_),
704 PROTOBUF_FIELD_OFFSET(::operations_research::MPGeneralConstraintProto, _impl_.general_constraint_),
705 PROTOBUF_FIELD_OFFSET(::operations_research::MPGeneralConstraintProto, _impl_.general_constraint_),
706 0,
707 ~0u,
708 ~0u,
709 ~0u,
710 ~0u,
711 ~0u,
712 ~0u,
713 ~0u,
714 ~0u,
715 0x081, // bitmap
716 PROTOBUF_FIELD_OFFSET(::operations_research::MPIndicatorConstraint, _impl_._has_bits_),
717 6, // hasbit index offset
718 PROTOBUF_FIELD_OFFSET(::operations_research::MPIndicatorConstraint, _impl_.var_index_),
719 PROTOBUF_FIELD_OFFSET(::operations_research::MPIndicatorConstraint, _impl_.var_value_),
720 PROTOBUF_FIELD_OFFSET(::operations_research::MPIndicatorConstraint, _impl_.constraint_),
721 1,
722 2,
723 0,
724 0x081, // bitmap
725 PROTOBUF_FIELD_OFFSET(::operations_research::MPSosConstraint, _impl_._has_bits_),
726 6, // hasbit index offset
727 PROTOBUF_FIELD_OFFSET(::operations_research::MPSosConstraint, _impl_.type_),
728 PROTOBUF_FIELD_OFFSET(::operations_research::MPSosConstraint, _impl_.var_index_),
729 PROTOBUF_FIELD_OFFSET(::operations_research::MPSosConstraint, _impl_.weight_),
730 2,
731 0,
732 1,
733 0x081, // bitmap
734 PROTOBUF_FIELD_OFFSET(::operations_research::MPQuadraticConstraint, _impl_._has_bits_),
735 10, // hasbit index offset
736 PROTOBUF_FIELD_OFFSET(::operations_research::MPQuadraticConstraint, _impl_.var_index_),
737 PROTOBUF_FIELD_OFFSET(::operations_research::MPQuadraticConstraint, _impl_.coefficient_),
738 PROTOBUF_FIELD_OFFSET(::operations_research::MPQuadraticConstraint, _impl_.qvar1_index_),
739 PROTOBUF_FIELD_OFFSET(::operations_research::MPQuadraticConstraint, _impl_.qvar2_index_),
740 PROTOBUF_FIELD_OFFSET(::operations_research::MPQuadraticConstraint, _impl_.qcoefficient_),
741 PROTOBUF_FIELD_OFFSET(::operations_research::MPQuadraticConstraint, _impl_.lower_bound_),
742 PROTOBUF_FIELD_OFFSET(::operations_research::MPQuadraticConstraint, _impl_.upper_bound_),
743 0,
744 1,
745 2,
746 3,
747 4,
748 5,
749 6,
750 0x081, // bitmap
751 PROTOBUF_FIELD_OFFSET(::operations_research::MPAbsConstraint, _impl_._has_bits_),
752 5, // hasbit index offset
753 PROTOBUF_FIELD_OFFSET(::operations_research::MPAbsConstraint, _impl_.var_index_),
754 PROTOBUF_FIELD_OFFSET(::operations_research::MPAbsConstraint, _impl_.resultant_var_index_),
755 0,
756 1,
757 0x081, // bitmap
758 PROTOBUF_FIELD_OFFSET(::operations_research::MPArrayConstraint, _impl_._has_bits_),
759 5, // hasbit index offset
760 PROTOBUF_FIELD_OFFSET(::operations_research::MPArrayConstraint, _impl_.var_index_),
761 PROTOBUF_FIELD_OFFSET(::operations_research::MPArrayConstraint, _impl_.resultant_var_index_),
762 0,
763 1,
764 0x081, // bitmap
765 PROTOBUF_FIELD_OFFSET(::operations_research::MPArrayWithConstantConstraint, _impl_._has_bits_),
766 6, // hasbit index offset
767 PROTOBUF_FIELD_OFFSET(::operations_research::MPArrayWithConstantConstraint, _impl_.var_index_),
768 PROTOBUF_FIELD_OFFSET(::operations_research::MPArrayWithConstantConstraint, _impl_.constant_),
769 PROTOBUF_FIELD_OFFSET(::operations_research::MPArrayWithConstantConstraint, _impl_.resultant_var_index_),
770 0,
771 1,
772 2,
773 0x081, // bitmap
774 PROTOBUF_FIELD_OFFSET(::operations_research::MPQuadraticObjective, _impl_._has_bits_),
775 6, // hasbit index offset
776 PROTOBUF_FIELD_OFFSET(::operations_research::MPQuadraticObjective, _impl_.qvar1_index_),
777 PROTOBUF_FIELD_OFFSET(::operations_research::MPQuadraticObjective, _impl_.qvar2_index_),
778 PROTOBUF_FIELD_OFFSET(::operations_research::MPQuadraticObjective, _impl_.coefficient_),
779 0,
780 1,
781 2,
782 0x081, // bitmap
783 PROTOBUF_FIELD_OFFSET(::operations_research::PartialVariableAssignment, _impl_._has_bits_),
784 5, // hasbit index offset
785 PROTOBUF_FIELD_OFFSET(::operations_research::PartialVariableAssignment, _impl_.var_index_),
786 PROTOBUF_FIELD_OFFSET(::operations_research::PartialVariableAssignment, _impl_.var_value_),
787 0,
788 1,
789 0x081, // bitmap
790 PROTOBUF_FIELD_OFFSET(::operations_research::MPModelProto_Annotation, _impl_._has_bits_),
791 8, // hasbit index offset
792 PROTOBUF_FIELD_OFFSET(::operations_research::MPModelProto_Annotation, _impl_.target_type_),
793 PROTOBUF_FIELD_OFFSET(::operations_research::MPModelProto_Annotation, _impl_.target_index_),
794 PROTOBUF_FIELD_OFFSET(::operations_research::MPModelProto_Annotation, _impl_.target_name_),
795 PROTOBUF_FIELD_OFFSET(::operations_research::MPModelProto_Annotation, _impl_.payload_key_),
796 PROTOBUF_FIELD_OFFSET(::operations_research::MPModelProto_Annotation, _impl_.payload_value_),
797 3,
798 4,
799 0,
800 1,
801 2,
802 0x081, // bitmap
803 PROTOBUF_FIELD_OFFSET(::operations_research::MPModelProto, _impl_._has_bits_),
804 12, // hasbit index offset
805 PROTOBUF_FIELD_OFFSET(::operations_research::MPModelProto, _impl_.variable_),
806 PROTOBUF_FIELD_OFFSET(::operations_research::MPModelProto, _impl_.constraint_),
807 PROTOBUF_FIELD_OFFSET(::operations_research::MPModelProto, _impl_.general_constraint_),
808 PROTOBUF_FIELD_OFFSET(::operations_research::MPModelProto, _impl_.maximize_),
809 PROTOBUF_FIELD_OFFSET(::operations_research::MPModelProto, _impl_.objective_offset_),
810 PROTOBUF_FIELD_OFFSET(::operations_research::MPModelProto, _impl_.quadratic_objective_),
811 PROTOBUF_FIELD_OFFSET(::operations_research::MPModelProto, _impl_.name_),
812 PROTOBUF_FIELD_OFFSET(::operations_research::MPModelProto, _impl_.solution_hint_),
813 PROTOBUF_FIELD_OFFSET(::operations_research::MPModelProto, _impl_.annotation_),
814 0,
815 1,
816 2,
817 8,
818 7,
819 6,
820 4,
821 5,
822 3,
823 0x081, // bitmap
824 PROTOBUF_FIELD_OFFSET(::operations_research::OptionalDouble, _impl_._has_bits_),
825 4, // hasbit index offset
826 PROTOBUF_FIELD_OFFSET(::operations_research::OptionalDouble, _impl_.value_),
827 0,
828 0x081, // bitmap
829 PROTOBUF_FIELD_OFFSET(::operations_research::MPSolverCommonParameters, _impl_._has_bits_),
830 9, // hasbit index offset
831 PROTOBUF_FIELD_OFFSET(::operations_research::MPSolverCommonParameters, _impl_.relative_mip_gap_),
832 PROTOBUF_FIELD_OFFSET(::operations_research::MPSolverCommonParameters, _impl_.primal_tolerance_),
833 PROTOBUF_FIELD_OFFSET(::operations_research::MPSolverCommonParameters, _impl_.dual_tolerance_),
834 PROTOBUF_FIELD_OFFSET(::operations_research::MPSolverCommonParameters, _impl_.lp_algorithm_),
835 PROTOBUF_FIELD_OFFSET(::operations_research::MPSolverCommonParameters, _impl_.presolve_),
836 PROTOBUF_FIELD_OFFSET(::operations_research::MPSolverCommonParameters, _impl_.scaling_),
837 0,
838 1,
839 2,
840 3,
841 4,
842 5,
843 0x081, // bitmap
844 PROTOBUF_FIELD_OFFSET(::operations_research::MPModelDeltaProto_VariableOverridesEntry_DoNotUse, _impl_._has_bits_),
845 5, // hasbit index offset
848 0,
849 1,
850 0x081, // bitmap
852 5, // hasbit index offset
855 0,
856 1,
857 0x081, // bitmap
858 PROTOBUF_FIELD_OFFSET(::operations_research::MPModelDeltaProto, _impl_._has_bits_),
859 6, // hasbit index offset
860 PROTOBUF_FIELD_OFFSET(::operations_research::MPModelDeltaProto, _impl_.baseline_model_file_path_),
861 PROTOBUF_FIELD_OFFSET(::operations_research::MPModelDeltaProto, _impl_.variable_overrides_),
862 PROTOBUF_FIELD_OFFSET(::operations_research::MPModelDeltaProto, _impl_.constraint_overrides_),
863 0,
864 1,
865 2,
866 0x081, // bitmap
867 PROTOBUF_FIELD_OFFSET(::operations_research::MPModelRequest, _impl_._has_bits_),
868 11, // hasbit index offset
869 PROTOBUF_FIELD_OFFSET(::operations_research::MPModelRequest, _impl_.model_),
870 PROTOBUF_FIELD_OFFSET(::operations_research::MPModelRequest, _impl_.solver_type_),
871 PROTOBUF_FIELD_OFFSET(::operations_research::MPModelRequest, _impl_.solver_time_limit_seconds_),
872 PROTOBUF_FIELD_OFFSET(::operations_research::MPModelRequest, _impl_.enable_internal_solver_output_),
873 PROTOBUF_FIELD_OFFSET(::operations_research::MPModelRequest, _impl_.solver_specific_parameters_),
874 PROTOBUF_FIELD_OFFSET(::operations_research::MPModelRequest, _impl_.ignore_solver_specific_parameters_failure_),
875 PROTOBUF_FIELD_OFFSET(::operations_research::MPModelRequest, _impl_.model_delta_),
876 PROTOBUF_FIELD_OFFSET(::operations_research::MPModelRequest, _impl_.populate_additional_solutions_up_to_),
877 1,
878 7,
879 3,
880 4,
881 0,
882 5,
883 2,
884 6,
885 0x081, // bitmap
886 PROTOBUF_FIELD_OFFSET(::operations_research::MPSolution, _impl_._has_bits_),
887 5, // hasbit index offset
888 PROTOBUF_FIELD_OFFSET(::operations_research::MPSolution, _impl_.objective_value_),
889 PROTOBUF_FIELD_OFFSET(::operations_research::MPSolution, _impl_.variable_value_),
890 1,
891 0,
892 0x081, // bitmap
893 PROTOBUF_FIELD_OFFSET(::operations_research::MPSolveInfo, _impl_._has_bits_),
894 5, // hasbit index offset
895 PROTOBUF_FIELD_OFFSET(::operations_research::MPSolveInfo, _impl_.solve_wall_time_seconds_),
896 PROTOBUF_FIELD_OFFSET(::operations_research::MPSolveInfo, _impl_.solve_user_time_seconds_),
897 0,
898 1,
899 0x081, // bitmap
900 PROTOBUF_FIELD_OFFSET(::operations_research::MPSolutionResponse, _impl_._has_bits_),
901 13, // hasbit index offset
902 PROTOBUF_FIELD_OFFSET(::operations_research::MPSolutionResponse, _impl_.status_),
903 PROTOBUF_FIELD_OFFSET(::operations_research::MPSolutionResponse, _impl_.status_str_),
904 PROTOBUF_FIELD_OFFSET(::operations_research::MPSolutionResponse, _impl_.objective_value_),
905 PROTOBUF_FIELD_OFFSET(::operations_research::MPSolutionResponse, _impl_.best_objective_bound_),
906 PROTOBUF_FIELD_OFFSET(::operations_research::MPSolutionResponse, _impl_.variable_value_),
907 PROTOBUF_FIELD_OFFSET(::operations_research::MPSolutionResponse, _impl_.solve_info_),
908 PROTOBUF_FIELD_OFFSET(::operations_research::MPSolutionResponse, _impl_.solver_specific_info_),
909 PROTOBUF_FIELD_OFFSET(::operations_research::MPSolutionResponse, _impl_.dual_value_),
910 PROTOBUF_FIELD_OFFSET(::operations_research::MPSolutionResponse, _impl_.reduced_cost_),
911 PROTOBUF_FIELD_OFFSET(::operations_research::MPSolutionResponse, _impl_.additional_solutions_),
912 9,
913 4,
914 7,
915 8,
916 0,
917 6,
918 5,
919 1,
920 2,
921 3,
922};
923
924static const ::_pbi::MigrationSchema
925 schemas[] ABSL_ATTRIBUTE_SECTION_VARIABLE(protodesc_cold) = {
948};
949static const ::_pb::Message* PROTOBUF_NONNULL const file_default_instances[] = {
972};
973const char descriptor_table_protodef_ortools_2flinear_5fsolver_2flinear_5fsolver_2eproto[] ABSL_ATTRIBUTE_SECTION_VARIABLE(
974 protodesc_cold) = {
975 "\n)ortools/linear_solver/linear_solver.pr"
976 "oto\022\023operations_research\032#ortools/util/o"
977 "ptional_boolean.proto\"\262\001\n\017MPVariableProt"
978 "o\022\031\n\013lower_bound\030\001 \001(\001:\004-inf\022\030\n\013upper_bo"
979 "und\030\002 \001(\001:\003inf\022 \n\025objective_coefficient\030"
980 "\003 \001(\001:\0010\022\031\n\nis_integer\030\004 \001(\010:\005false\022\016\n\004n"
981 "ame\030\005 \001(\t:\000\022\035\n\022branching_priority\030\006 \001(\005:"
982 "\0010\"\240\001\n\021MPConstraintProto\022\025\n\tvar_index\030\006 "
983 "\003(\005B\002\020\001\022\027\n\013coefficient\030\007 \003(\001B\002\020\001\022\031\n\013lowe"
984 "r_bound\030\002 \001(\001:\004-inf\022\030\n\013upper_bound\030\003 \001(\001"
985 ":\003inf\022\016\n\004name\030\004 \001(\t:\000\022\026\n\007is_lazy\030\005 \001(\010:\005"
986 "false\"\367\004\n\030MPGeneralConstraintProto\022\016\n\004na"
987 "me\030\001 \001(\t:\000\022J\n\024indicator_constraint\030\002 \001(\013"
988 "2*.operations_research.MPIndicatorConstr"
989 "aintH\000\022>\n\016sos_constraint\030\003 \001(\0132$.operati"
990 "ons_research.MPSosConstraintH\000\022J\n\024quadra"
991 "tic_constraint\030\004 \001(\0132*.operations_resear"
992 "ch.MPQuadraticConstraintH\000\022>\n\016abs_constr"
993 "aint\030\005 \001(\0132$.operations_research.MPAbsCo"
994 "nstraintH\000\022@\n\016and_constraint\030\006 \001(\0132&.ope"
995 "rations_research.MPArrayConstraintH\000\022\?\n\r"
996 "or_constraint\030\007 \001(\0132&.operations_researc"
997 "h.MPArrayConstraintH\000\022L\n\016min_constraint\030"
998 "\010 \001(\01322.operations_research.MPArrayWithC"
999 "onstantConstraintH\000\022L\n\016max_constraint\030\t "
1000 "\001(\01322.operations_research.MPArrayWithCon"
1001 "stantConstraintH\000B\024\n\022general_constraint\""
1002 "y\n\025MPIndicatorConstraint\022\021\n\tvar_index\030\001 "
1003 "\001(\005\022\021\n\tvar_value\030\002 \001(\005\022:\n\nconstraint\030\003 \001"
1004 "(\0132&.operations_research.MPConstraintPro"
1005 "to\"\237\001\n\017MPSosConstraint\022E\n\004type\030\001 \001(\0162).o"
1006 "perations_research.MPSosConstraint.Type:"
1007 "\014SOS1_DEFAULT\022\021\n\tvar_index\030\002 \003(\005\022\016\n\006weig"
1008 "ht\030\003 \003(\001\"\"\n\004Type\022\020\n\014SOS1_DEFAULT\020\000\022\010\n\004SO"
1009 "S2\020\001\"\264\001\n\025MPQuadraticConstraint\022\021\n\tvar_in"
1010 "dex\030\001 \003(\005\022\023\n\013coefficient\030\002 \003(\001\022\023\n\013qvar1_"
1011 "index\030\003 \003(\005\022\023\n\013qvar2_index\030\004 \003(\005\022\024\n\014qcoe"
1012 "fficient\030\005 \003(\001\022\031\n\013lower_bound\030\006 \001(\001:\004-in"
1013 "f\022\030\n\013upper_bound\030\007 \001(\001:\003inf\"A\n\017MPAbsCons"
1014 "traint\022\021\n\tvar_index\030\001 \001(\005\022\033\n\023resultant_v"
1015 "ar_index\030\002 \001(\005\"C\n\021MPArrayConstraint\022\021\n\tv"
1016 "ar_index\030\001 \003(\005\022\033\n\023resultant_var_index\030\002 "
1017 "\001(\005\"a\n\035MPArrayWithConstantConstraint\022\021\n\t"
1018 "var_index\030\001 \003(\005\022\020\n\010constant\030\002 \001(\001\022\033\n\023res"
1019 "ultant_var_index\030\003 \001(\005\"U\n\024MPQuadraticObj"
1020 "ective\022\023\n\013qvar1_index\030\001 \003(\005\022\023\n\013qvar2_ind"
1021 "ex\030\002 \003(\005\022\023\n\013coefficient\030\003 \003(\001\"I\n\031Partial"
1022 "VariableAssignment\022\025\n\tvar_index\030\001 \003(\005B\002\020"
1023 "\001\022\025\n\tvar_value\030\002 \003(\001B\002\020\001\"\344\005\n\014MPModelProt"
1024 "o\0226\n\010variable\030\003 \003(\0132$.operations_researc"
1025 "h.MPVariableProto\022:\n\nconstraint\030\004 \003(\0132&."
1026 "operations_research.MPConstraintProto\022I\n"
1027 "\022general_constraint\030\007 \003(\0132-.operations_r"
1028 "esearch.MPGeneralConstraintProto\022\027\n\010maxi"
1029 "mize\030\001 \001(\010:\005false\022\033\n\020objective_offset\030\002 "
1030 "\001(\001:\0010\022F\n\023quadratic_objective\030\010 \001(\0132).op"
1031 "erations_research.MPQuadraticObjective\022\016"
1032 "\n\004name\030\005 \001(\t:\000\022E\n\rsolution_hint\030\006 \001(\0132.."
1033 "operations_research.PartialVariableAssig"
1034 "nment\022@\n\nannotation\030\t \003(\0132,.operations_r"
1035 "esearch.MPModelProto.Annotation\032\375\001\n\nAnno"
1036 "tation\022L\n\013target_type\030\001 \001(\01627.operations"
1037 "_research.MPModelProto.Annotation.Target"
1038 "Type\022\024\n\014target_index\030\002 \001(\005\022\023\n\013target_nam"
1039 "e\030\003 \001(\t\022\023\n\013payload_key\030\004 \001(\t\022\025\n\rpayload_"
1040 "value\030\005 \001(\t\"J\n\nTargetType\022\024\n\020VARIABLE_DE"
1041 "FAULT\020\000\022\016\n\nCONSTRAINT\020\001\022\026\n\022GENERAL_CONST"
1042 "RAINT\020\002\"\037\n\016OptionalDouble\022\r\n\005value\030\001 \001(\001"
1043 "\"\275\004\n\030MPSolverCommonParameters\022=\n\020relativ"
1044 "e_mip_gap\030\001 \001(\0132#.operations_research.Op"
1045 "tionalDouble\022=\n\020primal_tolerance\030\002 \001(\0132#"
1046 ".operations_research.OptionalDouble\022;\n\016d"
1047 "ual_tolerance\030\003 \001(\0132#.operations_researc"
1048 "h.OptionalDouble\022j\n\014lp_algorithm\030\004 \001(\0162\?"
1049 ".operations_research.MPSolverCommonParam"
1050 "eters.LPAlgorithmValues:\023LP_ALGO_UNSPECI"
1051 "FIED\022H\n\010presolve\030\005 \001(\0162$.operations_rese"
1052 "arch.OptionalBoolean:\020BOOL_UNSPECIFIED\022G"
1053 "\n\007scaling\030\007 \001(\0162$.operations_research.Op"
1054 "tionalBoolean:\020BOOL_UNSPECIFIED\"g\n\021LPAlg"
1055 "orithmValues\022\027\n\023LP_ALGO_UNSPECIFIED\020\000\022\020\n"
1056 "\014LP_ALGO_DUAL\020\001\022\022\n\016LP_ALGO_PRIMAL\020\002\022\023\n\017L"
1057 "P_ALGO_BARRIER\020\003\"\263\003\n\021MPModelDeltaProto\022 "
1058 "\n\030baseline_model_file_path\030\001 \001(\t\022Y\n\022vari"
1059 "able_overrides\030\002 \003(\0132=.operations_resear"
1060 "ch.MPModelDeltaProto.VariableOverridesEn"
1061 "try\022]\n\024constraint_overrides\030\003 \003(\0132\?.oper"
1062 "ations_research.MPModelDeltaProto.Constr"
1063 "aintOverridesEntry\032^\n\026VariableOverridesE"
1064 "ntry\022\013\n\003key\030\001 \001(\005\0223\n\005value\030\002 \001(\0132$.opera"
1065 "tions_research.MPVariableProto:\0028\001\032b\n\030Co"
1066 "nstraintOverridesEntry\022\013\n\003key\030\001 \001(\005\0225\n\005v"
1067 "alue\030\002 \001(\0132&.operations_research.MPConst"
1068 "raintProto:\0028\001\"\241\010\n\016MPModelRequest\0220\n\005mod"
1069 "el\030\001 \001(\0132!.operations_research.MPModelPr"
1070 "oto\022\\\n\013solver_type\030\002 \001(\0162..operations_re"
1071 "search.MPModelRequest.SolverType:\027GLOP_L"
1072 "INEAR_PROGRAMMING\022!\n\031solver_time_limit_s"
1073 "econds\030\003 \001(\001\022,\n\035enable_internal_solver_o"
1074 "utput\030\004 \001(\010:\005false\022\"\n\032solver_specific_pa"
1075 "rameters\030\005 \001(\t\0228\n)ignore_solver_specific"
1076 "_parameters_failure\030\t \001(\010:\005false\022;\n\013mode"
1077 "l_delta\030\010 \001(\0132&.operations_research.MPMo"
1078 "delDeltaProto\022.\n#populate_additional_sol"
1079 "utions_up_to\030\013 \001(\005:\0010\"\334\004\n\nSolverType\022\032\n\026"
1080 "CLP_LINEAR_PROGRAMMING\020\000\022\033\n\027GLOP_LINEAR_"
1081 "PROGRAMMING\020\002\022\033\n\027GLPK_LINEAR_PROGRAMMING"
1082 "\020\001\022\035\n\031GUROBI_LINEAR_PROGRAMMING\020\006\022\035\n\031XPR"
1083 "ESS_LINEAR_PROGRAMMING\020e\022\034\n\030CPLEX_LINEAR"
1084 "_PROGRAMMING\020\n\022\034\n\030HIGHS_LINEAR_PROGRAMMI"
1085 "NG\020\017\022\"\n\036SCIP_MIXED_INTEGER_PROGRAMMING\020\003"
1086 "\022\"\n\036GLPK_MIXED_INTEGER_PROGRAMMING\020\004\022!\n\035"
1087 "CBC_MIXED_INTEGER_PROGRAMMING\020\005\022$\n GUROB"
1088 "I_MIXED_INTEGER_PROGRAMMING\020\007\022$\n XPRESS_"
1089 "MIXED_INTEGER_PROGRAMMING\020f\022#\n\037CPLEX_MIX"
1090 "ED_INTEGER_PROGRAMMING\020\013\022#\n\037HIGHS_MIXED_"
1091 "INTEGER_PROGRAMMING\020\020\022\033\n\027BOP_INTEGER_PRO"
1092 "GRAMMING\020\014\022\033\n\027SAT_INTEGER_PROGRAMMING\020\016\022"
1093 "\033\n\027PDLP_LINEAR_PROGRAMMING\020\010\022&\n\"KNAPSACK"
1094 "_MIXED_INTEGER_PROGRAMMING\020\rJ\004\010\014\020\r\"A\n\nMP"
1095 "Solution\022\027\n\017objective_value\030\001 \001(\001\022\032\n\016var"
1096 "iable_value\030\002 \003(\001B\002\020\001\"O\n\013MPSolveInfo\022\037\n\027"
1097 "solve_wall_time_seconds\030\001 \001(\001\022\037\n\027solve_u"
1098 "ser_time_seconds\030\002 \001(\001\"\234\003\n\022MPSolutionRes"
1099 "ponse\022T\n\006status\030\001 \001(\0162+.operations_resea"
1100 "rch.MPSolverResponseStatus:\027MPSOLVER_UNK"
1101 "NOWN_STATUS\022\022\n\nstatus_str\030\007 \001(\t\022\027\n\017objec"
1102 "tive_value\030\002 \001(\001\022\034\n\024best_objective_bound"
1103 "\030\005 \001(\001\022\032\n\016variable_value\030\003 \003(\001B\002\020\001\0224\n\nso"
1104 "lve_info\030\n \001(\0132 .operations_research.MPS"
1105 "olveInfo\022\034\n\024solver_specific_info\030\013 \001(\014\022\026"
1106 "\n\ndual_value\030\004 \003(\001B\002\020\001\022\030\n\014reduced_cost\030\006"
1107 " \003(\001B\002\020\001\022=\n\024additional_solutions\030\010 \003(\0132\037"
1108 ".operations_research.MPSolutionJ\004\010\t\020\n*\275\003"
1109 "\n\026MPSolverResponseStatus\022\024\n\020MPSOLVER_OPT"
1110 "IMAL\020\000\022\025\n\021MPSOLVER_FEASIBLE\020\001\022\027\n\023MPSOLVE"
1111 "R_INFEASIBLE\020\002\022\026\n\022MPSOLVER_UNBOUNDED\020\003\022\025"
1112 "\n\021MPSOLVER_ABNORMAL\020\004\022\027\n\023MPSOLVER_NOT_SO"
1113 "LVED\020\006\022\033\n\027MPSOLVER_MODEL_IS_VALID\020a\022\036\n\032M"
1114 "PSOLVER_CANCELLED_BY_USER\020b\022\033\n\027MPSOLVER_"
1115 "UNKNOWN_STATUS\020c\022\032\n\026MPSOLVER_MODEL_INVAL"
1116 "ID\020\005\022(\n$MPSOLVER_MODEL_INVALID_SOLUTION_"
1117 "HINT\020T\022,\n(MPSOLVER_MODEL_INVALID_SOLVER_"
1118 "PARAMETERS\020U\022$\n MPSOLVER_SOLVER_TYPE_UNA"
1119 "VAILABLE\020\007\022!\n\035MPSOLVER_INCOMPATIBLE_OPTI"
1120 "ONS\020qB#\n\037com.google.ortools.linearsolver"
1121 "P\001"
1122};
1123static const ::_pbi::DescriptorTable* PROTOBUF_NONNULL const
1144namespace operations_research {
1145const ::google::protobuf::EnumDescriptor* PROTOBUF_NONNULL MPSosConstraint_Type_descriptor() {
1146 ::google::protobuf::internal::AssignDescriptors(&descriptor_table_ortools_2flinear_5fsolver_2flinear_5fsolver_2eproto);
1148}
1149PROTOBUF_CONSTINIT const uint32_t MPSosConstraint_Type_internal_data_[] = {
1150 131072u, 0u, };
1151const ::google::protobuf::EnumDescriptor* PROTOBUF_NONNULL MPModelProto_Annotation_TargetType_descriptor() {
1152 ::google::protobuf::internal::AssignDescriptors(&descriptor_table_ortools_2flinear_5fsolver_2flinear_5fsolver_2eproto);
1154}
1155PROTOBUF_CONSTINIT const uint32_t MPModelProto_Annotation_TargetType_internal_data_[] = {
1156 196608u, 0u, };
1157const ::google::protobuf::EnumDescriptor* PROTOBUF_NONNULL MPSolverCommonParameters_LPAlgorithmValues_descriptor() {
1158 ::google::protobuf::internal::AssignDescriptors(&descriptor_table_ortools_2flinear_5fsolver_2flinear_5fsolver_2eproto);
1160}
1162 262144u, 0u, };
1163const ::google::protobuf::EnumDescriptor* PROTOBUF_NONNULL MPModelRequest_SolverType_descriptor() {
1164 ::google::protobuf::internal::AssignDescriptors(&descriptor_table_ortools_2flinear_5fsolver_2flinear_5fsolver_2eproto);
1166}
1167PROTOBUF_CONSTINIT const uint32_t MPModelRequest_SolverType_internal_data_[] = {
1168 589824u, 96u, 254u, 0u, 805306368u, };
1169const ::google::protobuf::EnumDescriptor* PROTOBUF_NONNULL MPSolverResponseStatus_descriptor() {
1170 ::google::protobuf::internal::AssignDescriptors(&descriptor_table_ortools_2flinear_5fsolver_2flinear_5fsolver_2eproto);
1172}
1173PROTOBUF_CONSTINIT const uint32_t MPSolverResponseStatus_internal_data_[] = {
1174 524288u, 128u, 0u, 0u, 234893312u, 512u, };
1175// ===================================================================
1176
1177class MPVariableProto::_Internal {
1178 public:
1179 using HasBits =
1180 decltype(::std::declval<MPVariableProto>()._impl_._has_bits_);
1181 static constexpr ::int32_t kHasBitsOffset =
1182 8 * PROTOBUF_FIELD_OFFSET(MPVariableProto, _impl_._has_bits_);
1183};
1184
1185MPVariableProto::MPVariableProto(::google::protobuf::Arena* PROTOBUF_NULLABLE arena)
1186#if defined(PROTOBUF_CUSTOM_VTABLE)
1187 : ::google::protobuf::Message(arena, MPVariableProto_class_data_.base()) {
1188#else // PROTOBUF_CUSTOM_VTABLE
1189 : ::google::protobuf::Message(arena) {
1190#endif // PROTOBUF_CUSTOM_VTABLE
1191 SharedCtor(arena);
1192 // @@protoc_insertion_point(arena_constructor:operations_research.MPVariableProto)
1193}
1194PROTOBUF_NDEBUG_INLINE MPVariableProto::Impl_::Impl_(
1195 [[maybe_unused]] ::google::protobuf::internal::InternalVisibility visibility,
1196 [[maybe_unused]] ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const Impl_& from,
1197 [[maybe_unused]] const ::operations_research::MPVariableProto& from_msg)
1198 : _has_bits_{from._has_bits_},
1199 _cached_size_{0},
1200 name_(arena, from.name_) {}
1201
1203 ::google::protobuf::Arena* PROTOBUF_NULLABLE arena,
1204 const MPVariableProto& from)
1205#if defined(PROTOBUF_CUSTOM_VTABLE)
1206 : ::google::protobuf::Message(arena, MPVariableProto_class_data_.base()) {
1207#else // PROTOBUF_CUSTOM_VTABLE
1208 : ::google::protobuf::Message(arena) {
1209#endif // PROTOBUF_CUSTOM_VTABLE
1210 MPVariableProto* const _this = this;
1211 (void)_this;
1212 _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(
1213 from._internal_metadata_);
1214 new (&_impl_) Impl_(internal_visibility(), arena, from._impl_, from);
1215 ::memcpy(reinterpret_cast<char*>(&_impl_) +
1216 offsetof(Impl_, objective_coefficient_),
1217 reinterpret_cast<const char*>(&from._impl_) +
1218 offsetof(Impl_, objective_coefficient_),
1219 offsetof(Impl_, upper_bound_) -
1220 offsetof(Impl_, objective_coefficient_) +
1221 sizeof(Impl_::upper_bound_));
1222
1223 // @@protoc_insertion_point(copy_constructor:operations_research.MPVariableProto)
1224}
1225PROTOBUF_NDEBUG_INLINE MPVariableProto::Impl_::Impl_(
1226 [[maybe_unused]] ::google::protobuf::internal::InternalVisibility visibility,
1227 [[maybe_unused]] ::google::protobuf::Arena* PROTOBUF_NULLABLE arena)
1228 : _cached_size_{0},
1229 name_(arena),
1230 lower_bound_{-std::numeric_limits<double>::infinity()},
1231 upper_bound_{std::numeric_limits<double>::infinity()} {}
1232
1233inline void MPVariableProto::SharedCtor(::_pb::Arena* PROTOBUF_NULLABLE arena) {
1234 new (&_impl_) Impl_(internal_visibility(), arena);
1235 ::memset(reinterpret_cast<char*>(&_impl_) +
1236 offsetof(Impl_, objective_coefficient_),
1237 0,
1238 offsetof(Impl_, branching_priority_) -
1239 offsetof(Impl_, objective_coefficient_) +
1240 sizeof(Impl_::branching_priority_));
1241}
1243 // @@protoc_insertion_point(destructor:operations_research.MPVariableProto)
1244 SharedDtor(*this);
1245}
1246inline void MPVariableProto::SharedDtor(MessageLite& self) {
1247 MPVariableProto& this_ = static_cast<MPVariableProto&>(self);
1248 if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) {
1249 this_.CheckHasBitConsistency();
1250 }
1251 this_._internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>();
1252 ABSL_DCHECK(this_.GetArena() == nullptr);
1253 this_._impl_.name_.Destroy();
1254 this_._impl_.~Impl_();
1255}
1256
1257inline void* PROTOBUF_NONNULL MPVariableProto::PlacementNew_(
1258 const void* PROTOBUF_NONNULL, void* PROTOBUF_NONNULL mem,
1259 ::google::protobuf::Arena* PROTOBUF_NULLABLE arena) {
1260 return ::new (mem) MPVariableProto(arena);
1261}
1262constexpr auto MPVariableProto::InternalNewImpl_() {
1263 return ::google::protobuf::internal::MessageCreator::CopyInit(sizeof(MPVariableProto),
1264 alignof(MPVariableProto));
1265}
1267 return ::google::protobuf::internal::ClassDataFull{
1268 ::google::protobuf::internal::ClassData{
1270 &_table_.header,
1271 nullptr, // OnDemandRegisterArenaDtor
1272 nullptr, // IsInitialized
1273 &MPVariableProto::MergeImpl,
1274 ::google::protobuf::Message::GetNewImpl<MPVariableProto>(),
1275#if defined(PROTOBUF_CUSTOM_VTABLE)
1276 &MPVariableProto::SharedDtor,
1277 ::google::protobuf::Message::GetClearImpl<MPVariableProto>(), &MPVariableProto::ByteSizeLong,
1279#endif // PROTOBUF_CUSTOM_VTABLE
1280 PROTOBUF_FIELD_OFFSET(MPVariableProto, _impl_._cached_size_),
1281 false,
1282 },
1283 &MPVariableProto::kDescriptorMethods,
1285 nullptr, // tracker
1286 };
1287}
1288
1289PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 const
1290 ::google::protobuf::internal::ClassDataFull MPVariableProto_class_data_ =
1292
1293PROTOBUF_ATTRIBUTE_WEAK const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL
1294MPVariableProto::GetClassData() const {
1295 ::google::protobuf::internal::PrefetchToLocalCache(&MPVariableProto_class_data_);
1296 ::google::protobuf::internal::PrefetchToLocalCache(MPVariableProto_class_data_.tc_table);
1297 return MPVariableProto_class_data_.base();
1298}
1299PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1
1300const ::_pbi::TcParseTable<3, 6, 0, 0, 2>
1301MPVariableProto::_table_ = {
1302 {
1303 PROTOBUF_FIELD_OFFSET(MPVariableProto, _impl_._has_bits_),
1304 0, // no _extensions_
1305 6, 56, // max_field_number, fast_idx_mask
1306 offsetof(decltype(_table_), field_lookup_table),
1307 4294967232, // skipmap
1308 offsetof(decltype(_table_), field_entries),
1309 6, // num_field_entries
1310 0, // num_aux_entries
1311 offsetof(decltype(_table_), field_names), // no aux_entries
1313 nullptr, // post_loop_handler
1314 ::_pbi::TcParser::GenericFallback, // fallback
1315 #ifdef PROTOBUF_PREFETCH_PARSE_TABLE
1316 ::_pbi::TcParser::GetTable<::operations_research::MPVariableProto>(), // to_prefetch
1317 #endif // PROTOBUF_PREFETCH_PARSE_TABLE
1318 }, {{
1319 {::_pbi::TcParser::MiniParse, {}},
1320 // optional double lower_bound = 1 [default = -inf];
1321 {::_pbi::TcParser::FastF64S1,
1322 {9, 4, 0,
1323 PROTOBUF_FIELD_OFFSET(MPVariableProto, _impl_.lower_bound_)}},
1324 // optional double upper_bound = 2 [default = inf];
1325 {::_pbi::TcParser::FastF64S1,
1326 {17, 5, 0,
1327 PROTOBUF_FIELD_OFFSET(MPVariableProto, _impl_.upper_bound_)}},
1328 // optional double objective_coefficient = 3 [default = 0];
1329 {::_pbi::TcParser::FastF64S1,
1330 {25, 1, 0,
1331 PROTOBUF_FIELD_OFFSET(MPVariableProto, _impl_.objective_coefficient_)}},
1332 // optional bool is_integer = 4 [default = false];
1333 {::_pbi::TcParser::SingularVarintNoZag1<bool, offsetof(MPVariableProto, _impl_.is_integer_), 2>(),
1334 {32, 2, 0,
1335 PROTOBUF_FIELD_OFFSET(MPVariableProto, _impl_.is_integer_)}},
1336 // optional string name = 5 [default = ""];
1337 {::_pbi::TcParser::FastBS1,
1338 {42, 0, 0,
1339 PROTOBUF_FIELD_OFFSET(MPVariableProto, _impl_.name_)}},
1340 // optional int32 branching_priority = 6 [default = 0];
1341 {::_pbi::TcParser::SingularVarintNoZag1<::uint32_t, offsetof(MPVariableProto, _impl_.branching_priority_), 3>(),
1342 {48, 3, 0,
1343 PROTOBUF_FIELD_OFFSET(MPVariableProto, _impl_.branching_priority_)}},
1344 {::_pbi::TcParser::MiniParse, {}},
1345 }}, {{
1346 65535, 65535
1347 }}, {{
1348 // optional double lower_bound = 1 [default = -inf];
1349 {PROTOBUF_FIELD_OFFSET(MPVariableProto, _impl_.lower_bound_), _Internal::kHasBitsOffset + 4, 0, (0 | ::_fl::kFcOptional | ::_fl::kDouble)},
1350 // optional double upper_bound = 2 [default = inf];
1351 {PROTOBUF_FIELD_OFFSET(MPVariableProto, _impl_.upper_bound_), _Internal::kHasBitsOffset + 5, 0, (0 | ::_fl::kFcOptional | ::_fl::kDouble)},
1352 // optional double objective_coefficient = 3 [default = 0];
1353 {PROTOBUF_FIELD_OFFSET(MPVariableProto, _impl_.objective_coefficient_), _Internal::kHasBitsOffset + 1, 0, (0 | ::_fl::kFcOptional | ::_fl::kDouble)},
1354 // optional bool is_integer = 4 [default = false];
1355 {PROTOBUF_FIELD_OFFSET(MPVariableProto, _impl_.is_integer_), _Internal::kHasBitsOffset + 2, 0, (0 | ::_fl::kFcOptional | ::_fl::kBool)},
1356 // optional string name = 5 [default = ""];
1357 {PROTOBUF_FIELD_OFFSET(MPVariableProto, _impl_.name_), _Internal::kHasBitsOffset + 0, 0, (0 | ::_fl::kFcOptional | ::_fl::kBytes | ::_fl::kRepAString)},
1358 // optional int32 branching_priority = 6 [default = 0];
1359 {PROTOBUF_FIELD_OFFSET(MPVariableProto, _impl_.branching_priority_), _Internal::kHasBitsOffset + 3, 0, (0 | ::_fl::kFcOptional | ::_fl::kInt32)},
1360 }},
1361 // no aux_entries
1362 {{
1363 }},
1364};
1365PROTOBUF_NOINLINE void MPVariableProto::Clear() {
1366// @@protoc_insertion_point(message_clear_start:operations_research.MPVariableProto)
1367 ::google::protobuf::internal::TSanWrite(&_impl_);
1368 ::uint32_t cached_has_bits = 0;
1369 // Prevent compiler warnings about cached_has_bits being unused
1370 (void) cached_has_bits;
1371
1372 cached_has_bits = _impl_._has_bits_[0];
1373 if (CheckHasBit(cached_has_bits, 0x00000001U)) {
1374 _impl_.name_.ClearNonDefaultToEmpty();
1375 }
1376 if (BatchCheckHasBit(cached_has_bits, 0x0000003eU)) {
1377 ::memset(&_impl_.objective_coefficient_, 0, static_cast<::size_t>(
1378 reinterpret_cast<char*>(&_impl_.branching_priority_) -
1379 reinterpret_cast<char*>(&_impl_.objective_coefficient_)) + sizeof(_impl_.branching_priority_));
1380 _impl_.lower_bound_ = -std::numeric_limits<double>::infinity();
1381 _impl_.upper_bound_ = std::numeric_limits<double>::infinity();
1382 }
1383 _impl_._has_bits_.Clear();
1384 _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>();
1385}
1386
1387#if defined(PROTOBUF_CUSTOM_VTABLE)
1388::uint8_t* PROTOBUF_NONNULL MPVariableProto::_InternalSerialize(
1389 const ::google::protobuf::MessageLite& base, ::uint8_t* PROTOBUF_NONNULL target,
1390 ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) {
1391 const MPVariableProto& this_ = static_cast<const MPVariableProto&>(base);
1392#else // PROTOBUF_CUSTOM_VTABLE
1393::uint8_t* PROTOBUF_NONNULL MPVariableProto::_InternalSerialize(
1394 ::uint8_t* PROTOBUF_NONNULL target,
1395 ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const {
1396 const MPVariableProto& this_ = *this;
1397#endif // PROTOBUF_CUSTOM_VTABLE
1398 if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) {
1399 this_.CheckHasBitConsistency();
1400 }
1401 // @@protoc_insertion_point(serialize_to_array_start:operations_research.MPVariableProto)
1402 ::uint32_t cached_has_bits = 0;
1403 (void)cached_has_bits;
1404
1405 cached_has_bits = this_._impl_._has_bits_[0];
1406 // optional double lower_bound = 1 [default = -inf];
1407 if (CheckHasBit(cached_has_bits, 0x00000010U)) {
1408 target = stream->EnsureSpace(target);
1409 target = ::_pbi::WireFormatLite::WriteDoubleToArray(
1410 1, this_._internal_lower_bound(), target);
1411 }
1412
1413 // optional double upper_bound = 2 [default = inf];
1414 if (CheckHasBit(cached_has_bits, 0x00000020U)) {
1415 target = stream->EnsureSpace(target);
1416 target = ::_pbi::WireFormatLite::WriteDoubleToArray(
1417 2, this_._internal_upper_bound(), target);
1418 }
1419
1420 // optional double objective_coefficient = 3 [default = 0];
1421 if (CheckHasBit(cached_has_bits, 0x00000002U)) {
1422 target = stream->EnsureSpace(target);
1423 target = ::_pbi::WireFormatLite::WriteDoubleToArray(
1424 3, this_._internal_objective_coefficient(), target);
1425 }
1426
1427 // optional bool is_integer = 4 [default = false];
1428 if (CheckHasBit(cached_has_bits, 0x00000004U)) {
1429 target = stream->EnsureSpace(target);
1430 target = ::_pbi::WireFormatLite::WriteBoolToArray(
1431 4, this_._internal_is_integer(), target);
1432 }
1433
1434 // optional string name = 5 [default = ""];
1435 if (CheckHasBit(cached_has_bits, 0x00000001U)) {
1436 const ::std::string& _s = this_._internal_name();
1437 target = stream->WriteStringMaybeAliased(5, _s, target);
1438 }
1439
1440 // optional int32 branching_priority = 6 [default = 0];
1441 if (CheckHasBit(cached_has_bits, 0x00000008U)) {
1442 target =
1443 ::google::protobuf::internal::WireFormatLite::WriteInt32ToArrayWithField<6>(
1444 stream, this_._internal_branching_priority(), target);
1445 }
1446
1447 if (ABSL_PREDICT_FALSE(this_._internal_metadata_.have_unknown_fields())) {
1448 target =
1449 ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray(
1450 this_._internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream);
1451 }
1452 // @@protoc_insertion_point(serialize_to_array_end:operations_research.MPVariableProto)
1453 return target;
1454}
1455
1456#if defined(PROTOBUF_CUSTOM_VTABLE)
1458 const MPVariableProto& this_ = static_cast<const MPVariableProto&>(base);
1459#else // PROTOBUF_CUSTOM_VTABLE
1460::size_t MPVariableProto::ByteSizeLong() const {
1461 const MPVariableProto& this_ = *this;
1462#endif // PROTOBUF_CUSTOM_VTABLE
1463 // @@protoc_insertion_point(message_byte_size_start:operations_research.MPVariableProto)
1464 ::size_t total_size = 0;
1465
1466 ::uint32_t cached_has_bits = 0;
1467 // Prevent compiler warnings about cached_has_bits being unused
1468 (void)cached_has_bits;
1469
1470 ::_pbi::Prefetch5LinesFrom7Lines(&this_);
1471 cached_has_bits = this_._impl_._has_bits_[0];
1472 total_size += ::absl::popcount(0x00000032U & cached_has_bits) * 9;
1473 total_size += static_cast<bool>(0x00000004U & cached_has_bits) * 2;
1474 if (BatchCheckHasBit(cached_has_bits, 0x00000009U)) {
1475 // optional string name = 5 [default = ""];
1476 if (CheckHasBit(cached_has_bits, 0x00000001U)) {
1477 total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize(
1478 this_._internal_name());
1479 }
1480 // optional int32 branching_priority = 6 [default = 0];
1481 if (CheckHasBit(cached_has_bits, 0x00000008U)) {
1482 total_size += ::_pbi::WireFormatLite::Int32SizePlusOne(
1483 this_._internal_branching_priority());
1484 }
1485 }
1486 return this_.MaybeComputeUnknownFieldsSize(total_size,
1487 &this_._impl_._cached_size_);
1488}
1489
1490void MPVariableProto::MergeImpl(::google::protobuf::MessageLite& to_msg,
1491 const ::google::protobuf::MessageLite& from_msg) {
1492 auto* const _this =
1493 static_cast<MPVariableProto*>(&to_msg);
1494 auto& from = static_cast<const MPVariableProto&>(from_msg);
1495 if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) {
1496 from.CheckHasBitConsistency();
1497 }
1498 // @@protoc_insertion_point(class_specific_merge_from_start:operations_research.MPVariableProto)
1499 ABSL_DCHECK_NE(&from, _this);
1500 ::uint32_t cached_has_bits = 0;
1501 (void)cached_has_bits;
1502
1503 cached_has_bits = from._impl_._has_bits_[0];
1504 if (BatchCheckHasBit(cached_has_bits, 0x0000003fU)) {
1505 if (CheckHasBit(cached_has_bits, 0x00000001U)) {
1506 _this->_internal_set_name(from._internal_name());
1507 }
1508 if (CheckHasBit(cached_has_bits, 0x00000002U)) {
1509 _this->_impl_.objective_coefficient_ = from._impl_.objective_coefficient_;
1510 }
1511 if (CheckHasBit(cached_has_bits, 0x00000004U)) {
1512 _this->_impl_.is_integer_ = from._impl_.is_integer_;
1513 }
1514 if (CheckHasBit(cached_has_bits, 0x00000008U)) {
1515 _this->_impl_.branching_priority_ = from._impl_.branching_priority_;
1516 }
1517 if (CheckHasBit(cached_has_bits, 0x00000010U)) {
1518 _this->_impl_.lower_bound_ = from._impl_.lower_bound_;
1519 }
1520 if (CheckHasBit(cached_has_bits, 0x00000020U)) {
1521 _this->_impl_.upper_bound_ = from._impl_.upper_bound_;
1522 }
1523 }
1524 _this->_impl_._has_bits_[0] |= cached_has_bits;
1525 _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(
1526 from._internal_metadata_);
1527}
1528
1530 // @@protoc_insertion_point(class_specific_copy_from_start:operations_research.MPVariableProto)
1531 if (&from == this) return;
1532 Clear();
1533 MergeFrom(from);
1534}
1535
1536
1537void MPVariableProto::InternalSwap(MPVariableProto* PROTOBUF_RESTRICT PROTOBUF_NONNULL other) {
1538 using ::std::swap;
1539 auto* arena = GetArena();
1540 ABSL_DCHECK_EQ(arena, other->GetArena());
1541 _internal_metadata_.InternalSwap(&other->_internal_metadata_);
1542 swap(_impl_._has_bits_[0], other->_impl_._has_bits_[0]);
1543 ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.name_, &other->_impl_.name_, arena);
1544 ::google::protobuf::internal::memswap<
1545 PROTOBUF_FIELD_OFFSET(MPVariableProto, _impl_.upper_bound_)
1546 + sizeof(MPVariableProto::_impl_.upper_bound_)
1547 - PROTOBUF_FIELD_OFFSET(MPVariableProto, _impl_.objective_coefficient_)>(
1548 reinterpret_cast<char*>(&_impl_.objective_coefficient_),
1549 reinterpret_cast<char*>(&other->_impl_.objective_coefficient_));
1550}
1551
1552::google::protobuf::Metadata MPVariableProto::GetMetadata() const {
1553 return ::google::protobuf::Message::GetMetadataImpl(GetClassData()->full());
1554}
1555// ===================================================================
1556
1558 public:
1559 using HasBits =
1560 decltype(::std::declval<MPConstraintProto>()._impl_._has_bits_);
1561 static constexpr ::int32_t kHasBitsOffset =
1562 8 * PROTOBUF_FIELD_OFFSET(MPConstraintProto, _impl_._has_bits_);
1564
1565MPConstraintProto::MPConstraintProto(::google::protobuf::Arena* PROTOBUF_NULLABLE arena)
1566#if defined(PROTOBUF_CUSTOM_VTABLE)
1567 : ::google::protobuf::Message(arena, MPConstraintProto_class_data_.base()) {
1568#else // PROTOBUF_CUSTOM_VTABLE
1569 : ::google::protobuf::Message(arena) {
1570#endif // PROTOBUF_CUSTOM_VTABLE
1571 SharedCtor(arena);
1572 // @@protoc_insertion_point(arena_constructor:operations_research.MPConstraintProto)
1573}
1574PROTOBUF_NDEBUG_INLINE MPConstraintProto::Impl_::Impl_(
1575 [[maybe_unused]] ::google::protobuf::internal::InternalVisibility visibility,
1576 [[maybe_unused]] ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const Impl_& from,
1577 [[maybe_unused]] const ::operations_research::MPConstraintProto& from_msg)
1578 : _has_bits_{from._has_bits_},
1579 _cached_size_{0},
1580 var_index_{visibility, arena, from.var_index_},
1581 _var_index_cached_byte_size_{0},
1582 coefficient_{visibility, arena, from.coefficient_},
1583 name_(arena, from.name_) {}
1584
1586 ::google::protobuf::Arena* PROTOBUF_NULLABLE arena,
1587 const MPConstraintProto& from)
1588#if defined(PROTOBUF_CUSTOM_VTABLE)
1589 : ::google::protobuf::Message(arena, MPConstraintProto_class_data_.base()) {
1590#else // PROTOBUF_CUSTOM_VTABLE
1591 : ::google::protobuf::Message(arena) {
1592#endif // PROTOBUF_CUSTOM_VTABLE
1593 MPConstraintProto* const _this = this;
1594 (void)_this;
1595 _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(
1596 from._internal_metadata_);
1597 new (&_impl_) Impl_(internal_visibility(), arena, from._impl_, from);
1598 ::memcpy(reinterpret_cast<char*>(&_impl_) +
1599 offsetof(Impl_, is_lazy_),
1600 reinterpret_cast<const char*>(&from._impl_) +
1601 offsetof(Impl_, is_lazy_),
1602 offsetof(Impl_, upper_bound_) -
1603 offsetof(Impl_, is_lazy_) +
1604 sizeof(Impl_::upper_bound_));
1605
1606 // @@protoc_insertion_point(copy_constructor:operations_research.MPConstraintProto)
1607}
1608PROTOBUF_NDEBUG_INLINE MPConstraintProto::Impl_::Impl_(
1609 [[maybe_unused]] ::google::protobuf::internal::InternalVisibility visibility,
1610 [[maybe_unused]] ::google::protobuf::Arena* PROTOBUF_NULLABLE arena)
1611 : _cached_size_{0},
1612 var_index_{visibility, arena},
1613 _var_index_cached_byte_size_{0},
1614 coefficient_{visibility, arena},
1615 name_(arena),
1616 lower_bound_{-std::numeric_limits<double>::infinity()},
1617 upper_bound_{std::numeric_limits<double>::infinity()} {}
1618
1619inline void MPConstraintProto::SharedCtor(::_pb::Arena* PROTOBUF_NULLABLE arena) {
1620 new (&_impl_) Impl_(internal_visibility(), arena);
1621 _impl_.is_lazy_ = {};
1622}
1624 // @@protoc_insertion_point(destructor:operations_research.MPConstraintProto)
1625 SharedDtor(*this);
1626}
1627inline void MPConstraintProto::SharedDtor(MessageLite& self) {
1628 MPConstraintProto& this_ = static_cast<MPConstraintProto&>(self);
1629 if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) {
1630 this_.CheckHasBitConsistency();
1631 }
1632 this_._internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>();
1633 ABSL_DCHECK(this_.GetArena() == nullptr);
1634 this_._impl_.name_.Destroy();
1635 this_._impl_.~Impl_();
1636}
1637
1638inline void* PROTOBUF_NONNULL MPConstraintProto::PlacementNew_(
1639 const void* PROTOBUF_NONNULL, void* PROTOBUF_NONNULL mem,
1640 ::google::protobuf::Arena* PROTOBUF_NULLABLE arena) {
1641 return ::new (mem) MPConstraintProto(arena);
1642}
1643constexpr auto MPConstraintProto::InternalNewImpl_() {
1644 constexpr auto arena_bits = ::google::protobuf::internal::EncodePlacementArenaOffsets({
1645 PROTOBUF_FIELD_OFFSET(MPConstraintProto, _impl_.var_index_) +
1646 decltype(MPConstraintProto::_impl_.var_index_)::
1647 InternalGetArenaOffset(
1648 ::google::protobuf::Message::internal_visibility()),
1649 PROTOBUF_FIELD_OFFSET(MPConstraintProto, _impl_.coefficient_) +
1650 decltype(MPConstraintProto::_impl_.coefficient_)::
1651 InternalGetArenaOffset(
1652 ::google::protobuf::Message::internal_visibility()),
1653 });
1654 if (arena_bits.has_value()) {
1655 return ::google::protobuf::internal::MessageCreator::CopyInit(
1656 sizeof(MPConstraintProto), alignof(MPConstraintProto), *arena_bits);
1657 } else {
1658 return ::google::protobuf::internal::MessageCreator(&MPConstraintProto::PlacementNew_,
1659 sizeof(MPConstraintProto),
1660 alignof(MPConstraintProto));
1661 }
1662}
1664 return ::google::protobuf::internal::ClassDataFull{
1665 ::google::protobuf::internal::ClassData{
1667 &_table_.header,
1668 nullptr, // OnDemandRegisterArenaDtor
1669 nullptr, // IsInitialized
1670 &MPConstraintProto::MergeImpl,
1671 ::google::protobuf::Message::GetNewImpl<MPConstraintProto>(),
1672#if defined(PROTOBUF_CUSTOM_VTABLE)
1673 &MPConstraintProto::SharedDtor,
1674 ::google::protobuf::Message::GetClearImpl<MPConstraintProto>(), &MPConstraintProto::ByteSizeLong,
1676#endif // PROTOBUF_CUSTOM_VTABLE
1677 PROTOBUF_FIELD_OFFSET(MPConstraintProto, _impl_._cached_size_),
1678 false,
1679 },
1680 &MPConstraintProto::kDescriptorMethods,
1682 nullptr, // tracker
1683 };
1684}
1685
1686PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 const
1687 ::google::protobuf::internal::ClassDataFull MPConstraintProto_class_data_ =
1690PROTOBUF_ATTRIBUTE_WEAK const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL
1691MPConstraintProto::GetClassData() const {
1692 ::google::protobuf::internal::PrefetchToLocalCache(&MPConstraintProto_class_data_);
1693 ::google::protobuf::internal::PrefetchToLocalCache(MPConstraintProto_class_data_.tc_table);
1694 return MPConstraintProto_class_data_.base();
1695}
1696PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1
1697const ::_pbi::TcParseTable<3, 6, 0, 0, 2>
1698MPConstraintProto::_table_ = {
1699 {
1700 PROTOBUF_FIELD_OFFSET(MPConstraintProto, _impl_._has_bits_),
1701 0, // no _extensions_
1702 7, 56, // max_field_number, fast_idx_mask
1703 offsetof(decltype(_table_), field_lookup_table),
1704 4294967169, // skipmap
1705 offsetof(decltype(_table_), field_entries),
1706 6, // num_field_entries
1707 0, // num_aux_entries
1708 offsetof(decltype(_table_), field_names), // no aux_entries
1710 nullptr, // post_loop_handler
1711 ::_pbi::TcParser::GenericFallback, // fallback
1712 #ifdef PROTOBUF_PREFETCH_PARSE_TABLE
1713 ::_pbi::TcParser::GetTable<::operations_research::MPConstraintProto>(), // to_prefetch
1714 #endif // PROTOBUF_PREFETCH_PARSE_TABLE
1715 }, {{
1716 {::_pbi::TcParser::MiniParse, {}},
1717 {::_pbi::TcParser::MiniParse, {}},
1718 // optional double lower_bound = 2 [default = -inf];
1719 {::_pbi::TcParser::FastF64S1,
1720 {17, 4, 0,
1721 PROTOBUF_FIELD_OFFSET(MPConstraintProto, _impl_.lower_bound_)}},
1722 // optional double upper_bound = 3 [default = inf];
1723 {::_pbi::TcParser::FastF64S1,
1724 {25, 5, 0,
1725 PROTOBUF_FIELD_OFFSET(MPConstraintProto, _impl_.upper_bound_)}},
1726 // optional string name = 4 [default = ""];
1727 {::_pbi::TcParser::FastBS1,
1728 {34, 2, 0,
1729 PROTOBUF_FIELD_OFFSET(MPConstraintProto, _impl_.name_)}},
1730 // optional bool is_lazy = 5 [default = false];
1731 {::_pbi::TcParser::SingularVarintNoZag1<bool, offsetof(MPConstraintProto, _impl_.is_lazy_), 3>(),
1732 {40, 3, 0,
1733 PROTOBUF_FIELD_OFFSET(MPConstraintProto, _impl_.is_lazy_)}},
1734 // repeated int32 var_index = 6 [packed = true];
1735 {::_pbi::TcParser::FastV32P1,
1736 {50, 0, 0,
1737 PROTOBUF_FIELD_OFFSET(MPConstraintProto, _impl_.var_index_)}},
1738 // repeated double coefficient = 7 [packed = true];
1739 {::_pbi::TcParser::FastF64P1,
1740 {58, 1, 0,
1741 PROTOBUF_FIELD_OFFSET(MPConstraintProto, _impl_.coefficient_)}},
1742 }}, {{
1743 65535, 65535
1744 }}, {{
1745 // optional double lower_bound = 2 [default = -inf];
1746 {PROTOBUF_FIELD_OFFSET(MPConstraintProto, _impl_.lower_bound_), _Internal::kHasBitsOffset + 4, 0, (0 | ::_fl::kFcOptional | ::_fl::kDouble)},
1747 // optional double upper_bound = 3 [default = inf];
1748 {PROTOBUF_FIELD_OFFSET(MPConstraintProto, _impl_.upper_bound_), _Internal::kHasBitsOffset + 5, 0, (0 | ::_fl::kFcOptional | ::_fl::kDouble)},
1749 // optional string name = 4 [default = ""];
1750 {PROTOBUF_FIELD_OFFSET(MPConstraintProto, _impl_.name_), _Internal::kHasBitsOffset + 2, 0, (0 | ::_fl::kFcOptional | ::_fl::kBytes | ::_fl::kRepAString)},
1751 // optional bool is_lazy = 5 [default = false];
1752 {PROTOBUF_FIELD_OFFSET(MPConstraintProto, _impl_.is_lazy_), _Internal::kHasBitsOffset + 3, 0, (0 | ::_fl::kFcOptional | ::_fl::kBool)},
1753 // repeated int32 var_index = 6 [packed = true];
1754 {PROTOBUF_FIELD_OFFSET(MPConstraintProto, _impl_.var_index_), _Internal::kHasBitsOffset + 0, 0, (0 | ::_fl::kFcRepeated | ::_fl::kPackedInt32)},
1755 // repeated double coefficient = 7 [packed = true];
1756 {PROTOBUF_FIELD_OFFSET(MPConstraintProto, _impl_.coefficient_), _Internal::kHasBitsOffset + 1, 0, (0 | ::_fl::kFcRepeated | ::_fl::kPackedDouble)},
1757 }},
1758 // no aux_entries
1759 {{
1760 }},
1761};
1762PROTOBUF_NOINLINE void MPConstraintProto::Clear() {
1763// @@protoc_insertion_point(message_clear_start:operations_research.MPConstraintProto)
1764 ::google::protobuf::internal::TSanWrite(&_impl_);
1765 ::uint32_t cached_has_bits = 0;
1766 // Prevent compiler warnings about cached_has_bits being unused
1767 (void) cached_has_bits;
1768
1769 cached_has_bits = _impl_._has_bits_[0];
1770 if (BatchCheckHasBit(cached_has_bits, 0x00000007U)) {
1771 if (CheckHasBitForRepeated(cached_has_bits, 0x00000001U)) {
1772 _impl_.var_index_.Clear();
1773 }
1774 if (CheckHasBitForRepeated(cached_has_bits, 0x00000002U)) {
1775 _impl_.coefficient_.Clear();
1776 }
1777 if (CheckHasBit(cached_has_bits, 0x00000004U)) {
1778 _impl_.name_.ClearNonDefaultToEmpty();
1779 }
1780 }
1781 if (BatchCheckHasBit(cached_has_bits, 0x00000038U)) {
1782 _impl_.is_lazy_ = false;
1783 _impl_.lower_bound_ = -std::numeric_limits<double>::infinity();
1784 _impl_.upper_bound_ = std::numeric_limits<double>::infinity();
1785 }
1786 _impl_._has_bits_.Clear();
1787 _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>();
1788}
1789
1790#if defined(PROTOBUF_CUSTOM_VTABLE)
1791::uint8_t* PROTOBUF_NONNULL MPConstraintProto::_InternalSerialize(
1792 const ::google::protobuf::MessageLite& base, ::uint8_t* PROTOBUF_NONNULL target,
1793 ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) {
1794 const MPConstraintProto& this_ = static_cast<const MPConstraintProto&>(base);
1795#else // PROTOBUF_CUSTOM_VTABLE
1796::uint8_t* PROTOBUF_NONNULL MPConstraintProto::_InternalSerialize(
1797 ::uint8_t* PROTOBUF_NONNULL target,
1798 ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const {
1799 const MPConstraintProto& this_ = *this;
1800#endif // PROTOBUF_CUSTOM_VTABLE
1801 if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) {
1802 this_.CheckHasBitConsistency();
1803 }
1804 // @@protoc_insertion_point(serialize_to_array_start:operations_research.MPConstraintProto)
1805 ::uint32_t cached_has_bits = 0;
1806 (void)cached_has_bits;
1807
1808 cached_has_bits = this_._impl_._has_bits_[0];
1809 // optional double lower_bound = 2 [default = -inf];
1810 if (CheckHasBit(cached_has_bits, 0x00000010U)) {
1811 target = stream->EnsureSpace(target);
1812 target = ::_pbi::WireFormatLite::WriteDoubleToArray(
1813 2, this_._internal_lower_bound(), target);
1814 }
1815
1816 // optional double upper_bound = 3 [default = inf];
1817 if (CheckHasBit(cached_has_bits, 0x00000020U)) {
1818 target = stream->EnsureSpace(target);
1819 target = ::_pbi::WireFormatLite::WriteDoubleToArray(
1820 3, this_._internal_upper_bound(), target);
1821 }
1822
1823 // optional string name = 4 [default = ""];
1824 if (CheckHasBit(cached_has_bits, 0x00000004U)) {
1825 const ::std::string& _s = this_._internal_name();
1826 target = stream->WriteStringMaybeAliased(4, _s, target);
1827 }
1828
1829 // optional bool is_lazy = 5 [default = false];
1830 if (CheckHasBit(cached_has_bits, 0x00000008U)) {
1831 target = stream->EnsureSpace(target);
1832 target = ::_pbi::WireFormatLite::WriteBoolToArray(
1833 5, this_._internal_is_lazy(), target);
1834 }
1835
1836 // repeated int32 var_index = 6 [packed = true];
1837 if (CheckHasBitForRepeated(cached_has_bits, 0x00000001U)) {
1838 {
1839 int byte_size = this_._impl_._var_index_cached_byte_size_.Get();
1840 if (byte_size > 0) {
1841 target = stream->WriteInt32Packed(
1842 6, this_._internal_var_index(), byte_size, target);
1843 }
1844 }
1845 }
1846
1847 // repeated double coefficient = 7 [packed = true];
1848 if (CheckHasBitForRepeated(cached_has_bits, 0x00000002U)) {
1849 if (this_._internal_coefficient_size() > 0) {
1850 target = stream->WriteFixedPacked(7, this_._internal_coefficient(), target);
1851 }
1852 }
1853
1854 if (ABSL_PREDICT_FALSE(this_._internal_metadata_.have_unknown_fields())) {
1855 target =
1856 ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray(
1857 this_._internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream);
1858 }
1859 // @@protoc_insertion_point(serialize_to_array_end:operations_research.MPConstraintProto)
1860 return target;
1861}
1862
1863#if defined(PROTOBUF_CUSTOM_VTABLE)
1865 const MPConstraintProto& this_ = static_cast<const MPConstraintProto&>(base);
1866#else // PROTOBUF_CUSTOM_VTABLE
1867::size_t MPConstraintProto::ByteSizeLong() const {
1868 const MPConstraintProto& this_ = *this;
1869#endif // PROTOBUF_CUSTOM_VTABLE
1870 // @@protoc_insertion_point(message_byte_size_start:operations_research.MPConstraintProto)
1871 ::size_t total_size = 0;
1872
1873 ::uint32_t cached_has_bits = 0;
1874 // Prevent compiler warnings about cached_has_bits being unused
1875 (void)cached_has_bits;
1876
1877 ::_pbi::Prefetch5LinesFrom7Lines(&this_);
1878 cached_has_bits = this_._impl_._has_bits_[0];
1879 total_size += ::absl::popcount(0x00000030U & cached_has_bits) * 9;
1880 total_size += static_cast<bool>(0x00000008U & cached_has_bits) * 2;
1881 if (BatchCheckHasBit(cached_has_bits, 0x00000007U)) {
1882 // repeated int32 var_index = 6 [packed = true];
1883 if (CheckHasBitForRepeated(cached_has_bits, 0x00000001U)) {
1884 total_size +=
1885 ::_pbi::WireFormatLite::Int32SizeWithPackedTagSize(
1886 this_._internal_var_index(), 1,
1887 this_._impl_._var_index_cached_byte_size_);
1888 }
1889 // repeated double coefficient = 7 [packed = true];
1890 if (CheckHasBitForRepeated(cached_has_bits, 0x00000002U)) {
1891 ::size_t data_size = ::size_t{8} *
1892 ::_pbi::FromIntSize(this_._internal_coefficient_size());
1893 ::size_t tag_size = data_size == 0
1894 ? 0
1895 : 1 + ::_pbi::WireFormatLite::Int32Size(
1896 static_cast<::int32_t>(data_size));
1897 total_size += tag_size + data_size;
1898 }
1899 // optional string name = 4 [default = ""];
1900 if (CheckHasBit(cached_has_bits, 0x00000004U)) {
1901 total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize(
1902 this_._internal_name());
1903 }
1904 }
1905 return this_.MaybeComputeUnknownFieldsSize(total_size,
1906 &this_._impl_._cached_size_);
1907}
1908
1909void MPConstraintProto::MergeImpl(::google::protobuf::MessageLite& to_msg,
1910 const ::google::protobuf::MessageLite& from_msg) {
1911 auto* const _this =
1912 static_cast<MPConstraintProto*>(&to_msg);
1913 auto& from = static_cast<const MPConstraintProto&>(from_msg);
1914 if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) {
1915 from.CheckHasBitConsistency();
1916 }
1917 // @@protoc_insertion_point(class_specific_merge_from_start:operations_research.MPConstraintProto)
1918 ABSL_DCHECK_NE(&from, _this);
1919 ::uint32_t cached_has_bits = 0;
1920 (void)cached_has_bits;
1921
1922 cached_has_bits = from._impl_._has_bits_[0];
1923 if (BatchCheckHasBit(cached_has_bits, 0x0000003fU)) {
1924 if (CheckHasBitForRepeated(cached_has_bits, 0x00000001U)) {
1925 _this->_internal_mutable_var_index()->MergeFrom(from._internal_var_index());
1926 }
1927 if (CheckHasBitForRepeated(cached_has_bits, 0x00000002U)) {
1928 _this->_internal_mutable_coefficient()->MergeFrom(from._internal_coefficient());
1929 }
1930 if (CheckHasBit(cached_has_bits, 0x00000004U)) {
1931 _this->_internal_set_name(from._internal_name());
1932 }
1933 if (CheckHasBit(cached_has_bits, 0x00000008U)) {
1934 _this->_impl_.is_lazy_ = from._impl_.is_lazy_;
1935 }
1936 if (CheckHasBit(cached_has_bits, 0x00000010U)) {
1937 _this->_impl_.lower_bound_ = from._impl_.lower_bound_;
1938 }
1939 if (CheckHasBit(cached_has_bits, 0x00000020U)) {
1940 _this->_impl_.upper_bound_ = from._impl_.upper_bound_;
1941 }
1942 }
1943 _this->_impl_._has_bits_[0] |= cached_has_bits;
1944 _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(
1945 from._internal_metadata_);
1946}
1947
1949 // @@protoc_insertion_point(class_specific_copy_from_start:operations_research.MPConstraintProto)
1950 if (&from == this) return;
1951 Clear();
1952 MergeFrom(from);
1953}
1954
1955
1956void MPConstraintProto::InternalSwap(MPConstraintProto* PROTOBUF_RESTRICT PROTOBUF_NONNULL other) {
1957 using ::std::swap;
1958 auto* arena = GetArena();
1959 ABSL_DCHECK_EQ(arena, other->GetArena());
1960 _internal_metadata_.InternalSwap(&other->_internal_metadata_);
1961 swap(_impl_._has_bits_[0], other->_impl_._has_bits_[0]);
1962 _impl_.var_index_.InternalSwap(&other->_impl_.var_index_);
1963 _impl_.coefficient_.InternalSwap(&other->_impl_.coefficient_);
1964 ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.name_, &other->_impl_.name_, arena);
1965 ::google::protobuf::internal::memswap<
1966 PROTOBUF_FIELD_OFFSET(MPConstraintProto, _impl_.upper_bound_)
1967 + sizeof(MPConstraintProto::_impl_.upper_bound_)
1968 - PROTOBUF_FIELD_OFFSET(MPConstraintProto, _impl_.is_lazy_)>(
1969 reinterpret_cast<char*>(&_impl_.is_lazy_),
1970 reinterpret_cast<char*>(&other->_impl_.is_lazy_));
1971}
1972
1973::google::protobuf::Metadata MPConstraintProto::GetMetadata() const {
1974 return ::google::protobuf::Message::GetMetadataImpl(GetClassData()->full());
1976// ===================================================================
1977
1979 public:
1980 using HasBits =
1981 decltype(::std::declval<MPGeneralConstraintProto>()._impl_._has_bits_);
1982 static constexpr ::int32_t kHasBitsOffset =
1983 8 * PROTOBUF_FIELD_OFFSET(MPGeneralConstraintProto, _impl_._has_bits_);
1984 static constexpr ::int32_t kOneofCaseOffset =
1985 PROTOBUF_FIELD_OFFSET(::operations_research::MPGeneralConstraintProto, _impl_._oneof_case_);
1986};
1989 ::google::protobuf::Arena* message_arena = GetArena();
1992 ::google::protobuf::Arena* submessage_arena = indicator_constraint->GetArena();
1993 if (message_arena != submessage_arena) {
1994 indicator_constraint = ::google::protobuf::internal::GetOwnedMessage(message_arena, indicator_constraint, submessage_arena);
1995 }
1996 set_has_indicator_constraint();
1997 _impl_.general_constraint_.indicator_constraint_ = indicator_constraint;
1998 }
1999 // @@protoc_insertion_point(field_set_allocated:operations_research.MPGeneralConstraintProto.indicator_constraint)
2000}
2002 ::google::protobuf::Arena* message_arena = GetArena();
2003 clear_general_constraint();
2005 ::google::protobuf::Arena* submessage_arena = sos_constraint->GetArena();
2006 if (message_arena != submessage_arena) {
2007 sos_constraint = ::google::protobuf::internal::GetOwnedMessage(message_arena, sos_constraint, submessage_arena);
2008 }
2009 set_has_sos_constraint();
2010 _impl_.general_constraint_.sos_constraint_ = sos_constraint;
2011 }
2012 // @@protoc_insertion_point(field_set_allocated:operations_research.MPGeneralConstraintProto.sos_constraint)
2013}
2015 ::google::protobuf::Arena* message_arena = GetArena();
2016 clear_general_constraint();
2018 ::google::protobuf::Arena* submessage_arena = quadratic_constraint->GetArena();
2019 if (message_arena != submessage_arena) {
2020 quadratic_constraint = ::google::protobuf::internal::GetOwnedMessage(message_arena, quadratic_constraint, submessage_arena);
2021 }
2022 set_has_quadratic_constraint();
2023 _impl_.general_constraint_.quadratic_constraint_ = quadratic_constraint;
2024 }
2025 // @@protoc_insertion_point(field_set_allocated:operations_research.MPGeneralConstraintProto.quadratic_constraint)
2026}
2028 ::google::protobuf::Arena* message_arena = GetArena();
2029 clear_general_constraint();
2031 ::google::protobuf::Arena* submessage_arena = abs_constraint->GetArena();
2032 if (message_arena != submessage_arena) {
2033 abs_constraint = ::google::protobuf::internal::GetOwnedMessage(message_arena, abs_constraint, submessage_arena);
2034 }
2035 set_has_abs_constraint();
2036 _impl_.general_constraint_.abs_constraint_ = abs_constraint;
2037 }
2038 // @@protoc_insertion_point(field_set_allocated:operations_research.MPGeneralConstraintProto.abs_constraint)
2039}
2041 ::google::protobuf::Arena* message_arena = GetArena();
2042 clear_general_constraint();
2044 ::google::protobuf::Arena* submessage_arena = and_constraint->GetArena();
2045 if (message_arena != submessage_arena) {
2046 and_constraint = ::google::protobuf::internal::GetOwnedMessage(message_arena, and_constraint, submessage_arena);
2047 }
2048 set_has_and_constraint();
2049 _impl_.general_constraint_.and_constraint_ = and_constraint;
2050 }
2051 // @@protoc_insertion_point(field_set_allocated:operations_research.MPGeneralConstraintProto.and_constraint)
2052}
2054 ::google::protobuf::Arena* message_arena = GetArena();
2055 clear_general_constraint();
2057 ::google::protobuf::Arena* submessage_arena = or_constraint->GetArena();
2058 if (message_arena != submessage_arena) {
2059 or_constraint = ::google::protobuf::internal::GetOwnedMessage(message_arena, or_constraint, submessage_arena);
2060 }
2061 set_has_or_constraint();
2062 _impl_.general_constraint_.or_constraint_ = or_constraint;
2063 }
2064 // @@protoc_insertion_point(field_set_allocated:operations_research.MPGeneralConstraintProto.or_constraint)
2065}
2067 ::google::protobuf::Arena* message_arena = GetArena();
2068 clear_general_constraint();
2070 ::google::protobuf::Arena* submessage_arena = min_constraint->GetArena();
2071 if (message_arena != submessage_arena) {
2072 min_constraint = ::google::protobuf::internal::GetOwnedMessage(message_arena, min_constraint, submessage_arena);
2073 }
2074 set_has_min_constraint();
2075 _impl_.general_constraint_.min_constraint_ = min_constraint;
2076 }
2077 // @@protoc_insertion_point(field_set_allocated:operations_research.MPGeneralConstraintProto.min_constraint)
2078}
2080 ::google::protobuf::Arena* message_arena = GetArena();
2081 clear_general_constraint();
2083 ::google::protobuf::Arena* submessage_arena = max_constraint->GetArena();
2084 if (message_arena != submessage_arena) {
2085 max_constraint = ::google::protobuf::internal::GetOwnedMessage(message_arena, max_constraint, submessage_arena);
2086 }
2087 set_has_max_constraint();
2088 _impl_.general_constraint_.max_constraint_ = max_constraint;
2089 }
2090 // @@protoc_insertion_point(field_set_allocated:operations_research.MPGeneralConstraintProto.max_constraint)
2091}
2092MPGeneralConstraintProto::MPGeneralConstraintProto(::google::protobuf::Arena* PROTOBUF_NULLABLE arena)
2093#if defined(PROTOBUF_CUSTOM_VTABLE)
2094 : ::google::protobuf::Message(arena, MPGeneralConstraintProto_class_data_.base()) {
2095#else // PROTOBUF_CUSTOM_VTABLE
2096 : ::google::protobuf::Message(arena) {
2097#endif // PROTOBUF_CUSTOM_VTABLE
2098 SharedCtor(arena);
2099 // @@protoc_insertion_point(arena_constructor:operations_research.MPGeneralConstraintProto)
2100}
2101PROTOBUF_NDEBUG_INLINE MPGeneralConstraintProto::Impl_::Impl_(
2102 [[maybe_unused]] ::google::protobuf::internal::InternalVisibility visibility,
2103 [[maybe_unused]] ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const Impl_& from,
2104 [[maybe_unused]] const ::operations_research::MPGeneralConstraintProto& from_msg)
2105 : _has_bits_{from._has_bits_},
2106 _cached_size_{0},
2107 name_(arena, from.name_),
2108 general_constraint_{},
2109 _oneof_case_{from._oneof_case_[0]} {}
2110
2112 ::google::protobuf::Arena* PROTOBUF_NULLABLE arena,
2113 const MPGeneralConstraintProto& from)
2114#if defined(PROTOBUF_CUSTOM_VTABLE)
2115 : ::google::protobuf::Message(arena, MPGeneralConstraintProto_class_data_.base()) {
2116#else // PROTOBUF_CUSTOM_VTABLE
2117 : ::google::protobuf::Message(arena) {
2118#endif // PROTOBUF_CUSTOM_VTABLE
2119 MPGeneralConstraintProto* const _this = this;
2120 (void)_this;
2121 _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(
2122 from._internal_metadata_);
2123 new (&_impl_) Impl_(internal_visibility(), arena, from._impl_, from);
2124 switch (general_constraint_case()) {
2125 case GENERAL_CONSTRAINT_NOT_SET:
2126 break;
2128 _impl_.general_constraint_.indicator_constraint_ = ::google::protobuf::Message::CopyConstruct(arena, *from._impl_.general_constraint_.indicator_constraint_);
2129 break;
2130 case kSosConstraint:
2131 _impl_.general_constraint_.sos_constraint_ = ::google::protobuf::Message::CopyConstruct(arena, *from._impl_.general_constraint_.sos_constraint_);
2132 break;
2134 _impl_.general_constraint_.quadratic_constraint_ = ::google::protobuf::Message::CopyConstruct(arena, *from._impl_.general_constraint_.quadratic_constraint_);
2135 break;
2136 case kAbsConstraint:
2137 _impl_.general_constraint_.abs_constraint_ = ::google::protobuf::Message::CopyConstruct(arena, *from._impl_.general_constraint_.abs_constraint_);
2138 break;
2139 case kAndConstraint:
2140 _impl_.general_constraint_.and_constraint_ = ::google::protobuf::Message::CopyConstruct(arena, *from._impl_.general_constraint_.and_constraint_);
2141 break;
2142 case kOrConstraint:
2143 _impl_.general_constraint_.or_constraint_ = ::google::protobuf::Message::CopyConstruct(arena, *from._impl_.general_constraint_.or_constraint_);
2144 break;
2145 case kMinConstraint:
2146 _impl_.general_constraint_.min_constraint_ = ::google::protobuf::Message::CopyConstruct(arena, *from._impl_.general_constraint_.min_constraint_);
2147 break;
2148 case kMaxConstraint:
2149 _impl_.general_constraint_.max_constraint_ = ::google::protobuf::Message::CopyConstruct(arena, *from._impl_.general_constraint_.max_constraint_);
2150 break;
2151 }
2152
2153 // @@protoc_insertion_point(copy_constructor:operations_research.MPGeneralConstraintProto)
2154}
2155PROTOBUF_NDEBUG_INLINE MPGeneralConstraintProto::Impl_::Impl_(
2156 [[maybe_unused]] ::google::protobuf::internal::InternalVisibility visibility,
2157 [[maybe_unused]] ::google::protobuf::Arena* PROTOBUF_NULLABLE arena)
2158 : _cached_size_{0},
2159 name_(arena),
2160 general_constraint_{},
2161 _oneof_case_{} {}
2162
2163inline void MPGeneralConstraintProto::SharedCtor(::_pb::Arena* PROTOBUF_NULLABLE arena) {
2164 new (&_impl_) Impl_(internal_visibility(), arena);
2165}
2167 // @@protoc_insertion_point(destructor:operations_research.MPGeneralConstraintProto)
2168 SharedDtor(*this);
2170inline void MPGeneralConstraintProto::SharedDtor(MessageLite& self) {
2171 MPGeneralConstraintProto& this_ = static_cast<MPGeneralConstraintProto&>(self);
2172 if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) {
2173 this_.CheckHasBitConsistency();
2174 }
2175 this_._internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>();
2176 ABSL_DCHECK(this_.GetArena() == nullptr);
2177 this_._impl_.name_.Destroy();
2178 if (this_.has_general_constraint()) {
2180 }
2181 this_._impl_.~Impl_();
2182}
2183
2185// @@protoc_insertion_point(one_of_clear_start:operations_research.MPGeneralConstraintProto)
2186 ::google::protobuf::internal::TSanWrite(&_impl_);
2188 case kIndicatorConstraint: {
2189 if (GetArena() == nullptr) {
2190 delete _impl_.general_constraint_.indicator_constraint_;
2191 } else if (::google::protobuf::internal::DebugHardenClearOneofMessageOnArena()) {
2192 ::google::protobuf::internal::MaybePoisonAfterClear(_impl_.general_constraint_.indicator_constraint_);
2193 }
2194 break;
2195 }
2196 case kSosConstraint: {
2197 if (GetArena() == nullptr) {
2198 delete _impl_.general_constraint_.sos_constraint_;
2199 } else if (::google::protobuf::internal::DebugHardenClearOneofMessageOnArena()) {
2200 ::google::protobuf::internal::MaybePoisonAfterClear(_impl_.general_constraint_.sos_constraint_);
2201 }
2202 break;
2203 }
2204 case kQuadraticConstraint: {
2205 if (GetArena() == nullptr) {
2206 delete _impl_.general_constraint_.quadratic_constraint_;
2207 } else if (::google::protobuf::internal::DebugHardenClearOneofMessageOnArena()) {
2208 ::google::protobuf::internal::MaybePoisonAfterClear(_impl_.general_constraint_.quadratic_constraint_);
2209 }
2210 break;
2211 }
2212 case kAbsConstraint: {
2213 if (GetArena() == nullptr) {
2214 delete _impl_.general_constraint_.abs_constraint_;
2215 } else if (::google::protobuf::internal::DebugHardenClearOneofMessageOnArena()) {
2216 ::google::protobuf::internal::MaybePoisonAfterClear(_impl_.general_constraint_.abs_constraint_);
2217 }
2218 break;
2219 }
2220 case kAndConstraint: {
2221 if (GetArena() == nullptr) {
2222 delete _impl_.general_constraint_.and_constraint_;
2223 } else if (::google::protobuf::internal::DebugHardenClearOneofMessageOnArena()) {
2224 ::google::protobuf::internal::MaybePoisonAfterClear(_impl_.general_constraint_.and_constraint_);
2225 }
2226 break;
2227 }
2228 case kOrConstraint: {
2229 if (GetArena() == nullptr) {
2230 delete _impl_.general_constraint_.or_constraint_;
2231 } else if (::google::protobuf::internal::DebugHardenClearOneofMessageOnArena()) {
2232 ::google::protobuf::internal::MaybePoisonAfterClear(_impl_.general_constraint_.or_constraint_);
2233 }
2234 break;
2235 }
2236 case kMinConstraint: {
2237 if (GetArena() == nullptr) {
2238 delete _impl_.general_constraint_.min_constraint_;
2239 } else if (::google::protobuf::internal::DebugHardenClearOneofMessageOnArena()) {
2240 ::google::protobuf::internal::MaybePoisonAfterClear(_impl_.general_constraint_.min_constraint_);
2241 }
2242 break;
2243 }
2244 case kMaxConstraint: {
2245 if (GetArena() == nullptr) {
2246 delete _impl_.general_constraint_.max_constraint_;
2247 } else if (::google::protobuf::internal::DebugHardenClearOneofMessageOnArena()) {
2248 ::google::protobuf::internal::MaybePoisonAfterClear(_impl_.general_constraint_.max_constraint_);
2249 }
2250 break;
2251 }
2253 break;
2254 }
2255 }
2256 _impl_._oneof_case_[0] = GENERAL_CONSTRAINT_NOT_SET;
2257}
2258
2259
2260inline void* PROTOBUF_NONNULL MPGeneralConstraintProto::PlacementNew_(
2261 const void* PROTOBUF_NONNULL, void* PROTOBUF_NONNULL mem,
2262 ::google::protobuf::Arena* PROTOBUF_NULLABLE arena) {
2263 return ::new (mem) MPGeneralConstraintProto(arena);
2264}
2265constexpr auto MPGeneralConstraintProto::InternalNewImpl_() {
2266 return ::google::protobuf::internal::MessageCreator::CopyInit(sizeof(MPGeneralConstraintProto),
2267 alignof(MPGeneralConstraintProto));
2268}
2270 return ::google::protobuf::internal::ClassDataFull{
2271 ::google::protobuf::internal::ClassData{
2273 &_table_.header,
2274 nullptr, // OnDemandRegisterArenaDtor
2275 nullptr, // IsInitialized
2276 &MPGeneralConstraintProto::MergeImpl,
2277 ::google::protobuf::Message::GetNewImpl<MPGeneralConstraintProto>(),
2278#if defined(PROTOBUF_CUSTOM_VTABLE)
2279 &MPGeneralConstraintProto::SharedDtor,
2280 ::google::protobuf::Message::GetClearImpl<MPGeneralConstraintProto>(), &MPGeneralConstraintProto::ByteSizeLong,
2282#endif // PROTOBUF_CUSTOM_VTABLE
2283 PROTOBUF_FIELD_OFFSET(MPGeneralConstraintProto, _impl_._cached_size_),
2284 false,
2285 },
2286 &MPGeneralConstraintProto::kDescriptorMethods,
2288 nullptr, // tracker
2289 };
2290}
2291
2292PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 const
2293 ::google::protobuf::internal::ClassDataFull MPGeneralConstraintProto_class_data_ =
2295
2296PROTOBUF_ATTRIBUTE_WEAK const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL
2297MPGeneralConstraintProto::GetClassData() const {
2298 ::google::protobuf::internal::PrefetchToLocalCache(&MPGeneralConstraintProto_class_data_);
2299 ::google::protobuf::internal::PrefetchToLocalCache(MPGeneralConstraintProto_class_data_.tc_table);
2301}
2302PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1
2303const ::_pbi::TcParseTable<0, 9, 8, 0, 2>
2304MPGeneralConstraintProto::_table_ = {
2305 {
2306 PROTOBUF_FIELD_OFFSET(MPGeneralConstraintProto, _impl_._has_bits_),
2307 0, // no _extensions_
2308 9, 0, // max_field_number, fast_idx_mask
2309 offsetof(decltype(_table_), field_lookup_table),
2310 4294966784, // skipmap
2311 offsetof(decltype(_table_), field_entries),
2312 9, // num_field_entries
2313 8, // num_aux_entries
2314 offsetof(decltype(_table_), aux_entries),
2316 nullptr, // post_loop_handler
2317 ::_pbi::TcParser::GenericFallback, // fallback
2318 #ifdef PROTOBUF_PREFETCH_PARSE_TABLE
2319 ::_pbi::TcParser::GetTable<::operations_research::MPGeneralConstraintProto>(), // to_prefetch
2320 #endif // PROTOBUF_PREFETCH_PARSE_TABLE
2321 }, {{
2322 // optional string name = 1 [default = ""];
2323 {::_pbi::TcParser::FastBS1,
2324 {10, 0, 0,
2325 PROTOBUF_FIELD_OFFSET(MPGeneralConstraintProto, _impl_.name_)}},
2326 }}, {{
2327 65535, 65535
2328 }}, {{
2329 // optional string name = 1 [default = ""];
2330 {PROTOBUF_FIELD_OFFSET(MPGeneralConstraintProto, _impl_.name_), _Internal::kHasBitsOffset + 0, 0, (0 | ::_fl::kFcOptional | ::_fl::kBytes | ::_fl::kRepAString)},
2331 // .operations_research.MPIndicatorConstraint indicator_constraint = 2;
2332 {PROTOBUF_FIELD_OFFSET(MPGeneralConstraintProto, _impl_.general_constraint_.indicator_constraint_), _Internal::kOneofCaseOffset + 0, 0, (0 | ::_fl::kFcOneof | ::_fl::kMessage | ::_fl::kTvTable)},
2333 // .operations_research.MPSosConstraint sos_constraint = 3;
2334 {PROTOBUF_FIELD_OFFSET(MPGeneralConstraintProto, _impl_.general_constraint_.sos_constraint_), _Internal::kOneofCaseOffset + 0, 1, (0 | ::_fl::kFcOneof | ::_fl::kMessage | ::_fl::kTvTable)},
2335 // .operations_research.MPQuadraticConstraint quadratic_constraint = 4;
2336 {PROTOBUF_FIELD_OFFSET(MPGeneralConstraintProto, _impl_.general_constraint_.quadratic_constraint_), _Internal::kOneofCaseOffset + 0, 2, (0 | ::_fl::kFcOneof | ::_fl::kMessage | ::_fl::kTvTable)},
2337 // .operations_research.MPAbsConstraint abs_constraint = 5;
2338 {PROTOBUF_FIELD_OFFSET(MPGeneralConstraintProto, _impl_.general_constraint_.abs_constraint_), _Internal::kOneofCaseOffset + 0, 3, (0 | ::_fl::kFcOneof | ::_fl::kMessage | ::_fl::kTvTable)},
2339 // .operations_research.MPArrayConstraint and_constraint = 6;
2340 {PROTOBUF_FIELD_OFFSET(MPGeneralConstraintProto, _impl_.general_constraint_.and_constraint_), _Internal::kOneofCaseOffset + 0, 4, (0 | ::_fl::kFcOneof | ::_fl::kMessage | ::_fl::kTvTable)},
2341 // .operations_research.MPArrayConstraint or_constraint = 7;
2342 {PROTOBUF_FIELD_OFFSET(MPGeneralConstraintProto, _impl_.general_constraint_.or_constraint_), _Internal::kOneofCaseOffset + 0, 5, (0 | ::_fl::kFcOneof | ::_fl::kMessage | ::_fl::kTvTable)},
2343 // .operations_research.MPArrayWithConstantConstraint min_constraint = 8;
2344 {PROTOBUF_FIELD_OFFSET(MPGeneralConstraintProto, _impl_.general_constraint_.min_constraint_), _Internal::kOneofCaseOffset + 0, 6, (0 | ::_fl::kFcOneof | ::_fl::kMessage | ::_fl::kTvTable)},
2345 // .operations_research.MPArrayWithConstantConstraint max_constraint = 9;
2346 {PROTOBUF_FIELD_OFFSET(MPGeneralConstraintProto, _impl_.general_constraint_.max_constraint_), _Internal::kOneofCaseOffset + 0, 7, (0 | ::_fl::kFcOneof | ::_fl::kMessage | ::_fl::kTvTable)},
2347 }},
2348 {{
2349 {::_pbi::TcParser::GetTable<::operations_research::MPIndicatorConstraint>()},
2350 {::_pbi::TcParser::GetTable<::operations_research::MPSosConstraint>()},
2351 {::_pbi::TcParser::GetTable<::operations_research::MPQuadraticConstraint>()},
2352 {::_pbi::TcParser::GetTable<::operations_research::MPAbsConstraint>()},
2353 {::_pbi::TcParser::GetTable<::operations_research::MPArrayConstraint>()},
2354 {::_pbi::TcParser::GetTable<::operations_research::MPArrayConstraint>()},
2355 {::_pbi::TcParser::GetTable<::operations_research::MPArrayWithConstantConstraint>()},
2356 {::_pbi::TcParser::GetTable<::operations_research::MPArrayWithConstantConstraint>()},
2357 }},
2358 {{
2359 }},
2360};
2361PROTOBUF_NOINLINE void MPGeneralConstraintProto::Clear() {
2362// @@protoc_insertion_point(message_clear_start:operations_research.MPGeneralConstraintProto)
2363 ::google::protobuf::internal::TSanWrite(&_impl_);
2364 ::uint32_t cached_has_bits = 0;
2365 // Prevent compiler warnings about cached_has_bits being unused
2366 (void) cached_has_bits;
2367
2368 cached_has_bits = _impl_._has_bits_[0];
2369 if (CheckHasBit(cached_has_bits, 0x00000001U)) {
2370 _impl_.name_.ClearNonDefaultToEmpty();
2371 }
2373 _impl_._has_bits_.Clear();
2374 _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>();
2375}
2376
2377#if defined(PROTOBUF_CUSTOM_VTABLE)
2378::uint8_t* PROTOBUF_NONNULL MPGeneralConstraintProto::_InternalSerialize(
2379 const ::google::protobuf::MessageLite& base, ::uint8_t* PROTOBUF_NONNULL target,
2380 ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) {
2381 const MPGeneralConstraintProto& this_ = static_cast<const MPGeneralConstraintProto&>(base);
2382#else // PROTOBUF_CUSTOM_VTABLE
2383::uint8_t* PROTOBUF_NONNULL MPGeneralConstraintProto::_InternalSerialize(
2384 ::uint8_t* PROTOBUF_NONNULL target,
2385 ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const {
2386 const MPGeneralConstraintProto& this_ = *this;
2387#endif // PROTOBUF_CUSTOM_VTABLE
2388 if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) {
2389 this_.CheckHasBitConsistency();
2390 }
2391 // @@protoc_insertion_point(serialize_to_array_start:operations_research.MPGeneralConstraintProto)
2392 ::uint32_t cached_has_bits = 0;
2393 (void)cached_has_bits;
2394
2395 cached_has_bits = this_._impl_._has_bits_[0];
2396 // optional string name = 1 [default = ""];
2397 if (CheckHasBit(cached_has_bits, 0x00000001U)) {
2398 const ::std::string& _s = this_._internal_name();
2399 target = stream->WriteStringMaybeAliased(1, _s, target);
2400 }
2401
2402 switch (this_.general_constraint_case()) {
2403 case kIndicatorConstraint: {
2404 target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage(
2405 2, *this_._impl_.general_constraint_.indicator_constraint_, this_._impl_.general_constraint_.indicator_constraint_->GetCachedSize(), target,
2406 stream);
2407 break;
2408 }
2409 case kSosConstraint: {
2410 target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage(
2411 3, *this_._impl_.general_constraint_.sos_constraint_, this_._impl_.general_constraint_.sos_constraint_->GetCachedSize(), target,
2412 stream);
2413 break;
2414 }
2415 case kQuadraticConstraint: {
2416 target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage(
2417 4, *this_._impl_.general_constraint_.quadratic_constraint_, this_._impl_.general_constraint_.quadratic_constraint_->GetCachedSize(), target,
2418 stream);
2419 break;
2420 }
2421 case kAbsConstraint: {
2422 target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage(
2423 5, *this_._impl_.general_constraint_.abs_constraint_, this_._impl_.general_constraint_.abs_constraint_->GetCachedSize(), target,
2424 stream);
2425 break;
2426 }
2427 case kAndConstraint: {
2428 target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage(
2429 6, *this_._impl_.general_constraint_.and_constraint_, this_._impl_.general_constraint_.and_constraint_->GetCachedSize(), target,
2430 stream);
2431 break;
2432 }
2433 case kOrConstraint: {
2434 target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage(
2435 7, *this_._impl_.general_constraint_.or_constraint_, this_._impl_.general_constraint_.or_constraint_->GetCachedSize(), target,
2436 stream);
2437 break;
2438 }
2439 case kMinConstraint: {
2440 target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage(
2441 8, *this_._impl_.general_constraint_.min_constraint_, this_._impl_.general_constraint_.min_constraint_->GetCachedSize(), target,
2442 stream);
2443 break;
2444 }
2445 case kMaxConstraint: {
2446 target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage(
2447 9, *this_._impl_.general_constraint_.max_constraint_, this_._impl_.general_constraint_.max_constraint_->GetCachedSize(), target,
2448 stream);
2449 break;
2450 }
2451 default:
2452 break;
2453 }
2454 if (ABSL_PREDICT_FALSE(this_._internal_metadata_.have_unknown_fields())) {
2455 target =
2456 ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray(
2457 this_._internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream);
2458 }
2459 // @@protoc_insertion_point(serialize_to_array_end:operations_research.MPGeneralConstraintProto)
2460 return target;
2461}
2462
2463#if defined(PROTOBUF_CUSTOM_VTABLE)
2465 const MPGeneralConstraintProto& this_ = static_cast<const MPGeneralConstraintProto&>(base);
2466#else // PROTOBUF_CUSTOM_VTABLE
2468 const MPGeneralConstraintProto& this_ = *this;
2469#endif // PROTOBUF_CUSTOM_VTABLE
2470 // @@protoc_insertion_point(message_byte_size_start:operations_research.MPGeneralConstraintProto)
2471 ::size_t total_size = 0;
2472
2473 ::uint32_t cached_has_bits = 0;
2474 // Prevent compiler warnings about cached_has_bits being unused
2475 (void)cached_has_bits;
2476
2477 {
2478 // optional string name = 1 [default = ""];
2479 cached_has_bits = this_._impl_._has_bits_[0];
2480 if (CheckHasBit(cached_has_bits, 0x00000001U)) {
2481 total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize(
2482 this_._internal_name());
2483 }
2484 }
2485 switch (this_.general_constraint_case()) {
2486 // .operations_research.MPIndicatorConstraint indicator_constraint = 2;
2487 case kIndicatorConstraint: {
2488 total_size += 1 +
2489 ::google::protobuf::internal::WireFormatLite::MessageSize(*this_._impl_.general_constraint_.indicator_constraint_);
2490 break;
2491 }
2492 // .operations_research.MPSosConstraint sos_constraint = 3;
2493 case kSosConstraint: {
2494 total_size += 1 +
2495 ::google::protobuf::internal::WireFormatLite::MessageSize(*this_._impl_.general_constraint_.sos_constraint_);
2496 break;
2497 }
2498 // .operations_research.MPQuadraticConstraint quadratic_constraint = 4;
2499 case kQuadraticConstraint: {
2500 total_size += 1 +
2501 ::google::protobuf::internal::WireFormatLite::MessageSize(*this_._impl_.general_constraint_.quadratic_constraint_);
2502 break;
2503 }
2504 // .operations_research.MPAbsConstraint abs_constraint = 5;
2505 case kAbsConstraint: {
2506 total_size += 1 +
2507 ::google::protobuf::internal::WireFormatLite::MessageSize(*this_._impl_.general_constraint_.abs_constraint_);
2508 break;
2509 }
2510 // .operations_research.MPArrayConstraint and_constraint = 6;
2511 case kAndConstraint: {
2512 total_size += 1 +
2513 ::google::protobuf::internal::WireFormatLite::MessageSize(*this_._impl_.general_constraint_.and_constraint_);
2514 break;
2515 }
2516 // .operations_research.MPArrayConstraint or_constraint = 7;
2517 case kOrConstraint: {
2518 total_size += 1 +
2519 ::google::protobuf::internal::WireFormatLite::MessageSize(*this_._impl_.general_constraint_.or_constraint_);
2520 break;
2521 }
2522 // .operations_research.MPArrayWithConstantConstraint min_constraint = 8;
2523 case kMinConstraint: {
2524 total_size += 1 +
2525 ::google::protobuf::internal::WireFormatLite::MessageSize(*this_._impl_.general_constraint_.min_constraint_);
2526 break;
2527 }
2528 // .operations_research.MPArrayWithConstantConstraint max_constraint = 9;
2529 case kMaxConstraint: {
2530 total_size += 1 +
2531 ::google::protobuf::internal::WireFormatLite::MessageSize(*this_._impl_.general_constraint_.max_constraint_);
2532 break;
2533 }
2535 break;
2536 }
2537 }
2538 return this_.MaybeComputeUnknownFieldsSize(total_size,
2539 &this_._impl_._cached_size_);
2540}
2541
2542void MPGeneralConstraintProto::MergeImpl(::google::protobuf::MessageLite& to_msg,
2543 const ::google::protobuf::MessageLite& from_msg) {
2544 auto* const _this =
2545 static_cast<MPGeneralConstraintProto*>(&to_msg);
2546 auto& from = static_cast<const MPGeneralConstraintProto&>(from_msg);
2547 if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) {
2548 from.CheckHasBitConsistency();
2549 }
2550 ::google::protobuf::Arena* arena = _this->GetArena();
2551 // @@protoc_insertion_point(class_specific_merge_from_start:operations_research.MPGeneralConstraintProto)
2552 ABSL_DCHECK_NE(&from, _this);
2553 ::uint32_t cached_has_bits = 0;
2554 (void)cached_has_bits;
2555
2556 cached_has_bits = from._impl_._has_bits_[0];
2557 if (CheckHasBit(cached_has_bits, 0x00000001U)) {
2558 _this->_internal_set_name(from._internal_name());
2559 }
2560 _this->_impl_._has_bits_[0] |= cached_has_bits;
2561 if (const uint32_t oneof_from_case =
2562 from._impl_._oneof_case_[0]) {
2563 const uint32_t oneof_to_case = _this->_impl_._oneof_case_[0];
2564 const bool oneof_needs_init = oneof_to_case != oneof_from_case;
2565 if (oneof_needs_init) {
2566 if (oneof_to_case != 0) {
2567 _this->clear_general_constraint();
2568 }
2569 _this->_impl_._oneof_case_[0] = oneof_from_case;
2570 }
2571
2572 switch (oneof_from_case) {
2573 case kIndicatorConstraint: {
2574 if (oneof_needs_init) {
2575 _this->_impl_.general_constraint_.indicator_constraint_ = ::google::protobuf::Message::CopyConstruct(arena, *from._impl_.general_constraint_.indicator_constraint_);
2576 } else {
2577 _this->_impl_.general_constraint_.indicator_constraint_->MergeFrom(*from._impl_.general_constraint_.indicator_constraint_);
2578 }
2579 break;
2580 }
2581 case kSosConstraint: {
2582 if (oneof_needs_init) {
2583 _this->_impl_.general_constraint_.sos_constraint_ = ::google::protobuf::Message::CopyConstruct(arena, *from._impl_.general_constraint_.sos_constraint_);
2584 } else {
2585 _this->_impl_.general_constraint_.sos_constraint_->MergeFrom(*from._impl_.general_constraint_.sos_constraint_);
2586 }
2587 break;
2588 }
2589 case kQuadraticConstraint: {
2590 if (oneof_needs_init) {
2591 _this->_impl_.general_constraint_.quadratic_constraint_ = ::google::protobuf::Message::CopyConstruct(arena, *from._impl_.general_constraint_.quadratic_constraint_);
2592 } else {
2593 _this->_impl_.general_constraint_.quadratic_constraint_->MergeFrom(*from._impl_.general_constraint_.quadratic_constraint_);
2594 }
2595 break;
2596 }
2597 case kAbsConstraint: {
2598 if (oneof_needs_init) {
2599 _this->_impl_.general_constraint_.abs_constraint_ = ::google::protobuf::Message::CopyConstruct(arena, *from._impl_.general_constraint_.abs_constraint_);
2600 } else {
2601 _this->_impl_.general_constraint_.abs_constraint_->MergeFrom(*from._impl_.general_constraint_.abs_constraint_);
2602 }
2603 break;
2604 }
2605 case kAndConstraint: {
2606 if (oneof_needs_init) {
2607 _this->_impl_.general_constraint_.and_constraint_ = ::google::protobuf::Message::CopyConstruct(arena, *from._impl_.general_constraint_.and_constraint_);
2608 } else {
2609 _this->_impl_.general_constraint_.and_constraint_->MergeFrom(*from._impl_.general_constraint_.and_constraint_);
2610 }
2611 break;
2612 }
2613 case kOrConstraint: {
2614 if (oneof_needs_init) {
2615 _this->_impl_.general_constraint_.or_constraint_ = ::google::protobuf::Message::CopyConstruct(arena, *from._impl_.general_constraint_.or_constraint_);
2616 } else {
2617 _this->_impl_.general_constraint_.or_constraint_->MergeFrom(*from._impl_.general_constraint_.or_constraint_);
2618 }
2619 break;
2620 }
2621 case kMinConstraint: {
2622 if (oneof_needs_init) {
2623 _this->_impl_.general_constraint_.min_constraint_ = ::google::protobuf::Message::CopyConstruct(arena, *from._impl_.general_constraint_.min_constraint_);
2624 } else {
2625 _this->_impl_.general_constraint_.min_constraint_->MergeFrom(*from._impl_.general_constraint_.min_constraint_);
2626 }
2627 break;
2628 }
2629 case kMaxConstraint: {
2630 if (oneof_needs_init) {
2631 _this->_impl_.general_constraint_.max_constraint_ = ::google::protobuf::Message::CopyConstruct(arena, *from._impl_.general_constraint_.max_constraint_);
2632 } else {
2633 _this->_impl_.general_constraint_.max_constraint_->MergeFrom(*from._impl_.general_constraint_.max_constraint_);
2634 }
2635 break;
2636 }
2638 break;
2639 }
2640 }
2641 _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(
2642 from._internal_metadata_);
2643}
2644
2646 // @@protoc_insertion_point(class_specific_copy_from_start:operations_research.MPGeneralConstraintProto)
2647 if (&from == this) return;
2649 MergeFrom(from);
2650}
2651
2652
2653void MPGeneralConstraintProto::InternalSwap(MPGeneralConstraintProto* PROTOBUF_RESTRICT PROTOBUF_NONNULL other) {
2654 using ::std::swap;
2655 auto* arena = GetArena();
2656 ABSL_DCHECK_EQ(arena, other->GetArena());
2657 _internal_metadata_.InternalSwap(&other->_internal_metadata_);
2658 swap(_impl_._has_bits_[0], other->_impl_._has_bits_[0]);
2659 ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.name_, &other->_impl_.name_, arena);
2660 swap(_impl_.general_constraint_, other->_impl_.general_constraint_);
2661 swap(_impl_._oneof_case_[0], other->_impl_._oneof_case_[0]);
2662}
2663
2664::google::protobuf::Metadata MPGeneralConstraintProto::GetMetadata() const {
2665 return ::google::protobuf::Message::GetMetadataImpl(GetClassData()->full());
2666}
2667// ===================================================================
2668
2670 public:
2671 using HasBits =
2672 decltype(::std::declval<MPIndicatorConstraint>()._impl_._has_bits_);
2673 static constexpr ::int32_t kHasBitsOffset =
2674 8 * PROTOBUF_FIELD_OFFSET(MPIndicatorConstraint, _impl_._has_bits_);
2676
2677MPIndicatorConstraint::MPIndicatorConstraint(::google::protobuf::Arena* PROTOBUF_NULLABLE arena)
2678#if defined(PROTOBUF_CUSTOM_VTABLE)
2679 : ::google::protobuf::Message(arena, MPIndicatorConstraint_class_data_.base()) {
2680#else // PROTOBUF_CUSTOM_VTABLE
2681 : ::google::protobuf::Message(arena) {
2682#endif // PROTOBUF_CUSTOM_VTABLE
2683 SharedCtor(arena);
2684 // @@protoc_insertion_point(arena_constructor:operations_research.MPIndicatorConstraint)
2685}
2686PROTOBUF_NDEBUG_INLINE MPIndicatorConstraint::Impl_::Impl_(
2687 [[maybe_unused]] ::google::protobuf::internal::InternalVisibility visibility,
2688 [[maybe_unused]] ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const Impl_& from,
2689 [[maybe_unused]] const ::operations_research::MPIndicatorConstraint& from_msg)
2690 : _has_bits_{from._has_bits_},
2691 _cached_size_{0} {}
2692
2694 ::google::protobuf::Arena* PROTOBUF_NULLABLE arena,
2695 const MPIndicatorConstraint& from)
2696#if defined(PROTOBUF_CUSTOM_VTABLE)
2697 : ::google::protobuf::Message(arena, MPIndicatorConstraint_class_data_.base()) {
2698#else // PROTOBUF_CUSTOM_VTABLE
2699 : ::google::protobuf::Message(arena) {
2700#endif // PROTOBUF_CUSTOM_VTABLE
2701 MPIndicatorConstraint* const _this = this;
2702 (void)_this;
2703 _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(
2704 from._internal_metadata_);
2705 new (&_impl_) Impl_(internal_visibility(), arena, from._impl_, from);
2706 ::uint32_t cached_has_bits = _impl_._has_bits_[0];
2707 _impl_.constraint_ = (CheckHasBit(cached_has_bits, 0x00000001U))
2708 ? ::google::protobuf::Message::CopyConstruct(arena, *from._impl_.constraint_)
2709 : nullptr;
2710 ::memcpy(reinterpret_cast<char*>(&_impl_) +
2711 offsetof(Impl_, var_index_),
2712 reinterpret_cast<const char*>(&from._impl_) +
2713 offsetof(Impl_, var_index_),
2714 offsetof(Impl_, var_value_) -
2715 offsetof(Impl_, var_index_) +
2716 sizeof(Impl_::var_value_));
2717
2718 // @@protoc_insertion_point(copy_constructor:operations_research.MPIndicatorConstraint)
2719}
2720PROTOBUF_NDEBUG_INLINE MPIndicatorConstraint::Impl_::Impl_(
2721 [[maybe_unused]] ::google::protobuf::internal::InternalVisibility visibility,
2722 [[maybe_unused]] ::google::protobuf::Arena* PROTOBUF_NULLABLE arena)
2723 : _cached_size_{0} {}
2724
2725inline void MPIndicatorConstraint::SharedCtor(::_pb::Arena* PROTOBUF_NULLABLE arena) {
2726 new (&_impl_) Impl_(internal_visibility(), arena);
2727 ::memset(reinterpret_cast<char*>(&_impl_) +
2728 offsetof(Impl_, constraint_),
2729 0,
2730 offsetof(Impl_, var_value_) -
2731 offsetof(Impl_, constraint_) +
2732 sizeof(Impl_::var_value_));
2733}
2735 // @@protoc_insertion_point(destructor:operations_research.MPIndicatorConstraint)
2736 SharedDtor(*this);
2737}
2738inline void MPIndicatorConstraint::SharedDtor(MessageLite& self) {
2739 MPIndicatorConstraint& this_ = static_cast<MPIndicatorConstraint&>(self);
2740 if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) {
2741 this_.CheckHasBitConsistency();
2742 }
2743 this_._internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>();
2744 ABSL_DCHECK(this_.GetArena() == nullptr);
2745 delete this_._impl_.constraint_;
2746 this_._impl_.~Impl_();
2747}
2748
2749inline void* PROTOBUF_NONNULL MPIndicatorConstraint::PlacementNew_(
2750 const void* PROTOBUF_NONNULL, void* PROTOBUF_NONNULL mem,
2751 ::google::protobuf::Arena* PROTOBUF_NULLABLE arena) {
2752 return ::new (mem) MPIndicatorConstraint(arena);
2753}
2754constexpr auto MPIndicatorConstraint::InternalNewImpl_() {
2755 return ::google::protobuf::internal::MessageCreator::ZeroInit(sizeof(MPIndicatorConstraint),
2756 alignof(MPIndicatorConstraint));
2757}
2759 return ::google::protobuf::internal::ClassDataFull{
2760 ::google::protobuf::internal::ClassData{
2762 &_table_.header,
2763 nullptr, // OnDemandRegisterArenaDtor
2764 nullptr, // IsInitialized
2765 &MPIndicatorConstraint::MergeImpl,
2766 ::google::protobuf::Message::GetNewImpl<MPIndicatorConstraint>(),
2767#if defined(PROTOBUF_CUSTOM_VTABLE)
2768 &MPIndicatorConstraint::SharedDtor,
2769 ::google::protobuf::Message::GetClearImpl<MPIndicatorConstraint>(), &MPIndicatorConstraint::ByteSizeLong,
2771#endif // PROTOBUF_CUSTOM_VTABLE
2772 PROTOBUF_FIELD_OFFSET(MPIndicatorConstraint, _impl_._cached_size_),
2773 false,
2774 },
2775 &MPIndicatorConstraint::kDescriptorMethods,
2777 nullptr, // tracker
2778 };
2779}
2780
2781PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 const
2782 ::google::protobuf::internal::ClassDataFull MPIndicatorConstraint_class_data_ =
2784
2785PROTOBUF_ATTRIBUTE_WEAK const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL
2786MPIndicatorConstraint::GetClassData() const {
2787 ::google::protobuf::internal::PrefetchToLocalCache(&MPIndicatorConstraint_class_data_);
2788 ::google::protobuf::internal::PrefetchToLocalCache(MPIndicatorConstraint_class_data_.tc_table);
2790}
2791PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1
2792const ::_pbi::TcParseTable<2, 3, 1, 0, 2>
2793MPIndicatorConstraint::_table_ = {
2794 {
2795 PROTOBUF_FIELD_OFFSET(MPIndicatorConstraint, _impl_._has_bits_),
2796 0, // no _extensions_
2797 3, 24, // max_field_number, fast_idx_mask
2798 offsetof(decltype(_table_), field_lookup_table),
2799 4294967288, // skipmap
2800 offsetof(decltype(_table_), field_entries),
2801 3, // num_field_entries
2802 1, // num_aux_entries
2803 offsetof(decltype(_table_), aux_entries),
2805 nullptr, // post_loop_handler
2806 ::_pbi::TcParser::GenericFallback, // fallback
2807 #ifdef PROTOBUF_PREFETCH_PARSE_TABLE
2808 ::_pbi::TcParser::GetTable<::operations_research::MPIndicatorConstraint>(), // to_prefetch
2809 #endif // PROTOBUF_PREFETCH_PARSE_TABLE
2810 }, {{
2811 {::_pbi::TcParser::MiniParse, {}},
2812 // optional int32 var_index = 1;
2813 {::_pbi::TcParser::SingularVarintNoZag1<::uint32_t, offsetof(MPIndicatorConstraint, _impl_.var_index_), 1>(),
2814 {8, 1, 0,
2815 PROTOBUF_FIELD_OFFSET(MPIndicatorConstraint, _impl_.var_index_)}},
2816 // optional int32 var_value = 2;
2817 {::_pbi::TcParser::SingularVarintNoZag1<::uint32_t, offsetof(MPIndicatorConstraint, _impl_.var_value_), 2>(),
2818 {16, 2, 0,
2819 PROTOBUF_FIELD_OFFSET(MPIndicatorConstraint, _impl_.var_value_)}},
2820 // optional .operations_research.MPConstraintProto constraint = 3;
2821 {::_pbi::TcParser::FastMtS1,
2822 {26, 0, 0,
2823 PROTOBUF_FIELD_OFFSET(MPIndicatorConstraint, _impl_.constraint_)}},
2824 }}, {{
2825 65535, 65535
2826 }}, {{
2827 // optional int32 var_index = 1;
2828 {PROTOBUF_FIELD_OFFSET(MPIndicatorConstraint, _impl_.var_index_), _Internal::kHasBitsOffset + 1, 0, (0 | ::_fl::kFcOptional | ::_fl::kInt32)},
2829 // optional int32 var_value = 2;
2830 {PROTOBUF_FIELD_OFFSET(MPIndicatorConstraint, _impl_.var_value_), _Internal::kHasBitsOffset + 2, 0, (0 | ::_fl::kFcOptional | ::_fl::kInt32)},
2831 // optional .operations_research.MPConstraintProto constraint = 3;
2832 {PROTOBUF_FIELD_OFFSET(MPIndicatorConstraint, _impl_.constraint_), _Internal::kHasBitsOffset + 0, 0, (0 | ::_fl::kFcOptional | ::_fl::kMessage | ::_fl::kTvTable)},
2833 }},
2834 {{
2835 {::_pbi::TcParser::GetTable<::operations_research::MPConstraintProto>()},
2836 }},
2837 {{
2838 }},
2839};
2840PROTOBUF_NOINLINE void MPIndicatorConstraint::Clear() {
2841// @@protoc_insertion_point(message_clear_start:operations_research.MPIndicatorConstraint)
2842 ::google::protobuf::internal::TSanWrite(&_impl_);
2843 ::uint32_t cached_has_bits = 0;
2844 // Prevent compiler warnings about cached_has_bits being unused
2845 (void) cached_has_bits;
2846
2847 cached_has_bits = _impl_._has_bits_[0];
2848 if (CheckHasBit(cached_has_bits, 0x00000001U)) {
2849 ABSL_DCHECK(_impl_.constraint_ != nullptr);
2850 _impl_.constraint_->Clear();
2851 }
2852 if (BatchCheckHasBit(cached_has_bits, 0x00000006U)) {
2853 ::memset(&_impl_.var_index_, 0, static_cast<::size_t>(
2854 reinterpret_cast<char*>(&_impl_.var_value_) -
2855 reinterpret_cast<char*>(&_impl_.var_index_)) + sizeof(_impl_.var_value_));
2856 }
2857 _impl_._has_bits_.Clear();
2858 _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>();
2859}
2860
2861#if defined(PROTOBUF_CUSTOM_VTABLE)
2862::uint8_t* PROTOBUF_NONNULL MPIndicatorConstraint::_InternalSerialize(
2863 const ::google::protobuf::MessageLite& base, ::uint8_t* PROTOBUF_NONNULL target,
2864 ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) {
2865 const MPIndicatorConstraint& this_ = static_cast<const MPIndicatorConstraint&>(base);
2866#else // PROTOBUF_CUSTOM_VTABLE
2867::uint8_t* PROTOBUF_NONNULL MPIndicatorConstraint::_InternalSerialize(
2868 ::uint8_t* PROTOBUF_NONNULL target,
2869 ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const {
2870 const MPIndicatorConstraint& this_ = *this;
2871#endif // PROTOBUF_CUSTOM_VTABLE
2872 if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) {
2873 this_.CheckHasBitConsistency();
2874 }
2875 // @@protoc_insertion_point(serialize_to_array_start:operations_research.MPIndicatorConstraint)
2876 ::uint32_t cached_has_bits = 0;
2877 (void)cached_has_bits;
2878
2879 cached_has_bits = this_._impl_._has_bits_[0];
2880 // optional int32 var_index = 1;
2881 if (CheckHasBit(cached_has_bits, 0x00000002U)) {
2882 target =
2883 ::google::protobuf::internal::WireFormatLite::WriteInt32ToArrayWithField<1>(
2884 stream, this_._internal_var_index(), target);
2885 }
2886
2887 // optional int32 var_value = 2;
2888 if (CheckHasBit(cached_has_bits, 0x00000004U)) {
2889 target =
2890 ::google::protobuf::internal::WireFormatLite::WriteInt32ToArrayWithField<2>(
2891 stream, this_._internal_var_value(), target);
2892 }
2893
2894 // optional .operations_research.MPConstraintProto constraint = 3;
2895 if (CheckHasBit(cached_has_bits, 0x00000001U)) {
2896 target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage(
2897 3, *this_._impl_.constraint_, this_._impl_.constraint_->GetCachedSize(), target,
2898 stream);
2899 }
2900
2901 if (ABSL_PREDICT_FALSE(this_._internal_metadata_.have_unknown_fields())) {
2902 target =
2903 ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray(
2904 this_._internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream);
2905 }
2906 // @@protoc_insertion_point(serialize_to_array_end:operations_research.MPIndicatorConstraint)
2907 return target;
2908}
2909
2910#if defined(PROTOBUF_CUSTOM_VTABLE)
2912 const MPIndicatorConstraint& this_ = static_cast<const MPIndicatorConstraint&>(base);
2913#else // PROTOBUF_CUSTOM_VTABLE
2914::size_t MPIndicatorConstraint::ByteSizeLong() const {
2915 const MPIndicatorConstraint& this_ = *this;
2916#endif // PROTOBUF_CUSTOM_VTABLE
2917 // @@protoc_insertion_point(message_byte_size_start:operations_research.MPIndicatorConstraint)
2918 ::size_t total_size = 0;
2919
2920 ::uint32_t cached_has_bits = 0;
2921 // Prevent compiler warnings about cached_has_bits being unused
2922 (void)cached_has_bits;
2923
2924 ::_pbi::Prefetch5LinesFrom7Lines(&this_);
2925 cached_has_bits = this_._impl_._has_bits_[0];
2926 if (BatchCheckHasBit(cached_has_bits, 0x00000007U)) {
2927 // optional .operations_research.MPConstraintProto constraint = 3;
2928 if (CheckHasBit(cached_has_bits, 0x00000001U)) {
2929 total_size += 1 +
2930 ::google::protobuf::internal::WireFormatLite::MessageSize(*this_._impl_.constraint_);
2931 }
2932 // optional int32 var_index = 1;
2933 if (CheckHasBit(cached_has_bits, 0x00000002U)) {
2934 total_size += ::_pbi::WireFormatLite::Int32SizePlusOne(
2935 this_._internal_var_index());
2936 }
2937 // optional int32 var_value = 2;
2938 if (CheckHasBit(cached_has_bits, 0x00000004U)) {
2939 total_size += ::_pbi::WireFormatLite::Int32SizePlusOne(
2940 this_._internal_var_value());
2941 }
2942 }
2943 return this_.MaybeComputeUnknownFieldsSize(total_size,
2944 &this_._impl_._cached_size_);
2945}
2946
2947void MPIndicatorConstraint::MergeImpl(::google::protobuf::MessageLite& to_msg,
2948 const ::google::protobuf::MessageLite& from_msg) {
2949 auto* const _this =
2950 static_cast<MPIndicatorConstraint*>(&to_msg);
2951 auto& from = static_cast<const MPIndicatorConstraint&>(from_msg);
2952 if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) {
2953 from.CheckHasBitConsistency();
2954 }
2955 ::google::protobuf::Arena* arena = _this->GetArena();
2956 // @@protoc_insertion_point(class_specific_merge_from_start:operations_research.MPIndicatorConstraint)
2957 ABSL_DCHECK_NE(&from, _this);
2958 ::uint32_t cached_has_bits = 0;
2959 (void)cached_has_bits;
2960
2961 cached_has_bits = from._impl_._has_bits_[0];
2962 if (BatchCheckHasBit(cached_has_bits, 0x00000007U)) {
2963 if (CheckHasBit(cached_has_bits, 0x00000001U)) {
2964 ABSL_DCHECK(from._impl_.constraint_ != nullptr);
2965 if (_this->_impl_.constraint_ == nullptr) {
2966 _this->_impl_.constraint_ = ::google::protobuf::Message::CopyConstruct(arena, *from._impl_.constraint_);
2967 } else {
2968 _this->_impl_.constraint_->MergeFrom(*from._impl_.constraint_);
2969 }
2970 }
2971 if (CheckHasBit(cached_has_bits, 0x00000002U)) {
2972 _this->_impl_.var_index_ = from._impl_.var_index_;
2973 }
2974 if (CheckHasBit(cached_has_bits, 0x00000004U)) {
2975 _this->_impl_.var_value_ = from._impl_.var_value_;
2976 }
2977 }
2978 _this->_impl_._has_bits_[0] |= cached_has_bits;
2979 _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(
2980 from._internal_metadata_);
2981}
2982
2983void MPIndicatorConstraint::CopyFrom(const MPIndicatorConstraint& from) {
2984 // @@protoc_insertion_point(class_specific_copy_from_start:operations_research.MPIndicatorConstraint)
2985 if (&from == this) return;
2986 Clear();
2988}
2989
2990
2991void MPIndicatorConstraint::InternalSwap(MPIndicatorConstraint* PROTOBUF_RESTRICT PROTOBUF_NONNULL other) {
2992 using ::std::swap;
2993 _internal_metadata_.InternalSwap(&other->_internal_metadata_);
2994 swap(_impl_._has_bits_[0], other->_impl_._has_bits_[0]);
2995 ::google::protobuf::internal::memswap<
2996 PROTOBUF_FIELD_OFFSET(MPIndicatorConstraint, _impl_.var_value_)
2997 + sizeof(MPIndicatorConstraint::_impl_.var_value_)
2998 - PROTOBUF_FIELD_OFFSET(MPIndicatorConstraint, _impl_.constraint_)>(
2999 reinterpret_cast<char*>(&_impl_.constraint_),
3000 reinterpret_cast<char*>(&other->_impl_.constraint_));
3001}
3002
3003::google::protobuf::Metadata MPIndicatorConstraint::GetMetadata() const {
3004 return ::google::protobuf::Message::GetMetadataImpl(GetClassData()->full());
3005}
3006// ===================================================================
3009 public:
3010 using HasBits =
3011 decltype(::std::declval<MPSosConstraint>()._impl_._has_bits_);
3012 static constexpr ::int32_t kHasBitsOffset =
3013 8 * PROTOBUF_FIELD_OFFSET(MPSosConstraint, _impl_._has_bits_);
3014};
3016MPSosConstraint::MPSosConstraint(::google::protobuf::Arena* PROTOBUF_NULLABLE arena)
3017#if defined(PROTOBUF_CUSTOM_VTABLE)
3018 : ::google::protobuf::Message(arena, MPSosConstraint_class_data_.base()) {
3019#else // PROTOBUF_CUSTOM_VTABLE
3020 : ::google::protobuf::Message(arena) {
3021#endif // PROTOBUF_CUSTOM_VTABLE
3022 SharedCtor(arena);
3023 // @@protoc_insertion_point(arena_constructor:operations_research.MPSosConstraint)
3024}
3025PROTOBUF_NDEBUG_INLINE MPSosConstraint::Impl_::Impl_(
3026 [[maybe_unused]] ::google::protobuf::internal::InternalVisibility visibility,
3027 [[maybe_unused]] ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const Impl_& from,
3028 [[maybe_unused]] const ::operations_research::MPSosConstraint& from_msg)
3029 : _has_bits_{from._has_bits_},
3030 _cached_size_{0},
3031 var_index_{visibility, arena, from.var_index_},
3032 weight_{visibility, arena, from.weight_} {}
3033
3035 ::google::protobuf::Arena* PROTOBUF_NULLABLE arena,
3036 const MPSosConstraint& from)
3037#if defined(PROTOBUF_CUSTOM_VTABLE)
3038 : ::google::protobuf::Message(arena, MPSosConstraint_class_data_.base()) {
3039#else // PROTOBUF_CUSTOM_VTABLE
3040 : ::google::protobuf::Message(arena) {
3041#endif // PROTOBUF_CUSTOM_VTABLE
3042 MPSosConstraint* const _this = this;
3043 (void)_this;
3044 _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(
3045 from._internal_metadata_);
3046 new (&_impl_) Impl_(internal_visibility(), arena, from._impl_, from);
3047 _impl_.type_ = from._impl_.type_;
3048
3049 // @@protoc_insertion_point(copy_constructor:operations_research.MPSosConstraint)
3050}
3051PROTOBUF_NDEBUG_INLINE MPSosConstraint::Impl_::Impl_(
3052 [[maybe_unused]] ::google::protobuf::internal::InternalVisibility visibility,
3053 [[maybe_unused]] ::google::protobuf::Arena* PROTOBUF_NULLABLE arena)
3054 : _cached_size_{0},
3055 var_index_{visibility, arena},
3056 weight_{visibility, arena} {}
3057
3058inline void MPSosConstraint::SharedCtor(::_pb::Arena* PROTOBUF_NULLABLE arena) {
3059 new (&_impl_) Impl_(internal_visibility(), arena);
3060 _impl_.type_ = {};
3061}
3063 // @@protoc_insertion_point(destructor:operations_research.MPSosConstraint)
3064 SharedDtor(*this);
3065}
3066inline void MPSosConstraint::SharedDtor(MessageLite& self) {
3067 MPSosConstraint& this_ = static_cast<MPSosConstraint&>(self);
3068 if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) {
3069 this_.CheckHasBitConsistency();
3070 }
3071 this_._internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>();
3072 ABSL_DCHECK(this_.GetArena() == nullptr);
3073 this_._impl_.~Impl_();
3074}
3075
3076inline void* PROTOBUF_NONNULL MPSosConstraint::PlacementNew_(
3077 const void* PROTOBUF_NONNULL, void* PROTOBUF_NONNULL mem,
3078 ::google::protobuf::Arena* PROTOBUF_NULLABLE arena) {
3079 return ::new (mem) MPSosConstraint(arena);
3080}
3081constexpr auto MPSosConstraint::InternalNewImpl_() {
3082 constexpr auto arena_bits = ::google::protobuf::internal::EncodePlacementArenaOffsets({
3083 PROTOBUF_FIELD_OFFSET(MPSosConstraint, _impl_.var_index_) +
3084 decltype(MPSosConstraint::_impl_.var_index_)::
3085 InternalGetArenaOffset(
3086 ::google::protobuf::Message::internal_visibility()),
3087 PROTOBUF_FIELD_OFFSET(MPSosConstraint, _impl_.weight_) +
3088 decltype(MPSosConstraint::_impl_.weight_)::
3089 InternalGetArenaOffset(
3090 ::google::protobuf::Message::internal_visibility()),
3091 });
3092 if (arena_bits.has_value()) {
3093 return ::google::protobuf::internal::MessageCreator::ZeroInit(
3094 sizeof(MPSosConstraint), alignof(MPSosConstraint), *arena_bits);
3095 } else {
3096 return ::google::protobuf::internal::MessageCreator(&MPSosConstraint::PlacementNew_,
3097 sizeof(MPSosConstraint),
3098 alignof(MPSosConstraint));
3099 }
3100}
3102 return ::google::protobuf::internal::ClassDataFull{
3103 ::google::protobuf::internal::ClassData{
3105 &_table_.header,
3106 nullptr, // OnDemandRegisterArenaDtor
3107 nullptr, // IsInitialized
3108 &MPSosConstraint::MergeImpl,
3109 ::google::protobuf::Message::GetNewImpl<MPSosConstraint>(),
3110#if defined(PROTOBUF_CUSTOM_VTABLE)
3111 &MPSosConstraint::SharedDtor,
3112 ::google::protobuf::Message::GetClearImpl<MPSosConstraint>(), &MPSosConstraint::ByteSizeLong,
3114#endif // PROTOBUF_CUSTOM_VTABLE
3115 PROTOBUF_FIELD_OFFSET(MPSosConstraint, _impl_._cached_size_),
3116 false,
3117 },
3118 &MPSosConstraint::kDescriptorMethods,
3120 nullptr, // tracker
3121 };
3122}
3123
3124PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 const
3125 ::google::protobuf::internal::ClassDataFull MPSosConstraint_class_data_ =
3127
3128PROTOBUF_ATTRIBUTE_WEAK const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL
3129MPSosConstraint::GetClassData() const {
3130 ::google::protobuf::internal::PrefetchToLocalCache(&MPSosConstraint_class_data_);
3131 ::google::protobuf::internal::PrefetchToLocalCache(MPSosConstraint_class_data_.tc_table);
3132 return MPSosConstraint_class_data_.base();
3133}
3134PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1
3135const ::_pbi::TcParseTable<2, 3, 1, 0, 2>
3136MPSosConstraint::_table_ = {
3137 {
3138 PROTOBUF_FIELD_OFFSET(MPSosConstraint, _impl_._has_bits_),
3139 0, // no _extensions_
3140 3, 24, // max_field_number, fast_idx_mask
3141 offsetof(decltype(_table_), field_lookup_table),
3142 4294967288, // skipmap
3143 offsetof(decltype(_table_), field_entries),
3144 3, // num_field_entries
3145 1, // num_aux_entries
3146 offsetof(decltype(_table_), aux_entries),
3148 nullptr, // post_loop_handler
3149 ::_pbi::TcParser::GenericFallback, // fallback
3150 #ifdef PROTOBUF_PREFETCH_PARSE_TABLE
3151 ::_pbi::TcParser::GetTable<::operations_research::MPSosConstraint>(), // to_prefetch
3152 #endif // PROTOBUF_PREFETCH_PARSE_TABLE
3153 }, {{
3154 {::_pbi::TcParser::MiniParse, {}},
3155 // optional .operations_research.MPSosConstraint.Type type = 1 [default = SOS1_DEFAULT];
3156 {::_pbi::TcParser::FastEr0S1,
3157 {8, 2, 1,
3158 PROTOBUF_FIELD_OFFSET(MPSosConstraint, _impl_.type_)}},
3159 // repeated int32 var_index = 2;
3160 {::_pbi::TcParser::FastV32R1,
3161 {16, 0, 0,
3162 PROTOBUF_FIELD_OFFSET(MPSosConstraint, _impl_.var_index_)}},
3163 // repeated double weight = 3;
3164 {::_pbi::TcParser::FastF64R1,
3165 {25, 1, 0,
3166 PROTOBUF_FIELD_OFFSET(MPSosConstraint, _impl_.weight_)}},
3167 }}, {{
3168 65535, 65535
3169 }}, {{
3170 // optional .operations_research.MPSosConstraint.Type type = 1 [default = SOS1_DEFAULT];
3171 {PROTOBUF_FIELD_OFFSET(MPSosConstraint, _impl_.type_), _Internal::kHasBitsOffset + 2, 0, (0 | ::_fl::kFcOptional | ::_fl::kEnumRange)},
3172 // repeated int32 var_index = 2;
3173 {PROTOBUF_FIELD_OFFSET(MPSosConstraint, _impl_.var_index_), _Internal::kHasBitsOffset + 0, 0, (0 | ::_fl::kFcRepeated | ::_fl::kInt32)},
3174 // repeated double weight = 3;
3175 {PROTOBUF_FIELD_OFFSET(MPSosConstraint, _impl_.weight_), _Internal::kHasBitsOffset + 1, 0, (0 | ::_fl::kFcRepeated | ::_fl::kDouble)},
3176 }},
3177 {{
3178 {0, 1},
3179 }},
3180 {{
3181 }},
3182};
3183PROTOBUF_NOINLINE void MPSosConstraint::Clear() {
3184// @@protoc_insertion_point(message_clear_start:operations_research.MPSosConstraint)
3185 ::google::protobuf::internal::TSanWrite(&_impl_);
3186 ::uint32_t cached_has_bits = 0;
3187 // Prevent compiler warnings about cached_has_bits being unused
3188 (void) cached_has_bits;
3189
3190 cached_has_bits = _impl_._has_bits_[0];
3191 if (BatchCheckHasBit(cached_has_bits, 0x00000003U)) {
3192 if (CheckHasBitForRepeated(cached_has_bits, 0x00000001U)) {
3193 _impl_.var_index_.Clear();
3194 }
3195 if (CheckHasBitForRepeated(cached_has_bits, 0x00000002U)) {
3196 _impl_.weight_.Clear();
3197 }
3198 }
3199 _impl_.type_ = 0;
3200 _impl_._has_bits_.Clear();
3201 _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>();
3202}
3203
3204#if defined(PROTOBUF_CUSTOM_VTABLE)
3205::uint8_t* PROTOBUF_NONNULL MPSosConstraint::_InternalSerialize(
3206 const ::google::protobuf::MessageLite& base, ::uint8_t* PROTOBUF_NONNULL target,
3207 ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) {
3208 const MPSosConstraint& this_ = static_cast<const MPSosConstraint&>(base);
3209#else // PROTOBUF_CUSTOM_VTABLE
3210::uint8_t* PROTOBUF_NONNULL MPSosConstraint::_InternalSerialize(
3211 ::uint8_t* PROTOBUF_NONNULL target,
3212 ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const {
3213 const MPSosConstraint& this_ = *this;
3214#endif // PROTOBUF_CUSTOM_VTABLE
3215 if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) {
3216 this_.CheckHasBitConsistency();
3217 }
3218 // @@protoc_insertion_point(serialize_to_array_start:operations_research.MPSosConstraint)
3219 ::uint32_t cached_has_bits = 0;
3220 (void)cached_has_bits;
3221
3222 cached_has_bits = this_._impl_._has_bits_[0];
3223 // optional .operations_research.MPSosConstraint.Type type = 1 [default = SOS1_DEFAULT];
3224 if (CheckHasBit(cached_has_bits, 0x00000004U)) {
3225 target = stream->EnsureSpace(target);
3226 target = ::_pbi::WireFormatLite::WriteEnumToArray(
3227 1, this_._internal_type(), target);
3228 }
3229
3230 // repeated int32 var_index = 2;
3231 if (CheckHasBitForRepeated(cached_has_bits, 0x00000001U)) {
3232 for (int i = 0, n = this_._internal_var_index_size(); i < n; ++i) {
3233 target = stream->EnsureSpace(target);
3234 target = ::_pbi::WireFormatLite::WriteInt32ToArray(
3235 2, this_._internal_var_index().Get(i), target);
3236 }
3237 }
3238
3239 // repeated double weight = 3;
3240 if (CheckHasBitForRepeated(cached_has_bits, 0x00000002U)) {
3241 for (int i = 0, n = this_._internal_weight_size(); i < n; ++i) {
3242 target = stream->EnsureSpace(target);
3243 target = ::_pbi::WireFormatLite::WriteDoubleToArray(
3244 3, this_._internal_weight().Get(i), target);
3245 }
3246 }
3247
3248 if (ABSL_PREDICT_FALSE(this_._internal_metadata_.have_unknown_fields())) {
3249 target =
3250 ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray(
3251 this_._internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream);
3252 }
3253 // @@protoc_insertion_point(serialize_to_array_end:operations_research.MPSosConstraint)
3254 return target;
3255}
3256
3257#if defined(PROTOBUF_CUSTOM_VTABLE)
3258::size_t MPSosConstraint::ByteSizeLong(const MessageLite& base) {
3259 const MPSosConstraint& this_ = static_cast<const MPSosConstraint&>(base);
3260#else // PROTOBUF_CUSTOM_VTABLE
3261::size_t MPSosConstraint::ByteSizeLong() const {
3262 const MPSosConstraint& this_ = *this;
3263#endif // PROTOBUF_CUSTOM_VTABLE
3264 // @@protoc_insertion_point(message_byte_size_start:operations_research.MPSosConstraint)
3265 ::size_t total_size = 0;
3267 ::uint32_t cached_has_bits = 0;
3268 // Prevent compiler warnings about cached_has_bits being unused
3269 (void)cached_has_bits;
3270
3271 ::_pbi::Prefetch5LinesFrom7Lines(&this_);
3272 cached_has_bits = this_._impl_._has_bits_[0];
3273 if (BatchCheckHasBit(cached_has_bits, 0x00000007U)) {
3274 // repeated int32 var_index = 2;
3275 if (CheckHasBitForRepeated(cached_has_bits, 0x00000001U)) {
3276 ::size_t data_size = ::_pbi::WireFormatLite::Int32Size(
3277 this_._internal_var_index());
3278 ::size_t tag_size = ::size_t{1} *
3279 ::_pbi::FromIntSize(this_._internal_var_index_size());
3280 total_size += tag_size + data_size;
3281 }
3282 // repeated double weight = 3;
3283 if (CheckHasBitForRepeated(cached_has_bits, 0x00000002U)) {
3284 ::size_t data_size = ::size_t{8} *
3285 ::_pbi::FromIntSize(this_._internal_weight_size());
3286 ::size_t tag_size = ::size_t{1} *
3287 ::_pbi::FromIntSize(this_._internal_weight_size());
3288 total_size += tag_size + data_size;
3289 }
3290 // optional .operations_research.MPSosConstraint.Type type = 1 [default = SOS1_DEFAULT];
3291 if (CheckHasBit(cached_has_bits, 0x00000004U)) {
3292 total_size += 1 +
3293 ::_pbi::WireFormatLite::EnumSize(this_._internal_type());
3294 }
3295 }
3296 return this_.MaybeComputeUnknownFieldsSize(total_size,
3297 &this_._impl_._cached_size_);
3298}
3299
3300void MPSosConstraint::MergeImpl(::google::protobuf::MessageLite& to_msg,
3301 const ::google::protobuf::MessageLite& from_msg) {
3302 auto* const _this =
3303 static_cast<MPSosConstraint*>(&to_msg);
3304 auto& from = static_cast<const MPSosConstraint&>(from_msg);
3305 if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) {
3306 from.CheckHasBitConsistency();
3307 }
3308 // @@protoc_insertion_point(class_specific_merge_from_start:operations_research.MPSosConstraint)
3309 ABSL_DCHECK_NE(&from, _this);
3310 ::uint32_t cached_has_bits = 0;
3311 (void)cached_has_bits;
3312
3313 cached_has_bits = from._impl_._has_bits_[0];
3314 if (BatchCheckHasBit(cached_has_bits, 0x00000007U)) {
3315 if (CheckHasBitForRepeated(cached_has_bits, 0x00000001U)) {
3316 _this->_internal_mutable_var_index()->MergeFrom(from._internal_var_index());
3317 }
3318 if (CheckHasBitForRepeated(cached_has_bits, 0x00000002U)) {
3319 _this->_internal_mutable_weight()->MergeFrom(from._internal_weight());
3320 }
3321 if (CheckHasBit(cached_has_bits, 0x00000004U)) {
3322 _this->_impl_.type_ = from._impl_.type_;
3323 }
3324 }
3325 _this->_impl_._has_bits_[0] |= cached_has_bits;
3326 _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(
3327 from._internal_metadata_);
3328}
3329
3330void MPSosConstraint::CopyFrom(const MPSosConstraint& from) {
3331 // @@protoc_insertion_point(class_specific_copy_from_start:operations_research.MPSosConstraint)
3332 if (&from == this) return;
3333 Clear();
3334 MergeFrom(from);
3336
3337
3338void MPSosConstraint::InternalSwap(MPSosConstraint* PROTOBUF_RESTRICT PROTOBUF_NONNULL other) {
3339 using ::std::swap;
3340 _internal_metadata_.InternalSwap(&other->_internal_metadata_);
3341 swap(_impl_._has_bits_[0], other->_impl_._has_bits_[0]);
3342 _impl_.var_index_.InternalSwap(&other->_impl_.var_index_);
3343 _impl_.weight_.InternalSwap(&other->_impl_.weight_);
3344 swap(_impl_.type_, other->_impl_.type_);
3345}
3346
3347::google::protobuf::Metadata MPSosConstraint::GetMetadata() const {
3348 return ::google::protobuf::Message::GetMetadataImpl(GetClassData()->full());
3349}
3350// ===================================================================
3351
3353 public:
3354 using HasBits =
3355 decltype(::std::declval<MPQuadraticConstraint>()._impl_._has_bits_);
3356 static constexpr ::int32_t kHasBitsOffset =
3357 8 * PROTOBUF_FIELD_OFFSET(MPQuadraticConstraint, _impl_._has_bits_);
3359
3360MPQuadraticConstraint::MPQuadraticConstraint(::google::protobuf::Arena* PROTOBUF_NULLABLE arena)
3361#if defined(PROTOBUF_CUSTOM_VTABLE)
3362 : ::google::protobuf::Message(arena, MPQuadraticConstraint_class_data_.base()) {
3363#else // PROTOBUF_CUSTOM_VTABLE
3364 : ::google::protobuf::Message(arena) {
3365#endif // PROTOBUF_CUSTOM_VTABLE
3366 SharedCtor(arena);
3367 // @@protoc_insertion_point(arena_constructor:operations_research.MPQuadraticConstraint)
3368}
3369PROTOBUF_NDEBUG_INLINE MPQuadraticConstraint::Impl_::Impl_(
3370 [[maybe_unused]] ::google::protobuf::internal::InternalVisibility visibility,
3371 [[maybe_unused]] ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const Impl_& from,
3372 [[maybe_unused]] const ::operations_research::MPQuadraticConstraint& from_msg)
3373 : _has_bits_{from._has_bits_},
3374 _cached_size_{0},
3375 var_index_{visibility, arena, from.var_index_},
3376 coefficient_{visibility, arena, from.coefficient_},
3377 qvar1_index_{visibility, arena, from.qvar1_index_},
3378 qvar2_index_{visibility, arena, from.qvar2_index_},
3379 qcoefficient_{visibility, arena, from.qcoefficient_} {}
3380
3382 ::google::protobuf::Arena* PROTOBUF_NULLABLE arena,
3383 const MPQuadraticConstraint& from)
3384#if defined(PROTOBUF_CUSTOM_VTABLE)
3385 : ::google::protobuf::Message(arena, MPQuadraticConstraint_class_data_.base()) {
3386#else // PROTOBUF_CUSTOM_VTABLE
3387 : ::google::protobuf::Message(arena) {
3388#endif // PROTOBUF_CUSTOM_VTABLE
3389 MPQuadraticConstraint* const _this = this;
3390 (void)_this;
3391 _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(
3392 from._internal_metadata_);
3393 new (&_impl_) Impl_(internal_visibility(), arena, from._impl_, from);
3394 ::memcpy(reinterpret_cast<char*>(&_impl_) +
3395 offsetof(Impl_, lower_bound_),
3396 reinterpret_cast<const char*>(&from._impl_) +
3397 offsetof(Impl_, lower_bound_),
3398 offsetof(Impl_, upper_bound_) -
3399 offsetof(Impl_, lower_bound_) +
3400 sizeof(Impl_::upper_bound_));
3401
3402 // @@protoc_insertion_point(copy_constructor:operations_research.MPQuadraticConstraint)
3403}
3404PROTOBUF_NDEBUG_INLINE MPQuadraticConstraint::Impl_::Impl_(
3405 [[maybe_unused]] ::google::protobuf::internal::InternalVisibility visibility,
3406 [[maybe_unused]] ::google::protobuf::Arena* PROTOBUF_NULLABLE arena)
3407 : _cached_size_{0},
3408 var_index_{visibility, arena},
3409 coefficient_{visibility, arena},
3410 qvar1_index_{visibility, arena},
3411 qvar2_index_{visibility, arena},
3412 qcoefficient_{visibility, arena},
3413 lower_bound_{-std::numeric_limits<double>::infinity()},
3414 upper_bound_{std::numeric_limits<double>::infinity()} {}
3415
3416inline void MPQuadraticConstraint::SharedCtor(::_pb::Arena* PROTOBUF_NULLABLE arena) {
3417 new (&_impl_) Impl_(internal_visibility(), arena);
3418}
3420 // @@protoc_insertion_point(destructor:operations_research.MPQuadraticConstraint)
3421 SharedDtor(*this);
3422}
3423inline void MPQuadraticConstraint::SharedDtor(MessageLite& self) {
3424 MPQuadraticConstraint& this_ = static_cast<MPQuadraticConstraint&>(self);
3425 if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) {
3426 this_.CheckHasBitConsistency();
3427 }
3428 this_._internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>();
3429 ABSL_DCHECK(this_.GetArena() == nullptr);
3430 this_._impl_.~Impl_();
3431}
3432
3433inline void* PROTOBUF_NONNULL MPQuadraticConstraint::PlacementNew_(
3434 const void* PROTOBUF_NONNULL, void* PROTOBUF_NONNULL mem,
3435 ::google::protobuf::Arena* PROTOBUF_NULLABLE arena) {
3436 return ::new (mem) MPQuadraticConstraint(arena);
3437}
3438constexpr auto MPQuadraticConstraint::InternalNewImpl_() {
3439 constexpr auto arena_bits = ::google::protobuf::internal::EncodePlacementArenaOffsets({
3440 PROTOBUF_FIELD_OFFSET(MPQuadraticConstraint, _impl_.var_index_) +
3441 decltype(MPQuadraticConstraint::_impl_.var_index_)::
3442 InternalGetArenaOffset(
3443 ::google::protobuf::Message::internal_visibility()),
3444 PROTOBUF_FIELD_OFFSET(MPQuadraticConstraint, _impl_.coefficient_) +
3445 decltype(MPQuadraticConstraint::_impl_.coefficient_)::
3446 InternalGetArenaOffset(
3447 ::google::protobuf::Message::internal_visibility()),
3448 PROTOBUF_FIELD_OFFSET(MPQuadraticConstraint, _impl_.qvar1_index_) +
3449 decltype(MPQuadraticConstraint::_impl_.qvar1_index_)::
3450 InternalGetArenaOffset(
3451 ::google::protobuf::Message::internal_visibility()),
3452 PROTOBUF_FIELD_OFFSET(MPQuadraticConstraint, _impl_.qvar2_index_) +
3453 decltype(MPQuadraticConstraint::_impl_.qvar2_index_)::
3454 InternalGetArenaOffset(
3455 ::google::protobuf::Message::internal_visibility()),
3456 PROTOBUF_FIELD_OFFSET(MPQuadraticConstraint, _impl_.qcoefficient_) +
3457 decltype(MPQuadraticConstraint::_impl_.qcoefficient_)::
3458 InternalGetArenaOffset(
3459 ::google::protobuf::Message::internal_visibility()),
3460 });
3461 if (arena_bits.has_value()) {
3462 return ::google::protobuf::internal::MessageCreator::CopyInit(
3463 sizeof(MPQuadraticConstraint), alignof(MPQuadraticConstraint), *arena_bits);
3464 } else {
3465 return ::google::protobuf::internal::MessageCreator(&MPQuadraticConstraint::PlacementNew_,
3466 sizeof(MPQuadraticConstraint),
3467 alignof(MPQuadraticConstraint));
3468 }
3469}
3471 return ::google::protobuf::internal::ClassDataFull{
3472 ::google::protobuf::internal::ClassData{
3474 &_table_.header,
3475 nullptr, // OnDemandRegisterArenaDtor
3476 nullptr, // IsInitialized
3477 &MPQuadraticConstraint::MergeImpl,
3478 ::google::protobuf::Message::GetNewImpl<MPQuadraticConstraint>(),
3479#if defined(PROTOBUF_CUSTOM_VTABLE)
3480 &MPQuadraticConstraint::SharedDtor,
3481 ::google::protobuf::Message::GetClearImpl<MPQuadraticConstraint>(), &MPQuadraticConstraint::ByteSizeLong,
3483#endif // PROTOBUF_CUSTOM_VTABLE
3484 PROTOBUF_FIELD_OFFSET(MPQuadraticConstraint, _impl_._cached_size_),
3485 false,
3486 },
3487 &MPQuadraticConstraint::kDescriptorMethods,
3489 nullptr, // tracker
3490 };
3491}
3492
3493PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 const
3494 ::google::protobuf::internal::ClassDataFull MPQuadraticConstraint_class_data_ =
3496
3497PROTOBUF_ATTRIBUTE_WEAK const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL
3498MPQuadraticConstraint::GetClassData() const {
3499 ::google::protobuf::internal::PrefetchToLocalCache(&MPQuadraticConstraint_class_data_);
3500 ::google::protobuf::internal::PrefetchToLocalCache(MPQuadraticConstraint_class_data_.tc_table);
3502}
3503PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1
3504const ::_pbi::TcParseTable<3, 7, 0, 0, 2>
3505MPQuadraticConstraint::_table_ = {
3506 {
3507 PROTOBUF_FIELD_OFFSET(MPQuadraticConstraint, _impl_._has_bits_),
3508 0, // no _extensions_
3509 7, 56, // max_field_number, fast_idx_mask
3510 offsetof(decltype(_table_), field_lookup_table),
3511 4294967168, // skipmap
3512 offsetof(decltype(_table_), field_entries),
3513 7, // num_field_entries
3514 0, // num_aux_entries
3515 offsetof(decltype(_table_), field_names), // no aux_entries
3517 nullptr, // post_loop_handler
3518 ::_pbi::TcParser::GenericFallback, // fallback
3519 #ifdef PROTOBUF_PREFETCH_PARSE_TABLE
3520 ::_pbi::TcParser::GetTable<::operations_research::MPQuadraticConstraint>(), // to_prefetch
3521 #endif // PROTOBUF_PREFETCH_PARSE_TABLE
3522 }, {{
3523 {::_pbi::TcParser::MiniParse, {}},
3524 // repeated int32 var_index = 1;
3525 {::_pbi::TcParser::FastV32R1,
3526 {8, 0, 0,
3527 PROTOBUF_FIELD_OFFSET(MPQuadraticConstraint, _impl_.var_index_)}},
3528 // repeated double coefficient = 2;
3529 {::_pbi::TcParser::FastF64R1,
3530 {17, 1, 0,
3531 PROTOBUF_FIELD_OFFSET(MPQuadraticConstraint, _impl_.coefficient_)}},
3532 // repeated int32 qvar1_index = 3;
3533 {::_pbi::TcParser::FastV32R1,
3534 {24, 2, 0,
3535 PROTOBUF_FIELD_OFFSET(MPQuadraticConstraint, _impl_.qvar1_index_)}},
3536 // repeated int32 qvar2_index = 4;
3537 {::_pbi::TcParser::FastV32R1,
3538 {32, 3, 0,
3539 PROTOBUF_FIELD_OFFSET(MPQuadraticConstraint, _impl_.qvar2_index_)}},
3540 // repeated double qcoefficient = 5;
3541 {::_pbi::TcParser::FastF64R1,
3542 {41, 4, 0,
3543 PROTOBUF_FIELD_OFFSET(MPQuadraticConstraint, _impl_.qcoefficient_)}},
3544 // optional double lower_bound = 6 [default = -inf];
3545 {::_pbi::TcParser::FastF64S1,
3546 {49, 5, 0,
3547 PROTOBUF_FIELD_OFFSET(MPQuadraticConstraint, _impl_.lower_bound_)}},
3548 // optional double upper_bound = 7 [default = inf];
3549 {::_pbi::TcParser::FastF64S1,
3550 {57, 6, 0,
3551 PROTOBUF_FIELD_OFFSET(MPQuadraticConstraint, _impl_.upper_bound_)}},
3552 }}, {{
3553 65535, 65535
3554 }}, {{
3555 // repeated int32 var_index = 1;
3556 {PROTOBUF_FIELD_OFFSET(MPQuadraticConstraint, _impl_.var_index_), _Internal::kHasBitsOffset + 0, 0, (0 | ::_fl::kFcRepeated | ::_fl::kInt32)},
3557 // repeated double coefficient = 2;
3558 {PROTOBUF_FIELD_OFFSET(MPQuadraticConstraint, _impl_.coefficient_), _Internal::kHasBitsOffset + 1, 0, (0 | ::_fl::kFcRepeated | ::_fl::kDouble)},
3559 // repeated int32 qvar1_index = 3;
3560 {PROTOBUF_FIELD_OFFSET(MPQuadraticConstraint, _impl_.qvar1_index_), _Internal::kHasBitsOffset + 2, 0, (0 | ::_fl::kFcRepeated | ::_fl::kInt32)},
3561 // repeated int32 qvar2_index = 4;
3562 {PROTOBUF_FIELD_OFFSET(MPQuadraticConstraint, _impl_.qvar2_index_), _Internal::kHasBitsOffset + 3, 0, (0 | ::_fl::kFcRepeated | ::_fl::kInt32)},
3563 // repeated double qcoefficient = 5;
3564 {PROTOBUF_FIELD_OFFSET(MPQuadraticConstraint, _impl_.qcoefficient_), _Internal::kHasBitsOffset + 4, 0, (0 | ::_fl::kFcRepeated | ::_fl::kDouble)},
3565 // optional double lower_bound = 6 [default = -inf];
3566 {PROTOBUF_FIELD_OFFSET(MPQuadraticConstraint, _impl_.lower_bound_), _Internal::kHasBitsOffset + 5, 0, (0 | ::_fl::kFcOptional | ::_fl::kDouble)},
3567 // optional double upper_bound = 7 [default = inf];
3568 {PROTOBUF_FIELD_OFFSET(MPQuadraticConstraint, _impl_.upper_bound_), _Internal::kHasBitsOffset + 6, 0, (0 | ::_fl::kFcOptional | ::_fl::kDouble)},
3569 }},
3570 // no aux_entries
3571 {{
3572 }},
3573};
3574PROTOBUF_NOINLINE void MPQuadraticConstraint::Clear() {
3575// @@protoc_insertion_point(message_clear_start:operations_research.MPQuadraticConstraint)
3576 ::google::protobuf::internal::TSanWrite(&_impl_);
3577 ::uint32_t cached_has_bits = 0;
3578 // Prevent compiler warnings about cached_has_bits being unused
3579 (void) cached_has_bits;
3581 cached_has_bits = _impl_._has_bits_[0];
3582 if (BatchCheckHasBit(cached_has_bits, 0x0000007fU)) {
3583 if (CheckHasBitForRepeated(cached_has_bits, 0x00000001U)) {
3584 _impl_.var_index_.Clear();
3585 }
3586 if (CheckHasBitForRepeated(cached_has_bits, 0x00000002U)) {
3587 _impl_.coefficient_.Clear();
3588 }
3589 if (CheckHasBitForRepeated(cached_has_bits, 0x00000004U)) {
3590 _impl_.qvar1_index_.Clear();
3591 }
3592 if (CheckHasBitForRepeated(cached_has_bits, 0x00000008U)) {
3593 _impl_.qvar2_index_.Clear();
3594 }
3595 if (CheckHasBitForRepeated(cached_has_bits, 0x00000010U)) {
3596 _impl_.qcoefficient_.Clear();
3597 }
3598 _impl_.lower_bound_ = -std::numeric_limits<double>::infinity();
3599 _impl_.upper_bound_ = std::numeric_limits<double>::infinity();
3600 }
3601 _impl_._has_bits_.Clear();
3602 _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>();
3603}
3604
3605#if defined(PROTOBUF_CUSTOM_VTABLE)
3606::uint8_t* PROTOBUF_NONNULL MPQuadraticConstraint::_InternalSerialize(
3607 const ::google::protobuf::MessageLite& base, ::uint8_t* PROTOBUF_NONNULL target,
3608 ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) {
3609 const MPQuadraticConstraint& this_ = static_cast<const MPQuadraticConstraint&>(base);
3610#else // PROTOBUF_CUSTOM_VTABLE
3611::uint8_t* PROTOBUF_NONNULL MPQuadraticConstraint::_InternalSerialize(
3612 ::uint8_t* PROTOBUF_NONNULL target,
3613 ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const {
3614 const MPQuadraticConstraint& this_ = *this;
3615#endif // PROTOBUF_CUSTOM_VTABLE
3616 if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) {
3617 this_.CheckHasBitConsistency();
3618 }
3619 // @@protoc_insertion_point(serialize_to_array_start:operations_research.MPQuadraticConstraint)
3620 ::uint32_t cached_has_bits = 0;
3621 (void)cached_has_bits;
3622
3623 cached_has_bits = this_._impl_._has_bits_[0];
3624 // repeated int32 var_index = 1;
3625 if (CheckHasBitForRepeated(cached_has_bits, 0x00000001U)) {
3626 for (int i = 0, n = this_._internal_var_index_size(); i < n; ++i) {
3627 target = stream->EnsureSpace(target);
3628 target = ::_pbi::WireFormatLite::WriteInt32ToArray(
3629 1, this_._internal_var_index().Get(i), target);
3630 }
3631 }
3632
3633 // repeated double coefficient = 2;
3634 if (CheckHasBitForRepeated(cached_has_bits, 0x00000002U)) {
3635 for (int i = 0, n = this_._internal_coefficient_size(); i < n; ++i) {
3636 target = stream->EnsureSpace(target);
3637 target = ::_pbi::WireFormatLite::WriteDoubleToArray(
3638 2, this_._internal_coefficient().Get(i), target);
3639 }
3640 }
3641
3642 // repeated int32 qvar1_index = 3;
3643 if (CheckHasBitForRepeated(cached_has_bits, 0x00000004U)) {
3644 for (int i = 0, n = this_._internal_qvar1_index_size(); i < n; ++i) {
3645 target = stream->EnsureSpace(target);
3646 target = ::_pbi::WireFormatLite::WriteInt32ToArray(
3647 3, this_._internal_qvar1_index().Get(i), target);
3648 }
3649 }
3650
3651 // repeated int32 qvar2_index = 4;
3652 if (CheckHasBitForRepeated(cached_has_bits, 0x00000008U)) {
3653 for (int i = 0, n = this_._internal_qvar2_index_size(); i < n; ++i) {
3654 target = stream->EnsureSpace(target);
3655 target = ::_pbi::WireFormatLite::WriteInt32ToArray(
3656 4, this_._internal_qvar2_index().Get(i), target);
3657 }
3658 }
3659
3660 // repeated double qcoefficient = 5;
3661 if (CheckHasBitForRepeated(cached_has_bits, 0x00000010U)) {
3662 for (int i = 0, n = this_._internal_qcoefficient_size(); i < n; ++i) {
3663 target = stream->EnsureSpace(target);
3664 target = ::_pbi::WireFormatLite::WriteDoubleToArray(
3665 5, this_._internal_qcoefficient().Get(i), target);
3666 }
3667 }
3668
3669 // optional double lower_bound = 6 [default = -inf];
3670 if (CheckHasBit(cached_has_bits, 0x00000020U)) {
3671 target = stream->EnsureSpace(target);
3672 target = ::_pbi::WireFormatLite::WriteDoubleToArray(
3673 6, this_._internal_lower_bound(), target);
3674 }
3675
3676 // optional double upper_bound = 7 [default = inf];
3677 if (CheckHasBit(cached_has_bits, 0x00000040U)) {
3678 target = stream->EnsureSpace(target);
3679 target = ::_pbi::WireFormatLite::WriteDoubleToArray(
3680 7, this_._internal_upper_bound(), target);
3681 }
3682
3683 if (ABSL_PREDICT_FALSE(this_._internal_metadata_.have_unknown_fields())) {
3684 target =
3685 ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray(
3686 this_._internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream);
3687 }
3688 // @@protoc_insertion_point(serialize_to_array_end:operations_research.MPQuadraticConstraint)
3689 return target;
3690}
3691
3692#if defined(PROTOBUF_CUSTOM_VTABLE)
3694 const MPQuadraticConstraint& this_ = static_cast<const MPQuadraticConstraint&>(base);
3695#else // PROTOBUF_CUSTOM_VTABLE
3696::size_t MPQuadraticConstraint::ByteSizeLong() const {
3697 const MPQuadraticConstraint& this_ = *this;
3698#endif // PROTOBUF_CUSTOM_VTABLE
3699 // @@protoc_insertion_point(message_byte_size_start:operations_research.MPQuadraticConstraint)
3700 ::size_t total_size = 0;
3701
3702 ::uint32_t cached_has_bits = 0;
3703 // Prevent compiler warnings about cached_has_bits being unused
3704 (void)cached_has_bits;
3705
3706 ::_pbi::Prefetch5LinesFrom7Lines(&this_);
3707 cached_has_bits = this_._impl_._has_bits_[0];
3708 total_size += ::absl::popcount(0x00000060U & cached_has_bits) * 9;
3709 if (BatchCheckHasBit(cached_has_bits, 0x0000001fU)) {
3710 // repeated int32 var_index = 1;
3711 if (CheckHasBitForRepeated(cached_has_bits, 0x00000001U)) {
3712 ::size_t data_size = ::_pbi::WireFormatLite::Int32Size(
3713 this_._internal_var_index());
3714 ::size_t tag_size = ::size_t{1} *
3715 ::_pbi::FromIntSize(this_._internal_var_index_size());
3716 total_size += tag_size + data_size;
3717 }
3718 // repeated double coefficient = 2;
3719 if (CheckHasBitForRepeated(cached_has_bits, 0x00000002U)) {
3720 ::size_t data_size = ::size_t{8} *
3721 ::_pbi::FromIntSize(this_._internal_coefficient_size());
3722 ::size_t tag_size = ::size_t{1} *
3723 ::_pbi::FromIntSize(this_._internal_coefficient_size());
3724 total_size += tag_size + data_size;
3725 }
3726 // repeated int32 qvar1_index = 3;
3727 if (CheckHasBitForRepeated(cached_has_bits, 0x00000004U)) {
3728 ::size_t data_size = ::_pbi::WireFormatLite::Int32Size(
3729 this_._internal_qvar1_index());
3730 ::size_t tag_size = ::size_t{1} *
3731 ::_pbi::FromIntSize(this_._internal_qvar1_index_size());
3732 total_size += tag_size + data_size;
3733 }
3734 // repeated int32 qvar2_index = 4;
3735 if (CheckHasBitForRepeated(cached_has_bits, 0x00000008U)) {
3736 ::size_t data_size = ::_pbi::WireFormatLite::Int32Size(
3737 this_._internal_qvar2_index());
3738 ::size_t tag_size = ::size_t{1} *
3739 ::_pbi::FromIntSize(this_._internal_qvar2_index_size());
3740 total_size += tag_size + data_size;
3741 }
3742 // repeated double qcoefficient = 5;
3743 if (CheckHasBitForRepeated(cached_has_bits, 0x00000010U)) {
3744 ::size_t data_size = ::size_t{8} *
3745 ::_pbi::FromIntSize(this_._internal_qcoefficient_size());
3746 ::size_t tag_size = ::size_t{1} *
3747 ::_pbi::FromIntSize(this_._internal_qcoefficient_size());
3748 total_size += tag_size + data_size;
3749 }
3750 }
3751 return this_.MaybeComputeUnknownFieldsSize(total_size,
3752 &this_._impl_._cached_size_);
3753}
3754
3755void MPQuadraticConstraint::MergeImpl(::google::protobuf::MessageLite& to_msg,
3756 const ::google::protobuf::MessageLite& from_msg) {
3757 auto* const _this =
3758 static_cast<MPQuadraticConstraint*>(&to_msg);
3759 auto& from = static_cast<const MPQuadraticConstraint&>(from_msg);
3760 if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) {
3761 from.CheckHasBitConsistency();
3762 }
3763 // @@protoc_insertion_point(class_specific_merge_from_start:operations_research.MPQuadraticConstraint)
3764 ABSL_DCHECK_NE(&from, _this);
3765 ::uint32_t cached_has_bits = 0;
3766 (void)cached_has_bits;
3767
3768 cached_has_bits = from._impl_._has_bits_[0];
3769 if (BatchCheckHasBit(cached_has_bits, 0x0000007fU)) {
3770 if (CheckHasBitForRepeated(cached_has_bits, 0x00000001U)) {
3771 _this->_internal_mutable_var_index()->MergeFrom(from._internal_var_index());
3772 }
3773 if (CheckHasBitForRepeated(cached_has_bits, 0x00000002U)) {
3774 _this->_internal_mutable_coefficient()->MergeFrom(from._internal_coefficient());
3775 }
3776 if (CheckHasBitForRepeated(cached_has_bits, 0x00000004U)) {
3777 _this->_internal_mutable_qvar1_index()->MergeFrom(from._internal_qvar1_index());
3778 }
3779 if (CheckHasBitForRepeated(cached_has_bits, 0x00000008U)) {
3780 _this->_internal_mutable_qvar2_index()->MergeFrom(from._internal_qvar2_index());
3781 }
3782 if (CheckHasBitForRepeated(cached_has_bits, 0x00000010U)) {
3783 _this->_internal_mutable_qcoefficient()->MergeFrom(from._internal_qcoefficient());
3784 }
3785 if (CheckHasBit(cached_has_bits, 0x00000020U)) {
3786 _this->_impl_.lower_bound_ = from._impl_.lower_bound_;
3787 }
3788 if (CheckHasBit(cached_has_bits, 0x00000040U)) {
3789 _this->_impl_.upper_bound_ = from._impl_.upper_bound_;
3790 }
3791 }
3792 _this->_impl_._has_bits_[0] |= cached_has_bits;
3793 _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(
3794 from._internal_metadata_);
3795}
3796
3797void MPQuadraticConstraint::CopyFrom(const MPQuadraticConstraint& from) {
3798 // @@protoc_insertion_point(class_specific_copy_from_start:operations_research.MPQuadraticConstraint)
3799 if (&from == this) return;
3800 Clear();
3801 MergeFrom(from);
3802}
3804
3805void MPQuadraticConstraint::InternalSwap(MPQuadraticConstraint* PROTOBUF_RESTRICT PROTOBUF_NONNULL other) {
3806 using ::std::swap;
3807 _internal_metadata_.InternalSwap(&other->_internal_metadata_);
3808 swap(_impl_._has_bits_[0], other->_impl_._has_bits_[0]);
3809 _impl_.var_index_.InternalSwap(&other->_impl_.var_index_);
3810 _impl_.coefficient_.InternalSwap(&other->_impl_.coefficient_);
3811 _impl_.qvar1_index_.InternalSwap(&other->_impl_.qvar1_index_);
3812 _impl_.qvar2_index_.InternalSwap(&other->_impl_.qvar2_index_);
3813 _impl_.qcoefficient_.InternalSwap(&other->_impl_.qcoefficient_);
3814 ::google::protobuf::internal::memswap<
3815 PROTOBUF_FIELD_OFFSET(MPQuadraticConstraint, _impl_.upper_bound_)
3816 + sizeof(MPQuadraticConstraint::_impl_.upper_bound_)
3817 - PROTOBUF_FIELD_OFFSET(MPQuadraticConstraint, _impl_.lower_bound_)>(
3818 reinterpret_cast<char*>(&_impl_.lower_bound_),
3819 reinterpret_cast<char*>(&other->_impl_.lower_bound_));
3820}
3821
3822::google::protobuf::Metadata MPQuadraticConstraint::GetMetadata() const {
3823 return ::google::protobuf::Message::GetMetadataImpl(GetClassData()->full());
3824}
3825// ===================================================================
3826
3827class MPAbsConstraint::_Internal {
3828 public:
3829 using HasBits =
3830 decltype(::std::declval<MPAbsConstraint>()._impl_._has_bits_);
3831 static constexpr ::int32_t kHasBitsOffset =
3832 8 * PROTOBUF_FIELD_OFFSET(MPAbsConstraint, _impl_._has_bits_);
3833};
3835MPAbsConstraint::MPAbsConstraint(::google::protobuf::Arena* PROTOBUF_NULLABLE arena)
3836#if defined(PROTOBUF_CUSTOM_VTABLE)
3837 : ::google::protobuf::Message(arena, MPAbsConstraint_class_data_.base()) {
3838#else // PROTOBUF_CUSTOM_VTABLE
3839 : ::google::protobuf::Message(arena) {
3840#endif // PROTOBUF_CUSTOM_VTABLE
3841 SharedCtor(arena);
3842 // @@protoc_insertion_point(arena_constructor:operations_research.MPAbsConstraint)
3843}
3845 ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const MPAbsConstraint& from)
3846#if defined(PROTOBUF_CUSTOM_VTABLE)
3847 : ::google::protobuf::Message(arena, MPAbsConstraint_class_data_.base()),
3848#else // PROTOBUF_CUSTOM_VTABLE
3849 : ::google::protobuf::Message(arena),
3850#endif // PROTOBUF_CUSTOM_VTABLE
3851 _impl_(from._impl_) {
3852 _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(
3853 from._internal_metadata_);
3854}
3855PROTOBUF_NDEBUG_INLINE MPAbsConstraint::Impl_::Impl_(
3856 [[maybe_unused]] ::google::protobuf::internal::InternalVisibility visibility,
3857 [[maybe_unused]] ::google::protobuf::Arena* PROTOBUF_NULLABLE arena)
3858 : _cached_size_{0} {}
3859
3860inline void MPAbsConstraint::SharedCtor(::_pb::Arena* PROTOBUF_NULLABLE arena) {
3861 new (&_impl_) Impl_(internal_visibility(), arena);
3862 ::memset(reinterpret_cast<char*>(&_impl_) +
3863 offsetof(Impl_, var_index_),
3864 0,
3865 offsetof(Impl_, resultant_var_index_) -
3866 offsetof(Impl_, var_index_) +
3867 sizeof(Impl_::resultant_var_index_));
3868}
3870 // @@protoc_insertion_point(destructor:operations_research.MPAbsConstraint)
3871 SharedDtor(*this);
3872}
3873inline void MPAbsConstraint::SharedDtor(MessageLite& self) {
3874 MPAbsConstraint& this_ = static_cast<MPAbsConstraint&>(self);
3875 if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) {
3876 this_.CheckHasBitConsistency();
3877 }
3878 this_._internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>();
3879 ABSL_DCHECK(this_.GetArena() == nullptr);
3880 this_._impl_.~Impl_();
3881}
3882
3883inline void* PROTOBUF_NONNULL MPAbsConstraint::PlacementNew_(
3884 const void* PROTOBUF_NONNULL, void* PROTOBUF_NONNULL mem,
3885 ::google::protobuf::Arena* PROTOBUF_NULLABLE arena) {
3886 return ::new (mem) MPAbsConstraint(arena);
3887}
3888constexpr auto MPAbsConstraint::InternalNewImpl_() {
3889 return ::google::protobuf::internal::MessageCreator::ZeroInit(sizeof(MPAbsConstraint),
3890 alignof(MPAbsConstraint));
3891}
3893 return ::google::protobuf::internal::ClassDataFull{
3894 ::google::protobuf::internal::ClassData{
3896 &_table_.header,
3897 nullptr, // OnDemandRegisterArenaDtor
3898 nullptr, // IsInitialized
3899 &MPAbsConstraint::MergeImpl,
3900 ::google::protobuf::Message::GetNewImpl<MPAbsConstraint>(),
3901#if defined(PROTOBUF_CUSTOM_VTABLE)
3902 &MPAbsConstraint::SharedDtor,
3903 ::google::protobuf::Message::GetClearImpl<MPAbsConstraint>(), &MPAbsConstraint::ByteSizeLong,
3905#endif // PROTOBUF_CUSTOM_VTABLE
3906 PROTOBUF_FIELD_OFFSET(MPAbsConstraint, _impl_._cached_size_),
3907 false,
3908 },
3909 &MPAbsConstraint::kDescriptorMethods,
3911 nullptr, // tracker
3912 };
3913}
3914
3915PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 const
3916 ::google::protobuf::internal::ClassDataFull MPAbsConstraint_class_data_ =
3918
3919PROTOBUF_ATTRIBUTE_WEAK const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL
3920MPAbsConstraint::GetClassData() const {
3921 ::google::protobuf::internal::PrefetchToLocalCache(&MPAbsConstraint_class_data_);
3922 ::google::protobuf::internal::PrefetchToLocalCache(MPAbsConstraint_class_data_.tc_table);
3924}
3925PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1
3926const ::_pbi::TcParseTable<1, 2, 0, 0, 2>
3927MPAbsConstraint::_table_ = {
3928 {
3929 PROTOBUF_FIELD_OFFSET(MPAbsConstraint, _impl_._has_bits_),
3930 0, // no _extensions_
3931 2, 8, // max_field_number, fast_idx_mask
3932 offsetof(decltype(_table_), field_lookup_table),
3933 4294967292, // skipmap
3934 offsetof(decltype(_table_), field_entries),
3935 2, // num_field_entries
3936 0, // num_aux_entries
3937 offsetof(decltype(_table_), field_names), // no aux_entries
3939 nullptr, // post_loop_handler
3940 ::_pbi::TcParser::GenericFallback, // fallback
3941 #ifdef PROTOBUF_PREFETCH_PARSE_TABLE
3942 ::_pbi::TcParser::GetTable<::operations_research::MPAbsConstraint>(), // to_prefetch
3943 #endif // PROTOBUF_PREFETCH_PARSE_TABLE
3944 }, {{
3945 // optional int32 resultant_var_index = 2;
3946 {::_pbi::TcParser::SingularVarintNoZag1<::uint32_t, offsetof(MPAbsConstraint, _impl_.resultant_var_index_), 1>(),
3947 {16, 1, 0,
3948 PROTOBUF_FIELD_OFFSET(MPAbsConstraint, _impl_.resultant_var_index_)}},
3949 // optional int32 var_index = 1;
3950 {::_pbi::TcParser::SingularVarintNoZag1<::uint32_t, offsetof(MPAbsConstraint, _impl_.var_index_), 0>(),
3951 {8, 0, 0,
3952 PROTOBUF_FIELD_OFFSET(MPAbsConstraint, _impl_.var_index_)}},
3953 }}, {{
3954 65535, 65535
3955 }}, {{
3956 // optional int32 var_index = 1;
3957 {PROTOBUF_FIELD_OFFSET(MPAbsConstraint, _impl_.var_index_), _Internal::kHasBitsOffset + 0, 0, (0 | ::_fl::kFcOptional | ::_fl::kInt32)},
3958 // optional int32 resultant_var_index = 2;
3959 {PROTOBUF_FIELD_OFFSET(MPAbsConstraint, _impl_.resultant_var_index_), _Internal::kHasBitsOffset + 1, 0, (0 | ::_fl::kFcOptional | ::_fl::kInt32)},
3960 }},
3961 // no aux_entries
3962 {{
3963 }},
3964};
3965PROTOBUF_NOINLINE void MPAbsConstraint::Clear() {
3966// @@protoc_insertion_point(message_clear_start:operations_research.MPAbsConstraint)
3967 ::google::protobuf::internal::TSanWrite(&_impl_);
3968 ::uint32_t cached_has_bits = 0;
3969 // Prevent compiler warnings about cached_has_bits being unused
3970 (void) cached_has_bits;
3971
3972 cached_has_bits = _impl_._has_bits_[0];
3973 if (BatchCheckHasBit(cached_has_bits, 0x00000003U)) {
3974 ::memset(&_impl_.var_index_, 0, static_cast<::size_t>(
3975 reinterpret_cast<char*>(&_impl_.resultant_var_index_) -
3976 reinterpret_cast<char*>(&_impl_.var_index_)) + sizeof(_impl_.resultant_var_index_));
3977 }
3978 _impl_._has_bits_.Clear();
3979 _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>();
3980}
3981
3982#if defined(PROTOBUF_CUSTOM_VTABLE)
3983::uint8_t* PROTOBUF_NONNULL MPAbsConstraint::_InternalSerialize(
3984 const ::google::protobuf::MessageLite& base, ::uint8_t* PROTOBUF_NONNULL target,
3985 ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) {
3986 const MPAbsConstraint& this_ = static_cast<const MPAbsConstraint&>(base);
3987#else // PROTOBUF_CUSTOM_VTABLE
3988::uint8_t* PROTOBUF_NONNULL MPAbsConstraint::_InternalSerialize(
3989 ::uint8_t* PROTOBUF_NONNULL target,
3990 ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const {
3991 const MPAbsConstraint& this_ = *this;
3992#endif // PROTOBUF_CUSTOM_VTABLE
3993 if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) {
3994 this_.CheckHasBitConsistency();
3996 // @@protoc_insertion_point(serialize_to_array_start:operations_research.MPAbsConstraint)
3997 ::uint32_t cached_has_bits = 0;
3998 (void)cached_has_bits;
3999
4000 cached_has_bits = this_._impl_._has_bits_[0];
4001 // optional int32 var_index = 1;
4002 if (CheckHasBit(cached_has_bits, 0x00000001U)) {
4003 target =
4004 ::google::protobuf::internal::WireFormatLite::WriteInt32ToArrayWithField<1>(
4005 stream, this_._internal_var_index(), target);
4006 }
4007
4008 // optional int32 resultant_var_index = 2;
4009 if (CheckHasBit(cached_has_bits, 0x00000002U)) {
4010 target =
4011 ::google::protobuf::internal::WireFormatLite::WriteInt32ToArrayWithField<2>(
4012 stream, this_._internal_resultant_var_index(), target);
4013 }
4014
4015 if (ABSL_PREDICT_FALSE(this_._internal_metadata_.have_unknown_fields())) {
4016 target =
4017 ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray(
4018 this_._internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream);
4019 }
4020 // @@protoc_insertion_point(serialize_to_array_end:operations_research.MPAbsConstraint)
4021 return target;
4022}
4023
4024#if defined(PROTOBUF_CUSTOM_VTABLE)
4025::size_t MPAbsConstraint::ByteSizeLong(const MessageLite& base) {
4026 const MPAbsConstraint& this_ = static_cast<const MPAbsConstraint&>(base);
4027#else // PROTOBUF_CUSTOM_VTABLE
4028::size_t MPAbsConstraint::ByteSizeLong() const {
4029 const MPAbsConstraint& this_ = *this;
4030#endif // PROTOBUF_CUSTOM_VTABLE
4031 // @@protoc_insertion_point(message_byte_size_start:operations_research.MPAbsConstraint)
4032 ::size_t total_size = 0;
4033
4034 ::uint32_t cached_has_bits = 0;
4035 // Prevent compiler warnings about cached_has_bits being unused
4036 (void)cached_has_bits;
4037
4038 ::_pbi::Prefetch5LinesFrom7Lines(&this_);
4039 cached_has_bits = this_._impl_._has_bits_[0];
4040 if (BatchCheckHasBit(cached_has_bits, 0x00000003U)) {
4041 // optional int32 var_index = 1;
4042 if (CheckHasBit(cached_has_bits, 0x00000001U)) {
4043 total_size += ::_pbi::WireFormatLite::Int32SizePlusOne(
4044 this_._internal_var_index());
4045 }
4046 // optional int32 resultant_var_index = 2;
4047 if (CheckHasBit(cached_has_bits, 0x00000002U)) {
4048 total_size += ::_pbi::WireFormatLite::Int32SizePlusOne(
4049 this_._internal_resultant_var_index());
4050 }
4051 }
4052 return this_.MaybeComputeUnknownFieldsSize(total_size,
4053 &this_._impl_._cached_size_);
4054}
4055
4056void MPAbsConstraint::MergeImpl(::google::protobuf::MessageLite& to_msg,
4057 const ::google::protobuf::MessageLite& from_msg) {
4058 auto* const _this =
4059 static_cast<MPAbsConstraint*>(&to_msg);
4060 auto& from = static_cast<const MPAbsConstraint&>(from_msg);
4061 if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) {
4062 from.CheckHasBitConsistency();
4063 }
4064 // @@protoc_insertion_point(class_specific_merge_from_start:operations_research.MPAbsConstraint)
4065 ABSL_DCHECK_NE(&from, _this);
4066 ::uint32_t cached_has_bits = 0;
4067 (void)cached_has_bits;
4068
4069 cached_has_bits = from._impl_._has_bits_[0];
4070 if (BatchCheckHasBit(cached_has_bits, 0x00000003U)) {
4071 if (CheckHasBit(cached_has_bits, 0x00000001U)) {
4072 _this->_impl_.var_index_ = from._impl_.var_index_;
4073 }
4074 if (CheckHasBit(cached_has_bits, 0x00000002U)) {
4075 _this->_impl_.resultant_var_index_ = from._impl_.resultant_var_index_;
4076 }
4077 }
4078 _this->_impl_._has_bits_[0] |= cached_has_bits;
4079 _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(
4080 from._internal_metadata_);
4081}
4082
4084 // @@protoc_insertion_point(class_specific_copy_from_start:operations_research.MPAbsConstraint)
4085 if (&from == this) return;
4086 Clear();
4087 MergeFrom(from);
4088}
4089
4091void MPAbsConstraint::InternalSwap(MPAbsConstraint* PROTOBUF_RESTRICT PROTOBUF_NONNULL other) {
4092 using ::std::swap;
4093 _internal_metadata_.InternalSwap(&other->_internal_metadata_);
4094 swap(_impl_._has_bits_[0], other->_impl_._has_bits_[0]);
4095 ::google::protobuf::internal::memswap<
4096 PROTOBUF_FIELD_OFFSET(MPAbsConstraint, _impl_.resultant_var_index_)
4097 + sizeof(MPAbsConstraint::_impl_.resultant_var_index_)
4098 - PROTOBUF_FIELD_OFFSET(MPAbsConstraint, _impl_.var_index_)>(
4099 reinterpret_cast<char*>(&_impl_.var_index_),
4100 reinterpret_cast<char*>(&other->_impl_.var_index_));
4101}
4102
4103::google::protobuf::Metadata MPAbsConstraint::GetMetadata() const {
4104 return ::google::protobuf::Message::GetMetadataImpl(GetClassData()->full());
4105}
4106// ===================================================================
4107
4108class MPArrayConstraint::_Internal {
4109 public:
4110 using HasBits =
4111 decltype(::std::declval<MPArrayConstraint>()._impl_._has_bits_);
4112 static constexpr ::int32_t kHasBitsOffset =
4113 8 * PROTOBUF_FIELD_OFFSET(MPArrayConstraint, _impl_._has_bits_);
4114};
4115
4116MPArrayConstraint::MPArrayConstraint(::google::protobuf::Arena* PROTOBUF_NULLABLE arena)
4117#if defined(PROTOBUF_CUSTOM_VTABLE)
4118 : ::google::protobuf::Message(arena, MPArrayConstraint_class_data_.base()) {
4119#else // PROTOBUF_CUSTOM_VTABLE
4120 : ::google::protobuf::Message(arena) {
4121#endif // PROTOBUF_CUSTOM_VTABLE
4122 SharedCtor(arena);
4123 // @@protoc_insertion_point(arena_constructor:operations_research.MPArrayConstraint)
4124}
4125PROTOBUF_NDEBUG_INLINE MPArrayConstraint::Impl_::Impl_(
4126 [[maybe_unused]] ::google::protobuf::internal::InternalVisibility visibility,
4127 [[maybe_unused]] ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const Impl_& from,
4128 [[maybe_unused]] const ::operations_research::MPArrayConstraint& from_msg)
4129 : _has_bits_{from._has_bits_},
4130 _cached_size_{0},
4131 var_index_{visibility, arena, from.var_index_} {}
4132
4134 ::google::protobuf::Arena* PROTOBUF_NULLABLE arena,
4135 const MPArrayConstraint& from)
4136#if defined(PROTOBUF_CUSTOM_VTABLE)
4137 : ::google::protobuf::Message(arena, MPArrayConstraint_class_data_.base()) {
4138#else // PROTOBUF_CUSTOM_VTABLE
4139 : ::google::protobuf::Message(arena) {
4140#endif // PROTOBUF_CUSTOM_VTABLE
4141 MPArrayConstraint* const _this = this;
4142 (void)_this;
4143 _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(
4144 from._internal_metadata_);
4145 new (&_impl_) Impl_(internal_visibility(), arena, from._impl_, from);
4146 _impl_.resultant_var_index_ = from._impl_.resultant_var_index_;
4147
4148 // @@protoc_insertion_point(copy_constructor:operations_research.MPArrayConstraint)
4149}
4150PROTOBUF_NDEBUG_INLINE MPArrayConstraint::Impl_::Impl_(
4151 [[maybe_unused]] ::google::protobuf::internal::InternalVisibility visibility,
4152 [[maybe_unused]] ::google::protobuf::Arena* PROTOBUF_NULLABLE arena)
4153 : _cached_size_{0},
4154 var_index_{visibility, arena} {}
4155
4156inline void MPArrayConstraint::SharedCtor(::_pb::Arena* PROTOBUF_NULLABLE arena) {
4157 new (&_impl_) Impl_(internal_visibility(), arena);
4158 _impl_.resultant_var_index_ = {};
4159}
4161 // @@protoc_insertion_point(destructor:operations_research.MPArrayConstraint)
4162 SharedDtor(*this);
4163}
4164inline void MPArrayConstraint::SharedDtor(MessageLite& self) {
4165 MPArrayConstraint& this_ = static_cast<MPArrayConstraint&>(self);
4166 if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) {
4167 this_.CheckHasBitConsistency();
4169 this_._internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>();
4170 ABSL_DCHECK(this_.GetArena() == nullptr);
4171 this_._impl_.~Impl_();
4172}
4173
4174inline void* PROTOBUF_NONNULL MPArrayConstraint::PlacementNew_(
4175 const void* PROTOBUF_NONNULL, void* PROTOBUF_NONNULL mem,
4176 ::google::protobuf::Arena* PROTOBUF_NULLABLE arena) {
4177 return ::new (mem) MPArrayConstraint(arena);
4178}
4179constexpr auto MPArrayConstraint::InternalNewImpl_() {
4180 constexpr auto arena_bits = ::google::protobuf::internal::EncodePlacementArenaOffsets({
4181 PROTOBUF_FIELD_OFFSET(MPArrayConstraint, _impl_.var_index_) +
4182 decltype(MPArrayConstraint::_impl_.var_index_)::
4183 InternalGetArenaOffset(
4184 ::google::protobuf::Message::internal_visibility()),
4185 });
4186 if (arena_bits.has_value()) {
4187 return ::google::protobuf::internal::MessageCreator::ZeroInit(
4188 sizeof(MPArrayConstraint), alignof(MPArrayConstraint), *arena_bits);
4189 } else {
4190 return ::google::protobuf::internal::MessageCreator(&MPArrayConstraint::PlacementNew_,
4191 sizeof(MPArrayConstraint),
4192 alignof(MPArrayConstraint));
4193 }
4194}
4196 return ::google::protobuf::internal::ClassDataFull{
4197 ::google::protobuf::internal::ClassData{
4199 &_table_.header,
4200 nullptr, // OnDemandRegisterArenaDtor
4201 nullptr, // IsInitialized
4202 &MPArrayConstraint::MergeImpl,
4203 ::google::protobuf::Message::GetNewImpl<MPArrayConstraint>(),
4204#if defined(PROTOBUF_CUSTOM_VTABLE)
4205 &MPArrayConstraint::SharedDtor,
4206 ::google::protobuf::Message::GetClearImpl<MPArrayConstraint>(), &MPArrayConstraint::ByteSizeLong,
4208#endif // PROTOBUF_CUSTOM_VTABLE
4209 PROTOBUF_FIELD_OFFSET(MPArrayConstraint, _impl_._cached_size_),
4210 false,
4211 },
4212 &MPArrayConstraint::kDescriptorMethods,
4214 nullptr, // tracker
4215 };
4216}
4217
4218PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 const
4219 ::google::protobuf::internal::ClassDataFull MPArrayConstraint_class_data_ =
4221
4222PROTOBUF_ATTRIBUTE_WEAK const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL
4223MPArrayConstraint::GetClassData() const {
4224 ::google::protobuf::internal::PrefetchToLocalCache(&MPArrayConstraint_class_data_);
4225 ::google::protobuf::internal::PrefetchToLocalCache(MPArrayConstraint_class_data_.tc_table);
4226 return MPArrayConstraint_class_data_.base();
4228PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1
4229const ::_pbi::TcParseTable<1, 2, 0, 0, 2>
4230MPArrayConstraint::_table_ = {
4231 {
4232 PROTOBUF_FIELD_OFFSET(MPArrayConstraint, _impl_._has_bits_),
4233 0, // no _extensions_
4234 2, 8, // max_field_number, fast_idx_mask
4235 offsetof(decltype(_table_), field_lookup_table),
4236 4294967292, // skipmap
4237 offsetof(decltype(_table_), field_entries),
4238 2, // num_field_entries
4239 0, // num_aux_entries
4240 offsetof(decltype(_table_), field_names), // no aux_entries
4242 nullptr, // post_loop_handler
4243 ::_pbi::TcParser::GenericFallback, // fallback
4244 #ifdef PROTOBUF_PREFETCH_PARSE_TABLE
4245 ::_pbi::TcParser::GetTable<::operations_research::MPArrayConstraint>(), // to_prefetch
4246 #endif // PROTOBUF_PREFETCH_PARSE_TABLE
4247 }, {{
4248 // optional int32 resultant_var_index = 2;
4249 {::_pbi::TcParser::SingularVarintNoZag1<::uint32_t, offsetof(MPArrayConstraint, _impl_.resultant_var_index_), 1>(),
4250 {16, 1, 0,
4251 PROTOBUF_FIELD_OFFSET(MPArrayConstraint, _impl_.resultant_var_index_)}},
4252 // repeated int32 var_index = 1;
4253 {::_pbi::TcParser::FastV32R1,
4254 {8, 0, 0,
4255 PROTOBUF_FIELD_OFFSET(MPArrayConstraint, _impl_.var_index_)}},
4256 }}, {{
4257 65535, 65535
4258 }}, {{
4259 // repeated int32 var_index = 1;
4260 {PROTOBUF_FIELD_OFFSET(MPArrayConstraint, _impl_.var_index_), _Internal::kHasBitsOffset + 0, 0, (0 | ::_fl::kFcRepeated | ::_fl::kInt32)},
4261 // optional int32 resultant_var_index = 2;
4262 {PROTOBUF_FIELD_OFFSET(MPArrayConstraint, _impl_.resultant_var_index_), _Internal::kHasBitsOffset + 1, 0, (0 | ::_fl::kFcOptional | ::_fl::kInt32)},
4263 }},
4264 // no aux_entries
4265 {{
4266 }},
4267};
4268PROTOBUF_NOINLINE void MPArrayConstraint::Clear() {
4269// @@protoc_insertion_point(message_clear_start:operations_research.MPArrayConstraint)
4270 ::google::protobuf::internal::TSanWrite(&_impl_);
4271 ::uint32_t cached_has_bits = 0;
4272 // Prevent compiler warnings about cached_has_bits being unused
4273 (void) cached_has_bits;
4274
4275 cached_has_bits = _impl_._has_bits_[0];
4276 if (CheckHasBitForRepeated(cached_has_bits, 0x00000001U)) {
4277 _impl_.var_index_.Clear();
4278 }
4279 _impl_.resultant_var_index_ = 0;
4280 _impl_._has_bits_.Clear();
4281 _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>();
4282}
4283
4284#if defined(PROTOBUF_CUSTOM_VTABLE)
4285::uint8_t* PROTOBUF_NONNULL MPArrayConstraint::_InternalSerialize(
4286 const ::google::protobuf::MessageLite& base, ::uint8_t* PROTOBUF_NONNULL target,
4287 ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) {
4288 const MPArrayConstraint& this_ = static_cast<const MPArrayConstraint&>(base);
4289#else // PROTOBUF_CUSTOM_VTABLE
4290::uint8_t* PROTOBUF_NONNULL MPArrayConstraint::_InternalSerialize(
4291 ::uint8_t* PROTOBUF_NONNULL target,
4292 ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const {
4293 const MPArrayConstraint& this_ = *this;
4294#endif // PROTOBUF_CUSTOM_VTABLE
4295 if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) {
4296 this_.CheckHasBitConsistency();
4297 }
4298 // @@protoc_insertion_point(serialize_to_array_start:operations_research.MPArrayConstraint)
4299 ::uint32_t cached_has_bits = 0;
4300 (void)cached_has_bits;
4301
4302 cached_has_bits = this_._impl_._has_bits_[0];
4303 // repeated int32 var_index = 1;
4304 if (CheckHasBitForRepeated(cached_has_bits, 0x00000001U)) {
4305 for (int i = 0, n = this_._internal_var_index_size(); i < n; ++i) {
4306 target = stream->EnsureSpace(target);
4307 target = ::_pbi::WireFormatLite::WriteInt32ToArray(
4308 1, this_._internal_var_index().Get(i), target);
4309 }
4310 }
4311
4312 // optional int32 resultant_var_index = 2;
4313 if (CheckHasBit(cached_has_bits, 0x00000002U)) {
4314 target =
4315 ::google::protobuf::internal::WireFormatLite::WriteInt32ToArrayWithField<2>(
4316 stream, this_._internal_resultant_var_index(), target);
4317 }
4318
4319 if (ABSL_PREDICT_FALSE(this_._internal_metadata_.have_unknown_fields())) {
4320 target =
4321 ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray(
4322 this_._internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream);
4323 }
4324 // @@protoc_insertion_point(serialize_to_array_end:operations_research.MPArrayConstraint)
4325 return target;
4326}
4327
4328#if defined(PROTOBUF_CUSTOM_VTABLE)
4329::size_t MPArrayConstraint::ByteSizeLong(const MessageLite& base) {
4330 const MPArrayConstraint& this_ = static_cast<const MPArrayConstraint&>(base);
4331#else // PROTOBUF_CUSTOM_VTABLE
4332::size_t MPArrayConstraint::ByteSizeLong() const {
4333 const MPArrayConstraint& this_ = *this;
4334#endif // PROTOBUF_CUSTOM_VTABLE
4335 // @@protoc_insertion_point(message_byte_size_start:operations_research.MPArrayConstraint)
4336 ::size_t total_size = 0;
4337
4338 ::uint32_t cached_has_bits = 0;
4339 // Prevent compiler warnings about cached_has_bits being unused
4340 (void)cached_has_bits;
4341
4342 ::_pbi::Prefetch5LinesFrom7Lines(&this_);
4343 cached_has_bits = this_._impl_._has_bits_[0];
4344 if (BatchCheckHasBit(cached_has_bits, 0x00000003U)) {
4345 // repeated int32 var_index = 1;
4346 if (CheckHasBitForRepeated(cached_has_bits, 0x00000001U)) {
4347 ::size_t data_size = ::_pbi::WireFormatLite::Int32Size(
4348 this_._internal_var_index());
4349 ::size_t tag_size = ::size_t{1} *
4350 ::_pbi::FromIntSize(this_._internal_var_index_size());
4351 total_size += tag_size + data_size;
4352 }
4353 // optional int32 resultant_var_index = 2;
4354 if (CheckHasBit(cached_has_bits, 0x00000002U)) {
4355 total_size += ::_pbi::WireFormatLite::Int32SizePlusOne(
4356 this_._internal_resultant_var_index());
4357 }
4358 }
4359 return this_.MaybeComputeUnknownFieldsSize(total_size,
4360 &this_._impl_._cached_size_);
4361}
4362
4363void MPArrayConstraint::MergeImpl(::google::protobuf::MessageLite& to_msg,
4364 const ::google::protobuf::MessageLite& from_msg) {
4365 auto* const _this =
4366 static_cast<MPArrayConstraint*>(&to_msg);
4367 auto& from = static_cast<const MPArrayConstraint&>(from_msg);
4368 if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) {
4369 from.CheckHasBitConsistency();
4370 }
4371 // @@protoc_insertion_point(class_specific_merge_from_start:operations_research.MPArrayConstraint)
4372 ABSL_DCHECK_NE(&from, _this);
4373 ::uint32_t cached_has_bits = 0;
4374 (void)cached_has_bits;
4375
4376 cached_has_bits = from._impl_._has_bits_[0];
4377 if (BatchCheckHasBit(cached_has_bits, 0x00000003U)) {
4378 if (CheckHasBitForRepeated(cached_has_bits, 0x00000001U)) {
4379 _this->_internal_mutable_var_index()->MergeFrom(from._internal_var_index());
4380 }
4381 if (CheckHasBit(cached_has_bits, 0x00000002U)) {
4382 _this->_impl_.resultant_var_index_ = from._impl_.resultant_var_index_;
4383 }
4384 }
4385 _this->_impl_._has_bits_[0] |= cached_has_bits;
4386 _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(
4387 from._internal_metadata_);
4388}
4389
4391 // @@protoc_insertion_point(class_specific_copy_from_start:operations_research.MPArrayConstraint)
4392 if (&from == this) return;
4393 Clear();
4394 MergeFrom(from);
4395}
4396
4397
4398void MPArrayConstraint::InternalSwap(MPArrayConstraint* PROTOBUF_RESTRICT PROTOBUF_NONNULL other) {
4399 using ::std::swap;
4400 _internal_metadata_.InternalSwap(&other->_internal_metadata_);
4401 swap(_impl_._has_bits_[0], other->_impl_._has_bits_[0]);
4402 _impl_.var_index_.InternalSwap(&other->_impl_.var_index_);
4403 swap(_impl_.resultant_var_index_, other->_impl_.resultant_var_index_);
4404}
4405
4406::google::protobuf::Metadata MPArrayConstraint::GetMetadata() const {
4407 return ::google::protobuf::Message::GetMetadataImpl(GetClassData()->full());
4408}
4409// ===================================================================
4410
4411class MPArrayWithConstantConstraint::_Internal {
4412 public:
4413 using HasBits =
4414 decltype(::std::declval<MPArrayWithConstantConstraint>()._impl_._has_bits_);
4415 static constexpr ::int32_t kHasBitsOffset =
4416 8 * PROTOBUF_FIELD_OFFSET(MPArrayWithConstantConstraint, _impl_._has_bits_);
4417};
4418
4419MPArrayWithConstantConstraint::MPArrayWithConstantConstraint(::google::protobuf::Arena* PROTOBUF_NULLABLE arena)
4420#if defined(PROTOBUF_CUSTOM_VTABLE)
4421 : ::google::protobuf::Message(arena, MPArrayWithConstantConstraint_class_data_.base()) {
4422#else // PROTOBUF_CUSTOM_VTABLE
4423 : ::google::protobuf::Message(arena) {
4424#endif // PROTOBUF_CUSTOM_VTABLE
4425 SharedCtor(arena);
4426 // @@protoc_insertion_point(arena_constructor:operations_research.MPArrayWithConstantConstraint)
4427}
4428PROTOBUF_NDEBUG_INLINE MPArrayWithConstantConstraint::Impl_::Impl_(
4429 [[maybe_unused]] ::google::protobuf::internal::InternalVisibility visibility,
4430 [[maybe_unused]] ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const Impl_& from,
4431 [[maybe_unused]] const ::operations_research::MPArrayWithConstantConstraint& from_msg)
4432 : _has_bits_{from._has_bits_},
4433 _cached_size_{0},
4434 var_index_{visibility, arena, from.var_index_} {}
4435
4437 ::google::protobuf::Arena* PROTOBUF_NULLABLE arena,
4439#if defined(PROTOBUF_CUSTOM_VTABLE)
4440 : ::google::protobuf::Message(arena, MPArrayWithConstantConstraint_class_data_.base()) {
4441#else // PROTOBUF_CUSTOM_VTABLE
4442 : ::google::protobuf::Message(arena) {
4443#endif // PROTOBUF_CUSTOM_VTABLE
4444 MPArrayWithConstantConstraint* const _this = this;
4445 (void)_this;
4446 _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(
4447 from._internal_metadata_);
4448 new (&_impl_) Impl_(internal_visibility(), arena, from._impl_, from);
4449 ::memcpy(reinterpret_cast<char*>(&_impl_) +
4450 offsetof(Impl_, constant_),
4451 reinterpret_cast<const char*>(&from._impl_) +
4452 offsetof(Impl_, constant_),
4453 offsetof(Impl_, resultant_var_index_) -
4454 offsetof(Impl_, constant_) +
4455 sizeof(Impl_::resultant_var_index_));
4456
4457 // @@protoc_insertion_point(copy_constructor:operations_research.MPArrayWithConstantConstraint)
4458}
4459PROTOBUF_NDEBUG_INLINE MPArrayWithConstantConstraint::Impl_::Impl_(
4460 [[maybe_unused]] ::google::protobuf::internal::InternalVisibility visibility,
4461 [[maybe_unused]] ::google::protobuf::Arena* PROTOBUF_NULLABLE arena)
4462 : _cached_size_{0},
4463 var_index_{visibility, arena} {}
4464
4465inline void MPArrayWithConstantConstraint::SharedCtor(::_pb::Arena* PROTOBUF_NULLABLE arena) {
4466 new (&_impl_) Impl_(internal_visibility(), arena);
4467 ::memset(reinterpret_cast<char*>(&_impl_) +
4468 offsetof(Impl_, constant_),
4469 0,
4470 offsetof(Impl_, resultant_var_index_) -
4471 offsetof(Impl_, constant_) +
4472 sizeof(Impl_::resultant_var_index_));
4473}
4475 // @@protoc_insertion_point(destructor:operations_research.MPArrayWithConstantConstraint)
4476 SharedDtor(*this);
4477}
4478inline void MPArrayWithConstantConstraint::SharedDtor(MessageLite& self) {
4480 if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) {
4481 this_.CheckHasBitConsistency();
4482 }
4483 this_._internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>();
4484 ABSL_DCHECK(this_.GetArena() == nullptr);
4485 this_._impl_.~Impl_();
4486}
4487
4488inline void* PROTOBUF_NONNULL MPArrayWithConstantConstraint::PlacementNew_(
4489 const void* PROTOBUF_NONNULL, void* PROTOBUF_NONNULL mem,
4490 ::google::protobuf::Arena* PROTOBUF_NULLABLE arena) {
4491 return ::new (mem) MPArrayWithConstantConstraint(arena);
4492}
4493constexpr auto MPArrayWithConstantConstraint::InternalNewImpl_() {
4494 constexpr auto arena_bits = ::google::protobuf::internal::EncodePlacementArenaOffsets({
4495 PROTOBUF_FIELD_OFFSET(MPArrayWithConstantConstraint, _impl_.var_index_) +
4496 decltype(MPArrayWithConstantConstraint::_impl_.var_index_)::
4497 InternalGetArenaOffset(
4498 ::google::protobuf::Message::internal_visibility()),
4499 });
4500 if (arena_bits.has_value()) {
4501 return ::google::protobuf::internal::MessageCreator::ZeroInit(
4502 sizeof(MPArrayWithConstantConstraint), alignof(MPArrayWithConstantConstraint), *arena_bits);
4503 } else {
4504 return ::google::protobuf::internal::MessageCreator(&MPArrayWithConstantConstraint::PlacementNew_,
4505 sizeof(MPArrayWithConstantConstraint),
4506 alignof(MPArrayWithConstantConstraint));
4507 }
4508}
4510 return ::google::protobuf::internal::ClassDataFull{
4511 ::google::protobuf::internal::ClassData{
4513 &_table_.header,
4514 nullptr, // OnDemandRegisterArenaDtor
4515 nullptr, // IsInitialized
4516 &MPArrayWithConstantConstraint::MergeImpl,
4517 ::google::protobuf::Message::GetNewImpl<MPArrayWithConstantConstraint>(),
4518#if defined(PROTOBUF_CUSTOM_VTABLE)
4519 &MPArrayWithConstantConstraint::SharedDtor,
4520 ::google::protobuf::Message::GetClearImpl<MPArrayWithConstantConstraint>(), &MPArrayWithConstantConstraint::ByteSizeLong,
4522#endif // PROTOBUF_CUSTOM_VTABLE
4523 PROTOBUF_FIELD_OFFSET(MPArrayWithConstantConstraint, _impl_._cached_size_),
4524 false,
4525 },
4526 &MPArrayWithConstantConstraint::kDescriptorMethods,
4528 nullptr, // tracker
4529 };
4530}
4531
4532PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 const
4533 ::google::protobuf::internal::ClassDataFull MPArrayWithConstantConstraint_class_data_ =
4535
4536PROTOBUF_ATTRIBUTE_WEAK const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL
4537MPArrayWithConstantConstraint::GetClassData() const {
4538 ::google::protobuf::internal::PrefetchToLocalCache(&MPArrayWithConstantConstraint_class_data_);
4539 ::google::protobuf::internal::PrefetchToLocalCache(MPArrayWithConstantConstraint_class_data_.tc_table);
4541}
4542PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1
4543const ::_pbi::TcParseTable<2, 3, 0, 0, 2>
4544MPArrayWithConstantConstraint::_table_ = {
4545 {
4546 PROTOBUF_FIELD_OFFSET(MPArrayWithConstantConstraint, _impl_._has_bits_),
4547 0, // no _extensions_
4548 3, 24, // max_field_number, fast_idx_mask
4549 offsetof(decltype(_table_), field_lookup_table),
4550 4294967288, // skipmap
4551 offsetof(decltype(_table_), field_entries),
4552 3, // num_field_entries
4553 0, // num_aux_entries
4554 offsetof(decltype(_table_), field_names), // no aux_entries
4556 nullptr, // post_loop_handler
4557 ::_pbi::TcParser::GenericFallback, // fallback
4558 #ifdef PROTOBUF_PREFETCH_PARSE_TABLE
4559 ::_pbi::TcParser::GetTable<::operations_research::MPArrayWithConstantConstraint>(), // to_prefetch
4560 #endif // PROTOBUF_PREFETCH_PARSE_TABLE
4561 }, {{
4562 {::_pbi::TcParser::MiniParse, {}},
4563 // repeated int32 var_index = 1;
4564 {::_pbi::TcParser::FastV32R1,
4565 {8, 0, 0,
4566 PROTOBUF_FIELD_OFFSET(MPArrayWithConstantConstraint, _impl_.var_index_)}},
4567 // optional double constant = 2;
4568 {::_pbi::TcParser::FastF64S1,
4569 {17, 1, 0,
4570 PROTOBUF_FIELD_OFFSET(MPArrayWithConstantConstraint, _impl_.constant_)}},
4571 // optional int32 resultant_var_index = 3;
4572 {::_pbi::TcParser::SingularVarintNoZag1<::uint32_t, offsetof(MPArrayWithConstantConstraint, _impl_.resultant_var_index_), 2>(),
4573 {24, 2, 0,
4574 PROTOBUF_FIELD_OFFSET(MPArrayWithConstantConstraint, _impl_.resultant_var_index_)}},
4575 }}, {{
4576 65535, 65535
4577 }}, {{
4578 // repeated int32 var_index = 1;
4579 {PROTOBUF_FIELD_OFFSET(MPArrayWithConstantConstraint, _impl_.var_index_), _Internal::kHasBitsOffset + 0, 0, (0 | ::_fl::kFcRepeated | ::_fl::kInt32)},
4580 // optional double constant = 2;
4581 {PROTOBUF_FIELD_OFFSET(MPArrayWithConstantConstraint, _impl_.constant_), _Internal::kHasBitsOffset + 1, 0, (0 | ::_fl::kFcOptional | ::_fl::kDouble)},
4582 // optional int32 resultant_var_index = 3;
4583 {PROTOBUF_FIELD_OFFSET(MPArrayWithConstantConstraint, _impl_.resultant_var_index_), _Internal::kHasBitsOffset + 2, 0, (0 | ::_fl::kFcOptional | ::_fl::kInt32)},
4584 }},
4585 // no aux_entries
4586 {{
4587 }},
4588};
4589PROTOBUF_NOINLINE void MPArrayWithConstantConstraint::Clear() {
4590// @@protoc_insertion_point(message_clear_start:operations_research.MPArrayWithConstantConstraint)
4591 ::google::protobuf::internal::TSanWrite(&_impl_);
4592 ::uint32_t cached_has_bits = 0;
4593 // Prevent compiler warnings about cached_has_bits being unused
4594 (void) cached_has_bits;
4595
4596 cached_has_bits = _impl_._has_bits_[0];
4597 if (CheckHasBitForRepeated(cached_has_bits, 0x00000001U)) {
4598 _impl_.var_index_.Clear();
4599 }
4600 if (BatchCheckHasBit(cached_has_bits, 0x00000006U)) {
4601 ::memset(&_impl_.constant_, 0, static_cast<::size_t>(
4602 reinterpret_cast<char*>(&_impl_.resultant_var_index_) -
4603 reinterpret_cast<char*>(&_impl_.constant_)) + sizeof(_impl_.resultant_var_index_));
4604 }
4605 _impl_._has_bits_.Clear();
4606 _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>();
4607}
4608
4609#if defined(PROTOBUF_CUSTOM_VTABLE)
4610::uint8_t* PROTOBUF_NONNULL MPArrayWithConstantConstraint::_InternalSerialize(
4611 const ::google::protobuf::MessageLite& base, ::uint8_t* PROTOBUF_NONNULL target,
4612 ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) {
4613 const MPArrayWithConstantConstraint& this_ = static_cast<const MPArrayWithConstantConstraint&>(base);
4614#else // PROTOBUF_CUSTOM_VTABLE
4615::uint8_t* PROTOBUF_NONNULL MPArrayWithConstantConstraint::_InternalSerialize(
4616 ::uint8_t* PROTOBUF_NONNULL target,
4617 ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const {
4618 const MPArrayWithConstantConstraint& this_ = *this;
4619#endif // PROTOBUF_CUSTOM_VTABLE
4620 if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) {
4621 this_.CheckHasBitConsistency();
4622 }
4623 // @@protoc_insertion_point(serialize_to_array_start:operations_research.MPArrayWithConstantConstraint)
4624 ::uint32_t cached_has_bits = 0;
4625 (void)cached_has_bits;
4626
4627 cached_has_bits = this_._impl_._has_bits_[0];
4628 // repeated int32 var_index = 1;
4629 if (CheckHasBitForRepeated(cached_has_bits, 0x00000001U)) {
4630 for (int i = 0, n = this_._internal_var_index_size(); i < n; ++i) {
4631 target = stream->EnsureSpace(target);
4632 target = ::_pbi::WireFormatLite::WriteInt32ToArray(
4633 1, this_._internal_var_index().Get(i), target);
4634 }
4635 }
4636
4637 // optional double constant = 2;
4638 if (CheckHasBit(cached_has_bits, 0x00000002U)) {
4639 target = stream->EnsureSpace(target);
4640 target = ::_pbi::WireFormatLite::WriteDoubleToArray(
4641 2, this_._internal_constant(), target);
4642 }
4643
4644 // optional int32 resultant_var_index = 3;
4645 if (CheckHasBit(cached_has_bits, 0x00000004U)) {
4646 target =
4647 ::google::protobuf::internal::WireFormatLite::WriteInt32ToArrayWithField<3>(
4648 stream, this_._internal_resultant_var_index(), target);
4649 }
4650
4651 if (ABSL_PREDICT_FALSE(this_._internal_metadata_.have_unknown_fields())) {
4652 target =
4653 ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray(
4654 this_._internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream);
4655 }
4656 // @@protoc_insertion_point(serialize_to_array_end:operations_research.MPArrayWithConstantConstraint)
4657 return target;
4658}
4659
4660#if defined(PROTOBUF_CUSTOM_VTABLE)
4662 const MPArrayWithConstantConstraint& this_ = static_cast<const MPArrayWithConstantConstraint&>(base);
4663#else // PROTOBUF_CUSTOM_VTABLE
4665 const MPArrayWithConstantConstraint& this_ = *this;
4666#endif // PROTOBUF_CUSTOM_VTABLE
4667 // @@protoc_insertion_point(message_byte_size_start:operations_research.MPArrayWithConstantConstraint)
4668 ::size_t total_size = 0;
4669
4670 ::uint32_t cached_has_bits = 0;
4671 // Prevent compiler warnings about cached_has_bits being unused
4672 (void)cached_has_bits;
4674 ::_pbi::Prefetch5LinesFrom7Lines(&this_);
4675 cached_has_bits = this_._impl_._has_bits_[0];
4676 total_size += static_cast<bool>(0x00000002U & cached_has_bits) * 9;
4677 if (BatchCheckHasBit(cached_has_bits, 0x00000005U)) {
4678 // repeated int32 var_index = 1;
4679 if (CheckHasBitForRepeated(cached_has_bits, 0x00000001U)) {
4680 ::size_t data_size = ::_pbi::WireFormatLite::Int32Size(
4681 this_._internal_var_index());
4682 ::size_t tag_size = ::size_t{1} *
4683 ::_pbi::FromIntSize(this_._internal_var_index_size());
4684 total_size += tag_size + data_size;
4685 }
4686 // optional int32 resultant_var_index = 3;
4687 if (CheckHasBit(cached_has_bits, 0x00000004U)) {
4688 total_size += ::_pbi::WireFormatLite::Int32SizePlusOne(
4689 this_._internal_resultant_var_index());
4690 }
4691 }
4692 return this_.MaybeComputeUnknownFieldsSize(total_size,
4693 &this_._impl_._cached_size_);
4694}
4695
4696void MPArrayWithConstantConstraint::MergeImpl(::google::protobuf::MessageLite& to_msg,
4697 const ::google::protobuf::MessageLite& from_msg) {
4698 auto* const _this =
4699 static_cast<MPArrayWithConstantConstraint*>(&to_msg);
4700 auto& from = static_cast<const MPArrayWithConstantConstraint&>(from_msg);
4701 if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) {
4702 from.CheckHasBitConsistency();
4703 }
4704 // @@protoc_insertion_point(class_specific_merge_from_start:operations_research.MPArrayWithConstantConstraint)
4705 ABSL_DCHECK_NE(&from, _this);
4706 ::uint32_t cached_has_bits = 0;
4707 (void)cached_has_bits;
4708
4709 cached_has_bits = from._impl_._has_bits_[0];
4710 if (BatchCheckHasBit(cached_has_bits, 0x00000007U)) {
4711 if (CheckHasBitForRepeated(cached_has_bits, 0x00000001U)) {
4712 _this->_internal_mutable_var_index()->MergeFrom(from._internal_var_index());
4713 }
4714 if (CheckHasBit(cached_has_bits, 0x00000002U)) {
4715 _this->_impl_.constant_ = from._impl_.constant_;
4716 }
4717 if (CheckHasBit(cached_has_bits, 0x00000004U)) {
4718 _this->_impl_.resultant_var_index_ = from._impl_.resultant_var_index_;
4719 }
4720 }
4721 _this->_impl_._has_bits_[0] |= cached_has_bits;
4722 _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(
4723 from._internal_metadata_);
4724}
4725
4727 // @@protoc_insertion_point(class_specific_copy_from_start:operations_research.MPArrayWithConstantConstraint)
4728 if (&from == this) return;
4729 Clear();
4730 MergeFrom(from);
4731}
4732
4733
4734void MPArrayWithConstantConstraint::InternalSwap(MPArrayWithConstantConstraint* PROTOBUF_RESTRICT PROTOBUF_NONNULL other) {
4735 using ::std::swap;
4736 _internal_metadata_.InternalSwap(&other->_internal_metadata_);
4737 swap(_impl_._has_bits_[0], other->_impl_._has_bits_[0]);
4738 _impl_.var_index_.InternalSwap(&other->_impl_.var_index_);
4739 ::google::protobuf::internal::memswap<
4740 PROTOBUF_FIELD_OFFSET(MPArrayWithConstantConstraint, _impl_.resultant_var_index_)
4741 + sizeof(MPArrayWithConstantConstraint::_impl_.resultant_var_index_)
4742 - PROTOBUF_FIELD_OFFSET(MPArrayWithConstantConstraint, _impl_.constant_)>(
4743 reinterpret_cast<char*>(&_impl_.constant_),
4744 reinterpret_cast<char*>(&other->_impl_.constant_));
4745}
4746
4747::google::protobuf::Metadata MPArrayWithConstantConstraint::GetMetadata() const {
4748 return ::google::protobuf::Message::GetMetadataImpl(GetClassData()->full());
4749}
4750// ===================================================================
4751
4752class MPQuadraticObjective::_Internal {
4753 public:
4754 using HasBits =
4755 decltype(::std::declval<MPQuadraticObjective>()._impl_._has_bits_);
4756 static constexpr ::int32_t kHasBitsOffset =
4757 8 * PROTOBUF_FIELD_OFFSET(MPQuadraticObjective, _impl_._has_bits_);
4758};
4759
4760MPQuadraticObjective::MPQuadraticObjective(::google::protobuf::Arena* PROTOBUF_NULLABLE arena)
4761#if defined(PROTOBUF_CUSTOM_VTABLE)
4762 : ::google::protobuf::Message(arena, MPQuadraticObjective_class_data_.base()) {
4763#else // PROTOBUF_CUSTOM_VTABLE
4764 : ::google::protobuf::Message(arena) {
4765#endif // PROTOBUF_CUSTOM_VTABLE
4766 SharedCtor(arena);
4767 // @@protoc_insertion_point(arena_constructor:operations_research.MPQuadraticObjective)
4768}
4769PROTOBUF_NDEBUG_INLINE MPQuadraticObjective::Impl_::Impl_(
4770 [[maybe_unused]] ::google::protobuf::internal::InternalVisibility visibility,
4771 [[maybe_unused]] ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const Impl_& from,
4772 [[maybe_unused]] const ::operations_research::MPQuadraticObjective& from_msg)
4773 : _has_bits_{from._has_bits_},
4774 _cached_size_{0},
4775 qvar1_index_{visibility, arena, from.qvar1_index_},
4776 qvar2_index_{visibility, arena, from.qvar2_index_},
4777 coefficient_{visibility, arena, from.coefficient_} {}
4778
4780 ::google::protobuf::Arena* PROTOBUF_NULLABLE arena,
4781 const MPQuadraticObjective& from)
4782#if defined(PROTOBUF_CUSTOM_VTABLE)
4783 : ::google::protobuf::Message(arena, MPQuadraticObjective_class_data_.base()) {
4784#else // PROTOBUF_CUSTOM_VTABLE
4785 : ::google::protobuf::Message(arena) {
4786#endif // PROTOBUF_CUSTOM_VTABLE
4787 MPQuadraticObjective* const _this = this;
4788 (void)_this;
4789 _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(
4790 from._internal_metadata_);
4791 new (&_impl_) Impl_(internal_visibility(), arena, from._impl_, from);
4792
4793 // @@protoc_insertion_point(copy_constructor:operations_research.MPQuadraticObjective)
4794}
4795PROTOBUF_NDEBUG_INLINE MPQuadraticObjective::Impl_::Impl_(
4796 [[maybe_unused]] ::google::protobuf::internal::InternalVisibility visibility,
4797 [[maybe_unused]] ::google::protobuf::Arena* PROTOBUF_NULLABLE arena)
4798 : _cached_size_{0},
4799 qvar1_index_{visibility, arena},
4800 qvar2_index_{visibility, arena},
4801 coefficient_{visibility, arena} {}
4802
4803inline void MPQuadraticObjective::SharedCtor(::_pb::Arena* PROTOBUF_NULLABLE arena) {
4804 new (&_impl_) Impl_(internal_visibility(), arena);
4805}
4807 // @@protoc_insertion_point(destructor:operations_research.MPQuadraticObjective)
4808 SharedDtor(*this);
4809}
4810inline void MPQuadraticObjective::SharedDtor(MessageLite& self) {
4811 MPQuadraticObjective& this_ = static_cast<MPQuadraticObjective&>(self);
4812 if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) {
4813 this_.CheckHasBitConsistency();
4814 }
4815 this_._internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>();
4816 ABSL_DCHECK(this_.GetArena() == nullptr);
4817 this_._impl_.~Impl_();
4818}
4819
4820inline void* PROTOBUF_NONNULL MPQuadraticObjective::PlacementNew_(
4821 const void* PROTOBUF_NONNULL, void* PROTOBUF_NONNULL mem,
4822 ::google::protobuf::Arena* PROTOBUF_NULLABLE arena) {
4823 return ::new (mem) MPQuadraticObjective(arena);
4824}
4825constexpr auto MPQuadraticObjective::InternalNewImpl_() {
4826 constexpr auto arena_bits = ::google::protobuf::internal::EncodePlacementArenaOffsets({
4827 PROTOBUF_FIELD_OFFSET(MPQuadraticObjective, _impl_.qvar1_index_) +
4828 decltype(MPQuadraticObjective::_impl_.qvar1_index_)::
4829 InternalGetArenaOffset(
4830 ::google::protobuf::Message::internal_visibility()),
4831 PROTOBUF_FIELD_OFFSET(MPQuadraticObjective, _impl_.qvar2_index_) +
4832 decltype(MPQuadraticObjective::_impl_.qvar2_index_)::
4833 InternalGetArenaOffset(
4834 ::google::protobuf::Message::internal_visibility()),
4835 PROTOBUF_FIELD_OFFSET(MPQuadraticObjective, _impl_.coefficient_) +
4836 decltype(MPQuadraticObjective::_impl_.coefficient_)::
4837 InternalGetArenaOffset(
4838 ::google::protobuf::Message::internal_visibility()),
4839 });
4840 if (arena_bits.has_value()) {
4841 return ::google::protobuf::internal::MessageCreator::ZeroInit(
4842 sizeof(MPQuadraticObjective), alignof(MPQuadraticObjective), *arena_bits);
4843 } else {
4844 return ::google::protobuf::internal::MessageCreator(&MPQuadraticObjective::PlacementNew_,
4845 sizeof(MPQuadraticObjective),
4846 alignof(MPQuadraticObjective));
4847 }
4848}
4850 return ::google::protobuf::internal::ClassDataFull{
4851 ::google::protobuf::internal::ClassData{
4853 &_table_.header,
4854 nullptr, // OnDemandRegisterArenaDtor
4855 nullptr, // IsInitialized
4856 &MPQuadraticObjective::MergeImpl,
4857 ::google::protobuf::Message::GetNewImpl<MPQuadraticObjective>(),
4858#if defined(PROTOBUF_CUSTOM_VTABLE)
4859 &MPQuadraticObjective::SharedDtor,
4860 ::google::protobuf::Message::GetClearImpl<MPQuadraticObjective>(), &MPQuadraticObjective::ByteSizeLong,
4862#endif // PROTOBUF_CUSTOM_VTABLE
4863 PROTOBUF_FIELD_OFFSET(MPQuadraticObjective, _impl_._cached_size_),
4864 false,
4865 },
4866 &MPQuadraticObjective::kDescriptorMethods,
4868 nullptr, // tracker
4869 };
4870}
4871
4872PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 const
4873 ::google::protobuf::internal::ClassDataFull MPQuadraticObjective_class_data_ =
4875
4876PROTOBUF_ATTRIBUTE_WEAK const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL
4877MPQuadraticObjective::GetClassData() const {
4878 ::google::protobuf::internal::PrefetchToLocalCache(&MPQuadraticObjective_class_data_);
4879 ::google::protobuf::internal::PrefetchToLocalCache(MPQuadraticObjective_class_data_.tc_table);
4881}
4882PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1
4883const ::_pbi::TcParseTable<2, 3, 0, 0, 2>
4884MPQuadraticObjective::_table_ = {
4885 {
4886 PROTOBUF_FIELD_OFFSET(MPQuadraticObjective, _impl_._has_bits_),
4887 0, // no _extensions_
4888 3, 24, // max_field_number, fast_idx_mask
4889 offsetof(decltype(_table_), field_lookup_table),
4890 4294967288, // skipmap
4891 offsetof(decltype(_table_), field_entries),
4892 3, // num_field_entries
4893 0, // num_aux_entries
4894 offsetof(decltype(_table_), field_names), // no aux_entries
4896 nullptr, // post_loop_handler
4897 ::_pbi::TcParser::GenericFallback, // fallback
4898 #ifdef PROTOBUF_PREFETCH_PARSE_TABLE
4899 ::_pbi::TcParser::GetTable<::operations_research::MPQuadraticObjective>(), // to_prefetch
4900 #endif // PROTOBUF_PREFETCH_PARSE_TABLE
4901 }, {{
4902 {::_pbi::TcParser::MiniParse, {}},
4903 // repeated int32 qvar1_index = 1;
4904 {::_pbi::TcParser::FastV32R1,
4905 {8, 0, 0,
4906 PROTOBUF_FIELD_OFFSET(MPQuadraticObjective, _impl_.qvar1_index_)}},
4907 // repeated int32 qvar2_index = 2;
4908 {::_pbi::TcParser::FastV32R1,
4909 {16, 1, 0,
4910 PROTOBUF_FIELD_OFFSET(MPQuadraticObjective, _impl_.qvar2_index_)}},
4911 // repeated double coefficient = 3;
4912 {::_pbi::TcParser::FastF64R1,
4913 {25, 2, 0,
4914 PROTOBUF_FIELD_OFFSET(MPQuadraticObjective, _impl_.coefficient_)}},
4915 }}, {{
4916 65535, 65535
4917 }}, {{
4918 // repeated int32 qvar1_index = 1;
4919 {PROTOBUF_FIELD_OFFSET(MPQuadraticObjective, _impl_.qvar1_index_), _Internal::kHasBitsOffset + 0, 0, (0 | ::_fl::kFcRepeated | ::_fl::kInt32)},
4920 // repeated int32 qvar2_index = 2;
4921 {PROTOBUF_FIELD_OFFSET(MPQuadraticObjective, _impl_.qvar2_index_), _Internal::kHasBitsOffset + 1, 0, (0 | ::_fl::kFcRepeated | ::_fl::kInt32)},
4922 // repeated double coefficient = 3;
4923 {PROTOBUF_FIELD_OFFSET(MPQuadraticObjective, _impl_.coefficient_), _Internal::kHasBitsOffset + 2, 0, (0 | ::_fl::kFcRepeated | ::_fl::kDouble)},
4924 }},
4925 // no aux_entries
4926 {{
4927 }},
4928};
4929PROTOBUF_NOINLINE void MPQuadraticObjective::Clear() {
4930// @@protoc_insertion_point(message_clear_start:operations_research.MPQuadraticObjective)
4931 ::google::protobuf::internal::TSanWrite(&_impl_);
4932 ::uint32_t cached_has_bits = 0;
4933 // Prevent compiler warnings about cached_has_bits being unused
4934 (void) cached_has_bits;
4935
4936 cached_has_bits = _impl_._has_bits_[0];
4937 if (BatchCheckHasBit(cached_has_bits, 0x00000007U)) {
4938 if (CheckHasBitForRepeated(cached_has_bits, 0x00000001U)) {
4939 _impl_.qvar1_index_.Clear();
4940 }
4941 if (CheckHasBitForRepeated(cached_has_bits, 0x00000002U)) {
4942 _impl_.qvar2_index_.Clear();
4943 }
4944 if (CheckHasBitForRepeated(cached_has_bits, 0x00000004U)) {
4945 _impl_.coefficient_.Clear();
4946 }
4947 }
4948 _impl_._has_bits_.Clear();
4949 _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>();
4950}
4951
4952#if defined(PROTOBUF_CUSTOM_VTABLE)
4953::uint8_t* PROTOBUF_NONNULL MPQuadraticObjective::_InternalSerialize(
4954 const ::google::protobuf::MessageLite& base, ::uint8_t* PROTOBUF_NONNULL target,
4955 ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) {
4956 const MPQuadraticObjective& this_ = static_cast<const MPQuadraticObjective&>(base);
4957#else // PROTOBUF_CUSTOM_VTABLE
4958::uint8_t* PROTOBUF_NONNULL MPQuadraticObjective::_InternalSerialize(
4959 ::uint8_t* PROTOBUF_NONNULL target,
4960 ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const {
4961 const MPQuadraticObjective& this_ = *this;
4962#endif // PROTOBUF_CUSTOM_VTABLE
4963 if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) {
4964 this_.CheckHasBitConsistency();
4965 }
4966 // @@protoc_insertion_point(serialize_to_array_start:operations_research.MPQuadraticObjective)
4967 ::uint32_t cached_has_bits = 0;
4968 (void)cached_has_bits;
4969
4970 cached_has_bits = this_._impl_._has_bits_[0];
4971 // repeated int32 qvar1_index = 1;
4972 if (CheckHasBitForRepeated(cached_has_bits, 0x00000001U)) {
4973 for (int i = 0, n = this_._internal_qvar1_index_size(); i < n; ++i) {
4974 target = stream->EnsureSpace(target);
4975 target = ::_pbi::WireFormatLite::WriteInt32ToArray(
4976 1, this_._internal_qvar1_index().Get(i), target);
4977 }
4978 }
4979
4980 // repeated int32 qvar2_index = 2;
4981 if (CheckHasBitForRepeated(cached_has_bits, 0x00000002U)) {
4982 for (int i = 0, n = this_._internal_qvar2_index_size(); i < n; ++i) {
4983 target = stream->EnsureSpace(target);
4984 target = ::_pbi::WireFormatLite::WriteInt32ToArray(
4985 2, this_._internal_qvar2_index().Get(i), target);
4986 }
4987 }
4988
4989 // repeated double coefficient = 3;
4990 if (CheckHasBitForRepeated(cached_has_bits, 0x00000004U)) {
4991 for (int i = 0, n = this_._internal_coefficient_size(); i < n; ++i) {
4992 target = stream->EnsureSpace(target);
4993 target = ::_pbi::WireFormatLite::WriteDoubleToArray(
4994 3, this_._internal_coefficient().Get(i), target);
4995 }
4996 }
4997
4998 if (ABSL_PREDICT_FALSE(this_._internal_metadata_.have_unknown_fields())) {
4999 target =
5000 ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray(
5001 this_._internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream);
5002 }
5003 // @@protoc_insertion_point(serialize_to_array_end:operations_research.MPQuadraticObjective)
5004 return target;
5005}
5006
5007#if defined(PROTOBUF_CUSTOM_VTABLE)
5008::size_t MPQuadraticObjective::ByteSizeLong(const MessageLite& base) {
5009 const MPQuadraticObjective& this_ = static_cast<const MPQuadraticObjective&>(base);
5010#else // PROTOBUF_CUSTOM_VTABLE
5011::size_t MPQuadraticObjective::ByteSizeLong() const {
5012 const MPQuadraticObjective& this_ = *this;
5013#endif // PROTOBUF_CUSTOM_VTABLE
5014 // @@protoc_insertion_point(message_byte_size_start:operations_research.MPQuadraticObjective)
5015 ::size_t total_size = 0;
5016
5017 ::uint32_t cached_has_bits = 0;
5018 // Prevent compiler warnings about cached_has_bits being unused
5019 (void)cached_has_bits;
5020
5021 ::_pbi::Prefetch5LinesFrom7Lines(&this_);
5022 cached_has_bits = this_._impl_._has_bits_[0];
5023 if (BatchCheckHasBit(cached_has_bits, 0x00000007U)) {
5024 // repeated int32 qvar1_index = 1;
5025 if (CheckHasBitForRepeated(cached_has_bits, 0x00000001U)) {
5026 ::size_t data_size = ::_pbi::WireFormatLite::Int32Size(
5027 this_._internal_qvar1_index());
5028 ::size_t tag_size = ::size_t{1} *
5029 ::_pbi::FromIntSize(this_._internal_qvar1_index_size());
5030 total_size += tag_size + data_size;
5031 }
5032 // repeated int32 qvar2_index = 2;
5033 if (CheckHasBitForRepeated(cached_has_bits, 0x00000002U)) {
5034 ::size_t data_size = ::_pbi::WireFormatLite::Int32Size(
5035 this_._internal_qvar2_index());
5036 ::size_t tag_size = ::size_t{1} *
5037 ::_pbi::FromIntSize(this_._internal_qvar2_index_size());
5038 total_size += tag_size + data_size;
5039 }
5040 // repeated double coefficient = 3;
5041 if (CheckHasBitForRepeated(cached_has_bits, 0x00000004U)) {
5042 ::size_t data_size = ::size_t{8} *
5043 ::_pbi::FromIntSize(this_._internal_coefficient_size());
5044 ::size_t tag_size = ::size_t{1} *
5045 ::_pbi::FromIntSize(this_._internal_coefficient_size());
5046 total_size += tag_size + data_size;
5047 }
5048 }
5049 return this_.MaybeComputeUnknownFieldsSize(total_size,
5050 &this_._impl_._cached_size_);
5051}
5052
5053void MPQuadraticObjective::MergeImpl(::google::protobuf::MessageLite& to_msg,
5054 const ::google::protobuf::MessageLite& from_msg) {
5055 auto* const _this =
5056 static_cast<MPQuadraticObjective*>(&to_msg);
5057 auto& from = static_cast<const MPQuadraticObjective&>(from_msg);
5058 if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) {
5059 from.CheckHasBitConsistency();
5060 }
5061 // @@protoc_insertion_point(class_specific_merge_from_start:operations_research.MPQuadraticObjective)
5062 ABSL_DCHECK_NE(&from, _this);
5063 ::uint32_t cached_has_bits = 0;
5064 (void)cached_has_bits;
5065
5066 cached_has_bits = from._impl_._has_bits_[0];
5067 if (BatchCheckHasBit(cached_has_bits, 0x00000007U)) {
5068 if (CheckHasBitForRepeated(cached_has_bits, 0x00000001U)) {
5069 _this->_internal_mutable_qvar1_index()->MergeFrom(from._internal_qvar1_index());
5070 }
5071 if (CheckHasBitForRepeated(cached_has_bits, 0x00000002U)) {
5072 _this->_internal_mutable_qvar2_index()->MergeFrom(from._internal_qvar2_index());
5073 }
5074 if (CheckHasBitForRepeated(cached_has_bits, 0x00000004U)) {
5075 _this->_internal_mutable_coefficient()->MergeFrom(from._internal_coefficient());
5076 }
5077 }
5078 _this->_impl_._has_bits_[0] |= cached_has_bits;
5079 _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(
5080 from._internal_metadata_);
5081}
5082
5084 // @@protoc_insertion_point(class_specific_copy_from_start:operations_research.MPQuadraticObjective)
5085 if (&from == this) return;
5086 Clear();
5087 MergeFrom(from);
5088}
5089
5090
5091void MPQuadraticObjective::InternalSwap(MPQuadraticObjective* PROTOBUF_RESTRICT PROTOBUF_NONNULL other) {
5092 using ::std::swap;
5093 _internal_metadata_.InternalSwap(&other->_internal_metadata_);
5094 swap(_impl_._has_bits_[0], other->_impl_._has_bits_[0]);
5095 _impl_.qvar1_index_.InternalSwap(&other->_impl_.qvar1_index_);
5096 _impl_.qvar2_index_.InternalSwap(&other->_impl_.qvar2_index_);
5097 _impl_.coefficient_.InternalSwap(&other->_impl_.coefficient_);
5098}
5099
5100::google::protobuf::Metadata MPQuadraticObjective::GetMetadata() const {
5101 return ::google::protobuf::Message::GetMetadataImpl(GetClassData()->full());
5102}
5103// ===================================================================
5104
5105class PartialVariableAssignment::_Internal {
5106 public:
5107 using HasBits =
5108 decltype(::std::declval<PartialVariableAssignment>()._impl_._has_bits_);
5109 static constexpr ::int32_t kHasBitsOffset =
5110 8 * PROTOBUF_FIELD_OFFSET(PartialVariableAssignment, _impl_._has_bits_);
5111};
5112
5113PartialVariableAssignment::PartialVariableAssignment(::google::protobuf::Arena* PROTOBUF_NULLABLE arena)
5114#if defined(PROTOBUF_CUSTOM_VTABLE)
5115 : ::google::protobuf::Message(arena, PartialVariableAssignment_class_data_.base()) {
5116#else // PROTOBUF_CUSTOM_VTABLE
5117 : ::google::protobuf::Message(arena) {
5118#endif // PROTOBUF_CUSTOM_VTABLE
5119 SharedCtor(arena);
5120 // @@protoc_insertion_point(arena_constructor:operations_research.PartialVariableAssignment)
5121}
5122PROTOBUF_NDEBUG_INLINE PartialVariableAssignment::Impl_::Impl_(
5123 [[maybe_unused]] ::google::protobuf::internal::InternalVisibility visibility,
5124 [[maybe_unused]] ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const Impl_& from,
5125 [[maybe_unused]] const ::operations_research::PartialVariableAssignment& from_msg)
5126 : _has_bits_{from._has_bits_},
5127 _cached_size_{0},
5128 var_index_{visibility, arena, from.var_index_},
5129 _var_index_cached_byte_size_{0},
5130 var_value_{visibility, arena, from.var_value_} {}
5131
5133 ::google::protobuf::Arena* PROTOBUF_NULLABLE arena,
5134 const PartialVariableAssignment& from)
5135#if defined(PROTOBUF_CUSTOM_VTABLE)
5136 : ::google::protobuf::Message(arena, PartialVariableAssignment_class_data_.base()) {
5137#else // PROTOBUF_CUSTOM_VTABLE
5138 : ::google::protobuf::Message(arena) {
5139#endif // PROTOBUF_CUSTOM_VTABLE
5140 PartialVariableAssignment* const _this = this;
5141 (void)_this;
5142 _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(
5143 from._internal_metadata_);
5144 new (&_impl_) Impl_(internal_visibility(), arena, from._impl_, from);
5145
5146 // @@protoc_insertion_point(copy_constructor:operations_research.PartialVariableAssignment)
5147}
5148PROTOBUF_NDEBUG_INLINE PartialVariableAssignment::Impl_::Impl_(
5149 [[maybe_unused]] ::google::protobuf::internal::InternalVisibility visibility,
5150 [[maybe_unused]] ::google::protobuf::Arena* PROTOBUF_NULLABLE arena)
5151 : _cached_size_{0},
5152 var_index_{visibility, arena},
5153 _var_index_cached_byte_size_{0},
5154 var_value_{visibility, arena} {}
5155
5156inline void PartialVariableAssignment::SharedCtor(::_pb::Arena* PROTOBUF_NULLABLE arena) {
5157 new (&_impl_) Impl_(internal_visibility(), arena);
5158}
5160 // @@protoc_insertion_point(destructor:operations_research.PartialVariableAssignment)
5161 SharedDtor(*this);
5162}
5163inline void PartialVariableAssignment::SharedDtor(MessageLite& self) {
5164 PartialVariableAssignment& this_ = static_cast<PartialVariableAssignment&>(self);
5165 if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) {
5166 this_.CheckHasBitConsistency();
5167 }
5168 this_._internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>();
5169 ABSL_DCHECK(this_.GetArena() == nullptr);
5170 this_._impl_.~Impl_();
5171}
5172
5173inline void* PROTOBUF_NONNULL PartialVariableAssignment::PlacementNew_(
5174 const void* PROTOBUF_NONNULL, void* PROTOBUF_NONNULL mem,
5175 ::google::protobuf::Arena* PROTOBUF_NULLABLE arena) {
5176 return ::new (mem) PartialVariableAssignment(arena);
5177}
5178constexpr auto PartialVariableAssignment::InternalNewImpl_() {
5179 constexpr auto arena_bits = ::google::protobuf::internal::EncodePlacementArenaOffsets({
5180 PROTOBUF_FIELD_OFFSET(PartialVariableAssignment, _impl_.var_index_) +
5181 decltype(PartialVariableAssignment::_impl_.var_index_)::
5182 InternalGetArenaOffset(
5183 ::google::protobuf::Message::internal_visibility()),
5184 PROTOBUF_FIELD_OFFSET(PartialVariableAssignment, _impl_.var_value_) +
5185 decltype(PartialVariableAssignment::_impl_.var_value_)::
5186 InternalGetArenaOffset(
5187 ::google::protobuf::Message::internal_visibility()),
5188 });
5189 if (arena_bits.has_value()) {
5190 return ::google::protobuf::internal::MessageCreator::ZeroInit(
5191 sizeof(PartialVariableAssignment), alignof(PartialVariableAssignment), *arena_bits);
5192 } else {
5193 return ::google::protobuf::internal::MessageCreator(&PartialVariableAssignment::PlacementNew_,
5194 sizeof(PartialVariableAssignment),
5195 alignof(PartialVariableAssignment));
5196 }
5197}
5199 return ::google::protobuf::internal::ClassDataFull{
5200 ::google::protobuf::internal::ClassData{
5202 &_table_.header,
5203 nullptr, // OnDemandRegisterArenaDtor
5204 nullptr, // IsInitialized
5205 &PartialVariableAssignment::MergeImpl,
5206 ::google::protobuf::Message::GetNewImpl<PartialVariableAssignment>(),
5207#if defined(PROTOBUF_CUSTOM_VTABLE)
5208 &PartialVariableAssignment::SharedDtor,
5209 ::google::protobuf::Message::GetClearImpl<PartialVariableAssignment>(), &PartialVariableAssignment::ByteSizeLong,
5211#endif // PROTOBUF_CUSTOM_VTABLE
5212 PROTOBUF_FIELD_OFFSET(PartialVariableAssignment, _impl_._cached_size_),
5213 false,
5214 },
5215 &PartialVariableAssignment::kDescriptorMethods,
5217 nullptr, // tracker
5218 };
5219}
5220
5221PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 const
5222 ::google::protobuf::internal::ClassDataFull PartialVariableAssignment_class_data_ =
5224
5225PROTOBUF_ATTRIBUTE_WEAK const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL
5226PartialVariableAssignment::GetClassData() const {
5227 ::google::protobuf::internal::PrefetchToLocalCache(&PartialVariableAssignment_class_data_);
5228 ::google::protobuf::internal::PrefetchToLocalCache(PartialVariableAssignment_class_data_.tc_table);
5230}
5231PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1
5232const ::_pbi::TcParseTable<1, 2, 0, 0, 2>
5233PartialVariableAssignment::_table_ = {
5234 {
5235 PROTOBUF_FIELD_OFFSET(PartialVariableAssignment, _impl_._has_bits_),
5236 0, // no _extensions_
5237 2, 8, // max_field_number, fast_idx_mask
5238 offsetof(decltype(_table_), field_lookup_table),
5239 4294967292, // skipmap
5240 offsetof(decltype(_table_), field_entries),
5241 2, // num_field_entries
5242 0, // num_aux_entries
5243 offsetof(decltype(_table_), field_names), // no aux_entries
5245 nullptr, // post_loop_handler
5246 ::_pbi::TcParser::GenericFallback, // fallback
5247 #ifdef PROTOBUF_PREFETCH_PARSE_TABLE
5248 ::_pbi::TcParser::GetTable<::operations_research::PartialVariableAssignment>(), // to_prefetch
5249 #endif // PROTOBUF_PREFETCH_PARSE_TABLE
5250 }, {{
5251 // repeated double var_value = 2 [packed = true];
5252 {::_pbi::TcParser::FastF64P1,
5253 {18, 1, 0,
5254 PROTOBUF_FIELD_OFFSET(PartialVariableAssignment, _impl_.var_value_)}},
5255 // repeated int32 var_index = 1 [packed = true];
5256 {::_pbi::TcParser::FastV32P1,
5257 {10, 0, 0,
5258 PROTOBUF_FIELD_OFFSET(PartialVariableAssignment, _impl_.var_index_)}},
5259 }}, {{
5260 65535, 65535
5261 }}, {{
5262 // repeated int32 var_index = 1 [packed = true];
5263 {PROTOBUF_FIELD_OFFSET(PartialVariableAssignment, _impl_.var_index_), _Internal::kHasBitsOffset + 0, 0, (0 | ::_fl::kFcRepeated | ::_fl::kPackedInt32)},
5264 // repeated double var_value = 2 [packed = true];
5265 {PROTOBUF_FIELD_OFFSET(PartialVariableAssignment, _impl_.var_value_), _Internal::kHasBitsOffset + 1, 0, (0 | ::_fl::kFcRepeated | ::_fl::kPackedDouble)},
5266 }},
5267 // no aux_entries
5268 {{
5269 }},
5270};
5271PROTOBUF_NOINLINE void PartialVariableAssignment::Clear() {
5272// @@protoc_insertion_point(message_clear_start:operations_research.PartialVariableAssignment)
5273 ::google::protobuf::internal::TSanWrite(&_impl_);
5274 ::uint32_t cached_has_bits = 0;
5275 // Prevent compiler warnings about cached_has_bits being unused
5276 (void) cached_has_bits;
5277
5278 cached_has_bits = _impl_._has_bits_[0];
5279 if (BatchCheckHasBit(cached_has_bits, 0x00000003U)) {
5280 if (CheckHasBitForRepeated(cached_has_bits, 0x00000001U)) {
5281 _impl_.var_index_.Clear();
5283 if (CheckHasBitForRepeated(cached_has_bits, 0x00000002U)) {
5284 _impl_.var_value_.Clear();
5285 }
5286 }
5287 _impl_._has_bits_.Clear();
5288 _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>();
5289}
5290
5291#if defined(PROTOBUF_CUSTOM_VTABLE)
5292::uint8_t* PROTOBUF_NONNULL PartialVariableAssignment::_InternalSerialize(
5293 const ::google::protobuf::MessageLite& base, ::uint8_t* PROTOBUF_NONNULL target,
5294 ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) {
5295 const PartialVariableAssignment& this_ = static_cast<const PartialVariableAssignment&>(base);
5296#else // PROTOBUF_CUSTOM_VTABLE
5297::uint8_t* PROTOBUF_NONNULL PartialVariableAssignment::_InternalSerialize(
5298 ::uint8_t* PROTOBUF_NONNULL target,
5299 ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const {
5300 const PartialVariableAssignment& this_ = *this;
5301#endif // PROTOBUF_CUSTOM_VTABLE
5302 if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) {
5303 this_.CheckHasBitConsistency();
5304 }
5305 // @@protoc_insertion_point(serialize_to_array_start:operations_research.PartialVariableAssignment)
5306 ::uint32_t cached_has_bits = 0;
5307 (void)cached_has_bits;
5309 cached_has_bits = this_._impl_._has_bits_[0];
5310 // repeated int32 var_index = 1 [packed = true];
5311 if (CheckHasBitForRepeated(cached_has_bits, 0x00000001U)) {
5312 {
5313 int byte_size = this_._impl_._var_index_cached_byte_size_.Get();
5314 if (byte_size > 0) {
5315 target = stream->WriteInt32Packed(
5316 1, this_._internal_var_index(), byte_size, target);
5317 }
5318 }
5319 }
5320
5321 // repeated double var_value = 2 [packed = true];
5322 if (CheckHasBitForRepeated(cached_has_bits, 0x00000002U)) {
5323 if (this_._internal_var_value_size() > 0) {
5324 target = stream->WriteFixedPacked(2, this_._internal_var_value(), target);
5325 }
5326 }
5327
5328 if (ABSL_PREDICT_FALSE(this_._internal_metadata_.have_unknown_fields())) {
5329 target =
5330 ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray(
5331 this_._internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream);
5332 }
5333 // @@protoc_insertion_point(serialize_to_array_end:operations_research.PartialVariableAssignment)
5334 return target;
5335}
5336
5337#if defined(PROTOBUF_CUSTOM_VTABLE)
5339 const PartialVariableAssignment& this_ = static_cast<const PartialVariableAssignment&>(base);
5340#else // PROTOBUF_CUSTOM_VTABLE
5342 const PartialVariableAssignment& this_ = *this;
5343#endif // PROTOBUF_CUSTOM_VTABLE
5344 // @@protoc_insertion_point(message_byte_size_start:operations_research.PartialVariableAssignment)
5345 ::size_t total_size = 0;
5346
5347 ::uint32_t cached_has_bits = 0;
5348 // Prevent compiler warnings about cached_has_bits being unused
5349 (void)cached_has_bits;
5350
5351 ::_pbi::Prefetch5LinesFrom7Lines(&this_);
5352 cached_has_bits = this_._impl_._has_bits_[0];
5353 if (BatchCheckHasBit(cached_has_bits, 0x00000003U)) {
5354 // repeated int32 var_index = 1 [packed = true];
5355 if (CheckHasBitForRepeated(cached_has_bits, 0x00000001U)) {
5356 total_size +=
5357 ::_pbi::WireFormatLite::Int32SizeWithPackedTagSize(
5358 this_._internal_var_index(), 1,
5359 this_._impl_._var_index_cached_byte_size_);
5360 }
5361 // repeated double var_value = 2 [packed = true];
5362 if (CheckHasBitForRepeated(cached_has_bits, 0x00000002U)) {
5363 ::size_t data_size = ::size_t{8} *
5364 ::_pbi::FromIntSize(this_._internal_var_value_size());
5365 ::size_t tag_size = data_size == 0
5366 ? 0
5367 : 1 + ::_pbi::WireFormatLite::Int32Size(
5368 static_cast<::int32_t>(data_size));
5369 total_size += tag_size + data_size;
5370 }
5371 }
5372 return this_.MaybeComputeUnknownFieldsSize(total_size,
5373 &this_._impl_._cached_size_);
5374}
5375
5376void PartialVariableAssignment::MergeImpl(::google::protobuf::MessageLite& to_msg,
5377 const ::google::protobuf::MessageLite& from_msg) {
5378 auto* const _this =
5379 static_cast<PartialVariableAssignment*>(&to_msg);
5380 auto& from = static_cast<const PartialVariableAssignment&>(from_msg);
5381 if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) {
5382 from.CheckHasBitConsistency();
5383 }
5384 // @@protoc_insertion_point(class_specific_merge_from_start:operations_research.PartialVariableAssignment)
5385 ABSL_DCHECK_NE(&from, _this);
5386 ::uint32_t cached_has_bits = 0;
5387 (void)cached_has_bits;
5388
5389 cached_has_bits = from._impl_._has_bits_[0];
5390 if (BatchCheckHasBit(cached_has_bits, 0x00000003U)) {
5391 if (CheckHasBitForRepeated(cached_has_bits, 0x00000001U)) {
5392 _this->_internal_mutable_var_index()->MergeFrom(from._internal_var_index());
5393 }
5394 if (CheckHasBitForRepeated(cached_has_bits, 0x00000002U)) {
5395 _this->_internal_mutable_var_value()->MergeFrom(from._internal_var_value());
5396 }
5397 }
5398 _this->_impl_._has_bits_[0] |= cached_has_bits;
5399 _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(
5400 from._internal_metadata_);
5401}
5402
5404 // @@protoc_insertion_point(class_specific_copy_from_start:operations_research.PartialVariableAssignment)
5405 if (&from == this) return;
5406 Clear();
5407 MergeFrom(from);
5408}
5409
5410
5411void PartialVariableAssignment::InternalSwap(PartialVariableAssignment* PROTOBUF_RESTRICT PROTOBUF_NONNULL other) {
5412 using ::std::swap;
5413 _internal_metadata_.InternalSwap(&other->_internal_metadata_);
5414 swap(_impl_._has_bits_[0], other->_impl_._has_bits_[0]);
5415 _impl_.var_index_.InternalSwap(&other->_impl_.var_index_);
5416 _impl_.var_value_.InternalSwap(&other->_impl_.var_value_);
5417}
5418
5419::google::protobuf::Metadata PartialVariableAssignment::GetMetadata() const {
5420 return ::google::protobuf::Message::GetMetadataImpl(GetClassData()->full());
5421}
5422// ===================================================================
5423
5424class MPModelProto_Annotation::_Internal {
5425 public:
5426 using HasBits =
5427 decltype(::std::declval<MPModelProto_Annotation>()._impl_._has_bits_);
5428 static constexpr ::int32_t kHasBitsOffset =
5429 8 * PROTOBUF_FIELD_OFFSET(MPModelProto_Annotation, _impl_._has_bits_);
5431
5432MPModelProto_Annotation::MPModelProto_Annotation(::google::protobuf::Arena* PROTOBUF_NULLABLE arena)
5433#if defined(PROTOBUF_CUSTOM_VTABLE)
5434 : ::google::protobuf::Message(arena, MPModelProto_Annotation_class_data_.base()) {
5435#else // PROTOBUF_CUSTOM_VTABLE
5436 : ::google::protobuf::Message(arena) {
5437#endif // PROTOBUF_CUSTOM_VTABLE
5438 SharedCtor(arena);
5439 // @@protoc_insertion_point(arena_constructor:operations_research.MPModelProto.Annotation)
5441PROTOBUF_NDEBUG_INLINE MPModelProto_Annotation::Impl_::Impl_(
5442 [[maybe_unused]] ::google::protobuf::internal::InternalVisibility visibility,
5443 [[maybe_unused]] ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const Impl_& from,
5444 [[maybe_unused]] const ::operations_research::MPModelProto_Annotation& from_msg)
5445 : _has_bits_{from._has_bits_},
5446 _cached_size_{0},
5447 target_name_(arena, from.target_name_),
5448 payload_key_(arena, from.payload_key_),
5449 payload_value_(arena, from.payload_value_) {}
5450
5452 ::google::protobuf::Arena* PROTOBUF_NULLABLE arena,
5453 const MPModelProto_Annotation& from)
5454#if defined(PROTOBUF_CUSTOM_VTABLE)
5455 : ::google::protobuf::Message(arena, MPModelProto_Annotation_class_data_.base()) {
5456#else // PROTOBUF_CUSTOM_VTABLE
5457 : ::google::protobuf::Message(arena) {
5458#endif // PROTOBUF_CUSTOM_VTABLE
5459 MPModelProto_Annotation* const _this = this;
5460 (void)_this;
5461 _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(
5462 from._internal_metadata_);
5463 new (&_impl_) Impl_(internal_visibility(), arena, from._impl_, from);
5464 ::memcpy(reinterpret_cast<char*>(&_impl_) +
5465 offsetof(Impl_, target_type_),
5466 reinterpret_cast<const char*>(&from._impl_) +
5467 offsetof(Impl_, target_type_),
5468 offsetof(Impl_, target_index_) -
5469 offsetof(Impl_, target_type_) +
5470 sizeof(Impl_::target_index_));
5471
5472 // @@protoc_insertion_point(copy_constructor:operations_research.MPModelProto.Annotation)
5473}
5474PROTOBUF_NDEBUG_INLINE MPModelProto_Annotation::Impl_::Impl_(
5475 [[maybe_unused]] ::google::protobuf::internal::InternalVisibility visibility,
5476 [[maybe_unused]] ::google::protobuf::Arena* PROTOBUF_NULLABLE arena)
5477 : _cached_size_{0},
5478 target_name_(arena),
5479 payload_key_(arena),
5480 payload_value_(arena) {}
5481
5482inline void MPModelProto_Annotation::SharedCtor(::_pb::Arena* PROTOBUF_NULLABLE arena) {
5483 new (&_impl_) Impl_(internal_visibility(), arena);
5484 ::memset(reinterpret_cast<char*>(&_impl_) +
5485 offsetof(Impl_, target_type_),
5486 0,
5487 offsetof(Impl_, target_index_) -
5488 offsetof(Impl_, target_type_) +
5489 sizeof(Impl_::target_index_));
5490}
5492 // @@protoc_insertion_point(destructor:operations_research.MPModelProto.Annotation)
5493 SharedDtor(*this);
5494}
5495inline void MPModelProto_Annotation::SharedDtor(MessageLite& self) {
5496 MPModelProto_Annotation& this_ = static_cast<MPModelProto_Annotation&>(self);
5497 if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) {
5498 this_.CheckHasBitConsistency();
5499 }
5500 this_._internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>();
5501 ABSL_DCHECK(this_.GetArena() == nullptr);
5502 this_._impl_.target_name_.Destroy();
5503 this_._impl_.payload_key_.Destroy();
5504 this_._impl_.payload_value_.Destroy();
5505 this_._impl_.~Impl_();
5506}
5507
5508inline void* PROTOBUF_NONNULL MPModelProto_Annotation::PlacementNew_(
5509 const void* PROTOBUF_NONNULL, void* PROTOBUF_NONNULL mem,
5510 ::google::protobuf::Arena* PROTOBUF_NULLABLE arena) {
5511 return ::new (mem) MPModelProto_Annotation(arena);
5512}
5513constexpr auto MPModelProto_Annotation::InternalNewImpl_() {
5514 return ::google::protobuf::internal::MessageCreator::CopyInit(sizeof(MPModelProto_Annotation),
5515 alignof(MPModelProto_Annotation));
5516}
5518 return ::google::protobuf::internal::ClassDataFull{
5519 ::google::protobuf::internal::ClassData{
5521 &_table_.header,
5522 nullptr, // OnDemandRegisterArenaDtor
5523 nullptr, // IsInitialized
5524 &MPModelProto_Annotation::MergeImpl,
5525 ::google::protobuf::Message::GetNewImpl<MPModelProto_Annotation>(),
5526#if defined(PROTOBUF_CUSTOM_VTABLE)
5527 &MPModelProto_Annotation::SharedDtor,
5528 ::google::protobuf::Message::GetClearImpl<MPModelProto_Annotation>(), &MPModelProto_Annotation::ByteSizeLong,
5530#endif // PROTOBUF_CUSTOM_VTABLE
5531 PROTOBUF_FIELD_OFFSET(MPModelProto_Annotation, _impl_._cached_size_),
5532 false,
5533 },
5534 &MPModelProto_Annotation::kDescriptorMethods,
5536 nullptr, // tracker
5537 };
5538}
5539
5540PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 const
5541 ::google::protobuf::internal::ClassDataFull MPModelProto_Annotation_class_data_ =
5543
5544PROTOBUF_ATTRIBUTE_WEAK const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL
5545MPModelProto_Annotation::GetClassData() const {
5546 ::google::protobuf::internal::PrefetchToLocalCache(&MPModelProto_Annotation_class_data_);
5547 ::google::protobuf::internal::PrefetchToLocalCache(MPModelProto_Annotation_class_data_.tc_table);
5549}
5550PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1
5551const ::_pbi::TcParseTable<3, 5, 1, 0, 2>
5552MPModelProto_Annotation::_table_ = {
5554 PROTOBUF_FIELD_OFFSET(MPModelProto_Annotation, _impl_._has_bits_),
5555 0, // no _extensions_
5556 5, 56, // max_field_number, fast_idx_mask
5557 offsetof(decltype(_table_), field_lookup_table),
5558 4294967264, // skipmap
5559 offsetof(decltype(_table_), field_entries),
5560 5, // num_field_entries
5561 1, // num_aux_entries
5562 offsetof(decltype(_table_), aux_entries),
5564 nullptr, // post_loop_handler
5565 ::_pbi::TcParser::GenericFallback, // fallback
5566 #ifdef PROTOBUF_PREFETCH_PARSE_TABLE
5567 ::_pbi::TcParser::GetTable<::operations_research::MPModelProto_Annotation>(), // to_prefetch
5568 #endif // PROTOBUF_PREFETCH_PARSE_TABLE
5569 }, {{
5570 {::_pbi::TcParser::MiniParse, {}},
5571 // optional .operations_research.MPModelProto.Annotation.TargetType target_type = 1;
5572 {::_pbi::TcParser::FastEr0S1,
5573 {8, 3, 2,
5574 PROTOBUF_FIELD_OFFSET(MPModelProto_Annotation, _impl_.target_type_)}},
5575 // optional int32 target_index = 2;
5576 {::_pbi::TcParser::SingularVarintNoZag1<::uint32_t, offsetof(MPModelProto_Annotation, _impl_.target_index_), 4>(),
5577 {16, 4, 0,
5578 PROTOBUF_FIELD_OFFSET(MPModelProto_Annotation, _impl_.target_index_)}},
5579 // optional string target_name = 3;
5580 {::_pbi::TcParser::FastBS1,
5581 {26, 0, 0,
5582 PROTOBUF_FIELD_OFFSET(MPModelProto_Annotation, _impl_.target_name_)}},
5583 // optional string payload_key = 4;
5584 {::_pbi::TcParser::FastBS1,
5585 {34, 1, 0,
5586 PROTOBUF_FIELD_OFFSET(MPModelProto_Annotation, _impl_.payload_key_)}},
5587 // optional string payload_value = 5;
5588 {::_pbi::TcParser::FastBS1,
5589 {42, 2, 0,
5590 PROTOBUF_FIELD_OFFSET(MPModelProto_Annotation, _impl_.payload_value_)}},
5591 {::_pbi::TcParser::MiniParse, {}},
5592 {::_pbi::TcParser::MiniParse, {}},
5593 }}, {{
5594 65535, 65535
5595 }}, {{
5596 // optional .operations_research.MPModelProto.Annotation.TargetType target_type = 1;
5597 {PROTOBUF_FIELD_OFFSET(MPModelProto_Annotation, _impl_.target_type_), _Internal::kHasBitsOffset + 3, 0, (0 | ::_fl::kFcOptional | ::_fl::kEnumRange)},
5598 // optional int32 target_index = 2;
5599 {PROTOBUF_FIELD_OFFSET(MPModelProto_Annotation, _impl_.target_index_), _Internal::kHasBitsOffset + 4, 0, (0 | ::_fl::kFcOptional | ::_fl::kInt32)},
5600 // optional string target_name = 3;
5601 {PROTOBUF_FIELD_OFFSET(MPModelProto_Annotation, _impl_.target_name_), _Internal::kHasBitsOffset + 0, 0, (0 | ::_fl::kFcOptional | ::_fl::kBytes | ::_fl::kRepAString)},
5602 // optional string payload_key = 4;
5603 {PROTOBUF_FIELD_OFFSET(MPModelProto_Annotation, _impl_.payload_key_), _Internal::kHasBitsOffset + 1, 0, (0 | ::_fl::kFcOptional | ::_fl::kBytes | ::_fl::kRepAString)},
5604 // optional string payload_value = 5;
5605 {PROTOBUF_FIELD_OFFSET(MPModelProto_Annotation, _impl_.payload_value_), _Internal::kHasBitsOffset + 2, 0, (0 | ::_fl::kFcOptional | ::_fl::kBytes | ::_fl::kRepAString)},
5606 }},
5607 {{
5608 {0, 2},
5609 }},
5610 {{
5611 }},
5612};
5613PROTOBUF_NOINLINE void MPModelProto_Annotation::Clear() {
5614// @@protoc_insertion_point(message_clear_start:operations_research.MPModelProto.Annotation)
5615 ::google::protobuf::internal::TSanWrite(&_impl_);
5616 ::uint32_t cached_has_bits = 0;
5617 // Prevent compiler warnings about cached_has_bits being unused
5618 (void) cached_has_bits;
5619
5620 cached_has_bits = _impl_._has_bits_[0];
5621 if (BatchCheckHasBit(cached_has_bits, 0x00000007U)) {
5622 if (CheckHasBit(cached_has_bits, 0x00000001U)) {
5623 _impl_.target_name_.ClearNonDefaultToEmpty();
5624 }
5625 if (CheckHasBit(cached_has_bits, 0x00000002U)) {
5626 _impl_.payload_key_.ClearNonDefaultToEmpty();
5627 }
5628 if (CheckHasBit(cached_has_bits, 0x00000004U)) {
5629 _impl_.payload_value_.ClearNonDefaultToEmpty();
5630 }
5631 }
5632 if (BatchCheckHasBit(cached_has_bits, 0x00000018U)) {
5633 ::memset(&_impl_.target_type_, 0, static_cast<::size_t>(
5634 reinterpret_cast<char*>(&_impl_.target_index_) -
5635 reinterpret_cast<char*>(&_impl_.target_type_)) + sizeof(_impl_.target_index_));
5636 }
5637 _impl_._has_bits_.Clear();
5638 _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>();
5639}
5640
5641#if defined(PROTOBUF_CUSTOM_VTABLE)
5642::uint8_t* PROTOBUF_NONNULL MPModelProto_Annotation::_InternalSerialize(
5643 const ::google::protobuf::MessageLite& base, ::uint8_t* PROTOBUF_NONNULL target,
5644 ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) {
5645 const MPModelProto_Annotation& this_ = static_cast<const MPModelProto_Annotation&>(base);
5646#else // PROTOBUF_CUSTOM_VTABLE
5647::uint8_t* PROTOBUF_NONNULL MPModelProto_Annotation::_InternalSerialize(
5648 ::uint8_t* PROTOBUF_NONNULL target,
5649 ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const {
5650 const MPModelProto_Annotation& this_ = *this;
5651#endif // PROTOBUF_CUSTOM_VTABLE
5652 if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) {
5653 this_.CheckHasBitConsistency();
5654 }
5655 // @@protoc_insertion_point(serialize_to_array_start:operations_research.MPModelProto.Annotation)
5656 ::uint32_t cached_has_bits = 0;
5657 (void)cached_has_bits;
5658
5659 cached_has_bits = this_._impl_._has_bits_[0];
5660 // optional .operations_research.MPModelProto.Annotation.TargetType target_type = 1;
5661 if (CheckHasBit(cached_has_bits, 0x00000008U)) {
5662 target = stream->EnsureSpace(target);
5663 target = ::_pbi::WireFormatLite::WriteEnumToArray(
5664 1, this_._internal_target_type(), target);
5665 }
5666
5667 // optional int32 target_index = 2;
5668 if (CheckHasBit(cached_has_bits, 0x00000010U)) {
5669 target =
5670 ::google::protobuf::internal::WireFormatLite::WriteInt32ToArrayWithField<2>(
5671 stream, this_._internal_target_index(), target);
5672 }
5673
5674 // optional string target_name = 3;
5675 if (CheckHasBit(cached_has_bits, 0x00000001U)) {
5676 const ::std::string& _s = this_._internal_target_name();
5677 target = stream->WriteStringMaybeAliased(3, _s, target);
5678 }
5679
5680 // optional string payload_key = 4;
5681 if (CheckHasBit(cached_has_bits, 0x00000002U)) {
5682 const ::std::string& _s = this_._internal_payload_key();
5683 target = stream->WriteStringMaybeAliased(4, _s, target);
5684 }
5685
5686 // optional string payload_value = 5;
5687 if (CheckHasBit(cached_has_bits, 0x00000004U)) {
5688 const ::std::string& _s = this_._internal_payload_value();
5689 target = stream->WriteStringMaybeAliased(5, _s, target);
5690 }
5691
5692 if (ABSL_PREDICT_FALSE(this_._internal_metadata_.have_unknown_fields())) {
5693 target =
5694 ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray(
5695 this_._internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream);
5696 }
5697 // @@protoc_insertion_point(serialize_to_array_end:operations_research.MPModelProto.Annotation)
5698 return target;
5699}
5700
5701#if defined(PROTOBUF_CUSTOM_VTABLE)
5703 const MPModelProto_Annotation& this_ = static_cast<const MPModelProto_Annotation&>(base);
5704#else // PROTOBUF_CUSTOM_VTABLE
5706 const MPModelProto_Annotation& this_ = *this;
5707#endif // PROTOBUF_CUSTOM_VTABLE
5708 // @@protoc_insertion_point(message_byte_size_start:operations_research.MPModelProto.Annotation)
5709 ::size_t total_size = 0;
5710
5711 ::uint32_t cached_has_bits = 0;
5712 // Prevent compiler warnings about cached_has_bits being unused
5713 (void)cached_has_bits;
5714
5715 ::_pbi::Prefetch5LinesFrom7Lines(&this_);
5716 cached_has_bits = this_._impl_._has_bits_[0];
5717 if (BatchCheckHasBit(cached_has_bits, 0x0000001fU)) {
5718 // optional string target_name = 3;
5719 if (CheckHasBit(cached_has_bits, 0x00000001U)) {
5720 total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize(
5721 this_._internal_target_name());
5722 }
5723 // optional string payload_key = 4;
5724 if (CheckHasBit(cached_has_bits, 0x00000002U)) {
5725 total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize(
5726 this_._internal_payload_key());
5727 }
5728 // optional string payload_value = 5;
5729 if (CheckHasBit(cached_has_bits, 0x00000004U)) {
5730 total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize(
5731 this_._internal_payload_value());
5732 }
5733 // optional .operations_research.MPModelProto.Annotation.TargetType target_type = 1;
5734 if (CheckHasBit(cached_has_bits, 0x00000008U)) {
5735 total_size += 1 +
5736 ::_pbi::WireFormatLite::EnumSize(this_._internal_target_type());
5737 }
5738 // optional int32 target_index = 2;
5739 if (CheckHasBit(cached_has_bits, 0x00000010U)) {
5740 total_size += ::_pbi::WireFormatLite::Int32SizePlusOne(
5741 this_._internal_target_index());
5742 }
5743 }
5744 return this_.MaybeComputeUnknownFieldsSize(total_size,
5745 &this_._impl_._cached_size_);
5746}
5747
5748void MPModelProto_Annotation::MergeImpl(::google::protobuf::MessageLite& to_msg,
5749 const ::google::protobuf::MessageLite& from_msg) {
5750 auto* const _this =
5751 static_cast<MPModelProto_Annotation*>(&to_msg);
5752 auto& from = static_cast<const MPModelProto_Annotation&>(from_msg);
5753 if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) {
5754 from.CheckHasBitConsistency();
5755 }
5756 // @@protoc_insertion_point(class_specific_merge_from_start:operations_research.MPModelProto.Annotation)
5757 ABSL_DCHECK_NE(&from, _this);
5758 ::uint32_t cached_has_bits = 0;
5759 (void)cached_has_bits;
5760
5761 cached_has_bits = from._impl_._has_bits_[0];
5762 if (BatchCheckHasBit(cached_has_bits, 0x0000001fU)) {
5763 if (CheckHasBit(cached_has_bits, 0x00000001U)) {
5764 _this->_internal_set_target_name(from._internal_target_name());
5765 }
5766 if (CheckHasBit(cached_has_bits, 0x00000002U)) {
5767 _this->_internal_set_payload_key(from._internal_payload_key());
5768 }
5769 if (CheckHasBit(cached_has_bits, 0x00000004U)) {
5770 _this->_internal_set_payload_value(from._internal_payload_value());
5771 }
5772 if (CheckHasBit(cached_has_bits, 0x00000008U)) {
5773 _this->_impl_.target_type_ = from._impl_.target_type_;
5774 }
5775 if (CheckHasBit(cached_has_bits, 0x00000010U)) {
5776 _this->_impl_.target_index_ = from._impl_.target_index_;
5777 }
5778 }
5779 _this->_impl_._has_bits_[0] |= cached_has_bits;
5780 _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(
5781 from._internal_metadata_);
5782}
5783
5785 // @@protoc_insertion_point(class_specific_copy_from_start:operations_research.MPModelProto.Annotation)
5786 if (&from == this) return;
5787 Clear();
5788 MergeFrom(from);
5789}
5790
5791
5792void MPModelProto_Annotation::InternalSwap(MPModelProto_Annotation* PROTOBUF_RESTRICT PROTOBUF_NONNULL other) {
5793 using ::std::swap;
5794 auto* arena = GetArena();
5795 ABSL_DCHECK_EQ(arena, other->GetArena());
5796 _internal_metadata_.InternalSwap(&other->_internal_metadata_);
5797 swap(_impl_._has_bits_[0], other->_impl_._has_bits_[0]);
5798 ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.target_name_, &other->_impl_.target_name_, arena);
5799 ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.payload_key_, &other->_impl_.payload_key_, arena);
5800 ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.payload_value_, &other->_impl_.payload_value_, arena);
5801 ::google::protobuf::internal::memswap<
5802 PROTOBUF_FIELD_OFFSET(MPModelProto_Annotation, _impl_.target_index_)
5803 + sizeof(MPModelProto_Annotation::_impl_.target_index_)
5804 - PROTOBUF_FIELD_OFFSET(MPModelProto_Annotation, _impl_.target_type_)>(
5805 reinterpret_cast<char*>(&_impl_.target_type_),
5806 reinterpret_cast<char*>(&other->_impl_.target_type_));
5807}
5808
5809::google::protobuf::Metadata MPModelProto_Annotation::GetMetadata() const {
5810 return ::google::protobuf::Message::GetMetadataImpl(GetClassData()->full());
5811}
5812// ===================================================================
5813
5814class MPModelProto::_Internal {
5815 public:
5816 using HasBits =
5817 decltype(::std::declval<MPModelProto>()._impl_._has_bits_);
5818 static constexpr ::int32_t kHasBitsOffset =
5819 8 * PROTOBUF_FIELD_OFFSET(MPModelProto, _impl_._has_bits_);
5820};
5822MPModelProto::MPModelProto(::google::protobuf::Arena* PROTOBUF_NULLABLE arena)
5823#if defined(PROTOBUF_CUSTOM_VTABLE)
5824 : ::google::protobuf::Message(arena, MPModelProto_class_data_.base()) {
5825#else // PROTOBUF_CUSTOM_VTABLE
5826 : ::google::protobuf::Message(arena) {
5827#endif // PROTOBUF_CUSTOM_VTABLE
5828 SharedCtor(arena);
5829 // @@protoc_insertion_point(arena_constructor:operations_research.MPModelProto)
5830}
5831PROTOBUF_NDEBUG_INLINE MPModelProto::Impl_::Impl_(
5832 [[maybe_unused]] ::google::protobuf::internal::InternalVisibility visibility,
5833 [[maybe_unused]] ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const Impl_& from,
5834 [[maybe_unused]] const ::operations_research::MPModelProto& from_msg)
5835 : _has_bits_{from._has_bits_},
5836 _cached_size_{0},
5837 variable_{visibility, arena, from.variable_},
5838 constraint_{visibility, arena, from.constraint_},
5839 general_constraint_{visibility, arena, from.general_constraint_},
5840 annotation_{visibility, arena, from.annotation_},
5841 name_(arena, from.name_) {}
5842
5844 ::google::protobuf::Arena* PROTOBUF_NULLABLE arena,
5845 const MPModelProto& from)
5846#if defined(PROTOBUF_CUSTOM_VTABLE)
5847 : ::google::protobuf::Message(arena, MPModelProto_class_data_.base()) {
5848#else // PROTOBUF_CUSTOM_VTABLE
5849 : ::google::protobuf::Message(arena) {
5850#endif // PROTOBUF_CUSTOM_VTABLE
5851 MPModelProto* const _this = this;
5852 (void)_this;
5853 _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(
5854 from._internal_metadata_);
5855 new (&_impl_) Impl_(internal_visibility(), arena, from._impl_, from);
5856 ::uint32_t cached_has_bits = _impl_._has_bits_[0];
5857 _impl_.solution_hint_ = (CheckHasBit(cached_has_bits, 0x00000020U))
5858 ? ::google::protobuf::Message::CopyConstruct(arena, *from._impl_.solution_hint_)
5859 : nullptr;
5860 _impl_.quadratic_objective_ = (CheckHasBit(cached_has_bits, 0x00000040U))
5861 ? ::google::protobuf::Message::CopyConstruct(arena, *from._impl_.quadratic_objective_)
5862 : nullptr;
5863 ::memcpy(reinterpret_cast<char*>(&_impl_) +
5864 offsetof(Impl_, objective_offset_),
5865 reinterpret_cast<const char*>(&from._impl_) +
5866 offsetof(Impl_, objective_offset_),
5867 offsetof(Impl_, maximize_) -
5868 offsetof(Impl_, objective_offset_) +
5869 sizeof(Impl_::maximize_));
5870
5871 // @@protoc_insertion_point(copy_constructor:operations_research.MPModelProto)
5872}
5873PROTOBUF_NDEBUG_INLINE MPModelProto::Impl_::Impl_(
5874 [[maybe_unused]] ::google::protobuf::internal::InternalVisibility visibility,
5875 [[maybe_unused]] ::google::protobuf::Arena* PROTOBUF_NULLABLE arena)
5876 : _cached_size_{0},
5877 variable_{visibility, arena},
5878 constraint_{visibility, arena},
5879 general_constraint_{visibility, arena},
5880 annotation_{visibility, arena},
5881 name_(arena) {}
5882
5883inline void MPModelProto::SharedCtor(::_pb::Arena* PROTOBUF_NULLABLE arena) {
5884 new (&_impl_) Impl_(internal_visibility(), arena);
5885 ::memset(reinterpret_cast<char*>(&_impl_) +
5886 offsetof(Impl_, solution_hint_),
5887 0,
5888 offsetof(Impl_, maximize_) -
5889 offsetof(Impl_, solution_hint_) +
5890 sizeof(Impl_::maximize_));
5891}
5893 // @@protoc_insertion_point(destructor:operations_research.MPModelProto)
5894 SharedDtor(*this);
5895}
5896inline void MPModelProto::SharedDtor(MessageLite& self) {
5897 MPModelProto& this_ = static_cast<MPModelProto&>(self);
5898 if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) {
5899 this_.CheckHasBitConsistency();
5900 }
5901 this_._internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>();
5902 ABSL_DCHECK(this_.GetArena() == nullptr);
5903 this_._impl_.name_.Destroy();
5904 delete this_._impl_.solution_hint_;
5905 delete this_._impl_.quadratic_objective_;
5906 this_._impl_.~Impl_();
5907}
5908
5909inline void* PROTOBUF_NONNULL MPModelProto::PlacementNew_(
5910 const void* PROTOBUF_NONNULL, void* PROTOBUF_NONNULL mem,
5911 ::google::protobuf::Arena* PROTOBUF_NULLABLE arena) {
5912 return ::new (mem) MPModelProto(arena);
5913}
5914constexpr auto MPModelProto::InternalNewImpl_() {
5915 constexpr auto arena_bits = ::google::protobuf::internal::EncodePlacementArenaOffsets({
5916 PROTOBUF_FIELD_OFFSET(MPModelProto, _impl_.variable_) +
5917 decltype(MPModelProto::_impl_.variable_)::
5918 InternalGetArenaOffset(
5919 ::google::protobuf::Message::internal_visibility()),
5920 PROTOBUF_FIELD_OFFSET(MPModelProto, _impl_.constraint_) +
5921 decltype(MPModelProto::_impl_.constraint_)::
5922 InternalGetArenaOffset(
5923 ::google::protobuf::Message::internal_visibility()),
5924 PROTOBUF_FIELD_OFFSET(MPModelProto, _impl_.general_constraint_) +
5925 decltype(MPModelProto::_impl_.general_constraint_)::
5926 InternalGetArenaOffset(
5927 ::google::protobuf::Message::internal_visibility()),
5928 PROTOBUF_FIELD_OFFSET(MPModelProto, _impl_.annotation_) +
5929 decltype(MPModelProto::_impl_.annotation_)::
5930 InternalGetArenaOffset(
5931 ::google::protobuf::Message::internal_visibility()),
5932 });
5933 if (arena_bits.has_value()) {
5934 return ::google::protobuf::internal::MessageCreator::CopyInit(
5935 sizeof(MPModelProto), alignof(MPModelProto), *arena_bits);
5936 } else {
5937 return ::google::protobuf::internal::MessageCreator(&MPModelProto::PlacementNew_,
5938 sizeof(MPModelProto),
5939 alignof(MPModelProto));
5940 }
5941}
5943 return ::google::protobuf::internal::ClassDataFull{
5944 ::google::protobuf::internal::ClassData{
5946 &_table_.header,
5947 nullptr, // OnDemandRegisterArenaDtor
5948 nullptr, // IsInitialized
5949 &MPModelProto::MergeImpl,
5950 ::google::protobuf::Message::GetNewImpl<MPModelProto>(),
5951#if defined(PROTOBUF_CUSTOM_VTABLE)
5952 &MPModelProto::SharedDtor,
5953 ::google::protobuf::Message::GetClearImpl<MPModelProto>(), &MPModelProto::ByteSizeLong,
5955#endif // PROTOBUF_CUSTOM_VTABLE
5956 PROTOBUF_FIELD_OFFSET(MPModelProto, _impl_._cached_size_),
5957 false,
5958 },
5959 &MPModelProto::kDescriptorMethods,
5961 nullptr, // tracker
5962 };
5963}
5964
5965PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 const
5966 ::google::protobuf::internal::ClassDataFull MPModelProto_class_data_ =
5968
5969PROTOBUF_ATTRIBUTE_WEAK const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL
5970MPModelProto::GetClassData() const {
5971 ::google::protobuf::internal::PrefetchToLocalCache(&MPModelProto_class_data_);
5972 ::google::protobuf::internal::PrefetchToLocalCache(MPModelProto_class_data_.tc_table);
5973 return MPModelProto_class_data_.base();
5974}
5975PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1
5976const ::_pbi::TcParseTable<4, 9, 6, 0, 2>
5977MPModelProto::_table_ = {
5978 {
5979 PROTOBUF_FIELD_OFFSET(MPModelProto, _impl_._has_bits_),
5980 0, // no _extensions_
5981 9, 120, // max_field_number, fast_idx_mask
5982 offsetof(decltype(_table_), field_lookup_table),
5983 4294966784, // skipmap
5984 offsetof(decltype(_table_), field_entries),
5985 9, // num_field_entries
5986 6, // num_aux_entries
5987 offsetof(decltype(_table_), aux_entries),
5989 nullptr, // post_loop_handler
5990 ::_pbi::TcParser::GenericFallback, // fallback
5991 #ifdef PROTOBUF_PREFETCH_PARSE_TABLE
5992 ::_pbi::TcParser::GetTable<::operations_research::MPModelProto>(), // to_prefetch
5993 #endif // PROTOBUF_PREFETCH_PARSE_TABLE
5994 }, {{
5995 {::_pbi::TcParser::MiniParse, {}},
5996 // optional bool maximize = 1 [default = false];
5997 {::_pbi::TcParser::SingularVarintNoZag1<bool, offsetof(MPModelProto, _impl_.maximize_), 8>(),
5998 {8, 8, 0,
5999 PROTOBUF_FIELD_OFFSET(MPModelProto, _impl_.maximize_)}},
6000 // optional double objective_offset = 2 [default = 0];
6001 {::_pbi::TcParser::FastF64S1,
6002 {17, 7, 0,
6003 PROTOBUF_FIELD_OFFSET(MPModelProto, _impl_.objective_offset_)}},
6004 // repeated .operations_research.MPVariableProto variable = 3;
6005 {::_pbi::TcParser::FastMtR1,
6006 {26, 0, 0,
6007 PROTOBUF_FIELD_OFFSET(MPModelProto, _impl_.variable_)}},
6008 // repeated .operations_research.MPConstraintProto constraint = 4;
6009 {::_pbi::TcParser::FastMtR1,
6010 {34, 1, 1,
6011 PROTOBUF_FIELD_OFFSET(MPModelProto, _impl_.constraint_)}},
6012 // optional string name = 5 [default = ""];
6013 {::_pbi::TcParser::FastBS1,
6014 {42, 4, 0,
6015 PROTOBUF_FIELD_OFFSET(MPModelProto, _impl_.name_)}},
6016 // optional .operations_research.PartialVariableAssignment solution_hint = 6;
6017 {::_pbi::TcParser::FastMtS1,
6018 {50, 5, 2,
6019 PROTOBUF_FIELD_OFFSET(MPModelProto, _impl_.solution_hint_)}},
6020 // repeated .operations_research.MPGeneralConstraintProto general_constraint = 7;
6021 {::_pbi::TcParser::FastMtR1,
6022 {58, 2, 3,
6023 PROTOBUF_FIELD_OFFSET(MPModelProto, _impl_.general_constraint_)}},
6024 // optional .operations_research.MPQuadraticObjective quadratic_objective = 8;
6025 {::_pbi::TcParser::FastMtS1,
6026 {66, 6, 4,
6027 PROTOBUF_FIELD_OFFSET(MPModelProto, _impl_.quadratic_objective_)}},
6028 // repeated .operations_research.MPModelProto.Annotation annotation = 9;
6029 {::_pbi::TcParser::FastMtR1,
6030 {74, 3, 5,
6031 PROTOBUF_FIELD_OFFSET(MPModelProto, _impl_.annotation_)}},
6032 {::_pbi::TcParser::MiniParse, {}},
6033 {::_pbi::TcParser::MiniParse, {}},
6034 {::_pbi::TcParser::MiniParse, {}},
6035 {::_pbi::TcParser::MiniParse, {}},
6036 {::_pbi::TcParser::MiniParse, {}},
6037 {::_pbi::TcParser::MiniParse, {}},
6038 }}, {{
6039 65535, 65535
6040 }}, {{
6041 // optional bool maximize = 1 [default = false];
6042 {PROTOBUF_FIELD_OFFSET(MPModelProto, _impl_.maximize_), _Internal::kHasBitsOffset + 8, 0, (0 | ::_fl::kFcOptional | ::_fl::kBool)},
6043 // optional double objective_offset = 2 [default = 0];
6044 {PROTOBUF_FIELD_OFFSET(MPModelProto, _impl_.objective_offset_), _Internal::kHasBitsOffset + 7, 0, (0 | ::_fl::kFcOptional | ::_fl::kDouble)},
6045 // repeated .operations_research.MPVariableProto variable = 3;
6046 {PROTOBUF_FIELD_OFFSET(MPModelProto, _impl_.variable_), _Internal::kHasBitsOffset + 0, 0, (0 | ::_fl::kFcRepeated | ::_fl::kMessage | ::_fl::kTvTable)},
6047 // repeated .operations_research.MPConstraintProto constraint = 4;
6048 {PROTOBUF_FIELD_OFFSET(MPModelProto, _impl_.constraint_), _Internal::kHasBitsOffset + 1, 1, (0 | ::_fl::kFcRepeated | ::_fl::kMessage | ::_fl::kTvTable)},
6049 // optional string name = 5 [default = ""];
6050 {PROTOBUF_FIELD_OFFSET(MPModelProto, _impl_.name_), _Internal::kHasBitsOffset + 4, 0, (0 | ::_fl::kFcOptional | ::_fl::kBytes | ::_fl::kRepAString)},
6051 // optional .operations_research.PartialVariableAssignment solution_hint = 6;
6052 {PROTOBUF_FIELD_OFFSET(MPModelProto, _impl_.solution_hint_), _Internal::kHasBitsOffset + 5, 2, (0 | ::_fl::kFcOptional | ::_fl::kMessage | ::_fl::kTvTable)},
6053 // repeated .operations_research.MPGeneralConstraintProto general_constraint = 7;
6054 {PROTOBUF_FIELD_OFFSET(MPModelProto, _impl_.general_constraint_), _Internal::kHasBitsOffset + 2, 3, (0 | ::_fl::kFcRepeated | ::_fl::kMessage | ::_fl::kTvTable)},
6055 // optional .operations_research.MPQuadraticObjective quadratic_objective = 8;
6056 {PROTOBUF_FIELD_OFFSET(MPModelProto, _impl_.quadratic_objective_), _Internal::kHasBitsOffset + 6, 4, (0 | ::_fl::kFcOptional | ::_fl::kMessage | ::_fl::kTvTable)},
6057 // repeated .operations_research.MPModelProto.Annotation annotation = 9;
6058 {PROTOBUF_FIELD_OFFSET(MPModelProto, _impl_.annotation_), _Internal::kHasBitsOffset + 3, 5, (0 | ::_fl::kFcRepeated | ::_fl::kMessage | ::_fl::kTvTable)},
6059 }},
6060 {{
6061 {::_pbi::TcParser::GetTable<::operations_research::MPVariableProto>()},
6062 {::_pbi::TcParser::GetTable<::operations_research::MPConstraintProto>()},
6063 {::_pbi::TcParser::GetTable<::operations_research::PartialVariableAssignment>()},
6064 {::_pbi::TcParser::GetTable<::operations_research::MPGeneralConstraintProto>()},
6065 {::_pbi::TcParser::GetTable<::operations_research::MPQuadraticObjective>()},
6066 {::_pbi::TcParser::GetTable<::operations_research::MPModelProto_Annotation>()},
6067 }},
6068 {{
6069 }},
6070};
6071PROTOBUF_NOINLINE void MPModelProto::Clear() {
6072// @@protoc_insertion_point(message_clear_start:operations_research.MPModelProto)
6073 ::google::protobuf::internal::TSanWrite(&_impl_);
6074 ::uint32_t cached_has_bits = 0;
6075 // Prevent compiler warnings about cached_has_bits being unused
6076 (void) cached_has_bits;
6077
6078 cached_has_bits = _impl_._has_bits_[0];
6079 if (BatchCheckHasBit(cached_has_bits, 0x0000007fU)) {
6080 if (CheckHasBitForRepeated(cached_has_bits, 0x00000001U)) {
6081 _impl_.variable_.Clear();
6082 }
6083 if (CheckHasBitForRepeated(cached_has_bits, 0x00000002U)) {
6084 _impl_.constraint_.Clear();
6085 }
6086 if (CheckHasBitForRepeated(cached_has_bits, 0x00000004U)) {
6087 _impl_.general_constraint_.Clear();
6088 }
6089 if (CheckHasBitForRepeated(cached_has_bits, 0x00000008U)) {
6090 _impl_.annotation_.Clear();
6091 }
6092 if (CheckHasBit(cached_has_bits, 0x00000010U)) {
6093 _impl_.name_.ClearNonDefaultToEmpty();
6094 }
6095 if (CheckHasBit(cached_has_bits, 0x00000020U)) {
6096 ABSL_DCHECK(_impl_.solution_hint_ != nullptr);
6097 _impl_.solution_hint_->Clear();
6098 }
6099 if (CheckHasBit(cached_has_bits, 0x00000040U)) {
6100 ABSL_DCHECK(_impl_.quadratic_objective_ != nullptr);
6101 _impl_.quadratic_objective_->Clear();
6102 }
6103 }
6104 _impl_.objective_offset_ = 0;
6105 _impl_.maximize_ = false;
6106 _impl_._has_bits_.Clear();
6107 _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>();
6108}
6109
6110#if defined(PROTOBUF_CUSTOM_VTABLE)
6111::uint8_t* PROTOBUF_NONNULL MPModelProto::_InternalSerialize(
6112 const ::google::protobuf::MessageLite& base, ::uint8_t* PROTOBUF_NONNULL target,
6113 ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) {
6114 const MPModelProto& this_ = static_cast<const MPModelProto&>(base);
6115#else // PROTOBUF_CUSTOM_VTABLE
6116::uint8_t* PROTOBUF_NONNULL MPModelProto::_InternalSerialize(
6117 ::uint8_t* PROTOBUF_NONNULL target,
6118 ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const {
6119 const MPModelProto& this_ = *this;
6120#endif // PROTOBUF_CUSTOM_VTABLE
6121 if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) {
6122 this_.CheckHasBitConsistency();
6123 }
6124 // @@protoc_insertion_point(serialize_to_array_start:operations_research.MPModelProto)
6125 ::uint32_t cached_has_bits = 0;
6126 (void)cached_has_bits;
6127
6128 cached_has_bits = this_._impl_._has_bits_[0];
6129 // optional bool maximize = 1 [default = false];
6130 if (CheckHasBit(cached_has_bits, 0x00000100U)) {
6131 target = stream->EnsureSpace(target);
6132 target = ::_pbi::WireFormatLite::WriteBoolToArray(
6133 1, this_._internal_maximize(), target);
6134 }
6135
6136 // optional double objective_offset = 2 [default = 0];
6137 if (CheckHasBit(cached_has_bits, 0x00000080U)) {
6138 target = stream->EnsureSpace(target);
6139 target = ::_pbi::WireFormatLite::WriteDoubleToArray(
6140 2, this_._internal_objective_offset(), target);
6141 }
6142
6143 // repeated .operations_research.MPVariableProto variable = 3;
6144 if (CheckHasBitForRepeated(cached_has_bits, 0x00000001U)) {
6145 for (unsigned i = 0, n = static_cast<unsigned>(
6146 this_._internal_variable_size());
6147 i < n; i++) {
6148 const auto& repfield = this_._internal_variable().Get(i);
6149 target =
6150 ::google::protobuf::internal::WireFormatLite::InternalWriteMessage(
6151 3, repfield, repfield.GetCachedSize(),
6152 target, stream);
6153 }
6154 }
6155
6156 // repeated .operations_research.MPConstraintProto constraint = 4;
6157 if (CheckHasBitForRepeated(cached_has_bits, 0x00000002U)) {
6158 for (unsigned i = 0, n = static_cast<unsigned>(
6159 this_._internal_constraint_size());
6160 i < n; i++) {
6161 const auto& repfield = this_._internal_constraint().Get(i);
6162 target =
6163 ::google::protobuf::internal::WireFormatLite::InternalWriteMessage(
6164 4, repfield, repfield.GetCachedSize(),
6165 target, stream);
6166 }
6167 }
6168
6169 // optional string name = 5 [default = ""];
6170 if (CheckHasBit(cached_has_bits, 0x00000010U)) {
6171 const ::std::string& _s = this_._internal_name();
6172 target = stream->WriteStringMaybeAliased(5, _s, target);
6173 }
6174
6175 // optional .operations_research.PartialVariableAssignment solution_hint = 6;
6176 if (CheckHasBit(cached_has_bits, 0x00000020U)) {
6177 target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage(
6178 6, *this_._impl_.solution_hint_, this_._impl_.solution_hint_->GetCachedSize(), target,
6179 stream);
6180 }
6181
6182 // repeated .operations_research.MPGeneralConstraintProto general_constraint = 7;
6183 if (CheckHasBitForRepeated(cached_has_bits, 0x00000004U)) {
6184 for (unsigned i = 0, n = static_cast<unsigned>(
6185 this_._internal_general_constraint_size());
6186 i < n; i++) {
6187 const auto& repfield = this_._internal_general_constraint().Get(i);
6188 target =
6189 ::google::protobuf::internal::WireFormatLite::InternalWriteMessage(
6190 7, repfield, repfield.GetCachedSize(),
6191 target, stream);
6192 }
6193 }
6194
6195 // optional .operations_research.MPQuadraticObjective quadratic_objective = 8;
6196 if (CheckHasBit(cached_has_bits, 0x00000040U)) {
6197 target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage(
6198 8, *this_._impl_.quadratic_objective_, this_._impl_.quadratic_objective_->GetCachedSize(), target,
6199 stream);
6200 }
6201
6202 // repeated .operations_research.MPModelProto.Annotation annotation = 9;
6203 if (CheckHasBitForRepeated(cached_has_bits, 0x00000008U)) {
6204 for (unsigned i = 0, n = static_cast<unsigned>(
6205 this_._internal_annotation_size());
6206 i < n; i++) {
6207 const auto& repfield = this_._internal_annotation().Get(i);
6208 target =
6209 ::google::protobuf::internal::WireFormatLite::InternalWriteMessage(
6210 9, repfield, repfield.GetCachedSize(),
6211 target, stream);
6212 }
6213 }
6214
6215 if (ABSL_PREDICT_FALSE(this_._internal_metadata_.have_unknown_fields())) {
6216 target =
6217 ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray(
6218 this_._internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream);
6219 }
6220 // @@protoc_insertion_point(serialize_to_array_end:operations_research.MPModelProto)
6221 return target;
6222}
6223
6224#if defined(PROTOBUF_CUSTOM_VTABLE)
6225::size_t MPModelProto::ByteSizeLong(const MessageLite& base) {
6226 const MPModelProto& this_ = static_cast<const MPModelProto&>(base);
6227#else // PROTOBUF_CUSTOM_VTABLE
6228::size_t MPModelProto::ByteSizeLong() const {
6229 const MPModelProto& this_ = *this;
6230#endif // PROTOBUF_CUSTOM_VTABLE
6231 // @@protoc_insertion_point(message_byte_size_start:operations_research.MPModelProto)
6232 ::size_t total_size = 0;
6233
6234 ::uint32_t cached_has_bits = 0;
6235 // Prevent compiler warnings about cached_has_bits being unused
6236 (void)cached_has_bits;
6237
6238 ::_pbi::Prefetch5LinesFrom7Lines(&this_);
6239 cached_has_bits = this_._impl_._has_bits_[0];
6240 total_size += static_cast<bool>(0x00000080U & cached_has_bits) * 9;
6241 total_size += static_cast<bool>(0x00000100U & cached_has_bits) * 2;
6242 if (BatchCheckHasBit(cached_has_bits, 0x0000007fU)) {
6243 // repeated .operations_research.MPVariableProto variable = 3;
6244 if (CheckHasBitForRepeated(cached_has_bits, 0x00000001U)) {
6245 total_size += 1UL * this_._internal_variable_size();
6246 for (const auto& msg : this_._internal_variable()) {
6247 total_size += ::google::protobuf::internal::WireFormatLite::MessageSize(msg);
6248 }
6249 }
6250 // repeated .operations_research.MPConstraintProto constraint = 4;
6251 if (CheckHasBitForRepeated(cached_has_bits, 0x00000002U)) {
6252 total_size += 1UL * this_._internal_constraint_size();
6253 for (const auto& msg : this_._internal_constraint()) {
6254 total_size += ::google::protobuf::internal::WireFormatLite::MessageSize(msg);
6255 }
6256 }
6257 // repeated .operations_research.MPGeneralConstraintProto general_constraint = 7;
6258 if (CheckHasBitForRepeated(cached_has_bits, 0x00000004U)) {
6259 total_size += 1UL * this_._internal_general_constraint_size();
6260 for (const auto& msg : this_._internal_general_constraint()) {
6261 total_size += ::google::protobuf::internal::WireFormatLite::MessageSize(msg);
6262 }
6263 }
6264 // repeated .operations_research.MPModelProto.Annotation annotation = 9;
6265 if (CheckHasBitForRepeated(cached_has_bits, 0x00000008U)) {
6266 total_size += 1UL * this_._internal_annotation_size();
6267 for (const auto& msg : this_._internal_annotation()) {
6268 total_size += ::google::protobuf::internal::WireFormatLite::MessageSize(msg);
6269 }
6270 }
6271 // optional string name = 5 [default = ""];
6272 if (CheckHasBit(cached_has_bits, 0x00000010U)) {
6273 total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize(
6274 this_._internal_name());
6275 }
6276 // optional .operations_research.PartialVariableAssignment solution_hint = 6;
6277 if (CheckHasBit(cached_has_bits, 0x00000020U)) {
6278 total_size += 1 +
6279 ::google::protobuf::internal::WireFormatLite::MessageSize(*this_._impl_.solution_hint_);
6280 }
6281 // optional .operations_research.MPQuadraticObjective quadratic_objective = 8;
6282 if (CheckHasBit(cached_has_bits, 0x00000040U)) {
6283 total_size += 1 +
6284 ::google::protobuf::internal::WireFormatLite::MessageSize(*this_._impl_.quadratic_objective_);
6285 }
6286 }
6287 return this_.MaybeComputeUnknownFieldsSize(total_size,
6288 &this_._impl_._cached_size_);
6289}
6290
6291void MPModelProto::MergeImpl(::google::protobuf::MessageLite& to_msg,
6292 const ::google::protobuf::MessageLite& from_msg) {
6293 auto* const _this =
6294 static_cast<MPModelProto*>(&to_msg);
6295 auto& from = static_cast<const MPModelProto&>(from_msg);
6296 if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) {
6297 from.CheckHasBitConsistency();
6298 }
6299 ::google::protobuf::Arena* arena = _this->GetArena();
6300 // @@protoc_insertion_point(class_specific_merge_from_start:operations_research.MPModelProto)
6301 ABSL_DCHECK_NE(&from, _this);
6302 ::uint32_t cached_has_bits = 0;
6303 (void)cached_has_bits;
6304
6305 cached_has_bits = from._impl_._has_bits_[0];
6306 if (BatchCheckHasBit(cached_has_bits, 0x000000ffU)) {
6307 if (CheckHasBitForRepeated(cached_has_bits, 0x00000001U)) {
6308 _this->_internal_mutable_variable()->InternalMergeFromWithArena(
6309 ::google::protobuf::MessageLite::internal_visibility(), arena,
6310 from._internal_variable());
6311 }
6312 if (CheckHasBitForRepeated(cached_has_bits, 0x00000002U)) {
6313 _this->_internal_mutable_constraint()->InternalMergeFromWithArena(
6314 ::google::protobuf::MessageLite::internal_visibility(), arena,
6315 from._internal_constraint());
6316 }
6317 if (CheckHasBitForRepeated(cached_has_bits, 0x00000004U)) {
6318 _this->_internal_mutable_general_constraint()->InternalMergeFromWithArena(
6319 ::google::protobuf::MessageLite::internal_visibility(), arena,
6320 from._internal_general_constraint());
6321 }
6322 if (CheckHasBitForRepeated(cached_has_bits, 0x00000008U)) {
6323 _this->_internal_mutable_annotation()->InternalMergeFromWithArena(
6324 ::google::protobuf::MessageLite::internal_visibility(), arena,
6325 from._internal_annotation());
6326 }
6327 if (CheckHasBit(cached_has_bits, 0x00000010U)) {
6328 _this->_internal_set_name(from._internal_name());
6329 }
6330 if (CheckHasBit(cached_has_bits, 0x00000020U)) {
6331 ABSL_DCHECK(from._impl_.solution_hint_ != nullptr);
6332 if (_this->_impl_.solution_hint_ == nullptr) {
6333 _this->_impl_.solution_hint_ = ::google::protobuf::Message::CopyConstruct(arena, *from._impl_.solution_hint_);
6334 } else {
6335 _this->_impl_.solution_hint_->MergeFrom(*from._impl_.solution_hint_);
6336 }
6337 }
6338 if (CheckHasBit(cached_has_bits, 0x00000040U)) {
6339 ABSL_DCHECK(from._impl_.quadratic_objective_ != nullptr);
6340 if (_this->_impl_.quadratic_objective_ == nullptr) {
6341 _this->_impl_.quadratic_objective_ = ::google::protobuf::Message::CopyConstruct(arena, *from._impl_.quadratic_objective_);
6342 } else {
6343 _this->_impl_.quadratic_objective_->MergeFrom(*from._impl_.quadratic_objective_);
6344 }
6345 }
6346 if (CheckHasBit(cached_has_bits, 0x00000080U)) {
6347 _this->_impl_.objective_offset_ = from._impl_.objective_offset_;
6348 }
6349 }
6350 if (CheckHasBit(cached_has_bits, 0x00000100U)) {
6351 _this->_impl_.maximize_ = from._impl_.maximize_;
6352 }
6353 _this->_impl_._has_bits_[0] |= cached_has_bits;
6354 _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(
6355 from._internal_metadata_);
6356}
6357
6358void MPModelProto::CopyFrom(const MPModelProto& from) {
6359 // @@protoc_insertion_point(class_specific_copy_from_start:operations_research.MPModelProto)
6360 if (&from == this) return;
6361 Clear();
6362 MergeFrom(from);
6363}
6364
6365
6366void MPModelProto::InternalSwap(MPModelProto* PROTOBUF_RESTRICT PROTOBUF_NONNULL other) {
6367 using ::std::swap;
6368 auto* arena = GetArena();
6369 ABSL_DCHECK_EQ(arena, other->GetArena());
6370 _internal_metadata_.InternalSwap(&other->_internal_metadata_);
6371 swap(_impl_._has_bits_[0], other->_impl_._has_bits_[0]);
6372 _impl_.variable_.InternalSwap(&other->_impl_.variable_);
6373 _impl_.constraint_.InternalSwap(&other->_impl_.constraint_);
6374 _impl_.general_constraint_.InternalSwap(&other->_impl_.general_constraint_);
6375 _impl_.annotation_.InternalSwap(&other->_impl_.annotation_);
6376 ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.name_, &other->_impl_.name_, arena);
6377 ::google::protobuf::internal::memswap<
6378 PROTOBUF_FIELD_OFFSET(MPModelProto, _impl_.maximize_)
6379 + sizeof(MPModelProto::_impl_.maximize_)
6380 - PROTOBUF_FIELD_OFFSET(MPModelProto, _impl_.solution_hint_)>(
6381 reinterpret_cast<char*>(&_impl_.solution_hint_),
6382 reinterpret_cast<char*>(&other->_impl_.solution_hint_));
6383}
6384
6385::google::protobuf::Metadata MPModelProto::GetMetadata() const {
6386 return ::google::protobuf::Message::GetMetadataImpl(GetClassData()->full());
6387}
6388// ===================================================================
6389
6390class OptionalDouble::_Internal {
6391 public:
6392 using HasBits =
6393 decltype(::std::declval<OptionalDouble>()._impl_._has_bits_);
6394 static constexpr ::int32_t kHasBitsOffset =
6395 8 * PROTOBUF_FIELD_OFFSET(OptionalDouble, _impl_._has_bits_);
6396};
6397
6398OptionalDouble::OptionalDouble(::google::protobuf::Arena* PROTOBUF_NULLABLE arena)
6399#if defined(PROTOBUF_CUSTOM_VTABLE)
6400 : ::google::protobuf::Message(arena, OptionalDouble_class_data_.base()) {
6401#else // PROTOBUF_CUSTOM_VTABLE
6402 : ::google::protobuf::Message(arena) {
6403#endif // PROTOBUF_CUSTOM_VTABLE
6404 SharedCtor(arena);
6405 // @@protoc_insertion_point(arena_constructor:operations_research.OptionalDouble)
6408 ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const OptionalDouble& from)
6409#if defined(PROTOBUF_CUSTOM_VTABLE)
6410 : ::google::protobuf::Message(arena, OptionalDouble_class_data_.base()),
6411#else // PROTOBUF_CUSTOM_VTABLE
6412 : ::google::protobuf::Message(arena),
6413#endif // PROTOBUF_CUSTOM_VTABLE
6414 _impl_(from._impl_) {
6415 _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(
6416 from._internal_metadata_);
6417}
6418PROTOBUF_NDEBUG_INLINE OptionalDouble::Impl_::Impl_(
6419 [[maybe_unused]] ::google::protobuf::internal::InternalVisibility visibility,
6420 [[maybe_unused]] ::google::protobuf::Arena* PROTOBUF_NULLABLE arena)
6421 : _cached_size_{0} {}
6422
6423inline void OptionalDouble::SharedCtor(::_pb::Arena* PROTOBUF_NULLABLE arena) {
6424 new (&_impl_) Impl_(internal_visibility(), arena);
6425 _impl_.value_ = {};
6426}
6428 // @@protoc_insertion_point(destructor:operations_research.OptionalDouble)
6429 SharedDtor(*this);
6430}
6431inline void OptionalDouble::SharedDtor(MessageLite& self) {
6432 OptionalDouble& this_ = static_cast<OptionalDouble&>(self);
6433 if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) {
6434 this_.CheckHasBitConsistency();
6435 }
6436 this_._internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>();
6437 ABSL_DCHECK(this_.GetArena() == nullptr);
6438 this_._impl_.~Impl_();
6439}
6440
6441inline void* PROTOBUF_NONNULL OptionalDouble::PlacementNew_(
6442 const void* PROTOBUF_NONNULL, void* PROTOBUF_NONNULL mem,
6443 ::google::protobuf::Arena* PROTOBUF_NULLABLE arena) {
6444 return ::new (mem) OptionalDouble(arena);
6445}
6446constexpr auto OptionalDouble::InternalNewImpl_() {
6447 return ::google::protobuf::internal::MessageCreator::ZeroInit(sizeof(OptionalDouble),
6448 alignof(OptionalDouble));
6449}
6451 return ::google::protobuf::internal::ClassDataFull{
6452 ::google::protobuf::internal::ClassData{
6454 &_table_.header,
6455 nullptr, // OnDemandRegisterArenaDtor
6456 nullptr, // IsInitialized
6457 &OptionalDouble::MergeImpl,
6458 ::google::protobuf::Message::GetNewImpl<OptionalDouble>(),
6459#if defined(PROTOBUF_CUSTOM_VTABLE)
6460 &OptionalDouble::SharedDtor,
6461 ::google::protobuf::Message::GetClearImpl<OptionalDouble>(), &OptionalDouble::ByteSizeLong,
6463#endif // PROTOBUF_CUSTOM_VTABLE
6464 PROTOBUF_FIELD_OFFSET(OptionalDouble, _impl_._cached_size_),
6465 false,
6466 },
6467 &OptionalDouble::kDescriptorMethods,
6469 nullptr, // tracker
6470 };
6471}
6472
6473PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 const
6474 ::google::protobuf::internal::ClassDataFull OptionalDouble_class_data_ =
6476
6477PROTOBUF_ATTRIBUTE_WEAK const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL
6478OptionalDouble::GetClassData() const {
6479 ::google::protobuf::internal::PrefetchToLocalCache(&OptionalDouble_class_data_);
6480 ::google::protobuf::internal::PrefetchToLocalCache(OptionalDouble_class_data_.tc_table);
6481 return OptionalDouble_class_data_.base();
6482}
6483PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1
6484const ::_pbi::TcParseTable<0, 1, 0, 0, 2>
6485OptionalDouble::_table_ = {
6486 {
6487 PROTOBUF_FIELD_OFFSET(OptionalDouble, _impl_._has_bits_),
6488 0, // no _extensions_
6489 1, 0, // max_field_number, fast_idx_mask
6490 offsetof(decltype(_table_), field_lookup_table),
6491 4294967294, // skipmap
6492 offsetof(decltype(_table_), field_entries),
6493 1, // num_field_entries
6494 0, // num_aux_entries
6495 offsetof(decltype(_table_), field_names), // no aux_entries
6497 nullptr, // post_loop_handler
6498 ::_pbi::TcParser::GenericFallback, // fallback
6499 #ifdef PROTOBUF_PREFETCH_PARSE_TABLE
6500 ::_pbi::TcParser::GetTable<::operations_research::OptionalDouble>(), // to_prefetch
6501 #endif // PROTOBUF_PREFETCH_PARSE_TABLE
6502 }, {{
6503 // optional double value = 1;
6504 {::_pbi::TcParser::FastF64S1,
6505 {9, 0, 0,
6506 PROTOBUF_FIELD_OFFSET(OptionalDouble, _impl_.value_)}},
6507 }}, {{
6508 65535, 65535
6509 }}, {{
6510 // optional double value = 1;
6511 {PROTOBUF_FIELD_OFFSET(OptionalDouble, _impl_.value_), _Internal::kHasBitsOffset + 0, 0, (0 | ::_fl::kFcOptional | ::_fl::kDouble)},
6512 }},
6513 // no aux_entries
6514 {{
6515 }},
6516};
6517PROTOBUF_NOINLINE void OptionalDouble::Clear() {
6518// @@protoc_insertion_point(message_clear_start:operations_research.OptionalDouble)
6519 ::google::protobuf::internal::TSanWrite(&_impl_);
6520 ::uint32_t cached_has_bits = 0;
6521 // Prevent compiler warnings about cached_has_bits being unused
6522 (void) cached_has_bits;
6523
6524 _impl_.value_ = 0;
6525 _impl_._has_bits_.Clear();
6526 _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>();
6527}
6528
6529#if defined(PROTOBUF_CUSTOM_VTABLE)
6530::uint8_t* PROTOBUF_NONNULL OptionalDouble::_InternalSerialize(
6531 const ::google::protobuf::MessageLite& base, ::uint8_t* PROTOBUF_NONNULL target,
6532 ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) {
6533 const OptionalDouble& this_ = static_cast<const OptionalDouble&>(base);
6534#else // PROTOBUF_CUSTOM_VTABLE
6535::uint8_t* PROTOBUF_NONNULL OptionalDouble::_InternalSerialize(
6536 ::uint8_t* PROTOBUF_NONNULL target,
6537 ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const {
6538 const OptionalDouble& this_ = *this;
6539#endif // PROTOBUF_CUSTOM_VTABLE
6540 if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) {
6541 this_.CheckHasBitConsistency();
6542 }
6543 // @@protoc_insertion_point(serialize_to_array_start:operations_research.OptionalDouble)
6544 ::uint32_t cached_has_bits = 0;
6545 (void)cached_has_bits;
6546
6547 cached_has_bits = this_._impl_._has_bits_[0];
6548 // optional double value = 1;
6549 if (CheckHasBit(cached_has_bits, 0x00000001U)) {
6550 target = stream->EnsureSpace(target);
6551 target = ::_pbi::WireFormatLite::WriteDoubleToArray(
6552 1, this_._internal_value(), target);
6553 }
6554
6555 if (ABSL_PREDICT_FALSE(this_._internal_metadata_.have_unknown_fields())) {
6556 target =
6557 ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray(
6558 this_._internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream);
6559 }
6560 // @@protoc_insertion_point(serialize_to_array_end:operations_research.OptionalDouble)
6561 return target;
6562}
6563
6564#if defined(PROTOBUF_CUSTOM_VTABLE)
6565::size_t OptionalDouble::ByteSizeLong(const MessageLite& base) {
6566 const OptionalDouble& this_ = static_cast<const OptionalDouble&>(base);
6567#else // PROTOBUF_CUSTOM_VTABLE
6568::size_t OptionalDouble::ByteSizeLong() const {
6569 const OptionalDouble& this_ = *this;
6570#endif // PROTOBUF_CUSTOM_VTABLE
6571 // @@protoc_insertion_point(message_byte_size_start:operations_research.OptionalDouble)
6572 ::size_t total_size = 0;
6573
6574 ::uint32_t cached_has_bits = 0;
6575 // Prevent compiler warnings about cached_has_bits being unused
6576 (void)cached_has_bits;
6577
6578 cached_has_bits = this_._impl_._has_bits_[0];
6579 total_size += static_cast<bool>(0x00000001U & cached_has_bits) * 9;
6580 return this_.MaybeComputeUnknownFieldsSize(total_size,
6581 &this_._impl_._cached_size_);
6583
6584void OptionalDouble::MergeImpl(::google::protobuf::MessageLite& to_msg,
6585 const ::google::protobuf::MessageLite& from_msg) {
6586 auto* const _this =
6587 static_cast<OptionalDouble*>(&to_msg);
6588 auto& from = static_cast<const OptionalDouble&>(from_msg);
6589 if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) {
6590 from.CheckHasBitConsistency();
6591 }
6592 // @@protoc_insertion_point(class_specific_merge_from_start:operations_research.OptionalDouble)
6593 ABSL_DCHECK_NE(&from, _this);
6594 ::uint32_t cached_has_bits = 0;
6595 (void)cached_has_bits;
6596
6597 cached_has_bits = from._impl_._has_bits_[0];
6598 if (CheckHasBit(cached_has_bits, 0x00000001U)) {
6599 _this->_impl_.value_ = from._impl_.value_;
6600 }
6601 _this->_impl_._has_bits_[0] |= cached_has_bits;
6602 _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(
6603 from._internal_metadata_);
6604}
6605
6606void OptionalDouble::CopyFrom(const OptionalDouble& from) {
6607 // @@protoc_insertion_point(class_specific_copy_from_start:operations_research.OptionalDouble)
6608 if (&from == this) return;
6609 Clear();
6610 MergeFrom(from);
6611}
6612
6613
6614void OptionalDouble::InternalSwap(OptionalDouble* PROTOBUF_RESTRICT PROTOBUF_NONNULL other) {
6615 using ::std::swap;
6616 _internal_metadata_.InternalSwap(&other->_internal_metadata_);
6617 swap(_impl_._has_bits_[0], other->_impl_._has_bits_[0]);
6618 swap(_impl_.value_, other->_impl_.value_);
6619}
6621::google::protobuf::Metadata OptionalDouble::GetMetadata() const {
6622 return ::google::protobuf::Message::GetMetadataImpl(GetClassData()->full());
6623}
6624// ===================================================================
6625
6627 public:
6628 using HasBits =
6629 decltype(::std::declval<MPSolverCommonParameters>()._impl_._has_bits_);
6630 static constexpr ::int32_t kHasBitsOffset =
6631 8 * PROTOBUF_FIELD_OFFSET(MPSolverCommonParameters, _impl_._has_bits_);
6632};
6633
6634MPSolverCommonParameters::MPSolverCommonParameters(::google::protobuf::Arena* PROTOBUF_NULLABLE arena)
6635#if defined(PROTOBUF_CUSTOM_VTABLE)
6636 : ::google::protobuf::Message(arena, MPSolverCommonParameters_class_data_.base()) {
6637#else // PROTOBUF_CUSTOM_VTABLE
6638 : ::google::protobuf::Message(arena) {
6639#endif // PROTOBUF_CUSTOM_VTABLE
6640 SharedCtor(arena);
6641 // @@protoc_insertion_point(arena_constructor:operations_research.MPSolverCommonParameters)
6642}
6643PROTOBUF_NDEBUG_INLINE MPSolverCommonParameters::Impl_::Impl_(
6644 [[maybe_unused]] ::google::protobuf::internal::InternalVisibility visibility,
6645 [[maybe_unused]] ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const Impl_& from,
6646 [[maybe_unused]] const ::operations_research::MPSolverCommonParameters& from_msg)
6647 : _has_bits_{from._has_bits_},
6648 _cached_size_{0} {}
6649
6651 ::google::protobuf::Arena* PROTOBUF_NULLABLE arena,
6652 const MPSolverCommonParameters& from)
6653#if defined(PROTOBUF_CUSTOM_VTABLE)
6654 : ::google::protobuf::Message(arena, MPSolverCommonParameters_class_data_.base()) {
6655#else // PROTOBUF_CUSTOM_VTABLE
6656 : ::google::protobuf::Message(arena) {
6657#endif // PROTOBUF_CUSTOM_VTABLE
6658 MPSolverCommonParameters* const _this = this;
6659 (void)_this;
6660 _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(
6661 from._internal_metadata_);
6662 new (&_impl_) Impl_(internal_visibility(), arena, from._impl_, from);
6663 ::uint32_t cached_has_bits = _impl_._has_bits_[0];
6664 _impl_.relative_mip_gap_ = (CheckHasBit(cached_has_bits, 0x00000001U))
6665 ? ::google::protobuf::Message::CopyConstruct(arena, *from._impl_.relative_mip_gap_)
6666 : nullptr;
6667 _impl_.primal_tolerance_ = (CheckHasBit(cached_has_bits, 0x00000002U))
6668 ? ::google::protobuf::Message::CopyConstruct(arena, *from._impl_.primal_tolerance_)
6669 : nullptr;
6670 _impl_.dual_tolerance_ = (CheckHasBit(cached_has_bits, 0x00000004U))
6671 ? ::google::protobuf::Message::CopyConstruct(arena, *from._impl_.dual_tolerance_)
6672 : nullptr;
6673 ::memcpy(reinterpret_cast<char*>(&_impl_) +
6674 offsetof(Impl_, lp_algorithm_),
6675 reinterpret_cast<const char*>(&from._impl_) +
6676 offsetof(Impl_, lp_algorithm_),
6677 offsetof(Impl_, scaling_) -
6678 offsetof(Impl_, lp_algorithm_) +
6679 sizeof(Impl_::scaling_));
6680
6681 // @@protoc_insertion_point(copy_constructor:operations_research.MPSolverCommonParameters)
6682}
6683PROTOBUF_NDEBUG_INLINE MPSolverCommonParameters::Impl_::Impl_(
6684 [[maybe_unused]] ::google::protobuf::internal::InternalVisibility visibility,
6685 [[maybe_unused]] ::google::protobuf::Arena* PROTOBUF_NULLABLE arena)
6686 : _cached_size_{0} {}
6687
6688inline void MPSolverCommonParameters::SharedCtor(::_pb::Arena* PROTOBUF_NULLABLE arena) {
6689 new (&_impl_) Impl_(internal_visibility(), arena);
6690 ::memset(reinterpret_cast<char*>(&_impl_) +
6691 offsetof(Impl_, relative_mip_gap_),
6692 0,
6693 offsetof(Impl_, scaling_) -
6694 offsetof(Impl_, relative_mip_gap_) +
6695 sizeof(Impl_::scaling_));
6696}
6698 // @@protoc_insertion_point(destructor:operations_research.MPSolverCommonParameters)
6699 SharedDtor(*this);
6700}
6701inline void MPSolverCommonParameters::SharedDtor(MessageLite& self) {
6702 MPSolverCommonParameters& this_ = static_cast<MPSolverCommonParameters&>(self);
6703 if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) {
6704 this_.CheckHasBitConsistency();
6705 }
6706 this_._internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>();
6707 ABSL_DCHECK(this_.GetArena() == nullptr);
6708 delete this_._impl_.relative_mip_gap_;
6709 delete this_._impl_.primal_tolerance_;
6710 delete this_._impl_.dual_tolerance_;
6711 this_._impl_.~Impl_();
6713
6714inline void* PROTOBUF_NONNULL MPSolverCommonParameters::PlacementNew_(
6715 const void* PROTOBUF_NONNULL, void* PROTOBUF_NONNULL mem,
6716 ::google::protobuf::Arena* PROTOBUF_NULLABLE arena) {
6717 return ::new (mem) MPSolverCommonParameters(arena);
6718}
6719constexpr auto MPSolverCommonParameters::InternalNewImpl_() {
6720 return ::google::protobuf::internal::MessageCreator::ZeroInit(sizeof(MPSolverCommonParameters),
6721 alignof(MPSolverCommonParameters));
6722}
6724 return ::google::protobuf::internal::ClassDataFull{
6725 ::google::protobuf::internal::ClassData{
6727 &_table_.header,
6728 nullptr, // OnDemandRegisterArenaDtor
6729 nullptr, // IsInitialized
6730 &MPSolverCommonParameters::MergeImpl,
6731 ::google::protobuf::Message::GetNewImpl<MPSolverCommonParameters>(),
6732#if defined(PROTOBUF_CUSTOM_VTABLE)
6733 &MPSolverCommonParameters::SharedDtor,
6734 ::google::protobuf::Message::GetClearImpl<MPSolverCommonParameters>(), &MPSolverCommonParameters::ByteSizeLong,
6736#endif // PROTOBUF_CUSTOM_VTABLE
6737 PROTOBUF_FIELD_OFFSET(MPSolverCommonParameters, _impl_._cached_size_),
6738 false,
6739 },
6740 &MPSolverCommonParameters::kDescriptorMethods,
6742 nullptr, // tracker
6743 };
6744}
6745
6746PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 const
6747 ::google::protobuf::internal::ClassDataFull MPSolverCommonParameters_class_data_ =
6749
6750PROTOBUF_ATTRIBUTE_WEAK const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL
6751MPSolverCommonParameters::GetClassData() const {
6752 ::google::protobuf::internal::PrefetchToLocalCache(&MPSolverCommonParameters_class_data_);
6753 ::google::protobuf::internal::PrefetchToLocalCache(MPSolverCommonParameters_class_data_.tc_table);
6755}
6756PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1
6757const ::_pbi::TcParseTable<3, 6, 6, 0, 2>
6758MPSolverCommonParameters::_table_ = {
6759 {
6760 PROTOBUF_FIELD_OFFSET(MPSolverCommonParameters, _impl_._has_bits_),
6761 0, // no _extensions_
6762 7, 56, // max_field_number, fast_idx_mask
6763 offsetof(decltype(_table_), field_lookup_table),
6764 4294967200, // skipmap
6765 offsetof(decltype(_table_), field_entries),
6766 6, // num_field_entries
6767 6, // num_aux_entries
6768 offsetof(decltype(_table_), aux_entries),
6770 nullptr, // post_loop_handler
6771 ::_pbi::TcParser::GenericFallback, // fallback
6772 #ifdef PROTOBUF_PREFETCH_PARSE_TABLE
6773 ::_pbi::TcParser::GetTable<::operations_research::MPSolverCommonParameters>(), // to_prefetch
6774 #endif // PROTOBUF_PREFETCH_PARSE_TABLE
6775 }, {{
6776 {::_pbi::TcParser::MiniParse, {}},
6777 // optional .operations_research.OptionalDouble relative_mip_gap = 1;
6778 {::_pbi::TcParser::FastMtS1,
6779 {10, 0, 0,
6780 PROTOBUF_FIELD_OFFSET(MPSolverCommonParameters, _impl_.relative_mip_gap_)}},
6781 // optional .operations_research.OptionalDouble primal_tolerance = 2;
6782 {::_pbi::TcParser::FastMtS1,
6783 {18, 1, 1,
6784 PROTOBUF_FIELD_OFFSET(MPSolverCommonParameters, _impl_.primal_tolerance_)}},
6785 // optional .operations_research.OptionalDouble dual_tolerance = 3;
6786 {::_pbi::TcParser::FastMtS1,
6787 {26, 2, 2,
6788 PROTOBUF_FIELD_OFFSET(MPSolverCommonParameters, _impl_.dual_tolerance_)}},
6789 // optional .operations_research.MPSolverCommonParameters.LPAlgorithmValues lp_algorithm = 4 [default = LP_ALGO_UNSPECIFIED];
6790 {::_pbi::TcParser::FastEr0S1,
6791 {32, 3, 3,
6792 PROTOBUF_FIELD_OFFSET(MPSolverCommonParameters, _impl_.lp_algorithm_)}},
6793 // optional .operations_research.OptionalBoolean presolve = 5 [default = BOOL_UNSPECIFIED];
6794 {::_pbi::TcParser::FastEvS1,
6795 {40, 4, 4,
6796 PROTOBUF_FIELD_OFFSET(MPSolverCommonParameters, _impl_.presolve_)}},
6797 {::_pbi::TcParser::MiniParse, {}},
6798 // optional .operations_research.OptionalBoolean scaling = 7 [default = BOOL_UNSPECIFIED];
6799 {::_pbi::TcParser::FastEvS1,
6800 {56, 5, 5,
6801 PROTOBUF_FIELD_OFFSET(MPSolverCommonParameters, _impl_.scaling_)}},
6802 }}, {{
6803 65535, 65535
6804 }}, {{
6805 // optional .operations_research.OptionalDouble relative_mip_gap = 1;
6806 {PROTOBUF_FIELD_OFFSET(MPSolverCommonParameters, _impl_.relative_mip_gap_), _Internal::kHasBitsOffset + 0, 0, (0 | ::_fl::kFcOptional | ::_fl::kMessage | ::_fl::kTvTable)},
6807 // optional .operations_research.OptionalDouble primal_tolerance = 2;
6808 {PROTOBUF_FIELD_OFFSET(MPSolverCommonParameters, _impl_.primal_tolerance_), _Internal::kHasBitsOffset + 1, 1, (0 | ::_fl::kFcOptional | ::_fl::kMessage | ::_fl::kTvTable)},
6809 // optional .operations_research.OptionalDouble dual_tolerance = 3;
6810 {PROTOBUF_FIELD_OFFSET(MPSolverCommonParameters, _impl_.dual_tolerance_), _Internal::kHasBitsOffset + 2, 2, (0 | ::_fl::kFcOptional | ::_fl::kMessage | ::_fl::kTvTable)},
6811 // optional .operations_research.MPSolverCommonParameters.LPAlgorithmValues lp_algorithm = 4 [default = LP_ALGO_UNSPECIFIED];
6812 {PROTOBUF_FIELD_OFFSET(MPSolverCommonParameters, _impl_.lp_algorithm_), _Internal::kHasBitsOffset + 3, 3, (0 | ::_fl::kFcOptional | ::_fl::kEnumRange)},
6813 // optional .operations_research.OptionalBoolean presolve = 5 [default = BOOL_UNSPECIFIED];
6814 {PROTOBUF_FIELD_OFFSET(MPSolverCommonParameters, _impl_.presolve_), _Internal::kHasBitsOffset + 4, 4, (0 | ::_fl::kFcOptional | ::_fl::kEnum)},
6815 // optional .operations_research.OptionalBoolean scaling = 7 [default = BOOL_UNSPECIFIED];
6816 {PROTOBUF_FIELD_OFFSET(MPSolverCommonParameters, _impl_.scaling_), _Internal::kHasBitsOffset + 5, 5, (0 | ::_fl::kFcOptional | ::_fl::kEnum)},
6817 }},
6818 {{
6819 {::_pbi::TcParser::GetTable<::operations_research::OptionalDouble>()},
6820 {::_pbi::TcParser::GetTable<::operations_research::OptionalDouble>()},
6821 {::_pbi::TcParser::GetTable<::operations_research::OptionalDouble>()},
6822 {0, 3},
6823 {::_pbi::FieldAuxEnumData{}, ::operations_research::OptionalBoolean_internal_data_},
6824 {::_pbi::FieldAuxEnumData{}, ::operations_research::OptionalBoolean_internal_data_},
6825 }},
6826 {{
6827 }},
6828};
6829PROTOBUF_NOINLINE void MPSolverCommonParameters::Clear() {
6830// @@protoc_insertion_point(message_clear_start:operations_research.MPSolverCommonParameters)
6831 ::google::protobuf::internal::TSanWrite(&_impl_);
6832 ::uint32_t cached_has_bits = 0;
6833 // Prevent compiler warnings about cached_has_bits being unused
6834 (void) cached_has_bits;
6835
6836 cached_has_bits = _impl_._has_bits_[0];
6837 if (BatchCheckHasBit(cached_has_bits, 0x00000007U)) {
6838 if (CheckHasBit(cached_has_bits, 0x00000001U)) {
6839 ABSL_DCHECK(_impl_.relative_mip_gap_ != nullptr);
6840 _impl_.relative_mip_gap_->Clear();
6841 }
6842 if (CheckHasBit(cached_has_bits, 0x00000002U)) {
6843 ABSL_DCHECK(_impl_.primal_tolerance_ != nullptr);
6844 _impl_.primal_tolerance_->Clear();
6845 }
6846 if (CheckHasBit(cached_has_bits, 0x00000004U)) {
6847 ABSL_DCHECK(_impl_.dual_tolerance_ != nullptr);
6848 _impl_.dual_tolerance_->Clear();
6849 }
6850 }
6851 if (BatchCheckHasBit(cached_has_bits, 0x00000038U)) {
6852 ::memset(&_impl_.lp_algorithm_, 0, static_cast<::size_t>(
6853 reinterpret_cast<char*>(&_impl_.scaling_) -
6854 reinterpret_cast<char*>(&_impl_.lp_algorithm_)) + sizeof(_impl_.scaling_));
6855 }
6856 _impl_._has_bits_.Clear();
6857 _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>();
6858}
6859
6860#if defined(PROTOBUF_CUSTOM_VTABLE)
6861::uint8_t* PROTOBUF_NONNULL MPSolverCommonParameters::_InternalSerialize(
6862 const ::google::protobuf::MessageLite& base, ::uint8_t* PROTOBUF_NONNULL target,
6863 ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) {
6864 const MPSolverCommonParameters& this_ = static_cast<const MPSolverCommonParameters&>(base);
6865#else // PROTOBUF_CUSTOM_VTABLE
6866::uint8_t* PROTOBUF_NONNULL MPSolverCommonParameters::_InternalSerialize(
6867 ::uint8_t* PROTOBUF_NONNULL target,
6868 ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const {
6869 const MPSolverCommonParameters& this_ = *this;
6870#endif // PROTOBUF_CUSTOM_VTABLE
6871 if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) {
6872 this_.CheckHasBitConsistency();
6873 }
6874 // @@protoc_insertion_point(serialize_to_array_start:operations_research.MPSolverCommonParameters)
6875 ::uint32_t cached_has_bits = 0;
6876 (void)cached_has_bits;
6877
6878 cached_has_bits = this_._impl_._has_bits_[0];
6879 // optional .operations_research.OptionalDouble relative_mip_gap = 1;
6880 if (CheckHasBit(cached_has_bits, 0x00000001U)) {
6881 target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage(
6882 1, *this_._impl_.relative_mip_gap_, this_._impl_.relative_mip_gap_->GetCachedSize(), target,
6883 stream);
6884 }
6885
6886 // optional .operations_research.OptionalDouble primal_tolerance = 2;
6887 if (CheckHasBit(cached_has_bits, 0x00000002U)) {
6888 target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage(
6889 2, *this_._impl_.primal_tolerance_, this_._impl_.primal_tolerance_->GetCachedSize(), target,
6890 stream);
6891 }
6892
6893 // optional .operations_research.OptionalDouble dual_tolerance = 3;
6894 if (CheckHasBit(cached_has_bits, 0x00000004U)) {
6895 target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage(
6896 3, *this_._impl_.dual_tolerance_, this_._impl_.dual_tolerance_->GetCachedSize(), target,
6897 stream);
6898 }
6899
6900 // optional .operations_research.MPSolverCommonParameters.LPAlgorithmValues lp_algorithm = 4 [default = LP_ALGO_UNSPECIFIED];
6901 if (CheckHasBit(cached_has_bits, 0x00000008U)) {
6902 target = stream->EnsureSpace(target);
6903 target = ::_pbi::WireFormatLite::WriteEnumToArray(
6904 4, this_._internal_lp_algorithm(), target);
6905 }
6906
6907 // optional .operations_research.OptionalBoolean presolve = 5 [default = BOOL_UNSPECIFIED];
6908 if (CheckHasBit(cached_has_bits, 0x00000010U)) {
6909 target = stream->EnsureSpace(target);
6910 target = ::_pbi::WireFormatLite::WriteEnumToArray(
6911 5, this_._internal_presolve(), target);
6912 }
6913
6914 // optional .operations_research.OptionalBoolean scaling = 7 [default = BOOL_UNSPECIFIED];
6915 if (CheckHasBit(cached_has_bits, 0x00000020U)) {
6916 target = stream->EnsureSpace(target);
6917 target = ::_pbi::WireFormatLite::WriteEnumToArray(
6918 7, this_._internal_scaling(), target);
6919 }
6920
6921 if (ABSL_PREDICT_FALSE(this_._internal_metadata_.have_unknown_fields())) {
6922 target =
6923 ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray(
6924 this_._internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream);
6925 }
6926 // @@protoc_insertion_point(serialize_to_array_end:operations_research.MPSolverCommonParameters)
6927 return target;
6928}
6929
6930#if defined(PROTOBUF_CUSTOM_VTABLE)
6932 const MPSolverCommonParameters& this_ = static_cast<const MPSolverCommonParameters&>(base);
6933#else // PROTOBUF_CUSTOM_VTABLE
6935 const MPSolverCommonParameters& this_ = *this;
6936#endif // PROTOBUF_CUSTOM_VTABLE
6937 // @@protoc_insertion_point(message_byte_size_start:operations_research.MPSolverCommonParameters)
6938 ::size_t total_size = 0;
6939
6940 ::uint32_t cached_has_bits = 0;
6941 // Prevent compiler warnings about cached_has_bits being unused
6942 (void)cached_has_bits;
6943
6944 ::_pbi::Prefetch5LinesFrom7Lines(&this_);
6945 cached_has_bits = this_._impl_._has_bits_[0];
6946 if (BatchCheckHasBit(cached_has_bits, 0x0000003fU)) {
6947 // optional .operations_research.OptionalDouble relative_mip_gap = 1;
6948 if (CheckHasBit(cached_has_bits, 0x00000001U)) {
6949 total_size += 1 +
6950 ::google::protobuf::internal::WireFormatLite::MessageSize(*this_._impl_.relative_mip_gap_);
6951 }
6952 // optional .operations_research.OptionalDouble primal_tolerance = 2;
6953 if (CheckHasBit(cached_has_bits, 0x00000002U)) {
6954 total_size += 1 +
6955 ::google::protobuf::internal::WireFormatLite::MessageSize(*this_._impl_.primal_tolerance_);
6956 }
6957 // optional .operations_research.OptionalDouble dual_tolerance = 3;
6958 if (CheckHasBit(cached_has_bits, 0x00000004U)) {
6959 total_size += 1 +
6960 ::google::protobuf::internal::WireFormatLite::MessageSize(*this_._impl_.dual_tolerance_);
6961 }
6962 // optional .operations_research.MPSolverCommonParameters.LPAlgorithmValues lp_algorithm = 4 [default = LP_ALGO_UNSPECIFIED];
6963 if (CheckHasBit(cached_has_bits, 0x00000008U)) {
6964 total_size += 1 +
6965 ::_pbi::WireFormatLite::EnumSize(this_._internal_lp_algorithm());
6966 }
6967 // optional .operations_research.OptionalBoolean presolve = 5 [default = BOOL_UNSPECIFIED];
6968 if (CheckHasBit(cached_has_bits, 0x00000010U)) {
6969 total_size += 1 +
6970 ::_pbi::WireFormatLite::EnumSize(this_._internal_presolve());
6971 }
6972 // optional .operations_research.OptionalBoolean scaling = 7 [default = BOOL_UNSPECIFIED];
6973 if (CheckHasBit(cached_has_bits, 0x00000020U)) {
6974 total_size += 1 +
6975 ::_pbi::WireFormatLite::EnumSize(this_._internal_scaling());
6976 }
6977 }
6978 return this_.MaybeComputeUnknownFieldsSize(total_size,
6979 &this_._impl_._cached_size_);
6980}
6981
6982void MPSolverCommonParameters::MergeImpl(::google::protobuf::MessageLite& to_msg,
6983 const ::google::protobuf::MessageLite& from_msg) {
6984 auto* const _this =
6985 static_cast<MPSolverCommonParameters*>(&to_msg);
6986 auto& from = static_cast<const MPSolverCommonParameters&>(from_msg);
6987 if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) {
6988 from.CheckHasBitConsistency();
6989 }
6990 ::google::protobuf::Arena* arena = _this->GetArena();
6991 // @@protoc_insertion_point(class_specific_merge_from_start:operations_research.MPSolverCommonParameters)
6992 ABSL_DCHECK_NE(&from, _this);
6993 ::uint32_t cached_has_bits = 0;
6994 (void)cached_has_bits;
6995
6996 cached_has_bits = from._impl_._has_bits_[0];
6997 if (BatchCheckHasBit(cached_has_bits, 0x0000003fU)) {
6998 if (CheckHasBit(cached_has_bits, 0x00000001U)) {
6999 ABSL_DCHECK(from._impl_.relative_mip_gap_ != nullptr);
7000 if (_this->_impl_.relative_mip_gap_ == nullptr) {
7001 _this->_impl_.relative_mip_gap_ = ::google::protobuf::Message::CopyConstruct(arena, *from._impl_.relative_mip_gap_);
7002 } else {
7003 _this->_impl_.relative_mip_gap_->MergeFrom(*from._impl_.relative_mip_gap_);
7004 }
7005 }
7006 if (CheckHasBit(cached_has_bits, 0x00000002U)) {
7007 ABSL_DCHECK(from._impl_.primal_tolerance_ != nullptr);
7008 if (_this->_impl_.primal_tolerance_ == nullptr) {
7009 _this->_impl_.primal_tolerance_ = ::google::protobuf::Message::CopyConstruct(arena, *from._impl_.primal_tolerance_);
7010 } else {
7011 _this->_impl_.primal_tolerance_->MergeFrom(*from._impl_.primal_tolerance_);
7012 }
7013 }
7014 if (CheckHasBit(cached_has_bits, 0x00000004U)) {
7015 ABSL_DCHECK(from._impl_.dual_tolerance_ != nullptr);
7016 if (_this->_impl_.dual_tolerance_ == nullptr) {
7017 _this->_impl_.dual_tolerance_ = ::google::protobuf::Message::CopyConstruct(arena, *from._impl_.dual_tolerance_);
7018 } else {
7019 _this->_impl_.dual_tolerance_->MergeFrom(*from._impl_.dual_tolerance_);
7020 }
7021 }
7022 if (CheckHasBit(cached_has_bits, 0x00000008U)) {
7023 _this->_impl_.lp_algorithm_ = from._impl_.lp_algorithm_;
7024 }
7025 if (CheckHasBit(cached_has_bits, 0x00000010U)) {
7026 _this->_impl_.presolve_ = from._impl_.presolve_;
7027 }
7028 if (CheckHasBit(cached_has_bits, 0x00000020U)) {
7029 _this->_impl_.scaling_ = from._impl_.scaling_;
7030 }
7031 }
7032 _this->_impl_._has_bits_[0] |= cached_has_bits;
7033 _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(
7034 from._internal_metadata_);
7035}
7036
7038 // @@protoc_insertion_point(class_specific_copy_from_start:operations_research.MPSolverCommonParameters)
7039 if (&from == this) return;
7040 Clear();
7041 MergeFrom(from);
7042}
7043
7044
7045void MPSolverCommonParameters::InternalSwap(MPSolverCommonParameters* PROTOBUF_RESTRICT PROTOBUF_NONNULL other) {
7046 using ::std::swap;
7047 _internal_metadata_.InternalSwap(&other->_internal_metadata_);
7048 swap(_impl_._has_bits_[0], other->_impl_._has_bits_[0]);
7049 ::google::protobuf::internal::memswap<
7050 PROTOBUF_FIELD_OFFSET(MPSolverCommonParameters, _impl_.scaling_)
7051 + sizeof(MPSolverCommonParameters::_impl_.scaling_)
7052 - PROTOBUF_FIELD_OFFSET(MPSolverCommonParameters, _impl_.relative_mip_gap_)>(
7053 reinterpret_cast<char*>(&_impl_.relative_mip_gap_),
7054 reinterpret_cast<char*>(&other->_impl_.relative_mip_gap_));
7055}
7056
7057::google::protobuf::Metadata MPSolverCommonParameters::GetMetadata() const {
7058 return ::google::protobuf::Message::GetMetadataImpl(GetClassData()->full());
7059}
7060// ===================================================================
7061
7062#if defined(PROTOBUF_CUSTOM_VTABLE)
7067#else // PROTOBUF_CUSTOM_VTABLE
7069MPModelDeltaProto_VariableOverridesEntry_DoNotUse::MPModelDeltaProto_VariableOverridesEntry_DoNotUse(::google::protobuf::Arena* PROTOBUF_NULLABLE arena) : SuperType(arena) {}
7070#endif // PROTOBUF_CUSTOM_VTABLE
7071inline void* PROTOBUF_NONNULL MPModelDeltaProto_VariableOverridesEntry_DoNotUse::PlacementNew_(
7072 const void* PROTOBUF_NONNULL, void* PROTOBUF_NONNULL mem,
7073 ::google::protobuf::Arena* PROTOBUF_NULLABLE arena) {
7074 return ::new (mem) MPModelDeltaProto_VariableOverridesEntry_DoNotUse(arena);
7075}
7076constexpr auto MPModelDeltaProto_VariableOverridesEntry_DoNotUse::InternalNewImpl_() {
7077 return ::google::protobuf::internal::MessageCreator::ZeroInit(sizeof(MPModelDeltaProto_VariableOverridesEntry_DoNotUse),
7079}
7081 return ::google::protobuf::internal::ClassDataFull{
7082 ::google::protobuf::internal::ClassData{
7084 &_table_.header,
7085 nullptr, // OnDemandRegisterArenaDtor
7086 nullptr, // IsInitialized
7087 &MPModelDeltaProto_VariableOverridesEntry_DoNotUse::MergeImpl,
7088 ::google::protobuf::Message::GetNewImpl<MPModelDeltaProto_VariableOverridesEntry_DoNotUse>(),
7089#if defined(PROTOBUF_CUSTOM_VTABLE)
7090 &MPModelDeltaProto_VariableOverridesEntry_DoNotUse::SharedDtor,
7091 static_cast<void (::google::protobuf::MessageLite::*)()>(&MPModelDeltaProto_VariableOverridesEntry_DoNotUse::ClearImpl),
7092 ::google::protobuf::Message::ByteSizeLongImpl, ::google::protobuf::Message::_InternalSerializeImpl
7093 ,
7094#endif // PROTOBUF_CUSTOM_VTABLE
7095 PROTOBUF_FIELD_OFFSET(MPModelDeltaProto_VariableOverridesEntry_DoNotUse, _impl_._cached_size_),
7096 false,
7097 },
7098 &MPModelDeltaProto_VariableOverridesEntry_DoNotUse::kDescriptorMethods,
7100 nullptr, // tracker
7101 };
7102}
7103
7104PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 const
7105 ::google::protobuf::internal::ClassDataFull MPModelDeltaProto_VariableOverridesEntry_DoNotUse_class_data_ =
7107
7108PROTOBUF_ATTRIBUTE_WEAK const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL
7109MPModelDeltaProto_VariableOverridesEntry_DoNotUse::GetClassData() const {
7110 ::google::protobuf::internal::PrefetchToLocalCache(&MPModelDeltaProto_VariableOverridesEntry_DoNotUse_class_data_);
7111 ::google::protobuf::internal::PrefetchToLocalCache(MPModelDeltaProto_VariableOverridesEntry_DoNotUse_class_data_.tc_table);
7113}
7114PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1
7115const ::_pbi::TcParseTable<1, 2, 1, 0, 2>
7116MPModelDeltaProto_VariableOverridesEntry_DoNotUse::_table_ = {
7117 {
7118 PROTOBUF_FIELD_OFFSET(MPModelDeltaProto_VariableOverridesEntry_DoNotUse, _impl_._has_bits_),
7119 0, // no _extensions_
7120 2, 8, // max_field_number, fast_idx_mask
7121 offsetof(decltype(_table_), field_lookup_table),
7122 4294967292, // skipmap
7123 offsetof(decltype(_table_), field_entries),
7124 2, // num_field_entries
7125 1, // num_aux_entries
7126 offsetof(decltype(_table_), aux_entries),
7128 nullptr, // post_loop_handler
7129 ::_pbi::TcParser::DiscardEverythingFallback, // fallback
7130 #ifdef PROTOBUF_PREFETCH_PARSE_TABLE
7131 ::_pbi::TcParser::GetTable<::operations_research::MPModelDeltaProto_VariableOverridesEntry_DoNotUse>(), // to_prefetch
7132 #endif // PROTOBUF_PREFETCH_PARSE_TABLE
7133 }, {{
7134 // optional .operations_research.MPVariableProto value = 2;
7135 {::_pbi::TcParser::FastMtS1,
7136 {18, 0, 0,
7137 PROTOBUF_FIELD_OFFSET(MPModelDeltaProto_VariableOverridesEntry_DoNotUse, _impl_.value_)}},
7138 // optional int32 key = 1;
7139 {::_pbi::TcParser::SingularVarintNoZag1<::uint32_t, offsetof(MPModelDeltaProto_VariableOverridesEntry_DoNotUse, _impl_.key_), 1>(),
7140 {8, 1, 0,
7141 PROTOBUF_FIELD_OFFSET(MPModelDeltaProto_VariableOverridesEntry_DoNotUse, _impl_.key_)}},
7142 }}, {{
7143 65535, 65535
7144 }}, {{
7145 // optional int32 key = 1;
7146 {PROTOBUF_FIELD_OFFSET(MPModelDeltaProto_VariableOverridesEntry_DoNotUse, _impl_.key_), _Internal::kHasBitsOffset + 1, 0, (0 | ::_fl::kFcOptional | ::_fl::kInt32)},
7147 // optional .operations_research.MPVariableProto value = 2;
7148 {PROTOBUF_FIELD_OFFSET(MPModelDeltaProto_VariableOverridesEntry_DoNotUse, _impl_.value_), _Internal::kHasBitsOffset + 0, 0, (0 | ::_fl::kFcOptional | ::_fl::kMessage | ::_fl::kTvTable)},
7149 }},
7150 {{
7151 {::_pbi::TcParser::GetTable<::operations_research::MPVariableProto>()},
7152 }},
7153 {{
7154 }},
7155};
7156// ===================================================================
7157
7158#if defined(PROTOBUF_CUSTOM_VTABLE)
7161MPModelDeltaProto_ConstraintOverridesEntry_DoNotUse::MPModelDeltaProto_ConstraintOverridesEntry_DoNotUse(::google::protobuf::Arena* PROTOBUF_NULLABLE arena)
7163#else // PROTOBUF_CUSTOM_VTABLE
7164MPModelDeltaProto_ConstraintOverridesEntry_DoNotUse::MPModelDeltaProto_ConstraintOverridesEntry_DoNotUse() : SuperType() {}
7165MPModelDeltaProto_ConstraintOverridesEntry_DoNotUse::MPModelDeltaProto_ConstraintOverridesEntry_DoNotUse(::google::protobuf::Arena* PROTOBUF_NULLABLE arena) : SuperType(arena) {}
7166#endif // PROTOBUF_CUSTOM_VTABLE
7167inline void* PROTOBUF_NONNULL MPModelDeltaProto_ConstraintOverridesEntry_DoNotUse::PlacementNew_(
7168 const void* PROTOBUF_NONNULL, void* PROTOBUF_NONNULL mem,
7169 ::google::protobuf::Arena* PROTOBUF_NULLABLE arena) {
7170 return ::new (mem) MPModelDeltaProto_ConstraintOverridesEntry_DoNotUse(arena);
7171}
7172constexpr auto MPModelDeltaProto_ConstraintOverridesEntry_DoNotUse::InternalNewImpl_() {
7173 return ::google::protobuf::internal::MessageCreator::ZeroInit(sizeof(MPModelDeltaProto_ConstraintOverridesEntry_DoNotUse),
7174 alignof(MPModelDeltaProto_ConstraintOverridesEntry_DoNotUse));
7175}
7176constexpr auto MPModelDeltaProto_ConstraintOverridesEntry_DoNotUse::InternalGenerateClassData_() {
7177 return ::google::protobuf::internal::ClassDataFull{
7178 ::google::protobuf::internal::ClassData{
7180 &_table_.header,
7181 nullptr, // OnDemandRegisterArenaDtor
7182 nullptr, // IsInitialized
7183 &MPModelDeltaProto_ConstraintOverridesEntry_DoNotUse::MergeImpl,
7184 ::google::protobuf::Message::GetNewImpl<MPModelDeltaProto_ConstraintOverridesEntry_DoNotUse>(),
7185#if defined(PROTOBUF_CUSTOM_VTABLE)
7186 &MPModelDeltaProto_ConstraintOverridesEntry_DoNotUse::SharedDtor,
7187 static_cast<void (::google::protobuf::MessageLite::*)()>(&MPModelDeltaProto_ConstraintOverridesEntry_DoNotUse::ClearImpl),
7188 ::google::protobuf::Message::ByteSizeLongImpl, ::google::protobuf::Message::_InternalSerializeImpl
7189 ,
7190#endif // PROTOBUF_CUSTOM_VTABLE
7191 PROTOBUF_FIELD_OFFSET(MPModelDeltaProto_ConstraintOverridesEntry_DoNotUse, _impl_._cached_size_),
7192 false,
7194 &MPModelDeltaProto_ConstraintOverridesEntry_DoNotUse::kDescriptorMethods,
7196 nullptr, // tracker
7197 };
7198}
7199
7200PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 const
7201 ::google::protobuf::internal::ClassDataFull MPModelDeltaProto_ConstraintOverridesEntry_DoNotUse_class_data_ =
7202 MPModelDeltaProto_ConstraintOverridesEntry_DoNotUse::InternalGenerateClassData_();
7203
7204PROTOBUF_ATTRIBUTE_WEAK const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL
7205MPModelDeltaProto_ConstraintOverridesEntry_DoNotUse::GetClassData() const {
7206 ::google::protobuf::internal::PrefetchToLocalCache(&MPModelDeltaProto_ConstraintOverridesEntry_DoNotUse_class_data_);
7207 ::google::protobuf::internal::PrefetchToLocalCache(MPModelDeltaProto_ConstraintOverridesEntry_DoNotUse_class_data_.tc_table);
7209}
7210PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1
7211const ::_pbi::TcParseTable<1, 2, 1, 0, 2>
7212MPModelDeltaProto_ConstraintOverridesEntry_DoNotUse::_table_ = {
7213 {
7214 PROTOBUF_FIELD_OFFSET(MPModelDeltaProto_ConstraintOverridesEntry_DoNotUse, _impl_._has_bits_),
7215 0, // no _extensions_
7216 2, 8, // max_field_number, fast_idx_mask
7217 offsetof(decltype(_table_), field_lookup_table),
7218 4294967292, // skipmap
7219 offsetof(decltype(_table_), field_entries),
7220 2, // num_field_entries
7221 1, // num_aux_entries
7222 offsetof(decltype(_table_), aux_entries),
7224 nullptr, // post_loop_handler
7225 ::_pbi::TcParser::DiscardEverythingFallback, // fallback
7226 #ifdef PROTOBUF_PREFETCH_PARSE_TABLE
7227 ::_pbi::TcParser::GetTable<::operations_research::MPModelDeltaProto_ConstraintOverridesEntry_DoNotUse>(), // to_prefetch
7228 #endif // PROTOBUF_PREFETCH_PARSE_TABLE
7229 }, {{
7230 // optional .operations_research.MPConstraintProto value = 2;
7231 {::_pbi::TcParser::FastMtS1,
7232 {18, 0, 0,
7233 PROTOBUF_FIELD_OFFSET(MPModelDeltaProto_ConstraintOverridesEntry_DoNotUse, _impl_.value_)}},
7234 // optional int32 key = 1;
7235 {::_pbi::TcParser::SingularVarintNoZag1<::uint32_t, offsetof(MPModelDeltaProto_ConstraintOverridesEntry_DoNotUse, _impl_.key_), 1>(),
7236 {8, 1, 0,
7237 PROTOBUF_FIELD_OFFSET(MPModelDeltaProto_ConstraintOverridesEntry_DoNotUse, _impl_.key_)}},
7238 }}, {{
7239 65535, 65535
7240 }}, {{
7241 // optional int32 key = 1;
7242 {PROTOBUF_FIELD_OFFSET(MPModelDeltaProto_ConstraintOverridesEntry_DoNotUse, _impl_.key_), _Internal::kHasBitsOffset + 1, 0, (0 | ::_fl::kFcOptional | ::_fl::kInt32)},
7243 // optional .operations_research.MPConstraintProto value = 2;
7244 {PROTOBUF_FIELD_OFFSET(MPModelDeltaProto_ConstraintOverridesEntry_DoNotUse, _impl_.value_), _Internal::kHasBitsOffset + 0, 0, (0 | ::_fl::kFcOptional | ::_fl::kMessage | ::_fl::kTvTable)},
7245 }},
7246 {{
7247 {::_pbi::TcParser::GetTable<::operations_research::MPConstraintProto>()},
7248 }},
7249 {{
7250 }},
7251};
7252// ===================================================================
7253
7254class MPModelDeltaProto::_Internal {
7255 public:
7256 using HasBits =
7257 decltype(::std::declval<MPModelDeltaProto>()._impl_._has_bits_);
7258 static constexpr ::int32_t kHasBitsOffset =
7259 8 * PROTOBUF_FIELD_OFFSET(MPModelDeltaProto, _impl_._has_bits_);
7260};
7261
7262MPModelDeltaProto::MPModelDeltaProto(::google::protobuf::Arena* PROTOBUF_NULLABLE arena)
7263#if defined(PROTOBUF_CUSTOM_VTABLE)
7264 : ::google::protobuf::Message(arena, MPModelDeltaProto_class_data_.base()) {
7265#else // PROTOBUF_CUSTOM_VTABLE
7266 : ::google::protobuf::Message(arena) {
7267#endif // PROTOBUF_CUSTOM_VTABLE
7268 SharedCtor(arena);
7269 // @@protoc_insertion_point(arena_constructor:operations_research.MPModelDeltaProto)
7270}
7271PROTOBUF_NDEBUG_INLINE MPModelDeltaProto::Impl_::Impl_(
7272 [[maybe_unused]] ::google::protobuf::internal::InternalVisibility visibility,
7273 [[maybe_unused]] ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const Impl_& from,
7274 [[maybe_unused]] const ::operations_research::MPModelDeltaProto& from_msg)
7275 : _has_bits_{from._has_bits_},
7276 _cached_size_{0},
7277 baseline_model_file_path_(arena, from.baseline_model_file_path_),
7278 variable_overrides_{visibility, arena, from.variable_overrides_},
7279 constraint_overrides_{visibility, arena, from.constraint_overrides_} {}
7280
7282 ::google::protobuf::Arena* PROTOBUF_NULLABLE arena,
7283 const MPModelDeltaProto& from)
7284#if defined(PROTOBUF_CUSTOM_VTABLE)
7285 : ::google::protobuf::Message(arena, MPModelDeltaProto_class_data_.base()) {
7286#else // PROTOBUF_CUSTOM_VTABLE
7287 : ::google::protobuf::Message(arena) {
7288#endif // PROTOBUF_CUSTOM_VTABLE
7289 MPModelDeltaProto* const _this = this;
7290 (void)_this;
7291 _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(
7292 from._internal_metadata_);
7293 new (&_impl_) Impl_(internal_visibility(), arena, from._impl_, from);
7294
7295 // @@protoc_insertion_point(copy_constructor:operations_research.MPModelDeltaProto)
7296}
7297PROTOBUF_NDEBUG_INLINE MPModelDeltaProto::Impl_::Impl_(
7298 [[maybe_unused]] ::google::protobuf::internal::InternalVisibility visibility,
7299 [[maybe_unused]] ::google::protobuf::Arena* PROTOBUF_NULLABLE arena)
7300 : _cached_size_{0},
7301 baseline_model_file_path_(arena),
7302 variable_overrides_{visibility, arena},
7303 constraint_overrides_{visibility, arena} {}
7304
7305inline void MPModelDeltaProto::SharedCtor(::_pb::Arena* PROTOBUF_NULLABLE arena) {
7306 new (&_impl_) Impl_(internal_visibility(), arena);
7307}
7309 // @@protoc_insertion_point(destructor:operations_research.MPModelDeltaProto)
7310 SharedDtor(*this);
7311}
7312inline void MPModelDeltaProto::SharedDtor(MessageLite& self) {
7313 MPModelDeltaProto& this_ = static_cast<MPModelDeltaProto&>(self);
7314 if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) {
7315 this_.CheckHasBitConsistency();
7316 }
7317 this_._internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>();
7318 ABSL_DCHECK(this_.GetArena() == nullptr);
7319 this_._impl_.baseline_model_file_path_.Destroy();
7320 this_._impl_.~Impl_();
7321}
7322
7323inline void* PROTOBUF_NONNULL MPModelDeltaProto::PlacementNew_(
7324 const void* PROTOBUF_NONNULL, void* PROTOBUF_NONNULL mem,
7325 ::google::protobuf::Arena* PROTOBUF_NULLABLE arena) {
7326 return ::new (mem) MPModelDeltaProto(arena);
7327}
7328constexpr auto MPModelDeltaProto::InternalNewImpl_() {
7329 constexpr auto arena_bits = ::google::protobuf::internal::EncodePlacementArenaOffsets({
7330 PROTOBUF_FIELD_OFFSET(MPModelDeltaProto, _impl_.variable_overrides_) +
7331 decltype(MPModelDeltaProto::_impl_.variable_overrides_)::
7332 InternalGetArenaOffset(
7333 ::google::protobuf::Message::internal_visibility()),
7334 PROTOBUF_FIELD_OFFSET(MPModelDeltaProto, _impl_.constraint_overrides_) +
7335 decltype(MPModelDeltaProto::_impl_.constraint_overrides_)::
7336 InternalGetArenaOffset(
7337 ::google::protobuf::Message::internal_visibility()),
7338 });
7339 if (arena_bits.has_value()) {
7340 return ::google::protobuf::internal::MessageCreator::CopyInit(
7341 sizeof(MPModelDeltaProto), alignof(MPModelDeltaProto), *arena_bits);
7342 } else {
7343 return ::google::protobuf::internal::MessageCreator(&MPModelDeltaProto::PlacementNew_,
7344 sizeof(MPModelDeltaProto),
7345 alignof(MPModelDeltaProto));
7346 }
7347}
7349 return ::google::protobuf::internal::ClassDataFull{
7350 ::google::protobuf::internal::ClassData{
7352 &_table_.header,
7353 nullptr, // OnDemandRegisterArenaDtor
7354 nullptr, // IsInitialized
7355 &MPModelDeltaProto::MergeImpl,
7356 ::google::protobuf::Message::GetNewImpl<MPModelDeltaProto>(),
7357#if defined(PROTOBUF_CUSTOM_VTABLE)
7358 &MPModelDeltaProto::SharedDtor,
7359 ::google::protobuf::Message::GetClearImpl<MPModelDeltaProto>(), &MPModelDeltaProto::ByteSizeLong,
7361#endif // PROTOBUF_CUSTOM_VTABLE
7362 PROTOBUF_FIELD_OFFSET(MPModelDeltaProto, _impl_._cached_size_),
7363 false,
7364 },
7365 &MPModelDeltaProto::kDescriptorMethods,
7367 nullptr, // tracker
7368 };
7369}
7370
7371PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 const
7372 ::google::protobuf::internal::ClassDataFull MPModelDeltaProto_class_data_ =
7374
7375PROTOBUF_ATTRIBUTE_WEAK const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL
7376MPModelDeltaProto::GetClassData() const {
7377 ::google::protobuf::internal::PrefetchToLocalCache(&MPModelDeltaProto_class_data_);
7378 ::google::protobuf::internal::PrefetchToLocalCache(MPModelDeltaProto_class_data_.tc_table);
7379 return MPModelDeltaProto_class_data_.base();
7380}
7381PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1
7382const ::_pbi::TcParseTable<0, 3, 4, 0, 2>
7383MPModelDeltaProto::_table_ = {
7384 {
7385 PROTOBUF_FIELD_OFFSET(MPModelDeltaProto, _impl_._has_bits_),
7386 0, // no _extensions_
7387 3, 0, // max_field_number, fast_idx_mask
7388 offsetof(decltype(_table_), field_lookup_table),
7389 4294967288, // skipmap
7390 offsetof(decltype(_table_), field_entries),
7391 3, // num_field_entries
7392 4, // num_aux_entries
7393 offsetof(decltype(_table_), aux_entries),
7395 nullptr, // post_loop_handler
7396 ::_pbi::TcParser::GenericFallback, // fallback
7397 #ifdef PROTOBUF_PREFETCH_PARSE_TABLE
7398 ::_pbi::TcParser::GetTable<::operations_research::MPModelDeltaProto>(), // to_prefetch
7399 #endif // PROTOBUF_PREFETCH_PARSE_TABLE
7400 }, {{
7401 // optional string baseline_model_file_path = 1;
7402 {::_pbi::TcParser::FastBS1,
7403 {10, 0, 0,
7404 PROTOBUF_FIELD_OFFSET(MPModelDeltaProto, _impl_.baseline_model_file_path_)}},
7405 }}, {{
7406 65535, 65535
7407 }}, {{
7408 // optional string baseline_model_file_path = 1;
7409 {PROTOBUF_FIELD_OFFSET(MPModelDeltaProto, _impl_.baseline_model_file_path_), _Internal::kHasBitsOffset + 0, 0, (0 | ::_fl::kFcOptional | ::_fl::kBytes | ::_fl::kRepAString)},
7410 // map<int32, .operations_research.MPVariableProto> variable_overrides = 2;
7411 {PROTOBUF_FIELD_OFFSET(MPModelDeltaProto, _impl_.variable_overrides_), _Internal::kHasBitsOffset + 1, 0, (0 | ::_fl::kFcRepeated | ::_fl::kMap)},
7412 // map<int32, .operations_research.MPConstraintProto> constraint_overrides = 3;
7413 {PROTOBUF_FIELD_OFFSET(MPModelDeltaProto, _impl_.constraint_overrides_), _Internal::kHasBitsOffset + 2, 2, (0 | ::_fl::kFcRepeated | ::_fl::kMap)},
7414 }},
7415 {{
7416 {::_pbi::TcParser::GetMapAuxInfo(
7417 0, 0, 5, 11, 0)},
7418 {::_pbi::TcParser::GetTable<::operations_research::MPVariableProto>()},
7419 {::_pbi::TcParser::GetMapAuxInfo(
7420 0, 0, 5, 11, 0)},
7421 {::_pbi::TcParser::GetTable<::operations_research::MPConstraintProto>()},
7422 }},
7423 {{
7424 }},
7425};
7426PROTOBUF_NOINLINE void MPModelDeltaProto::Clear() {
7427// @@protoc_insertion_point(message_clear_start:operations_research.MPModelDeltaProto)
7428 ::google::protobuf::internal::TSanWrite(&_impl_);
7429 ::uint32_t cached_has_bits = 0;
7430 // Prevent compiler warnings about cached_has_bits being unused
7431 (void) cached_has_bits;
7432
7433 cached_has_bits = _impl_._has_bits_[0];
7434 if (BatchCheckHasBit(cached_has_bits, 0x00000007U)) {
7435 if (CheckHasBit(cached_has_bits, 0x00000001U)) {
7436 _impl_.baseline_model_file_path_.ClearNonDefaultToEmpty();
7437 }
7438 if (CheckHasBitForRepeated(cached_has_bits, 0x00000002U)) {
7439 _impl_.variable_overrides_.Clear();
7440 }
7441 if (CheckHasBitForRepeated(cached_has_bits, 0x00000004U)) {
7442 _impl_.constraint_overrides_.Clear();
7443 }
7445 _impl_._has_bits_.Clear();
7446 _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>();
7447}
7448
7449#if defined(PROTOBUF_CUSTOM_VTABLE)
7450::uint8_t* PROTOBUF_NONNULL MPModelDeltaProto::_InternalSerialize(
7451 const ::google::protobuf::MessageLite& base, ::uint8_t* PROTOBUF_NONNULL target,
7452 ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) {
7453 const MPModelDeltaProto& this_ = static_cast<const MPModelDeltaProto&>(base);
7454#else // PROTOBUF_CUSTOM_VTABLE
7455::uint8_t* PROTOBUF_NONNULL MPModelDeltaProto::_InternalSerialize(
7456 ::uint8_t* PROTOBUF_NONNULL target,
7457 ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const {
7458 const MPModelDeltaProto& this_ = *this;
7459#endif // PROTOBUF_CUSTOM_VTABLE
7460 if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) {
7461 this_.CheckHasBitConsistency();
7462 }
7463 // @@protoc_insertion_point(serialize_to_array_start:operations_research.MPModelDeltaProto)
7464 ::uint32_t cached_has_bits = 0;
7465 (void)cached_has_bits;
7466
7467 cached_has_bits = this_._impl_._has_bits_[0];
7468 // optional string baseline_model_file_path = 1;
7469 if (CheckHasBit(cached_has_bits, 0x00000001U)) {
7470 const ::std::string& _s = this_._internal_baseline_model_file_path();
7471 target = stream->WriteStringMaybeAliased(1, _s, target);
7472 }
7474 // map<int32, .operations_research.MPVariableProto> variable_overrides = 2;
7475 if (CheckHasBitForRepeated(cached_has_bits, 0x00000002U)) {
7476 if (!this_._internal_variable_overrides().empty()) {
7477 using MapType = ::google::protobuf::Map<::int32_t, ::operations_research::MPVariableProto>;
7478 using WireHelper = _pbi::MapEntryFuncs<::int32_t, ::operations_research::MPVariableProto,
7479 _pbi::WireFormatLite::TYPE_INT32,
7480 _pbi::WireFormatLite::TYPE_MESSAGE>;
7481 const auto& field = this_._internal_variable_overrides();
7482
7483 if (stream->IsSerializationDeterministic() && field.size() > 1) {
7484 for (const auto& entry : ::google::protobuf::internal::MapSorterFlat<MapType>(field)) {
7485 target = WireHelper::InternalSerialize(
7486 2, entry.first, entry.second, target, stream);
7487 }
7488 } else {
7489 for (const auto& entry : field) {
7490 target = WireHelper::InternalSerialize(
7491 2, entry.first, entry.second, target, stream);
7492 }
7493 }
7494 }
7495 }
7496
7497 // map<int32, .operations_research.MPConstraintProto> constraint_overrides = 3;
7498 if (CheckHasBitForRepeated(cached_has_bits, 0x00000004U)) {
7499 if (!this_._internal_constraint_overrides().empty()) {
7500 using MapType = ::google::protobuf::Map<::int32_t, ::operations_research::MPConstraintProto>;
7501 using WireHelper = _pbi::MapEntryFuncs<::int32_t, ::operations_research::MPConstraintProto,
7502 _pbi::WireFormatLite::TYPE_INT32,
7503 _pbi::WireFormatLite::TYPE_MESSAGE>;
7504 const auto& field = this_._internal_constraint_overrides();
7505
7506 if (stream->IsSerializationDeterministic() && field.size() > 1) {
7507 for (const auto& entry : ::google::protobuf::internal::MapSorterFlat<MapType>(field)) {
7508 target = WireHelper::InternalSerialize(
7509 3, entry.first, entry.second, target, stream);
7510 }
7511 } else {
7512 for (const auto& entry : field) {
7513 target = WireHelper::InternalSerialize(
7514 3, entry.first, entry.second, target, stream);
7515 }
7516 }
7517 }
7518 }
7519
7520 if (ABSL_PREDICT_FALSE(this_._internal_metadata_.have_unknown_fields())) {
7521 target =
7522 ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray(
7523 this_._internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream);
7524 }
7525 // @@protoc_insertion_point(serialize_to_array_end:operations_research.MPModelDeltaProto)
7526 return target;
7527}
7528
7529#if defined(PROTOBUF_CUSTOM_VTABLE)
7530::size_t MPModelDeltaProto::ByteSizeLong(const MessageLite& base) {
7531 const MPModelDeltaProto& this_ = static_cast<const MPModelDeltaProto&>(base);
7532#else // PROTOBUF_CUSTOM_VTABLE
7533::size_t MPModelDeltaProto::ByteSizeLong() const {
7534 const MPModelDeltaProto& this_ = *this;
7535#endif // PROTOBUF_CUSTOM_VTABLE
7536 // @@protoc_insertion_point(message_byte_size_start:operations_research.MPModelDeltaProto)
7537 ::size_t total_size = 0;
7538
7539 ::uint32_t cached_has_bits = 0;
7540 // Prevent compiler warnings about cached_has_bits being unused
7541 (void)cached_has_bits;
7542
7543 ::_pbi::Prefetch5LinesFrom7Lines(&this_);
7544 cached_has_bits = this_._impl_._has_bits_[0];
7545 if (BatchCheckHasBit(cached_has_bits, 0x00000007U)) {
7546 // optional string baseline_model_file_path = 1;
7547 if (CheckHasBit(cached_has_bits, 0x00000001U)) {
7548 total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize(
7549 this_._internal_baseline_model_file_path());
7550 }
7551 // map<int32, .operations_research.MPVariableProto> variable_overrides = 2;
7552 if (CheckHasBitForRepeated(cached_has_bits, 0x00000002U)) {
7553 total_size +=
7554 1 * ::google::protobuf::internal::FromIntSize(this_._internal_variable_overrides_size());
7555 for (const auto& entry : this_._internal_variable_overrides()) {
7556 total_size += _pbi::MapEntryFuncs<::int32_t, ::operations_research::MPVariableProto,
7557 _pbi::WireFormatLite::TYPE_INT32,
7558 _pbi::WireFormatLite::TYPE_MESSAGE>::ByteSizeLong(entry.first, entry.second);
7559 }
7560 }
7561 // map<int32, .operations_research.MPConstraintProto> constraint_overrides = 3;
7562 if (CheckHasBitForRepeated(cached_has_bits, 0x00000004U)) {
7563 total_size +=
7564 1 * ::google::protobuf::internal::FromIntSize(this_._internal_constraint_overrides_size());
7565 for (const auto& entry : this_._internal_constraint_overrides()) {
7566 total_size += _pbi::MapEntryFuncs<::int32_t, ::operations_research::MPConstraintProto,
7567 _pbi::WireFormatLite::TYPE_INT32,
7568 _pbi::WireFormatLite::TYPE_MESSAGE>::ByteSizeLong(entry.first, entry.second);
7569 }
7570 }
7571 }
7572 return this_.MaybeComputeUnknownFieldsSize(total_size,
7573 &this_._impl_._cached_size_);
7574}
7575
7576void MPModelDeltaProto::MergeImpl(::google::protobuf::MessageLite& to_msg,
7577 const ::google::protobuf::MessageLite& from_msg) {
7578 auto* const _this =
7579 static_cast<MPModelDeltaProto*>(&to_msg);
7580 auto& from = static_cast<const MPModelDeltaProto&>(from_msg);
7581 if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) {
7582 from.CheckHasBitConsistency();
7583 }
7584 // @@protoc_insertion_point(class_specific_merge_from_start:operations_research.MPModelDeltaProto)
7585 ABSL_DCHECK_NE(&from, _this);
7586 ::uint32_t cached_has_bits = 0;
7587 (void)cached_has_bits;
7588
7589 cached_has_bits = from._impl_._has_bits_[0];
7590 if (BatchCheckHasBit(cached_has_bits, 0x00000007U)) {
7591 if (CheckHasBit(cached_has_bits, 0x00000001U)) {
7592 _this->_internal_set_baseline_model_file_path(from._internal_baseline_model_file_path());
7593 }
7594 if (CheckHasBitForRepeated(cached_has_bits, 0x00000002U)) {
7595 _this->_impl_.variable_overrides_.MergeFrom(from._impl_.variable_overrides_);
7596 }
7597 if (CheckHasBitForRepeated(cached_has_bits, 0x00000004U)) {
7598 _this->_impl_.constraint_overrides_.MergeFrom(from._impl_.constraint_overrides_);
7599 }
7600 }
7601 _this->_impl_._has_bits_[0] |= cached_has_bits;
7602 _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(
7603 from._internal_metadata_);
7604}
7605
7607 // @@protoc_insertion_point(class_specific_copy_from_start:operations_research.MPModelDeltaProto)
7608 if (&from == this) return;
7609 Clear();
7610 MergeFrom(from);
7611}
7612
7613
7614void MPModelDeltaProto::InternalSwap(MPModelDeltaProto* PROTOBUF_RESTRICT PROTOBUF_NONNULL other) {
7615 using ::std::swap;
7616 auto* arena = GetArena();
7617 ABSL_DCHECK_EQ(arena, other->GetArena());
7618 _internal_metadata_.InternalSwap(&other->_internal_metadata_);
7619 swap(_impl_._has_bits_[0], other->_impl_._has_bits_[0]);
7620 ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.baseline_model_file_path_, &other->_impl_.baseline_model_file_path_, arena);
7621 _impl_.variable_overrides_.InternalSwap(&other->_impl_.variable_overrides_);
7622 _impl_.constraint_overrides_.InternalSwap(&other->_impl_.constraint_overrides_);
7623}
7625::google::protobuf::Metadata MPModelDeltaProto::GetMetadata() const {
7626 return ::google::protobuf::Message::GetMetadataImpl(GetClassData()->full());
7627}
7628// ===================================================================
7629
7631 public:
7632 using HasBits =
7633 decltype(::std::declval<MPModelRequest>()._impl_._has_bits_);
7634 static constexpr ::int32_t kHasBitsOffset =
7635 8 * PROTOBUF_FIELD_OFFSET(MPModelRequest, _impl_._has_bits_);
7636};
7637
7638MPModelRequest::MPModelRequest(::google::protobuf::Arena* PROTOBUF_NULLABLE arena)
7639#if defined(PROTOBUF_CUSTOM_VTABLE)
7640 : ::google::protobuf::Message(arena, MPModelRequest_class_data_.base()) {
7641#else // PROTOBUF_CUSTOM_VTABLE
7642 : ::google::protobuf::Message(arena) {
7643#endif // PROTOBUF_CUSTOM_VTABLE
7644 SharedCtor(arena);
7645 // @@protoc_insertion_point(arena_constructor:operations_research.MPModelRequest)
7646}
7647PROTOBUF_NDEBUG_INLINE MPModelRequest::Impl_::Impl_(
7648 [[maybe_unused]] ::google::protobuf::internal::InternalVisibility visibility,
7649 [[maybe_unused]] ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const Impl_& from,
7650 [[maybe_unused]] const ::operations_research::MPModelRequest& from_msg)
7651 : _has_bits_{from._has_bits_},
7652 _cached_size_{0},
7653 solver_specific_parameters_(arena, from.solver_specific_parameters_) {}
7654
7656 ::google::protobuf::Arena* PROTOBUF_NULLABLE arena,
7657 const MPModelRequest& from)
7658#if defined(PROTOBUF_CUSTOM_VTABLE)
7659 : ::google::protobuf::Message(arena, MPModelRequest_class_data_.base()) {
7660#else // PROTOBUF_CUSTOM_VTABLE
7661 : ::google::protobuf::Message(arena) {
7662#endif // PROTOBUF_CUSTOM_VTABLE
7663 MPModelRequest* const _this = this;
7664 (void)_this;
7665 _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(
7666 from._internal_metadata_);
7667 new (&_impl_) Impl_(internal_visibility(), arena, from._impl_, from);
7668 ::uint32_t cached_has_bits = _impl_._has_bits_[0];
7669 _impl_.model_ = (CheckHasBit(cached_has_bits, 0x00000002U))
7670 ? ::google::protobuf::Message::CopyConstruct(arena, *from._impl_.model_)
7671 : nullptr;
7672 _impl_.model_delta_ = (CheckHasBit(cached_has_bits, 0x00000004U))
7673 ? ::google::protobuf::Message::CopyConstruct(arena, *from._impl_.model_delta_)
7674 : nullptr;
7675 ::memcpy(reinterpret_cast<char*>(&_impl_) +
7676 offsetof(Impl_, solver_time_limit_seconds_),
7677 reinterpret_cast<const char*>(&from._impl_) +
7678 offsetof(Impl_, solver_time_limit_seconds_),
7679 offsetof(Impl_, solver_type_) -
7680 offsetof(Impl_, solver_time_limit_seconds_) +
7681 sizeof(Impl_::solver_type_));
7682
7683 // @@protoc_insertion_point(copy_constructor:operations_research.MPModelRequest)
7684}
7685PROTOBUF_NDEBUG_INLINE MPModelRequest::Impl_::Impl_(
7686 [[maybe_unused]] ::google::protobuf::internal::InternalVisibility visibility,
7687 [[maybe_unused]] ::google::protobuf::Arena* PROTOBUF_NULLABLE arena)
7688 : _cached_size_{0},
7689 solver_specific_parameters_(arena),
7690 solver_type_{static_cast< ::operations_research::MPModelRequest_SolverType >(2)} {}
7691
7692inline void MPModelRequest::SharedCtor(::_pb::Arena* PROTOBUF_NULLABLE arena) {
7693 new (&_impl_) Impl_(internal_visibility(), arena);
7694 ::memset(reinterpret_cast<char*>(&_impl_) +
7695 offsetof(Impl_, model_),
7696 0,
7697 offsetof(Impl_, populate_additional_solutions_up_to_) -
7698 offsetof(Impl_, model_) +
7699 sizeof(Impl_::populate_additional_solutions_up_to_));
7700}
7702 // @@protoc_insertion_point(destructor:operations_research.MPModelRequest)
7703 SharedDtor(*this);
7704}
7705inline void MPModelRequest::SharedDtor(MessageLite& self) {
7706 MPModelRequest& this_ = static_cast<MPModelRequest&>(self);
7707 if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) {
7708 this_.CheckHasBitConsistency();
7709 }
7710 this_._internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>();
7711 ABSL_DCHECK(this_.GetArena() == nullptr);
7712 this_._impl_.solver_specific_parameters_.Destroy();
7713 delete this_._impl_.model_;
7714 delete this_._impl_.model_delta_;
7715 this_._impl_.~Impl_();
7716}
7717
7718inline void* PROTOBUF_NONNULL MPModelRequest::PlacementNew_(
7719 const void* PROTOBUF_NONNULL, void* PROTOBUF_NONNULL mem,
7720 ::google::protobuf::Arena* PROTOBUF_NULLABLE arena) {
7721 return ::new (mem) MPModelRequest(arena);
7722}
7723constexpr auto MPModelRequest::InternalNewImpl_() {
7724 return ::google::protobuf::internal::MessageCreator::CopyInit(sizeof(MPModelRequest),
7725 alignof(MPModelRequest));
7726}
7728 return ::google::protobuf::internal::ClassDataFull{
7729 ::google::protobuf::internal::ClassData{
7731 &_table_.header,
7732 nullptr, // OnDemandRegisterArenaDtor
7733 nullptr, // IsInitialized
7734 &MPModelRequest::MergeImpl,
7735 ::google::protobuf::Message::GetNewImpl<MPModelRequest>(),
7736#if defined(PROTOBUF_CUSTOM_VTABLE)
7737 &MPModelRequest::SharedDtor,
7738 ::google::protobuf::Message::GetClearImpl<MPModelRequest>(), &MPModelRequest::ByteSizeLong,
7740#endif // PROTOBUF_CUSTOM_VTABLE
7741 PROTOBUF_FIELD_OFFSET(MPModelRequest, _impl_._cached_size_),
7742 false,
7743 },
7744 &MPModelRequest::kDescriptorMethods,
7746 nullptr, // tracker
7747 };
7748}
7749
7750PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 const
7751 ::google::protobuf::internal::ClassDataFull MPModelRequest_class_data_ =
7753
7754PROTOBUF_ATTRIBUTE_WEAK const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL
7755MPModelRequest::GetClassData() const {
7756 ::google::protobuf::internal::PrefetchToLocalCache(&MPModelRequest_class_data_);
7757 ::google::protobuf::internal::PrefetchToLocalCache(MPModelRequest_class_data_.tc_table);
7758 return MPModelRequest_class_data_.base();
7759}
7760PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1
7761const ::_pbi::TcParseTable<4, 8, 3, 0, 2>
7762MPModelRequest::_table_ = {
7763 {
7764 PROTOBUF_FIELD_OFFSET(MPModelRequest, _impl_._has_bits_),
7765 0, // no _extensions_
7766 11, 120, // max_field_number, fast_idx_mask
7767 offsetof(decltype(_table_), field_lookup_table),
7768 4294965856, // skipmap
7769 offsetof(decltype(_table_), field_entries),
7770 8, // num_field_entries
7771 3, // num_aux_entries
7772 offsetof(decltype(_table_), aux_entries),
7774 nullptr, // post_loop_handler
7775 ::_pbi::TcParser::GenericFallback, // fallback
7776 #ifdef PROTOBUF_PREFETCH_PARSE_TABLE
7777 ::_pbi::TcParser::GetTable<::operations_research::MPModelRequest>(), // to_prefetch
7778 #endif // PROTOBUF_PREFETCH_PARSE_TABLE
7779 }, {{
7780 {::_pbi::TcParser::MiniParse, {}},
7781 // optional .operations_research.MPModelProto model = 1;
7782 {::_pbi::TcParser::FastMtS1,
7783 {10, 1, 0,
7784 PROTOBUF_FIELD_OFFSET(MPModelRequest, _impl_.model_)}},
7785 // optional .operations_research.MPModelRequest.SolverType solver_type = 2 [default = GLOP_LINEAR_PROGRAMMING];
7786 {::_pbi::TcParser::FastEvS1,
7787 {16, 7, 2,
7788 PROTOBUF_FIELD_OFFSET(MPModelRequest, _impl_.solver_type_)}},
7789 // optional double solver_time_limit_seconds = 3;
7790 {::_pbi::TcParser::FastF64S1,
7791 {25, 3, 0,
7792 PROTOBUF_FIELD_OFFSET(MPModelRequest, _impl_.solver_time_limit_seconds_)}},
7793 // optional bool enable_internal_solver_output = 4 [default = false];
7794 {::_pbi::TcParser::SingularVarintNoZag1<bool, offsetof(MPModelRequest, _impl_.enable_internal_solver_output_), 4>(),
7795 {32, 4, 0,
7796 PROTOBUF_FIELD_OFFSET(MPModelRequest, _impl_.enable_internal_solver_output_)}},
7797 // optional string solver_specific_parameters = 5;
7798 {::_pbi::TcParser::FastBS1,
7799 {42, 0, 0,
7800 PROTOBUF_FIELD_OFFSET(MPModelRequest, _impl_.solver_specific_parameters_)}},
7801 {::_pbi::TcParser::MiniParse, {}},
7802 {::_pbi::TcParser::MiniParse, {}},
7803 // optional .operations_research.MPModelDeltaProto model_delta = 8;
7804 {::_pbi::TcParser::FastMtS1,
7805 {66, 2, 1,
7806 PROTOBUF_FIELD_OFFSET(MPModelRequest, _impl_.model_delta_)}},
7807 // optional bool ignore_solver_specific_parameters_failure = 9 [default = false];
7808 {::_pbi::TcParser::SingularVarintNoZag1<bool, offsetof(MPModelRequest, _impl_.ignore_solver_specific_parameters_failure_), 5>(),
7809 {72, 5, 0,
7810 PROTOBUF_FIELD_OFFSET(MPModelRequest, _impl_.ignore_solver_specific_parameters_failure_)}},
7811 {::_pbi::TcParser::MiniParse, {}},
7812 // optional int32 populate_additional_solutions_up_to = 11 [default = 0];
7813 {::_pbi::TcParser::SingularVarintNoZag1<::uint32_t, offsetof(MPModelRequest, _impl_.populate_additional_solutions_up_to_), 6>(),
7814 {88, 6, 0,
7815 PROTOBUF_FIELD_OFFSET(MPModelRequest, _impl_.populate_additional_solutions_up_to_)}},
7816 {::_pbi::TcParser::MiniParse, {}},
7817 {::_pbi::TcParser::MiniParse, {}},
7818 {::_pbi::TcParser::MiniParse, {}},
7819 {::_pbi::TcParser::MiniParse, {}},
7820 }}, {{
7821 65535, 65535
7822 }}, {{
7823 // optional .operations_research.MPModelProto model = 1;
7824 {PROTOBUF_FIELD_OFFSET(MPModelRequest, _impl_.model_), _Internal::kHasBitsOffset + 1, 0, (0 | ::_fl::kFcOptional | ::_fl::kMessage | ::_fl::kTvTable)},
7825 // optional .operations_research.MPModelRequest.SolverType solver_type = 2 [default = GLOP_LINEAR_PROGRAMMING];
7826 {PROTOBUF_FIELD_OFFSET(MPModelRequest, _impl_.solver_type_), _Internal::kHasBitsOffset + 7, 2, (0 | ::_fl::kFcOptional | ::_fl::kEnum)},
7827 // optional double solver_time_limit_seconds = 3;
7828 {PROTOBUF_FIELD_OFFSET(MPModelRequest, _impl_.solver_time_limit_seconds_), _Internal::kHasBitsOffset + 3, 0, (0 | ::_fl::kFcOptional | ::_fl::kDouble)},
7829 // optional bool enable_internal_solver_output = 4 [default = false];
7830 {PROTOBUF_FIELD_OFFSET(MPModelRequest, _impl_.enable_internal_solver_output_), _Internal::kHasBitsOffset + 4, 0, (0 | ::_fl::kFcOptional | ::_fl::kBool)},
7831 // optional string solver_specific_parameters = 5;
7832 {PROTOBUF_FIELD_OFFSET(MPModelRequest, _impl_.solver_specific_parameters_), _Internal::kHasBitsOffset + 0, 0, (0 | ::_fl::kFcOptional | ::_fl::kBytes | ::_fl::kRepAString)},
7833 // optional .operations_research.MPModelDeltaProto model_delta = 8;
7834 {PROTOBUF_FIELD_OFFSET(MPModelRequest, _impl_.model_delta_), _Internal::kHasBitsOffset + 2, 1, (0 | ::_fl::kFcOptional | ::_fl::kMessage | ::_fl::kTvTable)},
7835 // optional bool ignore_solver_specific_parameters_failure = 9 [default = false];
7836 {PROTOBUF_FIELD_OFFSET(MPModelRequest, _impl_.ignore_solver_specific_parameters_failure_), _Internal::kHasBitsOffset + 5, 0, (0 | ::_fl::kFcOptional | ::_fl::kBool)},
7837 // optional int32 populate_additional_solutions_up_to = 11 [default = 0];
7838 {PROTOBUF_FIELD_OFFSET(MPModelRequest, _impl_.populate_additional_solutions_up_to_), _Internal::kHasBitsOffset + 6, 0, (0 | ::_fl::kFcOptional | ::_fl::kInt32)},
7839 }},
7840 {{
7841 {::_pbi::TcParser::GetTable<::operations_research::MPModelProto>()},
7842 {::_pbi::TcParser::GetTable<::operations_research::MPModelDeltaProto>()},
7844 }},
7845 {{
7846 }},
7847};
7848PROTOBUF_NOINLINE void MPModelRequest::Clear() {
7849// @@protoc_insertion_point(message_clear_start:operations_research.MPModelRequest)
7850 ::google::protobuf::internal::TSanWrite(&_impl_);
7851 ::uint32_t cached_has_bits = 0;
7852 // Prevent compiler warnings about cached_has_bits being unused
7853 (void) cached_has_bits;
7854
7855 cached_has_bits = _impl_._has_bits_[0];
7856 if (BatchCheckHasBit(cached_has_bits, 0x00000007U)) {
7857 if (CheckHasBit(cached_has_bits, 0x00000001U)) {
7858 _impl_.solver_specific_parameters_.ClearNonDefaultToEmpty();
7859 }
7860 if (CheckHasBit(cached_has_bits, 0x00000002U)) {
7861 ABSL_DCHECK(_impl_.model_ != nullptr);
7862 _impl_.model_->Clear();
7863 }
7864 if (CheckHasBit(cached_has_bits, 0x00000004U)) {
7865 ABSL_DCHECK(_impl_.model_delta_ != nullptr);
7866 _impl_.model_delta_->Clear();
7868 }
7869 if (BatchCheckHasBit(cached_has_bits, 0x000000f8U)) {
7870 ::memset(&_impl_.solver_time_limit_seconds_, 0, static_cast<::size_t>(
7871 reinterpret_cast<char*>(&_impl_.populate_additional_solutions_up_to_) -
7872 reinterpret_cast<char*>(&_impl_.solver_time_limit_seconds_)) + sizeof(_impl_.populate_additional_solutions_up_to_));
7873 _impl_.solver_type_ = 2;
7874 }
7875 _impl_._has_bits_.Clear();
7876 _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>();
7877}
7878
7879#if defined(PROTOBUF_CUSTOM_VTABLE)
7880::uint8_t* PROTOBUF_NONNULL MPModelRequest::_InternalSerialize(
7881 const ::google::protobuf::MessageLite& base, ::uint8_t* PROTOBUF_NONNULL target,
7882 ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) {
7883 const MPModelRequest& this_ = static_cast<const MPModelRequest&>(base);
7884#else // PROTOBUF_CUSTOM_VTABLE
7885::uint8_t* PROTOBUF_NONNULL MPModelRequest::_InternalSerialize(
7886 ::uint8_t* PROTOBUF_NONNULL target,
7887 ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const {
7888 const MPModelRequest& this_ = *this;
7889#endif // PROTOBUF_CUSTOM_VTABLE
7890 if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) {
7891 this_.CheckHasBitConsistency();
7892 }
7893 // @@protoc_insertion_point(serialize_to_array_start:operations_research.MPModelRequest)
7894 ::uint32_t cached_has_bits = 0;
7895 (void)cached_has_bits;
7896
7897 cached_has_bits = this_._impl_._has_bits_[0];
7898 // optional .operations_research.MPModelProto model = 1;
7899 if (CheckHasBit(cached_has_bits, 0x00000002U)) {
7900 target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage(
7901 1, *this_._impl_.model_, this_._impl_.model_->GetCachedSize(), target,
7902 stream);
7903 }
7905 // optional .operations_research.MPModelRequest.SolverType solver_type = 2 [default = GLOP_LINEAR_PROGRAMMING];
7906 if (CheckHasBit(cached_has_bits, 0x00000080U)) {
7907 target = stream->EnsureSpace(target);
7908 target = ::_pbi::WireFormatLite::WriteEnumToArray(
7909 2, this_._internal_solver_type(), target);
7910 }
7911
7912 // optional double solver_time_limit_seconds = 3;
7913 if (CheckHasBit(cached_has_bits, 0x00000008U)) {
7914 target = stream->EnsureSpace(target);
7915 target = ::_pbi::WireFormatLite::WriteDoubleToArray(
7916 3, this_._internal_solver_time_limit_seconds(), target);
7917 }
7918
7919 // optional bool enable_internal_solver_output = 4 [default = false];
7920 if (CheckHasBit(cached_has_bits, 0x00000010U)) {
7921 target = stream->EnsureSpace(target);
7922 target = ::_pbi::WireFormatLite::WriteBoolToArray(
7923 4, this_._internal_enable_internal_solver_output(), target);
7924 }
7925
7926 // optional string solver_specific_parameters = 5;
7927 if (CheckHasBit(cached_has_bits, 0x00000001U)) {
7928 const ::std::string& _s = this_._internal_solver_specific_parameters();
7929 target = stream->WriteStringMaybeAliased(5, _s, target);
7930 }
7931
7932 // optional .operations_research.MPModelDeltaProto model_delta = 8;
7933 if (CheckHasBit(cached_has_bits, 0x00000004U)) {
7934 target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage(
7935 8, *this_._impl_.model_delta_, this_._impl_.model_delta_->GetCachedSize(), target,
7936 stream);
7937 }
7938
7939 // optional bool ignore_solver_specific_parameters_failure = 9 [default = false];
7940 if (CheckHasBit(cached_has_bits, 0x00000020U)) {
7941 target = stream->EnsureSpace(target);
7942 target = ::_pbi::WireFormatLite::WriteBoolToArray(
7943 9, this_._internal_ignore_solver_specific_parameters_failure(), target);
7944 }
7945
7946 // optional int32 populate_additional_solutions_up_to = 11 [default = 0];
7947 if (CheckHasBit(cached_has_bits, 0x00000040U)) {
7948 target =
7949 ::google::protobuf::internal::WireFormatLite::WriteInt32ToArrayWithField<11>(
7950 stream, this_._internal_populate_additional_solutions_up_to(), target);
7951 }
7952
7953 if (ABSL_PREDICT_FALSE(this_._internal_metadata_.have_unknown_fields())) {
7954 target =
7955 ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray(
7956 this_._internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream);
7957 }
7958 // @@protoc_insertion_point(serialize_to_array_end:operations_research.MPModelRequest)
7959 return target;
7960}
7961
7962#if defined(PROTOBUF_CUSTOM_VTABLE)
7963::size_t MPModelRequest::ByteSizeLong(const MessageLite& base) {
7964 const MPModelRequest& this_ = static_cast<const MPModelRequest&>(base);
7965#else // PROTOBUF_CUSTOM_VTABLE
7966::size_t MPModelRequest::ByteSizeLong() const {
7967 const MPModelRequest& this_ = *this;
7968#endif // PROTOBUF_CUSTOM_VTABLE
7969 // @@protoc_insertion_point(message_byte_size_start:operations_research.MPModelRequest)
7970 ::size_t total_size = 0;
7971
7972 ::uint32_t cached_has_bits = 0;
7973 // Prevent compiler warnings about cached_has_bits being unused
7974 (void)cached_has_bits;
7975
7976 ::_pbi::Prefetch5LinesFrom7Lines(&this_);
7977 cached_has_bits = this_._impl_._has_bits_[0];
7978 total_size += static_cast<bool>(0x00000008U & cached_has_bits) * 9;
7979 total_size += ::absl::popcount(0x00000030U & cached_has_bits) * 2;
7980 if (BatchCheckHasBit(cached_has_bits, 0x000000c7U)) {
7981 // optional string solver_specific_parameters = 5;
7982 if (CheckHasBit(cached_has_bits, 0x00000001U)) {
7983 total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize(
7984 this_._internal_solver_specific_parameters());
7986 // optional .operations_research.MPModelProto model = 1;
7987 if (CheckHasBit(cached_has_bits, 0x00000002U)) {
7988 total_size += 1 +
7989 ::google::protobuf::internal::WireFormatLite::MessageSize(*this_._impl_.model_);
7990 }
7991 // optional .operations_research.MPModelDeltaProto model_delta = 8;
7992 if (CheckHasBit(cached_has_bits, 0x00000004U)) {
7993 total_size += 1 +
7994 ::google::protobuf::internal::WireFormatLite::MessageSize(*this_._impl_.model_delta_);
7995 }
7996 // optional int32 populate_additional_solutions_up_to = 11 [default = 0];
7997 if (CheckHasBit(cached_has_bits, 0x00000040U)) {
7998 total_size += ::_pbi::WireFormatLite::Int32SizePlusOne(
7999 this_._internal_populate_additional_solutions_up_to());
8000 }
8001 // optional .operations_research.MPModelRequest.SolverType solver_type = 2 [default = GLOP_LINEAR_PROGRAMMING];
8002 if (CheckHasBit(cached_has_bits, 0x00000080U)) {
8003 total_size += 1 +
8004 ::_pbi::WireFormatLite::EnumSize(this_._internal_solver_type());
8005 }
8006 }
8007 return this_.MaybeComputeUnknownFieldsSize(total_size,
8008 &this_._impl_._cached_size_);
8009}
8010
8011void MPModelRequest::MergeImpl(::google::protobuf::MessageLite& to_msg,
8012 const ::google::protobuf::MessageLite& from_msg) {
8013 auto* const _this =
8014 static_cast<MPModelRequest*>(&to_msg);
8015 auto& from = static_cast<const MPModelRequest&>(from_msg);
8016 if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) {
8017 from.CheckHasBitConsistency();
8018 }
8019 ::google::protobuf::Arena* arena = _this->GetArena();
8020 // @@protoc_insertion_point(class_specific_merge_from_start:operations_research.MPModelRequest)
8021 ABSL_DCHECK_NE(&from, _this);
8022 ::uint32_t cached_has_bits = 0;
8023 (void)cached_has_bits;
8024
8025 cached_has_bits = from._impl_._has_bits_[0];
8026 if (BatchCheckHasBit(cached_has_bits, 0x000000ffU)) {
8027 if (CheckHasBit(cached_has_bits, 0x00000001U)) {
8028 _this->_internal_set_solver_specific_parameters(from._internal_solver_specific_parameters());
8029 }
8030 if (CheckHasBit(cached_has_bits, 0x00000002U)) {
8031 ABSL_DCHECK(from._impl_.model_ != nullptr);
8032 if (_this->_impl_.model_ == nullptr) {
8033 _this->_impl_.model_ = ::google::protobuf::Message::CopyConstruct(arena, *from._impl_.model_);
8034 } else {
8035 _this->_impl_.model_->MergeFrom(*from._impl_.model_);
8036 }
8037 }
8038 if (CheckHasBit(cached_has_bits, 0x00000004U)) {
8039 ABSL_DCHECK(from._impl_.model_delta_ != nullptr);
8040 if (_this->_impl_.model_delta_ == nullptr) {
8041 _this->_impl_.model_delta_ = ::google::protobuf::Message::CopyConstruct(arena, *from._impl_.model_delta_);
8042 } else {
8043 _this->_impl_.model_delta_->MergeFrom(*from._impl_.model_delta_);
8044 }
8045 }
8046 if (CheckHasBit(cached_has_bits, 0x00000008U)) {
8047 _this->_impl_.solver_time_limit_seconds_ = from._impl_.solver_time_limit_seconds_;
8048 }
8049 if (CheckHasBit(cached_has_bits, 0x00000010U)) {
8050 _this->_impl_.enable_internal_solver_output_ = from._impl_.enable_internal_solver_output_;
8051 }
8052 if (CheckHasBit(cached_has_bits, 0x00000020U)) {
8053 _this->_impl_.ignore_solver_specific_parameters_failure_ = from._impl_.ignore_solver_specific_parameters_failure_;
8054 }
8055 if (CheckHasBit(cached_has_bits, 0x00000040U)) {
8056 _this->_impl_.populate_additional_solutions_up_to_ = from._impl_.populate_additional_solutions_up_to_;
8057 }
8058 if (CheckHasBit(cached_has_bits, 0x00000080U)) {
8059 _this->_impl_.solver_type_ = from._impl_.solver_type_;
8060 }
8061 }
8062 _this->_impl_._has_bits_[0] |= cached_has_bits;
8063 _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(
8064 from._internal_metadata_);
8065}
8066
8067void MPModelRequest::CopyFrom(const MPModelRequest& from) {
8068 // @@protoc_insertion_point(class_specific_copy_from_start:operations_research.MPModelRequest)
8069 if (&from == this) return;
8070 Clear();
8071 MergeFrom(from);
8072}
8073
8074
8075void MPModelRequest::InternalSwap(MPModelRequest* PROTOBUF_RESTRICT PROTOBUF_NONNULL other) {
8076 using ::std::swap;
8077 auto* arena = GetArena();
8078 ABSL_DCHECK_EQ(arena, other->GetArena());
8079 _internal_metadata_.InternalSwap(&other->_internal_metadata_);
8080 swap(_impl_._has_bits_[0], other->_impl_._has_bits_[0]);
8081 ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.solver_specific_parameters_, &other->_impl_.solver_specific_parameters_, arena);
8082 ::google::protobuf::internal::memswap<
8083 PROTOBUF_FIELD_OFFSET(MPModelRequest, _impl_.solver_type_)
8084 + sizeof(MPModelRequest::_impl_.solver_type_)
8085 - PROTOBUF_FIELD_OFFSET(MPModelRequest, _impl_.model_)>(
8086 reinterpret_cast<char*>(&_impl_.model_),
8087 reinterpret_cast<char*>(&other->_impl_.model_));
8088}
8089
8090::google::protobuf::Metadata MPModelRequest::GetMetadata() const {
8091 return ::google::protobuf::Message::GetMetadataImpl(GetClassData()->full());
8092}
8093// ===================================================================
8094
8095class MPSolution::_Internal {
8096 public:
8097 using HasBits =
8098 decltype(::std::declval<MPSolution>()._impl_._has_bits_);
8099 static constexpr ::int32_t kHasBitsOffset =
8100 8 * PROTOBUF_FIELD_OFFSET(MPSolution, _impl_._has_bits_);
8101};
8102
8103MPSolution::MPSolution(::google::protobuf::Arena* PROTOBUF_NULLABLE arena)
8104#if defined(PROTOBUF_CUSTOM_VTABLE)
8105 : ::google::protobuf::Message(arena, MPSolution_class_data_.base()) {
8106#else // PROTOBUF_CUSTOM_VTABLE
8107 : ::google::protobuf::Message(arena) {
8108#endif // PROTOBUF_CUSTOM_VTABLE
8109 SharedCtor(arena);
8110 // @@protoc_insertion_point(arena_constructor:operations_research.MPSolution)
8111}
8112PROTOBUF_NDEBUG_INLINE MPSolution::Impl_::Impl_(
8113 [[maybe_unused]] ::google::protobuf::internal::InternalVisibility visibility,
8114 [[maybe_unused]] ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const Impl_& from,
8115 [[maybe_unused]] const ::operations_research::MPSolution& from_msg)
8116 : _has_bits_{from._has_bits_},
8117 _cached_size_{0},
8118 variable_value_{visibility, arena, from.variable_value_} {}
8121 ::google::protobuf::Arena* PROTOBUF_NULLABLE arena,
8122 const MPSolution& from)
8123#if defined(PROTOBUF_CUSTOM_VTABLE)
8124 : ::google::protobuf::Message(arena, MPSolution_class_data_.base()) {
8125#else // PROTOBUF_CUSTOM_VTABLE
8126 : ::google::protobuf::Message(arena) {
8127#endif // PROTOBUF_CUSTOM_VTABLE
8128 MPSolution* const _this = this;
8129 (void)_this;
8130 _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(
8131 from._internal_metadata_);
8132 new (&_impl_) Impl_(internal_visibility(), arena, from._impl_, from);
8133 _impl_.objective_value_ = from._impl_.objective_value_;
8134
8135 // @@protoc_insertion_point(copy_constructor:operations_research.MPSolution)
8136}
8137PROTOBUF_NDEBUG_INLINE MPSolution::Impl_::Impl_(
8138 [[maybe_unused]] ::google::protobuf::internal::InternalVisibility visibility,
8139 [[maybe_unused]] ::google::protobuf::Arena* PROTOBUF_NULLABLE arena)
8140 : _cached_size_{0},
8141 variable_value_{visibility, arena} {}
8142
8143inline void MPSolution::SharedCtor(::_pb::Arena* PROTOBUF_NULLABLE arena) {
8144 new (&_impl_) Impl_(internal_visibility(), arena);
8145 _impl_.objective_value_ = {};
8146}
8148 // @@protoc_insertion_point(destructor:operations_research.MPSolution)
8149 SharedDtor(*this);
8150}
8151inline void MPSolution::SharedDtor(MessageLite& self) {
8152 MPSolution& this_ = static_cast<MPSolution&>(self);
8153 if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) {
8154 this_.CheckHasBitConsistency();
8155 }
8156 this_._internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>();
8157 ABSL_DCHECK(this_.GetArena() == nullptr);
8158 this_._impl_.~Impl_();
8159}
8160
8161inline void* PROTOBUF_NONNULL MPSolution::PlacementNew_(
8162 const void* PROTOBUF_NONNULL, void* PROTOBUF_NONNULL mem,
8163 ::google::protobuf::Arena* PROTOBUF_NULLABLE arena) {
8164 return ::new (mem) MPSolution(arena);
8165}
8166constexpr auto MPSolution::InternalNewImpl_() {
8167 constexpr auto arena_bits = ::google::protobuf::internal::EncodePlacementArenaOffsets({
8168 PROTOBUF_FIELD_OFFSET(MPSolution, _impl_.variable_value_) +
8169 decltype(MPSolution::_impl_.variable_value_)::
8170 InternalGetArenaOffset(
8171 ::google::protobuf::Message::internal_visibility()),
8172 });
8173 if (arena_bits.has_value()) {
8174 return ::google::protobuf::internal::MessageCreator::ZeroInit(
8175 sizeof(MPSolution), alignof(MPSolution), *arena_bits);
8176 } else {
8177 return ::google::protobuf::internal::MessageCreator(&MPSolution::PlacementNew_,
8178 sizeof(MPSolution),
8179 alignof(MPSolution));
8180 }
8181}
8183 return ::google::protobuf::internal::ClassDataFull{
8184 ::google::protobuf::internal::ClassData{
8186 &_table_.header,
8187 nullptr, // OnDemandRegisterArenaDtor
8188 nullptr, // IsInitialized
8189 &MPSolution::MergeImpl,
8190 ::google::protobuf::Message::GetNewImpl<MPSolution>(),
8191#if defined(PROTOBUF_CUSTOM_VTABLE)
8192 &MPSolution::SharedDtor,
8193 ::google::protobuf::Message::GetClearImpl<MPSolution>(), &MPSolution::ByteSizeLong,
8195#endif // PROTOBUF_CUSTOM_VTABLE
8196 PROTOBUF_FIELD_OFFSET(MPSolution, _impl_._cached_size_),
8197 false,
8198 },
8199 &MPSolution::kDescriptorMethods,
8201 nullptr, // tracker
8203}
8204
8205PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 const
8206 ::google::protobuf::internal::ClassDataFull MPSolution_class_data_ =
8208
8209PROTOBUF_ATTRIBUTE_WEAK const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL
8210MPSolution::GetClassData() const {
8211 ::google::protobuf::internal::PrefetchToLocalCache(&MPSolution_class_data_);
8212 ::google::protobuf::internal::PrefetchToLocalCache(MPSolution_class_data_.tc_table);
8213 return MPSolution_class_data_.base();
8214}
8215PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1
8216const ::_pbi::TcParseTable<1, 2, 0, 0, 2>
8217MPSolution::_table_ = {
8218 {
8219 PROTOBUF_FIELD_OFFSET(MPSolution, _impl_._has_bits_),
8220 0, // no _extensions_
8221 2, 8, // max_field_number, fast_idx_mask
8222 offsetof(decltype(_table_), field_lookup_table),
8223 4294967292, // skipmap
8224 offsetof(decltype(_table_), field_entries),
8225 2, // num_field_entries
8226 0, // num_aux_entries
8227 offsetof(decltype(_table_), field_names), // no aux_entries
8229 nullptr, // post_loop_handler
8230 ::_pbi::TcParser::GenericFallback, // fallback
8231 #ifdef PROTOBUF_PREFETCH_PARSE_TABLE
8232 ::_pbi::TcParser::GetTable<::operations_research::MPSolution>(), // to_prefetch
8233 #endif // PROTOBUF_PREFETCH_PARSE_TABLE
8234 }, {{
8235 // repeated double variable_value = 2 [packed = true];
8236 {::_pbi::TcParser::FastF64P1,
8237 {18, 0, 0,
8238 PROTOBUF_FIELD_OFFSET(MPSolution, _impl_.variable_value_)}},
8239 // optional double objective_value = 1;
8240 {::_pbi::TcParser::FastF64S1,
8241 {9, 1, 0,
8242 PROTOBUF_FIELD_OFFSET(MPSolution, _impl_.objective_value_)}},
8243 }}, {{
8244 65535, 65535
8245 }}, {{
8246 // optional double objective_value = 1;
8247 {PROTOBUF_FIELD_OFFSET(MPSolution, _impl_.objective_value_), _Internal::kHasBitsOffset + 1, 0, (0 | ::_fl::kFcOptional | ::_fl::kDouble)},
8248 // repeated double variable_value = 2 [packed = true];
8249 {PROTOBUF_FIELD_OFFSET(MPSolution, _impl_.variable_value_), _Internal::kHasBitsOffset + 0, 0, (0 | ::_fl::kFcRepeated | ::_fl::kPackedDouble)},
8250 }},
8251 // no aux_entries
8252 {{
8253 }},
8254};
8255PROTOBUF_NOINLINE void MPSolution::Clear() {
8256// @@protoc_insertion_point(message_clear_start:operations_research.MPSolution)
8257 ::google::protobuf::internal::TSanWrite(&_impl_);
8258 ::uint32_t cached_has_bits = 0;
8259 // Prevent compiler warnings about cached_has_bits being unused
8260 (void) cached_has_bits;
8261
8262 cached_has_bits = _impl_._has_bits_[0];
8263 if (CheckHasBitForRepeated(cached_has_bits, 0x00000001U)) {
8264 _impl_.variable_value_.Clear();
8265 }
8266 _impl_.objective_value_ = 0;
8267 _impl_._has_bits_.Clear();
8268 _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>();
8269}
8270
8271#if defined(PROTOBUF_CUSTOM_VTABLE)
8272::uint8_t* PROTOBUF_NONNULL MPSolution::_InternalSerialize(
8273 const ::google::protobuf::MessageLite& base, ::uint8_t* PROTOBUF_NONNULL target,
8274 ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) {
8275 const MPSolution& this_ = static_cast<const MPSolution&>(base);
8276#else // PROTOBUF_CUSTOM_VTABLE
8277::uint8_t* PROTOBUF_NONNULL MPSolution::_InternalSerialize(
8278 ::uint8_t* PROTOBUF_NONNULL target,
8279 ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const {
8280 const MPSolution& this_ = *this;
8281#endif // PROTOBUF_CUSTOM_VTABLE
8282 if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) {
8283 this_.CheckHasBitConsistency();
8284 }
8285 // @@protoc_insertion_point(serialize_to_array_start:operations_research.MPSolution)
8286 ::uint32_t cached_has_bits = 0;
8287 (void)cached_has_bits;
8288
8289 cached_has_bits = this_._impl_._has_bits_[0];
8290 // optional double objective_value = 1;
8291 if (CheckHasBit(cached_has_bits, 0x00000002U)) {
8292 target = stream->EnsureSpace(target);
8293 target = ::_pbi::WireFormatLite::WriteDoubleToArray(
8294 1, this_._internal_objective_value(), target);
8295 }
8296
8297 // repeated double variable_value = 2 [packed = true];
8298 if (CheckHasBitForRepeated(cached_has_bits, 0x00000001U)) {
8299 if (this_._internal_variable_value_size() > 0) {
8300 target = stream->WriteFixedPacked(2, this_._internal_variable_value(), target);
8301 }
8302 }
8303
8304 if (ABSL_PREDICT_FALSE(this_._internal_metadata_.have_unknown_fields())) {
8305 target =
8306 ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray(
8307 this_._internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream);
8308 }
8309 // @@protoc_insertion_point(serialize_to_array_end:operations_research.MPSolution)
8310 return target;
8311}
8312
8313#if defined(PROTOBUF_CUSTOM_VTABLE)
8314::size_t MPSolution::ByteSizeLong(const MessageLite& base) {
8315 const MPSolution& this_ = static_cast<const MPSolution&>(base);
8316#else // PROTOBUF_CUSTOM_VTABLE
8317::size_t MPSolution::ByteSizeLong() const {
8318 const MPSolution& this_ = *this;
8319#endif // PROTOBUF_CUSTOM_VTABLE
8320 // @@protoc_insertion_point(message_byte_size_start:operations_research.MPSolution)
8321 ::size_t total_size = 0;
8322
8323 ::uint32_t cached_has_bits = 0;
8324 // Prevent compiler warnings about cached_has_bits being unused
8325 (void)cached_has_bits;
8326
8327 ::_pbi::Prefetch5LinesFrom7Lines(&this_);
8328 cached_has_bits = this_._impl_._has_bits_[0];
8329 total_size += static_cast<bool>(0x00000002U & cached_has_bits) * 9;
8330 {
8331 // repeated double variable_value = 2 [packed = true];
8332 if (CheckHasBitForRepeated(cached_has_bits, 0x00000001U)) {
8333 ::size_t data_size = ::size_t{8} *
8334 ::_pbi::FromIntSize(this_._internal_variable_value_size());
8335 ::size_t tag_size = data_size == 0
8336 ? 0
8337 : 1 + ::_pbi::WireFormatLite::Int32Size(
8338 static_cast<::int32_t>(data_size));
8339 total_size += tag_size + data_size;
8340 }
8341 }
8342 return this_.MaybeComputeUnknownFieldsSize(total_size,
8343 &this_._impl_._cached_size_);
8344}
8345
8346void MPSolution::MergeImpl(::google::protobuf::MessageLite& to_msg,
8347 const ::google::protobuf::MessageLite& from_msg) {
8348 auto* const _this =
8349 static_cast<MPSolution*>(&to_msg);
8350 auto& from = static_cast<const MPSolution&>(from_msg);
8351 if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) {
8352 from.CheckHasBitConsistency();
8353 }
8354 // @@protoc_insertion_point(class_specific_merge_from_start:operations_research.MPSolution)
8355 ABSL_DCHECK_NE(&from, _this);
8356 ::uint32_t cached_has_bits = 0;
8357 (void)cached_has_bits;
8358
8359 cached_has_bits = from._impl_._has_bits_[0];
8360 if (BatchCheckHasBit(cached_has_bits, 0x00000003U)) {
8361 if (CheckHasBitForRepeated(cached_has_bits, 0x00000001U)) {
8362 _this->_internal_mutable_variable_value()->MergeFrom(from._internal_variable_value());
8363 }
8364 if (CheckHasBit(cached_has_bits, 0x00000002U)) {
8365 _this->_impl_.objective_value_ = from._impl_.objective_value_;
8366 }
8367 }
8368 _this->_impl_._has_bits_[0] |= cached_has_bits;
8369 _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(
8370 from._internal_metadata_);
8371}
8372
8373void MPSolution::CopyFrom(const MPSolution& from) {
8374 // @@protoc_insertion_point(class_specific_copy_from_start:operations_research.MPSolution)
8375 if (&from == this) return;
8376 Clear();
8377 MergeFrom(from);
8378}
8379
8380
8381void MPSolution::InternalSwap(MPSolution* PROTOBUF_RESTRICT PROTOBUF_NONNULL other) {
8382 using ::std::swap;
8383 _internal_metadata_.InternalSwap(&other->_internal_metadata_);
8384 swap(_impl_._has_bits_[0], other->_impl_._has_bits_[0]);
8385 _impl_.variable_value_.InternalSwap(&other->_impl_.variable_value_);
8386 swap(_impl_.objective_value_, other->_impl_.objective_value_);
8387}
8388
8389::google::protobuf::Metadata MPSolution::GetMetadata() const {
8390 return ::google::protobuf::Message::GetMetadataImpl(GetClassData()->full());
8391}
8392// ===================================================================
8395 public:
8396 using HasBits =
8397 decltype(::std::declval<MPSolveInfo>()._impl_._has_bits_);
8398 static constexpr ::int32_t kHasBitsOffset =
8399 8 * PROTOBUF_FIELD_OFFSET(MPSolveInfo, _impl_._has_bits_);
8400};
8401
8402MPSolveInfo::MPSolveInfo(::google::protobuf::Arena* PROTOBUF_NULLABLE arena)
8403#if defined(PROTOBUF_CUSTOM_VTABLE)
8404 : ::google::protobuf::Message(arena, MPSolveInfo_class_data_.base()) {
8405#else // PROTOBUF_CUSTOM_VTABLE
8406 : ::google::protobuf::Message(arena) {
8407#endif // PROTOBUF_CUSTOM_VTABLE
8408 SharedCtor(arena);
8409 // @@protoc_insertion_point(arena_constructor:operations_research.MPSolveInfo)
8410}
8412 ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const MPSolveInfo& from)
8413#if defined(PROTOBUF_CUSTOM_VTABLE)
8414 : ::google::protobuf::Message(arena, MPSolveInfo_class_data_.base()),
8415#else // PROTOBUF_CUSTOM_VTABLE
8416 : ::google::protobuf::Message(arena),
8417#endif // PROTOBUF_CUSTOM_VTABLE
8418 _impl_(from._impl_) {
8419 _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(
8420 from._internal_metadata_);
8421}
8422PROTOBUF_NDEBUG_INLINE MPSolveInfo::Impl_::Impl_(
8423 [[maybe_unused]] ::google::protobuf::internal::InternalVisibility visibility,
8424 [[maybe_unused]] ::google::protobuf::Arena* PROTOBUF_NULLABLE arena)
8425 : _cached_size_{0} {}
8426
8427inline void MPSolveInfo::SharedCtor(::_pb::Arena* PROTOBUF_NULLABLE arena) {
8428 new (&_impl_) Impl_(internal_visibility(), arena);
8429 ::memset(reinterpret_cast<char*>(&_impl_) +
8430 offsetof(Impl_, solve_wall_time_seconds_),
8431 0,
8432 offsetof(Impl_, solve_user_time_seconds_) -
8433 offsetof(Impl_, solve_wall_time_seconds_) +
8434 sizeof(Impl_::solve_user_time_seconds_));
8435}
8437 // @@protoc_insertion_point(destructor:operations_research.MPSolveInfo)
8438 SharedDtor(*this);
8439}
8440inline void MPSolveInfo::SharedDtor(MessageLite& self) {
8441 MPSolveInfo& this_ = static_cast<MPSolveInfo&>(self);
8442 if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) {
8443 this_.CheckHasBitConsistency();
8444 }
8445 this_._internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>();
8446 ABSL_DCHECK(this_.GetArena() == nullptr);
8447 this_._impl_.~Impl_();
8448}
8449
8450inline void* PROTOBUF_NONNULL MPSolveInfo::PlacementNew_(
8451 const void* PROTOBUF_NONNULL, void* PROTOBUF_NONNULL mem,
8452 ::google::protobuf::Arena* PROTOBUF_NULLABLE arena) {
8453 return ::new (mem) MPSolveInfo(arena);
8454}
8455constexpr auto MPSolveInfo::InternalNewImpl_() {
8456 return ::google::protobuf::internal::MessageCreator::ZeroInit(sizeof(MPSolveInfo),
8457 alignof(MPSolveInfo));
8458}
8460 return ::google::protobuf::internal::ClassDataFull{
8461 ::google::protobuf::internal::ClassData{
8463 &_table_.header,
8464 nullptr, // OnDemandRegisterArenaDtor
8465 nullptr, // IsInitialized
8466 &MPSolveInfo::MergeImpl,
8467 ::google::protobuf::Message::GetNewImpl<MPSolveInfo>(),
8468#if defined(PROTOBUF_CUSTOM_VTABLE)
8469 &MPSolveInfo::SharedDtor,
8470 ::google::protobuf::Message::GetClearImpl<MPSolveInfo>(), &MPSolveInfo::ByteSizeLong,
8472#endif // PROTOBUF_CUSTOM_VTABLE
8473 PROTOBUF_FIELD_OFFSET(MPSolveInfo, _impl_._cached_size_),
8474 false,
8475 },
8476 &MPSolveInfo::kDescriptorMethods,
8478 nullptr, // tracker
8479 };
8481
8482PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 const
8483 ::google::protobuf::internal::ClassDataFull MPSolveInfo_class_data_ =
8485
8486PROTOBUF_ATTRIBUTE_WEAK const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL
8487MPSolveInfo::GetClassData() const {
8488 ::google::protobuf::internal::PrefetchToLocalCache(&MPSolveInfo_class_data_);
8489 ::google::protobuf::internal::PrefetchToLocalCache(MPSolveInfo_class_data_.tc_table);
8490 return MPSolveInfo_class_data_.base();
8491}
8492PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1
8493const ::_pbi::TcParseTable<1, 2, 0, 0, 2>
8494MPSolveInfo::_table_ = {
8495 {
8496 PROTOBUF_FIELD_OFFSET(MPSolveInfo, _impl_._has_bits_),
8497 0, // no _extensions_
8498 2, 8, // max_field_number, fast_idx_mask
8499 offsetof(decltype(_table_), field_lookup_table),
8500 4294967292, // skipmap
8501 offsetof(decltype(_table_), field_entries),
8502 2, // num_field_entries
8503 0, // num_aux_entries
8504 offsetof(decltype(_table_), field_names), // no aux_entries
8506 nullptr, // post_loop_handler
8507 ::_pbi::TcParser::GenericFallback, // fallback
8508 #ifdef PROTOBUF_PREFETCH_PARSE_TABLE
8509 ::_pbi::TcParser::GetTable<::operations_research::MPSolveInfo>(), // to_prefetch
8510 #endif // PROTOBUF_PREFETCH_PARSE_TABLE
8511 }, {{
8512 // optional double solve_user_time_seconds = 2;
8513 {::_pbi::TcParser::FastF64S1,
8514 {17, 1, 0,
8515 PROTOBUF_FIELD_OFFSET(MPSolveInfo, _impl_.solve_user_time_seconds_)}},
8516 // optional double solve_wall_time_seconds = 1;
8517 {::_pbi::TcParser::FastF64S1,
8518 {9, 0, 0,
8519 PROTOBUF_FIELD_OFFSET(MPSolveInfo, _impl_.solve_wall_time_seconds_)}},
8520 }}, {{
8521 65535, 65535
8522 }}, {{
8523 // optional double solve_wall_time_seconds = 1;
8524 {PROTOBUF_FIELD_OFFSET(MPSolveInfo, _impl_.solve_wall_time_seconds_), _Internal::kHasBitsOffset + 0, 0, (0 | ::_fl::kFcOptional | ::_fl::kDouble)},
8525 // optional double solve_user_time_seconds = 2;
8526 {PROTOBUF_FIELD_OFFSET(MPSolveInfo, _impl_.solve_user_time_seconds_), _Internal::kHasBitsOffset + 1, 0, (0 | ::_fl::kFcOptional | ::_fl::kDouble)},
8527 }},
8528 // no aux_entries
8529 {{
8530 }},
8531};
8532PROTOBUF_NOINLINE void MPSolveInfo::Clear() {
8533// @@protoc_insertion_point(message_clear_start:operations_research.MPSolveInfo)
8534 ::google::protobuf::internal::TSanWrite(&_impl_);
8535 ::uint32_t cached_has_bits = 0;
8536 // Prevent compiler warnings about cached_has_bits being unused
8537 (void) cached_has_bits;
8538
8539 cached_has_bits = _impl_._has_bits_[0];
8540 if (BatchCheckHasBit(cached_has_bits, 0x00000003U)) {
8541 ::memset(&_impl_.solve_wall_time_seconds_, 0, static_cast<::size_t>(
8542 reinterpret_cast<char*>(&_impl_.solve_user_time_seconds_) -
8543 reinterpret_cast<char*>(&_impl_.solve_wall_time_seconds_)) + sizeof(_impl_.solve_user_time_seconds_));
8544 }
8545 _impl_._has_bits_.Clear();
8546 _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>();
8547}
8548
8549#if defined(PROTOBUF_CUSTOM_VTABLE)
8550::uint8_t* PROTOBUF_NONNULL MPSolveInfo::_InternalSerialize(
8551 const ::google::protobuf::MessageLite& base, ::uint8_t* PROTOBUF_NONNULL target,
8552 ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) {
8553 const MPSolveInfo& this_ = static_cast<const MPSolveInfo&>(base);
8554#else // PROTOBUF_CUSTOM_VTABLE
8555::uint8_t* PROTOBUF_NONNULL MPSolveInfo::_InternalSerialize(
8556 ::uint8_t* PROTOBUF_NONNULL target,
8557 ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const {
8558 const MPSolveInfo& this_ = *this;
8559#endif // PROTOBUF_CUSTOM_VTABLE
8560 if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) {
8561 this_.CheckHasBitConsistency();
8562 }
8563 // @@protoc_insertion_point(serialize_to_array_start:operations_research.MPSolveInfo)
8564 ::uint32_t cached_has_bits = 0;
8565 (void)cached_has_bits;
8566
8567 cached_has_bits = this_._impl_._has_bits_[0];
8568 // optional double solve_wall_time_seconds = 1;
8569 if (CheckHasBit(cached_has_bits, 0x00000001U)) {
8570 target = stream->EnsureSpace(target);
8571 target = ::_pbi::WireFormatLite::WriteDoubleToArray(
8572 1, this_._internal_solve_wall_time_seconds(), target);
8573 }
8574
8575 // optional double solve_user_time_seconds = 2;
8576 if (CheckHasBit(cached_has_bits, 0x00000002U)) {
8577 target = stream->EnsureSpace(target);
8578 target = ::_pbi::WireFormatLite::WriteDoubleToArray(
8579 2, this_._internal_solve_user_time_seconds(), target);
8580 }
8581
8582 if (ABSL_PREDICT_FALSE(this_._internal_metadata_.have_unknown_fields())) {
8583 target =
8584 ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray(
8585 this_._internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream);
8586 }
8587 // @@protoc_insertion_point(serialize_to_array_end:operations_research.MPSolveInfo)
8588 return target;
8589}
8590
8591#if defined(PROTOBUF_CUSTOM_VTABLE)
8592::size_t MPSolveInfo::ByteSizeLong(const MessageLite& base) {
8593 const MPSolveInfo& this_ = static_cast<const MPSolveInfo&>(base);
8594#else // PROTOBUF_CUSTOM_VTABLE
8595::size_t MPSolveInfo::ByteSizeLong() const {
8596 const MPSolveInfo& this_ = *this;
8597#endif // PROTOBUF_CUSTOM_VTABLE
8598 // @@protoc_insertion_point(message_byte_size_start:operations_research.MPSolveInfo)
8599 ::size_t total_size = 0;
8600
8601 ::uint32_t cached_has_bits = 0;
8602 // Prevent compiler warnings about cached_has_bits being unused
8603 (void)cached_has_bits;
8604
8605 ::_pbi::Prefetch5LinesFrom7Lines(&this_);
8606 cached_has_bits = this_._impl_._has_bits_[0];
8607 total_size += ::absl::popcount(0x00000003U & cached_has_bits) * 9;
8608 return this_.MaybeComputeUnknownFieldsSize(total_size,
8609 &this_._impl_._cached_size_);
8610}
8611
8612void MPSolveInfo::MergeImpl(::google::protobuf::MessageLite& to_msg,
8613 const ::google::protobuf::MessageLite& from_msg) {
8614 auto* const _this =
8615 static_cast<MPSolveInfo*>(&to_msg);
8616 auto& from = static_cast<const MPSolveInfo&>(from_msg);
8617 if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) {
8618 from.CheckHasBitConsistency();
8619 }
8620 // @@protoc_insertion_point(class_specific_merge_from_start:operations_research.MPSolveInfo)
8621 ABSL_DCHECK_NE(&from, _this);
8622 ::uint32_t cached_has_bits = 0;
8623 (void)cached_has_bits;
8624
8625 cached_has_bits = from._impl_._has_bits_[0];
8626 if (BatchCheckHasBit(cached_has_bits, 0x00000003U)) {
8627 if (CheckHasBit(cached_has_bits, 0x00000001U)) {
8628 _this->_impl_.solve_wall_time_seconds_ = from._impl_.solve_wall_time_seconds_;
8629 }
8630 if (CheckHasBit(cached_has_bits, 0x00000002U)) {
8631 _this->_impl_.solve_user_time_seconds_ = from._impl_.solve_user_time_seconds_;
8632 }
8633 }
8634 _this->_impl_._has_bits_[0] |= cached_has_bits;
8635 _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(
8636 from._internal_metadata_);
8637}
8638
8639void MPSolveInfo::CopyFrom(const MPSolveInfo& from) {
8640 // @@protoc_insertion_point(class_specific_copy_from_start:operations_research.MPSolveInfo)
8641 if (&from == this) return;
8642 Clear();
8643 MergeFrom(from);
8644}
8645
8646
8647void MPSolveInfo::InternalSwap(MPSolveInfo* PROTOBUF_RESTRICT PROTOBUF_NONNULL other) {
8648 using ::std::swap;
8649 _internal_metadata_.InternalSwap(&other->_internal_metadata_);
8650 swap(_impl_._has_bits_[0], other->_impl_._has_bits_[0]);
8651 ::google::protobuf::internal::memswap<
8652 PROTOBUF_FIELD_OFFSET(MPSolveInfo, _impl_.solve_user_time_seconds_)
8653 + sizeof(MPSolveInfo::_impl_.solve_user_time_seconds_)
8654 - PROTOBUF_FIELD_OFFSET(MPSolveInfo, _impl_.solve_wall_time_seconds_)>(
8655 reinterpret_cast<char*>(&_impl_.solve_wall_time_seconds_),
8656 reinterpret_cast<char*>(&other->_impl_.solve_wall_time_seconds_));
8657}
8658
8659::google::protobuf::Metadata MPSolveInfo::GetMetadata() const {
8660 return ::google::protobuf::Message::GetMetadataImpl(GetClassData()->full());
8661}
8662// ===================================================================
8663
8665 public:
8666 using HasBits =
8667 decltype(::std::declval<MPSolutionResponse>()._impl_._has_bits_);
8668 static constexpr ::int32_t kHasBitsOffset =
8669 8 * PROTOBUF_FIELD_OFFSET(MPSolutionResponse, _impl_._has_bits_);
8670};
8671
8672MPSolutionResponse::MPSolutionResponse(::google::protobuf::Arena* PROTOBUF_NULLABLE arena)
8673#if defined(PROTOBUF_CUSTOM_VTABLE)
8674 : ::google::protobuf::Message(arena, MPSolutionResponse_class_data_.base()) {
8675#else // PROTOBUF_CUSTOM_VTABLE
8676 : ::google::protobuf::Message(arena) {
8677#endif // PROTOBUF_CUSTOM_VTABLE
8678 SharedCtor(arena);
8679 // @@protoc_insertion_point(arena_constructor:operations_research.MPSolutionResponse)
8681PROTOBUF_NDEBUG_INLINE MPSolutionResponse::Impl_::Impl_(
8682 [[maybe_unused]] ::google::protobuf::internal::InternalVisibility visibility,
8683 [[maybe_unused]] ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const Impl_& from,
8684 [[maybe_unused]] const ::operations_research::MPSolutionResponse& from_msg)
8685 : _has_bits_{from._has_bits_},
8686 _cached_size_{0},
8687 variable_value_{visibility, arena, from.variable_value_},
8688 dual_value_{visibility, arena, from.dual_value_},
8689 reduced_cost_{visibility, arena, from.reduced_cost_},
8690 additional_solutions_{visibility, arena, from.additional_solutions_},
8691 status_str_(arena, from.status_str_),
8692 solver_specific_info_(arena, from.solver_specific_info_) {}
8693
8695 ::google::protobuf::Arena* PROTOBUF_NULLABLE arena,
8696 const MPSolutionResponse& from)
8697#if defined(PROTOBUF_CUSTOM_VTABLE)
8698 : ::google::protobuf::Message(arena, MPSolutionResponse_class_data_.base()) {
8699#else // PROTOBUF_CUSTOM_VTABLE
8700 : ::google::protobuf::Message(arena) {
8701#endif // PROTOBUF_CUSTOM_VTABLE
8702 MPSolutionResponse* const _this = this;
8703 (void)_this;
8704 _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(
8705 from._internal_metadata_);
8706 new (&_impl_) Impl_(internal_visibility(), arena, from._impl_, from);
8707 ::uint32_t cached_has_bits = _impl_._has_bits_[0];
8708 _impl_.solve_info_ = (CheckHasBit(cached_has_bits, 0x00000040U))
8709 ? ::google::protobuf::Message::CopyConstruct(arena, *from._impl_.solve_info_)
8710 : nullptr;
8711 ::memcpy(reinterpret_cast<char*>(&_impl_) +
8712 offsetof(Impl_, objective_value_),
8713 reinterpret_cast<const char*>(&from._impl_) +
8714 offsetof(Impl_, objective_value_),
8715 offsetof(Impl_, status_) -
8716 offsetof(Impl_, objective_value_) +
8717 sizeof(Impl_::status_));
8718
8719 // @@protoc_insertion_point(copy_constructor:operations_research.MPSolutionResponse)
8720}
8721PROTOBUF_NDEBUG_INLINE MPSolutionResponse::Impl_::Impl_(
8722 [[maybe_unused]] ::google::protobuf::internal::InternalVisibility visibility,
8723 [[maybe_unused]] ::google::protobuf::Arena* PROTOBUF_NULLABLE arena)
8724 : _cached_size_{0},
8725 variable_value_{visibility, arena},
8726 dual_value_{visibility, arena},
8727 reduced_cost_{visibility, arena},
8728 additional_solutions_{visibility, arena},
8729 status_str_(arena),
8730 solver_specific_info_(arena),
8731 status_{static_cast< ::operations_research::MPSolverResponseStatus >(99)} {}
8732
8733inline void MPSolutionResponse::SharedCtor(::_pb::Arena* PROTOBUF_NULLABLE arena) {
8734 new (&_impl_) Impl_(internal_visibility(), arena);
8735 ::memset(reinterpret_cast<char*>(&_impl_) +
8736 offsetof(Impl_, solve_info_),
8737 0,
8738 offsetof(Impl_, best_objective_bound_) -
8739 offsetof(Impl_, solve_info_) +
8740 sizeof(Impl_::best_objective_bound_));
8741}
8743 // @@protoc_insertion_point(destructor:operations_research.MPSolutionResponse)
8744 SharedDtor(*this);
8745}
8746inline void MPSolutionResponse::SharedDtor(MessageLite& self) {
8747 MPSolutionResponse& this_ = static_cast<MPSolutionResponse&>(self);
8748 if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) {
8749 this_.CheckHasBitConsistency();
8750 }
8751 this_._internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>();
8752 ABSL_DCHECK(this_.GetArena() == nullptr);
8753 this_._impl_.status_str_.Destroy();
8754 this_._impl_.solver_specific_info_.Destroy();
8755 delete this_._impl_.solve_info_;
8756 this_._impl_.~Impl_();
8757}
8758
8759inline void* PROTOBUF_NONNULL MPSolutionResponse::PlacementNew_(
8760 const void* PROTOBUF_NONNULL, void* PROTOBUF_NONNULL mem,
8761 ::google::protobuf::Arena* PROTOBUF_NULLABLE arena) {
8762 return ::new (mem) MPSolutionResponse(arena);
8763}
8764constexpr auto MPSolutionResponse::InternalNewImpl_() {
8765 constexpr auto arena_bits = ::google::protobuf::internal::EncodePlacementArenaOffsets({
8766 PROTOBUF_FIELD_OFFSET(MPSolutionResponse, _impl_.variable_value_) +
8767 decltype(MPSolutionResponse::_impl_.variable_value_)::
8768 InternalGetArenaOffset(
8769 ::google::protobuf::Message::internal_visibility()),
8770 PROTOBUF_FIELD_OFFSET(MPSolutionResponse, _impl_.dual_value_) +
8771 decltype(MPSolutionResponse::_impl_.dual_value_)::
8772 InternalGetArenaOffset(
8773 ::google::protobuf::Message::internal_visibility()),
8774 PROTOBUF_FIELD_OFFSET(MPSolutionResponse, _impl_.reduced_cost_) +
8775 decltype(MPSolutionResponse::_impl_.reduced_cost_)::
8776 InternalGetArenaOffset(
8777 ::google::protobuf::Message::internal_visibility()),
8778 PROTOBUF_FIELD_OFFSET(MPSolutionResponse, _impl_.additional_solutions_) +
8779 decltype(MPSolutionResponse::_impl_.additional_solutions_)::
8780 InternalGetArenaOffset(
8781 ::google::protobuf::Message::internal_visibility()),
8782 });
8783 if (arena_bits.has_value()) {
8784 return ::google::protobuf::internal::MessageCreator::CopyInit(
8785 sizeof(MPSolutionResponse), alignof(MPSolutionResponse), *arena_bits);
8786 } else {
8787 return ::google::protobuf::internal::MessageCreator(&MPSolutionResponse::PlacementNew_,
8788 sizeof(MPSolutionResponse),
8789 alignof(MPSolutionResponse));
8790 }
8791}
8793 return ::google::protobuf::internal::ClassDataFull{
8794 ::google::protobuf::internal::ClassData{
8796 &_table_.header,
8797 nullptr, // OnDemandRegisterArenaDtor
8798 nullptr, // IsInitialized
8799 &MPSolutionResponse::MergeImpl,
8800 ::google::protobuf::Message::GetNewImpl<MPSolutionResponse>(),
8801#if defined(PROTOBUF_CUSTOM_VTABLE)
8802 &MPSolutionResponse::SharedDtor,
8803 ::google::protobuf::Message::GetClearImpl<MPSolutionResponse>(), &MPSolutionResponse::ByteSizeLong,
8805#endif // PROTOBUF_CUSTOM_VTABLE
8806 PROTOBUF_FIELD_OFFSET(MPSolutionResponse, _impl_._cached_size_),
8807 false,
8808 },
8809 &MPSolutionResponse::kDescriptorMethods,
8811 nullptr, // tracker
8812 };
8813}
8815PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 const
8816 ::google::protobuf::internal::ClassDataFull MPSolutionResponse_class_data_ =
8818
8819PROTOBUF_ATTRIBUTE_WEAK const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL
8820MPSolutionResponse::GetClassData() const {
8821 ::google::protobuf::internal::PrefetchToLocalCache(&MPSolutionResponse_class_data_);
8822 ::google::protobuf::internal::PrefetchToLocalCache(MPSolutionResponse_class_data_.tc_table);
8823 return MPSolutionResponse_class_data_.base();
8824}
8825PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1
8826const ::_pbi::TcParseTable<4, 10, 3, 0, 2>
8827MPSolutionResponse::_table_ = {
8828 {
8829 PROTOBUF_FIELD_OFFSET(MPSolutionResponse, _impl_._has_bits_),
8830 0, // no _extensions_
8831 11, 120, // max_field_number, fast_idx_mask
8832 offsetof(decltype(_table_), field_lookup_table),
8833 4294965504, // skipmap
8834 offsetof(decltype(_table_), field_entries),
8835 10, // num_field_entries
8836 3, // num_aux_entries
8837 offsetof(decltype(_table_), aux_entries),
8839 nullptr, // post_loop_handler
8840 ::_pbi::TcParser::GenericFallback, // fallback
8841 #ifdef PROTOBUF_PREFETCH_PARSE_TABLE
8842 ::_pbi::TcParser::GetTable<::operations_research::MPSolutionResponse>(), // to_prefetch
8843 #endif // PROTOBUF_PREFETCH_PARSE_TABLE
8844 }, {{
8845 {::_pbi::TcParser::MiniParse, {}},
8846 // optional .operations_research.MPSolverResponseStatus status = 1 [default = MPSOLVER_UNKNOWN_STATUS];
8847 {::_pbi::TcParser::FastEvS1,
8848 {8, 9, 2,
8849 PROTOBUF_FIELD_OFFSET(MPSolutionResponse, _impl_.status_)}},
8850 // optional double objective_value = 2;
8851 {::_pbi::TcParser::FastF64S1,
8852 {17, 7, 0,
8853 PROTOBUF_FIELD_OFFSET(MPSolutionResponse, _impl_.objective_value_)}},
8854 // repeated double variable_value = 3 [packed = true];
8855 {::_pbi::TcParser::FastF64P1,
8856 {26, 0, 0,
8857 PROTOBUF_FIELD_OFFSET(MPSolutionResponse, _impl_.variable_value_)}},
8858 // repeated double dual_value = 4 [packed = true];
8859 {::_pbi::TcParser::FastF64P1,
8860 {34, 1, 0,
8861 PROTOBUF_FIELD_OFFSET(MPSolutionResponse, _impl_.dual_value_)}},
8862 // optional double best_objective_bound = 5;
8863 {::_pbi::TcParser::FastF64S1,
8864 {41, 8, 0,
8865 PROTOBUF_FIELD_OFFSET(MPSolutionResponse, _impl_.best_objective_bound_)}},
8866 // repeated double reduced_cost = 6 [packed = true];
8867 {::_pbi::TcParser::FastF64P1,
8868 {50, 2, 0,
8869 PROTOBUF_FIELD_OFFSET(MPSolutionResponse, _impl_.reduced_cost_)}},
8870 // optional string status_str = 7;
8871 {::_pbi::TcParser::FastBS1,
8872 {58, 4, 0,
8873 PROTOBUF_FIELD_OFFSET(MPSolutionResponse, _impl_.status_str_)}},
8874 // repeated .operations_research.MPSolution additional_solutions = 8;
8875 {::_pbi::TcParser::FastMtR1,
8876 {66, 3, 0,
8877 PROTOBUF_FIELD_OFFSET(MPSolutionResponse, _impl_.additional_solutions_)}},
8878 {::_pbi::TcParser::MiniParse, {}},
8879 // optional .operations_research.MPSolveInfo solve_info = 10;
8880 {::_pbi::TcParser::FastMtS1,
8881 {82, 6, 1,
8882 PROTOBUF_FIELD_OFFSET(MPSolutionResponse, _impl_.solve_info_)}},
8883 // optional bytes solver_specific_info = 11;
8884 {::_pbi::TcParser::FastBS1,
8885 {90, 5, 0,
8886 PROTOBUF_FIELD_OFFSET(MPSolutionResponse, _impl_.solver_specific_info_)}},
8887 {::_pbi::TcParser::MiniParse, {}},
8888 {::_pbi::TcParser::MiniParse, {}},
8889 {::_pbi::TcParser::MiniParse, {}},
8890 {::_pbi::TcParser::MiniParse, {}},
8891 }}, {{
8892 65535, 65535
8893 }}, {{
8894 // optional .operations_research.MPSolverResponseStatus status = 1 [default = MPSOLVER_UNKNOWN_STATUS];
8895 {PROTOBUF_FIELD_OFFSET(MPSolutionResponse, _impl_.status_), _Internal::kHasBitsOffset + 9, 2, (0 | ::_fl::kFcOptional | ::_fl::kEnum)},
8896 // optional double objective_value = 2;
8897 {PROTOBUF_FIELD_OFFSET(MPSolutionResponse, _impl_.objective_value_), _Internal::kHasBitsOffset + 7, 0, (0 | ::_fl::kFcOptional | ::_fl::kDouble)},
8898 // repeated double variable_value = 3 [packed = true];
8899 {PROTOBUF_FIELD_OFFSET(MPSolutionResponse, _impl_.variable_value_), _Internal::kHasBitsOffset + 0, 0, (0 | ::_fl::kFcRepeated | ::_fl::kPackedDouble)},
8900 // repeated double dual_value = 4 [packed = true];
8901 {PROTOBUF_FIELD_OFFSET(MPSolutionResponse, _impl_.dual_value_), _Internal::kHasBitsOffset + 1, 0, (0 | ::_fl::kFcRepeated | ::_fl::kPackedDouble)},
8902 // optional double best_objective_bound = 5;
8903 {PROTOBUF_FIELD_OFFSET(MPSolutionResponse, _impl_.best_objective_bound_), _Internal::kHasBitsOffset + 8, 0, (0 | ::_fl::kFcOptional | ::_fl::kDouble)},
8904 // repeated double reduced_cost = 6 [packed = true];
8905 {PROTOBUF_FIELD_OFFSET(MPSolutionResponse, _impl_.reduced_cost_), _Internal::kHasBitsOffset + 2, 0, (0 | ::_fl::kFcRepeated | ::_fl::kPackedDouble)},
8906 // optional string status_str = 7;
8907 {PROTOBUF_FIELD_OFFSET(MPSolutionResponse, _impl_.status_str_), _Internal::kHasBitsOffset + 4, 0, (0 | ::_fl::kFcOptional | ::_fl::kBytes | ::_fl::kRepAString)},
8908 // repeated .operations_research.MPSolution additional_solutions = 8;
8909 {PROTOBUF_FIELD_OFFSET(MPSolutionResponse, _impl_.additional_solutions_), _Internal::kHasBitsOffset + 3, 0, (0 | ::_fl::kFcRepeated | ::_fl::kMessage | ::_fl::kTvTable)},
8910 // optional .operations_research.MPSolveInfo solve_info = 10;
8911 {PROTOBUF_FIELD_OFFSET(MPSolutionResponse, _impl_.solve_info_), _Internal::kHasBitsOffset + 6, 1, (0 | ::_fl::kFcOptional | ::_fl::kMessage | ::_fl::kTvTable)},
8912 // optional bytes solver_specific_info = 11;
8913 {PROTOBUF_FIELD_OFFSET(MPSolutionResponse, _impl_.solver_specific_info_), _Internal::kHasBitsOffset + 5, 0, (0 | ::_fl::kFcOptional | ::_fl::kBytes | ::_fl::kRepAString)},
8914 }},
8915 {{
8916 {::_pbi::TcParser::GetTable<::operations_research::MPSolution>()},
8917 {::_pbi::TcParser::GetTable<::operations_research::MPSolveInfo>()},
8919 }},
8920 {{
8921 }},
8922};
8923PROTOBUF_NOINLINE void MPSolutionResponse::Clear() {
8924// @@protoc_insertion_point(message_clear_start:operations_research.MPSolutionResponse)
8925 ::google::protobuf::internal::TSanWrite(&_impl_);
8926 ::uint32_t cached_has_bits = 0;
8927 // Prevent compiler warnings about cached_has_bits being unused
8928 (void) cached_has_bits;
8929
8930 cached_has_bits = _impl_._has_bits_[0];
8931 if (BatchCheckHasBit(cached_has_bits, 0x0000007fU)) {
8932 if (CheckHasBitForRepeated(cached_has_bits, 0x00000001U)) {
8933 _impl_.variable_value_.Clear();
8934 }
8935 if (CheckHasBitForRepeated(cached_has_bits, 0x00000002U)) {
8936 _impl_.dual_value_.Clear();
8937 }
8938 if (CheckHasBitForRepeated(cached_has_bits, 0x00000004U)) {
8939 _impl_.reduced_cost_.Clear();
8940 }
8941 if (CheckHasBitForRepeated(cached_has_bits, 0x00000008U)) {
8942 _impl_.additional_solutions_.Clear();
8943 }
8944 if (CheckHasBit(cached_has_bits, 0x00000010U)) {
8945 _impl_.status_str_.ClearNonDefaultToEmpty();
8946 }
8947 if (CheckHasBit(cached_has_bits, 0x00000020U)) {
8948 _impl_.solver_specific_info_.ClearNonDefaultToEmpty();
8949 }
8950 if (CheckHasBit(cached_has_bits, 0x00000040U)) {
8951 ABSL_DCHECK(_impl_.solve_info_ != nullptr);
8952 _impl_.solve_info_->Clear();
8953 }
8954 }
8955 _impl_.objective_value_ = 0;
8956 if (BatchCheckHasBit(cached_has_bits, 0x00000300U)) {
8957 _impl_.best_objective_bound_ = 0;
8958 _impl_.status_ = 99;
8959 }
8960 _impl_._has_bits_.Clear();
8961 _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>();
8962}
8963
8964#if defined(PROTOBUF_CUSTOM_VTABLE)
8965::uint8_t* PROTOBUF_NONNULL MPSolutionResponse::_InternalSerialize(
8966 const ::google::protobuf::MessageLite& base, ::uint8_t* PROTOBUF_NONNULL target,
8967 ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) {
8968 const MPSolutionResponse& this_ = static_cast<const MPSolutionResponse&>(base);
8969#else // PROTOBUF_CUSTOM_VTABLE
8970::uint8_t* PROTOBUF_NONNULL MPSolutionResponse::_InternalSerialize(
8971 ::uint8_t* PROTOBUF_NONNULL target,
8972 ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const {
8973 const MPSolutionResponse& this_ = *this;
8974#endif // PROTOBUF_CUSTOM_VTABLE
8975 if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) {
8976 this_.CheckHasBitConsistency();
8977 }
8978 // @@protoc_insertion_point(serialize_to_array_start:operations_research.MPSolutionResponse)
8979 ::uint32_t cached_has_bits = 0;
8980 (void)cached_has_bits;
8981
8982 cached_has_bits = this_._impl_._has_bits_[0];
8983 // optional .operations_research.MPSolverResponseStatus status = 1 [default = MPSOLVER_UNKNOWN_STATUS];
8984 if (CheckHasBit(cached_has_bits, 0x00000200U)) {
8985 target = stream->EnsureSpace(target);
8986 target = ::_pbi::WireFormatLite::WriteEnumToArray(
8987 1, this_._internal_status(), target);
8988 }
8989
8990 // optional double objective_value = 2;
8991 if (CheckHasBit(cached_has_bits, 0x00000080U)) {
8992 target = stream->EnsureSpace(target);
8993 target = ::_pbi::WireFormatLite::WriteDoubleToArray(
8994 2, this_._internal_objective_value(), target);
8995 }
8996
8997 // repeated double variable_value = 3 [packed = true];
8998 if (CheckHasBitForRepeated(cached_has_bits, 0x00000001U)) {
8999 if (this_._internal_variable_value_size() > 0) {
9000 target = stream->WriteFixedPacked(3, this_._internal_variable_value(), target);
9001 }
9002 }
9003
9004 // repeated double dual_value = 4 [packed = true];
9005 if (CheckHasBitForRepeated(cached_has_bits, 0x00000002U)) {
9006 if (this_._internal_dual_value_size() > 0) {
9007 target = stream->WriteFixedPacked(4, this_._internal_dual_value(), target);
9008 }
9009 }
9010
9011 // optional double best_objective_bound = 5;
9012 if (CheckHasBit(cached_has_bits, 0x00000100U)) {
9013 target = stream->EnsureSpace(target);
9014 target = ::_pbi::WireFormatLite::WriteDoubleToArray(
9015 5, this_._internal_best_objective_bound(), target);
9016 }
9017
9018 // repeated double reduced_cost = 6 [packed = true];
9019 if (CheckHasBitForRepeated(cached_has_bits, 0x00000004U)) {
9020 if (this_._internal_reduced_cost_size() > 0) {
9021 target = stream->WriteFixedPacked(6, this_._internal_reduced_cost(), target);
9022 }
9023 }
9024
9025 // optional string status_str = 7;
9026 if (CheckHasBit(cached_has_bits, 0x00000010U)) {
9027 const ::std::string& _s = this_._internal_status_str();
9028 target = stream->WriteStringMaybeAliased(7, _s, target);
9029 }
9030
9031 // repeated .operations_research.MPSolution additional_solutions = 8;
9032 if (CheckHasBitForRepeated(cached_has_bits, 0x00000008U)) {
9033 for (unsigned i = 0, n = static_cast<unsigned>(
9034 this_._internal_additional_solutions_size());
9035 i < n; i++) {
9036 const auto& repfield = this_._internal_additional_solutions().Get(i);
9037 target =
9038 ::google::protobuf::internal::WireFormatLite::InternalWriteMessage(
9039 8, repfield, repfield.GetCachedSize(),
9040 target, stream);
9041 }
9042 }
9043
9044 // optional .operations_research.MPSolveInfo solve_info = 10;
9045 if (CheckHasBit(cached_has_bits, 0x00000040U)) {
9046 target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage(
9047 10, *this_._impl_.solve_info_, this_._impl_.solve_info_->GetCachedSize(), target,
9048 stream);
9049 }
9050
9051 // optional bytes solver_specific_info = 11;
9052 if (CheckHasBit(cached_has_bits, 0x00000020U)) {
9053 const ::std::string& _s = this_._internal_solver_specific_info();
9054 target = stream->WriteBytesMaybeAliased(11, _s, target);
9055 }
9056
9057 if (ABSL_PREDICT_FALSE(this_._internal_metadata_.have_unknown_fields())) {
9058 target =
9059 ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray(
9060 this_._internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream);
9061 }
9062 // @@protoc_insertion_point(serialize_to_array_end:operations_research.MPSolutionResponse)
9063 return target;
9064}
9065
9066#if defined(PROTOBUF_CUSTOM_VTABLE)
9067::size_t MPSolutionResponse::ByteSizeLong(const MessageLite& base) {
9068 const MPSolutionResponse& this_ = static_cast<const MPSolutionResponse&>(base);
9069#else // PROTOBUF_CUSTOM_VTABLE
9070::size_t MPSolutionResponse::ByteSizeLong() const {
9071 const MPSolutionResponse& this_ = *this;
9072#endif // PROTOBUF_CUSTOM_VTABLE
9073 // @@protoc_insertion_point(message_byte_size_start:operations_research.MPSolutionResponse)
9074 ::size_t total_size = 0;
9075
9076 ::uint32_t cached_has_bits = 0;
9077 // Prevent compiler warnings about cached_has_bits being unused
9078 (void)cached_has_bits;
9079
9080 ::_pbi::Prefetch5LinesFrom7Lines(&this_);
9081 cached_has_bits = this_._impl_._has_bits_[0];
9082 total_size += ::absl::popcount(0x00000180U & cached_has_bits) * 9;
9083 if (BatchCheckHasBit(cached_has_bits, 0x0000007fU)) {
9084 // repeated double variable_value = 3 [packed = true];
9085 if (CheckHasBitForRepeated(cached_has_bits, 0x00000001U)) {
9086 ::size_t data_size = ::size_t{8} *
9087 ::_pbi::FromIntSize(this_._internal_variable_value_size());
9088 ::size_t tag_size = data_size == 0
9089 ? 0
9090 : 1 + ::_pbi::WireFormatLite::Int32Size(
9091 static_cast<::int32_t>(data_size));
9092 total_size += tag_size + data_size;
9093 }
9094 // repeated double dual_value = 4 [packed = true];
9095 if (CheckHasBitForRepeated(cached_has_bits, 0x00000002U)) {
9096 ::size_t data_size = ::size_t{8} *
9097 ::_pbi::FromIntSize(this_._internal_dual_value_size());
9098 ::size_t tag_size = data_size == 0
9099 ? 0
9100 : 1 + ::_pbi::WireFormatLite::Int32Size(
9101 static_cast<::int32_t>(data_size));
9102 total_size += tag_size + data_size;
9103 }
9104 // repeated double reduced_cost = 6 [packed = true];
9105 if (CheckHasBitForRepeated(cached_has_bits, 0x00000004U)) {
9106 ::size_t data_size = ::size_t{8} *
9107 ::_pbi::FromIntSize(this_._internal_reduced_cost_size());
9108 ::size_t tag_size = data_size == 0
9109 ? 0
9110 : 1 + ::_pbi::WireFormatLite::Int32Size(
9111 static_cast<::int32_t>(data_size));
9112 total_size += tag_size + data_size;
9113 }
9114 // repeated .operations_research.MPSolution additional_solutions = 8;
9115 if (CheckHasBitForRepeated(cached_has_bits, 0x00000008U)) {
9116 total_size += 1UL * this_._internal_additional_solutions_size();
9117 for (const auto& msg : this_._internal_additional_solutions()) {
9118 total_size += ::google::protobuf::internal::WireFormatLite::MessageSize(msg);
9119 }
9120 }
9121 // optional string status_str = 7;
9122 if (CheckHasBit(cached_has_bits, 0x00000010U)) {
9123 total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize(
9124 this_._internal_status_str());
9125 }
9126 // optional bytes solver_specific_info = 11;
9127 if (CheckHasBit(cached_has_bits, 0x00000020U)) {
9128 total_size += 1 + ::google::protobuf::internal::WireFormatLite::BytesSize(
9129 this_._internal_solver_specific_info());
9130 }
9131 // optional .operations_research.MPSolveInfo solve_info = 10;
9132 if (CheckHasBit(cached_has_bits, 0x00000040U)) {
9133 total_size += 1 +
9134 ::google::protobuf::internal::WireFormatLite::MessageSize(*this_._impl_.solve_info_);
9135 }
9136 }
9137 {
9138 // optional .operations_research.MPSolverResponseStatus status = 1 [default = MPSOLVER_UNKNOWN_STATUS];
9139 if (CheckHasBit(cached_has_bits, 0x00000200U)) {
9140 total_size += 1 +
9141 ::_pbi::WireFormatLite::EnumSize(this_._internal_status());
9142 }
9143 }
9144 return this_.MaybeComputeUnknownFieldsSize(total_size,
9145 &this_._impl_._cached_size_);
9146}
9147
9148void MPSolutionResponse::MergeImpl(::google::protobuf::MessageLite& to_msg,
9149 const ::google::protobuf::MessageLite& from_msg) {
9150 auto* const _this =
9151 static_cast<MPSolutionResponse*>(&to_msg);
9152 auto& from = static_cast<const MPSolutionResponse&>(from_msg);
9153 if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) {
9154 from.CheckHasBitConsistency();
9155 }
9156 ::google::protobuf::Arena* arena = _this->GetArena();
9157 // @@protoc_insertion_point(class_specific_merge_from_start:operations_research.MPSolutionResponse)
9158 ABSL_DCHECK_NE(&from, _this);
9159 ::uint32_t cached_has_bits = 0;
9160 (void)cached_has_bits;
9161
9162 cached_has_bits = from._impl_._has_bits_[0];
9163 if (BatchCheckHasBit(cached_has_bits, 0x000000ffU)) {
9164 if (CheckHasBitForRepeated(cached_has_bits, 0x00000001U)) {
9165 _this->_internal_mutable_variable_value()->MergeFrom(from._internal_variable_value());
9166 }
9167 if (CheckHasBitForRepeated(cached_has_bits, 0x00000002U)) {
9168 _this->_internal_mutable_dual_value()->MergeFrom(from._internal_dual_value());
9169 }
9170 if (CheckHasBitForRepeated(cached_has_bits, 0x00000004U)) {
9171 _this->_internal_mutable_reduced_cost()->MergeFrom(from._internal_reduced_cost());
9172 }
9173 if (CheckHasBitForRepeated(cached_has_bits, 0x00000008U)) {
9174 _this->_internal_mutable_additional_solutions()->InternalMergeFromWithArena(
9175 ::google::protobuf::MessageLite::internal_visibility(), arena,
9176 from._internal_additional_solutions());
9177 }
9178 if (CheckHasBit(cached_has_bits, 0x00000010U)) {
9179 _this->_internal_set_status_str(from._internal_status_str());
9180 }
9181 if (CheckHasBit(cached_has_bits, 0x00000020U)) {
9182 _this->_internal_set_solver_specific_info(from._internal_solver_specific_info());
9183 }
9184 if (CheckHasBit(cached_has_bits, 0x00000040U)) {
9185 ABSL_DCHECK(from._impl_.solve_info_ != nullptr);
9186 if (_this->_impl_.solve_info_ == nullptr) {
9187 _this->_impl_.solve_info_ = ::google::protobuf::Message::CopyConstruct(arena, *from._impl_.solve_info_);
9188 } else {
9189 _this->_impl_.solve_info_->MergeFrom(*from._impl_.solve_info_);
9190 }
9191 }
9192 if (CheckHasBit(cached_has_bits, 0x00000080U)) {
9193 _this->_impl_.objective_value_ = from._impl_.objective_value_;
9194 }
9195 }
9196 if (BatchCheckHasBit(cached_has_bits, 0x00000300U)) {
9197 if (CheckHasBit(cached_has_bits, 0x00000100U)) {
9198 _this->_impl_.best_objective_bound_ = from._impl_.best_objective_bound_;
9199 }
9200 if (CheckHasBit(cached_has_bits, 0x00000200U)) {
9201 _this->_impl_.status_ = from._impl_.status_;
9202 }
9203 }
9204 _this->_impl_._has_bits_[0] |= cached_has_bits;
9205 _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(
9206 from._internal_metadata_);
9207}
9208
9210 // @@protoc_insertion_point(class_specific_copy_from_start:operations_research.MPSolutionResponse)
9211 if (&from == this) return;
9212 Clear();
9213 MergeFrom(from);
9214}
9215
9216
9217void MPSolutionResponse::InternalSwap(MPSolutionResponse* PROTOBUF_RESTRICT PROTOBUF_NONNULL other) {
9218 using ::std::swap;
9219 auto* arena = GetArena();
9220 ABSL_DCHECK_EQ(arena, other->GetArena());
9221 _internal_metadata_.InternalSwap(&other->_internal_metadata_);
9222 swap(_impl_._has_bits_[0], other->_impl_._has_bits_[0]);
9223 _impl_.variable_value_.InternalSwap(&other->_impl_.variable_value_);
9224 _impl_.dual_value_.InternalSwap(&other->_impl_.dual_value_);
9225 _impl_.reduced_cost_.InternalSwap(&other->_impl_.reduced_cost_);
9226 _impl_.additional_solutions_.InternalSwap(&other->_impl_.additional_solutions_);
9227 ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.status_str_, &other->_impl_.status_str_, arena);
9228 ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.solver_specific_info_, &other->_impl_.solver_specific_info_, arena);
9229 ::google::protobuf::internal::memswap<
9230 PROTOBUF_FIELD_OFFSET(MPSolutionResponse, _impl_.status_)
9232 - PROTOBUF_FIELD_OFFSET(MPSolutionResponse, _impl_.solve_info_)>(
9233 reinterpret_cast<char*>(&_impl_.solve_info_),
9234 reinterpret_cast<char*>(&other->_impl_.solve_info_));
9235}
9236
9237::google::protobuf::Metadata MPSolutionResponse::GetMetadata() const {
9238 return ::google::protobuf::Message::GetMetadataImpl(GetClassData()->full());
9239}
9240// @@protoc_insertion_point(namespace_scope)
9241} // namespace operations_research
9242namespace google {
9243namespace protobuf {
9244} // namespace protobuf
9245} // namespace google
9246// @@protoc_insertion_point(global_scope)
9247PROTOBUF_ATTRIBUTE_INIT_PRIORITY2 static ::std::false_type
9248 _static_init2_ [[maybe_unused]] =
9250 ::std::false_type{});
9251#include "google/protobuf/port_undef.inc"
static PROTOBUF_ATTRIBUTE_INIT_PRIORITY2 ::std::false_type _static_init2_
static const ::_pb::Message *PROTOBUF_NONNULL const file_default_instances[]
static constexpr auto InternalGenerateClassData_()
friend class ::google::protobuf::MessageLite
void CopyFrom(const MPAbsConstraint &from)
::google::protobuf::Metadata GetMetadata() const
ABSL_ATTRIBUTE_REINITIALIZES void Clear() PROTOBUF_FINAL
friend void swap(MPAbsConstraint &a, MPAbsConstraint &b)
::uint8_t *PROTOBUF_NONNULL _InternalSerialize(::uint8_t *PROTOBUF_NONNULL target, ::google::protobuf::io::EpsCopyOutputStream *PROTOBUF_NONNULL stream) const final
void MergeFrom(const MPAbsConstraint &from)
friend class ::google::protobuf::MessageLite
void MergeFrom(const MPArrayConstraint &from)
ABSL_ATTRIBUTE_REINITIALIZES void Clear() PROTOBUF_FINAL
static constexpr auto InternalGenerateClassData_()
::uint8_t *PROTOBUF_NONNULL _InternalSerialize(::uint8_t *PROTOBUF_NONNULL target, ::google::protobuf::io::EpsCopyOutputStream *PROTOBUF_NONNULL stream) const final
::google::protobuf::Metadata GetMetadata() const
void CopyFrom(const MPArrayConstraint &from)
friend void swap(MPArrayConstraint &a, MPArrayConstraint &b)
ABSL_ATTRIBUTE_REINITIALIZES void Clear() PROTOBUF_FINAL
void MergeFrom(const MPArrayWithConstantConstraint &from)
::uint8_t *PROTOBUF_NONNULL _InternalSerialize(::uint8_t *PROTOBUF_NONNULL target, ::google::protobuf::io::EpsCopyOutputStream *PROTOBUF_NONNULL stream) const final
void CopyFrom(const MPArrayWithConstantConstraint &from)
::google::protobuf::Metadata GetMetadata() const
friend void swap(MPArrayWithConstantConstraint &a, MPArrayWithConstantConstraint &b)
decltype(::std::declval< MPConstraintProto >()._impl_._has_bits_) HasBits
ABSL_ATTRIBUTE_REINITIALIZES void Clear() PROTOBUF_FINAL
friend class ::google::protobuf::MessageLite
static constexpr auto InternalGenerateClassData_()
void MergeFrom(const MPConstraintProto &from)
void CopyFrom(const MPConstraintProto &from)
const ::google::protobuf::UnknownFieldSet & unknown_fields() const ABSL_ATTRIBUTE_LIFETIME_BOUND
friend void swap(MPConstraintProto &a, MPConstraintProto &b)
::google::protobuf::Metadata GetMetadata() const
::uint8_t *PROTOBUF_NONNULL _InternalSerialize(::uint8_t *PROTOBUF_NONNULL target, ::google::protobuf::io::EpsCopyOutputStream *PROTOBUF_NONNULL stream) const final
friend class ::google::protobuf::MessageLite
void set_allocated_abs_constraint(::operations_research::MPAbsConstraint *PROTOBUF_NULLABLE value)
void set_allocated_indicator_constraint(::operations_research::MPIndicatorConstraint *PROTOBUF_NULLABLE value)
void set_allocated_or_constraint(::operations_research::MPArrayConstraint *PROTOBUF_NULLABLE value)
GeneralConstraintCase general_constraint_case() const
void MergeFrom(const MPGeneralConstraintProto &from)
void set_allocated_sos_constraint(::operations_research::MPSosConstraint *PROTOBUF_NULLABLE value)
const ::operations_research::MPAbsConstraint & abs_constraint() const
void set_allocated_min_constraint(::operations_research::MPArrayWithConstantConstraint *PROTOBUF_NULLABLE value)
void set_allocated_and_constraint(::operations_research::MPArrayConstraint *PROTOBUF_NULLABLE value)
const ::operations_research::MPArrayWithConstantConstraint & max_constraint() const
friend void swap(MPGeneralConstraintProto &a, MPGeneralConstraintProto &b)
const ::operations_research::MPIndicatorConstraint & indicator_constraint() const
void set_allocated_quadratic_constraint(::operations_research::MPQuadraticConstraint *PROTOBUF_NULLABLE value)
ABSL_ATTRIBUTE_REINITIALIZES void Clear() PROTOBUF_FINAL
const ::operations_research::MPArrayConstraint & and_constraint() const
::google::protobuf::Metadata GetMetadata() const
const ::operations_research::MPArrayWithConstantConstraint & min_constraint() const
const ::operations_research::MPArrayConstraint & or_constraint() const
void set_allocated_max_constraint(::operations_research::MPArrayWithConstantConstraint *PROTOBUF_NULLABLE value)
const ::google::protobuf::UnknownFieldSet & unknown_fields() const ABSL_ATTRIBUTE_LIFETIME_BOUND
const ::operations_research::MPQuadraticConstraint & quadratic_constraint() const
::uint8_t *PROTOBUF_NONNULL _InternalSerialize(::uint8_t *PROTOBUF_NONNULL target, ::google::protobuf::io::EpsCopyOutputStream *PROTOBUF_NONNULL stream) const final
void CopyFrom(const MPGeneralConstraintProto &from)
const ::operations_research::MPSosConstraint & sos_constraint() const
friend class ::google::protobuf::MessageLite
::uint8_t *PROTOBUF_NONNULL _InternalSerialize(::uint8_t *PROTOBUF_NONNULL target, ::google::protobuf::io::EpsCopyOutputStream *PROTOBUF_NONNULL stream) const final
void MergeFrom(const MPIndicatorConstraint &from)
void CopyFrom(const MPIndicatorConstraint &from)
ABSL_ATTRIBUTE_REINITIALIZES void Clear() PROTOBUF_FINAL
::google::protobuf::Metadata GetMetadata() const
ABSL_ATTRIBUTE_REINITIALIZES void Clear() PROTOBUF_FINAL
friend class ::google::protobuf::MessageLite
friend void swap(MPModelDeltaProto &a, MPModelDeltaProto &b)
void MergeFrom(const MPModelDeltaProto &from)
static constexpr auto InternalGenerateClassData_()
void CopyFrom(const MPModelDeltaProto &from)
::uint8_t *PROTOBUF_NONNULL _InternalSerialize(::uint8_t *PROTOBUF_NONNULL target, ::google::protobuf::io::EpsCopyOutputStream *PROTOBUF_NONNULL stream) const final
::google::protobuf::Metadata GetMetadata() const
friend void swap(MPModelProto_Annotation &a, MPModelProto_Annotation &b)
friend class ::google::protobuf::MessageLite
void CopyFrom(const MPModelProto_Annotation &from)
::uint8_t *PROTOBUF_NONNULL _InternalSerialize(::uint8_t *PROTOBUF_NONNULL target, ::google::protobuf::io::EpsCopyOutputStream *PROTOBUF_NONNULL stream) const final
ABSL_ATTRIBUTE_REINITIALIZES void Clear() PROTOBUF_FINAL
void MergeFrom(const MPModelProto_Annotation &from)
::google::protobuf::Metadata GetMetadata() const
friend class ::google::protobuf::MessageLite
void MergeFrom(const MPModelProto &from)
void CopyFrom(const MPModelProto &from)
::google::protobuf::Metadata GetMetadata() const
friend void swap(MPModelProto &a, MPModelProto &b)
static constexpr auto InternalGenerateClassData_()
ABSL_ATTRIBUTE_REINITIALIZES void Clear() PROTOBUF_FINAL
::uint8_t *PROTOBUF_NONNULL _InternalSerialize(::uint8_t *PROTOBUF_NONNULL target, ::google::protobuf::io::EpsCopyOutputStream *PROTOBUF_NONNULL stream) const final
friend class ::google::protobuf::Arena
friend class ::google::protobuf::MessageLite
void MergeFrom(const MPModelRequest &from)
void CopyFrom(const MPModelRequest &from)
static constexpr auto InternalGenerateClassData_()
::google::protobuf::Metadata GetMetadata() const
::uint8_t *PROTOBUF_NONNULL _InternalSerialize(::uint8_t *PROTOBUF_NONNULL target, ::google::protobuf::io::EpsCopyOutputStream *PROTOBUF_NONNULL stream) const final
ABSL_ATTRIBUTE_REINITIALIZES void Clear() PROTOBUF_FINAL
friend void swap(MPModelRequest &a, MPModelRequest &b)
friend class ::google::protobuf::Arena
friend class ::google::protobuf::MessageLite
ABSL_ATTRIBUTE_REINITIALIZES void Clear() PROTOBUF_FINAL
void MergeFrom(const MPQuadraticConstraint &from)
::uint8_t *PROTOBUF_NONNULL _InternalSerialize(::uint8_t *PROTOBUF_NONNULL target, ::google::protobuf::io::EpsCopyOutputStream *PROTOBUF_NONNULL stream) const final
::google::protobuf::Metadata GetMetadata() const
void CopyFrom(const MPQuadraticConstraint &from)
friend class ::google::protobuf::MessageLite
ABSL_ATTRIBUTE_REINITIALIZES void Clear() PROTOBUF_FINAL
::google::protobuf::Metadata GetMetadata() const
void MergeFrom(const MPQuadraticObjective &from)
::uint8_t *PROTOBUF_NONNULL _InternalSerialize(::uint8_t *PROTOBUF_NONNULL target, ::google::protobuf::io::EpsCopyOutputStream *PROTOBUF_NONNULL stream) const final
void CopyFrom(const MPQuadraticObjective &from)
friend void swap(MPQuadraticObjective &a, MPQuadraticObjective &b)
void MergeFrom(const MPSolutionResponse &from)
friend class ::google::protobuf::MessageLite
void CopyFrom(const MPSolutionResponse &from)
ABSL_ATTRIBUTE_REINITIALIZES void Clear() PROTOBUF_FINAL
friend void swap(MPSolutionResponse &a, MPSolutionResponse &b)
::google::protobuf::Metadata GetMetadata() const
::uint8_t *PROTOBUF_NONNULL _InternalSerialize(::uint8_t *PROTOBUF_NONNULL target, ::google::protobuf::io::EpsCopyOutputStream *PROTOBUF_NONNULL stream) const final
static constexpr auto InternalGenerateClassData_()
friend class ::google::protobuf::Arena
friend class ::google::protobuf::MessageLite
::uint8_t *PROTOBUF_NONNULL _InternalSerialize(::uint8_t *PROTOBUF_NONNULL target, ::google::protobuf::io::EpsCopyOutputStream *PROTOBUF_NONNULL stream) const final
ABSL_ATTRIBUTE_REINITIALIZES void Clear() PROTOBUF_FINAL
static constexpr auto InternalGenerateClassData_()
void CopyFrom(const MPSolution &from)
const ::google::protobuf::UnknownFieldSet & unknown_fields() const ABSL_ATTRIBUTE_LIFETIME_BOUND
::size_t ByteSizeLong() const final
::google::protobuf::Metadata GetMetadata() const
void MergeFrom(const MPSolution &from)
friend class ::google::protobuf::MessageLite
friend void swap(MPSolveInfo &a, MPSolveInfo &b)
const ::google::protobuf::UnknownFieldSet & unknown_fields() const ABSL_ATTRIBUTE_LIFETIME_BOUND
::google::protobuf::Metadata GetMetadata() const
static constexpr auto InternalGenerateClassData_()
::uint8_t *PROTOBUF_NONNULL _InternalSerialize(::uint8_t *PROTOBUF_NONNULL target, ::google::protobuf::io::EpsCopyOutputStream *PROTOBUF_NONNULL stream) const final
void CopyFrom(const MPSolveInfo &from)
ABSL_ATTRIBUTE_REINITIALIZES void Clear() PROTOBUF_FINAL
void MergeFrom(const MPSolveInfo &from)
friend class ::google::protobuf::MessageLite
friend void swap(MPSolverCommonParameters &a, MPSolverCommonParameters &b)
void CopyFrom(const MPSolverCommonParameters &from)
ABSL_ATTRIBUTE_REINITIALIZES void Clear() PROTOBUF_FINAL
void MergeFrom(const MPSolverCommonParameters &from)
::google::protobuf::Metadata GetMetadata() const
::uint8_t *PROTOBUF_NONNULL _InternalSerialize(::uint8_t *PROTOBUF_NONNULL target, ::google::protobuf::io::EpsCopyOutputStream *PROTOBUF_NONNULL stream) const final
friend class ::google::protobuf::MessageLite
void CopyFrom(const MPSosConstraint &from)
void MergeFrom(const MPSosConstraint &from)
::google::protobuf::Metadata GetMetadata() const
ABSL_ATTRIBUTE_REINITIALIZES void Clear() PROTOBUF_FINAL
static constexpr auto InternalGenerateClassData_()
::uint8_t *PROTOBUF_NONNULL _InternalSerialize(::uint8_t *PROTOBUF_NONNULL target, ::google::protobuf::io::EpsCopyOutputStream *PROTOBUF_NONNULL stream) const final
decltype(::std::declval< MPVariableProto >()._impl_._has_bits_) HasBits
friend class ::google::protobuf::MessageLite
void CopyFrom(const MPVariableProto &from)
::google::protobuf::Metadata GetMetadata() const
void MergeFrom(const MPVariableProto &from)
ABSL_ATTRIBUTE_REINITIALIZES void Clear() PROTOBUF_FINAL
static constexpr auto InternalGenerateClassData_()
::uint8_t *PROTOBUF_NONNULL _InternalSerialize(::uint8_t *PROTOBUF_NONNULL target, ::google::protobuf::io::EpsCopyOutputStream *PROTOBUF_NONNULL stream) const final
friend void swap(MPVariableProto &a, MPVariableProto &b)
const ::google::protobuf::UnknownFieldSet & unknown_fields() const ABSL_ATTRIBUTE_LIFETIME_BOUND
static constexpr auto InternalGenerateClassData_()
friend class ::google::protobuf::MessageLite
void CopyFrom(const OptionalDouble &from)
void MergeFrom(const OptionalDouble &from)
friend void swap(OptionalDouble &a, OptionalDouble &b)
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
::google::protobuf::Metadata GetMetadata() const
const ::google::protobuf::UnknownFieldSet & unknown_fields() const ABSL_ATTRIBUTE_LIFETIME_BOUND
friend class ::google::protobuf::MessageLite
::uint8_t *PROTOBUF_NONNULL _InternalSerialize(::uint8_t *PROTOBUF_NONNULL target, ::google::protobuf::io::EpsCopyOutputStream *PROTOBUF_NONNULL stream) const final
void CopyFrom(const PartialVariableAssignment &from)
::google::protobuf::Metadata GetMetadata() const
void MergeFrom(const PartialVariableAssignment &from)
friend void swap(PartialVariableAssignment &a, PartialVariableAssignment &b)
ABSL_ATTRIBUTE_REINITIALIZES void Clear() PROTOBUF_FINAL
void MergeFrom(const PartialVariableAssignment &from)
static constexpr ::_pbi::MigrationSchema *PROTOBUF_NULLABLE schemas
static const ::_pbi::DescriptorTable *PROTOBUF_NONNULL const descriptor_table_ortools_2flinear_5fsolver_2flinear_5fsolver_2eproto_deps[1]
const ::uint32_t TableStruct_ortools_2flinear_5fsolver_2flinear_5fsolver_2eproto::offsets[] ABSL_ATTRIBUTE_SECTION_VARIABLE(protodesc_cold)
PROTOBUF_CONSTINITconst ::_pbi::DescriptorTable descriptor_table_ortools_2flinear_5fsolver_2flinear_5fsolver_2eproto
::absl::once_flag descriptor_table_ortools_2flinear_5fsolver_2flinear_5fsolver_2eproto_once
static constexprconst ::_pb::ServiceDescriptor *PROTOBUF_NONNULL *PROTOBUF_NULLABLE file_level_service_descriptors_ortools_2flinear_5fsolver_2flinear_5fsolver_2eproto
static const ::_pb::EnumDescriptor *PROTOBUF_NONNULL file_level_enum_descriptors_ortools_2flinear_5fsolver_2flinear_5fsolver_2eproto[5]
PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 const::google::protobuf::internal::ClassDataFull PartialVariableAssignment_class_data_
OR-Tools root namespace.
PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT OR_PROTO_DLL PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 MPQuadraticObjectiveDefaultTypeInternal _MPQuadraticObjective_default_instance_
PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT OR_PROTO_DLL PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 MPModelProto_AnnotationDefaultTypeInternal _MPModelProto_Annotation_default_instance_
PROTOBUF_CONSTINIT const uint32_t MPModelProto_Annotation_TargetType_internal_data_[]
PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 const::google::protobuf::internal::ClassDataFull OptionalDouble_class_data_
PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT OR_PROTO_DLL PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 MPArrayWithConstantConstraintDefaultTypeInternal _MPArrayWithConstantConstraint_default_instance_
PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT OR_PROTO_DLL PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 MPArrayConstraintDefaultTypeInternal _MPArrayConstraint_default_instance_
PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 const::google::protobuf::internal::ClassDataFull MPModelProto_Annotation_class_data_
PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 const::google::protobuf::internal::ClassDataFull MPModelRequest_class_data_
PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT OR_PROTO_DLL PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 MPGeneralConstraintProtoDefaultTypeInternal _MPGeneralConstraintProto_default_instance_
const ::google::protobuf::EnumDescriptor *PROTOBUF_NONNULL MPModelProto_Annotation_TargetType_descriptor()
PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 const::google::protobuf::internal::ClassDataFull MPConstraintProto_class_data_
PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 const::google::protobuf::internal::ClassDataFull MPAbsConstraint_class_data_
PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 const::google::protobuf::internal::ClassDataFull MPQuadraticConstraint_class_data_
PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT OR_PROTO_DLL PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 MPSolutionResponseDefaultTypeInternal _MPSolutionResponse_default_instance_
PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT OR_PROTO_DLL PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 MPVariableProtoDefaultTypeInternal _MPVariableProto_default_instance_
PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT OR_PROTO_DLL PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 MPAbsConstraintDefaultTypeInternal _MPAbsConstraint_default_instance_
PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT OR_PROTO_DLL PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 MPModelDeltaProto_ConstraintOverridesEntry_DoNotUseDefaultTypeInternal _MPModelDeltaProto_ConstraintOverridesEntry_DoNotUse_default_instance_
PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT OR_PROTO_DLL PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 MPSolutionDefaultTypeInternal _MPSolution_default_instance_
PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 const::google::protobuf::internal::ClassDataFull MPVariableProto_class_data_
PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 const::google::protobuf::internal::ClassDataFull MPGeneralConstraintProto_class_data_
PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT OR_PROTO_DLL PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 MPModelDeltaProto_VariableOverridesEntry_DoNotUseDefaultTypeInternal _MPModelDeltaProto_VariableOverridesEntry_DoNotUse_default_instance_
PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT OR_PROTO_DLL PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 MPSosConstraintDefaultTypeInternal _MPSosConstraint_default_instance_
PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 const::google::protobuf::internal::ClassDataFull MPSolveInfo_class_data_
PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 const::google::protobuf::internal::ClassDataFull MPSolverCommonParameters_class_data_
PROTOBUF_CONSTINIT const uint32_t MPModelRequest_SolverType_internal_data_[]
PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 const::google::protobuf::internal::ClassDataFull MPSolutionResponse_class_data_
PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 const::google::protobuf::internal::ClassDataFull MPModelDeltaProto_VariableOverridesEntry_DoNotUse_class_data_
PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT OR_PROTO_DLL PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 MPConstraintProtoDefaultTypeInternal _MPConstraintProto_default_instance_
PROTOBUF_CONSTINIT const uint32_t OptionalBoolean_internal_data_[]
PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 const::google::protobuf::internal::ClassDataFull MPModelProto_class_data_
const ::google::protobuf::EnumDescriptor *PROTOBUF_NONNULL MPSolverResponseStatus_descriptor()
PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT OR_PROTO_DLL PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 PartialVariableAssignmentDefaultTypeInternal _PartialVariableAssignment_default_instance_
PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 const::google::protobuf::internal::ClassDataFull MPSosConstraint_class_data_
const ::google::protobuf::EnumDescriptor *PROTOBUF_NONNULL MPModelRequest_SolverType_descriptor()
PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT OR_PROTO_DLL PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 MPIndicatorConstraintDefaultTypeInternal _MPIndicatorConstraint_default_instance_
PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT OR_PROTO_DLL PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 OptionalDoubleDefaultTypeInternal _OptionalDouble_default_instance_
PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 const::google::protobuf::internal::ClassDataFull MPArrayWithConstantConstraint_class_data_
PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT OR_PROTO_DLL PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 MPModelRequestDefaultTypeInternal _MPModelRequest_default_instance_
PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 const::google::protobuf::internal::ClassDataFull MPQuadraticObjective_class_data_
PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT OR_PROTO_DLL PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 MPQuadraticConstraintDefaultTypeInternal _MPQuadraticConstraint_default_instance_
PROTOBUF_CONSTINIT const uint32_t MPSolverResponseStatus_internal_data_[]
const ::google::protobuf::EnumDescriptor *PROTOBUF_NONNULL MPSosConstraint_Type_descriptor()
PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT OR_PROTO_DLL PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 MPSolverCommonParametersDefaultTypeInternal _MPSolverCommonParameters_default_instance_
PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT OR_PROTO_DLL PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 MPModelProtoDefaultTypeInternal _MPModelProto_default_instance_
PROTOBUF_CONSTINIT const uint32_t MPSosConstraint_Type_internal_data_[]
PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 const::google::protobuf::internal::ClassDataFull MPArrayConstraint_class_data_
const ::google::protobuf::EnumDescriptor *PROTOBUF_NONNULL MPSolverCommonParameters_LPAlgorithmValues_descriptor()
PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 const::google::protobuf::internal::ClassDataFull PartialVariableAssignment_class_data_
PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT OR_PROTO_DLL PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 MPSolveInfoDefaultTypeInternal _MPSolveInfo_default_instance_
PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 const::google::protobuf::internal::ClassDataFull MPModelDeltaProto_class_data_
PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT OR_PROTO_DLL PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 MPModelDeltaProtoDefaultTypeInternal _MPModelDeltaProto_default_instance_
PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 const::google::protobuf::internal::ClassDataFull MPIndicatorConstraint_class_data_
PROTOBUF_CONSTINIT const uint32_t MPSolverCommonParameters_LPAlgorithmValues_internal_data_[]
PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 const::google::protobuf::internal::ClassDataFull MPSolution_class_data_
PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 const::google::protobuf::internal::ClassDataFull MPModelDeltaProto_ConstraintOverridesEntry_DoNotUse_class_data_
PROTOBUF_CONSTINITconst ::_pbi::DescriptorTable descriptor_table_ortools_2futil_2foptional_5fboolean_2eproto