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