Google OR-Tools v9.14
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.31.1
5
7
8#include <algorithm>
9#include <type_traits>
10#include "google/protobuf/io/coded_stream.h"
11#include "google/protobuf/generated_message_tctable_impl.h"
12#include "google/protobuf/extension_set.h"
13#include "google/protobuf/generated_message_util.h"
14#include "google/protobuf/wire_format_lite.h"
15#include "google/protobuf/descriptor.h"
16#include "google/protobuf/generated_message_reflection.h"
17#include "google/protobuf/reflection_ops.h"
18#include "google/protobuf/wire_format.h"
19// @@protoc_insertion_point(includes)
20
21// Must be included last.
22#include "google/protobuf/port_def.inc"
23PROTOBUF_PRAGMA_INIT_SEG
24namespace _pb = ::google::protobuf;
26namespace _fl = ::google::protobuf::internal::field_layout;
27namespace operations_research {
28namespace math_opt {
29
30inline constexpr 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 : deleted_constraint_ids_{},
223 _deleted_constraint_ids_cached_byte_size_{0},
224 new_constraints_{},
225 _cached_size_{0} {}
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 : deleted_constraint_ids_{},
250 _deleted_constraint_ids_cached_byte_size_{0},
251 new_constraints_{},
252 _cached_size_{0} {}
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 : deleted_constraint_ids_{},
277 _deleted_constraint_ids_cached_byte_size_{0},
278 new_constraints_{},
279 _cached_size_{0} {}
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 : deleted_constraint_ids_{},
304 _deleted_constraint_ids_cached_byte_size_{0},
305 new_constraints_{},
306 _cached_size_{0} {}
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 : deleted_objective_ids_{},
331 _deleted_objective_ids_cached_byte_size_{0},
332 new_objectives_{},
333 objective_updates_{},
334 _cached_size_{0} {}
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 0x000, // bitmap
441 PROTOBUF_FIELD_OFFSET(::operations_research::math_opt::AuxiliaryObjectivesUpdatesProto, _impl_.deleted_objective_ids_),
442 PROTOBUF_FIELD_OFFSET(::operations_research::math_opt::AuxiliaryObjectivesUpdatesProto, _impl_.new_objectives_),
443 PROTOBUF_FIELD_OFFSET(::operations_research::math_opt::AuxiliaryObjectivesUpdatesProto, _impl_.objective_updates_),
444 0x081, // bitmap
445 PROTOBUF_FIELD_OFFSET(::operations_research::math_opt::LinearConstraintUpdatesProto, _impl_._has_bits_),
446 5, // hasbit index offset
447 PROTOBUF_FIELD_OFFSET(::operations_research::math_opt::LinearConstraintUpdatesProto, _impl_.lower_bounds_),
448 PROTOBUF_FIELD_OFFSET(::operations_research::math_opt::LinearConstraintUpdatesProto, _impl_.upper_bounds_),
449 0,
450 1,
451 0x081, // bitmap
453 5, // hasbit index offset
456 0,
457 1,
458 0x000, // bitmap
459 PROTOBUF_FIELD_OFFSET(::operations_research::math_opt::QuadraticConstraintUpdatesProto, _impl_.deleted_constraint_ids_),
460 PROTOBUF_FIELD_OFFSET(::operations_research::math_opt::QuadraticConstraintUpdatesProto, _impl_.new_constraints_),
461 0x081, // bitmap
463 5, // hasbit index offset
466 0,
467 1,
468 0x000, // bitmap
469 PROTOBUF_FIELD_OFFSET(::operations_research::math_opt::SecondOrderConeConstraintUpdatesProto, _impl_.deleted_constraint_ids_),
470 PROTOBUF_FIELD_OFFSET(::operations_research::math_opt::SecondOrderConeConstraintUpdatesProto, _impl_.new_constraints_),
471 0x081, // bitmap
473 5, // hasbit index offset
476 0,
477 1,
478 0x000, // bitmap
479 PROTOBUF_FIELD_OFFSET(::operations_research::math_opt::SosConstraintUpdatesProto, _impl_.deleted_constraint_ids_),
480 PROTOBUF_FIELD_OFFSET(::operations_research::math_opt::SosConstraintUpdatesProto, _impl_.new_constraints_),
481 0x081, // bitmap
483 5, // hasbit index offset
486 0,
487 1,
488 0x000, // bitmap
489 PROTOBUF_FIELD_OFFSET(::operations_research::math_opt::IndicatorConstraintUpdatesProto, _impl_.deleted_constraint_ids_),
490 PROTOBUF_FIELD_OFFSET(::operations_research::math_opt::IndicatorConstraintUpdatesProto, _impl_.new_constraints_),
491 0x081, // bitmap
492 PROTOBUF_FIELD_OFFSET(::operations_research::math_opt::ModelUpdateProto, _impl_._has_bits_),
493 17, // hasbit index offset
494 PROTOBUF_FIELD_OFFSET(::operations_research::math_opt::ModelUpdateProto, _impl_.deleted_variable_ids_),
495 PROTOBUF_FIELD_OFFSET(::operations_research::math_opt::ModelUpdateProto, _impl_.deleted_linear_constraint_ids_),
496 PROTOBUF_FIELD_OFFSET(::operations_research::math_opt::ModelUpdateProto, _impl_.variable_updates_),
497 PROTOBUF_FIELD_OFFSET(::operations_research::math_opt::ModelUpdateProto, _impl_.linear_constraint_updates_),
498 PROTOBUF_FIELD_OFFSET(::operations_research::math_opt::ModelUpdateProto, _impl_.new_variables_),
499 PROTOBUF_FIELD_OFFSET(::operations_research::math_opt::ModelUpdateProto, _impl_.new_linear_constraints_),
500 PROTOBUF_FIELD_OFFSET(::operations_research::math_opt::ModelUpdateProto, _impl_.objective_updates_),
501 PROTOBUF_FIELD_OFFSET(::operations_research::math_opt::ModelUpdateProto, _impl_.auxiliary_objectives_updates_),
502 PROTOBUF_FIELD_OFFSET(::operations_research::math_opt::ModelUpdateProto, _impl_.linear_constraint_matrix_updates_),
503 PROTOBUF_FIELD_OFFSET(::operations_research::math_opt::ModelUpdateProto, _impl_.quadratic_constraint_updates_),
504 PROTOBUF_FIELD_OFFSET(::operations_research::math_opt::ModelUpdateProto, _impl_.second_order_cone_constraint_updates_),
505 PROTOBUF_FIELD_OFFSET(::operations_research::math_opt::ModelUpdateProto, _impl_.sos1_constraint_updates_),
506 PROTOBUF_FIELD_OFFSET(::operations_research::math_opt::ModelUpdateProto, _impl_.sos2_constraint_updates_),
507 PROTOBUF_FIELD_OFFSET(::operations_research::math_opt::ModelUpdateProto, _impl_.indicator_constraint_updates_),
508 ~0u,
509 ~0u,
510 0,
511 1,
512 2,
513 3,
514 4,
515 10,
516 5,
517 6,
518 11,
519 7,
520 8,
521 9,
522};
523
524static const ::_pbi::MigrationSchema
525 schemas[] ABSL_ATTRIBUTE_SECTION_VARIABLE(protodesc_cold) = {
541};
542static const ::_pb::Message* PROTOBUF_NONNULL const file_default_instances[] = {
558};
559const char descriptor_table_protodef_ortools_2fmath_5fopt_2fmodel_5fupdate_2eproto[] ABSL_ATTRIBUTE_SECTION_VARIABLE(
560 protodesc_cold) = {
561 "\n#ortools/math_opt/model_update.proto\022\034o"
562 "perations_research.math_opt\032\034ortools/mat"
563 "h_opt/model.proto\032(ortools/math_opt/spar"
564 "se_containers.proto\"\367\001\n\024VariableUpdatesP"
565 "roto\022K\n\014lower_bounds\030\001 \001(\01325.operations_"
566 "research.math_opt.SparseDoubleVectorProt"
567 "o\022K\n\014upper_bounds\030\002 \001(\01325.operations_res"
568 "earch.math_opt.SparseDoubleVectorProto\022E"
569 "\n\010integers\030\003 \001(\01323.operations_research.m"
570 "ath_opt.SparseBoolVectorProto\"\326\002\n\025Object"
571 "iveUpdatesProto\022\035\n\020direction_update\030\001 \001("
572 "\010H\000\210\001\001\022\032\n\roffset_update\030\002 \001(\001H\001\210\001\001\022R\n\023li"
573 "near_coefficients\030\003 \001(\01325.operations_res"
574 "earch.math_opt.SparseDoubleVectorProto\022U"
575 "\n\026quadratic_coefficients\030\004 \001(\01325.operati"
576 "ons_research.math_opt.SparseDoubleMatrix"
577 "Proto\022\034\n\017priority_update\030\005 \001(\003H\002\210\001\001B\023\n\021_"
578 "direction_updateB\020\n\016_offset_updateB\022\n\020_p"
579 "riority_update\"\354\003\n\037AuxiliaryObjectivesUp"
580 "datesProto\022\035\n\025deleted_objective_ids\030\001 \003("
581 "\003\022h\n\016new_objectives\030\002 \003(\0132P.operations_r"
582 "esearch.math_opt.AuxiliaryObjectivesUpda"
583 "tesProto.NewObjectivesEntry\022n\n\021objective"
584 "_updates\030\003 \003(\0132S.operations_research.mat"
585 "h_opt.AuxiliaryObjectivesUpdatesProto.Ob"
586 "jectiveUpdatesEntry\032b\n\022NewObjectivesEntr"
587 "y\022\013\n\003key\030\001 \001(\003\022;\n\005value\030\002 \001(\0132,.operatio"
588 "ns_research.math_opt.ObjectiveProto:\0028\001\032"
589 "l\n\025ObjectiveUpdatesEntry\022\013\n\003key\030\001 \001(\003\022B\n"
590 "\005value\030\002 \001(\01323.operations_research.math_"
591 "opt.ObjectiveUpdatesProto:\0028\001\"\270\001\n\034Linear"
592 "ConstraintUpdatesProto\022K\n\014lower_bounds\030\001"
593 " \001(\01325.operations_research.math_opt.Spar"
594 "seDoubleVectorProto\022K\n\014upper_bounds\030\002 \001("
595 "\01325.operations_research.math_opt.SparseD"
596 "oubleVectorProto\"\234\002\n\037QuadraticConstraint"
597 "UpdatesProto\022\036\n\026deleted_constraint_ids\030\001"
598 " \003(\003\022j\n\017new_constraints\030\002 \003(\0132Q.operatio"
599 "ns_research.math_opt.QuadraticConstraint"
600 "UpdatesProto.NewConstraintsEntry\032m\n\023NewC"
601 "onstraintsEntry\022\013\n\003key\030\001 \001(\003\022E\n\005value\030\002 "
602 "\001(\01326.operations_research.math_opt.Quadr"
603 "aticConstraintProto:\0028\001\"\256\002\n%SecondOrderC"
604 "oneConstraintUpdatesProto\022\036\n\026deleted_con"
605 "straint_ids\030\001 \003(\003\022p\n\017new_constraints\030\002 \003"
606 "(\0132W.operations_research.math_opt.Second"
607 "OrderConeConstraintUpdatesProto.NewConst"
608 "raintsEntry\032s\n\023NewConstraintsEntry\022\013\n\003ke"
609 "y\030\001 \001(\003\022K\n\005value\030\002 \001(\0132<.operations_rese"
610 "arch.math_opt.SecondOrderConeConstraintP"
611 "roto:\0028\001\"\212\002\n\031SosConstraintUpdatesProto\022\036"
612 "\n\026deleted_constraint_ids\030\001 \003(\003\022d\n\017new_co"
613 "nstraints\030\002 \003(\0132K.operations_research.ma"
614 "th_opt.SosConstraintUpdatesProto.NewCons"
615 "traintsEntry\032g\n\023NewConstraintsEntry\022\013\n\003k"
616 "ey\030\001 \001(\003\022\?\n\005value\030\002 \001(\01320.operations_res"
617 "earch.math_opt.SosConstraintProto:\0028\001\"\234\002"
618 "\n\037IndicatorConstraintUpdatesProto\022\036\n\026del"
619 "eted_constraint_ids\030\001 \003(\003\022j\n\017new_constra"
620 "ints\030\002 \003(\0132Q.operations_research.math_op"
621 "t.IndicatorConstraintUpdatesProto.NewCon"
622 "straintsEntry\032m\n\023NewConstraintsEntry\022\013\n\003"
623 "key\030\001 \001(\003\022E\n\005value\030\002 \001(\01326.operations_re"
624 "search.math_opt.IndicatorConstraintProto"
625 ":\0028\001\"\246\t\n\020ModelUpdateProto\022\034\n\024deleted_var"
626 "iable_ids\030\001 \003(\003\022%\n\035deleted_linear_constr"
627 "aint_ids\030\002 \003(\003\022L\n\020variable_updates\030\003 \001(\013"
628 "22.operations_research.math_opt.Variable"
629 "UpdatesProto\022]\n\031linear_constraint_update"
630 "s\030\004 \001(\0132:.operations_research.math_opt.L"
631 "inearConstraintUpdatesProto\022C\n\rnew_varia"
632 "bles\030\005 \001(\0132,.operations_research.math_op"
633 "t.VariablesProto\022T\n\026new_linear_constrain"
634 "ts\030\006 \001(\01324.operations_research.math_opt."
635 "LinearConstraintsProto\022N\n\021objective_upda"
636 "tes\030\007 \001(\01323.operations_research.math_opt"
637 ".ObjectiveUpdatesProto\022c\n\034auxiliary_obje"
638 "ctives_updates\030\r \001(\0132=.operations_resear"
639 "ch.math_opt.AuxiliaryObjectivesUpdatesPr"
640 "oto\022_\n linear_constraint_matrix_updates\030"
641 "\010 \001(\01325.operations_research.math_opt.Spa"
642 "rseDoubleMatrixProto\022c\n\034quadratic_constr"
643 "aint_updates\030\t \001(\0132=.operations_research"
644 ".math_opt.QuadraticConstraintUpdatesProt"
645 "o\022q\n$second_order_cone_constraint_update"
646 "s\030\016 \001(\0132C.operations_research.math_opt.S"
647 "econdOrderConeConstraintUpdatesProto\022X\n\027"
648 "sos1_constraint_updates\030\n \001(\01327.operatio"
649 "ns_research.math_opt.SosConstraintUpdate"
650 "sProto\022X\n\027sos2_constraint_updates\030\013 \001(\0132"
651 "7.operations_research.math_opt.SosConstr"
652 "aintUpdatesProto\022c\n\034indicator_constraint"
653 "_updates\030\014 \001(\0132=.operations_research.mat"
654 "h_opt.IndicatorConstraintUpdatesProtoB\036\n"
655 "\032com.google.ortools.mathoptP\001b\006proto3"
656};
657static const ::_pbi::DescriptorTable* PROTOBUF_NONNULL const
679namespace operations_research {
680namespace math_opt {
681// ===================================================================
682
684 public:
685 using HasBits =
686 decltype(::std::declval<VariableUpdatesProto>()._impl_._has_bits_);
687 static constexpr ::int32_t kHasBitsOffset =
688 8 * PROTOBUF_FIELD_OFFSET(VariableUpdatesProto, _impl_._has_bits_);
689};
690
692 ::google::protobuf::internal::TSanWrite(&_impl_);
693 if (_impl_.lower_bounds_ != nullptr) _impl_.lower_bounds_->Clear();
694 _impl_._has_bits_[0] &= ~0x00000001u;
695}
697 ::google::protobuf::internal::TSanWrite(&_impl_);
698 if (_impl_.upper_bounds_ != nullptr) _impl_.upper_bounds_->Clear();
699 _impl_._has_bits_[0] &= ~0x00000002u;
700}
702 ::google::protobuf::internal::TSanWrite(&_impl_);
703 if (_impl_.integers_ != nullptr) _impl_.integers_->Clear();
704 _impl_._has_bits_[0] &= ~0x00000004u;
705}
706VariableUpdatesProto::VariableUpdatesProto(::google::protobuf::Arena* PROTOBUF_NULLABLE arena)
707#if defined(PROTOBUF_CUSTOM_VTABLE)
708 : ::google::protobuf::Message(arena, VariableUpdatesProto_class_data_.base()) {
709#else // PROTOBUF_CUSTOM_VTABLE
710 : ::google::protobuf::Message(arena) {
711#endif // PROTOBUF_CUSTOM_VTABLE
712 SharedCtor(arena);
713 // @@protoc_insertion_point(arena_constructor:operations_research.math_opt.VariableUpdatesProto)
714}
715PROTOBUF_NDEBUG_INLINE VariableUpdatesProto::Impl_::Impl_(
716 ::google::protobuf::internal::InternalVisibility visibility,
717 ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const Impl_& from,
718 const ::operations_research::math_opt::VariableUpdatesProto& from_msg)
719 : _has_bits_{from._has_bits_},
720 _cached_size_{0} {}
721
723 ::google::protobuf::Arena* PROTOBUF_NULLABLE arena,
724 const VariableUpdatesProto& from)
725#if defined(PROTOBUF_CUSTOM_VTABLE)
726 : ::google::protobuf::Message(arena, VariableUpdatesProto_class_data_.base()) {
727#else // PROTOBUF_CUSTOM_VTABLE
728 : ::google::protobuf::Message(arena) {
729#endif // PROTOBUF_CUSTOM_VTABLE
730 VariableUpdatesProto* const _this = this;
731 (void)_this;
732 _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(
733 from._internal_metadata_);
734 new (&_impl_) Impl_(internal_visibility(), arena, from._impl_, from);
735 ::uint32_t cached_has_bits = _impl_._has_bits_[0];
736 _impl_.lower_bounds_ = ((cached_has_bits & 0x00000001u) != 0)
737 ? ::google::protobuf::Message::CopyConstruct(arena, *from._impl_.lower_bounds_)
738 : nullptr;
739 _impl_.upper_bounds_ = ((cached_has_bits & 0x00000002u) != 0)
740 ? ::google::protobuf::Message::CopyConstruct(arena, *from._impl_.upper_bounds_)
741 : nullptr;
742 _impl_.integers_ = ((cached_has_bits & 0x00000004u) != 0)
743 ? ::google::protobuf::Message::CopyConstruct(arena, *from._impl_.integers_)
744 : nullptr;
745
746 // @@protoc_insertion_point(copy_constructor:operations_research.math_opt.VariableUpdatesProto)
747}
748PROTOBUF_NDEBUG_INLINE VariableUpdatesProto::Impl_::Impl_(
749 ::google::protobuf::internal::InternalVisibility visibility,
750 ::google::protobuf::Arena* PROTOBUF_NULLABLE arena)
751 : _cached_size_{0} {}
752
753inline void VariableUpdatesProto::SharedCtor(::_pb::Arena* PROTOBUF_NULLABLE arena) {
754 new (&_impl_) Impl_(internal_visibility(), arena);
755 ::memset(reinterpret_cast<char *>(&_impl_) +
756 offsetof(Impl_, lower_bounds_),
757 0,
758 offsetof(Impl_, integers_) -
759 offsetof(Impl_, lower_bounds_) +
760 sizeof(Impl_::integers_));
761}
763 // @@protoc_insertion_point(destructor:operations_research.math_opt.VariableUpdatesProto)
764 SharedDtor(*this);
765}
766inline void VariableUpdatesProto::SharedDtor(MessageLite& self) {
767 VariableUpdatesProto& this_ = static_cast<VariableUpdatesProto&>(self);
768 this_._internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>();
769 ABSL_DCHECK(this_.GetArena() == nullptr);
770 delete this_._impl_.lower_bounds_;
771 delete this_._impl_.upper_bounds_;
772 delete this_._impl_.integers_;
773 this_._impl_.~Impl_();
774}
775
776inline void* PROTOBUF_NONNULL VariableUpdatesProto::PlacementNew_(
777 const void* PROTOBUF_NONNULL, void* PROTOBUF_NONNULL mem,
778 ::google::protobuf::Arena* PROTOBUF_NULLABLE arena) {
779 return ::new (mem) VariableUpdatesProto(arena);
780}
782 return ::google::protobuf::internal::MessageCreator::ZeroInit(sizeof(VariableUpdatesProto),
783 alignof(VariableUpdatesProto));
784}
786 return ::google::protobuf::internal::ClassDataFull{
787 ::google::protobuf::internal::ClassData{
789 &_table_.header,
790 nullptr, // OnDemandRegisterArenaDtor
791 nullptr, // IsInitialized
792 &VariableUpdatesProto::MergeImpl,
793 ::google::protobuf::Message::GetNewImpl<VariableUpdatesProto>(),
794#if defined(PROTOBUF_CUSTOM_VTABLE)
795 &VariableUpdatesProto::SharedDtor,
796 ::google::protobuf::Message::GetClearImpl<VariableUpdatesProto>(), &VariableUpdatesProto::ByteSizeLong,
798#endif // PROTOBUF_CUSTOM_VTABLE
799 PROTOBUF_FIELD_OFFSET(VariableUpdatesProto, _impl_._cached_size_),
800 false,
801 },
802 &VariableUpdatesProto::kDescriptorMethods,
804 nullptr, // tracker
805 };
806}
807
808PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 const
809 ::google::protobuf::internal::ClassDataFull VariableUpdatesProto_class_data_ =
811
812PROTOBUF_ATTRIBUTE_WEAK const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL
814 ::google::protobuf::internal::PrefetchToLocalCache(&VariableUpdatesProto_class_data_);
815 ::google::protobuf::internal::PrefetchToLocalCache(VariableUpdatesProto_class_data_.tc_table);
817}
818PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1
819const ::_pbi::TcParseTable<2, 3, 3, 0, 2>
820VariableUpdatesProto::_table_ = {
821 {
822 PROTOBUF_FIELD_OFFSET(VariableUpdatesProto, _impl_._has_bits_),
823 0, // no _extensions_
824 3, 24, // max_field_number, fast_idx_mask
825 offsetof(decltype(_table_), field_lookup_table),
826 4294967288, // skipmap
827 offsetof(decltype(_table_), field_entries),
828 3, // num_field_entries
829 3, // num_aux_entries
830 offsetof(decltype(_table_), aux_entries),
832 nullptr, // post_loop_handler
833 ::_pbi::TcParser::GenericFallback, // fallback
834 #ifdef PROTOBUF_PREFETCH_PARSE_TABLE
835 ::_pbi::TcParser::GetTable<::operations_research::math_opt::VariableUpdatesProto>(), // to_prefetch
836 #endif // PROTOBUF_PREFETCH_PARSE_TABLE
837 }, {{
838 {::_pbi::TcParser::MiniParse, {}},
839 // .operations_research.math_opt.SparseDoubleVectorProto lower_bounds = 1;
840 {::_pbi::TcParser::FastMtS1,
841 {10, 0, 0, PROTOBUF_FIELD_OFFSET(VariableUpdatesProto, _impl_.lower_bounds_)}},
842 // .operations_research.math_opt.SparseDoubleVectorProto upper_bounds = 2;
843 {::_pbi::TcParser::FastMtS1,
844 {18, 1, 1, PROTOBUF_FIELD_OFFSET(VariableUpdatesProto, _impl_.upper_bounds_)}},
845 // .operations_research.math_opt.SparseBoolVectorProto integers = 3;
846 {::_pbi::TcParser::FastMtS1,
847 {26, 2, 2, PROTOBUF_FIELD_OFFSET(VariableUpdatesProto, _impl_.integers_)}},
848 }}, {{
849 65535, 65535
850 }}, {{
851 // .operations_research.math_opt.SparseDoubleVectorProto lower_bounds = 1;
852 {PROTOBUF_FIELD_OFFSET(VariableUpdatesProto, _impl_.lower_bounds_), _Internal::kHasBitsOffset + 0, 0,
853 (0 | ::_fl::kFcOptional | ::_fl::kMessage | ::_fl::kTvTable)},
854 // .operations_research.math_opt.SparseDoubleVectorProto upper_bounds = 2;
855 {PROTOBUF_FIELD_OFFSET(VariableUpdatesProto, _impl_.upper_bounds_), _Internal::kHasBitsOffset + 1, 1,
856 (0 | ::_fl::kFcOptional | ::_fl::kMessage | ::_fl::kTvTable)},
857 // .operations_research.math_opt.SparseBoolVectorProto integers = 3;
858 {PROTOBUF_FIELD_OFFSET(VariableUpdatesProto, _impl_.integers_), _Internal::kHasBitsOffset + 2, 2,
859 (0 | ::_fl::kFcOptional | ::_fl::kMessage | ::_fl::kTvTable)},
860 }},
861 {{
862 {::_pbi::TcParser::GetTable<::operations_research::math_opt::SparseDoubleVectorProto>()},
863 {::_pbi::TcParser::GetTable<::operations_research::math_opt::SparseDoubleVectorProto>()},
864 {::_pbi::TcParser::GetTable<::operations_research::math_opt::SparseBoolVectorProto>()},
865 }},
866 {{
867 }},
868};
869PROTOBUF_NOINLINE void VariableUpdatesProto::Clear() {
870// @@protoc_insertion_point(message_clear_start:operations_research.math_opt.VariableUpdatesProto)
871 ::google::protobuf::internal::TSanWrite(&_impl_);
872 ::uint32_t cached_has_bits = 0;
873 // Prevent compiler warnings about cached_has_bits being unused
874 (void) cached_has_bits;
875
876 cached_has_bits = _impl_._has_bits_[0];
877 if ((cached_has_bits & 0x00000007u) != 0) {
878 if ((cached_has_bits & 0x00000001u) != 0) {
879 ABSL_DCHECK(_impl_.lower_bounds_ != nullptr);
880 _impl_.lower_bounds_->Clear();
881 }
882 if ((cached_has_bits & 0x00000002u) != 0) {
883 ABSL_DCHECK(_impl_.upper_bounds_ != nullptr);
884 _impl_.upper_bounds_->Clear();
885 }
886 if ((cached_has_bits & 0x00000004u) != 0) {
887 ABSL_DCHECK(_impl_.integers_ != nullptr);
888 _impl_.integers_->Clear();
889 }
890 }
891 _impl_._has_bits_.Clear();
892 _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>();
893}
894
895#if defined(PROTOBUF_CUSTOM_VTABLE)
896::uint8_t* PROTOBUF_NONNULL VariableUpdatesProto::_InternalSerialize(
897 const ::google::protobuf::MessageLite& base, ::uint8_t* PROTOBUF_NONNULL target,
898 ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) {
899 const VariableUpdatesProto& this_ = static_cast<const VariableUpdatesProto&>(base);
900#else // PROTOBUF_CUSTOM_VTABLE
901::uint8_t* PROTOBUF_NONNULL VariableUpdatesProto::_InternalSerialize(
902 ::uint8_t* PROTOBUF_NONNULL target,
903 ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const {
904 const VariableUpdatesProto& this_ = *this;
905#endif // PROTOBUF_CUSTOM_VTABLE
906 // @@protoc_insertion_point(serialize_to_array_start:operations_research.math_opt.VariableUpdatesProto)
907 ::uint32_t cached_has_bits = 0;
908 (void)cached_has_bits;
909
910 cached_has_bits = this_._impl_._has_bits_[0];
911 // .operations_research.math_opt.SparseDoubleVectorProto lower_bounds = 1;
912 if ((cached_has_bits & 0x00000001u) != 0) {
913 target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage(
914 1, *this_._impl_.lower_bounds_, this_._impl_.lower_bounds_->GetCachedSize(), target,
915 stream);
916 }
917
918 // .operations_research.math_opt.SparseDoubleVectorProto upper_bounds = 2;
919 if ((cached_has_bits & 0x00000002u) != 0) {
920 target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage(
921 2, *this_._impl_.upper_bounds_, this_._impl_.upper_bounds_->GetCachedSize(), target,
922 stream);
923 }
924
925 // .operations_research.math_opt.SparseBoolVectorProto integers = 3;
926 if ((cached_has_bits & 0x00000004u) != 0) {
927 target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage(
928 3, *this_._impl_.integers_, this_._impl_.integers_->GetCachedSize(), target,
929 stream);
930 }
931
932 if (ABSL_PREDICT_FALSE(this_._internal_metadata_.have_unknown_fields())) {
933 target =
934 ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray(
935 this_._internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream);
936 }
937 // @@protoc_insertion_point(serialize_to_array_end:operations_research.math_opt.VariableUpdatesProto)
938 return target;
939}
940
941#if defined(PROTOBUF_CUSTOM_VTABLE)
943 const VariableUpdatesProto& this_ = static_cast<const VariableUpdatesProto&>(base);
944#else // PROTOBUF_CUSTOM_VTABLE
945::size_t VariableUpdatesProto::ByteSizeLong() const {
946 const VariableUpdatesProto& this_ = *this;
947#endif // PROTOBUF_CUSTOM_VTABLE
948 // @@protoc_insertion_point(message_byte_size_start:operations_research.math_opt.VariableUpdatesProto)
949 ::size_t total_size = 0;
950
951 ::uint32_t cached_has_bits = 0;
952 // Prevent compiler warnings about cached_has_bits being unused
953 (void)cached_has_bits;
954
955 ::_pbi::Prefetch5LinesFrom7Lines(&this_);
956 cached_has_bits = this_._impl_._has_bits_[0];
957 if ((cached_has_bits & 0x00000007u) != 0) {
958 // .operations_research.math_opt.SparseDoubleVectorProto lower_bounds = 1;
959 if ((cached_has_bits & 0x00000001u) != 0) {
960 total_size += 1 +
961 ::google::protobuf::internal::WireFormatLite::MessageSize(*this_._impl_.lower_bounds_);
962 }
963 // .operations_research.math_opt.SparseDoubleVectorProto upper_bounds = 2;
964 if ((cached_has_bits & 0x00000002u) != 0) {
965 total_size += 1 +
966 ::google::protobuf::internal::WireFormatLite::MessageSize(*this_._impl_.upper_bounds_);
967 }
968 // .operations_research.math_opt.SparseBoolVectorProto integers = 3;
969 if ((cached_has_bits & 0x00000004u) != 0) {
970 total_size += 1 +
971 ::google::protobuf::internal::WireFormatLite::MessageSize(*this_._impl_.integers_);
972 }
973 }
974 return this_.MaybeComputeUnknownFieldsSize(total_size,
975 &this_._impl_._cached_size_);
976}
977
978void VariableUpdatesProto::MergeImpl(::google::protobuf::MessageLite& to_msg, const ::google::protobuf::MessageLite& from_msg) {
979 auto* const _this = static_cast<VariableUpdatesProto*>(&to_msg);
980 auto& from = static_cast<const VariableUpdatesProto&>(from_msg);
981 ::google::protobuf::Arena* arena = _this->GetArena();
982 // @@protoc_insertion_point(class_specific_merge_from_start:operations_research.math_opt.VariableUpdatesProto)
983 ABSL_DCHECK_NE(&from, _this);
984 ::uint32_t cached_has_bits = 0;
985 (void) cached_has_bits;
986
987 cached_has_bits = from._impl_._has_bits_[0];
988 if ((cached_has_bits & 0x00000007u) != 0) {
989 if ((cached_has_bits & 0x00000001u) != 0) {
990 ABSL_DCHECK(from._impl_.lower_bounds_ != nullptr);
991 if (_this->_impl_.lower_bounds_ == nullptr) {
992 _this->_impl_.lower_bounds_ = ::google::protobuf::Message::CopyConstruct(arena, *from._impl_.lower_bounds_);
993 } else {
994 _this->_impl_.lower_bounds_->MergeFrom(*from._impl_.lower_bounds_);
995 }
996 }
997 if ((cached_has_bits & 0x00000002u) != 0) {
998 ABSL_DCHECK(from._impl_.upper_bounds_ != nullptr);
999 if (_this->_impl_.upper_bounds_ == nullptr) {
1000 _this->_impl_.upper_bounds_ = ::google::protobuf::Message::CopyConstruct(arena, *from._impl_.upper_bounds_);
1001 } else {
1002 _this->_impl_.upper_bounds_->MergeFrom(*from._impl_.upper_bounds_);
1003 }
1004 }
1005 if ((cached_has_bits & 0x00000004u) != 0) {
1006 ABSL_DCHECK(from._impl_.integers_ != nullptr);
1007 if (_this->_impl_.integers_ == nullptr) {
1008 _this->_impl_.integers_ = ::google::protobuf::Message::CopyConstruct(arena, *from._impl_.integers_);
1009 } else {
1010 _this->_impl_.integers_->MergeFrom(*from._impl_.integers_);
1011 }
1012 }
1013 }
1014 _this->_impl_._has_bits_[0] |= cached_has_bits;
1015 _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_);
1016}
1017
1019// @@protoc_insertion_point(class_specific_copy_from_start:operations_research.math_opt.VariableUpdatesProto)
1020 if (&from == this) return;
1021 Clear();
1022 MergeFrom(from);
1023}
1024
1025
1026void VariableUpdatesProto::InternalSwap(VariableUpdatesProto* PROTOBUF_RESTRICT PROTOBUF_NONNULL other) {
1027 using ::std::swap;
1028 _internal_metadata_.InternalSwap(&other->_internal_metadata_);
1029 swap(_impl_._has_bits_[0], other->_impl_._has_bits_[0]);
1030 ::google::protobuf::internal::memswap<
1031 PROTOBUF_FIELD_OFFSET(VariableUpdatesProto, _impl_.integers_)
1032 + sizeof(VariableUpdatesProto::_impl_.integers_)
1033 - PROTOBUF_FIELD_OFFSET(VariableUpdatesProto, _impl_.lower_bounds_)>(
1034 reinterpret_cast<char*>(&_impl_.lower_bounds_),
1035 reinterpret_cast<char*>(&other->_impl_.lower_bounds_));
1036}
1037
1038::google::protobuf::Metadata VariableUpdatesProto::GetMetadata() const {
1039 return ::google::protobuf::Message::GetMetadataImpl(GetClassData()->full());
1040}
1041// ===================================================================
1042
1044 public:
1045 using HasBits =
1046 decltype(::std::declval<ObjectiveUpdatesProto>()._impl_._has_bits_);
1047 static constexpr ::int32_t kHasBitsOffset =
1048 8 * PROTOBUF_FIELD_OFFSET(ObjectiveUpdatesProto, _impl_._has_bits_);
1050
1052 ::google::protobuf::internal::TSanWrite(&_impl_);
1053 if (_impl_.linear_coefficients_ != nullptr) _impl_.linear_coefficients_->Clear();
1054 _impl_._has_bits_[0] &= ~0x00000001u;
1055}
1057 ::google::protobuf::internal::TSanWrite(&_impl_);
1058 if (_impl_.quadratic_coefficients_ != nullptr) _impl_.quadratic_coefficients_->Clear();
1059 _impl_._has_bits_[0] &= ~0x00000002u;
1060}
1061ObjectiveUpdatesProto::ObjectiveUpdatesProto(::google::protobuf::Arena* PROTOBUF_NULLABLE arena)
1062#if defined(PROTOBUF_CUSTOM_VTABLE)
1063 : ::google::protobuf::Message(arena, ObjectiveUpdatesProto_class_data_.base()) {
1064#else // PROTOBUF_CUSTOM_VTABLE
1065 : ::google::protobuf::Message(arena) {
1066#endif // PROTOBUF_CUSTOM_VTABLE
1067 SharedCtor(arena);
1068 // @@protoc_insertion_point(arena_constructor:operations_research.math_opt.ObjectiveUpdatesProto)
1069}
1070PROTOBUF_NDEBUG_INLINE ObjectiveUpdatesProto::Impl_::Impl_(
1071 ::google::protobuf::internal::InternalVisibility visibility,
1072 ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const Impl_& from,
1073 const ::operations_research::math_opt::ObjectiveUpdatesProto& from_msg)
1074 : _has_bits_{from._has_bits_},
1075 _cached_size_{0} {}
1076
1078 ::google::protobuf::Arena* PROTOBUF_NULLABLE arena,
1080#if defined(PROTOBUF_CUSTOM_VTABLE)
1081 : ::google::protobuf::Message(arena, ObjectiveUpdatesProto_class_data_.base()) {
1082#else // PROTOBUF_CUSTOM_VTABLE
1083 : ::google::protobuf::Message(arena) {
1084#endif // PROTOBUF_CUSTOM_VTABLE
1085 ObjectiveUpdatesProto* const _this = this;
1086 (void)_this;
1087 _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(
1088 from._internal_metadata_);
1089 new (&_impl_) Impl_(internal_visibility(), arena, from._impl_, from);
1090 ::uint32_t cached_has_bits = _impl_._has_bits_[0];
1091 _impl_.linear_coefficients_ = ((cached_has_bits & 0x00000001u) != 0)
1092 ? ::google::protobuf::Message::CopyConstruct(arena, *from._impl_.linear_coefficients_)
1093 : nullptr;
1094 _impl_.quadratic_coefficients_ = ((cached_has_bits & 0x00000002u) != 0)
1095 ? ::google::protobuf::Message::CopyConstruct(arena, *from._impl_.quadratic_coefficients_)
1096 : nullptr;
1097 ::memcpy(reinterpret_cast<char *>(&_impl_) +
1098 offsetof(Impl_, offset_update_),
1099 reinterpret_cast<const char *>(&from._impl_) +
1100 offsetof(Impl_, offset_update_),
1101 offsetof(Impl_, direction_update_) -
1102 offsetof(Impl_, offset_update_) +
1103 sizeof(Impl_::direction_update_));
1104
1105 // @@protoc_insertion_point(copy_constructor:operations_research.math_opt.ObjectiveUpdatesProto)
1106}
1107PROTOBUF_NDEBUG_INLINE ObjectiveUpdatesProto::Impl_::Impl_(
1108 ::google::protobuf::internal::InternalVisibility visibility,
1109 ::google::protobuf::Arena* PROTOBUF_NULLABLE arena)
1110 : _cached_size_{0} {}
1111
1112inline void ObjectiveUpdatesProto::SharedCtor(::_pb::Arena* PROTOBUF_NULLABLE arena) {
1113 new (&_impl_) Impl_(internal_visibility(), arena);
1114 ::memset(reinterpret_cast<char *>(&_impl_) +
1115 offsetof(Impl_, linear_coefficients_),
1116 0,
1117 offsetof(Impl_, direction_update_) -
1118 offsetof(Impl_, linear_coefficients_) +
1119 sizeof(Impl_::direction_update_));
1120}
1122 // @@protoc_insertion_point(destructor:operations_research.math_opt.ObjectiveUpdatesProto)
1123 SharedDtor(*this);
1124}
1125inline void ObjectiveUpdatesProto::SharedDtor(MessageLite& self) {
1126 ObjectiveUpdatesProto& this_ = static_cast<ObjectiveUpdatesProto&>(self);
1127 this_._internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>();
1128 ABSL_DCHECK(this_.GetArena() == nullptr);
1129 delete this_._impl_.linear_coefficients_;
1130 delete this_._impl_.quadratic_coefficients_;
1131 this_._impl_.~Impl_();
1132}
1133
1134inline void* PROTOBUF_NONNULL ObjectiveUpdatesProto::PlacementNew_(
1135 const void* PROTOBUF_NONNULL, void* PROTOBUF_NONNULL mem,
1136 ::google::protobuf::Arena* PROTOBUF_NULLABLE arena) {
1137 return ::new (mem) ObjectiveUpdatesProto(arena);
1138}
1140 return ::google::protobuf::internal::MessageCreator::ZeroInit(sizeof(ObjectiveUpdatesProto),
1142}
1144 return ::google::protobuf::internal::ClassDataFull{
1145 ::google::protobuf::internal::ClassData{
1147 &_table_.header,
1148 nullptr, // OnDemandRegisterArenaDtor
1149 nullptr, // IsInitialized
1150 &ObjectiveUpdatesProto::MergeImpl,
1151 ::google::protobuf::Message::GetNewImpl<ObjectiveUpdatesProto>(),
1152#if defined(PROTOBUF_CUSTOM_VTABLE)
1153 &ObjectiveUpdatesProto::SharedDtor,
1154 ::google::protobuf::Message::GetClearImpl<ObjectiveUpdatesProto>(), &ObjectiveUpdatesProto::ByteSizeLong,
1156#endif // PROTOBUF_CUSTOM_VTABLE
1157 PROTOBUF_FIELD_OFFSET(ObjectiveUpdatesProto, _impl_._cached_size_),
1158 false,
1159 },
1160 &ObjectiveUpdatesProto::kDescriptorMethods,
1162 nullptr, // tracker
1163 };
1164}
1165
1166PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 const
1167 ::google::protobuf::internal::ClassDataFull ObjectiveUpdatesProto_class_data_ =
1170PROTOBUF_ATTRIBUTE_WEAK const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL
1172 ::google::protobuf::internal::PrefetchToLocalCache(&ObjectiveUpdatesProto_class_data_);
1173 ::google::protobuf::internal::PrefetchToLocalCache(ObjectiveUpdatesProto_class_data_.tc_table);
1175}
1176PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1
1177const ::_pbi::TcParseTable<3, 5, 2, 0, 2>
1178ObjectiveUpdatesProto::_table_ = {
1179 {
1180 PROTOBUF_FIELD_OFFSET(ObjectiveUpdatesProto, _impl_._has_bits_),
1181 0, // no _extensions_
1182 5, 56, // max_field_number, fast_idx_mask
1183 offsetof(decltype(_table_), field_lookup_table),
1184 4294967264, // skipmap
1185 offsetof(decltype(_table_), field_entries),
1186 5, // num_field_entries
1187 2, // num_aux_entries
1188 offsetof(decltype(_table_), aux_entries),
1190 nullptr, // post_loop_handler
1191 ::_pbi::TcParser::GenericFallback, // fallback
1192 #ifdef PROTOBUF_PREFETCH_PARSE_TABLE
1193 ::_pbi::TcParser::GetTable<::operations_research::math_opt::ObjectiveUpdatesProto>(), // to_prefetch
1194 #endif // PROTOBUF_PREFETCH_PARSE_TABLE
1195 }, {{
1196 {::_pbi::TcParser::MiniParse, {}},
1197 // optional bool direction_update = 1;
1198 {::_pbi::TcParser::SingularVarintNoZag1<bool, offsetof(ObjectiveUpdatesProto, _impl_.direction_update_), 4>(),
1199 {8, 4, 0, PROTOBUF_FIELD_OFFSET(ObjectiveUpdatesProto, _impl_.direction_update_)}},
1200 // optional double offset_update = 2;
1201 {::_pbi::TcParser::FastF64S1,
1202 {17, 2, 0, PROTOBUF_FIELD_OFFSET(ObjectiveUpdatesProto, _impl_.offset_update_)}},
1203 // .operations_research.math_opt.SparseDoubleVectorProto linear_coefficients = 3;
1204 {::_pbi::TcParser::FastMtS1,
1205 {26, 0, 0, PROTOBUF_FIELD_OFFSET(ObjectiveUpdatesProto, _impl_.linear_coefficients_)}},
1206 // .operations_research.math_opt.SparseDoubleMatrixProto quadratic_coefficients = 4;
1207 {::_pbi::TcParser::FastMtS1,
1208 {34, 1, 1, PROTOBUF_FIELD_OFFSET(ObjectiveUpdatesProto, _impl_.quadratic_coefficients_)}},
1209 // optional int64 priority_update = 5;
1210 {::_pbi::TcParser::SingularVarintNoZag1<::uint64_t, offsetof(ObjectiveUpdatesProto, _impl_.priority_update_), 3>(),
1211 {40, 3, 0, PROTOBUF_FIELD_OFFSET(ObjectiveUpdatesProto, _impl_.priority_update_)}},
1212 {::_pbi::TcParser::MiniParse, {}},
1213 {::_pbi::TcParser::MiniParse, {}},
1214 }}, {{
1215 65535, 65535
1216 }}, {{
1217 // optional bool direction_update = 1;
1218 {PROTOBUF_FIELD_OFFSET(ObjectiveUpdatesProto, _impl_.direction_update_), _Internal::kHasBitsOffset + 4, 0,
1219 (0 | ::_fl::kFcOptional | ::_fl::kBool)},
1220 // optional double offset_update = 2;
1221 {PROTOBUF_FIELD_OFFSET(ObjectiveUpdatesProto, _impl_.offset_update_), _Internal::kHasBitsOffset + 2, 0,
1222 (0 | ::_fl::kFcOptional | ::_fl::kDouble)},
1223 // .operations_research.math_opt.SparseDoubleVectorProto linear_coefficients = 3;
1224 {PROTOBUF_FIELD_OFFSET(ObjectiveUpdatesProto, _impl_.linear_coefficients_), _Internal::kHasBitsOffset + 0, 0,
1225 (0 | ::_fl::kFcOptional | ::_fl::kMessage | ::_fl::kTvTable)},
1226 // .operations_research.math_opt.SparseDoubleMatrixProto quadratic_coefficients = 4;
1227 {PROTOBUF_FIELD_OFFSET(ObjectiveUpdatesProto, _impl_.quadratic_coefficients_), _Internal::kHasBitsOffset + 1, 1,
1228 (0 | ::_fl::kFcOptional | ::_fl::kMessage | ::_fl::kTvTable)},
1229 // optional int64 priority_update = 5;
1230 {PROTOBUF_FIELD_OFFSET(ObjectiveUpdatesProto, _impl_.priority_update_), _Internal::kHasBitsOffset + 3, 0,
1231 (0 | ::_fl::kFcOptional | ::_fl::kInt64)},
1232 }},
1233 {{
1234 {::_pbi::TcParser::GetTable<::operations_research::math_opt::SparseDoubleVectorProto>()},
1235 {::_pbi::TcParser::GetTable<::operations_research::math_opt::SparseDoubleMatrixProto>()},
1236 }},
1237 {{
1238 }},
1239};
1240PROTOBUF_NOINLINE void ObjectiveUpdatesProto::Clear() {
1241// @@protoc_insertion_point(message_clear_start:operations_research.math_opt.ObjectiveUpdatesProto)
1242 ::google::protobuf::internal::TSanWrite(&_impl_);
1243 ::uint32_t cached_has_bits = 0;
1244 // Prevent compiler warnings about cached_has_bits being unused
1245 (void) cached_has_bits;
1246
1247 cached_has_bits = _impl_._has_bits_[0];
1248 if ((cached_has_bits & 0x00000003u) != 0) {
1249 if ((cached_has_bits & 0x00000001u) != 0) {
1250 ABSL_DCHECK(_impl_.linear_coefficients_ != nullptr);
1251 _impl_.linear_coefficients_->Clear();
1252 }
1253 if ((cached_has_bits & 0x00000002u) != 0) {
1254 ABSL_DCHECK(_impl_.quadratic_coefficients_ != nullptr);
1255 _impl_.quadratic_coefficients_->Clear();
1256 }
1257 }
1258 if ((cached_has_bits & 0x0000001cu) != 0) {
1259 ::memset(&_impl_.offset_update_, 0, static_cast<::size_t>(
1260 reinterpret_cast<char*>(&_impl_.direction_update_) -
1261 reinterpret_cast<char*>(&_impl_.offset_update_)) + sizeof(_impl_.direction_update_));
1262 }
1263 _impl_._has_bits_.Clear();
1264 _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>();
1265}
1266
1267#if defined(PROTOBUF_CUSTOM_VTABLE)
1268::uint8_t* PROTOBUF_NONNULL ObjectiveUpdatesProto::_InternalSerialize(
1269 const ::google::protobuf::MessageLite& base, ::uint8_t* PROTOBUF_NONNULL target,
1270 ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) {
1271 const ObjectiveUpdatesProto& this_ = static_cast<const ObjectiveUpdatesProto&>(base);
1272#else // PROTOBUF_CUSTOM_VTABLE
1273::uint8_t* PROTOBUF_NONNULL ObjectiveUpdatesProto::_InternalSerialize(
1274 ::uint8_t* PROTOBUF_NONNULL target,
1275 ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const {
1276 const ObjectiveUpdatesProto& this_ = *this;
1277#endif // PROTOBUF_CUSTOM_VTABLE
1278 // @@protoc_insertion_point(serialize_to_array_start:operations_research.math_opt.ObjectiveUpdatesProto)
1279 ::uint32_t cached_has_bits = 0;
1280 (void)cached_has_bits;
1281
1282 cached_has_bits = this_._impl_._has_bits_[0];
1283 // optional bool direction_update = 1;
1284 if ((cached_has_bits & 0x00000010u) != 0) {
1285 target = stream->EnsureSpace(target);
1286 target = ::_pbi::WireFormatLite::WriteBoolToArray(
1287 1, this_._internal_direction_update(), target);
1288 }
1289
1290 // optional double offset_update = 2;
1291 if ((cached_has_bits & 0x00000004u) != 0) {
1292 target = stream->EnsureSpace(target);
1293 target = ::_pbi::WireFormatLite::WriteDoubleToArray(
1294 2, this_._internal_offset_update(), target);
1295 }
1296
1297 // .operations_research.math_opt.SparseDoubleVectorProto linear_coefficients = 3;
1298 if ((cached_has_bits & 0x00000001u) != 0) {
1299 target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage(
1300 3, *this_._impl_.linear_coefficients_, this_._impl_.linear_coefficients_->GetCachedSize(), target,
1301 stream);
1302 }
1303
1304 // .operations_research.math_opt.SparseDoubleMatrixProto quadratic_coefficients = 4;
1305 if ((cached_has_bits & 0x00000002u) != 0) {
1306 target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage(
1307 4, *this_._impl_.quadratic_coefficients_, this_._impl_.quadratic_coefficients_->GetCachedSize(), target,
1308 stream);
1309 }
1310
1311 // optional int64 priority_update = 5;
1312 if ((cached_has_bits & 0x00000008u) != 0) {
1313 target =
1314 ::google::protobuf::internal::WireFormatLite::WriteInt64ToArrayWithField<5>(
1315 stream, this_._internal_priority_update(), target);
1316 }
1317
1318 if (ABSL_PREDICT_FALSE(this_._internal_metadata_.have_unknown_fields())) {
1319 target =
1320 ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray(
1321 this_._internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream);
1322 }
1323 // @@protoc_insertion_point(serialize_to_array_end:operations_research.math_opt.ObjectiveUpdatesProto)
1324 return target;
1325}
1326
1327#if defined(PROTOBUF_CUSTOM_VTABLE)
1329 const ObjectiveUpdatesProto& this_ = static_cast<const ObjectiveUpdatesProto&>(base);
1330#else // PROTOBUF_CUSTOM_VTABLE
1331::size_t ObjectiveUpdatesProto::ByteSizeLong() const {
1332 const ObjectiveUpdatesProto& this_ = *this;
1333#endif // PROTOBUF_CUSTOM_VTABLE
1334 // @@protoc_insertion_point(message_byte_size_start:operations_research.math_opt.ObjectiveUpdatesProto)
1335 ::size_t total_size = 0;
1336
1337 ::uint32_t cached_has_bits = 0;
1338 // Prevent compiler warnings about cached_has_bits being unused
1339 (void)cached_has_bits;
1340
1341 ::_pbi::Prefetch5LinesFrom7Lines(&this_);
1342 cached_has_bits = this_._impl_._has_bits_[0];
1343 total_size += static_cast<bool>(0x00000004u & cached_has_bits) * 9;
1344 total_size += static_cast<bool>(0x00000010u & cached_has_bits) * 2;
1345 if ((cached_has_bits & 0x0000000bu) != 0) {
1346 // .operations_research.math_opt.SparseDoubleVectorProto linear_coefficients = 3;
1347 if ((cached_has_bits & 0x00000001u) != 0) {
1348 total_size += 1 +
1349 ::google::protobuf::internal::WireFormatLite::MessageSize(*this_._impl_.linear_coefficients_);
1350 }
1351 // .operations_research.math_opt.SparseDoubleMatrixProto quadratic_coefficients = 4;
1352 if ((cached_has_bits & 0x00000002u) != 0) {
1353 total_size += 1 +
1354 ::google::protobuf::internal::WireFormatLite::MessageSize(*this_._impl_.quadratic_coefficients_);
1355 }
1356 // optional int64 priority_update = 5;
1357 if ((cached_has_bits & 0x00000008u) != 0) {
1358 total_size += ::_pbi::WireFormatLite::Int64SizePlusOne(
1359 this_._internal_priority_update());
1360 }
1361 }
1362 return this_.MaybeComputeUnknownFieldsSize(total_size,
1363 &this_._impl_._cached_size_);
1364}
1365
1366void ObjectiveUpdatesProto::MergeImpl(::google::protobuf::MessageLite& to_msg, const ::google::protobuf::MessageLite& from_msg) {
1367 auto* const _this = static_cast<ObjectiveUpdatesProto*>(&to_msg);
1368 auto& from = static_cast<const ObjectiveUpdatesProto&>(from_msg);
1369 ::google::protobuf::Arena* arena = _this->GetArena();
1370 // @@protoc_insertion_point(class_specific_merge_from_start:operations_research.math_opt.ObjectiveUpdatesProto)
1371 ABSL_DCHECK_NE(&from, _this);
1372 ::uint32_t cached_has_bits = 0;
1373 (void) cached_has_bits;
1374
1375 cached_has_bits = from._impl_._has_bits_[0];
1376 if ((cached_has_bits & 0x0000001fu) != 0) {
1377 if ((cached_has_bits & 0x00000001u) != 0) {
1378 ABSL_DCHECK(from._impl_.linear_coefficients_ != nullptr);
1379 if (_this->_impl_.linear_coefficients_ == nullptr) {
1380 _this->_impl_.linear_coefficients_ = ::google::protobuf::Message::CopyConstruct(arena, *from._impl_.linear_coefficients_);
1381 } else {
1382 _this->_impl_.linear_coefficients_->MergeFrom(*from._impl_.linear_coefficients_);
1383 }
1384 }
1385 if ((cached_has_bits & 0x00000002u) != 0) {
1386 ABSL_DCHECK(from._impl_.quadratic_coefficients_ != nullptr);
1387 if (_this->_impl_.quadratic_coefficients_ == nullptr) {
1388 _this->_impl_.quadratic_coefficients_ = ::google::protobuf::Message::CopyConstruct(arena, *from._impl_.quadratic_coefficients_);
1389 } else {
1390 _this->_impl_.quadratic_coefficients_->MergeFrom(*from._impl_.quadratic_coefficients_);
1391 }
1392 }
1393 if ((cached_has_bits & 0x00000004u) != 0) {
1394 _this->_impl_.offset_update_ = from._impl_.offset_update_;
1395 }
1396 if ((cached_has_bits & 0x00000008u) != 0) {
1397 _this->_impl_.priority_update_ = from._impl_.priority_update_;
1398 }
1399 if ((cached_has_bits & 0x00000010u) != 0) {
1400 _this->_impl_.direction_update_ = from._impl_.direction_update_;
1401 }
1402 }
1403 _this->_impl_._has_bits_[0] |= cached_has_bits;
1404 _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_);
1405}
1406
1407void ObjectiveUpdatesProto::CopyFrom(const ObjectiveUpdatesProto& from) {
1408// @@protoc_insertion_point(class_specific_copy_from_start:operations_research.math_opt.ObjectiveUpdatesProto)
1409 if (&from == this) return;
1410 Clear();
1411 MergeFrom(from);
1412}
1413
1414
1415void ObjectiveUpdatesProto::InternalSwap(ObjectiveUpdatesProto* PROTOBUF_RESTRICT PROTOBUF_NONNULL other) {
1416 using ::std::swap;
1417 _internal_metadata_.InternalSwap(&other->_internal_metadata_);
1418 swap(_impl_._has_bits_[0], other->_impl_._has_bits_[0]);
1419 ::google::protobuf::internal::memswap<
1420 PROTOBUF_FIELD_OFFSET(ObjectiveUpdatesProto, _impl_.direction_update_)
1421 + sizeof(ObjectiveUpdatesProto::_impl_.direction_update_)
1422 - PROTOBUF_FIELD_OFFSET(ObjectiveUpdatesProto, _impl_.linear_coefficients_)>(
1423 reinterpret_cast<char*>(&_impl_.linear_coefficients_),
1424 reinterpret_cast<char*>(&other->_impl_.linear_coefficients_));
1425}
1426
1427::google::protobuf::Metadata ObjectiveUpdatesProto::GetMetadata() const {
1428 return ::google::protobuf::Message::GetMetadataImpl(GetClassData()->full());
1430// ===================================================================
1431
1432#if defined(PROTOBUF_CUSTOM_VTABLE)
1437#else // PROTOBUF_CUSTOM_VTABLE
1440#endif // PROTOBUF_CUSTOM_VTABLE
1441inline void* PROTOBUF_NONNULL AuxiliaryObjectivesUpdatesProto_NewObjectivesEntry_DoNotUse::PlacementNew_(
1442 const void* PROTOBUF_NONNULL, void* PROTOBUF_NONNULL mem,
1443 ::google::protobuf::Arena* PROTOBUF_NULLABLE arena) {
1445}
1446constexpr auto AuxiliaryObjectivesUpdatesProto_NewObjectivesEntry_DoNotUse::InternalNewImpl_() {
1447 return ::google::protobuf::internal::MessageCreator::ZeroInit(sizeof(AuxiliaryObjectivesUpdatesProto_NewObjectivesEntry_DoNotUse),
1449}
1451 return ::google::protobuf::internal::ClassDataFull{
1452 ::google::protobuf::internal::ClassData{
1454 &_table_.header,
1455 nullptr, // OnDemandRegisterArenaDtor
1456 nullptr, // IsInitialized
1457 &AuxiliaryObjectivesUpdatesProto_NewObjectivesEntry_DoNotUse::MergeImpl,
1458 ::google::protobuf::Message::GetNewImpl<AuxiliaryObjectivesUpdatesProto_NewObjectivesEntry_DoNotUse>(),
1459#if defined(PROTOBUF_CUSTOM_VTABLE)
1460 &AuxiliaryObjectivesUpdatesProto_NewObjectivesEntry_DoNotUse::SharedDtor,
1461 static_cast<void (::google::protobuf::MessageLite::*)()>(&AuxiliaryObjectivesUpdatesProto_NewObjectivesEntry_DoNotUse::ClearImpl),
1462 ::google::protobuf::Message::ByteSizeLongImpl, ::google::protobuf::Message::_InternalSerializeImpl
1463 ,
1464#endif // PROTOBUF_CUSTOM_VTABLE
1465 PROTOBUF_FIELD_OFFSET(AuxiliaryObjectivesUpdatesProto_NewObjectivesEntry_DoNotUse, _impl_._cached_size_),
1466 false,
1467 },
1468 &AuxiliaryObjectivesUpdatesProto_NewObjectivesEntry_DoNotUse::kDescriptorMethods,
1470 nullptr, // tracker
1471 };
1472}
1473
1474PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 const
1475 ::google::protobuf::internal::ClassDataFull AuxiliaryObjectivesUpdatesProto_NewObjectivesEntry_DoNotUse_class_data_ =
1477
1478PROTOBUF_ATTRIBUTE_WEAK const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL
1479AuxiliaryObjectivesUpdatesProto_NewObjectivesEntry_DoNotUse::GetClassData() const {
1480 ::google::protobuf::internal::PrefetchToLocalCache(&AuxiliaryObjectivesUpdatesProto_NewObjectivesEntry_DoNotUse_class_data_);
1481 ::google::protobuf::internal::PrefetchToLocalCache(AuxiliaryObjectivesUpdatesProto_NewObjectivesEntry_DoNotUse_class_data_.tc_table);
1483}
1484PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1
1485const ::_pbi::TcParseTable<1, 2, 1, 0, 2>
1486AuxiliaryObjectivesUpdatesProto_NewObjectivesEntry_DoNotUse::_table_ = {
1487 {
1488 PROTOBUF_FIELD_OFFSET(AuxiliaryObjectivesUpdatesProto_NewObjectivesEntry_DoNotUse, _impl_._has_bits_),
1489 0, // no _extensions_
1490 2, 8, // max_field_number, fast_idx_mask
1491 offsetof(decltype(_table_), field_lookup_table),
1492 4294967292, // skipmap
1493 offsetof(decltype(_table_), field_entries),
1494 2, // num_field_entries
1495 1, // num_aux_entries
1496 offsetof(decltype(_table_), aux_entries),
1498 nullptr, // post_loop_handler
1499 ::_pbi::TcParser::DiscardEverythingFallback, // fallback
1500 #ifdef PROTOBUF_PREFETCH_PARSE_TABLE
1501 ::_pbi::TcParser::GetTable<::operations_research::math_opt::AuxiliaryObjectivesUpdatesProto_NewObjectivesEntry_DoNotUse>(), // to_prefetch
1502 #endif // PROTOBUF_PREFETCH_PARSE_TABLE
1503 }, {{
1504 // .operations_research.math_opt.ObjectiveProto value = 2;
1505 {::_pbi::TcParser::FastMtS1,
1506 {18, 0, 0, PROTOBUF_FIELD_OFFSET(AuxiliaryObjectivesUpdatesProto_NewObjectivesEntry_DoNotUse, _impl_.value_)}},
1507 // int64 key = 1;
1508 {::_pbi::TcParser::SingularVarintNoZag1<::uint64_t, offsetof(AuxiliaryObjectivesUpdatesProto_NewObjectivesEntry_DoNotUse, _impl_.key_), 1>(),
1509 {8, 1, 0, PROTOBUF_FIELD_OFFSET(AuxiliaryObjectivesUpdatesProto_NewObjectivesEntry_DoNotUse, _impl_.key_)}},
1510 }}, {{
1511 65535, 65535
1512 }}, {{
1513 // int64 key = 1;
1514 {PROTOBUF_FIELD_OFFSET(AuxiliaryObjectivesUpdatesProto_NewObjectivesEntry_DoNotUse, _impl_.key_), _Internal::kHasBitsOffset + 1, 0,
1515 (0 | ::_fl::kFcOptional | ::_fl::kInt64)},
1516 // .operations_research.math_opt.ObjectiveProto value = 2;
1517 {PROTOBUF_FIELD_OFFSET(AuxiliaryObjectivesUpdatesProto_NewObjectivesEntry_DoNotUse, _impl_.value_), _Internal::kHasBitsOffset + 0, 0,
1518 (0 | ::_fl::kFcOptional | ::_fl::kMessage | ::_fl::kTvTable)},
1519 }},
1520 {{
1521 {::_pbi::TcParser::GetTable<::operations_research::math_opt::ObjectiveProto>()},
1522 }},
1523 {{
1524 }},
1525};
1526// ===================================================================
1527
1528#if defined(PROTOBUF_CUSTOM_VTABLE)
1531AuxiliaryObjectivesUpdatesProto_ObjectiveUpdatesEntry_DoNotUse::AuxiliaryObjectivesUpdatesProto_ObjectiveUpdatesEntry_DoNotUse(::google::protobuf::Arena* PROTOBUF_NULLABLE arena)
1533#else // PROTOBUF_CUSTOM_VTABLE
1534AuxiliaryObjectivesUpdatesProto_ObjectiveUpdatesEntry_DoNotUse::AuxiliaryObjectivesUpdatesProto_ObjectiveUpdatesEntry_DoNotUse() : SuperType() {}
1535AuxiliaryObjectivesUpdatesProto_ObjectiveUpdatesEntry_DoNotUse::AuxiliaryObjectivesUpdatesProto_ObjectiveUpdatesEntry_DoNotUse(::google::protobuf::Arena* PROTOBUF_NULLABLE arena) : SuperType(arena) {}
1536#endif // PROTOBUF_CUSTOM_VTABLE
1537inline void* PROTOBUF_NONNULL AuxiliaryObjectivesUpdatesProto_ObjectiveUpdatesEntry_DoNotUse::PlacementNew_(
1538 const void* PROTOBUF_NONNULL, void* PROTOBUF_NONNULL mem,
1539 ::google::protobuf::Arena* PROTOBUF_NULLABLE arena) {
1541}
1542constexpr auto AuxiliaryObjectivesUpdatesProto_ObjectiveUpdatesEntry_DoNotUse::InternalNewImpl_() {
1543 return ::google::protobuf::internal::MessageCreator::ZeroInit(sizeof(AuxiliaryObjectivesUpdatesProto_ObjectiveUpdatesEntry_DoNotUse),
1545}
1546constexpr auto AuxiliaryObjectivesUpdatesProto_ObjectiveUpdatesEntry_DoNotUse::InternalGenerateClassData_() {
1547 return ::google::protobuf::internal::ClassDataFull{
1548 ::google::protobuf::internal::ClassData{
1549 &_AuxiliaryObjectivesUpdatesProto_ObjectiveUpdatesEntry_DoNotUse_default_instance_._instance,
1550 &_table_.header,
1551 nullptr, // OnDemandRegisterArenaDtor
1552 nullptr, // IsInitialized
1553 &AuxiliaryObjectivesUpdatesProto_ObjectiveUpdatesEntry_DoNotUse::MergeImpl,
1554 ::google::protobuf::Message::GetNewImpl<AuxiliaryObjectivesUpdatesProto_ObjectiveUpdatesEntry_DoNotUse>(),
1555#if defined(PROTOBUF_CUSTOM_VTABLE)
1556 &AuxiliaryObjectivesUpdatesProto_ObjectiveUpdatesEntry_DoNotUse::SharedDtor,
1557 static_cast<void (::google::protobuf::MessageLite::*)()>(&AuxiliaryObjectivesUpdatesProto_ObjectiveUpdatesEntry_DoNotUse::ClearImpl),
1558 ::google::protobuf::Message::ByteSizeLongImpl, ::google::protobuf::Message::_InternalSerializeImpl
1559 ,
1560#endif // PROTOBUF_CUSTOM_VTABLE
1561 PROTOBUF_FIELD_OFFSET(AuxiliaryObjectivesUpdatesProto_ObjectiveUpdatesEntry_DoNotUse, _impl_._cached_size_),
1562 false,
1563 },
1564 &AuxiliaryObjectivesUpdatesProto_ObjectiveUpdatesEntry_DoNotUse::kDescriptorMethods,
1566 nullptr, // tracker
1567 };
1568}
1569
1570PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 const
1571 ::google::protobuf::internal::ClassDataFull AuxiliaryObjectivesUpdatesProto_ObjectiveUpdatesEntry_DoNotUse_class_data_ =
1572 AuxiliaryObjectivesUpdatesProto_ObjectiveUpdatesEntry_DoNotUse::InternalGenerateClassData_();
1573
1574PROTOBUF_ATTRIBUTE_WEAK const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL
1575AuxiliaryObjectivesUpdatesProto_ObjectiveUpdatesEntry_DoNotUse::GetClassData() const {
1576 ::google::protobuf::internal::PrefetchToLocalCache(&AuxiliaryObjectivesUpdatesProto_ObjectiveUpdatesEntry_DoNotUse_class_data_);
1577 ::google::protobuf::internal::PrefetchToLocalCache(AuxiliaryObjectivesUpdatesProto_ObjectiveUpdatesEntry_DoNotUse_class_data_.tc_table);
1579}
1580PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1
1581const ::_pbi::TcParseTable<1, 2, 1, 0, 2>
1582AuxiliaryObjectivesUpdatesProto_ObjectiveUpdatesEntry_DoNotUse::_table_ = {
1583 {
1584 PROTOBUF_FIELD_OFFSET(AuxiliaryObjectivesUpdatesProto_ObjectiveUpdatesEntry_DoNotUse, _impl_._has_bits_),
1585 0, // no _extensions_
1586 2, 8, // max_field_number, fast_idx_mask
1587 offsetof(decltype(_table_), field_lookup_table),
1588 4294967292, // skipmap
1589 offsetof(decltype(_table_), field_entries),
1590 2, // num_field_entries
1591 1, // num_aux_entries
1592 offsetof(decltype(_table_), aux_entries),
1593 AuxiliaryObjectivesUpdatesProto_ObjectiveUpdatesEntry_DoNotUse_class_data_.base(),
1594 nullptr, // post_loop_handler
1595 ::_pbi::TcParser::DiscardEverythingFallback, // fallback
1596 #ifdef PROTOBUF_PREFETCH_PARSE_TABLE
1597 ::_pbi::TcParser::GetTable<::operations_research::math_opt::AuxiliaryObjectivesUpdatesProto_ObjectiveUpdatesEntry_DoNotUse>(), // to_prefetch
1598 #endif // PROTOBUF_PREFETCH_PARSE_TABLE
1599 }, {{
1600 // .operations_research.math_opt.ObjectiveUpdatesProto value = 2;
1601 {::_pbi::TcParser::FastMtS1,
1602 {18, 0, 0, PROTOBUF_FIELD_OFFSET(AuxiliaryObjectivesUpdatesProto_ObjectiveUpdatesEntry_DoNotUse, _impl_.value_)}},
1603 // int64 key = 1;
1604 {::_pbi::TcParser::SingularVarintNoZag1<::uint64_t, offsetof(AuxiliaryObjectivesUpdatesProto_ObjectiveUpdatesEntry_DoNotUse, _impl_.key_), 1>(),
1605 {8, 1, 0, PROTOBUF_FIELD_OFFSET(AuxiliaryObjectivesUpdatesProto_ObjectiveUpdatesEntry_DoNotUse, _impl_.key_)}},
1606 }}, {{
1607 65535, 65535
1608 }}, {{
1609 // int64 key = 1;
1610 {PROTOBUF_FIELD_OFFSET(AuxiliaryObjectivesUpdatesProto_ObjectiveUpdatesEntry_DoNotUse, _impl_.key_), _Internal::kHasBitsOffset + 1, 0,
1611 (0 | ::_fl::kFcOptional | ::_fl::kInt64)},
1612 // .operations_research.math_opt.ObjectiveUpdatesProto value = 2;
1613 {PROTOBUF_FIELD_OFFSET(AuxiliaryObjectivesUpdatesProto_ObjectiveUpdatesEntry_DoNotUse, _impl_.value_), _Internal::kHasBitsOffset + 0, 0,
1614 (0 | ::_fl::kFcOptional | ::_fl::kMessage | ::_fl::kTvTable)},
1615 }},
1616 {{
1617 {::_pbi::TcParser::GetTable<::operations_research::math_opt::ObjectiveUpdatesProto>()},
1618 }},
1619 {{
1620 }},
1621};
1622// ===================================================================
1623
1624class AuxiliaryObjectivesUpdatesProto::_Internal {
1625 public:
1626};
1627
1628void AuxiliaryObjectivesUpdatesProto::clear_new_objectives() {
1629 ::google::protobuf::internal::TSanWrite(&_impl_);
1630 _impl_.new_objectives_.Clear();
1631}
1632AuxiliaryObjectivesUpdatesProto::AuxiliaryObjectivesUpdatesProto(::google::protobuf::Arena* PROTOBUF_NULLABLE arena)
1633#if defined(PROTOBUF_CUSTOM_VTABLE)
1634 : ::google::protobuf::Message(arena, AuxiliaryObjectivesUpdatesProto_class_data_.base()) {
1635#else // PROTOBUF_CUSTOM_VTABLE
1636 : ::google::protobuf::Message(arena) {
1637#endif // PROTOBUF_CUSTOM_VTABLE
1638 SharedCtor(arena);
1639 // @@protoc_insertion_point(arena_constructor:operations_research.math_opt.AuxiliaryObjectivesUpdatesProto)
1640}
1641PROTOBUF_NDEBUG_INLINE AuxiliaryObjectivesUpdatesProto::Impl_::Impl_(
1642 ::google::protobuf::internal::InternalVisibility visibility,
1643 ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const Impl_& from,
1644 const ::operations_research::math_opt::AuxiliaryObjectivesUpdatesProto& from_msg)
1645 : deleted_objective_ids_{visibility, arena, from.deleted_objective_ids_},
1646 _deleted_objective_ids_cached_byte_size_{0},
1647 new_objectives_{visibility, arena, from.new_objectives_},
1648 objective_updates_{visibility, arena, from.objective_updates_},
1649 _cached_size_{0} {}
1650
1652 ::google::protobuf::Arena* PROTOBUF_NULLABLE arena,
1653 const AuxiliaryObjectivesUpdatesProto& from)
1654#if defined(PROTOBUF_CUSTOM_VTABLE)
1655 : ::google::protobuf::Message(arena, AuxiliaryObjectivesUpdatesProto_class_data_.base()) {
1656#else // PROTOBUF_CUSTOM_VTABLE
1657 : ::google::protobuf::Message(arena) {
1658#endif // PROTOBUF_CUSTOM_VTABLE
1659 AuxiliaryObjectivesUpdatesProto* const _this = this;
1660 (void)_this;
1661 _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(
1662 from._internal_metadata_);
1663 new (&_impl_) Impl_(internal_visibility(), arena, from._impl_, from);
1664
1665 // @@protoc_insertion_point(copy_constructor:operations_research.math_opt.AuxiliaryObjectivesUpdatesProto)
1666}
1667PROTOBUF_NDEBUG_INLINE AuxiliaryObjectivesUpdatesProto::Impl_::Impl_(
1668 ::google::protobuf::internal::InternalVisibility visibility,
1669 ::google::protobuf::Arena* PROTOBUF_NULLABLE arena)
1670 : deleted_objective_ids_{visibility, arena},
1671 _deleted_objective_ids_cached_byte_size_{0},
1672 new_objectives_{visibility, arena},
1673 objective_updates_{visibility, arena},
1674 _cached_size_{0} {}
1675
1676inline void AuxiliaryObjectivesUpdatesProto::SharedCtor(::_pb::Arena* PROTOBUF_NULLABLE arena) {
1677 new (&_impl_) Impl_(internal_visibility(), arena);
1678}
1680 // @@protoc_insertion_point(destructor:operations_research.math_opt.AuxiliaryObjectivesUpdatesProto)
1681 SharedDtor(*this);
1682}
1683inline void AuxiliaryObjectivesUpdatesProto::SharedDtor(MessageLite& self) {
1685 this_._internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>();
1686 ABSL_DCHECK(this_.GetArena() == nullptr);
1687 this_._impl_.~Impl_();
1688}
1689
1690inline void* PROTOBUF_NONNULL AuxiliaryObjectivesUpdatesProto::PlacementNew_(
1691 const void* PROTOBUF_NONNULL, void* PROTOBUF_NONNULL mem,
1692 ::google::protobuf::Arena* PROTOBUF_NULLABLE arena) {
1693 return ::new (mem) AuxiliaryObjectivesUpdatesProto(arena);
1694}
1696 constexpr auto arena_bits = ::google::protobuf::internal::EncodePlacementArenaOffsets({
1697 PROTOBUF_FIELD_OFFSET(AuxiliaryObjectivesUpdatesProto, _impl_.deleted_objective_ids_) +
1698 decltype(AuxiliaryObjectivesUpdatesProto::_impl_.deleted_objective_ids_)::
1699 InternalGetArenaOffset(
1700 ::google::protobuf::Message::internal_visibility()),
1701 PROTOBUF_FIELD_OFFSET(AuxiliaryObjectivesUpdatesProto, _impl_.new_objectives_) +
1702 decltype(AuxiliaryObjectivesUpdatesProto::_impl_.new_objectives_)::
1703 InternalGetArenaOffset(
1704 ::google::protobuf::Message::internal_visibility()),
1705 PROTOBUF_FIELD_OFFSET(AuxiliaryObjectivesUpdatesProto, _impl_.new_objectives_) +
1706 decltype(AuxiliaryObjectivesUpdatesProto::_impl_.new_objectives_)::
1707 InternalGetArenaOffsetAlt(
1708 ::google::protobuf::Message::internal_visibility()),
1709 PROTOBUF_FIELD_OFFSET(AuxiliaryObjectivesUpdatesProto, _impl_.objective_updates_) +
1710 decltype(AuxiliaryObjectivesUpdatesProto::_impl_.objective_updates_)::
1711 InternalGetArenaOffset(
1712 ::google::protobuf::Message::internal_visibility()),
1713 PROTOBUF_FIELD_OFFSET(AuxiliaryObjectivesUpdatesProto, _impl_.objective_updates_) +
1714 decltype(AuxiliaryObjectivesUpdatesProto::_impl_.objective_updates_)::
1715 InternalGetArenaOffsetAlt(
1716 ::google::protobuf::Message::internal_visibility()),
1717 });
1718 if (arena_bits.has_value()) {
1719 return ::google::protobuf::internal::MessageCreator::CopyInit(
1720 sizeof(AuxiliaryObjectivesUpdatesProto), alignof(AuxiliaryObjectivesUpdatesProto), *arena_bits);
1721 } else {
1722 return ::google::protobuf::internal::MessageCreator(&AuxiliaryObjectivesUpdatesProto::PlacementNew_,
1723 sizeof(AuxiliaryObjectivesUpdatesProto),
1724 alignof(AuxiliaryObjectivesUpdatesProto));
1725 }
1726}
1728 return ::google::protobuf::internal::ClassDataFull{
1729 ::google::protobuf::internal::ClassData{
1731 &_table_.header,
1732 nullptr, // OnDemandRegisterArenaDtor
1733 nullptr, // IsInitialized
1734 &AuxiliaryObjectivesUpdatesProto::MergeImpl,
1735 ::google::protobuf::Message::GetNewImpl<AuxiliaryObjectivesUpdatesProto>(),
1736#if defined(PROTOBUF_CUSTOM_VTABLE)
1737 &AuxiliaryObjectivesUpdatesProto::SharedDtor,
1738 ::google::protobuf::Message::GetClearImpl<AuxiliaryObjectivesUpdatesProto>(), &AuxiliaryObjectivesUpdatesProto::ByteSizeLong,
1740#endif // PROTOBUF_CUSTOM_VTABLE
1741 PROTOBUF_FIELD_OFFSET(AuxiliaryObjectivesUpdatesProto, _impl_._cached_size_),
1742 false,
1743 },
1744 &AuxiliaryObjectivesUpdatesProto::kDescriptorMethods,
1746 nullptr, // tracker
1747 };
1748}
1749
1750PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 const
1751 ::google::protobuf::internal::ClassDataFull AuxiliaryObjectivesUpdatesProto_class_data_ =
1753
1754PROTOBUF_ATTRIBUTE_WEAK const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL
1756 ::google::protobuf::internal::PrefetchToLocalCache(&AuxiliaryObjectivesUpdatesProto_class_data_);
1757 ::google::protobuf::internal::PrefetchToLocalCache(AuxiliaryObjectivesUpdatesProto_class_data_.tc_table);
1759}
1760PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1
1761const ::_pbi::TcParseTable<0, 3, 4, 0, 2>
1762AuxiliaryObjectivesUpdatesProto::_table_ = {
1763 {
1764 0, // no _has_bits_
1765 0, // no _extensions_
1766 3, 0, // max_field_number, fast_idx_mask
1767 offsetof(decltype(_table_), field_lookup_table),
1768 4294967288, // skipmap
1769 offsetof(decltype(_table_), field_entries),
1770 3, // num_field_entries
1771 4, // num_aux_entries
1772 offsetof(decltype(_table_), aux_entries),
1774 nullptr, // post_loop_handler
1775 ::_pbi::TcParser::GenericFallback, // fallback
1776 #ifdef PROTOBUF_PREFETCH_PARSE_TABLE
1777 ::_pbi::TcParser::GetTable<::operations_research::math_opt::AuxiliaryObjectivesUpdatesProto>(), // to_prefetch
1778 #endif // PROTOBUF_PREFETCH_PARSE_TABLE
1779 }, {{
1780 // repeated int64 deleted_objective_ids = 1;
1781 {::_pbi::TcParser::FastV64P1,
1782 {10, 63, 0, PROTOBUF_FIELD_OFFSET(AuxiliaryObjectivesUpdatesProto, _impl_.deleted_objective_ids_)}},
1783 }}, {{
1784 65535, 65535
1785 }}, {{
1786 // repeated int64 deleted_objective_ids = 1;
1787 {PROTOBUF_FIELD_OFFSET(AuxiliaryObjectivesUpdatesProto, _impl_.deleted_objective_ids_), 0, 0,
1788 (0 | ::_fl::kFcRepeated | ::_fl::kPackedInt64)},
1789 // map<int64, .operations_research.math_opt.ObjectiveProto> new_objectives = 2;
1790 {PROTOBUF_FIELD_OFFSET(AuxiliaryObjectivesUpdatesProto, _impl_.new_objectives_), 0, 0,
1791 (0 | ::_fl::kFcRepeated | ::_fl::kMap)},
1792 // map<int64, .operations_research.math_opt.ObjectiveUpdatesProto> objective_updates = 3;
1793 {PROTOBUF_FIELD_OFFSET(AuxiliaryObjectivesUpdatesProto, _impl_.objective_updates_), 0, 2,
1794 (0 | ::_fl::kFcRepeated | ::_fl::kMap)},
1795 }},
1796 {{
1797 {::_pbi::TcParser::GetMapAuxInfo(0, 0, 0,
1798 3, 11,
1799 0)},
1800 {::_pbi::TcParser::GetTable<::operations_research::math_opt::ObjectiveProto>()},
1801 {::_pbi::TcParser::GetMapAuxInfo(0, 0, 0,
1802 3, 11,
1803 0)},
1804 {::_pbi::TcParser::GetTable<::operations_research::math_opt::ObjectiveUpdatesProto>()},
1805 }},
1806 {{
1807 }},
1808};
1809PROTOBUF_NOINLINE void AuxiliaryObjectivesUpdatesProto::Clear() {
1810// @@protoc_insertion_point(message_clear_start:operations_research.math_opt.AuxiliaryObjectivesUpdatesProto)
1811 ::google::protobuf::internal::TSanWrite(&_impl_);
1812 ::uint32_t cached_has_bits = 0;
1813 // Prevent compiler warnings about cached_has_bits being unused
1814 (void) cached_has_bits;
1815
1816 _impl_.deleted_objective_ids_.Clear();
1817 _impl_.new_objectives_.Clear();
1818 _impl_.objective_updates_.Clear();
1819 _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>();
1820}
1821
1822#if defined(PROTOBUF_CUSTOM_VTABLE)
1823::uint8_t* PROTOBUF_NONNULL AuxiliaryObjectivesUpdatesProto::_InternalSerialize(
1824 const ::google::protobuf::MessageLite& base, ::uint8_t* PROTOBUF_NONNULL target,
1825 ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) {
1826 const AuxiliaryObjectivesUpdatesProto& this_ = static_cast<const AuxiliaryObjectivesUpdatesProto&>(base);
1827#else // PROTOBUF_CUSTOM_VTABLE
1828::uint8_t* PROTOBUF_NONNULL AuxiliaryObjectivesUpdatesProto::_InternalSerialize(
1829 ::uint8_t* PROTOBUF_NONNULL target,
1830 ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const {
1831 const AuxiliaryObjectivesUpdatesProto& this_ = *this;
1832#endif // PROTOBUF_CUSTOM_VTABLE
1833 // @@protoc_insertion_point(serialize_to_array_start:operations_research.math_opt.AuxiliaryObjectivesUpdatesProto)
1834 ::uint32_t cached_has_bits = 0;
1835 (void)cached_has_bits;
1836
1837 // repeated int64 deleted_objective_ids = 1;
1838 {
1839 int byte_size = this_._impl_._deleted_objective_ids_cached_byte_size_.Get();
1840 if (byte_size > 0) {
1841 target = stream->WriteInt64Packed(
1842 1, this_._internal_deleted_objective_ids(), byte_size, target);
1843 }
1844 }
1845
1846 // map<int64, .operations_research.math_opt.ObjectiveProto> new_objectives = 2;
1847 if (!this_._internal_new_objectives().empty()) {
1848 using MapType = ::google::protobuf::Map<::int64_t, ::operations_research::math_opt::ObjectiveProto>;
1849 using WireHelper = _pbi::MapEntryFuncs<::int64_t, ::operations_research::math_opt::ObjectiveProto,
1850 _pbi::WireFormatLite::TYPE_INT64,
1851 _pbi::WireFormatLite::TYPE_MESSAGE>;
1852 const auto& field = this_._internal_new_objectives();
1853
1854 if (stream->IsSerializationDeterministic() && field.size() > 1) {
1855 for (const auto& entry : ::google::protobuf::internal::MapSorterFlat<MapType>(field)) {
1856 target = WireHelper::InternalSerialize(
1857 2, entry.first, entry.second, target, stream);
1858 }
1859 } else {
1860 for (const auto& entry : field) {
1861 target = WireHelper::InternalSerialize(
1862 2, entry.first, entry.second, target, stream);
1863 }
1864 }
1865 }
1866
1867 // map<int64, .operations_research.math_opt.ObjectiveUpdatesProto> objective_updates = 3;
1868 if (!this_._internal_objective_updates().empty()) {
1869 using MapType = ::google::protobuf::Map<::int64_t, ::operations_research::math_opt::ObjectiveUpdatesProto>;
1870 using WireHelper = _pbi::MapEntryFuncs<::int64_t, ::operations_research::math_opt::ObjectiveUpdatesProto,
1871 _pbi::WireFormatLite::TYPE_INT64,
1872 _pbi::WireFormatLite::TYPE_MESSAGE>;
1873 const auto& field = this_._internal_objective_updates();
1874
1875 if (stream->IsSerializationDeterministic() && field.size() > 1) {
1876 for (const auto& entry : ::google::protobuf::internal::MapSorterFlat<MapType>(field)) {
1877 target = WireHelper::InternalSerialize(
1878 3, entry.first, entry.second, target, stream);
1879 }
1880 } else {
1881 for (const auto& entry : field) {
1882 target = WireHelper::InternalSerialize(
1883 3, entry.first, entry.second, target, stream);
1884 }
1885 }
1886 }
1887
1888 if (ABSL_PREDICT_FALSE(this_._internal_metadata_.have_unknown_fields())) {
1889 target =
1890 ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray(
1891 this_._internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream);
1892 }
1893 // @@protoc_insertion_point(serialize_to_array_end:operations_research.math_opt.AuxiliaryObjectivesUpdatesProto)
1894 return target;
1895}
1896
1897#if defined(PROTOBUF_CUSTOM_VTABLE)
1899 const AuxiliaryObjectivesUpdatesProto& this_ = static_cast<const AuxiliaryObjectivesUpdatesProto&>(base);
1900#else // PROTOBUF_CUSTOM_VTABLE
1902 const AuxiliaryObjectivesUpdatesProto& this_ = *this;
1903#endif // PROTOBUF_CUSTOM_VTABLE
1904 // @@protoc_insertion_point(message_byte_size_start:operations_research.math_opt.AuxiliaryObjectivesUpdatesProto)
1905 ::size_t total_size = 0;
1907 ::uint32_t cached_has_bits = 0;
1908 // Prevent compiler warnings about cached_has_bits being unused
1909 (void)cached_has_bits;
1910
1911 ::_pbi::Prefetch5LinesFrom7Lines(&this_);
1912 {
1913 // repeated int64 deleted_objective_ids = 1;
1914 {
1915 total_size +=
1916 ::_pbi::WireFormatLite::Int64SizeWithPackedTagSize(
1917 this_._internal_deleted_objective_ids(), 1,
1918 this_._impl_._deleted_objective_ids_cached_byte_size_);
1919 }
1920 // map<int64, .operations_research.math_opt.ObjectiveProto> new_objectives = 2;
1921 {
1922 total_size +=
1923 1 * ::google::protobuf::internal::FromIntSize(this_._internal_new_objectives_size());
1924 for (const auto& entry : this_._internal_new_objectives()) {
1925 total_size += _pbi::MapEntryFuncs<::int64_t, ::operations_research::math_opt::ObjectiveProto,
1926 _pbi::WireFormatLite::TYPE_INT64,
1927 _pbi::WireFormatLite::TYPE_MESSAGE>::ByteSizeLong(entry.first, entry.second);
1928 }
1929 }
1930 // map<int64, .operations_research.math_opt.ObjectiveUpdatesProto> objective_updates = 3;
1931 {
1932 total_size +=
1933 1 * ::google::protobuf::internal::FromIntSize(this_._internal_objective_updates_size());
1934 for (const auto& entry : this_._internal_objective_updates()) {
1935 total_size += _pbi::MapEntryFuncs<::int64_t, ::operations_research::math_opt::ObjectiveUpdatesProto,
1936 _pbi::WireFormatLite::TYPE_INT64,
1937 _pbi::WireFormatLite::TYPE_MESSAGE>::ByteSizeLong(entry.first, entry.second);
1938 }
1939 }
1940 }
1941 return this_.MaybeComputeUnknownFieldsSize(total_size,
1942 &this_._impl_._cached_size_);
1943}
1944
1945void AuxiliaryObjectivesUpdatesProto::MergeImpl(::google::protobuf::MessageLite& to_msg, const ::google::protobuf::MessageLite& from_msg) {
1946 auto* const _this = static_cast<AuxiliaryObjectivesUpdatesProto*>(&to_msg);
1947 auto& from = static_cast<const AuxiliaryObjectivesUpdatesProto&>(from_msg);
1948 // @@protoc_insertion_point(class_specific_merge_from_start:operations_research.math_opt.AuxiliaryObjectivesUpdatesProto)
1949 ABSL_DCHECK_NE(&from, _this);
1950 ::uint32_t cached_has_bits = 0;
1951 (void) cached_has_bits;
1952
1953 _this->_internal_mutable_deleted_objective_ids()->MergeFrom(from._internal_deleted_objective_ids());
1954 _this->_impl_.new_objectives_.MergeFrom(from._impl_.new_objectives_);
1955 _this->_impl_.objective_updates_.MergeFrom(from._impl_.objective_updates_);
1956 _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_);
1957}
1958
1960// @@protoc_insertion_point(class_specific_copy_from_start:operations_research.math_opt.AuxiliaryObjectivesUpdatesProto)
1961 if (&from == this) return;
1962 Clear();
1963 MergeFrom(from);
1965
1966
1967void AuxiliaryObjectivesUpdatesProto::InternalSwap(AuxiliaryObjectivesUpdatesProto* PROTOBUF_RESTRICT PROTOBUF_NONNULL other) {
1968 using ::std::swap;
1969 _internal_metadata_.InternalSwap(&other->_internal_metadata_);
1970 _impl_.deleted_objective_ids_.InternalSwap(&other->_impl_.deleted_objective_ids_);
1971 _impl_.new_objectives_.InternalSwap(&other->_impl_.new_objectives_);
1972 _impl_.objective_updates_.InternalSwap(&other->_impl_.objective_updates_);
1973}
1974
1975::google::protobuf::Metadata AuxiliaryObjectivesUpdatesProto::GetMetadata() const {
1976 return ::google::protobuf::Message::GetMetadataImpl(GetClassData()->full());
1977}
1978// ===================================================================
1979
1981 public:
1982 using HasBits =
1983 decltype(::std::declval<LinearConstraintUpdatesProto>()._impl_._has_bits_);
1984 static constexpr ::int32_t kHasBitsOffset =
1985 8 * PROTOBUF_FIELD_OFFSET(LinearConstraintUpdatesProto, _impl_._has_bits_);
1987
1989 ::google::protobuf::internal::TSanWrite(&_impl_);
1990 if (_impl_.lower_bounds_ != nullptr) _impl_.lower_bounds_->Clear();
1991 _impl_._has_bits_[0] &= ~0x00000001u;
1992}
1994 ::google::protobuf::internal::TSanWrite(&_impl_);
1995 if (_impl_.upper_bounds_ != nullptr) _impl_.upper_bounds_->Clear();
1996 _impl_._has_bits_[0] &= ~0x00000002u;
1997}
1998LinearConstraintUpdatesProto::LinearConstraintUpdatesProto(::google::protobuf::Arena* PROTOBUF_NULLABLE arena)
1999#if defined(PROTOBUF_CUSTOM_VTABLE)
2000 : ::google::protobuf::Message(arena, LinearConstraintUpdatesProto_class_data_.base()) {
2001#else // PROTOBUF_CUSTOM_VTABLE
2002 : ::google::protobuf::Message(arena) {
2003#endif // PROTOBUF_CUSTOM_VTABLE
2004 SharedCtor(arena);
2005 // @@protoc_insertion_point(arena_constructor:operations_research.math_opt.LinearConstraintUpdatesProto)
2006}
2007PROTOBUF_NDEBUG_INLINE LinearConstraintUpdatesProto::Impl_::Impl_(
2008 ::google::protobuf::internal::InternalVisibility visibility,
2009 ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const Impl_& from,
2010 const ::operations_research::math_opt::LinearConstraintUpdatesProto& from_msg)
2011 : _has_bits_{from._has_bits_},
2012 _cached_size_{0} {}
2013
2015 ::google::protobuf::Arena* PROTOBUF_NULLABLE arena,
2016 const LinearConstraintUpdatesProto& from)
2017#if defined(PROTOBUF_CUSTOM_VTABLE)
2018 : ::google::protobuf::Message(arena, LinearConstraintUpdatesProto_class_data_.base()) {
2019#else // PROTOBUF_CUSTOM_VTABLE
2020 : ::google::protobuf::Message(arena) {
2021#endif // PROTOBUF_CUSTOM_VTABLE
2022 LinearConstraintUpdatesProto* const _this = this;
2023 (void)_this;
2024 _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(
2025 from._internal_metadata_);
2026 new (&_impl_) Impl_(internal_visibility(), arena, from._impl_, from);
2027 ::uint32_t cached_has_bits = _impl_._has_bits_[0];
2028 _impl_.lower_bounds_ = ((cached_has_bits & 0x00000001u) != 0)
2029 ? ::google::protobuf::Message::CopyConstruct(arena, *from._impl_.lower_bounds_)
2030 : nullptr;
2031 _impl_.upper_bounds_ = ((cached_has_bits & 0x00000002u) != 0)
2032 ? ::google::protobuf::Message::CopyConstruct(arena, *from._impl_.upper_bounds_)
2033 : nullptr;
2034
2035 // @@protoc_insertion_point(copy_constructor:operations_research.math_opt.LinearConstraintUpdatesProto)
2036}
2037PROTOBUF_NDEBUG_INLINE LinearConstraintUpdatesProto::Impl_::Impl_(
2038 ::google::protobuf::internal::InternalVisibility visibility,
2039 ::google::protobuf::Arena* PROTOBUF_NULLABLE arena)
2040 : _cached_size_{0} {}
2041
2042inline void LinearConstraintUpdatesProto::SharedCtor(::_pb::Arena* PROTOBUF_NULLABLE arena) {
2043 new (&_impl_) Impl_(internal_visibility(), arena);
2044 ::memset(reinterpret_cast<char *>(&_impl_) +
2045 offsetof(Impl_, lower_bounds_),
2046 0,
2047 offsetof(Impl_, upper_bounds_) -
2048 offsetof(Impl_, lower_bounds_) +
2049 sizeof(Impl_::upper_bounds_));
2050}
2052 // @@protoc_insertion_point(destructor:operations_research.math_opt.LinearConstraintUpdatesProto)
2053 SharedDtor(*this);
2054}
2055inline void LinearConstraintUpdatesProto::SharedDtor(MessageLite& self) {
2057 this_._internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>();
2058 ABSL_DCHECK(this_.GetArena() == nullptr);
2059 delete this_._impl_.lower_bounds_;
2060 delete this_._impl_.upper_bounds_;
2061 this_._impl_.~Impl_();
2062}
2063
2064inline void* PROTOBUF_NONNULL LinearConstraintUpdatesProto::PlacementNew_(
2065 const void* PROTOBUF_NONNULL, void* PROTOBUF_NONNULL mem,
2066 ::google::protobuf::Arena* PROTOBUF_NULLABLE arena) {
2067 return ::new (mem) LinearConstraintUpdatesProto(arena);
2068}
2070 return ::google::protobuf::internal::MessageCreator::ZeroInit(sizeof(LinearConstraintUpdatesProto),
2072}
2074 return ::google::protobuf::internal::ClassDataFull{
2075 ::google::protobuf::internal::ClassData{
2077 &_table_.header,
2078 nullptr, // OnDemandRegisterArenaDtor
2079 nullptr, // IsInitialized
2080 &LinearConstraintUpdatesProto::MergeImpl,
2081 ::google::protobuf::Message::GetNewImpl<LinearConstraintUpdatesProto>(),
2082#if defined(PROTOBUF_CUSTOM_VTABLE)
2083 &LinearConstraintUpdatesProto::SharedDtor,
2084 ::google::protobuf::Message::GetClearImpl<LinearConstraintUpdatesProto>(), &LinearConstraintUpdatesProto::ByteSizeLong,
2086#endif // PROTOBUF_CUSTOM_VTABLE
2087 PROTOBUF_FIELD_OFFSET(LinearConstraintUpdatesProto, _impl_._cached_size_),
2088 false,
2089 },
2090 &LinearConstraintUpdatesProto::kDescriptorMethods,
2092 nullptr, // tracker
2093 };
2094}
2095
2096PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 const
2097 ::google::protobuf::internal::ClassDataFull LinearConstraintUpdatesProto_class_data_ =
2099
2100PROTOBUF_ATTRIBUTE_WEAK const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL
2102 ::google::protobuf::internal::PrefetchToLocalCache(&LinearConstraintUpdatesProto_class_data_);
2103 ::google::protobuf::internal::PrefetchToLocalCache(LinearConstraintUpdatesProto_class_data_.tc_table);
2105}
2106PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1
2107const ::_pbi::TcParseTable<1, 2, 2, 0, 2>
2108LinearConstraintUpdatesProto::_table_ = {
2109 {
2110 PROTOBUF_FIELD_OFFSET(LinearConstraintUpdatesProto, _impl_._has_bits_),
2111 0, // no _extensions_
2112 2, 8, // max_field_number, fast_idx_mask
2113 offsetof(decltype(_table_), field_lookup_table),
2114 4294967292, // skipmap
2115 offsetof(decltype(_table_), field_entries),
2116 2, // num_field_entries
2117 2, // num_aux_entries
2118 offsetof(decltype(_table_), aux_entries),
2120 nullptr, // post_loop_handler
2121 ::_pbi::TcParser::GenericFallback, // fallback
2122 #ifdef PROTOBUF_PREFETCH_PARSE_TABLE
2123 ::_pbi::TcParser::GetTable<::operations_research::math_opt::LinearConstraintUpdatesProto>(), // to_prefetch
2124 #endif // PROTOBUF_PREFETCH_PARSE_TABLE
2125 }, {{
2126 // .operations_research.math_opt.SparseDoubleVectorProto upper_bounds = 2;
2127 {::_pbi::TcParser::FastMtS1,
2128 {18, 1, 1, PROTOBUF_FIELD_OFFSET(LinearConstraintUpdatesProto, _impl_.upper_bounds_)}},
2129 // .operations_research.math_opt.SparseDoubleVectorProto lower_bounds = 1;
2130 {::_pbi::TcParser::FastMtS1,
2131 {10, 0, 0, PROTOBUF_FIELD_OFFSET(LinearConstraintUpdatesProto, _impl_.lower_bounds_)}},
2132 }}, {{
2133 65535, 65535
2134 }}, {{
2135 // .operations_research.math_opt.SparseDoubleVectorProto lower_bounds = 1;
2136 {PROTOBUF_FIELD_OFFSET(LinearConstraintUpdatesProto, _impl_.lower_bounds_), _Internal::kHasBitsOffset + 0, 0,
2137 (0 | ::_fl::kFcOptional | ::_fl::kMessage | ::_fl::kTvTable)},
2138 // .operations_research.math_opt.SparseDoubleVectorProto upper_bounds = 2;
2139 {PROTOBUF_FIELD_OFFSET(LinearConstraintUpdatesProto, _impl_.upper_bounds_), _Internal::kHasBitsOffset + 1, 1,
2140 (0 | ::_fl::kFcOptional | ::_fl::kMessage | ::_fl::kTvTable)},
2141 }},
2142 {{
2143 {::_pbi::TcParser::GetTable<::operations_research::math_opt::SparseDoubleVectorProto>()},
2144 {::_pbi::TcParser::GetTable<::operations_research::math_opt::SparseDoubleVectorProto>()},
2145 }},
2146 {{
2147 }},
2148};
2149PROTOBUF_NOINLINE void LinearConstraintUpdatesProto::Clear() {
2150// @@protoc_insertion_point(message_clear_start:operations_research.math_opt.LinearConstraintUpdatesProto)
2151 ::google::protobuf::internal::TSanWrite(&_impl_);
2152 ::uint32_t cached_has_bits = 0;
2153 // Prevent compiler warnings about cached_has_bits being unused
2154 (void) cached_has_bits;
2156 cached_has_bits = _impl_._has_bits_[0];
2157 if ((cached_has_bits & 0x00000003u) != 0) {
2158 if ((cached_has_bits & 0x00000001u) != 0) {
2159 ABSL_DCHECK(_impl_.lower_bounds_ != nullptr);
2160 _impl_.lower_bounds_->Clear();
2161 }
2162 if ((cached_has_bits & 0x00000002u) != 0) {
2163 ABSL_DCHECK(_impl_.upper_bounds_ != nullptr);
2164 _impl_.upper_bounds_->Clear();
2165 }
2166 }
2167 _impl_._has_bits_.Clear();
2168 _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>();
2169}
2170
2171#if defined(PROTOBUF_CUSTOM_VTABLE)
2172::uint8_t* PROTOBUF_NONNULL LinearConstraintUpdatesProto::_InternalSerialize(
2173 const ::google::protobuf::MessageLite& base, ::uint8_t* PROTOBUF_NONNULL target,
2174 ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) {
2175 const LinearConstraintUpdatesProto& this_ = static_cast<const LinearConstraintUpdatesProto&>(base);
2176#else // PROTOBUF_CUSTOM_VTABLE
2177::uint8_t* PROTOBUF_NONNULL LinearConstraintUpdatesProto::_InternalSerialize(
2178 ::uint8_t* PROTOBUF_NONNULL target,
2179 ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const {
2180 const LinearConstraintUpdatesProto& this_ = *this;
2181#endif // PROTOBUF_CUSTOM_VTABLE
2182 // @@protoc_insertion_point(serialize_to_array_start:operations_research.math_opt.LinearConstraintUpdatesProto)
2183 ::uint32_t cached_has_bits = 0;
2184 (void)cached_has_bits;
2185
2186 cached_has_bits = this_._impl_._has_bits_[0];
2187 // .operations_research.math_opt.SparseDoubleVectorProto lower_bounds = 1;
2188 if ((cached_has_bits & 0x00000001u) != 0) {
2189 target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage(
2190 1, *this_._impl_.lower_bounds_, this_._impl_.lower_bounds_->GetCachedSize(), target,
2191 stream);
2192 }
2193
2194 // .operations_research.math_opt.SparseDoubleVectorProto upper_bounds = 2;
2195 if ((cached_has_bits & 0x00000002u) != 0) {
2196 target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage(
2197 2, *this_._impl_.upper_bounds_, this_._impl_.upper_bounds_->GetCachedSize(), target,
2198 stream);
2199 }
2200
2201 if (ABSL_PREDICT_FALSE(this_._internal_metadata_.have_unknown_fields())) {
2202 target =
2203 ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray(
2204 this_._internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream);
2205 }
2206 // @@protoc_insertion_point(serialize_to_array_end:operations_research.math_opt.LinearConstraintUpdatesProto)
2207 return target;
2208}
2209
2210#if defined(PROTOBUF_CUSTOM_VTABLE)
2212 const LinearConstraintUpdatesProto& this_ = static_cast<const LinearConstraintUpdatesProto&>(base);
2213#else // PROTOBUF_CUSTOM_VTABLE
2215 const LinearConstraintUpdatesProto& this_ = *this;
2216#endif // PROTOBUF_CUSTOM_VTABLE
2217 // @@protoc_insertion_point(message_byte_size_start:operations_research.math_opt.LinearConstraintUpdatesProto)
2218 ::size_t total_size = 0;
2219
2220 ::uint32_t cached_has_bits = 0;
2221 // Prevent compiler warnings about cached_has_bits being unused
2222 (void)cached_has_bits;
2223
2224 ::_pbi::Prefetch5LinesFrom7Lines(&this_);
2225 cached_has_bits = this_._impl_._has_bits_[0];
2226 if ((cached_has_bits & 0x00000003u) != 0) {
2227 // .operations_research.math_opt.SparseDoubleVectorProto lower_bounds = 1;
2228 if ((cached_has_bits & 0x00000001u) != 0) {
2229 total_size += 1 +
2230 ::google::protobuf::internal::WireFormatLite::MessageSize(*this_._impl_.lower_bounds_);
2231 }
2232 // .operations_research.math_opt.SparseDoubleVectorProto upper_bounds = 2;
2233 if ((cached_has_bits & 0x00000002u) != 0) {
2234 total_size += 1 +
2235 ::google::protobuf::internal::WireFormatLite::MessageSize(*this_._impl_.upper_bounds_);
2236 }
2237 }
2238 return this_.MaybeComputeUnknownFieldsSize(total_size,
2239 &this_._impl_._cached_size_);
2240}
2241
2242void LinearConstraintUpdatesProto::MergeImpl(::google::protobuf::MessageLite& to_msg, const ::google::protobuf::MessageLite& from_msg) {
2243 auto* const _this = static_cast<LinearConstraintUpdatesProto*>(&to_msg);
2244 auto& from = static_cast<const LinearConstraintUpdatesProto&>(from_msg);
2245 ::google::protobuf::Arena* arena = _this->GetArena();
2246 // @@protoc_insertion_point(class_specific_merge_from_start:operations_research.math_opt.LinearConstraintUpdatesProto)
2247 ABSL_DCHECK_NE(&from, _this);
2248 ::uint32_t cached_has_bits = 0;
2249 (void) cached_has_bits;
2250
2251 cached_has_bits = from._impl_._has_bits_[0];
2252 if ((cached_has_bits & 0x00000003u) != 0) {
2253 if ((cached_has_bits & 0x00000001u) != 0) {
2254 ABSL_DCHECK(from._impl_.lower_bounds_ != nullptr);
2255 if (_this->_impl_.lower_bounds_ == nullptr) {
2256 _this->_impl_.lower_bounds_ = ::google::protobuf::Message::CopyConstruct(arena, *from._impl_.lower_bounds_);
2257 } else {
2258 _this->_impl_.lower_bounds_->MergeFrom(*from._impl_.lower_bounds_);
2259 }
2260 }
2261 if ((cached_has_bits & 0x00000002u) != 0) {
2262 ABSL_DCHECK(from._impl_.upper_bounds_ != nullptr);
2263 if (_this->_impl_.upper_bounds_ == nullptr) {
2264 _this->_impl_.upper_bounds_ = ::google::protobuf::Message::CopyConstruct(arena, *from._impl_.upper_bounds_);
2265 } else {
2266 _this->_impl_.upper_bounds_->MergeFrom(*from._impl_.upper_bounds_);
2267 }
2268 }
2269 }
2270 _this->_impl_._has_bits_[0] |= cached_has_bits;
2271 _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_);
2272}
2273
2275// @@protoc_insertion_point(class_specific_copy_from_start:operations_research.math_opt.LinearConstraintUpdatesProto)
2276 if (&from == this) return;
2277 Clear();
2278 MergeFrom(from);
2279}
2281
2282void LinearConstraintUpdatesProto::InternalSwap(LinearConstraintUpdatesProto* PROTOBUF_RESTRICT PROTOBUF_NONNULL other) {
2283 using ::std::swap;
2284 _internal_metadata_.InternalSwap(&other->_internal_metadata_);
2285 swap(_impl_._has_bits_[0], other->_impl_._has_bits_[0]);
2286 ::google::protobuf::internal::memswap<
2287 PROTOBUF_FIELD_OFFSET(LinearConstraintUpdatesProto, _impl_.upper_bounds_)
2288 + sizeof(LinearConstraintUpdatesProto::_impl_.upper_bounds_)
2289 - PROTOBUF_FIELD_OFFSET(LinearConstraintUpdatesProto, _impl_.lower_bounds_)>(
2290 reinterpret_cast<char*>(&_impl_.lower_bounds_),
2291 reinterpret_cast<char*>(&other->_impl_.lower_bounds_));
2292}
2293
2294::google::protobuf::Metadata LinearConstraintUpdatesProto::GetMetadata() const {
2295 return ::google::protobuf::Message::GetMetadataImpl(GetClassData()->full());
2296}
2297// ===================================================================
2298
2299#if defined(PROTOBUF_CUSTOM_VTABLE)
2304#else // PROTOBUF_CUSTOM_VTABLE
2307#endif // PROTOBUF_CUSTOM_VTABLE
2308inline void* PROTOBUF_NONNULL QuadraticConstraintUpdatesProto_NewConstraintsEntry_DoNotUse::PlacementNew_(
2309 const void* PROTOBUF_NONNULL, void* PROTOBUF_NONNULL mem,
2310 ::google::protobuf::Arena* PROTOBUF_NULLABLE arena) {
2313constexpr auto QuadraticConstraintUpdatesProto_NewConstraintsEntry_DoNotUse::InternalNewImpl_() {
2314 return ::google::protobuf::internal::MessageCreator::ZeroInit(sizeof(QuadraticConstraintUpdatesProto_NewConstraintsEntry_DoNotUse),
2316}
2318 return ::google::protobuf::internal::ClassDataFull{
2319 ::google::protobuf::internal::ClassData{
2321 &_table_.header,
2322 nullptr, // OnDemandRegisterArenaDtor
2323 nullptr, // IsInitialized
2324 &QuadraticConstraintUpdatesProto_NewConstraintsEntry_DoNotUse::MergeImpl,
2325 ::google::protobuf::Message::GetNewImpl<QuadraticConstraintUpdatesProto_NewConstraintsEntry_DoNotUse>(),
2326#if defined(PROTOBUF_CUSTOM_VTABLE)
2327 &QuadraticConstraintUpdatesProto_NewConstraintsEntry_DoNotUse::SharedDtor,
2328 static_cast<void (::google::protobuf::MessageLite::*)()>(&QuadraticConstraintUpdatesProto_NewConstraintsEntry_DoNotUse::ClearImpl),
2329 ::google::protobuf::Message::ByteSizeLongImpl, ::google::protobuf::Message::_InternalSerializeImpl
2330 ,
2331#endif // PROTOBUF_CUSTOM_VTABLE
2332 PROTOBUF_FIELD_OFFSET(QuadraticConstraintUpdatesProto_NewConstraintsEntry_DoNotUse, _impl_._cached_size_),
2333 false,
2334 },
2335 &QuadraticConstraintUpdatesProto_NewConstraintsEntry_DoNotUse::kDescriptorMethods,
2337 nullptr, // tracker
2338 };
2339}
2340
2341PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 const
2342 ::google::protobuf::internal::ClassDataFull QuadraticConstraintUpdatesProto_NewConstraintsEntry_DoNotUse_class_data_ =
2344
2345PROTOBUF_ATTRIBUTE_WEAK const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL
2346QuadraticConstraintUpdatesProto_NewConstraintsEntry_DoNotUse::GetClassData() const {
2347 ::google::protobuf::internal::PrefetchToLocalCache(&QuadraticConstraintUpdatesProto_NewConstraintsEntry_DoNotUse_class_data_);
2348 ::google::protobuf::internal::PrefetchToLocalCache(QuadraticConstraintUpdatesProto_NewConstraintsEntry_DoNotUse_class_data_.tc_table);
2350}
2351PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1
2352const ::_pbi::TcParseTable<1, 2, 1, 0, 2>
2353QuadraticConstraintUpdatesProto_NewConstraintsEntry_DoNotUse::_table_ = {
2354 {
2355 PROTOBUF_FIELD_OFFSET(QuadraticConstraintUpdatesProto_NewConstraintsEntry_DoNotUse, _impl_._has_bits_),
2356 0, // no _extensions_
2357 2, 8, // max_field_number, fast_idx_mask
2358 offsetof(decltype(_table_), field_lookup_table),
2359 4294967292, // skipmap
2360 offsetof(decltype(_table_), field_entries),
2361 2, // num_field_entries
2362 1, // num_aux_entries
2363 offsetof(decltype(_table_), aux_entries),
2365 nullptr, // post_loop_handler
2366 ::_pbi::TcParser::DiscardEverythingFallback, // fallback
2367 #ifdef PROTOBUF_PREFETCH_PARSE_TABLE
2368 ::_pbi::TcParser::GetTable<::operations_research::math_opt::QuadraticConstraintUpdatesProto_NewConstraintsEntry_DoNotUse>(), // to_prefetch
2369 #endif // PROTOBUF_PREFETCH_PARSE_TABLE
2370 }, {{
2371 // .operations_research.math_opt.QuadraticConstraintProto value = 2;
2372 {::_pbi::TcParser::FastMtS1,
2373 {18, 0, 0, PROTOBUF_FIELD_OFFSET(QuadraticConstraintUpdatesProto_NewConstraintsEntry_DoNotUse, _impl_.value_)}},
2374 // int64 key = 1;
2375 {::_pbi::TcParser::SingularVarintNoZag1<::uint64_t, offsetof(QuadraticConstraintUpdatesProto_NewConstraintsEntry_DoNotUse, _impl_.key_), 1>(),
2376 {8, 1, 0, PROTOBUF_FIELD_OFFSET(QuadraticConstraintUpdatesProto_NewConstraintsEntry_DoNotUse, _impl_.key_)}},
2377 }}, {{
2378 65535, 65535
2379 }}, {{
2380 // int64 key = 1;
2381 {PROTOBUF_FIELD_OFFSET(QuadraticConstraintUpdatesProto_NewConstraintsEntry_DoNotUse, _impl_.key_), _Internal::kHasBitsOffset + 1, 0,
2382 (0 | ::_fl::kFcOptional | ::_fl::kInt64)},
2383 // .operations_research.math_opt.QuadraticConstraintProto value = 2;
2384 {PROTOBUF_FIELD_OFFSET(QuadraticConstraintUpdatesProto_NewConstraintsEntry_DoNotUse, _impl_.value_), _Internal::kHasBitsOffset + 0, 0,
2385 (0 | ::_fl::kFcOptional | ::_fl::kMessage | ::_fl::kTvTable)},
2386 }},
2387 {{
2388 {::_pbi::TcParser::GetTable<::operations_research::math_opt::QuadraticConstraintProto>()},
2389 }},
2390 {{
2391 }},
2392};
2393// ===================================================================
2394
2396 public:
2397};
2398
2400 ::google::protobuf::internal::TSanWrite(&_impl_);
2401 _impl_.new_constraints_.Clear();
2402}
2403QuadraticConstraintUpdatesProto::QuadraticConstraintUpdatesProto(::google::protobuf::Arena* PROTOBUF_NULLABLE arena)
2404#if defined(PROTOBUF_CUSTOM_VTABLE)
2405 : ::google::protobuf::Message(arena, QuadraticConstraintUpdatesProto_class_data_.base()) {
2406#else // PROTOBUF_CUSTOM_VTABLE
2407 : ::google::protobuf::Message(arena) {
2408#endif // PROTOBUF_CUSTOM_VTABLE
2409 SharedCtor(arena);
2410 // @@protoc_insertion_point(arena_constructor:operations_research.math_opt.QuadraticConstraintUpdatesProto)
2412PROTOBUF_NDEBUG_INLINE QuadraticConstraintUpdatesProto::Impl_::Impl_(
2413 ::google::protobuf::internal::InternalVisibility visibility,
2414 ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const Impl_& from,
2415 const ::operations_research::math_opt::QuadraticConstraintUpdatesProto& from_msg)
2416 : deleted_constraint_ids_{visibility, arena, from.deleted_constraint_ids_},
2417 _deleted_constraint_ids_cached_byte_size_{0},
2418 new_constraints_{visibility, arena, from.new_constraints_},
2419 _cached_size_{0} {}
2420
2422 ::google::protobuf::Arena* PROTOBUF_NULLABLE arena,
2423 const QuadraticConstraintUpdatesProto& from)
2424#if defined(PROTOBUF_CUSTOM_VTABLE)
2425 : ::google::protobuf::Message(arena, QuadraticConstraintUpdatesProto_class_data_.base()) {
2426#else // PROTOBUF_CUSTOM_VTABLE
2427 : ::google::protobuf::Message(arena) {
2428#endif // PROTOBUF_CUSTOM_VTABLE
2430 (void)_this;
2431 _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(
2432 from._internal_metadata_);
2433 new (&_impl_) Impl_(internal_visibility(), arena, from._impl_, from);
2434
2435 // @@protoc_insertion_point(copy_constructor:operations_research.math_opt.QuadraticConstraintUpdatesProto)
2436}
2437PROTOBUF_NDEBUG_INLINE QuadraticConstraintUpdatesProto::Impl_::Impl_(
2438 ::google::protobuf::internal::InternalVisibility visibility,
2439 ::google::protobuf::Arena* PROTOBUF_NULLABLE arena)
2440 : deleted_constraint_ids_{visibility, arena},
2441 _deleted_constraint_ids_cached_byte_size_{0},
2442 new_constraints_{visibility, arena},
2443 _cached_size_{0} {}
2444
2445inline void QuadraticConstraintUpdatesProto::SharedCtor(::_pb::Arena* PROTOBUF_NULLABLE arena) {
2446 new (&_impl_) Impl_(internal_visibility(), arena);
2447}
2449 // @@protoc_insertion_point(destructor:operations_research.math_opt.QuadraticConstraintUpdatesProto)
2450 SharedDtor(*this);
2451}
2452inline void QuadraticConstraintUpdatesProto::SharedDtor(MessageLite& self) {
2454 this_._internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>();
2455 ABSL_DCHECK(this_.GetArena() == nullptr);
2456 this_._impl_.~Impl_();
2457}
2458
2459inline void* PROTOBUF_NONNULL QuadraticConstraintUpdatesProto::PlacementNew_(
2460 const void* PROTOBUF_NONNULL, void* PROTOBUF_NONNULL mem,
2461 ::google::protobuf::Arena* PROTOBUF_NULLABLE arena) {
2462 return ::new (mem) QuadraticConstraintUpdatesProto(arena);
2463}
2465 constexpr auto arena_bits = ::google::protobuf::internal::EncodePlacementArenaOffsets({
2466 PROTOBUF_FIELD_OFFSET(QuadraticConstraintUpdatesProto, _impl_.deleted_constraint_ids_) +
2467 decltype(QuadraticConstraintUpdatesProto::_impl_.deleted_constraint_ids_)::
2468 InternalGetArenaOffset(
2469 ::google::protobuf::Message::internal_visibility()),
2470 PROTOBUF_FIELD_OFFSET(QuadraticConstraintUpdatesProto, _impl_.new_constraints_) +
2471 decltype(QuadraticConstraintUpdatesProto::_impl_.new_constraints_)::
2472 InternalGetArenaOffset(
2473 ::google::protobuf::Message::internal_visibility()),
2474 PROTOBUF_FIELD_OFFSET(QuadraticConstraintUpdatesProto, _impl_.new_constraints_) +
2475 decltype(QuadraticConstraintUpdatesProto::_impl_.new_constraints_)::
2476 InternalGetArenaOffsetAlt(
2477 ::google::protobuf::Message::internal_visibility()),
2478 });
2479 if (arena_bits.has_value()) {
2480 return ::google::protobuf::internal::MessageCreator::CopyInit(
2481 sizeof(QuadraticConstraintUpdatesProto), alignof(QuadraticConstraintUpdatesProto), *arena_bits);
2482 } else {
2483 return ::google::protobuf::internal::MessageCreator(&QuadraticConstraintUpdatesProto::PlacementNew_,
2484 sizeof(QuadraticConstraintUpdatesProto),
2485 alignof(QuadraticConstraintUpdatesProto));
2486 }
2487}
2489 return ::google::protobuf::internal::ClassDataFull{
2490 ::google::protobuf::internal::ClassData{
2492 &_table_.header,
2493 nullptr, // OnDemandRegisterArenaDtor
2494 nullptr, // IsInitialized
2495 &QuadraticConstraintUpdatesProto::MergeImpl,
2496 ::google::protobuf::Message::GetNewImpl<QuadraticConstraintUpdatesProto>(),
2497#if defined(PROTOBUF_CUSTOM_VTABLE)
2498 &QuadraticConstraintUpdatesProto::SharedDtor,
2499 ::google::protobuf::Message::GetClearImpl<QuadraticConstraintUpdatesProto>(), &QuadraticConstraintUpdatesProto::ByteSizeLong,
2501#endif // PROTOBUF_CUSTOM_VTABLE
2502 PROTOBUF_FIELD_OFFSET(QuadraticConstraintUpdatesProto, _impl_._cached_size_),
2503 false,
2504 },
2505 &QuadraticConstraintUpdatesProto::kDescriptorMethods,
2507 nullptr, // tracker
2508 };
2509}
2510
2511PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 const
2512 ::google::protobuf::internal::ClassDataFull QuadraticConstraintUpdatesProto_class_data_ =
2514
2515PROTOBUF_ATTRIBUTE_WEAK const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL
2517 ::google::protobuf::internal::PrefetchToLocalCache(&QuadraticConstraintUpdatesProto_class_data_);
2518 ::google::protobuf::internal::PrefetchToLocalCache(QuadraticConstraintUpdatesProto_class_data_.tc_table);
2521PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1
2522const ::_pbi::TcParseTable<0, 2, 2, 0, 2>
2523QuadraticConstraintUpdatesProto::_table_ = {
2525 0, // no _has_bits_
2526 0, // no _extensions_
2527 2, 0, // max_field_number, fast_idx_mask
2528 offsetof(decltype(_table_), field_lookup_table),
2529 4294967292, // skipmap
2530 offsetof(decltype(_table_), field_entries),
2531 2, // num_field_entries
2532 2, // num_aux_entries
2533 offsetof(decltype(_table_), aux_entries),
2535 nullptr, // post_loop_handler
2536 ::_pbi::TcParser::GenericFallback, // fallback
2537 #ifdef PROTOBUF_PREFETCH_PARSE_TABLE
2538 ::_pbi::TcParser::GetTable<::operations_research::math_opt::QuadraticConstraintUpdatesProto>(), // to_prefetch
2539 #endif // PROTOBUF_PREFETCH_PARSE_TABLE
2540 }, {{
2541 // repeated int64 deleted_constraint_ids = 1;
2542 {::_pbi::TcParser::FastV64P1,
2543 {10, 63, 0, PROTOBUF_FIELD_OFFSET(QuadraticConstraintUpdatesProto, _impl_.deleted_constraint_ids_)}},
2544 }}, {{
2545 65535, 65535
2546 }}, {{
2547 // repeated int64 deleted_constraint_ids = 1;
2548 {PROTOBUF_FIELD_OFFSET(QuadraticConstraintUpdatesProto, _impl_.deleted_constraint_ids_), 0, 0,
2549 (0 | ::_fl::kFcRepeated | ::_fl::kPackedInt64)},
2550 // map<int64, .operations_research.math_opt.QuadraticConstraintProto> new_constraints = 2;
2551 {PROTOBUF_FIELD_OFFSET(QuadraticConstraintUpdatesProto, _impl_.new_constraints_), 0, 0,
2552 (0 | ::_fl::kFcRepeated | ::_fl::kMap)},
2553 }},
2554 {{
2555 {::_pbi::TcParser::GetMapAuxInfo(0, 0, 0,
2556 3, 11,
2557 0)},
2558 {::_pbi::TcParser::GetTable<::operations_research::math_opt::QuadraticConstraintProto>()},
2559 }},
2560 {{
2561 }},
2562};
2563PROTOBUF_NOINLINE void QuadraticConstraintUpdatesProto::Clear() {
2564// @@protoc_insertion_point(message_clear_start:operations_research.math_opt.QuadraticConstraintUpdatesProto)
2565 ::google::protobuf::internal::TSanWrite(&_impl_);
2566 ::uint32_t cached_has_bits = 0;
2567 // Prevent compiler warnings about cached_has_bits being unused
2568 (void) cached_has_bits;
2569
2570 _impl_.deleted_constraint_ids_.Clear();
2571 _impl_.new_constraints_.Clear();
2572 _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>();
2573}
2574
2575#if defined(PROTOBUF_CUSTOM_VTABLE)
2576::uint8_t* PROTOBUF_NONNULL QuadraticConstraintUpdatesProto::_InternalSerialize(
2577 const ::google::protobuf::MessageLite& base, ::uint8_t* PROTOBUF_NONNULL target,
2578 ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) {
2579 const QuadraticConstraintUpdatesProto& this_ = static_cast<const QuadraticConstraintUpdatesProto&>(base);
2580#else // PROTOBUF_CUSTOM_VTABLE
2581::uint8_t* PROTOBUF_NONNULL QuadraticConstraintUpdatesProto::_InternalSerialize(
2582 ::uint8_t* PROTOBUF_NONNULL target,
2583 ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const {
2584 const QuadraticConstraintUpdatesProto& this_ = *this;
2585#endif // PROTOBUF_CUSTOM_VTABLE
2586 // @@protoc_insertion_point(serialize_to_array_start:operations_research.math_opt.QuadraticConstraintUpdatesProto)
2587 ::uint32_t cached_has_bits = 0;
2588 (void)cached_has_bits;
2590 // repeated int64 deleted_constraint_ids = 1;
2591 {
2592 int byte_size = this_._impl_._deleted_constraint_ids_cached_byte_size_.Get();
2593 if (byte_size > 0) {
2594 target = stream->WriteInt64Packed(
2595 1, this_._internal_deleted_constraint_ids(), byte_size, target);
2596 }
2597 }
2598
2599 // map<int64, .operations_research.math_opt.QuadraticConstraintProto> new_constraints = 2;
2600 if (!this_._internal_new_constraints().empty()) {
2601 using MapType = ::google::protobuf::Map<::int64_t, ::operations_research::math_opt::QuadraticConstraintProto>;
2602 using WireHelper = _pbi::MapEntryFuncs<::int64_t, ::operations_research::math_opt::QuadraticConstraintProto,
2603 _pbi::WireFormatLite::TYPE_INT64,
2604 _pbi::WireFormatLite::TYPE_MESSAGE>;
2605 const auto& field = this_._internal_new_constraints();
2606
2607 if (stream->IsSerializationDeterministic() && field.size() > 1) {
2608 for (const auto& entry : ::google::protobuf::internal::MapSorterFlat<MapType>(field)) {
2609 target = WireHelper::InternalSerialize(
2610 2, entry.first, entry.second, target, stream);
2611 }
2612 } else {
2613 for (const auto& entry : field) {
2614 target = WireHelper::InternalSerialize(
2615 2, entry.first, entry.second, target, stream);
2616 }
2617 }
2618 }
2619
2620 if (ABSL_PREDICT_FALSE(this_._internal_metadata_.have_unknown_fields())) {
2621 target =
2622 ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray(
2623 this_._internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream);
2624 }
2625 // @@protoc_insertion_point(serialize_to_array_end:operations_research.math_opt.QuadraticConstraintUpdatesProto)
2626 return target;
2627}
2628
2629#if defined(PROTOBUF_CUSTOM_VTABLE)
2631 const QuadraticConstraintUpdatesProto& this_ = static_cast<const QuadraticConstraintUpdatesProto&>(base);
2632#else // PROTOBUF_CUSTOM_VTABLE
2634 const QuadraticConstraintUpdatesProto& this_ = *this;
2635#endif // PROTOBUF_CUSTOM_VTABLE
2636 // @@protoc_insertion_point(message_byte_size_start:operations_research.math_opt.QuadraticConstraintUpdatesProto)
2637 ::size_t total_size = 0;
2638
2639 ::uint32_t cached_has_bits = 0;
2640 // Prevent compiler warnings about cached_has_bits being unused
2641 (void)cached_has_bits;
2642
2643 ::_pbi::Prefetch5LinesFrom7Lines(&this_);
2644 {
2645 // repeated int64 deleted_constraint_ids = 1;
2646 {
2647 total_size +=
2648 ::_pbi::WireFormatLite::Int64SizeWithPackedTagSize(
2649 this_._internal_deleted_constraint_ids(), 1,
2650 this_._impl_._deleted_constraint_ids_cached_byte_size_);
2651 }
2652 // map<int64, .operations_research.math_opt.QuadraticConstraintProto> new_constraints = 2;
2653 {
2654 total_size +=
2655 1 * ::google::protobuf::internal::FromIntSize(this_._internal_new_constraints_size());
2656 for (const auto& entry : this_._internal_new_constraints()) {
2657 total_size += _pbi::MapEntryFuncs<::int64_t, ::operations_research::math_opt::QuadraticConstraintProto,
2658 _pbi::WireFormatLite::TYPE_INT64,
2659 _pbi::WireFormatLite::TYPE_MESSAGE>::ByteSizeLong(entry.first, entry.second);
2660 }
2661 }
2662 }
2663 return this_.MaybeComputeUnknownFieldsSize(total_size,
2664 &this_._impl_._cached_size_);
2665}
2666
2667void QuadraticConstraintUpdatesProto::MergeImpl(::google::protobuf::MessageLite& to_msg, const ::google::protobuf::MessageLite& from_msg) {
2668 auto* const _this = static_cast<QuadraticConstraintUpdatesProto*>(&to_msg);
2669 auto& from = static_cast<const QuadraticConstraintUpdatesProto&>(from_msg);
2670 // @@protoc_insertion_point(class_specific_merge_from_start:operations_research.math_opt.QuadraticConstraintUpdatesProto)
2671 ABSL_DCHECK_NE(&from, _this);
2672 ::uint32_t cached_has_bits = 0;
2673 (void) cached_has_bits;
2674
2675 _this->_internal_mutable_deleted_constraint_ids()->MergeFrom(from._internal_deleted_constraint_ids());
2676 _this->_impl_.new_constraints_.MergeFrom(from._impl_.new_constraints_);
2677 _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_);
2678}
2679
2681// @@protoc_insertion_point(class_specific_copy_from_start:operations_research.math_opt.QuadraticConstraintUpdatesProto)
2682 if (&from == this) return;
2683 Clear();
2684 MergeFrom(from);
2685}
2686
2687
2688void QuadraticConstraintUpdatesProto::InternalSwap(QuadraticConstraintUpdatesProto* PROTOBUF_RESTRICT PROTOBUF_NONNULL other) {
2689 using ::std::swap;
2690 _internal_metadata_.InternalSwap(&other->_internal_metadata_);
2691 _impl_.deleted_constraint_ids_.InternalSwap(&other->_impl_.deleted_constraint_ids_);
2692 _impl_.new_constraints_.InternalSwap(&other->_impl_.new_constraints_);
2693}
2694
2695::google::protobuf::Metadata QuadraticConstraintUpdatesProto::GetMetadata() const {
2696 return ::google::protobuf::Message::GetMetadataImpl(GetClassData()->full());
2697}
2698// ===================================================================
2699
2700#if defined(PROTOBUF_CUSTOM_VTABLE)
2708#endif // PROTOBUF_CUSTOM_VTABLE
2709inline void* PROTOBUF_NONNULL SecondOrderConeConstraintUpdatesProto_NewConstraintsEntry_DoNotUse::PlacementNew_(
2710 const void* PROTOBUF_NONNULL, void* PROTOBUF_NONNULL mem,
2711 ::google::protobuf::Arena* PROTOBUF_NULLABLE arena) {
2713}
2714constexpr auto SecondOrderConeConstraintUpdatesProto_NewConstraintsEntry_DoNotUse::InternalNewImpl_() {
2715 return ::google::protobuf::internal::MessageCreator::ZeroInit(sizeof(SecondOrderConeConstraintUpdatesProto_NewConstraintsEntry_DoNotUse),
2717}
2719 return ::google::protobuf::internal::ClassDataFull{
2720 ::google::protobuf::internal::ClassData{
2722 &_table_.header,
2723 nullptr, // OnDemandRegisterArenaDtor
2724 nullptr, // IsInitialized
2725 &SecondOrderConeConstraintUpdatesProto_NewConstraintsEntry_DoNotUse::MergeImpl,
2726 ::google::protobuf::Message::GetNewImpl<SecondOrderConeConstraintUpdatesProto_NewConstraintsEntry_DoNotUse>(),
2727#if defined(PROTOBUF_CUSTOM_VTABLE)
2728 &SecondOrderConeConstraintUpdatesProto_NewConstraintsEntry_DoNotUse::SharedDtor,
2729 static_cast<void (::google::protobuf::MessageLite::*)()>(&SecondOrderConeConstraintUpdatesProto_NewConstraintsEntry_DoNotUse::ClearImpl),
2730 ::google::protobuf::Message::ByteSizeLongImpl, ::google::protobuf::Message::_InternalSerializeImpl
2731 ,
2732#endif // PROTOBUF_CUSTOM_VTABLE
2733 PROTOBUF_FIELD_OFFSET(SecondOrderConeConstraintUpdatesProto_NewConstraintsEntry_DoNotUse, _impl_._cached_size_),
2734 false,
2735 },
2736 &SecondOrderConeConstraintUpdatesProto_NewConstraintsEntry_DoNotUse::kDescriptorMethods,
2738 nullptr, // tracker
2739 };
2740}
2741
2742PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 const
2743 ::google::protobuf::internal::ClassDataFull SecondOrderConeConstraintUpdatesProto_NewConstraintsEntry_DoNotUse_class_data_ =
2745
2746PROTOBUF_ATTRIBUTE_WEAK const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL
2747SecondOrderConeConstraintUpdatesProto_NewConstraintsEntry_DoNotUse::GetClassData() const {
2748 ::google::protobuf::internal::PrefetchToLocalCache(&SecondOrderConeConstraintUpdatesProto_NewConstraintsEntry_DoNotUse_class_data_);
2749 ::google::protobuf::internal::PrefetchToLocalCache(SecondOrderConeConstraintUpdatesProto_NewConstraintsEntry_DoNotUse_class_data_.tc_table);
2751}
2752PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1
2753const ::_pbi::TcParseTable<1, 2, 1, 0, 2>
2754SecondOrderConeConstraintUpdatesProto_NewConstraintsEntry_DoNotUse::_table_ = {
2755 {
2756 PROTOBUF_FIELD_OFFSET(SecondOrderConeConstraintUpdatesProto_NewConstraintsEntry_DoNotUse, _impl_._has_bits_),
2757 0, // no _extensions_
2758 2, 8, // max_field_number, fast_idx_mask
2759 offsetof(decltype(_table_), field_lookup_table),
2760 4294967292, // skipmap
2761 offsetof(decltype(_table_), field_entries),
2762 2, // num_field_entries
2763 1, // num_aux_entries
2764 offsetof(decltype(_table_), aux_entries),
2766 nullptr, // post_loop_handler
2767 ::_pbi::TcParser::DiscardEverythingFallback, // fallback
2768 #ifdef PROTOBUF_PREFETCH_PARSE_TABLE
2769 ::_pbi::TcParser::GetTable<::operations_research::math_opt::SecondOrderConeConstraintUpdatesProto_NewConstraintsEntry_DoNotUse>(), // to_prefetch
2770 #endif // PROTOBUF_PREFETCH_PARSE_TABLE
2771 }, {{
2772 // .operations_research.math_opt.SecondOrderConeConstraintProto value = 2;
2773 {::_pbi::TcParser::FastMtS1,
2774 {18, 0, 0, PROTOBUF_FIELD_OFFSET(SecondOrderConeConstraintUpdatesProto_NewConstraintsEntry_DoNotUse, _impl_.value_)}},
2775 // int64 key = 1;
2776 {::_pbi::TcParser::SingularVarintNoZag1<::uint64_t, offsetof(SecondOrderConeConstraintUpdatesProto_NewConstraintsEntry_DoNotUse, _impl_.key_), 1>(),
2777 {8, 1, 0, PROTOBUF_FIELD_OFFSET(SecondOrderConeConstraintUpdatesProto_NewConstraintsEntry_DoNotUse, _impl_.key_)}},
2778 }}, {{
2779 65535, 65535
2780 }}, {{
2781 // int64 key = 1;
2782 {PROTOBUF_FIELD_OFFSET(SecondOrderConeConstraintUpdatesProto_NewConstraintsEntry_DoNotUse, _impl_.key_), _Internal::kHasBitsOffset + 1, 0,
2783 (0 | ::_fl::kFcOptional | ::_fl::kInt64)},
2784 // .operations_research.math_opt.SecondOrderConeConstraintProto value = 2;
2785 {PROTOBUF_FIELD_OFFSET(SecondOrderConeConstraintUpdatesProto_NewConstraintsEntry_DoNotUse, _impl_.value_), _Internal::kHasBitsOffset + 0, 0,
2786 (0 | ::_fl::kFcOptional | ::_fl::kMessage | ::_fl::kTvTable)},
2787 }},
2788 {{
2789 {::_pbi::TcParser::GetTable<::operations_research::math_opt::SecondOrderConeConstraintProto>()},
2790 }},
2791 {{
2792 }},
2793};
2794// ===================================================================
2795
2796class SecondOrderConeConstraintUpdatesProto::_Internal {
2797 public:
2798};
2799
2801 ::google::protobuf::internal::TSanWrite(&_impl_);
2802 _impl_.new_constraints_.Clear();
2803}
2804SecondOrderConeConstraintUpdatesProto::SecondOrderConeConstraintUpdatesProto(::google::protobuf::Arena* PROTOBUF_NULLABLE arena)
2805#if defined(PROTOBUF_CUSTOM_VTABLE)
2806 : ::google::protobuf::Message(arena, SecondOrderConeConstraintUpdatesProto_class_data_.base()) {
2807#else // PROTOBUF_CUSTOM_VTABLE
2808 : ::google::protobuf::Message(arena) {
2809#endif // PROTOBUF_CUSTOM_VTABLE
2810 SharedCtor(arena);
2811 // @@protoc_insertion_point(arena_constructor:operations_research.math_opt.SecondOrderConeConstraintUpdatesProto)
2812}
2813PROTOBUF_NDEBUG_INLINE SecondOrderConeConstraintUpdatesProto::Impl_::Impl_(
2814 ::google::protobuf::internal::InternalVisibility visibility,
2815 ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const Impl_& from,
2816 const ::operations_research::math_opt::SecondOrderConeConstraintUpdatesProto& from_msg)
2817 : deleted_constraint_ids_{visibility, arena, from.deleted_constraint_ids_},
2818 _deleted_constraint_ids_cached_byte_size_{0},
2819 new_constraints_{visibility, arena, from.new_constraints_},
2820 _cached_size_{0} {}
2821
2823 ::google::protobuf::Arena* PROTOBUF_NULLABLE arena,
2825#if defined(PROTOBUF_CUSTOM_VTABLE)
2826 : ::google::protobuf::Message(arena, SecondOrderConeConstraintUpdatesProto_class_data_.base()) {
2827#else // PROTOBUF_CUSTOM_VTABLE
2828 : ::google::protobuf::Message(arena) {
2829#endif // PROTOBUF_CUSTOM_VTABLE
2830 SecondOrderConeConstraintUpdatesProto* const _this = this;
2831 (void)_this;
2832 _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(
2833 from._internal_metadata_);
2834 new (&_impl_) Impl_(internal_visibility(), arena, from._impl_, from);
2835
2836 // @@protoc_insertion_point(copy_constructor:operations_research.math_opt.SecondOrderConeConstraintUpdatesProto)
2837}
2838PROTOBUF_NDEBUG_INLINE SecondOrderConeConstraintUpdatesProto::Impl_::Impl_(
2839 ::google::protobuf::internal::InternalVisibility visibility,
2840 ::google::protobuf::Arena* PROTOBUF_NULLABLE arena)
2841 : deleted_constraint_ids_{visibility, arena},
2842 _deleted_constraint_ids_cached_byte_size_{0},
2843 new_constraints_{visibility, arena},
2844 _cached_size_{0} {}
2845
2846inline void SecondOrderConeConstraintUpdatesProto::SharedCtor(::_pb::Arena* PROTOBUF_NULLABLE arena) {
2847 new (&_impl_) Impl_(internal_visibility(), arena);
2848}
2850 // @@protoc_insertion_point(destructor:operations_research.math_opt.SecondOrderConeConstraintUpdatesProto)
2851 SharedDtor(*this);
2852}
2853inline void SecondOrderConeConstraintUpdatesProto::SharedDtor(MessageLite& self) {
2855 this_._internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>();
2856 ABSL_DCHECK(this_.GetArena() == nullptr);
2857 this_._impl_.~Impl_();
2858}
2860inline void* PROTOBUF_NONNULL SecondOrderConeConstraintUpdatesProto::PlacementNew_(
2861 const void* PROTOBUF_NONNULL, void* PROTOBUF_NONNULL mem,
2862 ::google::protobuf::Arena* PROTOBUF_NULLABLE arena) {
2863 return ::new (mem) SecondOrderConeConstraintUpdatesProto(arena);
2864}
2866 constexpr auto arena_bits = ::google::protobuf::internal::EncodePlacementArenaOffsets({
2867 PROTOBUF_FIELD_OFFSET(SecondOrderConeConstraintUpdatesProto, _impl_.deleted_constraint_ids_) +
2868 decltype(SecondOrderConeConstraintUpdatesProto::_impl_.deleted_constraint_ids_)::
2869 InternalGetArenaOffset(
2870 ::google::protobuf::Message::internal_visibility()),
2871 PROTOBUF_FIELD_OFFSET(SecondOrderConeConstraintUpdatesProto, _impl_.new_constraints_) +
2872 decltype(SecondOrderConeConstraintUpdatesProto::_impl_.new_constraints_)::
2873 InternalGetArenaOffset(
2874 ::google::protobuf::Message::internal_visibility()),
2875 PROTOBUF_FIELD_OFFSET(SecondOrderConeConstraintUpdatesProto, _impl_.new_constraints_) +
2876 decltype(SecondOrderConeConstraintUpdatesProto::_impl_.new_constraints_)::
2877 InternalGetArenaOffsetAlt(
2878 ::google::protobuf::Message::internal_visibility()),
2879 });
2880 if (arena_bits.has_value()) {
2881 return ::google::protobuf::internal::MessageCreator::CopyInit(
2882 sizeof(SecondOrderConeConstraintUpdatesProto), alignof(SecondOrderConeConstraintUpdatesProto), *arena_bits);
2883 } else {
2884 return ::google::protobuf::internal::MessageCreator(&SecondOrderConeConstraintUpdatesProto::PlacementNew_,
2885 sizeof(SecondOrderConeConstraintUpdatesProto),
2886 alignof(SecondOrderConeConstraintUpdatesProto));
2887 }
2888}
2890 return ::google::protobuf::internal::ClassDataFull{
2891 ::google::protobuf::internal::ClassData{
2893 &_table_.header,
2894 nullptr, // OnDemandRegisterArenaDtor
2895 nullptr, // IsInitialized
2896 &SecondOrderConeConstraintUpdatesProto::MergeImpl,
2897 ::google::protobuf::Message::GetNewImpl<SecondOrderConeConstraintUpdatesProto>(),
2898#if defined(PROTOBUF_CUSTOM_VTABLE)
2899 &SecondOrderConeConstraintUpdatesProto::SharedDtor,
2900 ::google::protobuf::Message::GetClearImpl<SecondOrderConeConstraintUpdatesProto>(), &SecondOrderConeConstraintUpdatesProto::ByteSizeLong,
2902#endif // PROTOBUF_CUSTOM_VTABLE
2903 PROTOBUF_FIELD_OFFSET(SecondOrderConeConstraintUpdatesProto, _impl_._cached_size_),
2904 false,
2905 },
2906 &SecondOrderConeConstraintUpdatesProto::kDescriptorMethods,
2908 nullptr, // tracker
2909 };
2910}
2911
2912PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 const
2913 ::google::protobuf::internal::ClassDataFull SecondOrderConeConstraintUpdatesProto_class_data_ =
2915
2916PROTOBUF_ATTRIBUTE_WEAK const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL
2918 ::google::protobuf::internal::PrefetchToLocalCache(&SecondOrderConeConstraintUpdatesProto_class_data_);
2919 ::google::protobuf::internal::PrefetchToLocalCache(SecondOrderConeConstraintUpdatesProto_class_data_.tc_table);
2921}
2922PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1
2923const ::_pbi::TcParseTable<0, 2, 2, 0, 2>
2924SecondOrderConeConstraintUpdatesProto::_table_ = {
2925 {
2926 0, // no _has_bits_
2927 0, // no _extensions_
2928 2, 0, // max_field_number, fast_idx_mask
2929 offsetof(decltype(_table_), field_lookup_table),
2930 4294967292, // skipmap
2931 offsetof(decltype(_table_), field_entries),
2932 2, // num_field_entries
2933 2, // num_aux_entries
2934 offsetof(decltype(_table_), aux_entries),
2936 nullptr, // post_loop_handler
2937 ::_pbi::TcParser::GenericFallback, // fallback
2938 #ifdef PROTOBUF_PREFETCH_PARSE_TABLE
2939 ::_pbi::TcParser::GetTable<::operations_research::math_opt::SecondOrderConeConstraintUpdatesProto>(), // to_prefetch
2940 #endif // PROTOBUF_PREFETCH_PARSE_TABLE
2941 }, {{
2942 // repeated int64 deleted_constraint_ids = 1;
2943 {::_pbi::TcParser::FastV64P1,
2944 {10, 63, 0, PROTOBUF_FIELD_OFFSET(SecondOrderConeConstraintUpdatesProto, _impl_.deleted_constraint_ids_)}},
2945 }}, {{
2946 65535, 65535
2947 }}, {{
2948 // repeated int64 deleted_constraint_ids = 1;
2949 {PROTOBUF_FIELD_OFFSET(SecondOrderConeConstraintUpdatesProto, _impl_.deleted_constraint_ids_), 0, 0,
2950 (0 | ::_fl::kFcRepeated | ::_fl::kPackedInt64)},
2951 // map<int64, .operations_research.math_opt.SecondOrderConeConstraintProto> new_constraints = 2;
2952 {PROTOBUF_FIELD_OFFSET(SecondOrderConeConstraintUpdatesProto, _impl_.new_constraints_), 0, 0,
2953 (0 | ::_fl::kFcRepeated | ::_fl::kMap)},
2954 }},
2955 {{
2956 {::_pbi::TcParser::GetMapAuxInfo(0, 0, 0,
2957 3, 11,
2958 0)},
2959 {::_pbi::TcParser::GetTable<::operations_research::math_opt::SecondOrderConeConstraintProto>()},
2960 }},
2961 {{
2962 }},
2963};
2964PROTOBUF_NOINLINE void SecondOrderConeConstraintUpdatesProto::Clear() {
2965// @@protoc_insertion_point(message_clear_start:operations_research.math_opt.SecondOrderConeConstraintUpdatesProto)
2966 ::google::protobuf::internal::TSanWrite(&_impl_);
2967 ::uint32_t cached_has_bits = 0;
2968 // Prevent compiler warnings about cached_has_bits being unused
2969 (void) cached_has_bits;
2970
2971 _impl_.deleted_constraint_ids_.Clear();
2972 _impl_.new_constraints_.Clear();
2973 _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>();
2975
2976#if defined(PROTOBUF_CUSTOM_VTABLE)
2978 const ::google::protobuf::MessageLite& base, ::uint8_t* PROTOBUF_NONNULL target,
2979 ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) {
2981#else // PROTOBUF_CUSTOM_VTABLE
2983 ::uint8_t* PROTOBUF_NONNULL target,
2984 ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const {
2985 const SecondOrderConeConstraintUpdatesProto& this_ = *this;
2986#endif // PROTOBUF_CUSTOM_VTABLE
2987 // @@protoc_insertion_point(serialize_to_array_start:operations_research.math_opt.SecondOrderConeConstraintUpdatesProto)
2988 ::uint32_t cached_has_bits = 0;
2989 (void)cached_has_bits;
2990
2991 // repeated int64 deleted_constraint_ids = 1;
2993 int byte_size = this_._impl_._deleted_constraint_ids_cached_byte_size_.Get();
2994 if (byte_size > 0) {
2995 target = stream->WriteInt64Packed(
2996 1, this_._internal_deleted_constraint_ids(), byte_size, target);
2997 }
2998 }
2999
3000 // map<int64, .operations_research.math_opt.SecondOrderConeConstraintProto> new_constraints = 2;
3001 if (!this_._internal_new_constraints().empty()) {
3002 using MapType = ::google::protobuf::Map<::int64_t, ::operations_research::math_opt::SecondOrderConeConstraintProto>;
3003 using WireHelper = _pbi::MapEntryFuncs<::int64_t, ::operations_research::math_opt::SecondOrderConeConstraintProto,
3004 _pbi::WireFormatLite::TYPE_INT64,
3005 _pbi::WireFormatLite::TYPE_MESSAGE>;
3006 const auto& field = this_._internal_new_constraints();
3007
3008 if (stream->IsSerializationDeterministic() && field.size() > 1) {
3009 for (const auto& entry : ::google::protobuf::internal::MapSorterFlat<MapType>(field)) {
3010 target = WireHelper::InternalSerialize(
3011 2, entry.first, entry.second, target, stream);
3012 }
3013 } else {
3014 for (const auto& entry : field) {
3015 target = WireHelper::InternalSerialize(
3016 2, entry.first, entry.second, target, stream);
3017 }
3018 }
3019 }
3020
3021 if (ABSL_PREDICT_FALSE(this_._internal_metadata_.have_unknown_fields())) {
3022 target =
3023 ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray(
3024 this_._internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream);
3025 }
3026 // @@protoc_insertion_point(serialize_to_array_end:operations_research.math_opt.SecondOrderConeConstraintUpdatesProto)
3027 return target;
3028}
3029
3030#if defined(PROTOBUF_CUSTOM_VTABLE)
3033#else // PROTOBUF_CUSTOM_VTABLE
3035 const SecondOrderConeConstraintUpdatesProto& this_ = *this;
3036#endif // PROTOBUF_CUSTOM_VTABLE
3037 // @@protoc_insertion_point(message_byte_size_start:operations_research.math_opt.SecondOrderConeConstraintUpdatesProto)
3038 ::size_t total_size = 0;
3039
3040 ::uint32_t cached_has_bits = 0;
3041 // Prevent compiler warnings about cached_has_bits being unused
3042 (void)cached_has_bits;
3043
3044 ::_pbi::Prefetch5LinesFrom7Lines(&this_);
3045 {
3046 // repeated int64 deleted_constraint_ids = 1;
3047 {
3048 total_size +=
3049 ::_pbi::WireFormatLite::Int64SizeWithPackedTagSize(
3050 this_._internal_deleted_constraint_ids(), 1,
3051 this_._impl_._deleted_constraint_ids_cached_byte_size_);
3052 }
3053 // map<int64, .operations_research.math_opt.SecondOrderConeConstraintProto> new_constraints = 2;
3054 {
3055 total_size +=
3056 1 * ::google::protobuf::internal::FromIntSize(this_._internal_new_constraints_size());
3057 for (const auto& entry : this_._internal_new_constraints()) {
3058 total_size += _pbi::MapEntryFuncs<::int64_t, ::operations_research::math_opt::SecondOrderConeConstraintProto,
3059 _pbi::WireFormatLite::TYPE_INT64,
3060 _pbi::WireFormatLite::TYPE_MESSAGE>::ByteSizeLong(entry.first, entry.second);
3061 }
3062 }
3063 }
3064 return this_.MaybeComputeUnknownFieldsSize(total_size,
3065 &this_._impl_._cached_size_);
3066}
3067
3068void SecondOrderConeConstraintUpdatesProto::MergeImpl(::google::protobuf::MessageLite& to_msg, const ::google::protobuf::MessageLite& from_msg) {
3069 auto* const _this = static_cast<SecondOrderConeConstraintUpdatesProto*>(&to_msg);
3070 auto& from = static_cast<const SecondOrderConeConstraintUpdatesProto&>(from_msg);
3071 // @@protoc_insertion_point(class_specific_merge_from_start:operations_research.math_opt.SecondOrderConeConstraintUpdatesProto)
3072 ABSL_DCHECK_NE(&from, _this);
3073 ::uint32_t cached_has_bits = 0;
3074 (void) cached_has_bits;
3075
3076 _this->_internal_mutable_deleted_constraint_ids()->MergeFrom(from._internal_deleted_constraint_ids());
3077 _this->_impl_.new_constraints_.MergeFrom(from._impl_.new_constraints_);
3078 _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_);
3079}
3080
3082// @@protoc_insertion_point(class_specific_copy_from_start:operations_research.math_opt.SecondOrderConeConstraintUpdatesProto)
3083 if (&from == this) return;
3084 Clear();
3085 MergeFrom(from);
3086}
3087
3088
3089void SecondOrderConeConstraintUpdatesProto::InternalSwap(SecondOrderConeConstraintUpdatesProto* PROTOBUF_RESTRICT PROTOBUF_NONNULL other) {
3090 using ::std::swap;
3091 _internal_metadata_.InternalSwap(&other->_internal_metadata_);
3092 _impl_.deleted_constraint_ids_.InternalSwap(&other->_impl_.deleted_constraint_ids_);
3093 _impl_.new_constraints_.InternalSwap(&other->_impl_.new_constraints_);
3094}
3095
3096::google::protobuf::Metadata SecondOrderConeConstraintUpdatesProto::GetMetadata() const {
3097 return ::google::protobuf::Message::GetMetadataImpl(GetClassData()->full());
3098}
3099// ===================================================================
3100
3101#if defined(PROTOBUF_CUSTOM_VTABLE)
3109#endif // PROTOBUF_CUSTOM_VTABLE
3110inline void* PROTOBUF_NONNULL SosConstraintUpdatesProto_NewConstraintsEntry_DoNotUse::PlacementNew_(
3111 const void* PROTOBUF_NONNULL, void* PROTOBUF_NONNULL mem,
3112 ::google::protobuf::Arena* PROTOBUF_NULLABLE arena) {
3114}
3115constexpr auto SosConstraintUpdatesProto_NewConstraintsEntry_DoNotUse::InternalNewImpl_() {
3116 return ::google::protobuf::internal::MessageCreator::ZeroInit(sizeof(SosConstraintUpdatesProto_NewConstraintsEntry_DoNotUse),
3120 return ::google::protobuf::internal::ClassDataFull{
3121 ::google::protobuf::internal::ClassData{
3123 &_table_.header,
3124 nullptr, // OnDemandRegisterArenaDtor
3125 nullptr, // IsInitialized
3126 &SosConstraintUpdatesProto_NewConstraintsEntry_DoNotUse::MergeImpl,
3127 ::google::protobuf::Message::GetNewImpl<SosConstraintUpdatesProto_NewConstraintsEntry_DoNotUse>(),
3128#if defined(PROTOBUF_CUSTOM_VTABLE)
3129 &SosConstraintUpdatesProto_NewConstraintsEntry_DoNotUse::SharedDtor,
3130 static_cast<void (::google::protobuf::MessageLite::*)()>(&SosConstraintUpdatesProto_NewConstraintsEntry_DoNotUse::ClearImpl),
3131 ::google::protobuf::Message::ByteSizeLongImpl, ::google::protobuf::Message::_InternalSerializeImpl
3132 ,
3133#endif // PROTOBUF_CUSTOM_VTABLE
3134 PROTOBUF_FIELD_OFFSET(SosConstraintUpdatesProto_NewConstraintsEntry_DoNotUse, _impl_._cached_size_),
3135 false,
3136 },
3137 &SosConstraintUpdatesProto_NewConstraintsEntry_DoNotUse::kDescriptorMethods,
3139 nullptr, // tracker
3140 };
3141}
3142
3143PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 const
3144 ::google::protobuf::internal::ClassDataFull SosConstraintUpdatesProto_NewConstraintsEntry_DoNotUse_class_data_ =
3146
3147PROTOBUF_ATTRIBUTE_WEAK const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL
3148SosConstraintUpdatesProto_NewConstraintsEntry_DoNotUse::GetClassData() const {
3149 ::google::protobuf::internal::PrefetchToLocalCache(&SosConstraintUpdatesProto_NewConstraintsEntry_DoNotUse_class_data_);
3150 ::google::protobuf::internal::PrefetchToLocalCache(SosConstraintUpdatesProto_NewConstraintsEntry_DoNotUse_class_data_.tc_table);
3152}
3153PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1
3154const ::_pbi::TcParseTable<1, 2, 1, 0, 2>
3155SosConstraintUpdatesProto_NewConstraintsEntry_DoNotUse::_table_ = {
3156 {
3157 PROTOBUF_FIELD_OFFSET(SosConstraintUpdatesProto_NewConstraintsEntry_DoNotUse, _impl_._has_bits_),
3158 0, // no _extensions_
3159 2, 8, // max_field_number, fast_idx_mask
3160 offsetof(decltype(_table_), field_lookup_table),
3161 4294967292, // skipmap
3162 offsetof(decltype(_table_), field_entries),
3163 2, // num_field_entries
3164 1, // num_aux_entries
3165 offsetof(decltype(_table_), aux_entries),
3167 nullptr, // post_loop_handler
3168 ::_pbi::TcParser::DiscardEverythingFallback, // fallback
3169 #ifdef PROTOBUF_PREFETCH_PARSE_TABLE
3170 ::_pbi::TcParser::GetTable<::operations_research::math_opt::SosConstraintUpdatesProto_NewConstraintsEntry_DoNotUse>(), // to_prefetch
3171 #endif // PROTOBUF_PREFETCH_PARSE_TABLE
3172 }, {{
3173 // .operations_research.math_opt.SosConstraintProto value = 2;
3174 {::_pbi::TcParser::FastMtS1,
3175 {18, 0, 0, PROTOBUF_FIELD_OFFSET(SosConstraintUpdatesProto_NewConstraintsEntry_DoNotUse, _impl_.value_)}},
3176 // int64 key = 1;
3177 {::_pbi::TcParser::SingularVarintNoZag1<::uint64_t, offsetof(SosConstraintUpdatesProto_NewConstraintsEntry_DoNotUse, _impl_.key_), 1>(),
3178 {8, 1, 0, PROTOBUF_FIELD_OFFSET(SosConstraintUpdatesProto_NewConstraintsEntry_DoNotUse, _impl_.key_)}},
3179 }}, {{
3180 65535, 65535
3181 }}, {{
3182 // int64 key = 1;
3183 {PROTOBUF_FIELD_OFFSET(SosConstraintUpdatesProto_NewConstraintsEntry_DoNotUse, _impl_.key_), _Internal::kHasBitsOffset + 1, 0,
3184 (0 | ::_fl::kFcOptional | ::_fl::kInt64)},
3185 // .operations_research.math_opt.SosConstraintProto value = 2;
3186 {PROTOBUF_FIELD_OFFSET(SosConstraintUpdatesProto_NewConstraintsEntry_DoNotUse, _impl_.value_), _Internal::kHasBitsOffset + 0, 0,
3187 (0 | ::_fl::kFcOptional | ::_fl::kMessage | ::_fl::kTvTable)},
3188 }},
3189 {{
3190 {::_pbi::TcParser::GetTable<::operations_research::math_opt::SosConstraintProto>()},
3191 }},
3192 {{
3193 }},
3194};
3195// ===================================================================
3196
3197class SosConstraintUpdatesProto::_Internal {
3198 public:
3199};
3200
3202 ::google::protobuf::internal::TSanWrite(&_impl_);
3203 _impl_.new_constraints_.Clear();
3204}
3205SosConstraintUpdatesProto::SosConstraintUpdatesProto(::google::protobuf::Arena* PROTOBUF_NULLABLE arena)
3206#if defined(PROTOBUF_CUSTOM_VTABLE)
3207 : ::google::protobuf::Message(arena, SosConstraintUpdatesProto_class_data_.base()) {
3208#else // PROTOBUF_CUSTOM_VTABLE
3209 : ::google::protobuf::Message(arena) {
3210#endif // PROTOBUF_CUSTOM_VTABLE
3211 SharedCtor(arena);
3212 // @@protoc_insertion_point(arena_constructor:operations_research.math_opt.SosConstraintUpdatesProto)
3214PROTOBUF_NDEBUG_INLINE SosConstraintUpdatesProto::Impl_::Impl_(
3215 ::google::protobuf::internal::InternalVisibility visibility,
3216 ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const Impl_& from,
3217 const ::operations_research::math_opt::SosConstraintUpdatesProto& from_msg)
3218 : deleted_constraint_ids_{visibility, arena, from.deleted_constraint_ids_},
3219 _deleted_constraint_ids_cached_byte_size_{0},
3220 new_constraints_{visibility, arena, from.new_constraints_},
3221 _cached_size_{0} {}
3222
3224 ::google::protobuf::Arena* PROTOBUF_NULLABLE arena,
3225 const SosConstraintUpdatesProto& from)
3226#if defined(PROTOBUF_CUSTOM_VTABLE)
3227 : ::google::protobuf::Message(arena, SosConstraintUpdatesProto_class_data_.base()) {
3228#else // PROTOBUF_CUSTOM_VTABLE
3229 : ::google::protobuf::Message(arena) {
3230#endif // PROTOBUF_CUSTOM_VTABLE
3231 SosConstraintUpdatesProto* const _this = this;
3232 (void)_this;
3233 _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(
3234 from._internal_metadata_);
3235 new (&_impl_) Impl_(internal_visibility(), arena, from._impl_, from);
3236
3237 // @@protoc_insertion_point(copy_constructor:operations_research.math_opt.SosConstraintUpdatesProto)
3238}
3239PROTOBUF_NDEBUG_INLINE SosConstraintUpdatesProto::Impl_::Impl_(
3240 ::google::protobuf::internal::InternalVisibility visibility,
3241 ::google::protobuf::Arena* PROTOBUF_NULLABLE arena)
3242 : deleted_constraint_ids_{visibility, arena},
3243 _deleted_constraint_ids_cached_byte_size_{0},
3244 new_constraints_{visibility, arena},
3245 _cached_size_{0} {}
3246
3247inline void SosConstraintUpdatesProto::SharedCtor(::_pb::Arena* PROTOBUF_NULLABLE arena) {
3248 new (&_impl_) Impl_(internal_visibility(), arena);
3249}
3251 // @@protoc_insertion_point(destructor:operations_research.math_opt.SosConstraintUpdatesProto)
3252 SharedDtor(*this);
3253}
3254inline void SosConstraintUpdatesProto::SharedDtor(MessageLite& self) {
3255 SosConstraintUpdatesProto& this_ = static_cast<SosConstraintUpdatesProto&>(self);
3256 this_._internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>();
3257 ABSL_DCHECK(this_.GetArena() == nullptr);
3258 this_._impl_.~Impl_();
3259}
3260
3261inline void* PROTOBUF_NONNULL SosConstraintUpdatesProto::PlacementNew_(
3262 const void* PROTOBUF_NONNULL, void* PROTOBUF_NONNULL mem,
3263 ::google::protobuf::Arena* PROTOBUF_NULLABLE arena) {
3264 return ::new (mem) SosConstraintUpdatesProto(arena);
3265}
3267 constexpr auto arena_bits = ::google::protobuf::internal::EncodePlacementArenaOffsets({
3268 PROTOBUF_FIELD_OFFSET(SosConstraintUpdatesProto, _impl_.deleted_constraint_ids_) +
3269 decltype(SosConstraintUpdatesProto::_impl_.deleted_constraint_ids_)::
3270 InternalGetArenaOffset(
3271 ::google::protobuf::Message::internal_visibility()),
3272 PROTOBUF_FIELD_OFFSET(SosConstraintUpdatesProto, _impl_.new_constraints_) +
3273 decltype(SosConstraintUpdatesProto::_impl_.new_constraints_)::
3274 InternalGetArenaOffset(
3275 ::google::protobuf::Message::internal_visibility()),
3276 PROTOBUF_FIELD_OFFSET(SosConstraintUpdatesProto, _impl_.new_constraints_) +
3277 decltype(SosConstraintUpdatesProto::_impl_.new_constraints_)::
3278 InternalGetArenaOffsetAlt(
3279 ::google::protobuf::Message::internal_visibility()),
3280 });
3281 if (arena_bits.has_value()) {
3282 return ::google::protobuf::internal::MessageCreator::CopyInit(
3283 sizeof(SosConstraintUpdatesProto), alignof(SosConstraintUpdatesProto), *arena_bits);
3284 } else {
3285 return ::google::protobuf::internal::MessageCreator(&SosConstraintUpdatesProto::PlacementNew_,
3286 sizeof(SosConstraintUpdatesProto),
3287 alignof(SosConstraintUpdatesProto));
3288 }
3289}
3291 return ::google::protobuf::internal::ClassDataFull{
3292 ::google::protobuf::internal::ClassData{
3294 &_table_.header,
3295 nullptr, // OnDemandRegisterArenaDtor
3296 nullptr, // IsInitialized
3297 &SosConstraintUpdatesProto::MergeImpl,
3298 ::google::protobuf::Message::GetNewImpl<SosConstraintUpdatesProto>(),
3299#if defined(PROTOBUF_CUSTOM_VTABLE)
3300 &SosConstraintUpdatesProto::SharedDtor,
3301 ::google::protobuf::Message::GetClearImpl<SosConstraintUpdatesProto>(), &SosConstraintUpdatesProto::ByteSizeLong,
3303#endif // PROTOBUF_CUSTOM_VTABLE
3304 PROTOBUF_FIELD_OFFSET(SosConstraintUpdatesProto, _impl_._cached_size_),
3305 false,
3306 },
3307 &SosConstraintUpdatesProto::kDescriptorMethods,
3309 nullptr, // tracker
3310 };
3311}
3312
3313PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 const
3314 ::google::protobuf::internal::ClassDataFull SosConstraintUpdatesProto_class_data_ =
3316
3317PROTOBUF_ATTRIBUTE_WEAK const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL
3319 ::google::protobuf::internal::PrefetchToLocalCache(&SosConstraintUpdatesProto_class_data_);
3320 ::google::protobuf::internal::PrefetchToLocalCache(SosConstraintUpdatesProto_class_data_.tc_table);
3322}
3323PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1
3324const ::_pbi::TcParseTable<0, 2, 2, 0, 2>
3325SosConstraintUpdatesProto::_table_ = {
3327 0, // no _has_bits_
3328 0, // no _extensions_
3329 2, 0, // max_field_number, fast_idx_mask
3330 offsetof(decltype(_table_), field_lookup_table),
3331 4294967292, // skipmap
3332 offsetof(decltype(_table_), field_entries),
3333 2, // num_field_entries
3334 2, // num_aux_entries
3335 offsetof(decltype(_table_), aux_entries),
3337 nullptr, // post_loop_handler
3338 ::_pbi::TcParser::GenericFallback, // fallback
3339 #ifdef PROTOBUF_PREFETCH_PARSE_TABLE
3340 ::_pbi::TcParser::GetTable<::operations_research::math_opt::SosConstraintUpdatesProto>(), // to_prefetch
3341 #endif // PROTOBUF_PREFETCH_PARSE_TABLE
3342 }, {{
3343 // repeated int64 deleted_constraint_ids = 1;
3344 {::_pbi::TcParser::FastV64P1,
3345 {10, 63, 0, PROTOBUF_FIELD_OFFSET(SosConstraintUpdatesProto, _impl_.deleted_constraint_ids_)}},
3346 }}, {{
3347 65535, 65535
3348 }}, {{
3349 // repeated int64 deleted_constraint_ids = 1;
3350 {PROTOBUF_FIELD_OFFSET(SosConstraintUpdatesProto, _impl_.deleted_constraint_ids_), 0, 0,
3351 (0 | ::_fl::kFcRepeated | ::_fl::kPackedInt64)},
3352 // map<int64, .operations_research.math_opt.SosConstraintProto> new_constraints = 2;
3353 {PROTOBUF_FIELD_OFFSET(SosConstraintUpdatesProto, _impl_.new_constraints_), 0, 0,
3354 (0 | ::_fl::kFcRepeated | ::_fl::kMap)},
3355 }},
3356 {{
3357 {::_pbi::TcParser::GetMapAuxInfo(0, 0, 0,
3358 3, 11,
3359 0)},
3360 {::_pbi::TcParser::GetTable<::operations_research::math_opt::SosConstraintProto>()},
3361 }},
3362 {{
3363 }},
3364};
3365PROTOBUF_NOINLINE void SosConstraintUpdatesProto::Clear() {
3366// @@protoc_insertion_point(message_clear_start:operations_research.math_opt.SosConstraintUpdatesProto)
3367 ::google::protobuf::internal::TSanWrite(&_impl_);
3368 ::uint32_t cached_has_bits = 0;
3369 // Prevent compiler warnings about cached_has_bits being unused
3370 (void) cached_has_bits;
3371
3372 _impl_.deleted_constraint_ids_.Clear();
3373 _impl_.new_constraints_.Clear();
3374 _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>();
3375}
3376
3377#if defined(PROTOBUF_CUSTOM_VTABLE)
3378::uint8_t* PROTOBUF_NONNULL SosConstraintUpdatesProto::_InternalSerialize(
3379 const ::google::protobuf::MessageLite& base, ::uint8_t* PROTOBUF_NONNULL target,
3380 ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) {
3381 const SosConstraintUpdatesProto& this_ = static_cast<const SosConstraintUpdatesProto&>(base);
3382#else // PROTOBUF_CUSTOM_VTABLE
3383::uint8_t* PROTOBUF_NONNULL SosConstraintUpdatesProto::_InternalSerialize(
3384 ::uint8_t* PROTOBUF_NONNULL target,
3385 ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const {
3386 const SosConstraintUpdatesProto& this_ = *this;
3387#endif // PROTOBUF_CUSTOM_VTABLE
3388 // @@protoc_insertion_point(serialize_to_array_start:operations_research.math_opt.SosConstraintUpdatesProto)
3389 ::uint32_t cached_has_bits = 0;
3390 (void)cached_has_bits;
3391
3392 // repeated int64 deleted_constraint_ids = 1;
3393 {
3394 int byte_size = this_._impl_._deleted_constraint_ids_cached_byte_size_.Get();
3395 if (byte_size > 0) {
3396 target = stream->WriteInt64Packed(
3397 1, this_._internal_deleted_constraint_ids(), byte_size, target);
3398 }
3399 }
3400
3401 // map<int64, .operations_research.math_opt.SosConstraintProto> new_constraints = 2;
3402 if (!this_._internal_new_constraints().empty()) {
3403 using MapType = ::google::protobuf::Map<::int64_t, ::operations_research::math_opt::SosConstraintProto>;
3404 using WireHelper = _pbi::MapEntryFuncs<::int64_t, ::operations_research::math_opt::SosConstraintProto,
3405 _pbi::WireFormatLite::TYPE_INT64,
3406 _pbi::WireFormatLite::TYPE_MESSAGE>;
3407 const auto& field = this_._internal_new_constraints();
3408
3409 if (stream->IsSerializationDeterministic() && field.size() > 1) {
3410 for (const auto& entry : ::google::protobuf::internal::MapSorterFlat<MapType>(field)) {
3411 target = WireHelper::InternalSerialize(
3412 2, entry.first, entry.second, target, stream);
3413 }
3414 } else {
3415 for (const auto& entry : field) {
3416 target = WireHelper::InternalSerialize(
3417 2, entry.first, entry.second, target, stream);
3418 }
3419 }
3420 }
3421
3422 if (ABSL_PREDICT_FALSE(this_._internal_metadata_.have_unknown_fields())) {
3423 target =
3424 ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray(
3425 this_._internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream);
3426 }
3427 // @@protoc_insertion_point(serialize_to_array_end:operations_research.math_opt.SosConstraintUpdatesProto)
3428 return target;
3429}
3430
3431#if defined(PROTOBUF_CUSTOM_VTABLE)
3433 const SosConstraintUpdatesProto& this_ = static_cast<const SosConstraintUpdatesProto&>(base);
3434#else // PROTOBUF_CUSTOM_VTABLE
3436 const SosConstraintUpdatesProto& this_ = *this;
3437#endif // PROTOBUF_CUSTOM_VTABLE
3438 // @@protoc_insertion_point(message_byte_size_start:operations_research.math_opt.SosConstraintUpdatesProto)
3439 ::size_t total_size = 0;
3440
3441 ::uint32_t cached_has_bits = 0;
3442 // Prevent compiler warnings about cached_has_bits being unused
3443 (void)cached_has_bits;
3444
3445 ::_pbi::Prefetch5LinesFrom7Lines(&this_);
3446 {
3447 // repeated int64 deleted_constraint_ids = 1;
3448 {
3449 total_size +=
3450 ::_pbi::WireFormatLite::Int64SizeWithPackedTagSize(
3451 this_._internal_deleted_constraint_ids(), 1,
3452 this_._impl_._deleted_constraint_ids_cached_byte_size_);
3453 }
3454 // map<int64, .operations_research.math_opt.SosConstraintProto> new_constraints = 2;
3455 {
3456 total_size +=
3457 1 * ::google::protobuf::internal::FromIntSize(this_._internal_new_constraints_size());
3458 for (const auto& entry : this_._internal_new_constraints()) {
3459 total_size += _pbi::MapEntryFuncs<::int64_t, ::operations_research::math_opt::SosConstraintProto,
3460 _pbi::WireFormatLite::TYPE_INT64,
3461 _pbi::WireFormatLite::TYPE_MESSAGE>::ByteSizeLong(entry.first, entry.second);
3462 }
3463 }
3464 }
3465 return this_.MaybeComputeUnknownFieldsSize(total_size,
3466 &this_._impl_._cached_size_);
3467}
3468
3469void SosConstraintUpdatesProto::MergeImpl(::google::protobuf::MessageLite& to_msg, const ::google::protobuf::MessageLite& from_msg) {
3470 auto* const _this = static_cast<SosConstraintUpdatesProto*>(&to_msg);
3471 auto& from = static_cast<const SosConstraintUpdatesProto&>(from_msg);
3472 // @@protoc_insertion_point(class_specific_merge_from_start:operations_research.math_opt.SosConstraintUpdatesProto)
3473 ABSL_DCHECK_NE(&from, _this);
3474 ::uint32_t cached_has_bits = 0;
3475 (void) cached_has_bits;
3476
3477 _this->_internal_mutable_deleted_constraint_ids()->MergeFrom(from._internal_deleted_constraint_ids());
3478 _this->_impl_.new_constraints_.MergeFrom(from._impl_.new_constraints_);
3479 _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_);
3480}
3481
3483// @@protoc_insertion_point(class_specific_copy_from_start:operations_research.math_opt.SosConstraintUpdatesProto)
3484 if (&from == this) return;
3485 Clear();
3486 MergeFrom(from);
3487}
3488
3489
3490void SosConstraintUpdatesProto::InternalSwap(SosConstraintUpdatesProto* PROTOBUF_RESTRICT PROTOBUF_NONNULL other) {
3491 using ::std::swap;
3492 _internal_metadata_.InternalSwap(&other->_internal_metadata_);
3493 _impl_.deleted_constraint_ids_.InternalSwap(&other->_impl_.deleted_constraint_ids_);
3494 _impl_.new_constraints_.InternalSwap(&other->_impl_.new_constraints_);
3495}
3496
3497::google::protobuf::Metadata SosConstraintUpdatesProto::GetMetadata() const {
3498 return ::google::protobuf::Message::GetMetadataImpl(GetClassData()->full());
3499}
3500// ===================================================================
3501
3502#if defined(PROTOBUF_CUSTOM_VTABLE)
3507#else // PROTOBUF_CUSTOM_VTABLE
3510#endif // PROTOBUF_CUSTOM_VTABLE
3511inline void* PROTOBUF_NONNULL IndicatorConstraintUpdatesProto_NewConstraintsEntry_DoNotUse::PlacementNew_(
3512 const void* PROTOBUF_NONNULL, void* PROTOBUF_NONNULL mem,
3513 ::google::protobuf::Arena* PROTOBUF_NULLABLE arena) {
3515}
3516constexpr auto IndicatorConstraintUpdatesProto_NewConstraintsEntry_DoNotUse::InternalNewImpl_() {
3517 return ::google::protobuf::internal::MessageCreator::ZeroInit(sizeof(IndicatorConstraintUpdatesProto_NewConstraintsEntry_DoNotUse),
3519}
3521 return ::google::protobuf::internal::ClassDataFull{
3522 ::google::protobuf::internal::ClassData{
3524 &_table_.header,
3525 nullptr, // OnDemandRegisterArenaDtor
3526 nullptr, // IsInitialized
3527 &IndicatorConstraintUpdatesProto_NewConstraintsEntry_DoNotUse::MergeImpl,
3528 ::google::protobuf::Message::GetNewImpl<IndicatorConstraintUpdatesProto_NewConstraintsEntry_DoNotUse>(),
3529#if defined(PROTOBUF_CUSTOM_VTABLE)
3530 &IndicatorConstraintUpdatesProto_NewConstraintsEntry_DoNotUse::SharedDtor,
3531 static_cast<void (::google::protobuf::MessageLite::*)()>(&IndicatorConstraintUpdatesProto_NewConstraintsEntry_DoNotUse::ClearImpl),
3532 ::google::protobuf::Message::ByteSizeLongImpl, ::google::protobuf::Message::_InternalSerializeImpl
3534#endif // PROTOBUF_CUSTOM_VTABLE
3535 PROTOBUF_FIELD_OFFSET(IndicatorConstraintUpdatesProto_NewConstraintsEntry_DoNotUse, _impl_._cached_size_),
3536 false,
3537 },
3538 &IndicatorConstraintUpdatesProto_NewConstraintsEntry_DoNotUse::kDescriptorMethods,
3540 nullptr, // tracker
3541 };
3542}
3543
3544PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 const
3545 ::google::protobuf::internal::ClassDataFull IndicatorConstraintUpdatesProto_NewConstraintsEntry_DoNotUse_class_data_ =
3547
3548PROTOBUF_ATTRIBUTE_WEAK const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL
3549IndicatorConstraintUpdatesProto_NewConstraintsEntry_DoNotUse::GetClassData() const {
3550 ::google::protobuf::internal::PrefetchToLocalCache(&IndicatorConstraintUpdatesProto_NewConstraintsEntry_DoNotUse_class_data_);
3551 ::google::protobuf::internal::PrefetchToLocalCache(IndicatorConstraintUpdatesProto_NewConstraintsEntry_DoNotUse_class_data_.tc_table);
3553}
3554PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1
3555const ::_pbi::TcParseTable<1, 2, 1, 0, 2>
3556IndicatorConstraintUpdatesProto_NewConstraintsEntry_DoNotUse::_table_ = {
3557 {
3558 PROTOBUF_FIELD_OFFSET(IndicatorConstraintUpdatesProto_NewConstraintsEntry_DoNotUse, _impl_._has_bits_),
3559 0, // no _extensions_
3560 2, 8, // max_field_number, fast_idx_mask
3561 offsetof(decltype(_table_), field_lookup_table),
3562 4294967292, // skipmap
3563 offsetof(decltype(_table_), field_entries),
3564 2, // num_field_entries
3565 1, // num_aux_entries
3566 offsetof(decltype(_table_), aux_entries),
3568 nullptr, // post_loop_handler
3569 ::_pbi::TcParser::DiscardEverythingFallback, // fallback
3570 #ifdef PROTOBUF_PREFETCH_PARSE_TABLE
3571 ::_pbi::TcParser::GetTable<::operations_research::math_opt::IndicatorConstraintUpdatesProto_NewConstraintsEntry_DoNotUse>(), // to_prefetch
3572 #endif // PROTOBUF_PREFETCH_PARSE_TABLE
3573 }, {{
3574 // .operations_research.math_opt.IndicatorConstraintProto value = 2;
3575 {::_pbi::TcParser::FastMtS1,
3576 {18, 0, 0, PROTOBUF_FIELD_OFFSET(IndicatorConstraintUpdatesProto_NewConstraintsEntry_DoNotUse, _impl_.value_)}},
3577 // int64 key = 1;
3578 {::_pbi::TcParser::SingularVarintNoZag1<::uint64_t, offsetof(IndicatorConstraintUpdatesProto_NewConstraintsEntry_DoNotUse, _impl_.key_), 1>(),
3579 {8, 1, 0, PROTOBUF_FIELD_OFFSET(IndicatorConstraintUpdatesProto_NewConstraintsEntry_DoNotUse, _impl_.key_)}},
3580 }}, {{
3581 65535, 65535
3582 }}, {{
3583 // int64 key = 1;
3584 {PROTOBUF_FIELD_OFFSET(IndicatorConstraintUpdatesProto_NewConstraintsEntry_DoNotUse, _impl_.key_), _Internal::kHasBitsOffset + 1, 0,
3585 (0 | ::_fl::kFcOptional | ::_fl::kInt64)},
3586 // .operations_research.math_opt.IndicatorConstraintProto value = 2;
3587 {PROTOBUF_FIELD_OFFSET(IndicatorConstraintUpdatesProto_NewConstraintsEntry_DoNotUse, _impl_.value_), _Internal::kHasBitsOffset + 0, 0,
3588 (0 | ::_fl::kFcOptional | ::_fl::kMessage | ::_fl::kTvTable)},
3589 }},
3590 {{
3591 {::_pbi::TcParser::GetTable<::operations_research::math_opt::IndicatorConstraintProto>()},
3592 }},
3593 {{
3594 }},
3595};
3596// ===================================================================
3597
3599 public:
3600};
3601
3603 ::google::protobuf::internal::TSanWrite(&_impl_);
3604 _impl_.new_constraints_.Clear();
3605}
3606IndicatorConstraintUpdatesProto::IndicatorConstraintUpdatesProto(::google::protobuf::Arena* PROTOBUF_NULLABLE arena)
3607#if defined(PROTOBUF_CUSTOM_VTABLE)
3608 : ::google::protobuf::Message(arena, IndicatorConstraintUpdatesProto_class_data_.base()) {
3609#else // PROTOBUF_CUSTOM_VTABLE
3610 : ::google::protobuf::Message(arena) {
3611#endif // PROTOBUF_CUSTOM_VTABLE
3612 SharedCtor(arena);
3613 // @@protoc_insertion_point(arena_constructor:operations_research.math_opt.IndicatorConstraintUpdatesProto)
3614}
3615PROTOBUF_NDEBUG_INLINE IndicatorConstraintUpdatesProto::Impl_::Impl_(
3616 ::google::protobuf::internal::InternalVisibility visibility,
3617 ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const Impl_& from,
3618 const ::operations_research::math_opt::IndicatorConstraintUpdatesProto& from_msg)
3619 : deleted_constraint_ids_{visibility, arena, from.deleted_constraint_ids_},
3620 _deleted_constraint_ids_cached_byte_size_{0},
3621 new_constraints_{visibility, arena, from.new_constraints_},
3622 _cached_size_{0} {}
3623
3625 ::google::protobuf::Arena* PROTOBUF_NULLABLE arena,
3627#if defined(PROTOBUF_CUSTOM_VTABLE)
3628 : ::google::protobuf::Message(arena, IndicatorConstraintUpdatesProto_class_data_.base()) {
3629#else // PROTOBUF_CUSTOM_VTABLE
3630 : ::google::protobuf::Message(arena) {
3631#endif // PROTOBUF_CUSTOM_VTABLE
3632 IndicatorConstraintUpdatesProto* const _this = this;
3633 (void)_this;
3634 _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(
3635 from._internal_metadata_);
3636 new (&_impl_) Impl_(internal_visibility(), arena, from._impl_, from);
3637
3638 // @@protoc_insertion_point(copy_constructor:operations_research.math_opt.IndicatorConstraintUpdatesProto)
3639}
3640PROTOBUF_NDEBUG_INLINE IndicatorConstraintUpdatesProto::Impl_::Impl_(
3641 ::google::protobuf::internal::InternalVisibility visibility,
3642 ::google::protobuf::Arena* PROTOBUF_NULLABLE arena)
3643 : deleted_constraint_ids_{visibility, arena},
3644 _deleted_constraint_ids_cached_byte_size_{0},
3645 new_constraints_{visibility, arena},
3646 _cached_size_{0} {}
3647
3648inline void IndicatorConstraintUpdatesProto::SharedCtor(::_pb::Arena* PROTOBUF_NULLABLE arena) {
3649 new (&_impl_) Impl_(internal_visibility(), arena);
3650}
3652 // @@protoc_insertion_point(destructor:operations_research.math_opt.IndicatorConstraintUpdatesProto)
3653 SharedDtor(*this);
3654}
3655inline void IndicatorConstraintUpdatesProto::SharedDtor(MessageLite& self) {
3657 this_._internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>();
3658 ABSL_DCHECK(this_.GetArena() == nullptr);
3659 this_._impl_.~Impl_();
3660}
3661
3662inline void* PROTOBUF_NONNULL IndicatorConstraintUpdatesProto::PlacementNew_(
3663 const void* PROTOBUF_NONNULL, void* PROTOBUF_NONNULL mem,
3664 ::google::protobuf::Arena* PROTOBUF_NULLABLE arena) {
3665 return ::new (mem) IndicatorConstraintUpdatesProto(arena);
3666}
3668 constexpr auto arena_bits = ::google::protobuf::internal::EncodePlacementArenaOffsets({
3669 PROTOBUF_FIELD_OFFSET(IndicatorConstraintUpdatesProto, _impl_.deleted_constraint_ids_) +
3670 decltype(IndicatorConstraintUpdatesProto::_impl_.deleted_constraint_ids_)::
3671 InternalGetArenaOffset(
3672 ::google::protobuf::Message::internal_visibility()),
3673 PROTOBUF_FIELD_OFFSET(IndicatorConstraintUpdatesProto, _impl_.new_constraints_) +
3674 decltype(IndicatorConstraintUpdatesProto::_impl_.new_constraints_)::
3675 InternalGetArenaOffset(
3676 ::google::protobuf::Message::internal_visibility()),
3677 PROTOBUF_FIELD_OFFSET(IndicatorConstraintUpdatesProto, _impl_.new_constraints_) +
3678 decltype(IndicatorConstraintUpdatesProto::_impl_.new_constraints_)::
3679 InternalGetArenaOffsetAlt(
3680 ::google::protobuf::Message::internal_visibility()),
3681 });
3682 if (arena_bits.has_value()) {
3683 return ::google::protobuf::internal::MessageCreator::CopyInit(
3684 sizeof(IndicatorConstraintUpdatesProto), alignof(IndicatorConstraintUpdatesProto), *arena_bits);
3685 } else {
3686 return ::google::protobuf::internal::MessageCreator(&IndicatorConstraintUpdatesProto::PlacementNew_,
3687 sizeof(IndicatorConstraintUpdatesProto),
3688 alignof(IndicatorConstraintUpdatesProto));
3689 }
3690}
3692 return ::google::protobuf::internal::ClassDataFull{
3693 ::google::protobuf::internal::ClassData{
3695 &_table_.header,
3696 nullptr, // OnDemandRegisterArenaDtor
3697 nullptr, // IsInitialized
3698 &IndicatorConstraintUpdatesProto::MergeImpl,
3699 ::google::protobuf::Message::GetNewImpl<IndicatorConstraintUpdatesProto>(),
3700#if defined(PROTOBUF_CUSTOM_VTABLE)
3701 &IndicatorConstraintUpdatesProto::SharedDtor,
3702 ::google::protobuf::Message::GetClearImpl<IndicatorConstraintUpdatesProto>(), &IndicatorConstraintUpdatesProto::ByteSizeLong,
3704#endif // PROTOBUF_CUSTOM_VTABLE
3705 PROTOBUF_FIELD_OFFSET(IndicatorConstraintUpdatesProto, _impl_._cached_size_),
3706 false,
3707 },
3708 &IndicatorConstraintUpdatesProto::kDescriptorMethods,
3710 nullptr, // tracker
3711 };
3712}
3713
3714PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 const
3715 ::google::protobuf::internal::ClassDataFull IndicatorConstraintUpdatesProto_class_data_ =
3717
3718PROTOBUF_ATTRIBUTE_WEAK const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL
3720 ::google::protobuf::internal::PrefetchToLocalCache(&IndicatorConstraintUpdatesProto_class_data_);
3721 ::google::protobuf::internal::PrefetchToLocalCache(IndicatorConstraintUpdatesProto_class_data_.tc_table);
3723}
3724PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1
3725const ::_pbi::TcParseTable<0, 2, 2, 0, 2>
3726IndicatorConstraintUpdatesProto::_table_ = {
3727 {
3728 0, // no _has_bits_
3729 0, // no _extensions_
3730 2, 0, // max_field_number, fast_idx_mask
3731 offsetof(decltype(_table_), field_lookup_table),
3732 4294967292, // skipmap
3733 offsetof(decltype(_table_), field_entries),
3734 2, // num_field_entries
3735 2, // num_aux_entries
3736 offsetof(decltype(_table_), aux_entries),
3738 nullptr, // post_loop_handler
3739 ::_pbi::TcParser::GenericFallback, // fallback
3740 #ifdef PROTOBUF_PREFETCH_PARSE_TABLE
3741 ::_pbi::TcParser::GetTable<::operations_research::math_opt::IndicatorConstraintUpdatesProto>(), // to_prefetch
3742 #endif // PROTOBUF_PREFETCH_PARSE_TABLE
3743 }, {{
3744 // repeated int64 deleted_constraint_ids = 1;
3745 {::_pbi::TcParser::FastV64P1,
3746 {10, 63, 0, PROTOBUF_FIELD_OFFSET(IndicatorConstraintUpdatesProto, _impl_.deleted_constraint_ids_)}},
3747 }}, {{
3748 65535, 65535
3749 }}, {{
3750 // repeated int64 deleted_constraint_ids = 1;
3751 {PROTOBUF_FIELD_OFFSET(IndicatorConstraintUpdatesProto, _impl_.deleted_constraint_ids_), 0, 0,
3752 (0 | ::_fl::kFcRepeated | ::_fl::kPackedInt64)},
3753 // map<int64, .operations_research.math_opt.IndicatorConstraintProto> new_constraints = 2;
3754 {PROTOBUF_FIELD_OFFSET(IndicatorConstraintUpdatesProto, _impl_.new_constraints_), 0, 0,
3755 (0 | ::_fl::kFcRepeated | ::_fl::kMap)},
3756 }},
3757 {{
3758 {::_pbi::TcParser::GetMapAuxInfo(0, 0, 0,
3759 3, 11,
3760 0)},
3761 {::_pbi::TcParser::GetTable<::operations_research::math_opt::IndicatorConstraintProto>()},
3762 }},
3763 {{
3764 }},
3765};
3766PROTOBUF_NOINLINE void IndicatorConstraintUpdatesProto::Clear() {
3767// @@protoc_insertion_point(message_clear_start:operations_research.math_opt.IndicatorConstraintUpdatesProto)
3768 ::google::protobuf::internal::TSanWrite(&_impl_);
3769 ::uint32_t cached_has_bits = 0;
3770 // Prevent compiler warnings about cached_has_bits being unused
3771 (void) cached_has_bits;
3772
3773 _impl_.deleted_constraint_ids_.Clear();
3774 _impl_.new_constraints_.Clear();
3775 _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>();
3776}
3777
3778#if defined(PROTOBUF_CUSTOM_VTABLE)
3779::uint8_t* PROTOBUF_NONNULL IndicatorConstraintUpdatesProto::_InternalSerialize(
3780 const ::google::protobuf::MessageLite& base, ::uint8_t* PROTOBUF_NONNULL target,
3781 ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) {
3782 const IndicatorConstraintUpdatesProto& this_ = static_cast<const IndicatorConstraintUpdatesProto&>(base);
3783#else // PROTOBUF_CUSTOM_VTABLE
3784::uint8_t* PROTOBUF_NONNULL IndicatorConstraintUpdatesProto::_InternalSerialize(
3785 ::uint8_t* PROTOBUF_NONNULL target,
3786 ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const {
3787 const IndicatorConstraintUpdatesProto& this_ = *this;
3788#endif // PROTOBUF_CUSTOM_VTABLE
3789 // @@protoc_insertion_point(serialize_to_array_start:operations_research.math_opt.IndicatorConstraintUpdatesProto)
3790 ::uint32_t cached_has_bits = 0;
3791 (void)cached_has_bits;
3792
3793 // repeated int64 deleted_constraint_ids = 1;
3794 {
3795 int byte_size = this_._impl_._deleted_constraint_ids_cached_byte_size_.Get();
3796 if (byte_size > 0) {
3797 target = stream->WriteInt64Packed(
3798 1, this_._internal_deleted_constraint_ids(), byte_size, target);
3799 }
3800 }
3801
3802 // map<int64, .operations_research.math_opt.IndicatorConstraintProto> new_constraints = 2;
3803 if (!this_._internal_new_constraints().empty()) {
3804 using MapType = ::google::protobuf::Map<::int64_t, ::operations_research::math_opt::IndicatorConstraintProto>;
3805 using WireHelper = _pbi::MapEntryFuncs<::int64_t, ::operations_research::math_opt::IndicatorConstraintProto,
3806 _pbi::WireFormatLite::TYPE_INT64,
3807 _pbi::WireFormatLite::TYPE_MESSAGE>;
3808 const auto& field = this_._internal_new_constraints();
3809
3810 if (stream->IsSerializationDeterministic() && field.size() > 1) {
3811 for (const auto& entry : ::google::protobuf::internal::MapSorterFlat<MapType>(field)) {
3812 target = WireHelper::InternalSerialize(
3813 2, entry.first, entry.second, target, stream);
3814 }
3815 } else {
3816 for (const auto& entry : field) {
3817 target = WireHelper::InternalSerialize(
3818 2, entry.first, entry.second, target, stream);
3819 }
3820 }
3821 }
3822
3823 if (ABSL_PREDICT_FALSE(this_._internal_metadata_.have_unknown_fields())) {
3824 target =
3825 ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray(
3826 this_._internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream);
3827 }
3828 // @@protoc_insertion_point(serialize_to_array_end:operations_research.math_opt.IndicatorConstraintUpdatesProto)
3829 return target;
3830}
3831
3832#if defined(PROTOBUF_CUSTOM_VTABLE)
3834 const IndicatorConstraintUpdatesProto& this_ = static_cast<const IndicatorConstraintUpdatesProto&>(base);
3835#else // PROTOBUF_CUSTOM_VTABLE
3837 const IndicatorConstraintUpdatesProto& this_ = *this;
3838#endif // PROTOBUF_CUSTOM_VTABLE
3839 // @@protoc_insertion_point(message_byte_size_start:operations_research.math_opt.IndicatorConstraintUpdatesProto)
3840 ::size_t total_size = 0;
3841
3842 ::uint32_t cached_has_bits = 0;
3843 // Prevent compiler warnings about cached_has_bits being unused
3844 (void)cached_has_bits;
3845
3846 ::_pbi::Prefetch5LinesFrom7Lines(&this_);
3847 {
3848 // repeated int64 deleted_constraint_ids = 1;
3849 {
3850 total_size +=
3851 ::_pbi::WireFormatLite::Int64SizeWithPackedTagSize(
3852 this_._internal_deleted_constraint_ids(), 1,
3853 this_._impl_._deleted_constraint_ids_cached_byte_size_);
3854 }
3855 // map<int64, .operations_research.math_opt.IndicatorConstraintProto> new_constraints = 2;
3856 {
3857 total_size +=
3858 1 * ::google::protobuf::internal::FromIntSize(this_._internal_new_constraints_size());
3859 for (const auto& entry : this_._internal_new_constraints()) {
3860 total_size += _pbi::MapEntryFuncs<::int64_t, ::operations_research::math_opt::IndicatorConstraintProto,
3861 _pbi::WireFormatLite::TYPE_INT64,
3862 _pbi::WireFormatLite::TYPE_MESSAGE>::ByteSizeLong(entry.first, entry.second);
3863 }
3864 }
3865 }
3866 return this_.MaybeComputeUnknownFieldsSize(total_size,
3867 &this_._impl_._cached_size_);
3868}
3869
3870void IndicatorConstraintUpdatesProto::MergeImpl(::google::protobuf::MessageLite& to_msg, const ::google::protobuf::MessageLite& from_msg) {
3871 auto* const _this = static_cast<IndicatorConstraintUpdatesProto*>(&to_msg);
3872 auto& from = static_cast<const IndicatorConstraintUpdatesProto&>(from_msg);
3873 // @@protoc_insertion_point(class_specific_merge_from_start:operations_research.math_opt.IndicatorConstraintUpdatesProto)
3874 ABSL_DCHECK_NE(&from, _this);
3875 ::uint32_t cached_has_bits = 0;
3876 (void) cached_has_bits;
3877
3878 _this->_internal_mutable_deleted_constraint_ids()->MergeFrom(from._internal_deleted_constraint_ids());
3879 _this->_impl_.new_constraints_.MergeFrom(from._impl_.new_constraints_);
3880 _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_);
3881}
3882
3884// @@protoc_insertion_point(class_specific_copy_from_start:operations_research.math_opt.IndicatorConstraintUpdatesProto)
3885 if (&from == this) return;
3886 Clear();
3887 MergeFrom(from);
3888}
3889
3890
3891void IndicatorConstraintUpdatesProto::InternalSwap(IndicatorConstraintUpdatesProto* PROTOBUF_RESTRICT PROTOBUF_NONNULL other) {
3892 using ::std::swap;
3893 _internal_metadata_.InternalSwap(&other->_internal_metadata_);
3894 _impl_.deleted_constraint_ids_.InternalSwap(&other->_impl_.deleted_constraint_ids_);
3895 _impl_.new_constraints_.InternalSwap(&other->_impl_.new_constraints_);
3896}
3898::google::protobuf::Metadata IndicatorConstraintUpdatesProto::GetMetadata() const {
3899 return ::google::protobuf::Message::GetMetadataImpl(GetClassData()->full());
3900}
3901// ===================================================================
3902
3904 public:
3905 using HasBits =
3906 decltype(::std::declval<ModelUpdateProto>()._impl_._has_bits_);
3907 static constexpr ::int32_t kHasBitsOffset =
3908 8 * PROTOBUF_FIELD_OFFSET(ModelUpdateProto, _impl_._has_bits_);
3909};
3910
3912 ::google::protobuf::internal::TSanWrite(&_impl_);
3913 if (_impl_.new_variables_ != nullptr) _impl_.new_variables_->Clear();
3914 _impl_._has_bits_[0] &= ~0x00000004u;
3915}
3917 ::google::protobuf::internal::TSanWrite(&_impl_);
3918 if (_impl_.new_linear_constraints_ != nullptr) _impl_.new_linear_constraints_->Clear();
3919 _impl_._has_bits_[0] &= ~0x00000008u;
3922 ::google::protobuf::internal::TSanWrite(&_impl_);
3923 if (_impl_.linear_constraint_matrix_updates_ != nullptr) _impl_.linear_constraint_matrix_updates_->Clear();
3924 _impl_._has_bits_[0] &= ~0x00000020u;
3925}
3926ModelUpdateProto::ModelUpdateProto(::google::protobuf::Arena* PROTOBUF_NULLABLE arena)
3927#if defined(PROTOBUF_CUSTOM_VTABLE)
3928 : ::google::protobuf::Message(arena, ModelUpdateProto_class_data_.base()) {
3929#else // PROTOBUF_CUSTOM_VTABLE
3930 : ::google::protobuf::Message(arena) {
3931#endif // PROTOBUF_CUSTOM_VTABLE
3932 SharedCtor(arena);
3933 // @@protoc_insertion_point(arena_constructor:operations_research.math_opt.ModelUpdateProto)
3934}
3935PROTOBUF_NDEBUG_INLINE ModelUpdateProto::Impl_::Impl_(
3936 ::google::protobuf::internal::InternalVisibility visibility,
3937 ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const Impl_& from,
3938 const ::operations_research::math_opt::ModelUpdateProto& from_msg)
3939 : _has_bits_{from._has_bits_},
3940 _cached_size_{0},
3941 deleted_variable_ids_{visibility, arena, from.deleted_variable_ids_},
3942 _deleted_variable_ids_cached_byte_size_{0},
3943 deleted_linear_constraint_ids_{visibility, arena, from.deleted_linear_constraint_ids_},
3944 _deleted_linear_constraint_ids_cached_byte_size_{0} {}
3945
3947 ::google::protobuf::Arena* PROTOBUF_NULLABLE arena,
3948 const ModelUpdateProto& from)
3949#if defined(PROTOBUF_CUSTOM_VTABLE)
3950 : ::google::protobuf::Message(arena, ModelUpdateProto_class_data_.base()) {
3951#else // PROTOBUF_CUSTOM_VTABLE
3952 : ::google::protobuf::Message(arena) {
3953#endif // PROTOBUF_CUSTOM_VTABLE
3954 ModelUpdateProto* const _this = this;
3955 (void)_this;
3956 _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(
3957 from._internal_metadata_);
3958 new (&_impl_) Impl_(internal_visibility(), arena, from._impl_, from);
3959 ::uint32_t cached_has_bits = _impl_._has_bits_[0];
3960 _impl_.variable_updates_ = ((cached_has_bits & 0x00000001u) != 0)
3961 ? ::google::protobuf::Message::CopyConstruct(arena, *from._impl_.variable_updates_)
3962 : nullptr;
3963 _impl_.linear_constraint_updates_ = ((cached_has_bits & 0x00000002u) != 0)
3964 ? ::google::protobuf::Message::CopyConstruct(arena, *from._impl_.linear_constraint_updates_)
3965 : nullptr;
3966 _impl_.new_variables_ = ((cached_has_bits & 0x00000004u) != 0)
3967 ? ::google::protobuf::Message::CopyConstruct(arena, *from._impl_.new_variables_)
3968 : nullptr;
3969 _impl_.new_linear_constraints_ = ((cached_has_bits & 0x00000008u) != 0)
3970 ? ::google::protobuf::Message::CopyConstruct(arena, *from._impl_.new_linear_constraints_)
3971 : nullptr;
3972 _impl_.objective_updates_ = ((cached_has_bits & 0x00000010u) != 0)
3973 ? ::google::protobuf::Message::CopyConstruct(arena, *from._impl_.objective_updates_)
3974 : nullptr;
3975 _impl_.linear_constraint_matrix_updates_ = ((cached_has_bits & 0x00000020u) != 0)
3976 ? ::google::protobuf::Message::CopyConstruct(arena, *from._impl_.linear_constraint_matrix_updates_)
3977 : nullptr;
3978 _impl_.quadratic_constraint_updates_ = ((cached_has_bits & 0x00000040u) != 0)
3979 ? ::google::protobuf::Message::CopyConstruct(arena, *from._impl_.quadratic_constraint_updates_)
3980 : nullptr;
3981 _impl_.sos1_constraint_updates_ = ((cached_has_bits & 0x00000080u) != 0)
3982 ? ::google::protobuf::Message::CopyConstruct(arena, *from._impl_.sos1_constraint_updates_)
3983 : nullptr;
3984 _impl_.sos2_constraint_updates_ = ((cached_has_bits & 0x00000100u) != 0)
3985 ? ::google::protobuf::Message::CopyConstruct(arena, *from._impl_.sos2_constraint_updates_)
3986 : nullptr;
3987 _impl_.indicator_constraint_updates_ = ((cached_has_bits & 0x00000200u) != 0)
3988 ? ::google::protobuf::Message::CopyConstruct(arena, *from._impl_.indicator_constraint_updates_)
3989 : nullptr;
3990 _impl_.auxiliary_objectives_updates_ = ((cached_has_bits & 0x00000400u) != 0)
3991 ? ::google::protobuf::Message::CopyConstruct(arena, *from._impl_.auxiliary_objectives_updates_)
3992 : nullptr;
3993 _impl_.second_order_cone_constraint_updates_ = ((cached_has_bits & 0x00000800u) != 0)
3994 ? ::google::protobuf::Message::CopyConstruct(arena, *from._impl_.second_order_cone_constraint_updates_)
3995 : nullptr;
3996
3997 // @@protoc_insertion_point(copy_constructor:operations_research.math_opt.ModelUpdateProto)
3998}
3999PROTOBUF_NDEBUG_INLINE ModelUpdateProto::Impl_::Impl_(
4000 ::google::protobuf::internal::InternalVisibility visibility,
4001 ::google::protobuf::Arena* PROTOBUF_NULLABLE arena)
4002 : _cached_size_{0},
4003 deleted_variable_ids_{visibility, arena},
4004 _deleted_variable_ids_cached_byte_size_{0},
4005 deleted_linear_constraint_ids_{visibility, arena},
4006 _deleted_linear_constraint_ids_cached_byte_size_{0} {}
4007
4008inline void ModelUpdateProto::SharedCtor(::_pb::Arena* PROTOBUF_NULLABLE arena) {
4009 new (&_impl_) Impl_(internal_visibility(), arena);
4010 ::memset(reinterpret_cast<char *>(&_impl_) +
4011 offsetof(Impl_, variable_updates_),
4012 0,
4013 offsetof(Impl_, second_order_cone_constraint_updates_) -
4014 offsetof(Impl_, variable_updates_) +
4015 sizeof(Impl_::second_order_cone_constraint_updates_));
4016}
4018 // @@protoc_insertion_point(destructor:operations_research.math_opt.ModelUpdateProto)
4019 SharedDtor(*this);
4020}
4021inline void ModelUpdateProto::SharedDtor(MessageLite& self) {
4022 ModelUpdateProto& this_ = static_cast<ModelUpdateProto&>(self);
4023 this_._internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>();
4024 ABSL_DCHECK(this_.GetArena() == nullptr);
4025 delete this_._impl_.variable_updates_;
4026 delete this_._impl_.linear_constraint_updates_;
4027 delete this_._impl_.new_variables_;
4028 delete this_._impl_.new_linear_constraints_;
4029 delete this_._impl_.objective_updates_;
4030 delete this_._impl_.linear_constraint_matrix_updates_;
4031 delete this_._impl_.quadratic_constraint_updates_;
4032 delete this_._impl_.sos1_constraint_updates_;
4033 delete this_._impl_.sos2_constraint_updates_;
4034 delete this_._impl_.indicator_constraint_updates_;
4035 delete this_._impl_.auxiliary_objectives_updates_;
4036 delete this_._impl_.second_order_cone_constraint_updates_;
4037 this_._impl_.~Impl_();
4038}
4039
4040inline void* PROTOBUF_NONNULL ModelUpdateProto::PlacementNew_(
4041 const void* PROTOBUF_NONNULL, void* PROTOBUF_NONNULL mem,
4042 ::google::protobuf::Arena* PROTOBUF_NULLABLE arena) {
4043 return ::new (mem) ModelUpdateProto(arena);
4044}
4045constexpr auto ModelUpdateProto::InternalNewImpl_() {
4046 constexpr auto arena_bits = ::google::protobuf::internal::EncodePlacementArenaOffsets({
4047 PROTOBUF_FIELD_OFFSET(ModelUpdateProto, _impl_.deleted_variable_ids_) +
4048 decltype(ModelUpdateProto::_impl_.deleted_variable_ids_)::
4049 InternalGetArenaOffset(
4050 ::google::protobuf::Message::internal_visibility()),
4051 PROTOBUF_FIELD_OFFSET(ModelUpdateProto, _impl_.deleted_linear_constraint_ids_) +
4052 decltype(ModelUpdateProto::_impl_.deleted_linear_constraint_ids_)::
4053 InternalGetArenaOffset(
4054 ::google::protobuf::Message::internal_visibility()),
4055 });
4056 if (arena_bits.has_value()) {
4057 return ::google::protobuf::internal::MessageCreator::ZeroInit(
4058 sizeof(ModelUpdateProto), alignof(ModelUpdateProto), *arena_bits);
4059 } else {
4060 return ::google::protobuf::internal::MessageCreator(&ModelUpdateProto::PlacementNew_,
4061 sizeof(ModelUpdateProto),
4062 alignof(ModelUpdateProto));
4063 }
4064}
4066 return ::google::protobuf::internal::ClassDataFull{
4067 ::google::protobuf::internal::ClassData{
4069 &_table_.header,
4070 nullptr, // OnDemandRegisterArenaDtor
4071 nullptr, // IsInitialized
4072 &ModelUpdateProto::MergeImpl,
4073 ::google::protobuf::Message::GetNewImpl<ModelUpdateProto>(),
4074#if defined(PROTOBUF_CUSTOM_VTABLE)
4075 &ModelUpdateProto::SharedDtor,
4076 ::google::protobuf::Message::GetClearImpl<ModelUpdateProto>(), &ModelUpdateProto::ByteSizeLong,
4078#endif // PROTOBUF_CUSTOM_VTABLE
4079 PROTOBUF_FIELD_OFFSET(ModelUpdateProto, _impl_._cached_size_),
4080 false,
4081 },
4082 &ModelUpdateProto::kDescriptorMethods,
4084 nullptr, // tracker
4085 };
4086}
4087
4088PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 const
4089 ::google::protobuf::internal::ClassDataFull ModelUpdateProto_class_data_ =
4091
4092PROTOBUF_ATTRIBUTE_WEAK const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL
4094 ::google::protobuf::internal::PrefetchToLocalCache(&ModelUpdateProto_class_data_);
4095 ::google::protobuf::internal::PrefetchToLocalCache(ModelUpdateProto_class_data_.tc_table);
4096 return ModelUpdateProto_class_data_.base();
4097}
4098PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1
4099const ::_pbi::TcParseTable<4, 14, 12, 0, 2>
4100ModelUpdateProto::_table_ = {
4101 {
4102 PROTOBUF_FIELD_OFFSET(ModelUpdateProto, _impl_._has_bits_),
4103 0, // no _extensions_
4104 14, 120, // max_field_number, fast_idx_mask
4105 offsetof(decltype(_table_), field_lookup_table),
4106 4294950912, // skipmap
4107 offsetof(decltype(_table_), field_entries),
4108 14, // num_field_entries
4109 12, // num_aux_entries
4110 offsetof(decltype(_table_), aux_entries),
4112 nullptr, // post_loop_handler
4113 ::_pbi::TcParser::GenericFallback, // fallback
4114 #ifdef PROTOBUF_PREFETCH_PARSE_TABLE
4115 ::_pbi::TcParser::GetTable<::operations_research::math_opt::ModelUpdateProto>(), // to_prefetch
4116 #endif // PROTOBUF_PREFETCH_PARSE_TABLE
4117 }, {{
4118 {::_pbi::TcParser::MiniParse, {}},
4119 // repeated int64 deleted_variable_ids = 1;
4120 {::_pbi::TcParser::FastV64P1,
4121 {10, 63, 0, PROTOBUF_FIELD_OFFSET(ModelUpdateProto, _impl_.deleted_variable_ids_)}},
4122 // repeated int64 deleted_linear_constraint_ids = 2;
4123 {::_pbi::TcParser::FastV64P1,
4124 {18, 63, 0, PROTOBUF_FIELD_OFFSET(ModelUpdateProto, _impl_.deleted_linear_constraint_ids_)}},
4125 // .operations_research.math_opt.VariableUpdatesProto variable_updates = 3;
4126 {::_pbi::TcParser::FastMtS1,
4127 {26, 0, 0, PROTOBUF_FIELD_OFFSET(ModelUpdateProto, _impl_.variable_updates_)}},
4128 // .operations_research.math_opt.LinearConstraintUpdatesProto linear_constraint_updates = 4;
4129 {::_pbi::TcParser::FastMtS1,
4130 {34, 1, 1, PROTOBUF_FIELD_OFFSET(ModelUpdateProto, _impl_.linear_constraint_updates_)}},
4131 // .operations_research.math_opt.VariablesProto new_variables = 5;
4132 {::_pbi::TcParser::FastMtS1,
4133 {42, 2, 2, PROTOBUF_FIELD_OFFSET(ModelUpdateProto, _impl_.new_variables_)}},
4134 // .operations_research.math_opt.LinearConstraintsProto new_linear_constraints = 6;
4135 {::_pbi::TcParser::FastMtS1,
4136 {50, 3, 3, PROTOBUF_FIELD_OFFSET(ModelUpdateProto, _impl_.new_linear_constraints_)}},
4137 // .operations_research.math_opt.ObjectiveUpdatesProto objective_updates = 7;
4138 {::_pbi::TcParser::FastMtS1,
4139 {58, 4, 4, PROTOBUF_FIELD_OFFSET(ModelUpdateProto, _impl_.objective_updates_)}},
4140 // .operations_research.math_opt.SparseDoubleMatrixProto linear_constraint_matrix_updates = 8;
4141 {::_pbi::TcParser::FastMtS1,
4142 {66, 5, 5, PROTOBUF_FIELD_OFFSET(ModelUpdateProto, _impl_.linear_constraint_matrix_updates_)}},
4143 // .operations_research.math_opt.QuadraticConstraintUpdatesProto quadratic_constraint_updates = 9;
4144 {::_pbi::TcParser::FastMtS1,
4145 {74, 6, 6, PROTOBUF_FIELD_OFFSET(ModelUpdateProto, _impl_.quadratic_constraint_updates_)}},
4146 // .operations_research.math_opt.SosConstraintUpdatesProto sos1_constraint_updates = 10;
4147 {::_pbi::TcParser::FastMtS1,
4148 {82, 7, 7, PROTOBUF_FIELD_OFFSET(ModelUpdateProto, _impl_.sos1_constraint_updates_)}},
4149 // .operations_research.math_opt.SosConstraintUpdatesProto sos2_constraint_updates = 11;
4150 {::_pbi::TcParser::FastMtS1,
4151 {90, 8, 8, PROTOBUF_FIELD_OFFSET(ModelUpdateProto, _impl_.sos2_constraint_updates_)}},
4152 // .operations_research.math_opt.IndicatorConstraintUpdatesProto indicator_constraint_updates = 12;
4153 {::_pbi::TcParser::FastMtS1,
4154 {98, 9, 9, PROTOBUF_FIELD_OFFSET(ModelUpdateProto, _impl_.indicator_constraint_updates_)}},
4155 // .operations_research.math_opt.AuxiliaryObjectivesUpdatesProto auxiliary_objectives_updates = 13;
4156 {::_pbi::TcParser::FastMtS1,
4157 {106, 10, 10, PROTOBUF_FIELD_OFFSET(ModelUpdateProto, _impl_.auxiliary_objectives_updates_)}},
4158 // .operations_research.math_opt.SecondOrderConeConstraintUpdatesProto second_order_cone_constraint_updates = 14;
4159 {::_pbi::TcParser::FastMtS1,
4160 {114, 11, 11, PROTOBUF_FIELD_OFFSET(ModelUpdateProto, _impl_.second_order_cone_constraint_updates_)}},
4161 {::_pbi::TcParser::MiniParse, {}},
4162 }}, {{
4163 65535, 65535
4164 }}, {{
4165 // repeated int64 deleted_variable_ids = 1;
4166 {PROTOBUF_FIELD_OFFSET(ModelUpdateProto, _impl_.deleted_variable_ids_), -1, 0,
4167 (0 | ::_fl::kFcRepeated | ::_fl::kPackedInt64)},
4168 // repeated int64 deleted_linear_constraint_ids = 2;
4169 {PROTOBUF_FIELD_OFFSET(ModelUpdateProto, _impl_.deleted_linear_constraint_ids_), -1, 0,
4170 (0 | ::_fl::kFcRepeated | ::_fl::kPackedInt64)},
4171 // .operations_research.math_opt.VariableUpdatesProto variable_updates = 3;
4172 {PROTOBUF_FIELD_OFFSET(ModelUpdateProto, _impl_.variable_updates_), _Internal::kHasBitsOffset + 0, 0,
4173 (0 | ::_fl::kFcOptional | ::_fl::kMessage | ::_fl::kTvTable)},
4174 // .operations_research.math_opt.LinearConstraintUpdatesProto linear_constraint_updates = 4;
4175 {PROTOBUF_FIELD_OFFSET(ModelUpdateProto, _impl_.linear_constraint_updates_), _Internal::kHasBitsOffset + 1, 1,
4176 (0 | ::_fl::kFcOptional | ::_fl::kMessage | ::_fl::kTvTable)},
4177 // .operations_research.math_opt.VariablesProto new_variables = 5;
4178 {PROTOBUF_FIELD_OFFSET(ModelUpdateProto, _impl_.new_variables_), _Internal::kHasBitsOffset + 2, 2,
4179 (0 | ::_fl::kFcOptional | ::_fl::kMessage | ::_fl::kTvTable)},
4180 // .operations_research.math_opt.LinearConstraintsProto new_linear_constraints = 6;
4181 {PROTOBUF_FIELD_OFFSET(ModelUpdateProto, _impl_.new_linear_constraints_), _Internal::kHasBitsOffset + 3, 3,
4182 (0 | ::_fl::kFcOptional | ::_fl::kMessage | ::_fl::kTvTable)},
4183 // .operations_research.math_opt.ObjectiveUpdatesProto objective_updates = 7;
4184 {PROTOBUF_FIELD_OFFSET(ModelUpdateProto, _impl_.objective_updates_), _Internal::kHasBitsOffset + 4, 4,
4185 (0 | ::_fl::kFcOptional | ::_fl::kMessage | ::_fl::kTvTable)},
4186 // .operations_research.math_opt.SparseDoubleMatrixProto linear_constraint_matrix_updates = 8;
4187 {PROTOBUF_FIELD_OFFSET(ModelUpdateProto, _impl_.linear_constraint_matrix_updates_), _Internal::kHasBitsOffset + 5, 5,
4188 (0 | ::_fl::kFcOptional | ::_fl::kMessage | ::_fl::kTvTable)},
4189 // .operations_research.math_opt.QuadraticConstraintUpdatesProto quadratic_constraint_updates = 9;
4190 {PROTOBUF_FIELD_OFFSET(ModelUpdateProto, _impl_.quadratic_constraint_updates_), _Internal::kHasBitsOffset + 6, 6,
4191 (0 | ::_fl::kFcOptional | ::_fl::kMessage | ::_fl::kTvTable)},
4192 // .operations_research.math_opt.SosConstraintUpdatesProto sos1_constraint_updates = 10;
4193 {PROTOBUF_FIELD_OFFSET(ModelUpdateProto, _impl_.sos1_constraint_updates_), _Internal::kHasBitsOffset + 7, 7,
4194 (0 | ::_fl::kFcOptional | ::_fl::kMessage | ::_fl::kTvTable)},
4195 // .operations_research.math_opt.SosConstraintUpdatesProto sos2_constraint_updates = 11;
4196 {PROTOBUF_FIELD_OFFSET(ModelUpdateProto, _impl_.sos2_constraint_updates_), _Internal::kHasBitsOffset + 8, 8,
4197 (0 | ::_fl::kFcOptional | ::_fl::kMessage | ::_fl::kTvTable)},
4198 // .operations_research.math_opt.IndicatorConstraintUpdatesProto indicator_constraint_updates = 12;
4199 {PROTOBUF_FIELD_OFFSET(ModelUpdateProto, _impl_.indicator_constraint_updates_), _Internal::kHasBitsOffset + 9, 9,
4200 (0 | ::_fl::kFcOptional | ::_fl::kMessage | ::_fl::kTvTable)},
4201 // .operations_research.math_opt.AuxiliaryObjectivesUpdatesProto auxiliary_objectives_updates = 13;
4202 {PROTOBUF_FIELD_OFFSET(ModelUpdateProto, _impl_.auxiliary_objectives_updates_), _Internal::kHasBitsOffset + 10, 10,
4203 (0 | ::_fl::kFcOptional | ::_fl::kMessage | ::_fl::kTvTable)},
4204 // .operations_research.math_opt.SecondOrderConeConstraintUpdatesProto second_order_cone_constraint_updates = 14;
4205 {PROTOBUF_FIELD_OFFSET(ModelUpdateProto, _impl_.second_order_cone_constraint_updates_), _Internal::kHasBitsOffset + 11, 11,
4206 (0 | ::_fl::kFcOptional | ::_fl::kMessage | ::_fl::kTvTable)},
4207 }},
4208 {{
4209 {::_pbi::TcParser::GetTable<::operations_research::math_opt::VariableUpdatesProto>()},
4210 {::_pbi::TcParser::GetTable<::operations_research::math_opt::LinearConstraintUpdatesProto>()},
4211 {::_pbi::TcParser::GetTable<::operations_research::math_opt::VariablesProto>()},
4212 {::_pbi::TcParser::GetTable<::operations_research::math_opt::LinearConstraintsProto>()},
4213 {::_pbi::TcParser::GetTable<::operations_research::math_opt::ObjectiveUpdatesProto>()},
4214 {::_pbi::TcParser::GetTable<::operations_research::math_opt::SparseDoubleMatrixProto>()},
4215 {::_pbi::TcParser::GetTable<::operations_research::math_opt::QuadraticConstraintUpdatesProto>()},
4216 {::_pbi::TcParser::GetTable<::operations_research::math_opt::SosConstraintUpdatesProto>()},
4217 {::_pbi::TcParser::GetTable<::operations_research::math_opt::SosConstraintUpdatesProto>()},
4218 {::_pbi::TcParser::GetTable<::operations_research::math_opt::IndicatorConstraintUpdatesProto>()},
4219 {::_pbi::TcParser::GetTable<::operations_research::math_opt::AuxiliaryObjectivesUpdatesProto>()},
4220 {::_pbi::TcParser::GetTable<::operations_research::math_opt::SecondOrderConeConstraintUpdatesProto>()},
4221 }},
4222 {{
4223 }},
4224};
4225PROTOBUF_NOINLINE void ModelUpdateProto::Clear() {
4226// @@protoc_insertion_point(message_clear_start:operations_research.math_opt.ModelUpdateProto)
4227 ::google::protobuf::internal::TSanWrite(&_impl_);
4228 ::uint32_t cached_has_bits = 0;
4229 // Prevent compiler warnings about cached_has_bits being unused
4230 (void) cached_has_bits;
4231
4232 _impl_.deleted_variable_ids_.Clear();
4233 _impl_.deleted_linear_constraint_ids_.Clear();
4234 cached_has_bits = _impl_._has_bits_[0];
4235 if ((cached_has_bits & 0x000000ffu) != 0) {
4236 if ((cached_has_bits & 0x00000001u) != 0) {
4237 ABSL_DCHECK(_impl_.variable_updates_ != nullptr);
4238 _impl_.variable_updates_->Clear();
4239 }
4240 if ((cached_has_bits & 0x00000002u) != 0) {
4241 ABSL_DCHECK(_impl_.linear_constraint_updates_ != nullptr);
4242 _impl_.linear_constraint_updates_->Clear();
4243 }
4244 if ((cached_has_bits & 0x00000004u) != 0) {
4245 ABSL_DCHECK(_impl_.new_variables_ != nullptr);
4246 _impl_.new_variables_->Clear();
4247 }
4248 if ((cached_has_bits & 0x00000008u) != 0) {
4249 ABSL_DCHECK(_impl_.new_linear_constraints_ != nullptr);
4250 _impl_.new_linear_constraints_->Clear();
4251 }
4252 if ((cached_has_bits & 0x00000010u) != 0) {
4253 ABSL_DCHECK(_impl_.objective_updates_ != nullptr);
4254 _impl_.objective_updates_->Clear();
4255 }
4256 if ((cached_has_bits & 0x00000020u) != 0) {
4257 ABSL_DCHECK(_impl_.linear_constraint_matrix_updates_ != nullptr);
4258 _impl_.linear_constraint_matrix_updates_->Clear();
4259 }
4260 if ((cached_has_bits & 0x00000040u) != 0) {
4261 ABSL_DCHECK(_impl_.quadratic_constraint_updates_ != nullptr);
4262 _impl_.quadratic_constraint_updates_->Clear();
4263 }
4264 if ((cached_has_bits & 0x00000080u) != 0) {
4265 ABSL_DCHECK(_impl_.sos1_constraint_updates_ != nullptr);
4266 _impl_.sos1_constraint_updates_->Clear();
4267 }
4268 }
4269 if ((cached_has_bits & 0x00000f00u) != 0) {
4270 if ((cached_has_bits & 0x00000100u) != 0) {
4271 ABSL_DCHECK(_impl_.sos2_constraint_updates_ != nullptr);
4272 _impl_.sos2_constraint_updates_->Clear();
4273 }
4274 if ((cached_has_bits & 0x00000200u) != 0) {
4275 ABSL_DCHECK(_impl_.indicator_constraint_updates_ != nullptr);
4276 _impl_.indicator_constraint_updates_->Clear();
4277 }
4278 if ((cached_has_bits & 0x00000400u) != 0) {
4279 ABSL_DCHECK(_impl_.auxiliary_objectives_updates_ != nullptr);
4280 _impl_.auxiliary_objectives_updates_->Clear();
4281 }
4282 if ((cached_has_bits & 0x00000800u) != 0) {
4283 ABSL_DCHECK(_impl_.second_order_cone_constraint_updates_ != nullptr);
4284 _impl_.second_order_cone_constraint_updates_->Clear();
4285 }
4286 }
4287 _impl_._has_bits_.Clear();
4288 _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>();
4289}
4290
4291#if defined(PROTOBUF_CUSTOM_VTABLE)
4292::uint8_t* PROTOBUF_NONNULL ModelUpdateProto::_InternalSerialize(
4293 const ::google::protobuf::MessageLite& base, ::uint8_t* PROTOBUF_NONNULL target,
4294 ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) {
4295 const ModelUpdateProto& this_ = static_cast<const ModelUpdateProto&>(base);
4296#else // PROTOBUF_CUSTOM_VTABLE
4297::uint8_t* PROTOBUF_NONNULL ModelUpdateProto::_InternalSerialize(
4298 ::uint8_t* PROTOBUF_NONNULL target,
4299 ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const {
4300 const ModelUpdateProto& this_ = *this;
4301#endif // PROTOBUF_CUSTOM_VTABLE
4302 // @@protoc_insertion_point(serialize_to_array_start:operations_research.math_opt.ModelUpdateProto)
4303 ::uint32_t cached_has_bits = 0;
4304 (void)cached_has_bits;
4305
4306 // repeated int64 deleted_variable_ids = 1;
4307 {
4308 int byte_size = this_._impl_._deleted_variable_ids_cached_byte_size_.Get();
4309 if (byte_size > 0) {
4310 target = stream->WriteInt64Packed(
4311 1, this_._internal_deleted_variable_ids(), byte_size, target);
4313 }
4314
4315 // repeated int64 deleted_linear_constraint_ids = 2;
4316 {
4317 int byte_size = this_._impl_._deleted_linear_constraint_ids_cached_byte_size_.Get();
4318 if (byte_size > 0) {
4319 target = stream->WriteInt64Packed(
4320 2, this_._internal_deleted_linear_constraint_ids(), byte_size, target);
4321 }
4322 }
4323
4324 cached_has_bits = this_._impl_._has_bits_[0];
4325 // .operations_research.math_opt.VariableUpdatesProto variable_updates = 3;
4326 if ((cached_has_bits & 0x00000001u) != 0) {
4327 target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage(
4328 3, *this_._impl_.variable_updates_, this_._impl_.variable_updates_->GetCachedSize(), target,
4329 stream);
4330 }
4331
4332 // .operations_research.math_opt.LinearConstraintUpdatesProto linear_constraint_updates = 4;
4333 if ((cached_has_bits & 0x00000002u) != 0) {
4334 target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage(
4335 4, *this_._impl_.linear_constraint_updates_, this_._impl_.linear_constraint_updates_->GetCachedSize(), target,
4336 stream);
4337 }
4338
4339 // .operations_research.math_opt.VariablesProto new_variables = 5;
4340 if ((cached_has_bits & 0x00000004u) != 0) {
4341 target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage(
4342 5, *this_._impl_.new_variables_, this_._impl_.new_variables_->GetCachedSize(), target,
4343 stream);
4344 }
4345
4346 // .operations_research.math_opt.LinearConstraintsProto new_linear_constraints = 6;
4347 if ((cached_has_bits & 0x00000008u) != 0) {
4348 target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage(
4349 6, *this_._impl_.new_linear_constraints_, this_._impl_.new_linear_constraints_->GetCachedSize(), target,
4350 stream);
4351 }
4352
4353 // .operations_research.math_opt.ObjectiveUpdatesProto objective_updates = 7;
4354 if ((cached_has_bits & 0x00000010u) != 0) {
4355 target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage(
4356 7, *this_._impl_.objective_updates_, this_._impl_.objective_updates_->GetCachedSize(), target,
4357 stream);
4358 }
4359
4360 // .operations_research.math_opt.SparseDoubleMatrixProto linear_constraint_matrix_updates = 8;
4361 if ((cached_has_bits & 0x00000020u) != 0) {
4362 target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage(
4363 8, *this_._impl_.linear_constraint_matrix_updates_, this_._impl_.linear_constraint_matrix_updates_->GetCachedSize(), target,
4364 stream);
4365 }
4366
4367 // .operations_research.math_opt.QuadraticConstraintUpdatesProto quadratic_constraint_updates = 9;
4368 if ((cached_has_bits & 0x00000040u) != 0) {
4369 target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage(
4370 9, *this_._impl_.quadratic_constraint_updates_, this_._impl_.quadratic_constraint_updates_->GetCachedSize(), target,
4371 stream);
4372 }
4373
4374 // .operations_research.math_opt.SosConstraintUpdatesProto sos1_constraint_updates = 10;
4375 if ((cached_has_bits & 0x00000080u) != 0) {
4376 target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage(
4377 10, *this_._impl_.sos1_constraint_updates_, this_._impl_.sos1_constraint_updates_->GetCachedSize(), target,
4378 stream);
4379 }
4380
4381 // .operations_research.math_opt.SosConstraintUpdatesProto sos2_constraint_updates = 11;
4382 if ((cached_has_bits & 0x00000100u) != 0) {
4383 target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage(
4384 11, *this_._impl_.sos2_constraint_updates_, this_._impl_.sos2_constraint_updates_->GetCachedSize(), target,
4385 stream);
4386 }
4387
4388 // .operations_research.math_opt.IndicatorConstraintUpdatesProto indicator_constraint_updates = 12;
4389 if ((cached_has_bits & 0x00000200u) != 0) {
4390 target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage(
4391 12, *this_._impl_.indicator_constraint_updates_, this_._impl_.indicator_constraint_updates_->GetCachedSize(), target,
4392 stream);
4393 }
4394
4395 // .operations_research.math_opt.AuxiliaryObjectivesUpdatesProto auxiliary_objectives_updates = 13;
4396 if ((cached_has_bits & 0x00000400u) != 0) {
4397 target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage(
4398 13, *this_._impl_.auxiliary_objectives_updates_, this_._impl_.auxiliary_objectives_updates_->GetCachedSize(), target,
4399 stream);
4400 }
4401
4402 // .operations_research.math_opt.SecondOrderConeConstraintUpdatesProto second_order_cone_constraint_updates = 14;
4403 if ((cached_has_bits & 0x00000800u) != 0) {
4404 target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage(
4405 14, *this_._impl_.second_order_cone_constraint_updates_, this_._impl_.second_order_cone_constraint_updates_->GetCachedSize(), target,
4406 stream);
4407 }
4408
4409 if (ABSL_PREDICT_FALSE(this_._internal_metadata_.have_unknown_fields())) {
4410 target =
4411 ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray(
4412 this_._internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream);
4413 }
4414 // @@protoc_insertion_point(serialize_to_array_end:operations_research.math_opt.ModelUpdateProto)
4415 return target;
4416}
4417
4418#if defined(PROTOBUF_CUSTOM_VTABLE)
4419::size_t ModelUpdateProto::ByteSizeLong(const MessageLite& base) {
4420 const ModelUpdateProto& this_ = static_cast<const ModelUpdateProto&>(base);
4421#else // PROTOBUF_CUSTOM_VTABLE
4422::size_t ModelUpdateProto::ByteSizeLong() const {
4423 const ModelUpdateProto& this_ = *this;
4424#endif // PROTOBUF_CUSTOM_VTABLE
4425 // @@protoc_insertion_point(message_byte_size_start:operations_research.math_opt.ModelUpdateProto)
4426 ::size_t total_size = 0;
4427
4428 ::uint32_t cached_has_bits = 0;
4429 // Prevent compiler warnings about cached_has_bits being unused
4430 (void)cached_has_bits;
4431
4432 ::_pbi::Prefetch5LinesFrom7Lines(&this_);
4433 {
4434 // repeated int64 deleted_variable_ids = 1;
4435 {
4436 total_size +=
4437 ::_pbi::WireFormatLite::Int64SizeWithPackedTagSize(
4438 this_._internal_deleted_variable_ids(), 1,
4439 this_._impl_._deleted_variable_ids_cached_byte_size_);
4440 }
4441 // repeated int64 deleted_linear_constraint_ids = 2;
4442 {
4443 total_size +=
4444 ::_pbi::WireFormatLite::Int64SizeWithPackedTagSize(
4445 this_._internal_deleted_linear_constraint_ids(), 1,
4446 this_._impl_._deleted_linear_constraint_ids_cached_byte_size_);
4447 }
4448 }
4449 cached_has_bits = this_._impl_._has_bits_[0];
4450 if ((cached_has_bits & 0x000000ffu) != 0) {
4451 // .operations_research.math_opt.VariableUpdatesProto variable_updates = 3;
4452 if ((cached_has_bits & 0x00000001u) != 0) {
4453 total_size += 1 +
4454 ::google::protobuf::internal::WireFormatLite::MessageSize(*this_._impl_.variable_updates_);
4455 }
4456 // .operations_research.math_opt.LinearConstraintUpdatesProto linear_constraint_updates = 4;
4457 if ((cached_has_bits & 0x00000002u) != 0) {
4458 total_size += 1 +
4459 ::google::protobuf::internal::WireFormatLite::MessageSize(*this_._impl_.linear_constraint_updates_);
4460 }
4461 // .operations_research.math_opt.VariablesProto new_variables = 5;
4462 if ((cached_has_bits & 0x00000004u) != 0) {
4463 total_size += 1 +
4464 ::google::protobuf::internal::WireFormatLite::MessageSize(*this_._impl_.new_variables_);
4465 }
4466 // .operations_research.math_opt.LinearConstraintsProto new_linear_constraints = 6;
4467 if ((cached_has_bits & 0x00000008u) != 0) {
4468 total_size += 1 +
4469 ::google::protobuf::internal::WireFormatLite::MessageSize(*this_._impl_.new_linear_constraints_);
4470 }
4471 // .operations_research.math_opt.ObjectiveUpdatesProto objective_updates = 7;
4472 if ((cached_has_bits & 0x00000010u) != 0) {
4473 total_size += 1 +
4474 ::google::protobuf::internal::WireFormatLite::MessageSize(*this_._impl_.objective_updates_);
4475 }
4476 // .operations_research.math_opt.SparseDoubleMatrixProto linear_constraint_matrix_updates = 8;
4477 if ((cached_has_bits & 0x00000020u) != 0) {
4478 total_size += 1 +
4479 ::google::protobuf::internal::WireFormatLite::MessageSize(*this_._impl_.linear_constraint_matrix_updates_);
4480 }
4481 // .operations_research.math_opt.QuadraticConstraintUpdatesProto quadratic_constraint_updates = 9;
4482 if ((cached_has_bits & 0x00000040u) != 0) {
4483 total_size += 1 +
4484 ::google::protobuf::internal::WireFormatLite::MessageSize(*this_._impl_.quadratic_constraint_updates_);
4485 }
4486 // .operations_research.math_opt.SosConstraintUpdatesProto sos1_constraint_updates = 10;
4487 if ((cached_has_bits & 0x00000080u) != 0) {
4488 total_size += 1 +
4489 ::google::protobuf::internal::WireFormatLite::MessageSize(*this_._impl_.sos1_constraint_updates_);
4490 }
4491 }
4492 if ((cached_has_bits & 0x00000f00u) != 0) {
4493 // .operations_research.math_opt.SosConstraintUpdatesProto sos2_constraint_updates = 11;
4494 if ((cached_has_bits & 0x00000100u) != 0) {
4495 total_size += 1 +
4496 ::google::protobuf::internal::WireFormatLite::MessageSize(*this_._impl_.sos2_constraint_updates_);
4497 }
4498 // .operations_research.math_opt.IndicatorConstraintUpdatesProto indicator_constraint_updates = 12;
4499 if ((cached_has_bits & 0x00000200u) != 0) {
4500 total_size += 1 +
4501 ::google::protobuf::internal::WireFormatLite::MessageSize(*this_._impl_.indicator_constraint_updates_);
4502 }
4503 // .operations_research.math_opt.AuxiliaryObjectivesUpdatesProto auxiliary_objectives_updates = 13;
4504 if ((cached_has_bits & 0x00000400u) != 0) {
4505 total_size += 1 +
4506 ::google::protobuf::internal::WireFormatLite::MessageSize(*this_._impl_.auxiliary_objectives_updates_);
4507 }
4508 // .operations_research.math_opt.SecondOrderConeConstraintUpdatesProto second_order_cone_constraint_updates = 14;
4509 if ((cached_has_bits & 0x00000800u) != 0) {
4510 total_size += 1 +
4511 ::google::protobuf::internal::WireFormatLite::MessageSize(*this_._impl_.second_order_cone_constraint_updates_);
4512 }
4513 }
4514 return this_.MaybeComputeUnknownFieldsSize(total_size,
4515 &this_._impl_._cached_size_);
4516}
4517
4518void ModelUpdateProto::MergeImpl(::google::protobuf::MessageLite& to_msg, const ::google::protobuf::MessageLite& from_msg) {
4519 auto* const _this = static_cast<ModelUpdateProto*>(&to_msg);
4520 auto& from = static_cast<const ModelUpdateProto&>(from_msg);
4521 ::google::protobuf::Arena* arena = _this->GetArena();
4522 // @@protoc_insertion_point(class_specific_merge_from_start:operations_research.math_opt.ModelUpdateProto)
4523 ABSL_DCHECK_NE(&from, _this);
4524 ::uint32_t cached_has_bits = 0;
4525 (void) cached_has_bits;
4526
4527 _this->_internal_mutable_deleted_variable_ids()->MergeFrom(from._internal_deleted_variable_ids());
4528 _this->_internal_mutable_deleted_linear_constraint_ids()->MergeFrom(from._internal_deleted_linear_constraint_ids());
4529 cached_has_bits = from._impl_._has_bits_[0];
4530 if ((cached_has_bits & 0x000000ffu) != 0) {
4531 if ((cached_has_bits & 0x00000001u) != 0) {
4532 ABSL_DCHECK(from._impl_.variable_updates_ != nullptr);
4533 if (_this->_impl_.variable_updates_ == nullptr) {
4534 _this->_impl_.variable_updates_ = ::google::protobuf::Message::CopyConstruct(arena, *from._impl_.variable_updates_);
4535 } else {
4536 _this->_impl_.variable_updates_->MergeFrom(*from._impl_.variable_updates_);
4537 }
4538 }
4539 if ((cached_has_bits & 0x00000002u) != 0) {
4540 ABSL_DCHECK(from._impl_.linear_constraint_updates_ != nullptr);
4541 if (_this->_impl_.linear_constraint_updates_ == nullptr) {
4542 _this->_impl_.linear_constraint_updates_ = ::google::protobuf::Message::CopyConstruct(arena, *from._impl_.linear_constraint_updates_);
4543 } else {
4544 _this->_impl_.linear_constraint_updates_->MergeFrom(*from._impl_.linear_constraint_updates_);
4545 }
4546 }
4547 if ((cached_has_bits & 0x00000004u) != 0) {
4548 ABSL_DCHECK(from._impl_.new_variables_ != nullptr);
4549 if (_this->_impl_.new_variables_ == nullptr) {
4550 _this->_impl_.new_variables_ = ::google::protobuf::Message::CopyConstruct(arena, *from._impl_.new_variables_);
4551 } else {
4552 _this->_impl_.new_variables_->MergeFrom(*from._impl_.new_variables_);
4553 }
4554 }
4555 if ((cached_has_bits & 0x00000008u) != 0) {
4556 ABSL_DCHECK(from._impl_.new_linear_constraints_ != nullptr);
4557 if (_this->_impl_.new_linear_constraints_ == nullptr) {
4558 _this->_impl_.new_linear_constraints_ = ::google::protobuf::Message::CopyConstruct(arena, *from._impl_.new_linear_constraints_);
4559 } else {
4560 _this->_impl_.new_linear_constraints_->MergeFrom(*from._impl_.new_linear_constraints_);
4561 }
4562 }
4563 if ((cached_has_bits & 0x00000010u) != 0) {
4564 ABSL_DCHECK(from._impl_.objective_updates_ != nullptr);
4565 if (_this->_impl_.objective_updates_ == nullptr) {
4566 _this->_impl_.objective_updates_ = ::google::protobuf::Message::CopyConstruct(arena, *from._impl_.objective_updates_);
4567 } else {
4568 _this->_impl_.objective_updates_->MergeFrom(*from._impl_.objective_updates_);
4569 }
4570 }
4571 if ((cached_has_bits & 0x00000020u) != 0) {
4572 ABSL_DCHECK(from._impl_.linear_constraint_matrix_updates_ != nullptr);
4573 if (_this->_impl_.linear_constraint_matrix_updates_ == nullptr) {
4574 _this->_impl_.linear_constraint_matrix_updates_ = ::google::protobuf::Message::CopyConstruct(arena, *from._impl_.linear_constraint_matrix_updates_);
4575 } else {
4576 _this->_impl_.linear_constraint_matrix_updates_->MergeFrom(*from._impl_.linear_constraint_matrix_updates_);
4577 }
4578 }
4579 if ((cached_has_bits & 0x00000040u) != 0) {
4580 ABSL_DCHECK(from._impl_.quadratic_constraint_updates_ != nullptr);
4581 if (_this->_impl_.quadratic_constraint_updates_ == nullptr) {
4582 _this->_impl_.quadratic_constraint_updates_ = ::google::protobuf::Message::CopyConstruct(arena, *from._impl_.quadratic_constraint_updates_);
4583 } else {
4584 _this->_impl_.quadratic_constraint_updates_->MergeFrom(*from._impl_.quadratic_constraint_updates_);
4585 }
4586 }
4587 if ((cached_has_bits & 0x00000080u) != 0) {
4588 ABSL_DCHECK(from._impl_.sos1_constraint_updates_ != nullptr);
4589 if (_this->_impl_.sos1_constraint_updates_ == nullptr) {
4590 _this->_impl_.sos1_constraint_updates_ = ::google::protobuf::Message::CopyConstruct(arena, *from._impl_.sos1_constraint_updates_);
4591 } else {
4592 _this->_impl_.sos1_constraint_updates_->MergeFrom(*from._impl_.sos1_constraint_updates_);
4593 }
4594 }
4595 }
4596 if ((cached_has_bits & 0x00000f00u) != 0) {
4597 if ((cached_has_bits & 0x00000100u) != 0) {
4598 ABSL_DCHECK(from._impl_.sos2_constraint_updates_ != nullptr);
4599 if (_this->_impl_.sos2_constraint_updates_ == nullptr) {
4600 _this->_impl_.sos2_constraint_updates_ = ::google::protobuf::Message::CopyConstruct(arena, *from._impl_.sos2_constraint_updates_);
4601 } else {
4602 _this->_impl_.sos2_constraint_updates_->MergeFrom(*from._impl_.sos2_constraint_updates_);
4603 }
4604 }
4605 if ((cached_has_bits & 0x00000200u) != 0) {
4606 ABSL_DCHECK(from._impl_.indicator_constraint_updates_ != nullptr);
4607 if (_this->_impl_.indicator_constraint_updates_ == nullptr) {
4608 _this->_impl_.indicator_constraint_updates_ = ::google::protobuf::Message::CopyConstruct(arena, *from._impl_.indicator_constraint_updates_);
4609 } else {
4610 _this->_impl_.indicator_constraint_updates_->MergeFrom(*from._impl_.indicator_constraint_updates_);
4611 }
4612 }
4613 if ((cached_has_bits & 0x00000400u) != 0) {
4614 ABSL_DCHECK(from._impl_.auxiliary_objectives_updates_ != nullptr);
4615 if (_this->_impl_.auxiliary_objectives_updates_ == nullptr) {
4616 _this->_impl_.auxiliary_objectives_updates_ = ::google::protobuf::Message::CopyConstruct(arena, *from._impl_.auxiliary_objectives_updates_);
4617 } else {
4618 _this->_impl_.auxiliary_objectives_updates_->MergeFrom(*from._impl_.auxiliary_objectives_updates_);
4619 }
4620 }
4621 if ((cached_has_bits & 0x00000800u) != 0) {
4622 ABSL_DCHECK(from._impl_.second_order_cone_constraint_updates_ != nullptr);
4623 if (_this->_impl_.second_order_cone_constraint_updates_ == nullptr) {
4624 _this->_impl_.second_order_cone_constraint_updates_ = ::google::protobuf::Message::CopyConstruct(arena, *from._impl_.second_order_cone_constraint_updates_);
4625 } else {
4626 _this->_impl_.second_order_cone_constraint_updates_->MergeFrom(*from._impl_.second_order_cone_constraint_updates_);
4627 }
4628 }
4629 }
4630 _this->_impl_._has_bits_[0] |= cached_has_bits;
4631 _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_);
4632}
4633
4635// @@protoc_insertion_point(class_specific_copy_from_start:operations_research.math_opt.ModelUpdateProto)
4636 if (&from == this) return;
4637 Clear();
4638 MergeFrom(from);
4639}
4640
4641
4642void ModelUpdateProto::InternalSwap(ModelUpdateProto* PROTOBUF_RESTRICT PROTOBUF_NONNULL other) {
4643 using ::std::swap;
4644 _internal_metadata_.InternalSwap(&other->_internal_metadata_);
4645 swap(_impl_._has_bits_[0], other->_impl_._has_bits_[0]);
4646 _impl_.deleted_variable_ids_.InternalSwap(&other->_impl_.deleted_variable_ids_);
4647 _impl_.deleted_linear_constraint_ids_.InternalSwap(&other->_impl_.deleted_linear_constraint_ids_);
4648 ::google::protobuf::internal::memswap<
4649 PROTOBUF_FIELD_OFFSET(ModelUpdateProto, _impl_.second_order_cone_constraint_updates_)
4650 + sizeof(ModelUpdateProto::_impl_.second_order_cone_constraint_updates_)
4651 - PROTOBUF_FIELD_OFFSET(ModelUpdateProto, _impl_.variable_updates_)>(
4652 reinterpret_cast<char*>(&_impl_.variable_updates_),
4653 reinterpret_cast<char*>(&other->_impl_.variable_updates_));
4654}
4655
4656::google::protobuf::Metadata ModelUpdateProto::GetMetadata() const {
4657 return ::google::protobuf::Message::GetMetadataImpl(GetClassData()->full());
4658}
4659// @@protoc_insertion_point(namespace_scope)
4660} // namespace math_opt
4661} // namespace operations_research
4662namespace google {
4663namespace protobuf {
4664} // namespace protobuf
4665} // namespace google
4666// @@protoc_insertion_point(global_scope)
4667PROTOBUF_ATTRIBUTE_INIT_PRIORITY2 static ::std::false_type
4668 _static_init2_ [[maybe_unused]] =
4670 ::std::false_type{});
4671#include "google/protobuf/port_undef.inc"
static PROTOBUF_ATTRIBUTE_INIT_PRIORITY2 ::std::false_type _static_init2_
@protoc_insertion_point(global_scope)
static const ::_pb::Message *PROTOBUF_NONNULL const file_default_instances[]
const ::google::protobuf::UnknownFieldSet & unknown_fields() const ABSL_ATTRIBUTE_LIFETIME_BOUND
void MergeFrom(const AuxiliaryObjectivesUpdatesProto &from)
void CopyFrom(const AuxiliaryObjectivesUpdatesProto &from)
static void *PROTOBUF_NONNULL PlacementNew_(const void *PROTOBUF_NONNULL, void *PROTOBUF_NONNULL mem, ::google::protobuf::Arena *PROTOBUF_NULLABLE arena)
ABSL_ATTRIBUTE_REINITIALIZES void Clear() PROTOBUF_FINAL
const ::google::protobuf::internal::ClassData *PROTOBUF_NONNULL GetClassData() const PROTOBUF_FINAL
::uint8_t *PROTOBUF_NONNULL _InternalSerialize(::uint8_t *PROTOBUF_NONNULL target, ::google::protobuf::io::EpsCopyOutputStream *PROTOBUF_NONNULL stream) const final
void MergeFrom(const IndicatorConstraintUpdatesProto &from)
const ::google::protobuf::internal::ClassData *PROTOBUF_NONNULL GetClassData() const PROTOBUF_FINAL
static void *PROTOBUF_NONNULL PlacementNew_(const void *PROTOBUF_NONNULL, void *PROTOBUF_NONNULL mem, ::google::protobuf::Arena *PROTOBUF_NULLABLE arena)
void CopyFrom(const IndicatorConstraintUpdatesProto &from)
const ::google::protobuf::UnknownFieldSet & unknown_fields() const ABSL_ATTRIBUTE_LIFETIME_BOUND
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)
static void *PROTOBUF_NONNULL PlacementNew_(const void *PROTOBUF_NONNULL, void *PROTOBUF_NONNULL mem, ::google::protobuf::Arena *PROTOBUF_NULLABLE arena)
::uint8_t *PROTOBUF_NONNULL _InternalSerialize(::uint8_t *PROTOBUF_NONNULL target, ::google::protobuf::io::EpsCopyOutputStream *PROTOBUF_NONNULL stream) const final
ABSL_ATTRIBUTE_REINITIALIZES void Clear() PROTOBUF_FINAL
void CopyFrom(const LinearConstraintUpdatesProto &from)
friend void swap(LinearConstraintUpdatesProto &a, LinearConstraintUpdatesProto &b)
const ::google::protobuf::internal::ClassData *PROTOBUF_NONNULL GetClassData() const PROTOBUF_FINAL
void MergeFrom(const LinearConstraintsProto &from)
Definition model.pb.h:498
ABSL_ATTRIBUTE_REINITIALIZES void Clear() PROTOBUF_FINAL
Definition model.pb.cc:1694
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
static void *PROTOBUF_NONNULL PlacementNew_(const void *PROTOBUF_NONNULL, void *PROTOBUF_NONNULL mem, ::google::protobuf::Arena *PROTOBUF_NULLABLE arena)
const ::google::protobuf::internal::ClassData *PROTOBUF_NONNULL GetClassData() const PROTOBUF_FINAL
ABSL_ATTRIBUTE_REINITIALIZES void Clear() PROTOBUF_FINAL
friend void swap(ModelUpdateProto &a, ModelUpdateProto &b)
decltype(::std::declval< ObjectiveUpdatesProto >()._impl_._has_bits_) HasBits
static void *PROTOBUF_NONNULL PlacementNew_(const void *PROTOBUF_NONNULL, void *PROTOBUF_NONNULL mem, ::google::protobuf::Arena *PROTOBUF_NULLABLE arena)
ABSL_ATTRIBUTE_REINITIALIZES void Clear() PROTOBUF_FINAL
void MergeFrom(const ObjectiveUpdatesProto &from)
const ::google::protobuf::internal::ClassData *PROTOBUF_NONNULL GetClassData() const PROTOBUF_FINAL
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
const ::google::protobuf::UnknownFieldSet & unknown_fields() const ABSL_ATTRIBUTE_LIFETIME_BOUND
static void *PROTOBUF_NONNULL PlacementNew_(const void *PROTOBUF_NONNULL, void *PROTOBUF_NONNULL mem, ::google::protobuf::Arena *PROTOBUF_NULLABLE arena)
void CopyFrom(const QuadraticConstraintUpdatesProto &from)
::uint8_t *PROTOBUF_NONNULL _InternalSerialize(::uint8_t *PROTOBUF_NONNULL target, ::google::protobuf::io::EpsCopyOutputStream *PROTOBUF_NONNULL stream) const final
void MergeFrom(const QuadraticConstraintUpdatesProto &from)
ABSL_ATTRIBUTE_REINITIALIZES void Clear() PROTOBUF_FINAL
const ::google::protobuf::internal::ClassData *PROTOBUF_NONNULL GetClassData() const PROTOBUF_FINAL
const ::google::protobuf::UnknownFieldSet & unknown_fields() const ABSL_ATTRIBUTE_LIFETIME_BOUND
void MergeFrom(const SecondOrderConeConstraintUpdatesProto &from)
::uint8_t *PROTOBUF_NONNULL _InternalSerialize(::uint8_t *PROTOBUF_NONNULL target, ::google::protobuf::io::EpsCopyOutputStream *PROTOBUF_NONNULL stream) const final
static void *PROTOBUF_NONNULL PlacementNew_(const void *PROTOBUF_NONNULL, void *PROTOBUF_NONNULL mem, ::google::protobuf::Arena *PROTOBUF_NULLABLE arena)
void CopyFrom(const SecondOrderConeConstraintUpdatesProto &from)
ABSL_ATTRIBUTE_REINITIALIZES void Clear() PROTOBUF_FINAL
const ::google::protobuf::internal::ClassData *PROTOBUF_NONNULL GetClassData() const PROTOBUF_FINAL
::uint8_t *PROTOBUF_NONNULL _InternalSerialize(::uint8_t *PROTOBUF_NONNULL target, ::google::protobuf::io::EpsCopyOutputStream *PROTOBUF_NONNULL stream) const final
ABSL_ATTRIBUTE_REINITIALIZES void Clear() PROTOBUF_FINAL
void CopyFrom(const SosConstraintUpdatesProto &from)
void MergeFrom(const SosConstraintUpdatesProto &from)
static void *PROTOBUF_NONNULL PlacementNew_(const void *PROTOBUF_NONNULL, void *PROTOBUF_NONNULL mem, ::google::protobuf::Arena *PROTOBUF_NULLABLE arena)
const ::google::protobuf::UnknownFieldSet & unknown_fields() const ABSL_ATTRIBUTE_LIFETIME_BOUND
const ::google::protobuf::internal::ClassData *PROTOBUF_NONNULL GetClassData() const PROTOBUF_FINAL
ABSL_ATTRIBUTE_REINITIALIZES void Clear() PROTOBUF_FINAL
void MergeFrom(const SparseDoubleMatrixProto &from)
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
const ::google::protobuf::internal::ClassData *PROTOBUF_NONNULL GetClassData() const PROTOBUF_FINAL
static void *PROTOBUF_NONNULL PlacementNew_(const void *PROTOBUF_NONNULL, void *PROTOBUF_NONNULL mem, ::google::protobuf::Arena *PROTOBUF_NULLABLE arena)
::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:874
void MergeFrom(const VariablesProto &from)
Definition model.pb.h:214
PROTOBUF_CONSTINITconst ::_pbi::DescriptorTable descriptor_table_ortools_2fmath_5fopt_2fmodel_2eproto
Definition model.pb.cc:653
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]
An object oriented wrapper for quadratic constraints in ModelStorage.
Definition gurobi_isv.cc:28
PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT OR_PROTO_DLL PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 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_
In SWIG mode, we don't want anything besides these top-level includes.
static constexpr ::_pbi::MigrationSchema *PROTOBUF_NULLABLE schemas
PROTOBUF_CONSTINITconst ::_pbi::DescriptorTable descriptor_table_ortools_2fmath_5fopt_2fsparse_5fcontainers_2eproto