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