Google OR-Tools v9.15
a fast and portable software suite for combinatorial optimization
Loading...
Searching...
No Matches
model_update.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_update.proto
4// Protobuf C++ Version: 6.33.1
5
7
8#include <algorithm>
9#include <type_traits>
10#include "google/protobuf/io/coded_stream.h"
11#include "google/protobuf/generated_message_tctable_impl.h"
12#include "google/protobuf/extension_set.h"
13#include "google/protobuf/generated_message_util.h"
14#include "google/protobuf/wire_format_lite.h"
15#include "google/protobuf/descriptor.h"
16#include "google/protobuf/generated_message_reflection.h"
17#include "google/protobuf/reflection_ops.h"
18#include "google/protobuf/wire_format.h"
19// @@protoc_insertion_point(includes)
20
21// Must be included last.
22#include "google/protobuf/port_def.inc"
23PROTOBUF_PRAGMA_INIT_SEG
24namespace _pb = ::google::protobuf;
26namespace _fl = ::google::protobuf::internal::field_layout;
27namespace operations_research {
28namespace math_opt {
29
30inline constexpr VariableUpdatesProto::Impl_::Impl_(
31 ::_pbi::ConstantInitialized) noexcept
32 : _cached_size_{0},
33 lower_bounds_{nullptr},
34 upper_bounds_{nullptr},
35 integers_{nullptr} {}
36
37template <typename>
38PROTOBUF_CONSTEXPR VariableUpdatesProto::VariableUpdatesProto(::_pbi::ConstantInitialized)
39#if defined(PROTOBUF_CUSTOM_VTABLE)
40 : ::google::protobuf::Message(VariableUpdatesProto_class_data_.base()),
41#else // PROTOBUF_CUSTOM_VTABLE
42 : ::google::protobuf::Message(),
43#endif // PROTOBUF_CUSTOM_VTABLE
44 _impl_(::_pbi::ConstantInitialized()) {
45}
53
54PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT OR_PROTO_DLL
56
57inline constexpr ObjectiveUpdatesProto::Impl_::Impl_(
58 ::_pbi::ConstantInitialized) noexcept
59 : _cached_size_{0},
60 linear_coefficients_{nullptr},
61 quadratic_coefficients_{nullptr},
62 offset_update_{0},
63 priority_update_{::int64_t{0}},
64 direction_update_{false} {}
65
66template <typename>
67PROTOBUF_CONSTEXPR ObjectiveUpdatesProto::ObjectiveUpdatesProto(::_pbi::ConstantInitialized)
68#if defined(PROTOBUF_CUSTOM_VTABLE)
69 : ::google::protobuf::Message(ObjectiveUpdatesProto_class_data_.base()),
70#else // PROTOBUF_CUSTOM_VTABLE
71 : ::google::protobuf::Message(),
72#endif // PROTOBUF_CUSTOM_VTABLE
73 _impl_(::_pbi::ConstantInitialized()) {
74}
82
83PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT OR_PROTO_DLL
85
86inline constexpr LinearConstraintUpdatesProto::Impl_::Impl_(
87 ::_pbi::ConstantInitialized) noexcept
88 : _cached_size_{0},
89 lower_bounds_{nullptr},
90 upper_bounds_{nullptr} {}
91
92template <typename>
93PROTOBUF_CONSTEXPR LinearConstraintUpdatesProto::LinearConstraintUpdatesProto(::_pbi::ConstantInitialized)
94#if defined(PROTOBUF_CUSTOM_VTABLE)
95 : ::google::protobuf::Message(LinearConstraintUpdatesProto_class_data_.base()),
96#else // PROTOBUF_CUSTOM_VTABLE
97 : ::google::protobuf::Message(),
98#endif // PROTOBUF_CUSTOM_VTABLE
99 _impl_(::_pbi::ConstantInitialized()) {
100}
108
109PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT OR_PROTO_DLL
111template <typename>
113#if defined(PROTOBUF_CUSTOM_VTABLE)
114 : SosConstraintUpdatesProto_NewConstraintsEntry_DoNotUse::MapEntry(SosConstraintUpdatesProto_NewConstraintsEntry_DoNotUse_class_data_.base()){}
115#else // PROTOBUF_CUSTOM_VTABLE
116 : SosConstraintUpdatesProto_NewConstraintsEntry_DoNotUse::MapEntry() {
117}
118#endif // PROTOBUF_CUSTOM_VTABLE
126
127PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT OR_PROTO_DLL
129template <typename>
131#if defined(PROTOBUF_CUSTOM_VTABLE)
132 : SecondOrderConeConstraintUpdatesProto_NewConstraintsEntry_DoNotUse::MapEntry(SecondOrderConeConstraintUpdatesProto_NewConstraintsEntry_DoNotUse_class_data_.base()){}
133#else // PROTOBUF_CUSTOM_VTABLE
134 : SecondOrderConeConstraintUpdatesProto_NewConstraintsEntry_DoNotUse::MapEntry() {
135}
136#endif // PROTOBUF_CUSTOM_VTABLE
144
145PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT OR_PROTO_DLL
147template <typename>
149#if defined(PROTOBUF_CUSTOM_VTABLE)
150 : QuadraticConstraintUpdatesProto_NewConstraintsEntry_DoNotUse::MapEntry(QuadraticConstraintUpdatesProto_NewConstraintsEntry_DoNotUse_class_data_.base()){}
151#else // PROTOBUF_CUSTOM_VTABLE
152 : QuadraticConstraintUpdatesProto_NewConstraintsEntry_DoNotUse::MapEntry() {
153}
154#endif // PROTOBUF_CUSTOM_VTABLE
162
163PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT OR_PROTO_DLL
165template <typename>
167#if defined(PROTOBUF_CUSTOM_VTABLE)
168 : IndicatorConstraintUpdatesProto_NewConstraintsEntry_DoNotUse::MapEntry(IndicatorConstraintUpdatesProto_NewConstraintsEntry_DoNotUse_class_data_.base()){}
169#else // PROTOBUF_CUSTOM_VTABLE
170 : IndicatorConstraintUpdatesProto_NewConstraintsEntry_DoNotUse::MapEntry() {
171}
172#endif // PROTOBUF_CUSTOM_VTABLE
180
181PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT OR_PROTO_DLL
183template <typename>
185#if defined(PROTOBUF_CUSTOM_VTABLE)
186 : AuxiliaryObjectivesUpdatesProto_ObjectiveUpdatesEntry_DoNotUse::MapEntry(AuxiliaryObjectivesUpdatesProto_ObjectiveUpdatesEntry_DoNotUse_class_data_.base()){}
187#else // PROTOBUF_CUSTOM_VTABLE
188 : AuxiliaryObjectivesUpdatesProto_ObjectiveUpdatesEntry_DoNotUse::MapEntry() {
189}
190#endif // PROTOBUF_CUSTOM_VTABLE
198
199PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT OR_PROTO_DLL
201template <typename>
203#if defined(PROTOBUF_CUSTOM_VTABLE)
204 : AuxiliaryObjectivesUpdatesProto_NewObjectivesEntry_DoNotUse::MapEntry(AuxiliaryObjectivesUpdatesProto_NewObjectivesEntry_DoNotUse_class_data_.base()){}
205#else // PROTOBUF_CUSTOM_VTABLE
206 : AuxiliaryObjectivesUpdatesProto_NewObjectivesEntry_DoNotUse::MapEntry() {
207}
208#endif // PROTOBUF_CUSTOM_VTABLE
216
217PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT OR_PROTO_DLL
219
220inline constexpr SosConstraintUpdatesProto::Impl_::Impl_(
221 ::_pbi::ConstantInitialized) noexcept
222 : _cached_size_{0},
223 deleted_constraint_ids_{},
224 _deleted_constraint_ids_cached_byte_size_{0},
225 new_constraints_{} {}
226
227template <typename>
228PROTOBUF_CONSTEXPR SosConstraintUpdatesProto::SosConstraintUpdatesProto(::_pbi::ConstantInitialized)
229#if defined(PROTOBUF_CUSTOM_VTABLE)
230 : ::google::protobuf::Message(SosConstraintUpdatesProto_class_data_.base()),
231#else // PROTOBUF_CUSTOM_VTABLE
232 : ::google::protobuf::Message(),
233#endif // PROTOBUF_CUSTOM_VTABLE
234 _impl_(::_pbi::ConstantInitialized()) {
235}
243
244PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT OR_PROTO_DLL
246
247inline constexpr SecondOrderConeConstraintUpdatesProto::Impl_::Impl_(
248 ::_pbi::ConstantInitialized) noexcept
249 : _cached_size_{0},
250 deleted_constraint_ids_{},
251 _deleted_constraint_ids_cached_byte_size_{0},
252 new_constraints_{} {}
253
254template <typename>
256#if defined(PROTOBUF_CUSTOM_VTABLE)
257 : ::google::protobuf::Message(SecondOrderConeConstraintUpdatesProto_class_data_.base()),
258#else // PROTOBUF_CUSTOM_VTABLE
259 : ::google::protobuf::Message(),
260#endif // PROTOBUF_CUSTOM_VTABLE
261 _impl_(::_pbi::ConstantInitialized()) {
262}
270
271PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT OR_PROTO_DLL
273
274inline constexpr QuadraticConstraintUpdatesProto::Impl_::Impl_(
275 ::_pbi::ConstantInitialized) noexcept
276 : _cached_size_{0},
277 deleted_constraint_ids_{},
278 _deleted_constraint_ids_cached_byte_size_{0},
279 new_constraints_{} {}
280
281template <typename>
282PROTOBUF_CONSTEXPR QuadraticConstraintUpdatesProto::QuadraticConstraintUpdatesProto(::_pbi::ConstantInitialized)
283#if defined(PROTOBUF_CUSTOM_VTABLE)
284 : ::google::protobuf::Message(QuadraticConstraintUpdatesProto_class_data_.base()),
285#else // PROTOBUF_CUSTOM_VTABLE
286 : ::google::protobuf::Message(),
287#endif // PROTOBUF_CUSTOM_VTABLE
288 _impl_(::_pbi::ConstantInitialized()) {
289}
297
298PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT OR_PROTO_DLL
300
301inline constexpr IndicatorConstraintUpdatesProto::Impl_::Impl_(
302 ::_pbi::ConstantInitialized) noexcept
303 : _cached_size_{0},
304 deleted_constraint_ids_{},
305 _deleted_constraint_ids_cached_byte_size_{0},
306 new_constraints_{} {}
307
308template <typename>
309PROTOBUF_CONSTEXPR IndicatorConstraintUpdatesProto::IndicatorConstraintUpdatesProto(::_pbi::ConstantInitialized)
310#if defined(PROTOBUF_CUSTOM_VTABLE)
311 : ::google::protobuf::Message(IndicatorConstraintUpdatesProto_class_data_.base()),
312#else // PROTOBUF_CUSTOM_VTABLE
313 : ::google::protobuf::Message(),
314#endif // PROTOBUF_CUSTOM_VTABLE
315 _impl_(::_pbi::ConstantInitialized()) {
316}
324
325PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT OR_PROTO_DLL
327
328inline constexpr AuxiliaryObjectivesUpdatesProto::Impl_::Impl_(
329 ::_pbi::ConstantInitialized) noexcept
330 : _cached_size_{0},
331 deleted_objective_ids_{},
332 _deleted_objective_ids_cached_byte_size_{0},
333 new_objectives_{},
334 objective_updates_{} {}
335
336template <typename>
337PROTOBUF_CONSTEXPR AuxiliaryObjectivesUpdatesProto::AuxiliaryObjectivesUpdatesProto(::_pbi::ConstantInitialized)
338#if defined(PROTOBUF_CUSTOM_VTABLE)
339 : ::google::protobuf::Message(AuxiliaryObjectivesUpdatesProto_class_data_.base()),
340#else // PROTOBUF_CUSTOM_VTABLE
341 : ::google::protobuf::Message(),
342#endif // PROTOBUF_CUSTOM_VTABLE
343 _impl_(::_pbi::ConstantInitialized()) {
344}
352
353PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT OR_PROTO_DLL
355
356inline constexpr ModelUpdateProto::Impl_::Impl_(
357 ::_pbi::ConstantInitialized) noexcept
358 : _cached_size_{0},
359 deleted_variable_ids_{},
360 _deleted_variable_ids_cached_byte_size_{0},
361 deleted_linear_constraint_ids_{},
362 _deleted_linear_constraint_ids_cached_byte_size_{0},
363 variable_updates_{nullptr},
364 linear_constraint_updates_{nullptr},
365 new_variables_{nullptr},
366 new_linear_constraints_{nullptr},
367 objective_updates_{nullptr},
368 linear_constraint_matrix_updates_{nullptr},
369 quadratic_constraint_updates_{nullptr},
370 sos1_constraint_updates_{nullptr},
371 sos2_constraint_updates_{nullptr},
372 indicator_constraint_updates_{nullptr},
373 auxiliary_objectives_updates_{nullptr},
374 second_order_cone_constraint_updates_{nullptr} {}
375
376template <typename>
377PROTOBUF_CONSTEXPR ModelUpdateProto::ModelUpdateProto(::_pbi::ConstantInitialized)
378#if defined(PROTOBUF_CUSTOM_VTABLE)
379 : ::google::protobuf::Message(ModelUpdateProto_class_data_.base()),
380#else // PROTOBUF_CUSTOM_VTABLE
381 : ::google::protobuf::Message(),
382#endif // PROTOBUF_CUSTOM_VTABLE
383 _impl_(::_pbi::ConstantInitialized()) {
384}
392
393PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT OR_PROTO_DLL
395} // namespace math_opt
396} // namespace operations_research
397static constexpr const ::_pb::EnumDescriptor* PROTOBUF_NONNULL* PROTOBUF_NULLABLE
399static constexpr const ::_pb::ServiceDescriptor* PROTOBUF_NONNULL* PROTOBUF_NULLABLE
401const ::uint32_t
403 protodesc_cold) = {
404 0x081, // bitmap
405 PROTOBUF_FIELD_OFFSET(::operations_research::math_opt::VariableUpdatesProto, _impl_._has_bits_),
406 6, // hasbit index offset
407 PROTOBUF_FIELD_OFFSET(::operations_research::math_opt::VariableUpdatesProto, _impl_.lower_bounds_),
408 PROTOBUF_FIELD_OFFSET(::operations_research::math_opt::VariableUpdatesProto, _impl_.upper_bounds_),
409 PROTOBUF_FIELD_OFFSET(::operations_research::math_opt::VariableUpdatesProto, _impl_.integers_),
410 0,
411 1,
412 2,
413 0x081, // bitmap
414 PROTOBUF_FIELD_OFFSET(::operations_research::math_opt::ObjectiveUpdatesProto, _impl_._has_bits_),
415 8, // hasbit index offset
416 PROTOBUF_FIELD_OFFSET(::operations_research::math_opt::ObjectiveUpdatesProto, _impl_.direction_update_),
417 PROTOBUF_FIELD_OFFSET(::operations_research::math_opt::ObjectiveUpdatesProto, _impl_.offset_update_),
418 PROTOBUF_FIELD_OFFSET(::operations_research::math_opt::ObjectiveUpdatesProto, _impl_.linear_coefficients_),
419 PROTOBUF_FIELD_OFFSET(::operations_research::math_opt::ObjectiveUpdatesProto, _impl_.quadratic_coefficients_),
420 PROTOBUF_FIELD_OFFSET(::operations_research::math_opt::ObjectiveUpdatesProto, _impl_.priority_update_),
421 4,
422 2,
423 0,
424 1,
425 3,
426 0x081, // bitmap
428 5, // hasbit index offset
431 0,
432 1,
433 0x081, // bitmap
435 5, // hasbit index offset
438 0,
439 1,
440 0x081, // bitmap
441 PROTOBUF_FIELD_OFFSET(::operations_research::math_opt::AuxiliaryObjectivesUpdatesProto, _impl_._has_bits_),
442 6, // hasbit index offset
443 PROTOBUF_FIELD_OFFSET(::operations_research::math_opt::AuxiliaryObjectivesUpdatesProto, _impl_.deleted_objective_ids_),
444 PROTOBUF_FIELD_OFFSET(::operations_research::math_opt::AuxiliaryObjectivesUpdatesProto, _impl_.new_objectives_),
445 PROTOBUF_FIELD_OFFSET(::operations_research::math_opt::AuxiliaryObjectivesUpdatesProto, _impl_.objective_updates_),
446 0,
447 1,
448 2,
449 0x081, // bitmap
450 PROTOBUF_FIELD_OFFSET(::operations_research::math_opt::LinearConstraintUpdatesProto, _impl_._has_bits_),
451 5, // hasbit index offset
452 PROTOBUF_FIELD_OFFSET(::operations_research::math_opt::LinearConstraintUpdatesProto, _impl_.lower_bounds_),
453 PROTOBUF_FIELD_OFFSET(::operations_research::math_opt::LinearConstraintUpdatesProto, _impl_.upper_bounds_),
454 0,
455 1,
456 0x081, // bitmap
458 5, // hasbit index offset
461 0,
462 1,
463 0x081, // bitmap
464 PROTOBUF_FIELD_OFFSET(::operations_research::math_opt::QuadraticConstraintUpdatesProto, _impl_._has_bits_),
465 5, // hasbit index offset
466 PROTOBUF_FIELD_OFFSET(::operations_research::math_opt::QuadraticConstraintUpdatesProto, _impl_.deleted_constraint_ids_),
467 PROTOBUF_FIELD_OFFSET(::operations_research::math_opt::QuadraticConstraintUpdatesProto, _impl_.new_constraints_),
468 0,
469 1,
470 0x081, // bitmap
472 5, // hasbit index offset
475 0,
476 1,
477 0x081, // bitmap
478 PROTOBUF_FIELD_OFFSET(::operations_research::math_opt::SecondOrderConeConstraintUpdatesProto, _impl_._has_bits_),
479 5, // hasbit index offset
480 PROTOBUF_FIELD_OFFSET(::operations_research::math_opt::SecondOrderConeConstraintUpdatesProto, _impl_.deleted_constraint_ids_),
481 PROTOBUF_FIELD_OFFSET(::operations_research::math_opt::SecondOrderConeConstraintUpdatesProto, _impl_.new_constraints_),
482 0,
483 1,
484 0x081, // bitmap
486 5, // hasbit index offset
489 0,
490 1,
491 0x081, // bitmap
492 PROTOBUF_FIELD_OFFSET(::operations_research::math_opt::SosConstraintUpdatesProto, _impl_._has_bits_),
493 5, // hasbit index offset
494 PROTOBUF_FIELD_OFFSET(::operations_research::math_opt::SosConstraintUpdatesProto, _impl_.deleted_constraint_ids_),
495 PROTOBUF_FIELD_OFFSET(::operations_research::math_opt::SosConstraintUpdatesProto, _impl_.new_constraints_),
496 0,
497 1,
498 0x081, // bitmap
500 5, // hasbit index offset
503 0,
504 1,
505 0x081, // bitmap
506 PROTOBUF_FIELD_OFFSET(::operations_research::math_opt::IndicatorConstraintUpdatesProto, _impl_._has_bits_),
507 5, // hasbit index offset
508 PROTOBUF_FIELD_OFFSET(::operations_research::math_opt::IndicatorConstraintUpdatesProto, _impl_.deleted_constraint_ids_),
509 PROTOBUF_FIELD_OFFSET(::operations_research::math_opt::IndicatorConstraintUpdatesProto, _impl_.new_constraints_),
510 0,
511 1,
512 0x081, // bitmap
513 PROTOBUF_FIELD_OFFSET(::operations_research::math_opt::ModelUpdateProto, _impl_._has_bits_),
514 17, // hasbit index offset
515 PROTOBUF_FIELD_OFFSET(::operations_research::math_opt::ModelUpdateProto, _impl_.deleted_variable_ids_),
516 PROTOBUF_FIELD_OFFSET(::operations_research::math_opt::ModelUpdateProto, _impl_.deleted_linear_constraint_ids_),
517 PROTOBUF_FIELD_OFFSET(::operations_research::math_opt::ModelUpdateProto, _impl_.variable_updates_),
518 PROTOBUF_FIELD_OFFSET(::operations_research::math_opt::ModelUpdateProto, _impl_.linear_constraint_updates_),
519 PROTOBUF_FIELD_OFFSET(::operations_research::math_opt::ModelUpdateProto, _impl_.new_variables_),
520 PROTOBUF_FIELD_OFFSET(::operations_research::math_opt::ModelUpdateProto, _impl_.new_linear_constraints_),
521 PROTOBUF_FIELD_OFFSET(::operations_research::math_opt::ModelUpdateProto, _impl_.objective_updates_),
522 PROTOBUF_FIELD_OFFSET(::operations_research::math_opt::ModelUpdateProto, _impl_.auxiliary_objectives_updates_),
523 PROTOBUF_FIELD_OFFSET(::operations_research::math_opt::ModelUpdateProto, _impl_.linear_constraint_matrix_updates_),
524 PROTOBUF_FIELD_OFFSET(::operations_research::math_opt::ModelUpdateProto, _impl_.quadratic_constraint_updates_),
525 PROTOBUF_FIELD_OFFSET(::operations_research::math_opt::ModelUpdateProto, _impl_.second_order_cone_constraint_updates_),
526 PROTOBUF_FIELD_OFFSET(::operations_research::math_opt::ModelUpdateProto, _impl_.sos1_constraint_updates_),
527 PROTOBUF_FIELD_OFFSET(::operations_research::math_opt::ModelUpdateProto, _impl_.sos2_constraint_updates_),
528 PROTOBUF_FIELD_OFFSET(::operations_research::math_opt::ModelUpdateProto, _impl_.indicator_constraint_updates_),
529 0,
530 1,
531 2,
532 3,
533 4,
534 5,
535 6,
536 12,
537 7,
538 8,
539 13,
540 9,
541 10,
542 11,
543};
544
545static const ::_pbi::MigrationSchema
546 schemas[] ABSL_ATTRIBUTE_SECTION_VARIABLE(protodesc_cold) = {
562};
563static const ::_pb::Message* PROTOBUF_NONNULL const file_default_instances[] = {
579};
580const char descriptor_table_protodef_ortools_2fmath_5fopt_2fmodel_5fupdate_2eproto[] ABSL_ATTRIBUTE_SECTION_VARIABLE(
581 protodesc_cold) = {
582 "\n#ortools/math_opt/model_update.proto\022\034o"
583 "perations_research.math_opt\032\034ortools/mat"
584 "h_opt/model.proto\032(ortools/math_opt/spar"
585 "se_containers.proto\"\367\001\n\024VariableUpdatesP"
586 "roto\022K\n\014lower_bounds\030\001 \001(\01325.operations_"
587 "research.math_opt.SparseDoubleVectorProt"
588 "o\022K\n\014upper_bounds\030\002 \001(\01325.operations_res"
589 "earch.math_opt.SparseDoubleVectorProto\022E"
590 "\n\010integers\030\003 \001(\01323.operations_research.m"
591 "ath_opt.SparseBoolVectorProto\"\326\002\n\025Object"
592 "iveUpdatesProto\022\035\n\020direction_update\030\001 \001("
593 "\010H\000\210\001\001\022\032\n\roffset_update\030\002 \001(\001H\001\210\001\001\022R\n\023li"
594 "near_coefficients\030\003 \001(\01325.operations_res"
595 "earch.math_opt.SparseDoubleVectorProto\022U"
596 "\n\026quadratic_coefficients\030\004 \001(\01325.operati"
597 "ons_research.math_opt.SparseDoubleMatrix"
598 "Proto\022\034\n\017priority_update\030\005 \001(\003H\002\210\001\001B\023\n\021_"
599 "direction_updateB\020\n\016_offset_updateB\022\n\020_p"
600 "riority_update\"\354\003\n\037AuxiliaryObjectivesUp"
601 "datesProto\022\035\n\025deleted_objective_ids\030\001 \003("
602 "\003\022h\n\016new_objectives\030\002 \003(\0132P.operations_r"
603 "esearch.math_opt.AuxiliaryObjectivesUpda"
604 "tesProto.NewObjectivesEntry\022n\n\021objective"
605 "_updates\030\003 \003(\0132S.operations_research.mat"
606 "h_opt.AuxiliaryObjectivesUpdatesProto.Ob"
607 "jectiveUpdatesEntry\032b\n\022NewObjectivesEntr"
608 "y\022\013\n\003key\030\001 \001(\003\022;\n\005value\030\002 \001(\0132,.operatio"
609 "ns_research.math_opt.ObjectiveProto:\0028\001\032"
610 "l\n\025ObjectiveUpdatesEntry\022\013\n\003key\030\001 \001(\003\022B\n"
611 "\005value\030\002 \001(\01323.operations_research.math_"
612 "opt.ObjectiveUpdatesProto:\0028\001\"\270\001\n\034Linear"
613 "ConstraintUpdatesProto\022K\n\014lower_bounds\030\001"
614 " \001(\01325.operations_research.math_opt.Spar"
615 "seDoubleVectorProto\022K\n\014upper_bounds\030\002 \001("
616 "\01325.operations_research.math_opt.SparseD"
617 "oubleVectorProto\"\234\002\n\037QuadraticConstraint"
618 "UpdatesProto\022\036\n\026deleted_constraint_ids\030\001"
619 " \003(\003\022j\n\017new_constraints\030\002 \003(\0132Q.operatio"
620 "ns_research.math_opt.QuadraticConstraint"
621 "UpdatesProto.NewConstraintsEntry\032m\n\023NewC"
622 "onstraintsEntry\022\013\n\003key\030\001 \001(\003\022E\n\005value\030\002 "
623 "\001(\01326.operations_research.math_opt.Quadr"
624 "aticConstraintProto:\0028\001\"\256\002\n%SecondOrderC"
625 "oneConstraintUpdatesProto\022\036\n\026deleted_con"
626 "straint_ids\030\001 \003(\003\022p\n\017new_constraints\030\002 \003"
627 "(\0132W.operations_research.math_opt.Second"
628 "OrderConeConstraintUpdatesProto.NewConst"
629 "raintsEntry\032s\n\023NewConstraintsEntry\022\013\n\003ke"
630 "y\030\001 \001(\003\022K\n\005value\030\002 \001(\0132<.operations_rese"
631 "arch.math_opt.SecondOrderConeConstraintP"
632 "roto:\0028\001\"\212\002\n\031SosConstraintUpdatesProto\022\036"
633 "\n\026deleted_constraint_ids\030\001 \003(\003\022d\n\017new_co"
634 "nstraints\030\002 \003(\0132K.operations_research.ma"
635 "th_opt.SosConstraintUpdatesProto.NewCons"
636 "traintsEntry\032g\n\023NewConstraintsEntry\022\013\n\003k"
637 "ey\030\001 \001(\003\022\?\n\005value\030\002 \001(\01320.operations_res"
638 "earch.math_opt.SosConstraintProto:\0028\001\"\234\002"
639 "\n\037IndicatorConstraintUpdatesProto\022\036\n\026del"
640 "eted_constraint_ids\030\001 \003(\003\022j\n\017new_constra"
641 "ints\030\002 \003(\0132Q.operations_research.math_op"
642 "t.IndicatorConstraintUpdatesProto.NewCon"
643 "straintsEntry\032m\n\023NewConstraintsEntry\022\013\n\003"
644 "key\030\001 \001(\003\022E\n\005value\030\002 \001(\01326.operations_re"
645 "search.math_opt.IndicatorConstraintProto"
646 ":\0028\001\"\246\t\n\020ModelUpdateProto\022\034\n\024deleted_var"
647 "iable_ids\030\001 \003(\003\022%\n\035deleted_linear_constr"
648 "aint_ids\030\002 \003(\003\022L\n\020variable_updates\030\003 \001(\013"
649 "22.operations_research.math_opt.Variable"
650 "UpdatesProto\022]\n\031linear_constraint_update"
651 "s\030\004 \001(\0132:.operations_research.math_opt.L"
652 "inearConstraintUpdatesProto\022C\n\rnew_varia"
653 "bles\030\005 \001(\0132,.operations_research.math_op"
654 "t.VariablesProto\022T\n\026new_linear_constrain"
655 "ts\030\006 \001(\01324.operations_research.math_opt."
656 "LinearConstraintsProto\022N\n\021objective_upda"
657 "tes\030\007 \001(\01323.operations_research.math_opt"
658 ".ObjectiveUpdatesProto\022c\n\034auxiliary_obje"
659 "ctives_updates\030\r \001(\0132=.operations_resear"
660 "ch.math_opt.AuxiliaryObjectivesUpdatesPr"
661 "oto\022_\n linear_constraint_matrix_updates\030"
662 "\010 \001(\01325.operations_research.math_opt.Spa"
663 "rseDoubleMatrixProto\022c\n\034quadratic_constr"
664 "aint_updates\030\t \001(\0132=.operations_research"
665 ".math_opt.QuadraticConstraintUpdatesProt"
666 "o\022q\n$second_order_cone_constraint_update"
667 "s\030\016 \001(\0132C.operations_research.math_opt.S"
668 "econdOrderConeConstraintUpdatesProto\022X\n\027"
669 "sos1_constraint_updates\030\n \001(\01327.operatio"
670 "ns_research.math_opt.SosConstraintUpdate"
671 "sProto\022X\n\027sos2_constraint_updates\030\013 \001(\0132"
672 "7.operations_research.math_opt.SosConstr"
673 "aintUpdatesProto\022c\n\034indicator_constraint"
674 "_updates\030\014 \001(\0132=.operations_research.mat"
675 "h_opt.IndicatorConstraintUpdatesProtoB\036\n"
676 "\032com.google.ortools.mathoptP\001b\006proto3"
677};
678static const ::_pbi::DescriptorTable* PROTOBUF_NONNULL const
700namespace operations_research {
701namespace math_opt {
702// ===================================================================
703
705 public:
706 using HasBits =
707 decltype(::std::declval<VariableUpdatesProto>()._impl_._has_bits_);
708 static constexpr ::int32_t kHasBitsOffset =
709 8 * PROTOBUF_FIELD_OFFSET(VariableUpdatesProto, _impl_._has_bits_);
710};
711
713 ::google::protobuf::internal::TSanWrite(&_impl_);
714 if (_impl_.lower_bounds_ != nullptr) _impl_.lower_bounds_->Clear();
715 ClearHasBit(_impl_._has_bits_[0],
716 0x00000001U);
717}
719 ::google::protobuf::internal::TSanWrite(&_impl_);
720 if (_impl_.upper_bounds_ != nullptr) _impl_.upper_bounds_->Clear();
721 ClearHasBit(_impl_._has_bits_[0],
722 0x00000002U);
723}
725 ::google::protobuf::internal::TSanWrite(&_impl_);
726 if (_impl_.integers_ != nullptr) _impl_.integers_->Clear();
727 ClearHasBit(_impl_._has_bits_[0],
728 0x00000004U);
729}
730VariableUpdatesProto::VariableUpdatesProto(::google::protobuf::Arena* PROTOBUF_NULLABLE arena)
731#if defined(PROTOBUF_CUSTOM_VTABLE)
732 : ::google::protobuf::Message(arena, VariableUpdatesProto_class_data_.base()) {
733#else // PROTOBUF_CUSTOM_VTABLE
734 : ::google::protobuf::Message(arena) {
735#endif // PROTOBUF_CUSTOM_VTABLE
736 SharedCtor(arena);
737 // @@protoc_insertion_point(arena_constructor:operations_research.math_opt.VariableUpdatesProto)
738}
739PROTOBUF_NDEBUG_INLINE VariableUpdatesProto::Impl_::Impl_(
740 [[maybe_unused]] ::google::protobuf::internal::InternalVisibility visibility,
741 [[maybe_unused]] ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const Impl_& from,
742 [[maybe_unused]] const ::operations_research::math_opt::VariableUpdatesProto& from_msg)
743 : _has_bits_{from._has_bits_},
744 _cached_size_{0} {}
745
747 ::google::protobuf::Arena* PROTOBUF_NULLABLE arena,
748 const VariableUpdatesProto& from)
749#if defined(PROTOBUF_CUSTOM_VTABLE)
750 : ::google::protobuf::Message(arena, VariableUpdatesProto_class_data_.base()) {
751#else // PROTOBUF_CUSTOM_VTABLE
752 : ::google::protobuf::Message(arena) {
753#endif // PROTOBUF_CUSTOM_VTABLE
754 VariableUpdatesProto* const _this = this;
755 (void)_this;
756 _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(
757 from._internal_metadata_);
758 new (&_impl_) Impl_(internal_visibility(), arena, from._impl_, from);
759 ::uint32_t cached_has_bits = _impl_._has_bits_[0];
760 _impl_.lower_bounds_ = (CheckHasBit(cached_has_bits, 0x00000001U))
761 ? ::google::protobuf::Message::CopyConstruct(arena, *from._impl_.lower_bounds_)
762 : nullptr;
763 _impl_.upper_bounds_ = (CheckHasBit(cached_has_bits, 0x00000002U))
764 ? ::google::protobuf::Message::CopyConstruct(arena, *from._impl_.upper_bounds_)
765 : nullptr;
766 _impl_.integers_ = (CheckHasBit(cached_has_bits, 0x00000004U))
767 ? ::google::protobuf::Message::CopyConstruct(arena, *from._impl_.integers_)
768 : nullptr;
769
770 // @@protoc_insertion_point(copy_constructor:operations_research.math_opt.VariableUpdatesProto)
771}
772PROTOBUF_NDEBUG_INLINE VariableUpdatesProto::Impl_::Impl_(
773 [[maybe_unused]] ::google::protobuf::internal::InternalVisibility visibility,
774 [[maybe_unused]] ::google::protobuf::Arena* PROTOBUF_NULLABLE arena)
775 : _cached_size_{0} {}
776
777inline void VariableUpdatesProto::SharedCtor(::_pb::Arena* PROTOBUF_NULLABLE arena) {
778 new (&_impl_) Impl_(internal_visibility(), arena);
779 ::memset(reinterpret_cast<char*>(&_impl_) +
780 offsetof(Impl_, lower_bounds_),
781 0,
782 offsetof(Impl_, integers_) -
783 offsetof(Impl_, lower_bounds_) +
784 sizeof(Impl_::integers_));
785}
787 // @@protoc_insertion_point(destructor:operations_research.math_opt.VariableUpdatesProto)
788 SharedDtor(*this);
789}
790inline void VariableUpdatesProto::SharedDtor(MessageLite& self) {
791 VariableUpdatesProto& this_ = static_cast<VariableUpdatesProto&>(self);
792 if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) {
793 this_.CheckHasBitConsistency();
794 }
795 this_._internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>();
796 ABSL_DCHECK(this_.GetArena() == nullptr);
797 delete this_._impl_.lower_bounds_;
798 delete this_._impl_.upper_bounds_;
799 delete this_._impl_.integers_;
800 this_._impl_.~Impl_();
801}
802
803inline void* PROTOBUF_NONNULL VariableUpdatesProto::PlacementNew_(
804 const void* PROTOBUF_NONNULL, void* PROTOBUF_NONNULL mem,
805 ::google::protobuf::Arena* PROTOBUF_NULLABLE arena) {
806 return ::new (mem) VariableUpdatesProto(arena);
807}
808constexpr auto VariableUpdatesProto::InternalNewImpl_() {
809 return ::google::protobuf::internal::MessageCreator::ZeroInit(sizeof(VariableUpdatesProto),
810 alignof(VariableUpdatesProto));
811}
813 return ::google::protobuf::internal::ClassDataFull{
814 ::google::protobuf::internal::ClassData{
816 &_table_.header,
817 nullptr, // OnDemandRegisterArenaDtor
818 nullptr, // IsInitialized
819 &VariableUpdatesProto::MergeImpl,
820 ::google::protobuf::Message::GetNewImpl<VariableUpdatesProto>(),
821#if defined(PROTOBUF_CUSTOM_VTABLE)
822 &VariableUpdatesProto::SharedDtor,
823 ::google::protobuf::Message::GetClearImpl<VariableUpdatesProto>(), &VariableUpdatesProto::ByteSizeLong,
825#endif // PROTOBUF_CUSTOM_VTABLE
826 PROTOBUF_FIELD_OFFSET(VariableUpdatesProto, _impl_._cached_size_),
827 false,
828 },
829 &VariableUpdatesProto::kDescriptorMethods,
831 nullptr, // tracker
832 };
833}
834
835PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 const
836 ::google::protobuf::internal::ClassDataFull VariableUpdatesProto_class_data_ =
838
839PROTOBUF_ATTRIBUTE_WEAK const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL
840VariableUpdatesProto::GetClassData() const {
841 ::google::protobuf::internal::PrefetchToLocalCache(&VariableUpdatesProto_class_data_);
842 ::google::protobuf::internal::PrefetchToLocalCache(VariableUpdatesProto_class_data_.tc_table);
844}
845PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1
846const ::_pbi::TcParseTable<2, 3, 3, 0, 2>
847VariableUpdatesProto::_table_ = {
848 {
849 PROTOBUF_FIELD_OFFSET(VariableUpdatesProto, _impl_._has_bits_),
850 0, // no _extensions_
851 3, 24, // max_field_number, fast_idx_mask
852 offsetof(decltype(_table_), field_lookup_table),
853 4294967288, // skipmap
854 offsetof(decltype(_table_), field_entries),
855 3, // num_field_entries
856 3, // num_aux_entries
857 offsetof(decltype(_table_), aux_entries),
859 nullptr, // post_loop_handler
860 ::_pbi::TcParser::GenericFallback, // fallback
861 #ifdef PROTOBUF_PREFETCH_PARSE_TABLE
862 ::_pbi::TcParser::GetTable<::operations_research::math_opt::VariableUpdatesProto>(), // to_prefetch
863 #endif // PROTOBUF_PREFETCH_PARSE_TABLE
864 }, {{
865 {::_pbi::TcParser::MiniParse, {}},
866 // .operations_research.math_opt.SparseDoubleVectorProto lower_bounds = 1;
867 {::_pbi::TcParser::FastMtS1,
868 {10, 0, 0,
869 PROTOBUF_FIELD_OFFSET(VariableUpdatesProto, _impl_.lower_bounds_)}},
870 // .operations_research.math_opt.SparseDoubleVectorProto upper_bounds = 2;
871 {::_pbi::TcParser::FastMtS1,
872 {18, 1, 1,
873 PROTOBUF_FIELD_OFFSET(VariableUpdatesProto, _impl_.upper_bounds_)}},
874 // .operations_research.math_opt.SparseBoolVectorProto integers = 3;
875 {::_pbi::TcParser::FastMtS1,
876 {26, 2, 2,
877 PROTOBUF_FIELD_OFFSET(VariableUpdatesProto, _impl_.integers_)}},
878 }}, {{
879 65535, 65535
880 }}, {{
881 // .operations_research.math_opt.SparseDoubleVectorProto lower_bounds = 1;
882 {PROTOBUF_FIELD_OFFSET(VariableUpdatesProto, _impl_.lower_bounds_), _Internal::kHasBitsOffset + 0, 0, (0 | ::_fl::kFcOptional | ::_fl::kMessage | ::_fl::kTvTable)},
883 // .operations_research.math_opt.SparseDoubleVectorProto upper_bounds = 2;
884 {PROTOBUF_FIELD_OFFSET(VariableUpdatesProto, _impl_.upper_bounds_), _Internal::kHasBitsOffset + 1, 1, (0 | ::_fl::kFcOptional | ::_fl::kMessage | ::_fl::kTvTable)},
885 // .operations_research.math_opt.SparseBoolVectorProto integers = 3;
886 {PROTOBUF_FIELD_OFFSET(VariableUpdatesProto, _impl_.integers_), _Internal::kHasBitsOffset + 2, 2, (0 | ::_fl::kFcOptional | ::_fl::kMessage | ::_fl::kTvTable)},
887 }},
888 {{
889 {::_pbi::TcParser::GetTable<::operations_research::math_opt::SparseDoubleVectorProto>()},
890 {::_pbi::TcParser::GetTable<::operations_research::math_opt::SparseDoubleVectorProto>()},
891 {::_pbi::TcParser::GetTable<::operations_research::math_opt::SparseBoolVectorProto>()},
892 }},
893 {{
894 }},
895};
896PROTOBUF_NOINLINE void VariableUpdatesProto::Clear() {
897// @@protoc_insertion_point(message_clear_start:operations_research.math_opt.VariableUpdatesProto)
898 ::google::protobuf::internal::TSanWrite(&_impl_);
899 ::uint32_t cached_has_bits = 0;
900 // Prevent compiler warnings about cached_has_bits being unused
901 (void) cached_has_bits;
902
903 cached_has_bits = _impl_._has_bits_[0];
904 if (BatchCheckHasBit(cached_has_bits, 0x00000007U)) {
905 if (CheckHasBit(cached_has_bits, 0x00000001U)) {
906 ABSL_DCHECK(_impl_.lower_bounds_ != nullptr);
907 _impl_.lower_bounds_->Clear();
908 }
909 if (CheckHasBit(cached_has_bits, 0x00000002U)) {
910 ABSL_DCHECK(_impl_.upper_bounds_ != nullptr);
911 _impl_.upper_bounds_->Clear();
912 }
913 if (CheckHasBit(cached_has_bits, 0x00000004U)) {
914 ABSL_DCHECK(_impl_.integers_ != nullptr);
915 _impl_.integers_->Clear();
916 }
917 }
918 _impl_._has_bits_.Clear();
919 _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>();
920}
921
922#if defined(PROTOBUF_CUSTOM_VTABLE)
923::uint8_t* PROTOBUF_NONNULL VariableUpdatesProto::_InternalSerialize(
924 const ::google::protobuf::MessageLite& base, ::uint8_t* PROTOBUF_NONNULL target,
925 ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) {
926 const VariableUpdatesProto& this_ = static_cast<const VariableUpdatesProto&>(base);
927#else // PROTOBUF_CUSTOM_VTABLE
928::uint8_t* PROTOBUF_NONNULL VariableUpdatesProto::_InternalSerialize(
929 ::uint8_t* PROTOBUF_NONNULL target,
930 ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const {
931 const VariableUpdatesProto& this_ = *this;
932#endif // PROTOBUF_CUSTOM_VTABLE
933 if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) {
934 this_.CheckHasBitConsistency();
935 }
936 // @@protoc_insertion_point(serialize_to_array_start:operations_research.math_opt.VariableUpdatesProto)
937 ::uint32_t cached_has_bits = 0;
938 (void)cached_has_bits;
939
940 cached_has_bits = this_._impl_._has_bits_[0];
941 // .operations_research.math_opt.SparseDoubleVectorProto lower_bounds = 1;
942 if (CheckHasBit(cached_has_bits, 0x00000001U)) {
943 target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage(
944 1, *this_._impl_.lower_bounds_, this_._impl_.lower_bounds_->GetCachedSize(), target,
945 stream);
946 }
947
948 // .operations_research.math_opt.SparseDoubleVectorProto upper_bounds = 2;
949 if (CheckHasBit(cached_has_bits, 0x00000002U)) {
950 target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage(
951 2, *this_._impl_.upper_bounds_, this_._impl_.upper_bounds_->GetCachedSize(), target,
952 stream);
953 }
954
955 // .operations_research.math_opt.SparseBoolVectorProto integers = 3;
956 if (CheckHasBit(cached_has_bits, 0x00000004U)) {
957 target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage(
958 3, *this_._impl_.integers_, this_._impl_.integers_->GetCachedSize(), target,
959 stream);
960 }
961
962 if (ABSL_PREDICT_FALSE(this_._internal_metadata_.have_unknown_fields())) {
963 target =
964 ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray(
965 this_._internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream);
966 }
967 // @@protoc_insertion_point(serialize_to_array_end:operations_research.math_opt.VariableUpdatesProto)
968 return target;
969}
970
971#if defined(PROTOBUF_CUSTOM_VTABLE)
973 const VariableUpdatesProto& this_ = static_cast<const VariableUpdatesProto&>(base);
974#else // PROTOBUF_CUSTOM_VTABLE
975::size_t VariableUpdatesProto::ByteSizeLong() const {
976 const VariableUpdatesProto& this_ = *this;
977#endif // PROTOBUF_CUSTOM_VTABLE
978 // @@protoc_insertion_point(message_byte_size_start:operations_research.math_opt.VariableUpdatesProto)
979 ::size_t total_size = 0;
980
981 ::uint32_t cached_has_bits = 0;
982 // Prevent compiler warnings about cached_has_bits being unused
983 (void)cached_has_bits;
984
985 ::_pbi::Prefetch5LinesFrom7Lines(&this_);
986 cached_has_bits = this_._impl_._has_bits_[0];
987 if (BatchCheckHasBit(cached_has_bits, 0x00000007U)) {
988 // .operations_research.math_opt.SparseDoubleVectorProto lower_bounds = 1;
989 if (CheckHasBit(cached_has_bits, 0x00000001U)) {
990 total_size += 1 +
991 ::google::protobuf::internal::WireFormatLite::MessageSize(*this_._impl_.lower_bounds_);
992 }
993 // .operations_research.math_opt.SparseDoubleVectorProto upper_bounds = 2;
994 if (CheckHasBit(cached_has_bits, 0x00000002U)) {
995 total_size += 1 +
996 ::google::protobuf::internal::WireFormatLite::MessageSize(*this_._impl_.upper_bounds_);
997 }
998 // .operations_research.math_opt.SparseBoolVectorProto integers = 3;
999 if (CheckHasBit(cached_has_bits, 0x00000004U)) {
1000 total_size += 1 +
1001 ::google::protobuf::internal::WireFormatLite::MessageSize(*this_._impl_.integers_);
1002 }
1003 }
1004 return this_.MaybeComputeUnknownFieldsSize(total_size,
1005 &this_._impl_._cached_size_);
1006}
1007
1008void VariableUpdatesProto::MergeImpl(::google::protobuf::MessageLite& to_msg,
1009 const ::google::protobuf::MessageLite& from_msg) {
1010 auto* const _this =
1011 static_cast<VariableUpdatesProto*>(&to_msg);
1012 auto& from = static_cast<const VariableUpdatesProto&>(from_msg);
1013 if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) {
1014 from.CheckHasBitConsistency();
1015 }
1016 ::google::protobuf::Arena* arena = _this->GetArena();
1017 // @@protoc_insertion_point(class_specific_merge_from_start:operations_research.math_opt.VariableUpdatesProto)
1018 ABSL_DCHECK_NE(&from, _this);
1019 ::uint32_t cached_has_bits = 0;
1020 (void)cached_has_bits;
1021
1022 cached_has_bits = from._impl_._has_bits_[0];
1023 if (BatchCheckHasBit(cached_has_bits, 0x00000007U)) {
1024 if (CheckHasBit(cached_has_bits, 0x00000001U)) {
1025 ABSL_DCHECK(from._impl_.lower_bounds_ != nullptr);
1026 if (_this->_impl_.lower_bounds_ == nullptr) {
1027 _this->_impl_.lower_bounds_ = ::google::protobuf::Message::CopyConstruct(arena, *from._impl_.lower_bounds_);
1028 } else {
1029 _this->_impl_.lower_bounds_->MergeFrom(*from._impl_.lower_bounds_);
1030 }
1031 }
1032 if (CheckHasBit(cached_has_bits, 0x00000002U)) {
1033 ABSL_DCHECK(from._impl_.upper_bounds_ != nullptr);
1034 if (_this->_impl_.upper_bounds_ == nullptr) {
1035 _this->_impl_.upper_bounds_ = ::google::protobuf::Message::CopyConstruct(arena, *from._impl_.upper_bounds_);
1036 } else {
1037 _this->_impl_.upper_bounds_->MergeFrom(*from._impl_.upper_bounds_);
1038 }
1039 }
1040 if (CheckHasBit(cached_has_bits, 0x00000004U)) {
1041 ABSL_DCHECK(from._impl_.integers_ != nullptr);
1042 if (_this->_impl_.integers_ == nullptr) {
1043 _this->_impl_.integers_ = ::google::protobuf::Message::CopyConstruct(arena, *from._impl_.integers_);
1044 } else {
1045 _this->_impl_.integers_->MergeFrom(*from._impl_.integers_);
1046 }
1047 }
1048 }
1049 _this->_impl_._has_bits_[0] |= cached_has_bits;
1050 _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(
1051 from._internal_metadata_);
1052}
1053
1055 // @@protoc_insertion_point(class_specific_copy_from_start:operations_research.math_opt.VariableUpdatesProto)
1056 if (&from == this) return;
1057 Clear();
1058 MergeFrom(from);
1059}
1060
1061
1062void VariableUpdatesProto::InternalSwap(VariableUpdatesProto* PROTOBUF_RESTRICT PROTOBUF_NONNULL other) {
1063 using ::std::swap;
1064 _internal_metadata_.InternalSwap(&other->_internal_metadata_);
1065 swap(_impl_._has_bits_[0], other->_impl_._has_bits_[0]);
1066 ::google::protobuf::internal::memswap<
1067 PROTOBUF_FIELD_OFFSET(VariableUpdatesProto, _impl_.integers_)
1068 + sizeof(VariableUpdatesProto::_impl_.integers_)
1069 - PROTOBUF_FIELD_OFFSET(VariableUpdatesProto, _impl_.lower_bounds_)>(
1070 reinterpret_cast<char*>(&_impl_.lower_bounds_),
1071 reinterpret_cast<char*>(&other->_impl_.lower_bounds_));
1072}
1073
1074::google::protobuf::Metadata VariableUpdatesProto::GetMetadata() const {
1075 return ::google::protobuf::Message::GetMetadataImpl(GetClassData()->full());
1076}
1077// ===================================================================
1078
1080 public:
1081 using HasBits =
1082 decltype(::std::declval<ObjectiveUpdatesProto>()._impl_._has_bits_);
1083 static constexpr ::int32_t kHasBitsOffset =
1084 8 * PROTOBUF_FIELD_OFFSET(ObjectiveUpdatesProto, _impl_._has_bits_);
1086
1088 ::google::protobuf::internal::TSanWrite(&_impl_);
1089 if (_impl_.linear_coefficients_ != nullptr) _impl_.linear_coefficients_->Clear();
1090 ClearHasBit(_impl_._has_bits_[0],
1091 0x00000001U);
1092}
1094 ::google::protobuf::internal::TSanWrite(&_impl_);
1095 if (_impl_.quadratic_coefficients_ != nullptr) _impl_.quadratic_coefficients_->Clear();
1096 ClearHasBit(_impl_._has_bits_[0],
1097 0x00000002U);
1098}
1099ObjectiveUpdatesProto::ObjectiveUpdatesProto(::google::protobuf::Arena* PROTOBUF_NULLABLE arena)
1100#if defined(PROTOBUF_CUSTOM_VTABLE)
1101 : ::google::protobuf::Message(arena, ObjectiveUpdatesProto_class_data_.base()) {
1102#else // PROTOBUF_CUSTOM_VTABLE
1103 : ::google::protobuf::Message(arena) {
1104#endif // PROTOBUF_CUSTOM_VTABLE
1105 SharedCtor(arena);
1106 // @@protoc_insertion_point(arena_constructor:operations_research.math_opt.ObjectiveUpdatesProto)
1107}
1108PROTOBUF_NDEBUG_INLINE ObjectiveUpdatesProto::Impl_::Impl_(
1109 [[maybe_unused]] ::google::protobuf::internal::InternalVisibility visibility,
1110 [[maybe_unused]] ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const Impl_& from,
1111 [[maybe_unused]] const ::operations_research::math_opt::ObjectiveUpdatesProto& from_msg)
1112 : _has_bits_{from._has_bits_},
1113 _cached_size_{0} {}
1114
1116 ::google::protobuf::Arena* PROTOBUF_NULLABLE arena,
1117 const ObjectiveUpdatesProto& from)
1118#if defined(PROTOBUF_CUSTOM_VTABLE)
1119 : ::google::protobuf::Message(arena, ObjectiveUpdatesProto_class_data_.base()) {
1120#else // PROTOBUF_CUSTOM_VTABLE
1121 : ::google::protobuf::Message(arena) {
1122#endif // PROTOBUF_CUSTOM_VTABLE
1123 ObjectiveUpdatesProto* const _this = this;
1124 (void)_this;
1125 _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(
1126 from._internal_metadata_);
1127 new (&_impl_) Impl_(internal_visibility(), arena, from._impl_, from);
1128 ::uint32_t cached_has_bits = _impl_._has_bits_[0];
1129 _impl_.linear_coefficients_ = (CheckHasBit(cached_has_bits, 0x00000001U))
1130 ? ::google::protobuf::Message::CopyConstruct(arena, *from._impl_.linear_coefficients_)
1131 : nullptr;
1132 _impl_.quadratic_coefficients_ = (CheckHasBit(cached_has_bits, 0x00000002U))
1133 ? ::google::protobuf::Message::CopyConstruct(arena, *from._impl_.quadratic_coefficients_)
1134 : nullptr;
1135 ::memcpy(reinterpret_cast<char*>(&_impl_) +
1136 offsetof(Impl_, offset_update_),
1137 reinterpret_cast<const char*>(&from._impl_) +
1138 offsetof(Impl_, offset_update_),
1139 offsetof(Impl_, direction_update_) -
1140 offsetof(Impl_, offset_update_) +
1141 sizeof(Impl_::direction_update_));
1142
1143 // @@protoc_insertion_point(copy_constructor:operations_research.math_opt.ObjectiveUpdatesProto)
1144}
1145PROTOBUF_NDEBUG_INLINE ObjectiveUpdatesProto::Impl_::Impl_(
1146 [[maybe_unused]] ::google::protobuf::internal::InternalVisibility visibility,
1147 [[maybe_unused]] ::google::protobuf::Arena* PROTOBUF_NULLABLE arena)
1148 : _cached_size_{0} {}
1149
1150inline void ObjectiveUpdatesProto::SharedCtor(::_pb::Arena* PROTOBUF_NULLABLE arena) {
1151 new (&_impl_) Impl_(internal_visibility(), arena);
1152 ::memset(reinterpret_cast<char*>(&_impl_) +
1153 offsetof(Impl_, linear_coefficients_),
1154 0,
1155 offsetof(Impl_, direction_update_) -
1156 offsetof(Impl_, linear_coefficients_) +
1157 sizeof(Impl_::direction_update_));
1158}
1160 // @@protoc_insertion_point(destructor:operations_research.math_opt.ObjectiveUpdatesProto)
1161 SharedDtor(*this);
1162}
1163inline void ObjectiveUpdatesProto::SharedDtor(MessageLite& self) {
1164 ObjectiveUpdatesProto& this_ = static_cast<ObjectiveUpdatesProto&>(self);
1165 if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) {
1166 this_.CheckHasBitConsistency();
1167 }
1168 this_._internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>();
1169 ABSL_DCHECK(this_.GetArena() == nullptr);
1170 delete this_._impl_.linear_coefficients_;
1171 delete this_._impl_.quadratic_coefficients_;
1172 this_._impl_.~Impl_();
1173}
1174
1175inline void* PROTOBUF_NONNULL ObjectiveUpdatesProto::PlacementNew_(
1176 const void* PROTOBUF_NONNULL, void* PROTOBUF_NONNULL mem,
1177 ::google::protobuf::Arena* PROTOBUF_NULLABLE arena) {
1178 return ::new (mem) ObjectiveUpdatesProto(arena);
1179}
1180constexpr auto ObjectiveUpdatesProto::InternalNewImpl_() {
1181 return ::google::protobuf::internal::MessageCreator::ZeroInit(sizeof(ObjectiveUpdatesProto),
1182 alignof(ObjectiveUpdatesProto));
1183}
1185 return ::google::protobuf::internal::ClassDataFull{
1186 ::google::protobuf::internal::ClassData{
1188 &_table_.header,
1189 nullptr, // OnDemandRegisterArenaDtor
1190 nullptr, // IsInitialized
1191 &ObjectiveUpdatesProto::MergeImpl,
1192 ::google::protobuf::Message::GetNewImpl<ObjectiveUpdatesProto>(),
1193#if defined(PROTOBUF_CUSTOM_VTABLE)
1194 &ObjectiveUpdatesProto::SharedDtor,
1195 ::google::protobuf::Message::GetClearImpl<ObjectiveUpdatesProto>(), &ObjectiveUpdatesProto::ByteSizeLong,
1197#endif // PROTOBUF_CUSTOM_VTABLE
1198 PROTOBUF_FIELD_OFFSET(ObjectiveUpdatesProto, _impl_._cached_size_),
1199 false,
1200 },
1201 &ObjectiveUpdatesProto::kDescriptorMethods,
1203 nullptr, // tracker
1204 };
1205}
1206
1207PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 const
1208 ::google::protobuf::internal::ClassDataFull ObjectiveUpdatesProto_class_data_ =
1211PROTOBUF_ATTRIBUTE_WEAK const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL
1212ObjectiveUpdatesProto::GetClassData() const {
1213 ::google::protobuf::internal::PrefetchToLocalCache(&ObjectiveUpdatesProto_class_data_);
1214 ::google::protobuf::internal::PrefetchToLocalCache(ObjectiveUpdatesProto_class_data_.tc_table);
1216}
1217PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1
1218const ::_pbi::TcParseTable<3, 5, 2, 0, 2>
1219ObjectiveUpdatesProto::_table_ = {
1220 {
1221 PROTOBUF_FIELD_OFFSET(ObjectiveUpdatesProto, _impl_._has_bits_),
1222 0, // no _extensions_
1223 5, 56, // max_field_number, fast_idx_mask
1224 offsetof(decltype(_table_), field_lookup_table),
1225 4294967264, // skipmap
1226 offsetof(decltype(_table_), field_entries),
1227 5, // num_field_entries
1228 2, // num_aux_entries
1229 offsetof(decltype(_table_), aux_entries),
1231 nullptr, // post_loop_handler
1232 ::_pbi::TcParser::GenericFallback, // fallback
1233 #ifdef PROTOBUF_PREFETCH_PARSE_TABLE
1234 ::_pbi::TcParser::GetTable<::operations_research::math_opt::ObjectiveUpdatesProto>(), // to_prefetch
1235 #endif // PROTOBUF_PREFETCH_PARSE_TABLE
1236 }, {{
1237 {::_pbi::TcParser::MiniParse, {}},
1238 // optional bool direction_update = 1;
1239 {::_pbi::TcParser::SingularVarintNoZag1<bool, offsetof(ObjectiveUpdatesProto, _impl_.direction_update_), 4>(),
1240 {8, 4, 0,
1241 PROTOBUF_FIELD_OFFSET(ObjectiveUpdatesProto, _impl_.direction_update_)}},
1242 // optional double offset_update = 2;
1243 {::_pbi::TcParser::FastF64S1,
1244 {17, 2, 0,
1245 PROTOBUF_FIELD_OFFSET(ObjectiveUpdatesProto, _impl_.offset_update_)}},
1246 // .operations_research.math_opt.SparseDoubleVectorProto linear_coefficients = 3;
1247 {::_pbi::TcParser::FastMtS1,
1248 {26, 0, 0,
1249 PROTOBUF_FIELD_OFFSET(ObjectiveUpdatesProto, _impl_.linear_coefficients_)}},
1250 // .operations_research.math_opt.SparseDoubleMatrixProto quadratic_coefficients = 4;
1251 {::_pbi::TcParser::FastMtS1,
1252 {34, 1, 1,
1253 PROTOBUF_FIELD_OFFSET(ObjectiveUpdatesProto, _impl_.quadratic_coefficients_)}},
1254 // optional int64 priority_update = 5;
1255 {::_pbi::TcParser::SingularVarintNoZag1<::uint64_t, offsetof(ObjectiveUpdatesProto, _impl_.priority_update_), 3>(),
1256 {40, 3, 0,
1257 PROTOBUF_FIELD_OFFSET(ObjectiveUpdatesProto, _impl_.priority_update_)}},
1258 {::_pbi::TcParser::MiniParse, {}},
1259 {::_pbi::TcParser::MiniParse, {}},
1260 }}, {{
1261 65535, 65535
1262 }}, {{
1263 // optional bool direction_update = 1;
1264 {PROTOBUF_FIELD_OFFSET(ObjectiveUpdatesProto, _impl_.direction_update_), _Internal::kHasBitsOffset + 4, 0, (0 | ::_fl::kFcOptional | ::_fl::kBool)},
1265 // optional double offset_update = 2;
1266 {PROTOBUF_FIELD_OFFSET(ObjectiveUpdatesProto, _impl_.offset_update_), _Internal::kHasBitsOffset + 2, 0, (0 | ::_fl::kFcOptional | ::_fl::kDouble)},
1267 // .operations_research.math_opt.SparseDoubleVectorProto linear_coefficients = 3;
1268 {PROTOBUF_FIELD_OFFSET(ObjectiveUpdatesProto, _impl_.linear_coefficients_), _Internal::kHasBitsOffset + 0, 0, (0 | ::_fl::kFcOptional | ::_fl::kMessage | ::_fl::kTvTable)},
1269 // .operations_research.math_opt.SparseDoubleMatrixProto quadratic_coefficients = 4;
1270 {PROTOBUF_FIELD_OFFSET(ObjectiveUpdatesProto, _impl_.quadratic_coefficients_), _Internal::kHasBitsOffset + 1, 1, (0 | ::_fl::kFcOptional | ::_fl::kMessage | ::_fl::kTvTable)},
1271 // optional int64 priority_update = 5;
1272 {PROTOBUF_FIELD_OFFSET(ObjectiveUpdatesProto, _impl_.priority_update_), _Internal::kHasBitsOffset + 3, 0, (0 | ::_fl::kFcOptional | ::_fl::kInt64)},
1273 }},
1274 {{
1275 {::_pbi::TcParser::GetTable<::operations_research::math_opt::SparseDoubleVectorProto>()},
1276 {::_pbi::TcParser::GetTable<::operations_research::math_opt::SparseDoubleMatrixProto>()},
1277 }},
1278 {{
1279 }},
1280};
1281PROTOBUF_NOINLINE void ObjectiveUpdatesProto::Clear() {
1282// @@protoc_insertion_point(message_clear_start:operations_research.math_opt.ObjectiveUpdatesProto)
1283 ::google::protobuf::internal::TSanWrite(&_impl_);
1284 ::uint32_t cached_has_bits = 0;
1285 // Prevent compiler warnings about cached_has_bits being unused
1286 (void) cached_has_bits;
1287
1288 cached_has_bits = _impl_._has_bits_[0];
1289 if (BatchCheckHasBit(cached_has_bits, 0x00000003U)) {
1290 if (CheckHasBit(cached_has_bits, 0x00000001U)) {
1291 ABSL_DCHECK(_impl_.linear_coefficients_ != nullptr);
1292 _impl_.linear_coefficients_->Clear();
1293 }
1294 if (CheckHasBit(cached_has_bits, 0x00000002U)) {
1295 ABSL_DCHECK(_impl_.quadratic_coefficients_ != nullptr);
1296 _impl_.quadratic_coefficients_->Clear();
1297 }
1298 }
1299 if (BatchCheckHasBit(cached_has_bits, 0x0000001cU)) {
1300 ::memset(&_impl_.offset_update_, 0, static_cast<::size_t>(
1301 reinterpret_cast<char*>(&_impl_.direction_update_) -
1302 reinterpret_cast<char*>(&_impl_.offset_update_)) + sizeof(_impl_.direction_update_));
1303 }
1304 _impl_._has_bits_.Clear();
1305 _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>();
1306}
1307
1308#if defined(PROTOBUF_CUSTOM_VTABLE)
1309::uint8_t* PROTOBUF_NONNULL ObjectiveUpdatesProto::_InternalSerialize(
1310 const ::google::protobuf::MessageLite& base, ::uint8_t* PROTOBUF_NONNULL target,
1311 ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) {
1312 const ObjectiveUpdatesProto& this_ = static_cast<const ObjectiveUpdatesProto&>(base);
1313#else // PROTOBUF_CUSTOM_VTABLE
1314::uint8_t* PROTOBUF_NONNULL ObjectiveUpdatesProto::_InternalSerialize(
1315 ::uint8_t* PROTOBUF_NONNULL target,
1316 ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const {
1317 const ObjectiveUpdatesProto& this_ = *this;
1318#endif // PROTOBUF_CUSTOM_VTABLE
1319 if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) {
1320 this_.CheckHasBitConsistency();
1321 }
1322 // @@protoc_insertion_point(serialize_to_array_start:operations_research.math_opt.ObjectiveUpdatesProto)
1323 ::uint32_t cached_has_bits = 0;
1324 (void)cached_has_bits;
1325
1326 cached_has_bits = this_._impl_._has_bits_[0];
1327 // optional bool direction_update = 1;
1328 if (CheckHasBit(cached_has_bits, 0x00000010U)) {
1329 target = stream->EnsureSpace(target);
1330 target = ::_pbi::WireFormatLite::WriteBoolToArray(
1331 1, this_._internal_direction_update(), target);
1332 }
1333
1334 // optional double offset_update = 2;
1335 if (CheckHasBit(cached_has_bits, 0x00000004U)) {
1336 target = stream->EnsureSpace(target);
1337 target = ::_pbi::WireFormatLite::WriteDoubleToArray(
1338 2, this_._internal_offset_update(), target);
1339 }
1340
1341 // .operations_research.math_opt.SparseDoubleVectorProto linear_coefficients = 3;
1342 if (CheckHasBit(cached_has_bits, 0x00000001U)) {
1343 target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage(
1344 3, *this_._impl_.linear_coefficients_, this_._impl_.linear_coefficients_->GetCachedSize(), target,
1345 stream);
1346 }
1347
1348 // .operations_research.math_opt.SparseDoubleMatrixProto quadratic_coefficients = 4;
1349 if (CheckHasBit(cached_has_bits, 0x00000002U)) {
1350 target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage(
1351 4, *this_._impl_.quadratic_coefficients_, this_._impl_.quadratic_coefficients_->GetCachedSize(), target,
1352 stream);
1353 }
1354
1355 // optional int64 priority_update = 5;
1356 if (CheckHasBit(cached_has_bits, 0x00000008U)) {
1357 target =
1358 ::google::protobuf::internal::WireFormatLite::WriteInt64ToArrayWithField<5>(
1359 stream, this_._internal_priority_update(), target);
1360 }
1361
1362 if (ABSL_PREDICT_FALSE(this_._internal_metadata_.have_unknown_fields())) {
1363 target =
1364 ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray(
1365 this_._internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream);
1366 }
1367 // @@protoc_insertion_point(serialize_to_array_end:operations_research.math_opt.ObjectiveUpdatesProto)
1368 return target;
1369}
1370
1371#if defined(PROTOBUF_CUSTOM_VTABLE)
1373 const ObjectiveUpdatesProto& this_ = static_cast<const ObjectiveUpdatesProto&>(base);
1374#else // PROTOBUF_CUSTOM_VTABLE
1375::size_t ObjectiveUpdatesProto::ByteSizeLong() const {
1376 const ObjectiveUpdatesProto& this_ = *this;
1377#endif // PROTOBUF_CUSTOM_VTABLE
1378 // @@protoc_insertion_point(message_byte_size_start:operations_research.math_opt.ObjectiveUpdatesProto)
1379 ::size_t total_size = 0;
1380
1381 ::uint32_t cached_has_bits = 0;
1382 // Prevent compiler warnings about cached_has_bits being unused
1383 (void)cached_has_bits;
1384
1385 ::_pbi::Prefetch5LinesFrom7Lines(&this_);
1386 cached_has_bits = this_._impl_._has_bits_[0];
1387 total_size += static_cast<bool>(0x00000004U & cached_has_bits) * 9;
1388 total_size += static_cast<bool>(0x00000010U & cached_has_bits) * 2;
1389 if (BatchCheckHasBit(cached_has_bits, 0x0000000bU)) {
1390 // .operations_research.math_opt.SparseDoubleVectorProto linear_coefficients = 3;
1391 if (CheckHasBit(cached_has_bits, 0x00000001U)) {
1392 total_size += 1 +
1393 ::google::protobuf::internal::WireFormatLite::MessageSize(*this_._impl_.linear_coefficients_);
1394 }
1395 // .operations_research.math_opt.SparseDoubleMatrixProto quadratic_coefficients = 4;
1396 if (CheckHasBit(cached_has_bits, 0x00000002U)) {
1397 total_size += 1 +
1398 ::google::protobuf::internal::WireFormatLite::MessageSize(*this_._impl_.quadratic_coefficients_);
1399 }
1400 // optional int64 priority_update = 5;
1401 if (CheckHasBit(cached_has_bits, 0x00000008U)) {
1402 total_size += ::_pbi::WireFormatLite::Int64SizePlusOne(
1403 this_._internal_priority_update());
1404 }
1405 }
1406 return this_.MaybeComputeUnknownFieldsSize(total_size,
1407 &this_._impl_._cached_size_);
1408}
1409
1410void ObjectiveUpdatesProto::MergeImpl(::google::protobuf::MessageLite& to_msg,
1411 const ::google::protobuf::MessageLite& from_msg) {
1412 auto* const _this =
1413 static_cast<ObjectiveUpdatesProto*>(&to_msg);
1414 auto& from = static_cast<const ObjectiveUpdatesProto&>(from_msg);
1415 if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) {
1416 from.CheckHasBitConsistency();
1417 }
1418 ::google::protobuf::Arena* arena = _this->GetArena();
1419 // @@protoc_insertion_point(class_specific_merge_from_start:operations_research.math_opt.ObjectiveUpdatesProto)
1420 ABSL_DCHECK_NE(&from, _this);
1421 ::uint32_t cached_has_bits = 0;
1422 (void)cached_has_bits;
1423
1424 cached_has_bits = from._impl_._has_bits_[0];
1425 if (BatchCheckHasBit(cached_has_bits, 0x0000001fU)) {
1426 if (CheckHasBit(cached_has_bits, 0x00000001U)) {
1427 ABSL_DCHECK(from._impl_.linear_coefficients_ != nullptr);
1428 if (_this->_impl_.linear_coefficients_ == nullptr) {
1429 _this->_impl_.linear_coefficients_ = ::google::protobuf::Message::CopyConstruct(arena, *from._impl_.linear_coefficients_);
1430 } else {
1431 _this->_impl_.linear_coefficients_->MergeFrom(*from._impl_.linear_coefficients_);
1432 }
1433 }
1434 if (CheckHasBit(cached_has_bits, 0x00000002U)) {
1435 ABSL_DCHECK(from._impl_.quadratic_coefficients_ != nullptr);
1436 if (_this->_impl_.quadratic_coefficients_ == nullptr) {
1437 _this->_impl_.quadratic_coefficients_ = ::google::protobuf::Message::CopyConstruct(arena, *from._impl_.quadratic_coefficients_);
1438 } else {
1439 _this->_impl_.quadratic_coefficients_->MergeFrom(*from._impl_.quadratic_coefficients_);
1440 }
1441 }
1442 if (CheckHasBit(cached_has_bits, 0x00000004U)) {
1443 _this->_impl_.offset_update_ = from._impl_.offset_update_;
1444 }
1445 if (CheckHasBit(cached_has_bits, 0x00000008U)) {
1446 _this->_impl_.priority_update_ = from._impl_.priority_update_;
1447 }
1448 if (CheckHasBit(cached_has_bits, 0x00000010U)) {
1449 _this->_impl_.direction_update_ = from._impl_.direction_update_;
1450 }
1451 }
1452 _this->_impl_._has_bits_[0] |= cached_has_bits;
1453 _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(
1454 from._internal_metadata_);
1455}
1456
1458 // @@protoc_insertion_point(class_specific_copy_from_start:operations_research.math_opt.ObjectiveUpdatesProto)
1459 if (&from == this) return;
1460 Clear();
1461 MergeFrom(from);
1462}
1463
1464
1465void ObjectiveUpdatesProto::InternalSwap(ObjectiveUpdatesProto* PROTOBUF_RESTRICT PROTOBUF_NONNULL other) {
1466 using ::std::swap;
1467 _internal_metadata_.InternalSwap(&other->_internal_metadata_);
1468 swap(_impl_._has_bits_[0], other->_impl_._has_bits_[0]);
1469 ::google::protobuf::internal::memswap<
1470 PROTOBUF_FIELD_OFFSET(ObjectiveUpdatesProto, _impl_.direction_update_)
1471 + sizeof(ObjectiveUpdatesProto::_impl_.direction_update_)
1472 - PROTOBUF_FIELD_OFFSET(ObjectiveUpdatesProto, _impl_.linear_coefficients_)>(
1473 reinterpret_cast<char*>(&_impl_.linear_coefficients_),
1474 reinterpret_cast<char*>(&other->_impl_.linear_coefficients_));
1475}
1476
1477::google::protobuf::Metadata ObjectiveUpdatesProto::GetMetadata() const {
1478 return ::google::protobuf::Message::GetMetadataImpl(GetClassData()->full());
1480// ===================================================================
1481
1482#if defined(PROTOBUF_CUSTOM_VTABLE)
1487#else // PROTOBUF_CUSTOM_VTABLE
1490#endif // PROTOBUF_CUSTOM_VTABLE
1491inline void* PROTOBUF_NONNULL AuxiliaryObjectivesUpdatesProto_NewObjectivesEntry_DoNotUse::PlacementNew_(
1492 const void* PROTOBUF_NONNULL, void* PROTOBUF_NONNULL mem,
1493 ::google::protobuf::Arena* PROTOBUF_NULLABLE arena) {
1495}
1496constexpr auto AuxiliaryObjectivesUpdatesProto_NewObjectivesEntry_DoNotUse::InternalNewImpl_() {
1497 return ::google::protobuf::internal::MessageCreator::ZeroInit(sizeof(AuxiliaryObjectivesUpdatesProto_NewObjectivesEntry_DoNotUse),
1499}
1501 return ::google::protobuf::internal::ClassDataFull{
1502 ::google::protobuf::internal::ClassData{
1504 &_table_.header,
1505 nullptr, // OnDemandRegisterArenaDtor
1506 nullptr, // IsInitialized
1507 &AuxiliaryObjectivesUpdatesProto_NewObjectivesEntry_DoNotUse::MergeImpl,
1508 ::google::protobuf::Message::GetNewImpl<AuxiliaryObjectivesUpdatesProto_NewObjectivesEntry_DoNotUse>(),
1509#if defined(PROTOBUF_CUSTOM_VTABLE)
1510 &AuxiliaryObjectivesUpdatesProto_NewObjectivesEntry_DoNotUse::SharedDtor,
1511 static_cast<void (::google::protobuf::MessageLite::*)()>(&AuxiliaryObjectivesUpdatesProto_NewObjectivesEntry_DoNotUse::ClearImpl),
1512 ::google::protobuf::Message::ByteSizeLongImpl, ::google::protobuf::Message::_InternalSerializeImpl
1513 ,
1514#endif // PROTOBUF_CUSTOM_VTABLE
1515 PROTOBUF_FIELD_OFFSET(AuxiliaryObjectivesUpdatesProto_NewObjectivesEntry_DoNotUse, _impl_._cached_size_),
1516 false,
1517 },
1518 &AuxiliaryObjectivesUpdatesProto_NewObjectivesEntry_DoNotUse::kDescriptorMethods,
1520 nullptr, // tracker
1521 };
1522}
1523
1524PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 const
1525 ::google::protobuf::internal::ClassDataFull AuxiliaryObjectivesUpdatesProto_NewObjectivesEntry_DoNotUse_class_data_ =
1527
1528PROTOBUF_ATTRIBUTE_WEAK const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL
1529AuxiliaryObjectivesUpdatesProto_NewObjectivesEntry_DoNotUse::GetClassData() const {
1530 ::google::protobuf::internal::PrefetchToLocalCache(&AuxiliaryObjectivesUpdatesProto_NewObjectivesEntry_DoNotUse_class_data_);
1531 ::google::protobuf::internal::PrefetchToLocalCache(AuxiliaryObjectivesUpdatesProto_NewObjectivesEntry_DoNotUse_class_data_.tc_table);
1533}
1534PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1
1535const ::_pbi::TcParseTable<1, 2, 1, 0, 2>
1536AuxiliaryObjectivesUpdatesProto_NewObjectivesEntry_DoNotUse::_table_ = {
1537 {
1538 PROTOBUF_FIELD_OFFSET(AuxiliaryObjectivesUpdatesProto_NewObjectivesEntry_DoNotUse, _impl_._has_bits_),
1539 0, // no _extensions_
1540 2, 8, // max_field_number, fast_idx_mask
1541 offsetof(decltype(_table_), field_lookup_table),
1542 4294967292, // skipmap
1543 offsetof(decltype(_table_), field_entries),
1544 2, // num_field_entries
1545 1, // num_aux_entries
1546 offsetof(decltype(_table_), aux_entries),
1548 nullptr, // post_loop_handler
1549 ::_pbi::TcParser::DiscardEverythingFallback, // fallback
1550 #ifdef PROTOBUF_PREFETCH_PARSE_TABLE
1551 ::_pbi::TcParser::GetTable<::operations_research::math_opt::AuxiliaryObjectivesUpdatesProto_NewObjectivesEntry_DoNotUse>(), // to_prefetch
1552 #endif // PROTOBUF_PREFETCH_PARSE_TABLE
1553 }, {{
1554 // .operations_research.math_opt.ObjectiveProto value = 2;
1555 {::_pbi::TcParser::FastMtS1,
1556 {18, 0, 0,
1557 PROTOBUF_FIELD_OFFSET(AuxiliaryObjectivesUpdatesProto_NewObjectivesEntry_DoNotUse, _impl_.value_)}},
1558 // int64 key = 1;
1559 {::_pbi::TcParser::SingularVarintNoZag1<::uint64_t, offsetof(AuxiliaryObjectivesUpdatesProto_NewObjectivesEntry_DoNotUse, _impl_.key_), 1>(),
1560 {8, 1, 0,
1561 PROTOBUF_FIELD_OFFSET(AuxiliaryObjectivesUpdatesProto_NewObjectivesEntry_DoNotUse, _impl_.key_)}},
1562 }}, {{
1563 65535, 65535
1564 }}, {{
1565 // int64 key = 1;
1566 {PROTOBUF_FIELD_OFFSET(AuxiliaryObjectivesUpdatesProto_NewObjectivesEntry_DoNotUse, _impl_.key_), _Internal::kHasBitsOffset + 1, 0, (0 | ::_fl::kFcOptional | ::_fl::kInt64)},
1567 // .operations_research.math_opt.ObjectiveProto value = 2;
1568 {PROTOBUF_FIELD_OFFSET(AuxiliaryObjectivesUpdatesProto_NewObjectivesEntry_DoNotUse, _impl_.value_), _Internal::kHasBitsOffset + 0, 0, (0 | ::_fl::kFcOptional | ::_fl::kMessage | ::_fl::kTvTable)},
1569 }},
1570 {{
1571 {::_pbi::TcParser::GetTable<::operations_research::math_opt::ObjectiveProto>()},
1572 }},
1573 {{
1574 }},
1575};
1576// ===================================================================
1577
1578#if defined(PROTOBUF_CUSTOM_VTABLE)
1581AuxiliaryObjectivesUpdatesProto_ObjectiveUpdatesEntry_DoNotUse::AuxiliaryObjectivesUpdatesProto_ObjectiveUpdatesEntry_DoNotUse(::google::protobuf::Arena* PROTOBUF_NULLABLE arena)
1583#else // PROTOBUF_CUSTOM_VTABLE
1584AuxiliaryObjectivesUpdatesProto_ObjectiveUpdatesEntry_DoNotUse::AuxiliaryObjectivesUpdatesProto_ObjectiveUpdatesEntry_DoNotUse() : SuperType() {}
1585AuxiliaryObjectivesUpdatesProto_ObjectiveUpdatesEntry_DoNotUse::AuxiliaryObjectivesUpdatesProto_ObjectiveUpdatesEntry_DoNotUse(::google::protobuf::Arena* PROTOBUF_NULLABLE arena) : SuperType(arena) {}
1586#endif // PROTOBUF_CUSTOM_VTABLE
1587inline void* PROTOBUF_NONNULL AuxiliaryObjectivesUpdatesProto_ObjectiveUpdatesEntry_DoNotUse::PlacementNew_(
1588 const void* PROTOBUF_NONNULL, void* PROTOBUF_NONNULL mem,
1589 ::google::protobuf::Arena* PROTOBUF_NULLABLE arena) {
1591}
1592constexpr auto AuxiliaryObjectivesUpdatesProto_ObjectiveUpdatesEntry_DoNotUse::InternalNewImpl_() {
1593 return ::google::protobuf::internal::MessageCreator::ZeroInit(sizeof(AuxiliaryObjectivesUpdatesProto_ObjectiveUpdatesEntry_DoNotUse),
1595}
1596constexpr auto AuxiliaryObjectivesUpdatesProto_ObjectiveUpdatesEntry_DoNotUse::InternalGenerateClassData_() {
1597 return ::google::protobuf::internal::ClassDataFull{
1598 ::google::protobuf::internal::ClassData{
1599 &_AuxiliaryObjectivesUpdatesProto_ObjectiveUpdatesEntry_DoNotUse_default_instance_._instance,
1600 &_table_.header,
1601 nullptr, // OnDemandRegisterArenaDtor
1602 nullptr, // IsInitialized
1603 &AuxiliaryObjectivesUpdatesProto_ObjectiveUpdatesEntry_DoNotUse::MergeImpl,
1604 ::google::protobuf::Message::GetNewImpl<AuxiliaryObjectivesUpdatesProto_ObjectiveUpdatesEntry_DoNotUse>(),
1605#if defined(PROTOBUF_CUSTOM_VTABLE)
1606 &AuxiliaryObjectivesUpdatesProto_ObjectiveUpdatesEntry_DoNotUse::SharedDtor,
1607 static_cast<void (::google::protobuf::MessageLite::*)()>(&AuxiliaryObjectivesUpdatesProto_ObjectiveUpdatesEntry_DoNotUse::ClearImpl),
1608 ::google::protobuf::Message::ByteSizeLongImpl, ::google::protobuf::Message::_InternalSerializeImpl
1609 ,
1610#endif // PROTOBUF_CUSTOM_VTABLE
1611 PROTOBUF_FIELD_OFFSET(AuxiliaryObjectivesUpdatesProto_ObjectiveUpdatesEntry_DoNotUse, _impl_._cached_size_),
1612 false,
1613 },
1614 &AuxiliaryObjectivesUpdatesProto_ObjectiveUpdatesEntry_DoNotUse::kDescriptorMethods,
1616 nullptr, // tracker
1617 };
1618}
1619
1620PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 const
1621 ::google::protobuf::internal::ClassDataFull AuxiliaryObjectivesUpdatesProto_ObjectiveUpdatesEntry_DoNotUse_class_data_ =
1622 AuxiliaryObjectivesUpdatesProto_ObjectiveUpdatesEntry_DoNotUse::InternalGenerateClassData_();
1623
1624PROTOBUF_ATTRIBUTE_WEAK const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL
1625AuxiliaryObjectivesUpdatesProto_ObjectiveUpdatesEntry_DoNotUse::GetClassData() const {
1626 ::google::protobuf::internal::PrefetchToLocalCache(&AuxiliaryObjectivesUpdatesProto_ObjectiveUpdatesEntry_DoNotUse_class_data_);
1627 ::google::protobuf::internal::PrefetchToLocalCache(AuxiliaryObjectivesUpdatesProto_ObjectiveUpdatesEntry_DoNotUse_class_data_.tc_table);
1629}
1630PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1
1631const ::_pbi::TcParseTable<1, 2, 1, 0, 2>
1632AuxiliaryObjectivesUpdatesProto_ObjectiveUpdatesEntry_DoNotUse::_table_ = {
1633 {
1634 PROTOBUF_FIELD_OFFSET(AuxiliaryObjectivesUpdatesProto_ObjectiveUpdatesEntry_DoNotUse, _impl_._has_bits_),
1635 0, // no _extensions_
1636 2, 8, // max_field_number, fast_idx_mask
1637 offsetof(decltype(_table_), field_lookup_table),
1638 4294967292, // skipmap
1639 offsetof(decltype(_table_), field_entries),
1640 2, // num_field_entries
1641 1, // num_aux_entries
1642 offsetof(decltype(_table_), aux_entries),
1643 AuxiliaryObjectivesUpdatesProto_ObjectiveUpdatesEntry_DoNotUse_class_data_.base(),
1644 nullptr, // post_loop_handler
1645 ::_pbi::TcParser::DiscardEverythingFallback, // fallback
1646 #ifdef PROTOBUF_PREFETCH_PARSE_TABLE
1647 ::_pbi::TcParser::GetTable<::operations_research::math_opt::AuxiliaryObjectivesUpdatesProto_ObjectiveUpdatesEntry_DoNotUse>(), // to_prefetch
1648 #endif // PROTOBUF_PREFETCH_PARSE_TABLE
1649 }, {{
1650 // .operations_research.math_opt.ObjectiveUpdatesProto value = 2;
1651 {::_pbi::TcParser::FastMtS1,
1652 {18, 0, 0,
1653 PROTOBUF_FIELD_OFFSET(AuxiliaryObjectivesUpdatesProto_ObjectiveUpdatesEntry_DoNotUse, _impl_.value_)}},
1654 // int64 key = 1;
1655 {::_pbi::TcParser::SingularVarintNoZag1<::uint64_t, offsetof(AuxiliaryObjectivesUpdatesProto_ObjectiveUpdatesEntry_DoNotUse, _impl_.key_), 1>(),
1656 {8, 1, 0,
1657 PROTOBUF_FIELD_OFFSET(AuxiliaryObjectivesUpdatesProto_ObjectiveUpdatesEntry_DoNotUse, _impl_.key_)}},
1658 }}, {{
1659 65535, 65535
1660 }}, {{
1661 // int64 key = 1;
1662 {PROTOBUF_FIELD_OFFSET(AuxiliaryObjectivesUpdatesProto_ObjectiveUpdatesEntry_DoNotUse, _impl_.key_), _Internal::kHasBitsOffset + 1, 0, (0 | ::_fl::kFcOptional | ::_fl::kInt64)},
1663 // .operations_research.math_opt.ObjectiveUpdatesProto value = 2;
1664 {PROTOBUF_FIELD_OFFSET(AuxiliaryObjectivesUpdatesProto_ObjectiveUpdatesEntry_DoNotUse, _impl_.value_), _Internal::kHasBitsOffset + 0, 0, (0 | ::_fl::kFcOptional | ::_fl::kMessage | ::_fl::kTvTable)},
1665 }},
1666 {{
1667 {::_pbi::TcParser::GetTable<::operations_research::math_opt::ObjectiveUpdatesProto>()},
1668 }},
1669 {{
1670 }},
1671};
1672// ===================================================================
1673
1674class AuxiliaryObjectivesUpdatesProto::_Internal {
1675 public:
1676 using HasBits =
1677 decltype(::std::declval<AuxiliaryObjectivesUpdatesProto>()._impl_._has_bits_);
1678 static constexpr ::int32_t kHasBitsOffset =
1679 8 * PROTOBUF_FIELD_OFFSET(AuxiliaryObjectivesUpdatesProto, _impl_._has_bits_);
1680};
1683 ::google::protobuf::internal::TSanWrite(&_impl_);
1684 _impl_.new_objectives_.Clear();
1685 ClearHasBitForRepeated(_impl_._has_bits_[0],
1686 0x00000002U);
1688AuxiliaryObjectivesUpdatesProto::AuxiliaryObjectivesUpdatesProto(::google::protobuf::Arena* PROTOBUF_NULLABLE arena)
1689#if defined(PROTOBUF_CUSTOM_VTABLE)
1690 : ::google::protobuf::Message(arena, AuxiliaryObjectivesUpdatesProto_class_data_.base()) {
1691#else // PROTOBUF_CUSTOM_VTABLE
1692 : ::google::protobuf::Message(arena) {
1693#endif // PROTOBUF_CUSTOM_VTABLE
1694 SharedCtor(arena);
1695 // @@protoc_insertion_point(arena_constructor:operations_research.math_opt.AuxiliaryObjectivesUpdatesProto)
1696}
1697PROTOBUF_NDEBUG_INLINE AuxiliaryObjectivesUpdatesProto::Impl_::Impl_(
1698 [[maybe_unused]] ::google::protobuf::internal::InternalVisibility visibility,
1699 [[maybe_unused]] ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const Impl_& from,
1700 [[maybe_unused]] const ::operations_research::math_opt::AuxiliaryObjectivesUpdatesProto& from_msg)
1701 : _has_bits_{from._has_bits_},
1702 _cached_size_{0},
1703 deleted_objective_ids_{visibility, arena, from.deleted_objective_ids_},
1704 _deleted_objective_ids_cached_byte_size_{0},
1705 new_objectives_{visibility, arena, from.new_objectives_},
1706 objective_updates_{visibility, arena, from.objective_updates_} {}
1707
1709 ::google::protobuf::Arena* PROTOBUF_NULLABLE arena,
1710 const AuxiliaryObjectivesUpdatesProto& from)
1711#if defined(PROTOBUF_CUSTOM_VTABLE)
1712 : ::google::protobuf::Message(arena, AuxiliaryObjectivesUpdatesProto_class_data_.base()) {
1713#else // PROTOBUF_CUSTOM_VTABLE
1714 : ::google::protobuf::Message(arena) {
1715#endif // PROTOBUF_CUSTOM_VTABLE
1716 AuxiliaryObjectivesUpdatesProto* const _this = this;
1717 (void)_this;
1718 _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(
1719 from._internal_metadata_);
1720 new (&_impl_) Impl_(internal_visibility(), arena, from._impl_, from);
1721
1722 // @@protoc_insertion_point(copy_constructor:operations_research.math_opt.AuxiliaryObjectivesUpdatesProto)
1723}
1724PROTOBUF_NDEBUG_INLINE AuxiliaryObjectivesUpdatesProto::Impl_::Impl_(
1725 [[maybe_unused]] ::google::protobuf::internal::InternalVisibility visibility,
1726 [[maybe_unused]] ::google::protobuf::Arena* PROTOBUF_NULLABLE arena)
1727 : _cached_size_{0},
1728 deleted_objective_ids_{visibility, arena},
1729 _deleted_objective_ids_cached_byte_size_{0},
1730 new_objectives_{visibility, arena},
1731 objective_updates_{visibility, arena} {}
1732
1733inline void AuxiliaryObjectivesUpdatesProto::SharedCtor(::_pb::Arena* PROTOBUF_NULLABLE arena) {
1734 new (&_impl_) Impl_(internal_visibility(), arena);
1735}
1737 // @@protoc_insertion_point(destructor:operations_research.math_opt.AuxiliaryObjectivesUpdatesProto)
1738 SharedDtor(*this);
1739}
1740inline void AuxiliaryObjectivesUpdatesProto::SharedDtor(MessageLite& self) {
1742 if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) {
1743 this_.CheckHasBitConsistency();
1744 }
1745 this_._internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>();
1746 ABSL_DCHECK(this_.GetArena() == nullptr);
1747 this_._impl_.~Impl_();
1748}
1749
1750inline void* PROTOBUF_NONNULL AuxiliaryObjectivesUpdatesProto::PlacementNew_(
1751 const void* PROTOBUF_NONNULL, void* PROTOBUF_NONNULL mem,
1752 ::google::protobuf::Arena* PROTOBUF_NULLABLE arena) {
1753 return ::new (mem) AuxiliaryObjectivesUpdatesProto(arena);
1754}
1755constexpr auto AuxiliaryObjectivesUpdatesProto::InternalNewImpl_() {
1756 constexpr auto arena_bits = ::google::protobuf::internal::EncodePlacementArenaOffsets({
1757 PROTOBUF_FIELD_OFFSET(AuxiliaryObjectivesUpdatesProto, _impl_.deleted_objective_ids_) +
1758 decltype(AuxiliaryObjectivesUpdatesProto::_impl_.deleted_objective_ids_)::
1759 InternalGetArenaOffset(
1760 ::google::protobuf::Message::internal_visibility()),
1761 PROTOBUF_FIELD_OFFSET(AuxiliaryObjectivesUpdatesProto, _impl_.new_objectives_) +
1762 decltype(AuxiliaryObjectivesUpdatesProto::_impl_.new_objectives_)::
1763 InternalGetArenaOffset(
1764 ::google::protobuf::Message::internal_visibility()),
1765 PROTOBUF_FIELD_OFFSET(AuxiliaryObjectivesUpdatesProto, _impl_.objective_updates_) +
1766 decltype(AuxiliaryObjectivesUpdatesProto::_impl_.objective_updates_)::
1767 InternalGetArenaOffset(
1768 ::google::protobuf::Message::internal_visibility()),
1769 });
1770 if (arena_bits.has_value()) {
1771 return ::google::protobuf::internal::MessageCreator::CopyInit(
1772 sizeof(AuxiliaryObjectivesUpdatesProto), alignof(AuxiliaryObjectivesUpdatesProto), *arena_bits);
1773 } else {
1774 return ::google::protobuf::internal::MessageCreator(&AuxiliaryObjectivesUpdatesProto::PlacementNew_,
1775 sizeof(AuxiliaryObjectivesUpdatesProto),
1776 alignof(AuxiliaryObjectivesUpdatesProto));
1777 }
1778}
1780 return ::google::protobuf::internal::ClassDataFull{
1781 ::google::protobuf::internal::ClassData{
1783 &_table_.header,
1784 nullptr, // OnDemandRegisterArenaDtor
1785 nullptr, // IsInitialized
1786 &AuxiliaryObjectivesUpdatesProto::MergeImpl,
1787 ::google::protobuf::Message::GetNewImpl<AuxiliaryObjectivesUpdatesProto>(),
1788#if defined(PROTOBUF_CUSTOM_VTABLE)
1789 &AuxiliaryObjectivesUpdatesProto::SharedDtor,
1790 ::google::protobuf::Message::GetClearImpl<AuxiliaryObjectivesUpdatesProto>(), &AuxiliaryObjectivesUpdatesProto::ByteSizeLong,
1792#endif // PROTOBUF_CUSTOM_VTABLE
1793 PROTOBUF_FIELD_OFFSET(AuxiliaryObjectivesUpdatesProto, _impl_._cached_size_),
1794 false,
1795 },
1796 &AuxiliaryObjectivesUpdatesProto::kDescriptorMethods,
1798 nullptr, // tracker
1799 };
1800}
1801
1802PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 const
1803 ::google::protobuf::internal::ClassDataFull AuxiliaryObjectivesUpdatesProto_class_data_ =
1805
1806PROTOBUF_ATTRIBUTE_WEAK const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL
1807AuxiliaryObjectivesUpdatesProto::GetClassData() const {
1808 ::google::protobuf::internal::PrefetchToLocalCache(&AuxiliaryObjectivesUpdatesProto_class_data_);
1809 ::google::protobuf::internal::PrefetchToLocalCache(AuxiliaryObjectivesUpdatesProto_class_data_.tc_table);
1811}
1812PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1
1813const ::_pbi::TcParseTable<0, 3, 4, 0, 2>
1814AuxiliaryObjectivesUpdatesProto::_table_ = {
1815 {
1816 PROTOBUF_FIELD_OFFSET(AuxiliaryObjectivesUpdatesProto, _impl_._has_bits_),
1817 0, // no _extensions_
1818 3, 0, // max_field_number, fast_idx_mask
1819 offsetof(decltype(_table_), field_lookup_table),
1820 4294967288, // skipmap
1821 offsetof(decltype(_table_), field_entries),
1822 3, // num_field_entries
1823 4, // num_aux_entries
1824 offsetof(decltype(_table_), aux_entries),
1826 nullptr, // post_loop_handler
1827 ::_pbi::TcParser::GenericFallback, // fallback
1828 #ifdef PROTOBUF_PREFETCH_PARSE_TABLE
1829 ::_pbi::TcParser::GetTable<::operations_research::math_opt::AuxiliaryObjectivesUpdatesProto>(), // to_prefetch
1830 #endif // PROTOBUF_PREFETCH_PARSE_TABLE
1831 }, {{
1832 // repeated int64 deleted_objective_ids = 1;
1833 {::_pbi::TcParser::FastV64P1,
1834 {10, 0, 0,
1835 PROTOBUF_FIELD_OFFSET(AuxiliaryObjectivesUpdatesProto, _impl_.deleted_objective_ids_)}},
1836 }}, {{
1837 65535, 65535
1838 }}, {{
1839 // repeated int64 deleted_objective_ids = 1;
1840 {PROTOBUF_FIELD_OFFSET(AuxiliaryObjectivesUpdatesProto, _impl_.deleted_objective_ids_), _Internal::kHasBitsOffset + 0, 0, (0 | ::_fl::kFcRepeated | ::_fl::kPackedInt64)},
1841 // map<int64, .operations_research.math_opt.ObjectiveProto> new_objectives = 2;
1842 {PROTOBUF_FIELD_OFFSET(AuxiliaryObjectivesUpdatesProto, _impl_.new_objectives_), _Internal::kHasBitsOffset + 1, 0, (0 | ::_fl::kFcRepeated | ::_fl::kMap)},
1843 // map<int64, .operations_research.math_opt.ObjectiveUpdatesProto> objective_updates = 3;
1844 {PROTOBUF_FIELD_OFFSET(AuxiliaryObjectivesUpdatesProto, _impl_.objective_updates_), _Internal::kHasBitsOffset + 2, 2, (0 | ::_fl::kFcRepeated | ::_fl::kMap)},
1845 }},
1846 {{
1847 {::_pbi::TcParser::GetMapAuxInfo(
1848 0, 0, 3, 11, 0)},
1849 {::_pbi::TcParser::GetTable<::operations_research::math_opt::ObjectiveProto>()},
1850 {::_pbi::TcParser::GetMapAuxInfo(
1851 0, 0, 3, 11, 0)},
1852 {::_pbi::TcParser::GetTable<::operations_research::math_opt::ObjectiveUpdatesProto>()},
1853 }},
1854 {{
1855 }},
1856};
1857PROTOBUF_NOINLINE void AuxiliaryObjectivesUpdatesProto::Clear() {
1858// @@protoc_insertion_point(message_clear_start:operations_research.math_opt.AuxiliaryObjectivesUpdatesProto)
1859 ::google::protobuf::internal::TSanWrite(&_impl_);
1860 ::uint32_t cached_has_bits = 0;
1861 // Prevent compiler warnings about cached_has_bits being unused
1862 (void) cached_has_bits;
1863
1864 cached_has_bits = _impl_._has_bits_[0];
1865 if (BatchCheckHasBit(cached_has_bits, 0x00000007U)) {
1866 if (CheckHasBitForRepeated(cached_has_bits, 0x00000001U)) {
1867 _impl_.deleted_objective_ids_.Clear();
1868 }
1869 if (CheckHasBitForRepeated(cached_has_bits, 0x00000002U)) {
1870 _impl_.new_objectives_.Clear();
1871 }
1872 if (CheckHasBitForRepeated(cached_has_bits, 0x00000004U)) {
1873 _impl_.objective_updates_.Clear();
1874 }
1875 }
1876 _impl_._has_bits_.Clear();
1877 _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>();
1878}
1879
1880#if defined(PROTOBUF_CUSTOM_VTABLE)
1881::uint8_t* PROTOBUF_NONNULL AuxiliaryObjectivesUpdatesProto::_InternalSerialize(
1882 const ::google::protobuf::MessageLite& base, ::uint8_t* PROTOBUF_NONNULL target,
1883 ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) {
1884 const AuxiliaryObjectivesUpdatesProto& this_ = static_cast<const AuxiliaryObjectivesUpdatesProto&>(base);
1885#else // PROTOBUF_CUSTOM_VTABLE
1886::uint8_t* PROTOBUF_NONNULL AuxiliaryObjectivesUpdatesProto::_InternalSerialize(
1887 ::uint8_t* PROTOBUF_NONNULL target,
1888 ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const {
1889 const AuxiliaryObjectivesUpdatesProto& this_ = *this;
1890#endif // PROTOBUF_CUSTOM_VTABLE
1891 if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) {
1892 this_.CheckHasBitConsistency();
1893 }
1894 // @@protoc_insertion_point(serialize_to_array_start:operations_research.math_opt.AuxiliaryObjectivesUpdatesProto)
1895 ::uint32_t cached_has_bits = 0;
1896 (void)cached_has_bits;
1897
1898 cached_has_bits = this_._impl_._has_bits_[0];
1899 // repeated int64 deleted_objective_ids = 1;
1900 if (CheckHasBitForRepeated(cached_has_bits, 0x00000001U)) {
1901 {
1902 int byte_size = this_._impl_._deleted_objective_ids_cached_byte_size_.Get();
1903 if (byte_size > 0) {
1904 target = stream->WriteInt64Packed(
1905 1, this_._internal_deleted_objective_ids(), byte_size, target);
1906 }
1907 }
1908 }
1909
1910 // map<int64, .operations_research.math_opt.ObjectiveProto> new_objectives = 2;
1911 if (CheckHasBitForRepeated(cached_has_bits, 0x00000002U)) {
1912 if (!this_._internal_new_objectives().empty()) {
1913 using MapType = ::google::protobuf::Map<::int64_t, ::operations_research::math_opt::ObjectiveProto>;
1914 using WireHelper = _pbi::MapEntryFuncs<::int64_t, ::operations_research::math_opt::ObjectiveProto,
1915 _pbi::WireFormatLite::TYPE_INT64,
1916 _pbi::WireFormatLite::TYPE_MESSAGE>;
1917 const auto& field = this_._internal_new_objectives();
1918
1919 if (stream->IsSerializationDeterministic() && field.size() > 1) {
1920 for (const auto& entry : ::google::protobuf::internal::MapSorterFlat<MapType>(field)) {
1921 target = WireHelper::InternalSerialize(
1922 2, entry.first, entry.second, target, stream);
1923 }
1924 } else {
1925 for (const auto& entry : field) {
1926 target = WireHelper::InternalSerialize(
1927 2, entry.first, entry.second, target, stream);
1928 }
1929 }
1930 }
1931 }
1932
1933 // map<int64, .operations_research.math_opt.ObjectiveUpdatesProto> objective_updates = 3;
1934 if (CheckHasBitForRepeated(cached_has_bits, 0x00000004U)) {
1935 if (!this_._internal_objective_updates().empty()) {
1936 using MapType = ::google::protobuf::Map<::int64_t, ::operations_research::math_opt::ObjectiveUpdatesProto>;
1937 using WireHelper = _pbi::MapEntryFuncs<::int64_t, ::operations_research::math_opt::ObjectiveUpdatesProto,
1938 _pbi::WireFormatLite::TYPE_INT64,
1939 _pbi::WireFormatLite::TYPE_MESSAGE>;
1940 const auto& field = this_._internal_objective_updates();
1941
1942 if (stream->IsSerializationDeterministic() && field.size() > 1) {
1943 for (const auto& entry : ::google::protobuf::internal::MapSorterFlat<MapType>(field)) {
1944 target = WireHelper::InternalSerialize(
1945 3, entry.first, entry.second, target, stream);
1946 }
1947 } else {
1948 for (const auto& entry : field) {
1949 target = WireHelper::InternalSerialize(
1950 3, entry.first, entry.second, target, stream);
1951 }
1952 }
1953 }
1954 }
1955
1956 if (ABSL_PREDICT_FALSE(this_._internal_metadata_.have_unknown_fields())) {
1957 target =
1958 ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray(
1959 this_._internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream);
1960 }
1961 // @@protoc_insertion_point(serialize_to_array_end:operations_research.math_opt.AuxiliaryObjectivesUpdatesProto)
1962 return target;
1963}
1964
1965#if defined(PROTOBUF_CUSTOM_VTABLE)
1967 const AuxiliaryObjectivesUpdatesProto& this_ = static_cast<const AuxiliaryObjectivesUpdatesProto&>(base);
1968#else // PROTOBUF_CUSTOM_VTABLE
1970 const AuxiliaryObjectivesUpdatesProto& this_ = *this;
1971#endif // PROTOBUF_CUSTOM_VTABLE
1972 // @@protoc_insertion_point(message_byte_size_start:operations_research.math_opt.AuxiliaryObjectivesUpdatesProto)
1973 ::size_t total_size = 0;
1975 ::uint32_t cached_has_bits = 0;
1976 // Prevent compiler warnings about cached_has_bits being unused
1977 (void)cached_has_bits;
1978
1979 ::_pbi::Prefetch5LinesFrom7Lines(&this_);
1980 cached_has_bits = this_._impl_._has_bits_[0];
1981 if (BatchCheckHasBit(cached_has_bits, 0x00000007U)) {
1982 // repeated int64 deleted_objective_ids = 1;
1983 if (CheckHasBitForRepeated(cached_has_bits, 0x00000001U)) {
1984 total_size +=
1985 ::_pbi::WireFormatLite::Int64SizeWithPackedTagSize(
1986 this_._internal_deleted_objective_ids(), 1,
1987 this_._impl_._deleted_objective_ids_cached_byte_size_);
1988 }
1989 // map<int64, .operations_research.math_opt.ObjectiveProto> new_objectives = 2;
1990 if (CheckHasBitForRepeated(cached_has_bits, 0x00000002U)) {
1991 total_size +=
1992 1 * ::google::protobuf::internal::FromIntSize(this_._internal_new_objectives_size());
1993 for (const auto& entry : this_._internal_new_objectives()) {
1994 total_size += _pbi::MapEntryFuncs<::int64_t, ::operations_research::math_opt::ObjectiveProto,
1995 _pbi::WireFormatLite::TYPE_INT64,
1996 _pbi::WireFormatLite::TYPE_MESSAGE>::ByteSizeLong(entry.first, entry.second);
1997 }
1998 }
1999 // map<int64, .operations_research.math_opt.ObjectiveUpdatesProto> objective_updates = 3;
2000 if (CheckHasBitForRepeated(cached_has_bits, 0x00000004U)) {
2001 total_size +=
2002 1 * ::google::protobuf::internal::FromIntSize(this_._internal_objective_updates_size());
2003 for (const auto& entry : this_._internal_objective_updates()) {
2004 total_size += _pbi::MapEntryFuncs<::int64_t, ::operations_research::math_opt::ObjectiveUpdatesProto,
2005 _pbi::WireFormatLite::TYPE_INT64,
2006 _pbi::WireFormatLite::TYPE_MESSAGE>::ByteSizeLong(entry.first, entry.second);
2007 }
2008 }
2009 }
2010 return this_.MaybeComputeUnknownFieldsSize(total_size,
2011 &this_._impl_._cached_size_);
2012}
2013
2014void AuxiliaryObjectivesUpdatesProto::MergeImpl(::google::protobuf::MessageLite& to_msg,
2015 const ::google::protobuf::MessageLite& from_msg) {
2016 auto* const _this =
2017 static_cast<AuxiliaryObjectivesUpdatesProto*>(&to_msg);
2018 auto& from = static_cast<const AuxiliaryObjectivesUpdatesProto&>(from_msg);
2019 if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) {
2020 from.CheckHasBitConsistency();
2021 }
2022 // @@protoc_insertion_point(class_specific_merge_from_start:operations_research.math_opt.AuxiliaryObjectivesUpdatesProto)
2023 ABSL_DCHECK_NE(&from, _this);
2024 ::uint32_t cached_has_bits = 0;
2025 (void)cached_has_bits;
2026
2027 cached_has_bits = from._impl_._has_bits_[0];
2028 if (BatchCheckHasBit(cached_has_bits, 0x00000007U)) {
2029 if (CheckHasBitForRepeated(cached_has_bits, 0x00000001U)) {
2030 _this->_internal_mutable_deleted_objective_ids()->MergeFrom(from._internal_deleted_objective_ids());
2031 }
2032 if (CheckHasBitForRepeated(cached_has_bits, 0x00000002U)) {
2033 _this->_impl_.new_objectives_.MergeFrom(from._impl_.new_objectives_);
2034 }
2035 if (CheckHasBitForRepeated(cached_has_bits, 0x00000004U)) {
2036 _this->_impl_.objective_updates_.MergeFrom(from._impl_.objective_updates_);
2037 }
2038 }
2039 _this->_impl_._has_bits_[0] |= cached_has_bits;
2040 _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(
2041 from._internal_metadata_);
2042}
2043
2045 // @@protoc_insertion_point(class_specific_copy_from_start:operations_research.math_opt.AuxiliaryObjectivesUpdatesProto)
2046 if (&from == this) return;
2047 Clear();
2048 MergeFrom(from);
2050
2051
2052void AuxiliaryObjectivesUpdatesProto::InternalSwap(AuxiliaryObjectivesUpdatesProto* PROTOBUF_RESTRICT PROTOBUF_NONNULL other) {
2053 using ::std::swap;
2054 _internal_metadata_.InternalSwap(&other->_internal_metadata_);
2055 swap(_impl_._has_bits_[0], other->_impl_._has_bits_[0]);
2056 _impl_.deleted_objective_ids_.InternalSwap(&other->_impl_.deleted_objective_ids_);
2057 _impl_.new_objectives_.InternalSwap(&other->_impl_.new_objectives_);
2058 _impl_.objective_updates_.InternalSwap(&other->_impl_.objective_updates_);
2059}
2060
2061::google::protobuf::Metadata AuxiliaryObjectivesUpdatesProto::GetMetadata() const {
2062 return ::google::protobuf::Message::GetMetadataImpl(GetClassData()->full());
2063}
2064// ===================================================================
2065
2067 public:
2068 using HasBits =
2069 decltype(::std::declval<LinearConstraintUpdatesProto>()._impl_._has_bits_);
2070 static constexpr ::int32_t kHasBitsOffset =
2071 8 * PROTOBUF_FIELD_OFFSET(LinearConstraintUpdatesProto, _impl_._has_bits_);
2073
2075 ::google::protobuf::internal::TSanWrite(&_impl_);
2076 if (_impl_.lower_bounds_ != nullptr) _impl_.lower_bounds_->Clear();
2077 ClearHasBit(_impl_._has_bits_[0],
2078 0x00000001U);
2079}
2081 ::google::protobuf::internal::TSanWrite(&_impl_);
2082 if (_impl_.upper_bounds_ != nullptr) _impl_.upper_bounds_->Clear();
2083 ClearHasBit(_impl_._has_bits_[0],
2084 0x00000002U);
2085}
2086LinearConstraintUpdatesProto::LinearConstraintUpdatesProto(::google::protobuf::Arena* PROTOBUF_NULLABLE arena)
2087#if defined(PROTOBUF_CUSTOM_VTABLE)
2088 : ::google::protobuf::Message(arena, LinearConstraintUpdatesProto_class_data_.base()) {
2089#else // PROTOBUF_CUSTOM_VTABLE
2090 : ::google::protobuf::Message(arena) {
2091#endif // PROTOBUF_CUSTOM_VTABLE
2092 SharedCtor(arena);
2093 // @@protoc_insertion_point(arena_constructor:operations_research.math_opt.LinearConstraintUpdatesProto)
2094}
2095PROTOBUF_NDEBUG_INLINE LinearConstraintUpdatesProto::Impl_::Impl_(
2096 [[maybe_unused]] ::google::protobuf::internal::InternalVisibility visibility,
2097 [[maybe_unused]] ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const Impl_& from,
2098 [[maybe_unused]] const ::operations_research::math_opt::LinearConstraintUpdatesProto& from_msg)
2099 : _has_bits_{from._has_bits_},
2100 _cached_size_{0} {}
2101
2103 ::google::protobuf::Arena* PROTOBUF_NULLABLE arena,
2104 const LinearConstraintUpdatesProto& from)
2105#if defined(PROTOBUF_CUSTOM_VTABLE)
2106 : ::google::protobuf::Message(arena, LinearConstraintUpdatesProto_class_data_.base()) {
2107#else // PROTOBUF_CUSTOM_VTABLE
2108 : ::google::protobuf::Message(arena) {
2109#endif // PROTOBUF_CUSTOM_VTABLE
2110 LinearConstraintUpdatesProto* const _this = this;
2111 (void)_this;
2112 _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(
2113 from._internal_metadata_);
2114 new (&_impl_) Impl_(internal_visibility(), arena, from._impl_, from);
2115 ::uint32_t cached_has_bits = _impl_._has_bits_[0];
2116 _impl_.lower_bounds_ = (CheckHasBit(cached_has_bits, 0x00000001U))
2117 ? ::google::protobuf::Message::CopyConstruct(arena, *from._impl_.lower_bounds_)
2118 : nullptr;
2119 _impl_.upper_bounds_ = (CheckHasBit(cached_has_bits, 0x00000002U))
2120 ? ::google::protobuf::Message::CopyConstruct(arena, *from._impl_.upper_bounds_)
2121 : nullptr;
2122
2123 // @@protoc_insertion_point(copy_constructor:operations_research.math_opt.LinearConstraintUpdatesProto)
2124}
2125PROTOBUF_NDEBUG_INLINE LinearConstraintUpdatesProto::Impl_::Impl_(
2126 [[maybe_unused]] ::google::protobuf::internal::InternalVisibility visibility,
2127 [[maybe_unused]] ::google::protobuf::Arena* PROTOBUF_NULLABLE arena)
2128 : _cached_size_{0} {}
2129
2130inline void LinearConstraintUpdatesProto::SharedCtor(::_pb::Arena* PROTOBUF_NULLABLE arena) {
2131 new (&_impl_) Impl_(internal_visibility(), arena);
2132 ::memset(reinterpret_cast<char*>(&_impl_) +
2133 offsetof(Impl_, lower_bounds_),
2134 0,
2135 offsetof(Impl_, upper_bounds_) -
2136 offsetof(Impl_, lower_bounds_) +
2137 sizeof(Impl_::upper_bounds_));
2138}
2140 // @@protoc_insertion_point(destructor:operations_research.math_opt.LinearConstraintUpdatesProto)
2141 SharedDtor(*this);
2142}
2143inline void LinearConstraintUpdatesProto::SharedDtor(MessageLite& self) {
2145 if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) {
2146 this_.CheckHasBitConsistency();
2147 }
2148 this_._internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>();
2149 ABSL_DCHECK(this_.GetArena() == nullptr);
2150 delete this_._impl_.lower_bounds_;
2151 delete this_._impl_.upper_bounds_;
2152 this_._impl_.~Impl_();
2153}
2154
2155inline void* PROTOBUF_NONNULL LinearConstraintUpdatesProto::PlacementNew_(
2156 const void* PROTOBUF_NONNULL, void* PROTOBUF_NONNULL mem,
2157 ::google::protobuf::Arena* PROTOBUF_NULLABLE arena) {
2158 return ::new (mem) LinearConstraintUpdatesProto(arena);
2159}
2160constexpr auto LinearConstraintUpdatesProto::InternalNewImpl_() {
2161 return ::google::protobuf::internal::MessageCreator::ZeroInit(sizeof(LinearConstraintUpdatesProto),
2162 alignof(LinearConstraintUpdatesProto));
2163}
2165 return ::google::protobuf::internal::ClassDataFull{
2166 ::google::protobuf::internal::ClassData{
2168 &_table_.header,
2169 nullptr, // OnDemandRegisterArenaDtor
2170 nullptr, // IsInitialized
2171 &LinearConstraintUpdatesProto::MergeImpl,
2172 ::google::protobuf::Message::GetNewImpl<LinearConstraintUpdatesProto>(),
2173#if defined(PROTOBUF_CUSTOM_VTABLE)
2174 &LinearConstraintUpdatesProto::SharedDtor,
2175 ::google::protobuf::Message::GetClearImpl<LinearConstraintUpdatesProto>(), &LinearConstraintUpdatesProto::ByteSizeLong,
2177#endif // PROTOBUF_CUSTOM_VTABLE
2178 PROTOBUF_FIELD_OFFSET(LinearConstraintUpdatesProto, _impl_._cached_size_),
2179 false,
2180 },
2181 &LinearConstraintUpdatesProto::kDescriptorMethods,
2183 nullptr, // tracker
2184 };
2185}
2186
2187PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 const
2188 ::google::protobuf::internal::ClassDataFull LinearConstraintUpdatesProto_class_data_ =
2190
2191PROTOBUF_ATTRIBUTE_WEAK const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL
2192LinearConstraintUpdatesProto::GetClassData() const {
2193 ::google::protobuf::internal::PrefetchToLocalCache(&LinearConstraintUpdatesProto_class_data_);
2194 ::google::protobuf::internal::PrefetchToLocalCache(LinearConstraintUpdatesProto_class_data_.tc_table);
2196}
2197PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1
2198const ::_pbi::TcParseTable<1, 2, 2, 0, 2>
2199LinearConstraintUpdatesProto::_table_ = {
2200 {
2201 PROTOBUF_FIELD_OFFSET(LinearConstraintUpdatesProto, _impl_._has_bits_),
2202 0, // no _extensions_
2203 2, 8, // max_field_number, fast_idx_mask
2204 offsetof(decltype(_table_), field_lookup_table),
2205 4294967292, // skipmap
2206 offsetof(decltype(_table_), field_entries),
2207 2, // num_field_entries
2208 2, // num_aux_entries
2209 offsetof(decltype(_table_), aux_entries),
2211 nullptr, // post_loop_handler
2212 ::_pbi::TcParser::GenericFallback, // fallback
2213 #ifdef PROTOBUF_PREFETCH_PARSE_TABLE
2214 ::_pbi::TcParser::GetTable<::operations_research::math_opt::LinearConstraintUpdatesProto>(), // to_prefetch
2215 #endif // PROTOBUF_PREFETCH_PARSE_TABLE
2216 }, {{
2217 // .operations_research.math_opt.SparseDoubleVectorProto upper_bounds = 2;
2218 {::_pbi::TcParser::FastMtS1,
2219 {18, 1, 1,
2220 PROTOBUF_FIELD_OFFSET(LinearConstraintUpdatesProto, _impl_.upper_bounds_)}},
2221 // .operations_research.math_opt.SparseDoubleVectorProto lower_bounds = 1;
2222 {::_pbi::TcParser::FastMtS1,
2223 {10, 0, 0,
2224 PROTOBUF_FIELD_OFFSET(LinearConstraintUpdatesProto, _impl_.lower_bounds_)}},
2225 }}, {{
2226 65535, 65535
2227 }}, {{
2228 // .operations_research.math_opt.SparseDoubleVectorProto lower_bounds = 1;
2229 {PROTOBUF_FIELD_OFFSET(LinearConstraintUpdatesProto, _impl_.lower_bounds_), _Internal::kHasBitsOffset + 0, 0, (0 | ::_fl::kFcOptional | ::_fl::kMessage | ::_fl::kTvTable)},
2230 // .operations_research.math_opt.SparseDoubleVectorProto upper_bounds = 2;
2231 {PROTOBUF_FIELD_OFFSET(LinearConstraintUpdatesProto, _impl_.upper_bounds_), _Internal::kHasBitsOffset + 1, 1, (0 | ::_fl::kFcOptional | ::_fl::kMessage | ::_fl::kTvTable)},
2232 }},
2233 {{
2234 {::_pbi::TcParser::GetTable<::operations_research::math_opt::SparseDoubleVectorProto>()},
2235 {::_pbi::TcParser::GetTable<::operations_research::math_opt::SparseDoubleVectorProto>()},
2236 }},
2237 {{
2238 }},
2239};
2240PROTOBUF_NOINLINE void LinearConstraintUpdatesProto::Clear() {
2241// @@protoc_insertion_point(message_clear_start:operations_research.math_opt.LinearConstraintUpdatesProto)
2242 ::google::protobuf::internal::TSanWrite(&_impl_);
2243 ::uint32_t cached_has_bits = 0;
2244 // Prevent compiler warnings about cached_has_bits being unused
2245 (void) cached_has_bits;
2247 cached_has_bits = _impl_._has_bits_[0];
2248 if (BatchCheckHasBit(cached_has_bits, 0x00000003U)) {
2249 if (CheckHasBit(cached_has_bits, 0x00000001U)) {
2250 ABSL_DCHECK(_impl_.lower_bounds_ != nullptr);
2251 _impl_.lower_bounds_->Clear();
2252 }
2253 if (CheckHasBit(cached_has_bits, 0x00000002U)) {
2254 ABSL_DCHECK(_impl_.upper_bounds_ != nullptr);
2255 _impl_.upper_bounds_->Clear();
2256 }
2257 }
2258 _impl_._has_bits_.Clear();
2259 _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>();
2260}
2261
2262#if defined(PROTOBUF_CUSTOM_VTABLE)
2263::uint8_t* PROTOBUF_NONNULL LinearConstraintUpdatesProto::_InternalSerialize(
2264 const ::google::protobuf::MessageLite& base, ::uint8_t* PROTOBUF_NONNULL target,
2265 ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) {
2266 const LinearConstraintUpdatesProto& this_ = static_cast<const LinearConstraintUpdatesProto&>(base);
2267#else // PROTOBUF_CUSTOM_VTABLE
2268::uint8_t* PROTOBUF_NONNULL LinearConstraintUpdatesProto::_InternalSerialize(
2269 ::uint8_t* PROTOBUF_NONNULL target,
2270 ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const {
2271 const LinearConstraintUpdatesProto& this_ = *this;
2272#endif // PROTOBUF_CUSTOM_VTABLE
2273 if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) {
2274 this_.CheckHasBitConsistency();
2275 }
2276 // @@protoc_insertion_point(serialize_to_array_start:operations_research.math_opt.LinearConstraintUpdatesProto)
2277 ::uint32_t cached_has_bits = 0;
2278 (void)cached_has_bits;
2279
2280 cached_has_bits = this_._impl_._has_bits_[0];
2281 // .operations_research.math_opt.SparseDoubleVectorProto lower_bounds = 1;
2282 if (CheckHasBit(cached_has_bits, 0x00000001U)) {
2283 target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage(
2284 1, *this_._impl_.lower_bounds_, this_._impl_.lower_bounds_->GetCachedSize(), target,
2285 stream);
2286 }
2287
2288 // .operations_research.math_opt.SparseDoubleVectorProto upper_bounds = 2;
2289 if (CheckHasBit(cached_has_bits, 0x00000002U)) {
2290 target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage(
2291 2, *this_._impl_.upper_bounds_, this_._impl_.upper_bounds_->GetCachedSize(), target,
2292 stream);
2293 }
2294
2295 if (ABSL_PREDICT_FALSE(this_._internal_metadata_.have_unknown_fields())) {
2296 target =
2297 ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray(
2298 this_._internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream);
2299 }
2300 // @@protoc_insertion_point(serialize_to_array_end:operations_research.math_opt.LinearConstraintUpdatesProto)
2301 return target;
2302}
2303
2304#if defined(PROTOBUF_CUSTOM_VTABLE)
2306 const LinearConstraintUpdatesProto& this_ = static_cast<const LinearConstraintUpdatesProto&>(base);
2307#else // PROTOBUF_CUSTOM_VTABLE
2309 const LinearConstraintUpdatesProto& this_ = *this;
2310#endif // PROTOBUF_CUSTOM_VTABLE
2311 // @@protoc_insertion_point(message_byte_size_start:operations_research.math_opt.LinearConstraintUpdatesProto)
2312 ::size_t total_size = 0;
2313
2314 ::uint32_t cached_has_bits = 0;
2315 // Prevent compiler warnings about cached_has_bits being unused
2316 (void)cached_has_bits;
2317
2318 ::_pbi::Prefetch5LinesFrom7Lines(&this_);
2319 cached_has_bits = this_._impl_._has_bits_[0];
2320 if (BatchCheckHasBit(cached_has_bits, 0x00000003U)) {
2321 // .operations_research.math_opt.SparseDoubleVectorProto lower_bounds = 1;
2322 if (CheckHasBit(cached_has_bits, 0x00000001U)) {
2323 total_size += 1 +
2324 ::google::protobuf::internal::WireFormatLite::MessageSize(*this_._impl_.lower_bounds_);
2325 }
2326 // .operations_research.math_opt.SparseDoubleVectorProto upper_bounds = 2;
2327 if (CheckHasBit(cached_has_bits, 0x00000002U)) {
2328 total_size += 1 +
2329 ::google::protobuf::internal::WireFormatLite::MessageSize(*this_._impl_.upper_bounds_);
2330 }
2331 }
2332 return this_.MaybeComputeUnknownFieldsSize(total_size,
2333 &this_._impl_._cached_size_);
2334}
2335
2336void LinearConstraintUpdatesProto::MergeImpl(::google::protobuf::MessageLite& to_msg,
2337 const ::google::protobuf::MessageLite& from_msg) {
2338 auto* const _this =
2339 static_cast<LinearConstraintUpdatesProto*>(&to_msg);
2340 auto& from = static_cast<const LinearConstraintUpdatesProto&>(from_msg);
2341 if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) {
2342 from.CheckHasBitConsistency();
2343 }
2344 ::google::protobuf::Arena* arena = _this->GetArena();
2345 // @@protoc_insertion_point(class_specific_merge_from_start:operations_research.math_opt.LinearConstraintUpdatesProto)
2346 ABSL_DCHECK_NE(&from, _this);
2347 ::uint32_t cached_has_bits = 0;
2348 (void)cached_has_bits;
2349
2350 cached_has_bits = from._impl_._has_bits_[0];
2351 if (BatchCheckHasBit(cached_has_bits, 0x00000003U)) {
2352 if (CheckHasBit(cached_has_bits, 0x00000001U)) {
2353 ABSL_DCHECK(from._impl_.lower_bounds_ != nullptr);
2354 if (_this->_impl_.lower_bounds_ == nullptr) {
2355 _this->_impl_.lower_bounds_ = ::google::protobuf::Message::CopyConstruct(arena, *from._impl_.lower_bounds_);
2356 } else {
2357 _this->_impl_.lower_bounds_->MergeFrom(*from._impl_.lower_bounds_);
2358 }
2359 }
2360 if (CheckHasBit(cached_has_bits, 0x00000002U)) {
2361 ABSL_DCHECK(from._impl_.upper_bounds_ != nullptr);
2362 if (_this->_impl_.upper_bounds_ == nullptr) {
2363 _this->_impl_.upper_bounds_ = ::google::protobuf::Message::CopyConstruct(arena, *from._impl_.upper_bounds_);
2364 } else {
2365 _this->_impl_.upper_bounds_->MergeFrom(*from._impl_.upper_bounds_);
2366 }
2367 }
2368 }
2369 _this->_impl_._has_bits_[0] |= cached_has_bits;
2370 _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(
2371 from._internal_metadata_);
2372}
2373
2374void LinearConstraintUpdatesProto::CopyFrom(const LinearConstraintUpdatesProto& from) {
2375 // @@protoc_insertion_point(class_specific_copy_from_start:operations_research.math_opt.LinearConstraintUpdatesProto)
2376 if (&from == this) return;
2377 Clear();
2378 MergeFrom(from);
2379}
2381
2382void LinearConstraintUpdatesProto::InternalSwap(LinearConstraintUpdatesProto* PROTOBUF_RESTRICT PROTOBUF_NONNULL other) {
2383 using ::std::swap;
2384 _internal_metadata_.InternalSwap(&other->_internal_metadata_);
2385 swap(_impl_._has_bits_[0], other->_impl_._has_bits_[0]);
2386 ::google::protobuf::internal::memswap<
2387 PROTOBUF_FIELD_OFFSET(LinearConstraintUpdatesProto, _impl_.upper_bounds_)
2388 + sizeof(LinearConstraintUpdatesProto::_impl_.upper_bounds_)
2389 - PROTOBUF_FIELD_OFFSET(LinearConstraintUpdatesProto, _impl_.lower_bounds_)>(
2390 reinterpret_cast<char*>(&_impl_.lower_bounds_),
2391 reinterpret_cast<char*>(&other->_impl_.lower_bounds_));
2392}
2393
2394::google::protobuf::Metadata LinearConstraintUpdatesProto::GetMetadata() const {
2395 return ::google::protobuf::Message::GetMetadataImpl(GetClassData()->full());
2396}
2397// ===================================================================
2398
2399#if defined(PROTOBUF_CUSTOM_VTABLE)
2404#else // PROTOBUF_CUSTOM_VTABLE
2407#endif // PROTOBUF_CUSTOM_VTABLE
2408inline void* PROTOBUF_NONNULL QuadraticConstraintUpdatesProto_NewConstraintsEntry_DoNotUse::PlacementNew_(
2409 const void* PROTOBUF_NONNULL, void* PROTOBUF_NONNULL mem,
2410 ::google::protobuf::Arena* PROTOBUF_NULLABLE arena) {
2413constexpr auto QuadraticConstraintUpdatesProto_NewConstraintsEntry_DoNotUse::InternalNewImpl_() {
2414 return ::google::protobuf::internal::MessageCreator::ZeroInit(sizeof(QuadraticConstraintUpdatesProto_NewConstraintsEntry_DoNotUse),
2416}
2418 return ::google::protobuf::internal::ClassDataFull{
2419 ::google::protobuf::internal::ClassData{
2421 &_table_.header,
2422 nullptr, // OnDemandRegisterArenaDtor
2423 nullptr, // IsInitialized
2424 &QuadraticConstraintUpdatesProto_NewConstraintsEntry_DoNotUse::MergeImpl,
2425 ::google::protobuf::Message::GetNewImpl<QuadraticConstraintUpdatesProto_NewConstraintsEntry_DoNotUse>(),
2426#if defined(PROTOBUF_CUSTOM_VTABLE)
2427 &QuadraticConstraintUpdatesProto_NewConstraintsEntry_DoNotUse::SharedDtor,
2428 static_cast<void (::google::protobuf::MessageLite::*)()>(&QuadraticConstraintUpdatesProto_NewConstraintsEntry_DoNotUse::ClearImpl),
2429 ::google::protobuf::Message::ByteSizeLongImpl, ::google::protobuf::Message::_InternalSerializeImpl
2430 ,
2431#endif // PROTOBUF_CUSTOM_VTABLE
2432 PROTOBUF_FIELD_OFFSET(QuadraticConstraintUpdatesProto_NewConstraintsEntry_DoNotUse, _impl_._cached_size_),
2433 false,
2434 },
2435 &QuadraticConstraintUpdatesProto_NewConstraintsEntry_DoNotUse::kDescriptorMethods,
2437 nullptr, // tracker
2438 };
2439}
2440
2441PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 const
2442 ::google::protobuf::internal::ClassDataFull QuadraticConstraintUpdatesProto_NewConstraintsEntry_DoNotUse_class_data_ =
2444
2445PROTOBUF_ATTRIBUTE_WEAK const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL
2446QuadraticConstraintUpdatesProto_NewConstraintsEntry_DoNotUse::GetClassData() const {
2447 ::google::protobuf::internal::PrefetchToLocalCache(&QuadraticConstraintUpdatesProto_NewConstraintsEntry_DoNotUse_class_data_);
2448 ::google::protobuf::internal::PrefetchToLocalCache(QuadraticConstraintUpdatesProto_NewConstraintsEntry_DoNotUse_class_data_.tc_table);
2450}
2451PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1
2452const ::_pbi::TcParseTable<1, 2, 1, 0, 2>
2453QuadraticConstraintUpdatesProto_NewConstraintsEntry_DoNotUse::_table_ = {
2454 {
2455 PROTOBUF_FIELD_OFFSET(QuadraticConstraintUpdatesProto_NewConstraintsEntry_DoNotUse, _impl_._has_bits_),
2456 0, // no _extensions_
2457 2, 8, // max_field_number, fast_idx_mask
2458 offsetof(decltype(_table_), field_lookup_table),
2459 4294967292, // skipmap
2460 offsetof(decltype(_table_), field_entries),
2461 2, // num_field_entries
2462 1, // num_aux_entries
2463 offsetof(decltype(_table_), aux_entries),
2465 nullptr, // post_loop_handler
2466 ::_pbi::TcParser::DiscardEverythingFallback, // fallback
2467 #ifdef PROTOBUF_PREFETCH_PARSE_TABLE
2468 ::_pbi::TcParser::GetTable<::operations_research::math_opt::QuadraticConstraintUpdatesProto_NewConstraintsEntry_DoNotUse>(), // to_prefetch
2469 #endif // PROTOBUF_PREFETCH_PARSE_TABLE
2470 }, {{
2471 // .operations_research.math_opt.QuadraticConstraintProto value = 2;
2472 {::_pbi::TcParser::FastMtS1,
2473 {18, 0, 0,
2474 PROTOBUF_FIELD_OFFSET(QuadraticConstraintUpdatesProto_NewConstraintsEntry_DoNotUse, _impl_.value_)}},
2475 // int64 key = 1;
2476 {::_pbi::TcParser::SingularVarintNoZag1<::uint64_t, offsetof(QuadraticConstraintUpdatesProto_NewConstraintsEntry_DoNotUse, _impl_.key_), 1>(),
2477 {8, 1, 0,
2478 PROTOBUF_FIELD_OFFSET(QuadraticConstraintUpdatesProto_NewConstraintsEntry_DoNotUse, _impl_.key_)}},
2479 }}, {{
2480 65535, 65535
2481 }}, {{
2482 // int64 key = 1;
2483 {PROTOBUF_FIELD_OFFSET(QuadraticConstraintUpdatesProto_NewConstraintsEntry_DoNotUse, _impl_.key_), _Internal::kHasBitsOffset + 1, 0, (0 | ::_fl::kFcOptional | ::_fl::kInt64)},
2484 // .operations_research.math_opt.QuadraticConstraintProto value = 2;
2485 {PROTOBUF_FIELD_OFFSET(QuadraticConstraintUpdatesProto_NewConstraintsEntry_DoNotUse, _impl_.value_), _Internal::kHasBitsOffset + 0, 0, (0 | ::_fl::kFcOptional | ::_fl::kMessage | ::_fl::kTvTable)},
2486 }},
2487 {{
2488 {::_pbi::TcParser::GetTable<::operations_research::math_opt::QuadraticConstraintProto>()},
2489 }},
2490 {{
2491 }},
2492};
2493// ===================================================================
2494
2496 public:
2497 using HasBits =
2498 decltype(::std::declval<QuadraticConstraintUpdatesProto>()._impl_._has_bits_);
2499 static constexpr ::int32_t kHasBitsOffset =
2500 8 * PROTOBUF_FIELD_OFFSET(QuadraticConstraintUpdatesProto, _impl_._has_bits_);
2501};
2502
2504 ::google::protobuf::internal::TSanWrite(&_impl_);
2505 _impl_.new_constraints_.Clear();
2506 ClearHasBitForRepeated(_impl_._has_bits_[0],
2507 0x00000002U);
2508}
2509QuadraticConstraintUpdatesProto::QuadraticConstraintUpdatesProto(::google::protobuf::Arena* PROTOBUF_NULLABLE arena)
2510#if defined(PROTOBUF_CUSTOM_VTABLE)
2511 : ::google::protobuf::Message(arena, QuadraticConstraintUpdatesProto_class_data_.base()) {
2512#else // PROTOBUF_CUSTOM_VTABLE
2513 : ::google::protobuf::Message(arena) {
2514#endif // PROTOBUF_CUSTOM_VTABLE
2515 SharedCtor(arena);
2516 // @@protoc_insertion_point(arena_constructor:operations_research.math_opt.QuadraticConstraintUpdatesProto)
2517}
2518PROTOBUF_NDEBUG_INLINE QuadraticConstraintUpdatesProto::Impl_::Impl_(
2519 [[maybe_unused]] ::google::protobuf::internal::InternalVisibility visibility,
2520 [[maybe_unused]] ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const Impl_& from,
2521 [[maybe_unused]] const ::operations_research::math_opt::QuadraticConstraintUpdatesProto& from_msg)
2522 : _has_bits_{from._has_bits_},
2523 _cached_size_{0},
2524 deleted_constraint_ids_{visibility, arena, from.deleted_constraint_ids_},
2525 _deleted_constraint_ids_cached_byte_size_{0},
2526 new_constraints_{visibility, arena, from.new_constraints_} {}
2527
2529 ::google::protobuf::Arena* PROTOBUF_NULLABLE arena,
2531#if defined(PROTOBUF_CUSTOM_VTABLE)
2532 : ::google::protobuf::Message(arena, QuadraticConstraintUpdatesProto_class_data_.base()) {
2533#else // PROTOBUF_CUSTOM_VTABLE
2534 : ::google::protobuf::Message(arena) {
2535#endif // PROTOBUF_CUSTOM_VTABLE
2536 QuadraticConstraintUpdatesProto* const _this = this;
2537 (void)_this;
2538 _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(
2539 from._internal_metadata_);
2540 new (&_impl_) Impl_(internal_visibility(), arena, from._impl_, from);
2541
2542 // @@protoc_insertion_point(copy_constructor:operations_research.math_opt.QuadraticConstraintUpdatesProto)
2543}
2544PROTOBUF_NDEBUG_INLINE QuadraticConstraintUpdatesProto::Impl_::Impl_(
2545 [[maybe_unused]] ::google::protobuf::internal::InternalVisibility visibility,
2546 [[maybe_unused]] ::google::protobuf::Arena* PROTOBUF_NULLABLE arena)
2547 : _cached_size_{0},
2548 deleted_constraint_ids_{visibility, arena},
2549 _deleted_constraint_ids_cached_byte_size_{0},
2550 new_constraints_{visibility, arena} {}
2551
2552inline void QuadraticConstraintUpdatesProto::SharedCtor(::_pb::Arena* PROTOBUF_NULLABLE arena) {
2553 new (&_impl_) Impl_(internal_visibility(), arena);
2554}
2556 // @@protoc_insertion_point(destructor:operations_research.math_opt.QuadraticConstraintUpdatesProto)
2557 SharedDtor(*this);
2558}
2559inline void QuadraticConstraintUpdatesProto::SharedDtor(MessageLite& self) {
2561 if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) {
2562 this_.CheckHasBitConsistency();
2564 this_._internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>();
2565 ABSL_DCHECK(this_.GetArena() == nullptr);
2566 this_._impl_.~Impl_();
2567}
2568
2569inline void* PROTOBUF_NONNULL QuadraticConstraintUpdatesProto::PlacementNew_(
2570 const void* PROTOBUF_NONNULL, void* PROTOBUF_NONNULL mem,
2571 ::google::protobuf::Arena* PROTOBUF_NULLABLE arena) {
2572 return ::new (mem) QuadraticConstraintUpdatesProto(arena);
2573}
2574constexpr auto QuadraticConstraintUpdatesProto::InternalNewImpl_() {
2575 constexpr auto arena_bits = ::google::protobuf::internal::EncodePlacementArenaOffsets({
2576 PROTOBUF_FIELD_OFFSET(QuadraticConstraintUpdatesProto, _impl_.deleted_constraint_ids_) +
2577 decltype(QuadraticConstraintUpdatesProto::_impl_.deleted_constraint_ids_)::
2578 InternalGetArenaOffset(
2579 ::google::protobuf::Message::internal_visibility()),
2580 PROTOBUF_FIELD_OFFSET(QuadraticConstraintUpdatesProto, _impl_.new_constraints_) +
2581 decltype(QuadraticConstraintUpdatesProto::_impl_.new_constraints_)::
2582 InternalGetArenaOffset(
2583 ::google::protobuf::Message::internal_visibility()),
2584 });
2585 if (arena_bits.has_value()) {
2586 return ::google::protobuf::internal::MessageCreator::CopyInit(
2587 sizeof(QuadraticConstraintUpdatesProto), alignof(QuadraticConstraintUpdatesProto), *arena_bits);
2588 } else {
2589 return ::google::protobuf::internal::MessageCreator(&QuadraticConstraintUpdatesProto::PlacementNew_,
2590 sizeof(QuadraticConstraintUpdatesProto),
2591 alignof(QuadraticConstraintUpdatesProto));
2592 }
2593}
2595 return ::google::protobuf::internal::ClassDataFull{
2596 ::google::protobuf::internal::ClassData{
2598 &_table_.header,
2599 nullptr, // OnDemandRegisterArenaDtor
2600 nullptr, // IsInitialized
2601 &QuadraticConstraintUpdatesProto::MergeImpl,
2602 ::google::protobuf::Message::GetNewImpl<QuadraticConstraintUpdatesProto>(),
2603#if defined(PROTOBUF_CUSTOM_VTABLE)
2604 &QuadraticConstraintUpdatesProto::SharedDtor,
2605 ::google::protobuf::Message::GetClearImpl<QuadraticConstraintUpdatesProto>(), &QuadraticConstraintUpdatesProto::ByteSizeLong,
2607#endif // PROTOBUF_CUSTOM_VTABLE
2608 PROTOBUF_FIELD_OFFSET(QuadraticConstraintUpdatesProto, _impl_._cached_size_),
2609 false,
2610 },
2611 &QuadraticConstraintUpdatesProto::kDescriptorMethods,
2613 nullptr, // tracker
2614 };
2615}
2616
2617PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 const
2618 ::google::protobuf::internal::ClassDataFull QuadraticConstraintUpdatesProto_class_data_ =
2620
2621PROTOBUF_ATTRIBUTE_WEAK const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL
2622QuadraticConstraintUpdatesProto::GetClassData() const {
2623 ::google::protobuf::internal::PrefetchToLocalCache(&QuadraticConstraintUpdatesProto_class_data_);
2624 ::google::protobuf::internal::PrefetchToLocalCache(QuadraticConstraintUpdatesProto_class_data_.tc_table);
2627PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1
2628const ::_pbi::TcParseTable<0, 2, 2, 0, 2>
2629QuadraticConstraintUpdatesProto::_table_ = {
2630 {
2631 PROTOBUF_FIELD_OFFSET(QuadraticConstraintUpdatesProto, _impl_._has_bits_),
2632 0, // no _extensions_
2633 2, 0, // max_field_number, fast_idx_mask
2634 offsetof(decltype(_table_), field_lookup_table),
2635 4294967292, // skipmap
2636 offsetof(decltype(_table_), field_entries),
2637 2, // num_field_entries
2638 2, // num_aux_entries
2639 offsetof(decltype(_table_), aux_entries),
2641 nullptr, // post_loop_handler
2642 ::_pbi::TcParser::GenericFallback, // fallback
2643 #ifdef PROTOBUF_PREFETCH_PARSE_TABLE
2644 ::_pbi::TcParser::GetTable<::operations_research::math_opt::QuadraticConstraintUpdatesProto>(), // to_prefetch
2645 #endif // PROTOBUF_PREFETCH_PARSE_TABLE
2646 }, {{
2647 // repeated int64 deleted_constraint_ids = 1;
2648 {::_pbi::TcParser::FastV64P1,
2649 {10, 0, 0,
2650 PROTOBUF_FIELD_OFFSET(QuadraticConstraintUpdatesProto, _impl_.deleted_constraint_ids_)}},
2651 }}, {{
2652 65535, 65535
2653 }}, {{
2654 // repeated int64 deleted_constraint_ids = 1;
2655 {PROTOBUF_FIELD_OFFSET(QuadraticConstraintUpdatesProto, _impl_.deleted_constraint_ids_), _Internal::kHasBitsOffset + 0, 0, (0 | ::_fl::kFcRepeated | ::_fl::kPackedInt64)},
2656 // map<int64, .operations_research.math_opt.QuadraticConstraintProto> new_constraints = 2;
2657 {PROTOBUF_FIELD_OFFSET(QuadraticConstraintUpdatesProto, _impl_.new_constraints_), _Internal::kHasBitsOffset + 1, 0, (0 | ::_fl::kFcRepeated | ::_fl::kMap)},
2658 }},
2659 {{
2660 {::_pbi::TcParser::GetMapAuxInfo(
2661 0, 0, 3, 11, 0)},
2662 {::_pbi::TcParser::GetTable<::operations_research::math_opt::QuadraticConstraintProto>()},
2663 }},
2664 {{
2665 }},
2666};
2667PROTOBUF_NOINLINE void QuadraticConstraintUpdatesProto::Clear() {
2668// @@protoc_insertion_point(message_clear_start:operations_research.math_opt.QuadraticConstraintUpdatesProto)
2669 ::google::protobuf::internal::TSanWrite(&_impl_);
2670 ::uint32_t cached_has_bits = 0;
2671 // Prevent compiler warnings about cached_has_bits being unused
2672 (void) cached_has_bits;
2673
2674 cached_has_bits = _impl_._has_bits_[0];
2675 if (BatchCheckHasBit(cached_has_bits, 0x00000003U)) {
2676 if (CheckHasBitForRepeated(cached_has_bits, 0x00000001U)) {
2677 _impl_.deleted_constraint_ids_.Clear();
2678 }
2679 if (CheckHasBitForRepeated(cached_has_bits, 0x00000002U)) {
2680 _impl_.new_constraints_.Clear();
2681 }
2682 }
2683 _impl_._has_bits_.Clear();
2684 _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>();
2685}
2686
2687#if defined(PROTOBUF_CUSTOM_VTABLE)
2688::uint8_t* PROTOBUF_NONNULL QuadraticConstraintUpdatesProto::_InternalSerialize(
2689 const ::google::protobuf::MessageLite& base, ::uint8_t* PROTOBUF_NONNULL target,
2690 ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) {
2691 const QuadraticConstraintUpdatesProto& this_ = static_cast<const QuadraticConstraintUpdatesProto&>(base);
2692#else // PROTOBUF_CUSTOM_VTABLE
2693::uint8_t* PROTOBUF_NONNULL QuadraticConstraintUpdatesProto::_InternalSerialize(
2694 ::uint8_t* PROTOBUF_NONNULL target,
2695 ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const {
2696 const QuadraticConstraintUpdatesProto& this_ = *this;
2697#endif // PROTOBUF_CUSTOM_VTABLE
2698 if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) {
2699 this_.CheckHasBitConsistency();
2700 }
2701 // @@protoc_insertion_point(serialize_to_array_start:operations_research.math_opt.QuadraticConstraintUpdatesProto)
2702 ::uint32_t cached_has_bits = 0;
2703 (void)cached_has_bits;
2704
2705 cached_has_bits = this_._impl_._has_bits_[0];
2706 // repeated int64 deleted_constraint_ids = 1;
2707 if (CheckHasBitForRepeated(cached_has_bits, 0x00000001U)) {
2708 {
2709 int byte_size = this_._impl_._deleted_constraint_ids_cached_byte_size_.Get();
2710 if (byte_size > 0) {
2711 target = stream->WriteInt64Packed(
2712 1, this_._internal_deleted_constraint_ids(), byte_size, target);
2713 }
2714 }
2715 }
2716
2717 // map<int64, .operations_research.math_opt.QuadraticConstraintProto> new_constraints = 2;
2718 if (CheckHasBitForRepeated(cached_has_bits, 0x00000002U)) {
2719 if (!this_._internal_new_constraints().empty()) {
2720 using MapType = ::google::protobuf::Map<::int64_t, ::operations_research::math_opt::QuadraticConstraintProto>;
2721 using WireHelper = _pbi::MapEntryFuncs<::int64_t, ::operations_research::math_opt::QuadraticConstraintProto,
2722 _pbi::WireFormatLite::TYPE_INT64,
2723 _pbi::WireFormatLite::TYPE_MESSAGE>;
2724 const auto& field = this_._internal_new_constraints();
2725
2726 if (stream->IsSerializationDeterministic() && field.size() > 1) {
2727 for (const auto& entry : ::google::protobuf::internal::MapSorterFlat<MapType>(field)) {
2728 target = WireHelper::InternalSerialize(
2729 2, entry.first, entry.second, target, stream);
2730 }
2731 } else {
2732 for (const auto& entry : field) {
2733 target = WireHelper::InternalSerialize(
2734 2, entry.first, entry.second, target, stream);
2735 }
2736 }
2737 }
2738 }
2739
2740 if (ABSL_PREDICT_FALSE(this_._internal_metadata_.have_unknown_fields())) {
2741 target =
2742 ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray(
2743 this_._internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream);
2744 }
2745 // @@protoc_insertion_point(serialize_to_array_end:operations_research.math_opt.QuadraticConstraintUpdatesProto)
2746 return target;
2747}
2748
2749#if defined(PROTOBUF_CUSTOM_VTABLE)
2751 const QuadraticConstraintUpdatesProto& this_ = static_cast<const QuadraticConstraintUpdatesProto&>(base);
2752#else // PROTOBUF_CUSTOM_VTABLE
2754 const QuadraticConstraintUpdatesProto& this_ = *this;
2755#endif // PROTOBUF_CUSTOM_VTABLE
2756 // @@protoc_insertion_point(message_byte_size_start:operations_research.math_opt.QuadraticConstraintUpdatesProto)
2757 ::size_t total_size = 0;
2758
2759 ::uint32_t cached_has_bits = 0;
2760 // Prevent compiler warnings about cached_has_bits being unused
2761 (void)cached_has_bits;
2762
2763 ::_pbi::Prefetch5LinesFrom7Lines(&this_);
2764 cached_has_bits = this_._impl_._has_bits_[0];
2765 if (BatchCheckHasBit(cached_has_bits, 0x00000003U)) {
2766 // repeated int64 deleted_constraint_ids = 1;
2767 if (CheckHasBitForRepeated(cached_has_bits, 0x00000001U)) {
2768 total_size +=
2769 ::_pbi::WireFormatLite::Int64SizeWithPackedTagSize(
2770 this_._internal_deleted_constraint_ids(), 1,
2771 this_._impl_._deleted_constraint_ids_cached_byte_size_);
2772 }
2773 // map<int64, .operations_research.math_opt.QuadraticConstraintProto> new_constraints = 2;
2774 if (CheckHasBitForRepeated(cached_has_bits, 0x00000002U)) {
2775 total_size +=
2776 1 * ::google::protobuf::internal::FromIntSize(this_._internal_new_constraints_size());
2777 for (const auto& entry : this_._internal_new_constraints()) {
2778 total_size += _pbi::MapEntryFuncs<::int64_t, ::operations_research::math_opt::QuadraticConstraintProto,
2779 _pbi::WireFormatLite::TYPE_INT64,
2780 _pbi::WireFormatLite::TYPE_MESSAGE>::ByteSizeLong(entry.first, entry.second);
2781 }
2782 }
2783 }
2784 return this_.MaybeComputeUnknownFieldsSize(total_size,
2785 &this_._impl_._cached_size_);
2786}
2787
2788void QuadraticConstraintUpdatesProto::MergeImpl(::google::protobuf::MessageLite& to_msg,
2789 const ::google::protobuf::MessageLite& from_msg) {
2790 auto* const _this =
2791 static_cast<QuadraticConstraintUpdatesProto*>(&to_msg);
2792 auto& from = static_cast<const QuadraticConstraintUpdatesProto&>(from_msg);
2793 if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) {
2794 from.CheckHasBitConsistency();
2795 }
2796 // @@protoc_insertion_point(class_specific_merge_from_start:operations_research.math_opt.QuadraticConstraintUpdatesProto)
2797 ABSL_DCHECK_NE(&from, _this);
2798 ::uint32_t cached_has_bits = 0;
2799 (void)cached_has_bits;
2800
2801 cached_has_bits = from._impl_._has_bits_[0];
2802 if (BatchCheckHasBit(cached_has_bits, 0x00000003U)) {
2803 if (CheckHasBitForRepeated(cached_has_bits, 0x00000001U)) {
2804 _this->_internal_mutable_deleted_constraint_ids()->MergeFrom(from._internal_deleted_constraint_ids());
2805 }
2806 if (CheckHasBitForRepeated(cached_has_bits, 0x00000002U)) {
2807 _this->_impl_.new_constraints_.MergeFrom(from._impl_.new_constraints_);
2808 }
2809 }
2810 _this->_impl_._has_bits_[0] |= cached_has_bits;
2811 _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(
2812 from._internal_metadata_);
2813}
2814
2816 // @@protoc_insertion_point(class_specific_copy_from_start:operations_research.math_opt.QuadraticConstraintUpdatesProto)
2817 if (&from == this) return;
2818 Clear();
2819 MergeFrom(from);
2820}
2821
2822
2823void QuadraticConstraintUpdatesProto::InternalSwap(QuadraticConstraintUpdatesProto* PROTOBUF_RESTRICT PROTOBUF_NONNULL other) {
2824 using ::std::swap;
2825 _internal_metadata_.InternalSwap(&other->_internal_metadata_);
2826 swap(_impl_._has_bits_[0], other->_impl_._has_bits_[0]);
2827 _impl_.deleted_constraint_ids_.InternalSwap(&other->_impl_.deleted_constraint_ids_);
2828 _impl_.new_constraints_.InternalSwap(&other->_impl_.new_constraints_);
2829}
2830
2831::google::protobuf::Metadata QuadraticConstraintUpdatesProto::GetMetadata() const {
2832 return ::google::protobuf::Message::GetMetadataImpl(GetClassData()->full());
2833}
2834// ===================================================================
2835
2836#if defined(PROTOBUF_CUSTOM_VTABLE)
2844#endif // PROTOBUF_CUSTOM_VTABLE
2845inline void* PROTOBUF_NONNULL SecondOrderConeConstraintUpdatesProto_NewConstraintsEntry_DoNotUse::PlacementNew_(
2846 const void* PROTOBUF_NONNULL, void* PROTOBUF_NONNULL mem,
2847 ::google::protobuf::Arena* PROTOBUF_NULLABLE arena) {
2849}
2850constexpr auto SecondOrderConeConstraintUpdatesProto_NewConstraintsEntry_DoNotUse::InternalNewImpl_() {
2851 return ::google::protobuf::internal::MessageCreator::ZeroInit(sizeof(SecondOrderConeConstraintUpdatesProto_NewConstraintsEntry_DoNotUse),
2853}
2855 return ::google::protobuf::internal::ClassDataFull{
2856 ::google::protobuf::internal::ClassData{
2858 &_table_.header,
2859 nullptr, // OnDemandRegisterArenaDtor
2860 nullptr, // IsInitialized
2861 &SecondOrderConeConstraintUpdatesProto_NewConstraintsEntry_DoNotUse::MergeImpl,
2862 ::google::protobuf::Message::GetNewImpl<SecondOrderConeConstraintUpdatesProto_NewConstraintsEntry_DoNotUse>(),
2863#if defined(PROTOBUF_CUSTOM_VTABLE)
2864 &SecondOrderConeConstraintUpdatesProto_NewConstraintsEntry_DoNotUse::SharedDtor,
2865 static_cast<void (::google::protobuf::MessageLite::*)()>(&SecondOrderConeConstraintUpdatesProto_NewConstraintsEntry_DoNotUse::ClearImpl),
2866 ::google::protobuf::Message::ByteSizeLongImpl, ::google::protobuf::Message::_InternalSerializeImpl
2867 ,
2868#endif // PROTOBUF_CUSTOM_VTABLE
2869 PROTOBUF_FIELD_OFFSET(SecondOrderConeConstraintUpdatesProto_NewConstraintsEntry_DoNotUse, _impl_._cached_size_),
2870 false,
2871 },
2872 &SecondOrderConeConstraintUpdatesProto_NewConstraintsEntry_DoNotUse::kDescriptorMethods,
2874 nullptr, // tracker
2875 };
2876}
2877
2878PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 const
2879 ::google::protobuf::internal::ClassDataFull SecondOrderConeConstraintUpdatesProto_NewConstraintsEntry_DoNotUse_class_data_ =
2881
2882PROTOBUF_ATTRIBUTE_WEAK const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL
2883SecondOrderConeConstraintUpdatesProto_NewConstraintsEntry_DoNotUse::GetClassData() const {
2884 ::google::protobuf::internal::PrefetchToLocalCache(&SecondOrderConeConstraintUpdatesProto_NewConstraintsEntry_DoNotUse_class_data_);
2885 ::google::protobuf::internal::PrefetchToLocalCache(SecondOrderConeConstraintUpdatesProto_NewConstraintsEntry_DoNotUse_class_data_.tc_table);
2887}
2888PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1
2889const ::_pbi::TcParseTable<1, 2, 1, 0, 2>
2890SecondOrderConeConstraintUpdatesProto_NewConstraintsEntry_DoNotUse::_table_ = {
2891 {
2892 PROTOBUF_FIELD_OFFSET(SecondOrderConeConstraintUpdatesProto_NewConstraintsEntry_DoNotUse, _impl_._has_bits_),
2893 0, // no _extensions_
2894 2, 8, // max_field_number, fast_idx_mask
2895 offsetof(decltype(_table_), field_lookup_table),
2896 4294967292, // skipmap
2897 offsetof(decltype(_table_), field_entries),
2898 2, // num_field_entries
2899 1, // num_aux_entries
2900 offsetof(decltype(_table_), aux_entries),
2902 nullptr, // post_loop_handler
2903 ::_pbi::TcParser::DiscardEverythingFallback, // fallback
2904 #ifdef PROTOBUF_PREFETCH_PARSE_TABLE
2905 ::_pbi::TcParser::GetTable<::operations_research::math_opt::SecondOrderConeConstraintUpdatesProto_NewConstraintsEntry_DoNotUse>(), // to_prefetch
2906 #endif // PROTOBUF_PREFETCH_PARSE_TABLE
2907 }, {{
2908 // .operations_research.math_opt.SecondOrderConeConstraintProto value = 2;
2909 {::_pbi::TcParser::FastMtS1,
2910 {18, 0, 0,
2911 PROTOBUF_FIELD_OFFSET(SecondOrderConeConstraintUpdatesProto_NewConstraintsEntry_DoNotUse, _impl_.value_)}},
2912 // int64 key = 1;
2913 {::_pbi::TcParser::SingularVarintNoZag1<::uint64_t, offsetof(SecondOrderConeConstraintUpdatesProto_NewConstraintsEntry_DoNotUse, _impl_.key_), 1>(),
2914 {8, 1, 0,
2915 PROTOBUF_FIELD_OFFSET(SecondOrderConeConstraintUpdatesProto_NewConstraintsEntry_DoNotUse, _impl_.key_)}},
2916 }}, {{
2917 65535, 65535
2918 }}, {{
2919 // int64 key = 1;
2920 {PROTOBUF_FIELD_OFFSET(SecondOrderConeConstraintUpdatesProto_NewConstraintsEntry_DoNotUse, _impl_.key_), _Internal::kHasBitsOffset + 1, 0, (0 | ::_fl::kFcOptional | ::_fl::kInt64)},
2921 // .operations_research.math_opt.SecondOrderConeConstraintProto value = 2;
2922 {PROTOBUF_FIELD_OFFSET(SecondOrderConeConstraintUpdatesProto_NewConstraintsEntry_DoNotUse, _impl_.value_), _Internal::kHasBitsOffset + 0, 0, (0 | ::_fl::kFcOptional | ::_fl::kMessage | ::_fl::kTvTable)},
2923 }},
2924 {{
2925 {::_pbi::TcParser::GetTable<::operations_research::math_opt::SecondOrderConeConstraintProto>()},
2926 }},
2927 {{
2928 }},
2929};
2930// ===================================================================
2931
2932class SecondOrderConeConstraintUpdatesProto::_Internal {
2933 public:
2934 using HasBits =
2935 decltype(::std::declval<SecondOrderConeConstraintUpdatesProto>()._impl_._has_bits_);
2936 static constexpr ::int32_t kHasBitsOffset =
2937 8 * PROTOBUF_FIELD_OFFSET(SecondOrderConeConstraintUpdatesProto, _impl_._has_bits_);
2938};
2939
2941 ::google::protobuf::internal::TSanWrite(&_impl_);
2942 _impl_.new_constraints_.Clear();
2943 ClearHasBitForRepeated(_impl_._has_bits_[0],
2944 0x00000002U);
2945}
2947#if defined(PROTOBUF_CUSTOM_VTABLE)
2948 : ::google::protobuf::Message(arena, SecondOrderConeConstraintUpdatesProto_class_data_.base()) {
2949#else // PROTOBUF_CUSTOM_VTABLE
2950 : ::google::protobuf::Message(arena) {
2951#endif // PROTOBUF_CUSTOM_VTABLE
2952 SharedCtor(arena);
2953 // @@protoc_insertion_point(arena_constructor:operations_research.math_opt.SecondOrderConeConstraintUpdatesProto)
2954}
2955PROTOBUF_NDEBUG_INLINE SecondOrderConeConstraintUpdatesProto::Impl_::Impl_(
2956 [[maybe_unused]] ::google::protobuf::internal::InternalVisibility visibility,
2957 [[maybe_unused]] ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const Impl_& from,
2958 [[maybe_unused]] const ::operations_research::math_opt::SecondOrderConeConstraintUpdatesProto& from_msg)
2959 : _has_bits_{from._has_bits_},
2960 _cached_size_{0},
2961 deleted_constraint_ids_{visibility, arena, from.deleted_constraint_ids_},
2962 _deleted_constraint_ids_cached_byte_size_{0},
2963 new_constraints_{visibility, arena, from.new_constraints_} {}
2964
2966 ::google::protobuf::Arena* PROTOBUF_NULLABLE arena,
2967 const SecondOrderConeConstraintUpdatesProto& from)
2968#if defined(PROTOBUF_CUSTOM_VTABLE)
2969 : ::google::protobuf::Message(arena, SecondOrderConeConstraintUpdatesProto_class_data_.base()) {
2970#else // PROTOBUF_CUSTOM_VTABLE
2971 : ::google::protobuf::Message(arena) {
2972#endif // PROTOBUF_CUSTOM_VTABLE
2973 SecondOrderConeConstraintUpdatesProto* const _this = this;
2974 (void)_this;
2975 _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(
2976 from._internal_metadata_);
2977 new (&_impl_) Impl_(internal_visibility(), arena, from._impl_, from);
2978
2979 // @@protoc_insertion_point(copy_constructor:operations_research.math_opt.SecondOrderConeConstraintUpdatesProto)
2980}
2981PROTOBUF_NDEBUG_INLINE SecondOrderConeConstraintUpdatesProto::Impl_::Impl_(
2982 [[maybe_unused]] ::google::protobuf::internal::InternalVisibility visibility,
2983 [[maybe_unused]] ::google::protobuf::Arena* PROTOBUF_NULLABLE arena)
2984 : _cached_size_{0},
2985 deleted_constraint_ids_{visibility, arena},
2986 _deleted_constraint_ids_cached_byte_size_{0},
2987 new_constraints_{visibility, arena} {}
2988
2989inline void SecondOrderConeConstraintUpdatesProto::SharedCtor(::_pb::Arena* PROTOBUF_NULLABLE arena) {
2990 new (&_impl_) Impl_(internal_visibility(), arena);
2991}
2993 // @@protoc_insertion_point(destructor:operations_research.math_opt.SecondOrderConeConstraintUpdatesProto)
2994 SharedDtor(*this);
2995}
2996inline void SecondOrderConeConstraintUpdatesProto::SharedDtor(MessageLite& self) {
2998 if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) {
2999 this_.CheckHasBitConsistency();
3000 }
3001 this_._internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>();
3002 ABSL_DCHECK(this_.GetArena() == nullptr);
3003 this_._impl_.~Impl_();
3004}
3005
3006inline void* PROTOBUF_NONNULL SecondOrderConeConstraintUpdatesProto::PlacementNew_(
3007 const void* PROTOBUF_NONNULL, void* PROTOBUF_NONNULL mem,
3008 ::google::protobuf::Arena* PROTOBUF_NULLABLE arena) {
3009 return ::new (mem) SecondOrderConeConstraintUpdatesProto(arena);
3010}
3011constexpr auto SecondOrderConeConstraintUpdatesProto::InternalNewImpl_() {
3012 constexpr auto arena_bits = ::google::protobuf::internal::EncodePlacementArenaOffsets({
3013 PROTOBUF_FIELD_OFFSET(SecondOrderConeConstraintUpdatesProto, _impl_.deleted_constraint_ids_) +
3014 decltype(SecondOrderConeConstraintUpdatesProto::_impl_.deleted_constraint_ids_)::
3015 InternalGetArenaOffset(
3016 ::google::protobuf::Message::internal_visibility()),
3017 PROTOBUF_FIELD_OFFSET(SecondOrderConeConstraintUpdatesProto, _impl_.new_constraints_) +
3018 decltype(SecondOrderConeConstraintUpdatesProto::_impl_.new_constraints_)::
3019 InternalGetArenaOffset(
3020 ::google::protobuf::Message::internal_visibility()),
3021 });
3022 if (arena_bits.has_value()) {
3023 return ::google::protobuf::internal::MessageCreator::CopyInit(
3024 sizeof(SecondOrderConeConstraintUpdatesProto), alignof(SecondOrderConeConstraintUpdatesProto), *arena_bits);
3025 } else {
3026 return ::google::protobuf::internal::MessageCreator(&SecondOrderConeConstraintUpdatesProto::PlacementNew_,
3027 sizeof(SecondOrderConeConstraintUpdatesProto),
3028 alignof(SecondOrderConeConstraintUpdatesProto));
3029 }
3030}
3032 return ::google::protobuf::internal::ClassDataFull{
3033 ::google::protobuf::internal::ClassData{
3035 &_table_.header,
3036 nullptr, // OnDemandRegisterArenaDtor
3037 nullptr, // IsInitialized
3038 &SecondOrderConeConstraintUpdatesProto::MergeImpl,
3039 ::google::protobuf::Message::GetNewImpl<SecondOrderConeConstraintUpdatesProto>(),
3040#if defined(PROTOBUF_CUSTOM_VTABLE)
3041 &SecondOrderConeConstraintUpdatesProto::SharedDtor,
3042 ::google::protobuf::Message::GetClearImpl<SecondOrderConeConstraintUpdatesProto>(), &SecondOrderConeConstraintUpdatesProto::ByteSizeLong,
3044#endif // PROTOBUF_CUSTOM_VTABLE
3045 PROTOBUF_FIELD_OFFSET(SecondOrderConeConstraintUpdatesProto, _impl_._cached_size_),
3046 false,
3047 },
3048 &SecondOrderConeConstraintUpdatesProto::kDescriptorMethods,
3050 nullptr, // tracker
3051 };
3052}
3053
3054PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 const
3055 ::google::protobuf::internal::ClassDataFull SecondOrderConeConstraintUpdatesProto_class_data_ =
3057
3058PROTOBUF_ATTRIBUTE_WEAK const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL
3059SecondOrderConeConstraintUpdatesProto::GetClassData() const {
3060 ::google::protobuf::internal::PrefetchToLocalCache(&SecondOrderConeConstraintUpdatesProto_class_data_);
3061 ::google::protobuf::internal::PrefetchToLocalCache(SecondOrderConeConstraintUpdatesProto_class_data_.tc_table);
3063}
3064PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1
3065const ::_pbi::TcParseTable<0, 2, 2, 0, 2>
3066SecondOrderConeConstraintUpdatesProto::_table_ = {
3067 {
3068 PROTOBUF_FIELD_OFFSET(SecondOrderConeConstraintUpdatesProto, _impl_._has_bits_),
3069 0, // no _extensions_
3070 2, 0, // max_field_number, fast_idx_mask
3071 offsetof(decltype(_table_), field_lookup_table),
3072 4294967292, // skipmap
3073 offsetof(decltype(_table_), field_entries),
3074 2, // num_field_entries
3075 2, // num_aux_entries
3076 offsetof(decltype(_table_), aux_entries),
3078 nullptr, // post_loop_handler
3079 ::_pbi::TcParser::GenericFallback, // fallback
3080 #ifdef PROTOBUF_PREFETCH_PARSE_TABLE
3081 ::_pbi::TcParser::GetTable<::operations_research::math_opt::SecondOrderConeConstraintUpdatesProto>(), // to_prefetch
3082 #endif // PROTOBUF_PREFETCH_PARSE_TABLE
3083 }, {{
3084 // repeated int64 deleted_constraint_ids = 1;
3085 {::_pbi::TcParser::FastV64P1,
3086 {10, 0, 0,
3087 PROTOBUF_FIELD_OFFSET(SecondOrderConeConstraintUpdatesProto, _impl_.deleted_constraint_ids_)}},
3088 }}, {{
3089 65535, 65535
3090 }}, {{
3091 // repeated int64 deleted_constraint_ids = 1;
3092 {PROTOBUF_FIELD_OFFSET(SecondOrderConeConstraintUpdatesProto, _impl_.deleted_constraint_ids_), _Internal::kHasBitsOffset + 0, 0, (0 | ::_fl::kFcRepeated | ::_fl::kPackedInt64)},
3093 // map<int64, .operations_research.math_opt.SecondOrderConeConstraintProto> new_constraints = 2;
3094 {PROTOBUF_FIELD_OFFSET(SecondOrderConeConstraintUpdatesProto, _impl_.new_constraints_), _Internal::kHasBitsOffset + 1, 0, (0 | ::_fl::kFcRepeated | ::_fl::kMap)},
3095 }},
3096 {{
3097 {::_pbi::TcParser::GetMapAuxInfo(
3098 0, 0, 3, 11, 0)},
3099 {::_pbi::TcParser::GetTable<::operations_research::math_opt::SecondOrderConeConstraintProto>()},
3100 }},
3101 {{
3102 }},
3103};
3104PROTOBUF_NOINLINE void SecondOrderConeConstraintUpdatesProto::Clear() {
3105// @@protoc_insertion_point(message_clear_start:operations_research.math_opt.SecondOrderConeConstraintUpdatesProto)
3106 ::google::protobuf::internal::TSanWrite(&_impl_);
3107 ::uint32_t cached_has_bits = 0;
3108 // Prevent compiler warnings about cached_has_bits being unused
3109 (void) cached_has_bits;
3110
3111 cached_has_bits = _impl_._has_bits_[0];
3112 if (BatchCheckHasBit(cached_has_bits, 0x00000003U)) {
3113 if (CheckHasBitForRepeated(cached_has_bits, 0x00000001U)) {
3114 _impl_.deleted_constraint_ids_.Clear();
3115 }
3116 if (CheckHasBitForRepeated(cached_has_bits, 0x00000002U)) {
3117 _impl_.new_constraints_.Clear();
3118 }
3119 }
3120 _impl_._has_bits_.Clear();
3121 _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>();
3122}
3123
3124#if defined(PROTOBUF_CUSTOM_VTABLE)
3126 const ::google::protobuf::MessageLite& base, ::uint8_t* PROTOBUF_NONNULL target,
3127 ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) {
3129#else // PROTOBUF_CUSTOM_VTABLE
3131 ::uint8_t* PROTOBUF_NONNULL target,
3132 ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const {
3133 const SecondOrderConeConstraintUpdatesProto& this_ = *this;
3134#endif // PROTOBUF_CUSTOM_VTABLE
3135 if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) {
3136 this_.CheckHasBitConsistency();
3137 }
3138 // @@protoc_insertion_point(serialize_to_array_start:operations_research.math_opt.SecondOrderConeConstraintUpdatesProto)
3139 ::uint32_t cached_has_bits = 0;
3140 (void)cached_has_bits;
3141
3142 cached_has_bits = this_._impl_._has_bits_[0];
3143 // repeated int64 deleted_constraint_ids = 1;
3144 if (CheckHasBitForRepeated(cached_has_bits, 0x00000001U)) {
3145 {
3146 int byte_size = this_._impl_._deleted_constraint_ids_cached_byte_size_.Get();
3147 if (byte_size > 0) {
3148 target = stream->WriteInt64Packed(
3149 1, this_._internal_deleted_constraint_ids(), byte_size, target);
3150 }
3151 }
3152 }
3153
3154 // map<int64, .operations_research.math_opt.SecondOrderConeConstraintProto> new_constraints = 2;
3155 if (CheckHasBitForRepeated(cached_has_bits, 0x00000002U)) {
3156 if (!this_._internal_new_constraints().empty()) {
3157 using MapType = ::google::protobuf::Map<::int64_t, ::operations_research::math_opt::SecondOrderConeConstraintProto>;
3158 using WireHelper = _pbi::MapEntryFuncs<::int64_t, ::operations_research::math_opt::SecondOrderConeConstraintProto,
3159 _pbi::WireFormatLite::TYPE_INT64,
3160 _pbi::WireFormatLite::TYPE_MESSAGE>;
3161 const auto& field = this_._internal_new_constraints();
3162
3163 if (stream->IsSerializationDeterministic() && field.size() > 1) {
3164 for (const auto& entry : ::google::protobuf::internal::MapSorterFlat<MapType>(field)) {
3165 target = WireHelper::InternalSerialize(
3166 2, entry.first, entry.second, target, stream);
3167 }
3168 } else {
3169 for (const auto& entry : field) {
3170 target = WireHelper::InternalSerialize(
3171 2, entry.first, entry.second, target, stream);
3172 }
3173 }
3174 }
3175 }
3176
3177 if (ABSL_PREDICT_FALSE(this_._internal_metadata_.have_unknown_fields())) {
3178 target =
3179 ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray(
3180 this_._internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream);
3181 }
3182 // @@protoc_insertion_point(serialize_to_array_end:operations_research.math_opt.SecondOrderConeConstraintUpdatesProto)
3183 return target;
3184}
3185
3186#if defined(PROTOBUF_CUSTOM_VTABLE)
3189#else // PROTOBUF_CUSTOM_VTABLE
3191 const SecondOrderConeConstraintUpdatesProto& this_ = *this;
3192#endif // PROTOBUF_CUSTOM_VTABLE
3193 // @@protoc_insertion_point(message_byte_size_start:operations_research.math_opt.SecondOrderConeConstraintUpdatesProto)
3194 ::size_t total_size = 0;
3195
3196 ::uint32_t cached_has_bits = 0;
3197 // Prevent compiler warnings about cached_has_bits being unused
3198 (void)cached_has_bits;
3199
3200 ::_pbi::Prefetch5LinesFrom7Lines(&this_);
3201 cached_has_bits = this_._impl_._has_bits_[0];
3202 if (BatchCheckHasBit(cached_has_bits, 0x00000003U)) {
3203 // repeated int64 deleted_constraint_ids = 1;
3204 if (CheckHasBitForRepeated(cached_has_bits, 0x00000001U)) {
3205 total_size +=
3206 ::_pbi::WireFormatLite::Int64SizeWithPackedTagSize(
3207 this_._internal_deleted_constraint_ids(), 1,
3208 this_._impl_._deleted_constraint_ids_cached_byte_size_);
3209 }
3210 // map<int64, .operations_research.math_opt.SecondOrderConeConstraintProto> new_constraints = 2;
3211 if (CheckHasBitForRepeated(cached_has_bits, 0x00000002U)) {
3212 total_size +=
3213 1 * ::google::protobuf::internal::FromIntSize(this_._internal_new_constraints_size());
3214 for (const auto& entry : this_._internal_new_constraints()) {
3215 total_size += _pbi::MapEntryFuncs<::int64_t, ::operations_research::math_opt::SecondOrderConeConstraintProto,
3216 _pbi::WireFormatLite::TYPE_INT64,
3217 _pbi::WireFormatLite::TYPE_MESSAGE>::ByteSizeLong(entry.first, entry.second);
3218 }
3219 }
3220 }
3221 return this_.MaybeComputeUnknownFieldsSize(total_size,
3222 &this_._impl_._cached_size_);
3223}
3224
3225void SecondOrderConeConstraintUpdatesProto::MergeImpl(::google::protobuf::MessageLite& to_msg,
3226 const ::google::protobuf::MessageLite& from_msg) {
3227 auto* const _this =
3228 static_cast<SecondOrderConeConstraintUpdatesProto*>(&to_msg);
3229 auto& from = static_cast<const SecondOrderConeConstraintUpdatesProto&>(from_msg);
3230 if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) {
3231 from.CheckHasBitConsistency();
3232 }
3233 // @@protoc_insertion_point(class_specific_merge_from_start:operations_research.math_opt.SecondOrderConeConstraintUpdatesProto)
3234 ABSL_DCHECK_NE(&from, _this);
3235 ::uint32_t cached_has_bits = 0;
3236 (void)cached_has_bits;
3237
3238 cached_has_bits = from._impl_._has_bits_[0];
3239 if (BatchCheckHasBit(cached_has_bits, 0x00000003U)) {
3240 if (CheckHasBitForRepeated(cached_has_bits, 0x00000001U)) {
3241 _this->_internal_mutable_deleted_constraint_ids()->MergeFrom(from._internal_deleted_constraint_ids());
3242 }
3243 if (CheckHasBitForRepeated(cached_has_bits, 0x00000002U)) {
3244 _this->_impl_.new_constraints_.MergeFrom(from._impl_.new_constraints_);
3245 }
3246 }
3247 _this->_impl_._has_bits_[0] |= cached_has_bits;
3248 _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(
3249 from._internal_metadata_);
3250}
3251
3253 // @@protoc_insertion_point(class_specific_copy_from_start:operations_research.math_opt.SecondOrderConeConstraintUpdatesProto)
3254 if (&from == this) return;
3255 Clear();
3256 MergeFrom(from);
3257}
3258
3259
3260void SecondOrderConeConstraintUpdatesProto::InternalSwap(SecondOrderConeConstraintUpdatesProto* PROTOBUF_RESTRICT PROTOBUF_NONNULL other) {
3261 using ::std::swap;
3262 _internal_metadata_.InternalSwap(&other->_internal_metadata_);
3263 swap(_impl_._has_bits_[0], other->_impl_._has_bits_[0]);
3264 _impl_.deleted_constraint_ids_.InternalSwap(&other->_impl_.deleted_constraint_ids_);
3265 _impl_.new_constraints_.InternalSwap(&other->_impl_.new_constraints_);
3266}
3267
3268::google::protobuf::Metadata SecondOrderConeConstraintUpdatesProto::GetMetadata() const {
3269 return ::google::protobuf::Message::GetMetadataImpl(GetClassData()->full());
3270}
3271// ===================================================================
3272
3273#if defined(PROTOBUF_CUSTOM_VTABLE)
3281#endif // PROTOBUF_CUSTOM_VTABLE
3282inline void* PROTOBUF_NONNULL SosConstraintUpdatesProto_NewConstraintsEntry_DoNotUse::PlacementNew_(
3283 const void* PROTOBUF_NONNULL, void* PROTOBUF_NONNULL mem,
3284 ::google::protobuf::Arena* PROTOBUF_NULLABLE arena) {
3286}
3287constexpr auto SosConstraintUpdatesProto_NewConstraintsEntry_DoNotUse::InternalNewImpl_() {
3288 return ::google::protobuf::internal::MessageCreator::ZeroInit(sizeof(SosConstraintUpdatesProto_NewConstraintsEntry_DoNotUse),
3292 return ::google::protobuf::internal::ClassDataFull{
3293 ::google::protobuf::internal::ClassData{
3295 &_table_.header,
3296 nullptr, // OnDemandRegisterArenaDtor
3297 nullptr, // IsInitialized
3298 &SosConstraintUpdatesProto_NewConstraintsEntry_DoNotUse::MergeImpl,
3299 ::google::protobuf::Message::GetNewImpl<SosConstraintUpdatesProto_NewConstraintsEntry_DoNotUse>(),
3300#if defined(PROTOBUF_CUSTOM_VTABLE)
3301 &SosConstraintUpdatesProto_NewConstraintsEntry_DoNotUse::SharedDtor,
3302 static_cast<void (::google::protobuf::MessageLite::*)()>(&SosConstraintUpdatesProto_NewConstraintsEntry_DoNotUse::ClearImpl),
3303 ::google::protobuf::Message::ByteSizeLongImpl, ::google::protobuf::Message::_InternalSerializeImpl
3304 ,
3305#endif // PROTOBUF_CUSTOM_VTABLE
3306 PROTOBUF_FIELD_OFFSET(SosConstraintUpdatesProto_NewConstraintsEntry_DoNotUse, _impl_._cached_size_),
3307 false,
3308 },
3309 &SosConstraintUpdatesProto_NewConstraintsEntry_DoNotUse::kDescriptorMethods,
3311 nullptr, // tracker
3312 };
3313}
3314
3315PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 const
3316 ::google::protobuf::internal::ClassDataFull SosConstraintUpdatesProto_NewConstraintsEntry_DoNotUse_class_data_ =
3318
3319PROTOBUF_ATTRIBUTE_WEAK const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL
3320SosConstraintUpdatesProto_NewConstraintsEntry_DoNotUse::GetClassData() const {
3321 ::google::protobuf::internal::PrefetchToLocalCache(&SosConstraintUpdatesProto_NewConstraintsEntry_DoNotUse_class_data_);
3322 ::google::protobuf::internal::PrefetchToLocalCache(SosConstraintUpdatesProto_NewConstraintsEntry_DoNotUse_class_data_.tc_table);
3324}
3325PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1
3326const ::_pbi::TcParseTable<1, 2, 1, 0, 2>
3327SosConstraintUpdatesProto_NewConstraintsEntry_DoNotUse::_table_ = {
3328 {
3329 PROTOBUF_FIELD_OFFSET(SosConstraintUpdatesProto_NewConstraintsEntry_DoNotUse, _impl_._has_bits_),
3330 0, // no _extensions_
3331 2, 8, // max_field_number, fast_idx_mask
3332 offsetof(decltype(_table_), field_lookup_table),
3333 4294967292, // skipmap
3334 offsetof(decltype(_table_), field_entries),
3335 2, // num_field_entries
3336 1, // num_aux_entries
3337 offsetof(decltype(_table_), aux_entries),
3339 nullptr, // post_loop_handler
3340 ::_pbi::TcParser::DiscardEverythingFallback, // fallback
3341 #ifdef PROTOBUF_PREFETCH_PARSE_TABLE
3342 ::_pbi::TcParser::GetTable<::operations_research::math_opt::SosConstraintUpdatesProto_NewConstraintsEntry_DoNotUse>(), // to_prefetch
3343 #endif // PROTOBUF_PREFETCH_PARSE_TABLE
3344 }, {{
3345 // .operations_research.math_opt.SosConstraintProto value = 2;
3346 {::_pbi::TcParser::FastMtS1,
3347 {18, 0, 0,
3348 PROTOBUF_FIELD_OFFSET(SosConstraintUpdatesProto_NewConstraintsEntry_DoNotUse, _impl_.value_)}},
3349 // int64 key = 1;
3350 {::_pbi::TcParser::SingularVarintNoZag1<::uint64_t, offsetof(SosConstraintUpdatesProto_NewConstraintsEntry_DoNotUse, _impl_.key_), 1>(),
3351 {8, 1, 0,
3352 PROTOBUF_FIELD_OFFSET(SosConstraintUpdatesProto_NewConstraintsEntry_DoNotUse, _impl_.key_)}},
3353 }}, {{
3354 65535, 65535
3355 }}, {{
3356 // int64 key = 1;
3357 {PROTOBUF_FIELD_OFFSET(SosConstraintUpdatesProto_NewConstraintsEntry_DoNotUse, _impl_.key_), _Internal::kHasBitsOffset + 1, 0, (0 | ::_fl::kFcOptional | ::_fl::kInt64)},
3358 // .operations_research.math_opt.SosConstraintProto value = 2;
3359 {PROTOBUF_FIELD_OFFSET(SosConstraintUpdatesProto_NewConstraintsEntry_DoNotUse, _impl_.value_), _Internal::kHasBitsOffset + 0, 0, (0 | ::_fl::kFcOptional | ::_fl::kMessage | ::_fl::kTvTable)},
3360 }},
3361 {{
3362 {::_pbi::TcParser::GetTable<::operations_research::math_opt::SosConstraintProto>()},
3363 }},
3364 {{
3365 }},
3366};
3367// ===================================================================
3368
3369class SosConstraintUpdatesProto::_Internal {
3370 public:
3371 using HasBits =
3372 decltype(::std::declval<SosConstraintUpdatesProto>()._impl_._has_bits_);
3373 static constexpr ::int32_t kHasBitsOffset =
3374 8 * PROTOBUF_FIELD_OFFSET(SosConstraintUpdatesProto, _impl_._has_bits_);
3375};
3376
3378 ::google::protobuf::internal::TSanWrite(&_impl_);
3379 _impl_.new_constraints_.Clear();
3380 ClearHasBitForRepeated(_impl_._has_bits_[0],
3381 0x00000002U);
3382}
3383SosConstraintUpdatesProto::SosConstraintUpdatesProto(::google::protobuf::Arena* PROTOBUF_NULLABLE arena)
3384#if defined(PROTOBUF_CUSTOM_VTABLE)
3385 : ::google::protobuf::Message(arena, SosConstraintUpdatesProto_class_data_.base()) {
3386#else // PROTOBUF_CUSTOM_VTABLE
3387 : ::google::protobuf::Message(arena) {
3388#endif // PROTOBUF_CUSTOM_VTABLE
3389 SharedCtor(arena);
3390 // @@protoc_insertion_point(arena_constructor:operations_research.math_opt.SosConstraintUpdatesProto)
3391}
3392PROTOBUF_NDEBUG_INLINE SosConstraintUpdatesProto::Impl_::Impl_(
3393 [[maybe_unused]] ::google::protobuf::internal::InternalVisibility visibility,
3394 [[maybe_unused]] ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const Impl_& from,
3395 [[maybe_unused]] const ::operations_research::math_opt::SosConstraintUpdatesProto& from_msg)
3396 : _has_bits_{from._has_bits_},
3397 _cached_size_{0},
3398 deleted_constraint_ids_{visibility, arena, from.deleted_constraint_ids_},
3399 _deleted_constraint_ids_cached_byte_size_{0},
3400 new_constraints_{visibility, arena, from.new_constraints_} {}
3401
3403 ::google::protobuf::Arena* PROTOBUF_NULLABLE arena,
3404 const SosConstraintUpdatesProto& from)
3405#if defined(PROTOBUF_CUSTOM_VTABLE)
3406 : ::google::protobuf::Message(arena, SosConstraintUpdatesProto_class_data_.base()) {
3407#else // PROTOBUF_CUSTOM_VTABLE
3408 : ::google::protobuf::Message(arena) {
3409#endif // PROTOBUF_CUSTOM_VTABLE
3410 SosConstraintUpdatesProto* const _this = this;
3411 (void)_this;
3412 _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(
3413 from._internal_metadata_);
3414 new (&_impl_) Impl_(internal_visibility(), arena, from._impl_, from);
3415
3416 // @@protoc_insertion_point(copy_constructor:operations_research.math_opt.SosConstraintUpdatesProto)
3417}
3418PROTOBUF_NDEBUG_INLINE SosConstraintUpdatesProto::Impl_::Impl_(
3419 [[maybe_unused]] ::google::protobuf::internal::InternalVisibility visibility,
3420 [[maybe_unused]] ::google::protobuf::Arena* PROTOBUF_NULLABLE arena)
3421 : _cached_size_{0},
3422 deleted_constraint_ids_{visibility, arena},
3423 _deleted_constraint_ids_cached_byte_size_{0},
3424 new_constraints_{visibility, arena} {}
3425
3426inline void SosConstraintUpdatesProto::SharedCtor(::_pb::Arena* PROTOBUF_NULLABLE arena) {
3427 new (&_impl_) Impl_(internal_visibility(), arena);
3428}
3430 // @@protoc_insertion_point(destructor:operations_research.math_opt.SosConstraintUpdatesProto)
3431 SharedDtor(*this);
3432}
3433inline void SosConstraintUpdatesProto::SharedDtor(MessageLite& self) {
3434 SosConstraintUpdatesProto& this_ = static_cast<SosConstraintUpdatesProto&>(self);
3435 if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) {
3436 this_.CheckHasBitConsistency();
3437 }
3438 this_._internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>();
3439 ABSL_DCHECK(this_.GetArena() == nullptr);
3440 this_._impl_.~Impl_();
3442
3443inline void* PROTOBUF_NONNULL SosConstraintUpdatesProto::PlacementNew_(
3444 const void* PROTOBUF_NONNULL, void* PROTOBUF_NONNULL mem,
3445 ::google::protobuf::Arena* PROTOBUF_NULLABLE arena) {
3446 return ::new (mem) SosConstraintUpdatesProto(arena);
3447}
3448constexpr auto SosConstraintUpdatesProto::InternalNewImpl_() {
3449 constexpr auto arena_bits = ::google::protobuf::internal::EncodePlacementArenaOffsets({
3450 PROTOBUF_FIELD_OFFSET(SosConstraintUpdatesProto, _impl_.deleted_constraint_ids_) +
3451 decltype(SosConstraintUpdatesProto::_impl_.deleted_constraint_ids_)::
3452 InternalGetArenaOffset(
3453 ::google::protobuf::Message::internal_visibility()),
3454 PROTOBUF_FIELD_OFFSET(SosConstraintUpdatesProto, _impl_.new_constraints_) +
3455 decltype(SosConstraintUpdatesProto::_impl_.new_constraints_)::
3456 InternalGetArenaOffset(
3457 ::google::protobuf::Message::internal_visibility()),
3458 });
3459 if (arena_bits.has_value()) {
3460 return ::google::protobuf::internal::MessageCreator::CopyInit(
3461 sizeof(SosConstraintUpdatesProto), alignof(SosConstraintUpdatesProto), *arena_bits);
3462 } else {
3463 return ::google::protobuf::internal::MessageCreator(&SosConstraintUpdatesProto::PlacementNew_,
3464 sizeof(SosConstraintUpdatesProto),
3465 alignof(SosConstraintUpdatesProto));
3466 }
3467}
3469 return ::google::protobuf::internal::ClassDataFull{
3470 ::google::protobuf::internal::ClassData{
3472 &_table_.header,
3473 nullptr, // OnDemandRegisterArenaDtor
3474 nullptr, // IsInitialized
3475 &SosConstraintUpdatesProto::MergeImpl,
3476 ::google::protobuf::Message::GetNewImpl<SosConstraintUpdatesProto>(),
3477#if defined(PROTOBUF_CUSTOM_VTABLE)
3478 &SosConstraintUpdatesProto::SharedDtor,
3479 ::google::protobuf::Message::GetClearImpl<SosConstraintUpdatesProto>(), &SosConstraintUpdatesProto::ByteSizeLong,
3481#endif // PROTOBUF_CUSTOM_VTABLE
3482 PROTOBUF_FIELD_OFFSET(SosConstraintUpdatesProto, _impl_._cached_size_),
3483 false,
3484 },
3485 &SosConstraintUpdatesProto::kDescriptorMethods,
3487 nullptr, // tracker
3488 };
3489}
3490
3491PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 const
3492 ::google::protobuf::internal::ClassDataFull SosConstraintUpdatesProto_class_data_ =
3494
3495PROTOBUF_ATTRIBUTE_WEAK const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL
3496SosConstraintUpdatesProto::GetClassData() const {
3497 ::google::protobuf::internal::PrefetchToLocalCache(&SosConstraintUpdatesProto_class_data_);
3498 ::google::protobuf::internal::PrefetchToLocalCache(SosConstraintUpdatesProto_class_data_.tc_table);
3500}
3501PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1
3502const ::_pbi::TcParseTable<0, 2, 2, 0, 2>
3503SosConstraintUpdatesProto::_table_ = {
3505 PROTOBUF_FIELD_OFFSET(SosConstraintUpdatesProto, _impl_._has_bits_),
3506 0, // no _extensions_
3507 2, 0, // max_field_number, fast_idx_mask
3508 offsetof(decltype(_table_), field_lookup_table),
3509 4294967292, // skipmap
3510 offsetof(decltype(_table_), field_entries),
3511 2, // num_field_entries
3512 2, // num_aux_entries
3513 offsetof(decltype(_table_), aux_entries),
3515 nullptr, // post_loop_handler
3516 ::_pbi::TcParser::GenericFallback, // fallback
3517 #ifdef PROTOBUF_PREFETCH_PARSE_TABLE
3518 ::_pbi::TcParser::GetTable<::operations_research::math_opt::SosConstraintUpdatesProto>(), // to_prefetch
3519 #endif // PROTOBUF_PREFETCH_PARSE_TABLE
3520 }, {{
3521 // repeated int64 deleted_constraint_ids = 1;
3522 {::_pbi::TcParser::FastV64P1,
3523 {10, 0, 0,
3524 PROTOBUF_FIELD_OFFSET(SosConstraintUpdatesProto, _impl_.deleted_constraint_ids_)}},
3525 }}, {{
3526 65535, 65535
3527 }}, {{
3528 // repeated int64 deleted_constraint_ids = 1;
3529 {PROTOBUF_FIELD_OFFSET(SosConstraintUpdatesProto, _impl_.deleted_constraint_ids_), _Internal::kHasBitsOffset + 0, 0, (0 | ::_fl::kFcRepeated | ::_fl::kPackedInt64)},
3530 // map<int64, .operations_research.math_opt.SosConstraintProto> new_constraints = 2;
3531 {PROTOBUF_FIELD_OFFSET(SosConstraintUpdatesProto, _impl_.new_constraints_), _Internal::kHasBitsOffset + 1, 0, (0 | ::_fl::kFcRepeated | ::_fl::kMap)},
3532 }},
3533 {{
3534 {::_pbi::TcParser::GetMapAuxInfo(
3535 0, 0, 3, 11, 0)},
3536 {::_pbi::TcParser::GetTable<::operations_research::math_opt::SosConstraintProto>()},
3537 }},
3538 {{
3539 }},
3540};
3541PROTOBUF_NOINLINE void SosConstraintUpdatesProto::Clear() {
3542// @@protoc_insertion_point(message_clear_start:operations_research.math_opt.SosConstraintUpdatesProto)
3543 ::google::protobuf::internal::TSanWrite(&_impl_);
3544 ::uint32_t cached_has_bits = 0;
3545 // Prevent compiler warnings about cached_has_bits being unused
3546 (void) cached_has_bits;
3547
3548 cached_has_bits = _impl_._has_bits_[0];
3549 if (BatchCheckHasBit(cached_has_bits, 0x00000003U)) {
3550 if (CheckHasBitForRepeated(cached_has_bits, 0x00000001U)) {
3551 _impl_.deleted_constraint_ids_.Clear();
3552 }
3553 if (CheckHasBitForRepeated(cached_has_bits, 0x00000002U)) {
3554 _impl_.new_constraints_.Clear();
3555 }
3556 }
3557 _impl_._has_bits_.Clear();
3558 _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>();
3559}
3560
3561#if defined(PROTOBUF_CUSTOM_VTABLE)
3562::uint8_t* PROTOBUF_NONNULL SosConstraintUpdatesProto::_InternalSerialize(
3563 const ::google::protobuf::MessageLite& base, ::uint8_t* PROTOBUF_NONNULL target,
3564 ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) {
3565 const SosConstraintUpdatesProto& this_ = static_cast<const SosConstraintUpdatesProto&>(base);
3566#else // PROTOBUF_CUSTOM_VTABLE
3567::uint8_t* PROTOBUF_NONNULL SosConstraintUpdatesProto::_InternalSerialize(
3568 ::uint8_t* PROTOBUF_NONNULL target,
3569 ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const {
3570 const SosConstraintUpdatesProto& this_ = *this;
3571#endif // PROTOBUF_CUSTOM_VTABLE
3572 if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) {
3573 this_.CheckHasBitConsistency();
3574 }
3575 // @@protoc_insertion_point(serialize_to_array_start:operations_research.math_opt.SosConstraintUpdatesProto)
3576 ::uint32_t cached_has_bits = 0;
3577 (void)cached_has_bits;
3578
3579 cached_has_bits = this_._impl_._has_bits_[0];
3580 // repeated int64 deleted_constraint_ids = 1;
3581 if (CheckHasBitForRepeated(cached_has_bits, 0x00000001U)) {
3582 {
3583 int byte_size = this_._impl_._deleted_constraint_ids_cached_byte_size_.Get();
3584 if (byte_size > 0) {
3585 target = stream->WriteInt64Packed(
3586 1, this_._internal_deleted_constraint_ids(), byte_size, target);
3587 }
3588 }
3589 }
3590
3591 // map<int64, .operations_research.math_opt.SosConstraintProto> new_constraints = 2;
3592 if (CheckHasBitForRepeated(cached_has_bits, 0x00000002U)) {
3593 if (!this_._internal_new_constraints().empty()) {
3594 using MapType = ::google::protobuf::Map<::int64_t, ::operations_research::math_opt::SosConstraintProto>;
3595 using WireHelper = _pbi::MapEntryFuncs<::int64_t, ::operations_research::math_opt::SosConstraintProto,
3596 _pbi::WireFormatLite::TYPE_INT64,
3597 _pbi::WireFormatLite::TYPE_MESSAGE>;
3598 const auto& field = this_._internal_new_constraints();
3599
3600 if (stream->IsSerializationDeterministic() && field.size() > 1) {
3601 for (const auto& entry : ::google::protobuf::internal::MapSorterFlat<MapType>(field)) {
3602 target = WireHelper::InternalSerialize(
3603 2, entry.first, entry.second, target, stream);
3604 }
3605 } else {
3606 for (const auto& entry : field) {
3607 target = WireHelper::InternalSerialize(
3608 2, entry.first, entry.second, target, stream);
3609 }
3610 }
3611 }
3612 }
3613
3614 if (ABSL_PREDICT_FALSE(this_._internal_metadata_.have_unknown_fields())) {
3615 target =
3616 ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray(
3617 this_._internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream);
3618 }
3619 // @@protoc_insertion_point(serialize_to_array_end:operations_research.math_opt.SosConstraintUpdatesProto)
3620 return target;
3621}
3622
3623#if defined(PROTOBUF_CUSTOM_VTABLE)
3625 const SosConstraintUpdatesProto& this_ = static_cast<const SosConstraintUpdatesProto&>(base);
3626#else // PROTOBUF_CUSTOM_VTABLE
3628 const SosConstraintUpdatesProto& this_ = *this;
3629#endif // PROTOBUF_CUSTOM_VTABLE
3630 // @@protoc_insertion_point(message_byte_size_start:operations_research.math_opt.SosConstraintUpdatesProto)
3631 ::size_t total_size = 0;
3632
3633 ::uint32_t cached_has_bits = 0;
3634 // Prevent compiler warnings about cached_has_bits being unused
3635 (void)cached_has_bits;
3636
3637 ::_pbi::Prefetch5LinesFrom7Lines(&this_);
3638 cached_has_bits = this_._impl_._has_bits_[0];
3639 if (BatchCheckHasBit(cached_has_bits, 0x00000003U)) {
3640 // repeated int64 deleted_constraint_ids = 1;
3641 if (CheckHasBitForRepeated(cached_has_bits, 0x00000001U)) {
3642 total_size +=
3643 ::_pbi::WireFormatLite::Int64SizeWithPackedTagSize(
3644 this_._internal_deleted_constraint_ids(), 1,
3645 this_._impl_._deleted_constraint_ids_cached_byte_size_);
3646 }
3647 // map<int64, .operations_research.math_opt.SosConstraintProto> new_constraints = 2;
3648 if (CheckHasBitForRepeated(cached_has_bits, 0x00000002U)) {
3649 total_size +=
3650 1 * ::google::protobuf::internal::FromIntSize(this_._internal_new_constraints_size());
3651 for (const auto& entry : this_._internal_new_constraints()) {
3652 total_size += _pbi::MapEntryFuncs<::int64_t, ::operations_research::math_opt::SosConstraintProto,
3653 _pbi::WireFormatLite::TYPE_INT64,
3654 _pbi::WireFormatLite::TYPE_MESSAGE>::ByteSizeLong(entry.first, entry.second);
3655 }
3656 }
3657 }
3658 return this_.MaybeComputeUnknownFieldsSize(total_size,
3659 &this_._impl_._cached_size_);
3660}
3661
3662void SosConstraintUpdatesProto::MergeImpl(::google::protobuf::MessageLite& to_msg,
3663 const ::google::protobuf::MessageLite& from_msg) {
3664 auto* const _this =
3665 static_cast<SosConstraintUpdatesProto*>(&to_msg);
3666 auto& from = static_cast<const SosConstraintUpdatesProto&>(from_msg);
3667 if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) {
3668 from.CheckHasBitConsistency();
3669 }
3670 // @@protoc_insertion_point(class_specific_merge_from_start:operations_research.math_opt.SosConstraintUpdatesProto)
3671 ABSL_DCHECK_NE(&from, _this);
3672 ::uint32_t cached_has_bits = 0;
3673 (void)cached_has_bits;
3674
3675 cached_has_bits = from._impl_._has_bits_[0];
3676 if (BatchCheckHasBit(cached_has_bits, 0x00000003U)) {
3677 if (CheckHasBitForRepeated(cached_has_bits, 0x00000001U)) {
3678 _this->_internal_mutable_deleted_constraint_ids()->MergeFrom(from._internal_deleted_constraint_ids());
3679 }
3680 if (CheckHasBitForRepeated(cached_has_bits, 0x00000002U)) {
3681 _this->_impl_.new_constraints_.MergeFrom(from._impl_.new_constraints_);
3682 }
3683 }
3684 _this->_impl_._has_bits_[0] |= cached_has_bits;
3685 _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(
3686 from._internal_metadata_);
3687}
3688
3690 // @@protoc_insertion_point(class_specific_copy_from_start:operations_research.math_opt.SosConstraintUpdatesProto)
3691 if (&from == this) return;
3692 Clear();
3693 MergeFrom(from);
3694}
3695
3696
3697void SosConstraintUpdatesProto::InternalSwap(SosConstraintUpdatesProto* PROTOBUF_RESTRICT PROTOBUF_NONNULL other) {
3698 using ::std::swap;
3699 _internal_metadata_.InternalSwap(&other->_internal_metadata_);
3700 swap(_impl_._has_bits_[0], other->_impl_._has_bits_[0]);
3701 _impl_.deleted_constraint_ids_.InternalSwap(&other->_impl_.deleted_constraint_ids_);
3702 _impl_.new_constraints_.InternalSwap(&other->_impl_.new_constraints_);
3703}
3704
3705::google::protobuf::Metadata SosConstraintUpdatesProto::GetMetadata() const {
3706 return ::google::protobuf::Message::GetMetadataImpl(GetClassData()->full());
3707}
3708// ===================================================================
3709
3710#if defined(PROTOBUF_CUSTOM_VTABLE)
3715#else // PROTOBUF_CUSTOM_VTABLE
3718#endif // PROTOBUF_CUSTOM_VTABLE
3719inline void* PROTOBUF_NONNULL IndicatorConstraintUpdatesProto_NewConstraintsEntry_DoNotUse::PlacementNew_(
3720 const void* PROTOBUF_NONNULL, void* PROTOBUF_NONNULL mem,
3721 ::google::protobuf::Arena* PROTOBUF_NULLABLE arena) {
3723}
3724constexpr auto IndicatorConstraintUpdatesProto_NewConstraintsEntry_DoNotUse::InternalNewImpl_() {
3725 return ::google::protobuf::internal::MessageCreator::ZeroInit(sizeof(IndicatorConstraintUpdatesProto_NewConstraintsEntry_DoNotUse),
3727}
3729 return ::google::protobuf::internal::ClassDataFull{
3730 ::google::protobuf::internal::ClassData{
3732 &_table_.header,
3733 nullptr, // OnDemandRegisterArenaDtor
3734 nullptr, // IsInitialized
3735 &IndicatorConstraintUpdatesProto_NewConstraintsEntry_DoNotUse::MergeImpl,
3736 ::google::protobuf::Message::GetNewImpl<IndicatorConstraintUpdatesProto_NewConstraintsEntry_DoNotUse>(),
3737#if defined(PROTOBUF_CUSTOM_VTABLE)
3738 &IndicatorConstraintUpdatesProto_NewConstraintsEntry_DoNotUse::SharedDtor,
3739 static_cast<void (::google::protobuf::MessageLite::*)()>(&IndicatorConstraintUpdatesProto_NewConstraintsEntry_DoNotUse::ClearImpl),
3740 ::google::protobuf::Message::ByteSizeLongImpl, ::google::protobuf::Message::_InternalSerializeImpl
3742#endif // PROTOBUF_CUSTOM_VTABLE
3743 PROTOBUF_FIELD_OFFSET(IndicatorConstraintUpdatesProto_NewConstraintsEntry_DoNotUse, _impl_._cached_size_),
3744 false,
3745 },
3746 &IndicatorConstraintUpdatesProto_NewConstraintsEntry_DoNotUse::kDescriptorMethods,
3748 nullptr, // tracker
3749 };
3750}
3751
3752PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 const
3753 ::google::protobuf::internal::ClassDataFull IndicatorConstraintUpdatesProto_NewConstraintsEntry_DoNotUse_class_data_ =
3755
3756PROTOBUF_ATTRIBUTE_WEAK const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL
3757IndicatorConstraintUpdatesProto_NewConstraintsEntry_DoNotUse::GetClassData() const {
3758 ::google::protobuf::internal::PrefetchToLocalCache(&IndicatorConstraintUpdatesProto_NewConstraintsEntry_DoNotUse_class_data_);
3759 ::google::protobuf::internal::PrefetchToLocalCache(IndicatorConstraintUpdatesProto_NewConstraintsEntry_DoNotUse_class_data_.tc_table);
3761}
3762PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1
3763const ::_pbi::TcParseTable<1, 2, 1, 0, 2>
3764IndicatorConstraintUpdatesProto_NewConstraintsEntry_DoNotUse::_table_ = {
3765 {
3766 PROTOBUF_FIELD_OFFSET(IndicatorConstraintUpdatesProto_NewConstraintsEntry_DoNotUse, _impl_._has_bits_),
3767 0, // no _extensions_
3768 2, 8, // max_field_number, fast_idx_mask
3769 offsetof(decltype(_table_), field_lookup_table),
3770 4294967292, // skipmap
3771 offsetof(decltype(_table_), field_entries),
3772 2, // num_field_entries
3773 1, // num_aux_entries
3774 offsetof(decltype(_table_), aux_entries),
3776 nullptr, // post_loop_handler
3777 ::_pbi::TcParser::DiscardEverythingFallback, // fallback
3778 #ifdef PROTOBUF_PREFETCH_PARSE_TABLE
3779 ::_pbi::TcParser::GetTable<::operations_research::math_opt::IndicatorConstraintUpdatesProto_NewConstraintsEntry_DoNotUse>(), // to_prefetch
3780 #endif // PROTOBUF_PREFETCH_PARSE_TABLE
3781 }, {{
3782 // .operations_research.math_opt.IndicatorConstraintProto value = 2;
3783 {::_pbi::TcParser::FastMtS1,
3784 {18, 0, 0,
3785 PROTOBUF_FIELD_OFFSET(IndicatorConstraintUpdatesProto_NewConstraintsEntry_DoNotUse, _impl_.value_)}},
3786 // int64 key = 1;
3787 {::_pbi::TcParser::SingularVarintNoZag1<::uint64_t, offsetof(IndicatorConstraintUpdatesProto_NewConstraintsEntry_DoNotUse, _impl_.key_), 1>(),
3788 {8, 1, 0,
3789 PROTOBUF_FIELD_OFFSET(IndicatorConstraintUpdatesProto_NewConstraintsEntry_DoNotUse, _impl_.key_)}},
3790 }}, {{
3791 65535, 65535
3792 }}, {{
3793 // int64 key = 1;
3794 {PROTOBUF_FIELD_OFFSET(IndicatorConstraintUpdatesProto_NewConstraintsEntry_DoNotUse, _impl_.key_), _Internal::kHasBitsOffset + 1, 0, (0 | ::_fl::kFcOptional | ::_fl::kInt64)},
3795 // .operations_research.math_opt.IndicatorConstraintProto value = 2;
3796 {PROTOBUF_FIELD_OFFSET(IndicatorConstraintUpdatesProto_NewConstraintsEntry_DoNotUse, _impl_.value_), _Internal::kHasBitsOffset + 0, 0, (0 | ::_fl::kFcOptional | ::_fl::kMessage | ::_fl::kTvTable)},
3797 }},
3798 {{
3799 {::_pbi::TcParser::GetTable<::operations_research::math_opt::IndicatorConstraintProto>()},
3800 }},
3801 {{
3802 }},
3803};
3804// ===================================================================
3805
3807 public:
3808 using HasBits =
3809 decltype(::std::declval<IndicatorConstraintUpdatesProto>()._impl_._has_bits_);
3810 static constexpr ::int32_t kHasBitsOffset =
3811 8 * PROTOBUF_FIELD_OFFSET(IndicatorConstraintUpdatesProto, _impl_._has_bits_);
3812};
3813
3815 ::google::protobuf::internal::TSanWrite(&_impl_);
3816 _impl_.new_constraints_.Clear();
3817 ClearHasBitForRepeated(_impl_._has_bits_[0],
3818 0x00000002U);
3819}
3820IndicatorConstraintUpdatesProto::IndicatorConstraintUpdatesProto(::google::protobuf::Arena* PROTOBUF_NULLABLE arena)
3821#if defined(PROTOBUF_CUSTOM_VTABLE)
3822 : ::google::protobuf::Message(arena, IndicatorConstraintUpdatesProto_class_data_.base()) {
3823#else // PROTOBUF_CUSTOM_VTABLE
3824 : ::google::protobuf::Message(arena) {
3825#endif // PROTOBUF_CUSTOM_VTABLE
3826 SharedCtor(arena);
3827 // @@protoc_insertion_point(arena_constructor:operations_research.math_opt.IndicatorConstraintUpdatesProto)
3829PROTOBUF_NDEBUG_INLINE IndicatorConstraintUpdatesProto::Impl_::Impl_(
3830 [[maybe_unused]] ::google::protobuf::internal::InternalVisibility visibility,
3831 [[maybe_unused]] ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const Impl_& from,
3832 [[maybe_unused]] const ::operations_research::math_opt::IndicatorConstraintUpdatesProto& from_msg)
3833 : _has_bits_{from._has_bits_},
3834 _cached_size_{0},
3835 deleted_constraint_ids_{visibility, arena, from.deleted_constraint_ids_},
3836 _deleted_constraint_ids_cached_byte_size_{0},
3837 new_constraints_{visibility, arena, from.new_constraints_} {}
3838
3840 ::google::protobuf::Arena* PROTOBUF_NULLABLE arena,
3841 const IndicatorConstraintUpdatesProto& from)
3842#if defined(PROTOBUF_CUSTOM_VTABLE)
3843 : ::google::protobuf::Message(arena, IndicatorConstraintUpdatesProto_class_data_.base()) {
3844#else // PROTOBUF_CUSTOM_VTABLE
3845 : ::google::protobuf::Message(arena) {
3846#endif // PROTOBUF_CUSTOM_VTABLE
3847 IndicatorConstraintUpdatesProto* const _this = this;
3848 (void)_this;
3849 _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(
3850 from._internal_metadata_);
3851 new (&_impl_) Impl_(internal_visibility(), arena, from._impl_, from);
3852
3853 // @@protoc_insertion_point(copy_constructor:operations_research.math_opt.IndicatorConstraintUpdatesProto)
3854}
3855PROTOBUF_NDEBUG_INLINE IndicatorConstraintUpdatesProto::Impl_::Impl_(
3856 [[maybe_unused]] ::google::protobuf::internal::InternalVisibility visibility,
3857 [[maybe_unused]] ::google::protobuf::Arena* PROTOBUF_NULLABLE arena)
3858 : _cached_size_{0},
3859 deleted_constraint_ids_{visibility, arena},
3860 _deleted_constraint_ids_cached_byte_size_{0},
3861 new_constraints_{visibility, arena} {}
3862
3863inline void IndicatorConstraintUpdatesProto::SharedCtor(::_pb::Arena* PROTOBUF_NULLABLE arena) {
3864 new (&_impl_) Impl_(internal_visibility(), arena);
3865}
3867 // @@protoc_insertion_point(destructor:operations_research.math_opt.IndicatorConstraintUpdatesProto)
3868 SharedDtor(*this);
3869}
3870inline void IndicatorConstraintUpdatesProto::SharedDtor(MessageLite& self) {
3872 if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) {
3873 this_.CheckHasBitConsistency();
3874 }
3875 this_._internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>();
3876 ABSL_DCHECK(this_.GetArena() == nullptr);
3877 this_._impl_.~Impl_();
3878}
3879
3880inline void* PROTOBUF_NONNULL IndicatorConstraintUpdatesProto::PlacementNew_(
3881 const void* PROTOBUF_NONNULL, void* PROTOBUF_NONNULL mem,
3882 ::google::protobuf::Arena* PROTOBUF_NULLABLE arena) {
3883 return ::new (mem) IndicatorConstraintUpdatesProto(arena);
3884}
3885constexpr auto IndicatorConstraintUpdatesProto::InternalNewImpl_() {
3886 constexpr auto arena_bits = ::google::protobuf::internal::EncodePlacementArenaOffsets({
3887 PROTOBUF_FIELD_OFFSET(IndicatorConstraintUpdatesProto, _impl_.deleted_constraint_ids_) +
3888 decltype(IndicatorConstraintUpdatesProto::_impl_.deleted_constraint_ids_)::
3889 InternalGetArenaOffset(
3890 ::google::protobuf::Message::internal_visibility()),
3891 PROTOBUF_FIELD_OFFSET(IndicatorConstraintUpdatesProto, _impl_.new_constraints_) +
3892 decltype(IndicatorConstraintUpdatesProto::_impl_.new_constraints_)::
3893 InternalGetArenaOffset(
3894 ::google::protobuf::Message::internal_visibility()),
3895 });
3896 if (arena_bits.has_value()) {
3897 return ::google::protobuf::internal::MessageCreator::CopyInit(
3898 sizeof(IndicatorConstraintUpdatesProto), alignof(IndicatorConstraintUpdatesProto), *arena_bits);
3899 } else {
3900 return ::google::protobuf::internal::MessageCreator(&IndicatorConstraintUpdatesProto::PlacementNew_,
3901 sizeof(IndicatorConstraintUpdatesProto),
3902 alignof(IndicatorConstraintUpdatesProto));
3903 }
3904}
3906 return ::google::protobuf::internal::ClassDataFull{
3907 ::google::protobuf::internal::ClassData{
3909 &_table_.header,
3910 nullptr, // OnDemandRegisterArenaDtor
3911 nullptr, // IsInitialized
3912 &IndicatorConstraintUpdatesProto::MergeImpl,
3913 ::google::protobuf::Message::GetNewImpl<IndicatorConstraintUpdatesProto>(),
3914#if defined(PROTOBUF_CUSTOM_VTABLE)
3915 &IndicatorConstraintUpdatesProto::SharedDtor,
3916 ::google::protobuf::Message::GetClearImpl<IndicatorConstraintUpdatesProto>(), &IndicatorConstraintUpdatesProto::ByteSizeLong,
3918#endif // PROTOBUF_CUSTOM_VTABLE
3919 PROTOBUF_FIELD_OFFSET(IndicatorConstraintUpdatesProto, _impl_._cached_size_),
3920 false,
3921 },
3922 &IndicatorConstraintUpdatesProto::kDescriptorMethods,
3924 nullptr, // tracker
3925 };
3926}
3927
3928PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 const
3929 ::google::protobuf::internal::ClassDataFull IndicatorConstraintUpdatesProto_class_data_ =
3931
3932PROTOBUF_ATTRIBUTE_WEAK const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL
3933IndicatorConstraintUpdatesProto::GetClassData() const {
3934 ::google::protobuf::internal::PrefetchToLocalCache(&IndicatorConstraintUpdatesProto_class_data_);
3935 ::google::protobuf::internal::PrefetchToLocalCache(IndicatorConstraintUpdatesProto_class_data_.tc_table);
3937}
3938PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1
3939const ::_pbi::TcParseTable<0, 2, 2, 0, 2>
3940IndicatorConstraintUpdatesProto::_table_ = {
3941 {
3942 PROTOBUF_FIELD_OFFSET(IndicatorConstraintUpdatesProto, _impl_._has_bits_),
3943 0, // no _extensions_
3944 2, 0, // max_field_number, fast_idx_mask
3945 offsetof(decltype(_table_), field_lookup_table),
3946 4294967292, // skipmap
3947 offsetof(decltype(_table_), field_entries),
3948 2, // num_field_entries
3949 2, // num_aux_entries
3950 offsetof(decltype(_table_), aux_entries),
3952 nullptr, // post_loop_handler
3953 ::_pbi::TcParser::GenericFallback, // fallback
3954 #ifdef PROTOBUF_PREFETCH_PARSE_TABLE
3955 ::_pbi::TcParser::GetTable<::operations_research::math_opt::IndicatorConstraintUpdatesProto>(), // to_prefetch
3956 #endif // PROTOBUF_PREFETCH_PARSE_TABLE
3957 }, {{
3958 // repeated int64 deleted_constraint_ids = 1;
3959 {::_pbi::TcParser::FastV64P1,
3960 {10, 0, 0,
3961 PROTOBUF_FIELD_OFFSET(IndicatorConstraintUpdatesProto, _impl_.deleted_constraint_ids_)}},
3962 }}, {{
3963 65535, 65535
3964 }}, {{
3965 // repeated int64 deleted_constraint_ids = 1;
3966 {PROTOBUF_FIELD_OFFSET(IndicatorConstraintUpdatesProto, _impl_.deleted_constraint_ids_), _Internal::kHasBitsOffset + 0, 0, (0 | ::_fl::kFcRepeated | ::_fl::kPackedInt64)},
3967 // map<int64, .operations_research.math_opt.IndicatorConstraintProto> new_constraints = 2;
3968 {PROTOBUF_FIELD_OFFSET(IndicatorConstraintUpdatesProto, _impl_.new_constraints_), _Internal::kHasBitsOffset + 1, 0, (0 | ::_fl::kFcRepeated | ::_fl::kMap)},
3969 }},
3970 {{
3971 {::_pbi::TcParser::GetMapAuxInfo(
3972 0, 0, 3, 11, 0)},
3973 {::_pbi::TcParser::GetTable<::operations_research::math_opt::IndicatorConstraintProto>()},
3974 }},
3975 {{
3976 }},
3977};
3978PROTOBUF_NOINLINE void IndicatorConstraintUpdatesProto::Clear() {
3979// @@protoc_insertion_point(message_clear_start:operations_research.math_opt.IndicatorConstraintUpdatesProto)
3980 ::google::protobuf::internal::TSanWrite(&_impl_);
3981 ::uint32_t cached_has_bits = 0;
3982 // Prevent compiler warnings about cached_has_bits being unused
3983 (void) cached_has_bits;
3984
3985 cached_has_bits = _impl_._has_bits_[0];
3986 if (BatchCheckHasBit(cached_has_bits, 0x00000003U)) {
3987 if (CheckHasBitForRepeated(cached_has_bits, 0x00000001U)) {
3988 _impl_.deleted_constraint_ids_.Clear();
3989 }
3990 if (CheckHasBitForRepeated(cached_has_bits, 0x00000002U)) {
3991 _impl_.new_constraints_.Clear();
3993 }
3994 _impl_._has_bits_.Clear();
3995 _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>();
3996}
3997
3998#if defined(PROTOBUF_CUSTOM_VTABLE)
3999::uint8_t* PROTOBUF_NONNULL IndicatorConstraintUpdatesProto::_InternalSerialize(
4000 const ::google::protobuf::MessageLite& base, ::uint8_t* PROTOBUF_NONNULL target,
4001 ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) {
4002 const IndicatorConstraintUpdatesProto& this_ = static_cast<const IndicatorConstraintUpdatesProto&>(base);
4003#else // PROTOBUF_CUSTOM_VTABLE
4004::uint8_t* PROTOBUF_NONNULL IndicatorConstraintUpdatesProto::_InternalSerialize(
4005 ::uint8_t* PROTOBUF_NONNULL target,
4006 ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const {
4007 const IndicatorConstraintUpdatesProto& this_ = *this;
4008#endif // PROTOBUF_CUSTOM_VTABLE
4009 if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) {
4010 this_.CheckHasBitConsistency();
4011 }
4012 // @@protoc_insertion_point(serialize_to_array_start:operations_research.math_opt.IndicatorConstraintUpdatesProto)
4013 ::uint32_t cached_has_bits = 0;
4014 (void)cached_has_bits;
4015
4016 cached_has_bits = this_._impl_._has_bits_[0];
4017 // repeated int64 deleted_constraint_ids = 1;
4018 if (CheckHasBitForRepeated(cached_has_bits, 0x00000001U)) {
4019 {
4020 int byte_size = this_._impl_._deleted_constraint_ids_cached_byte_size_.Get();
4021 if (byte_size > 0) {
4022 target = stream->WriteInt64Packed(
4023 1, this_._internal_deleted_constraint_ids(), byte_size, target);
4024 }
4025 }
4026 }
4027
4028 // map<int64, .operations_research.math_opt.IndicatorConstraintProto> new_constraints = 2;
4029 if (CheckHasBitForRepeated(cached_has_bits, 0x00000002U)) {
4030 if (!this_._internal_new_constraints().empty()) {
4031 using MapType = ::google::protobuf::Map<::int64_t, ::operations_research::math_opt::IndicatorConstraintProto>;
4032 using WireHelper = _pbi::MapEntryFuncs<::int64_t, ::operations_research::math_opt::IndicatorConstraintProto,
4033 _pbi::WireFormatLite::TYPE_INT64,
4034 _pbi::WireFormatLite::TYPE_MESSAGE>;
4035 const auto& field = this_._internal_new_constraints();
4036
4037 if (stream->IsSerializationDeterministic() && field.size() > 1) {
4038 for (const auto& entry : ::google::protobuf::internal::MapSorterFlat<MapType>(field)) {
4039 target = WireHelper::InternalSerialize(
4040 2, entry.first, entry.second, target, stream);
4041 }
4042 } else {
4043 for (const auto& entry : field) {
4044 target = WireHelper::InternalSerialize(
4045 2, entry.first, entry.second, target, stream);
4046 }
4047 }
4048 }
4049 }
4050
4051 if (ABSL_PREDICT_FALSE(this_._internal_metadata_.have_unknown_fields())) {
4052 target =
4053 ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray(
4054 this_._internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream);
4055 }
4056 // @@protoc_insertion_point(serialize_to_array_end:operations_research.math_opt.IndicatorConstraintUpdatesProto)
4057 return target;
4058}
4059
4060#if defined(PROTOBUF_CUSTOM_VTABLE)
4062 const IndicatorConstraintUpdatesProto& this_ = static_cast<const IndicatorConstraintUpdatesProto&>(base);
4063#else // PROTOBUF_CUSTOM_VTABLE
4065 const IndicatorConstraintUpdatesProto& this_ = *this;
4066#endif // PROTOBUF_CUSTOM_VTABLE
4067 // @@protoc_insertion_point(message_byte_size_start:operations_research.math_opt.IndicatorConstraintUpdatesProto)
4068 ::size_t total_size = 0;
4069
4070 ::uint32_t cached_has_bits = 0;
4071 // Prevent compiler warnings about cached_has_bits being unused
4072 (void)cached_has_bits;
4073
4074 ::_pbi::Prefetch5LinesFrom7Lines(&this_);
4075 cached_has_bits = this_._impl_._has_bits_[0];
4076 if (BatchCheckHasBit(cached_has_bits, 0x00000003U)) {
4077 // repeated int64 deleted_constraint_ids = 1;
4078 if (CheckHasBitForRepeated(cached_has_bits, 0x00000001U)) {
4079 total_size +=
4080 ::_pbi::WireFormatLite::Int64SizeWithPackedTagSize(
4081 this_._internal_deleted_constraint_ids(), 1,
4082 this_._impl_._deleted_constraint_ids_cached_byte_size_);
4083 }
4084 // map<int64, .operations_research.math_opt.IndicatorConstraintProto> new_constraints = 2;
4085 if (CheckHasBitForRepeated(cached_has_bits, 0x00000002U)) {
4086 total_size +=
4087 1 * ::google::protobuf::internal::FromIntSize(this_._internal_new_constraints_size());
4088 for (const auto& entry : this_._internal_new_constraints()) {
4089 total_size += _pbi::MapEntryFuncs<::int64_t, ::operations_research::math_opt::IndicatorConstraintProto,
4090 _pbi::WireFormatLite::TYPE_INT64,
4091 _pbi::WireFormatLite::TYPE_MESSAGE>::ByteSizeLong(entry.first, entry.second);
4092 }
4093 }
4094 }
4095 return this_.MaybeComputeUnknownFieldsSize(total_size,
4096 &this_._impl_._cached_size_);
4097}
4098
4099void IndicatorConstraintUpdatesProto::MergeImpl(::google::protobuf::MessageLite& to_msg,
4100 const ::google::protobuf::MessageLite& from_msg) {
4101 auto* const _this =
4102 static_cast<IndicatorConstraintUpdatesProto*>(&to_msg);
4103 auto& from = static_cast<const IndicatorConstraintUpdatesProto&>(from_msg);
4104 if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) {
4105 from.CheckHasBitConsistency();
4106 }
4107 // @@protoc_insertion_point(class_specific_merge_from_start:operations_research.math_opt.IndicatorConstraintUpdatesProto)
4108 ABSL_DCHECK_NE(&from, _this);
4109 ::uint32_t cached_has_bits = 0;
4110 (void)cached_has_bits;
4111
4112 cached_has_bits = from._impl_._has_bits_[0];
4113 if (BatchCheckHasBit(cached_has_bits, 0x00000003U)) {
4114 if (CheckHasBitForRepeated(cached_has_bits, 0x00000001U)) {
4115 _this->_internal_mutable_deleted_constraint_ids()->MergeFrom(from._internal_deleted_constraint_ids());
4116 }
4117 if (CheckHasBitForRepeated(cached_has_bits, 0x00000002U)) {
4118 _this->_impl_.new_constraints_.MergeFrom(from._impl_.new_constraints_);
4119 }
4120 }
4121 _this->_impl_._has_bits_[0] |= cached_has_bits;
4122 _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(
4123 from._internal_metadata_);
4124}
4125
4127 // @@protoc_insertion_point(class_specific_copy_from_start:operations_research.math_opt.IndicatorConstraintUpdatesProto)
4128 if (&from == this) return;
4129 Clear();
4130 MergeFrom(from);
4131}
4132
4133
4134void IndicatorConstraintUpdatesProto::InternalSwap(IndicatorConstraintUpdatesProto* PROTOBUF_RESTRICT PROTOBUF_NONNULL other) {
4135 using ::std::swap;
4136 _internal_metadata_.InternalSwap(&other->_internal_metadata_);
4137 swap(_impl_._has_bits_[0], other->_impl_._has_bits_[0]);
4138 _impl_.deleted_constraint_ids_.InternalSwap(&other->_impl_.deleted_constraint_ids_);
4139 _impl_.new_constraints_.InternalSwap(&other->_impl_.new_constraints_);
4141
4142::google::protobuf::Metadata IndicatorConstraintUpdatesProto::GetMetadata() const {
4143 return ::google::protobuf::Message::GetMetadataImpl(GetClassData()->full());
4144}
4145// ===================================================================
4146
4147class ModelUpdateProto::_Internal {
4148 public:
4149 using HasBits =
4150 decltype(::std::declval<ModelUpdateProto>()._impl_._has_bits_);
4151 static constexpr ::int32_t kHasBitsOffset =
4152 8 * PROTOBUF_FIELD_OFFSET(ModelUpdateProto, _impl_._has_bits_);
4153};
4154
4156 ::google::protobuf::internal::TSanWrite(&_impl_);
4157 if (_impl_.new_variables_ != nullptr) _impl_.new_variables_->Clear();
4158 ClearHasBit(_impl_._has_bits_[0],
4159 0x00000010U);
4160}
4162 ::google::protobuf::internal::TSanWrite(&_impl_);
4163 if (_impl_.new_linear_constraints_ != nullptr) _impl_.new_linear_constraints_->Clear();
4164 ClearHasBit(_impl_._has_bits_[0],
4165 0x00000020U);
4168 ::google::protobuf::internal::TSanWrite(&_impl_);
4169 if (_impl_.linear_constraint_matrix_updates_ != nullptr) _impl_.linear_constraint_matrix_updates_->Clear();
4170 ClearHasBit(_impl_._has_bits_[0],
4171 0x00000080U);
4172}
4173ModelUpdateProto::ModelUpdateProto(::google::protobuf::Arena* PROTOBUF_NULLABLE arena)
4174#if defined(PROTOBUF_CUSTOM_VTABLE)
4175 : ::google::protobuf::Message(arena, ModelUpdateProto_class_data_.base()) {
4176#else // PROTOBUF_CUSTOM_VTABLE
4177 : ::google::protobuf::Message(arena) {
4178#endif // PROTOBUF_CUSTOM_VTABLE
4179 SharedCtor(arena);
4180 // @@protoc_insertion_point(arena_constructor:operations_research.math_opt.ModelUpdateProto)
4181}
4182PROTOBUF_NDEBUG_INLINE ModelUpdateProto::Impl_::Impl_(
4183 [[maybe_unused]] ::google::protobuf::internal::InternalVisibility visibility,
4184 [[maybe_unused]] ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const Impl_& from,
4185 [[maybe_unused]] const ::operations_research::math_opt::ModelUpdateProto& from_msg)
4186 : _has_bits_{from._has_bits_},
4187 _cached_size_{0},
4188 deleted_variable_ids_{visibility, arena, from.deleted_variable_ids_},
4189 _deleted_variable_ids_cached_byte_size_{0},
4190 deleted_linear_constraint_ids_{visibility, arena, from.deleted_linear_constraint_ids_},
4191 _deleted_linear_constraint_ids_cached_byte_size_{0} {}
4192
4194 ::google::protobuf::Arena* PROTOBUF_NULLABLE arena,
4195 const ModelUpdateProto& from)
4196#if defined(PROTOBUF_CUSTOM_VTABLE)
4197 : ::google::protobuf::Message(arena, ModelUpdateProto_class_data_.base()) {
4198#else // PROTOBUF_CUSTOM_VTABLE
4199 : ::google::protobuf::Message(arena) {
4200#endif // PROTOBUF_CUSTOM_VTABLE
4201 ModelUpdateProto* const _this = this;
4202 (void)_this;
4203 _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(
4204 from._internal_metadata_);
4205 new (&_impl_) Impl_(internal_visibility(), arena, from._impl_, from);
4206 ::uint32_t cached_has_bits = _impl_._has_bits_[0];
4207 _impl_.variable_updates_ = (CheckHasBit(cached_has_bits, 0x00000004U))
4208 ? ::google::protobuf::Message::CopyConstruct(arena, *from._impl_.variable_updates_)
4209 : nullptr;
4210 _impl_.linear_constraint_updates_ = (CheckHasBit(cached_has_bits, 0x00000008U))
4211 ? ::google::protobuf::Message::CopyConstruct(arena, *from._impl_.linear_constraint_updates_)
4212 : nullptr;
4213 _impl_.new_variables_ = (CheckHasBit(cached_has_bits, 0x00000010U))
4214 ? ::google::protobuf::Message::CopyConstruct(arena, *from._impl_.new_variables_)
4215 : nullptr;
4216 _impl_.new_linear_constraints_ = (CheckHasBit(cached_has_bits, 0x00000020U))
4217 ? ::google::protobuf::Message::CopyConstruct(arena, *from._impl_.new_linear_constraints_)
4218 : nullptr;
4219 _impl_.objective_updates_ = (CheckHasBit(cached_has_bits, 0x00000040U))
4220 ? ::google::protobuf::Message::CopyConstruct(arena, *from._impl_.objective_updates_)
4221 : nullptr;
4222 _impl_.linear_constraint_matrix_updates_ = (CheckHasBit(cached_has_bits, 0x00000080U))
4223 ? ::google::protobuf::Message::CopyConstruct(arena, *from._impl_.linear_constraint_matrix_updates_)
4224 : nullptr;
4225 _impl_.quadratic_constraint_updates_ = (CheckHasBit(cached_has_bits, 0x00000100U))
4226 ? ::google::protobuf::Message::CopyConstruct(arena, *from._impl_.quadratic_constraint_updates_)
4227 : nullptr;
4228 _impl_.sos1_constraint_updates_ = (CheckHasBit(cached_has_bits, 0x00000200U))
4229 ? ::google::protobuf::Message::CopyConstruct(arena, *from._impl_.sos1_constraint_updates_)
4230 : nullptr;
4231 _impl_.sos2_constraint_updates_ = (CheckHasBit(cached_has_bits, 0x00000400U))
4232 ? ::google::protobuf::Message::CopyConstruct(arena, *from._impl_.sos2_constraint_updates_)
4233 : nullptr;
4234 _impl_.indicator_constraint_updates_ = (CheckHasBit(cached_has_bits, 0x00000800U))
4235 ? ::google::protobuf::Message::CopyConstruct(arena, *from._impl_.indicator_constraint_updates_)
4236 : nullptr;
4237 _impl_.auxiliary_objectives_updates_ = (CheckHasBit(cached_has_bits, 0x00001000U))
4238 ? ::google::protobuf::Message::CopyConstruct(arena, *from._impl_.auxiliary_objectives_updates_)
4239 : nullptr;
4240 _impl_.second_order_cone_constraint_updates_ = (CheckHasBit(cached_has_bits, 0x00002000U))
4241 ? ::google::protobuf::Message::CopyConstruct(arena, *from._impl_.second_order_cone_constraint_updates_)
4242 : nullptr;
4243
4244 // @@protoc_insertion_point(copy_constructor:operations_research.math_opt.ModelUpdateProto)
4245}
4246PROTOBUF_NDEBUG_INLINE ModelUpdateProto::Impl_::Impl_(
4247 [[maybe_unused]] ::google::protobuf::internal::InternalVisibility visibility,
4248 [[maybe_unused]] ::google::protobuf::Arena* PROTOBUF_NULLABLE arena)
4249 : _cached_size_{0},
4250 deleted_variable_ids_{visibility, arena},
4251 _deleted_variable_ids_cached_byte_size_{0},
4252 deleted_linear_constraint_ids_{visibility, arena},
4253 _deleted_linear_constraint_ids_cached_byte_size_{0} {}
4254
4255inline void ModelUpdateProto::SharedCtor(::_pb::Arena* PROTOBUF_NULLABLE arena) {
4256 new (&_impl_) Impl_(internal_visibility(), arena);
4257 ::memset(reinterpret_cast<char*>(&_impl_) +
4258 offsetof(Impl_, variable_updates_),
4259 0,
4260 offsetof(Impl_, second_order_cone_constraint_updates_) -
4261 offsetof(Impl_, variable_updates_) +
4262 sizeof(Impl_::second_order_cone_constraint_updates_));
4263}
4265 // @@protoc_insertion_point(destructor:operations_research.math_opt.ModelUpdateProto)
4266 SharedDtor(*this);
4267}
4268inline void ModelUpdateProto::SharedDtor(MessageLite& self) {
4269 ModelUpdateProto& this_ = static_cast<ModelUpdateProto&>(self);
4270 if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) {
4271 this_.CheckHasBitConsistency();
4272 }
4273 this_._internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>();
4274 ABSL_DCHECK(this_.GetArena() == nullptr);
4275 delete this_._impl_.variable_updates_;
4276 delete this_._impl_.linear_constraint_updates_;
4277 delete this_._impl_.new_variables_;
4278 delete this_._impl_.new_linear_constraints_;
4279 delete this_._impl_.objective_updates_;
4280 delete this_._impl_.linear_constraint_matrix_updates_;
4281 delete this_._impl_.quadratic_constraint_updates_;
4282 delete this_._impl_.sos1_constraint_updates_;
4283 delete this_._impl_.sos2_constraint_updates_;
4284 delete this_._impl_.indicator_constraint_updates_;
4285 delete this_._impl_.auxiliary_objectives_updates_;
4286 delete this_._impl_.second_order_cone_constraint_updates_;
4287 this_._impl_.~Impl_();
4288}
4289
4290inline void* PROTOBUF_NONNULL ModelUpdateProto::PlacementNew_(
4291 const void* PROTOBUF_NONNULL, void* PROTOBUF_NONNULL mem,
4292 ::google::protobuf::Arena* PROTOBUF_NULLABLE arena) {
4293 return ::new (mem) ModelUpdateProto(arena);
4294}
4295constexpr auto ModelUpdateProto::InternalNewImpl_() {
4296 constexpr auto arena_bits = ::google::protobuf::internal::EncodePlacementArenaOffsets({
4297 PROTOBUF_FIELD_OFFSET(ModelUpdateProto, _impl_.deleted_variable_ids_) +
4298 decltype(ModelUpdateProto::_impl_.deleted_variable_ids_)::
4299 InternalGetArenaOffset(
4300 ::google::protobuf::Message::internal_visibility()),
4301 PROTOBUF_FIELD_OFFSET(ModelUpdateProto, _impl_.deleted_linear_constraint_ids_) +
4302 decltype(ModelUpdateProto::_impl_.deleted_linear_constraint_ids_)::
4303 InternalGetArenaOffset(
4304 ::google::protobuf::Message::internal_visibility()),
4305 });
4306 if (arena_bits.has_value()) {
4307 return ::google::protobuf::internal::MessageCreator::ZeroInit(
4308 sizeof(ModelUpdateProto), alignof(ModelUpdateProto), *arena_bits);
4309 } else {
4310 return ::google::protobuf::internal::MessageCreator(&ModelUpdateProto::PlacementNew_,
4311 sizeof(ModelUpdateProto),
4312 alignof(ModelUpdateProto));
4313 }
4314}
4316 return ::google::protobuf::internal::ClassDataFull{
4317 ::google::protobuf::internal::ClassData{
4319 &_table_.header,
4320 nullptr, // OnDemandRegisterArenaDtor
4321 nullptr, // IsInitialized
4322 &ModelUpdateProto::MergeImpl,
4323 ::google::protobuf::Message::GetNewImpl<ModelUpdateProto>(),
4324#if defined(PROTOBUF_CUSTOM_VTABLE)
4325 &ModelUpdateProto::SharedDtor,
4326 ::google::protobuf::Message::GetClearImpl<ModelUpdateProto>(), &ModelUpdateProto::ByteSizeLong,
4328#endif // PROTOBUF_CUSTOM_VTABLE
4329 PROTOBUF_FIELD_OFFSET(ModelUpdateProto, _impl_._cached_size_),
4330 false,
4331 },
4332 &ModelUpdateProto::kDescriptorMethods,
4334 nullptr, // tracker
4335 };
4336}
4337
4338PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 const
4339 ::google::protobuf::internal::ClassDataFull ModelUpdateProto_class_data_ =
4341
4342PROTOBUF_ATTRIBUTE_WEAK const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL
4343ModelUpdateProto::GetClassData() const {
4344 ::google::protobuf::internal::PrefetchToLocalCache(&ModelUpdateProto_class_data_);
4345 ::google::protobuf::internal::PrefetchToLocalCache(ModelUpdateProto_class_data_.tc_table);
4346 return ModelUpdateProto_class_data_.base();
4347}
4348PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1
4349const ::_pbi::TcParseTable<4, 14, 12, 0, 2>
4350ModelUpdateProto::_table_ = {
4351 {
4352 PROTOBUF_FIELD_OFFSET(ModelUpdateProto, _impl_._has_bits_),
4353 0, // no _extensions_
4354 14, 120, // max_field_number, fast_idx_mask
4355 offsetof(decltype(_table_), field_lookup_table),
4356 4294950912, // skipmap
4357 offsetof(decltype(_table_), field_entries),
4358 14, // num_field_entries
4359 12, // num_aux_entries
4360 offsetof(decltype(_table_), aux_entries),
4362 nullptr, // post_loop_handler
4363 ::_pbi::TcParser::GenericFallback, // fallback
4364 #ifdef PROTOBUF_PREFETCH_PARSE_TABLE
4365 ::_pbi::TcParser::GetTable<::operations_research::math_opt::ModelUpdateProto>(), // to_prefetch
4366 #endif // PROTOBUF_PREFETCH_PARSE_TABLE
4367 }, {{
4368 {::_pbi::TcParser::MiniParse, {}},
4369 // repeated int64 deleted_variable_ids = 1;
4370 {::_pbi::TcParser::FastV64P1,
4371 {10, 0, 0,
4372 PROTOBUF_FIELD_OFFSET(ModelUpdateProto, _impl_.deleted_variable_ids_)}},
4373 // repeated int64 deleted_linear_constraint_ids = 2;
4374 {::_pbi::TcParser::FastV64P1,
4375 {18, 1, 0,
4376 PROTOBUF_FIELD_OFFSET(ModelUpdateProto, _impl_.deleted_linear_constraint_ids_)}},
4377 // .operations_research.math_opt.VariableUpdatesProto variable_updates = 3;
4378 {::_pbi::TcParser::FastMtS1,
4379 {26, 2, 0,
4380 PROTOBUF_FIELD_OFFSET(ModelUpdateProto, _impl_.variable_updates_)}},
4381 // .operations_research.math_opt.LinearConstraintUpdatesProto linear_constraint_updates = 4;
4382 {::_pbi::TcParser::FastMtS1,
4383 {34, 3, 1,
4384 PROTOBUF_FIELD_OFFSET(ModelUpdateProto, _impl_.linear_constraint_updates_)}},
4385 // .operations_research.math_opt.VariablesProto new_variables = 5;
4386 {::_pbi::TcParser::FastMtS1,
4387 {42, 4, 2,
4388 PROTOBUF_FIELD_OFFSET(ModelUpdateProto, _impl_.new_variables_)}},
4389 // .operations_research.math_opt.LinearConstraintsProto new_linear_constraints = 6;
4390 {::_pbi::TcParser::FastMtS1,
4391 {50, 5, 3,
4392 PROTOBUF_FIELD_OFFSET(ModelUpdateProto, _impl_.new_linear_constraints_)}},
4393 // .operations_research.math_opt.ObjectiveUpdatesProto objective_updates = 7;
4394 {::_pbi::TcParser::FastMtS1,
4395 {58, 6, 4,
4396 PROTOBUF_FIELD_OFFSET(ModelUpdateProto, _impl_.objective_updates_)}},
4397 // .operations_research.math_opt.SparseDoubleMatrixProto linear_constraint_matrix_updates = 8;
4398 {::_pbi::TcParser::FastMtS1,
4399 {66, 7, 5,
4400 PROTOBUF_FIELD_OFFSET(ModelUpdateProto, _impl_.linear_constraint_matrix_updates_)}},
4401 // .operations_research.math_opt.QuadraticConstraintUpdatesProto quadratic_constraint_updates = 9;
4402 {::_pbi::TcParser::FastMtS1,
4403 {74, 8, 6,
4404 PROTOBUF_FIELD_OFFSET(ModelUpdateProto, _impl_.quadratic_constraint_updates_)}},
4405 // .operations_research.math_opt.SosConstraintUpdatesProto sos1_constraint_updates = 10;
4406 {::_pbi::TcParser::FastMtS1,
4407 {82, 9, 7,
4408 PROTOBUF_FIELD_OFFSET(ModelUpdateProto, _impl_.sos1_constraint_updates_)}},
4409 // .operations_research.math_opt.SosConstraintUpdatesProto sos2_constraint_updates = 11;
4410 {::_pbi::TcParser::FastMtS1,
4411 {90, 10, 8,
4412 PROTOBUF_FIELD_OFFSET(ModelUpdateProto, _impl_.sos2_constraint_updates_)}},
4413 // .operations_research.math_opt.IndicatorConstraintUpdatesProto indicator_constraint_updates = 12;
4414 {::_pbi::TcParser::FastMtS1,
4415 {98, 11, 9,
4416 PROTOBUF_FIELD_OFFSET(ModelUpdateProto, _impl_.indicator_constraint_updates_)}},
4417 // .operations_research.math_opt.AuxiliaryObjectivesUpdatesProto auxiliary_objectives_updates = 13;
4418 {::_pbi::TcParser::FastMtS1,
4419 {106, 12, 10,
4420 PROTOBUF_FIELD_OFFSET(ModelUpdateProto, _impl_.auxiliary_objectives_updates_)}},
4421 // .operations_research.math_opt.SecondOrderConeConstraintUpdatesProto second_order_cone_constraint_updates = 14;
4422 {::_pbi::TcParser::FastMtS1,
4423 {114, 13, 11,
4424 PROTOBUF_FIELD_OFFSET(ModelUpdateProto, _impl_.second_order_cone_constraint_updates_)}},
4425 {::_pbi::TcParser::MiniParse, {}},
4426 }}, {{
4427 65535, 65535
4428 }}, {{
4429 // repeated int64 deleted_variable_ids = 1;
4430 {PROTOBUF_FIELD_OFFSET(ModelUpdateProto, _impl_.deleted_variable_ids_), _Internal::kHasBitsOffset + 0, 0, (0 | ::_fl::kFcRepeated | ::_fl::kPackedInt64)},
4431 // repeated int64 deleted_linear_constraint_ids = 2;
4432 {PROTOBUF_FIELD_OFFSET(ModelUpdateProto, _impl_.deleted_linear_constraint_ids_), _Internal::kHasBitsOffset + 1, 0, (0 | ::_fl::kFcRepeated | ::_fl::kPackedInt64)},
4433 // .operations_research.math_opt.VariableUpdatesProto variable_updates = 3;
4434 {PROTOBUF_FIELD_OFFSET(ModelUpdateProto, _impl_.variable_updates_), _Internal::kHasBitsOffset + 2, 0, (0 | ::_fl::kFcOptional | ::_fl::kMessage | ::_fl::kTvTable)},
4435 // .operations_research.math_opt.LinearConstraintUpdatesProto linear_constraint_updates = 4;
4436 {PROTOBUF_FIELD_OFFSET(ModelUpdateProto, _impl_.linear_constraint_updates_), _Internal::kHasBitsOffset + 3, 1, (0 | ::_fl::kFcOptional | ::_fl::kMessage | ::_fl::kTvTable)},
4437 // .operations_research.math_opt.VariablesProto new_variables = 5;
4438 {PROTOBUF_FIELD_OFFSET(ModelUpdateProto, _impl_.new_variables_), _Internal::kHasBitsOffset + 4, 2, (0 | ::_fl::kFcOptional | ::_fl::kMessage | ::_fl::kTvTable)},
4439 // .operations_research.math_opt.LinearConstraintsProto new_linear_constraints = 6;
4440 {PROTOBUF_FIELD_OFFSET(ModelUpdateProto, _impl_.new_linear_constraints_), _Internal::kHasBitsOffset + 5, 3, (0 | ::_fl::kFcOptional | ::_fl::kMessage | ::_fl::kTvTable)},
4441 // .operations_research.math_opt.ObjectiveUpdatesProto objective_updates = 7;
4442 {PROTOBUF_FIELD_OFFSET(ModelUpdateProto, _impl_.objective_updates_), _Internal::kHasBitsOffset + 6, 4, (0 | ::_fl::kFcOptional | ::_fl::kMessage | ::_fl::kTvTable)},
4443 // .operations_research.math_opt.SparseDoubleMatrixProto linear_constraint_matrix_updates = 8;
4444 {PROTOBUF_FIELD_OFFSET(ModelUpdateProto, _impl_.linear_constraint_matrix_updates_), _Internal::kHasBitsOffset + 7, 5, (0 | ::_fl::kFcOptional | ::_fl::kMessage | ::_fl::kTvTable)},
4445 // .operations_research.math_opt.QuadraticConstraintUpdatesProto quadratic_constraint_updates = 9;
4446 {PROTOBUF_FIELD_OFFSET(ModelUpdateProto, _impl_.quadratic_constraint_updates_), _Internal::kHasBitsOffset + 8, 6, (0 | ::_fl::kFcOptional | ::_fl::kMessage | ::_fl::kTvTable)},
4447 // .operations_research.math_opt.SosConstraintUpdatesProto sos1_constraint_updates = 10;
4448 {PROTOBUF_FIELD_OFFSET(ModelUpdateProto, _impl_.sos1_constraint_updates_), _Internal::kHasBitsOffset + 9, 7, (0 | ::_fl::kFcOptional | ::_fl::kMessage | ::_fl::kTvTable)},
4449 // .operations_research.math_opt.SosConstraintUpdatesProto sos2_constraint_updates = 11;
4450 {PROTOBUF_FIELD_OFFSET(ModelUpdateProto, _impl_.sos2_constraint_updates_), _Internal::kHasBitsOffset + 10, 8, (0 | ::_fl::kFcOptional | ::_fl::kMessage | ::_fl::kTvTable)},
4451 // .operations_research.math_opt.IndicatorConstraintUpdatesProto indicator_constraint_updates = 12;
4452 {PROTOBUF_FIELD_OFFSET(ModelUpdateProto, _impl_.indicator_constraint_updates_), _Internal::kHasBitsOffset + 11, 9, (0 | ::_fl::kFcOptional | ::_fl::kMessage | ::_fl::kTvTable)},
4453 // .operations_research.math_opt.AuxiliaryObjectivesUpdatesProto auxiliary_objectives_updates = 13;
4454 {PROTOBUF_FIELD_OFFSET(ModelUpdateProto, _impl_.auxiliary_objectives_updates_), _Internal::kHasBitsOffset + 12, 10, (0 | ::_fl::kFcOptional | ::_fl::kMessage | ::_fl::kTvTable)},
4455 // .operations_research.math_opt.SecondOrderConeConstraintUpdatesProto second_order_cone_constraint_updates = 14;
4456 {PROTOBUF_FIELD_OFFSET(ModelUpdateProto, _impl_.second_order_cone_constraint_updates_), _Internal::kHasBitsOffset + 13, 11, (0 | ::_fl::kFcOptional | ::_fl::kMessage | ::_fl::kTvTable)},
4457 }},
4458 {{
4459 {::_pbi::TcParser::GetTable<::operations_research::math_opt::VariableUpdatesProto>()},
4460 {::_pbi::TcParser::GetTable<::operations_research::math_opt::LinearConstraintUpdatesProto>()},
4461 {::_pbi::TcParser::GetTable<::operations_research::math_opt::VariablesProto>()},
4462 {::_pbi::TcParser::GetTable<::operations_research::math_opt::LinearConstraintsProto>()},
4463 {::_pbi::TcParser::GetTable<::operations_research::math_opt::ObjectiveUpdatesProto>()},
4464 {::_pbi::TcParser::GetTable<::operations_research::math_opt::SparseDoubleMatrixProto>()},
4465 {::_pbi::TcParser::GetTable<::operations_research::math_opt::QuadraticConstraintUpdatesProto>()},
4466 {::_pbi::TcParser::GetTable<::operations_research::math_opt::SosConstraintUpdatesProto>()},
4467 {::_pbi::TcParser::GetTable<::operations_research::math_opt::SosConstraintUpdatesProto>()},
4468 {::_pbi::TcParser::GetTable<::operations_research::math_opt::IndicatorConstraintUpdatesProto>()},
4469 {::_pbi::TcParser::GetTable<::operations_research::math_opt::AuxiliaryObjectivesUpdatesProto>()},
4470 {::_pbi::TcParser::GetTable<::operations_research::math_opt::SecondOrderConeConstraintUpdatesProto>()},
4471 }},
4472 {{
4473 }},
4474};
4475PROTOBUF_NOINLINE void ModelUpdateProto::Clear() {
4476// @@protoc_insertion_point(message_clear_start:operations_research.math_opt.ModelUpdateProto)
4477 ::google::protobuf::internal::TSanWrite(&_impl_);
4478 ::uint32_t cached_has_bits = 0;
4479 // Prevent compiler warnings about cached_has_bits being unused
4480 (void) cached_has_bits;
4481
4482 cached_has_bits = _impl_._has_bits_[0];
4483 if (BatchCheckHasBit(cached_has_bits, 0x000000ffU)) {
4484 if (CheckHasBitForRepeated(cached_has_bits, 0x00000001U)) {
4485 _impl_.deleted_variable_ids_.Clear();
4486 }
4487 if (CheckHasBitForRepeated(cached_has_bits, 0x00000002U)) {
4488 _impl_.deleted_linear_constraint_ids_.Clear();
4489 }
4490 if (CheckHasBit(cached_has_bits, 0x00000004U)) {
4491 ABSL_DCHECK(_impl_.variable_updates_ != nullptr);
4492 _impl_.variable_updates_->Clear();
4493 }
4494 if (CheckHasBit(cached_has_bits, 0x00000008U)) {
4495 ABSL_DCHECK(_impl_.linear_constraint_updates_ != nullptr);
4496 _impl_.linear_constraint_updates_->Clear();
4497 }
4498 if (CheckHasBit(cached_has_bits, 0x00000010U)) {
4499 ABSL_DCHECK(_impl_.new_variables_ != nullptr);
4500 _impl_.new_variables_->Clear();
4501 }
4502 if (CheckHasBit(cached_has_bits, 0x00000020U)) {
4503 ABSL_DCHECK(_impl_.new_linear_constraints_ != nullptr);
4504 _impl_.new_linear_constraints_->Clear();
4505 }
4506 if (CheckHasBit(cached_has_bits, 0x00000040U)) {
4507 ABSL_DCHECK(_impl_.objective_updates_ != nullptr);
4508 _impl_.objective_updates_->Clear();
4509 }
4510 if (CheckHasBit(cached_has_bits, 0x00000080U)) {
4511 ABSL_DCHECK(_impl_.linear_constraint_matrix_updates_ != nullptr);
4512 _impl_.linear_constraint_matrix_updates_->Clear();
4513 }
4514 }
4515 if (BatchCheckHasBit(cached_has_bits, 0x00003f00U)) {
4516 if (CheckHasBit(cached_has_bits, 0x00000100U)) {
4517 ABSL_DCHECK(_impl_.quadratic_constraint_updates_ != nullptr);
4518 _impl_.quadratic_constraint_updates_->Clear();
4519 }
4520 if (CheckHasBit(cached_has_bits, 0x00000200U)) {
4521 ABSL_DCHECK(_impl_.sos1_constraint_updates_ != nullptr);
4522 _impl_.sos1_constraint_updates_->Clear();
4523 }
4524 if (CheckHasBit(cached_has_bits, 0x00000400U)) {
4525 ABSL_DCHECK(_impl_.sos2_constraint_updates_ != nullptr);
4526 _impl_.sos2_constraint_updates_->Clear();
4527 }
4528 if (CheckHasBit(cached_has_bits, 0x00000800U)) {
4529 ABSL_DCHECK(_impl_.indicator_constraint_updates_ != nullptr);
4530 _impl_.indicator_constraint_updates_->Clear();
4531 }
4532 if (CheckHasBit(cached_has_bits, 0x00001000U)) {
4533 ABSL_DCHECK(_impl_.auxiliary_objectives_updates_ != nullptr);
4534 _impl_.auxiliary_objectives_updates_->Clear();
4535 }
4536 if (CheckHasBit(cached_has_bits, 0x00002000U)) {
4537 ABSL_DCHECK(_impl_.second_order_cone_constraint_updates_ != nullptr);
4538 _impl_.second_order_cone_constraint_updates_->Clear();
4539 }
4540 }
4541 _impl_._has_bits_.Clear();
4542 _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>();
4543}
4544
4545#if defined(PROTOBUF_CUSTOM_VTABLE)
4546::uint8_t* PROTOBUF_NONNULL ModelUpdateProto::_InternalSerialize(
4547 const ::google::protobuf::MessageLite& base, ::uint8_t* PROTOBUF_NONNULL target,
4548 ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) {
4549 const ModelUpdateProto& this_ = static_cast<const ModelUpdateProto&>(base);
4550#else // PROTOBUF_CUSTOM_VTABLE
4551::uint8_t* PROTOBUF_NONNULL ModelUpdateProto::_InternalSerialize(
4552 ::uint8_t* PROTOBUF_NONNULL target,
4553 ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const {
4554 const ModelUpdateProto& this_ = *this;
4555#endif // PROTOBUF_CUSTOM_VTABLE
4556 if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) {
4557 this_.CheckHasBitConsistency();
4558 }
4559 // @@protoc_insertion_point(serialize_to_array_start:operations_research.math_opt.ModelUpdateProto)
4560 ::uint32_t cached_has_bits = 0;
4561 (void)cached_has_bits;
4562
4563 cached_has_bits = this_._impl_._has_bits_[0];
4564 // repeated int64 deleted_variable_ids = 1;
4565 if (CheckHasBitForRepeated(cached_has_bits, 0x00000001U)) {
4567 int byte_size = this_._impl_._deleted_variable_ids_cached_byte_size_.Get();
4568 if (byte_size > 0) {
4569 target = stream->WriteInt64Packed(
4570 1, this_._internal_deleted_variable_ids(), byte_size, target);
4571 }
4572 }
4573 }
4574
4575 // repeated int64 deleted_linear_constraint_ids = 2;
4576 if (CheckHasBitForRepeated(cached_has_bits, 0x00000002U)) {
4577 {
4578 int byte_size = this_._impl_._deleted_linear_constraint_ids_cached_byte_size_.Get();
4579 if (byte_size > 0) {
4580 target = stream->WriteInt64Packed(
4581 2, this_._internal_deleted_linear_constraint_ids(), byte_size, target);
4582 }
4583 }
4584 }
4585
4586 // .operations_research.math_opt.VariableUpdatesProto variable_updates = 3;
4587 if (CheckHasBit(cached_has_bits, 0x00000004U)) {
4588 target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage(
4589 3, *this_._impl_.variable_updates_, this_._impl_.variable_updates_->GetCachedSize(), target,
4590 stream);
4591 }
4592
4593 // .operations_research.math_opt.LinearConstraintUpdatesProto linear_constraint_updates = 4;
4594 if (CheckHasBit(cached_has_bits, 0x00000008U)) {
4595 target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage(
4596 4, *this_._impl_.linear_constraint_updates_, this_._impl_.linear_constraint_updates_->GetCachedSize(), target,
4597 stream);
4598 }
4599
4600 // .operations_research.math_opt.VariablesProto new_variables = 5;
4601 if (CheckHasBit(cached_has_bits, 0x00000010U)) {
4602 target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage(
4603 5, *this_._impl_.new_variables_, this_._impl_.new_variables_->GetCachedSize(), target,
4604 stream);
4605 }
4606
4607 // .operations_research.math_opt.LinearConstraintsProto new_linear_constraints = 6;
4608 if (CheckHasBit(cached_has_bits, 0x00000020U)) {
4609 target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage(
4610 6, *this_._impl_.new_linear_constraints_, this_._impl_.new_linear_constraints_->GetCachedSize(), target,
4611 stream);
4612 }
4613
4614 // .operations_research.math_opt.ObjectiveUpdatesProto objective_updates = 7;
4615 if (CheckHasBit(cached_has_bits, 0x00000040U)) {
4616 target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage(
4617 7, *this_._impl_.objective_updates_, this_._impl_.objective_updates_->GetCachedSize(), target,
4618 stream);
4619 }
4620
4621 // .operations_research.math_opt.SparseDoubleMatrixProto linear_constraint_matrix_updates = 8;
4622 if (CheckHasBit(cached_has_bits, 0x00000080U)) {
4623 target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage(
4624 8, *this_._impl_.linear_constraint_matrix_updates_, this_._impl_.linear_constraint_matrix_updates_->GetCachedSize(), target,
4625 stream);
4626 }
4627
4628 // .operations_research.math_opt.QuadraticConstraintUpdatesProto quadratic_constraint_updates = 9;
4629 if (CheckHasBit(cached_has_bits, 0x00000100U)) {
4630 target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage(
4631 9, *this_._impl_.quadratic_constraint_updates_, this_._impl_.quadratic_constraint_updates_->GetCachedSize(), target,
4632 stream);
4633 }
4634
4635 // .operations_research.math_opt.SosConstraintUpdatesProto sos1_constraint_updates = 10;
4636 if (CheckHasBit(cached_has_bits, 0x00000200U)) {
4637 target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage(
4638 10, *this_._impl_.sos1_constraint_updates_, this_._impl_.sos1_constraint_updates_->GetCachedSize(), target,
4639 stream);
4640 }
4641
4642 // .operations_research.math_opt.SosConstraintUpdatesProto sos2_constraint_updates = 11;
4643 if (CheckHasBit(cached_has_bits, 0x00000400U)) {
4644 target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage(
4645 11, *this_._impl_.sos2_constraint_updates_, this_._impl_.sos2_constraint_updates_->GetCachedSize(), target,
4646 stream);
4647 }
4648
4649 // .operations_research.math_opt.IndicatorConstraintUpdatesProto indicator_constraint_updates = 12;
4650 if (CheckHasBit(cached_has_bits, 0x00000800U)) {
4651 target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage(
4652 12, *this_._impl_.indicator_constraint_updates_, this_._impl_.indicator_constraint_updates_->GetCachedSize(), target,
4653 stream);
4654 }
4655
4656 // .operations_research.math_opt.AuxiliaryObjectivesUpdatesProto auxiliary_objectives_updates = 13;
4657 if (CheckHasBit(cached_has_bits, 0x00001000U)) {
4658 target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage(
4659 13, *this_._impl_.auxiliary_objectives_updates_, this_._impl_.auxiliary_objectives_updates_->GetCachedSize(), target,
4660 stream);
4661 }
4662
4663 // .operations_research.math_opt.SecondOrderConeConstraintUpdatesProto second_order_cone_constraint_updates = 14;
4664 if (CheckHasBit(cached_has_bits, 0x00002000U)) {
4665 target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage(
4666 14, *this_._impl_.second_order_cone_constraint_updates_, this_._impl_.second_order_cone_constraint_updates_->GetCachedSize(), target,
4667 stream);
4668 }
4669
4670 if (ABSL_PREDICT_FALSE(this_._internal_metadata_.have_unknown_fields())) {
4671 target =
4672 ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray(
4673 this_._internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream);
4674 }
4675 // @@protoc_insertion_point(serialize_to_array_end:operations_research.math_opt.ModelUpdateProto)
4676 return target;
4677}
4678
4679#if defined(PROTOBUF_CUSTOM_VTABLE)
4680::size_t ModelUpdateProto::ByteSizeLong(const MessageLite& base) {
4681 const ModelUpdateProto& this_ = static_cast<const ModelUpdateProto&>(base);
4682#else // PROTOBUF_CUSTOM_VTABLE
4683::size_t ModelUpdateProto::ByteSizeLong() const {
4684 const ModelUpdateProto& this_ = *this;
4685#endif // PROTOBUF_CUSTOM_VTABLE
4686 // @@protoc_insertion_point(message_byte_size_start:operations_research.math_opt.ModelUpdateProto)
4687 ::size_t total_size = 0;
4688
4689 ::uint32_t cached_has_bits = 0;
4690 // Prevent compiler warnings about cached_has_bits being unused
4691 (void)cached_has_bits;
4692
4693 ::_pbi::Prefetch5LinesFrom7Lines(&this_);
4694 cached_has_bits = this_._impl_._has_bits_[0];
4695 if (BatchCheckHasBit(cached_has_bits, 0x000000ffU)) {
4696 // repeated int64 deleted_variable_ids = 1;
4697 if (CheckHasBitForRepeated(cached_has_bits, 0x00000001U)) {
4698 total_size +=
4699 ::_pbi::WireFormatLite::Int64SizeWithPackedTagSize(
4700 this_._internal_deleted_variable_ids(), 1,
4701 this_._impl_._deleted_variable_ids_cached_byte_size_);
4702 }
4703 // repeated int64 deleted_linear_constraint_ids = 2;
4704 if (CheckHasBitForRepeated(cached_has_bits, 0x00000002U)) {
4705 total_size +=
4706 ::_pbi::WireFormatLite::Int64SizeWithPackedTagSize(
4707 this_._internal_deleted_linear_constraint_ids(), 1,
4708 this_._impl_._deleted_linear_constraint_ids_cached_byte_size_);
4709 }
4710 // .operations_research.math_opt.VariableUpdatesProto variable_updates = 3;
4711 if (CheckHasBit(cached_has_bits, 0x00000004U)) {
4712 total_size += 1 +
4713 ::google::protobuf::internal::WireFormatLite::MessageSize(*this_._impl_.variable_updates_);
4714 }
4715 // .operations_research.math_opt.LinearConstraintUpdatesProto linear_constraint_updates = 4;
4716 if (CheckHasBit(cached_has_bits, 0x00000008U)) {
4717 total_size += 1 +
4718 ::google::protobuf::internal::WireFormatLite::MessageSize(*this_._impl_.linear_constraint_updates_);
4719 }
4720 // .operations_research.math_opt.VariablesProto new_variables = 5;
4721 if (CheckHasBit(cached_has_bits, 0x00000010U)) {
4722 total_size += 1 +
4723 ::google::protobuf::internal::WireFormatLite::MessageSize(*this_._impl_.new_variables_);
4724 }
4725 // .operations_research.math_opt.LinearConstraintsProto new_linear_constraints = 6;
4726 if (CheckHasBit(cached_has_bits, 0x00000020U)) {
4727 total_size += 1 +
4728 ::google::protobuf::internal::WireFormatLite::MessageSize(*this_._impl_.new_linear_constraints_);
4729 }
4730 // .operations_research.math_opt.ObjectiveUpdatesProto objective_updates = 7;
4731 if (CheckHasBit(cached_has_bits, 0x00000040U)) {
4732 total_size += 1 +
4733 ::google::protobuf::internal::WireFormatLite::MessageSize(*this_._impl_.objective_updates_);
4734 }
4735 // .operations_research.math_opt.SparseDoubleMatrixProto linear_constraint_matrix_updates = 8;
4736 if (CheckHasBit(cached_has_bits, 0x00000080U)) {
4737 total_size += 1 +
4738 ::google::protobuf::internal::WireFormatLite::MessageSize(*this_._impl_.linear_constraint_matrix_updates_);
4739 }
4740 }
4741 if (BatchCheckHasBit(cached_has_bits, 0x00003f00U)) {
4742 // .operations_research.math_opt.QuadraticConstraintUpdatesProto quadratic_constraint_updates = 9;
4743 if (CheckHasBit(cached_has_bits, 0x00000100U)) {
4744 total_size += 1 +
4745 ::google::protobuf::internal::WireFormatLite::MessageSize(*this_._impl_.quadratic_constraint_updates_);
4746 }
4747 // .operations_research.math_opt.SosConstraintUpdatesProto sos1_constraint_updates = 10;
4748 if (CheckHasBit(cached_has_bits, 0x00000200U)) {
4749 total_size += 1 +
4750 ::google::protobuf::internal::WireFormatLite::MessageSize(*this_._impl_.sos1_constraint_updates_);
4751 }
4752 // .operations_research.math_opt.SosConstraintUpdatesProto sos2_constraint_updates = 11;
4753 if (CheckHasBit(cached_has_bits, 0x00000400U)) {
4754 total_size += 1 +
4755 ::google::protobuf::internal::WireFormatLite::MessageSize(*this_._impl_.sos2_constraint_updates_);
4756 }
4757 // .operations_research.math_opt.IndicatorConstraintUpdatesProto indicator_constraint_updates = 12;
4758 if (CheckHasBit(cached_has_bits, 0x00000800U)) {
4759 total_size += 1 +
4760 ::google::protobuf::internal::WireFormatLite::MessageSize(*this_._impl_.indicator_constraint_updates_);
4761 }
4762 // .operations_research.math_opt.AuxiliaryObjectivesUpdatesProto auxiliary_objectives_updates = 13;
4763 if (CheckHasBit(cached_has_bits, 0x00001000U)) {
4764 total_size += 1 +
4765 ::google::protobuf::internal::WireFormatLite::MessageSize(*this_._impl_.auxiliary_objectives_updates_);
4766 }
4767 // .operations_research.math_opt.SecondOrderConeConstraintUpdatesProto second_order_cone_constraint_updates = 14;
4768 if (CheckHasBit(cached_has_bits, 0x00002000U)) {
4769 total_size += 1 +
4770 ::google::protobuf::internal::WireFormatLite::MessageSize(*this_._impl_.second_order_cone_constraint_updates_);
4771 }
4772 }
4773 return this_.MaybeComputeUnknownFieldsSize(total_size,
4774 &this_._impl_._cached_size_);
4775}
4776
4777void ModelUpdateProto::MergeImpl(::google::protobuf::MessageLite& to_msg,
4778 const ::google::protobuf::MessageLite& from_msg) {
4779 auto* const _this =
4780 static_cast<ModelUpdateProto*>(&to_msg);
4781 auto& from = static_cast<const ModelUpdateProto&>(from_msg);
4782 if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) {
4783 from.CheckHasBitConsistency();
4784 }
4785 ::google::protobuf::Arena* arena = _this->GetArena();
4786 // @@protoc_insertion_point(class_specific_merge_from_start:operations_research.math_opt.ModelUpdateProto)
4787 ABSL_DCHECK_NE(&from, _this);
4788 ::uint32_t cached_has_bits = 0;
4789 (void)cached_has_bits;
4790
4791 cached_has_bits = from._impl_._has_bits_[0];
4792 if (BatchCheckHasBit(cached_has_bits, 0x000000ffU)) {
4793 if (CheckHasBitForRepeated(cached_has_bits, 0x00000001U)) {
4794 _this->_internal_mutable_deleted_variable_ids()->MergeFrom(from._internal_deleted_variable_ids());
4795 }
4796 if (CheckHasBitForRepeated(cached_has_bits, 0x00000002U)) {
4797 _this->_internal_mutable_deleted_linear_constraint_ids()->MergeFrom(from._internal_deleted_linear_constraint_ids());
4798 }
4799 if (CheckHasBit(cached_has_bits, 0x00000004U)) {
4800 ABSL_DCHECK(from._impl_.variable_updates_ != nullptr);
4801 if (_this->_impl_.variable_updates_ == nullptr) {
4802 _this->_impl_.variable_updates_ = ::google::protobuf::Message::CopyConstruct(arena, *from._impl_.variable_updates_);
4803 } else {
4804 _this->_impl_.variable_updates_->MergeFrom(*from._impl_.variable_updates_);
4805 }
4806 }
4807 if (CheckHasBit(cached_has_bits, 0x00000008U)) {
4808 ABSL_DCHECK(from._impl_.linear_constraint_updates_ != nullptr);
4809 if (_this->_impl_.linear_constraint_updates_ == nullptr) {
4810 _this->_impl_.linear_constraint_updates_ = ::google::protobuf::Message::CopyConstruct(arena, *from._impl_.linear_constraint_updates_);
4811 } else {
4812 _this->_impl_.linear_constraint_updates_->MergeFrom(*from._impl_.linear_constraint_updates_);
4813 }
4814 }
4815 if (CheckHasBit(cached_has_bits, 0x00000010U)) {
4816 ABSL_DCHECK(from._impl_.new_variables_ != nullptr);
4817 if (_this->_impl_.new_variables_ == nullptr) {
4818 _this->_impl_.new_variables_ = ::google::protobuf::Message::CopyConstruct(arena, *from._impl_.new_variables_);
4819 } else {
4820 _this->_impl_.new_variables_->MergeFrom(*from._impl_.new_variables_);
4821 }
4822 }
4823 if (CheckHasBit(cached_has_bits, 0x00000020U)) {
4824 ABSL_DCHECK(from._impl_.new_linear_constraints_ != nullptr);
4825 if (_this->_impl_.new_linear_constraints_ == nullptr) {
4826 _this->_impl_.new_linear_constraints_ = ::google::protobuf::Message::CopyConstruct(arena, *from._impl_.new_linear_constraints_);
4827 } else {
4828 _this->_impl_.new_linear_constraints_->MergeFrom(*from._impl_.new_linear_constraints_);
4829 }
4830 }
4831 if (CheckHasBit(cached_has_bits, 0x00000040U)) {
4832 ABSL_DCHECK(from._impl_.objective_updates_ != nullptr);
4833 if (_this->_impl_.objective_updates_ == nullptr) {
4834 _this->_impl_.objective_updates_ = ::google::protobuf::Message::CopyConstruct(arena, *from._impl_.objective_updates_);
4835 } else {
4836 _this->_impl_.objective_updates_->MergeFrom(*from._impl_.objective_updates_);
4837 }
4838 }
4839 if (CheckHasBit(cached_has_bits, 0x00000080U)) {
4840 ABSL_DCHECK(from._impl_.linear_constraint_matrix_updates_ != nullptr);
4841 if (_this->_impl_.linear_constraint_matrix_updates_ == nullptr) {
4842 _this->_impl_.linear_constraint_matrix_updates_ = ::google::protobuf::Message::CopyConstruct(arena, *from._impl_.linear_constraint_matrix_updates_);
4843 } else {
4844 _this->_impl_.linear_constraint_matrix_updates_->MergeFrom(*from._impl_.linear_constraint_matrix_updates_);
4845 }
4846 }
4847 }
4848 if (BatchCheckHasBit(cached_has_bits, 0x00003f00U)) {
4849 if (CheckHasBit(cached_has_bits, 0x00000100U)) {
4850 ABSL_DCHECK(from._impl_.quadratic_constraint_updates_ != nullptr);
4851 if (_this->_impl_.quadratic_constraint_updates_ == nullptr) {
4852 _this->_impl_.quadratic_constraint_updates_ = ::google::protobuf::Message::CopyConstruct(arena, *from._impl_.quadratic_constraint_updates_);
4853 } else {
4854 _this->_impl_.quadratic_constraint_updates_->MergeFrom(*from._impl_.quadratic_constraint_updates_);
4855 }
4856 }
4857 if (CheckHasBit(cached_has_bits, 0x00000200U)) {
4858 ABSL_DCHECK(from._impl_.sos1_constraint_updates_ != nullptr);
4859 if (_this->_impl_.sos1_constraint_updates_ == nullptr) {
4860 _this->_impl_.sos1_constraint_updates_ = ::google::protobuf::Message::CopyConstruct(arena, *from._impl_.sos1_constraint_updates_);
4861 } else {
4862 _this->_impl_.sos1_constraint_updates_->MergeFrom(*from._impl_.sos1_constraint_updates_);
4863 }
4864 }
4865 if (CheckHasBit(cached_has_bits, 0x00000400U)) {
4866 ABSL_DCHECK(from._impl_.sos2_constraint_updates_ != nullptr);
4867 if (_this->_impl_.sos2_constraint_updates_ == nullptr) {
4868 _this->_impl_.sos2_constraint_updates_ = ::google::protobuf::Message::CopyConstruct(arena, *from._impl_.sos2_constraint_updates_);
4869 } else {
4870 _this->_impl_.sos2_constraint_updates_->MergeFrom(*from._impl_.sos2_constraint_updates_);
4871 }
4872 }
4873 if (CheckHasBit(cached_has_bits, 0x00000800U)) {
4874 ABSL_DCHECK(from._impl_.indicator_constraint_updates_ != nullptr);
4875 if (_this->_impl_.indicator_constraint_updates_ == nullptr) {
4876 _this->_impl_.indicator_constraint_updates_ = ::google::protobuf::Message::CopyConstruct(arena, *from._impl_.indicator_constraint_updates_);
4877 } else {
4878 _this->_impl_.indicator_constraint_updates_->MergeFrom(*from._impl_.indicator_constraint_updates_);
4879 }
4880 }
4881 if (CheckHasBit(cached_has_bits, 0x00001000U)) {
4882 ABSL_DCHECK(from._impl_.auxiliary_objectives_updates_ != nullptr);
4883 if (_this->_impl_.auxiliary_objectives_updates_ == nullptr) {
4884 _this->_impl_.auxiliary_objectives_updates_ = ::google::protobuf::Message::CopyConstruct(arena, *from._impl_.auxiliary_objectives_updates_);
4885 } else {
4886 _this->_impl_.auxiliary_objectives_updates_->MergeFrom(*from._impl_.auxiliary_objectives_updates_);
4887 }
4888 }
4889 if (CheckHasBit(cached_has_bits, 0x00002000U)) {
4890 ABSL_DCHECK(from._impl_.second_order_cone_constraint_updates_ != nullptr);
4891 if (_this->_impl_.second_order_cone_constraint_updates_ == nullptr) {
4892 _this->_impl_.second_order_cone_constraint_updates_ = ::google::protobuf::Message::CopyConstruct(arena, *from._impl_.second_order_cone_constraint_updates_);
4893 } else {
4894 _this->_impl_.second_order_cone_constraint_updates_->MergeFrom(*from._impl_.second_order_cone_constraint_updates_);
4895 }
4896 }
4897 }
4898 _this->_impl_._has_bits_[0] |= cached_has_bits;
4899 _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(
4900 from._internal_metadata_);
4901}
4902
4904 // @@protoc_insertion_point(class_specific_copy_from_start:operations_research.math_opt.ModelUpdateProto)
4905 if (&from == this) return;
4906 Clear();
4907 MergeFrom(from);
4908}
4909
4910
4911void ModelUpdateProto::InternalSwap(ModelUpdateProto* PROTOBUF_RESTRICT PROTOBUF_NONNULL other) {
4912 using ::std::swap;
4913 _internal_metadata_.InternalSwap(&other->_internal_metadata_);
4914 swap(_impl_._has_bits_[0], other->_impl_._has_bits_[0]);
4915 _impl_.deleted_variable_ids_.InternalSwap(&other->_impl_.deleted_variable_ids_);
4916 _impl_.deleted_linear_constraint_ids_.InternalSwap(&other->_impl_.deleted_linear_constraint_ids_);
4917 ::google::protobuf::internal::memswap<
4918 PROTOBUF_FIELD_OFFSET(ModelUpdateProto, _impl_.second_order_cone_constraint_updates_)
4919 + sizeof(ModelUpdateProto::_impl_.second_order_cone_constraint_updates_)
4920 - PROTOBUF_FIELD_OFFSET(ModelUpdateProto, _impl_.variable_updates_)>(
4921 reinterpret_cast<char*>(&_impl_.variable_updates_),
4922 reinterpret_cast<char*>(&other->_impl_.variable_updates_));
4923}
4924
4925::google::protobuf::Metadata ModelUpdateProto::GetMetadata() const {
4926 return ::google::protobuf::Message::GetMetadataImpl(GetClassData()->full());
4927}
4928// @@protoc_insertion_point(namespace_scope)
4929} // namespace math_opt
4930} // namespace operations_research
4931namespace google {
4932namespace protobuf {
4933} // namespace protobuf
4934} // namespace google
4935// @@protoc_insertion_point(global_scope)
4936PROTOBUF_ATTRIBUTE_INIT_PRIORITY2 static ::std::false_type
4937 _static_init2_ [[maybe_unused]] =
4939 ::std::false_type{});
4940#include "google/protobuf/port_undef.inc"
static PROTOBUF_ATTRIBUTE_INIT_PRIORITY2 ::std::false_type _static_init2_
static const ::_pb::Message *PROTOBUF_NONNULL const file_default_instances[]
void MergeFrom(const AuxiliaryObjectivesUpdatesProto &from)
void CopyFrom(const AuxiliaryObjectivesUpdatesProto &from)
ABSL_ATTRIBUTE_REINITIALIZES void Clear() PROTOBUF_FINAL
friend void swap(AuxiliaryObjectivesUpdatesProto &a, AuxiliaryObjectivesUpdatesProto &b)
::uint8_t *PROTOBUF_NONNULL _InternalSerialize(::uint8_t *PROTOBUF_NONNULL target, ::google::protobuf::io::EpsCopyOutputStream *PROTOBUF_NONNULL stream) const final
decltype(::std::declval< IndicatorConstraintUpdatesProto >()._impl_._has_bits_) HasBits
void MergeFrom(const IndicatorConstraintUpdatesProto &from)
void CopyFrom(const IndicatorConstraintUpdatesProto &from)
friend void swap(IndicatorConstraintUpdatesProto &a, IndicatorConstraintUpdatesProto &b)
ABSL_ATTRIBUTE_REINITIALIZES void Clear() PROTOBUF_FINAL
::uint8_t *PROTOBUF_NONNULL _InternalSerialize(::uint8_t *PROTOBUF_NONNULL target, ::google::protobuf::io::EpsCopyOutputStream *PROTOBUF_NONNULL stream) const final
void MergeFrom(const LinearConstraintUpdatesProto &from)
::uint8_t *PROTOBUF_NONNULL _InternalSerialize(::uint8_t *PROTOBUF_NONNULL target, ::google::protobuf::io::EpsCopyOutputStream *PROTOBUF_NONNULL stream) const final
ABSL_ATTRIBUTE_REINITIALIZES void Clear() PROTOBUF_FINAL
void CopyFrom(const LinearConstraintUpdatesProto &from)
void MergeFrom(const LinearConstraintsProto &from)
Definition model.pb.h:498
ABSL_ATTRIBUTE_REINITIALIZES void Clear() PROTOBUF_FINAL
Definition model.pb.cc:1790
friend class ::google::protobuf::MessageLite
void CopyFrom(const ModelUpdateProto &from)
void MergeFrom(const ModelUpdateProto &from)
::google::protobuf::Metadata GetMetadata() const
::uint8_t *PROTOBUF_NONNULL _InternalSerialize(::uint8_t *PROTOBUF_NONNULL target, ::google::protobuf::io::EpsCopyOutputStream *PROTOBUF_NONNULL stream) const final
ABSL_ATTRIBUTE_REINITIALIZES void Clear() PROTOBUF_FINAL
friend void swap(ModelUpdateProto &a, ModelUpdateProto &b)
decltype(::std::declval< ObjectiveUpdatesProto >()._impl_._has_bits_) HasBits
ABSL_ATTRIBUTE_REINITIALIZES void Clear() PROTOBUF_FINAL
void MergeFrom(const ObjectiveUpdatesProto &from)
friend void swap(ObjectiveUpdatesProto &a, ObjectiveUpdatesProto &b)
void CopyFrom(const ObjectiveUpdatesProto &from)
::google::protobuf::Metadata GetMetadata() const
const ::google::protobuf::UnknownFieldSet & unknown_fields() const ABSL_ATTRIBUTE_LIFETIME_BOUND
::uint8_t *PROTOBUF_NONNULL _InternalSerialize(::uint8_t *PROTOBUF_NONNULL target, ::google::protobuf::io::EpsCopyOutputStream *PROTOBUF_NONNULL stream) const final
decltype(::std::declval< QuadraticConstraintUpdatesProto >()._impl_._has_bits_) HasBits
void CopyFrom(const QuadraticConstraintUpdatesProto &from)
::uint8_t *PROTOBUF_NONNULL _InternalSerialize(::uint8_t *PROTOBUF_NONNULL target, ::google::protobuf::io::EpsCopyOutputStream *PROTOBUF_NONNULL stream) const final
friend void swap(QuadraticConstraintUpdatesProto &a, QuadraticConstraintUpdatesProto &b)
void MergeFrom(const QuadraticConstraintUpdatesProto &from)
ABSL_ATTRIBUTE_REINITIALIZES void Clear() PROTOBUF_FINAL
decltype(::std::declval< SecondOrderConeConstraintUpdatesProto >()._impl_._has_bits_) HasBits
void MergeFrom(const SecondOrderConeConstraintUpdatesProto &from)
::uint8_t *PROTOBUF_NONNULL _InternalSerialize(::uint8_t *PROTOBUF_NONNULL target, ::google::protobuf::io::EpsCopyOutputStream *PROTOBUF_NONNULL stream) const final
void CopyFrom(const SecondOrderConeConstraintUpdatesProto &from)
ABSL_ATTRIBUTE_REINITIALIZES void Clear() PROTOBUF_FINAL
friend void swap(SecondOrderConeConstraintUpdatesProto &a, SecondOrderConeConstraintUpdatesProto &b)
decltype(::std::declval< SosConstraintUpdatesProto >()._impl_._has_bits_) HasBits
::uint8_t *PROTOBUF_NONNULL _InternalSerialize(::uint8_t *PROTOBUF_NONNULL target, ::google::protobuf::io::EpsCopyOutputStream *PROTOBUF_NONNULL stream) const final
ABSL_ATTRIBUTE_REINITIALIZES void Clear() PROTOBUF_FINAL
void CopyFrom(const SosConstraintUpdatesProto &from)
void MergeFrom(const SosConstraintUpdatesProto &from)
friend void swap(SosConstraintUpdatesProto &a, SosConstraintUpdatesProto &b)
ABSL_ATTRIBUTE_REINITIALIZES void Clear() PROTOBUF_FINAL
void MergeFrom(const SparseDoubleMatrixProto &from)
ABSL_ATTRIBUTE_REINITIALIZES void Clear() PROTOBUF_FINAL
ABSL_ATTRIBUTE_REINITIALIZES void Clear() PROTOBUF_FINAL
decltype(::std::declval< VariableUpdatesProto >()._impl_._has_bits_) HasBits
void MergeFrom(const VariableUpdatesProto &from)
ABSL_ATTRIBUTE_REINITIALIZES void Clear() PROTOBUF_FINAL
::uint8_t *PROTOBUF_NONNULL _InternalSerialize(::uint8_t *PROTOBUF_NONNULL target, ::google::protobuf::io::EpsCopyOutputStream *PROTOBUF_NONNULL stream) const final
void CopyFrom(const VariableUpdatesProto &from)
friend void swap(VariableUpdatesProto &a, VariableUpdatesProto &b)
const ::google::protobuf::UnknownFieldSet & unknown_fields() const ABSL_ATTRIBUTE_LIFETIME_BOUND
::google::protobuf::Metadata GetMetadata() const
ABSL_ATTRIBUTE_REINITIALIZES void Clear() PROTOBUF_FINAL
Definition model.pb.cc:895
void MergeFrom(const VariablesProto &from)
Definition model.pb.h:214
static constexpr ::_pbi::MigrationSchema *PROTOBUF_NULLABLE schemas
PROTOBUF_CONSTINITconst ::_pbi::DescriptorTable descriptor_table_ortools_2fmath_5fopt_2fmodel_2eproto
Definition model.pb.cc:666
static constexprconst ::_pb::ServiceDescriptor *PROTOBUF_NONNULL *PROTOBUF_NULLABLE file_level_service_descriptors_ortools_2fmath_5fopt_2fmodel_5fupdate_2eproto
static constexprconst ::_pb::EnumDescriptor *PROTOBUF_NONNULL *PROTOBUF_NULLABLE file_level_enum_descriptors_ortools_2fmath_5fopt_2fmodel_5fupdate_2eproto
PROTOBUF_CONSTINITconst ::_pbi::DescriptorTable descriptor_table_ortools_2fmath_5fopt_2fmodel_5fupdate_2eproto
::absl::once_flag descriptor_table_ortools_2fmath_5fopt_2fmodel_5fupdate_2eproto_once
const ::uint32_t TableStruct_ortools_2fmath_5fopt_2fmodel_5fupdate_2eproto::offsets[] ABSL_ATTRIBUTE_SECTION_VARIABLE(protodesc_cold)
static const ::_pbi::DescriptorTable *PROTOBUF_NONNULL const descriptor_table_ortools_2fmath_5fopt_2fmodel_5fupdate_2eproto_deps[2]
PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT OR_PROTO_DLL PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 ObjectiveUpdatesProtoDefaultTypeInternal _ObjectiveUpdatesProto_default_instance_
PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 const::google::protobuf::internal::ClassDataFull VariableUpdatesProto_class_data_
PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT OR_PROTO_DLL PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 SosConstraintUpdatesProtoDefaultTypeInternal _SosConstraintUpdatesProto_default_instance_
PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT OR_PROTO_DLL PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 AuxiliaryObjectivesUpdatesProto_NewObjectivesEntry_DoNotUseDefaultTypeInternal _AuxiliaryObjectivesUpdatesProto_NewObjectivesEntry_DoNotUse_default_instance_
PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT OR_PROTO_DLL PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 LinearConstraintUpdatesProtoDefaultTypeInternal _LinearConstraintUpdatesProto_default_instance_
PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT OR_PROTO_DLL PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 ModelUpdateProtoDefaultTypeInternal _ModelUpdateProto_default_instance_
PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT OR_PROTO_DLL PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 QuadraticConstraintUpdatesProtoDefaultTypeInternal _QuadraticConstraintUpdatesProto_default_instance_
PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 const::google::protobuf::internal::ClassDataFull QuadraticConstraintUpdatesProto_NewConstraintsEntry_DoNotUse_class_data_
PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT OR_PROTO_DLL PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 IndicatorConstraintUpdatesProtoDefaultTypeInternal _IndicatorConstraintUpdatesProto_default_instance_
PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 const::google::protobuf::internal::ClassDataFull SosConstraintUpdatesProto_NewConstraintsEntry_DoNotUse_class_data_
PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 const::google::protobuf::internal::ClassDataFull LinearConstraintUpdatesProto_class_data_
PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 const::google::protobuf::internal::ClassDataFull ModelUpdateProto_class_data_
PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 const::google::protobuf::internal::ClassDataFull IndicatorConstraintUpdatesProto_class_data_
PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT OR_PROTO_DLL PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 AuxiliaryObjectivesUpdatesProto_ObjectiveUpdatesEntry_DoNotUseDefaultTypeInternal _AuxiliaryObjectivesUpdatesProto_ObjectiveUpdatesEntry_DoNotUse_default_instance_
PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 const::google::protobuf::internal::ClassDataFull SosConstraintUpdatesProto_class_data_
PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT OR_PROTO_DLL PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 SecondOrderConeConstraintUpdatesProto_NewConstraintsEntry_DoNotUseDefaultTypeInternal _SecondOrderConeConstraintUpdatesProto_NewConstraintsEntry_DoNotUse_default_instance_
PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT OR_PROTO_DLL PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 SecondOrderConeConstraintUpdatesProtoDefaultTypeInternal _SecondOrderConeConstraintUpdatesProto_default_instance_
PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT OR_PROTO_DLL PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 QuadraticConstraintUpdatesProto_NewConstraintsEntry_DoNotUseDefaultTypeInternal _QuadraticConstraintUpdatesProto_NewConstraintsEntry_DoNotUse_default_instance_
PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 const::google::protobuf::internal::ClassDataFull AuxiliaryObjectivesUpdatesProto_ObjectiveUpdatesEntry_DoNotUse_class_data_
PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT OR_PROTO_DLL PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 SosConstraintUpdatesProto_NewConstraintsEntry_DoNotUseDefaultTypeInternal _SosConstraintUpdatesProto_NewConstraintsEntry_DoNotUse_default_instance_
PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 const::google::protobuf::internal::ClassDataFull QuadraticConstraintUpdatesProto_class_data_
PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT OR_PROTO_DLL PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 VariableUpdatesProtoDefaultTypeInternal _VariableUpdatesProto_default_instance_
PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 const::google::protobuf::internal::ClassDataFull ObjectiveUpdatesProto_class_data_
PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT OR_PROTO_DLL PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 AuxiliaryObjectivesUpdatesProtoDefaultTypeInternal _AuxiliaryObjectivesUpdatesProto_default_instance_
PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 const::google::protobuf::internal::ClassDataFull SecondOrderConeConstraintUpdatesProto_NewConstraintsEntry_DoNotUse_class_data_
PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 const::google::protobuf::internal::ClassDataFull AuxiliaryObjectivesUpdatesProto_class_data_
PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 const::google::protobuf::internal::ClassDataFull IndicatorConstraintUpdatesProto_NewConstraintsEntry_DoNotUse_class_data_
PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT OR_PROTO_DLL PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 IndicatorConstraintUpdatesProto_NewConstraintsEntry_DoNotUseDefaultTypeInternal _IndicatorConstraintUpdatesProto_NewConstraintsEntry_DoNotUse_default_instance_
PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 const::google::protobuf::internal::ClassDataFull AuxiliaryObjectivesUpdatesProto_NewObjectivesEntry_DoNotUse_class_data_
PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 const::google::protobuf::internal::ClassDataFull SecondOrderConeConstraintUpdatesProto_class_data_
OR-Tools root namespace.
PROTOBUF_CONSTINITconst ::_pbi::DescriptorTable descriptor_table_ortools_2fmath_5fopt_2fsparse_5fcontainers_2eproto