Google OR-Tools v9.15
a fast and portable software suite for combinatorial optimization
Loading...
Searching...
No Matches
model.pb.cc
Go to the documentation of this file.
1// Generated by the protocol buffer compiler. DO NOT EDIT!
2// NO CHECKED-IN PROTOBUF GENCODE
3// source: ortools/math_opt/model.proto
4// Protobuf C++ Version: 6.33.1
5
7
8#include <algorithm>
9#include <type_traits>
10#include "google/protobuf/io/coded_stream.h"
11#include "google/protobuf/generated_message_tctable_impl.h"
12#include "google/protobuf/extension_set.h"
13#include "google/protobuf/generated_message_util.h"
14#include "google/protobuf/wire_format_lite.h"
15#include "google/protobuf/descriptor.h"
16#include "google/protobuf/generated_message_reflection.h"
17#include "google/protobuf/reflection_ops.h"
18#include "google/protobuf/wire_format.h"
19// @@protoc_insertion_point(includes)
20
21// Must be included last.
22#include "google/protobuf/port_def.inc"
23PROTOBUF_PRAGMA_INIT_SEG
24namespace _pb = ::google::protobuf;
26namespace _fl = ::google::protobuf::internal::field_layout;
27namespace operations_research {
28namespace math_opt {
29
30inline constexpr VariablesProto::Impl_::Impl_(
31 ::_pbi::ConstantInitialized) noexcept
32 : _cached_size_{0},
33 ids_{},
34 _ids_cached_byte_size_{0},
35 lower_bounds_{},
36 upper_bounds_{},
37 integers_{},
38 names_{} {}
39
40template <typename>
41PROTOBUF_CONSTEXPR VariablesProto::VariablesProto(::_pbi::ConstantInitialized)
42#if defined(PROTOBUF_CUSTOM_VTABLE)
43 : ::google::protobuf::Message(VariablesProto_class_data_.base()),
44#else // PROTOBUF_CUSTOM_VTABLE
45 : ::google::protobuf::Message(),
46#endif // PROTOBUF_CUSTOM_VTABLE
47 _impl_(::_pbi::ConstantInitialized()) {
48}
56
57PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT OR_PROTO_DLL
59
60inline constexpr LinearConstraintsProto::Impl_::Impl_(
61 ::_pbi::ConstantInitialized) noexcept
62 : _cached_size_{0},
63 ids_{},
64 _ids_cached_byte_size_{0},
65 lower_bounds_{},
66 upper_bounds_{},
67 names_{} {}
68
69template <typename>
70PROTOBUF_CONSTEXPR LinearConstraintsProto::LinearConstraintsProto(::_pbi::ConstantInitialized)
71#if defined(PROTOBUF_CUSTOM_VTABLE)
72 : ::google::protobuf::Message(LinearConstraintsProto_class_data_.base()),
73#else // PROTOBUF_CUSTOM_VTABLE
74 : ::google::protobuf::Message(),
75#endif // PROTOBUF_CUSTOM_VTABLE
76 _impl_(::_pbi::ConstantInitialized()) {
77}
85
86PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT OR_PROTO_DLL
88
89inline constexpr SosConstraintProto::Impl_::Impl_(
90 ::_pbi::ConstantInitialized) noexcept
91 : _cached_size_{0},
92 expressions_{},
93 weights_{},
94 name_(
95 &::google::protobuf::internal::fixed_address_empty_string,
96 ::_pbi::ConstantInitialized()) {}
97
98template <typename>
99PROTOBUF_CONSTEXPR SosConstraintProto::SosConstraintProto(::_pbi::ConstantInitialized)
100#if defined(PROTOBUF_CUSTOM_VTABLE)
101 : ::google::protobuf::Message(SosConstraintProto_class_data_.base()),
102#else // PROTOBUF_CUSTOM_VTABLE
103 : ::google::protobuf::Message(),
104#endif // PROTOBUF_CUSTOM_VTABLE
105 _impl_(::_pbi::ConstantInitialized()) {
106}
114
115PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT OR_PROTO_DLL
117
118inline constexpr SecondOrderConeConstraintProto::Impl_::Impl_(
119 ::_pbi::ConstantInitialized) noexcept
120 : _cached_size_{0},
121 arguments_to_norm_{},
122 name_(
123 &::google::protobuf::internal::fixed_address_empty_string,
124 ::_pbi::ConstantInitialized()),
125 upper_bound_{nullptr} {}
126
127template <typename>
128PROTOBUF_CONSTEXPR SecondOrderConeConstraintProto::SecondOrderConeConstraintProto(::_pbi::ConstantInitialized)
129#if defined(PROTOBUF_CUSTOM_VTABLE)
130 : ::google::protobuf::Message(SecondOrderConeConstraintProto_class_data_.base()),
131#else // PROTOBUF_CUSTOM_VTABLE
132 : ::google::protobuf::Message(),
133#endif // PROTOBUF_CUSTOM_VTABLE
134 _impl_(::_pbi::ConstantInitialized()) {
135}
143
144PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT OR_PROTO_DLL
146
147inline constexpr QuadraticConstraintProto::Impl_::Impl_(
148 ::_pbi::ConstantInitialized) noexcept
149 : _cached_size_{0},
150 name_(
151 &::google::protobuf::internal::fixed_address_empty_string,
152 ::_pbi::ConstantInitialized()),
153 linear_terms_{nullptr},
154 quadratic_terms_{nullptr},
155 lower_bound_{0},
156 upper_bound_{0} {}
157
158template <typename>
159PROTOBUF_CONSTEXPR QuadraticConstraintProto::QuadraticConstraintProto(::_pbi::ConstantInitialized)
160#if defined(PROTOBUF_CUSTOM_VTABLE)
161 : ::google::protobuf::Message(QuadraticConstraintProto_class_data_.base()),
162#else // PROTOBUF_CUSTOM_VTABLE
163 : ::google::protobuf::Message(),
164#endif // PROTOBUF_CUSTOM_VTABLE
165 _impl_(::_pbi::ConstantInitialized()) {
166}
174
175PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT OR_PROTO_DLL
177
178inline constexpr ObjectiveProto::Impl_::Impl_(
179 ::_pbi::ConstantInitialized) noexcept
180 : _cached_size_{0},
181 name_(
182 &::google::protobuf::internal::fixed_address_empty_string,
183 ::_pbi::ConstantInitialized()),
184 linear_coefficients_{nullptr},
185 quadratic_coefficients_{nullptr},
186 offset_{0},
187 priority_{::int64_t{0}},
188 maximize_{false} {}
189
190template <typename>
191PROTOBUF_CONSTEXPR ObjectiveProto::ObjectiveProto(::_pbi::ConstantInitialized)
192#if defined(PROTOBUF_CUSTOM_VTABLE)
193 : ::google::protobuf::Message(ObjectiveProto_class_data_.base()),
194#else // PROTOBUF_CUSTOM_VTABLE
195 : ::google::protobuf::Message(),
196#endif // PROTOBUF_CUSTOM_VTABLE
197 _impl_(::_pbi::ConstantInitialized()) {
198}
206
207PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT OR_PROTO_DLL
209
210inline constexpr IndicatorConstraintProto::Impl_::Impl_(
211 ::_pbi::ConstantInitialized) noexcept
212 : _cached_size_{0},
213 name_(
214 &::google::protobuf::internal::fixed_address_empty_string,
215 ::_pbi::ConstantInitialized()),
216 expression_{nullptr},
217 indicator_id_{::int64_t{0}},
218 lower_bound_{0},
219 upper_bound_{0},
220 activate_on_zero_{false} {}
221
222template <typename>
223PROTOBUF_CONSTEXPR IndicatorConstraintProto::IndicatorConstraintProto(::_pbi::ConstantInitialized)
224#if defined(PROTOBUF_CUSTOM_VTABLE)
225 : ::google::protobuf::Message(IndicatorConstraintProto_class_data_.base()),
226#else // PROTOBUF_CUSTOM_VTABLE
227 : ::google::protobuf::Message(),
228#endif // PROTOBUF_CUSTOM_VTABLE
229 _impl_(::_pbi::ConstantInitialized()) {
230}
238
239PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT OR_PROTO_DLL
241template <typename>
243#if defined(PROTOBUF_CUSTOM_VTABLE)
244 : ModelProto_Sos2ConstraintsEntry_DoNotUse::MapEntry(ModelProto_Sos2ConstraintsEntry_DoNotUse_class_data_.base()){}
245#else // PROTOBUF_CUSTOM_VTABLE
246 : ModelProto_Sos2ConstraintsEntry_DoNotUse::MapEntry() {
247}
248#endif // PROTOBUF_CUSTOM_VTABLE
256
257PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT OR_PROTO_DLL
259template <typename>
261#if defined(PROTOBUF_CUSTOM_VTABLE)
262 : ModelProto_Sos1ConstraintsEntry_DoNotUse::MapEntry(ModelProto_Sos1ConstraintsEntry_DoNotUse_class_data_.base()){}
263#else // PROTOBUF_CUSTOM_VTABLE
264 : ModelProto_Sos1ConstraintsEntry_DoNotUse::MapEntry() {
265}
266#endif // PROTOBUF_CUSTOM_VTABLE
274
275PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT OR_PROTO_DLL
277template <typename>
279#if defined(PROTOBUF_CUSTOM_VTABLE)
280 : ModelProto_SecondOrderConeConstraintsEntry_DoNotUse::MapEntry(ModelProto_SecondOrderConeConstraintsEntry_DoNotUse_class_data_.base()){}
281#else // PROTOBUF_CUSTOM_VTABLE
282 : ModelProto_SecondOrderConeConstraintsEntry_DoNotUse::MapEntry() {
283}
284#endif // PROTOBUF_CUSTOM_VTABLE
292
293PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT OR_PROTO_DLL
295template <typename>
297#if defined(PROTOBUF_CUSTOM_VTABLE)
298 : ModelProto_QuadraticConstraintsEntry_DoNotUse::MapEntry(ModelProto_QuadraticConstraintsEntry_DoNotUse_class_data_.base()){}
299#else // PROTOBUF_CUSTOM_VTABLE
300 : ModelProto_QuadraticConstraintsEntry_DoNotUse::MapEntry() {
301}
302#endif // PROTOBUF_CUSTOM_VTABLE
310
311PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT OR_PROTO_DLL
313template <typename>
315#if defined(PROTOBUF_CUSTOM_VTABLE)
316 : ModelProto_IndicatorConstraintsEntry_DoNotUse::MapEntry(ModelProto_IndicatorConstraintsEntry_DoNotUse_class_data_.base()){}
317#else // PROTOBUF_CUSTOM_VTABLE
318 : ModelProto_IndicatorConstraintsEntry_DoNotUse::MapEntry() {
319}
320#endif // PROTOBUF_CUSTOM_VTABLE
328
329PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT OR_PROTO_DLL
331template <typename>
333#if defined(PROTOBUF_CUSTOM_VTABLE)
334 : ModelProto_AuxiliaryObjectivesEntry_DoNotUse::MapEntry(ModelProto_AuxiliaryObjectivesEntry_DoNotUse_class_data_.base()){}
335#else // PROTOBUF_CUSTOM_VTABLE
336 : ModelProto_AuxiliaryObjectivesEntry_DoNotUse::MapEntry() {
337}
338#endif // PROTOBUF_CUSTOM_VTABLE
346
347PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT OR_PROTO_DLL
349
350inline constexpr ModelProto::Impl_::Impl_(
351 ::_pbi::ConstantInitialized) noexcept
352 : _cached_size_{0},
353 name_(
354 &::google::protobuf::internal::fixed_address_empty_string,
355 ::_pbi::ConstantInitialized()),
356 variables_{nullptr},
357 objective_{nullptr},
358 linear_constraints_{nullptr},
359 linear_constraint_matrix_{nullptr},
360 quadratic_constraints_{},
361 sos1_constraints_{},
362 sos2_constraints_{},
363 indicator_constraints_{},
364 auxiliary_objectives_{},
365 second_order_cone_constraints_{} {}
366
367template <typename>
368PROTOBUF_CONSTEXPR ModelProto::ModelProto(::_pbi::ConstantInitialized)
369#if defined(PROTOBUF_CUSTOM_VTABLE)
370 : ::google::protobuf::Message(ModelProto_class_data_.base()),
371#else // PROTOBUF_CUSTOM_VTABLE
372 : ::google::protobuf::Message(),
373#endif // PROTOBUF_CUSTOM_VTABLE
374 _impl_(::_pbi::ConstantInitialized()) {
375}
377 PROTOBUF_CONSTEXPR ModelProtoDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {}
379 union {
381 };
382};
383
384PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT OR_PROTO_DLL
386} // namespace math_opt
387} // namespace operations_research
388static constexpr const ::_pb::EnumDescriptor* PROTOBUF_NONNULL* PROTOBUF_NULLABLE
390static constexpr const ::_pb::ServiceDescriptor* PROTOBUF_NONNULL* PROTOBUF_NULLABLE
392const ::uint32_t
394 protodesc_cold) = {
395 0x081, // bitmap
396 PROTOBUF_FIELD_OFFSET(::operations_research::math_opt::VariablesProto, _impl_._has_bits_),
397 8, // hasbit index offset
398 PROTOBUF_FIELD_OFFSET(::operations_research::math_opt::VariablesProto, _impl_.ids_),
399 PROTOBUF_FIELD_OFFSET(::operations_research::math_opt::VariablesProto, _impl_.lower_bounds_),
400 PROTOBUF_FIELD_OFFSET(::operations_research::math_opt::VariablesProto, _impl_.upper_bounds_),
401 PROTOBUF_FIELD_OFFSET(::operations_research::math_opt::VariablesProto, _impl_.integers_),
402 PROTOBUF_FIELD_OFFSET(::operations_research::math_opt::VariablesProto, _impl_.names_),
403 0,
404 1,
405 2,
406 3,
407 4,
408 0x081, // bitmap
409 PROTOBUF_FIELD_OFFSET(::operations_research::math_opt::ObjectiveProto, _impl_._has_bits_),
410 9, // hasbit index offset
411 PROTOBUF_FIELD_OFFSET(::operations_research::math_opt::ObjectiveProto, _impl_.maximize_),
412 PROTOBUF_FIELD_OFFSET(::operations_research::math_opt::ObjectiveProto, _impl_.offset_),
413 PROTOBUF_FIELD_OFFSET(::operations_research::math_opt::ObjectiveProto, _impl_.linear_coefficients_),
414 PROTOBUF_FIELD_OFFSET(::operations_research::math_opt::ObjectiveProto, _impl_.quadratic_coefficients_),
415 PROTOBUF_FIELD_OFFSET(::operations_research::math_opt::ObjectiveProto, _impl_.name_),
416 PROTOBUF_FIELD_OFFSET(::operations_research::math_opt::ObjectiveProto, _impl_.priority_),
417 5,
418 3,
419 1,
420 2,
421 0,
422 4,
423 0x081, // bitmap
424 PROTOBUF_FIELD_OFFSET(::operations_research::math_opt::LinearConstraintsProto, _impl_._has_bits_),
425 7, // hasbit index offset
426 PROTOBUF_FIELD_OFFSET(::operations_research::math_opt::LinearConstraintsProto, _impl_.ids_),
427 PROTOBUF_FIELD_OFFSET(::operations_research::math_opt::LinearConstraintsProto, _impl_.lower_bounds_),
428 PROTOBUF_FIELD_OFFSET(::operations_research::math_opt::LinearConstraintsProto, _impl_.upper_bounds_),
429 PROTOBUF_FIELD_OFFSET(::operations_research::math_opt::LinearConstraintsProto, _impl_.names_),
430 0,
431 1,
432 2,
433 3,
434 0x081, // bitmap
435 PROTOBUF_FIELD_OFFSET(::operations_research::math_opt::QuadraticConstraintProto, _impl_._has_bits_),
436 8, // hasbit index offset
437 PROTOBUF_FIELD_OFFSET(::operations_research::math_opt::QuadraticConstraintProto, _impl_.linear_terms_),
438 PROTOBUF_FIELD_OFFSET(::operations_research::math_opt::QuadraticConstraintProto, _impl_.quadratic_terms_),
439 PROTOBUF_FIELD_OFFSET(::operations_research::math_opt::QuadraticConstraintProto, _impl_.lower_bound_),
440 PROTOBUF_FIELD_OFFSET(::operations_research::math_opt::QuadraticConstraintProto, _impl_.upper_bound_),
441 PROTOBUF_FIELD_OFFSET(::operations_research::math_opt::QuadraticConstraintProto, _impl_.name_),
442 1,
443 2,
444 3,
445 4,
446 0,
447 0x081, // bitmap
448 PROTOBUF_FIELD_OFFSET(::operations_research::math_opt::SecondOrderConeConstraintProto, _impl_._has_bits_),
449 6, // hasbit index offset
450 PROTOBUF_FIELD_OFFSET(::operations_research::math_opt::SecondOrderConeConstraintProto, _impl_.upper_bound_),
451 PROTOBUF_FIELD_OFFSET(::operations_research::math_opt::SecondOrderConeConstraintProto, _impl_.arguments_to_norm_),
452 PROTOBUF_FIELD_OFFSET(::operations_research::math_opt::SecondOrderConeConstraintProto, _impl_.name_),
453 2,
454 0,
455 1,
456 0x081, // bitmap
457 PROTOBUF_FIELD_OFFSET(::operations_research::math_opt::SosConstraintProto, _impl_._has_bits_),
458 6, // hasbit index offset
459 PROTOBUF_FIELD_OFFSET(::operations_research::math_opt::SosConstraintProto, _impl_.expressions_),
460 PROTOBUF_FIELD_OFFSET(::operations_research::math_opt::SosConstraintProto, _impl_.weights_),
461 PROTOBUF_FIELD_OFFSET(::operations_research::math_opt::SosConstraintProto, _impl_.name_),
462 0,
463 1,
464 2,
465 0x081, // bitmap
466 PROTOBUF_FIELD_OFFSET(::operations_research::math_opt::IndicatorConstraintProto, _impl_._has_bits_),
467 9, // hasbit index offset
468 PROTOBUF_FIELD_OFFSET(::operations_research::math_opt::IndicatorConstraintProto, _impl_.indicator_id_),
469 PROTOBUF_FIELD_OFFSET(::operations_research::math_opt::IndicatorConstraintProto, _impl_.activate_on_zero_),
470 PROTOBUF_FIELD_OFFSET(::operations_research::math_opt::IndicatorConstraintProto, _impl_.expression_),
471 PROTOBUF_FIELD_OFFSET(::operations_research::math_opt::IndicatorConstraintProto, _impl_.lower_bound_),
472 PROTOBUF_FIELD_OFFSET(::operations_research::math_opt::IndicatorConstraintProto, _impl_.upper_bound_),
473 PROTOBUF_FIELD_OFFSET(::operations_research::math_opt::IndicatorConstraintProto, _impl_.name_),
474 2,
475 5,
476 1,
477 3,
478 4,
479 0,
480 0x081, // bitmap
482 5, // hasbit index offset
485 0,
486 1,
487 0x081, // bitmap
489 5, // hasbit index offset
492 0,
493 1,
494 0x081, // bitmap
496 5, // hasbit index offset
499 0,
500 1,
501 0x081, // bitmap
503 5, // hasbit index offset
506 0,
507 1,
508 0x081, // bitmap
510 5, // hasbit index offset
513 0,
514 1,
515 0x081, // bitmap
517 5, // hasbit index offset
520 0,
521 1,
522 0x081, // bitmap
523 PROTOBUF_FIELD_OFFSET(::operations_research::math_opt::ModelProto, _impl_._has_bits_),
524 14, // hasbit index offset
525 PROTOBUF_FIELD_OFFSET(::operations_research::math_opt::ModelProto, _impl_.name_),
526 PROTOBUF_FIELD_OFFSET(::operations_research::math_opt::ModelProto, _impl_.variables_),
527 PROTOBUF_FIELD_OFFSET(::operations_research::math_opt::ModelProto, _impl_.objective_),
528 PROTOBUF_FIELD_OFFSET(::operations_research::math_opt::ModelProto, _impl_.auxiliary_objectives_),
529 PROTOBUF_FIELD_OFFSET(::operations_research::math_opt::ModelProto, _impl_.linear_constraints_),
530 PROTOBUF_FIELD_OFFSET(::operations_research::math_opt::ModelProto, _impl_.linear_constraint_matrix_),
531 PROTOBUF_FIELD_OFFSET(::operations_research::math_opt::ModelProto, _impl_.quadratic_constraints_),
532 PROTOBUF_FIELD_OFFSET(::operations_research::math_opt::ModelProto, _impl_.second_order_cone_constraints_),
533 PROTOBUF_FIELD_OFFSET(::operations_research::math_opt::ModelProto, _impl_.sos1_constraints_),
534 PROTOBUF_FIELD_OFFSET(::operations_research::math_opt::ModelProto, _impl_.sos2_constraints_),
535 PROTOBUF_FIELD_OFFSET(::operations_research::math_opt::ModelProto, _impl_.indicator_constraints_),
536 0,
537 1,
538 2,
539 9,
540 3,
541 4,
542 5,
543 10,
544 6,
545 7,
546 8,
547};
548
549static const ::_pbi::MigrationSchema
550 schemas[] ABSL_ATTRIBUTE_SECTION_VARIABLE(protodesc_cold) = {
565};
582const char descriptor_table_protodef_ortools_2fmath_5fopt_2fmodel_2eproto[] ABSL_ATTRIBUTE_SECTION_VARIABLE(
583 protodesc_cold) = {
584 "\n\034ortools/math_opt/model.proto\022\034operatio"
585 "ns_research.math_opt\032(ortools/math_opt/s"
586 "parse_containers.proto\"j\n\016VariablesProto"
587 "\022\013\n\003ids\030\001 \003(\003\022\024\n\014lower_bounds\030\002 \003(\001\022\024\n\014u"
588 "pper_bounds\030\003 \003(\001\022\020\n\010integers\030\004 \003(\010\022\r\n\005n"
589 "ames\030\005 \003(\t\"\375\001\n\016ObjectiveProto\022\020\n\010maximiz"
590 "e\030\001 \001(\010\022\016\n\006offset\030\002 \001(\001\022R\n\023linear_coeffi"
591 "cients\030\003 \001(\01325.operations_research.math_"
592 "opt.SparseDoubleVectorProto\022U\n\026quadratic"
593 "_coefficients\030\004 \001(\01325.operations_researc"
594 "h.math_opt.SparseDoubleMatrixProto\022\014\n\004na"
595 "me\030\005 \001(\t\022\020\n\010priority\030\006 \001(\003\"`\n\026LinearCons"
596 "traintsProto\022\013\n\003ids\030\001 \003(\003\022\024\n\014lower_bound"
597 "s\030\002 \003(\001\022\024\n\014upper_bounds\030\003 \003(\001\022\r\n\005names\030\004"
598 " \003(\t\"\357\001\n\030QuadraticConstraintProto\022K\n\014lin"
599 "ear_terms\030\001 \001(\01325.operations_research.ma"
600 "th_opt.SparseDoubleVectorProto\022N\n\017quadra"
601 "tic_terms\030\002 \001(\01325.operations_research.ma"
602 "th_opt.SparseDoubleMatrixProto\022\023\n\013lower_"
603 "bound\030\003 \001(\001\022\023\n\013upper_bound\030\004 \001(\001\022\014\n\004name"
604 "\030\005 \001(\t\"\310\001\n\036SecondOrderConeConstraintProt"
605 "o\022H\n\013upper_bound\030\001 \001(\01323.operations_rese"
606 "arch.math_opt.LinearExpressionProto\022N\n\021a"
607 "rguments_to_norm\030\002 \003(\01323.operations_rese"
608 "arch.math_opt.LinearExpressionProto\022\014\n\004n"
609 "ame\030\003 \001(\t\"}\n\022SosConstraintProto\022H\n\013expre"
610 "ssions\030\001 \003(\01323.operations_research.math_"
611 "opt.LinearExpressionProto\022\017\n\007weights\030\002 \003"
612 "(\001\022\014\n\004name\030\003 \001(\t\"\343\001\n\030IndicatorConstraint"
613 "Proto\022\031\n\014indicator_id\030\001 \001(\003H\000\210\001\001\022\030\n\020acti"
614 "vate_on_zero\030\006 \001(\010\022I\n\nexpression\030\002 \001(\01325"
615 ".operations_research.math_opt.SparseDoub"
616 "leVectorProto\022\023\n\013lower_bound\030\003 \001(\001\022\023\n\013up"
617 "per_bound\030\004 \001(\001\022\014\n\004name\030\005 \001(\tB\017\n\r_indica"
618 "tor_id\"\272\014\n\nModelProto\022\014\n\004name\030\001 \001(\t\022\?\n\tv"
619 "ariables\030\002 \001(\0132,.operations_research.mat"
620 "h_opt.VariablesProto\022\?\n\tobjective\030\003 \001(\0132"
621 ",.operations_research.math_opt.Objective"
622 "Proto\022_\n\024auxiliary_objectives\030\n \003(\0132A.op"
623 "erations_research.math_opt.ModelProto.Au"
624 "xiliaryObjectivesEntry\022P\n\022linear_constra"
625 "ints\030\004 \001(\01324.operations_research.math_op"
626 "t.LinearConstraintsProto\022W\n\030linear_const"
627 "raint_matrix\030\005 \001(\01325.operations_research"
628 ".math_opt.SparseDoubleMatrixProto\022a\n\025qua"
629 "dratic_constraints\030\006 \003(\0132B.operations_re"
630 "search.math_opt.ModelProto.QuadraticCons"
631 "traintsEntry\022o\n\035second_order_cone_constr"
632 "aints\030\013 \003(\0132H.operations_research.math_o"
633 "pt.ModelProto.SecondOrderConeConstraints"
634 "Entry\022W\n\020sos1_constraints\030\007 \003(\0132=.operat"
635 "ions_research.math_opt.ModelProto.Sos1Co"
636 "nstraintsEntry\022W\n\020sos2_constraints\030\010 \003(\013"
637 "2=.operations_research.math_opt.ModelPro"
638 "to.Sos2ConstraintsEntry\022a\n\025indicator_con"
639 "straints\030\t \003(\0132B.operations_research.mat"
640 "h_opt.ModelProto.IndicatorConstraintsEnt"
641 "ry\032h\n\030AuxiliaryObjectivesEntry\022\013\n\003key\030\001 "
642 "\001(\003\022;\n\005value\030\002 \001(\0132,.operations_research"
643 ".math_opt.ObjectiveProto:\0028\001\032s\n\031Quadrati"
644 "cConstraintsEntry\022\013\n\003key\030\001 \001(\003\022E\n\005value\030"
645 "\002 \001(\01326.operations_research.math_opt.Qua"
646 "draticConstraintProto:\0028\001\032\177\n\037SecondOrder"
647 "ConeConstraintsEntry\022\013\n\003key\030\001 \001(\003\022K\n\005val"
648 "ue\030\002 \001(\0132<.operations_research.math_opt."
649 "SecondOrderConeConstraintProto:\0028\001\032h\n\024So"
650 "s1ConstraintsEntry\022\013\n\003key\030\001 \001(\003\022\?\n\005value"
651 "\030\002 \001(\01320.operations_research.math_opt.So"
652 "sConstraintProto:\0028\001\032h\n\024Sos2ConstraintsE"
653 "ntry\022\013\n\003key\030\001 \001(\003\022\?\n\005value\030\002 \001(\01320.opera"
654 "tions_research.math_opt.SosConstraintPro"
655 "to:\0028\001\032s\n\031IndicatorConstraintsEntry\022\013\n\003k"
656 "ey\030\001 \001(\003\022E\n\005value\030\002 \001(\01326.operations_res"
657 "earch.math_opt.IndicatorConstraintProto:"
658 "\0028\001B\036\n\032com.google.ortools.mathoptP\001b\006pro"
659 "to3"
660};
661static const ::_pbi::DescriptorTable* PROTOBUF_NONNULL const
682namespace operations_research {
683namespace math_opt {
684// ===================================================================
685
687 public:
688 using HasBits =
689 decltype(::std::declval<VariablesProto>()._impl_._has_bits_);
690 static constexpr ::int32_t kHasBitsOffset =
691 8 * PROTOBUF_FIELD_OFFSET(VariablesProto, _impl_._has_bits_);
692};
693
694VariablesProto::VariablesProto(::google::protobuf::Arena* PROTOBUF_NULLABLE arena)
695#if defined(PROTOBUF_CUSTOM_VTABLE)
696 : ::google::protobuf::Message(arena, VariablesProto_class_data_.base()) {
697#else // PROTOBUF_CUSTOM_VTABLE
698 : ::google::protobuf::Message(arena) {
699#endif // PROTOBUF_CUSTOM_VTABLE
700 SharedCtor(arena);
701 // @@protoc_insertion_point(arena_constructor:operations_research.math_opt.VariablesProto)
702}
703PROTOBUF_NDEBUG_INLINE VariablesProto::Impl_::Impl_(
704 [[maybe_unused]] ::google::protobuf::internal::InternalVisibility visibility,
705 [[maybe_unused]] ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const Impl_& from,
706 [[maybe_unused]] const ::operations_research::math_opt::VariablesProto& from_msg)
707 : _has_bits_{from._has_bits_},
708 _cached_size_{0},
709 ids_{visibility, arena, from.ids_},
710 _ids_cached_byte_size_{0},
711 lower_bounds_{visibility, arena, from.lower_bounds_},
712 upper_bounds_{visibility, arena, from.upper_bounds_},
713 integers_{visibility, arena, from.integers_},
714 names_{visibility, arena, from.names_} {}
715
717 ::google::protobuf::Arena* PROTOBUF_NULLABLE arena,
718 const VariablesProto& from)
719#if defined(PROTOBUF_CUSTOM_VTABLE)
720 : ::google::protobuf::Message(arena, VariablesProto_class_data_.base()) {
721#else // PROTOBUF_CUSTOM_VTABLE
722 : ::google::protobuf::Message(arena) {
723#endif // PROTOBUF_CUSTOM_VTABLE
724 VariablesProto* const _this = this;
725 (void)_this;
726 _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(
727 from._internal_metadata_);
728 new (&_impl_) Impl_(internal_visibility(), arena, from._impl_, from);
729
730 // @@protoc_insertion_point(copy_constructor:operations_research.math_opt.VariablesProto)
731}
732PROTOBUF_NDEBUG_INLINE VariablesProto::Impl_::Impl_(
733 [[maybe_unused]] ::google::protobuf::internal::InternalVisibility visibility,
734 [[maybe_unused]] ::google::protobuf::Arena* PROTOBUF_NULLABLE arena)
735 : _cached_size_{0},
736 ids_{visibility, arena},
737 _ids_cached_byte_size_{0},
738 lower_bounds_{visibility, arena},
739 upper_bounds_{visibility, arena},
740 integers_{visibility, arena},
741 names_{visibility, arena} {}
742
743inline void VariablesProto::SharedCtor(::_pb::Arena* PROTOBUF_NULLABLE arena) {
744 new (&_impl_) Impl_(internal_visibility(), arena);
745}
747 // @@protoc_insertion_point(destructor:operations_research.math_opt.VariablesProto)
748 SharedDtor(*this);
749}
750inline void VariablesProto::SharedDtor(MessageLite& self) {
751 VariablesProto& this_ = static_cast<VariablesProto&>(self);
752 if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) {
753 this_.CheckHasBitConsistency();
754 }
755 this_._internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>();
756 ABSL_DCHECK(this_.GetArena() == nullptr);
757 this_._impl_.~Impl_();
758}
759
760inline void* PROTOBUF_NONNULL VariablesProto::PlacementNew_(
761 const void* PROTOBUF_NONNULL, void* PROTOBUF_NONNULL mem,
762 ::google::protobuf::Arena* PROTOBUF_NULLABLE arena) {
763 return ::new (mem) VariablesProto(arena);
764}
765constexpr auto VariablesProto::InternalNewImpl_() {
766 constexpr auto arena_bits = ::google::protobuf::internal::EncodePlacementArenaOffsets({
767 PROTOBUF_FIELD_OFFSET(VariablesProto, _impl_.ids_) +
768 decltype(VariablesProto::_impl_.ids_)::
769 InternalGetArenaOffset(
770 ::google::protobuf::Message::internal_visibility()),
771 PROTOBUF_FIELD_OFFSET(VariablesProto, _impl_.lower_bounds_) +
772 decltype(VariablesProto::_impl_.lower_bounds_)::
773 InternalGetArenaOffset(
774 ::google::protobuf::Message::internal_visibility()),
775 PROTOBUF_FIELD_OFFSET(VariablesProto, _impl_.upper_bounds_) +
776 decltype(VariablesProto::_impl_.upper_bounds_)::
777 InternalGetArenaOffset(
778 ::google::protobuf::Message::internal_visibility()),
779 PROTOBUF_FIELD_OFFSET(VariablesProto, _impl_.integers_) +
780 decltype(VariablesProto::_impl_.integers_)::
781 InternalGetArenaOffset(
782 ::google::protobuf::Message::internal_visibility()),
783 PROTOBUF_FIELD_OFFSET(VariablesProto, _impl_.names_) +
784 decltype(VariablesProto::_impl_.names_)::
785 InternalGetArenaOffset(
786 ::google::protobuf::Message::internal_visibility()),
787 });
788 if (arena_bits.has_value()) {
789 return ::google::protobuf::internal::MessageCreator::ZeroInit(
790 sizeof(VariablesProto), alignof(VariablesProto), *arena_bits);
791 } else {
792 return ::google::protobuf::internal::MessageCreator(&VariablesProto::PlacementNew_,
793 sizeof(VariablesProto),
794 alignof(VariablesProto));
795 }
796}
798 return ::google::protobuf::internal::ClassDataFull{
799 ::google::protobuf::internal::ClassData{
801 &_table_.header,
802 nullptr, // OnDemandRegisterArenaDtor
803 nullptr, // IsInitialized
804 &VariablesProto::MergeImpl,
805 ::google::protobuf::Message::GetNewImpl<VariablesProto>(),
806#if defined(PROTOBUF_CUSTOM_VTABLE)
807 &VariablesProto::SharedDtor,
808 ::google::protobuf::Message::GetClearImpl<VariablesProto>(), &VariablesProto::ByteSizeLong,
810#endif // PROTOBUF_CUSTOM_VTABLE
811 PROTOBUF_FIELD_OFFSET(VariablesProto, _impl_._cached_size_),
812 false,
813 },
814 &VariablesProto::kDescriptorMethods,
816 nullptr, // tracker
817 };
818}
819
820PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 const
821 ::google::protobuf::internal::ClassDataFull VariablesProto_class_data_ =
823
824PROTOBUF_ATTRIBUTE_WEAK const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL
825VariablesProto::GetClassData() const {
826 ::google::protobuf::internal::PrefetchToLocalCache(&VariablesProto_class_data_);
827 ::google::protobuf::internal::PrefetchToLocalCache(VariablesProto_class_data_.tc_table);
828 return VariablesProto_class_data_.base();
829}
830PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1
831const ::_pbi::TcParseTable<3, 5, 0, 57, 2>
832VariablesProto::_table_ = {
833 {
834 PROTOBUF_FIELD_OFFSET(VariablesProto, _impl_._has_bits_),
835 0, // no _extensions_
836 5, 56, // max_field_number, fast_idx_mask
837 offsetof(decltype(_table_), field_lookup_table),
838 4294967264, // skipmap
839 offsetof(decltype(_table_), field_entries),
840 5, // num_field_entries
841 0, // num_aux_entries
842 offsetof(decltype(_table_), field_names), // no aux_entries
844 nullptr, // post_loop_handler
845 ::_pbi::TcParser::GenericFallback, // fallback
846 #ifdef PROTOBUF_PREFETCH_PARSE_TABLE
847 ::_pbi::TcParser::GetTable<::operations_research::math_opt::VariablesProto>(), // to_prefetch
848 #endif // PROTOBUF_PREFETCH_PARSE_TABLE
849 }, {{
850 {::_pbi::TcParser::MiniParse, {}},
851 // repeated int64 ids = 1;
852 {::_pbi::TcParser::FastV64P1,
853 {10, 0, 0,
854 PROTOBUF_FIELD_OFFSET(VariablesProto, _impl_.ids_)}},
855 // repeated double lower_bounds = 2;
856 {::_pbi::TcParser::FastF64P1,
857 {18, 1, 0,
858 PROTOBUF_FIELD_OFFSET(VariablesProto, _impl_.lower_bounds_)}},
859 // repeated double upper_bounds = 3;
860 {::_pbi::TcParser::FastF64P1,
861 {26, 2, 0,
862 PROTOBUF_FIELD_OFFSET(VariablesProto, _impl_.upper_bounds_)}},
863 // repeated bool integers = 4;
864 {::_pbi::TcParser::FastV8P1,
865 {34, 3, 0,
866 PROTOBUF_FIELD_OFFSET(VariablesProto, _impl_.integers_)}},
867 // repeated string names = 5;
868 {::_pbi::TcParser::FastUR1,
869 {42, 4, 0,
870 PROTOBUF_FIELD_OFFSET(VariablesProto, _impl_.names_)}},
871 {::_pbi::TcParser::MiniParse, {}},
872 {::_pbi::TcParser::MiniParse, {}},
873 }}, {{
874 65535, 65535
875 }}, {{
876 // repeated int64 ids = 1;
877 {PROTOBUF_FIELD_OFFSET(VariablesProto, _impl_.ids_), _Internal::kHasBitsOffset + 0, 0, (0 | ::_fl::kFcRepeated | ::_fl::kPackedInt64)},
878 // repeated double lower_bounds = 2;
879 {PROTOBUF_FIELD_OFFSET(VariablesProto, _impl_.lower_bounds_), _Internal::kHasBitsOffset + 1, 0, (0 | ::_fl::kFcRepeated | ::_fl::kPackedDouble)},
880 // repeated double upper_bounds = 3;
881 {PROTOBUF_FIELD_OFFSET(VariablesProto, _impl_.upper_bounds_), _Internal::kHasBitsOffset + 2, 0, (0 | ::_fl::kFcRepeated | ::_fl::kPackedDouble)},
882 // repeated bool integers = 4;
883 {PROTOBUF_FIELD_OFFSET(VariablesProto, _impl_.integers_), _Internal::kHasBitsOffset + 3, 0, (0 | ::_fl::kFcRepeated | ::_fl::kPackedBool)},
884 // repeated string names = 5;
885 {PROTOBUF_FIELD_OFFSET(VariablesProto, _impl_.names_), _Internal::kHasBitsOffset + 4, 0, (0 | ::_fl::kFcRepeated | ::_fl::kUtf8String | ::_fl::kRepSString)},
886 }},
887 // no aux_entries
888 {{
889 "\53\0\0\0\0\5\0\0"
890 "operations_research.math_opt.VariablesProto"
891 "names"
892 }},
893};
894PROTOBUF_NOINLINE void VariablesProto::Clear() {
895// @@protoc_insertion_point(message_clear_start:operations_research.math_opt.VariablesProto)
896 ::google::protobuf::internal::TSanWrite(&_impl_);
897 ::uint32_t cached_has_bits = 0;
898 // Prevent compiler warnings about cached_has_bits being unused
899 (void) cached_has_bits;
900
901 cached_has_bits = _impl_._has_bits_[0];
902 if (BatchCheckHasBit(cached_has_bits, 0x0000001fU)) {
903 if (CheckHasBitForRepeated(cached_has_bits, 0x00000001U)) {
904 _impl_.ids_.Clear();
905 }
906 if (CheckHasBitForRepeated(cached_has_bits, 0x00000002U)) {
907 _impl_.lower_bounds_.Clear();
908 }
909 if (CheckHasBitForRepeated(cached_has_bits, 0x00000004U)) {
910 _impl_.upper_bounds_.Clear();
911 }
912 if (CheckHasBitForRepeated(cached_has_bits, 0x00000008U)) {
913 _impl_.integers_.Clear();
914 }
915 if (CheckHasBitForRepeated(cached_has_bits, 0x00000010U)) {
916 _impl_.names_.Clear();
917 }
918 }
919 _impl_._has_bits_.Clear();
920 _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>();
921}
922
923#if defined(PROTOBUF_CUSTOM_VTABLE)
924::uint8_t* PROTOBUF_NONNULL VariablesProto::_InternalSerialize(
925 const ::google::protobuf::MessageLite& base, ::uint8_t* PROTOBUF_NONNULL target,
926 ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) {
927 const VariablesProto& this_ = static_cast<const VariablesProto&>(base);
928#else // PROTOBUF_CUSTOM_VTABLE
929::uint8_t* PROTOBUF_NONNULL VariablesProto::_InternalSerialize(
930 ::uint8_t* PROTOBUF_NONNULL target,
931 ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const {
932 const VariablesProto& this_ = *this;
933#endif // PROTOBUF_CUSTOM_VTABLE
934 if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) {
935 this_.CheckHasBitConsistency();
936 }
937 // @@protoc_insertion_point(serialize_to_array_start:operations_research.math_opt.VariablesProto)
938 ::uint32_t cached_has_bits = 0;
939 (void)cached_has_bits;
940
941 cached_has_bits = this_._impl_._has_bits_[0];
942 // repeated int64 ids = 1;
943 if (CheckHasBitForRepeated(cached_has_bits, 0x00000001U)) {
944 {
945 int byte_size = this_._impl_._ids_cached_byte_size_.Get();
946 if (byte_size > 0) {
947 target = stream->WriteInt64Packed(
948 1, this_._internal_ids(), byte_size, target);
949 }
950 }
951 }
952
953 // repeated double lower_bounds = 2;
954 if (CheckHasBitForRepeated(cached_has_bits, 0x00000002U)) {
955 if (this_._internal_lower_bounds_size() > 0) {
956 target = stream->WriteFixedPacked(2, this_._internal_lower_bounds(), target);
957 }
958 }
959
960 // repeated double upper_bounds = 3;
961 if (CheckHasBitForRepeated(cached_has_bits, 0x00000004U)) {
962 if (this_._internal_upper_bounds_size() > 0) {
963 target = stream->WriteFixedPacked(3, this_._internal_upper_bounds(), target);
964 }
965 }
966
967 // repeated bool integers = 4;
968 if (CheckHasBitForRepeated(cached_has_bits, 0x00000008U)) {
969 if (this_._internal_integers_size() > 0) {
970 target = stream->WriteFixedPacked(4, this_._internal_integers(), target);
971 }
972 }
973
974 // repeated string names = 5;
975 if (CheckHasBitForRepeated(cached_has_bits, 0x00000010U)) {
976 for (int i = 0, n = this_._internal_names_size(); i < n; ++i) {
977 const auto& s = this_._internal_names().Get(i);
978 ::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
979 s.data(), static_cast<int>(s.length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "operations_research.math_opt.VariablesProto.names");
980 target = stream->WriteString(5, s, target);
981 }
982 }
983
984 if (ABSL_PREDICT_FALSE(this_._internal_metadata_.have_unknown_fields())) {
985 target =
986 ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray(
987 this_._internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream);
988 }
989 // @@protoc_insertion_point(serialize_to_array_end:operations_research.math_opt.VariablesProto)
990 return target;
991}
992
993#if defined(PROTOBUF_CUSTOM_VTABLE)
995 const VariablesProto& this_ = static_cast<const VariablesProto&>(base);
996#else // PROTOBUF_CUSTOM_VTABLE
997::size_t VariablesProto::ByteSizeLong() const {
998 const VariablesProto& this_ = *this;
999#endif // PROTOBUF_CUSTOM_VTABLE
1000 // @@protoc_insertion_point(message_byte_size_start:operations_research.math_opt.VariablesProto)
1001 ::size_t total_size = 0;
1002
1003 ::uint32_t cached_has_bits = 0;
1004 // Prevent compiler warnings about cached_has_bits being unused
1005 (void)cached_has_bits;
1006
1007 ::_pbi::Prefetch5LinesFrom7Lines(&this_);
1008 cached_has_bits = this_._impl_._has_bits_[0];
1009 if (BatchCheckHasBit(cached_has_bits, 0x0000001fU)) {
1010 // repeated int64 ids = 1;
1011 if (CheckHasBitForRepeated(cached_has_bits, 0x00000001U)) {
1012 total_size +=
1013 ::_pbi::WireFormatLite::Int64SizeWithPackedTagSize(
1014 this_._internal_ids(), 1,
1015 this_._impl_._ids_cached_byte_size_);
1016 }
1017 // repeated double lower_bounds = 2;
1018 if (CheckHasBitForRepeated(cached_has_bits, 0x00000002U)) {
1019 ::size_t data_size = ::size_t{8} *
1020 ::_pbi::FromIntSize(this_._internal_lower_bounds_size());
1021 ::size_t tag_size = data_size == 0
1022 ? 0
1023 : 1 + ::_pbi::WireFormatLite::Int32Size(
1024 static_cast<::int32_t>(data_size));
1025 total_size += tag_size + data_size;
1026 }
1027 // repeated double upper_bounds = 3;
1028 if (CheckHasBitForRepeated(cached_has_bits, 0x00000004U)) {
1029 ::size_t data_size = ::size_t{8} *
1030 ::_pbi::FromIntSize(this_._internal_upper_bounds_size());
1031 ::size_t tag_size = data_size == 0
1032 ? 0
1033 : 1 + ::_pbi::WireFormatLite::Int32Size(
1034 static_cast<::int32_t>(data_size));
1035 total_size += tag_size + data_size;
1036 }
1037 // repeated bool integers = 4;
1038 if (CheckHasBitForRepeated(cached_has_bits, 0x00000008U)) {
1039 ::size_t data_size = ::size_t{1} *
1040 ::_pbi::FromIntSize(this_._internal_integers_size());
1041 ::size_t tag_size = data_size == 0
1042 ? 0
1043 : 1 + ::_pbi::WireFormatLite::Int32Size(
1044 static_cast<::int32_t>(data_size));
1045 total_size += tag_size + data_size;
1046 }
1047 // repeated string names = 5;
1048 if (CheckHasBitForRepeated(cached_has_bits, 0x00000010U)) {
1049 total_size +=
1050 1 * ::google::protobuf::internal::FromIntSize(this_._internal_names().size());
1051 for (int i = 0, n = this_._internal_names().size(); i < n; ++i) {
1052 total_size += ::google::protobuf::internal::WireFormatLite::StringSize(
1053 this_._internal_names().Get(i));
1054 }
1055 }
1056 }
1057 return this_.MaybeComputeUnknownFieldsSize(total_size,
1058 &this_._impl_._cached_size_);
1059}
1060
1061void VariablesProto::MergeImpl(::google::protobuf::MessageLite& to_msg,
1062 const ::google::protobuf::MessageLite& from_msg) {
1063 auto* const _this =
1064 static_cast<VariablesProto*>(&to_msg);
1065 auto& from = static_cast<const VariablesProto&>(from_msg);
1066 if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) {
1067 from.CheckHasBitConsistency();
1068 }
1069 ::google::protobuf::Arena* arena = _this->GetArena();
1070 // @@protoc_insertion_point(class_specific_merge_from_start:operations_research.math_opt.VariablesProto)
1071 ABSL_DCHECK_NE(&from, _this);
1072 ::uint32_t cached_has_bits = 0;
1073 (void)cached_has_bits;
1074
1075 cached_has_bits = from._impl_._has_bits_[0];
1076 if (BatchCheckHasBit(cached_has_bits, 0x0000001fU)) {
1077 if (CheckHasBitForRepeated(cached_has_bits, 0x00000001U)) {
1078 _this->_internal_mutable_ids()->MergeFrom(from._internal_ids());
1079 }
1080 if (CheckHasBitForRepeated(cached_has_bits, 0x00000002U)) {
1081 _this->_internal_mutable_lower_bounds()->MergeFrom(from._internal_lower_bounds());
1082 }
1083 if (CheckHasBitForRepeated(cached_has_bits, 0x00000004U)) {
1084 _this->_internal_mutable_upper_bounds()->MergeFrom(from._internal_upper_bounds());
1085 }
1086 if (CheckHasBitForRepeated(cached_has_bits, 0x00000008U)) {
1087 _this->_internal_mutable_integers()->MergeFrom(from._internal_integers());
1088 }
1089 if (CheckHasBitForRepeated(cached_has_bits, 0x00000010U)) {
1090 _this->_internal_mutable_names()->InternalMergeFromWithArena(
1091 ::google::protobuf::MessageLite::internal_visibility(), arena,
1092 from._internal_names());
1093 }
1094 }
1095 _this->_impl_._has_bits_[0] |= cached_has_bits;
1096 _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(
1097 from._internal_metadata_);
1098}
1099
1100void VariablesProto::CopyFrom(const VariablesProto& from) {
1101 // @@protoc_insertion_point(class_specific_copy_from_start:operations_research.math_opt.VariablesProto)
1102 if (&from == this) return;
1103 Clear();
1104 MergeFrom(from);
1105}
1106
1107
1108void VariablesProto::InternalSwap(VariablesProto* PROTOBUF_RESTRICT PROTOBUF_NONNULL other) {
1109 using ::std::swap;
1110 _internal_metadata_.InternalSwap(&other->_internal_metadata_);
1111 swap(_impl_._has_bits_[0], other->_impl_._has_bits_[0]);
1112 _impl_.ids_.InternalSwap(&other->_impl_.ids_);
1113 _impl_.lower_bounds_.InternalSwap(&other->_impl_.lower_bounds_);
1114 _impl_.upper_bounds_.InternalSwap(&other->_impl_.upper_bounds_);
1115 _impl_.integers_.InternalSwap(&other->_impl_.integers_);
1116 _impl_.names_.InternalSwap(&other->_impl_.names_);
1117}
1118
1119::google::protobuf::Metadata VariablesProto::GetMetadata() const {
1120 return ::google::protobuf::Message::GetMetadataImpl(GetClassData()->full());
1121}
1122// ===================================================================
1123
1125 public:
1126 using HasBits =
1127 decltype(::std::declval<ObjectiveProto>()._impl_._has_bits_);
1128 static constexpr ::int32_t kHasBitsOffset =
1129 8 * PROTOBUF_FIELD_OFFSET(ObjectiveProto, _impl_._has_bits_);
1131
1133 ::google::protobuf::internal::TSanWrite(&_impl_);
1134 if (_impl_.linear_coefficients_ != nullptr) _impl_.linear_coefficients_->Clear();
1135 ClearHasBit(_impl_._has_bits_[0],
1136 0x00000002U);
1137}
1139 ::google::protobuf::internal::TSanWrite(&_impl_);
1140 if (_impl_.quadratic_coefficients_ != nullptr) _impl_.quadratic_coefficients_->Clear();
1141 ClearHasBit(_impl_._has_bits_[0],
1142 0x00000004U);
1143}
1144ObjectiveProto::ObjectiveProto(::google::protobuf::Arena* PROTOBUF_NULLABLE arena)
1145#if defined(PROTOBUF_CUSTOM_VTABLE)
1146 : ::google::protobuf::Message(arena, ObjectiveProto_class_data_.base()) {
1147#else // PROTOBUF_CUSTOM_VTABLE
1148 : ::google::protobuf::Message(arena) {
1149#endif // PROTOBUF_CUSTOM_VTABLE
1150 SharedCtor(arena);
1151 // @@protoc_insertion_point(arena_constructor:operations_research.math_opt.ObjectiveProto)
1152}
1153PROTOBUF_NDEBUG_INLINE ObjectiveProto::Impl_::Impl_(
1154 [[maybe_unused]] ::google::protobuf::internal::InternalVisibility visibility,
1155 [[maybe_unused]] ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const Impl_& from,
1156 [[maybe_unused]] const ::operations_research::math_opt::ObjectiveProto& from_msg)
1157 : _has_bits_{from._has_bits_},
1158 _cached_size_{0},
1159 name_(arena, from.name_) {}
1160
1162 ::google::protobuf::Arena* PROTOBUF_NULLABLE arena,
1163 const ObjectiveProto& from)
1164#if defined(PROTOBUF_CUSTOM_VTABLE)
1165 : ::google::protobuf::Message(arena, ObjectiveProto_class_data_.base()) {
1166#else // PROTOBUF_CUSTOM_VTABLE
1167 : ::google::protobuf::Message(arena) {
1168#endif // PROTOBUF_CUSTOM_VTABLE
1169 ObjectiveProto* const _this = this;
1170 (void)_this;
1171 _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(
1172 from._internal_metadata_);
1173 new (&_impl_) Impl_(internal_visibility(), arena, from._impl_, from);
1174 ::uint32_t cached_has_bits = _impl_._has_bits_[0];
1175 _impl_.linear_coefficients_ = (CheckHasBit(cached_has_bits, 0x00000002U))
1176 ? ::google::protobuf::Message::CopyConstruct(arena, *from._impl_.linear_coefficients_)
1177 : nullptr;
1178 _impl_.quadratic_coefficients_ = (CheckHasBit(cached_has_bits, 0x00000004U))
1179 ? ::google::protobuf::Message::CopyConstruct(arena, *from._impl_.quadratic_coefficients_)
1180 : nullptr;
1181 ::memcpy(reinterpret_cast<char*>(&_impl_) +
1182 offsetof(Impl_, offset_),
1183 reinterpret_cast<const char*>(&from._impl_) +
1184 offsetof(Impl_, offset_),
1185 offsetof(Impl_, maximize_) -
1186 offsetof(Impl_, offset_) +
1187 sizeof(Impl_::maximize_));
1188
1189 // @@protoc_insertion_point(copy_constructor:operations_research.math_opt.ObjectiveProto)
1190}
1191PROTOBUF_NDEBUG_INLINE ObjectiveProto::Impl_::Impl_(
1192 [[maybe_unused]] ::google::protobuf::internal::InternalVisibility visibility,
1193 [[maybe_unused]] ::google::protobuf::Arena* PROTOBUF_NULLABLE arena)
1194 : _cached_size_{0},
1195 name_(arena) {}
1196
1197inline void ObjectiveProto::SharedCtor(::_pb::Arena* PROTOBUF_NULLABLE arena) {
1198 new (&_impl_) Impl_(internal_visibility(), arena);
1199 ::memset(reinterpret_cast<char*>(&_impl_) +
1200 offsetof(Impl_, linear_coefficients_),
1201 0,
1202 offsetof(Impl_, maximize_) -
1203 offsetof(Impl_, linear_coefficients_) +
1204 sizeof(Impl_::maximize_));
1205}
1207 // @@protoc_insertion_point(destructor:operations_research.math_opt.ObjectiveProto)
1208 SharedDtor(*this);
1209}
1210inline void ObjectiveProto::SharedDtor(MessageLite& self) {
1211 ObjectiveProto& this_ = static_cast<ObjectiveProto&>(self);
1212 if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) {
1213 this_.CheckHasBitConsistency();
1214 }
1215 this_._internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>();
1216 ABSL_DCHECK(this_.GetArena() == nullptr);
1217 this_._impl_.name_.Destroy();
1218 delete this_._impl_.linear_coefficients_;
1219 delete this_._impl_.quadratic_coefficients_;
1220 this_._impl_.~Impl_();
1221}
1222
1223inline void* PROTOBUF_NONNULL ObjectiveProto::PlacementNew_(
1224 const void* PROTOBUF_NONNULL, void* PROTOBUF_NONNULL mem,
1225 ::google::protobuf::Arena* PROTOBUF_NULLABLE arena) {
1226 return ::new (mem) ObjectiveProto(arena);
1227}
1228constexpr auto ObjectiveProto::InternalNewImpl_() {
1229 return ::google::protobuf::internal::MessageCreator::CopyInit(sizeof(ObjectiveProto),
1230 alignof(ObjectiveProto));
1231}
1233 return ::google::protobuf::internal::ClassDataFull{
1234 ::google::protobuf::internal::ClassData{
1236 &_table_.header,
1237 nullptr, // OnDemandRegisterArenaDtor
1238 nullptr, // IsInitialized
1239 &ObjectiveProto::MergeImpl,
1240 ::google::protobuf::Message::GetNewImpl<ObjectiveProto>(),
1241#if defined(PROTOBUF_CUSTOM_VTABLE)
1242 &ObjectiveProto::SharedDtor,
1243 ::google::protobuf::Message::GetClearImpl<ObjectiveProto>(), &ObjectiveProto::ByteSizeLong,
1245#endif // PROTOBUF_CUSTOM_VTABLE
1246 PROTOBUF_FIELD_OFFSET(ObjectiveProto, _impl_._cached_size_),
1247 false,
1248 },
1249 &ObjectiveProto::kDescriptorMethods,
1251 nullptr, // tracker
1252 };
1253}
1254
1255PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 const
1256 ::google::protobuf::internal::ClassDataFull ObjectiveProto_class_data_ =
1259PROTOBUF_ATTRIBUTE_WEAK const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL
1260ObjectiveProto::GetClassData() const {
1261 ::google::protobuf::internal::PrefetchToLocalCache(&ObjectiveProto_class_data_);
1262 ::google::protobuf::internal::PrefetchToLocalCache(ObjectiveProto_class_data_.tc_table);
1263 return ObjectiveProto_class_data_.base();
1264}
1265PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1
1266const ::_pbi::TcParseTable<3, 6, 2, 56, 2>
1267ObjectiveProto::_table_ = {
1268 {
1269 PROTOBUF_FIELD_OFFSET(ObjectiveProto, _impl_._has_bits_),
1270 0, // no _extensions_
1271 6, 56, // max_field_number, fast_idx_mask
1272 offsetof(decltype(_table_), field_lookup_table),
1273 4294967232, // skipmap
1274 offsetof(decltype(_table_), field_entries),
1275 6, // num_field_entries
1276 2, // num_aux_entries
1277 offsetof(decltype(_table_), aux_entries),
1279 nullptr, // post_loop_handler
1280 ::_pbi::TcParser::GenericFallback, // fallback
1281 #ifdef PROTOBUF_PREFETCH_PARSE_TABLE
1282 ::_pbi::TcParser::GetTable<::operations_research::math_opt::ObjectiveProto>(), // to_prefetch
1283 #endif // PROTOBUF_PREFETCH_PARSE_TABLE
1284 }, {{
1285 {::_pbi::TcParser::MiniParse, {}},
1286 // bool maximize = 1;
1287 {::_pbi::TcParser::SingularVarintNoZag1<bool, offsetof(ObjectiveProto, _impl_.maximize_), 5>(),
1288 {8, 5, 0,
1289 PROTOBUF_FIELD_OFFSET(ObjectiveProto, _impl_.maximize_)}},
1290 // double offset = 2;
1291 {::_pbi::TcParser::FastF64S1,
1292 {17, 3, 0,
1293 PROTOBUF_FIELD_OFFSET(ObjectiveProto, _impl_.offset_)}},
1294 // .operations_research.math_opt.SparseDoubleVectorProto linear_coefficients = 3;
1295 {::_pbi::TcParser::FastMtS1,
1296 {26, 1, 0,
1297 PROTOBUF_FIELD_OFFSET(ObjectiveProto, _impl_.linear_coefficients_)}},
1298 // .operations_research.math_opt.SparseDoubleMatrixProto quadratic_coefficients = 4;
1299 {::_pbi::TcParser::FastMtS1,
1300 {34, 2, 1,
1301 PROTOBUF_FIELD_OFFSET(ObjectiveProto, _impl_.quadratic_coefficients_)}},
1302 // string name = 5;
1303 {::_pbi::TcParser::FastUS1,
1304 {42, 0, 0,
1305 PROTOBUF_FIELD_OFFSET(ObjectiveProto, _impl_.name_)}},
1306 // int64 priority = 6;
1307 {::_pbi::TcParser::SingularVarintNoZag1<::uint64_t, offsetof(ObjectiveProto, _impl_.priority_), 4>(),
1308 {48, 4, 0,
1309 PROTOBUF_FIELD_OFFSET(ObjectiveProto, _impl_.priority_)}},
1310 {::_pbi::TcParser::MiniParse, {}},
1311 }}, {{
1312 65535, 65535
1313 }}, {{
1314 // bool maximize = 1;
1315 {PROTOBUF_FIELD_OFFSET(ObjectiveProto, _impl_.maximize_), _Internal::kHasBitsOffset + 5, 0, (0 | ::_fl::kFcOptional | ::_fl::kBool)},
1316 // double offset = 2;
1317 {PROTOBUF_FIELD_OFFSET(ObjectiveProto, _impl_.offset_), _Internal::kHasBitsOffset + 3, 0, (0 | ::_fl::kFcOptional | ::_fl::kDouble)},
1318 // .operations_research.math_opt.SparseDoubleVectorProto linear_coefficients = 3;
1319 {PROTOBUF_FIELD_OFFSET(ObjectiveProto, _impl_.linear_coefficients_), _Internal::kHasBitsOffset + 1, 0, (0 | ::_fl::kFcOptional | ::_fl::kMessage | ::_fl::kTvTable)},
1320 // .operations_research.math_opt.SparseDoubleMatrixProto quadratic_coefficients = 4;
1321 {PROTOBUF_FIELD_OFFSET(ObjectiveProto, _impl_.quadratic_coefficients_), _Internal::kHasBitsOffset + 2, 1, (0 | ::_fl::kFcOptional | ::_fl::kMessage | ::_fl::kTvTable)},
1322 // string name = 5;
1323 {PROTOBUF_FIELD_OFFSET(ObjectiveProto, _impl_.name_), _Internal::kHasBitsOffset + 0, 0, (0 | ::_fl::kFcOptional | ::_fl::kUtf8String | ::_fl::kRepAString)},
1324 // int64 priority = 6;
1325 {PROTOBUF_FIELD_OFFSET(ObjectiveProto, _impl_.priority_), _Internal::kHasBitsOffset + 4, 0, (0 | ::_fl::kFcOptional | ::_fl::kInt64)},
1326 }},
1327 {{
1328 {::_pbi::TcParser::GetTable<::operations_research::math_opt::SparseDoubleVectorProto>()},
1329 {::_pbi::TcParser::GetTable<::operations_research::math_opt::SparseDoubleMatrixProto>()},
1330 }},
1331 {{
1332 "\53\0\0\0\0\4\0\0"
1333 "operations_research.math_opt.ObjectiveProto"
1334 "name"
1335 }},
1336};
1337PROTOBUF_NOINLINE void ObjectiveProto::Clear() {
1338// @@protoc_insertion_point(message_clear_start:operations_research.math_opt.ObjectiveProto)
1339 ::google::protobuf::internal::TSanWrite(&_impl_);
1340 ::uint32_t cached_has_bits = 0;
1341 // Prevent compiler warnings about cached_has_bits being unused
1342 (void) cached_has_bits;
1343
1344 cached_has_bits = _impl_._has_bits_[0];
1345 if (BatchCheckHasBit(cached_has_bits, 0x00000007U)) {
1346 if (CheckHasBit(cached_has_bits, 0x00000001U)) {
1347 _impl_.name_.ClearNonDefaultToEmpty();
1348 }
1349 if (CheckHasBit(cached_has_bits, 0x00000002U)) {
1350 ABSL_DCHECK(_impl_.linear_coefficients_ != nullptr);
1351 _impl_.linear_coefficients_->Clear();
1352 }
1353 if (CheckHasBit(cached_has_bits, 0x00000004U)) {
1354 ABSL_DCHECK(_impl_.quadratic_coefficients_ != nullptr);
1355 _impl_.quadratic_coefficients_->Clear();
1356 }
1357 }
1358 if (BatchCheckHasBit(cached_has_bits, 0x00000038U)) {
1359 ::memset(&_impl_.offset_, 0, static_cast<::size_t>(
1360 reinterpret_cast<char*>(&_impl_.maximize_) -
1361 reinterpret_cast<char*>(&_impl_.offset_)) + sizeof(_impl_.maximize_));
1362 }
1363 _impl_._has_bits_.Clear();
1364 _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>();
1365}
1366
1367#if defined(PROTOBUF_CUSTOM_VTABLE)
1368::uint8_t* PROTOBUF_NONNULL ObjectiveProto::_InternalSerialize(
1369 const ::google::protobuf::MessageLite& base, ::uint8_t* PROTOBUF_NONNULL target,
1370 ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) {
1371 const ObjectiveProto& this_ = static_cast<const ObjectiveProto&>(base);
1372#else // PROTOBUF_CUSTOM_VTABLE
1373::uint8_t* PROTOBUF_NONNULL ObjectiveProto::_InternalSerialize(
1374 ::uint8_t* PROTOBUF_NONNULL target,
1375 ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const {
1376 const ObjectiveProto& this_ = *this;
1377#endif // PROTOBUF_CUSTOM_VTABLE
1378 if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) {
1379 this_.CheckHasBitConsistency();
1380 }
1381 // @@protoc_insertion_point(serialize_to_array_start:operations_research.math_opt.ObjectiveProto)
1382 ::uint32_t cached_has_bits = 0;
1383 (void)cached_has_bits;
1384
1385 cached_has_bits = this_._impl_._has_bits_[0];
1386 // bool maximize = 1;
1387 if (CheckHasBit(cached_has_bits, 0x00000020U)) {
1388 if (this_._internal_maximize() != 0) {
1389 target = stream->EnsureSpace(target);
1390 target = ::_pbi::WireFormatLite::WriteBoolToArray(
1391 1, this_._internal_maximize(), target);
1392 }
1393 }
1394
1395 // double offset = 2;
1396 if (CheckHasBit(cached_has_bits, 0x00000008U)) {
1397 if (::absl::bit_cast<::uint64_t>(this_._internal_offset()) != 0) {
1398 target = stream->EnsureSpace(target);
1399 target = ::_pbi::WireFormatLite::WriteDoubleToArray(
1400 2, this_._internal_offset(), target);
1401 }
1402 }
1403
1404 // .operations_research.math_opt.SparseDoubleVectorProto linear_coefficients = 3;
1405 if (CheckHasBit(cached_has_bits, 0x00000002U)) {
1406 target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage(
1407 3, *this_._impl_.linear_coefficients_, this_._impl_.linear_coefficients_->GetCachedSize(), target,
1408 stream);
1409 }
1410
1411 // .operations_research.math_opt.SparseDoubleMatrixProto quadratic_coefficients = 4;
1412 if (CheckHasBit(cached_has_bits, 0x00000004U)) {
1413 target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage(
1414 4, *this_._impl_.quadratic_coefficients_, this_._impl_.quadratic_coefficients_->GetCachedSize(), target,
1415 stream);
1416 }
1417
1418 // string name = 5;
1419 if (CheckHasBit(cached_has_bits, 0x00000001U)) {
1420 if (!this_._internal_name().empty()) {
1421 const ::std::string& _s = this_._internal_name();
1422 ::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
1423 _s.data(), static_cast<int>(_s.length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "operations_research.math_opt.ObjectiveProto.name");
1424 target = stream->WriteStringMaybeAliased(5, _s, target);
1425 }
1426 }
1427
1428 // int64 priority = 6;
1429 if (CheckHasBit(cached_has_bits, 0x00000010U)) {
1430 if (this_._internal_priority() != 0) {
1431 target =
1432 ::google::protobuf::internal::WireFormatLite::WriteInt64ToArrayWithField<6>(
1433 stream, this_._internal_priority(), target);
1434 }
1435 }
1436
1437 if (ABSL_PREDICT_FALSE(this_._internal_metadata_.have_unknown_fields())) {
1438 target =
1439 ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray(
1440 this_._internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream);
1441 }
1442 // @@protoc_insertion_point(serialize_to_array_end:operations_research.math_opt.ObjectiveProto)
1443 return target;
1444}
1445
1446#if defined(PROTOBUF_CUSTOM_VTABLE)
1448 const ObjectiveProto& this_ = static_cast<const ObjectiveProto&>(base);
1449#else // PROTOBUF_CUSTOM_VTABLE
1450::size_t ObjectiveProto::ByteSizeLong() const {
1451 const ObjectiveProto& this_ = *this;
1452#endif // PROTOBUF_CUSTOM_VTABLE
1453 // @@protoc_insertion_point(message_byte_size_start:operations_research.math_opt.ObjectiveProto)
1454 ::size_t total_size = 0;
1455
1456 ::uint32_t cached_has_bits = 0;
1457 // Prevent compiler warnings about cached_has_bits being unused
1458 (void)cached_has_bits;
1459
1460 ::_pbi::Prefetch5LinesFrom7Lines(&this_);
1461 cached_has_bits = this_._impl_._has_bits_[0];
1462 if (BatchCheckHasBit(cached_has_bits, 0x0000003fU)) {
1463 // string name = 5;
1464 if (CheckHasBit(cached_has_bits, 0x00000001U)) {
1465 if (!this_._internal_name().empty()) {
1466 total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize(
1467 this_._internal_name());
1468 }
1469 }
1470 // .operations_research.math_opt.SparseDoubleVectorProto linear_coefficients = 3;
1471 if (CheckHasBit(cached_has_bits, 0x00000002U)) {
1472 total_size += 1 +
1473 ::google::protobuf::internal::WireFormatLite::MessageSize(*this_._impl_.linear_coefficients_);
1474 }
1475 // .operations_research.math_opt.SparseDoubleMatrixProto quadratic_coefficients = 4;
1476 if (CheckHasBit(cached_has_bits, 0x00000004U)) {
1477 total_size += 1 +
1478 ::google::protobuf::internal::WireFormatLite::MessageSize(*this_._impl_.quadratic_coefficients_);
1479 }
1480 // double offset = 2;
1481 if (CheckHasBit(cached_has_bits, 0x00000008U)) {
1482 if (::absl::bit_cast<::uint64_t>(this_._internal_offset()) != 0) {
1483 total_size += 9;
1484 }
1485 }
1486 // int64 priority = 6;
1487 if (CheckHasBit(cached_has_bits, 0x00000010U)) {
1488 if (this_._internal_priority() != 0) {
1489 total_size += ::_pbi::WireFormatLite::Int64SizePlusOne(
1490 this_._internal_priority());
1491 }
1492 }
1493 // bool maximize = 1;
1494 if (CheckHasBit(cached_has_bits, 0x00000020U)) {
1495 if (this_._internal_maximize() != 0) {
1496 total_size += 2;
1497 }
1498 }
1499 }
1500 return this_.MaybeComputeUnknownFieldsSize(total_size,
1501 &this_._impl_._cached_size_);
1502}
1503
1504void ObjectiveProto::MergeImpl(::google::protobuf::MessageLite& to_msg,
1505 const ::google::protobuf::MessageLite& from_msg) {
1506 auto* const _this =
1507 static_cast<ObjectiveProto*>(&to_msg);
1508 auto& from = static_cast<const ObjectiveProto&>(from_msg);
1509 if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) {
1510 from.CheckHasBitConsistency();
1511 }
1512 ::google::protobuf::Arena* arena = _this->GetArena();
1513 // @@protoc_insertion_point(class_specific_merge_from_start:operations_research.math_opt.ObjectiveProto)
1514 ABSL_DCHECK_NE(&from, _this);
1515 ::uint32_t cached_has_bits = 0;
1516 (void)cached_has_bits;
1517
1518 cached_has_bits = from._impl_._has_bits_[0];
1519 if (BatchCheckHasBit(cached_has_bits, 0x0000003fU)) {
1520 if (CheckHasBit(cached_has_bits, 0x00000001U)) {
1521 if (!from._internal_name().empty()) {
1522 _this->_internal_set_name(from._internal_name());
1523 } else {
1524 if (_this->_impl_.name_.IsDefault()) {
1525 _this->_internal_set_name("");
1526 }
1527 }
1528 }
1529 if (CheckHasBit(cached_has_bits, 0x00000002U)) {
1530 ABSL_DCHECK(from._impl_.linear_coefficients_ != nullptr);
1531 if (_this->_impl_.linear_coefficients_ == nullptr) {
1532 _this->_impl_.linear_coefficients_ = ::google::protobuf::Message::CopyConstruct(arena, *from._impl_.linear_coefficients_);
1533 } else {
1534 _this->_impl_.linear_coefficients_->MergeFrom(*from._impl_.linear_coefficients_);
1535 }
1536 }
1537 if (CheckHasBit(cached_has_bits, 0x00000004U)) {
1538 ABSL_DCHECK(from._impl_.quadratic_coefficients_ != nullptr);
1539 if (_this->_impl_.quadratic_coefficients_ == nullptr) {
1540 _this->_impl_.quadratic_coefficients_ = ::google::protobuf::Message::CopyConstruct(arena, *from._impl_.quadratic_coefficients_);
1541 } else {
1542 _this->_impl_.quadratic_coefficients_->MergeFrom(*from._impl_.quadratic_coefficients_);
1543 }
1544 }
1545 if (CheckHasBit(cached_has_bits, 0x00000008U)) {
1546 if (::absl::bit_cast<::uint64_t>(from._internal_offset()) != 0) {
1547 _this->_impl_.offset_ = from._impl_.offset_;
1548 }
1549 }
1550 if (CheckHasBit(cached_has_bits, 0x00000010U)) {
1551 if (from._internal_priority() != 0) {
1552 _this->_impl_.priority_ = from._impl_.priority_;
1553 }
1554 }
1555 if (CheckHasBit(cached_has_bits, 0x00000020U)) {
1556 if (from._internal_maximize() != 0) {
1557 _this->_impl_.maximize_ = from._impl_.maximize_;
1558 }
1559 }
1560 }
1561 _this->_impl_._has_bits_[0] |= cached_has_bits;
1562 _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(
1563 from._internal_metadata_);
1564}
1565
1566void ObjectiveProto::CopyFrom(const ObjectiveProto& from) {
1567 // @@protoc_insertion_point(class_specific_copy_from_start:operations_research.math_opt.ObjectiveProto)
1568 if (&from == this) return;
1569 Clear();
1570 MergeFrom(from);
1571}
1572
1573
1574void ObjectiveProto::InternalSwap(ObjectiveProto* PROTOBUF_RESTRICT PROTOBUF_NONNULL other) {
1575 using ::std::swap;
1576 auto* arena = GetArena();
1577 ABSL_DCHECK_EQ(arena, other->GetArena());
1578 _internal_metadata_.InternalSwap(&other->_internal_metadata_);
1579 swap(_impl_._has_bits_[0], other->_impl_._has_bits_[0]);
1580 ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.name_, &other->_impl_.name_, arena);
1581 ::google::protobuf::internal::memswap<
1582 PROTOBUF_FIELD_OFFSET(ObjectiveProto, _impl_.maximize_)
1583 + sizeof(ObjectiveProto::_impl_.maximize_)
1584 - PROTOBUF_FIELD_OFFSET(ObjectiveProto, _impl_.linear_coefficients_)>(
1585 reinterpret_cast<char*>(&_impl_.linear_coefficients_),
1586 reinterpret_cast<char*>(&other->_impl_.linear_coefficients_));
1587}
1588
1589::google::protobuf::Metadata ObjectiveProto::GetMetadata() const {
1590 return ::google::protobuf::Message::GetMetadataImpl(GetClassData()->full());
1592// ===================================================================
1593
1595 public:
1596 using HasBits =
1597 decltype(::std::declval<LinearConstraintsProto>()._impl_._has_bits_);
1598 static constexpr ::int32_t kHasBitsOffset =
1599 8 * PROTOBUF_FIELD_OFFSET(LinearConstraintsProto, _impl_._has_bits_);
1600};
1602LinearConstraintsProto::LinearConstraintsProto(::google::protobuf::Arena* PROTOBUF_NULLABLE arena)
1603#if defined(PROTOBUF_CUSTOM_VTABLE)
1604 : ::google::protobuf::Message(arena, LinearConstraintsProto_class_data_.base()) {
1605#else // PROTOBUF_CUSTOM_VTABLE
1606 : ::google::protobuf::Message(arena) {
1607#endif // PROTOBUF_CUSTOM_VTABLE
1608 SharedCtor(arena);
1609 // @@protoc_insertion_point(arena_constructor:operations_research.math_opt.LinearConstraintsProto)
1610}
1611PROTOBUF_NDEBUG_INLINE LinearConstraintsProto::Impl_::Impl_(
1612 [[maybe_unused]] ::google::protobuf::internal::InternalVisibility visibility,
1613 [[maybe_unused]] ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const Impl_& from,
1614 [[maybe_unused]] const ::operations_research::math_opt::LinearConstraintsProto& from_msg)
1615 : _has_bits_{from._has_bits_},
1616 _cached_size_{0},
1617 ids_{visibility, arena, from.ids_},
1618 _ids_cached_byte_size_{0},
1619 lower_bounds_{visibility, arena, from.lower_bounds_},
1620 upper_bounds_{visibility, arena, from.upper_bounds_},
1621 names_{visibility, arena, from.names_} {}
1622
1624 ::google::protobuf::Arena* PROTOBUF_NULLABLE arena,
1625 const LinearConstraintsProto& from)
1626#if defined(PROTOBUF_CUSTOM_VTABLE)
1627 : ::google::protobuf::Message(arena, LinearConstraintsProto_class_data_.base()) {
1628#else // PROTOBUF_CUSTOM_VTABLE
1629 : ::google::protobuf::Message(arena) {
1630#endif // PROTOBUF_CUSTOM_VTABLE
1631 LinearConstraintsProto* const _this = this;
1632 (void)_this;
1633 _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(
1634 from._internal_metadata_);
1635 new (&_impl_) Impl_(internal_visibility(), arena, from._impl_, from);
1636
1637 // @@protoc_insertion_point(copy_constructor:operations_research.math_opt.LinearConstraintsProto)
1638}
1639PROTOBUF_NDEBUG_INLINE LinearConstraintsProto::Impl_::Impl_(
1640 [[maybe_unused]] ::google::protobuf::internal::InternalVisibility visibility,
1641 [[maybe_unused]] ::google::protobuf::Arena* PROTOBUF_NULLABLE arena)
1642 : _cached_size_{0},
1643 ids_{visibility, arena},
1644 _ids_cached_byte_size_{0},
1645 lower_bounds_{visibility, arena},
1646 upper_bounds_{visibility, arena},
1647 names_{visibility, arena} {}
1648
1649inline void LinearConstraintsProto::SharedCtor(::_pb::Arena* PROTOBUF_NULLABLE arena) {
1650 new (&_impl_) Impl_(internal_visibility(), arena);
1651}
1653 // @@protoc_insertion_point(destructor:operations_research.math_opt.LinearConstraintsProto)
1654 SharedDtor(*this);
1656inline void LinearConstraintsProto::SharedDtor(MessageLite& self) {
1657 LinearConstraintsProto& this_ = static_cast<LinearConstraintsProto&>(self);
1658 if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) {
1659 this_.CheckHasBitConsistency();
1660 }
1661 this_._internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>();
1662 ABSL_DCHECK(this_.GetArena() == nullptr);
1663 this_._impl_.~Impl_();
1664}
1665
1666inline void* PROTOBUF_NONNULL LinearConstraintsProto::PlacementNew_(
1667 const void* PROTOBUF_NONNULL, void* PROTOBUF_NONNULL mem,
1668 ::google::protobuf::Arena* PROTOBUF_NULLABLE arena) {
1669 return ::new (mem) LinearConstraintsProto(arena);
1670}
1671constexpr auto LinearConstraintsProto::InternalNewImpl_() {
1672 constexpr auto arena_bits = ::google::protobuf::internal::EncodePlacementArenaOffsets({
1673 PROTOBUF_FIELD_OFFSET(LinearConstraintsProto, _impl_.ids_) +
1674 decltype(LinearConstraintsProto::_impl_.ids_)::
1675 InternalGetArenaOffset(
1676 ::google::protobuf::Message::internal_visibility()),
1677 PROTOBUF_FIELD_OFFSET(LinearConstraintsProto, _impl_.lower_bounds_) +
1678 decltype(LinearConstraintsProto::_impl_.lower_bounds_)::
1679 InternalGetArenaOffset(
1680 ::google::protobuf::Message::internal_visibility()),
1681 PROTOBUF_FIELD_OFFSET(LinearConstraintsProto, _impl_.upper_bounds_) +
1682 decltype(LinearConstraintsProto::_impl_.upper_bounds_)::
1683 InternalGetArenaOffset(
1684 ::google::protobuf::Message::internal_visibility()),
1685 PROTOBUF_FIELD_OFFSET(LinearConstraintsProto, _impl_.names_) +
1686 decltype(LinearConstraintsProto::_impl_.names_)::
1687 InternalGetArenaOffset(
1688 ::google::protobuf::Message::internal_visibility()),
1689 });
1690 if (arena_bits.has_value()) {
1691 return ::google::protobuf::internal::MessageCreator::ZeroInit(
1692 sizeof(LinearConstraintsProto), alignof(LinearConstraintsProto), *arena_bits);
1693 } else {
1694 return ::google::protobuf::internal::MessageCreator(&LinearConstraintsProto::PlacementNew_,
1695 sizeof(LinearConstraintsProto),
1696 alignof(LinearConstraintsProto));
1697 }
1698}
1700 return ::google::protobuf::internal::ClassDataFull{
1701 ::google::protobuf::internal::ClassData{
1703 &_table_.header,
1704 nullptr, // OnDemandRegisterArenaDtor
1705 nullptr, // IsInitialized
1706 &LinearConstraintsProto::MergeImpl,
1707 ::google::protobuf::Message::GetNewImpl<LinearConstraintsProto>(),
1708#if defined(PROTOBUF_CUSTOM_VTABLE)
1709 &LinearConstraintsProto::SharedDtor,
1710 ::google::protobuf::Message::GetClearImpl<LinearConstraintsProto>(), &LinearConstraintsProto::ByteSizeLong,
1712#endif // PROTOBUF_CUSTOM_VTABLE
1713 PROTOBUF_FIELD_OFFSET(LinearConstraintsProto, _impl_._cached_size_),
1714 false,
1715 },
1716 &LinearConstraintsProto::kDescriptorMethods,
1718 nullptr, // tracker
1719 };
1720}
1721
1722PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 const
1723 ::google::protobuf::internal::ClassDataFull LinearConstraintsProto_class_data_ =
1725
1726PROTOBUF_ATTRIBUTE_WEAK const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL
1727LinearConstraintsProto::GetClassData() const {
1728 ::google::protobuf::internal::PrefetchToLocalCache(&LinearConstraintsProto_class_data_);
1729 ::google::protobuf::internal::PrefetchToLocalCache(LinearConstraintsProto_class_data_.tc_table);
1731}
1732PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1
1733const ::_pbi::TcParseTable<2, 4, 0, 65, 2>
1734LinearConstraintsProto::_table_ = {
1735 {
1736 PROTOBUF_FIELD_OFFSET(LinearConstraintsProto, _impl_._has_bits_),
1737 0, // no _extensions_
1738 4, 24, // max_field_number, fast_idx_mask
1739 offsetof(decltype(_table_), field_lookup_table),
1740 4294967280, // skipmap
1741 offsetof(decltype(_table_), field_entries),
1742 4, // num_field_entries
1743 0, // num_aux_entries
1744 offsetof(decltype(_table_), field_names), // no aux_entries
1746 nullptr, // post_loop_handler
1747 ::_pbi::TcParser::GenericFallback, // fallback
1748 #ifdef PROTOBUF_PREFETCH_PARSE_TABLE
1749 ::_pbi::TcParser::GetTable<::operations_research::math_opt::LinearConstraintsProto>(), // to_prefetch
1750 #endif // PROTOBUF_PREFETCH_PARSE_TABLE
1751 }, {{
1752 // repeated string names = 4;
1753 {::_pbi::TcParser::FastUR1,
1754 {34, 3, 0,
1755 PROTOBUF_FIELD_OFFSET(LinearConstraintsProto, _impl_.names_)}},
1756 // repeated int64 ids = 1;
1757 {::_pbi::TcParser::FastV64P1,
1758 {10, 0, 0,
1759 PROTOBUF_FIELD_OFFSET(LinearConstraintsProto, _impl_.ids_)}},
1760 // repeated double lower_bounds = 2;
1761 {::_pbi::TcParser::FastF64P1,
1762 {18, 1, 0,
1763 PROTOBUF_FIELD_OFFSET(LinearConstraintsProto, _impl_.lower_bounds_)}},
1764 // repeated double upper_bounds = 3;
1765 {::_pbi::TcParser::FastF64P1,
1766 {26, 2, 0,
1767 PROTOBUF_FIELD_OFFSET(LinearConstraintsProto, _impl_.upper_bounds_)}},
1768 }}, {{
1769 65535, 65535
1770 }}, {{
1771 // repeated int64 ids = 1;
1772 {PROTOBUF_FIELD_OFFSET(LinearConstraintsProto, _impl_.ids_), _Internal::kHasBitsOffset + 0, 0, (0 | ::_fl::kFcRepeated | ::_fl::kPackedInt64)},
1773 // repeated double lower_bounds = 2;
1774 {PROTOBUF_FIELD_OFFSET(LinearConstraintsProto, _impl_.lower_bounds_), _Internal::kHasBitsOffset + 1, 0, (0 | ::_fl::kFcRepeated | ::_fl::kPackedDouble)},
1775 // repeated double upper_bounds = 3;
1776 {PROTOBUF_FIELD_OFFSET(LinearConstraintsProto, _impl_.upper_bounds_), _Internal::kHasBitsOffset + 2, 0, (0 | ::_fl::kFcRepeated | ::_fl::kPackedDouble)},
1777 // repeated string names = 4;
1778 {PROTOBUF_FIELD_OFFSET(LinearConstraintsProto, _impl_.names_), _Internal::kHasBitsOffset + 3, 0, (0 | ::_fl::kFcRepeated | ::_fl::kUtf8String | ::_fl::kRepSString)},
1779 }},
1780 // no aux_entries
1781 {{
1782 "\63\0\0\0\5\0\0\0"
1783 "operations_research.math_opt.LinearConstraintsProto"
1784 "names"
1785 }},
1786};
1787PROTOBUF_NOINLINE void LinearConstraintsProto::Clear() {
1788// @@protoc_insertion_point(message_clear_start:operations_research.math_opt.LinearConstraintsProto)
1789 ::google::protobuf::internal::TSanWrite(&_impl_);
1790 ::uint32_t cached_has_bits = 0;
1791 // Prevent compiler warnings about cached_has_bits being unused
1792 (void) cached_has_bits;
1793
1794 cached_has_bits = _impl_._has_bits_[0];
1795 if (BatchCheckHasBit(cached_has_bits, 0x0000000fU)) {
1796 if (CheckHasBitForRepeated(cached_has_bits, 0x00000001U)) {
1797 _impl_.ids_.Clear();
1798 }
1799 if (CheckHasBitForRepeated(cached_has_bits, 0x00000002U)) {
1800 _impl_.lower_bounds_.Clear();
1801 }
1802 if (CheckHasBitForRepeated(cached_has_bits, 0x00000004U)) {
1803 _impl_.upper_bounds_.Clear();
1804 }
1805 if (CheckHasBitForRepeated(cached_has_bits, 0x00000008U)) {
1806 _impl_.names_.Clear();
1807 }
1808 }
1809 _impl_._has_bits_.Clear();
1810 _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>();
1811}
1812
1813#if defined(PROTOBUF_CUSTOM_VTABLE)
1814::uint8_t* PROTOBUF_NONNULL LinearConstraintsProto::_InternalSerialize(
1815 const ::google::protobuf::MessageLite& base, ::uint8_t* PROTOBUF_NONNULL target,
1816 ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) {
1817 const LinearConstraintsProto& this_ = static_cast<const LinearConstraintsProto&>(base);
1818#else // PROTOBUF_CUSTOM_VTABLE
1819::uint8_t* PROTOBUF_NONNULL LinearConstraintsProto::_InternalSerialize(
1820 ::uint8_t* PROTOBUF_NONNULL target,
1821 ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const {
1822 const LinearConstraintsProto& this_ = *this;
1823#endif // PROTOBUF_CUSTOM_VTABLE
1824 if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) {
1825 this_.CheckHasBitConsistency();
1826 }
1827 // @@protoc_insertion_point(serialize_to_array_start:operations_research.math_opt.LinearConstraintsProto)
1828 ::uint32_t cached_has_bits = 0;
1829 (void)cached_has_bits;
1830
1831 cached_has_bits = this_._impl_._has_bits_[0];
1832 // repeated int64 ids = 1;
1833 if (CheckHasBitForRepeated(cached_has_bits, 0x00000001U)) {
1834 {
1835 int byte_size = this_._impl_._ids_cached_byte_size_.Get();
1836 if (byte_size > 0) {
1837 target = stream->WriteInt64Packed(
1838 1, this_._internal_ids(), byte_size, target);
1839 }
1840 }
1841 }
1842
1843 // repeated double lower_bounds = 2;
1844 if (CheckHasBitForRepeated(cached_has_bits, 0x00000002U)) {
1845 if (this_._internal_lower_bounds_size() > 0) {
1846 target = stream->WriteFixedPacked(2, this_._internal_lower_bounds(), target);
1847 }
1848 }
1849
1850 // repeated double upper_bounds = 3;
1851 if (CheckHasBitForRepeated(cached_has_bits, 0x00000004U)) {
1852 if (this_._internal_upper_bounds_size() > 0) {
1853 target = stream->WriteFixedPacked(3, this_._internal_upper_bounds(), target);
1854 }
1855 }
1856
1857 // repeated string names = 4;
1858 if (CheckHasBitForRepeated(cached_has_bits, 0x00000008U)) {
1859 for (int i = 0, n = this_._internal_names_size(); i < n; ++i) {
1860 const auto& s = this_._internal_names().Get(i);
1861 ::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
1862 s.data(), static_cast<int>(s.length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "operations_research.math_opt.LinearConstraintsProto.names");
1863 target = stream->WriteString(4, s, target);
1864 }
1865 }
1866
1867 if (ABSL_PREDICT_FALSE(this_._internal_metadata_.have_unknown_fields())) {
1868 target =
1869 ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray(
1870 this_._internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream);
1871 }
1872 // @@protoc_insertion_point(serialize_to_array_end:operations_research.math_opt.LinearConstraintsProto)
1873 return target;
1874}
1875
1876#if defined(PROTOBUF_CUSTOM_VTABLE)
1878 const LinearConstraintsProto& this_ = static_cast<const LinearConstraintsProto&>(base);
1879#else // PROTOBUF_CUSTOM_VTABLE
1880::size_t LinearConstraintsProto::ByteSizeLong() const {
1881 const LinearConstraintsProto& this_ = *this;
1882#endif // PROTOBUF_CUSTOM_VTABLE
1883 // @@protoc_insertion_point(message_byte_size_start:operations_research.math_opt.LinearConstraintsProto)
1884 ::size_t total_size = 0;
1885
1886 ::uint32_t cached_has_bits = 0;
1887 // Prevent compiler warnings about cached_has_bits being unused
1888 (void)cached_has_bits;
1889
1890 ::_pbi::Prefetch5LinesFrom7Lines(&this_);
1891 cached_has_bits = this_._impl_._has_bits_[0];
1892 if (BatchCheckHasBit(cached_has_bits, 0x0000000fU)) {
1893 // repeated int64 ids = 1;
1894 if (CheckHasBitForRepeated(cached_has_bits, 0x00000001U)) {
1895 total_size +=
1896 ::_pbi::WireFormatLite::Int64SizeWithPackedTagSize(
1897 this_._internal_ids(), 1,
1898 this_._impl_._ids_cached_byte_size_);
1899 }
1900 // repeated double lower_bounds = 2;
1901 if (CheckHasBitForRepeated(cached_has_bits, 0x00000002U)) {
1902 ::size_t data_size = ::size_t{8} *
1903 ::_pbi::FromIntSize(this_._internal_lower_bounds_size());
1904 ::size_t tag_size = data_size == 0
1905 ? 0
1906 : 1 + ::_pbi::WireFormatLite::Int32Size(
1907 static_cast<::int32_t>(data_size));
1908 total_size += tag_size + data_size;
1909 }
1910 // repeated double upper_bounds = 3;
1911 if (CheckHasBitForRepeated(cached_has_bits, 0x00000004U)) {
1912 ::size_t data_size = ::size_t{8} *
1913 ::_pbi::FromIntSize(this_._internal_upper_bounds_size());
1914 ::size_t tag_size = data_size == 0
1915 ? 0
1916 : 1 + ::_pbi::WireFormatLite::Int32Size(
1917 static_cast<::int32_t>(data_size));
1918 total_size += tag_size + data_size;
1919 }
1920 // repeated string names = 4;
1921 if (CheckHasBitForRepeated(cached_has_bits, 0x00000008U)) {
1922 total_size +=
1923 1 * ::google::protobuf::internal::FromIntSize(this_._internal_names().size());
1924 for (int i = 0, n = this_._internal_names().size(); i < n; ++i) {
1925 total_size += ::google::protobuf::internal::WireFormatLite::StringSize(
1926 this_._internal_names().Get(i));
1927 }
1928 }
1929 }
1930 return this_.MaybeComputeUnknownFieldsSize(total_size,
1931 &this_._impl_._cached_size_);
1932}
1933
1934void LinearConstraintsProto::MergeImpl(::google::protobuf::MessageLite& to_msg,
1935 const ::google::protobuf::MessageLite& from_msg) {
1936 auto* const _this =
1937 static_cast<LinearConstraintsProto*>(&to_msg);
1938 auto& from = static_cast<const LinearConstraintsProto&>(from_msg);
1939 if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) {
1940 from.CheckHasBitConsistency();
1941 }
1942 ::google::protobuf::Arena* arena = _this->GetArena();
1943 // @@protoc_insertion_point(class_specific_merge_from_start:operations_research.math_opt.LinearConstraintsProto)
1944 ABSL_DCHECK_NE(&from, _this);
1945 ::uint32_t cached_has_bits = 0;
1946 (void)cached_has_bits;
1947
1948 cached_has_bits = from._impl_._has_bits_[0];
1949 if (BatchCheckHasBit(cached_has_bits, 0x0000000fU)) {
1950 if (CheckHasBitForRepeated(cached_has_bits, 0x00000001U)) {
1951 _this->_internal_mutable_ids()->MergeFrom(from._internal_ids());
1952 }
1953 if (CheckHasBitForRepeated(cached_has_bits, 0x00000002U)) {
1954 _this->_internal_mutable_lower_bounds()->MergeFrom(from._internal_lower_bounds());
1955 }
1956 if (CheckHasBitForRepeated(cached_has_bits, 0x00000004U)) {
1957 _this->_internal_mutable_upper_bounds()->MergeFrom(from._internal_upper_bounds());
1958 }
1959 if (CheckHasBitForRepeated(cached_has_bits, 0x00000008U)) {
1960 _this->_internal_mutable_names()->InternalMergeFromWithArena(
1961 ::google::protobuf::MessageLite::internal_visibility(), arena,
1962 from._internal_names());
1963 }
1964 }
1965 _this->_impl_._has_bits_[0] |= cached_has_bits;
1966 _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(
1967 from._internal_metadata_);
1968}
1969
1970void LinearConstraintsProto::CopyFrom(const LinearConstraintsProto& from) {
1971 // @@protoc_insertion_point(class_specific_copy_from_start:operations_research.math_opt.LinearConstraintsProto)
1972 if (&from == this) return;
1974 MergeFrom(from);
1975}
1976
1977
1978void LinearConstraintsProto::InternalSwap(LinearConstraintsProto* PROTOBUF_RESTRICT PROTOBUF_NONNULL other) {
1979 using ::std::swap;
1980 _internal_metadata_.InternalSwap(&other->_internal_metadata_);
1981 swap(_impl_._has_bits_[0], other->_impl_._has_bits_[0]);
1982 _impl_.ids_.InternalSwap(&other->_impl_.ids_);
1983 _impl_.lower_bounds_.InternalSwap(&other->_impl_.lower_bounds_);
1984 _impl_.upper_bounds_.InternalSwap(&other->_impl_.upper_bounds_);
1985 _impl_.names_.InternalSwap(&other->_impl_.names_);
1986}
1987
1988::google::protobuf::Metadata LinearConstraintsProto::GetMetadata() const {
1989 return ::google::protobuf::Message::GetMetadataImpl(GetClassData()->full());
1990}
1991// ===================================================================
1992
1994 public:
1995 using HasBits =
1996 decltype(::std::declval<QuadraticConstraintProto>()._impl_._has_bits_);
1997 static constexpr ::int32_t kHasBitsOffset =
1998 8 * PROTOBUF_FIELD_OFFSET(QuadraticConstraintProto, _impl_._has_bits_);
2000
2002 ::google::protobuf::internal::TSanWrite(&_impl_);
2003 if (_impl_.linear_terms_ != nullptr) _impl_.linear_terms_->Clear();
2004 ClearHasBit(_impl_._has_bits_[0],
2005 0x00000002U);
2006}
2008 ::google::protobuf::internal::TSanWrite(&_impl_);
2009 if (_impl_.quadratic_terms_ != nullptr) _impl_.quadratic_terms_->Clear();
2010 ClearHasBit(_impl_._has_bits_[0],
2011 0x00000004U);
2012}
2013QuadraticConstraintProto::QuadraticConstraintProto(::google::protobuf::Arena* PROTOBUF_NULLABLE arena)
2014#if defined(PROTOBUF_CUSTOM_VTABLE)
2015 : ::google::protobuf::Message(arena, QuadraticConstraintProto_class_data_.base()) {
2016#else // PROTOBUF_CUSTOM_VTABLE
2017 : ::google::protobuf::Message(arena) {
2018#endif // PROTOBUF_CUSTOM_VTABLE
2019 SharedCtor(arena);
2020 // @@protoc_insertion_point(arena_constructor:operations_research.math_opt.QuadraticConstraintProto)
2021}
2022PROTOBUF_NDEBUG_INLINE QuadraticConstraintProto::Impl_::Impl_(
2023 [[maybe_unused]] ::google::protobuf::internal::InternalVisibility visibility,
2024 [[maybe_unused]] ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const Impl_& from,
2025 [[maybe_unused]] const ::operations_research::math_opt::QuadraticConstraintProto& from_msg)
2026 : _has_bits_{from._has_bits_},
2027 _cached_size_{0},
2028 name_(arena, from.name_) {}
2029
2031 ::google::protobuf::Arena* PROTOBUF_NULLABLE arena,
2032 const QuadraticConstraintProto& from)
2033#if defined(PROTOBUF_CUSTOM_VTABLE)
2034 : ::google::protobuf::Message(arena, QuadraticConstraintProto_class_data_.base()) {
2035#else // PROTOBUF_CUSTOM_VTABLE
2036 : ::google::protobuf::Message(arena) {
2037#endif // PROTOBUF_CUSTOM_VTABLE
2038 QuadraticConstraintProto* const _this = this;
2039 (void)_this;
2040 _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(
2041 from._internal_metadata_);
2042 new (&_impl_) Impl_(internal_visibility(), arena, from._impl_, from);
2043 ::uint32_t cached_has_bits = _impl_._has_bits_[0];
2044 _impl_.linear_terms_ = (CheckHasBit(cached_has_bits, 0x00000002U))
2045 ? ::google::protobuf::Message::CopyConstruct(arena, *from._impl_.linear_terms_)
2046 : nullptr;
2047 _impl_.quadratic_terms_ = (CheckHasBit(cached_has_bits, 0x00000004U))
2048 ? ::google::protobuf::Message::CopyConstruct(arena, *from._impl_.quadratic_terms_)
2049 : nullptr;
2050 ::memcpy(reinterpret_cast<char*>(&_impl_) +
2051 offsetof(Impl_, lower_bound_),
2052 reinterpret_cast<const char*>(&from._impl_) +
2053 offsetof(Impl_, lower_bound_),
2054 offsetof(Impl_, upper_bound_) -
2055 offsetof(Impl_, lower_bound_) +
2056 sizeof(Impl_::upper_bound_));
2057
2058 // @@protoc_insertion_point(copy_constructor:operations_research.math_opt.QuadraticConstraintProto)
2059}
2060PROTOBUF_NDEBUG_INLINE QuadraticConstraintProto::Impl_::Impl_(
2061 [[maybe_unused]] ::google::protobuf::internal::InternalVisibility visibility,
2062 [[maybe_unused]] ::google::protobuf::Arena* PROTOBUF_NULLABLE arena)
2063 : _cached_size_{0},
2064 name_(arena) {}
2065
2066inline void QuadraticConstraintProto::SharedCtor(::_pb::Arena* PROTOBUF_NULLABLE arena) {
2067 new (&_impl_) Impl_(internal_visibility(), arena);
2068 ::memset(reinterpret_cast<char*>(&_impl_) +
2069 offsetof(Impl_, linear_terms_),
2070 0,
2071 offsetof(Impl_, upper_bound_) -
2072 offsetof(Impl_, linear_terms_) +
2073 sizeof(Impl_::upper_bound_));
2074}
2076 // @@protoc_insertion_point(destructor:operations_research.math_opt.QuadraticConstraintProto)
2077 SharedDtor(*this);
2078}
2079inline void QuadraticConstraintProto::SharedDtor(MessageLite& self) {
2080 QuadraticConstraintProto& this_ = static_cast<QuadraticConstraintProto&>(self);
2081 if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) {
2082 this_.CheckHasBitConsistency();
2083 }
2084 this_._internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>();
2085 ABSL_DCHECK(this_.GetArena() == nullptr);
2086 this_._impl_.name_.Destroy();
2087 delete this_._impl_.linear_terms_;
2088 delete this_._impl_.quadratic_terms_;
2089 this_._impl_.~Impl_();
2090}
2091
2092inline void* PROTOBUF_NONNULL QuadraticConstraintProto::PlacementNew_(
2093 const void* PROTOBUF_NONNULL, void* PROTOBUF_NONNULL mem,
2094 ::google::protobuf::Arena* PROTOBUF_NULLABLE arena) {
2095 return ::new (mem) QuadraticConstraintProto(arena);
2096}
2097constexpr auto QuadraticConstraintProto::InternalNewImpl_() {
2098 return ::google::protobuf::internal::MessageCreator::CopyInit(sizeof(QuadraticConstraintProto),
2099 alignof(QuadraticConstraintProto));
2100}
2102 return ::google::protobuf::internal::ClassDataFull{
2103 ::google::protobuf::internal::ClassData{
2105 &_table_.header,
2106 nullptr, // OnDemandRegisterArenaDtor
2107 nullptr, // IsInitialized
2108 &QuadraticConstraintProto::MergeImpl,
2109 ::google::protobuf::Message::GetNewImpl<QuadraticConstraintProto>(),
2110#if defined(PROTOBUF_CUSTOM_VTABLE)
2111 &QuadraticConstraintProto::SharedDtor,
2112 ::google::protobuf::Message::GetClearImpl<QuadraticConstraintProto>(), &QuadraticConstraintProto::ByteSizeLong,
2114#endif // PROTOBUF_CUSTOM_VTABLE
2115 PROTOBUF_FIELD_OFFSET(QuadraticConstraintProto, _impl_._cached_size_),
2116 false,
2117 },
2118 &QuadraticConstraintProto::kDescriptorMethods,
2120 nullptr, // tracker
2121 };
2122}
2123
2124PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 const
2125 ::google::protobuf::internal::ClassDataFull QuadraticConstraintProto_class_data_ =
2127
2128PROTOBUF_ATTRIBUTE_WEAK const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL
2129QuadraticConstraintProto::GetClassData() const {
2130 ::google::protobuf::internal::PrefetchToLocalCache(&QuadraticConstraintProto_class_data_);
2131 ::google::protobuf::internal::PrefetchToLocalCache(QuadraticConstraintProto_class_data_.tc_table);
2133}
2134PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1
2135const ::_pbi::TcParseTable<3, 5, 2, 66, 2>
2136QuadraticConstraintProto::_table_ = {
2137 {
2138 PROTOBUF_FIELD_OFFSET(QuadraticConstraintProto, _impl_._has_bits_),
2139 0, // no _extensions_
2140 5, 56, // max_field_number, fast_idx_mask
2141 offsetof(decltype(_table_), field_lookup_table),
2142 4294967264, // skipmap
2143 offsetof(decltype(_table_), field_entries),
2144 5, // num_field_entries
2145 2, // num_aux_entries
2146 offsetof(decltype(_table_), aux_entries),
2148 nullptr, // post_loop_handler
2149 ::_pbi::TcParser::GenericFallback, // fallback
2150 #ifdef PROTOBUF_PREFETCH_PARSE_TABLE
2151 ::_pbi::TcParser::GetTable<::operations_research::math_opt::QuadraticConstraintProto>(), // to_prefetch
2152 #endif // PROTOBUF_PREFETCH_PARSE_TABLE
2153 }, {{
2154 {::_pbi::TcParser::MiniParse, {}},
2155 // .operations_research.math_opt.SparseDoubleVectorProto linear_terms = 1;
2156 {::_pbi::TcParser::FastMtS1,
2157 {10, 1, 0,
2158 PROTOBUF_FIELD_OFFSET(QuadraticConstraintProto, _impl_.linear_terms_)}},
2159 // .operations_research.math_opt.SparseDoubleMatrixProto quadratic_terms = 2;
2160 {::_pbi::TcParser::FastMtS1,
2161 {18, 2, 1,
2162 PROTOBUF_FIELD_OFFSET(QuadraticConstraintProto, _impl_.quadratic_terms_)}},
2163 // double lower_bound = 3;
2164 {::_pbi::TcParser::FastF64S1,
2165 {25, 3, 0,
2166 PROTOBUF_FIELD_OFFSET(QuadraticConstraintProto, _impl_.lower_bound_)}},
2167 // double upper_bound = 4;
2168 {::_pbi::TcParser::FastF64S1,
2169 {33, 4, 0,
2170 PROTOBUF_FIELD_OFFSET(QuadraticConstraintProto, _impl_.upper_bound_)}},
2171 // string name = 5;
2172 {::_pbi::TcParser::FastUS1,
2173 {42, 0, 0,
2174 PROTOBUF_FIELD_OFFSET(QuadraticConstraintProto, _impl_.name_)}},
2175 {::_pbi::TcParser::MiniParse, {}},
2176 {::_pbi::TcParser::MiniParse, {}},
2177 }}, {{
2178 65535, 65535
2179 }}, {{
2180 // .operations_research.math_opt.SparseDoubleVectorProto linear_terms = 1;
2181 {PROTOBUF_FIELD_OFFSET(QuadraticConstraintProto, _impl_.linear_terms_), _Internal::kHasBitsOffset + 1, 0, (0 | ::_fl::kFcOptional | ::_fl::kMessage | ::_fl::kTvTable)},
2182 // .operations_research.math_opt.SparseDoubleMatrixProto quadratic_terms = 2;
2183 {PROTOBUF_FIELD_OFFSET(QuadraticConstraintProto, _impl_.quadratic_terms_), _Internal::kHasBitsOffset + 2, 1, (0 | ::_fl::kFcOptional | ::_fl::kMessage | ::_fl::kTvTable)},
2184 // double lower_bound = 3;
2185 {PROTOBUF_FIELD_OFFSET(QuadraticConstraintProto, _impl_.lower_bound_), _Internal::kHasBitsOffset + 3, 0, (0 | ::_fl::kFcOptional | ::_fl::kDouble)},
2186 // double upper_bound = 4;
2187 {PROTOBUF_FIELD_OFFSET(QuadraticConstraintProto, _impl_.upper_bound_), _Internal::kHasBitsOffset + 4, 0, (0 | ::_fl::kFcOptional | ::_fl::kDouble)},
2188 // string name = 5;
2189 {PROTOBUF_FIELD_OFFSET(QuadraticConstraintProto, _impl_.name_), _Internal::kHasBitsOffset + 0, 0, (0 | ::_fl::kFcOptional | ::_fl::kUtf8String | ::_fl::kRepAString)},
2190 }},
2191 {{
2192 {::_pbi::TcParser::GetTable<::operations_research::math_opt::SparseDoubleVectorProto>()},
2193 {::_pbi::TcParser::GetTable<::operations_research::math_opt::SparseDoubleMatrixProto>()},
2194 }},
2195 {{
2196 "\65\0\0\0\0\4\0\0"
2197 "operations_research.math_opt.QuadraticConstraintProto"
2198 "name"
2199 }},
2200};
2201PROTOBUF_NOINLINE void QuadraticConstraintProto::Clear() {
2202// @@protoc_insertion_point(message_clear_start:operations_research.math_opt.QuadraticConstraintProto)
2203 ::google::protobuf::internal::TSanWrite(&_impl_);
2204 ::uint32_t cached_has_bits = 0;
2205 // Prevent compiler warnings about cached_has_bits being unused
2206 (void) cached_has_bits;
2207
2208 cached_has_bits = _impl_._has_bits_[0];
2209 if (BatchCheckHasBit(cached_has_bits, 0x00000007U)) {
2210 if (CheckHasBit(cached_has_bits, 0x00000001U)) {
2211 _impl_.name_.ClearNonDefaultToEmpty();
2212 }
2213 if (CheckHasBit(cached_has_bits, 0x00000002U)) {
2214 ABSL_DCHECK(_impl_.linear_terms_ != nullptr);
2215 _impl_.linear_terms_->Clear();
2216 }
2217 if (CheckHasBit(cached_has_bits, 0x00000004U)) {
2218 ABSL_DCHECK(_impl_.quadratic_terms_ != nullptr);
2219 _impl_.quadratic_terms_->Clear();
2220 }
2221 }
2222 if (BatchCheckHasBit(cached_has_bits, 0x00000018U)) {
2223 ::memset(&_impl_.lower_bound_, 0, static_cast<::size_t>(
2224 reinterpret_cast<char*>(&_impl_.upper_bound_) -
2225 reinterpret_cast<char*>(&_impl_.lower_bound_)) + sizeof(_impl_.upper_bound_));
2226 }
2227 _impl_._has_bits_.Clear();
2228 _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>();
2229}
2230
2231#if defined(PROTOBUF_CUSTOM_VTABLE)
2232::uint8_t* PROTOBUF_NONNULL QuadraticConstraintProto::_InternalSerialize(
2233 const ::google::protobuf::MessageLite& base, ::uint8_t* PROTOBUF_NONNULL target,
2234 ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) {
2235 const QuadraticConstraintProto& this_ = static_cast<const QuadraticConstraintProto&>(base);
2236#else // PROTOBUF_CUSTOM_VTABLE
2237::uint8_t* PROTOBUF_NONNULL QuadraticConstraintProto::_InternalSerialize(
2238 ::uint8_t* PROTOBUF_NONNULL target,
2239 ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const {
2240 const QuadraticConstraintProto& this_ = *this;
2241#endif // PROTOBUF_CUSTOM_VTABLE
2242 if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) {
2243 this_.CheckHasBitConsistency();
2244 }
2245 // @@protoc_insertion_point(serialize_to_array_start:operations_research.math_opt.QuadraticConstraintProto)
2246 ::uint32_t cached_has_bits = 0;
2247 (void)cached_has_bits;
2248
2249 cached_has_bits = this_._impl_._has_bits_[0];
2250 // .operations_research.math_opt.SparseDoubleVectorProto linear_terms = 1;
2251 if (CheckHasBit(cached_has_bits, 0x00000002U)) {
2252 target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage(
2253 1, *this_._impl_.linear_terms_, this_._impl_.linear_terms_->GetCachedSize(), target,
2254 stream);
2255 }
2256
2257 // .operations_research.math_opt.SparseDoubleMatrixProto quadratic_terms = 2;
2258 if (CheckHasBit(cached_has_bits, 0x00000004U)) {
2259 target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage(
2260 2, *this_._impl_.quadratic_terms_, this_._impl_.quadratic_terms_->GetCachedSize(), target,
2261 stream);
2262 }
2263
2264 // double lower_bound = 3;
2265 if (CheckHasBit(cached_has_bits, 0x00000008U)) {
2266 if (::absl::bit_cast<::uint64_t>(this_._internal_lower_bound()) != 0) {
2267 target = stream->EnsureSpace(target);
2268 target = ::_pbi::WireFormatLite::WriteDoubleToArray(
2269 3, this_._internal_lower_bound(), target);
2270 }
2271 }
2272
2273 // double upper_bound = 4;
2274 if (CheckHasBit(cached_has_bits, 0x00000010U)) {
2275 if (::absl::bit_cast<::uint64_t>(this_._internal_upper_bound()) != 0) {
2276 target = stream->EnsureSpace(target);
2277 target = ::_pbi::WireFormatLite::WriteDoubleToArray(
2278 4, this_._internal_upper_bound(), target);
2279 }
2280 }
2281
2282 // string name = 5;
2283 if (CheckHasBit(cached_has_bits, 0x00000001U)) {
2284 if (!this_._internal_name().empty()) {
2285 const ::std::string& _s = this_._internal_name();
2286 ::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
2287 _s.data(), static_cast<int>(_s.length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "operations_research.math_opt.QuadraticConstraintProto.name");
2288 target = stream->WriteStringMaybeAliased(5, _s, target);
2289 }
2290 }
2291
2292 if (ABSL_PREDICT_FALSE(this_._internal_metadata_.have_unknown_fields())) {
2293 target =
2294 ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray(
2295 this_._internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream);
2296 }
2297 // @@protoc_insertion_point(serialize_to_array_end:operations_research.math_opt.QuadraticConstraintProto)
2298 return target;
2299}
2300
2301#if defined(PROTOBUF_CUSTOM_VTABLE)
2303 const QuadraticConstraintProto& this_ = static_cast<const QuadraticConstraintProto&>(base);
2304#else // PROTOBUF_CUSTOM_VTABLE
2306 const QuadraticConstraintProto& this_ = *this;
2307#endif // PROTOBUF_CUSTOM_VTABLE
2308 // @@protoc_insertion_point(message_byte_size_start:operations_research.math_opt.QuadraticConstraintProto)
2309 ::size_t total_size = 0;
2310
2311 ::uint32_t cached_has_bits = 0;
2312 // Prevent compiler warnings about cached_has_bits being unused
2313 (void)cached_has_bits;
2314
2315 ::_pbi::Prefetch5LinesFrom7Lines(&this_);
2316 cached_has_bits = this_._impl_._has_bits_[0];
2317 if (BatchCheckHasBit(cached_has_bits, 0x0000001fU)) {
2318 // string name = 5;
2319 if (CheckHasBit(cached_has_bits, 0x00000001U)) {
2320 if (!this_._internal_name().empty()) {
2321 total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize(
2322 this_._internal_name());
2323 }
2324 }
2325 // .operations_research.math_opt.SparseDoubleVectorProto linear_terms = 1;
2326 if (CheckHasBit(cached_has_bits, 0x00000002U)) {
2327 total_size += 1 +
2328 ::google::protobuf::internal::WireFormatLite::MessageSize(*this_._impl_.linear_terms_);
2329 }
2330 // .operations_research.math_opt.SparseDoubleMatrixProto quadratic_terms = 2;
2331 if (CheckHasBit(cached_has_bits, 0x00000004U)) {
2332 total_size += 1 +
2333 ::google::protobuf::internal::WireFormatLite::MessageSize(*this_._impl_.quadratic_terms_);
2334 }
2335 // double lower_bound = 3;
2336 if (CheckHasBit(cached_has_bits, 0x00000008U)) {
2337 if (::absl::bit_cast<::uint64_t>(this_._internal_lower_bound()) != 0) {
2338 total_size += 9;
2339 }
2340 }
2341 // double upper_bound = 4;
2342 if (CheckHasBit(cached_has_bits, 0x00000010U)) {
2343 if (::absl::bit_cast<::uint64_t>(this_._internal_upper_bound()) != 0) {
2344 total_size += 9;
2345 }
2346 }
2347 }
2348 return this_.MaybeComputeUnknownFieldsSize(total_size,
2349 &this_._impl_._cached_size_);
2350}
2351
2352void QuadraticConstraintProto::MergeImpl(::google::protobuf::MessageLite& to_msg,
2353 const ::google::protobuf::MessageLite& from_msg) {
2354 auto* const _this =
2355 static_cast<QuadraticConstraintProto*>(&to_msg);
2356 auto& from = static_cast<const QuadraticConstraintProto&>(from_msg);
2357 if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) {
2358 from.CheckHasBitConsistency();
2359 }
2360 ::google::protobuf::Arena* arena = _this->GetArena();
2361 // @@protoc_insertion_point(class_specific_merge_from_start:operations_research.math_opt.QuadraticConstraintProto)
2362 ABSL_DCHECK_NE(&from, _this);
2363 ::uint32_t cached_has_bits = 0;
2364 (void)cached_has_bits;
2365
2366 cached_has_bits = from._impl_._has_bits_[0];
2367 if (BatchCheckHasBit(cached_has_bits, 0x0000001fU)) {
2368 if (CheckHasBit(cached_has_bits, 0x00000001U)) {
2369 if (!from._internal_name().empty()) {
2370 _this->_internal_set_name(from._internal_name());
2371 } else {
2372 if (_this->_impl_.name_.IsDefault()) {
2373 _this->_internal_set_name("");
2374 }
2375 }
2376 }
2377 if (CheckHasBit(cached_has_bits, 0x00000002U)) {
2378 ABSL_DCHECK(from._impl_.linear_terms_ != nullptr);
2379 if (_this->_impl_.linear_terms_ == nullptr) {
2380 _this->_impl_.linear_terms_ = ::google::protobuf::Message::CopyConstruct(arena, *from._impl_.linear_terms_);
2381 } else {
2382 _this->_impl_.linear_terms_->MergeFrom(*from._impl_.linear_terms_);
2383 }
2384 }
2385 if (CheckHasBit(cached_has_bits, 0x00000004U)) {
2386 ABSL_DCHECK(from._impl_.quadratic_terms_ != nullptr);
2387 if (_this->_impl_.quadratic_terms_ == nullptr) {
2388 _this->_impl_.quadratic_terms_ = ::google::protobuf::Message::CopyConstruct(arena, *from._impl_.quadratic_terms_);
2389 } else {
2390 _this->_impl_.quadratic_terms_->MergeFrom(*from._impl_.quadratic_terms_);
2391 }
2392 }
2393 if (CheckHasBit(cached_has_bits, 0x00000008U)) {
2394 if (::absl::bit_cast<::uint64_t>(from._internal_lower_bound()) != 0) {
2395 _this->_impl_.lower_bound_ = from._impl_.lower_bound_;
2396 }
2397 }
2398 if (CheckHasBit(cached_has_bits, 0x00000010U)) {
2399 if (::absl::bit_cast<::uint64_t>(from._internal_upper_bound()) != 0) {
2400 _this->_impl_.upper_bound_ = from._impl_.upper_bound_;
2401 }
2402 }
2403 }
2404 _this->_impl_._has_bits_[0] |= cached_has_bits;
2405 _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(
2406 from._internal_metadata_);
2407}
2408
2410 // @@protoc_insertion_point(class_specific_copy_from_start:operations_research.math_opt.QuadraticConstraintProto)
2411 if (&from == this) return;
2412 Clear();
2414}
2415
2416
2417void QuadraticConstraintProto::InternalSwap(QuadraticConstraintProto* PROTOBUF_RESTRICT PROTOBUF_NONNULL other) {
2418 using ::std::swap;
2419 auto* arena = GetArena();
2420 ABSL_DCHECK_EQ(arena, other->GetArena());
2421 _internal_metadata_.InternalSwap(&other->_internal_metadata_);
2422 swap(_impl_._has_bits_[0], other->_impl_._has_bits_[0]);
2423 ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.name_, &other->_impl_.name_, arena);
2424 ::google::protobuf::internal::memswap<
2425 PROTOBUF_FIELD_OFFSET(QuadraticConstraintProto, _impl_.upper_bound_)
2426 + sizeof(QuadraticConstraintProto::_impl_.upper_bound_)
2427 - PROTOBUF_FIELD_OFFSET(QuadraticConstraintProto, _impl_.linear_terms_)>(
2428 reinterpret_cast<char*>(&_impl_.linear_terms_),
2429 reinterpret_cast<char*>(&other->_impl_.linear_terms_));
2430}
2431
2432::google::protobuf::Metadata QuadraticConstraintProto::GetMetadata() const {
2433 return ::google::protobuf::Message::GetMetadataImpl(GetClassData()->full());
2434}
2435// ===================================================================
2439 using HasBits =
2440 decltype(::std::declval<SecondOrderConeConstraintProto>()._impl_._has_bits_);
2441 static constexpr ::int32_t kHasBitsOffset =
2442 8 * PROTOBUF_FIELD_OFFSET(SecondOrderConeConstraintProto, _impl_._has_bits_);
2443};
2446 ::google::protobuf::internal::TSanWrite(&_impl_);
2447 if (_impl_.upper_bound_ != nullptr) _impl_.upper_bound_->Clear();
2448 ClearHasBit(_impl_._has_bits_[0],
2449 0x00000004U);
2452 ::google::protobuf::internal::TSanWrite(&_impl_);
2453 _impl_.arguments_to_norm_.Clear();
2454 ClearHasBitForRepeated(_impl_._has_bits_[0],
2455 0x00000001U);
2457SecondOrderConeConstraintProto::SecondOrderConeConstraintProto(::google::protobuf::Arena* PROTOBUF_NULLABLE arena)
2458#if defined(PROTOBUF_CUSTOM_VTABLE)
2459 : ::google::protobuf::Message(arena, SecondOrderConeConstraintProto_class_data_.base()) {
2460#else // PROTOBUF_CUSTOM_VTABLE
2461 : ::google::protobuf::Message(arena) {
2462#endif // PROTOBUF_CUSTOM_VTABLE
2463 SharedCtor(arena);
2464 // @@protoc_insertion_point(arena_constructor:operations_research.math_opt.SecondOrderConeConstraintProto)
2465}
2466PROTOBUF_NDEBUG_INLINE SecondOrderConeConstraintProto::Impl_::Impl_(
2467 [[maybe_unused]] ::google::protobuf::internal::InternalVisibility visibility,
2468 [[maybe_unused]] ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const Impl_& from,
2469 [[maybe_unused]] const ::operations_research::math_opt::SecondOrderConeConstraintProto& from_msg)
2470 : _has_bits_{from._has_bits_},
2471 _cached_size_{0},
2472 arguments_to_norm_{visibility, arena, from.arguments_to_norm_},
2473 name_(arena, from.name_) {}
2474
2476 ::google::protobuf::Arena* PROTOBUF_NULLABLE arena,
2477 const SecondOrderConeConstraintProto& from)
2478#if defined(PROTOBUF_CUSTOM_VTABLE)
2479 : ::google::protobuf::Message(arena, SecondOrderConeConstraintProto_class_data_.base()) {
2480#else // PROTOBUF_CUSTOM_VTABLE
2481 : ::google::protobuf::Message(arena) {
2482#endif // PROTOBUF_CUSTOM_VTABLE
2483 SecondOrderConeConstraintProto* const _this = this;
2484 (void)_this;
2485 _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(
2486 from._internal_metadata_);
2487 new (&_impl_) Impl_(internal_visibility(), arena, from._impl_, from);
2488 ::uint32_t cached_has_bits = _impl_._has_bits_[0];
2489 _impl_.upper_bound_ = (CheckHasBit(cached_has_bits, 0x00000004U))
2490 ? ::google::protobuf::Message::CopyConstruct(arena, *from._impl_.upper_bound_)
2491 : nullptr;
2492
2493 // @@protoc_insertion_point(copy_constructor:operations_research.math_opt.SecondOrderConeConstraintProto)
2494}
2495PROTOBUF_NDEBUG_INLINE SecondOrderConeConstraintProto::Impl_::Impl_(
2496 [[maybe_unused]] ::google::protobuf::internal::InternalVisibility visibility,
2497 [[maybe_unused]] ::google::protobuf::Arena* PROTOBUF_NULLABLE arena)
2498 : _cached_size_{0},
2499 arguments_to_norm_{visibility, arena},
2500 name_(arena) {}
2501
2502inline void SecondOrderConeConstraintProto::SharedCtor(::_pb::Arena* PROTOBUF_NULLABLE arena) {
2503 new (&_impl_) Impl_(internal_visibility(), arena);
2504 _impl_.upper_bound_ = {};
2505}
2507 // @@protoc_insertion_point(destructor:operations_research.math_opt.SecondOrderConeConstraintProto)
2508 SharedDtor(*this);
2509}
2510inline void SecondOrderConeConstraintProto::SharedDtor(MessageLite& self) {
2512 if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) {
2513 this_.CheckHasBitConsistency();
2514 }
2515 this_._internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>();
2516 ABSL_DCHECK(this_.GetArena() == nullptr);
2517 this_._impl_.name_.Destroy();
2518 delete this_._impl_.upper_bound_;
2519 this_._impl_.~Impl_();
2520}
2521
2522inline void* PROTOBUF_NONNULL SecondOrderConeConstraintProto::PlacementNew_(
2523 const void* PROTOBUF_NONNULL, void* PROTOBUF_NONNULL mem,
2524 ::google::protobuf::Arena* PROTOBUF_NULLABLE arena) {
2525 return ::new (mem) SecondOrderConeConstraintProto(arena);
2526}
2527constexpr auto SecondOrderConeConstraintProto::InternalNewImpl_() {
2528 constexpr auto arena_bits = ::google::protobuf::internal::EncodePlacementArenaOffsets({
2529 PROTOBUF_FIELD_OFFSET(SecondOrderConeConstraintProto, _impl_.arguments_to_norm_) +
2530 decltype(SecondOrderConeConstraintProto::_impl_.arguments_to_norm_)::
2531 InternalGetArenaOffset(
2532 ::google::protobuf::Message::internal_visibility()),
2533 });
2534 if (arena_bits.has_value()) {
2535 return ::google::protobuf::internal::MessageCreator::CopyInit(
2536 sizeof(SecondOrderConeConstraintProto), alignof(SecondOrderConeConstraintProto), *arena_bits);
2537 } else {
2538 return ::google::protobuf::internal::MessageCreator(&SecondOrderConeConstraintProto::PlacementNew_,
2539 sizeof(SecondOrderConeConstraintProto),
2540 alignof(SecondOrderConeConstraintProto));
2541 }
2542}
2544 return ::google::protobuf::internal::ClassDataFull{
2545 ::google::protobuf::internal::ClassData{
2547 &_table_.header,
2548 nullptr, // OnDemandRegisterArenaDtor
2549 nullptr, // IsInitialized
2550 &SecondOrderConeConstraintProto::MergeImpl,
2551 ::google::protobuf::Message::GetNewImpl<SecondOrderConeConstraintProto>(),
2552#if defined(PROTOBUF_CUSTOM_VTABLE)
2553 &SecondOrderConeConstraintProto::SharedDtor,
2554 ::google::protobuf::Message::GetClearImpl<SecondOrderConeConstraintProto>(), &SecondOrderConeConstraintProto::ByteSizeLong,
2556#endif // PROTOBUF_CUSTOM_VTABLE
2557 PROTOBUF_FIELD_OFFSET(SecondOrderConeConstraintProto, _impl_._cached_size_),
2558 false,
2559 },
2560 &SecondOrderConeConstraintProto::kDescriptorMethods,
2562 nullptr, // tracker
2563 };
2564}
2565
2566PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 const
2567 ::google::protobuf::internal::ClassDataFull SecondOrderConeConstraintProto_class_data_ =
2569
2570PROTOBUF_ATTRIBUTE_WEAK const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL
2571SecondOrderConeConstraintProto::GetClassData() const {
2572 ::google::protobuf::internal::PrefetchToLocalCache(&SecondOrderConeConstraintProto_class_data_);
2573 ::google::protobuf::internal::PrefetchToLocalCache(SecondOrderConeConstraintProto_class_data_.tc_table);
2575}
2576PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1
2577const ::_pbi::TcParseTable<2, 3, 2, 72, 2>
2578SecondOrderConeConstraintProto::_table_ = {
2579 {
2580 PROTOBUF_FIELD_OFFSET(SecondOrderConeConstraintProto, _impl_._has_bits_),
2581 0, // no _extensions_
2582 3, 24, // max_field_number, fast_idx_mask
2583 offsetof(decltype(_table_), field_lookup_table),
2584 4294967288, // skipmap
2585 offsetof(decltype(_table_), field_entries),
2586 3, // num_field_entries
2587 2, // num_aux_entries
2588 offsetof(decltype(_table_), aux_entries),
2590 nullptr, // post_loop_handler
2591 ::_pbi::TcParser::GenericFallback, // fallback
2592 #ifdef PROTOBUF_PREFETCH_PARSE_TABLE
2593 ::_pbi::TcParser::GetTable<::operations_research::math_opt::SecondOrderConeConstraintProto>(), // to_prefetch
2594 #endif // PROTOBUF_PREFETCH_PARSE_TABLE
2595 }, {{
2596 {::_pbi::TcParser::MiniParse, {}},
2597 // .operations_research.math_opt.LinearExpressionProto upper_bound = 1;
2598 {::_pbi::TcParser::FastMtS1,
2599 {10, 2, 0,
2600 PROTOBUF_FIELD_OFFSET(SecondOrderConeConstraintProto, _impl_.upper_bound_)}},
2601 // repeated .operations_research.math_opt.LinearExpressionProto arguments_to_norm = 2;
2602 {::_pbi::TcParser::FastMtR1,
2603 {18, 0, 1,
2604 PROTOBUF_FIELD_OFFSET(SecondOrderConeConstraintProto, _impl_.arguments_to_norm_)}},
2605 // string name = 3;
2606 {::_pbi::TcParser::FastUS1,
2607 {26, 1, 0,
2608 PROTOBUF_FIELD_OFFSET(SecondOrderConeConstraintProto, _impl_.name_)}},
2609 }}, {{
2610 65535, 65535
2611 }}, {{
2612 // .operations_research.math_opt.LinearExpressionProto upper_bound = 1;
2613 {PROTOBUF_FIELD_OFFSET(SecondOrderConeConstraintProto, _impl_.upper_bound_), _Internal::kHasBitsOffset + 2, 0, (0 | ::_fl::kFcOptional | ::_fl::kMessage | ::_fl::kTvTable)},
2614 // repeated .operations_research.math_opt.LinearExpressionProto arguments_to_norm = 2;
2615 {PROTOBUF_FIELD_OFFSET(SecondOrderConeConstraintProto, _impl_.arguments_to_norm_), _Internal::kHasBitsOffset + 0, 1, (0 | ::_fl::kFcRepeated | ::_fl::kMessage | ::_fl::kTvTable)},
2616 // string name = 3;
2617 {PROTOBUF_FIELD_OFFSET(SecondOrderConeConstraintProto, _impl_.name_), _Internal::kHasBitsOffset + 1, 0, (0 | ::_fl::kFcOptional | ::_fl::kUtf8String | ::_fl::kRepAString)},
2618 }},
2619 {{
2620 {::_pbi::TcParser::GetTable<::operations_research::math_opt::LinearExpressionProto>()},
2621 {::_pbi::TcParser::GetTable<::operations_research::math_opt::LinearExpressionProto>()},
2622 }},
2623 {{
2624 "\73\0\0\4\0\0\0\0"
2625 "operations_research.math_opt.SecondOrderConeConstraintProto"
2626 "name"
2627 }},
2628};
2629PROTOBUF_NOINLINE void SecondOrderConeConstraintProto::Clear() {
2630// @@protoc_insertion_point(message_clear_start:operations_research.math_opt.SecondOrderConeConstraintProto)
2631 ::google::protobuf::internal::TSanWrite(&_impl_);
2632 ::uint32_t cached_has_bits = 0;
2633 // Prevent compiler warnings about cached_has_bits being unused
2634 (void) cached_has_bits;
2635
2636 cached_has_bits = _impl_._has_bits_[0];
2637 if (BatchCheckHasBit(cached_has_bits, 0x00000007U)) {
2638 if (CheckHasBitForRepeated(cached_has_bits, 0x00000001U)) {
2639 _impl_.arguments_to_norm_.Clear();
2640 }
2641 if (CheckHasBit(cached_has_bits, 0x00000002U)) {
2642 _impl_.name_.ClearNonDefaultToEmpty();
2643 }
2644 if (CheckHasBit(cached_has_bits, 0x00000004U)) {
2645 ABSL_DCHECK(_impl_.upper_bound_ != nullptr);
2646 _impl_.upper_bound_->Clear();
2647 }
2648 }
2649 _impl_._has_bits_.Clear();
2650 _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>();
2651}
2652
2653#if defined(PROTOBUF_CUSTOM_VTABLE)
2654::uint8_t* PROTOBUF_NONNULL SecondOrderConeConstraintProto::_InternalSerialize(
2655 const ::google::protobuf::MessageLite& base, ::uint8_t* PROTOBUF_NONNULL target,
2656 ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) {
2657 const SecondOrderConeConstraintProto& this_ = static_cast<const SecondOrderConeConstraintProto&>(base);
2658#else // PROTOBUF_CUSTOM_VTABLE
2659::uint8_t* PROTOBUF_NONNULL SecondOrderConeConstraintProto::_InternalSerialize(
2660 ::uint8_t* PROTOBUF_NONNULL target,
2661 ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const {
2662 const SecondOrderConeConstraintProto& this_ = *this;
2663#endif // PROTOBUF_CUSTOM_VTABLE
2664 if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) {
2665 this_.CheckHasBitConsistency();
2666 }
2667 // @@protoc_insertion_point(serialize_to_array_start:operations_research.math_opt.SecondOrderConeConstraintProto)
2668 ::uint32_t cached_has_bits = 0;
2669 (void)cached_has_bits;
2670
2671 cached_has_bits = this_._impl_._has_bits_[0];
2672 // .operations_research.math_opt.LinearExpressionProto upper_bound = 1;
2673 if (CheckHasBit(cached_has_bits, 0x00000004U)) {
2674 target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage(
2675 1, *this_._impl_.upper_bound_, this_._impl_.upper_bound_->GetCachedSize(), target,
2676 stream);
2677 }
2678
2679 // repeated .operations_research.math_opt.LinearExpressionProto arguments_to_norm = 2;
2680 if (CheckHasBitForRepeated(cached_has_bits, 0x00000001U)) {
2681 for (unsigned i = 0, n = static_cast<unsigned>(
2682 this_._internal_arguments_to_norm_size());
2683 i < n; i++) {
2684 const auto& repfield = this_._internal_arguments_to_norm().Get(i);
2685 target =
2686 ::google::protobuf::internal::WireFormatLite::InternalWriteMessage(
2687 2, repfield, repfield.GetCachedSize(),
2688 target, stream);
2689 }
2690 }
2691
2692 // string name = 3;
2693 if (CheckHasBit(cached_has_bits, 0x00000002U)) {
2694 if (!this_._internal_name().empty()) {
2695 const ::std::string& _s = this_._internal_name();
2696 ::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
2697 _s.data(), static_cast<int>(_s.length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "operations_research.math_opt.SecondOrderConeConstraintProto.name");
2698 target = stream->WriteStringMaybeAliased(3, _s, target);
2699 }
2700 }
2701
2702 if (ABSL_PREDICT_FALSE(this_._internal_metadata_.have_unknown_fields())) {
2703 target =
2704 ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray(
2705 this_._internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream);
2706 }
2707 // @@protoc_insertion_point(serialize_to_array_end:operations_research.math_opt.SecondOrderConeConstraintProto)
2708 return target;
2709}
2710
2711#if defined(PROTOBUF_CUSTOM_VTABLE)
2713 const SecondOrderConeConstraintProto& this_ = static_cast<const SecondOrderConeConstraintProto&>(base);
2714#else // PROTOBUF_CUSTOM_VTABLE
2716 const SecondOrderConeConstraintProto& this_ = *this;
2717#endif // PROTOBUF_CUSTOM_VTABLE
2718 // @@protoc_insertion_point(message_byte_size_start:operations_research.math_opt.SecondOrderConeConstraintProto)
2719 ::size_t total_size = 0;
2721 ::uint32_t cached_has_bits = 0;
2722 // Prevent compiler warnings about cached_has_bits being unused
2723 (void)cached_has_bits;
2724
2725 ::_pbi::Prefetch5LinesFrom7Lines(&this_);
2726 cached_has_bits = this_._impl_._has_bits_[0];
2727 if (BatchCheckHasBit(cached_has_bits, 0x00000007U)) {
2728 // repeated .operations_research.math_opt.LinearExpressionProto arguments_to_norm = 2;
2729 if (CheckHasBitForRepeated(cached_has_bits, 0x00000001U)) {
2730 total_size += 1UL * this_._internal_arguments_to_norm_size();
2731 for (const auto& msg : this_._internal_arguments_to_norm()) {
2732 total_size += ::google::protobuf::internal::WireFormatLite::MessageSize(msg);
2733 }
2734 }
2735 // string name = 3;
2736 if (CheckHasBit(cached_has_bits, 0x00000002U)) {
2737 if (!this_._internal_name().empty()) {
2738 total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize(
2739 this_._internal_name());
2740 }
2741 }
2742 // .operations_research.math_opt.LinearExpressionProto upper_bound = 1;
2743 if (CheckHasBit(cached_has_bits, 0x00000004U)) {
2744 total_size += 1 +
2745 ::google::protobuf::internal::WireFormatLite::MessageSize(*this_._impl_.upper_bound_);
2746 }
2747 }
2748 return this_.MaybeComputeUnknownFieldsSize(total_size,
2749 &this_._impl_._cached_size_);
2750}
2751
2752void SecondOrderConeConstraintProto::MergeImpl(::google::protobuf::MessageLite& to_msg,
2753 const ::google::protobuf::MessageLite& from_msg) {
2754 auto* const _this =
2755 static_cast<SecondOrderConeConstraintProto*>(&to_msg);
2756 auto& from = static_cast<const SecondOrderConeConstraintProto&>(from_msg);
2757 if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) {
2758 from.CheckHasBitConsistency();
2759 }
2760 ::google::protobuf::Arena* arena = _this->GetArena();
2761 // @@protoc_insertion_point(class_specific_merge_from_start:operations_research.math_opt.SecondOrderConeConstraintProto)
2762 ABSL_DCHECK_NE(&from, _this);
2763 ::uint32_t cached_has_bits = 0;
2764 (void)cached_has_bits;
2765
2766 cached_has_bits = from._impl_._has_bits_[0];
2767 if (BatchCheckHasBit(cached_has_bits, 0x00000007U)) {
2768 if (CheckHasBitForRepeated(cached_has_bits, 0x00000001U)) {
2769 _this->_internal_mutable_arguments_to_norm()->InternalMergeFromWithArena(
2770 ::google::protobuf::MessageLite::internal_visibility(), arena,
2771 from._internal_arguments_to_norm());
2772 }
2773 if (CheckHasBit(cached_has_bits, 0x00000002U)) {
2774 if (!from._internal_name().empty()) {
2775 _this->_internal_set_name(from._internal_name());
2776 } else {
2777 if (_this->_impl_.name_.IsDefault()) {
2778 _this->_internal_set_name("");
2779 }
2780 }
2781 }
2782 if (CheckHasBit(cached_has_bits, 0x00000004U)) {
2783 ABSL_DCHECK(from._impl_.upper_bound_ != nullptr);
2784 if (_this->_impl_.upper_bound_ == nullptr) {
2785 _this->_impl_.upper_bound_ = ::google::protobuf::Message::CopyConstruct(arena, *from._impl_.upper_bound_);
2786 } else {
2787 _this->_impl_.upper_bound_->MergeFrom(*from._impl_.upper_bound_);
2788 }
2789 }
2790 }
2791 _this->_impl_._has_bits_[0] |= cached_has_bits;
2792 _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(
2793 from._internal_metadata_);
2794}
2795
2797 // @@protoc_insertion_point(class_specific_copy_from_start:operations_research.math_opt.SecondOrderConeConstraintProto)
2798 if (&from == this) return;
2799 Clear();
2800 MergeFrom(from);
2802
2803
2804void SecondOrderConeConstraintProto::InternalSwap(SecondOrderConeConstraintProto* PROTOBUF_RESTRICT PROTOBUF_NONNULL other) {
2805 using ::std::swap;
2806 auto* arena = GetArena();
2807 ABSL_DCHECK_EQ(arena, other->GetArena());
2808 _internal_metadata_.InternalSwap(&other->_internal_metadata_);
2809 swap(_impl_._has_bits_[0], other->_impl_._has_bits_[0]);
2810 _impl_.arguments_to_norm_.InternalSwap(&other->_impl_.arguments_to_norm_);
2811 ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.name_, &other->_impl_.name_, arena);
2812 swap(_impl_.upper_bound_, other->_impl_.upper_bound_);
2813}
2814
2815::google::protobuf::Metadata SecondOrderConeConstraintProto::GetMetadata() const {
2816 return ::google::protobuf::Message::GetMetadataImpl(GetClassData()->full());
2817}
2818// ===================================================================
2819
2821 public:
2822 using HasBits =
2823 decltype(::std::declval<SosConstraintProto>()._impl_._has_bits_);
2824 static constexpr ::int32_t kHasBitsOffset =
2825 8 * PROTOBUF_FIELD_OFFSET(SosConstraintProto, _impl_._has_bits_);
2827
2829 ::google::protobuf::internal::TSanWrite(&_impl_);
2830 _impl_.expressions_.Clear();
2831 ClearHasBitForRepeated(_impl_._has_bits_[0],
2832 0x00000001U);
2833}
2834SosConstraintProto::SosConstraintProto(::google::protobuf::Arena* PROTOBUF_NULLABLE arena)
2835#if defined(PROTOBUF_CUSTOM_VTABLE)
2836 : ::google::protobuf::Message(arena, SosConstraintProto_class_data_.base()) {
2837#else // PROTOBUF_CUSTOM_VTABLE
2838 : ::google::protobuf::Message(arena) {
2839#endif // PROTOBUF_CUSTOM_VTABLE
2840 SharedCtor(arena);
2841 // @@protoc_insertion_point(arena_constructor:operations_research.math_opt.SosConstraintProto)
2842}
2843PROTOBUF_NDEBUG_INLINE SosConstraintProto::Impl_::Impl_(
2844 [[maybe_unused]] ::google::protobuf::internal::InternalVisibility visibility,
2845 [[maybe_unused]] ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const Impl_& from,
2846 [[maybe_unused]] const ::operations_research::math_opt::SosConstraintProto& from_msg)
2847 : _has_bits_{from._has_bits_},
2848 _cached_size_{0},
2849 expressions_{visibility, arena, from.expressions_},
2850 weights_{visibility, arena, from.weights_},
2851 name_(arena, from.name_) {}
2852
2854 ::google::protobuf::Arena* PROTOBUF_NULLABLE arena,
2855 const SosConstraintProto& from)
2856#if defined(PROTOBUF_CUSTOM_VTABLE)
2857 : ::google::protobuf::Message(arena, SosConstraintProto_class_data_.base()) {
2858#else // PROTOBUF_CUSTOM_VTABLE
2859 : ::google::protobuf::Message(arena) {
2860#endif // PROTOBUF_CUSTOM_VTABLE
2861 SosConstraintProto* const _this = this;
2862 (void)_this;
2863 _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(
2864 from._internal_metadata_);
2865 new (&_impl_) Impl_(internal_visibility(), arena, from._impl_, from);
2866
2867 // @@protoc_insertion_point(copy_constructor:operations_research.math_opt.SosConstraintProto)
2868}
2869PROTOBUF_NDEBUG_INLINE SosConstraintProto::Impl_::Impl_(
2870 [[maybe_unused]] ::google::protobuf::internal::InternalVisibility visibility,
2871 [[maybe_unused]] ::google::protobuf::Arena* PROTOBUF_NULLABLE arena)
2872 : _cached_size_{0},
2873 expressions_{visibility, arena},
2874 weights_{visibility, arena},
2875 name_(arena) {}
2876
2877inline void SosConstraintProto::SharedCtor(::_pb::Arena* PROTOBUF_NULLABLE arena) {
2878 new (&_impl_) Impl_(internal_visibility(), arena);
2879}
2881 // @@protoc_insertion_point(destructor:operations_research.math_opt.SosConstraintProto)
2882 SharedDtor(*this);
2883}
2884inline void SosConstraintProto::SharedDtor(MessageLite& self) {
2885 SosConstraintProto& this_ = static_cast<SosConstraintProto&>(self);
2886 if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) {
2887 this_.CheckHasBitConsistency();
2888 }
2889 this_._internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>();
2890 ABSL_DCHECK(this_.GetArena() == nullptr);
2891 this_._impl_.name_.Destroy();
2892 this_._impl_.~Impl_();
2893}
2894
2895inline void* PROTOBUF_NONNULL SosConstraintProto::PlacementNew_(
2896 const void* PROTOBUF_NONNULL, void* PROTOBUF_NONNULL mem,
2897 ::google::protobuf::Arena* PROTOBUF_NULLABLE arena) {
2898 return ::new (mem) SosConstraintProto(arena);
2899}
2900constexpr auto SosConstraintProto::InternalNewImpl_() {
2901 constexpr auto arena_bits = ::google::protobuf::internal::EncodePlacementArenaOffsets({
2902 PROTOBUF_FIELD_OFFSET(SosConstraintProto, _impl_.expressions_) +
2903 decltype(SosConstraintProto::_impl_.expressions_)::
2904 InternalGetArenaOffset(
2905 ::google::protobuf::Message::internal_visibility()),
2906 PROTOBUF_FIELD_OFFSET(SosConstraintProto, _impl_.weights_) +
2907 decltype(SosConstraintProto::_impl_.weights_)::
2908 InternalGetArenaOffset(
2909 ::google::protobuf::Message::internal_visibility()),
2910 });
2911 if (arena_bits.has_value()) {
2912 return ::google::protobuf::internal::MessageCreator::CopyInit(
2913 sizeof(SosConstraintProto), alignof(SosConstraintProto), *arena_bits);
2914 } else {
2915 return ::google::protobuf::internal::MessageCreator(&SosConstraintProto::PlacementNew_,
2916 sizeof(SosConstraintProto),
2917 alignof(SosConstraintProto));
2918 }
2919}
2921 return ::google::protobuf::internal::ClassDataFull{
2922 ::google::protobuf::internal::ClassData{
2924 &_table_.header,
2925 nullptr, // OnDemandRegisterArenaDtor
2926 nullptr, // IsInitialized
2927 &SosConstraintProto::MergeImpl,
2928 ::google::protobuf::Message::GetNewImpl<SosConstraintProto>(),
2929#if defined(PROTOBUF_CUSTOM_VTABLE)
2930 &SosConstraintProto::SharedDtor,
2931 ::google::protobuf::Message::GetClearImpl<SosConstraintProto>(), &SosConstraintProto::ByteSizeLong,
2933#endif // PROTOBUF_CUSTOM_VTABLE
2934 PROTOBUF_FIELD_OFFSET(SosConstraintProto, _impl_._cached_size_),
2935 false,
2936 },
2937 &SosConstraintProto::kDescriptorMethods,
2939 nullptr, // tracker
2940 };
2941}
2942
2943PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 const
2944 ::google::protobuf::internal::ClassDataFull SosConstraintProto_class_data_ =
2946
2947PROTOBUF_ATTRIBUTE_WEAK const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL
2948SosConstraintProto::GetClassData() const {
2949 ::google::protobuf::internal::PrefetchToLocalCache(&SosConstraintProto_class_data_);
2950 ::google::protobuf::internal::PrefetchToLocalCache(SosConstraintProto_class_data_.tc_table);
2951 return SosConstraintProto_class_data_.base();
2952}
2953PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1
2954const ::_pbi::TcParseTable<2, 3, 1, 60, 2>
2955SosConstraintProto::_table_ = {
2956 {
2957 PROTOBUF_FIELD_OFFSET(SosConstraintProto, _impl_._has_bits_),
2958 0, // no _extensions_
2959 3, 24, // max_field_number, fast_idx_mask
2960 offsetof(decltype(_table_), field_lookup_table),
2961 4294967288, // skipmap
2962 offsetof(decltype(_table_), field_entries),
2963 3, // num_field_entries
2964 1, // num_aux_entries
2965 offsetof(decltype(_table_), aux_entries),
2967 nullptr, // post_loop_handler
2968 ::_pbi::TcParser::GenericFallback, // fallback
2969 #ifdef PROTOBUF_PREFETCH_PARSE_TABLE
2970 ::_pbi::TcParser::GetTable<::operations_research::math_opt::SosConstraintProto>(), // to_prefetch
2971 #endif // PROTOBUF_PREFETCH_PARSE_TABLE
2972 }, {{
2973 {::_pbi::TcParser::MiniParse, {}},
2974 // repeated .operations_research.math_opt.LinearExpressionProto expressions = 1;
2975 {::_pbi::TcParser::FastMtR1,
2976 {10, 0, 0,
2977 PROTOBUF_FIELD_OFFSET(SosConstraintProto, _impl_.expressions_)}},
2978 // repeated double weights = 2;
2979 {::_pbi::TcParser::FastF64P1,
2980 {18, 1, 0,
2981 PROTOBUF_FIELD_OFFSET(SosConstraintProto, _impl_.weights_)}},
2982 // string name = 3;
2983 {::_pbi::TcParser::FastUS1,
2984 {26, 2, 0,
2985 PROTOBUF_FIELD_OFFSET(SosConstraintProto, _impl_.name_)}},
2986 }}, {{
2987 65535, 65535
2988 }}, {{
2989 // repeated .operations_research.math_opt.LinearExpressionProto expressions = 1;
2990 {PROTOBUF_FIELD_OFFSET(SosConstraintProto, _impl_.expressions_), _Internal::kHasBitsOffset + 0, 0, (0 | ::_fl::kFcRepeated | ::_fl::kMessage | ::_fl::kTvTable)},
2991 // repeated double weights = 2;
2992 {PROTOBUF_FIELD_OFFSET(SosConstraintProto, _impl_.weights_), _Internal::kHasBitsOffset + 1, 0, (0 | ::_fl::kFcRepeated | ::_fl::kPackedDouble)},
2993 // string name = 3;
2994 {PROTOBUF_FIELD_OFFSET(SosConstraintProto, _impl_.name_), _Internal::kHasBitsOffset + 2, 0, (0 | ::_fl::kFcOptional | ::_fl::kUtf8String | ::_fl::kRepAString)},
2995 }},
2996 {{
2997 {::_pbi::TcParser::GetTable<::operations_research::math_opt::LinearExpressionProto>()},
2998 }},
2999 {{
3000 "\57\0\0\4\0\0\0\0"
3001 "operations_research.math_opt.SosConstraintProto"
3002 "name"
3003 }},
3004};
3005PROTOBUF_NOINLINE void SosConstraintProto::Clear() {
3006// @@protoc_insertion_point(message_clear_start:operations_research.math_opt.SosConstraintProto)
3007 ::google::protobuf::internal::TSanWrite(&_impl_);
3008 ::uint32_t cached_has_bits = 0;
3009 // Prevent compiler warnings about cached_has_bits being unused
3010 (void) cached_has_bits;
3012 cached_has_bits = _impl_._has_bits_[0];
3013 if (BatchCheckHasBit(cached_has_bits, 0x00000007U)) {
3014 if (CheckHasBitForRepeated(cached_has_bits, 0x00000001U)) {
3015 _impl_.expressions_.Clear();
3016 }
3017 if (CheckHasBitForRepeated(cached_has_bits, 0x00000002U)) {
3018 _impl_.weights_.Clear();
3019 }
3020 if (CheckHasBit(cached_has_bits, 0x00000004U)) {
3021 _impl_.name_.ClearNonDefaultToEmpty();
3022 }
3023 }
3024 _impl_._has_bits_.Clear();
3025 _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>();
3026}
3027
3028#if defined(PROTOBUF_CUSTOM_VTABLE)
3029::uint8_t* PROTOBUF_NONNULL SosConstraintProto::_InternalSerialize(
3030 const ::google::protobuf::MessageLite& base, ::uint8_t* PROTOBUF_NONNULL target,
3031 ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) {
3032 const SosConstraintProto& this_ = static_cast<const SosConstraintProto&>(base);
3033#else // PROTOBUF_CUSTOM_VTABLE
3034::uint8_t* PROTOBUF_NONNULL SosConstraintProto::_InternalSerialize(
3035 ::uint8_t* PROTOBUF_NONNULL target,
3036 ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const {
3037 const SosConstraintProto& this_ = *this;
3038#endif // PROTOBUF_CUSTOM_VTABLE
3039 if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) {
3040 this_.CheckHasBitConsistency();
3041 }
3042 // @@protoc_insertion_point(serialize_to_array_start:operations_research.math_opt.SosConstraintProto)
3043 ::uint32_t cached_has_bits = 0;
3044 (void)cached_has_bits;
3045
3046 cached_has_bits = this_._impl_._has_bits_[0];
3047 // repeated .operations_research.math_opt.LinearExpressionProto expressions = 1;
3048 if (CheckHasBitForRepeated(cached_has_bits, 0x00000001U)) {
3049 for (unsigned i = 0, n = static_cast<unsigned>(
3050 this_._internal_expressions_size());
3051 i < n; i++) {
3052 const auto& repfield = this_._internal_expressions().Get(i);
3053 target =
3054 ::google::protobuf::internal::WireFormatLite::InternalWriteMessage(
3055 1, repfield, repfield.GetCachedSize(),
3056 target, stream);
3057 }
3058 }
3059
3060 // repeated double weights = 2;
3061 if (CheckHasBitForRepeated(cached_has_bits, 0x00000002U)) {
3062 if (this_._internal_weights_size() > 0) {
3063 target = stream->WriteFixedPacked(2, this_._internal_weights(), target);
3064 }
3065 }
3066
3067 // string name = 3;
3068 if (CheckHasBit(cached_has_bits, 0x00000004U)) {
3069 if (!this_._internal_name().empty()) {
3070 const ::std::string& _s = this_._internal_name();
3071 ::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
3072 _s.data(), static_cast<int>(_s.length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "operations_research.math_opt.SosConstraintProto.name");
3073 target = stream->WriteStringMaybeAliased(3, _s, target);
3074 }
3075 }
3076
3077 if (ABSL_PREDICT_FALSE(this_._internal_metadata_.have_unknown_fields())) {
3078 target =
3079 ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray(
3080 this_._internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream);
3081 }
3082 // @@protoc_insertion_point(serialize_to_array_end:operations_research.math_opt.SosConstraintProto)
3083 return target;
3084}
3085
3086#if defined(PROTOBUF_CUSTOM_VTABLE)
3087::size_t SosConstraintProto::ByteSizeLong(const MessageLite& base) {
3088 const SosConstraintProto& this_ = static_cast<const SosConstraintProto&>(base);
3089#else // PROTOBUF_CUSTOM_VTABLE
3090::size_t SosConstraintProto::ByteSizeLong() const {
3091 const SosConstraintProto& this_ = *this;
3092#endif // PROTOBUF_CUSTOM_VTABLE
3093 // @@protoc_insertion_point(message_byte_size_start:operations_research.math_opt.SosConstraintProto)
3094 ::size_t total_size = 0;
3095
3096 ::uint32_t cached_has_bits = 0;
3097 // Prevent compiler warnings about cached_has_bits being unused
3098 (void)cached_has_bits;
3099
3100 ::_pbi::Prefetch5LinesFrom7Lines(&this_);
3101 cached_has_bits = this_._impl_._has_bits_[0];
3102 if (BatchCheckHasBit(cached_has_bits, 0x00000007U)) {
3103 // repeated .operations_research.math_opt.LinearExpressionProto expressions = 1;
3104 if (CheckHasBitForRepeated(cached_has_bits, 0x00000001U)) {
3105 total_size += 1UL * this_._internal_expressions_size();
3106 for (const auto& msg : this_._internal_expressions()) {
3107 total_size += ::google::protobuf::internal::WireFormatLite::MessageSize(msg);
3108 }
3109 }
3110 // repeated double weights = 2;
3111 if (CheckHasBitForRepeated(cached_has_bits, 0x00000002U)) {
3112 ::size_t data_size = ::size_t{8} *
3113 ::_pbi::FromIntSize(this_._internal_weights_size());
3114 ::size_t tag_size = data_size == 0
3115 ? 0
3116 : 1 + ::_pbi::WireFormatLite::Int32Size(
3117 static_cast<::int32_t>(data_size));
3118 total_size += tag_size + data_size;
3119 }
3120 // string name = 3;
3121 if (CheckHasBit(cached_has_bits, 0x00000004U)) {
3122 if (!this_._internal_name().empty()) {
3123 total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize(
3124 this_._internal_name());
3125 }
3126 }
3127 }
3128 return this_.MaybeComputeUnknownFieldsSize(total_size,
3129 &this_._impl_._cached_size_);
3130}
3131
3132void SosConstraintProto::MergeImpl(::google::protobuf::MessageLite& to_msg,
3133 const ::google::protobuf::MessageLite& from_msg) {
3134 auto* const _this =
3135 static_cast<SosConstraintProto*>(&to_msg);
3136 auto& from = static_cast<const SosConstraintProto&>(from_msg);
3137 if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) {
3138 from.CheckHasBitConsistency();
3139 }
3140 ::google::protobuf::Arena* arena = _this->GetArena();
3141 // @@protoc_insertion_point(class_specific_merge_from_start:operations_research.math_opt.SosConstraintProto)
3142 ABSL_DCHECK_NE(&from, _this);
3143 ::uint32_t cached_has_bits = 0;
3144 (void)cached_has_bits;
3145
3146 cached_has_bits = from._impl_._has_bits_[0];
3147 if (BatchCheckHasBit(cached_has_bits, 0x00000007U)) {
3148 if (CheckHasBitForRepeated(cached_has_bits, 0x00000001U)) {
3149 _this->_internal_mutable_expressions()->InternalMergeFromWithArena(
3150 ::google::protobuf::MessageLite::internal_visibility(), arena,
3151 from._internal_expressions());
3152 }
3153 if (CheckHasBitForRepeated(cached_has_bits, 0x00000002U)) {
3154 _this->_internal_mutable_weights()->MergeFrom(from._internal_weights());
3155 }
3156 if (CheckHasBit(cached_has_bits, 0x00000004U)) {
3157 if (!from._internal_name().empty()) {
3158 _this->_internal_set_name(from._internal_name());
3159 } else {
3160 if (_this->_impl_.name_.IsDefault()) {
3161 _this->_internal_set_name("");
3162 }
3163 }
3164 }
3165 }
3166 _this->_impl_._has_bits_[0] |= cached_has_bits;
3167 _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(
3168 from._internal_metadata_);
3169}
3170
3171void SosConstraintProto::CopyFrom(const SosConstraintProto& from) {
3172 // @@protoc_insertion_point(class_specific_copy_from_start:operations_research.math_opt.SosConstraintProto)
3173 if (&from == this) return;
3174 Clear();
3175 MergeFrom(from);
3176}
3178
3179void SosConstraintProto::InternalSwap(SosConstraintProto* PROTOBUF_RESTRICT PROTOBUF_NONNULL other) {
3180 using ::std::swap;
3181 auto* arena = GetArena();
3182 ABSL_DCHECK_EQ(arena, other->GetArena());
3183 _internal_metadata_.InternalSwap(&other->_internal_metadata_);
3184 swap(_impl_._has_bits_[0], other->_impl_._has_bits_[0]);
3185 _impl_.expressions_.InternalSwap(&other->_impl_.expressions_);
3186 _impl_.weights_.InternalSwap(&other->_impl_.weights_);
3187 ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.name_, &other->_impl_.name_, arena);
3188}
3189
3190::google::protobuf::Metadata SosConstraintProto::GetMetadata() const {
3191 return ::google::protobuf::Message::GetMetadataImpl(GetClassData()->full());
3192}
3193// ===================================================================
3194
3195class IndicatorConstraintProto::_Internal {
3196 public:
3197 using HasBits =
3198 decltype(::std::declval<IndicatorConstraintProto>()._impl_._has_bits_);
3199 static constexpr ::int32_t kHasBitsOffset =
3200 8 * PROTOBUF_FIELD_OFFSET(IndicatorConstraintProto, _impl_._has_bits_);
3201};
3204 ::google::protobuf::internal::TSanWrite(&_impl_);
3205 if (_impl_.expression_ != nullptr) _impl_.expression_->Clear();
3206 ClearHasBit(_impl_._has_bits_[0],
3207 0x00000002U);
3208}
3209IndicatorConstraintProto::IndicatorConstraintProto(::google::protobuf::Arena* PROTOBUF_NULLABLE arena)
3210#if defined(PROTOBUF_CUSTOM_VTABLE)
3211 : ::google::protobuf::Message(arena, IndicatorConstraintProto_class_data_.base()) {
3212#else // PROTOBUF_CUSTOM_VTABLE
3213 : ::google::protobuf::Message(arena) {
3214#endif // PROTOBUF_CUSTOM_VTABLE
3215 SharedCtor(arena);
3216 // @@protoc_insertion_point(arena_constructor:operations_research.math_opt.IndicatorConstraintProto)
3217}
3218PROTOBUF_NDEBUG_INLINE IndicatorConstraintProto::Impl_::Impl_(
3219 [[maybe_unused]] ::google::protobuf::internal::InternalVisibility visibility,
3220 [[maybe_unused]] ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const Impl_& from,
3221 [[maybe_unused]] const ::operations_research::math_opt::IndicatorConstraintProto& from_msg)
3222 : _has_bits_{from._has_bits_},
3223 _cached_size_{0},
3224 name_(arena, from.name_) {}
3225
3227 ::google::protobuf::Arena* PROTOBUF_NULLABLE arena,
3228 const IndicatorConstraintProto& from)
3229#if defined(PROTOBUF_CUSTOM_VTABLE)
3230 : ::google::protobuf::Message(arena, IndicatorConstraintProto_class_data_.base()) {
3231#else // PROTOBUF_CUSTOM_VTABLE
3232 : ::google::protobuf::Message(arena) {
3233#endif // PROTOBUF_CUSTOM_VTABLE
3234 IndicatorConstraintProto* const _this = this;
3235 (void)_this;
3236 _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(
3237 from._internal_metadata_);
3238 new (&_impl_) Impl_(internal_visibility(), arena, from._impl_, from);
3239 ::uint32_t cached_has_bits = _impl_._has_bits_[0];
3240 _impl_.expression_ = (CheckHasBit(cached_has_bits, 0x00000002U))
3241 ? ::google::protobuf::Message::CopyConstruct(arena, *from._impl_.expression_)
3242 : nullptr;
3243 ::memcpy(reinterpret_cast<char*>(&_impl_) +
3244 offsetof(Impl_, indicator_id_),
3245 reinterpret_cast<const char*>(&from._impl_) +
3246 offsetof(Impl_, indicator_id_),
3247 offsetof(Impl_, activate_on_zero_) -
3248 offsetof(Impl_, indicator_id_) +
3249 sizeof(Impl_::activate_on_zero_));
3250
3251 // @@protoc_insertion_point(copy_constructor:operations_research.math_opt.IndicatorConstraintProto)
3252}
3253PROTOBUF_NDEBUG_INLINE IndicatorConstraintProto::Impl_::Impl_(
3254 [[maybe_unused]] ::google::protobuf::internal::InternalVisibility visibility,
3255 [[maybe_unused]] ::google::protobuf::Arena* PROTOBUF_NULLABLE arena)
3256 : _cached_size_{0},
3257 name_(arena) {}
3258
3259inline void IndicatorConstraintProto::SharedCtor(::_pb::Arena* PROTOBUF_NULLABLE arena) {
3260 new (&_impl_) Impl_(internal_visibility(), arena);
3261 ::memset(reinterpret_cast<char*>(&_impl_) +
3262 offsetof(Impl_, expression_),
3263 0,
3264 offsetof(Impl_, activate_on_zero_) -
3265 offsetof(Impl_, expression_) +
3266 sizeof(Impl_::activate_on_zero_));
3267}
3269 // @@protoc_insertion_point(destructor:operations_research.math_opt.IndicatorConstraintProto)
3270 SharedDtor(*this);
3271}
3272inline void IndicatorConstraintProto::SharedDtor(MessageLite& self) {
3273 IndicatorConstraintProto& this_ = static_cast<IndicatorConstraintProto&>(self);
3274 if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) {
3275 this_.CheckHasBitConsistency();
3276 }
3277 this_._internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>();
3278 ABSL_DCHECK(this_.GetArena() == nullptr);
3279 this_._impl_.name_.Destroy();
3280 delete this_._impl_.expression_;
3281 this_._impl_.~Impl_();
3282}
3283
3284inline void* PROTOBUF_NONNULL IndicatorConstraintProto::PlacementNew_(
3285 const void* PROTOBUF_NONNULL, void* PROTOBUF_NONNULL mem,
3286 ::google::protobuf::Arena* PROTOBUF_NULLABLE arena) {
3287 return ::new (mem) IndicatorConstraintProto(arena);
3288}
3289constexpr auto IndicatorConstraintProto::InternalNewImpl_() {
3290 return ::google::protobuf::internal::MessageCreator::CopyInit(sizeof(IndicatorConstraintProto),
3291 alignof(IndicatorConstraintProto));
3292}
3294 return ::google::protobuf::internal::ClassDataFull{
3295 ::google::protobuf::internal::ClassData{
3297 &_table_.header,
3298 nullptr, // OnDemandRegisterArenaDtor
3299 nullptr, // IsInitialized
3300 &IndicatorConstraintProto::MergeImpl,
3301 ::google::protobuf::Message::GetNewImpl<IndicatorConstraintProto>(),
3302#if defined(PROTOBUF_CUSTOM_VTABLE)
3303 &IndicatorConstraintProto::SharedDtor,
3304 ::google::protobuf::Message::GetClearImpl<IndicatorConstraintProto>(), &IndicatorConstraintProto::ByteSizeLong,
3306#endif // PROTOBUF_CUSTOM_VTABLE
3307 PROTOBUF_FIELD_OFFSET(IndicatorConstraintProto, _impl_._cached_size_),
3308 false,
3309 },
3310 &IndicatorConstraintProto::kDescriptorMethods,
3312 nullptr, // tracker
3313 };
3314}
3315
3316PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 const
3317 ::google::protobuf::internal::ClassDataFull IndicatorConstraintProto_class_data_ =
3319
3320PROTOBUF_ATTRIBUTE_WEAK const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL
3321IndicatorConstraintProto::GetClassData() const {
3322 ::google::protobuf::internal::PrefetchToLocalCache(&IndicatorConstraintProto_class_data_);
3323 ::google::protobuf::internal::PrefetchToLocalCache(IndicatorConstraintProto_class_data_.tc_table);
3325}
3326PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1
3327const ::_pbi::TcParseTable<3, 6, 1, 66, 2>
3328IndicatorConstraintProto::_table_ = {
3329 {
3330 PROTOBUF_FIELD_OFFSET(IndicatorConstraintProto, _impl_._has_bits_),
3331 0, // no _extensions_
3332 6, 56, // max_field_number, fast_idx_mask
3333 offsetof(decltype(_table_), field_lookup_table),
3334 4294967232, // skipmap
3335 offsetof(decltype(_table_), field_entries),
3336 6, // num_field_entries
3337 1, // num_aux_entries
3338 offsetof(decltype(_table_), aux_entries),
3340 nullptr, // post_loop_handler
3341 ::_pbi::TcParser::GenericFallback, // fallback
3342 #ifdef PROTOBUF_PREFETCH_PARSE_TABLE
3343 ::_pbi::TcParser::GetTable<::operations_research::math_opt::IndicatorConstraintProto>(), // to_prefetch
3344 #endif // PROTOBUF_PREFETCH_PARSE_TABLE
3345 }, {{
3346 {::_pbi::TcParser::MiniParse, {}},
3347 // optional int64 indicator_id = 1;
3348 {::_pbi::TcParser::SingularVarintNoZag1<::uint64_t, offsetof(IndicatorConstraintProto, _impl_.indicator_id_), 2>(),
3349 {8, 2, 0,
3350 PROTOBUF_FIELD_OFFSET(IndicatorConstraintProto, _impl_.indicator_id_)}},
3351 // .operations_research.math_opt.SparseDoubleVectorProto expression = 2;
3352 {::_pbi::TcParser::FastMtS1,
3353 {18, 1, 0,
3354 PROTOBUF_FIELD_OFFSET(IndicatorConstraintProto, _impl_.expression_)}},
3355 // double lower_bound = 3;
3356 {::_pbi::TcParser::FastF64S1,
3357 {25, 3, 0,
3358 PROTOBUF_FIELD_OFFSET(IndicatorConstraintProto, _impl_.lower_bound_)}},
3359 // double upper_bound = 4;
3360 {::_pbi::TcParser::FastF64S1,
3361 {33, 4, 0,
3362 PROTOBUF_FIELD_OFFSET(IndicatorConstraintProto, _impl_.upper_bound_)}},
3363 // string name = 5;
3364 {::_pbi::TcParser::FastUS1,
3365 {42, 0, 0,
3366 PROTOBUF_FIELD_OFFSET(IndicatorConstraintProto, _impl_.name_)}},
3367 // bool activate_on_zero = 6;
3368 {::_pbi::TcParser::SingularVarintNoZag1<bool, offsetof(IndicatorConstraintProto, _impl_.activate_on_zero_), 5>(),
3369 {48, 5, 0,
3370 PROTOBUF_FIELD_OFFSET(IndicatorConstraintProto, _impl_.activate_on_zero_)}},
3371 {::_pbi::TcParser::MiniParse, {}},
3372 }}, {{
3373 65535, 65535
3374 }}, {{
3375 // optional int64 indicator_id = 1;
3376 {PROTOBUF_FIELD_OFFSET(IndicatorConstraintProto, _impl_.indicator_id_), _Internal::kHasBitsOffset + 2, 0, (0 | ::_fl::kFcOptional | ::_fl::kInt64)},
3377 // .operations_research.math_opt.SparseDoubleVectorProto expression = 2;
3378 {PROTOBUF_FIELD_OFFSET(IndicatorConstraintProto, _impl_.expression_), _Internal::kHasBitsOffset + 1, 0, (0 | ::_fl::kFcOptional | ::_fl::kMessage | ::_fl::kTvTable)},
3379 // double lower_bound = 3;
3380 {PROTOBUF_FIELD_OFFSET(IndicatorConstraintProto, _impl_.lower_bound_), _Internal::kHasBitsOffset + 3, 0, (0 | ::_fl::kFcOptional | ::_fl::kDouble)},
3381 // double upper_bound = 4;
3382 {PROTOBUF_FIELD_OFFSET(IndicatorConstraintProto, _impl_.upper_bound_), _Internal::kHasBitsOffset + 4, 0, (0 | ::_fl::kFcOptional | ::_fl::kDouble)},
3383 // string name = 5;
3384 {PROTOBUF_FIELD_OFFSET(IndicatorConstraintProto, _impl_.name_), _Internal::kHasBitsOffset + 0, 0, (0 | ::_fl::kFcOptional | ::_fl::kUtf8String | ::_fl::kRepAString)},
3385 // bool activate_on_zero = 6;
3386 {PROTOBUF_FIELD_OFFSET(IndicatorConstraintProto, _impl_.activate_on_zero_), _Internal::kHasBitsOffset + 5, 0, (0 | ::_fl::kFcOptional | ::_fl::kBool)},
3387 }},
3388 {{
3389 {::_pbi::TcParser::GetTable<::operations_research::math_opt::SparseDoubleVectorProto>()},
3390 }},
3391 {{
3392 "\65\0\0\0\0\4\0\0"
3393 "operations_research.math_opt.IndicatorConstraintProto"
3394 "name"
3395 }},
3396};
3397PROTOBUF_NOINLINE void IndicatorConstraintProto::Clear() {
3398// @@protoc_insertion_point(message_clear_start:operations_research.math_opt.IndicatorConstraintProto)
3399 ::google::protobuf::internal::TSanWrite(&_impl_);
3400 ::uint32_t cached_has_bits = 0;
3401 // Prevent compiler warnings about cached_has_bits being unused
3402 (void) cached_has_bits;
3403
3404 cached_has_bits = _impl_._has_bits_[0];
3405 if (BatchCheckHasBit(cached_has_bits, 0x00000003U)) {
3406 if (CheckHasBit(cached_has_bits, 0x00000001U)) {
3407 _impl_.name_.ClearNonDefaultToEmpty();
3408 }
3409 if (CheckHasBit(cached_has_bits, 0x00000002U)) {
3410 ABSL_DCHECK(_impl_.expression_ != nullptr);
3411 _impl_.expression_->Clear();
3412 }
3413 }
3414 if (BatchCheckHasBit(cached_has_bits, 0x0000003cU)) {
3415 ::memset(&_impl_.indicator_id_, 0, static_cast<::size_t>(
3416 reinterpret_cast<char*>(&_impl_.activate_on_zero_) -
3417 reinterpret_cast<char*>(&_impl_.indicator_id_)) + sizeof(_impl_.activate_on_zero_));
3418 }
3419 _impl_._has_bits_.Clear();
3420 _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>();
3421}
3422
3423#if defined(PROTOBUF_CUSTOM_VTABLE)
3424::uint8_t* PROTOBUF_NONNULL IndicatorConstraintProto::_InternalSerialize(
3425 const ::google::protobuf::MessageLite& base, ::uint8_t* PROTOBUF_NONNULL target,
3426 ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) {
3427 const IndicatorConstraintProto& this_ = static_cast<const IndicatorConstraintProto&>(base);
3428#else // PROTOBUF_CUSTOM_VTABLE
3429::uint8_t* PROTOBUF_NONNULL IndicatorConstraintProto::_InternalSerialize(
3430 ::uint8_t* PROTOBUF_NONNULL target,
3431 ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const {
3432 const IndicatorConstraintProto& this_ = *this;
3433#endif // PROTOBUF_CUSTOM_VTABLE
3434 if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) {
3435 this_.CheckHasBitConsistency();
3437 // @@protoc_insertion_point(serialize_to_array_start:operations_research.math_opt.IndicatorConstraintProto)
3438 ::uint32_t cached_has_bits = 0;
3439 (void)cached_has_bits;
3440
3441 cached_has_bits = this_._impl_._has_bits_[0];
3442 // optional int64 indicator_id = 1;
3443 if (CheckHasBit(cached_has_bits, 0x00000004U)) {
3444 target =
3445 ::google::protobuf::internal::WireFormatLite::WriteInt64ToArrayWithField<1>(
3446 stream, this_._internal_indicator_id(), target);
3447 }
3448
3449 // .operations_research.math_opt.SparseDoubleVectorProto expression = 2;
3450 if (CheckHasBit(cached_has_bits, 0x00000002U)) {
3451 target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage(
3452 2, *this_._impl_.expression_, this_._impl_.expression_->GetCachedSize(), target,
3453 stream);
3454 }
3455
3456 // double lower_bound = 3;
3457 if (CheckHasBit(cached_has_bits, 0x00000008U)) {
3458 if (::absl::bit_cast<::uint64_t>(this_._internal_lower_bound()) != 0) {
3459 target = stream->EnsureSpace(target);
3460 target = ::_pbi::WireFormatLite::WriteDoubleToArray(
3461 3, this_._internal_lower_bound(), target);
3462 }
3463 }
3464
3465 // double upper_bound = 4;
3466 if (CheckHasBit(cached_has_bits, 0x00000010U)) {
3467 if (::absl::bit_cast<::uint64_t>(this_._internal_upper_bound()) != 0) {
3468 target = stream->EnsureSpace(target);
3469 target = ::_pbi::WireFormatLite::WriteDoubleToArray(
3470 4, this_._internal_upper_bound(), target);
3471 }
3472 }
3473
3474 // string name = 5;
3475 if (CheckHasBit(cached_has_bits, 0x00000001U)) {
3476 if (!this_._internal_name().empty()) {
3477 const ::std::string& _s = this_._internal_name();
3478 ::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
3479 _s.data(), static_cast<int>(_s.length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "operations_research.math_opt.IndicatorConstraintProto.name");
3480 target = stream->WriteStringMaybeAliased(5, _s, target);
3481 }
3482 }
3483
3484 // bool activate_on_zero = 6;
3485 if (CheckHasBit(cached_has_bits, 0x00000020U)) {
3486 if (this_._internal_activate_on_zero() != 0) {
3487 target = stream->EnsureSpace(target);
3488 target = ::_pbi::WireFormatLite::WriteBoolToArray(
3489 6, this_._internal_activate_on_zero(), target);
3490 }
3491 }
3492
3493 if (ABSL_PREDICT_FALSE(this_._internal_metadata_.have_unknown_fields())) {
3494 target =
3495 ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray(
3496 this_._internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream);
3497 }
3498 // @@protoc_insertion_point(serialize_to_array_end:operations_research.math_opt.IndicatorConstraintProto)
3499 return target;
3500}
3501
3502#if defined(PROTOBUF_CUSTOM_VTABLE)
3504 const IndicatorConstraintProto& this_ = static_cast<const IndicatorConstraintProto&>(base);
3505#else // PROTOBUF_CUSTOM_VTABLE
3507 const IndicatorConstraintProto& this_ = *this;
3508#endif // PROTOBUF_CUSTOM_VTABLE
3509 // @@protoc_insertion_point(message_byte_size_start:operations_research.math_opt.IndicatorConstraintProto)
3510 ::size_t total_size = 0;
3511
3512 ::uint32_t cached_has_bits = 0;
3513 // Prevent compiler warnings about cached_has_bits being unused
3514 (void)cached_has_bits;
3515
3516 ::_pbi::Prefetch5LinesFrom7Lines(&this_);
3517 cached_has_bits = this_._impl_._has_bits_[0];
3518 if (BatchCheckHasBit(cached_has_bits, 0x0000003fU)) {
3519 // string name = 5;
3520 if (CheckHasBit(cached_has_bits, 0x00000001U)) {
3521 if (!this_._internal_name().empty()) {
3522 total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize(
3523 this_._internal_name());
3524 }
3525 }
3526 // .operations_research.math_opt.SparseDoubleVectorProto expression = 2;
3527 if (CheckHasBit(cached_has_bits, 0x00000002U)) {
3528 total_size += 1 +
3529 ::google::protobuf::internal::WireFormatLite::MessageSize(*this_._impl_.expression_);
3530 }
3531 // optional int64 indicator_id = 1;
3532 if (CheckHasBit(cached_has_bits, 0x00000004U)) {
3533 total_size += ::_pbi::WireFormatLite::Int64SizePlusOne(
3534 this_._internal_indicator_id());
3535 }
3536 // double lower_bound = 3;
3537 if (CheckHasBit(cached_has_bits, 0x00000008U)) {
3538 if (::absl::bit_cast<::uint64_t>(this_._internal_lower_bound()) != 0) {
3539 total_size += 9;
3540 }
3541 }
3542 // double upper_bound = 4;
3543 if (CheckHasBit(cached_has_bits, 0x00000010U)) {
3544 if (::absl::bit_cast<::uint64_t>(this_._internal_upper_bound()) != 0) {
3545 total_size += 9;
3546 }
3547 }
3548 // bool activate_on_zero = 6;
3549 if (CheckHasBit(cached_has_bits, 0x00000020U)) {
3550 if (this_._internal_activate_on_zero() != 0) {
3551 total_size += 2;
3552 }
3553 }
3554 }
3555 return this_.MaybeComputeUnknownFieldsSize(total_size,
3556 &this_._impl_._cached_size_);
3557}
3558
3559void IndicatorConstraintProto::MergeImpl(::google::protobuf::MessageLite& to_msg,
3560 const ::google::protobuf::MessageLite& from_msg) {
3561 auto* const _this =
3562 static_cast<IndicatorConstraintProto*>(&to_msg);
3563 auto& from = static_cast<const IndicatorConstraintProto&>(from_msg);
3564 if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) {
3565 from.CheckHasBitConsistency();
3566 }
3567 ::google::protobuf::Arena* arena = _this->GetArena();
3568 // @@protoc_insertion_point(class_specific_merge_from_start:operations_research.math_opt.IndicatorConstraintProto)
3569 ABSL_DCHECK_NE(&from, _this);
3570 ::uint32_t cached_has_bits = 0;
3571 (void)cached_has_bits;
3572
3573 cached_has_bits = from._impl_._has_bits_[0];
3574 if (BatchCheckHasBit(cached_has_bits, 0x0000003fU)) {
3575 if (CheckHasBit(cached_has_bits, 0x00000001U)) {
3576 if (!from._internal_name().empty()) {
3577 _this->_internal_set_name(from._internal_name());
3578 } else {
3579 if (_this->_impl_.name_.IsDefault()) {
3580 _this->_internal_set_name("");
3581 }
3582 }
3583 }
3584 if (CheckHasBit(cached_has_bits, 0x00000002U)) {
3585 ABSL_DCHECK(from._impl_.expression_ != nullptr);
3586 if (_this->_impl_.expression_ == nullptr) {
3587 _this->_impl_.expression_ = ::google::protobuf::Message::CopyConstruct(arena, *from._impl_.expression_);
3588 } else {
3589 _this->_impl_.expression_->MergeFrom(*from._impl_.expression_);
3590 }
3591 }
3592 if (CheckHasBit(cached_has_bits, 0x00000004U)) {
3593 _this->_impl_.indicator_id_ = from._impl_.indicator_id_;
3594 }
3595 if (CheckHasBit(cached_has_bits, 0x00000008U)) {
3596 if (::absl::bit_cast<::uint64_t>(from._internal_lower_bound()) != 0) {
3597 _this->_impl_.lower_bound_ = from._impl_.lower_bound_;
3598 }
3599 }
3600 if (CheckHasBit(cached_has_bits, 0x00000010U)) {
3601 if (::absl::bit_cast<::uint64_t>(from._internal_upper_bound()) != 0) {
3602 _this->_impl_.upper_bound_ = from._impl_.upper_bound_;
3603 }
3604 }
3605 if (CheckHasBit(cached_has_bits, 0x00000020U)) {
3606 if (from._internal_activate_on_zero() != 0) {
3607 _this->_impl_.activate_on_zero_ = from._impl_.activate_on_zero_;
3608 }
3609 }
3610 }
3611 _this->_impl_._has_bits_[0] |= cached_has_bits;
3612 _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(
3613 from._internal_metadata_);
3614}
3615
3616void IndicatorConstraintProto::CopyFrom(const IndicatorConstraintProto& from) {
3617 // @@protoc_insertion_point(class_specific_copy_from_start:operations_research.math_opt.IndicatorConstraintProto)
3618 if (&from == this) return;
3619 Clear();
3620 MergeFrom(from);
3621}
3622
3624void IndicatorConstraintProto::InternalSwap(IndicatorConstraintProto* PROTOBUF_RESTRICT PROTOBUF_NONNULL other) {
3625 using ::std::swap;
3626 auto* arena = GetArena();
3627 ABSL_DCHECK_EQ(arena, other->GetArena());
3628 _internal_metadata_.InternalSwap(&other->_internal_metadata_);
3629 swap(_impl_._has_bits_[0], other->_impl_._has_bits_[0]);
3630 ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.name_, &other->_impl_.name_, arena);
3631 ::google::protobuf::internal::memswap<
3632 PROTOBUF_FIELD_OFFSET(IndicatorConstraintProto, _impl_.activate_on_zero_)
3633 + sizeof(IndicatorConstraintProto::_impl_.activate_on_zero_)
3634 - PROTOBUF_FIELD_OFFSET(IndicatorConstraintProto, _impl_.expression_)>(
3635 reinterpret_cast<char*>(&_impl_.expression_),
3636 reinterpret_cast<char*>(&other->_impl_.expression_));
3637}
3638
3639::google::protobuf::Metadata IndicatorConstraintProto::GetMetadata() const {
3640 return ::google::protobuf::Message::GetMetadataImpl(GetClassData()->full());
3641}
3642// ===================================================================
3643
3644#if defined(PROTOBUF_CUSTOM_VTABLE)
3649#else // PROTOBUF_CUSTOM_VTABLE
3651ModelProto_AuxiliaryObjectivesEntry_DoNotUse::ModelProto_AuxiliaryObjectivesEntry_DoNotUse(::google::protobuf::Arena* PROTOBUF_NULLABLE arena) : SuperType(arena) {}
3652#endif // PROTOBUF_CUSTOM_VTABLE
3653inline void* PROTOBUF_NONNULL ModelProto_AuxiliaryObjectivesEntry_DoNotUse::PlacementNew_(
3654 const void* PROTOBUF_NONNULL, void* PROTOBUF_NONNULL mem,
3655 ::google::protobuf::Arena* PROTOBUF_NULLABLE arena) {
3656 return ::new (mem) ModelProto_AuxiliaryObjectivesEntry_DoNotUse(arena);
3657}
3658constexpr auto ModelProto_AuxiliaryObjectivesEntry_DoNotUse::InternalNewImpl_() {
3659 return ::google::protobuf::internal::MessageCreator::ZeroInit(sizeof(ModelProto_AuxiliaryObjectivesEntry_DoNotUse),
3661}
3663 return ::google::protobuf::internal::ClassDataFull{
3664 ::google::protobuf::internal::ClassData{
3666 &_table_.header,
3667 nullptr, // OnDemandRegisterArenaDtor
3668 nullptr, // IsInitialized
3669 &ModelProto_AuxiliaryObjectivesEntry_DoNotUse::MergeImpl,
3670 ::google::protobuf::Message::GetNewImpl<ModelProto_AuxiliaryObjectivesEntry_DoNotUse>(),
3671#if defined(PROTOBUF_CUSTOM_VTABLE)
3672 &ModelProto_AuxiliaryObjectivesEntry_DoNotUse::SharedDtor,
3673 static_cast<void (::google::protobuf::MessageLite::*)()>(&ModelProto_AuxiliaryObjectivesEntry_DoNotUse::ClearImpl),
3674 ::google::protobuf::Message::ByteSizeLongImpl, ::google::protobuf::Message::_InternalSerializeImpl
3675 ,
3676#endif // PROTOBUF_CUSTOM_VTABLE
3677 PROTOBUF_FIELD_OFFSET(ModelProto_AuxiliaryObjectivesEntry_DoNotUse, _impl_._cached_size_),
3678 false,
3679 },
3680 &ModelProto_AuxiliaryObjectivesEntry_DoNotUse::kDescriptorMethods,
3682 nullptr, // tracker
3683 };
3684}
3685
3686PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 const
3687 ::google::protobuf::internal::ClassDataFull ModelProto_AuxiliaryObjectivesEntry_DoNotUse_class_data_ =
3689
3690PROTOBUF_ATTRIBUTE_WEAK const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL
3691ModelProto_AuxiliaryObjectivesEntry_DoNotUse::GetClassData() const {
3692 ::google::protobuf::internal::PrefetchToLocalCache(&ModelProto_AuxiliaryObjectivesEntry_DoNotUse_class_data_);
3693 ::google::protobuf::internal::PrefetchToLocalCache(ModelProto_AuxiliaryObjectivesEntry_DoNotUse_class_data_.tc_table);
3696PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1
3697const ::_pbi::TcParseTable<1, 2, 1, 0, 2>
3698ModelProto_AuxiliaryObjectivesEntry_DoNotUse::_table_ = {
3699 {
3700 PROTOBUF_FIELD_OFFSET(ModelProto_AuxiliaryObjectivesEntry_DoNotUse, _impl_._has_bits_),
3701 0, // no _extensions_
3702 2, 8, // max_field_number, fast_idx_mask
3703 offsetof(decltype(_table_), field_lookup_table),
3704 4294967292, // skipmap
3705 offsetof(decltype(_table_), field_entries),
3706 2, // num_field_entries
3707 1, // num_aux_entries
3708 offsetof(decltype(_table_), aux_entries),
3710 nullptr, // post_loop_handler
3711 ::_pbi::TcParser::DiscardEverythingFallback, // fallback
3712 #ifdef PROTOBUF_PREFETCH_PARSE_TABLE
3713 ::_pbi::TcParser::GetTable<::operations_research::math_opt::ModelProto_AuxiliaryObjectivesEntry_DoNotUse>(), // to_prefetch
3714 #endif // PROTOBUF_PREFETCH_PARSE_TABLE
3715 }, {{
3716 // .operations_research.math_opt.ObjectiveProto value = 2;
3717 {::_pbi::TcParser::FastMtS1,
3718 {18, 0, 0,
3719 PROTOBUF_FIELD_OFFSET(ModelProto_AuxiliaryObjectivesEntry_DoNotUse, _impl_.value_)}},
3720 // int64 key = 1;
3721 {::_pbi::TcParser::SingularVarintNoZag1<::uint64_t, offsetof(ModelProto_AuxiliaryObjectivesEntry_DoNotUse, _impl_.key_), 1>(),
3722 {8, 1, 0,
3723 PROTOBUF_FIELD_OFFSET(ModelProto_AuxiliaryObjectivesEntry_DoNotUse, _impl_.key_)}},
3724 }}, {{
3725 65535, 65535
3726 }}, {{
3727 // int64 key = 1;
3728 {PROTOBUF_FIELD_OFFSET(ModelProto_AuxiliaryObjectivesEntry_DoNotUse, _impl_.key_), _Internal::kHasBitsOffset + 1, 0, (0 | ::_fl::kFcOptional | ::_fl::kInt64)},
3729 // .operations_research.math_opt.ObjectiveProto value = 2;
3730 {PROTOBUF_FIELD_OFFSET(ModelProto_AuxiliaryObjectivesEntry_DoNotUse, _impl_.value_), _Internal::kHasBitsOffset + 0, 0, (0 | ::_fl::kFcOptional | ::_fl::kMessage | ::_fl::kTvTable)},
3731 }},
3732 {{
3733 {::_pbi::TcParser::GetTable<::operations_research::math_opt::ObjectiveProto>()},
3734 }},
3735 {{
3736 }},
3737};
3738// ===================================================================
3739
3740#if defined(PROTOBUF_CUSTOM_VTABLE)
3743ModelProto_QuadraticConstraintsEntry_DoNotUse::ModelProto_QuadraticConstraintsEntry_DoNotUse(::google::protobuf::Arena* PROTOBUF_NULLABLE arena)
3745#else // PROTOBUF_CUSTOM_VTABLE
3746ModelProto_QuadraticConstraintsEntry_DoNotUse::ModelProto_QuadraticConstraintsEntry_DoNotUse() : SuperType() {}
3747ModelProto_QuadraticConstraintsEntry_DoNotUse::ModelProto_QuadraticConstraintsEntry_DoNotUse(::google::protobuf::Arena* PROTOBUF_NULLABLE arena) : SuperType(arena) {}
3748#endif // PROTOBUF_CUSTOM_VTABLE
3749inline void* PROTOBUF_NONNULL ModelProto_QuadraticConstraintsEntry_DoNotUse::PlacementNew_(
3750 const void* PROTOBUF_NONNULL, void* PROTOBUF_NONNULL mem,
3751 ::google::protobuf::Arena* PROTOBUF_NULLABLE arena) {
3752 return ::new (mem) ModelProto_QuadraticConstraintsEntry_DoNotUse(arena);
3753}
3754constexpr auto ModelProto_QuadraticConstraintsEntry_DoNotUse::InternalNewImpl_() {
3755 return ::google::protobuf::internal::MessageCreator::ZeroInit(sizeof(ModelProto_QuadraticConstraintsEntry_DoNotUse),
3757}
3759 return ::google::protobuf::internal::ClassDataFull{
3760 ::google::protobuf::internal::ClassData{
3762 &_table_.header,
3763 nullptr, // OnDemandRegisterArenaDtor
3764 nullptr, // IsInitialized
3765 &ModelProto_QuadraticConstraintsEntry_DoNotUse::MergeImpl,
3766 ::google::protobuf::Message::GetNewImpl<ModelProto_QuadraticConstraintsEntry_DoNotUse>(),
3767#if defined(PROTOBUF_CUSTOM_VTABLE)
3768 &ModelProto_QuadraticConstraintsEntry_DoNotUse::SharedDtor,
3769 static_cast<void (::google::protobuf::MessageLite::*)()>(&ModelProto_QuadraticConstraintsEntry_DoNotUse::ClearImpl),
3770 ::google::protobuf::Message::ByteSizeLongImpl, ::google::protobuf::Message::_InternalSerializeImpl
3771 ,
3772#endif // PROTOBUF_CUSTOM_VTABLE
3773 PROTOBUF_FIELD_OFFSET(ModelProto_QuadraticConstraintsEntry_DoNotUse, _impl_._cached_size_),
3774 false,
3775 },
3776 &ModelProto_QuadraticConstraintsEntry_DoNotUse::kDescriptorMethods,
3778 nullptr, // tracker
3779 };
3780}
3781
3782PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 const
3783 ::google::protobuf::internal::ClassDataFull ModelProto_QuadraticConstraintsEntry_DoNotUse_class_data_ =
3784 ModelProto_QuadraticConstraintsEntry_DoNotUse::InternalGenerateClassData_();
3785
3786PROTOBUF_ATTRIBUTE_WEAK const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL
3787ModelProto_QuadraticConstraintsEntry_DoNotUse::GetClassData() const {
3788 ::google::protobuf::internal::PrefetchToLocalCache(&ModelProto_QuadraticConstraintsEntry_DoNotUse_class_data_);
3789 ::google::protobuf::internal::PrefetchToLocalCache(ModelProto_QuadraticConstraintsEntry_DoNotUse_class_data_.tc_table);
3790 return ModelProto_QuadraticConstraintsEntry_DoNotUse_class_data_.base();
3791}
3792PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1
3793const ::_pbi::TcParseTable<1, 2, 1, 0, 2>
3794ModelProto_QuadraticConstraintsEntry_DoNotUse::_table_ = {
3795 {
3796 PROTOBUF_FIELD_OFFSET(ModelProto_QuadraticConstraintsEntry_DoNotUse, _impl_._has_bits_),
3797 0, // no _extensions_
3798 2, 8, // max_field_number, fast_idx_mask
3799 offsetof(decltype(_table_), field_lookup_table),
3800 4294967292, // skipmap
3801 offsetof(decltype(_table_), field_entries),
3802 2, // num_field_entries
3803 1, // num_aux_entries
3804 offsetof(decltype(_table_), aux_entries),
3806 nullptr, // post_loop_handler
3807 ::_pbi::TcParser::DiscardEverythingFallback, // fallback
3808 #ifdef PROTOBUF_PREFETCH_PARSE_TABLE
3809 ::_pbi::TcParser::GetTable<::operations_research::math_opt::ModelProto_QuadraticConstraintsEntry_DoNotUse>(), // to_prefetch
3810 #endif // PROTOBUF_PREFETCH_PARSE_TABLE
3811 }, {{
3812 // .operations_research.math_opt.QuadraticConstraintProto value = 2;
3813 {::_pbi::TcParser::FastMtS1,
3814 {18, 0, 0,
3815 PROTOBUF_FIELD_OFFSET(ModelProto_QuadraticConstraintsEntry_DoNotUse, _impl_.value_)}},
3816 // int64 key = 1;
3817 {::_pbi::TcParser::SingularVarintNoZag1<::uint64_t, offsetof(ModelProto_QuadraticConstraintsEntry_DoNotUse, _impl_.key_), 1>(),
3818 {8, 1, 0,
3819 PROTOBUF_FIELD_OFFSET(ModelProto_QuadraticConstraintsEntry_DoNotUse, _impl_.key_)}},
3820 }}, {{
3821 65535, 65535
3822 }}, {{
3823 // int64 key = 1;
3824 {PROTOBUF_FIELD_OFFSET(ModelProto_QuadraticConstraintsEntry_DoNotUse, _impl_.key_), _Internal::kHasBitsOffset + 1, 0, (0 | ::_fl::kFcOptional | ::_fl::kInt64)},
3825 // .operations_research.math_opt.QuadraticConstraintProto value = 2;
3826 {PROTOBUF_FIELD_OFFSET(ModelProto_QuadraticConstraintsEntry_DoNotUse, _impl_.value_), _Internal::kHasBitsOffset + 0, 0, (0 | ::_fl::kFcOptional | ::_fl::kMessage | ::_fl::kTvTable)},
3827 }},
3828 {{
3829 {::_pbi::TcParser::GetTable<::operations_research::math_opt::QuadraticConstraintProto>()},
3830 }},
3831 {{
3832 }},
3833};
3834// ===================================================================
3835
3836#if defined(PROTOBUF_CUSTOM_VTABLE)
3837ModelProto_SecondOrderConeConstraintsEntry_DoNotUse::ModelProto_SecondOrderConeConstraintsEntry_DoNotUse()
3838 : SuperType(ModelProto_SecondOrderConeConstraintsEntry_DoNotUse_class_data_.base()) {}
3839ModelProto_SecondOrderConeConstraintsEntry_DoNotUse::ModelProto_SecondOrderConeConstraintsEntry_DoNotUse(::google::protobuf::Arena* PROTOBUF_NULLABLE arena)
3840 : SuperType(arena, ModelProto_SecondOrderConeConstraintsEntry_DoNotUse_class_data_.base()) {}
3841#else // PROTOBUF_CUSTOM_VTABLE
3842ModelProto_SecondOrderConeConstraintsEntry_DoNotUse::ModelProto_SecondOrderConeConstraintsEntry_DoNotUse() : SuperType() {}
3843ModelProto_SecondOrderConeConstraintsEntry_DoNotUse::ModelProto_SecondOrderConeConstraintsEntry_DoNotUse(::google::protobuf::Arena* PROTOBUF_NULLABLE arena) : SuperType(arena) {}
3844#endif // PROTOBUF_CUSTOM_VTABLE
3845inline void* PROTOBUF_NONNULL ModelProto_SecondOrderConeConstraintsEntry_DoNotUse::PlacementNew_(
3846 const void* PROTOBUF_NONNULL, void* PROTOBUF_NONNULL mem,
3847 ::google::protobuf::Arena* PROTOBUF_NULLABLE arena) {
3848 return ::new (mem) ModelProto_SecondOrderConeConstraintsEntry_DoNotUse(arena);
3849}
3850constexpr auto ModelProto_SecondOrderConeConstraintsEntry_DoNotUse::InternalNewImpl_() {
3851 return ::google::protobuf::internal::MessageCreator::ZeroInit(sizeof(ModelProto_SecondOrderConeConstraintsEntry_DoNotUse),
3855 return ::google::protobuf::internal::ClassDataFull{
3856 ::google::protobuf::internal::ClassData{
3858 &_table_.header,
3859 nullptr, // OnDemandRegisterArenaDtor
3860 nullptr, // IsInitialized
3861 &ModelProto_SecondOrderConeConstraintsEntry_DoNotUse::MergeImpl,
3862 ::google::protobuf::Message::GetNewImpl<ModelProto_SecondOrderConeConstraintsEntry_DoNotUse>(),
3863#if defined(PROTOBUF_CUSTOM_VTABLE)
3864 &ModelProto_SecondOrderConeConstraintsEntry_DoNotUse::SharedDtor,
3865 static_cast<void (::google::protobuf::MessageLite::*)()>(&ModelProto_SecondOrderConeConstraintsEntry_DoNotUse::ClearImpl),
3866 ::google::protobuf::Message::ByteSizeLongImpl, ::google::protobuf::Message::_InternalSerializeImpl
3867 ,
3868#endif // PROTOBUF_CUSTOM_VTABLE
3869 PROTOBUF_FIELD_OFFSET(ModelProto_SecondOrderConeConstraintsEntry_DoNotUse, _impl_._cached_size_),
3870 false,
3871 },
3872 &ModelProto_SecondOrderConeConstraintsEntry_DoNotUse::kDescriptorMethods,
3874 nullptr, // tracker
3875 };
3876}
3877
3878PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 const
3879 ::google::protobuf::internal::ClassDataFull ModelProto_SecondOrderConeConstraintsEntry_DoNotUse_class_data_ =
3880 ModelProto_SecondOrderConeConstraintsEntry_DoNotUse::InternalGenerateClassData_();
3881
3882PROTOBUF_ATTRIBUTE_WEAK const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL
3883ModelProto_SecondOrderConeConstraintsEntry_DoNotUse::GetClassData() const {
3884 ::google::protobuf::internal::PrefetchToLocalCache(&ModelProto_SecondOrderConeConstraintsEntry_DoNotUse_class_data_);
3885 ::google::protobuf::internal::PrefetchToLocalCache(ModelProto_SecondOrderConeConstraintsEntry_DoNotUse_class_data_.tc_table);
3886 return ModelProto_SecondOrderConeConstraintsEntry_DoNotUse_class_data_.base();
3887}
3888PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1
3889const ::_pbi::TcParseTable<1, 2, 1, 0, 2>
3890ModelProto_SecondOrderConeConstraintsEntry_DoNotUse::_table_ = {
3891 {
3892 PROTOBUF_FIELD_OFFSET(ModelProto_SecondOrderConeConstraintsEntry_DoNotUse, _impl_._has_bits_),
3893 0, // no _extensions_
3894 2, 8, // max_field_number, fast_idx_mask
3895 offsetof(decltype(_table_), field_lookup_table),
3896 4294967292, // skipmap
3897 offsetof(decltype(_table_), field_entries),
3898 2, // num_field_entries
3899 1, // num_aux_entries
3900 offsetof(decltype(_table_), aux_entries),
3902 nullptr, // post_loop_handler
3903 ::_pbi::TcParser::DiscardEverythingFallback, // fallback
3904 #ifdef PROTOBUF_PREFETCH_PARSE_TABLE
3905 ::_pbi::TcParser::GetTable<::operations_research::math_opt::ModelProto_SecondOrderConeConstraintsEntry_DoNotUse>(), // to_prefetch
3906 #endif // PROTOBUF_PREFETCH_PARSE_TABLE
3907 }, {{
3908 // .operations_research.math_opt.SecondOrderConeConstraintProto value = 2;
3909 {::_pbi::TcParser::FastMtS1,
3910 {18, 0, 0,
3911 PROTOBUF_FIELD_OFFSET(ModelProto_SecondOrderConeConstraintsEntry_DoNotUse, _impl_.value_)}},
3912 // int64 key = 1;
3913 {::_pbi::TcParser::SingularVarintNoZag1<::uint64_t, offsetof(ModelProto_SecondOrderConeConstraintsEntry_DoNotUse, _impl_.key_), 1>(),
3914 {8, 1, 0,
3915 PROTOBUF_FIELD_OFFSET(ModelProto_SecondOrderConeConstraintsEntry_DoNotUse, _impl_.key_)}},
3916 }}, {{
3917 65535, 65535
3918 }}, {{
3919 // int64 key = 1;
3920 {PROTOBUF_FIELD_OFFSET(ModelProto_SecondOrderConeConstraintsEntry_DoNotUse, _impl_.key_), _Internal::kHasBitsOffset + 1, 0, (0 | ::_fl::kFcOptional | ::_fl::kInt64)},
3921 // .operations_research.math_opt.SecondOrderConeConstraintProto value = 2;
3922 {PROTOBUF_FIELD_OFFSET(ModelProto_SecondOrderConeConstraintsEntry_DoNotUse, _impl_.value_), _Internal::kHasBitsOffset + 0, 0, (0 | ::_fl::kFcOptional | ::_fl::kMessage | ::_fl::kTvTable)},
3923 }},
3924 {{
3925 {::_pbi::TcParser::GetTable<::operations_research::math_opt::SecondOrderConeConstraintProto>()},
3926 }},
3927 {{
3928 }},
3929};
3930// ===================================================================
3931
3932#if defined(PROTOBUF_CUSTOM_VTABLE)
3933ModelProto_Sos1ConstraintsEntry_DoNotUse::ModelProto_Sos1ConstraintsEntry_DoNotUse()
3934 : SuperType(ModelProto_Sos1ConstraintsEntry_DoNotUse_class_data_.base()) {}
3935ModelProto_Sos1ConstraintsEntry_DoNotUse::ModelProto_Sos1ConstraintsEntry_DoNotUse(::google::protobuf::Arena* PROTOBUF_NULLABLE arena)
3936 : SuperType(arena, ModelProto_Sos1ConstraintsEntry_DoNotUse_class_data_.base()) {}
3937#else // PROTOBUF_CUSTOM_VTABLE
3938ModelProto_Sos1ConstraintsEntry_DoNotUse::ModelProto_Sos1ConstraintsEntry_DoNotUse() : SuperType() {}
3939ModelProto_Sos1ConstraintsEntry_DoNotUse::ModelProto_Sos1ConstraintsEntry_DoNotUse(::google::protobuf::Arena* PROTOBUF_NULLABLE arena) : SuperType(arena) {}
3940#endif // PROTOBUF_CUSTOM_VTABLE
3941inline void* PROTOBUF_NONNULL ModelProto_Sos1ConstraintsEntry_DoNotUse::PlacementNew_(
3942 const void* PROTOBUF_NONNULL, void* PROTOBUF_NONNULL mem,
3943 ::google::protobuf::Arena* PROTOBUF_NULLABLE arena) {
3944 return ::new (mem) ModelProto_Sos1ConstraintsEntry_DoNotUse(arena);
3945}
3946constexpr auto ModelProto_Sos1ConstraintsEntry_DoNotUse::InternalNewImpl_() {
3947 return ::google::protobuf::internal::MessageCreator::ZeroInit(sizeof(ModelProto_Sos1ConstraintsEntry_DoNotUse),
3948 alignof(ModelProto_Sos1ConstraintsEntry_DoNotUse));
3951 return ::google::protobuf::internal::ClassDataFull{
3952 ::google::protobuf::internal::ClassData{
3954 &_table_.header,
3955 nullptr, // OnDemandRegisterArenaDtor
3956 nullptr, // IsInitialized
3957 &ModelProto_Sos1ConstraintsEntry_DoNotUse::MergeImpl,
3958 ::google::protobuf::Message::GetNewImpl<ModelProto_Sos1ConstraintsEntry_DoNotUse>(),
3959#if defined(PROTOBUF_CUSTOM_VTABLE)
3960 &ModelProto_Sos1ConstraintsEntry_DoNotUse::SharedDtor,
3961 static_cast<void (::google::protobuf::MessageLite::*)()>(&ModelProto_Sos1ConstraintsEntry_DoNotUse::ClearImpl),
3962 ::google::protobuf::Message::ByteSizeLongImpl, ::google::protobuf::Message::_InternalSerializeImpl
3963 ,
3964#endif // PROTOBUF_CUSTOM_VTABLE
3965 PROTOBUF_FIELD_OFFSET(ModelProto_Sos1ConstraintsEntry_DoNotUse, _impl_._cached_size_),
3966 false,
3967 },
3968 &ModelProto_Sos1ConstraintsEntry_DoNotUse::kDescriptorMethods,
3970 nullptr, // tracker
3971 };
3972}
3973
3974PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 const
3975 ::google::protobuf::internal::ClassDataFull ModelProto_Sos1ConstraintsEntry_DoNotUse_class_data_ =
3976 ModelProto_Sos1ConstraintsEntry_DoNotUse::InternalGenerateClassData_();
3977
3978PROTOBUF_ATTRIBUTE_WEAK const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL
3979ModelProto_Sos1ConstraintsEntry_DoNotUse::GetClassData() const {
3980 ::google::protobuf::internal::PrefetchToLocalCache(&ModelProto_Sos1ConstraintsEntry_DoNotUse_class_data_);
3981 ::google::protobuf::internal::PrefetchToLocalCache(ModelProto_Sos1ConstraintsEntry_DoNotUse_class_data_.tc_table);
3982 return ModelProto_Sos1ConstraintsEntry_DoNotUse_class_data_.base();
3983}
3984PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1
3985const ::_pbi::TcParseTable<1, 2, 1, 0, 2>
3986ModelProto_Sos1ConstraintsEntry_DoNotUse::_table_ = {
3987 {
3988 PROTOBUF_FIELD_OFFSET(ModelProto_Sos1ConstraintsEntry_DoNotUse, _impl_._has_bits_),
3989 0, // no _extensions_
3990 2, 8, // max_field_number, fast_idx_mask
3991 offsetof(decltype(_table_), field_lookup_table),
3992 4294967292, // skipmap
3993 offsetof(decltype(_table_), field_entries),
3994 2, // num_field_entries
3995 1, // num_aux_entries
3996 offsetof(decltype(_table_), aux_entries),
3998 nullptr, // post_loop_handler
3999 ::_pbi::TcParser::DiscardEverythingFallback, // fallback
4000 #ifdef PROTOBUF_PREFETCH_PARSE_TABLE
4001 ::_pbi::TcParser::GetTable<::operations_research::math_opt::ModelProto_Sos1ConstraintsEntry_DoNotUse>(), // to_prefetch
4002 #endif // PROTOBUF_PREFETCH_PARSE_TABLE
4003 }, {{
4004 // .operations_research.math_opt.SosConstraintProto value = 2;
4005 {::_pbi::TcParser::FastMtS1,
4006 {18, 0, 0,
4007 PROTOBUF_FIELD_OFFSET(ModelProto_Sos1ConstraintsEntry_DoNotUse, _impl_.value_)}},
4008 // int64 key = 1;
4009 {::_pbi::TcParser::SingularVarintNoZag1<::uint64_t, offsetof(ModelProto_Sos1ConstraintsEntry_DoNotUse, _impl_.key_), 1>(),
4010 {8, 1, 0,
4011 PROTOBUF_FIELD_OFFSET(ModelProto_Sos1ConstraintsEntry_DoNotUse, _impl_.key_)}},
4012 }}, {{
4013 65535, 65535
4014 }}, {{
4015 // int64 key = 1;
4016 {PROTOBUF_FIELD_OFFSET(ModelProto_Sos1ConstraintsEntry_DoNotUse, _impl_.key_), _Internal::kHasBitsOffset + 1, 0, (0 | ::_fl::kFcOptional | ::_fl::kInt64)},
4017 // .operations_research.math_opt.SosConstraintProto value = 2;
4018 {PROTOBUF_FIELD_OFFSET(ModelProto_Sos1ConstraintsEntry_DoNotUse, _impl_.value_), _Internal::kHasBitsOffset + 0, 0, (0 | ::_fl::kFcOptional | ::_fl::kMessage | ::_fl::kTvTable)},
4019 }},
4020 {{
4021 {::_pbi::TcParser::GetTable<::operations_research::math_opt::SosConstraintProto>()},
4022 }},
4023 {{
4024 }},
4025};
4026// ===================================================================
4027
4028#if defined(PROTOBUF_CUSTOM_VTABLE)
4029ModelProto_Sos2ConstraintsEntry_DoNotUse::ModelProto_Sos2ConstraintsEntry_DoNotUse()
4030 : SuperType(ModelProto_Sos2ConstraintsEntry_DoNotUse_class_data_.base()) {}
4031ModelProto_Sos2ConstraintsEntry_DoNotUse::ModelProto_Sos2ConstraintsEntry_DoNotUse(::google::protobuf::Arena* PROTOBUF_NULLABLE arena)
4032 : SuperType(arena, ModelProto_Sos2ConstraintsEntry_DoNotUse_class_data_.base()) {}
4033#else // PROTOBUF_CUSTOM_VTABLE
4034ModelProto_Sos2ConstraintsEntry_DoNotUse::ModelProto_Sos2ConstraintsEntry_DoNotUse() : SuperType() {}
4035ModelProto_Sos2ConstraintsEntry_DoNotUse::ModelProto_Sos2ConstraintsEntry_DoNotUse(::google::protobuf::Arena* PROTOBUF_NULLABLE arena) : SuperType(arena) {}
4036#endif // PROTOBUF_CUSTOM_VTABLE
4037inline void* PROTOBUF_NONNULL ModelProto_Sos2ConstraintsEntry_DoNotUse::PlacementNew_(
4038 const void* PROTOBUF_NONNULL, void* PROTOBUF_NONNULL mem,
4039 ::google::protobuf::Arena* PROTOBUF_NULLABLE arena) {
4040 return ::new (mem) ModelProto_Sos2ConstraintsEntry_DoNotUse(arena);
4041}
4042constexpr auto ModelProto_Sos2ConstraintsEntry_DoNotUse::InternalNewImpl_() {
4043 return ::google::protobuf::internal::MessageCreator::ZeroInit(sizeof(ModelProto_Sos2ConstraintsEntry_DoNotUse),
4044 alignof(ModelProto_Sos2ConstraintsEntry_DoNotUse));
4045}
4047 return ::google::protobuf::internal::ClassDataFull{
4048 ::google::protobuf::internal::ClassData{
4050 &_table_.header,
4051 nullptr, // OnDemandRegisterArenaDtor
4052 nullptr, // IsInitialized
4053 &ModelProto_Sos2ConstraintsEntry_DoNotUse::MergeImpl,
4054 ::google::protobuf::Message::GetNewImpl<ModelProto_Sos2ConstraintsEntry_DoNotUse>(),
4055#if defined(PROTOBUF_CUSTOM_VTABLE)
4056 &ModelProto_Sos2ConstraintsEntry_DoNotUse::SharedDtor,
4057 static_cast<void (::google::protobuf::MessageLite::*)()>(&ModelProto_Sos2ConstraintsEntry_DoNotUse::ClearImpl),
4058 ::google::protobuf::Message::ByteSizeLongImpl, ::google::protobuf::Message::_InternalSerializeImpl
4059 ,
4060#endif // PROTOBUF_CUSTOM_VTABLE
4061 PROTOBUF_FIELD_OFFSET(ModelProto_Sos2ConstraintsEntry_DoNotUse, _impl_._cached_size_),
4062 false,
4063 },
4064 &ModelProto_Sos2ConstraintsEntry_DoNotUse::kDescriptorMethods,
4066 nullptr, // tracker
4067 };
4068}
4069
4070PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 const
4071 ::google::protobuf::internal::ClassDataFull ModelProto_Sos2ConstraintsEntry_DoNotUse_class_data_ =
4072 ModelProto_Sos2ConstraintsEntry_DoNotUse::InternalGenerateClassData_();
4073
4074PROTOBUF_ATTRIBUTE_WEAK const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL
4075ModelProto_Sos2ConstraintsEntry_DoNotUse::GetClassData() const {
4076 ::google::protobuf::internal::PrefetchToLocalCache(&ModelProto_Sos2ConstraintsEntry_DoNotUse_class_data_);
4077 ::google::protobuf::internal::PrefetchToLocalCache(ModelProto_Sos2ConstraintsEntry_DoNotUse_class_data_.tc_table);
4078 return ModelProto_Sos2ConstraintsEntry_DoNotUse_class_data_.base();
4079}
4080PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1
4081const ::_pbi::TcParseTable<1, 2, 1, 0, 2>
4082ModelProto_Sos2ConstraintsEntry_DoNotUse::_table_ = {
4084 PROTOBUF_FIELD_OFFSET(ModelProto_Sos2ConstraintsEntry_DoNotUse, _impl_._has_bits_),
4085 0, // no _extensions_
4086 2, 8, // max_field_number, fast_idx_mask
4087 offsetof(decltype(_table_), field_lookup_table),
4088 4294967292, // skipmap
4089 offsetof(decltype(_table_), field_entries),
4090 2, // num_field_entries
4091 1, // num_aux_entries
4092 offsetof(decltype(_table_), aux_entries),
4094 nullptr, // post_loop_handler
4095 ::_pbi::TcParser::DiscardEverythingFallback, // fallback
4096 #ifdef PROTOBUF_PREFETCH_PARSE_TABLE
4097 ::_pbi::TcParser::GetTable<::operations_research::math_opt::ModelProto_Sos2ConstraintsEntry_DoNotUse>(), // to_prefetch
4098 #endif // PROTOBUF_PREFETCH_PARSE_TABLE
4099 }, {{
4100 // .operations_research.math_opt.SosConstraintProto value = 2;
4101 {::_pbi::TcParser::FastMtS1,
4102 {18, 0, 0,
4103 PROTOBUF_FIELD_OFFSET(ModelProto_Sos2ConstraintsEntry_DoNotUse, _impl_.value_)}},
4104 // int64 key = 1;
4105 {::_pbi::TcParser::SingularVarintNoZag1<::uint64_t, offsetof(ModelProto_Sos2ConstraintsEntry_DoNotUse, _impl_.key_), 1>(),
4106 {8, 1, 0,
4107 PROTOBUF_FIELD_OFFSET(ModelProto_Sos2ConstraintsEntry_DoNotUse, _impl_.key_)}},
4108 }}, {{
4109 65535, 65535
4110 }}, {{
4111 // int64 key = 1;
4112 {PROTOBUF_FIELD_OFFSET(ModelProto_Sos2ConstraintsEntry_DoNotUse, _impl_.key_), _Internal::kHasBitsOffset + 1, 0, (0 | ::_fl::kFcOptional | ::_fl::kInt64)},
4113 // .operations_research.math_opt.SosConstraintProto value = 2;
4114 {PROTOBUF_FIELD_OFFSET(ModelProto_Sos2ConstraintsEntry_DoNotUse, _impl_.value_), _Internal::kHasBitsOffset + 0, 0, (0 | ::_fl::kFcOptional | ::_fl::kMessage | ::_fl::kTvTable)},
4115 }},
4116 {{
4117 {::_pbi::TcParser::GetTable<::operations_research::math_opt::SosConstraintProto>()},
4118 }},
4119 {{
4120 }},
4121};
4122// ===================================================================
4123
4124#if defined(PROTOBUF_CUSTOM_VTABLE)
4125ModelProto_IndicatorConstraintsEntry_DoNotUse::ModelProto_IndicatorConstraintsEntry_DoNotUse()
4127ModelProto_IndicatorConstraintsEntry_DoNotUse::ModelProto_IndicatorConstraintsEntry_DoNotUse(::google::protobuf::Arena* PROTOBUF_NULLABLE arena)
4129#else // PROTOBUF_CUSTOM_VTABLE
4130ModelProto_IndicatorConstraintsEntry_DoNotUse::ModelProto_IndicatorConstraintsEntry_DoNotUse() : SuperType() {}
4131ModelProto_IndicatorConstraintsEntry_DoNotUse::ModelProto_IndicatorConstraintsEntry_DoNotUse(::google::protobuf::Arena* PROTOBUF_NULLABLE arena) : SuperType(arena) {}
4132#endif // PROTOBUF_CUSTOM_VTABLE
4133inline void* PROTOBUF_NONNULL ModelProto_IndicatorConstraintsEntry_DoNotUse::PlacementNew_(
4134 const void* PROTOBUF_NONNULL, void* PROTOBUF_NONNULL mem,
4135 ::google::protobuf::Arena* PROTOBUF_NULLABLE arena) {
4136 return ::new (mem) ModelProto_IndicatorConstraintsEntry_DoNotUse(arena);
4137}
4138constexpr auto ModelProto_IndicatorConstraintsEntry_DoNotUse::InternalNewImpl_() {
4139 return ::google::protobuf::internal::MessageCreator::ZeroInit(sizeof(ModelProto_IndicatorConstraintsEntry_DoNotUse),
4140 alignof(ModelProto_IndicatorConstraintsEntry_DoNotUse));
4141}
4142constexpr auto ModelProto_IndicatorConstraintsEntry_DoNotUse::InternalGenerateClassData_() {
4143 return ::google::protobuf::internal::ClassDataFull{
4144 ::google::protobuf::internal::ClassData{
4146 &_table_.header,
4147 nullptr, // OnDemandRegisterArenaDtor
4148 nullptr, // IsInitialized
4149 &ModelProto_IndicatorConstraintsEntry_DoNotUse::MergeImpl,
4150 ::google::protobuf::Message::GetNewImpl<ModelProto_IndicatorConstraintsEntry_DoNotUse>(),
4151#if defined(PROTOBUF_CUSTOM_VTABLE)
4152 &ModelProto_IndicatorConstraintsEntry_DoNotUse::SharedDtor,
4153 static_cast<void (::google::protobuf::MessageLite::*)()>(&ModelProto_IndicatorConstraintsEntry_DoNotUse::ClearImpl),
4154 ::google::protobuf::Message::ByteSizeLongImpl, ::google::protobuf::Message::_InternalSerializeImpl
4156#endif // PROTOBUF_CUSTOM_VTABLE
4157 PROTOBUF_FIELD_OFFSET(ModelProto_IndicatorConstraintsEntry_DoNotUse, _impl_._cached_size_),
4158 false,
4159 },
4160 &ModelProto_IndicatorConstraintsEntry_DoNotUse::kDescriptorMethods,
4162 nullptr, // tracker
4163 };
4164}
4165
4166PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 const
4167 ::google::protobuf::internal::ClassDataFull ModelProto_IndicatorConstraintsEntry_DoNotUse_class_data_ =
4168 ModelProto_IndicatorConstraintsEntry_DoNotUse::InternalGenerateClassData_();
4169
4170PROTOBUF_ATTRIBUTE_WEAK const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL
4171ModelProto_IndicatorConstraintsEntry_DoNotUse::GetClassData() const {
4172 ::google::protobuf::internal::PrefetchToLocalCache(&ModelProto_IndicatorConstraintsEntry_DoNotUse_class_data_);
4173 ::google::protobuf::internal::PrefetchToLocalCache(ModelProto_IndicatorConstraintsEntry_DoNotUse_class_data_.tc_table);
4174 return ModelProto_IndicatorConstraintsEntry_DoNotUse_class_data_.base();
4175}
4176PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1
4177const ::_pbi::TcParseTable<1, 2, 1, 0, 2>
4178ModelProto_IndicatorConstraintsEntry_DoNotUse::_table_ = {
4179 {
4180 PROTOBUF_FIELD_OFFSET(ModelProto_IndicatorConstraintsEntry_DoNotUse, _impl_._has_bits_),
4181 0, // no _extensions_
4182 2, 8, // max_field_number, fast_idx_mask
4183 offsetof(decltype(_table_), field_lookup_table),
4184 4294967292, // skipmap
4185 offsetof(decltype(_table_), field_entries),
4186 2, // num_field_entries
4187 1, // num_aux_entries
4188 offsetof(decltype(_table_), aux_entries),
4190 nullptr, // post_loop_handler
4191 ::_pbi::TcParser::DiscardEverythingFallback, // fallback
4192 #ifdef PROTOBUF_PREFETCH_PARSE_TABLE
4193 ::_pbi::TcParser::GetTable<::operations_research::math_opt::ModelProto_IndicatorConstraintsEntry_DoNotUse>(), // to_prefetch
4194 #endif // PROTOBUF_PREFETCH_PARSE_TABLE
4195 }, {{
4196 // .operations_research.math_opt.IndicatorConstraintProto value = 2;
4197 {::_pbi::TcParser::FastMtS1,
4198 {18, 0, 0,
4199 PROTOBUF_FIELD_OFFSET(ModelProto_IndicatorConstraintsEntry_DoNotUse, _impl_.value_)}},
4200 // int64 key = 1;
4201 {::_pbi::TcParser::SingularVarintNoZag1<::uint64_t, offsetof(ModelProto_IndicatorConstraintsEntry_DoNotUse, _impl_.key_), 1>(),
4202 {8, 1, 0,
4203 PROTOBUF_FIELD_OFFSET(ModelProto_IndicatorConstraintsEntry_DoNotUse, _impl_.key_)}},
4204 }}, {{
4205 65535, 65535
4206 }}, {{
4207 // int64 key = 1;
4208 {PROTOBUF_FIELD_OFFSET(ModelProto_IndicatorConstraintsEntry_DoNotUse, _impl_.key_), _Internal::kHasBitsOffset + 1, 0, (0 | ::_fl::kFcOptional | ::_fl::kInt64)},
4209 // .operations_research.math_opt.IndicatorConstraintProto value = 2;
4210 {PROTOBUF_FIELD_OFFSET(ModelProto_IndicatorConstraintsEntry_DoNotUse, _impl_.value_), _Internal::kHasBitsOffset + 0, 0, (0 | ::_fl::kFcOptional | ::_fl::kMessage | ::_fl::kTvTable)},
4211 }},
4212 {{
4213 {::_pbi::TcParser::GetTable<::operations_research::math_opt::IndicatorConstraintProto>()},
4214 }},
4215 {{
4216 }},
4217};
4218// ===================================================================
4219
4220class ModelProto::_Internal {
4221 public:
4222 using HasBits =
4223 decltype(::std::declval<ModelProto>()._impl_._has_bits_);
4224 static constexpr ::int32_t kHasBitsOffset =
4225 8 * PROTOBUF_FIELD_OFFSET(ModelProto, _impl_._has_bits_);
4226};
4227
4228void ModelProto::clear_linear_constraint_matrix() {
4229 ::google::protobuf::internal::TSanWrite(&_impl_);
4230 if (_impl_.linear_constraint_matrix_ != nullptr) _impl_.linear_constraint_matrix_->Clear();
4231 ClearHasBit(_impl_._has_bits_[0],
4232 0x00000010U);
4233}
4234ModelProto::ModelProto(::google::protobuf::Arena* PROTOBUF_NULLABLE arena)
4235#if defined(PROTOBUF_CUSTOM_VTABLE)
4236 : ::google::protobuf::Message(arena, ModelProto_class_data_.base()) {
4237#else // PROTOBUF_CUSTOM_VTABLE
4238 : ::google::protobuf::Message(arena) {
4239#endif // PROTOBUF_CUSTOM_VTABLE
4240 SharedCtor(arena);
4241 // @@protoc_insertion_point(arena_constructor:operations_research.math_opt.ModelProto)
4243PROTOBUF_NDEBUG_INLINE ModelProto::Impl_::Impl_(
4244 [[maybe_unused]] ::google::protobuf::internal::InternalVisibility visibility,
4245 [[maybe_unused]] ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const Impl_& from,
4246 [[maybe_unused]] const ::operations_research::math_opt::ModelProto& from_msg)
4247 : _has_bits_{from._has_bits_},
4248 _cached_size_{0},
4249 name_(arena, from.name_),
4250 quadratic_constraints_{visibility, arena, from.quadratic_constraints_},
4251 sos1_constraints_{visibility, arena, from.sos1_constraints_},
4252 sos2_constraints_{visibility, arena, from.sos2_constraints_},
4253 indicator_constraints_{visibility, arena, from.indicator_constraints_},
4254 auxiliary_objectives_{visibility, arena, from.auxiliary_objectives_},
4255 second_order_cone_constraints_{visibility, arena, from.second_order_cone_constraints_} {}
4256
4258 ::google::protobuf::Arena* PROTOBUF_NULLABLE arena,
4259 const ModelProto& from)
4260#if defined(PROTOBUF_CUSTOM_VTABLE)
4261 : ::google::protobuf::Message(arena, ModelProto_class_data_.base()) {
4262#else // PROTOBUF_CUSTOM_VTABLE
4263 : ::google::protobuf::Message(arena) {
4264#endif // PROTOBUF_CUSTOM_VTABLE
4265 ModelProto* const _this = this;
4266 (void)_this;
4267 _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(
4268 from._internal_metadata_);
4269 new (&_impl_) Impl_(internal_visibility(), arena, from._impl_, from);
4270 ::uint32_t cached_has_bits = _impl_._has_bits_[0];
4271 _impl_.variables_ = (CheckHasBit(cached_has_bits, 0x00000002U))
4272 ? ::google::protobuf::Message::CopyConstruct(arena, *from._impl_.variables_)
4273 : nullptr;
4274 _impl_.objective_ = (CheckHasBit(cached_has_bits, 0x00000004U))
4275 ? ::google::protobuf::Message::CopyConstruct(arena, *from._impl_.objective_)
4276 : nullptr;
4277 _impl_.linear_constraints_ = (CheckHasBit(cached_has_bits, 0x00000008U))
4278 ? ::google::protobuf::Message::CopyConstruct(arena, *from._impl_.linear_constraints_)
4279 : nullptr;
4280 _impl_.linear_constraint_matrix_ = (CheckHasBit(cached_has_bits, 0x00000010U))
4281 ? ::google::protobuf::Message::CopyConstruct(arena, *from._impl_.linear_constraint_matrix_)
4282 : nullptr;
4283
4284 // @@protoc_insertion_point(copy_constructor:operations_research.math_opt.ModelProto)
4285}
4286PROTOBUF_NDEBUG_INLINE ModelProto::Impl_::Impl_(
4287 [[maybe_unused]] ::google::protobuf::internal::InternalVisibility visibility,
4288 [[maybe_unused]] ::google::protobuf::Arena* PROTOBUF_NULLABLE arena)
4289 : _cached_size_{0},
4290 name_(arena),
4291 quadratic_constraints_{visibility, arena},
4292 sos1_constraints_{visibility, arena},
4293 sos2_constraints_{visibility, arena},
4294 indicator_constraints_{visibility, arena},
4295 auxiliary_objectives_{visibility, arena},
4296 second_order_cone_constraints_{visibility, arena} {}
4297
4298inline void ModelProto::SharedCtor(::_pb::Arena* PROTOBUF_NULLABLE arena) {
4299 new (&_impl_) Impl_(internal_visibility(), arena);
4300 ::memset(reinterpret_cast<char*>(&_impl_) +
4301 offsetof(Impl_, variables_),
4302 0,
4303 offsetof(Impl_, linear_constraint_matrix_) -
4304 offsetof(Impl_, variables_) +
4305 sizeof(Impl_::linear_constraint_matrix_));
4306}
4308 // @@protoc_insertion_point(destructor:operations_research.math_opt.ModelProto)
4309 SharedDtor(*this);
4310}
4311inline void ModelProto::SharedDtor(MessageLite& self) {
4312 ModelProto& this_ = static_cast<ModelProto&>(self);
4313 if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) {
4314 this_.CheckHasBitConsistency();
4315 }
4316 this_._internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>();
4317 ABSL_DCHECK(this_.GetArena() == nullptr);
4318 this_._impl_.name_.Destroy();
4319 delete this_._impl_.variables_;
4320 delete this_._impl_.objective_;
4321 delete this_._impl_.linear_constraints_;
4322 delete this_._impl_.linear_constraint_matrix_;
4323 this_._impl_.~Impl_();
4324}
4325
4326inline void* PROTOBUF_NONNULL ModelProto::PlacementNew_(
4327 const void* PROTOBUF_NONNULL, void* PROTOBUF_NONNULL mem,
4328 ::google::protobuf::Arena* PROTOBUF_NULLABLE arena) {
4329 return ::new (mem) ModelProto(arena);
4330}
4331constexpr auto ModelProto::InternalNewImpl_() {
4332 constexpr auto arena_bits = ::google::protobuf::internal::EncodePlacementArenaOffsets({
4333 PROTOBUF_FIELD_OFFSET(ModelProto, _impl_.auxiliary_objectives_) +
4334 decltype(ModelProto::_impl_.auxiliary_objectives_)::
4335 InternalGetArenaOffset(
4336 ::google::protobuf::Message::internal_visibility()),
4337 PROTOBUF_FIELD_OFFSET(ModelProto, _impl_.quadratic_constraints_) +
4338 decltype(ModelProto::_impl_.quadratic_constraints_)::
4339 InternalGetArenaOffset(
4340 ::google::protobuf::Message::internal_visibility()),
4341 PROTOBUF_FIELD_OFFSET(ModelProto, _impl_.second_order_cone_constraints_) +
4342 decltype(ModelProto::_impl_.second_order_cone_constraints_)::
4343 InternalGetArenaOffset(
4344 ::google::protobuf::Message::internal_visibility()),
4345 PROTOBUF_FIELD_OFFSET(ModelProto, _impl_.sos1_constraints_) +
4346 decltype(ModelProto::_impl_.sos1_constraints_)::
4347 InternalGetArenaOffset(
4348 ::google::protobuf::Message::internal_visibility()),
4349 PROTOBUF_FIELD_OFFSET(ModelProto, _impl_.sos2_constraints_) +
4350 decltype(ModelProto::_impl_.sos2_constraints_)::
4351 InternalGetArenaOffset(
4352 ::google::protobuf::Message::internal_visibility()),
4353 PROTOBUF_FIELD_OFFSET(ModelProto, _impl_.indicator_constraints_) +
4354 decltype(ModelProto::_impl_.indicator_constraints_)::
4355 InternalGetArenaOffset(
4356 ::google::protobuf::Message::internal_visibility()),
4357 });
4358 if (arena_bits.has_value()) {
4359 return ::google::protobuf::internal::MessageCreator::CopyInit(
4360 sizeof(ModelProto), alignof(ModelProto), *arena_bits);
4361 } else {
4362 return ::google::protobuf::internal::MessageCreator(&ModelProto::PlacementNew_,
4363 sizeof(ModelProto),
4364 alignof(ModelProto));
4365 }
4366}
4368 return ::google::protobuf::internal::ClassDataFull{
4369 ::google::protobuf::internal::ClassData{
4371 &_table_.header,
4372 nullptr, // OnDemandRegisterArenaDtor
4373 nullptr, // IsInitialized
4374 &ModelProto::MergeImpl,
4375 ::google::protobuf::Message::GetNewImpl<ModelProto>(),
4376#if defined(PROTOBUF_CUSTOM_VTABLE)
4377 &ModelProto::SharedDtor,
4378 ::google::protobuf::Message::GetClearImpl<ModelProto>(), &ModelProto::ByteSizeLong,
4380#endif // PROTOBUF_CUSTOM_VTABLE
4381 PROTOBUF_FIELD_OFFSET(ModelProto, _impl_._cached_size_),
4382 false,
4383 },
4384 &ModelProto::kDescriptorMethods,
4386 nullptr, // tracker
4387 };
4388}
4389
4390PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 const
4391 ::google::protobuf::internal::ClassDataFull ModelProto_class_data_ =
4393
4394PROTOBUF_ATTRIBUTE_WEAK const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL
4395ModelProto::GetClassData() const {
4396 ::google::protobuf::internal::PrefetchToLocalCache(&ModelProto_class_data_);
4397 ::google::protobuf::internal::PrefetchToLocalCache(ModelProto_class_data_.tc_table);
4398 return ModelProto_class_data_.base();
4399}
4400PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1
4401const ::_pbi::TcParseTable<3, 11, 16, 60, 2>
4402ModelProto::_table_ = {
4403 {
4404 PROTOBUF_FIELD_OFFSET(ModelProto, _impl_._has_bits_),
4405 0, // no _extensions_
4406 11, 56, // max_field_number, fast_idx_mask
4407 offsetof(decltype(_table_), field_lookup_table),
4408 4294965248, // skipmap
4409 offsetof(decltype(_table_), field_entries),
4410 11, // num_field_entries
4411 16, // num_aux_entries
4412 offsetof(decltype(_table_), aux_entries),
4414 nullptr, // post_loop_handler
4415 ::_pbi::TcParser::GenericFallback, // fallback
4416 #ifdef PROTOBUF_PREFETCH_PARSE_TABLE
4417 ::_pbi::TcParser::GetTable<::operations_research::math_opt::ModelProto>(), // to_prefetch
4418 #endif // PROTOBUF_PREFETCH_PARSE_TABLE
4419 }, {{
4420 {::_pbi::TcParser::MiniParse, {}},
4421 // string name = 1;
4422 {::_pbi::TcParser::FastUS1,
4423 {10, 0, 0,
4424 PROTOBUF_FIELD_OFFSET(ModelProto, _impl_.name_)}},
4425 // .operations_research.math_opt.VariablesProto variables = 2;
4426 {::_pbi::TcParser::FastMtS1,
4427 {18, 1, 0,
4428 PROTOBUF_FIELD_OFFSET(ModelProto, _impl_.variables_)}},
4429 // .operations_research.math_opt.ObjectiveProto objective = 3;
4430 {::_pbi::TcParser::FastMtS1,
4431 {26, 2, 1,
4432 PROTOBUF_FIELD_OFFSET(ModelProto, _impl_.objective_)}},
4433 // .operations_research.math_opt.LinearConstraintsProto linear_constraints = 4;
4434 {::_pbi::TcParser::FastMtS1,
4435 {34, 3, 2,
4436 PROTOBUF_FIELD_OFFSET(ModelProto, _impl_.linear_constraints_)}},
4437 // .operations_research.math_opt.SparseDoubleMatrixProto linear_constraint_matrix = 5;
4438 {::_pbi::TcParser::FastMtS1,
4439 {42, 4, 3,
4440 PROTOBUF_FIELD_OFFSET(ModelProto, _impl_.linear_constraint_matrix_)}},
4441 {::_pbi::TcParser::MiniParse, {}},
4442 {::_pbi::TcParser::MiniParse, {}},
4443 }}, {{
4444 65535, 65535
4445 }}, {{
4446 // string name = 1;
4447 {PROTOBUF_FIELD_OFFSET(ModelProto, _impl_.name_), _Internal::kHasBitsOffset + 0, 0, (0 | ::_fl::kFcOptional | ::_fl::kUtf8String | ::_fl::kRepAString)},
4448 // .operations_research.math_opt.VariablesProto variables = 2;
4449 {PROTOBUF_FIELD_OFFSET(ModelProto, _impl_.variables_), _Internal::kHasBitsOffset + 1, 0, (0 | ::_fl::kFcOptional | ::_fl::kMessage | ::_fl::kTvTable)},
4450 // .operations_research.math_opt.ObjectiveProto objective = 3;
4451 {PROTOBUF_FIELD_OFFSET(ModelProto, _impl_.objective_), _Internal::kHasBitsOffset + 2, 1, (0 | ::_fl::kFcOptional | ::_fl::kMessage | ::_fl::kTvTable)},
4452 // .operations_research.math_opt.LinearConstraintsProto linear_constraints = 4;
4453 {PROTOBUF_FIELD_OFFSET(ModelProto, _impl_.linear_constraints_), _Internal::kHasBitsOffset + 3, 2, (0 | ::_fl::kFcOptional | ::_fl::kMessage | ::_fl::kTvTable)},
4454 // .operations_research.math_opt.SparseDoubleMatrixProto linear_constraint_matrix = 5;
4455 {PROTOBUF_FIELD_OFFSET(ModelProto, _impl_.linear_constraint_matrix_), _Internal::kHasBitsOffset + 4, 3, (0 | ::_fl::kFcOptional | ::_fl::kMessage | ::_fl::kTvTable)},
4456 // map<int64, .operations_research.math_opt.QuadraticConstraintProto> quadratic_constraints = 6;
4457 {PROTOBUF_FIELD_OFFSET(ModelProto, _impl_.quadratic_constraints_), _Internal::kHasBitsOffset + 5, 4, (0 | ::_fl::kFcRepeated | ::_fl::kMap)},
4458 // map<int64, .operations_research.math_opt.SosConstraintProto> sos1_constraints = 7;
4459 {PROTOBUF_FIELD_OFFSET(ModelProto, _impl_.sos1_constraints_), _Internal::kHasBitsOffset + 6, 6, (0 | ::_fl::kFcRepeated | ::_fl::kMap)},
4460 // map<int64, .operations_research.math_opt.SosConstraintProto> sos2_constraints = 8;
4461 {PROTOBUF_FIELD_OFFSET(ModelProto, _impl_.sos2_constraints_), _Internal::kHasBitsOffset + 7, 8, (0 | ::_fl::kFcRepeated | ::_fl::kMap)},
4462 // map<int64, .operations_research.math_opt.IndicatorConstraintProto> indicator_constraints = 9;
4463 {PROTOBUF_FIELD_OFFSET(ModelProto, _impl_.indicator_constraints_), _Internal::kHasBitsOffset + 8, 10, (0 | ::_fl::kFcRepeated | ::_fl::kMap)},
4464 // map<int64, .operations_research.math_opt.ObjectiveProto> auxiliary_objectives = 10;
4465 {PROTOBUF_FIELD_OFFSET(ModelProto, _impl_.auxiliary_objectives_), _Internal::kHasBitsOffset + 9, 12, (0 | ::_fl::kFcRepeated | ::_fl::kMap)},
4466 // map<int64, .operations_research.math_opt.SecondOrderConeConstraintProto> second_order_cone_constraints = 11;
4467 {PROTOBUF_FIELD_OFFSET(ModelProto, _impl_.second_order_cone_constraints_), _Internal::kHasBitsOffset + 10, 14, (0 | ::_fl::kFcRepeated | ::_fl::kMap)},
4468 }},
4469 {{
4470 {::_pbi::TcParser::GetTable<::operations_research::math_opt::VariablesProto>()},
4471 {::_pbi::TcParser::GetTable<::operations_research::math_opt::ObjectiveProto>()},
4472 {::_pbi::TcParser::GetTable<::operations_research::math_opt::LinearConstraintsProto>()},
4473 {::_pbi::TcParser::GetTable<::operations_research::math_opt::SparseDoubleMatrixProto>()},
4474 {::_pbi::TcParser::GetMapAuxInfo(
4475 0, 0, 3, 11, 0)},
4476 {::_pbi::TcParser::GetTable<::operations_research::math_opt::QuadraticConstraintProto>()},
4477 {::_pbi::TcParser::GetMapAuxInfo(
4478 0, 0, 3, 11, 0)},
4479 {::_pbi::TcParser::GetTable<::operations_research::math_opt::SosConstraintProto>()},
4480 {::_pbi::TcParser::GetMapAuxInfo(
4481 0, 0, 3, 11, 0)},
4482 {::_pbi::TcParser::GetTable<::operations_research::math_opt::SosConstraintProto>()},
4483 {::_pbi::TcParser::GetMapAuxInfo(
4484 0, 0, 3, 11, 0)},
4485 {::_pbi::TcParser::GetTable<::operations_research::math_opt::IndicatorConstraintProto>()},
4486 {::_pbi::TcParser::GetMapAuxInfo(
4487 0, 0, 3, 11, 0)},
4488 {::_pbi::TcParser::GetTable<::operations_research::math_opt::ObjectiveProto>()},
4489 {::_pbi::TcParser::GetMapAuxInfo(
4490 0, 0, 3, 11, 0)},
4491 {::_pbi::TcParser::GetTable<::operations_research::math_opt::SecondOrderConeConstraintProto>()},
4492 }},
4493 {{
4494 "\47\4\0\0\0\0\0\0\0\0\0\0\0\0\0\0"
4495 "operations_research.math_opt.ModelProto"
4496 "name"
4497 }},
4498};
4499PROTOBUF_NOINLINE void ModelProto::Clear() {
4500// @@protoc_insertion_point(message_clear_start:operations_research.math_opt.ModelProto)
4501 ::google::protobuf::internal::TSanWrite(&_impl_);
4502 ::uint32_t cached_has_bits = 0;
4503 // Prevent compiler warnings about cached_has_bits being unused
4504 (void) cached_has_bits;
4505
4506 cached_has_bits = _impl_._has_bits_[0];
4507 if (BatchCheckHasBit(cached_has_bits, 0x000000ffU)) {
4508 if (CheckHasBit(cached_has_bits, 0x00000001U)) {
4509 _impl_.name_.ClearNonDefaultToEmpty();
4510 }
4511 if (CheckHasBit(cached_has_bits, 0x00000002U)) {
4512 ABSL_DCHECK(_impl_.variables_ != nullptr);
4513 _impl_.variables_->Clear();
4514 }
4515 if (CheckHasBit(cached_has_bits, 0x00000004U)) {
4516 ABSL_DCHECK(_impl_.objective_ != nullptr);
4517 _impl_.objective_->Clear();
4518 }
4519 if (CheckHasBit(cached_has_bits, 0x00000008U)) {
4520 ABSL_DCHECK(_impl_.linear_constraints_ != nullptr);
4521 _impl_.linear_constraints_->Clear();
4522 }
4523 if (CheckHasBit(cached_has_bits, 0x00000010U)) {
4524 ABSL_DCHECK(_impl_.linear_constraint_matrix_ != nullptr);
4525 _impl_.linear_constraint_matrix_->Clear();
4526 }
4527 if (CheckHasBitForRepeated(cached_has_bits, 0x00000020U)) {
4528 _impl_.quadratic_constraints_.Clear();
4529 }
4530 if (CheckHasBitForRepeated(cached_has_bits, 0x00000040U)) {
4531 _impl_.sos1_constraints_.Clear();
4532 }
4533 if (CheckHasBitForRepeated(cached_has_bits, 0x00000080U)) {
4534 _impl_.sos2_constraints_.Clear();
4535 }
4536 }
4537 if (BatchCheckHasBit(cached_has_bits, 0x00000700U)) {
4538 if (CheckHasBitForRepeated(cached_has_bits, 0x00000100U)) {
4539 _impl_.indicator_constraints_.Clear();
4540 }
4541 if (CheckHasBitForRepeated(cached_has_bits, 0x00000200U)) {
4542 _impl_.auxiliary_objectives_.Clear();
4543 }
4544 if (CheckHasBitForRepeated(cached_has_bits, 0x00000400U)) {
4545 _impl_.second_order_cone_constraints_.Clear();
4546 }
4547 }
4548 _impl_._has_bits_.Clear();
4549 _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>();
4550}
4551
4552#if defined(PROTOBUF_CUSTOM_VTABLE)
4553::uint8_t* PROTOBUF_NONNULL ModelProto::_InternalSerialize(
4554 const ::google::protobuf::MessageLite& base, ::uint8_t* PROTOBUF_NONNULL target,
4555 ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) {
4556 const ModelProto& this_ = static_cast<const ModelProto&>(base);
4557#else // PROTOBUF_CUSTOM_VTABLE
4558::uint8_t* PROTOBUF_NONNULL ModelProto::_InternalSerialize(
4559 ::uint8_t* PROTOBUF_NONNULL target,
4560 ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const {
4561 const ModelProto& this_ = *this;
4562#endif // PROTOBUF_CUSTOM_VTABLE
4563 if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) {
4564 this_.CheckHasBitConsistency();
4565 }
4566 // @@protoc_insertion_point(serialize_to_array_start:operations_research.math_opt.ModelProto)
4567 ::uint32_t cached_has_bits = 0;
4568 (void)cached_has_bits;
4569
4570 cached_has_bits = this_._impl_._has_bits_[0];
4571 // string name = 1;
4572 if (CheckHasBit(cached_has_bits, 0x00000001U)) {
4573 if (!this_._internal_name().empty()) {
4574 const ::std::string& _s = this_._internal_name();
4575 ::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
4576 _s.data(), static_cast<int>(_s.length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "operations_research.math_opt.ModelProto.name");
4577 target = stream->WriteStringMaybeAliased(1, _s, target);
4578 }
4579 }
4580
4581 // .operations_research.math_opt.VariablesProto variables = 2;
4582 if (CheckHasBit(cached_has_bits, 0x00000002U)) {
4583 target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage(
4584 2, *this_._impl_.variables_, this_._impl_.variables_->GetCachedSize(), target,
4585 stream);
4586 }
4587
4588 // .operations_research.math_opt.ObjectiveProto objective = 3;
4589 if (CheckHasBit(cached_has_bits, 0x00000004U)) {
4590 target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage(
4591 3, *this_._impl_.objective_, this_._impl_.objective_->GetCachedSize(), target,
4592 stream);
4593 }
4594
4595 // .operations_research.math_opt.LinearConstraintsProto linear_constraints = 4;
4596 if (CheckHasBit(cached_has_bits, 0x00000008U)) {
4597 target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage(
4598 4, *this_._impl_.linear_constraints_, this_._impl_.linear_constraints_->GetCachedSize(), target,
4599 stream);
4600 }
4601
4602 // .operations_research.math_opt.SparseDoubleMatrixProto linear_constraint_matrix = 5;
4603 if (CheckHasBit(cached_has_bits, 0x00000010U)) {
4604 target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage(
4605 5, *this_._impl_.linear_constraint_matrix_, this_._impl_.linear_constraint_matrix_->GetCachedSize(), target,
4606 stream);
4607 }
4608
4609 // map<int64, .operations_research.math_opt.QuadraticConstraintProto> quadratic_constraints = 6;
4610 if (CheckHasBitForRepeated(cached_has_bits, 0x00000020U)) {
4611 if (!this_._internal_quadratic_constraints().empty()) {
4612 using MapType = ::google::protobuf::Map<::int64_t, ::operations_research::math_opt::QuadraticConstraintProto>;
4613 using WireHelper = _pbi::MapEntryFuncs<::int64_t, ::operations_research::math_opt::QuadraticConstraintProto,
4614 _pbi::WireFormatLite::TYPE_INT64,
4615 _pbi::WireFormatLite::TYPE_MESSAGE>;
4616 const auto& field = this_._internal_quadratic_constraints();
4617
4618 if (stream->IsSerializationDeterministic() && field.size() > 1) {
4619 for (const auto& entry : ::google::protobuf::internal::MapSorterFlat<MapType>(field)) {
4620 target = WireHelper::InternalSerialize(
4621 6, entry.first, entry.second, target, stream);
4622 }
4623 } else {
4624 for (const auto& entry : field) {
4625 target = WireHelper::InternalSerialize(
4626 6, entry.first, entry.second, target, stream);
4627 }
4628 }
4629 }
4630 }
4631
4632 // map<int64, .operations_research.math_opt.SosConstraintProto> sos1_constraints = 7;
4633 if (CheckHasBitForRepeated(cached_has_bits, 0x00000040U)) {
4634 if (!this_._internal_sos1_constraints().empty()) {
4635 using MapType = ::google::protobuf::Map<::int64_t, ::operations_research::math_opt::SosConstraintProto>;
4636 using WireHelper = _pbi::MapEntryFuncs<::int64_t, ::operations_research::math_opt::SosConstraintProto,
4637 _pbi::WireFormatLite::TYPE_INT64,
4638 _pbi::WireFormatLite::TYPE_MESSAGE>;
4639 const auto& field = this_._internal_sos1_constraints();
4640
4641 if (stream->IsSerializationDeterministic() && field.size() > 1) {
4642 for (const auto& entry : ::google::protobuf::internal::MapSorterFlat<MapType>(field)) {
4643 target = WireHelper::InternalSerialize(
4644 7, entry.first, entry.second, target, stream);
4645 }
4646 } else {
4647 for (const auto& entry : field) {
4648 target = WireHelper::InternalSerialize(
4649 7, entry.first, entry.second, target, stream);
4650 }
4651 }
4652 }
4653 }
4654
4655 // map<int64, .operations_research.math_opt.SosConstraintProto> sos2_constraints = 8;
4656 if (CheckHasBitForRepeated(cached_has_bits, 0x00000080U)) {
4657 if (!this_._internal_sos2_constraints().empty()) {
4658 using MapType = ::google::protobuf::Map<::int64_t, ::operations_research::math_opt::SosConstraintProto>;
4659 using WireHelper = _pbi::MapEntryFuncs<::int64_t, ::operations_research::math_opt::SosConstraintProto,
4660 _pbi::WireFormatLite::TYPE_INT64,
4661 _pbi::WireFormatLite::TYPE_MESSAGE>;
4662 const auto& field = this_._internal_sos2_constraints();
4663
4664 if (stream->IsSerializationDeterministic() && field.size() > 1) {
4665 for (const auto& entry : ::google::protobuf::internal::MapSorterFlat<MapType>(field)) {
4666 target = WireHelper::InternalSerialize(
4667 8, entry.first, entry.second, target, stream);
4668 }
4669 } else {
4670 for (const auto& entry : field) {
4671 target = WireHelper::InternalSerialize(
4672 8, entry.first, entry.second, target, stream);
4673 }
4674 }
4675 }
4676 }
4677
4678 // map<int64, .operations_research.math_opt.IndicatorConstraintProto> indicator_constraints = 9;
4679 if (CheckHasBitForRepeated(cached_has_bits, 0x00000100U)) {
4680 if (!this_._internal_indicator_constraints().empty()) {
4681 using MapType = ::google::protobuf::Map<::int64_t, ::operations_research::math_opt::IndicatorConstraintProto>;
4682 using WireHelper = _pbi::MapEntryFuncs<::int64_t, ::operations_research::math_opt::IndicatorConstraintProto,
4683 _pbi::WireFormatLite::TYPE_INT64,
4684 _pbi::WireFormatLite::TYPE_MESSAGE>;
4685 const auto& field = this_._internal_indicator_constraints();
4686
4687 if (stream->IsSerializationDeterministic() && field.size() > 1) {
4688 for (const auto& entry : ::google::protobuf::internal::MapSorterFlat<MapType>(field)) {
4689 target = WireHelper::InternalSerialize(
4690 9, entry.first, entry.second, target, stream);
4691 }
4692 } else {
4693 for (const auto& entry : field) {
4694 target = WireHelper::InternalSerialize(
4695 9, entry.first, entry.second, target, stream);
4696 }
4697 }
4698 }
4699 }
4700
4701 // map<int64, .operations_research.math_opt.ObjectiveProto> auxiliary_objectives = 10;
4702 if (CheckHasBitForRepeated(cached_has_bits, 0x00000200U)) {
4703 if (!this_._internal_auxiliary_objectives().empty()) {
4704 using MapType = ::google::protobuf::Map<::int64_t, ::operations_research::math_opt::ObjectiveProto>;
4705 using WireHelper = _pbi::MapEntryFuncs<::int64_t, ::operations_research::math_opt::ObjectiveProto,
4706 _pbi::WireFormatLite::TYPE_INT64,
4707 _pbi::WireFormatLite::TYPE_MESSAGE>;
4708 const auto& field = this_._internal_auxiliary_objectives();
4709
4710 if (stream->IsSerializationDeterministic() && field.size() > 1) {
4711 for (const auto& entry : ::google::protobuf::internal::MapSorterFlat<MapType>(field)) {
4712 target = WireHelper::InternalSerialize(
4713 10, entry.first, entry.second, target, stream);
4714 }
4715 } else {
4716 for (const auto& entry : field) {
4717 target = WireHelper::InternalSerialize(
4718 10, entry.first, entry.second, target, stream);
4719 }
4720 }
4721 }
4722 }
4723
4724 // map<int64, .operations_research.math_opt.SecondOrderConeConstraintProto> second_order_cone_constraints = 11;
4725 if (CheckHasBitForRepeated(cached_has_bits, 0x00000400U)) {
4726 if (!this_._internal_second_order_cone_constraints().empty()) {
4727 using MapType = ::google::protobuf::Map<::int64_t, ::operations_research::math_opt::SecondOrderConeConstraintProto>;
4728 using WireHelper = _pbi::MapEntryFuncs<::int64_t, ::operations_research::math_opt::SecondOrderConeConstraintProto,
4729 _pbi::WireFormatLite::TYPE_INT64,
4730 _pbi::WireFormatLite::TYPE_MESSAGE>;
4731 const auto& field = this_._internal_second_order_cone_constraints();
4732
4733 if (stream->IsSerializationDeterministic() && field.size() > 1) {
4734 for (const auto& entry : ::google::protobuf::internal::MapSorterFlat<MapType>(field)) {
4735 target = WireHelper::InternalSerialize(
4736 11, entry.first, entry.second, target, stream);
4737 }
4738 } else {
4739 for (const auto& entry : field) {
4740 target = WireHelper::InternalSerialize(
4741 11, entry.first, entry.second, target, stream);
4742 }
4743 }
4744 }
4745 }
4746
4747 if (ABSL_PREDICT_FALSE(this_._internal_metadata_.have_unknown_fields())) {
4748 target =
4749 ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray(
4750 this_._internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream);
4751 }
4752 // @@protoc_insertion_point(serialize_to_array_end:operations_research.math_opt.ModelProto)
4753 return target;
4754}
4755
4756#if defined(PROTOBUF_CUSTOM_VTABLE)
4757::size_t ModelProto::ByteSizeLong(const MessageLite& base) {
4758 const ModelProto& this_ = static_cast<const ModelProto&>(base);
4759#else // PROTOBUF_CUSTOM_VTABLE
4760::size_t ModelProto::ByteSizeLong() const {
4761 const ModelProto& this_ = *this;
4762#endif // PROTOBUF_CUSTOM_VTABLE
4763 // @@protoc_insertion_point(message_byte_size_start:operations_research.math_opt.ModelProto)
4764 ::size_t total_size = 0;
4765
4766 ::uint32_t cached_has_bits = 0;
4767 // Prevent compiler warnings about cached_has_bits being unused
4768 (void)cached_has_bits;
4769
4770 ::_pbi::Prefetch5LinesFrom7Lines(&this_);
4771 cached_has_bits = this_._impl_._has_bits_[0];
4772 if (BatchCheckHasBit(cached_has_bits, 0x000000ffU)) {
4773 // string name = 1;
4774 if (CheckHasBit(cached_has_bits, 0x00000001U)) {
4775 if (!this_._internal_name().empty()) {
4776 total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize(
4777 this_._internal_name());
4778 }
4779 }
4780 // .operations_research.math_opt.VariablesProto variables = 2;
4781 if (CheckHasBit(cached_has_bits, 0x00000002U)) {
4782 total_size += 1 +
4783 ::google::protobuf::internal::WireFormatLite::MessageSize(*this_._impl_.variables_);
4784 }
4785 // .operations_research.math_opt.ObjectiveProto objective = 3;
4786 if (CheckHasBit(cached_has_bits, 0x00000004U)) {
4787 total_size += 1 +
4788 ::google::protobuf::internal::WireFormatLite::MessageSize(*this_._impl_.objective_);
4789 }
4790 // .operations_research.math_opt.LinearConstraintsProto linear_constraints = 4;
4791 if (CheckHasBit(cached_has_bits, 0x00000008U)) {
4792 total_size += 1 +
4793 ::google::protobuf::internal::WireFormatLite::MessageSize(*this_._impl_.linear_constraints_);
4794 }
4795 // .operations_research.math_opt.SparseDoubleMatrixProto linear_constraint_matrix = 5;
4796 if (CheckHasBit(cached_has_bits, 0x00000010U)) {
4797 total_size += 1 +
4798 ::google::protobuf::internal::WireFormatLite::MessageSize(*this_._impl_.linear_constraint_matrix_);
4799 }
4800 // map<int64, .operations_research.math_opt.QuadraticConstraintProto> quadratic_constraints = 6;
4801 if (CheckHasBitForRepeated(cached_has_bits, 0x00000020U)) {
4802 total_size +=
4803 1 * ::google::protobuf::internal::FromIntSize(this_._internal_quadratic_constraints_size());
4804 for (const auto& entry : this_._internal_quadratic_constraints()) {
4805 total_size += _pbi::MapEntryFuncs<::int64_t, ::operations_research::math_opt::QuadraticConstraintProto,
4806 _pbi::WireFormatLite::TYPE_INT64,
4807 _pbi::WireFormatLite::TYPE_MESSAGE>::ByteSizeLong(entry.first, entry.second);
4808 }
4809 }
4810 // map<int64, .operations_research.math_opt.SosConstraintProto> sos1_constraints = 7;
4811 if (CheckHasBitForRepeated(cached_has_bits, 0x00000040U)) {
4812 total_size +=
4813 1 * ::google::protobuf::internal::FromIntSize(this_._internal_sos1_constraints_size());
4814 for (const auto& entry : this_._internal_sos1_constraints()) {
4815 total_size += _pbi::MapEntryFuncs<::int64_t, ::operations_research::math_opt::SosConstraintProto,
4816 _pbi::WireFormatLite::TYPE_INT64,
4817 _pbi::WireFormatLite::TYPE_MESSAGE>::ByteSizeLong(entry.first, entry.second);
4818 }
4819 }
4820 // map<int64, .operations_research.math_opt.SosConstraintProto> sos2_constraints = 8;
4821 if (CheckHasBitForRepeated(cached_has_bits, 0x00000080U)) {
4822 total_size +=
4823 1 * ::google::protobuf::internal::FromIntSize(this_._internal_sos2_constraints_size());
4824 for (const auto& entry : this_._internal_sos2_constraints()) {
4825 total_size += _pbi::MapEntryFuncs<::int64_t, ::operations_research::math_opt::SosConstraintProto,
4826 _pbi::WireFormatLite::TYPE_INT64,
4827 _pbi::WireFormatLite::TYPE_MESSAGE>::ByteSizeLong(entry.first, entry.second);
4828 }
4829 }
4830 }
4831 if (BatchCheckHasBit(cached_has_bits, 0x00000700U)) {
4832 // map<int64, .operations_research.math_opt.IndicatorConstraintProto> indicator_constraints = 9;
4833 if (CheckHasBitForRepeated(cached_has_bits, 0x00000100U)) {
4834 total_size +=
4835 1 * ::google::protobuf::internal::FromIntSize(this_._internal_indicator_constraints_size());
4836 for (const auto& entry : this_._internal_indicator_constraints()) {
4837 total_size += _pbi::MapEntryFuncs<::int64_t, ::operations_research::math_opt::IndicatorConstraintProto,
4838 _pbi::WireFormatLite::TYPE_INT64,
4839 _pbi::WireFormatLite::TYPE_MESSAGE>::ByteSizeLong(entry.first, entry.second);
4840 }
4841 }
4842 // map<int64, .operations_research.math_opt.ObjectiveProto> auxiliary_objectives = 10;
4843 if (CheckHasBitForRepeated(cached_has_bits, 0x00000200U)) {
4844 total_size +=
4845 1 * ::google::protobuf::internal::FromIntSize(this_._internal_auxiliary_objectives_size());
4846 for (const auto& entry : this_._internal_auxiliary_objectives()) {
4847 total_size += _pbi::MapEntryFuncs<::int64_t, ::operations_research::math_opt::ObjectiveProto,
4848 _pbi::WireFormatLite::TYPE_INT64,
4849 _pbi::WireFormatLite::TYPE_MESSAGE>::ByteSizeLong(entry.first, entry.second);
4850 }
4851 }
4852 // map<int64, .operations_research.math_opt.SecondOrderConeConstraintProto> second_order_cone_constraints = 11;
4853 if (CheckHasBitForRepeated(cached_has_bits, 0x00000400U)) {
4854 total_size +=
4855 1 * ::google::protobuf::internal::FromIntSize(this_._internal_second_order_cone_constraints_size());
4856 for (const auto& entry : this_._internal_second_order_cone_constraints()) {
4857 total_size += _pbi::MapEntryFuncs<::int64_t, ::operations_research::math_opt::SecondOrderConeConstraintProto,
4858 _pbi::WireFormatLite::TYPE_INT64,
4859 _pbi::WireFormatLite::TYPE_MESSAGE>::ByteSizeLong(entry.first, entry.second);
4860 }
4861 }
4862 }
4863 return this_.MaybeComputeUnknownFieldsSize(total_size,
4864 &this_._impl_._cached_size_);
4865}
4866
4867void ModelProto::MergeImpl(::google::protobuf::MessageLite& to_msg,
4868 const ::google::protobuf::MessageLite& from_msg) {
4869 auto* const _this =
4870 static_cast<ModelProto*>(&to_msg);
4871 auto& from = static_cast<const ModelProto&>(from_msg);
4872 if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) {
4873 from.CheckHasBitConsistency();
4874 }
4875 ::google::protobuf::Arena* arena = _this->GetArena();
4876 // @@protoc_insertion_point(class_specific_merge_from_start:operations_research.math_opt.ModelProto)
4877 ABSL_DCHECK_NE(&from, _this);
4878 ::uint32_t cached_has_bits = 0;
4879 (void)cached_has_bits;
4880
4881 cached_has_bits = from._impl_._has_bits_[0];
4882 if (BatchCheckHasBit(cached_has_bits, 0x000000ffU)) {
4883 if (CheckHasBit(cached_has_bits, 0x00000001U)) {
4884 if (!from._internal_name().empty()) {
4885 _this->_internal_set_name(from._internal_name());
4886 } else {
4887 if (_this->_impl_.name_.IsDefault()) {
4888 _this->_internal_set_name("");
4889 }
4890 }
4891 }
4892 if (CheckHasBit(cached_has_bits, 0x00000002U)) {
4893 ABSL_DCHECK(from._impl_.variables_ != nullptr);
4894 if (_this->_impl_.variables_ == nullptr) {
4895 _this->_impl_.variables_ = ::google::protobuf::Message::CopyConstruct(arena, *from._impl_.variables_);
4896 } else {
4897 _this->_impl_.variables_->MergeFrom(*from._impl_.variables_);
4898 }
4899 }
4900 if (CheckHasBit(cached_has_bits, 0x00000004U)) {
4901 ABSL_DCHECK(from._impl_.objective_ != nullptr);
4902 if (_this->_impl_.objective_ == nullptr) {
4903 _this->_impl_.objective_ = ::google::protobuf::Message::CopyConstruct(arena, *from._impl_.objective_);
4904 } else {
4905 _this->_impl_.objective_->MergeFrom(*from._impl_.objective_);
4906 }
4907 }
4908 if (CheckHasBit(cached_has_bits, 0x00000008U)) {
4909 ABSL_DCHECK(from._impl_.linear_constraints_ != nullptr);
4910 if (_this->_impl_.linear_constraints_ == nullptr) {
4911 _this->_impl_.linear_constraints_ = ::google::protobuf::Message::CopyConstruct(arena, *from._impl_.linear_constraints_);
4912 } else {
4913 _this->_impl_.linear_constraints_->MergeFrom(*from._impl_.linear_constraints_);
4914 }
4915 }
4916 if (CheckHasBit(cached_has_bits, 0x00000010U)) {
4917 ABSL_DCHECK(from._impl_.linear_constraint_matrix_ != nullptr);
4918 if (_this->_impl_.linear_constraint_matrix_ == nullptr) {
4919 _this->_impl_.linear_constraint_matrix_ = ::google::protobuf::Message::CopyConstruct(arena, *from._impl_.linear_constraint_matrix_);
4920 } else {
4921 _this->_impl_.linear_constraint_matrix_->MergeFrom(*from._impl_.linear_constraint_matrix_);
4922 }
4923 }
4924 if (CheckHasBitForRepeated(cached_has_bits, 0x00000020U)) {
4925 _this->_impl_.quadratic_constraints_.MergeFrom(from._impl_.quadratic_constraints_);
4926 }
4927 if (CheckHasBitForRepeated(cached_has_bits, 0x00000040U)) {
4928 _this->_impl_.sos1_constraints_.MergeFrom(from._impl_.sos1_constraints_);
4929 }
4930 if (CheckHasBitForRepeated(cached_has_bits, 0x00000080U)) {
4931 _this->_impl_.sos2_constraints_.MergeFrom(from._impl_.sos2_constraints_);
4932 }
4933 }
4934 if (BatchCheckHasBit(cached_has_bits, 0x00000700U)) {
4935 if (CheckHasBitForRepeated(cached_has_bits, 0x00000100U)) {
4936 _this->_impl_.indicator_constraints_.MergeFrom(from._impl_.indicator_constraints_);
4937 }
4938 if (CheckHasBitForRepeated(cached_has_bits, 0x00000200U)) {
4939 _this->_impl_.auxiliary_objectives_.MergeFrom(from._impl_.auxiliary_objectives_);
4940 }
4941 if (CheckHasBitForRepeated(cached_has_bits, 0x00000400U)) {
4942 _this->_impl_.second_order_cone_constraints_.MergeFrom(from._impl_.second_order_cone_constraints_);
4943 }
4944 }
4945 _this->_impl_._has_bits_[0] |= cached_has_bits;
4946 _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(
4947 from._internal_metadata_);
4948}
4949
4950void ModelProto::CopyFrom(const ModelProto& from) {
4951 // @@protoc_insertion_point(class_specific_copy_from_start:operations_research.math_opt.ModelProto)
4952 if (&from == this) return;
4953 Clear();
4954 MergeFrom(from);
4955}
4956
4957
4958void ModelProto::InternalSwap(ModelProto* PROTOBUF_RESTRICT PROTOBUF_NONNULL other) {
4959 using ::std::swap;
4960 auto* arena = GetArena();
4961 ABSL_DCHECK_EQ(arena, other->GetArena());
4962 _internal_metadata_.InternalSwap(&other->_internal_metadata_);
4963 swap(_impl_._has_bits_[0], other->_impl_._has_bits_[0]);
4964 ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.name_, &other->_impl_.name_, arena);
4965 ::google::protobuf::internal::memswap<
4966 PROTOBUF_FIELD_OFFSET(ModelProto, _impl_.linear_constraint_matrix_)
4967 + sizeof(ModelProto::_impl_.linear_constraint_matrix_)
4968 - PROTOBUF_FIELD_OFFSET(ModelProto, _impl_.variables_)>(
4969 reinterpret_cast<char*>(&_impl_.variables_),
4970 reinterpret_cast<char*>(&other->_impl_.variables_));
4971 _impl_.quadratic_constraints_.InternalSwap(&other->_impl_.quadratic_constraints_);
4972 _impl_.sos1_constraints_.InternalSwap(&other->_impl_.sos1_constraints_);
4973 _impl_.sos2_constraints_.InternalSwap(&other->_impl_.sos2_constraints_);
4974 _impl_.indicator_constraints_.InternalSwap(&other->_impl_.indicator_constraints_);
4975 _impl_.auxiliary_objectives_.InternalSwap(&other->_impl_.auxiliary_objectives_);
4976 _impl_.second_order_cone_constraints_.InternalSwap(&other->_impl_.second_order_cone_constraints_);
4977}
4978
4979::google::protobuf::Metadata ModelProto::GetMetadata() const {
4980 return ::google::protobuf::Message::GetMetadataImpl(GetClassData()->full());
4981}
4982// @@protoc_insertion_point(namespace_scope)
4983} // namespace math_opt
4984} // namespace operations_research
4985namespace google {
4986namespace protobuf {
4987} // namespace protobuf
4988} // namespace google
4989// @@protoc_insertion_point(global_scope)
4990PROTOBUF_ATTRIBUTE_INIT_PRIORITY2 static ::std::false_type
4991 _static_init2_ [[maybe_unused]] =
4993 ::std::false_type{});
4994#include "google/protobuf/port_undef.inc"
static PROTOBUF_ATTRIBUTE_INIT_PRIORITY2 ::std::false_type _static_init2_
static const ::_pb::Message *PROTOBUF_NONNULL const file_default_instances[]
::google::protobuf::Metadata GetMetadata() const
Definition model.pb.cc:3646
void CopyFrom(const IndicatorConstraintProto &from)
Definition model.pb.cc:3623
ABSL_ATTRIBUTE_REINITIALIZES void Clear() PROTOBUF_FINAL
Definition model.pb.cc:3404
::uint8_t *PROTOBUF_NONNULL _InternalSerialize(::uint8_t *PROTOBUF_NONNULL target, ::google::protobuf::io::EpsCopyOutputStream *PROTOBUF_NONNULL stream) const final
Definition model.pb.cc:3436
void MergeFrom(const IndicatorConstraintProto &from)
Definition model.pb.h:1749
void MergeFrom(const LinearConstraintsProto &from)
Definition model.pb.h:498
::uint8_t *PROTOBUF_NONNULL _InternalSerialize(::uint8_t *PROTOBUF_NONNULL target, ::google::protobuf::io::EpsCopyOutputStream *PROTOBUF_NONNULL stream) const final
Definition model.pb.cc:1822
void CopyFrom(const LinearConstraintsProto &from)
Definition model.pb.cc:1973
ABSL_ATTRIBUTE_REINITIALIZES void Clear() PROTOBUF_FINAL
Definition model.pb.cc:1790
const ::google::protobuf::UnknownFieldSet & unknown_fields() const ABSL_ATTRIBUTE_LIFETIME_BOUND
Definition model.pb.h:452
::google::protobuf::Metadata GetMetadata() const
Definition model.pb.cc:1991
friend class ::google::protobuf::MessageLite
Definition model.pb.h:2500
ABSL_ATTRIBUTE_REINITIALIZES void Clear() PROTOBUF_FINAL
Definition model.pb.cc:4513
void MergeFrom(const ModelProto &from)
Definition model.pb.h:2251
void CopyFrom(const ModelProto &from)
Definition model.pb.cc:4964
::google::protobuf::Metadata GetMetadata() const
Definition model.pb.cc:4993
friend void swap(ModelProto &a, ModelProto &b)
Definition model.pb.h:2228
static constexpr auto InternalGenerateClassData_()
Definition model.pb.cc:4381
::uint8_t *PROTOBUF_NONNULL _InternalSerialize(::uint8_t *PROTOBUF_NONNULL target, ::google::protobuf::io::EpsCopyOutputStream *PROTOBUF_NONNULL stream) const final
Definition model.pb.cc:4572
friend class ::google::protobuf::Arena
Definition model.pb.h:2501
decltype(::std::declval< ObjectiveProto >()._impl_._has_bits_) HasBits
Definition model.pb.cc:1128
friend class ::google::protobuf::MessageLite
Definition model.pb.h:1637
void CopyFrom(const ObjectiveProto &from)
Definition model.pb.cc:1568
friend void swap(ObjectiveProto &a, ObjectiveProto &b)
Definition model.pb.h:1460
::google::protobuf::Metadata GetMetadata() const
Definition model.pb.cc:1591
const ::google::protobuf::UnknownFieldSet & unknown_fields() const ABSL_ATTRIBUTE_LIFETIME_BOUND
Definition model.pb.h:1437
::uint8_t *PROTOBUF_NONNULL _InternalSerialize(::uint8_t *PROTOBUF_NONNULL target, ::google::protobuf::io::EpsCopyOutputStream *PROTOBUF_NONNULL stream) const final
Definition model.pb.cc:1375
static constexpr auto InternalGenerateClassData_()
Definition model.pb.cc:1234
void MergeFrom(const ObjectiveProto &from)
Definition model.pb.h:1483
ABSL_ATTRIBUTE_REINITIALIZES void Clear() PROTOBUF_FINAL
Definition model.pb.cc:1339
friend class ::google::protobuf::Arena
Definition model.pb.h:1638
void MergeFrom(const QuadraticConstraintProto &from)
Definition model.pb.h:1229
void CopyFrom(const QuadraticConstraintProto &from)
Definition model.pb.cc:2413
ABSL_ATTRIBUTE_REINITIALIZES void Clear() PROTOBUF_FINAL
Definition model.pb.cc:2205
friend void swap(QuadraticConstraintProto &a, QuadraticConstraintProto &b)
Definition model.pb.h:1206
::uint8_t *PROTOBUF_NONNULL _InternalSerialize(::uint8_t *PROTOBUF_NONNULL target, ::google::protobuf::io::EpsCopyOutputStream *PROTOBUF_NONNULL stream) const final
Definition model.pb.cc:2241
::google::protobuf::Metadata GetMetadata() const
Definition model.pb.cc:2436
friend void swap(SecondOrderConeConstraintProto &a, SecondOrderConeConstraintProto &b)
Definition model.pb.h:974
void MergeFrom(const SecondOrderConeConstraintProto &from)
Definition model.pb.h:997
void CopyFrom(const SecondOrderConeConstraintProto &from)
Definition model.pb.cc:2801
::uint8_t *PROTOBUF_NONNULL _InternalSerialize(::uint8_t *PROTOBUF_NONNULL target, ::google::protobuf::io::EpsCopyOutputStream *PROTOBUF_NONNULL stream) const final
Definition model.pb.cc:2664
ABSL_ATTRIBUTE_REINITIALIZES void Clear() PROTOBUF_FINAL
Definition model.pb.cc:2634
friend class ::google::protobuf::MessageLite
Definition model.pb.h:888
ABSL_ATTRIBUTE_REINITIALIZES void Clear() PROTOBUF_FINAL
Definition model.pb.cc:3011
::uint8_t *PROTOBUF_NONNULL _InternalSerialize(::uint8_t *PROTOBUF_NONNULL target, ::google::protobuf::io::EpsCopyOutputStream *PROTOBUF_NONNULL stream) const final
Definition model.pb.cc:3040
::google::protobuf::Metadata GetMetadata() const
Definition model.pb.cc:3196
void MergeFrom(const SosConstraintProto &from)
Definition model.pb.h:762
void CopyFrom(const SosConstraintProto &from)
Definition model.pb.cc:3177
ABSL_ATTRIBUTE_REINITIALIZES void Clear() PROTOBUF_FINAL
ABSL_ATTRIBUTE_REINITIALIZES void Clear() PROTOBUF_FINAL
decltype(::std::declval< VariablesProto >()._impl_._has_bits_) HasBits
Definition model.pb.cc:689
friend class ::google::protobuf::MessageLite
Definition model.pb.h:386
ABSL_ATTRIBUTE_REINITIALIZES void Clear() PROTOBUF_FINAL
Definition model.pb.cc:895
void CopyFrom(const VariablesProto &from)
Definition model.pb.cc:1101
const ::google::protobuf::UnknownFieldSet & unknown_fields() const ABSL_ATTRIBUTE_LIFETIME_BOUND
Definition model.pb.h:168
static constexpr auto InternalGenerateClassData_()
Definition model.pb.cc:798
friend void swap(VariablesProto &a, VariablesProto &b)
Definition model.pb.h:191
void MergeFrom(const VariablesProto &from)
Definition model.pb.h:214
::uint8_t *PROTOBUF_NONNULL _InternalSerialize(::uint8_t *PROTOBUF_NONNULL target, ::google::protobuf::io::EpsCopyOutputStream *PROTOBUF_NONNULL stream) const final
Definition model.pb.cc:930
friend class ::google::protobuf::Arena
Definition model.pb.h:387
::google::protobuf::Metadata GetMetadata() const
Definition model.pb.cc:1120
static constexpr ::_pbi::MigrationSchema *PROTOBUF_NULLABLE schemas
static constexprconst ::_pb::EnumDescriptor *PROTOBUF_NONNULL *PROTOBUF_NULLABLE file_level_enum_descriptors_ortools_2fmath_5fopt_2fmodel_2eproto
Definition model.pb.cc:389
::absl::once_flag descriptor_table_ortools_2fmath_5fopt_2fmodel_2eproto_once
Definition model.pb.cc:665
static const ::_pbi::DescriptorTable *PROTOBUF_NONNULL const descriptor_table_ortools_2fmath_5fopt_2fmodel_2eproto_deps[1]
Definition model.pb.cc:662
static constexprconst ::_pb::ServiceDescriptor *PROTOBUF_NONNULL *PROTOBUF_NULLABLE file_level_service_descriptors_ortools_2fmath_5fopt_2fmodel_2eproto
Definition model.pb.cc:391
PROTOBUF_CONSTINITconst ::_pbi::DescriptorTable descriptor_table_ortools_2fmath_5fopt_2fmodel_2eproto
Definition model.pb.cc:666
const ::uint32_t TableStruct_ortools_2fmath_5fopt_2fmodel_2eproto::offsets[] ABSL_ATTRIBUTE_SECTION_VARIABLE(protodesc_cold)
PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT OR_PROTO_DLL PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 ModelProtoDefaultTypeInternal _ModelProto_default_instance_
Definition model.pb.cc:385
PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT OR_PROTO_DLL PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 ModelProto_AuxiliaryObjectivesEntry_DoNotUseDefaultTypeInternal _ModelProto_AuxiliaryObjectivesEntry_DoNotUse_default_instance_
Definition model.pb.cc:348
PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 const::google::protobuf::internal::ClassDataFull SecondOrderConeConstraintProto_class_data_
Definition model.pb.cc:2572
PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 const::google::protobuf::internal::ClassDataFull ModelProto_AuxiliaryObjectivesEntry_DoNotUse_class_data_
Definition model.pb.cc:3695
PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT OR_PROTO_DLL PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 ModelProto_IndicatorConstraintsEntry_DoNotUseDefaultTypeInternal _ModelProto_IndicatorConstraintsEntry_DoNotUse_default_instance_
Definition model.pb.cc:330
PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 const::google::protobuf::internal::ClassDataFull ModelProto_SecondOrderConeConstraintsEntry_DoNotUse_class_data_
Definition model.pb.cc:3889
PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT OR_PROTO_DLL PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 ModelProto_QuadraticConstraintsEntry_DoNotUseDefaultTypeInternal _ModelProto_QuadraticConstraintsEntry_DoNotUse_default_instance_
Definition model.pb.cc:312
PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 const::google::protobuf::internal::ClassDataFull ObjectiveProto_class_data_
Definition model.pb.cc:1258
PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT OR_PROTO_DLL PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 IndicatorConstraintProtoDefaultTypeInternal _IndicatorConstraintProto_default_instance_
Definition model.pb.cc:240
PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT OR_PROTO_DLL PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 SosConstraintProtoDefaultTypeInternal _SosConstraintProto_default_instance_
Definition model.pb.cc:116
PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 const::google::protobuf::internal::ClassDataFull VariablesProto_class_data_
Definition model.pb.cc:822
PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 const::google::protobuf::internal::ClassDataFull LinearConstraintsProto_class_data_
Definition model.pb.cc:1726
PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT OR_PROTO_DLL PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 ObjectiveProtoDefaultTypeInternal _ObjectiveProto_default_instance_
Definition model.pb.cc:208
PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT OR_PROTO_DLL PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 QuadraticConstraintProtoDefaultTypeInternal _QuadraticConstraintProto_default_instance_
Definition model.pb.cc:176
PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 const::google::protobuf::internal::ClassDataFull ModelProto_Sos2ConstraintsEntry_DoNotUse_class_data_
Definition model.pb.cc:4083
PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT OR_PROTO_DLL PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 ModelProto_SecondOrderConeConstraintsEntry_DoNotUseDefaultTypeInternal _ModelProto_SecondOrderConeConstraintsEntry_DoNotUse_default_instance_
Definition model.pb.cc:294
PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 const::google::protobuf::internal::ClassDataFull ModelProto_class_data_
Definition model.pb.cc:4405
PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 const::google::protobuf::internal::ClassDataFull ModelProto_QuadraticConstraintsEntry_DoNotUse_class_data_
Definition model.pb.cc:3792
PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT OR_PROTO_DLL PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 LinearConstraintsProtoDefaultTypeInternal _LinearConstraintsProto_default_instance_
Definition model.pb.cc:87
PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT OR_PROTO_DLL PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 SecondOrderConeConstraintProtoDefaultTypeInternal _SecondOrderConeConstraintProto_default_instance_
Definition model.pb.cc:145
PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT OR_PROTO_DLL PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 VariablesProtoDefaultTypeInternal _VariablesProto_default_instance_
Definition model.pb.cc:58
PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 const::google::protobuf::internal::ClassDataFull ModelProto_IndicatorConstraintsEntry_DoNotUse_class_data_
Definition model.pb.cc:4180
PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 const::google::protobuf::internal::ClassDataFull SosConstraintProto_class_data_
Definition model.pb.cc:2950
PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 const::google::protobuf::internal::ClassDataFull QuadraticConstraintProto_class_data_
Definition model.pb.cc:2129
PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT OR_PROTO_DLL PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 ModelProto_Sos1ConstraintsEntry_DoNotUseDefaultTypeInternal _ModelProto_Sos1ConstraintsEntry_DoNotUse_default_instance_
Definition model.pb.cc:276
PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 const::google::protobuf::internal::ClassDataFull IndicatorConstraintProto_class_data_
Definition model.pb.cc:3324
PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 const::google::protobuf::internal::ClassDataFull ModelProto_Sos1ConstraintsEntry_DoNotUse_class_data_
Definition model.pb.cc:3986
PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT OR_PROTO_DLL PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 ModelProto_Sos2ConstraintsEntry_DoNotUseDefaultTypeInternal _ModelProto_Sos2ConstraintsEntry_DoNotUse_default_instance_
Definition model.pb.cc:258
OR-Tools root namespace.
PROTOBUF_CONSTINITconst ::_pbi::DescriptorTable descriptor_table_ortools_2fmath_5fopt_2fsparse_5fcontainers_2eproto